2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for pygobject 3.15.91.
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir=./$as_dir;;
333 test -d "$as_dir" || eval $as_mkdir_p || {
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410 as_val=`expr "$@" || test $? -eq 1`
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
422 as_status=$1; test $as_status -eq 0 && as_status=1
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
508 # Exit status is that of the last command.
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 elif ln conf$$.file conf$$ 2>/dev/null; then
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
555 test -d ./-p && rmdir ./-p
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" || exec 7<&0 </dev/null
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 ac_default_prefix=/usr/local
584 ac_config_libobj_dir=.
591 # Identity of this package.
592 PACKAGE_NAME='pygobject'
593 PACKAGE_TARNAME='pygobject'
594 PACKAGE_VERSION='3.15.91'
595 PACKAGE_STRING='pygobject 3.15.91'
596 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject'
597 PACKAGE_URL='https://wiki.gnome.org/Projects/PyGObject/'
599 ac_unique_file="gi/gimodule.c"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
613 # ifdef HAVE_STDLIB_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
636 ac_subst_vars='am__EXEEXT_FALSE
640 GNOME_CODE_COVERAGE_RULES
642 CODE_COVERAGE_LDFLAGS
646 CODE_COVERAGE_ENABLED
647 CODE_COVERAGE_ENABLED_FALSE
648 CODE_COVERAGE_ENABLED_TRUE
650 INTROSPECTION_COMPILER
651 INTROSPECTION_SCANNER
670 GLIB_COMPILE_RESOURCES
753 INSTALL_STRIP_PROGRAM
772 PYGOBJECT_MICRO_VERSION
773 PYGOBJECT_MINOR_VERSION
774 PYGOBJECT_MAJOR_VERSION
803 program_transform_name
816 enable_option_checking
822 enable_dependency_tracking
831 enable_compile_warnings
835 ac_precious_vars='build_alias
860 # Initialize some variables set by options.
862 ac_init_version=false
863 ac_unrecognized_opts=
865 # The variables have the same names as the options, with
866 # dashes changed to underlines.
874 program_transform_name=s,x,x,
882 # Installation directory options.
883 # These are left unexpanded so users can "make install exec_prefix=/foo"
884 # and all the variables that are supposed to be based on exec_prefix
885 # by default will actually change.
886 # Use braces instead of parens because sh, perl, etc. also accept them.
887 # (The list follows the same order as the GNU Coding Standards.)
888 bindir='${exec_prefix}/bin'
889 sbindir='${exec_prefix}/sbin'
890 libexecdir='${exec_prefix}/libexec'
891 datarootdir='${prefix}/share'
892 datadir='${datarootdir}'
893 sysconfdir='${prefix}/etc'
894 sharedstatedir='${prefix}/com'
895 localstatedir='${prefix}/var'
896 includedir='${prefix}/include'
897 oldincludedir='/usr/include'
898 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899 infodir='${datarootdir}/info'
904 libdir='${exec_prefix}/lib'
905 localedir='${datarootdir}/locale'
906 mandir='${datarootdir}/man'
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
914 eval $ac_prev=\$ac_option
920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 # Accept the important Cygnus configure options, so we can diagnose typos.
927 case $ac_dashdash$ac_option in
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
949 cache_file=config.cache ;;
951 -datadir | --datadir | --datadi | --datad)
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
963 -disable-* | --disable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
977 eval enable_$ac_useropt=no ;;
979 -docdir | --docdir | --docdi | --doc | --do)
981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989 -enable-* | --enable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error $? "invalid feature name: $ac_useropt"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1003 eval enable_$ac_useropt=\$ac_optarg ;;
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
1012 exec_prefix=$ac_optarg ;;
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
1025 -host | --host | --hos | --ho)
1026 ac_prev=host_alias ;;
1027 -host=* | --host=* | --hos=* | --ho=*)
1028 host_alias=$ac_optarg ;;
1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034 htmldir=$ac_optarg ;;
1036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
1041 includedir=$ac_optarg ;;
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046 infodir=$ac_optarg ;;
1048 -libdir | --libdir | --libdi | --libd)
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051 libdir=$ac_optarg ;;
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
1058 libexecdir=$ac_optarg ;;
1060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1065 -localstatedir | --localstatedir | --localstatedi | --localstated \
1066 | --localstate | --localstat | --localsta | --localst | --locals)
1067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070 localstatedir=$ac_optarg ;;
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075 mandir=$ac_optarg ;;
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082 | --no-cr | --no-c | -n)
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096 oldincludedir=$ac_optarg ;;
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101 prefix=$ac_optarg ;;
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108 program_prefix=$ac_optarg ;;
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115 program_suffix=$ac_optarg ;;
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
1132 program_transform_name=$ac_optarg ;;
1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1139 -psdir | --psdir | --psdi | --psd | --ps)
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152 sbindir=$ac_optarg ;;
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163 sharedstatedir=$ac_optarg ;;
1165 -site | --site | --sit)
1167 -site=* | --site=* | --sit=*)
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1207 eval with_$ac_useropt=\$ac_optarg ;;
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: $ac_useropt"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1223 eval with_$ac_useropt=no ;;
1226 # Obsolete; use --with-x.
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1243 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
1252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1258 # FIXME: should be removed in autoconf 3.0.
1259 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1268 if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error $? "missing argument to $ac_option"
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281 # Check all directory arguments for consistency.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1294 # Be sure to have absolute directory names.
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1307 target=$target_alias
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 elif test "x$build_alias" != "x$host_alias"; then
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321 test "$silent" = yes && exec 6>/dev/null
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 as_fn_error $? "working directory cannot be determined"
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 as_fn_error $? "pwd does not report name of working directory"
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 $as_echo X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1364 ac_srcdir_defaulted=no
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392 # Report the --help message.
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1398 \`configure' configures pygobject 3.15.91 to adapt to many kinds of systems.
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1405 Defaults for the options are specified in brackets.
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking ...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1429 For better control, use the options below.
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/pygobject]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1466 if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive ) echo "Configuration of pygobject 3.15.91:";;
1473 --disable-option-checking ignore unrecognized --enable/--with options
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --enable-silent-rules less verbose build output (undo: "make V=1")
1477 --disable-silent-rules verbose build output (undo: "make V=0")
1478 --enable-static[=PKGS] build static libraries [default=no]
1479 --enable-shared[=PKGS] build shared libraries [default=yes]
1480 --enable-fast-install[=PKGS]
1481 optimize for fast installation [default=yes]
1482 --enable-dependency-tracking
1483 do not reject slow dependency extractors
1484 --disable-dependency-tracking
1485 speeds up one-time build
1486 --disable-libtool-lock avoid locking (might break parallel builds)
1487 --disable-thread Disable pygobject threading support
1488 --disable-glibtest do not try to compile and run a test GLIB program
1489 --enable-cairo Enable Cairo bindings using introspection
1491 --enable-compile-warnings=[no/minimum/yes/maximum/error]
1492 Turn on compiler warnings
1493 --enable-iso-c Try to warn if code is not ISO C
1494 --enable-code-coverage Whether to enable code coverage support
1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1499 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1501 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1502 --with-sysroot=DIR Search for dependent libraries within DIR
1503 (or the compiler's sysroot if not specified).
1504 --with-python=PATH Path to Python interpreter; searches $PATH if only a
1505 program name is given; if not given, searches for a
1506 few standard names such as "python3" or "python2"
1507 --without-common For package maintainers: do not install Python
1508 version independent files
1510 Some influential environment variables:
1511 CC C compiler command
1512 CFLAGS C compiler flags
1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1514 nonstandard directory <lib dir>
1515 LIBS libraries to pass to the linker, e.g. -l<library>
1516 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1517 you have headers in a nonstandard directory <include dir>
1519 PYTHON the Python interpreter
1520 PKG_CONFIG path to pkg-config utility
1522 directories to add to pkg-config's search path
1524 path overriding pkg-config's built-in search path
1525 FFI_CFLAGS C compiler flags for FFI, overriding pkg-config
1526 FFI_LIBS linker flags for FFI, overriding pkg-config
1527 GIO_CFLAGS C compiler flags for GIO, overriding pkg-config
1528 GIO_LIBS linker flags for GIO, overriding pkg-config
1529 GI_CFLAGS C compiler flags for GI, overriding pkg-config
1530 GI_LIBS linker flags for GI, overriding pkg-config
1532 C compiler flags for CAIRO, overriding pkg-config
1533 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1535 C compiler flags for PYCAIRO, overriding pkg-config
1537 linker flags for PYCAIRO, overriding pkg-config
1539 Use these variables to override the choices made by `configure' or to help
1540 it to find libraries and programs with nonstandard names/locations.
1542 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
1543 pygobject home page: <https://wiki.gnome.org/Projects/PyGObject/>.
1548 if test "$ac_init_help" = "recursive"; then
1549 # If there are subdirs, report their specific --help.
1550 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1551 test -d "$ac_dir" ||
1552 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1560 # A ".." for each directory in $ac_dir_suffix.
1561 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1562 case $ac_top_builddir_sub in
1563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1567 ac_abs_top_builddir=$ac_pwd
1568 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1569 # for backward compatibility:
1570 ac_top_builddir=$ac_top_build_prefix
1573 .) # We are building in place.
1575 ac_top_srcdir=$ac_top_builddir_sub
1576 ac_abs_top_srcdir=$ac_pwd ;;
1577 [\\/]* | ?:[\\/]* ) # Absolute name.
1578 ac_srcdir=$srcdir$ac_dir_suffix;
1579 ac_top_srcdir=$srcdir
1580 ac_abs_top_srcdir=$srcdir ;;
1582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1583 ac_top_srcdir=$ac_top_build_prefix$srcdir
1584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588 cd "$ac_dir" || { ac_status=$?; continue; }
1589 # Check for guested configure.
1590 if test -f "$ac_srcdir/configure.gnu"; then
1592 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1593 elif test -f "$ac_srcdir/configure"; then
1595 $SHELL "$ac_srcdir/configure" --help=recursive
1597 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599 cd "$ac_pwd" || { ac_status=$?; break; }
1603 test -n "$ac_init_help" && exit $ac_status
1604 if $ac_init_version; then
1606 pygobject configure 3.15.91
1607 generated by GNU Autoconf 2.69
1609 Copyright (C) 2012 Free Software Foundation, Inc.
1610 This configure script is free software; the Free Software Foundation
1611 gives unlimited permission to copy, distribute and modify it.
1616 ## ------------------------ ##
1617 ## Autoconf initialization. ##
1618 ## ------------------------ ##
1620 # ac_fn_c_try_compile LINENO
1621 # --------------------------
1622 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1623 ac_fn_c_try_compile ()
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 rm -f conftest.$ac_objext
1627 if { { ac_try="$ac_compile"
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_compile") 2>conftest.err
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } && {
1643 test -z "$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1645 } && test -s conftest.$ac_objext; then :
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
1656 } # ac_fn_c_try_compile
1658 # ac_fn_c_try_link LINENO
1659 # -----------------------
1660 # Try to link conftest.$ac_ext, and return whether this succeeded.
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 rm -f conftest.$ac_objext conftest$ac_exeext
1665 if { { ac_try="$ac_link"
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_link") 2>conftest.err
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && {
1681 test -z "$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 } && test -s conftest$ac_exeext && {
1684 test "$cross_compiling" = yes ||
1685 test -x conftest$ac_exeext
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1694 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1695 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1696 # interfere with the next link command; also delete a directory that is
1697 # left behind by Apple's compiler. We do this before executing the actions.
1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 as_fn_set_status $ac_retval
1702 } # ac_fn_c_try_link
1704 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1705 # -------------------------------------------------------
1706 # Tests whether HEADER exists and can be compiled using the include files in
1707 # INCLUDES, setting the cache variable VAR accordingly.
1708 ac_fn_c_check_header_compile ()
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if eval \${$3+:} false; then :
1714 $as_echo_n "(cached) " >&6
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1721 if ac_fn_c_try_compile "$LINENO"; then :
1726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730 $as_echo "$ac_res" >&6; }
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 } # ac_fn_c_check_header_compile
1735 # ac_fn_c_try_cpp LINENO
1736 # ----------------------
1737 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 if { { ac_try="$ac_cpp conftest.$ac_ext"
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1750 if test -s conftest.err; then
1751 grep -v '^ *+' conftest.err >conftest.er1
1752 cat conftest.er1 >&5
1753 mv -f conftest.er1 conftest.err
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } > conftest.i && {
1757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1758 test ! -s conftest.err
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 as_fn_set_status $ac_retval
1772 # ac_fn_c_try_run LINENO
1773 # ----------------------
1774 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1775 # that executables *can* be run.
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 if { { ac_try="$ac_link"
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_link") 2>&5
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1790 { { case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_try") 2>&5
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; }; }; then :
1802 $as_echo "$as_me: program exited with status $ac_status" >&5
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1806 ac_retval=$ac_status
1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810 as_fn_set_status $ac_retval
1814 # ac_fn_c_check_func LINENO FUNC VAR
1815 # ----------------------------------
1816 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1817 ac_fn_c_check_func ()
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821 $as_echo_n "checking for $2... " >&6; }
1822 if eval \${$3+:} false; then :
1823 $as_echo_n "(cached) " >&6
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1827 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1829 #define $2 innocuous_$2
1831 /* System header to define __stub macros and hopefully few prototypes,
1832 which can conflict with char $2 (); below.
1833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1834 <limits.h> exists even on freestanding compilers. */
1837 # include <limits.h>
1839 # include <assert.h>
1844 /* Override any GCC internal prototype to avoid an error.
1845 Use char because int might match the return type of a GCC
1846 builtin and then its argument prototype would still apply. */
1851 /* The GNU C library defines this for functions which it implements
1852 to always fail with ENOSYS. Some functions are actually named
1853 something starting with __ and the normal name is an alias. */
1854 #if defined __stub_$2 || defined __stub___$2
1866 if ac_fn_c_try_link "$LINENO"; then :
1871 rm -f core conftest.err conftest.$ac_objext \
1872 conftest$ac_exeext conftest.$ac_ext
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 } # ac_fn_c_check_func
1880 cat >config.log <<_ACEOF
1881 This file contains any messages produced by compilers while
1882 running configure, to aid debugging if configure makes a mistake.
1884 It was created by pygobject $as_me 3.15.91, which was
1885 generated by GNU Autoconf 2.69. Invocation command line was
1897 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1898 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1899 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1900 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1901 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1903 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1904 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1906 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1907 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1908 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1909 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1910 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1911 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1912 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 test -z "$as_dir" && as_dir=.
1921 $as_echo "PATH: $as_dir"
1937 # Keep a trace of the command line.
1938 # Strip out --no-create and --no-recursion so they do not pile up.
1939 # Strip out --silent because we don't want to record it for future runs.
1940 # Also quote any args containing shell meta-characters.
1941 # Make two passes to allow for proper duplicate-argument suppression.
1945 ac_must_keep_next=false
1951 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1953 | -silent | --silent | --silen | --sile | --sil)
1956 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1959 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1961 as_fn_append ac_configure_args1 " '$ac_arg'"
1962 if test $ac_must_keep_next = true; then
1963 ac_must_keep_next=false # Got value, back to normal.
1966 *=* | --config-cache | -C | -disable-* | --disable-* \
1967 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1968 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1969 | -with-* | --with-* | -without-* | --without-* | --x)
1970 case "$ac_configure_args0 " in
1971 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1974 -* ) ac_must_keep_next=true ;;
1977 as_fn_append ac_configure_args " '$ac_arg'"
1982 { ac_configure_args0=; unset ac_configure_args0;}
1983 { ac_configure_args1=; unset ac_configure_args1;}
1985 # When interrupted or exit'd, cleanup temporary files, and complete
1986 # config.log. We remove comments because anyway the quotes in there
1987 # would cause problems or look ugly.
1988 # WARNING: Use '\'' to represent an apostrophe within the trap.
1989 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1990 trap 'exit_status=$?
1991 # Save into config.log some information that might help in debugging.
1995 $as_echo "## ---------------- ##
1996 ## Cache variables. ##
1997 ## ---------------- ##"
1999 # The following way of writing the cache mishandles newlines in values,
2001 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2002 eval ac_val=\$$ac_var
2006 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2007 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2010 _ | IFS | as_nl) ;; #(
2011 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2012 *) { eval $ac_var=; unset $ac_var;} ;;
2017 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2018 *${as_nl}ac_space=\ *)
2020 "s/'\''/'\''\\\\'\'''\''/g;
2021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2024 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2031 $as_echo "## ----------------- ##
2032 ## Output variables. ##
2033 ## ----------------- ##"
2035 for ac_var in $ac_subst_vars
2037 eval ac_val=\$$ac_var
2039 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2041 $as_echo "$ac_var='\''$ac_val'\''"
2045 if test -n "$ac_subst_files"; then
2046 $as_echo "## ------------------- ##
2047 ## File substitutions. ##
2048 ## ------------------- ##"
2050 for ac_var in $ac_subst_files
2052 eval ac_val=\$$ac_var
2054 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2056 $as_echo "$ac_var='\''$ac_val'\''"
2061 if test -s confdefs.h; then
2062 $as_echo "## ----------- ##
2069 test "$ac_signal" != 0 &&
2070 $as_echo "$as_me: caught signal $ac_signal"
2071 $as_echo "$as_me: exit $exit_status"
2073 rm -f core *.core core.conftest.* &&
2074 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2077 for ac_signal in 1 2 13 15; do
2078 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2082 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2083 rm -f -r conftest* confdefs.h
2085 $as_echo "/* confdefs.h */" > confdefs.h
2087 # Predefined preprocessor variables.
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_NAME "$PACKAGE_NAME"
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_STRING "$PACKAGE_STRING"
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_URL "$PACKAGE_URL"
2114 # Let the site file select an alternate cache file if it wants to.
2115 # Prefer an explicitly selected file to automatically selected ones.
2118 if test -n "$CONFIG_SITE"; then
2119 # We do not want a PATH search for config.site.
2120 case $CONFIG_SITE in #((
2121 -*) ac_site_file1=./$CONFIG_SITE;;
2122 */*) ac_site_file1=$CONFIG_SITE;;
2123 *) ac_site_file1=./$CONFIG_SITE;;
2125 elif test "x$prefix" != xNONE; then
2126 ac_site_file1=$prefix/share/config.site
2127 ac_site_file2=$prefix/etc/config.site
2129 ac_site_file1=$ac_default_prefix/share/config.site
2130 ac_site_file2=$ac_default_prefix/etc/config.site
2132 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2134 test "x$ac_site_file" = xNONE && continue
2135 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2137 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2138 sed 's/^/| /' "$ac_site_file" >&5
2140 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2142 as_fn_error $? "failed to load site script $ac_site_file
2143 See \`config.log' for more details" "$LINENO" 5; }
2147 if test -r "$cache_file"; then
2148 # Some versions of bash will fail to source /dev/null (special files
2149 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2150 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2152 $as_echo "$as_me: loading cache $cache_file" >&6;}
2154 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2155 *) . "./$cache_file";;
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2160 $as_echo "$as_me: creating cache $cache_file" >&6;}
2164 # Check that the precious variables saved in the cache have kept the same
2166 ac_cache_corrupted=false
2167 for ac_var in $ac_precious_vars; do
2168 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2169 eval ac_new_set=\$ac_env_${ac_var}_set
2170 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2171 eval ac_new_val=\$ac_env_${ac_var}_value
2172 case $ac_old_set,$ac_new_set in
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2175 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2176 ac_cache_corrupted=: ;;
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2179 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2180 ac_cache_corrupted=: ;;
2183 if test "x$ac_old_val" != "x$ac_new_val"; then
2184 # differences in whitespace do not lead to failure.
2185 ac_old_val_w=`echo x $ac_old_val`
2186 ac_new_val_w=`echo x $ac_new_val`
2187 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2189 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2190 ac_cache_corrupted=:
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2193 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2194 eval $ac_var=\$ac_old_val
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2197 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2199 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2202 # Pass precious variables to config.status.
2203 if test "$ac_new_set" = set; then
2205 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2206 *) ac_arg=$ac_var=$ac_new_val ;;
2208 case " $ac_configure_args " in
2209 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2210 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2214 if $ac_cache_corrupted; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2218 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2219 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2221 ## -------------------- ##
2222 ## Main body of script. ##
2223 ## -------------------- ##
2226 ac_cpp='$CPP $CPPFLAGS'
2227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2232 ACLOCAL_AMFLAGS="-I m4 -I ."
2238 $as_echo "#define PYGOBJECT_MAJOR_VERSION 3" >>confdefs.h
2240 PYGOBJECT_MAJOR_VERSION=3
2243 $as_echo "#define PYGOBJECT_MINOR_VERSION 15" >>confdefs.h
2245 PYGOBJECT_MINOR_VERSION=15
2248 $as_echo "#define PYGOBJECT_MICRO_VERSION 91" >>confdefs.h
2250 PYGOBJECT_MICRO_VERSION=91
2253 ac_config_headers="$ac_config_headers config.h"
2255 # Check whether --enable-silent-rules was given.
2256 if test "${enable_silent_rules+set}" = set; then :
2257 enableval=$enable_silent_rules;
2260 case $enable_silent_rules in # (((
2261 yes) AM_DEFAULT_VERBOSITY=0;;
2262 no) AM_DEFAULT_VERBOSITY=1;;
2263 *) AM_DEFAULT_VERBOSITY=0;;
2265 am_make=${MAKE-make}
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2267 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2268 if ${am_cv_make_support_nested_variables+:} false; then :
2269 $as_echo_n "(cached) " >&6
2271 if $as_echo 'TRUE=$(BAR$(V))
2277 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2278 am_cv_make_support_nested_variables=yes
2280 am_cv_make_support_nested_variables=no
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2284 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2285 if test $am_cv_make_support_nested_variables = yes; then
2287 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2289 AM_V=$AM_DEFAULT_VERBOSITY
2290 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2294 am__api_version='1.13'
2297 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2298 if test -f "$ac_dir/install-sh"; then
2300 ac_install_sh="$ac_aux_dir/install-sh -c"
2302 elif test -f "$ac_dir/install.sh"; then
2304 ac_install_sh="$ac_aux_dir/install.sh -c"
2306 elif test -f "$ac_dir/shtool"; then
2308 ac_install_sh="$ac_aux_dir/shtool install -c"
2312 if test -z "$ac_aux_dir"; then
2313 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2316 # These three variables are undocumented and unsupported,
2317 # and are intended to be withdrawn in a future Autoconf release.
2318 # They can cause serious problems if a builder's source tree is in a directory
2319 # whose full name contains unusual characters.
2320 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2321 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2322 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2325 # Find a good install program. We prefer a C program (faster),
2326 # so one script is as good as another. But avoid the broken or
2327 # incompatible versions:
2328 # SysV /etc/install, /usr/sbin/install
2329 # SunOS /usr/etc/install
2330 # IRIX /sbin/install
2332 # AmigaOS /C/install, which installs bootblocks on floppy discs
2333 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2334 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2335 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2336 # OS/2's system install, which has a completely different semantic
2337 # ./install, which can be erroneously created by make from ./install.sh.
2338 # Reject install programs that cannot install multiple files.
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2340 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2341 if test -z "$INSTALL"; then
2342 if ${ac_cv_path_install+:} false; then :
2343 $as_echo_n "(cached) " >&6
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 test -z "$as_dir" && as_dir=.
2350 # Account for people who put trailing slashes in PATH elements.
2351 case $as_dir/ in #((
2352 ./ | .// | /[cC]/* | \
2353 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2354 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2357 # OSF1 and SCO ODT 3.0 have their own names for install.
2358 # Don't use installbsd from OSF since it installs stuff as root
2360 for ac_prog in ginstall scoinst install; do
2361 for ac_exec_ext in '' $ac_executable_extensions; do
2362 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2363 if test $ac_prog = install &&
2364 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2365 # AIX install. It has an incompatible calling convention.
2367 elif test $ac_prog = install &&
2368 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2369 # program-specific install script used by HP pwplus--don't use.
2372 rm -rf conftest.one conftest.two conftest.dir
2373 echo one > conftest.one
2374 echo two > conftest.two
2376 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2377 test -s conftest.one && test -s conftest.two &&
2378 test -s conftest.dir/conftest.one &&
2379 test -s conftest.dir/conftest.two
2381 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2394 rm -rf conftest.one conftest.two conftest.dir
2397 if test "${ac_cv_path_install+set}" = set; then
2398 INSTALL=$ac_cv_path_install
2400 # As a last resort, use the slow shell script. Don't cache a
2401 # value for INSTALL within a source directory, because that will
2402 # break other packages using the cache if that directory is
2403 # removed, or if the value is a relative name.
2404 INSTALL=$ac_install_sh
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2408 $as_echo "$INSTALL" >&6; }
2410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2411 # It thinks the first close brace ends the variable substitution.
2412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2416 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2419 $as_echo_n "checking whether build environment is sane... " >&6; }
2420 # Reject unsafe characters in $srcdir or the absolute working directory
2421 # name. Accept space and tab only in the latter.
2425 *[\\\"\#\$\&\'\`$am_lf]*)
2426 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2429 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2430 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2433 # Do 'set' in a subshell so we don't clobber the current shell's
2434 # arguments. Must try -L first in case configure is actually a
2435 # symlink; some systems play weird games with the mod time of symlinks
2436 # (eg FreeBSD returns the mod time of the symlink's containing
2440 for am_try in 1 2; do
2441 echo "timestamp, slept: $am_has_slept" > conftest.file
2442 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2443 if test "$*" = "X"; then
2445 set X `ls -t "$srcdir/configure" conftest.file`
2447 if test "$*" != "X $srcdir/configure conftest.file" \
2448 && test "$*" != "X conftest.file $srcdir/configure"; then
2450 # If neither matched, then we have a broken ls. This can happen
2451 # if, for instance, CONFIG_SHELL is bash and it inherits a
2452 # broken ls alias from the environment. This has actually
2453 # happened. Such a system could not be considered "sane".
2454 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2455 alias in your environment" "$LINENO" 5
2457 if test "$2" = conftest.file || test $am_try -eq 2; then
2464 test "$2" = conftest.file
2470 as_fn_error $? "newly created file is older than distributed files!
2471 Check your system clock" "$LINENO" 5
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2474 $as_echo "yes" >&6; }
2475 # If we didn't sleep, we still need to ensure time stamps of config.status and
2476 # generated files are strictly newer.
2478 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2485 test "$program_prefix" != NONE &&
2486 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2487 # Use a double $ so make ignores it.
2488 test "$program_suffix" != NONE &&
2489 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2490 # Double any \ or $.
2491 # By default was `s,x,x', remove it if useless.
2492 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2493 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2495 # expand $ac_aux_dir to an absolute path
2496 am_aux_dir=`cd $ac_aux_dir && pwd`
2498 if test x"${MISSING+set}" != xset; then
2501 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2503 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2506 # Use eval to expand $SHELL
2507 if eval "$MISSING --is-lightweight"; then
2508 am_missing_run="$MISSING "
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2512 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2515 if test x"${install_sh}" != xset; then
2518 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2520 install_sh="\${SHELL} $am_aux_dir/install-sh"
2524 # Installed binaries are usually stripped using 'strip' when the user
2525 # run "make install-strip". However 'strip' might not be the right
2526 # tool to use in cross-compilation environments, therefore Automake
2527 # will honor the 'STRIP' environment variable to overrule this program.
2528 if test "$cross_compiling" != no; then
2529 if test -n "$ac_tool_prefix"; then
2530 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2531 set dummy ${ac_tool_prefix}strip; ac_word=$2
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2533 $as_echo_n "checking for $ac_word... " >&6; }
2534 if ${ac_cv_prog_STRIP+:} false; then :
2535 $as_echo_n "(cached) " >&6
2537 if test -n "$STRIP"; then
2538 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2547 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 STRIP=$ac_cv_prog_STRIP
2558 if test -n "$STRIP"; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2560 $as_echo "$STRIP" >&6; }
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2563 $as_echo "no" >&6; }
2568 if test -z "$ac_cv_prog_STRIP"; then
2570 # Extract the first word of "strip", so it can be a program name with args.
2571 set dummy strip; ac_word=$2
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573 $as_echo_n "checking for $ac_word... " >&6; }
2574 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2575 $as_echo_n "(cached) " >&6
2577 if test -n "$ac_ct_STRIP"; then
2578 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2587 ac_cv_prog_ac_ct_STRIP="strip"
2588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2598 if test -n "$ac_ct_STRIP"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2600 $as_echo "$ac_ct_STRIP" >&6; }
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603 $as_echo "no" >&6; }
2606 if test "x$ac_ct_STRIP" = x; then
2609 case $cross_compiling:$ac_tool_warned in
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2613 ac_tool_warned=yes ;;
2618 STRIP="$ac_cv_prog_STRIP"
2622 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2625 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2626 if test -z "$MKDIR_P"; then
2627 if ${ac_cv_path_mkdir+:} false; then :
2628 $as_echo_n "(cached) " >&6
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2634 test -z "$as_dir" && as_dir=.
2635 for ac_prog in mkdir gmkdir; do
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2638 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2639 'mkdir (GNU coreutils) '* | \
2640 'mkdir (coreutils) '* | \
2641 'mkdir (fileutils) '4.1*)
2642 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2652 test -d ./--version && rmdir ./--version
2653 if test "${ac_cv_path_mkdir+set}" = set; then
2654 MKDIR_P="$ac_cv_path_mkdir -p"
2656 # As a last resort, use the slow shell script. Don't cache a
2657 # value for MKDIR_P within a source directory, because that will
2658 # break other packages using the cache if that directory is
2659 # removed, or if the value is a relative name.
2660 MKDIR_P="$ac_install_sh -d"
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2664 $as_echo "$MKDIR_P" >&6; }
2666 for ac_prog in gawk mawk nawk awk
2668 # Extract the first word of "$ac_prog", so it can be a program name with args.
2669 set dummy $ac_prog; ac_word=$2
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2671 $as_echo_n "checking for $ac_word... " >&6; }
2672 if ${ac_cv_prog_AWK+:} false; then :
2673 $as_echo_n "(cached) " >&6
2675 if test -n "$AWK"; then
2676 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2685 ac_cv_prog_AWK="$ac_prog"
2686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 if test -n "$AWK"; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2698 $as_echo "$AWK" >&6; }
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701 $as_echo "no" >&6; }
2705 test -n "$AWK" && break
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2709 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2711 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2712 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2713 $as_echo_n "(cached) " >&6
2715 cat >conftest.make <<\_ACEOF
2718 @echo '@@@%%%=$(MAKE)=@@@%%%'
2720 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2721 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2723 eval ac_cv_prog_make_${ac_make}_set=yes;;
2725 eval ac_cv_prog_make_${ac_make}_set=no;;
2729 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2731 $as_echo "yes" >&6; }
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2736 SET_MAKE="MAKE=${MAKE-make}"
2739 rm -rf .tst 2>/dev/null
2740 mkdir .tst 2>/dev/null
2741 if test -d .tst; then
2746 rmdir .tst 2>/dev/null
2748 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2749 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2750 # is not polluted with repeated "-I."
2751 am__isrc=' -I$(srcdir)'
2752 # test to see if srcdir already configured
2753 if test -f $srcdir/config.status; then
2754 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2758 # test whether we have cygpath
2759 if test -z "$CYGPATH_W"; then
2760 if (cygpath --version) >/dev/null 2>/dev/null; then
2761 CYGPATH_W='cygpath -w'
2768 # Define the identity of the package.
2773 cat >>confdefs.h <<_ACEOF
2774 #define PACKAGE "$PACKAGE"
2778 cat >>confdefs.h <<_ACEOF
2779 #define VERSION "$VERSION"
2782 # Some tools Automake needs.
2784 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2787 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2790 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2793 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2796 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2798 # For better backward compatibility. To be removed once Automake 1.9.x
2799 # dies out for good. For more background, see:
2800 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2801 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2802 mkdir_p='$(MKDIR_P)'
2804 # We need awk for the "check" target. The system "awk" is bad on
2806 # Always define AMTAR for backward compatibility. Yes, it's still used
2807 # in the wild :-( We should find a proper way to deprecate it ...
2811 # We'll loop over all known methods to create a tar archive until one works.
2812 _am_tools='gnutar pax cpio none'
2814 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2822 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2824 # Make sure we can run config.sub.
2825 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2826 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2829 $as_echo_n "checking build system type... " >&6; }
2830 if ${ac_cv_build+:} false; then :
2831 $as_echo_n "(cached) " >&6
2833 ac_build_alias=$build_alias
2834 test "x$ac_build_alias" = x &&
2835 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2836 test "x$ac_build_alias" = x &&
2837 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2838 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2839 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2843 $as_echo "$ac_cv_build" >&6; }
2844 case $ac_cv_build in
2846 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2849 ac_save_IFS=$IFS; IFS='-'
2855 # Remember, the first character of IFS is used to create $*,
2856 # except with old shells:
2859 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2863 $as_echo_n "checking host system type... " >&6; }
2864 if ${ac_cv_host+:} false; then :
2865 $as_echo_n "(cached) " >&6
2867 if test "x$host_alias" = x; then
2868 ac_cv_host=$ac_cv_build
2870 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2871 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2876 $as_echo "$ac_cv_host" >&6; }
2879 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2882 ac_save_IFS=$IFS; IFS='-'
2888 # Remember, the first character of IFS is used to create $*,
2889 # except with old shells:
2892 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build time linking with Python (Darwin and Win32)" >&5
2896 $as_echo_n "checking for build time linking with Python (Darwin and Win32)... " >&6; }
2898 *-*-mingw*|*-*-cygwin*)
2900 link_python_libs=yes
2905 link_python_libs=yes
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $link_python_libs" >&5
2915 $as_echo "$link_python_libs" >&6; }
2916 if test "$os_win32" = "yes"; then
2927 cat >>confdefs.h <<_ACEOF
2928 #define OS_EXT "$OS_EXT"
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2936 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2941 macro_version='2.4.2'
2942 macro_revision='1.3337'
2956 ltmain="$ac_aux_dir/ltmain.sh"
2958 # Backslashify metacharacters that are still active within
2959 # double-quoted strings.
2960 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2962 # Same as above, but do not quote variable references.
2963 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2965 # Sed substitution to delay expansion of an escaped shell variable in a
2966 # double_quote_subst'ed string.
2967 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2969 # Sed substitution to delay expansion of an escaped single quote.
2970 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2972 # Sed substitution to avoid accidental globbing in evaled expressions
2973 no_glob_subst='s/\*/\\\*/g'
2975 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2976 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2977 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2980 $as_echo_n "checking how to print strings... " >&6; }
2981 # Test print first, because it will be a builtin if present.
2982 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2983 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2985 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2988 # Use this function as a fallback that always works.
2989 func_fallback_echo ()
2991 eval 'cat <<_LTECHO_EOF
2995 ECHO='func_fallback_echo'
2998 # func_echo_all arg...
2999 # Invoke $ECHO with all args, space-separated.
3006 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3007 $as_echo "printf" >&6; } ;;
3008 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3009 $as_echo "print -r" >&6; } ;;
3010 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3011 $as_echo "cat" >&6; } ;;
3027 DEPDIR="${am__leading_dot}deps"
3029 ac_config_commands="$ac_config_commands depfiles"
3032 am_make=${MAKE-make}
3033 cat > confinc << 'END'
3035 @echo this is the am__doit target
3038 # If we don't find an include directive, just comment out the code.
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3040 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3044 # First try GNU make style include.
3045 echo "include confinc" > confmf
3046 # Ignore all kinds of additional output from 'make'.
3047 case `$am_make -s -f confmf 2> /dev/null` in #(
3048 *the\ am__doit\ target*)
3054 # Now try BSD make style include.
3055 if test "$am__include" = "#"; then
3056 echo '.include "confinc"' > confmf
3057 case `$am_make -s -f confmf 2> /dev/null` in #(
3058 *the\ am__doit\ target*)
3059 am__include=.include
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3068 $as_echo "$_am_result" >&6; }
3069 rm -f confinc confmf
3071 # Check whether --enable-dependency-tracking was given.
3072 if test "${enable_dependency_tracking+set}" = set; then :
3073 enableval=$enable_dependency_tracking;
3076 if test "x$enable_dependency_tracking" != xno; then
3077 am_depcomp="$ac_aux_dir/depcomp"
3081 if test "x$enable_dependency_tracking" != xno; then
3091 ac_cpp='$CPP $CPPFLAGS'
3092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3095 if test -n "$ac_tool_prefix"; then
3096 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3097 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099 $as_echo_n "checking for $ac_word... " >&6; }
3100 if ${ac_cv_prog_CC+:} false; then :
3101 $as_echo_n "(cached) " >&6
3103 if test -n "$CC"; then
3104 ac_cv_prog_CC="$CC" # Let the user override the test.
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 test -z "$as_dir" && as_dir=.
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3113 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 if test -n "$CC"; then
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3126 $as_echo "$CC" >&6; }
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129 $as_echo "no" >&6; }
3134 if test -z "$ac_cv_prog_CC"; then
3136 # Extract the first word of "gcc", so it can be a program name with args.
3137 set dummy gcc; ac_word=$2
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3139 $as_echo_n "checking for $ac_word... " >&6; }
3140 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3141 $as_echo_n "(cached) " >&6
3143 if test -n "$ac_ct_CC"; then
3144 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 test -z "$as_dir" && as_dir=.
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3153 ac_cv_prog_ac_ct_CC="gcc"
3154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3164 if test -n "$ac_ct_CC"; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3166 $as_echo "$ac_ct_CC" >&6; }
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169 $as_echo "no" >&6; }
3172 if test "x$ac_ct_CC" = x; then
3175 case $cross_compiling:$ac_tool_warned in
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3179 ac_tool_warned=yes ;;
3187 if test -z "$CC"; then
3188 if test -n "$ac_tool_prefix"; then
3189 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3190 set dummy ${ac_tool_prefix}cc; ac_word=$2
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if ${ac_cv_prog_CC+:} false; then :
3194 $as_echo_n "(cached) " >&6
3196 if test -n "$CC"; then
3197 ac_cv_prog_CC="$CC" # Let the user override the test.
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3206 ac_cv_prog_CC="${ac_tool_prefix}cc"
3207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 if test -n "$CC"; then
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3219 $as_echo "$CC" >&6; }
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3228 if test -z "$CC"; then
3229 # Extract the first word of "cc", so it can be a program name with args.
3230 set dummy cc; ac_word=$2
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232 $as_echo_n "checking for $ac_word... " >&6; }
3233 if ${ac_cv_prog_CC+:} false; then :
3234 $as_echo_n "(cached) " >&6
3236 if test -n "$CC"; then
3237 ac_cv_prog_CC="$CC" # Let the user override the test.
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 test -z "$as_dir" && as_dir=.
3245 for ac_exec_ext in '' $ac_executable_extensions; do
3246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3247 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3248 ac_prog_rejected=yes
3252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 if test $ac_prog_rejected = yes; then
3260 # We found a bogon in the path, so make sure we never use it.
3261 set dummy $ac_cv_prog_CC
3263 if test $# != 0; then
3264 # We chose a different compiler from the bogus one.
3265 # However, it has the same basename, so the bogon will be chosen
3266 # first if we set CC to just the basename; use the full file name.
3268 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3274 if test -n "$CC"; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3276 $as_echo "$CC" >&6; }
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279 $as_echo "no" >&6; }
3284 if test -z "$CC"; then
3285 if test -n "$ac_tool_prefix"; then
3286 for ac_prog in cl.exe
3288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3291 $as_echo_n "checking for $ac_word... " >&6; }
3292 if ${ac_cv_prog_CC+:} false; then :
3293 $as_echo_n "(cached) " >&6
3295 if test -n "$CC"; then
3296 ac_cv_prog_CC="$CC" # Let the user override the test.
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 test -z "$as_dir" && as_dir=.
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3316 if test -n "$CC"; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3318 $as_echo "$CC" >&6; }
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3325 test -n "$CC" && break
3328 if test -z "$CC"; then
3330 for ac_prog in cl.exe
3332 # Extract the first word of "$ac_prog", so it can be a program name with args.
3333 set dummy $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_ac_ct_CC+:} false; then :
3337 $as_echo_n "(cached) " >&6
3339 if test -n "$ac_ct_CC"; then
3340 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$ac_prog"
3350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3359 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3360 if test -n "$ac_ct_CC"; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3362 $as_echo "$ac_ct_CC" >&6; }
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3369 test -n "$ac_ct_CC" && break
3372 if test "x$ac_ct_CC" = x; then
3375 case $cross_compiling:$ac_tool_warned in
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3379 ac_tool_warned=yes ;;
3388 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3390 as_fn_error $? "no acceptable C compiler found in \$PATH
3391 See \`config.log' for more details" "$LINENO" 5; }
3393 # Provide some information about the compiler.
3394 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3397 for ac_option in --version -v -V -qversion; do
3398 { { ac_try="$ac_compiler $ac_option >&5"
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3404 $as_echo "$ac_try_echo"; } >&5
3405 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3407 if test -s conftest.err; then
3409 ... rest of stderr output deleted ...
3410 10q' conftest.err >conftest.er1
3411 cat conftest.er1 >&5
3413 rm -f conftest.er1 conftest.err
3414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3415 test $ac_status = 0; }
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3429 ac_clean_files_save=$ac_clean_files
3430 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3431 # Try to create an executable without -o first, disregard a.out.
3432 # It will help us diagnose broken compilers, and finding out an intuition
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3435 $as_echo_n "checking whether the C compiler works... " >&6; }
3436 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3438 # The possible output files:
3439 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3442 for ac_file in $ac_files
3445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3446 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3451 if { { ac_try="$ac_link_default"
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457 $as_echo "$ac_try_echo"; } >&5
3458 (eval "$ac_link_default") 2>&5
3460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3461 test $ac_status = 0; }; then :
3462 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3463 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3464 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3465 # so that the user can short-circuit this test for compilers unknown to
3467 for ac_file in $ac_files ''
3469 test -f "$ac_file" || continue
3471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3474 # We found the default executable, but exeext='' is most
3478 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3480 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3482 # We set ac_cv_exeext here because the later test for it is not
3483 # safe: cross compilers may not add the suffix if given an `-o'
3484 # argument, so we may need to know it at that point already.
3485 # Even if this section looks crufty: it has the advantage of
3492 test "$ac_cv_exeext" = no && ac_cv_exeext=
3497 if test -z "$ac_file"; then :
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499 $as_echo "no" >&6; }
3500 $as_echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3505 as_fn_error 77 "C compiler cannot create executables
3506 See \`config.log' for more details" "$LINENO" 5; }
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3509 $as_echo "yes" >&6; }
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3512 $as_echo_n "checking for C compiler default output file name... " >&6; }
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3514 $as_echo "$ac_file" >&6; }
3515 ac_exeext=$ac_cv_exeext
3517 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3518 ac_clean_files=$ac_clean_files_save
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3520 $as_echo_n "checking for suffix of executables... " >&6; }
3521 if { { ac_try="$ac_link"
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3527 $as_echo "$ac_try_echo"; } >&5
3528 (eval "$ac_link") 2>&5
3530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3531 test $ac_status = 0; }; then :
3532 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3533 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3534 # work properly (i.e., refer to `conftest.exe'), while it won't with
3536 for ac_file in conftest.exe conftest conftest.*; do
3537 test -f "$ac_file" || continue
3539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3540 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3548 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3549 See \`config.log' for more details" "$LINENO" 5; }
3551 rm -f conftest conftest$ac_cv_exeext
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3553 $as_echo "$ac_cv_exeext" >&6; }
3555 rm -f conftest.$ac_ext
3556 EXEEXT=$ac_cv_exeext
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3564 FILE *f = fopen ("conftest.out", "w");
3565 return ferror (f) || fclose (f) != 0;
3571 ac_clean_files="$ac_clean_files conftest.out"
3572 # Check that the compiler produces executables we can run. If not, either
3573 # the compiler is broken, or we cross compile.
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3575 $as_echo_n "checking whether we are cross compiling... " >&6; }
3576 if test "$cross_compiling" != yes; then
3577 { { ac_try="$ac_link"
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3583 $as_echo "$ac_try_echo"; } >&5
3584 (eval "$ac_link") 2>&5
3586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3587 test $ac_status = 0; }
3588 if { ac_try='./conftest$ac_cv_exeext'
3589 { { case "(($ac_try" in
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3594 $as_echo "$ac_try_echo"; } >&5
3595 (eval "$ac_try") 2>&5
3597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3598 test $ac_status = 0; }; }; then
3601 if test "$cross_compiling" = maybe; then
3604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3606 as_fn_error $? "cannot run C compiled programs.
3607 If you meant to cross compile, use \`--host'.
3608 See \`config.log' for more details" "$LINENO" 5; }
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3613 $as_echo "$cross_compiling" >&6; }
3615 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3616 ac_clean_files=$ac_clean_files_save
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3618 $as_echo_n "checking for suffix of object files... " >&6; }
3619 if ${ac_cv_objext+:} false; then :
3620 $as_echo_n "(cached) " >&6
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3633 rm -f conftest.o conftest.obj
3634 if { { ac_try="$ac_compile"
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3640 $as_echo "$ac_try_echo"; } >&5
3641 (eval "$ac_compile") 2>&5
3643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3644 test $ac_status = 0; }; then :
3645 for ac_file in conftest.o conftest.obj conftest.*; do
3646 test -f "$ac_file" || continue;
3648 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3649 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3654 $as_echo "$as_me: failed program was:" >&5
3655 sed 's/^/| /' conftest.$ac_ext >&5
3657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3659 as_fn_error $? "cannot compute suffix of object files: cannot compile
3660 See \`config.log' for more details" "$LINENO" 5; }
3662 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3665 $as_echo "$ac_cv_objext" >&6; }
3666 OBJEXT=$ac_cv_objext
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3669 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3670 if ${ac_cv_c_compiler_gnu+:} false; then :
3671 $as_echo_n "(cached) " >&6
3673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674 /* end confdefs.h. */
3687 if ac_fn_c_try_compile "$LINENO"; then :
3692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3697 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3698 if test $ac_compiler_gnu = yes; then
3703 ac_test_CFLAGS=${CFLAGS+set}
3704 ac_save_CFLAGS=$CFLAGS
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3706 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3707 if ${ac_cv_prog_cc_g+:} false; then :
3708 $as_echo_n "(cached) " >&6
3710 ac_save_c_werror_flag=$ac_c_werror_flag
3711 ac_c_werror_flag=yes
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h. */
3725 if ac_fn_c_try_compile "$LINENO"; then :
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3740 if ac_fn_c_try_compile "$LINENO"; then :
3743 ac_c_werror_flag=$ac_save_c_werror_flag
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3756 if ac_fn_c_try_compile "$LINENO"; then :
3759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3764 ac_c_werror_flag=$ac_save_c_werror_flag
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3767 $as_echo "$ac_cv_prog_cc_g" >&6; }
3768 if test "$ac_test_CFLAGS" = set; then
3769 CFLAGS=$ac_save_CFLAGS
3770 elif test $ac_cv_prog_cc_g = yes; then
3771 if test "$GCC" = yes; then
3777 if test "$GCC" = yes; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3784 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3785 if ${ac_cv_prog_cc_c89+:} false; then :
3786 $as_echo_n "(cached) " >&6
3788 ac_cv_prog_cc_c89=no
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3795 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3796 struct buf { int x; };
3797 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3798 static char *e (p, i)
3804 static char *f (char * (*g) (char **, int), char **p, ...)
3809 s = g (p, va_arg (v,int));
3814 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3815 function prototypes and stuff, but not '\xHH' hex character constants.
3816 These don't provoke an error unfortunately, instead are silently treated
3817 as 'x'. The following induces an error, until -std is added to get
3818 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3819 array size at least. It's necessary to write '\x00'==0 to get something
3820 that's true only with -std. */
3821 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3823 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3824 inside strings and character constants. */
3826 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3828 int test (int i, double x);
3829 struct s1 {int (*f) (int a);};
3830 struct s2 {int (*f) (double a);};
3831 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3837 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3842 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3843 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3845 CC="$ac_save_CC $ac_arg"
3846 if ac_fn_c_try_compile "$LINENO"; then :
3847 ac_cv_prog_cc_c89=$ac_arg
3849 rm -f core conftest.err conftest.$ac_objext
3850 test "x$ac_cv_prog_cc_c89" != "xno" && break
3852 rm -f conftest.$ac_ext
3857 case "x$ac_cv_prog_cc_c89" in
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3860 $as_echo "none needed" >&6; } ;;
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3863 $as_echo "unsupported" >&6; } ;;
3865 CC="$CC $ac_cv_prog_cc_c89"
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3867 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3869 if test "x$ac_cv_prog_cc_c89" != xno; then :
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3879 depcc="$CC" am_compiler_list=
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3882 $as_echo_n "checking dependency style of $depcc... " >&6; }
3883 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3884 $as_echo_n "(cached) " >&6
3886 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3887 # We make a subdir and do the tests there. Otherwise we can end up
3888 # making bogus files that we don't know about and never remove. For
3889 # instance it was reported that on HP-UX the gcc test will end up
3890 # making a dummy file named 'D' -- because '-MD' means "put the output
3894 # Copy depcomp to subdir because otherwise we won't find it if we're
3895 # using a relative directory.
3896 cp "$am_depcomp" conftest.dir
3898 # We will build objects and dependencies in a subdirectory because
3899 # it helps to detect inapplicable dependency modes. For instance
3900 # both Tru64's cc and ICC support -MD to output dependencies as a
3901 # side effect of compilation, but ICC will put the dependencies in
3902 # the current directory while Tru64 will put them in the object
3906 am_cv_CC_dependencies_compiler_type=none
3907 if test "$am_compiler_list" = ""; then
3908 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3911 case " $depcc " in #(
3912 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3915 for depmode in $am_compiler_list; do
3916 # Setup a source with many dependencies, because some compilers
3917 # like to wrap large dependency lists on column 80 (with \), and
3918 # we should not choose a depcomp mode which is confused by this.
3920 # We need to recreate these files for each test, as the compiler may
3921 # overwrite some of them when testing with obscure command lines.
3922 # This happens at least with the AIX C compiler.
3924 for i in 1 2 3 4 5 6; do
3925 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3926 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3927 # Solaris 10 /bin/sh.
3928 echo '/* dummy */' > sub/conftst$i.h
3930 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3932 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3933 # mode. It turns out that the SunPro C++ compiler does not properly
3934 # handle '-M -o', and we need to detect this. Also, some Intel
3935 # versions had trouble with output in subdirs.
3936 am__obj=sub/conftest.${OBJEXT-o}
3937 am__minus_obj="-o $am__obj"
3940 # This depmode causes a compiler race in universal mode.
3941 test "$am__universal" = false || continue
3944 # After this tag, mechanisms are not by side-effect, so they'll
3945 # only be used when explicitly requested.
3946 if test "x$enable_dependency_tracking" = xyes; then
3952 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3953 # This compiler won't grok '-c -o', but also, the minuso test has
3954 # not run yet. These depmodes are late enough in the game, and
3955 # so weak that their functioning should not be impacted.
3956 am__obj=conftest.${OBJEXT-o}
3961 if depmode=$depmode \
3962 source=sub/conftest.c object=$am__obj \
3963 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3964 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3965 >/dev/null 2>conftest.err &&
3966 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3967 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3968 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3969 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3970 # icc doesn't choke on unknown options, it will just issue warnings
3971 # or remarks (even with -Werror). So we grep stderr for any message
3972 # that says an option was ignored or not supported.
3973 # When given -MP, icc 7.0 and 7.1 complain thusly:
3974 # icc: Command line warning: ignoring option '-M'; no argument required
3975 # The diagnosis changed in icc 8.0:
3976 # icc: Command line remark: option '-MP' not supported
3977 if (grep 'ignoring option' conftest.err ||
3978 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3979 am_cv_CC_dependencies_compiler_type=$depmode
3988 am_cv_CC_dependencies_compiler_type=none
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3993 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3994 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3997 test "x$enable_dependency_tracking" != xno \
3998 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4000 am__fastdepCC_FALSE='#'
4002 am__fastdepCC_TRUE='#'
4003 am__fastdepCC_FALSE=
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4008 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4009 if ${ac_cv_path_SED+:} false; then :
4010 $as_echo_n "(cached) " >&6
4012 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4013 for ac_i in 1 2 3 4 5 6 7; do
4014 ac_script="$ac_script$as_nl$ac_script"
4016 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4017 { ac_script=; unset ac_script;}
4018 if test -z "$SED"; then
4019 ac_path_SED_found=false
4020 # Loop through the user's path and test for each of PROGNAME-LIST
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 test -z "$as_dir" && as_dir=.
4026 for ac_prog in sed gsed; do
4027 for ac_exec_ext in '' $ac_executable_extensions; do
4028 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4029 as_fn_executable_p "$ac_path_SED" || continue
4030 # Check for GNU ac_path_SED and select it if it is found.
4031 # Check for GNU $ac_path_SED
4032 case `"$ac_path_SED" --version 2>&1` in
4034 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4037 $as_echo_n 0123456789 >"conftest.in"
4040 cat "conftest.in" "conftest.in" >"conftest.tmp"
4041 mv "conftest.tmp" "conftest.in"
4042 cp "conftest.in" "conftest.nl"
4043 $as_echo '' >> "conftest.nl"
4044 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4045 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4046 as_fn_arith $ac_count + 1 && ac_count=$as_val
4047 if test $ac_count -gt ${ac_path_SED_max-0}; then
4048 # Best one so far, save it but keep looking for a better one
4049 ac_cv_path_SED="$ac_path_SED"
4050 ac_path_SED_max=$ac_count
4052 # 10*(2^10) chars as input seems more than enough
4053 test $ac_count -gt 10 && break
4055 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4058 $ac_path_SED_found && break 3
4063 if test -z "$ac_cv_path_SED"; then
4064 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4072 $as_echo "$ac_cv_path_SED" >&6; }
4073 SED="$ac_cv_path_SED"
4076 test -z "$SED" && SED=sed
4077 Xsed="$SED -e 1s/^X//"
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4090 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4091 if ${ac_cv_path_GREP+:} false; then :
4092 $as_echo_n "(cached) " >&6
4094 if test -z "$GREP"; then
4095 ac_path_GREP_found=false
4096 # Loop through the user's path and test for each of PROGNAME-LIST
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4101 test -z "$as_dir" && as_dir=.
4102 for ac_prog in grep ggrep; do
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4105 as_fn_executable_p "$ac_path_GREP" || continue
4106 # Check for GNU ac_path_GREP and select it if it is found.
4107 # Check for GNU $ac_path_GREP
4108 case `"$ac_path_GREP" --version 2>&1` in
4110 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4113 $as_echo_n 0123456789 >"conftest.in"
4116 cat "conftest.in" "conftest.in" >"conftest.tmp"
4117 mv "conftest.tmp" "conftest.in"
4118 cp "conftest.in" "conftest.nl"
4119 $as_echo 'GREP' >> "conftest.nl"
4120 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4121 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4122 as_fn_arith $ac_count + 1 && ac_count=$as_val
4123 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4124 # Best one so far, save it but keep looking for a better one
4125 ac_cv_path_GREP="$ac_path_GREP"
4126 ac_path_GREP_max=$ac_count
4128 # 10*(2^10) chars as input seems more than enough
4129 test $ac_count -gt 10 && break
4131 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4134 $ac_path_GREP_found && break 3
4139 if test -z "$ac_cv_path_GREP"; then
4140 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4143 ac_cv_path_GREP=$GREP
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4148 $as_echo "$ac_cv_path_GREP" >&6; }
4149 GREP="$ac_cv_path_GREP"
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4153 $as_echo_n "checking for egrep... " >&6; }
4154 if ${ac_cv_path_EGREP+:} false; then :
4155 $as_echo_n "(cached) " >&6
4157 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4158 then ac_cv_path_EGREP="$GREP -E"
4160 if test -z "$EGREP"; then
4161 ac_path_EGREP_found=false
4162 # Loop through the user's path and test for each of PROGNAME-LIST
4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4167 test -z "$as_dir" && as_dir=.
4168 for ac_prog in egrep; do
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4171 as_fn_executable_p "$ac_path_EGREP" || continue
4172 # Check for GNU ac_path_EGREP and select it if it is found.
4173 # Check for GNU $ac_path_EGREP
4174 case `"$ac_path_EGREP" --version 2>&1` in
4176 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4179 $as_echo_n 0123456789 >"conftest.in"
4182 cat "conftest.in" "conftest.in" >"conftest.tmp"
4183 mv "conftest.tmp" "conftest.in"
4184 cp "conftest.in" "conftest.nl"
4185 $as_echo 'EGREP' >> "conftest.nl"
4186 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4188 as_fn_arith $ac_count + 1 && ac_count=$as_val
4189 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4190 # Best one so far, save it but keep looking for a better one
4191 ac_cv_path_EGREP="$ac_path_EGREP"
4192 ac_path_EGREP_max=$ac_count
4194 # 10*(2^10) chars as input seems more than enough
4195 test $ac_count -gt 10 && break
4197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4200 $ac_path_EGREP_found && break 3
4205 if test -z "$ac_cv_path_EGREP"; then
4206 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4209 ac_cv_path_EGREP=$EGREP
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4215 $as_echo "$ac_cv_path_EGREP" >&6; }
4216 EGREP="$ac_cv_path_EGREP"
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4220 $as_echo_n "checking for fgrep... " >&6; }
4221 if ${ac_cv_path_FGREP+:} false; then :
4222 $as_echo_n "(cached) " >&6
4224 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4225 then ac_cv_path_FGREP="$GREP -F"
4227 if test -z "$FGREP"; then
4228 ac_path_FGREP_found=false
4229 # Loop through the user's path and test for each of PROGNAME-LIST
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4234 test -z "$as_dir" && as_dir=.
4235 for ac_prog in fgrep; do
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4238 as_fn_executable_p "$ac_path_FGREP" || continue
4239 # Check for GNU ac_path_FGREP and select it if it is found.
4240 # Check for GNU $ac_path_FGREP
4241 case `"$ac_path_FGREP" --version 2>&1` in
4243 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4246 $as_echo_n 0123456789 >"conftest.in"
4249 cat "conftest.in" "conftest.in" >"conftest.tmp"
4250 mv "conftest.tmp" "conftest.in"
4251 cp "conftest.in" "conftest.nl"
4252 $as_echo 'FGREP' >> "conftest.nl"
4253 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4255 as_fn_arith $ac_count + 1 && ac_count=$as_val
4256 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4257 # Best one so far, save it but keep looking for a better one
4258 ac_cv_path_FGREP="$ac_path_FGREP"
4259 ac_path_FGREP_max=$ac_count
4261 # 10*(2^10) chars as input seems more than enough
4262 test $ac_count -gt 10 && break
4264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4267 $ac_path_FGREP_found && break 3
4272 if test -z "$ac_cv_path_FGREP"; then
4273 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4276 ac_cv_path_FGREP=$FGREP
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4282 $as_echo "$ac_cv_path_FGREP" >&6; }
4283 FGREP="$ac_cv_path_FGREP"
4286 test -z "$GREP" && GREP=grep
4306 # Check whether --with-gnu-ld was given.
4307 if test "${with_gnu_ld+set}" = set; then :
4308 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4314 if test "$GCC" = yes; then
4315 # Check if gcc -print-prog-name=ld gives a path.
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4317 $as_echo_n "checking for ld used by $CC... " >&6; }
4320 # gcc leaves a trailing carriage return which upsets mingw
4321 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4323 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4326 # Accept absolute paths.
4328 re_direlt='/[^/][^/]*/\.\./'
4329 # Canonicalize the pathname of ld
4330 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4331 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4332 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4334 test -z "$LD" && LD="$ac_prog"
4337 # If it fails, then pretend we aren't using GCC.
4341 # If it is relative, then search for the first ld in PATH.
4345 elif test "$with_gnu_ld" = yes; then
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4347 $as_echo_n "checking for GNU ld... " >&6; }
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4350 $as_echo_n "checking for non-GNU ld... " >&6; }
4352 if ${lt_cv_path_LD+:} false; then :
4353 $as_echo_n "(cached) " >&6
4355 if test -z "$LD"; then
4356 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4357 for ac_dir in $PATH; do
4359 test -z "$ac_dir" && ac_dir=.
4360 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4361 lt_cv_path_LD="$ac_dir/$ac_prog"
4362 # Check to see if the program is GNU ld. I'd rather use --version,
4363 # but apparently some variants of GNU ld only accept -v.
4364 # Break only if it was the GNU/non-GNU ld that we prefer.
4365 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4366 *GNU* | *'with BFD'*)
4367 test "$with_gnu_ld" != no && break
4370 test "$with_gnu_ld" != yes && break
4377 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4382 if test -n "$LD"; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4384 $as_echo "$LD" >&6; }
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4389 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4391 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4392 if ${lt_cv_prog_gnu_ld+:} false; then :
4393 $as_echo_n "(cached) " >&6
4395 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4396 case `$LD -v 2>&1 </dev/null` in
4397 *GNU* | *'with BFD'*)
4398 lt_cv_prog_gnu_ld=yes
4401 lt_cv_prog_gnu_ld=no
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4406 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4407 with_gnu_ld=$lt_cv_prog_gnu_ld
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4418 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4419 if ${lt_cv_path_NM+:} false; then :
4420 $as_echo_n "(cached) " >&6
4422 if test -n "$NM"; then
4423 # Let the user override the test.
4426 lt_nm_to_check="${ac_tool_prefix}nm"
4427 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4428 lt_nm_to_check="$lt_nm_to_check nm"
4430 for lt_tmp_nm in $lt_nm_to_check; do
4431 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4432 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4434 test -z "$ac_dir" && ac_dir=.
4435 tmp_nm="$ac_dir/$lt_tmp_nm"
4436 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4437 # Check to see if the nm accepts a BSD-compat flag.
4438 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4439 # nm: unknown option "B" ignored
4440 # Tru64's nm complains that /dev/null is an invalid object file
4441 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4442 */dev/null* | *'Invalid file or object type'*)
4443 lt_cv_path_NM="$tmp_nm -B"
4447 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4449 lt_cv_path_NM="$tmp_nm -p"
4453 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4454 continue # so that we can try to find one that supports BSD flags
4463 : ${lt_cv_path_NM=no}
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4467 $as_echo "$lt_cv_path_NM" >&6; }
4468 if test "$lt_cv_path_NM" != "no"; then
4471 # Didn't find any BSD compatible name lister, look for dumpbin.
4472 if test -n "$DUMPBIN"; then :
4473 # Let the user override the test.
4475 if test -n "$ac_tool_prefix"; then
4476 for ac_prog in dumpbin "link -dump"
4478 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4479 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4481 $as_echo_n "checking for $ac_word... " >&6; }
4482 if ${ac_cv_prog_DUMPBIN+:} false; then :
4483 $as_echo_n "(cached) " >&6
4485 if test -n "$DUMPBIN"; then
4486 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 test -z "$as_dir" && as_dir=.
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4495 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4505 DUMPBIN=$ac_cv_prog_DUMPBIN
4506 if test -n "$DUMPBIN"; then
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4508 $as_echo "$DUMPBIN" >&6; }
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4511 $as_echo "no" >&6; }
4515 test -n "$DUMPBIN" && break
4518 if test -z "$DUMPBIN"; then
4519 ac_ct_DUMPBIN=$DUMPBIN
4520 for ac_prog in dumpbin "link -dump"
4522 # Extract the first word of "$ac_prog", so it can be a program name with args.
4523 set dummy $ac_prog; ac_word=$2
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4525 $as_echo_n "checking for $ac_word... " >&6; }
4526 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4527 $as_echo_n "(cached) " >&6
4529 if test -n "$ac_ct_DUMPBIN"; then
4530 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 test -z "$as_dir" && as_dir=.
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4539 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4549 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4550 if test -n "$ac_ct_DUMPBIN"; then
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4552 $as_echo "$ac_ct_DUMPBIN" >&6; }
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555 $as_echo "no" >&6; }
4559 test -n "$ac_ct_DUMPBIN" && break
4562 if test "x$ac_ct_DUMPBIN" = x; then
4565 case $cross_compiling:$ac_tool_warned in
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4569 ac_tool_warned=yes ;;
4571 DUMPBIN=$ac_ct_DUMPBIN
4575 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4577 DUMPBIN="$DUMPBIN -symbols"
4585 if test "$DUMPBIN" != ":"; then
4589 test -z "$NM" && NM=nm
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4597 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4598 if ${lt_cv_nm_interface+:} false; then :
4599 $as_echo_n "(cached) " >&6
4601 lt_cv_nm_interface="BSD nm"
4602 echo "int some_variable = 0;" > conftest.$ac_ext
4603 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4604 (eval "$ac_compile" 2>conftest.err)
4605 cat conftest.err >&5
4606 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4607 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4608 cat conftest.err >&5
4609 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4610 cat conftest.out >&5
4611 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4612 lt_cv_nm_interface="MS dumpbin"
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4617 $as_echo "$lt_cv_nm_interface" >&6; }
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4620 $as_echo_n "checking whether ln -s works... " >&6; }
4622 if test "$LN_S" = "ln -s"; then
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4624 $as_echo "yes" >&6; }
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4627 $as_echo "no, using $LN_S" >&6; }
4630 # find the maximum length of command line arguments
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4632 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4633 if ${lt_cv_sys_max_cmd_len+:} false; then :
4634 $as_echo_n "(cached) " >&6
4641 # On DJGPP, this test can blow up pretty badly due to problems in libc
4642 # (any single argument exceeding 2000 bytes causes a buffer overrun
4643 # during glob expansion). Even if it were fixed, the result of this
4644 # check would be larger than it should be.
4645 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4649 # Under GNU Hurd, this test is not required because there is
4650 # no limit to the length of command line arguments.
4651 # Libtool will interpret -1 as no limit whatsoever
4652 lt_cv_sys_max_cmd_len=-1;
4655 cygwin* | mingw* | cegcc*)
4656 # On Win9x/ME, this test blows up -- it succeeds, but takes
4657 # about 5 minutes as the teststring grows exponentially.
4658 # Worse, since 9x/ME are not pre-emptively multitasking,
4659 # you end up with a "frozen" computer, even though with patience
4660 # the test eventually succeeds (with a max line length of 256k).
4661 # Instead, let's just punt: use the minimum linelength reported by
4662 # all of the supported platforms: 8192 (on NT/2K/XP).
4663 lt_cv_sys_max_cmd_len=8192;
4667 # On MiNT this can take a long time and run out of memory.
4668 lt_cv_sys_max_cmd_len=8192;
4672 # On AmigaOS with pdksh, this test takes hours, literally.
4673 # So we just punt and use a minimum line length of 8192.
4674 lt_cv_sys_max_cmd_len=8192;
4677 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4678 # This has been around since 386BSD, at least. Likely further.
4679 if test -x /sbin/sysctl; then
4680 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4681 elif test -x /usr/sbin/sysctl; then
4682 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4684 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4686 # And add a safety zone
4687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4688 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4692 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4693 lt_cv_sys_max_cmd_len=196608
4697 # The test takes a long time on OS/2.
4698 lt_cv_sys_max_cmd_len=8192
4702 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4703 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4704 # nice to cause kernel panics so lets avoid the loop below.
4705 # First set a reasonable default.
4706 lt_cv_sys_max_cmd_len=16384
4708 if test -x /sbin/sysconfig; then
4709 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4710 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4715 lt_cv_sys_max_cmd_len=102400
4717 sysv5* | sco5v6* | sysv4.2uw2*)
4718 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4719 if test -n "$kargmax"; then
4720 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4722 lt_cv_sys_max_cmd_len=32768
4726 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4727 if test -n "$lt_cv_sys_max_cmd_len"; then
4728 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4729 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4731 # Make teststring a little bigger before we do anything with it.
4732 # a 1K string should be a reasonable start.
4733 for i in 1 2 3 4 5 6 7 8 ; do
4734 teststring=$teststring$teststring
4736 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4737 # If test is not a shell built-in, we'll probably end up computing a
4738 # maximum length that is only half of the actual maximum length, but
4740 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4741 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4742 test $i != 17 # 1/2 MB should be enough
4745 teststring=$teststring$teststring
4747 # Only check the string length outside the loop.
4748 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4750 # Add a significant safety factor because C++ compilers can tack on
4751 # massive amounts of additional arguments before passing them to the
4752 # linker. It appears as though 1/2 is a usable value.
4753 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4760 if test -n $lt_cv_sys_max_cmd_len ; then
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4762 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4765 $as_echo "none" >&6; }
4767 max_cmd_len=$lt_cv_sys_max_cmd_len
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4779 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4780 # Try some XSI features
4783 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4785 && eval 'test $(( 1 + 1 )) -eq 2 \
4786 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4789 $as_echo "$xsi_shell" >&6; }
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4793 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4795 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4797 && lt_shell_append=yes
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4799 $as_echo "$lt_shell_append" >&6; }
4802 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4812 # test EBCDIC or ASCII
4813 case `echo X|tr X '\101'` in
4814 A) # ASCII based system
4815 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4816 lt_SP2NL='tr \040 \012'
4817 lt_NL2SP='tr \015\012 \040\040'
4819 *) # EBCDIC based system
4820 lt_SP2NL='tr \100 \n'
4821 lt_NL2SP='tr \r\n \100\100'
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4834 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4835 if ${lt_cv_to_host_file_cmd+:} false; then :
4836 $as_echo_n "(cached) " >&6
4841 *-*-mingw* ) # actually msys
4842 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4845 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4847 * ) # otherwise, assume *nix
4848 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4854 *-*-mingw* ) # actually msys
4855 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4858 lt_cv_to_host_file_cmd=func_convert_file_noop
4860 * ) # otherwise, assume *nix
4861 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4865 * ) # unhandled hosts (and "normal" native builds)
4866 lt_cv_to_host_file_cmd=func_convert_file_noop
4872 to_host_file_cmd=$lt_cv_to_host_file_cmd
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4874 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4881 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4882 if ${lt_cv_to_tool_file_cmd+:} false; then :
4883 $as_echo_n "(cached) " >&6
4885 #assume ordinary cross tools, or native build.
4886 lt_cv_to_tool_file_cmd=func_convert_file_noop
4890 *-*-mingw* ) # actually msys
4891 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4899 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4901 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4908 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4909 if ${lt_cv_ld_reload_flag+:} false; then :
4910 $as_echo_n "(cached) " >&6
4912 lt_cv_ld_reload_flag='-r'
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4915 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4916 reload_flag=$lt_cv_ld_reload_flag
4917 case $reload_flag in
4919 *) reload_flag=" $reload_flag" ;;
4921 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4923 cygwin* | mingw* | pw32* | cegcc*)
4924 if test "$GCC" != yes; then
4929 if test "$GCC" = yes; then
4930 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4932 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4945 if test -n "$ac_tool_prefix"; then
4946 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4947 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949 $as_echo_n "checking for $ac_word... " >&6; }
4950 if ${ac_cv_prog_OBJDUMP+:} false; then :
4951 $as_echo_n "(cached) " >&6
4953 if test -n "$OBJDUMP"; then
4954 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960 test -z "$as_dir" && as_dir=.
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4963 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 OBJDUMP=$ac_cv_prog_OBJDUMP
4974 if test -n "$OBJDUMP"; then
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4976 $as_echo "$OBJDUMP" >&6; }
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979 $as_echo "no" >&6; }
4984 if test -z "$ac_cv_prog_OBJDUMP"; then
4985 ac_ct_OBJDUMP=$OBJDUMP
4986 # Extract the first word of "objdump", so it can be a program name with args.
4987 set dummy objdump; ac_word=$2
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989 $as_echo_n "checking for $ac_word... " >&6; }
4990 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4991 $as_echo_n "(cached) " >&6
4993 if test -n "$ac_ct_OBJDUMP"; then
4994 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 test -z "$as_dir" && as_dir=.
5001 for ac_exec_ext in '' $ac_executable_extensions; do
5002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5003 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5014 if test -n "$ac_ct_OBJDUMP"; then
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5016 $as_echo "$ac_ct_OBJDUMP" >&6; }
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 $as_echo "no" >&6; }
5022 if test "x$ac_ct_OBJDUMP" = x; then
5025 case $cross_compiling:$ac_tool_warned in
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5029 ac_tool_warned=yes ;;
5031 OBJDUMP=$ac_ct_OBJDUMP
5034 OBJDUMP="$ac_cv_prog_OBJDUMP"
5037 test -z "$OBJDUMP" && OBJDUMP=objdump
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5045 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5046 if ${lt_cv_deplibs_check_method+:} false; then :
5047 $as_echo_n "(cached) " >&6
5049 lt_cv_file_magic_cmd='$MAGIC_CMD'
5050 lt_cv_file_magic_test_file=
5051 lt_cv_deplibs_check_method='unknown'
5052 # Need to set the preceding variable on all platforms that support
5053 # interlibrary dependencies.
5054 # 'none' -- dependencies not supported.
5055 # `unknown' -- same as none, but documents that we really don't know.
5056 # 'pass_all' -- all dependencies passed with no checks.
5057 # 'test_compile' -- check by making test program.
5058 # 'file_magic [[regex]]' -- check by looking for files in library path
5059 # which responds to the $file_magic_cmd with a given extended regex.
5060 # If you have `file' or equivalent on your system and you're not sure
5061 # whether `pass_all' will *always* work, you probably want this one.
5065 lt_cv_deplibs_check_method=pass_all
5069 lt_cv_deplibs_check_method=pass_all
5073 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5074 lt_cv_file_magic_cmd='/usr/bin/file -L'
5075 lt_cv_file_magic_test_file=/shlib/libc.so
5079 # func_win32_libid is a shell function defined in ltmain.sh
5080 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5081 lt_cv_file_magic_cmd='func_win32_libid'
5085 # Base MSYS/MinGW do not provide the 'file' command needed by
5086 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5087 # unless we find 'file', for example because we are cross-compiling.
5088 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5089 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5090 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5091 lt_cv_file_magic_cmd='func_win32_libid'
5093 # Keep this pattern in sync with the one in func_win32_libid.
5094 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5095 lt_cv_file_magic_cmd='$OBJDUMP -f'
5100 # use the weaker test based on 'objdump'. See mingw*.
5101 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5102 lt_cv_file_magic_cmd='$OBJDUMP -f'
5105 darwin* | rhapsody*)
5106 lt_cv_deplibs_check_method=pass_all
5109 freebsd* | dragonfly*)
5110 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5113 # Not sure whether the presence of OpenBSD here was a mistake.
5114 # Let's accept both of them until this is cleared up.
5115 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5116 lt_cv_file_magic_cmd=/usr/bin/file
5117 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5121 lt_cv_deplibs_check_method=pass_all
5126 lt_cv_deplibs_check_method=pass_all
5130 lt_cv_deplibs_check_method=pass_all
5133 hpux10.20* | hpux11*)
5134 lt_cv_file_magic_cmd=/usr/bin/file
5137 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5138 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5141 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]'
5142 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5145 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5146 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5152 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5153 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5156 irix5* | irix6* | nonstopux*)
5158 *-32|*"-32 ") libmagic=32-bit;;
5159 *-n32|*"-n32 ") libmagic=N32;;
5160 *-64|*"-64 ") libmagic=64-bit;;
5161 *) libmagic=never-match;;
5163 lt_cv_deplibs_check_method=pass_all
5166 # This must be glibc/ELF.
5167 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5168 lt_cv_deplibs_check_method=pass_all
5172 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5173 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5175 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5180 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5181 lt_cv_file_magic_cmd=/usr/bin/file
5182 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5186 lt_cv_deplibs_check_method=pass_all
5190 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5197 osf3* | osf4* | osf5*)
5198 lt_cv_deplibs_check_method=pass_all
5202 lt_cv_deplibs_check_method=pass_all
5206 lt_cv_deplibs_check_method=pass_all
5209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5210 lt_cv_deplibs_check_method=pass_all
5214 case $host_vendor in
5216 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]'
5217 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5220 lt_cv_deplibs_check_method=pass_all
5223 lt_cv_file_magic_cmd='/bin/file'
5224 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5227 lt_cv_file_magic_cmd='/bin/file'
5228 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5229 lt_cv_file_magic_test_file=/lib/libc.so
5232 lt_cv_deplibs_check_method=pass_all
5235 lt_cv_deplibs_check_method=pass_all
5241 lt_cv_deplibs_check_method=pass_all
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5247 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5251 if test "$build" = "$host"; then
5254 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5257 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5263 file_magic_cmd=$lt_cv_file_magic_cmd
5264 deplibs_check_method=$lt_cv_deplibs_check_method
5265 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5288 if test -n "$ac_tool_prefix"; then
5289 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5290 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292 $as_echo_n "checking for $ac_word... " >&6; }
5293 if ${ac_cv_prog_DLLTOOL+:} false; then :
5294 $as_echo_n "(cached) " >&6
5296 if test -n "$DLLTOOL"; then
5297 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 test -z "$as_dir" && as_dir=.
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5306 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 DLLTOOL=$ac_cv_prog_DLLTOOL
5317 if test -n "$DLLTOOL"; then
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5319 $as_echo "$DLLTOOL" >&6; }
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322 $as_echo "no" >&6; }
5327 if test -z "$ac_cv_prog_DLLTOOL"; then
5328 ac_ct_DLLTOOL=$DLLTOOL
5329 # Extract the first word of "dlltool", so it can be a program name with args.
5330 set dummy dlltool; ac_word=$2
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5332 $as_echo_n "checking for $ac_word... " >&6; }
5333 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5334 $as_echo_n "(cached) " >&6
5336 if test -n "$ac_ct_DLLTOOL"; then
5337 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343 test -z "$as_dir" && as_dir=.
5344 for ac_exec_ext in '' $ac_executable_extensions; do
5345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5346 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5357 if test -n "$ac_ct_DLLTOOL"; then
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5359 $as_echo "$ac_ct_DLLTOOL" >&6; }
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5362 $as_echo "no" >&6; }
5365 if test "x$ac_ct_DLLTOOL" = x; then
5368 case $cross_compiling:$ac_tool_warned in
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5372 ac_tool_warned=yes ;;
5374 DLLTOOL=$ac_ct_DLLTOOL
5377 DLLTOOL="$ac_cv_prog_DLLTOOL"
5380 test -z "$DLLTOOL" && DLLTOOL=dlltool
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5389 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5390 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5391 $as_echo_n "(cached) " >&6
5393 lt_cv_sharedlib_from_linklib_cmd='unknown'
5396 cygwin* | mingw* | pw32* | cegcc*)
5397 # two different shell functions defined in ltmain.sh
5398 # decide which to use based on capabilities of $DLLTOOL
5399 case `$DLLTOOL --help 2>&1` in
5400 *--identify-strict*)
5401 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5404 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5409 # fallback: assume linklib IS sharedlib
5410 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5416 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5417 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5418 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5427 if test -n "$ac_tool_prefix"; then
5430 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5431 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5433 $as_echo_n "checking for $ac_word... " >&6; }
5434 if ${ac_cv_prog_AR+:} false; then :
5435 $as_echo_n "(cached) " >&6
5437 if test -n "$AR"; then
5438 ac_cv_prog_AR="$AR" # Let the user override the test.
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 test -z "$as_dir" && as_dir=.
5445 for ac_exec_ext in '' $ac_executable_extensions; do
5446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5447 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 if test -n "$AR"; then
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5460 $as_echo "$AR" >&6; }
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5467 test -n "$AR" && break
5470 if test -z "$AR"; then
5474 # Extract the first word of "$ac_prog", so it can be a program name with args.
5475 set dummy $ac_prog; ac_word=$2
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5477 $as_echo_n "checking for $ac_word... " >&6; }
5478 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5479 $as_echo_n "(cached) " >&6
5481 if test -n "$ac_ct_AR"; then
5482 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491 ac_cv_prog_ac_ct_AR="$ac_prog"
5492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5501 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5502 if test -n "$ac_ct_AR"; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5504 $as_echo "$ac_ct_AR" >&6; }
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507 $as_echo "no" >&6; }
5511 test -n "$ac_ct_AR" && break
5514 if test "x$ac_ct_AR" = x; then
5517 case $cross_compiling:$ac_tool_warned in
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5521 ac_tool_warned=yes ;;
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5541 $as_echo_n "checking for archiver @FILE support... " >&6; }
5542 if ${lt_cv_ar_at_file+:} false; then :
5543 $as_echo_n "(cached) " >&6
5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5557 if ac_fn_c_try_compile "$LINENO"; then :
5558 echo conftest.$ac_objext > conftest.lst
5559 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5561 (eval $lt_ar_try) 2>&5
5563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5564 test $ac_status = 0; }
5565 if test "$ac_status" -eq 0; then
5566 # Ensure the archiver fails upon bogus file names.
5567 rm -f conftest.$ac_objext libconftest.a
5568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5569 (eval $lt_ar_try) 2>&5
5571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5572 test $ac_status = 0; }
5573 if test "$ac_status" -ne 0; then
5577 rm -f conftest.* libconftest.a
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5584 $as_echo "$lt_cv_ar_at_file" >&6; }
5586 if test "x$lt_cv_ar_at_file" = xno; then
5589 archiver_list_spec=$lt_cv_ar_at_file
5598 if test -n "$ac_tool_prefix"; then
5599 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5600 set dummy ${ac_tool_prefix}strip; ac_word=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if ${ac_cv_prog_STRIP+:} false; then :
5604 $as_echo_n "(cached) " >&6
5606 if test -n "$STRIP"; then
5607 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 STRIP=$ac_cv_prog_STRIP
5627 if test -n "$STRIP"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5629 $as_echo "$STRIP" >&6; }
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5637 if test -z "$ac_cv_prog_STRIP"; then
5639 # Extract the first word of "strip", so it can be a program name with args.
5640 set dummy strip; ac_word=$2
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642 $as_echo_n "checking for $ac_word... " >&6; }
5643 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5644 $as_echo_n "(cached) " >&6
5646 if test -n "$ac_ct_STRIP"; then
5647 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5656 ac_cv_prog_ac_ct_STRIP="strip"
5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5667 if test -n "$ac_ct_STRIP"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5669 $as_echo "$ac_ct_STRIP" >&6; }
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5675 if test "x$ac_ct_STRIP" = x; then
5678 case $cross_compiling:$ac_tool_warned in
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5682 ac_tool_warned=yes ;;
5687 STRIP="$ac_cv_prog_STRIP"
5690 test -z "$STRIP" && STRIP=:
5697 if test -n "$ac_tool_prefix"; then
5698 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5699 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5701 $as_echo_n "checking for $ac_word... " >&6; }
5702 if ${ac_cv_prog_RANLIB+:} false; then :
5703 $as_echo_n "(cached) " >&6
5705 if test -n "$RANLIB"; then
5706 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5715 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5725 RANLIB=$ac_cv_prog_RANLIB
5726 if test -n "$RANLIB"; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5728 $as_echo "$RANLIB" >&6; }
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731 $as_echo "no" >&6; }
5736 if test -z "$ac_cv_prog_RANLIB"; then
5737 ac_ct_RANLIB=$RANLIB
5738 # Extract the first word of "ranlib", so it can be a program name with args.
5739 set dummy ranlib; ac_word=$2
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741 $as_echo_n "checking for $ac_word... " >&6; }
5742 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5743 $as_echo_n "(cached) " >&6
5745 if test -n "$ac_ct_RANLIB"; then
5746 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755 ac_cv_prog_ac_ct_RANLIB="ranlib"
5756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5766 if test -n "$ac_ct_RANLIB"; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5768 $as_echo "$ac_ct_RANLIB" >&6; }
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771 $as_echo "no" >&6; }
5774 if test "x$ac_ct_RANLIB" = x; then
5777 case $cross_compiling:$ac_tool_warned in
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5781 ac_tool_warned=yes ;;
5783 RANLIB=$ac_ct_RANLIB
5786 RANLIB="$ac_cv_prog_RANLIB"
5789 test -z "$RANLIB" && RANLIB=:
5796 # Determine commands to create old-style static archives.
5797 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5798 old_postinstall_cmds='chmod 644 $oldlib'
5799 old_postuninstall_cmds=
5801 if test -n "$RANLIB"; then
5804 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5807 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5810 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5815 lock_old_archive_extraction=yes ;;
5817 lock_old_archive_extraction=no ;;
5858 # If no C compiler was specified, use CC.
5861 # If no C compiler flags were specified, use CFLAGS.
5862 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5864 # Allow CC to be a program name with arguments.
5868 # Check for command to grab the raw symbol name followed by C symbol from nm.
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5870 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5871 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5872 $as_echo_n "(cached) " >&6
5875 # These are sane defaults that work on at least a few old systems.
5876 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5878 # Character class describing NM global symbol codes.
5879 symcode='[BCDEGRST]'
5881 # Regexp to match symbols that can be accessed directly from C.
5882 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5884 # Define system-specific variables.
5889 cygwin* | mingw* | pw32* | cegcc*)
5890 symcode='[ABCDGISTW]'
5893 if test "$host_cpu" = ia64; then
5894 symcode='[ABCDEGRST]'
5898 symcode='[BCDEGRST]'
5901 symcode='[BCDEGQRST]'
5912 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5920 # If we're using GNU nm, then use its standard symbol codes.
5921 case `$NM -V 2>&1` in
5922 *GNU* | *'with BFD'*)
5923 symcode='[ABCDGIRSTW]' ;;
5926 # Transform an extracted symbol line into a proper C declaration.
5927 # Some systems (esp. on ia64) link data and code symbols differently,
5928 # so use this general approach.
5929 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5931 # Transform an extracted symbol line into symbol name and symbol address
5932 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5933 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'"
5935 # Handle CRLF in mingw tool chain
5939 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5943 # Try without a prefix underscore, then with it.
5944 for ac_symprfx in "" "_"; do
5946 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5947 symxfrm="\\1 $ac_symprfx\\2 \\2"
5949 # Write the raw and C identifiers.
5950 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5951 # Fake it for dumpbin and say T for any non-static function
5952 # and D for any global variable.
5953 # Also find C++ and __fastcall symbols from MSVC++,
5954 # which start with @ or ?.
5955 lt_cv_sys_global_symbol_pipe="$AWK '"\
5956 " {last_section=section; section=\$ 3};"\
5957 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5958 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5959 " \$ 0!~/External *\|/{next};"\
5960 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5961 " {if(hide[section]) next};"\
5962 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5963 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5964 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5965 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5966 " ' prfx=^$ac_symprfx"
5968 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5970 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5972 # Check to see that the pipe works correctly.
5976 cat > conftest.$ac_ext <<_LT_EOF
5981 void nm_test_func(void);
5982 void nm_test_func(void){}
5986 int main(){nm_test_var='a';nm_test_func();return(0);}
5989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5990 (eval $ac_compile) 2>&5
5992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5993 test $ac_status = 0; }; then
5994 # Now try to grab the symbols.
5996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5997 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6000 test $ac_status = 0; } && test -s "$nlist"; then
6001 # Try sorting and uniquifying the output.
6002 if sort "$nlist" | uniq > "$nlist"T; then
6003 mv -f "$nlist"T "$nlist"
6008 # Make sure that we snagged all the symbols we need.
6009 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6010 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6011 cat <<_LT_EOF > conftest.$ac_ext
6012 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6013 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6014 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6015 relocations are performed -- see ld's documentation on pseudo-relocs. */
6016 # define LT_DLSYM_CONST
6017 #elif defined(__osf__)
6018 /* This system does not cope well with relocations in const data. */
6019 # define LT_DLSYM_CONST
6021 # define LT_DLSYM_CONST const
6029 # Now generate the symbol file.
6030 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6032 cat <<_LT_EOF >> conftest.$ac_ext
6034 /* The mapping between symbol names and symbols. */
6035 LT_DLSYM_CONST struct {
6039 lt__PROGRAM__LTX_preloaded_symbols[] =
6041 { "@PROGRAM@", (void *) 0 },
6043 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6044 cat <<\_LT_EOF >> conftest.$ac_ext
6048 /* This works around a problem in FreeBSD linker */
6049 #ifdef FREEBSD_WORKAROUND
6050 static const void *lt_preloaded_setup() {
6051 return lt__PROGRAM__LTX_preloaded_symbols;
6059 # Now try linking the two files.
6060 mv conftest.$ac_objext conftstm.$ac_objext
6061 lt_globsym_save_LIBS=$LIBS
6062 lt_globsym_save_CFLAGS=$CFLAGS
6063 LIBS="conftstm.$ac_objext"
6064 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6066 (eval $ac_link) 2>&5
6068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6069 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6072 LIBS=$lt_globsym_save_LIBS
6073 CFLAGS=$lt_globsym_save_CFLAGS
6075 echo "cannot find nm_test_func in $nlist" >&5
6078 echo "cannot find nm_test_var in $nlist" >&5
6081 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6084 echo "$progname: failed program was:" >&5
6085 cat conftest.$ac_ext >&5
6087 rm -rf conftest* conftst*
6089 # Do not use the global_symbol_pipe unless it works.
6090 if test "$pipe_works" = yes; then
6093 lt_cv_sys_global_symbol_pipe=
6099 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6100 lt_cv_sys_global_symbol_to_cdecl=
6102 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6104 $as_echo "failed" >&6; }
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6107 $as_echo "ok" >&6; }
6110 # Response file support.
6111 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6112 nm_file_list_spec='@'
6113 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6114 nm_file_list_spec='@'
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6144 $as_echo_n "checking for sysroot... " >&6; }
6146 # Check whether --with-sysroot was given.
6147 if test "${with_sysroot+set}" = set; then :
6148 withval=$with_sysroot;
6155 case ${with_sysroot} in #(
6157 if test "$GCC" = yes; then
6158 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6162 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6168 $as_echo "${with_sysroot}" >&6; }
6169 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6174 $as_echo "${lt_sysroot:-no}" >&6; }
6180 # Check whether --enable-libtool-lock was given.
6181 if test "${enable_libtool_lock+set}" = set; then :
6182 enableval=$enable_libtool_lock;
6185 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6187 # Some flags need to be propagated to the compiler or linker for good
6191 # Find out which ABI we are using.
6192 echo 'int i;' > conftest.$ac_ext
6193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6194 (eval $ac_compile) 2>&5
6196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6197 test $ac_status = 0; }; then
6198 case `/usr/bin/file conftest.$ac_objext` in
6210 # Find out which ABI we are using.
6211 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6213 (eval $ac_compile) 2>&5
6215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6216 test $ac_status = 0; }; then
6217 if test "$lt_cv_prog_gnu_ld" = yes; then
6218 case `/usr/bin/file conftest.$ac_objext` in
6220 LD="${LD-ld} -melf32bsmip"
6223 LD="${LD-ld} -melf32bmipn32"
6226 LD="${LD-ld} -melf64bmip"
6230 case `/usr/bin/file conftest.$ac_objext` in
6246 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6247 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6248 # Find out which ABI we are using.
6249 echo 'int i;' > conftest.$ac_ext
6250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6251 (eval $ac_compile) 2>&5
6253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6254 test $ac_status = 0; }; then
6255 case `/usr/bin/file conftest.o` in
6258 x86_64-*kfreebsd*-gnu)
6259 LD="${LD-ld} -m elf_i386_fbsd"
6262 LD="${LD-ld} -m elf_i386"
6264 powerpc64le-*linux*)
6265 LD="${LD-ld} -m elf32lppclinux"
6268 LD="${LD-ld} -m elf32ppclinux"
6271 LD="${LD-ld} -m elf_s390"
6274 LD="${LD-ld} -m elf32_sparc"
6280 x86_64-*kfreebsd*-gnu)
6281 LD="${LD-ld} -m elf_x86_64_fbsd"
6284 LD="${LD-ld} -m elf_x86_64"
6287 LD="${LD-ld} -m elf64lppc"
6290 LD="${LD-ld} -m elf64ppc"
6292 s390*-*linux*|s390*-*tpf*)
6293 LD="${LD-ld} -m elf64_s390"
6296 LD="${LD-ld} -m elf64_sparc"
6306 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6307 SAVE_CFLAGS="$CFLAGS"
6308 CFLAGS="$CFLAGS -belf"
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6310 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6311 if ${lt_cv_cc_needs_belf+:} false; then :
6312 $as_echo_n "(cached) " >&6
6315 ac_cpp='$CPP $CPPFLAGS'
6316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6321 /* end confdefs.h. */
6331 if ac_fn_c_try_link "$LINENO"; then :
6332 lt_cv_cc_needs_belf=yes
6334 lt_cv_cc_needs_belf=no
6336 rm -f core conftest.err conftest.$ac_objext \
6337 conftest$ac_exeext conftest.$ac_ext
6339 ac_cpp='$CPP $CPPFLAGS'
6340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6346 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6347 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6348 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6349 CFLAGS="$SAVE_CFLAGS"
6353 # Find out which ABI we are using.
6354 echo 'int i;' > conftest.$ac_ext
6355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6356 (eval $ac_compile) 2>&5
6358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6359 test $ac_status = 0; }; then
6360 case `/usr/bin/file conftest.o` in
6362 case $lt_cv_prog_gnu_ld in
6366 LD="${LD-ld} -m elf_x86_64"
6369 LD="${LD-ld} -m elf64_sparc"
6372 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6373 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6378 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6390 need_locks="$enable_libtool_lock"
6392 if test -n "$ac_tool_prefix"; then
6393 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6394 set dummy ${ac_tool_prefix}mt; ac_word=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6398 $as_echo_n "(cached) " >&6
6400 if test -n "$MANIFEST_TOOL"; then
6401 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 test -z "$as_dir" && as_dir=.
6408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6410 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6420 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6421 if test -n "$MANIFEST_TOOL"; then
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6423 $as_echo "$MANIFEST_TOOL" >&6; }
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6431 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6432 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6433 # Extract the first word of "mt", so it can be a program name with args.
6434 set dummy mt; ac_word=$2
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6436 $as_echo_n "checking for $ac_word... " >&6; }
6437 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6438 $as_echo_n "(cached) " >&6
6440 if test -n "$ac_ct_MANIFEST_TOOL"; then
6441 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6450 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6461 if test -n "$ac_ct_MANIFEST_TOOL"; then
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6463 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6466 $as_echo "no" >&6; }
6469 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6472 case $cross_compiling:$ac_tool_warned in
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6476 ac_tool_warned=yes ;;
6478 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6481 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6484 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6486 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6487 if ${lt_cv_path_mainfest_tool+:} false; then :
6488 $as_echo_n "(cached) " >&6
6490 lt_cv_path_mainfest_tool=no
6491 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6492 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6493 cat conftest.err >&5
6494 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6495 lt_cv_path_mainfest_tool=yes
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6500 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6501 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6511 rhapsody* | darwin*)
6512 if test -n "$ac_tool_prefix"; then
6513 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6514 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516 $as_echo_n "checking for $ac_word... " >&6; }
6517 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6518 $as_echo_n "(cached) " >&6
6520 if test -n "$DSYMUTIL"; then
6521 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 test -z "$as_dir" && as_dir=.
6528 for ac_exec_ext in '' $ac_executable_extensions; do
6529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6530 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6541 if test -n "$DSYMUTIL"; then
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6543 $as_echo "$DSYMUTIL" >&6; }
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546 $as_echo "no" >&6; }
6551 if test -z "$ac_cv_prog_DSYMUTIL"; then
6552 ac_ct_DSYMUTIL=$DSYMUTIL
6553 # Extract the first word of "dsymutil", so it can be a program name with args.
6554 set dummy dsymutil; ac_word=$2
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556 $as_echo_n "checking for $ac_word... " >&6; }
6557 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6558 $as_echo_n "(cached) " >&6
6560 if test -n "$ac_ct_DSYMUTIL"; then
6561 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567 test -z "$as_dir" && as_dir=.
6568 for ac_exec_ext in '' $ac_executable_extensions; do
6569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6570 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6581 if test -n "$ac_ct_DSYMUTIL"; then
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6583 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586 $as_echo "no" >&6; }
6589 if test "x$ac_ct_DSYMUTIL" = x; then
6592 case $cross_compiling:$ac_tool_warned in
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6596 ac_tool_warned=yes ;;
6598 DSYMUTIL=$ac_ct_DSYMUTIL
6601 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6604 if test -n "$ac_tool_prefix"; then
6605 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6606 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6608 $as_echo_n "checking for $ac_word... " >&6; }
6609 if ${ac_cv_prog_NMEDIT+:} false; then :
6610 $as_echo_n "(cached) " >&6
6612 if test -n "$NMEDIT"; then
6613 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 test -z "$as_dir" && as_dir=.
6620 for ac_exec_ext in '' $ac_executable_extensions; do
6621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6622 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6632 NMEDIT=$ac_cv_prog_NMEDIT
6633 if test -n "$NMEDIT"; then
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6635 $as_echo "$NMEDIT" >&6; }
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6638 $as_echo "no" >&6; }
6643 if test -z "$ac_cv_prog_NMEDIT"; then
6644 ac_ct_NMEDIT=$NMEDIT
6645 # Extract the first word of "nmedit", so it can be a program name with args.
6646 set dummy nmedit; ac_word=$2
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6648 $as_echo_n "checking for $ac_word... " >&6; }
6649 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6650 $as_echo_n "(cached) " >&6
6652 if test -n "$ac_ct_NMEDIT"; then
6653 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 test -z "$as_dir" && as_dir=.
6660 for ac_exec_ext in '' $ac_executable_extensions; do
6661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6662 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6673 if test -n "$ac_ct_NMEDIT"; then
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6675 $as_echo "$ac_ct_NMEDIT" >&6; }
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6678 $as_echo "no" >&6; }
6681 if test "x$ac_ct_NMEDIT" = x; then
6684 case $cross_compiling:$ac_tool_warned in
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6688 ac_tool_warned=yes ;;
6690 NMEDIT=$ac_ct_NMEDIT
6693 NMEDIT="$ac_cv_prog_NMEDIT"
6696 if test -n "$ac_tool_prefix"; then
6697 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6698 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6700 $as_echo_n "checking for $ac_word... " >&6; }
6701 if ${ac_cv_prog_LIPO+:} false; then :
6702 $as_echo_n "(cached) " >&6
6704 if test -n "$LIPO"; then
6705 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
6713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6714 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 LIPO=$ac_cv_prog_LIPO
6725 if test -n "$LIPO"; then
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6727 $as_echo "$LIPO" >&6; }
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6730 $as_echo "no" >&6; }
6735 if test -z "$ac_cv_prog_LIPO"; then
6737 # Extract the first word of "lipo", so it can be a program name with args.
6738 set dummy lipo; ac_word=$2
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6740 $as_echo_n "checking for $ac_word... " >&6; }
6741 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6742 $as_echo_n "(cached) " >&6
6744 if test -n "$ac_ct_LIPO"; then
6745 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 test -z "$as_dir" && as_dir=.
6752 for ac_exec_ext in '' $ac_executable_extensions; do
6753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6754 ac_cv_prog_ac_ct_LIPO="lipo"
6755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6764 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6765 if test -n "$ac_ct_LIPO"; then
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6767 $as_echo "$ac_ct_LIPO" >&6; }
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6770 $as_echo "no" >&6; }
6773 if test "x$ac_ct_LIPO" = x; then
6776 case $cross_compiling:$ac_tool_warned in
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6780 ac_tool_warned=yes ;;
6785 LIPO="$ac_cv_prog_LIPO"
6788 if test -n "$ac_tool_prefix"; then
6789 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6790 set dummy ${ac_tool_prefix}otool; ac_word=$2
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6792 $as_echo_n "checking for $ac_word... " >&6; }
6793 if ${ac_cv_prog_OTOOL+:} false; then :
6794 $as_echo_n "(cached) " >&6
6796 if test -n "$OTOOL"; then
6797 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 test -z "$as_dir" && as_dir=.
6804 for ac_exec_ext in '' $ac_executable_extensions; do
6805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6806 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 OTOOL=$ac_cv_prog_OTOOL
6817 if test -n "$OTOOL"; then
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6819 $as_echo "$OTOOL" >&6; }
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6822 $as_echo "no" >&6; }
6827 if test -z "$ac_cv_prog_OTOOL"; then
6829 # Extract the first word of "otool", so it can be a program name with args.
6830 set dummy otool; ac_word=$2
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6832 $as_echo_n "checking for $ac_word... " >&6; }
6833 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6834 $as_echo_n "(cached) " >&6
6836 if test -n "$ac_ct_OTOOL"; then
6837 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 test -z "$as_dir" && as_dir=.
6844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6846 ac_cv_prog_ac_ct_OTOOL="otool"
6847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6856 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6857 if test -n "$ac_ct_OTOOL"; then
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6859 $as_echo "$ac_ct_OTOOL" >&6; }
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6862 $as_echo "no" >&6; }
6865 if test "x$ac_ct_OTOOL" = x; then
6868 case $cross_compiling:$ac_tool_warned in
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6872 ac_tool_warned=yes ;;
6877 OTOOL="$ac_cv_prog_OTOOL"
6880 if test -n "$ac_tool_prefix"; then
6881 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6882 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884 $as_echo_n "checking for $ac_word... " >&6; }
6885 if ${ac_cv_prog_OTOOL64+:} false; then :
6886 $as_echo_n "(cached) " >&6
6888 if test -n "$OTOOL64"; then
6889 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 test -z "$as_dir" && as_dir=.
6896 for ac_exec_ext in '' $ac_executable_extensions; do
6897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6898 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 OTOOL64=$ac_cv_prog_OTOOL64
6909 if test -n "$OTOOL64"; then
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6911 $as_echo "$OTOOL64" >&6; }
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914 $as_echo "no" >&6; }
6919 if test -z "$ac_cv_prog_OTOOL64"; then
6920 ac_ct_OTOOL64=$OTOOL64
6921 # Extract the first word of "otool64", so it can be a program name with args.
6922 set dummy otool64; ac_word=$2
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6924 $as_echo_n "checking for $ac_word... " >&6; }
6925 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6926 $as_echo_n "(cached) " >&6
6928 if test -n "$ac_ct_OTOOL64"; then
6929 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6938 ac_cv_prog_ac_ct_OTOOL64="otool64"
6939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6949 if test -n "$ac_ct_OTOOL64"; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6951 $as_echo "$ac_ct_OTOOL64" >&6; }
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954 $as_echo "no" >&6; }
6957 if test "x$ac_ct_OTOOL64" = x; then
6960 case $cross_compiling:$ac_tool_warned in
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6964 ac_tool_warned=yes ;;
6966 OTOOL64=$ac_ct_OTOOL64
6969 OTOOL64="$ac_cv_prog_OTOOL64"
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6999 $as_echo_n "checking for -single_module linker flag... " >&6; }
7000 if ${lt_cv_apple_cc_single_mod+:} false; then :
7001 $as_echo_n "(cached) " >&6
7003 lt_cv_apple_cc_single_mod=no
7004 if test -z "${LT_MULTI_MODULE}"; then
7005 # By default we will add the -single_module flag. You can override
7006 # by either setting the environment variable LT_MULTI_MODULE
7007 # non-empty at configure time, or by adding -multi_module to the
7009 rm -rf libconftest.dylib*
7010 echo "int foo(void){return 1;}" > conftest.c
7011 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7012 -dynamiclib -Wl,-single_module conftest.c" >&5
7013 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7014 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7016 # If there is a non-empty error log, and "single_module"
7017 # appears in it, assume the flag caused a linker warning
7018 if test -s conftest.err && $GREP single_module conftest.err; then
7019 cat conftest.err >&5
7020 # Otherwise, if the output was created with a 0 exit code from
7021 # the compiler, it worked.
7022 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7023 lt_cv_apple_cc_single_mod=yes
7025 cat conftest.err >&5
7027 rm -rf libconftest.dylib*
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7032 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7035 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7036 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7037 $as_echo_n "(cached) " >&6
7039 lt_cv_ld_exported_symbols_list=no
7040 save_LDFLAGS=$LDFLAGS
7041 echo "_main" > conftest.sym
7042 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7054 if ac_fn_c_try_link "$LINENO"; then :
7055 lt_cv_ld_exported_symbols_list=yes
7057 lt_cv_ld_exported_symbols_list=no
7059 rm -f core conftest.err conftest.$ac_objext \
7060 conftest$ac_exeext conftest.$ac_ext
7061 LDFLAGS="$save_LDFLAGS"
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7065 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7068 $as_echo_n "checking for -force_load linker flag... " >&6; }
7069 if ${lt_cv_ld_force_load+:} false; then :
7070 $as_echo_n "(cached) " >&6
7072 lt_cv_ld_force_load=no
7073 cat > conftest.c << _LT_EOF
7074 int forced_loaded() { return 2;}
7076 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7077 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7078 echo "$AR cru libconftest.a conftest.o" >&5
7079 $AR cru libconftest.a conftest.o 2>&5
7080 echo "$RANLIB libconftest.a" >&5
7081 $RANLIB libconftest.a 2>&5
7082 cat > conftest.c << _LT_EOF
7083 int main() { return 0;}
7085 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7086 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7088 if test -s conftest.err && $GREP force_load conftest.err; then
7089 cat conftest.err >&5
7090 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7091 lt_cv_ld_force_load=yes
7093 cat conftest.err >&5
7095 rm -f conftest.err libconftest.a conftest conftest.c
7096 rm -rf conftest.dSYM
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7100 $as_echo "$lt_cv_ld_force_load" >&6; }
7102 rhapsody* | darwin1.[012])
7103 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7105 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7106 darwin*) # darwin 5.x on
7107 # if running on 10.5 or later, the deployment target defaults
7108 # to the OS version, if on x86, and 10.4, the deployment
7109 # target defaults to 10.4. Don't you love it?
7110 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7111 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7112 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7114 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7116 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7120 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7121 _lt_dar_single_mod='$single_module'
7123 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7124 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7126 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7128 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7129 _lt_dsymutil='~$DSYMUTIL $lib || :'
7137 ac_cpp='$CPP $CPPFLAGS'
7138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7142 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7143 # On Suns, sometimes $CPP names a directory.
7144 if test -n "$CPP" && test -d "$CPP"; then
7147 if test -z "$CPP"; then
7148 if ${ac_cv_prog_CPP+:} false; then :
7149 $as_echo_n "(cached) " >&6
7151 # Double quotes because CPP needs to be expanded
7152 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7155 for ac_c_preproc_warn_flag in '' yes
7157 # Use a header file that comes with gcc, so configuring glibc
7158 # with a fresh cross-compiler works.
7159 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7160 # <limits.h> exists even on freestanding compilers.
7161 # On the NeXT, cc -E runs the code through the compiler's parser,
7162 # not just through cpp. "Syntax error" is here to catch this case.
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7166 # include <limits.h>
7168 # include <assert.h>
7172 if ac_fn_c_try_cpp "$LINENO"; then :
7175 # Broken: fails on valid input.
7178 rm -f conftest.err conftest.i conftest.$ac_ext
7180 # OK, works on sane cases. Now check whether nonexistent headers
7181 # can be detected and how.
7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183 /* end confdefs.h. */
7184 #include <ac_nonexistent.h>
7186 if ac_fn_c_try_cpp "$LINENO"; then :
7187 # Broken: success on invalid input.
7190 # Passes both tests.
7194 rm -f conftest.err conftest.i conftest.$ac_ext
7197 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7198 rm -f conftest.i conftest.err conftest.$ac_ext
7199 if $ac_preproc_ok; then :
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7212 $as_echo "$CPP" >&6; }
7214 for ac_c_preproc_warn_flag in '' yes
7216 # Use a header file that comes with gcc, so configuring glibc
7217 # with a fresh cross-compiler works.
7218 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7219 # <limits.h> exists even on freestanding compilers.
7220 # On the NeXT, cc -E runs the code through the compiler's parser,
7221 # not just through cpp. "Syntax error" is here to catch this case.
7222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223 /* end confdefs.h. */
7225 # include <limits.h>
7227 # include <assert.h>
7231 if ac_fn_c_try_cpp "$LINENO"; then :
7234 # Broken: fails on valid input.
7237 rm -f conftest.err conftest.i conftest.$ac_ext
7239 # OK, works on sane cases. Now check whether nonexistent headers
7240 # can be detected and how.
7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242 /* end confdefs.h. */
7243 #include <ac_nonexistent.h>
7245 if ac_fn_c_try_cpp "$LINENO"; then :
7246 # Broken: success on invalid input.
7249 # Passes both tests.
7253 rm -f conftest.err conftest.i conftest.$ac_ext
7256 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7257 rm -f conftest.i conftest.err conftest.$ac_ext
7258 if $ac_preproc_ok; then :
7261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7263 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7264 See \`config.log' for more details" "$LINENO" 5; }
7268 ac_cpp='$CPP $CPPFLAGS'
7269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7275 $as_echo_n "checking for ANSI C header files... " >&6; }
7276 if ${ac_cv_header_stdc+:} false; then :
7277 $as_echo_n "(cached) " >&6
7279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280 /* end confdefs.h. */
7294 if ac_fn_c_try_compile "$LINENO"; then :
7295 ac_cv_header_stdc=yes
7297 ac_cv_header_stdc=no
7299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7301 if test $ac_cv_header_stdc = yes; then
7302 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h. */
7308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7309 $EGREP "memchr" >/dev/null 2>&1; then :
7312 ac_cv_header_stdc=no
7318 if test $ac_cv_header_stdc = yes; then
7319 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7326 $EGREP "free" >/dev/null 2>&1; then :
7329 ac_cv_header_stdc=no
7335 if test $ac_cv_header_stdc = yes; then
7336 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7337 if test "$cross_compiling" = yes; then :
7340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341 /* end confdefs.h. */
7344 #if ((' ' & 0x0FF) == 0x020)
7345 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7346 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7348 # define ISLOWER(c) \
7349 (('a' <= (c) && (c) <= 'i') \
7350 || ('j' <= (c) && (c) <= 'r') \
7351 || ('s' <= (c) && (c) <= 'z'))
7352 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7355 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7360 for (i = 0; i < 256; i++)
7361 if (XOR (islower (i), ISLOWER (i))
7362 || toupper (i) != TOUPPER (i))
7367 if ac_fn_c_try_run "$LINENO"; then :
7370 ac_cv_header_stdc=no
7372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7373 conftest.$ac_objext conftest.beam conftest.$ac_ext
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7379 $as_echo "$ac_cv_header_stdc" >&6; }
7380 if test $ac_cv_header_stdc = yes; then
7382 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7386 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7387 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7388 inttypes.h stdint.h unistd.h
7390 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7391 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7393 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7394 cat >>confdefs.h <<_ACEOF
7395 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7403 for ac_header in dlfcn.h
7405 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7407 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7408 cat >>confdefs.h <<_ACEOF
7409 #define HAVE_DLFCN_H 1
7422 enable_win32_dll=yes
7425 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7426 if test -n "$ac_tool_prefix"; then
7427 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7428 set dummy ${ac_tool_prefix}as; ac_word=$2
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7430 $as_echo_n "checking for $ac_word... " >&6; }
7431 if ${ac_cv_prog_AS+:} false; then :
7432 $as_echo_n "(cached) " >&6
7434 if test -n "$AS"; then
7435 ac_cv_prog_AS="$AS" # Let the user override the test.
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 test -z "$as_dir" && as_dir=.
7442 for ac_exec_ext in '' $ac_executable_extensions; do
7443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7444 ac_cv_prog_AS="${ac_tool_prefix}as"
7445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7455 if test -n "$AS"; then
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7457 $as_echo "$AS" >&6; }
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7460 $as_echo "no" >&6; }
7465 if test -z "$ac_cv_prog_AS"; then
7467 # Extract the first word of "as", so it can be a program name with args.
7468 set dummy as; ac_word=$2
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7470 $as_echo_n "checking for $ac_word... " >&6; }
7471 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7472 $as_echo_n "(cached) " >&6
7474 if test -n "$ac_ct_AS"; then
7475 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7484 ac_cv_prog_ac_ct_AS="as"
7485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7494 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7495 if test -n "$ac_ct_AS"; then
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7497 $as_echo "$ac_ct_AS" >&6; }
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500 $as_echo "no" >&6; }
7503 if test "x$ac_ct_AS" = x; then
7506 case $cross_compiling:$ac_tool_warned in
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7510 ac_tool_warned=yes ;;
7518 if test -n "$ac_tool_prefix"; then
7519 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7520 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7522 $as_echo_n "checking for $ac_word... " >&6; }
7523 if ${ac_cv_prog_DLLTOOL+:} false; then :
7524 $as_echo_n "(cached) " >&6
7526 if test -n "$DLLTOOL"; then
7527 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533 test -z "$as_dir" && as_dir=.
7534 for ac_exec_ext in '' $ac_executable_extensions; do
7535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7536 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7546 DLLTOOL=$ac_cv_prog_DLLTOOL
7547 if test -n "$DLLTOOL"; then
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7549 $as_echo "$DLLTOOL" >&6; }
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7552 $as_echo "no" >&6; }
7557 if test -z "$ac_cv_prog_DLLTOOL"; then
7558 ac_ct_DLLTOOL=$DLLTOOL
7559 # Extract the first word of "dlltool", so it can be a program name with args.
7560 set dummy dlltool; ac_word=$2
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7562 $as_echo_n "checking for $ac_word... " >&6; }
7563 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7564 $as_echo_n "(cached) " >&6
7566 if test -n "$ac_ct_DLLTOOL"; then
7567 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 test -z "$as_dir" && as_dir=.
7574 for ac_exec_ext in '' $ac_executable_extensions; do
7575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7576 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7587 if test -n "$ac_ct_DLLTOOL"; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7589 $as_echo "$ac_ct_DLLTOOL" >&6; }
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592 $as_echo "no" >&6; }
7595 if test "x$ac_ct_DLLTOOL" = x; then
7598 case $cross_compiling:$ac_tool_warned in
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7602 ac_tool_warned=yes ;;
7604 DLLTOOL=$ac_ct_DLLTOOL
7607 DLLTOOL="$ac_cv_prog_DLLTOOL"
7610 if test -n "$ac_tool_prefix"; then
7611 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7612 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7614 $as_echo_n "checking for $ac_word... " >&6; }
7615 if ${ac_cv_prog_OBJDUMP+:} false; then :
7616 $as_echo_n "(cached) " >&6
7618 if test -n "$OBJDUMP"; then
7619 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7628 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 OBJDUMP=$ac_cv_prog_OBJDUMP
7639 if test -n "$OBJDUMP"; then
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7641 $as_echo "$OBJDUMP" >&6; }
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644 $as_echo "no" >&6; }
7649 if test -z "$ac_cv_prog_OBJDUMP"; then
7650 ac_ct_OBJDUMP=$OBJDUMP
7651 # Extract the first word of "objdump", so it can be a program name with args.
7652 set dummy objdump; ac_word=$2
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7654 $as_echo_n "checking for $ac_word... " >&6; }
7655 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7656 $as_echo_n "(cached) " >&6
7658 if test -n "$ac_ct_OBJDUMP"; then
7659 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 test -z "$as_dir" && as_dir=.
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7668 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7678 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7679 if test -n "$ac_ct_OBJDUMP"; then
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7681 $as_echo "$ac_ct_OBJDUMP" >&6; }
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684 $as_echo "no" >&6; }
7687 if test "x$ac_ct_OBJDUMP" = x; then
7690 case $cross_compiling:$ac_tool_warned in
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7694 ac_tool_warned=yes ;;
7696 OBJDUMP=$ac_ct_OBJDUMP
7699 OBJDUMP="$ac_cv_prog_OBJDUMP"
7705 test -z "$AS" && AS=as
7711 test -z "$DLLTOOL" && DLLTOOL=dlltool
7717 test -z "$OBJDUMP" && OBJDUMP=objdump
7722 # Check whether --enable-static was given.
7723 if test "${enable_static+set}" = set; then :
7724 enableval=$enable_static; p=${PACKAGE-default}
7726 yes) enable_static=yes ;;
7727 no) enable_static=no ;;
7730 # Look at the argument we got. We use all the common list separators.
7731 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7732 for pkg in $enableval; do
7734 if test "X$pkg" = "X$p"; then
7756 # Check whether --enable-shared was given.
7757 if test "${enable_shared+set}" = set; then :
7758 enableval=$enable_shared; p=${PACKAGE-default}
7760 yes) enable_shared=yes ;;
7761 no) enable_shared=no ;;
7764 # Look at the argument we got. We use all the common list separators.
7765 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7766 for pkg in $enableval; do
7768 if test "X$pkg" = "X$p"; then
7789 # Check whether --with-pic was given.
7790 if test "${with_pic+set}" = set; then :
7791 withval=$with_pic; lt_p=${PACKAGE-default}
7793 yes|no) pic_mode=$withval ;;
7796 # Look at the argument we got. We use all the common list separators.
7797 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7798 for lt_pkg in $withval; do
7800 if test "X$lt_pkg" = "X$lt_p"; then
7812 test -z "$pic_mode" && pic_mode=default
7820 # Check whether --enable-fast-install was given.
7821 if test "${enable_fast_install+set}" = set; then :
7822 enableval=$enable_fast_install; p=${PACKAGE-default}
7824 yes) enable_fast_install=yes ;;
7825 no) enable_fast_install=no ;;
7827 enable_fast_install=no
7828 # Look at the argument we got. We use all the common list separators.
7829 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7830 for pkg in $enableval; do
7832 if test "X$pkg" = "X$p"; then
7833 enable_fast_install=yes
7840 enable_fast_install=yes
7853 # This can be used to rebuild libtool when needed
7854 LIBTOOL_DEPS="$ltmain"
7856 # Always use our own libtool.
7857 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7888 test -z "$LN_S" && LN_S="ln -s"
7903 if test -n "${ZSH_VERSION+set}" ; then
7904 setopt NO_GLOB_SUBST
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7908 $as_echo_n "checking for objdir... " >&6; }
7909 if ${lt_cv_objdir+:} false; then :
7910 $as_echo_n "(cached) " >&6
7912 rm -f .libs 2>/dev/null
7913 mkdir .libs 2>/dev/null
7914 if test -d .libs; then
7917 # MS-DOS does not allow filenames that begin with a dot.
7920 rmdir .libs 2>/dev/null
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7923 $as_echo "$lt_cv_objdir" >&6; }
7924 objdir=$lt_cv_objdir
7930 cat >>confdefs.h <<_ACEOF
7931 #define LT_OBJDIR "$lt_cv_objdir/"
7939 # AIX sometimes has problems with the GCC collect2 program. For some
7940 # reason, if we set the COLLECT_NAMES environment variable, the problems
7941 # vanish in a puff of smoke.
7942 if test "X${COLLECT_NAMES+set}" != Xset; then
7944 export COLLECT_NAMES
7951 can_build_shared=yes
7953 # All known linkers require a `.a' archive for static linking (except MSVC,
7954 # which needs '.lib').
7957 with_gnu_ld="$lt_cv_prog_gnu_ld"
7960 old_CFLAGS="$CFLAGS"
7962 # Set sane defaults for various variables
7963 test -z "$CC" && CC=cc
7964 test -z "$LTCC" && LTCC=$CC
7965 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7966 test -z "$LD" && LD=ld
7967 test -z "$ac_objext" && ac_objext=o
7969 for cc_temp in $compiler""; do
7971 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7972 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7977 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7980 # Only perform the check for file, if the check method requires it
7981 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7982 case $deplibs_check_method in
7984 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7986 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7987 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7988 $as_echo_n "(cached) " >&6
7992 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7995 lt_save_MAGIC_CMD="$MAGIC_CMD"
7996 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7997 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7998 for ac_dir in $ac_dummy; do
8000 test -z "$ac_dir" && ac_dir=.
8001 if test -f $ac_dir/${ac_tool_prefix}file; then
8002 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8003 if test -n "$file_magic_test_file"; then
8004 case $deplibs_check_method in
8006 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8007 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8008 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8009 $EGREP "$file_magic_regex" > /dev/null; then
8014 *** Warning: the command libtool uses to detect shared libraries,
8015 *** $file_magic_cmd, produces output that libtool cannot recognize.
8016 *** The result is that libtool may fail to recognize shared libraries
8017 *** as such. This will affect the creation of libtool libraries that
8018 *** depend on shared libraries, but programs linked with such libtool
8019 *** libraries will work regardless of this problem. Nevertheless, you
8020 *** may want to report the problem to your system manager and/or to
8021 *** bug-libtool@gnu.org
8031 MAGIC_CMD="$lt_save_MAGIC_CMD"
8036 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8037 if test -n "$MAGIC_CMD"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8039 $as_echo "$MAGIC_CMD" >&6; }
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8049 if test -z "$lt_cv_path_MAGIC_CMD"; then
8050 if test -n "$ac_tool_prefix"; then
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8052 $as_echo_n "checking for file... " >&6; }
8053 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8054 $as_echo_n "(cached) " >&6
8058 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8061 lt_save_MAGIC_CMD="$MAGIC_CMD"
8062 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8063 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8064 for ac_dir in $ac_dummy; do
8066 test -z "$ac_dir" && ac_dir=.
8067 if test -f $ac_dir/file; then
8068 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8069 if test -n "$file_magic_test_file"; then
8070 case $deplibs_check_method in
8072 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8073 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8074 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8075 $EGREP "$file_magic_regex" > /dev/null; then
8080 *** Warning: the command libtool uses to detect shared libraries,
8081 *** $file_magic_cmd, produces output that libtool cannot recognize.
8082 *** The result is that libtool may fail to recognize shared libraries
8083 *** as such. This will affect the creation of libtool libraries that
8084 *** depend on shared libraries, but programs linked with such libtool
8085 *** libraries will work regardless of this problem. Nevertheless, you
8086 *** may want to report the problem to your system manager and/or to
8087 *** bug-libtool@gnu.org
8097 MAGIC_CMD="$lt_save_MAGIC_CMD"
8102 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8103 if test -n "$MAGIC_CMD"; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8105 $as_echo "$MAGIC_CMD" >&6; }
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108 $as_echo "no" >&6; }
8121 # Use C for the default configuration in the libtool script
8125 ac_cpp='$CPP $CPPFLAGS'
8126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8131 # Source file extension for C test sources.
8134 # Object file extension for compiled C test sources.
8138 # Code to be used in simple compile tests
8139 lt_simple_compile_test_code="int some_variable = 0;"
8141 # Code to be used in simple link tests
8142 lt_simple_link_test_code='int main(){return(0);}'
8150 # If no C compiler was specified, use CC.
8153 # If no C compiler flags were specified, use CFLAGS.
8154 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8156 # Allow CC to be a program name with arguments.
8159 # Save the default compiler, since it gets overwritten when the other
8160 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8161 compiler_DEFAULT=$CC
8163 # save warnings/boilerplate of simple test code
8164 ac_outfile=conftest.$ac_objext
8165 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8166 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8167 _lt_compiler_boilerplate=`cat conftest.err`
8170 ac_outfile=conftest.$ac_objext
8171 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8172 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8173 _lt_linker_boilerplate=`cat conftest.err`
8178 ## There is no encapsulation within the following macros, do not change
8179 ## the running order or otherwise move them around unless you know exactly
8180 ## what you are doing...
8181 if test -n "$compiler"; then
8183 lt_prog_compiler_no_builtin_flag=
8185 if test "$GCC" = yes; then
8186 case $cc_basename in
8188 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8190 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8194 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8195 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8196 $as_echo_n "(cached) " >&6
8198 lt_cv_prog_compiler_rtti_exceptions=no
8199 ac_outfile=conftest.$ac_objext
8200 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8201 lt_compiler_flag="-fno-rtti -fno-exceptions"
8202 # Insert the option either (1) after the last *FLAGS variable, or
8203 # (2) before a word containing "conftest.", or (3) at the end.
8204 # Note that $ac_compile itself does not contain backslashes and begins
8205 # with a dollar sign (not a hyphen), so the echo should work correctly.
8206 # The option is referenced via a variable to avoid confusing sed.
8207 lt_compile=`echo "$ac_compile" | $SED \
8208 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8210 -e 's:$: $lt_compiler_flag:'`
8211 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8212 (eval "$lt_compile" 2>conftest.err)
8214 cat conftest.err >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 if (exit $ac_status) && test -s "$ac_outfile"; then
8217 # The compiler can only warn and ignore the option if not recognized
8218 # So say no if there are warnings other than the usual output.
8219 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8220 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8221 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8222 lt_cv_prog_compiler_rtti_exceptions=yes
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8229 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8231 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8232 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8244 lt_prog_compiler_wl=
8245 lt_prog_compiler_pic=
8246 lt_prog_compiler_static=
8249 if test "$GCC" = yes; then
8250 lt_prog_compiler_wl='-Wl,'
8251 lt_prog_compiler_static='-static'
8255 # All AIX code is PIC.
8256 if test "$host_cpu" = ia64; then
8257 # AIX 5 now supports IA64 processor
8258 lt_prog_compiler_static='-Bstatic'
8265 # see comment about AmigaOS4 .so support
8266 lt_prog_compiler_pic='-fPIC'
8269 # FIXME: we need at least 68020 code to build shared libraries, but
8270 # adding the `-m68020' flag to GCC prevents building anything better,
8272 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8277 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8278 # PIC is the default for these OSes.
8281 mingw* | cygwin* | pw32* | os2* | cegcc*)
8282 # This hack is so that the source file can tell whether it is being
8283 # built for inclusion in a dll (and should export symbols for example).
8284 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8285 # (--disable-auto-import) libraries
8286 lt_prog_compiler_pic='-DDLL_EXPORT'
8289 darwin* | rhapsody*)
8290 # PIC is the default on this platform
8291 # Common symbols not allowed in MH_DYLIB files
8292 lt_prog_compiler_pic='-fno-common'
8296 # PIC is the default for Haiku.
8297 # The "-static" flag exists, but is broken.
8298 lt_prog_compiler_static=
8302 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8303 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8304 # sets the default TLS model and affects inlining.
8310 lt_prog_compiler_pic='-fPIC'
8316 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8317 # Instead, we relocate shared libraries at runtime.
8321 # Just because we use GCC doesn't mean we suddenly get shared libraries
8322 # on systems that don't support them.
8323 lt_prog_compiler_can_build_shared=no
8328 # QNX uses GNU C++, but need to define -shared option too, otherwise
8330 lt_prog_compiler_pic='-fPIC -shared'
8334 if test -d /usr/nec; then
8335 lt_prog_compiler_pic=-Kconform_pic
8340 lt_prog_compiler_pic='-fPIC'
8344 case $cc_basename in
8345 nvcc*) # Cuda Compiler Driver 2.2
8346 lt_prog_compiler_wl='-Xlinker '
8347 if test -n "$lt_prog_compiler_pic"; then
8348 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8353 # PORTME Check for flag to pass linker flags through the system compiler.
8356 lt_prog_compiler_wl='-Wl,'
8357 if test "$host_cpu" = ia64; then
8358 # AIX 5 now supports IA64 processor
8359 lt_prog_compiler_static='-Bstatic'
8361 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8365 mingw* | cygwin* | pw32* | os2* | cegcc*)
8366 # This hack is so that the source file can tell whether it is being
8367 # built for inclusion in a dll (and should export symbols for example).
8368 lt_prog_compiler_pic='-DDLL_EXPORT'
8371 hpux9* | hpux10* | hpux11*)
8372 lt_prog_compiler_wl='-Wl,'
8373 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8380 lt_prog_compiler_pic='+Z'
8383 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8384 lt_prog_compiler_static='${wl}-a ${wl}archive'
8387 irix5* | irix6* | nonstopux*)
8388 lt_prog_compiler_wl='-Wl,'
8389 # PIC (with -KPIC) is the default.
8390 lt_prog_compiler_static='-non_shared'
8393 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8394 case $cc_basename in
8395 # old Intel for x86_64 which still supported -KPIC.
8397 lt_prog_compiler_wl='-Wl,'
8398 lt_prog_compiler_pic='-KPIC'
8399 lt_prog_compiler_static='-static'
8401 # icc used to be incompatible with GCC.
8402 # ICC 10 doesn't accept -KPIC any more.
8404 lt_prog_compiler_wl='-Wl,'
8405 lt_prog_compiler_pic='-fPIC'
8406 lt_prog_compiler_static='-static'
8408 # Lahey Fortran 8.1.
8410 lt_prog_compiler_wl='-Wl,'
8411 lt_prog_compiler_pic='--shared'
8412 lt_prog_compiler_static='--static'
8415 # NAG Fortran compiler
8416 lt_prog_compiler_wl='-Wl,-Wl,,'
8417 lt_prog_compiler_pic='-PIC'
8418 lt_prog_compiler_static='-Bstatic'
8420 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8421 # Portland Group compilers (*not* the Pentium gcc compiler,
8422 # which looks to be a dead project)
8423 lt_prog_compiler_wl='-Wl,'
8424 lt_prog_compiler_pic='-fpic'
8425 lt_prog_compiler_static='-Bstatic'
8428 lt_prog_compiler_wl='-Wl,'
8429 # All Alpha code is PIC.
8430 lt_prog_compiler_static='-non_shared'
8432 xl* | bgxl* | bgf* | mpixl*)
8433 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8434 lt_prog_compiler_wl='-Wl,'
8435 lt_prog_compiler_pic='-qpic'
8436 lt_prog_compiler_static='-qstaticlink'
8439 case `$CC -V 2>&1 | sed 5q` in
8440 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8441 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8442 lt_prog_compiler_pic='-KPIC'
8443 lt_prog_compiler_static='-Bstatic'
8444 lt_prog_compiler_wl=''
8446 *Sun\ F* | *Sun*Fortran*)
8447 lt_prog_compiler_pic='-KPIC'
8448 lt_prog_compiler_static='-Bstatic'
8449 lt_prog_compiler_wl='-Qoption ld '
8453 lt_prog_compiler_pic='-KPIC'
8454 lt_prog_compiler_static='-Bstatic'
8455 lt_prog_compiler_wl='-Wl,'
8457 *Intel*\ [CF]*Compiler*)
8458 lt_prog_compiler_wl='-Wl,'
8459 lt_prog_compiler_pic='-fPIC'
8460 lt_prog_compiler_static='-static'
8463 lt_prog_compiler_wl='-Wl,'
8464 lt_prog_compiler_pic='-fpic'
8465 lt_prog_compiler_static='-Bstatic'
8473 lt_prog_compiler_pic='-KPIC'
8474 lt_prog_compiler_static='-Bstatic'
8478 # QNX uses GNU C++, but need to define -shared option too, otherwise
8480 lt_prog_compiler_pic='-fPIC -shared'
8483 osf3* | osf4* | osf5*)
8484 lt_prog_compiler_wl='-Wl,'
8485 # All OSF/1 code is PIC.
8486 lt_prog_compiler_static='-non_shared'
8490 lt_prog_compiler_static='-non_shared'
8494 lt_prog_compiler_pic='-KPIC'
8495 lt_prog_compiler_static='-Bstatic'
8496 case $cc_basename in
8497 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8498 lt_prog_compiler_wl='-Qoption ld ';;
8500 lt_prog_compiler_wl='-Wl,';;
8505 lt_prog_compiler_wl='-Qoption ld '
8506 lt_prog_compiler_pic='-PIC'
8507 lt_prog_compiler_static='-Bstatic'
8510 sysv4 | sysv4.2uw2* | sysv4.3*)
8511 lt_prog_compiler_wl='-Wl,'
8512 lt_prog_compiler_pic='-KPIC'
8513 lt_prog_compiler_static='-Bstatic'
8517 if test -d /usr/nec ;then
8518 lt_prog_compiler_pic='-Kconform_pic'
8519 lt_prog_compiler_static='-Bstatic'
8523 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8524 lt_prog_compiler_wl='-Wl,'
8525 lt_prog_compiler_pic='-KPIC'
8526 lt_prog_compiler_static='-Bstatic'
8530 lt_prog_compiler_wl='-Wl,'
8531 lt_prog_compiler_can_build_shared=no
8535 lt_prog_compiler_pic='-pic'
8536 lt_prog_compiler_static='-Bstatic'
8540 lt_prog_compiler_can_build_shared=no
8546 # For platforms which do not support PIC, -DPIC is meaningless:
8548 lt_prog_compiler_pic=
8551 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8556 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8557 if ${lt_cv_prog_compiler_pic+:} false; then :
8558 $as_echo_n "(cached) " >&6
8560 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8563 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8564 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8567 # Check to make sure the PIC flag actually works.
8569 if test -n "$lt_prog_compiler_pic"; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8571 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8572 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8573 $as_echo_n "(cached) " >&6
8575 lt_cv_prog_compiler_pic_works=no
8576 ac_outfile=conftest.$ac_objext
8577 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8578 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8579 # Insert the option either (1) after the last *FLAGS variable, or
8580 # (2) before a word containing "conftest.", or (3) at the end.
8581 # Note that $ac_compile itself does not contain backslashes and begins
8582 # with a dollar sign (not a hyphen), so the echo should work correctly.
8583 # The option is referenced via a variable to avoid confusing sed.
8584 lt_compile=`echo "$ac_compile" | $SED \
8585 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8586 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8587 -e 's:$: $lt_compiler_flag:'`
8588 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8589 (eval "$lt_compile" 2>conftest.err)
8591 cat conftest.err >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 if (exit $ac_status) && test -s "$ac_outfile"; then
8594 # The compiler can only warn and ignore the option if not recognized
8595 # So say no if there are warnings other than the usual output.
8596 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8597 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8598 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8599 lt_cv_prog_compiler_pic_works=yes
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8606 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8608 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8609 case $lt_prog_compiler_pic in
8611 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8614 lt_prog_compiler_pic=
8615 lt_prog_compiler_can_build_shared=no
8631 # Check to make sure the static flag actually works.
8633 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8635 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8636 if ${lt_cv_prog_compiler_static_works+:} false; then :
8637 $as_echo_n "(cached) " >&6
8639 lt_cv_prog_compiler_static_works=no
8640 save_LDFLAGS="$LDFLAGS"
8641 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8642 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8643 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8644 # The linker can only warn and ignore the option if not recognized
8645 # So say no if there are warnings
8646 if test -s conftest.err; then
8647 # Append any errors to the config.log.
8648 cat conftest.err 1>&5
8649 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8650 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8651 if diff conftest.exp conftest.er2 >/dev/null; then
8652 lt_cv_prog_compiler_static_works=yes
8655 lt_cv_prog_compiler_static_works=yes
8659 LDFLAGS="$save_LDFLAGS"
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8663 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8665 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8668 lt_prog_compiler_static=
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8678 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8679 if ${lt_cv_prog_compiler_c_o+:} false; then :
8680 $as_echo_n "(cached) " >&6
8682 lt_cv_prog_compiler_c_o=no
8683 $RM -r conftest 2>/dev/null
8687 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8689 lt_compiler_flag="-o out/conftest2.$ac_objext"
8690 # Insert the option either (1) after the last *FLAGS variable, or
8691 # (2) before a word containing "conftest.", or (3) at the end.
8692 # Note that $ac_compile itself does not contain backslashes and begins
8693 # with a dollar sign (not a hyphen), so the echo should work correctly.
8694 lt_compile=`echo "$ac_compile" | $SED \
8695 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8696 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8697 -e 's:$: $lt_compiler_flag:'`
8698 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8699 (eval "$lt_compile" 2>out/conftest.err)
8701 cat out/conftest.err >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8705 # The compiler can only warn and ignore the option if not recognized
8706 # So say no if there are warnings
8707 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8708 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8709 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8710 lt_cv_prog_compiler_c_o=yes
8715 # SGI C++ compiler will create directory out/ii_files/ for
8716 # template instantiation
8717 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8718 $RM out/* && rmdir out
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8725 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8733 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8734 if ${lt_cv_prog_compiler_c_o+:} false; then :
8735 $as_echo_n "(cached) " >&6
8737 lt_cv_prog_compiler_c_o=no
8738 $RM -r conftest 2>/dev/null
8742 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8744 lt_compiler_flag="-o out/conftest2.$ac_objext"
8745 # Insert the option either (1) after the last *FLAGS variable, or
8746 # (2) before a word containing "conftest.", or (3) at the end.
8747 # Note that $ac_compile itself does not contain backslashes and begins
8748 # with a dollar sign (not a hyphen), so the echo should work correctly.
8749 lt_compile=`echo "$ac_compile" | $SED \
8750 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8751 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8752 -e 's:$: $lt_compiler_flag:'`
8753 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8754 (eval "$lt_compile" 2>out/conftest.err)
8756 cat out/conftest.err >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8760 # The compiler can only warn and ignore the option if not recognized
8761 # So say no if there are warnings
8762 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8763 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8764 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8765 lt_cv_prog_compiler_c_o=yes
8770 # SGI C++ compiler will create directory out/ii_files/ for
8771 # template instantiation
8772 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8773 $RM out/* && rmdir out
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8780 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8785 hard_links="nottested"
8786 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8787 # do not overwrite the value of need_locks provided by the user
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8789 $as_echo_n "checking if we can lock with hard links... " >&6; }
8792 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8794 ln conftest.a conftest.b 2>&5 || hard_links=no
8795 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8797 $as_echo "$hard_links" >&6; }
8798 if test "$hard_links" = no; then
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8800 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8813 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8816 allow_undefined_flag=
8817 always_export_symbols=no
8819 archive_expsym_cmds=
8820 compiler_needs_object=no
8821 enable_shared_with_static_runtimes=no
8822 export_dynamic_flag_spec=
8823 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8824 hardcode_automatic=no
8826 hardcode_direct_absolute=no
8827 hardcode_libdir_flag_spec=
8828 hardcode_libdir_separator=
8830 hardcode_shlibpath_var=unsupported
8832 link_all_deplibs=unknown
8835 old_archive_from_new_cmds=
8836 old_archive_from_expsyms_cmds=
8837 thread_safe_flag_spec=
8838 whole_archive_flag_spec=
8839 # include_expsyms should be a list of space-separated symbols to be *always*
8840 # included in the symbol list
8842 # exclude_expsyms can be an extended regexp of symbols to exclude
8843 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8844 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8845 # as well as any symbol that contains `d'.
8846 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8847 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8848 # platforms (ab)use it in PIC code, but their linkers get confused if
8849 # the symbol is explicitly referenced. Since portable code cannot
8850 # rely on this symbol name, it's probably fine to never include it in
8851 # preloaded symbol tables.
8852 # Exclude shared library initialization/finalization symbols.
8853 extract_expsyms_cmds=
8856 cygwin* | mingw* | pw32* | cegcc*)
8857 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8858 # When not using gcc, we currently assume that we are using
8859 # Microsoft Visual C++.
8860 if test "$GCC" != yes; then
8865 # we just hope/assume this is gcc and not c89 (= MSVC++)
8875 # On some targets, GNU ld is compatible enough with the native linker
8876 # that we're better off using the native interface for both.
8877 lt_use_gnu_ld_interface=no
8878 if test "$with_gnu_ld" = yes; then
8881 # The AIX port of GNU ld has always aspired to compatibility
8882 # with the native linker. However, as the warning in the GNU ld
8883 # block says, versions before 2.19.5* couldn't really create working
8884 # shared libraries, regardless of the interface used.
8885 case `$LD -v 2>&1` in
8886 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8887 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8888 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8890 lt_use_gnu_ld_interface=yes
8895 lt_use_gnu_ld_interface=yes
8900 if test "$lt_use_gnu_ld_interface" = yes; then
8901 # If archive_cmds runs LD, not CC, wlarc should be empty
8904 # Set some defaults for GNU ld with shared library support. These
8905 # are reset later if shared libraries are not supported. Putting them
8906 # here allows them to be overridden if necessary.
8907 runpath_var=LD_RUN_PATH
8908 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8909 export_dynamic_flag_spec='${wl}--export-dynamic'
8910 # ancient GNU ld didn't support --whole-archive et. al.
8911 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8912 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8914 whole_archive_flag_spec=
8916 supports_anon_versioning=no
8917 case `$LD -v 2>&1` in
8918 *GNU\ gold*) supports_anon_versioning=yes ;;
8919 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8920 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8921 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8922 *\ 2.11.*) ;; # other 2.11 versions
8923 *) supports_anon_versioning=yes ;;
8926 # See if GNU ld supports shared libraries.
8929 # On AIX/PPC, the GNU linker is very broken
8930 if test "$host_cpu" != ia64; then
8934 *** Warning: the GNU linker, at least up to release 2.19, is reported
8935 *** to be unable to reliably create shared libraries on AIX.
8936 *** Therefore, libtool is disabling shared libraries support. If you
8937 *** really care for shared libraries, you may want to install binutils
8938 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8939 *** You will then need to restart the configuration process.
8948 # see comment about AmigaOS4 .so support
8949 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8950 archive_expsym_cmds=''
8953 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)'
8954 hardcode_libdir_flag_spec='-L$libdir'
8955 hardcode_minus_L=yes
8961 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8962 allow_undefined_flag=unsupported
8963 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8964 # support --undefined. This deserves some investigation. FIXME
8965 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8971 cygwin* | mingw* | pw32* | cegcc*)
8972 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8973 # as there is no search path for DLLs.
8974 hardcode_libdir_flag_spec='-L$libdir'
8975 export_dynamic_flag_spec='${wl}--export-all-symbols'
8976 allow_undefined_flag=unsupported
8977 always_export_symbols=no
8978 enable_shared_with_static_runtimes=yes
8979 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'
8980 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8982 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8983 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8984 # If the export-symbols file already is a .def file (1st line
8985 # is EXPORTS), use it as is; otherwise, prepend...
8986 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8987 cp $export_symbols $output_objdir/$soname.def;
8989 echo EXPORTS > $output_objdir/$soname.def;
8990 cat $export_symbols >> $output_objdir/$soname.def;
8992 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9000 link_all_deplibs=yes
9005 hardcode_shlibpath_var=no
9006 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9007 export_dynamic_flag_spec='${wl}-E'
9008 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9009 # Instead, shared libraries are loaded at an image base (0x10000000 by
9010 # default) and relocated if they conflict, which is a slow very memory
9011 # consuming and fragmenting process. To avoid this, we pick a random,
9012 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9013 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9014 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9015 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'
9018 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9020 if test "$host_os" = linux-dietlibc; then
9021 case $cc_basename in
9022 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9025 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9026 && test "$tmp_diet" = no
9028 tmp_addflag=' $pic_flag'
9029 tmp_sharedflag='-shared'
9030 case $cc_basename,$host_cpu in
9031 pgcc*) # Portland Group C compiler
9032 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'
9033 tmp_addflag=' $pic_flag'
9035 pgf77* | pgf90* | pgf95* | pgfortran*)
9036 # Portland Group f77 and f90 compilers
9037 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9038 tmp_addflag=' $pic_flag -Mnomain' ;;
9039 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9040 tmp_addflag=' -i_dynamic' ;;
9041 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9042 tmp_addflag=' -i_dynamic -nofor_main' ;;
9043 ifc* | ifort*) # Intel Fortran compiler
9044 tmp_addflag=' -nofor_main' ;;
9045 lf95*) # Lahey Fortran 8.1
9046 whole_archive_flag_spec=
9047 tmp_sharedflag='--shared' ;;
9048 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9049 tmp_sharedflag='-qmkshrobj'
9051 nvcc*) # Cuda Compiler Driver 2.2
9052 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'
9053 compiler_needs_object=yes
9056 case `$CC -V 2>&1 | sed 5q` in
9057 *Sun\ C*) # Sun C 5.9
9058 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'
9059 compiler_needs_object=yes
9060 tmp_sharedflag='-G' ;;
9061 *Sun\ F*) # Sun Fortran 8.3
9062 tmp_sharedflag='-G' ;;
9064 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9066 if test "x$supports_anon_versioning" = xyes; then
9067 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9068 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9069 echo "local: *; };" >> $output_objdir/$libname.ver~
9070 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9073 case $cc_basename in
9074 xlf* | bgf* | bgxlf* | mpixlf*)
9075 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9076 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9077 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9078 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9079 if test "x$supports_anon_versioning" = xyes; then
9080 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9081 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9082 echo "local: *; };" >> $output_objdir/$libname.ver~
9083 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9093 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9094 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9097 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9098 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9103 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9107 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9108 *** create shared libraries on Solaris systems. Therefore, libtool
9109 *** is disabling shared libraries support. We urge you to upgrade GNU
9110 *** binutils to release 2.9.1 or newer. Another option is to modify
9111 *** your PATH or compiler configuration so that the native linker is
9112 *** used, and then restart.
9115 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9116 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9117 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9123 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9124 case `$LD -v 2>&1` in
9125 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9129 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9130 *** reliably create shared libraries on SCO systems. Therefore, libtool
9131 *** is disabling shared libraries support. We urge you to upgrade GNU
9132 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9133 *** your PATH or compiler configuration so that the native linker is
9134 *** used, and then restart.
9139 # For security reasons, it is highly recommended that you always
9140 # use absolute paths for naming shared libraries, and exclude the
9141 # DT_RUNPATH tag from executables and libraries. But doing so
9142 # requires that you compile everything twice, which is a pain.
9143 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9144 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9146 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9155 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9158 hardcode_shlibpath_var=no
9162 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9163 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9164 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9171 if test "$ld_shlibs" = no; then
9173 hardcode_libdir_flag_spec=
9174 export_dynamic_flag_spec=
9175 whole_archive_flag_spec=
9178 # PORTME fill in a description of your system's linker (not GNU ld)
9181 allow_undefined_flag=unsupported
9182 always_export_symbols=yes
9183 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'
9184 # Note: this linker hardcodes the directories in LIBPATH if there
9185 # are no directories specified by -L.
9186 hardcode_minus_L=yes
9187 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9188 # Neither direct hardcoding nor static linking is supported with a
9190 hardcode_direct=unsupported
9195 if test "$host_cpu" = ia64; then
9196 # On IA64, the linker does run time linking by default, so we don't
9197 # have to do anything special.
9198 aix_use_runtimelinking=no
9199 exp_sym_flag='-Bexport'
9202 # If we're using GNU nm, then we don't want the "-C" option.
9203 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9204 # Also, AIX nm treats weak defined symbols like other global
9205 # defined symbols, whereas GNU nm marks them as "W".
9206 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9207 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'
9209 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'
9211 aix_use_runtimelinking=no
9213 # Test if we are trying to use run time linking or normal
9214 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9215 # need to do runtime linking.
9216 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9217 for ld_flag in $LDFLAGS; do
9218 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9219 aix_use_runtimelinking=yes
9226 exp_sym_flag='-bexport'
9227 no_entry_flag='-bnoentry'
9230 # When large executables or shared objects are built, AIX ld can
9231 # have problems creating the table of contents. If linking a library
9232 # or program results in "error TOC overflow" add -mminimal-toc to
9233 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9234 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9238 hardcode_direct_absolute=yes
9239 hardcode_libdir_separator=':'
9240 link_all_deplibs=yes
9241 file_list_spec='${wl}-f,'
9243 if test "$GCC" = yes; then
9244 case $host_os in aix4.[012]|aix4.[012].*)
9245 # We only want to do this on AIX 4.2 and lower, the check
9246 # below for broken collect2 doesn't work under 4.3+
9247 collect2name=`${CC} -print-prog-name=collect2`
9248 if test -f "$collect2name" &&
9249 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9251 # We have reworked collect2
9254 # We have old collect2
9255 hardcode_direct=unsupported
9256 # It fails to find uninstalled libraries when the uninstalled
9257 # path is not listed in the libpath. Setting hardcode_minus_L
9258 # to unsupported forces relinking
9259 hardcode_minus_L=yes
9260 hardcode_libdir_flag_spec='-L$libdir'
9261 hardcode_libdir_separator=
9265 shared_flag='-shared'
9266 if test "$aix_use_runtimelinking" = yes; then
9267 shared_flag="$shared_flag "'${wl}-G'
9271 if test "$host_cpu" = ia64; then
9272 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9273 # chokes on -Wl,-G. The following line is correct:
9276 if test "$aix_use_runtimelinking" = yes; then
9277 shared_flag='${wl}-G'
9279 shared_flag='${wl}-bM:SRE'
9284 export_dynamic_flag_spec='${wl}-bexpall'
9285 # It seems that -bexpall does not export symbols beginning with
9286 # underscore (_), so it is better to generate a list of symbols to export.
9287 always_export_symbols=yes
9288 if test "$aix_use_runtimelinking" = yes; then
9289 # Warning - without using the other runtime loading flags (-brtl),
9290 # -berok will link without error, but may produce a broken library.
9291 allow_undefined_flag='-berok'
9292 # Determine the default libpath from the value encoded in an
9294 if test "${lt_cv_aix_libpath+set}" = set; then
9295 aix_libpath=$lt_cv_aix_libpath
9297 if ${lt_cv_aix_libpath_+:} false; then :
9298 $as_echo_n "(cached) " >&6
9300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9301 /* end confdefs.h. */
9311 if ac_fn_c_try_link "$LINENO"; then :
9313 lt_aix_libpath_sed='
9314 /Import File Strings/,/^$/ {
9316 s/^0 *\([^ ]*\) *$/\1/
9320 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9321 # Check for a 64-bit object if we didn't find anything.
9322 if test -z "$lt_cv_aix_libpath_"; then
9323 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9326 rm -f core conftest.err conftest.$ac_objext \
9327 conftest$ac_exeext conftest.$ac_ext
9328 if test -z "$lt_cv_aix_libpath_"; then
9329 lt_cv_aix_libpath_="/usr/lib:/lib"
9334 aix_libpath=$lt_cv_aix_libpath_
9337 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9338 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"
9340 if test "$host_cpu" = ia64; then
9341 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9342 allow_undefined_flag="-z nodefs"
9343 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"
9345 # Determine the default libpath from the value encoded in an
9347 if test "${lt_cv_aix_libpath+set}" = set; then
9348 aix_libpath=$lt_cv_aix_libpath
9350 if ${lt_cv_aix_libpath_+:} false; then :
9351 $as_echo_n "(cached) " >&6
9353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354 /* end confdefs.h. */
9364 if ac_fn_c_try_link "$LINENO"; then :
9366 lt_aix_libpath_sed='
9367 /Import File Strings/,/^$/ {
9369 s/^0 *\([^ ]*\) *$/\1/
9373 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9374 # Check for a 64-bit object if we didn't find anything.
9375 if test -z "$lt_cv_aix_libpath_"; then
9376 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9379 rm -f core conftest.err conftest.$ac_objext \
9380 conftest$ac_exeext conftest.$ac_ext
9381 if test -z "$lt_cv_aix_libpath_"; then
9382 lt_cv_aix_libpath_="/usr/lib:/lib"
9387 aix_libpath=$lt_cv_aix_libpath_
9390 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9391 # Warning - without using the other run time loading flags,
9392 # -berok will link without error, but may produce a broken library.
9393 no_undefined_flag=' ${wl}-bernotok'
9394 allow_undefined_flag=' ${wl}-berok'
9395 if test "$with_gnu_ld" = yes; then
9396 # We only use this code for GNU lds that support --whole-archive.
9397 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9399 # Exported symbols can be pulled into shared objects from archives
9400 whole_archive_flag_spec='$convenience'
9402 archive_cmds_need_lc=yes
9403 # This is similar to how AIX traditionally builds its shared libraries.
9404 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'
9412 # see comment about AmigaOS4 .so support
9413 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9414 archive_expsym_cmds=''
9417 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)'
9418 hardcode_libdir_flag_spec='-L$libdir'
9419 hardcode_minus_L=yes
9425 export_dynamic_flag_spec=-rdynamic
9428 cygwin* | mingw* | pw32* | cegcc*)
9429 # When not using gcc, we currently assume that we are using
9430 # Microsoft Visual C++.
9431 # hardcode_libdir_flag_spec is actually meaningless, as there is
9432 # no search path for DLLs.
9433 case $cc_basename in
9436 hardcode_libdir_flag_spec=' '
9437 allow_undefined_flag=unsupported
9438 always_export_symbols=yes
9440 # Tell ltmain to make .lib files, not .a files.
9442 # Tell ltmain to make .dll files, not .so files.
9444 # FIXME: Setting linknames here is a bad hack.
9445 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9446 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9447 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9449 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9451 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9453 # The linker will not automatically build a static lib if we build a DLL.
9454 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9455 enable_shared_with_static_runtimes=yes
9456 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9457 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9459 old_postinstall_cmds='chmod 644 $oldlib'
9460 postlink_cmds='lt_outputfile="@OUTPUT@"~
9461 lt_tool_outputfile="@TOOL_OUTPUT@"~
9462 case $lt_outputfile in
9465 lt_outputfile="$lt_outputfile.exe"
9466 lt_tool_outputfile="$lt_tool_outputfile.exe"
9469 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9470 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9471 $RM "$lt_outputfile.manifest";
9475 # Assume MSVC wrapper
9476 hardcode_libdir_flag_spec=' '
9477 allow_undefined_flag=unsupported
9478 # Tell ltmain to make .lib files, not .a files.
9480 # Tell ltmain to make .dll files, not .so files.
9482 # FIXME: Setting linknames here is a bad hack.
9483 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9484 # The linker will automatically build a .lib file if we build a DLL.
9485 old_archive_from_new_cmds='true'
9486 # FIXME: Should let the user specify the lib program.
9487 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9488 enable_shared_with_static_runtimes=yes
9493 darwin* | rhapsody*)
9496 archive_cmds_need_lc=no
9498 hardcode_automatic=yes
9499 hardcode_shlibpath_var=unsupported
9500 if test "$lt_cv_ld_force_load" = "yes"; then
9501 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\"`'
9504 whole_archive_flag_spec=''
9506 link_all_deplibs=yes
9507 allow_undefined_flag="$_lt_dar_allow_undefined"
9508 case $cc_basename in
9509 ifort*) _lt_dar_can_shared=yes ;;
9510 *) _lt_dar_can_shared=$GCC ;;
9512 if test "$_lt_dar_can_shared" = "yes"; then
9513 output_verbose_link_cmd=func_echo_all
9514 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9515 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9516 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}"
9517 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}"
9526 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9527 hardcode_libdir_flag_spec='-L$libdir'
9528 hardcode_shlibpath_var=no
9531 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9532 # support. Future versions do this automatically, but an explicit c++rt0.o
9533 # does not break anything, and helps significantly (at the cost of a little
9536 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9537 hardcode_libdir_flag_spec='-R$libdir'
9539 hardcode_shlibpath_var=no
9542 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9546 hardcode_minus_L=yes
9547 hardcode_shlibpath_var=no
9550 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9551 freebsd* | dragonfly*)
9552 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9553 hardcode_libdir_flag_spec='-R$libdir'
9555 hardcode_shlibpath_var=no
9559 if test "$GCC" = yes; then
9560 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'
9562 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'
9564 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9565 hardcode_libdir_separator=:
9568 # hardcode_minus_L: Not really in the search PATH,
9569 # but as the default location of the library.
9570 hardcode_minus_L=yes
9571 export_dynamic_flag_spec='${wl}-E'
9575 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9576 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9578 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9580 if test "$with_gnu_ld" = no; then
9581 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9582 hardcode_libdir_separator=:
9584 hardcode_direct_absolute=yes
9585 export_dynamic_flag_spec='${wl}-E'
9586 # hardcode_minus_L: Not really in the search PATH,
9587 # but as the default location of the library.
9588 hardcode_minus_L=yes
9593 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9596 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9599 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9602 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9608 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9611 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9615 # Older versions of the 11.00 compiler do not understand -b yet
9616 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9618 $as_echo_n "checking if $CC understands -b... " >&6; }
9619 if ${lt_cv_prog_compiler__b+:} false; then :
9620 $as_echo_n "(cached) " >&6
9622 lt_cv_prog_compiler__b=no
9623 save_LDFLAGS="$LDFLAGS"
9624 LDFLAGS="$LDFLAGS -b"
9625 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9626 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9627 # The linker can only warn and ignore the option if not recognized
9628 # So say no if there are warnings
9629 if test -s conftest.err; then
9630 # Append any errors to the config.log.
9631 cat conftest.err 1>&5
9632 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9634 if diff conftest.exp conftest.er2 >/dev/null; then
9635 lt_cv_prog_compiler__b=yes
9638 lt_cv_prog_compiler__b=yes
9642 LDFLAGS="$save_LDFLAGS"
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9646 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9648 if test x"$lt_cv_prog_compiler__b" = xyes; then
9649 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9651 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9657 if test "$with_gnu_ld" = no; then
9658 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9659 hardcode_libdir_separator=:
9664 hardcode_shlibpath_var=no
9668 hardcode_direct_absolute=yes
9669 export_dynamic_flag_spec='${wl}-E'
9671 # hardcode_minus_L: Not really in the search PATH,
9672 # but as the default location of the library.
9673 hardcode_minus_L=yes
9679 irix5* | irix6* | nonstopux*)
9680 if test "$GCC" = yes; then
9681 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'
9682 # Try to use the -exported_symbol ld option, if it does not
9683 # work, assume that -exports_file does not work either and
9684 # implicitly export all symbols.
9685 # This should be the same for all languages, so no per-tag cache variable.
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9687 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9688 if ${lt_cv_irix_exported_symbol+:} false; then :
9689 $as_echo_n "(cached) " >&6
9691 save_LDFLAGS="$LDFLAGS"
9692 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9694 /* end confdefs.h. */
9695 int foo (void) { return 0; }
9697 if ac_fn_c_try_link "$LINENO"; then :
9698 lt_cv_irix_exported_symbol=yes
9700 lt_cv_irix_exported_symbol=no
9702 rm -f core conftest.err conftest.$ac_objext \
9703 conftest$ac_exeext conftest.$ac_ext
9704 LDFLAGS="$save_LDFLAGS"
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9707 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9708 if test "$lt_cv_irix_exported_symbol" = yes; then
9709 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'
9712 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'
9713 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'
9715 archive_cmds_need_lc='no'
9716 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9717 hardcode_libdir_separator=:
9719 link_all_deplibs=yes
9723 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9724 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9726 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9728 hardcode_libdir_flag_spec='-R$libdir'
9730 hardcode_shlibpath_var=no
9734 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9736 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9737 hardcode_libdir_separator=:
9738 hardcode_shlibpath_var=no
9745 if test -f /usr/libexec/ld.so; then
9747 hardcode_shlibpath_var=no
9748 hardcode_direct_absolute=yes
9749 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9750 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9751 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9752 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9753 export_dynamic_flag_spec='${wl}-E'
9756 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9757 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9758 hardcode_libdir_flag_spec='-R$libdir'
9761 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9762 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9772 hardcode_libdir_flag_spec='-L$libdir'
9773 hardcode_minus_L=yes
9774 allow_undefined_flag=unsupported
9775 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'
9776 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9780 if test "$GCC" = yes; then
9781 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9782 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'
9784 allow_undefined_flag=' -expect_unresolved \*'
9785 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'
9787 archive_cmds_need_lc='no'
9788 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9789 hardcode_libdir_separator=:
9792 osf4* | osf5*) # as osf3* with the addition of -msym flag
9793 if test "$GCC" = yes; then
9794 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9795 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'
9796 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9798 allow_undefined_flag=' -expect_unresolved \*'
9799 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'
9800 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~
9801 $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'
9803 # Both c and cxx compiler support -rpath directly
9804 hardcode_libdir_flag_spec='-rpath $libdir'
9806 archive_cmds_need_lc='no'
9807 hardcode_libdir_separator=:
9811 no_undefined_flag=' -z defs'
9812 if test "$GCC" = yes; then
9814 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9815 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9816 $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'
9818 case `$CC -V 2>&1` in
9821 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9822 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9823 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9827 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9828 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9829 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9833 hardcode_libdir_flag_spec='-R$libdir'
9834 hardcode_shlibpath_var=no
9836 solaris2.[0-5] | solaris2.[0-5].*) ;;
9838 # The compiler driver will combine and reorder linker options,
9839 # but understands `-z linker_flag'. GCC discards it without `$wl',
9840 # but is careful enough not to reorder.
9841 # Supported since Solaris 2.6 (maybe 2.5.1?)
9842 if test "$GCC" = yes; then
9843 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9845 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9849 link_all_deplibs=yes
9853 if test "x$host_vendor" = xsequent; then
9854 # Use $CC to link under sequent, because it throws in some extra .o
9855 # files that make .init and .fini sections work.
9856 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9858 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9860 hardcode_libdir_flag_spec='-L$libdir'
9862 hardcode_minus_L=yes
9863 hardcode_shlibpath_var=no
9867 case $host_vendor in
9869 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9870 hardcode_direct=yes # is this really true???
9873 ## LD is ld it makes a PLAMLIB
9874 ## CC just makes a GrossModule.
9875 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9876 reload_cmds='$CC -r -o $output$reload_objs'
9880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9881 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9884 runpath_var='LD_RUN_PATH'
9885 hardcode_shlibpath_var=no
9889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9890 hardcode_shlibpath_var=no
9891 export_dynamic_flag_spec='-Bexport'
9895 if test -d /usr/nec; then
9896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9897 hardcode_shlibpath_var=no
9898 runpath_var=LD_RUN_PATH
9899 hardcode_runpath_var=yes
9904 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9905 no_undefined_flag='${wl}-z,text'
9906 archive_cmds_need_lc=no
9907 hardcode_shlibpath_var=no
9908 runpath_var='LD_RUN_PATH'
9910 if test "$GCC" = yes; then
9911 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9912 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9914 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9915 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9919 sysv5* | sco3.2v5* | sco5v6*)
9920 # Note: We can NOT use -z defs as we might desire, because we do not
9921 # link with -lc, and that would cause any symbols used from libc to
9922 # always be unresolved, which means just about no library would
9923 # ever link correctly. If we're not using GNU ld we use -z text
9924 # though, which does catch some bad symbols but isn't as heavy-handed
9926 no_undefined_flag='${wl}-z,text'
9927 allow_undefined_flag='${wl}-z,nodefs'
9928 archive_cmds_need_lc=no
9929 hardcode_shlibpath_var=no
9930 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9931 hardcode_libdir_separator=':'
9932 link_all_deplibs=yes
9933 export_dynamic_flag_spec='${wl}-Bexport'
9934 runpath_var='LD_RUN_PATH'
9936 if test "$GCC" = yes; then
9937 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9938 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9940 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9941 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9947 hardcode_libdir_flag_spec='-L$libdir'
9948 hardcode_shlibpath_var=no
9956 if test x$host_vendor = xsni; then
9958 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9959 export_dynamic_flag_spec='${wl}-Blargedynsym'
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9966 $as_echo "$ld_shlibs" >&6; }
9967 test "$ld_shlibs" = no && can_build_shared=no
9969 with_gnu_ld=$with_gnu_ld
9986 # Do we need to explicitly link libc?
9988 case "x$archive_cmds_need_lc" in
9990 # Assume -lc should be added
9991 archive_cmds_need_lc=yes
9993 if test "$enable_shared" = yes && test "$GCC" = yes; then
9994 case $archive_cmds in
9996 # FIXME: we may have to deal with multi-command sequences.
9999 # Test whether the compiler implicitly links with -lc since on some
10000 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10001 # to ld, don't add -lc before -lgcc.
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10003 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10004 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10005 $as_echo_n "(cached) " >&6
10008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10011 (eval $ac_compile) 2>&5
10013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10014 test $ac_status = 0; } 2>conftest.err; then
10017 libobjs=conftest.$ac_objext
10019 wl=$lt_prog_compiler_wl
10020 pic_flag=$lt_prog_compiler_pic
10026 lt_save_allow_undefined_flag=$allow_undefined_flag
10027 allow_undefined_flag=
10028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10029 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10032 test $ac_status = 0; }
10034 lt_cv_archive_cmds_need_lc=no
10036 lt_cv_archive_cmds_need_lc=yes
10038 allow_undefined_flag=$lt_save_allow_undefined_flag
10040 cat conftest.err 1>&5
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10046 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10047 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10206 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10208 if test "$GCC" = yes; then
10210 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10211 *) lt_awk_arg="/^libraries:/" ;;
10214 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10215 *) lt_sed_strip_eq="s,=/,/,g" ;;
10217 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10218 case $lt_search_path_spec in
10220 # if the path contains ";" then we assume it to be the separator
10221 # otherwise default to the standard path separator (i.e. ":") - it is
10222 # assumed that no part of a normal pathname contains ";" but that should
10223 # okay in the real world where ";" in dirpaths is itself problematic.
10224 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10227 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10230 # Ok, now we have the path, separated by spaces, we can step through it
10231 # and add multilib dir if necessary.
10232 lt_tmp_lt_search_path_spec=
10233 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10234 for lt_sys_path in $lt_search_path_spec; do
10235 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10236 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10238 test -d "$lt_sys_path" && \
10239 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10242 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10243 BEGIN {RS=" "; FS="/|\n";} {
10246 for (lt_i = NF; lt_i > 0; lt_i--) {
10247 if ($lt_i != "" && $lt_i != ".") {
10248 if ($lt_i == "..") {
10251 if (lt_count == 0) {
10252 lt_foo="/" $lt_i lt_foo;
10259 if (lt_foo != "") { lt_freq[lt_foo]++; }
10260 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10262 # AWK program above erroneously prepends '/' to C:/dos/paths
10265 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10266 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10268 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10270 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10272 library_names_spec=
10273 libname_spec='lib$name'
10277 postuninstall_cmds=
10281 shlibpath_overrides_runpath=unknown
10283 dynamic_linker="$host_os ld.so"
10284 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10285 need_lib_prefix=unknown
10286 hardcode_into_libs=no
10288 # when you set need_version to no, make sure it does not cause -set_version
10289 # flags to be left without arguments
10290 need_version=unknown
10294 version_type=linux # correct to gnu/linux during the next big refactor
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10296 shlibpath_var=LIBPATH
10298 # AIX 3 has no versioning support, so we append a major version to the name.
10299 soname_spec='${libname}${release}${shared_ext}$major'
10303 version_type=linux # correct to gnu/linux during the next big refactor
10306 hardcode_into_libs=yes
10307 if test "$host_cpu" = ia64; then
10308 # AIX 5 supports IA64
10309 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10310 shlibpath_var=LD_LIBRARY_PATH
10312 # With GCC up to 2.95.x, collect2 would create an import file
10313 # for dependence libraries. The import file would start with
10314 # the line `#! .'. This would cause the generated library to
10315 # depend on `.', always an invalid library. This was fixed in
10316 # development snapshots of GCC prior to 3.0.
10318 aix4 | aix4.[01] | aix4.[01].*)
10319 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10321 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10324 can_build_shared=no
10328 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10329 # soname into executable. Probably we can add versioning support to
10330 # collect2, so additional links can be useful in future.
10331 if test "$aix_use_runtimelinking" = yes; then
10332 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10333 # instead of lib<name>.a to let people know that these are not
10334 # typical AIX shared libraries.
10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337 # We preserve .a as extension for shared libraries through AIX4.2
10338 # and later when we are not doing run time linking.
10339 library_names_spec='${libname}${release}.a $libname.a'
10340 soname_spec='${libname}${release}${shared_ext}$major'
10342 shlibpath_var=LIBPATH
10349 # Since July 2007 AmigaOS4 officially supports .so libraries.
10350 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 library_names_spec='$libname.ixlibrary $libname.a'
10355 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10356 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'
10362 library_names_spec='${libname}${shared_ext}'
10363 dynamic_linker="$host_os ld.so"
10364 shlibpath_var=LIBRARY_PATH
10368 version_type=linux # correct to gnu/linux during the next big refactor
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10373 shlibpath_var=LD_LIBRARY_PATH
10374 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10375 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10376 # the default ld.so.conf also contains /usr/contrib/lib and
10377 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10378 # libtool to hard-code these into programs
10381 cygwin* | mingw* | pw32* | cegcc*)
10382 version_type=windows
10387 case $GCC,$cc_basename in
10390 library_names_spec='$libname.dll.a'
10391 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10392 postinstall_cmds='base_file=`basename \${file}`~
10393 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10394 dldir=$destdir/`dirname \$dlpath`~
10395 test -d \$dldir || mkdir -p \$dldir~
10396 $install_prog $dir/$dlname \$dldir/$dlname~
10397 chmod a+x \$dldir/$dlname~
10398 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10399 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10401 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10402 dlpath=$dir/\$dldll~
10404 shlibpath_overrides_runpath=yes
10408 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10409 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10411 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10414 # MinGW DLLs use traditional 'lib' prefix
10415 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10418 # pw32 DLLs use 'pw' prefix rather than 'lib'
10419 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10422 dynamic_linker='Win32 ld.exe'
10427 libname_spec='$name'
10428 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10429 library_names_spec='${libname}.dll.lib'
10433 sys_lib_search_path_spec=
10436 for lt_path in $LIB
10439 # Let DOS variable expansion print the short 8.3 style file name.
10440 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10441 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10444 # Convert to MSYS style.
10445 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10448 # Convert to unix form, then to dos form, then back to unix form
10449 # but this time dos style (no spaces!) so that the unix form looks
10450 # like /cygdrive/c/PROGRA~1:/cygdr...
10451 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10452 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10453 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10456 sys_lib_search_path_spec="$LIB"
10457 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10458 # It is most probably a Windows format PATH.
10459 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10461 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10463 # FIXME: find the short name or the path components, as spaces are
10464 # common. (e.g. "Program Files" -> "PROGRA~1")
10468 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10469 postinstall_cmds='base_file=`basename \${file}`~
10470 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10471 dldir=$destdir/`dirname \$dlpath`~
10472 test -d \$dldir || mkdir -p \$dldir~
10473 $install_prog $dir/$dlname \$dldir/$dlname'
10474 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10475 dlpath=$dir/\$dldll~
10477 shlibpath_overrides_runpath=yes
10478 dynamic_linker='Win32 link.exe'
10482 # Assume MSVC wrapper
10483 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10484 dynamic_linker='Win32 ld.exe'
10487 # FIXME: first we should search . and the directory the executable is in
10491 darwin* | rhapsody*)
10492 dynamic_linker="$host_os dyld"
10493 version_type=darwin
10496 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10497 soname_spec='${libname}${release}${major}$shared_ext'
10498 shlibpath_overrides_runpath=yes
10499 shlibpath_var=DYLD_LIBRARY_PATH
10500 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10502 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10503 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10507 version_type=linux # correct to gnu/linux during the next big refactor
10510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10511 soname_spec='${libname}${release}${shared_ext}$major'
10512 shlibpath_var=LD_LIBRARY_PATH
10515 freebsd* | dragonfly*)
10516 # DragonFly does not have aout. When/if they implement a new
10517 # versioning mechanism, adjust this.
10518 if test -x /usr/bin/objformat; then
10519 objformat=`/usr/bin/objformat`
10522 freebsd[23].*) objformat=aout ;;
10523 *) objformat=elf ;;
10526 version_type=freebsd-$objformat
10527 case $version_type in
10529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10534 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10538 shlibpath_var=LD_LIBRARY_PATH
10541 shlibpath_overrides_runpath=yes
10543 freebsd3.[01]* | freebsdelf3.[01]*)
10544 shlibpath_overrides_runpath=yes
10545 hardcode_into_libs=yes
10547 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10548 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10549 shlibpath_overrides_runpath=no
10550 hardcode_into_libs=yes
10552 *) # from 4.6 on, and DragonFly
10553 shlibpath_overrides_runpath=yes
10554 hardcode_into_libs=yes
10560 version_type=linux # correct to gnu/linux during the next big refactor
10563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10564 soname_spec='${libname}${release}${shared_ext}$major'
10565 shlibpath_var=LD_LIBRARY_PATH
10566 shlibpath_overrides_runpath=no
10567 hardcode_into_libs=yes
10571 version_type=linux # correct to gnu/linux during the next big refactor
10574 dynamic_linker="$host_os runtime_loader"
10575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10576 soname_spec='${libname}${release}${shared_ext}$major'
10577 shlibpath_var=LIBRARY_PATH
10578 shlibpath_overrides_runpath=yes
10579 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10580 hardcode_into_libs=yes
10583 hpux9* | hpux10* | hpux11*)
10584 # Give a soname corresponding to the major version so that dld.sl refuses to
10585 # link against other versions.
10592 hardcode_into_libs=yes
10593 dynamic_linker="$host_os dld.so"
10594 shlibpath_var=LD_LIBRARY_PATH
10595 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597 soname_spec='${libname}${release}${shared_ext}$major'
10598 if test "X$HPUX_IA64_MODE" = X32; then
10599 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10601 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10603 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10607 hardcode_into_libs=yes
10608 dynamic_linker="$host_os dld.sl"
10609 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10610 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10612 soname_spec='${libname}${release}${shared_ext}$major'
10613 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10618 dynamic_linker="$host_os dld.sl"
10619 shlibpath_var=SHLIB_PATH
10620 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
10625 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10626 postinstall_cmds='chmod 555 $lib'
10627 # or fails outright, so override atomically:
10628 install_override_mode=555
10632 version_type=linux # correct to gnu/linux during the next big refactor
10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10636 soname_spec='${libname}${release}${shared_ext}$major'
10637 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10638 shlibpath_var=LD_LIBRARY_PATH
10639 shlibpath_overrides_runpath=no
10640 hardcode_into_libs=yes
10643 irix5* | irix6* | nonstopux*)
10645 nonstopux*) version_type=nonstopux ;;
10647 if test "$lt_cv_prog_gnu_ld" = yes; then
10648 version_type=linux # correct to gnu/linux during the next big refactor
10655 soname_spec='${libname}${release}${shared_ext}$major'
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10658 irix5* | nonstopux*)
10659 libsuff= shlibsuff=
10662 case $LD in # libtool.m4 will add one of these switches to LD
10663 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10664 libsuff= shlibsuff= libmagic=32-bit;;
10665 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10666 libsuff=32 shlibsuff=N32 libmagic=N32;;
10667 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10668 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10669 *) libsuff= shlibsuff= libmagic=never-match;;
10673 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10674 shlibpath_overrides_runpath=no
10675 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10676 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10677 hardcode_into_libs=yes
10680 # No shared lib support for Linux oldld, aout, or coff.
10681 linux*oldld* | linux*aout* | linux*coff*)
10685 # This must be glibc/ELF.
10686 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10687 version_type=linux # correct to gnu/linux during the next big refactor
10690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10691 soname_spec='${libname}${release}${shared_ext}$major'
10692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10693 shlibpath_var=LD_LIBRARY_PATH
10694 shlibpath_overrides_runpath=no
10696 # Some binutils ld are patched to set DT_RUNPATH
10697 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10698 $as_echo_n "(cached) " >&6
10700 lt_cv_shlibpath_overrides_runpath=no
10701 save_LDFLAGS=$LDFLAGS
10702 save_libdir=$libdir
10703 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10704 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h. */
10716 if ac_fn_c_try_link "$LINENO"; then :
10717 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10718 lt_cv_shlibpath_overrides_runpath=yes
10721 rm -f core conftest.err conftest.$ac_objext \
10722 conftest$ac_exeext conftest.$ac_ext
10723 LDFLAGS=$save_LDFLAGS
10724 libdir=$save_libdir
10728 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10730 # This implies no fast_install, which is unacceptable.
10731 # Some rework will be needed to allow for fast_install
10732 # before this can be enabled.
10733 hardcode_into_libs=yes
10735 # Add ABI-specific directories to the system library path.
10736 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10738 # Append ld.so.conf contents to the search path
10739 if test -f /etc/ld.so.conf; then
10740 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' ' '`
10741 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10745 # We used to test for /lib/ld.so.1 and disable shared libraries on
10746 # powerpc, because MkLinux only supported shared libraries with the
10747 # GNU dynamic linker. Since this was broken with cross compilers,
10748 # most powerpc-linux boxes support dynamic linking these days and
10749 # people can always --disable-shared, the test was removed, and we
10750 # assume the GNU/Linux dynamic linker is in use.
10751 dynamic_linker='GNU/Linux ld.so'
10758 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10760 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10761 dynamic_linker='NetBSD (a.out) ld.so'
10763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10764 soname_spec='${libname}${release}${shared_ext}$major'
10765 dynamic_linker='NetBSD ld.elf_so'
10767 shlibpath_var=LD_LIBRARY_PATH
10768 shlibpath_overrides_runpath=yes
10769 hardcode_into_libs=yes
10773 version_type=linux # correct to gnu/linux during the next big refactor
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775 shlibpath_var=LD_LIBRARY_PATH
10776 shlibpath_overrides_runpath=yes
10783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10784 soname_spec='${libname}${release}${shared_ext}$major'
10785 shlibpath_var=LD_LIBRARY_PATH
10786 shlibpath_overrides_runpath=no
10787 hardcode_into_libs=yes
10788 dynamic_linker='ldqnx.so'
10793 sys_lib_dlsearch_path_spec="/usr/lib"
10795 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10797 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10798 *) need_version=no ;;
10800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10801 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10802 shlibpath_var=LD_LIBRARY_PATH
10803 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10805 openbsd2.[89] | openbsd2.[89].*)
10806 shlibpath_overrides_runpath=no
10809 shlibpath_overrides_runpath=yes
10813 shlibpath_overrides_runpath=yes
10818 libname_spec='$name'
10821 library_names_spec='$libname${shared_ext} $libname.a'
10822 dynamic_linker='OS/2 ld.exe'
10823 shlibpath_var=LIBPATH
10826 osf3* | osf4* | osf5*)
10830 soname_spec='${libname}${release}${shared_ext}$major'
10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10832 shlibpath_var=LD_LIBRARY_PATH
10833 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10834 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10842 version_type=linux # correct to gnu/linux during the next big refactor
10845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10846 soname_spec='${libname}${release}${shared_ext}$major'
10847 shlibpath_var=LD_LIBRARY_PATH
10848 shlibpath_overrides_runpath=yes
10849 hardcode_into_libs=yes
10850 # ldd complains unless libraries are executable
10851 postinstall_cmds='chmod +x $lib'
10856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10857 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10858 shlibpath_var=LD_LIBRARY_PATH
10859 shlibpath_overrides_runpath=yes
10860 if test "$with_gnu_ld" = yes; then
10867 version_type=linux # correct to gnu/linux during the next big refactor
10868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10869 soname_spec='${libname}${release}${shared_ext}$major'
10870 shlibpath_var=LD_LIBRARY_PATH
10871 case $host_vendor in
10873 shlibpath_overrides_runpath=no
10875 runpath_var=LD_RUN_PATH
10883 shlibpath_overrides_runpath=no
10884 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10890 if test -d /usr/nec ;then
10891 version_type=linux # correct to gnu/linux during the next big refactor
10892 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10893 soname_spec='$libname${shared_ext}.$major'
10894 shlibpath_var=LD_LIBRARY_PATH
10898 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10899 version_type=freebsd-elf
10902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10903 soname_spec='${libname}${release}${shared_ext}$major'
10904 shlibpath_var=LD_LIBRARY_PATH
10905 shlibpath_overrides_runpath=yes
10906 hardcode_into_libs=yes
10907 if test "$with_gnu_ld" = yes; then
10908 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10910 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10913 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10917 sys_lib_dlsearch_path_spec='/usr/lib'
10921 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10922 version_type=linux # correct to gnu/linux during the next big refactor
10925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10926 shlibpath_var=LD_LIBRARY_PATH
10927 shlibpath_overrides_runpath=no
10928 hardcode_into_libs=yes
10932 version_type=linux # correct to gnu/linux during the next big refactor
10933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10934 soname_spec='${libname}${release}${shared_ext}$major'
10935 shlibpath_var=LD_LIBRARY_PATH
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10943 $as_echo "$dynamic_linker" >&6; }
10944 test "$dynamic_linker" = no && can_build_shared=no
10946 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10947 if test "$GCC" = yes; then
10948 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10951 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10952 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10954 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10955 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11050 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11052 if test -n "$hardcode_libdir_flag_spec" ||
11053 test -n "$runpath_var" ||
11054 test "X$hardcode_automatic" = "Xyes" ; then
11056 # We can hardcode non-existent directories.
11057 if test "$hardcode_direct" != no &&
11058 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11059 # have to relink, otherwise we might link with an installed library
11060 # when we should be linking with a yet-to-be-installed one
11061 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11062 test "$hardcode_minus_L" != no; then
11063 # Linking always hardcodes the temporary library directory.
11064 hardcode_action=relink
11066 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11067 hardcode_action=immediate
11070 # We cannot hardcode anything, or else we can only hardcode existing
11072 hardcode_action=unsupported
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11075 $as_echo "$hardcode_action" >&6; }
11077 if test "$hardcode_action" = relink ||
11078 test "$inherit_rpath" = yes; then
11079 # Fast installation is not supported
11080 enable_fast_install=no
11081 elif test "$shlibpath_overrides_runpath" = yes ||
11082 test "$enable_shared" = no; then
11083 # Fast installation is not necessary
11084 enable_fast_install=needless
11092 if test "x$enable_dlopen" != xyes; then
11093 enable_dlopen=unknown
11094 enable_dlopen_self=unknown
11095 enable_dlopen_self_static=unknown
11102 lt_cv_dlopen="load_add_on"
11104 lt_cv_dlopen_self=yes
11107 mingw* | pw32* | cegcc*)
11108 lt_cv_dlopen="LoadLibrary"
11113 lt_cv_dlopen="dlopen"
11118 # if libdl is installed we need to link against it
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11120 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11121 if ${ac_cv_lib_dl_dlopen+:} false; then :
11122 $as_echo_n "(cached) " >&6
11124 ac_check_lib_save_LIBS=$LIBS
11126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11127 /* end confdefs.h. */
11129 /* Override any GCC internal prototype to avoid an error.
11130 Use char because int might match the return type of a GCC
11131 builtin and then its argument prototype would still apply. */
11144 if ac_fn_c_try_link "$LINENO"; then :
11145 ac_cv_lib_dl_dlopen=yes
11147 ac_cv_lib_dl_dlopen=no
11149 rm -f core conftest.err conftest.$ac_objext \
11150 conftest$ac_exeext conftest.$ac_ext
11151 LIBS=$ac_check_lib_save_LIBS
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11154 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11155 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11156 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11159 lt_cv_dlopen="dyld"
11161 lt_cv_dlopen_self=yes
11168 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11169 if test "x$ac_cv_func_shl_load" = xyes; then :
11170 lt_cv_dlopen="shl_load"
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11173 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11174 if ${ac_cv_lib_dld_shl_load+:} false; then :
11175 $as_echo_n "(cached) " >&6
11177 ac_check_lib_save_LIBS=$LIBS
11179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11180 /* end confdefs.h. */
11182 /* Override any GCC internal prototype to avoid an error.
11183 Use char because int might match the return type of a GCC
11184 builtin and then its argument prototype would still apply. */
11192 return shl_load ();
11197 if ac_fn_c_try_link "$LINENO"; then :
11198 ac_cv_lib_dld_shl_load=yes
11200 ac_cv_lib_dld_shl_load=no
11202 rm -f core conftest.err conftest.$ac_objext \
11203 conftest$ac_exeext conftest.$ac_ext
11204 LIBS=$ac_check_lib_save_LIBS
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11207 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11208 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11209 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11211 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11212 if test "x$ac_cv_func_dlopen" = xyes; then :
11213 lt_cv_dlopen="dlopen"
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11216 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11217 if ${ac_cv_lib_dl_dlopen+:} false; then :
11218 $as_echo_n "(cached) " >&6
11220 ac_check_lib_save_LIBS=$LIBS
11222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11223 /* end confdefs.h. */
11225 /* Override any GCC internal prototype to avoid an error.
11226 Use char because int might match the return type of a GCC
11227 builtin and then its argument prototype would still apply. */
11240 if ac_fn_c_try_link "$LINENO"; then :
11241 ac_cv_lib_dl_dlopen=yes
11243 ac_cv_lib_dl_dlopen=no
11245 rm -f core conftest.err conftest.$ac_objext \
11246 conftest$ac_exeext conftest.$ac_ext
11247 LIBS=$ac_check_lib_save_LIBS
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11250 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11251 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11252 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11255 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11256 if ${ac_cv_lib_svld_dlopen+:} false; then :
11257 $as_echo_n "(cached) " >&6
11259 ac_check_lib_save_LIBS=$LIBS
11260 LIBS="-lsvld $LIBS"
11261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11262 /* end confdefs.h. */
11264 /* Override any GCC internal prototype to avoid an error.
11265 Use char because int might match the return type of a GCC
11266 builtin and then its argument prototype would still apply. */
11279 if ac_fn_c_try_link "$LINENO"; then :
11280 ac_cv_lib_svld_dlopen=yes
11282 ac_cv_lib_svld_dlopen=no
11284 rm -f core conftest.err conftest.$ac_objext \
11285 conftest$ac_exeext conftest.$ac_ext
11286 LIBS=$ac_check_lib_save_LIBS
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11289 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11290 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11291 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11294 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11295 if ${ac_cv_lib_dld_dld_link+:} false; then :
11296 $as_echo_n "(cached) " >&6
11298 ac_check_lib_save_LIBS=$LIBS
11300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11301 /* end confdefs.h. */
11303 /* Override any GCC internal prototype to avoid an error.
11304 Use char because int might match the return type of a GCC
11305 builtin and then its argument prototype would still apply. */
11313 return dld_link ();
11318 if ac_fn_c_try_link "$LINENO"; then :
11319 ac_cv_lib_dld_dld_link=yes
11321 ac_cv_lib_dld_dld_link=no
11323 rm -f core conftest.err conftest.$ac_objext \
11324 conftest$ac_exeext conftest.$ac_ext
11325 LIBS=$ac_check_lib_save_LIBS
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11328 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11329 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11330 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11351 if test "x$lt_cv_dlopen" != xno; then
11357 case $lt_cv_dlopen in
11359 save_CPPFLAGS="$CPPFLAGS"
11360 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11362 save_LDFLAGS="$LDFLAGS"
11363 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11366 LIBS="$lt_cv_dlopen_libs $LIBS"
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11369 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11370 if ${lt_cv_dlopen_self+:} false; then :
11371 $as_echo_n "(cached) " >&6
11373 if test "$cross_compiling" = yes; then :
11374 lt_cv_dlopen_self=cross
11376 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11377 lt_status=$lt_dlunknown
11378 cat > conftest.$ac_ext <<_LT_EOF
11379 #line $LINENO "configure"
11380 #include "confdefs.h"
11389 # define LT_DLGLOBAL RTLD_GLOBAL
11392 # define LT_DLGLOBAL DL_GLOBAL
11394 # define LT_DLGLOBAL 0
11398 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11399 find out it does not work in some platform. */
11400 #ifndef LT_DLLAZY_OR_NOW
11402 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11405 # define LT_DLLAZY_OR_NOW DL_LAZY
11408 # define LT_DLLAZY_OR_NOW RTLD_NOW
11411 # define LT_DLLAZY_OR_NOW DL_NOW
11413 # define LT_DLLAZY_OR_NOW 0
11420 /* When -fvisbility=hidden is used, assume the code has been annotated
11421 correspondingly for the symbols needed. */
11422 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11423 int fnord () __attribute__((visibility("default")));
11426 int fnord () { return 42; }
11429 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11430 int status = $lt_dlunknown;
11434 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11437 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11438 else puts (dlerror ());
11440 /* dlclose (self); */
11448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11449 (eval $ac_link) 2>&5
11451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11452 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11453 (./conftest; exit; ) >&5 2>/dev/null
11455 case x$lt_status in
11456 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11457 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11458 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11461 # compilation failed
11462 lt_cv_dlopen_self=no
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11470 $as_echo "$lt_cv_dlopen_self" >&6; }
11472 if test "x$lt_cv_dlopen_self" = xyes; then
11473 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11475 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11476 if ${lt_cv_dlopen_self_static+:} false; then :
11477 $as_echo_n "(cached) " >&6
11479 if test "$cross_compiling" = yes; then :
11480 lt_cv_dlopen_self_static=cross
11482 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11483 lt_status=$lt_dlunknown
11484 cat > conftest.$ac_ext <<_LT_EOF
11485 #line $LINENO "configure"
11486 #include "confdefs.h"
11495 # define LT_DLGLOBAL RTLD_GLOBAL
11498 # define LT_DLGLOBAL DL_GLOBAL
11500 # define LT_DLGLOBAL 0
11504 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11505 find out it does not work in some platform. */
11506 #ifndef LT_DLLAZY_OR_NOW
11508 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11511 # define LT_DLLAZY_OR_NOW DL_LAZY
11514 # define LT_DLLAZY_OR_NOW RTLD_NOW
11517 # define LT_DLLAZY_OR_NOW DL_NOW
11519 # define LT_DLLAZY_OR_NOW 0
11526 /* When -fvisbility=hidden is used, assume the code has been annotated
11527 correspondingly for the symbols needed. */
11528 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11529 int fnord () __attribute__((visibility("default")));
11532 int fnord () { return 42; }
11535 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11536 int status = $lt_dlunknown;
11540 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11543 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11544 else puts (dlerror ());
11546 /* dlclose (self); */
11554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11555 (eval $ac_link) 2>&5
11557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11558 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11559 (./conftest; exit; ) >&5 2>/dev/null
11561 case x$lt_status in
11562 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11563 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11564 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11567 # compilation failed
11568 lt_cv_dlopen_self_static=no
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11576 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11579 CPPFLAGS="$save_CPPFLAGS"
11580 LDFLAGS="$save_LDFLAGS"
11585 case $lt_cv_dlopen_self in
11586 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11587 *) enable_dlopen_self=unknown ;;
11590 case $lt_cv_dlopen_self_static in
11591 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11592 *) enable_dlopen_self_static=unknown ;;
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11615 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11616 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11617 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11618 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11620 $as_echo "yes" >&6; }
11622 # FIXME - insert some real tests, host_os isn't really good enough
11625 if test -n "$STRIP" ; then
11626 striplib="$STRIP -x"
11627 old_striplib="$STRIP -S"
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11629 $as_echo "yes" >&6; }
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11632 $as_echo "no" >&6; }
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11637 $as_echo "no" >&6; }
11653 # Report which library types will actually be built
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11655 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11657 $as_echo "$can_build_shared" >&6; }
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11660 $as_echo_n "checking whether to build shared libraries... " >&6; }
11661 test "$can_build_shared" = "no" && enable_shared=no
11663 # On AIX, shared libraries and static libraries use the same namespace, and
11664 # are all built from PIC.
11667 test "$enable_shared" = yes && enable_static=no
11668 if test -n "$RANLIB"; then
11669 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11670 postinstall_cmds='$RANLIB $lib'
11675 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11676 test "$enable_shared" = yes && enable_static=no
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11681 $as_echo "$enable_shared" >&6; }
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11684 $as_echo_n "checking whether to build static libraries... " >&6; }
11685 # Make sure either enable_shared or enable_static is yes.
11686 test "$enable_shared" = yes || enable_static=yes
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11688 $as_echo "$enable_static" >&6; }
11695 ac_cpp='$CPP $CPPFLAGS'
11696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11716 ac_config_commands="$ac_config_commands libtool"
11721 # Only expand once:
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
11726 $as_echo_n "checking for library containing strerror... " >&6; }
11727 if ${ac_cv_search_strerror+:} false; then :
11728 $as_echo_n "(cached) " >&6
11730 ac_func_search_save_LIBS=$LIBS
11731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732 /* end confdefs.h. */
11734 /* Override any GCC internal prototype to avoid an error.
11735 Use char because int might match the return type of a GCC
11736 builtin and then its argument prototype would still apply. */
11744 return strerror ();
11749 for ac_lib in '' cposix; do
11750 if test -z "$ac_lib"; then
11751 ac_res="none required"
11754 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11756 if ac_fn_c_try_link "$LINENO"; then :
11757 ac_cv_search_strerror=$ac_res
11759 rm -f core conftest.err conftest.$ac_objext \
11761 if ${ac_cv_search_strerror+:} false; then :
11765 if ${ac_cv_search_strerror+:} false; then :
11768 ac_cv_search_strerror=no
11770 rm conftest.$ac_ext
11771 LIBS=$ac_func_search_save_LIBS
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
11774 $as_echo "$ac_cv_search_strerror" >&6; }
11775 ac_res=$ac_cv_search_strerror
11776 if test "$ac_res" != no; then :
11777 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11782 ac_cpp='$CPP $CPPFLAGS'
11783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11786 if test -n "$ac_tool_prefix"; then
11787 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11788 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11790 $as_echo_n "checking for $ac_word... " >&6; }
11791 if ${ac_cv_prog_CC+:} false; then :
11792 $as_echo_n "(cached) " >&6
11794 if test -n "$CC"; then
11795 ac_cv_prog_CC="$CC" # Let the user override the test.
11797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11798 for as_dir in $PATH
11801 test -z "$as_dir" && as_dir=.
11802 for ac_exec_ext in '' $ac_executable_extensions; do
11803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11804 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11815 if test -n "$CC"; then
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11817 $as_echo "$CC" >&6; }
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11820 $as_echo "no" >&6; }
11825 if test -z "$ac_cv_prog_CC"; then
11827 # Extract the first word of "gcc", so it can be a program name with args.
11828 set dummy gcc; ac_word=$2
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11830 $as_echo_n "checking for $ac_word... " >&6; }
11831 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11832 $as_echo_n "(cached) " >&6
11834 if test -n "$ac_ct_CC"; then
11835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11838 for as_dir in $PATH
11841 test -z "$as_dir" && as_dir=.
11842 for ac_exec_ext in '' $ac_executable_extensions; do
11843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11844 ac_cv_prog_ac_ct_CC="gcc"
11845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11854 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11855 if test -n "$ac_ct_CC"; then
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11857 $as_echo "$ac_ct_CC" >&6; }
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11860 $as_echo "no" >&6; }
11863 if test "x$ac_ct_CC" = x; then
11866 case $cross_compiling:$ac_tool_warned in
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11870 ac_tool_warned=yes ;;
11875 CC="$ac_cv_prog_CC"
11878 if test -z "$CC"; then
11879 if test -n "$ac_tool_prefix"; then
11880 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11881 set dummy ${ac_tool_prefix}cc; ac_word=$2
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11883 $as_echo_n "checking for $ac_word... " >&6; }
11884 if ${ac_cv_prog_CC+:} false; then :
11885 $as_echo_n "(cached) " >&6
11887 if test -n "$CC"; then
11888 ac_cv_prog_CC="$CC" # Let the user override the test.
11890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11891 for as_dir in $PATH
11894 test -z "$as_dir" && as_dir=.
11895 for ac_exec_ext in '' $ac_executable_extensions; do
11896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11897 ac_cv_prog_CC="${ac_tool_prefix}cc"
11898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11908 if test -n "$CC"; then
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11910 $as_echo "$CC" >&6; }
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913 $as_echo "no" >&6; }
11919 if test -z "$CC"; then
11920 # Extract the first word of "cc", so it can be a program name with args.
11921 set dummy cc; ac_word=$2
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11923 $as_echo_n "checking for $ac_word... " >&6; }
11924 if ${ac_cv_prog_CC+:} false; then :
11925 $as_echo_n "(cached) " >&6
11927 if test -n "$CC"; then
11928 ac_cv_prog_CC="$CC" # Let the user override the test.
11930 ac_prog_rejected=no
11931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11932 for as_dir in $PATH
11935 test -z "$as_dir" && as_dir=.
11936 for ac_exec_ext in '' $ac_executable_extensions; do
11937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11938 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11939 ac_prog_rejected=yes
11943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11950 if test $ac_prog_rejected = yes; then
11951 # We found a bogon in the path, so make sure we never use it.
11952 set dummy $ac_cv_prog_CC
11954 if test $# != 0; then
11955 # We chose a different compiler from the bogus one.
11956 # However, it has the same basename, so the bogon will be chosen
11957 # first if we set CC to just the basename; use the full file name.
11959 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11965 if test -n "$CC"; then
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11967 $as_echo "$CC" >&6; }
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11970 $as_echo "no" >&6; }
11975 if test -z "$CC"; then
11976 if test -n "$ac_tool_prefix"; then
11977 for ac_prog in cl.exe
11979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11982 $as_echo_n "checking for $ac_word... " >&6; }
11983 if ${ac_cv_prog_CC+:} false; then :
11984 $as_echo_n "(cached) " >&6
11986 if test -n "$CC"; then
11987 ac_cv_prog_CC="$CC" # Let the user override the test.
11989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990 for as_dir in $PATH
11993 test -z "$as_dir" && as_dir=.
11994 for ac_exec_ext in '' $ac_executable_extensions; do
11995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11996 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12007 if test -n "$CC"; then
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12009 $as_echo "$CC" >&6; }
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12012 $as_echo "no" >&6; }
12016 test -n "$CC" && break
12019 if test -z "$CC"; then
12021 for ac_prog in cl.exe
12023 # Extract the first word of "$ac_prog", so it can be a program name with args.
12024 set dummy $ac_prog; ac_word=$2
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12026 $as_echo_n "checking for $ac_word... " >&6; }
12027 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12028 $as_echo_n "(cached) " >&6
12030 if test -n "$ac_ct_CC"; then
12031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12034 for as_dir in $PATH
12037 test -z "$as_dir" && as_dir=.
12038 for ac_exec_ext in '' $ac_executable_extensions; do
12039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12040 ac_cv_prog_ac_ct_CC="$ac_prog"
12041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12051 if test -n "$ac_ct_CC"; then
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12053 $as_echo "$ac_ct_CC" >&6; }
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12056 $as_echo "no" >&6; }
12060 test -n "$ac_ct_CC" && break
12063 if test "x$ac_ct_CC" = x; then
12066 case $cross_compiling:$ac_tool_warned in
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12070 ac_tool_warned=yes ;;
12079 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12081 as_fn_error $? "no acceptable C compiler found in \$PATH
12082 See \`config.log' for more details" "$LINENO" 5; }
12084 # Provide some information about the compiler.
12085 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12088 for ac_option in --version -v -V -qversion; do
12089 { { ac_try="$ac_compiler $ac_option >&5"
12090 case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12095 $as_echo "$ac_try_echo"; } >&5
12096 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12098 if test -s conftest.err; then
12100 ... rest of stderr output deleted ...
12101 10q' conftest.err >conftest.er1
12102 cat conftest.er1 >&5
12104 rm -f conftest.er1 conftest.err
12105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12106 test $ac_status = 0; }
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12110 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12111 if ${ac_cv_c_compiler_gnu+:} false; then :
12112 $as_echo_n "(cached) " >&6
12114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12115 /* end confdefs.h. */
12128 if ac_fn_c_try_compile "$LINENO"; then :
12129 ac_compiler_gnu=yes
12133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12134 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12138 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12139 if test $ac_compiler_gnu = yes; then
12144 ac_test_CFLAGS=${CFLAGS+set}
12145 ac_save_CFLAGS=$CFLAGS
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12147 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12148 if ${ac_cv_prog_cc_g+:} false; then :
12149 $as_echo_n "(cached) " >&6
12151 ac_save_c_werror_flag=$ac_c_werror_flag
12152 ac_c_werror_flag=yes
12155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12156 /* end confdefs.h. */
12166 if ac_fn_c_try_compile "$LINENO"; then :
12167 ac_cv_prog_cc_g=yes
12170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171 /* end confdefs.h. */
12181 if ac_fn_c_try_compile "$LINENO"; then :
12184 ac_c_werror_flag=$ac_save_c_werror_flag
12186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187 /* end confdefs.h. */
12197 if ac_fn_c_try_compile "$LINENO"; then :
12198 ac_cv_prog_cc_g=yes
12200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12205 ac_c_werror_flag=$ac_save_c_werror_flag
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12208 $as_echo "$ac_cv_prog_cc_g" >&6; }
12209 if test "$ac_test_CFLAGS" = set; then
12210 CFLAGS=$ac_save_CFLAGS
12211 elif test $ac_cv_prog_cc_g = yes; then
12212 if test "$GCC" = yes; then
12218 if test "$GCC" = yes; then
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12225 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12226 if ${ac_cv_prog_cc_c89+:} false; then :
12227 $as_echo_n "(cached) " >&6
12229 ac_cv_prog_cc_c89=no
12231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12232 /* end confdefs.h. */
12233 #include <stdarg.h>
12236 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12237 struct buf { int x; };
12238 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12239 static char *e (p, i)
12245 static char *f (char * (*g) (char **, int), char **p, ...)
12250 s = g (p, va_arg (v,int));
12255 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12256 function prototypes and stuff, but not '\xHH' hex character constants.
12257 These don't provoke an error unfortunately, instead are silently treated
12258 as 'x'. The following induces an error, until -std is added to get
12259 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12260 array size at least. It's necessary to write '\x00'==0 to get something
12261 that's true only with -std. */
12262 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12264 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12265 inside strings and character constants. */
12267 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12269 int test (int i, double x);
12270 struct s1 {int (*f) (int a);};
12271 struct s2 {int (*f) (double a);};
12272 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12278 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12283 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12284 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12286 CC="$ac_save_CC $ac_arg"
12287 if ac_fn_c_try_compile "$LINENO"; then :
12288 ac_cv_prog_cc_c89=$ac_arg
12290 rm -f core conftest.err conftest.$ac_objext
12291 test "x$ac_cv_prog_cc_c89" != "xno" && break
12293 rm -f conftest.$ac_ext
12298 case "x$ac_cv_prog_cc_c89" in
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12301 $as_echo "none needed" >&6; } ;;
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12304 $as_echo "unsupported" >&6; } ;;
12306 CC="$CC $ac_cv_prog_cc_c89"
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12308 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12310 if test "x$ac_cv_prog_cc_c89" != xno; then :
12315 ac_cpp='$CPP $CPPFLAGS'
12316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12320 depcc="$CC" am_compiler_list=
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12323 $as_echo_n "checking dependency style of $depcc... " >&6; }
12324 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12325 $as_echo_n "(cached) " >&6
12327 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12328 # We make a subdir and do the tests there. Otherwise we can end up
12329 # making bogus files that we don't know about and never remove. For
12330 # instance it was reported that on HP-UX the gcc test will end up
12331 # making a dummy file named 'D' -- because '-MD' means "put the output
12333 rm -rf conftest.dir
12335 # Copy depcomp to subdir because otherwise we won't find it if we're
12336 # using a relative directory.
12337 cp "$am_depcomp" conftest.dir
12339 # We will build objects and dependencies in a subdirectory because
12340 # it helps to detect inapplicable dependency modes. For instance
12341 # both Tru64's cc and ICC support -MD to output dependencies as a
12342 # side effect of compilation, but ICC will put the dependencies in
12343 # the current directory while Tru64 will put them in the object
12347 am_cv_CC_dependencies_compiler_type=none
12348 if test "$am_compiler_list" = ""; then
12349 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12351 am__universal=false
12352 case " $depcc " in #(
12353 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12356 for depmode in $am_compiler_list; do
12357 # Setup a source with many dependencies, because some compilers
12358 # like to wrap large dependency lists on column 80 (with \), and
12359 # we should not choose a depcomp mode which is confused by this.
12361 # We need to recreate these files for each test, as the compiler may
12362 # overwrite some of them when testing with obscure command lines.
12363 # This happens at least with the AIX C compiler.
12365 for i in 1 2 3 4 5 6; do
12366 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12367 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12368 # Solaris 10 /bin/sh.
12369 echo '/* dummy */' > sub/conftst$i.h
12371 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12373 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12374 # mode. It turns out that the SunPro C++ compiler does not properly
12375 # handle '-M -o', and we need to detect this. Also, some Intel
12376 # versions had trouble with output in subdirs.
12377 am__obj=sub/conftest.${OBJEXT-o}
12378 am__minus_obj="-o $am__obj"
12381 # This depmode causes a compiler race in universal mode.
12382 test "$am__universal" = false || continue
12385 # After this tag, mechanisms are not by side-effect, so they'll
12386 # only be used when explicitly requested.
12387 if test "x$enable_dependency_tracking" = xyes; then
12393 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12394 # This compiler won't grok '-c -o', but also, the minuso test has
12395 # not run yet. These depmodes are late enough in the game, and
12396 # so weak that their functioning should not be impacted.
12397 am__obj=conftest.${OBJEXT-o}
12402 if depmode=$depmode \
12403 source=sub/conftest.c object=$am__obj \
12404 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12405 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12406 >/dev/null 2>conftest.err &&
12407 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12408 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12409 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12410 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12411 # icc doesn't choke on unknown options, it will just issue warnings
12412 # or remarks (even with -Werror). So we grep stderr for any message
12413 # that says an option was ignored or not supported.
12414 # When given -MP, icc 7.0 and 7.1 complain thusly:
12415 # icc: Command line warning: ignoring option '-M'; no argument required
12416 # The diagnosis changed in icc 8.0:
12417 # icc: Command line remark: option '-MP' not supported
12418 if (grep 'ignoring option' conftest.err ||
12419 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12420 am_cv_CC_dependencies_compiler_type=$depmode
12427 rm -rf conftest.dir
12429 am_cv_CC_dependencies_compiler_type=none
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12434 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12435 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12438 test "x$enable_dependency_tracking" != xno \
12439 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12440 am__fastdepCC_TRUE=
12441 am__fastdepCC_FALSE='#'
12443 am__fastdepCC_TRUE='#'
12444 am__fastdepCC_FALSE=
12448 if test "x$CC" != xcc; then
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12450 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12453 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12455 set dummy $CC; ac_cc=`$as_echo "$2" |
12456 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12457 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
12458 $as_echo_n "(cached) " >&6
12460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461 /* end confdefs.h. */
12471 # Make sure it works both with $CC and with simple cc.
12472 # We do the test twice because some compilers refuse to overwrite an
12473 # existing .o file with -o, though they will create one.
12474 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12476 if { { case "(($ac_try" in
12477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12478 *) ac_try_echo=$ac_try;;
12480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12481 $as_echo "$ac_try_echo"; } >&5
12482 (eval "$ac_try") 2>&5
12484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12485 test $ac_status = 0; } &&
12486 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488 *) ac_try_echo=$ac_try;;
12490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12491 $as_echo "$ac_try_echo"; } >&5
12492 (eval "$ac_try") 2>&5
12494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12495 test $ac_status = 0; };
12497 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12498 if test "x$CC" != xcc; then
12499 # Test first that cc exists at all.
12500 if { ac_try='cc -c conftest.$ac_ext >&5'
12501 { { case "(($ac_try" in
12502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12503 *) ac_try_echo=$ac_try;;
12505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12506 $as_echo "$ac_try_echo"; } >&5
12507 (eval "$ac_try") 2>&5
12509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12510 test $ac_status = 0; }; }; then
12511 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12513 if { { case "(($ac_try" in
12514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12515 *) ac_try_echo=$ac_try;;
12517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12518 $as_echo "$ac_try_echo"; } >&5
12519 (eval "$ac_try") 2>&5
12521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12522 test $ac_status = 0; } &&
12523 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12525 *) ac_try_echo=$ac_try;;
12527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12528 $as_echo "$ac_try_echo"; } >&5
12529 (eval "$ac_try") 2>&5
12531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12532 test $ac_status = 0; };
12537 # cc exists but doesn't like -o.
12538 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12543 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12545 rm -f core conftest*
12548 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12550 $as_echo "yes" >&6; }
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12553 $as_echo "no" >&6; }
12555 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12559 # FIXME: we rely on the cache variable name because
12560 # there is no other way.
12562 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12563 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12564 if test "$am_t" != yes; then
12565 # Losing compiler, so override with the script.
12566 # FIXME: It is wrong to rewrite CC.
12567 # But if we don't then we get into trouble of one sort or another.
12568 # A longer-term fix would be to have automake use am__CC in this case,
12569 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12570 CC="$am_aux_dir/compile $CC"
12575 # option to specify python interpreter to use; this just sets $PYTHON, so that
12576 # we will fallback to reading $PYTHON if --with-python is not given, and
12577 # python.m4 will get the expected input
12579 # Check whether --with-python was given.
12580 if test "${with_python+set}" = set; then :
12581 withval=$with_python; PYTHON="$withval"
12584 if test x"$PYTHON" = xyes; then
12585 as_fn_error $? "--with-python option requires a path or program argument" "$LINENO" 5
12587 if test -n "$PYTHON" && ! which "$PYTHON"; then
12588 as_fn_error $? "Python interpreter $PYTHON does not exist" "$LINENO" 5
12591 # check that we have the minimum version of python necessary to build
12596 if test -n "$PYTHON"; then
12597 # If the user set $PYTHON, use it and don't search something else.
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.7" >&5
12599 $as_echo_n "checking whether $PYTHON version >= 2.7... " >&6; }
12601 # split strings by '.' and convert to numeric. Append some zeros
12602 # because we need at least 4 digits for the hex conversion.
12603 # map returns an iterator in Python 3.0 and a list in 2.x
12604 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
12606 # xrange is not present in Python 3.0 and range returns an iterator
12607 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12608 sys.exit(sys.hexversion < minverhex)"
12609 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12610 ($PYTHON -c "$prog") >&5 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; then :
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12615 $as_echo "yes" >&6; }
12617 as_fn_error $? "too old" "$LINENO" 5
12619 am_display_PYTHON=$PYTHON
12621 # Otherwise, try each interpreter until we find one that satisfies
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
12624 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
12625 if ${am_cv_pathless_PYTHON+:} false; then :
12626 $as_echo_n "(cached) " >&6
12629 for am_cv_pathless_PYTHON in python3 python3.3 python3.2 python3.1 python2 python2.7 python none; do
12630 test "$am_cv_pathless_PYTHON" = none && break
12632 # split strings by '.' and convert to numeric. Append some zeros
12633 # because we need at least 4 digits for the hex conversion.
12634 # map returns an iterator in Python 3.0 and a list in 2.x
12635 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
12637 # xrange is not present in Python 3.0 and range returns an iterator
12638 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12639 sys.exit(sys.hexversion < minverhex)"
12640 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
12641 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; then :
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
12650 $as_echo "$am_cv_pathless_PYTHON" >&6; }
12651 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
12652 if test "$am_cv_pathless_PYTHON" = none; then
12655 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
12656 set dummy $am_cv_pathless_PYTHON; ac_word=$2
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12658 $as_echo_n "checking for $ac_word... " >&6; }
12659 if ${ac_cv_path_PYTHON+:} false; then :
12660 $as_echo_n "(cached) " >&6
12664 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12668 for as_dir in $PATH
12671 test -z "$as_dir" && as_dir=.
12672 for ac_exec_ext in '' $ac_executable_extensions; do
12673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12674 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12685 PYTHON=$ac_cv_path_PYTHON
12686 if test -n "$PYTHON"; then
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12688 $as_echo "$PYTHON" >&6; }
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12691 $as_echo "no" >&6; }
12696 am_display_PYTHON=$am_cv_pathless_PYTHON
12700 if test "$PYTHON" = :; then
12701 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12706 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12707 if ${am_cv_python_version+:} false; then :
12708 $as_echo_n "(cached) " >&6
12710 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12713 $as_echo "$am_cv_python_version" >&6; }
12714 PYTHON_VERSION=$am_cv_python_version
12718 PYTHON_PREFIX='${prefix}'
12720 PYTHON_EXEC_PREFIX='${exec_prefix}'
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12725 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12726 if ${am_cv_python_platform+:} false; then :
12727 $as_echo_n "(cached) " >&6
12729 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12732 $as_echo "$am_cv_python_platform" >&6; }
12733 PYTHON_PLATFORM=$am_cv_python_platform
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12739 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12740 if ${am_cv_python_pythondir+:} false; then :
12741 $as_echo_n "(cached) " >&6
12743 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX'))" 2>/dev/null ||
12744 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12747 $as_echo "$am_cv_python_pythondir" >&6; }
12748 pythondir=$am_cv_python_pythondir
12752 pkgpythondir=\${pythondir}/$PACKAGE
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
12756 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
12757 if ${am_cv_python_pyexecdir+:} false; then :
12758 $as_echo_n "(cached) " >&6
12760 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX'))" 2>/dev/null ||
12761 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
12764 $as_echo "$am_cv_python_pyexecdir" >&6; }
12765 pyexecdir=$am_cv_python_pyexecdir
12769 pkgpyexecdir=\${pyexecdir}/$PACKAGE
12777 # check if we are building for python 3
12779 # split strings by '.' and convert to numeric. Append some zeros
12780 # because we need at least 4 digits for the hex conversion.
12781 # map returns an iterator in Python 3.0 and a list in 2.x
12782 minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0]
12784 # xrange is not present in Python 3.0 and range returns an iterator
12785 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12786 sys.exit(sys.hexversion < minverhex)"
12787 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12788 ($PYTHON -c "$prog") >&5 2>&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; then :
12797 # if building for python 3 make sure we have the minimum version supported
12798 if test $build_py3k = true ; then
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PYTHON >= 3.1" >&5
12800 $as_echo_n "checking for $PYTHON >= 3.1... " >&6; }
12802 # split strings by '.' and convert to numeric. Append some zeros
12803 # because we need at least 4 digits for the hex conversion.
12804 # map returns an iterator in Python 3.0 and a list in 2.x
12805 minver = list(map(int, '3.1'.split('.'))) + [0, 0, 0]
12807 # xrange is not present in Python 3.0 and range returns an iterator
12808 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12809 sys.exit(sys.hexversion < minverhex)"
12810 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12811 ($PYTHON -c "$prog") >&5 2>&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; then :
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12816 $as_echo "yes" >&6; }
12818 as_fn_error $? "too old" "$LINENO" 5
12822 # - 'SO' for PyPy, CPython 2.7-3.2
12823 # - 'EXT_SUFFIX' for CPython3.3+ (http://bugs.python.org/issue16754)
12824 # - fallback to '.so'
12825 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');"`
12834 # Find any Python interpreter.
12835 if test -z "$PYTHON"; then
12836 for ac_prog in python3 python3.3 python3.2 python3.1 python2 python2.7 python
12838 # Extract the first word of "$ac_prog", so it can be a program name with args.
12839 set dummy $ac_prog; ac_word=$2
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12841 $as_echo_n "checking for $ac_word... " >&6; }
12842 if ${ac_cv_path_PYTHON+:} false; then :
12843 $as_echo_n "(cached) " >&6
12847 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12851 for as_dir in $PATH
12854 test -z "$as_dir" && as_dir=.
12855 for ac_exec_ext in '' $ac_executable_extensions; do
12856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12857 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12868 PYTHON=$ac_cv_path_PYTHON
12869 if test -n "$PYTHON"; then
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12871 $as_echo "$PYTHON" >&6; }
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874 $as_echo "no" >&6; }
12878 test -n "$PYTHON" && break
12880 test -n "$PYTHON" || PYTHON=":"
12883 am_display_PYTHON=python
12886 if test "$PYTHON" = :; then
12887 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12892 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12893 if ${am_cv_python_version+:} false; then :
12894 $as_echo_n "(cached) " >&6
12896 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12899 $as_echo "$am_cv_python_version" >&6; }
12900 PYTHON_VERSION=$am_cv_python_version
12904 PYTHON_PREFIX='${prefix}'
12906 PYTHON_EXEC_PREFIX='${exec_prefix}'
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12911 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12912 if ${am_cv_python_platform+:} false; then :
12913 $as_echo_n "(cached) " >&6
12915 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12918 $as_echo "$am_cv_python_platform" >&6; }
12919 PYTHON_PLATFORM=$am_cv_python_platform
12922 # Just factor out some code duplication.
12923 am_python_setup_sysconfig="\
12925 # Prefer sysconfig over distutils.sysconfig, for better compatibility
12926 # with python 3.x. See automake bug#10227.
12929 except ImportError:
12930 can_use_sysconfig = 0
12932 can_use_sysconfig = 1
12933 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
12934 # <https://github.com/pypa/virtualenv/issues/118>
12936 from platform import python_implementation
12937 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
12938 can_use_sysconfig = 0
12939 except ImportError:
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12944 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12945 if ${am_cv_python_pythondir+:} false; then :
12946 $as_echo_n "(cached) " >&6
12948 if test "x$prefix" = xNONE
12950 am_py_prefix=$ac_default_prefix
12952 am_py_prefix=$prefix
12954 am_cv_python_pythondir=`$PYTHON -c "
12955 $am_python_setup_sysconfig
12956 if can_use_sysconfig:
12957 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
12959 from distutils import sysconfig
12960 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
12961 sys.stdout.write(sitedir)"`
12962 case $am_cv_python_pythondir in
12964 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
12965 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
12968 case $am_py_prefix in
12971 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12979 $as_echo "$am_cv_python_pythondir" >&6; }
12980 pythondir=$am_cv_python_pythondir
12984 pkgpythondir=\${pythondir}/$PACKAGE
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
12988 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
12989 if ${am_cv_python_pyexecdir+:} false; then :
12990 $as_echo_n "(cached) " >&6
12992 if test "x$exec_prefix" = xNONE
12994 am_py_exec_prefix=$am_py_prefix
12996 am_py_exec_prefix=$exec_prefix
12998 am_cv_python_pyexecdir=`$PYTHON -c "
12999 $am_python_setup_sysconfig
13000 if can_use_sysconfig:
13001 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
13003 from distutils import sysconfig
13004 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
13005 sys.stdout.write(sitedir)"`
13006 case $am_cv_python_pyexecdir in
13007 $am_py_exec_prefix*)
13008 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
13009 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
13012 case $am_py_exec_prefix in
13015 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13023 $as_echo "$am_cv_python_pyexecdir" >&6; }
13024 pyexecdir=$am_cv_python_pyexecdir
13028 pkgpyexecdir=\${pyexecdir}/$PACKAGE
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
13037 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
13038 if test "x$PYTHON_INCLUDES" = x; then
13039 PYTHON_CONFIG=`which $PYTHON`-config
13040 if test -x "$PYTHON_CONFIG"; then
13041 PYTHON_INCLUDES=`$PYTHON_CONFIG --includes 2>/dev/null`
13043 PYTHON_INCLUDES=`$PYTHON -c "import distutils.sysconfig, sys; sys.stdout.write(distutils.sysconfig.get_python_inc(True))"`
13044 PYTHON_INCLUDES="-I$PYTHON_INCLUDES"
13048 save_CPPFLAGS="$CPPFLAGS"
13049 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
13050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13051 /* end confdefs.h. */
13052 #include <Python.h>
13054 if ac_fn_c_try_cpp "$LINENO"; then :
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13056 $as_echo "found" >&6; }
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13060 $as_echo "not found" >&6; }
13061 as_fn_error $? "Python headers not found" "$LINENO" 5
13063 rm -f conftest.err conftest.i conftest.$ac_ext
13064 CPPFLAGS="$save_CPPFLAGS"
13066 if test "x$link_python_libs" = "xyes"; then
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to embed python" >&5
13069 $as_echo_n "checking for libraries required to embed python... " >&6; }
13070 py_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
13071 if test "x$PYTHON_LIBS" = x; then
13072 PYTHON_CONFIG=`which $PYTHON`-config
13073 if test -x "$PYTHON_CONFIG"; then
13074 PYTHON_LIBS=`$PYTHON_CONFIG --ldflags 2>/dev/null`
13076 PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
13079 if test "x$PYTHON_LIB_LOC" = x; then
13080 PYTHON_LIB_LOC="${py_prefix}/lib"
13085 LIBS="$LIBS $PYTHON_LIBS"
13086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087 /* end confdefs.h. */
13089 /* Override any GCC internal prototype to avoid an error.
13090 Use char because int might match the return type of a GCC
13091 builtin and then its argument prototype would still apply. */
13095 char Py_Initialize ();
13099 return Py_Initialize ();
13104 if ac_fn_c_try_link "$LINENO"; then :
13105 LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13106 $as_echo "yes" >&6; };
13108 LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13109 $as_echo "no" >&6; }; as_fn_error $? "Python libs not found. Windows and Darwin require Python modules to be explicitly linked to libpython." "$LINENO" 5
13111 rm -f core conftest.err conftest.$ac_objext \
13112 conftest$ac_exeext conftest.$ac_ext
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PySignal_SetWakeupFd in Python.h" >&5
13118 $as_echo_n "checking for PySignal_SetWakeupFd in Python.h... " >&6; }
13119 old_CPPFLAGS=$CPPFLAGS
13120 CPPFLAGS="-Wall -Werror $PYTHON_INCLUDES"
13121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13122 /* end confdefs.h. */
13123 #include <Python.h>
13127 PySignal_SetWakeupFd(0);
13132 if ac_fn_c_try_compile "$LINENO"; then :
13137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $setwakeupfd_ok" >&5
13139 $as_echo "$setwakeupfd_ok" >&6; }
13140 if test "x$setwakeupfd_ok" != xno; then
13142 $as_echo "#define HAVE_PYSIGNAL_SETWAKEUPFD 1" >>confdefs.h
13145 CPPFLAGS=$old_CPPFLAGS
13147 PLATFORM=`$PYTHON -c "import sys; from distutils import util; sys.stdout.write(util.get_platform())"`
13150 # Check whether --enable-thread was given.
13151 if test "${enable_thread+set}" = set; then :
13152 enableval=$enable_thread;
13159 py_mod_var=`echo thread'_' | sed 'y%./+-%__p_%'`
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module thread" >&5
13161 $as_echo_n "checking for python module thread... " >&6; }
13162 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13163 $as_echo_n "(cached) " >&6
13170 except ImportError:
13175 if $PYTHON -c "$prog" 1>&5 2>&5
13177 eval "py_cv_mod_$py_mod_var=yes"
13179 eval "py_cv_mod_$py_mod_var=no"
13184 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13185 if test "x$py_val" != xno; then
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13187 $as_echo "yes" >&6; }
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13190 $as_echo "no" >&6; }
13191 enable_thread=check_for_py3_module
13194 if test "x$enable_thread" = xcheck_for_py3_module; then
13196 py_mod_var=`echo _thread'_' | sed 'y%./+-%__p_%'`
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module _thread" >&5
13198 $as_echo_n "checking for python module _thread... " >&6; }
13199 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13200 $as_echo_n "(cached) " >&6
13207 except ImportError:
13212 if $PYTHON -c "$prog" 1>&5 2>&5
13214 eval "py_cv_mod_$py_mod_var=yes"
13216 eval "py_cv_mod_$py_mod_var=no"
13221 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13222 if test "x$py_val" != xno; then
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13224 $as_echo "yes" >&6; }
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13228 $as_echo "no" >&6; }
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable threading in pygobject" >&5
13235 $as_echo_n "checking whether to enable threading in pygobject... " >&6; }
13236 if test "x$enable_thread" != xno; then
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13240 $as_echo "yes" >&6; }
13243 THREADING_CFLAGS="-DDISABLE_THREADING"
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13245 $as_echo "no" >&6; }
13248 CPPFLAGS="${CPPFLAGS} $THREADING_CFLAGS"
13250 export_dynamic=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
13252 # Check whether --enable-glibtest was given.
13253 if test "${enable_glibtest+set}" = set; then :
13254 enableval=$enable_glibtest;
13256 enable_glibtest=yes
13260 pkg_config_args=glib-2.0
13261 for module in . gobject $extra_mods
13265 pkg_config_args="$pkg_config_args gmodule-2.0"
13268 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
13271 pkg_config_args="$pkg_config_args gobject-2.0"
13274 pkg_config_args="$pkg_config_args gthread-2.0"
13277 pkg_config_args="$pkg_config_args $module-2.0"
13289 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13290 if test -n "$ac_tool_prefix"; then
13291 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13292 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13294 $as_echo_n "checking for $ac_word... " >&6; }
13295 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13296 $as_echo_n "(cached) " >&6
13298 case $PKG_CONFIG in
13300 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13304 for as_dir in $PATH
13307 test -z "$as_dir" && as_dir=.
13308 for ac_exec_ext in '' $ac_executable_extensions; do
13309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13310 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13321 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13322 if test -n "$PKG_CONFIG"; then
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13324 $as_echo "$PKG_CONFIG" >&6; }
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13327 $as_echo "no" >&6; }
13332 if test -z "$ac_cv_path_PKG_CONFIG"; then
13333 ac_pt_PKG_CONFIG=$PKG_CONFIG
13334 # Extract the first word of "pkg-config", so it can be a program name with args.
13335 set dummy pkg-config; ac_word=$2
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13337 $as_echo_n "checking for $ac_word... " >&6; }
13338 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13339 $as_echo_n "(cached) " >&6
13341 case $ac_pt_PKG_CONFIG in
13343 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13347 for as_dir in $PATH
13350 test -z "$as_dir" && as_dir=.
13351 for ac_exec_ext in '' $ac_executable_extensions; do
13352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13353 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13364 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13365 if test -n "$ac_pt_PKG_CONFIG"; then
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13367 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13370 $as_echo "no" >&6; }
13373 if test "x$ac_pt_PKG_CONFIG" = x; then
13376 case $cross_compiling:$ac_tool_warned in
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13380 ac_tool_warned=yes ;;
13382 PKG_CONFIG=$ac_pt_PKG_CONFIG
13385 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13389 if test -n "$PKG_CONFIG"; then
13390 _pkg_min_version=0.16
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13392 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13393 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13395 $as_echo "yes" >&6; }
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13398 $as_echo "no" >&6; }
13405 if test "x$PKG_CONFIG" = x ; then
13410 min_glib_version=2.38.0
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
13412 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
13414 if test x$PKG_CONFIG != xno ; then
13415 ## don't try to run the test against uninstalled libtool libs
13416 if $PKG_CONFIG --uninstalled $pkg_config_args; then
13417 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
13421 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
13428 if test x"$no_glib" = x ; then
13429 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
13430 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
13431 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
13432 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
13434 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
13435 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
13436 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
13437 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13438 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
13439 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13440 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
13441 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13442 if test "x$enable_glibtest" = "xyes" ; then
13443 ac_save_CFLAGS="$CFLAGS"
13444 ac_save_LIBS="$LIBS"
13445 CFLAGS="$CFLAGS $GLIB_CFLAGS"
13446 LIBS="$GLIB_LIBS $LIBS"
13447 rm -f conf.glibtest
13448 if test "$cross_compiling" = yes; then :
13449 echo $ac_n "cross compiling; assumed OK... $ac_c"
13451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13452 /* end confdefs.h. */
13456 #include <stdlib.h>
13461 unsigned int major, minor, micro;
13463 fclose (fopen ("conf.glibtest", "w"));
13465 if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, µ) != 3) {
13466 printf("%s, bad version string\n", "$min_glib_version");
13470 if ((glib_major_version != $glib_config_major_version) ||
13471 (glib_minor_version != $glib_config_minor_version) ||
13472 (glib_micro_version != $glib_config_micro_version))
13474 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
13475 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
13476 glib_major_version, glib_minor_version, glib_micro_version);
13477 printf ("*** was found! If pkg-config was correct, then it is best\n");
13478 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
13479 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13480 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13481 printf("*** required on your system.\n");
13482 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
13483 printf("*** to point to the correct configuration files\n");
13485 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
13486 (glib_minor_version != GLIB_MINOR_VERSION) ||
13487 (glib_micro_version != GLIB_MICRO_VERSION))
13489 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
13490 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
13491 printf("*** library (version %d.%d.%d)\n",
13492 glib_major_version, glib_minor_version, glib_micro_version);
13496 if ((glib_major_version > major) ||
13497 ((glib_major_version == major) && (glib_minor_version > minor)) ||
13498 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
13504 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
13505 glib_major_version, glib_minor_version, glib_micro_version);
13506 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
13507 major, minor, micro);
13508 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
13510 printf("*** If you have already installed a sufficiently new version, this error\n");
13511 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
13512 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13513 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
13514 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
13515 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13516 printf("*** so that the correct libraries are found at run-time))\n");
13523 if ac_fn_c_try_run "$LINENO"; then :
13528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13529 conftest.$ac_objext conftest.beam conftest.$ac_ext
13532 CFLAGS="$ac_save_CFLAGS"
13533 LIBS="$ac_save_LIBS"
13536 if test "x$no_glib" = x ; then
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
13538 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13542 $as_echo "no" >&6; }
13543 if test "$PKG_CONFIG" = "no" ; then
13544 echo "*** A new enough version of pkg-config was not found."
13545 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
13547 if test -f conf.glibtest ; then
13550 echo "*** Could not run GLIB test program, checking why..."
13551 ac_save_CFLAGS="$CFLAGS"
13552 ac_save_LIBS="$LIBS"
13553 CFLAGS="$CFLAGS $GLIB_CFLAGS"
13554 LIBS="$LIBS $GLIB_LIBS"
13555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556 /* end confdefs.h. */
13564 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
13569 if ac_fn_c_try_link "$LINENO"; then :
13570 echo "*** The test program compiled, but did not run. This usually means"
13571 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
13572 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
13573 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13574 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13575 echo "*** is required on your system"
13577 echo "*** If you have an old version installed, it is best to remove it, although"
13578 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13580 echo "*** The test program failed to compile or link. See the file config.log for the"
13581 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
13583 rm -f core conftest.err conftest.$ac_objext \
13584 conftest$ac_exeext conftest.$ac_ext
13585 CFLAGS="$ac_save_CFLAGS"
13586 LIBS="$ac_save_LIBS"
13594 GLIB_COMPILE_RESOURCES=""
13595 as_fn_error $? "maybe you want the pygobject-2-4 branch?" "$LINENO" 5
13603 rm -f conf.glibtest
13605 if test -n "$export_dynamic"; then
13606 GLIB_LIBS=`echo $GLIB_LIBS | sed -e "s/$export_dynamic//"`
13608 PYTHON_BASENAME=`basename $PYTHON`
13615 prefix_save=$prefix
13616 exec_prefix_save=$exec_prefix
13618 if test "x$prefix" = "xNONE"; then
13619 prefix=$ac_default_prefix
13621 if test "x$exec_prefix" = "xNONE"; then
13622 exec_prefix=$prefix
13625 full_var="$FROM_VAR"
13627 new_full_var="`eval echo $full_var`"
13628 if test "x$new_full_var"="x$full_var"; then break; fi
13629 full_var=$new_full_var
13632 full_var=$new_full_var
13633 DATADIR="$full_var"
13636 prefix=$prefix_save
13637 exec_prefix=$exec_prefix_save
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFI" >&5
13643 $as_echo_n "checking for FFI... " >&6; }
13645 if test -n "$FFI_CFLAGS"; then
13646 pkg_cv_FFI_CFLAGS="$FFI_CFLAGS"
13647 elif test -n "$PKG_CONFIG"; then
13648 if test -n "$PKG_CONFIG" && \
13649 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
13650 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
13652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13653 test $ac_status = 0; }; then
13654 pkg_cv_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0" 2>/dev/null`
13655 test "x$?" != "x0" && pkg_failed=yes
13662 if test -n "$FFI_LIBS"; then
13663 pkg_cv_FFI_LIBS="$FFI_LIBS"
13664 elif test -n "$PKG_CONFIG"; then
13665 if test -n "$PKG_CONFIG" && \
13666 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
13667 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
13669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13670 test $ac_status = 0; }; then
13671 pkg_cv_FFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0" 2>/dev/null`
13672 test "x$?" != "x0" && pkg_failed=yes
13682 if test $pkg_failed = yes; then
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13684 $as_echo "no" >&6; }
13686 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13687 _pkg_short_errors_supported=yes
13689 _pkg_short_errors_supported=no
13691 if test $_pkg_short_errors_supported = yes; then
13692 FFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
13694 FFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
13696 # Put the nasty error message in config.log where it belongs
13697 echo "$FFI_PKG_ERRORS" >&5
13699 as_fn_error $? "Package requirements (libffi >= 3.0) were not met:
13703 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13704 installed software in a non-standard prefix.
13706 Alternatively, you may set the environment variables FFI_CFLAGS
13707 and FFI_LIBS to avoid the need to call pkg-config.
13708 See the pkg-config man page for more details." "$LINENO" 5
13709 elif test $pkg_failed = untried; then
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13711 $as_echo "no" >&6; }
13712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13714 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13715 is in your PATH or set the PKG_CONFIG environment variable to the full
13716 path to pkg-config.
13718 Alternatively, you may set the environment variables FFI_CFLAGS
13719 and FFI_LIBS to avoid the need to call pkg-config.
13720 See the pkg-config man page for more details.
13722 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13723 See \`config.log' for more details" "$LINENO" 5; }
13725 FFI_CFLAGS=$pkg_cv_FFI_CFLAGS
13726 FFI_LIBS=$pkg_cv_FFI_LIBS
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13728 $as_echo "yes" >&6; }
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
13740 $as_echo_n "checking for GIO... " >&6; }
13742 if test -n "$GIO_CFLAGS"; then
13743 pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
13744 elif test -n "$PKG_CONFIG"; then
13745 if test -n "$PKG_CONFIG" && \
13746 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.38.0\""; } >&5
13747 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.38.0") 2>&5
13749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13750 test $ac_status = 0; }; then
13751 pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.38.0" 2>/dev/null`
13752 test "x$?" != "x0" && pkg_failed=yes
13759 if test -n "$GIO_LIBS"; then
13760 pkg_cv_GIO_LIBS="$GIO_LIBS"
13761 elif test -n "$PKG_CONFIG"; then
13762 if test -n "$PKG_CONFIG" && \
13763 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.38.0\""; } >&5
13764 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.38.0") 2>&5
13766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13767 test $ac_status = 0; }; then
13768 pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.38.0" 2>/dev/null`
13769 test "x$?" != "x0" && pkg_failed=yes
13779 if test $pkg_failed = yes; then
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13781 $as_echo "no" >&6; }
13783 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13784 _pkg_short_errors_supported=yes
13786 _pkg_short_errors_supported=no
13788 if test $_pkg_short_errors_supported = yes; then
13789 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.38.0" 2>&1`
13791 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.38.0" 2>&1`
13793 # Put the nasty error message in config.log where it belongs
13794 echo "$GIO_PKG_ERRORS" >&5
13796 as_fn_error $? "Package requirements (gio-2.0 >= 2.38.0) were not met:
13800 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13801 installed software in a non-standard prefix.
13803 Alternatively, you may set the environment variables GIO_CFLAGS
13804 and GIO_LIBS to avoid the need to call pkg-config.
13805 See the pkg-config man page for more details." "$LINENO" 5
13806 elif test $pkg_failed = untried; then
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13808 $as_echo "no" >&6; }
13809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13811 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13812 is in your PATH or set the PKG_CONFIG environment variable to the full
13813 path to pkg-config.
13815 Alternatively, you may set the environment variables GIO_CFLAGS
13816 and GIO_LIBS to avoid the need to call pkg-config.
13817 See the pkg-config man page for more details.
13819 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13820 See \`config.log' for more details" "$LINENO" 5; }
13822 GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
13823 GIO_LIBS=$pkg_cv_GIO_LIBS
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13825 $as_echo "yes" >&6; }
13829 # Check whether --enable-cairo was given.
13830 if test "${enable_cairo+set}" = set; then :
13831 enableval=$enable_cairo; enable_cairo=$enableval
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GI" >&5
13840 $as_echo_n "checking for GI... " >&6; }
13842 if test -n "$GI_CFLAGS"; then
13843 pkg_cv_GI_CFLAGS="$GI_CFLAGS"
13844 elif test -n "$PKG_CONFIG"; then
13845 if test -n "$PKG_CONFIG" && \
13846 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.38.0
13847 gobject-introspection-1.0 >= 1.39.0
13849 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.38.0
13850 gobject-introspection-1.0 >= 1.39.0
13853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13854 test $ac_status = 0; }; then
13855 pkg_cv_GI_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.38.0
13856 gobject-introspection-1.0 >= 1.39.0
13858 test "x$?" != "x0" && pkg_failed=yes
13865 if test -n "$GI_LIBS"; then
13866 pkg_cv_GI_LIBS="$GI_LIBS"
13867 elif test -n "$PKG_CONFIG"; then
13868 if test -n "$PKG_CONFIG" && \
13869 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.38.0
13870 gobject-introspection-1.0 >= 1.39.0
13872 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.38.0
13873 gobject-introspection-1.0 >= 1.39.0
13876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13877 test $ac_status = 0; }; then
13878 pkg_cv_GI_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.38.0
13879 gobject-introspection-1.0 >= 1.39.0
13881 test "x$?" != "x0" && pkg_failed=yes
13891 if test $pkg_failed = yes; then
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13893 $as_echo "no" >&6; }
13895 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13896 _pkg_short_errors_supported=yes
13898 _pkg_short_errors_supported=no
13900 if test $_pkg_short_errors_supported = yes; then
13901 GI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.38.0
13902 gobject-introspection-1.0 >= 1.39.0
13905 GI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.38.0
13906 gobject-introspection-1.0 >= 1.39.0
13909 # Put the nasty error message in config.log where it belongs
13910 echo "$GI_PKG_ERRORS" >&5
13912 as_fn_error $? "Package requirements (glib-2.0 >= 2.38.0
13913 gobject-introspection-1.0 >= 1.39.0
13918 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13919 installed software in a non-standard prefix.
13921 Alternatively, you may set the environment variables GI_CFLAGS
13922 and GI_LIBS to avoid the need to call pkg-config.
13923 See the pkg-config man page for more details." "$LINENO" 5
13924 elif test $pkg_failed = untried; then
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13926 $as_echo "no" >&6; }
13927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13929 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13930 is in your PATH or set the PKG_CONFIG environment variable to the full
13931 path to pkg-config.
13933 Alternatively, you may set the environment variables GI_CFLAGS
13934 and GI_LIBS to avoid the need to call pkg-config.
13935 See the pkg-config man page for more details.
13937 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13938 See \`config.log' for more details" "$LINENO" 5; }
13940 GI_CFLAGS=$pkg_cv_GI_CFLAGS
13941 GI_LIBS=$pkg_cv_GI_LIBS
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13943 $as_echo "yes" >&6; }
13947 GI_DATADIR=$($PKG_CONFIG --variable=gidatadir gobject-introspection-1.0)
13950 if test "$enable_cairo" != no; then
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
13954 $as_echo_n "checking for CAIRO... " >&6; }
13956 if test -n "$CAIRO_CFLAGS"; then
13957 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
13958 elif test -n "$PKG_CONFIG"; then
13959 if test -n "$PKG_CONFIG" && \
13960 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13961 ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13964 test $ac_status = 0; }; then
13965 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo cairo-gobject" 2>/dev/null`
13966 test "x$?" != "x0" && pkg_failed=yes
13973 if test -n "$CAIRO_LIBS"; then
13974 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
13975 elif test -n "$PKG_CONFIG"; then
13976 if test -n "$PKG_CONFIG" && \
13977 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13978 ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13981 test $ac_status = 0; }; then
13982 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo cairo-gobject" 2>/dev/null`
13983 test "x$?" != "x0" && pkg_failed=yes
13993 if test $pkg_failed = yes; then
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13995 $as_echo "no" >&6; }
13997 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13998 _pkg_short_errors_supported=yes
14000 _pkg_short_errors_supported=no
14002 if test $_pkg_short_errors_supported = yes; then
14003 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
14005 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
14007 # Put the nasty error message in config.log where it belongs
14008 echo "$CAIRO_PKG_ERRORS" >&5
14010 as_fn_error $? "Package requirements (cairo cairo-gobject) were not met:
14014 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14015 installed software in a non-standard prefix.
14017 Alternatively, you may set the environment variables CAIRO_CFLAGS
14018 and CAIRO_LIBS to avoid the need to call pkg-config.
14019 See the pkg-config man page for more details." "$LINENO" 5
14020 elif test $pkg_failed = untried; then
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14022 $as_echo "no" >&6; }
14023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14025 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14026 is in your PATH or set the PKG_CONFIG environment variable to the full
14027 path to pkg-config.
14029 Alternatively, you may set the environment variables CAIRO_CFLAGS
14030 and CAIRO_LIBS to avoid the need to call pkg-config.
14031 See the pkg-config man page for more details.
14033 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14034 See \`config.log' for more details" "$LINENO" 5; }
14036 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
14037 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14039 $as_echo "yes" >&6; }
14043 if test $build_py3k = true; then
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14047 $as_echo_n "checking for PYCAIRO... " >&6; }
14049 if test -n "$PYCAIRO_CFLAGS"; then
14050 pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14051 elif test -n "$PKG_CONFIG"; then
14052 if test -n "$PKG_CONFIG" && \
14053 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
14055 ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14059 test $ac_status = 0; }; then
14060 pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "py3cairo >= 1.10.0
14062 test "x$?" != "x0" && pkg_failed=yes
14069 if test -n "$PYCAIRO_LIBS"; then
14070 pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14071 elif test -n "$PKG_CONFIG"; then
14072 if test -n "$PKG_CONFIG" && \
14073 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
14075 ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14079 test $ac_status = 0; }; then
14080 pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "py3cairo >= 1.10.0
14082 test "x$?" != "x0" && pkg_failed=yes
14092 if test $pkg_failed = yes; then
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14094 $as_echo "no" >&6; }
14096 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14097 _pkg_short_errors_supported=yes
14099 _pkg_short_errors_supported=no
14101 if test $_pkg_short_errors_supported = yes; then
14102 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "py3cairo >= 1.10.0
14105 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "py3cairo >= 1.10.0
14108 # Put the nasty error message in config.log where it belongs
14109 echo "$PYCAIRO_PKG_ERRORS" >&5
14111 as_fn_error $? "Package requirements (py3cairo >= 1.10.0
14114 $PYCAIRO_PKG_ERRORS
14116 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14117 installed software in a non-standard prefix.
14119 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14120 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14121 See the pkg-config man page for more details." "$LINENO" 5
14122 elif test $pkg_failed = untried; then
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14124 $as_echo "no" >&6; }
14125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14127 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14128 is in your PATH or set the PKG_CONFIG environment variable to the full
14129 path to pkg-config.
14131 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14132 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14133 See the pkg-config man page for more details.
14135 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14136 See \`config.log' for more details" "$LINENO" 5; }
14138 PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14139 PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14141 $as_echo "yes" >&6; }
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14148 $as_echo_n "checking for PYCAIRO... " >&6; }
14150 if test -n "$PYCAIRO_CFLAGS"; then
14151 pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14152 elif test -n "$PKG_CONFIG"; then
14153 if test -n "$PKG_CONFIG" && \
14154 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14156 ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14160 test $ac_status = 0; }; then
14161 pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "pycairo >= 1.2.0
14163 test "x$?" != "x0" && pkg_failed=yes
14170 if test -n "$PYCAIRO_LIBS"; then
14171 pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14172 elif test -n "$PKG_CONFIG"; then
14173 if test -n "$PKG_CONFIG" && \
14174 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14176 ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14180 test $ac_status = 0; }; then
14181 pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "pycairo >= 1.2.0
14183 test "x$?" != "x0" && pkg_failed=yes
14193 if test $pkg_failed = yes; then
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14195 $as_echo "no" >&6; }
14197 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14198 _pkg_short_errors_supported=yes
14200 _pkg_short_errors_supported=no
14202 if test $_pkg_short_errors_supported = yes; then
14203 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pycairo >= 1.2.0
14206 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pycairo >= 1.2.0
14209 # Put the nasty error message in config.log where it belongs
14210 echo "$PYCAIRO_PKG_ERRORS" >&5
14212 as_fn_error $? "Package requirements (pycairo >= 1.2.0
14215 $PYCAIRO_PKG_ERRORS
14217 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14218 installed software in a non-standard prefix.
14220 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14221 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14222 See the pkg-config man page for more details." "$LINENO" 5
14223 elif test $pkg_failed = untried; then
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14225 $as_echo "no" >&6; }
14226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14228 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14229 is in your PATH or set the PKG_CONFIG environment variable to the full
14230 path to pkg-config.
14232 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14233 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14234 See the pkg-config man page for more details.
14236 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14237 See \`config.log' for more details" "$LINENO" 5; }
14239 PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14240 PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14242 $as_echo "yes" >&6; }
14247 if test "$enable_cairo" = "yes"; then
14249 ENABLE_CAIRO_FALSE='#'
14251 ENABLE_CAIRO_TRUE='#'
14252 ENABLE_CAIRO_FALSE=
14257 # Check whether --with-common was given.
14258 if test "${with_common+set}" = set; then :
14259 withval=$with_common; with_common=$enableval
14264 if test "$with_common" = "yes"; then
14266 WITH_COMMON_FALSE='#'
14268 WITH_COMMON_TRUE='#'
14273 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
14274 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
14279 # compiler warnings, errors, required cflags, and code coverage support
14282 # Check whether --enable-compile-warnings was given.
14283 if test "${enable_compile_warnings+set}" = set; then :
14284 enableval=$enable_compile_warnings;
14286 enable_compile_warnings="maximum"
14290 if test "x$GCC" != xyes; then
14291 enable_compile_warnings=no
14295 realsave_CFLAGS="$CFLAGS"
14297 base_warn_flags=" \
14299 -Wstrict-prototypes \
14303 base_error_flags=" \
14304 -Werror=missing-prototypes \
14305 -Werror=implicit-function-declaration \
14306 -Werror=pointer-arith \
14307 -Werror=init-self \
14308 -Werror=format-security \
14310 -Werror=missing-include-dirs \
14311 -Werror=return-type \
14314 additional_flags=""
14316 case "$enable_compile_warnings" in
14321 warning_flags="-Wall"
14324 warning_flags="$base_warn_flags $base_error_flags $additional_flags"
14327 as_fn_error $? "Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" "$LINENO" 5
14331 if test "$enable_compile_warnings" = "error" ; then
14332 warning_flags="$warning_flags -Werror"
14335 for option in $warning_flags; do
14336 save_CFLAGS="$CFLAGS"
14337 CFLAGS="$CFLAGS $option"
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands $option" >&5
14339 $as_echo_n "checking whether gcc understands $option... " >&6; }
14340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14341 /* end confdefs.h. */
14351 if ac_fn_c_try_compile "$LINENO"; then :
14356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14357 CFLAGS="$save_CFLAGS"
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
14359 $as_echo "$has_option" >&6; }
14360 if test $has_option = yes; then
14361 tested_warning_flags="$tested_warning_flags $option"
14367 CFLAGS="$realsave_CFLAGS"
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
14369 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tested_warning_flags" >&5
14371 $as_echo "$tested_warning_flags" >&6; }
14373 # Check whether --enable-iso-c was given.
14374 if test "${enable_iso_c+set}" = set; then :
14375 enableval=$enable_iso_c;
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what language compliance flags to pass to the C compiler" >&5
14382 $as_echo_n "checking what language compliance flags to pass to the C compiler... " >&6; }
14384 if test "x$enable_iso_c" != "xno"; then
14385 if test "x$GCC" = "xyes"; then
14386 case " $CFLAGS " in
14387 *\ \ -ansi\ \ *) ;;
14388 *) complCFLAGS="$complCFLAGS -ansi" ;;
14390 case " $CFLAGS " in
14391 *\ \ -pedantic\ \ *) ;;
14392 *) complCFLAGS="$complCFLAGS -pedantic" ;;
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $complCFLAGS" >&5
14397 $as_echo "$complCFLAGS" >&6; }
14399 WARN_CFLAGS="$tested_warning_flags $complCFLAGS"
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gnome code coverage support" >&5
14403 $as_echo_n "checking for Gnome code coverage support... " >&6; }
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14405 $as_echo "yes" >&6; }
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
14409 $as_echo_n "checking whether to build with code coverage support... " >&6; }
14410 # Check whether --enable-code-coverage was given.
14411 if test "${enable_code_coverage+set}" = set; then :
14412 enableval=$enable_code_coverage;
14414 enable_code_coverage=no
14417 if test x$enable_code_coverage = xyes; then
14418 CODE_COVERAGE_ENABLED_TRUE=
14419 CODE_COVERAGE_ENABLED_FALSE='#'
14421 CODE_COVERAGE_ENABLED_TRUE='#'
14422 CODE_COVERAGE_ENABLED_FALSE=
14425 CODE_COVERAGE_ENABLED=$enable_code_coverage
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
14428 $as_echo "$enable_code_coverage" >&6; }
14430 if test "$enable_code_coverage" = "yes" ; then :
14432 if test "$GCC" = "no" ; then :
14434 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
14438 # List of supported lcov versions.
14439 lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11"
14441 # Extract the first word of "lcov", so it can be a program name with args.
14442 set dummy lcov; ac_word=$2
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14444 $as_echo_n "checking for $ac_word... " >&6; }
14445 if ${ac_cv_prog_LCOV+:} false; then :
14446 $as_echo_n "(cached) " >&6
14448 if test -n "$LCOV"; then
14449 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
14451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14452 for as_dir in $PATH
14455 test -z "$as_dir" && as_dir=.
14456 for ac_exec_ext in '' $ac_executable_extensions; do
14457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14458 ac_cv_prog_LCOV="lcov"
14459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14468 LCOV=$ac_cv_prog_LCOV
14469 if test -n "$LCOV"; then
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
14471 $as_echo "$LCOV" >&6; }
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14474 $as_echo "no" >&6; }
14478 # Extract the first word of "genhtml", so it can be a program name with args.
14479 set dummy genhtml; ac_word=$2
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14481 $as_echo_n "checking for $ac_word... " >&6; }
14482 if ${ac_cv_prog_GENHTML+:} false; then :
14483 $as_echo_n "(cached) " >&6
14485 if test -n "$GENHTML"; then
14486 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
14488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14489 for as_dir in $PATH
14492 test -z "$as_dir" && as_dir=.
14493 for ac_exec_ext in '' $ac_executable_extensions; do
14494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14495 ac_cv_prog_GENHTML="genhtml"
14496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14505 GENHTML=$ac_cv_prog_GENHTML
14506 if test -n "$GENHTML"; then
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
14508 $as_echo "$GENHTML" >&6; }
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14511 $as_echo "no" >&6; }
14516 if test "$LCOV" ; then :
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
14519 $as_echo_n "checking for lcov version... " >&6; }
14520 if ${ax_cv_lcov_version+:} false; then :
14521 $as_echo_n "(cached) " >&6
14524 ax_cv_lcov_version=invalid
14525 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
14526 for lcov_check_version in $lcov_version_list; do
14527 if test "$lcov_version" = "$lcov_check_version"; then
14528 ax_cv_lcov_version="$lcov_check_version (ok)"
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lcov_version" >&5
14534 $as_echo "$ax_cv_lcov_version" >&6; }
14538 lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
14539 as_fn_error $? "$lcov_msg" "$LINENO" 5
14543 case $ax_cv_lcov_version in
14545 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
14546 as_fn_error $? "$lcov_msg" "$LINENO" 5
14551 if test -z "$GENHTML" ; then :
14553 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
14557 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
14558 CODE_COVERAGE_LDFLAGS="-lgcov"
14565 CODE_COVERAGE_RULES='
14569 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
14570 # (Default: $(top_builddir))
14571 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
14572 # by lcov for code coverage. (Default:
14573 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
14574 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
14575 # reports to be created. (Default:
14576 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
14577 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
14579 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
14580 # instance. (Default: empty)
14581 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
14583 # The generated report will be titled using the $(PACKAGE_NAME) and
14584 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
14585 # use the git-version-gen script, available online.
14587 # Optional variables
14588 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
14589 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
14590 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
14591 CODE_COVERAGE_LCOV_OPTIONS ?=
14592 CODE_COVERAGE_GENHTML_OPTIONS ?=
14593 CODE_COVERAGE_IGNORE_PATTERN ?=
14595 code_coverage_quiet = $(code_coverage_quiet_$(V))
14596 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
14597 code_coverage_quiet_0 = --quiet
14599 # Use recursive makes in order to ignore errors during check
14600 check-code-coverage:
14601 ifeq ($(CODE_COVERAGE_ENABLED),yes)
14602 -$(MAKE) $(AM_MAKEFLAGS) -k check
14603 $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
14605 @echo "Need to reconfigure with --enable-code-coverage"
14608 # Capture code coverage data
14609 code-coverage-capture: code-coverage-capture-hook
14610 ifeq ($(CODE_COVERAGE_ENABLED),yes)
14611 $(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)
14612 $(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)"
14613 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
14614 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)
14615 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
14617 @echo "Need to reconfigure with --enable-code-coverage"
14620 # Hook rule executed before code-coverage-capture, overridable by the user
14621 code-coverage-capture-hook:
14623 ifeq ($(CODE_COVERAGE_ENABLED),yes)
14624 clean: code-coverage-clean
14625 code-coverage-clean:
14626 -$(LCOV) --directory $(top_builddir) -z
14627 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
14628 -find . -name "*.gcda" -o -name "*.gcov" -delete
14632 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
14634 DISTCHECK_CONFIGURE_FLAGS ?=
14635 DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
14637 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
14643 GNOME_CODE_COVERAGE_RULES=$CODE_COVERAGE_RULES
14649 if test "x$GCC" = "xyes"; then
14651 case " $CFLAGS " in
14652 *[\ \ ]-Wall[\ \ ]*)
14655 save_CFLAGS="$CFLAGS"
14656 CFLAGS="$CFLAGS -Wall"
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Wall" >&5
14658 $as_echo_n "checking whether $CC understands -Wall... " >&6; }
14659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14660 /* end confdefs.h. */
14670 if ac_fn_c_try_compile "$LINENO"; then :
14675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14677 $as_echo "$jh_has_option" >&6; }
14678 if test $jh_has_option = no; then
14679 CFLAGS="$save_CFLAGS"
14684 case " $CFLAGS " in
14685 *[\ \ ]-Werror=unused-variable[\ \ ]*)
14688 save_CFLAGS="$CFLAGS"
14689 CFLAGS="$CFLAGS -Werror=unused-variable"
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=unused-variable" >&5
14691 $as_echo_n "checking whether $CC understands -Werror=unused-variable... " >&6; }
14692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14693 /* end confdefs.h. */
14703 if ac_fn_c_try_compile "$LINENO"; then :
14708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14710 $as_echo "$jh_has_option" >&6; }
14711 if test $jh_has_option = no; then
14712 CFLAGS="$save_CFLAGS"
14717 case " $CFLAGS " in
14718 *[\ \ ]-fno-strict-aliasing[\ \ ]*)
14721 save_CFLAGS="$CFLAGS"
14722 CFLAGS="$CFLAGS -fno-strict-aliasing"
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -fno-strict-aliasing" >&5
14724 $as_echo_n "checking whether $CC understands -fno-strict-aliasing... " >&6; }
14725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14726 /* end confdefs.h. */
14736 if ac_fn_c_try_compile "$LINENO"; then :
14741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14743 $as_echo "$jh_has_option" >&6; }
14744 if test $jh_has_option = no; then
14745 CFLAGS="$save_CFLAGS"
14750 case " $CFLAGS " in
14751 *[\ \ ]-Werror=declaration-after-statement[\ \ ]*)
14754 save_CFLAGS="$CFLAGS"
14755 CFLAGS="$CFLAGS -Werror=declaration-after-statement"
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=declaration-after-statement" >&5
14757 $as_echo_n "checking whether $CC understands -Werror=declaration-after-statement... " >&6; }
14758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14759 /* end confdefs.h. */
14769 if ac_fn_c_try_compile "$LINENO"; then :
14774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14776 $as_echo "$jh_has_option" >&6; }
14777 if test $jh_has_option = no; then
14778 CFLAGS="$save_CFLAGS"
14788 case " $CFLAGS " in
14789 *[\ \ ]-std=c90[\ \ ]*)
14792 save_CFLAGS="$CFLAGS"
14793 CFLAGS="$CFLAGS -std=c90"
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -std=c90" >&5
14795 $as_echo_n "checking whether $CC understands -std=c90... " >&6; }
14796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14797 /* end confdefs.h. */
14807 if ac_fn_c_try_compile "$LINENO"; then :
14812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14814 $as_echo "$jh_has_option" >&6; }
14815 if test $jh_has_option = no; then
14816 CFLAGS="$save_CFLAGS"
14825 CFLAGS="$CFLAGS $WARN_CFLAGS $CODE_COVERAGE_CFLAGS"
14826 LDFLAGS="$LDFLAGS $CODE_COVERAGE_CFLAGS"
14828 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"
14830 cat >confcache <<\_ACEOF
14831 # This file is a shell script that caches the results of configure
14832 # tests run on this system so they can be shared between configure
14833 # scripts and configure runs, see configure's option --config-cache.
14834 # It is not useful on other systems. If it contains results you don't
14835 # want to keep, you may remove or edit it.
14837 # config.status only pays attention to the cache file if you give it
14838 # the --recheck option to rerun configure.
14840 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14841 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14842 # following values.
14846 # The following way of writing the cache mishandles newlines in values,
14847 # but we know of no workaround that is simple, portable, and efficient.
14848 # So, we kill variables containing newlines.
14849 # Ultrix sh set writes to stderr and can't be redirected directly,
14850 # and sets the high bit in the cache file unless we assign to the vars.
14852 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14853 eval ac_val=\$$ac_var
14857 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14858 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14861 _ | IFS | as_nl) ;; #(
14862 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14863 *) { eval $ac_var=; unset $ac_var;} ;;
14869 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14870 *${as_nl}ac_space=\ *)
14871 # `set' does not quote correctly, so add quotes: double-quote
14872 # substitution turns \\\\ into \\, and sed turns \\ into \.
14875 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14878 # `set' quotes correctly as required by POSIX, so do not add quotes.
14879 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14888 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14890 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14892 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14893 if test -w "$cache_file"; then
14894 if test "x$cache_file" != "x/dev/null"; then
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14896 $as_echo "$as_me: updating cache $cache_file" >&6;}
14897 if test ! -f "$cache_file" || test -h "$cache_file"; then
14898 cat confcache >"$cache_file"
14900 case $cache_file in #(
14902 mv -f confcache "$cache_file"$$ &&
14903 mv -f "$cache_file"$$ "$cache_file" ;; #(
14905 mv -f confcache "$cache_file" ;;
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14911 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14916 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14917 # Let make expand exec_prefix.
14918 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14920 DEFS=-DHAVE_CONFIG_H
14925 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14926 # 1. Remove the extension, and $U if already installed.
14927 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14928 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14929 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14930 # will be set to the directory where LIBOBJS objects are built.
14931 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14932 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14934 LIBOBJS=$ac_libobjs
14936 LTLIBOBJS=$ac_ltlibobjs
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14940 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14941 if test -n "$am_sleep_pid"; then
14942 # Hide warnings about reused PIDs.
14943 wait $am_sleep_pid 2>/dev/null
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14946 $as_echo "done" >&6; }
14947 if test -n "$EXEEXT"; then
14949 am__EXEEXT_FALSE='#'
14951 am__EXEEXT_TRUE='#'
14955 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
14956 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
14957 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14959 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14960 as_fn_error $? "conditional \"AMDEP\" was never defined.
14961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14963 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14964 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14967 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14968 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14971 if test -z "${ENABLE_CAIRO_TRUE}" && test -z "${ENABLE_CAIRO_FALSE}"; then
14972 as_fn_error $? "conditional \"ENABLE_CAIRO\" was never defined.
14973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14975 if test -z "${WITH_COMMON_TRUE}" && test -z "${WITH_COMMON_FALSE}"; then
14976 as_fn_error $? "conditional \"WITH_COMMON\" was never defined.
14977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14979 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
14980 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
14981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14984 : "${CONFIG_STATUS=./config.status}"
14986 ac_clean_files_save=$ac_clean_files
14987 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14989 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14991 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14993 # Generated by $as_me.
14994 # Run this file to recreate the current configuration.
14995 # Compiler output produced by configure, useful for debugging
14996 # configure, is in config.log if it exists.
14999 ac_cs_recheck=false
15002 SHELL=\${CONFIG_SHELL-$SHELL}
15005 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15006 ## -------------------- ##
15007 ## M4sh Initialization. ##
15008 ## -------------------- ##
15010 # Be more Bourne compatible
15011 DUALCASE=1; export DUALCASE # for MKS sh
15012 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15015 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15016 # is contrary to our usage. Disable this feature.
15017 alias -g '${1+"$@"}'='"$@"'
15018 setopt NO_GLOB_SUBST
15020 case `(set -o) 2>/dev/null` in #(
15032 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15033 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15034 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15035 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15036 # Prefer a ksh shell builtin over an external printf program on Solaris,
15037 # but without wasting forks for bash or zsh.
15038 if test -z "$BASH_VERSION$ZSH_VERSION" \
15039 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15040 as_echo='print -r --'
15041 as_echo_n='print -rn --'
15042 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15043 as_echo='printf %s\n'
15044 as_echo_n='printf %s'
15046 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15047 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15048 as_echo_n='/usr/ucb/echo -n'
15050 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15051 as_echo_n_body='eval
15055 expr "X$arg" : "X\\(.*\\)$as_nl";
15056 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15058 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15060 export as_echo_n_body
15061 as_echo_n='sh -c $as_echo_n_body as_echo'
15063 export as_echo_body
15064 as_echo='sh -c $as_echo_body as_echo'
15067 # The user is always right.
15068 if test "${PATH_SEPARATOR+set}" != set; then
15070 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15071 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15078 # We need space, tab and new line, in precisely that order. Quoting is
15079 # there to prevent editors from complaining about space-tab.
15080 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15081 # splitting by setting IFS to empty value.)
15084 # Find who we are. Look in the path if we contain no directory separator.
15087 *[\\/]* ) as_myself=$0 ;;
15088 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15089 for as_dir in $PATH
15092 test -z "$as_dir" && as_dir=.
15093 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15099 # We did not find ourselves, most probably we were run as `sh COMMAND'
15100 # in which case we are not to be found in the path.
15101 if test "x$as_myself" = x; then
15104 if test ! -f "$as_myself"; then
15105 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15109 # Unset variables that we do not need and which cause bugs (e.g. in
15110 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15111 # suppresses any "Segmentation fault" message there. '((' could
15112 # trigger a bug in pdksh 5.2.14.
15113 for as_var in BASH_ENV ENV MAIL MAILPATH
15114 do eval test x\${$as_var+set} = xset \
15115 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15128 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15131 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15132 # ----------------------------------------
15133 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15134 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15135 # script with STATUS, using 1 if that was 0.
15138 as_status=$1; test $as_status -eq 0 && as_status=1
15140 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15141 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15143 $as_echo "$as_me: error: $2" >&2
15144 as_fn_exit $as_status
15148 # as_fn_set_status STATUS
15149 # -----------------------
15150 # Set $? to STATUS, without forking.
15151 as_fn_set_status ()
15154 } # as_fn_set_status
15156 # as_fn_exit STATUS
15157 # -----------------
15158 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15162 as_fn_set_status $1
15168 # Portably unset VAR.
15171 { eval $1=; unset $1;}
15173 as_unset=as_fn_unset
15174 # as_fn_append VAR VALUE
15175 # ----------------------
15176 # Append the text in VALUE to the end of the definition contained in VAR. Take
15177 # advantage of any shell optimizations that allow amortized linear growth over
15178 # repeated appends, instead of the typical quadratic growth present in naive
15180 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15181 eval 'as_fn_append ()
15192 # as_fn_arith ARG...
15193 # ------------------
15194 # Perform arithmetic evaluation on the ARGs, and store the result in the
15195 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15196 # must be portable across $(()) and expr.
15197 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15198 eval 'as_fn_arith ()
15205 as_val=`expr "$@" || test $? -eq 1`
15210 if expr a : '\(a\)' >/dev/null 2>&1 &&
15211 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15217 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15218 as_basename=basename
15223 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15229 as_me=`$as_basename -- "$0" ||
15230 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15231 X"$0" : 'X\(//\)$' \| \
15232 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15234 sed '/^.*\/\([^/][^/]*\)\/*$/{
15248 # Avoid depending upon Character Ranges.
15249 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15250 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15251 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15252 as_cr_digits='0123456789'
15253 as_cr_alnum=$as_cr_Letters$as_cr_digits
15255 ECHO_C= ECHO_N= ECHO_T=
15256 case `echo -n x` in #(((((
15258 case `echo 'xy\c'` in
15259 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15261 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15268 rm -f conf$$ conf$$.exe conf$$.file
15269 if test -d conf$$.dir; then
15270 rm -f conf$$.dir/conf$$.file
15273 mkdir conf$$.dir 2>/dev/null
15275 if (echo >conf$$.file) 2>/dev/null; then
15276 if ln -s conf$$.file conf$$ 2>/dev/null; then
15278 # ... but there are two gotchas:
15279 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15280 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15281 # In both cases, we have to default to `cp -pR'.
15282 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15284 elif ln conf$$.file conf$$ 2>/dev/null; then
15292 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15293 rmdir conf$$.dir 2>/dev/null
15298 # Create "$as_dir" as a directory, including parents if necessary.
15303 -*) as_dir=./$as_dir;;
15305 test -d "$as_dir" || eval $as_mkdir_p || {
15309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15310 *) as_qdir=$as_dir;;
15312 as_dirs="'$as_qdir' $as_dirs"
15313 as_dir=`$as_dirname -- "$as_dir" ||
15314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15315 X"$as_dir" : 'X\(//\)[^/]' \| \
15316 X"$as_dir" : 'X\(//\)$' \| \
15317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15318 $as_echo X"$as_dir" |
15319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15323 /^X\(\/\/\)[^/].*/{
15336 test -d "$as_dir" && break
15338 test -z "$as_dirs" || eval "mkdir $as_dirs"
15339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15343 if mkdir -p . 2>/dev/null; then
15344 as_mkdir_p='mkdir -p "$as_dir"'
15346 test -d ./-p && rmdir ./-p
15351 # as_fn_executable_p FILE
15352 # -----------------------
15353 # Test if FILE is an executable regular file.
15354 as_fn_executable_p ()
15356 test -f "$1" && test -x "$1"
15357 } # as_fn_executable_p
15358 as_test_x='test -x'
15359 as_executable_p=as_fn_executable_p
15361 # Sed expression to map a string onto a valid CPP name.
15362 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15364 # Sed expression to map a string onto a valid variable name.
15365 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15369 ## ----------------------------------- ##
15370 ## Main body of $CONFIG_STATUS script. ##
15371 ## ----------------------------------- ##
15373 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15376 # Save the log message, to keep $0 and so on meaningful, and to
15377 # report actual input values of CONFIG_FILES etc. instead of their
15378 # values after options handling.
15380 This file was extended by pygobject $as_me 3.15.91, which was
15381 generated by GNU Autoconf 2.69. Invocation command line was
15383 CONFIG_FILES = $CONFIG_FILES
15384 CONFIG_HEADERS = $CONFIG_HEADERS
15385 CONFIG_LINKS = $CONFIG_LINKS
15386 CONFIG_COMMANDS = $CONFIG_COMMANDS
15389 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15394 case $ac_config_files in *"
15395 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15398 case $ac_config_headers in *"
15399 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15404 # Files that config.status was made for.
15405 config_files="$ac_config_files"
15406 config_headers="$ac_config_headers"
15407 config_commands="$ac_config_commands"
15411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15413 \`$as_me' instantiates files and other configuration actions
15414 from templates according to the current configuration. Unless the files
15415 and actions are specified as TAGs, all are instantiated by default.
15417 Usage: $0 [OPTION]... [TAG]...
15419 -h, --help print this help, then exit
15420 -V, --version print version number and configuration settings, then exit
15421 --config print configuration, then exit
15422 -q, --quiet, --silent
15423 do not print progress messages
15424 -d, --debug don't remove temporary files
15425 --recheck update $as_me by reconfiguring in the same conditions
15426 --file=FILE[:TEMPLATE]
15427 instantiate the configuration file FILE
15428 --header=FILE[:TEMPLATE]
15429 instantiate the configuration header FILE
15431 Configuration files:
15434 Configuration headers:
15437 Configuration commands:
15440 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
15441 pygobject home page: <https://wiki.gnome.org/Projects/PyGObject/>."
15444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15445 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15447 pygobject config.status 3.15.91
15448 configured by $0, generated by GNU Autoconf 2.69,
15449 with options \\"\$ac_cs_config\\"
15451 Copyright (C) 2012 Free Software Foundation, Inc.
15452 This config.status script is free software; the Free Software Foundation
15453 gives unlimited permission to copy, distribute and modify it."
15460 test -n "\$AWK" || AWK=awk
15463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15464 # The default lists apply if the user does not specify any file.
15470 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15471 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15475 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15487 # Handling of the options.
15488 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15490 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15491 $as_echo "$ac_cs_version"; exit ;;
15492 --config | --confi | --conf | --con | --co | --c )
15493 $as_echo "$ac_cs_config"; exit ;;
15494 --debug | --debu | --deb | --de | --d | -d )
15496 --file | --fil | --fi | --f )
15499 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15500 '') as_fn_error $? "missing file argument" ;;
15502 as_fn_append CONFIG_FILES " '$ac_optarg'"
15503 ac_need_defaults=false;;
15504 --header | --heade | --head | --hea )
15507 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15509 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15510 ac_need_defaults=false;;
15512 # Conflict between --help and --header
15513 as_fn_error $? "ambiguous option: \`$1'
15514 Try \`$0 --help' for more information.";;
15515 --help | --hel | -h )
15516 $as_echo "$ac_cs_usage"; exit ;;
15517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15518 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15521 # This is an error.
15522 -*) as_fn_error $? "unrecognized option: \`$1'
15523 Try \`$0 --help' for more information." ;;
15525 *) as_fn_append ac_config_targets " $1"
15526 ac_need_defaults=false ;;
15532 ac_configure_extra_args=
15534 if $ac_cs_silent; then
15536 ac_configure_extra_args="$ac_configure_extra_args --silent"
15540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15541 if \$ac_cs_recheck; then
15542 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15544 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15545 CONFIG_SHELL='$SHELL'
15546 export CONFIG_SHELL
15551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15555 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15556 ## Running $as_me. ##
15562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15566 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15569 # The HP-UX ksh and POSIX shell print the target directory to stdout
15570 # if CDPATH is set.
15571 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15573 sed_quote_subst='$sed_quote_subst'
15574 double_quote_subst='$double_quote_subst'
15575 delay_variable_subst='$delay_variable_subst'
15576 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15577 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15578 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15579 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15580 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15581 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15582 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15583 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15584 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15585 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15586 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15587 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15588 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15589 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15590 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15591 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15592 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15593 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15594 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15595 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15596 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15597 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15598 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15599 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15600 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15601 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15602 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15603 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15604 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15605 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15606 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15607 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15608 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15609 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15610 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15611 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15612 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15613 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15614 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15615 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15616 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15617 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15618 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15619 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15620 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15621 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15622 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15623 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15624 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15625 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15626 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15627 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15628 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15629 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15630 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15631 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15632 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15633 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"`'
15634 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15635 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15636 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15637 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15638 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15639 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15640 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15641 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15642 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15643 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15644 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15645 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15646 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15647 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15648 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15649 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15650 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15651 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15652 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15653 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15654 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15655 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15656 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15657 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15658 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15659 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15660 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15661 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15662 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15663 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15664 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15665 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15666 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15667 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15668 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15669 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15670 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15671 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15672 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15673 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15674 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15675 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15676 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15677 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15678 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15679 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15680 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15681 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15682 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15683 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15684 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15685 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15686 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15687 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15688 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15689 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15690 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15691 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15692 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15693 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15694 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15695 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15696 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15697 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15698 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15699 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15700 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15701 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15702 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15703 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15704 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15705 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15706 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15709 LTCFLAGS='$LTCFLAGS'
15710 compiler='$compiler_DEFAULT'
15712 # A function that is used when there is no print builtin or printf.
15713 func_fallback_echo ()
15715 eval 'cat <<_LTECHO_EOF
15720 # Quote evaled strings.
15737 deplibs_check_method \
15741 sharedlib_from_linklib_cmd \
15744 archiver_list_spec \
15750 lt_cv_sys_global_symbol_pipe \
15751 lt_cv_sys_global_symbol_to_cdecl \
15752 lt_cv_sys_global_symbol_to_c_name_address \
15753 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15754 nm_file_list_spec \
15755 lt_prog_compiler_no_builtin_flag \
15756 lt_prog_compiler_pic \
15757 lt_prog_compiler_wl \
15758 lt_prog_compiler_static \
15759 lt_cv_prog_compiler_c_o \
15768 export_dynamic_flag_spec \
15769 whole_archive_flag_spec \
15770 compiler_needs_object \
15772 allow_undefined_flag \
15773 no_undefined_flag \
15774 hardcode_libdir_flag_spec \
15775 hardcode_libdir_separator \
15779 variables_saved_for_relink \
15781 library_names_spec \
15783 install_override_mode \
15787 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15788 *[\\\\\\\`\\"\\\$]*)
15789 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15792 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15797 # Double-quote double-evaled strings.
15798 for var in reload_cmds \
15799 old_postinstall_cmds \
15800 old_postuninstall_cmds \
15802 extract_expsyms_cmds \
15803 old_archive_from_new_cmds \
15804 old_archive_from_expsyms_cmds \
15806 archive_expsym_cmds \
15808 module_expsym_cmds \
15809 export_symbols_cmds \
15813 postuninstall_cmds \
15815 sys_lib_search_path_spec \
15816 sys_lib_dlsearch_path_spec; do
15817 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15818 *[\\\\\\\`\\"\\\$]*)
15819 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15822 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15827 ac_aux_dir='$ac_aux_dir'
15828 xsi_shell='$xsi_shell'
15829 lt_shell_append='$lt_shell_append'
15831 # See if we are running on zsh, and set the options which allow our
15832 # commands through without removal of \ escapes INIT.
15833 if test -n "\${ZSH_VERSION+set}" ; then
15834 setopt NO_GLOB_SUBST
15840 TIMESTAMP='$TIMESTAMP'
15849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15851 # Handling of arguments.
15852 for ac_config_target in $ac_config_targets
15854 case $ac_config_target in
15855 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15856 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15857 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15858 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15859 "pygobject-3.0.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0.pc" ;;
15860 "pygobject-3.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0-uninstalled.pc" ;;
15861 "gi/Makefile") CONFIG_FILES="$CONFIG_FILES gi/Makefile" ;;
15862 "gi/repository/Makefile") CONFIG_FILES="$CONFIG_FILES gi/repository/Makefile" ;;
15863 "gi/overrides/Makefile") CONFIG_FILES="$CONFIG_FILES gi/overrides/Makefile" ;;
15864 "gi/_gobject/Makefile") CONFIG_FILES="$CONFIG_FILES gi/_gobject/Makefile" ;;
15865 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
15866 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15867 "pygtkcompat/Makefile") CONFIG_FILES="$CONFIG_FILES pygtkcompat/Makefile" ;;
15868 "PKG-INFO") CONFIG_FILES="$CONFIG_FILES PKG-INFO" ;;
15870 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15875 # If the user did not use the arguments to specify the items to instantiate,
15876 # then the envvar interface is used. Set only those that are not.
15877 # We use the long form for the default assignment because of an extremely
15878 # bizarre bug on SunOS 4.1.3.
15879 if $ac_need_defaults; then
15880 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15881 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15882 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15885 # Have a temporary directory for convenience. Make it in the build tree
15886 # simply because there is no reason against having it here, and in addition,
15887 # creating and moving files from /tmp can sometimes cause problems.
15888 # Hook for its removal unless debugging.
15889 # Note that there is a small window in which the directory will not be cleaned:
15890 # after its creation but before its name has been assigned to `$tmp'.
15894 trap 'exit_status=$?
15895 : "${ac_tmp:=$tmp}"
15896 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15898 trap 'as_fn_exit 1' 1 2 13 15
15900 # Create a (secure) tmp directory for tmp files.
15903 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15907 tmp=./conf$$-$RANDOM
15908 (umask 077 && mkdir "$tmp")
15909 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15912 # Set up the scripts for CONFIG_FILES section.
15913 # No need to generate them if there are no CONFIG_FILES.
15914 # This happens for instance with `./config.status config.h'.
15915 if test -n "$CONFIG_FILES"; then
15918 ac_cr=`echo X | tr X '\015'`
15919 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15920 # But we know of no other shell where ac_cr would be empty at this
15921 # point, so we can use a bashism as a fallback.
15922 if test "x$ac_cr" = x; then
15923 eval ac_cr=\$\'\\r\'
15925 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15926 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15929 ac_cs_awk_cr=$ac_cr
15932 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15937 echo "cat >conf$$subs.awk <<_ACEOF" &&
15938 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15940 } >conf$$subs.sh ||
15941 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15942 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15944 for ac_last_try in false false false false false :; do
15945 . ./conf$$subs.sh ||
15946 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15948 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15949 if test $ac_delim_n = $ac_delim_num; then
15951 elif $ac_last_try; then
15952 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15954 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15957 rm -f conf$$subs.sh
15959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15960 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15964 s/^/S["/; s/!.*/"]=/
15974 s/\(.\{148\}\)..*/\1/
15976 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15981 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15988 s/\(.\{148\}\)..*/\1/
15990 s/["\\]/\\&/g; s/^/"/; s/$/"/
15994 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15999 ' <conf$$subs.awk | sed '
16004 ' >>$CONFIG_STATUS || ac_write_fail=1
16005 rm -f conf$$subs.awk
16006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16008 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16009 for (key in S) S_is_set[key] = 1
16015 nfields = split(line, field, "@")
16017 len = length(field[1])
16018 for (i = 2; i < nfields; i++) {
16020 keylen = length(key)
16021 if (S_is_set[key]) {
16023 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16024 len += length(value) + length(field[++i])
16035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16036 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16037 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16040 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16041 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16044 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16045 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16046 # trailing colons and then remove the whole line if VPATH becomes empty
16047 # (actually we leave an empty line to preserve line numbers).
16048 if test "x$srcdir" = x.; then
16049 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16068 fi # test -n "$CONFIG_FILES"
16070 # Set up the scripts for CONFIG_HEADERS section.
16071 # No need to generate them if there are no CONFIG_HEADERS.
16072 # This happens for instance with `./config.status Makefile'.
16073 if test -n "$CONFIG_HEADERS"; then
16074 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16078 # Transform confdefs.h into an awk script `defines.awk', embedded as
16079 # here-document in config.status, that substitutes the proper values into
16080 # config.h.in to produce config.h.
16082 # Create a delimiter string that does not exist in confdefs.h, to ease
16083 # handling of long lines.
16085 for ac_last_try in false false :; do
16086 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16087 if test -z "$ac_tt"; then
16089 elif $ac_last_try; then
16090 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16092 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16096 # For the awk script, D is an array of macro values keyed by name,
16097 # likewise P contains macro parameters if any. Preserve backslash
16098 # newline sequences.
16100 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16102 s/.\{148\}/&'"$ac_delim"'/g
16105 s/^[ ]*#[ ]*define[ ][ ]*/ /
16112 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16114 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16118 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16119 D["\1"]=" \3\\\\\\n"\\/p
16121 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16126 s/.\{148\}/&'"$ac_delim"'/g
16131 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16134 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16136 ' <confdefs.h | sed '
16137 s/'"$ac_delim"'/"\\\
16138 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16141 for (key in D) D_is_set[key] = 1
16144 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16146 split(line, arg, " ")
16147 if (arg[1] == "#") {
16151 defundef = substr(arg[1], 2)
16154 split(mac1, mac2, "(") #)
16156 prefix = substr(line, 1, index(line, defundef) - 1)
16157 if (D_is_set[macro]) {
16158 # Preserve the white space surrounding the "#".
16159 print prefix "define", macro P[macro] D[macro]
16162 # Replace #undef with comments. This is necessary, for example,
16163 # in the case of _POSIX_SOURCE, which is predefined and required
16164 # on some systems where configure will not decide to define it.
16165 if (defundef == "undef") {
16166 print "/*", prefix defundef, macro, "*/"
16174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16175 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16176 fi # test -n "$CONFIG_HEADERS"
16179 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16184 :[FHLC]) ac_mode=$ac_tag; continue;;
16186 case $ac_mode$ac_tag in
16188 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16189 :[FH]-) ac_tag=-:-;;
16190 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16207 -) ac_f="$ac_tmp/stdin";;
16208 *) # Look for the file first in the build tree, then in the source tree
16209 # (if the path is not absolute). The absolute path cannot be DOS-style,
16210 # because $ac_f cannot contain `:'.
16214 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16216 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16218 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16219 as_fn_append ac_file_inputs " '$ac_f'"
16222 # Let's still pretend it is `configure' which instantiates (i.e., don't
16223 # use $as_me), people would be surprised to read:
16224 # /* config.h. Generated by config.status. */
16225 configure_input='Generated from '`
16226 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16228 if test x"$ac_file" != x-; then
16229 configure_input="$ac_file. $configure_input"
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16231 $as_echo "$as_me: creating $ac_file" >&6;}
16233 # Neutralize special characters interpreted by sed in replacement strings.
16234 case $configure_input in #(
16235 *\&* | *\|* | *\\* )
16236 ac_sed_conf_input=`$as_echo "$configure_input" |
16237 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16238 *) ac_sed_conf_input=$configure_input;;
16242 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16243 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16248 ac_dir=`$as_dirname -- "$ac_file" ||
16249 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16250 X"$ac_file" : 'X\(//\)[^/]' \| \
16251 X"$ac_file" : 'X\(//\)$' \| \
16252 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16253 $as_echo X"$ac_file" |
16254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16258 /^X\(\/\/\)[^/].*/{
16271 as_dir="$ac_dir"; as_fn_mkdir_p
16275 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16277 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16278 # A ".." for each directory in $ac_dir_suffix.
16279 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16280 case $ac_top_builddir_sub in
16281 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16282 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16285 ac_abs_top_builddir=$ac_pwd
16286 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16287 # for backward compatibility:
16288 ac_top_builddir=$ac_top_build_prefix
16291 .) # We are building in place.
16293 ac_top_srcdir=$ac_top_builddir_sub
16294 ac_abs_top_srcdir=$ac_pwd ;;
16295 [\\/]* | ?:[\\/]* ) # Absolute name.
16296 ac_srcdir=$srcdir$ac_dir_suffix;
16297 ac_top_srcdir=$srcdir
16298 ac_abs_top_srcdir=$srcdir ;;
16299 *) # Relative name.
16300 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16301 ac_top_srcdir=$ac_top_build_prefix$srcdir
16302 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16304 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16314 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16315 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16317 ac_MKDIR_P=$MKDIR_P
16319 [\\/$]* | ?:[\\/]* ) ;;
16320 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16325 # If the template does not know about datarootdir, expand it.
16326 # FIXME: This hack should be removed a few years after 2.60.
16327 ac_datarootdir_hack=; ac_datarootdir_seen=
16338 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16339 *datarootdir*) ac_datarootdir_seen=yes;;
16340 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16342 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16345 ac_datarootdir_hack='
16346 s&@datadir@&$datadir&g
16347 s&@docdir@&$docdir&g
16348 s&@infodir@&$infodir&g
16349 s&@localedir@&$localedir&g
16350 s&@mandir@&$mandir&g
16351 s&\\\${datarootdir}&$datarootdir&g' ;;
16355 # Neutralize VPATH when `$srcdir' = `.'.
16356 # Shell code in configure.ac might set extrasub.
16357 # FIXME: do we really want to maintain this feature?
16358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16359 ac_sed_extra="$ac_vpsub
16362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16364 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16365 s|@configure_input@|$ac_sed_conf_input|;t t
16366 s&@top_builddir@&$ac_top_builddir_sub&;t t
16367 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16368 s&@srcdir@&$ac_srcdir&;t t
16369 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16370 s&@top_srcdir@&$ac_top_srcdir&;t t
16371 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16372 s&@builddir@&$ac_builddir&;t t
16373 s&@abs_builddir@&$ac_abs_builddir&;t t
16374 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16375 s&@INSTALL@&$ac_INSTALL&;t t
16376 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16377 $ac_datarootdir_hack
16379 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16380 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16382 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16383 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16384 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16385 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16387 which seems to be undefined. Please make sure it is defined" >&5
16388 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16389 which seems to be undefined. Please make sure it is defined" >&2;}
16391 rm -f "$ac_tmp/stdin"
16393 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16394 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16396 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16402 if test x"$ac_file" != x-; then
16404 $as_echo "/* $configure_input */" \
16405 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16406 } >"$ac_tmp/config.h" \
16407 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16408 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16410 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16413 mv "$ac_tmp/config.h" "$ac_file" \
16414 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16417 $as_echo "/* $configure_input */" \
16418 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16419 || as_fn_error $? "could not create -" "$LINENO" 5
16421 # Compute "$ac_file"'s index in $config_headers.
16424 for _am_header in $config_headers :; do
16425 case $_am_header in
16426 $_am_arg | $_am_arg:* )
16429 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16432 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16433 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16434 X"$_am_arg" : 'X\(//\)[^/]' \| \
16435 X"$_am_arg" : 'X\(//\)$' \| \
16436 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16437 $as_echo X"$_am_arg" |
16438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16442 /^X\(\/\/\)[^/].*/{
16454 s/.*/./; q'`/stamp-h$_am_stamp_count
16457 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16458 $as_echo "$as_me: executing $ac_file commands" >&6;}
16463 case $ac_file$ac_mode in
16464 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16465 # Older Autoconf quotes --file arguments for eval, but not when files
16466 # are listed without --file. Let's play safe and only enable the eval
16467 # if we detect the quoting.
16468 case $CONFIG_FILES in
16469 *\'*) eval set x "$CONFIG_FILES" ;;
16470 *) set x $CONFIG_FILES ;;
16475 # Strip MF so we end up with the name of the file.
16476 mf=`echo "$mf" | sed -e 's/:.*$//'`
16477 # Check whether this is an Automake generated Makefile or not.
16478 # We used to match only the files named 'Makefile.in', but
16479 # some people rename them; so instead we look at the file content.
16480 # Grep'ing the first line is not enough: some people post-process
16481 # each Makefile.in and add a new line on top of each file to say so.
16482 # Grep'ing the whole file is not good either: AIX grep has a line
16483 # limit of 2048, but all sed's we know have understand at least 4000.
16484 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16485 dirpart=`$as_dirname -- "$mf" ||
16486 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16487 X"$mf" : 'X\(//\)[^/]' \| \
16488 X"$mf" : 'X\(//\)$' \| \
16489 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16495 /^X\(\/\/\)[^/].*/{
16511 # Extract the definition of DEPDIR, am__include, and am__quote
16512 # from the Makefile without running 'make'.
16513 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16514 test -z "$DEPDIR" && continue
16515 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16516 test -z "$am__include" && continue
16517 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16518 # Find all dependency output files, they are included files with
16519 # $(DEPDIR) in their names. We invoke sed twice because it is the
16520 # simplest approach to changing $(DEPDIR) to its actual value in the
16522 for file in `sed -n "
16523 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16524 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16525 # Make sure the directory exists.
16526 test -f "$dirpart/$file" && continue
16527 fdir=`$as_dirname -- "$file" ||
16528 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16529 X"$file" : 'X\(//\)[^/]' \| \
16530 X"$file" : 'X\(//\)$' \| \
16531 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16532 $as_echo X"$file" |
16533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16537 /^X\(\/\/\)[^/].*/{
16550 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16551 # echo "creating $dirpart/$file"
16552 echo '# dummy' > "$dirpart/$file"
16559 # See if we are running on zsh, and set the options which allow our
16560 # commands through without removal of \ escapes.
16561 if test -n "${ZSH_VERSION+set}" ; then
16562 setopt NO_GLOB_SUBST
16565 cfgfile="${ofile}T"
16566 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16569 cat <<_LT_EOF >> "$cfgfile"
16572 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16573 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16574 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16575 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16577 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16578 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16580 # Written by Gordon Matzigkeit, 1996
16582 # This file is part of GNU Libtool.
16584 # GNU Libtool is free software; you can redistribute it and/or
16585 # modify it under the terms of the GNU General Public License as
16586 # published by the Free Software Foundation; either version 2 of
16587 # the License, or (at your option) any later version.
16589 # As a special exception to the GNU General Public License,
16590 # if you distribute this file as part of a program or library that
16591 # is built using GNU Libtool, you may include this file under the
16592 # same distribution terms that you use for the rest of that program.
16594 # GNU Libtool is distributed in the hope that it will be useful,
16595 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16596 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16597 # GNU General Public License for more details.
16599 # You should have received a copy of the GNU General Public License
16600 # along with GNU Libtool; see the file COPYING. If not, a copy
16601 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16602 # obtained by writing to the Free Software Foundation, Inc.,
16603 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16606 # The names of the tagged configurations supported by this script.
16609 # ### BEGIN LIBTOOL CONFIG
16611 # Which release of libtool.m4 was used?
16612 macro_version=$macro_version
16613 macro_revision=$macro_revision
16615 # Assembler program.
16618 # DLL creation program.
16619 DLLTOOL=$lt_DLLTOOL
16621 # Object dumper program.
16622 OBJDUMP=$lt_OBJDUMP
16624 # Whether or not to build static libraries.
16625 build_old_libs=$enable_static
16627 # Whether or not to build shared libraries.
16628 build_libtool_libs=$enable_shared
16630 # What type of objects to build.
16633 # Whether or not to optimize for fast installation.
16634 fast_install=$enable_fast_install
16636 # Shell to use when invoking shell scripts.
16639 # An echo program that protects backslashes.
16642 # The PATH separator for the build system.
16643 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16646 host_alias=$host_alias
16650 # The build system.
16651 build_alias=$build_alias
16655 # A sed program that does not truncate output.
16658 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16659 Xsed="\$SED -e 1s/^X//"
16661 # A grep program that handles long lines.
16667 # A literal string matcher.
16670 # A BSD- or MS-compatible name lister.
16673 # Whether we need soft or hard links.
16676 # What is the maximum length of a command?
16677 max_cmd_len=$max_cmd_len
16679 # Object file suffix (normally "o").
16682 # Executable file suffix (normally "").
16685 # whether the shell understands "unset".
16688 # turn spaces into newlines.
16691 # turn newlines into spaces.
16694 # convert \$build file names to \$host format.
16695 to_host_file_cmd=$lt_cv_to_host_file_cmd
16697 # convert \$build files to toolchain format.
16698 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16700 # Method to check whether dependent libraries are shared objects.
16701 deplibs_check_method=$lt_deplibs_check_method
16703 # Command to use when deplibs_check_method = "file_magic".
16704 file_magic_cmd=$lt_file_magic_cmd
16706 # How to find potential files when deplibs_check_method = "file_magic".
16707 file_magic_glob=$lt_file_magic_glob
16709 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16710 want_nocaseglob=$lt_want_nocaseglob
16712 # Command to associate shared and link libraries.
16713 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16718 # Flags to create an archive.
16719 AR_FLAGS=$lt_AR_FLAGS
16721 # How to feed a file listing to the archiver.
16722 archiver_list_spec=$lt_archiver_list_spec
16724 # A symbol stripping program.
16727 # Commands used to install an old-style archive.
16729 old_postinstall_cmds=$lt_old_postinstall_cmds
16730 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16732 # Whether to use a lock for old archive extraction.
16733 lock_old_archive_extraction=$lock_old_archive_extraction
16738 # LTCC compiler flags.
16739 LTCFLAGS=$lt_CFLAGS
16741 # Take the output of nm and produce a listing of raw symbols and C names.
16742 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16744 # Transform the output of nm in a proper C declaration.
16745 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16747 # Transform the output of nm in a C name address pair.
16748 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16750 # Transform the output of nm in a C name address pair when lib prefix is needed.
16751 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16753 # Specify filename containing input files for \$NM.
16754 nm_file_list_spec=$lt_nm_file_list_spec
16756 # The root where to search for dependent libraries,and in which our libraries should be installed.
16757 lt_sysroot=$lt_sysroot
16759 # The name of the directory that contains temporary libtool files.
16762 # Used to examine libraries when file_magic_cmd begins with "file".
16763 MAGIC_CMD=$MAGIC_CMD
16765 # Must we lock files when doing compilation?
16766 need_locks=$lt_need_locks
16769 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16771 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16772 DSYMUTIL=$lt_DSYMUTIL
16774 # Tool to change global to local symbols on Mac OS X.
16777 # Tool to manipulate fat objects and archives on Mac OS X.
16780 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16783 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16784 OTOOL64=$lt_OTOOL64
16786 # Old archive suffix (normally "a").
16789 # Shared library suffix (normally ".so").
16790 shrext_cmds=$lt_shrext_cmds
16792 # The commands to extract the exported symbol list from a shared archive.
16793 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16795 # Variables whose values should be saved in libtool wrapper scripts and
16796 # restored at link time.
16797 variables_saved_for_relink=$lt_variables_saved_for_relink
16799 # Do we need the "lib" prefix for modules?
16800 need_lib_prefix=$need_lib_prefix
16802 # Do we need a version for libraries?
16803 need_version=$need_version
16805 # Library versioning type.
16806 version_type=$version_type
16808 # Shared library runtime path variable.
16809 runpath_var=$runpath_var
16811 # Shared library path variable.
16812 shlibpath_var=$shlibpath_var
16814 # Is shlibpath searched before the hard-coded library search path?
16815 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16817 # Format of library name prefix.
16818 libname_spec=$lt_libname_spec
16820 # List of archive names. First name is the real one, the rest are links.
16821 # The last name is the one that the linker finds with -lNAME
16822 library_names_spec=$lt_library_names_spec
16824 # The coded name of the library, if different from the real name.
16825 soname_spec=$lt_soname_spec
16827 # Permission mode override for installation of shared libraries.
16828 install_override_mode=$lt_install_override_mode
16830 # Command to use after installation of a shared archive.
16831 postinstall_cmds=$lt_postinstall_cmds
16833 # Command to use after uninstallation of a shared archive.
16834 postuninstall_cmds=$lt_postuninstall_cmds
16836 # Commands used to finish a libtool library installation in a directory.
16837 finish_cmds=$lt_finish_cmds
16839 # As "finish_cmds", except a single script fragment to be evaled but
16841 finish_eval=$lt_finish_eval
16843 # Whether we should hardcode library paths into libraries.
16844 hardcode_into_libs=$hardcode_into_libs
16846 # Compile-time system search path for libraries.
16847 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16849 # Run-time system search path for libraries.
16850 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16852 # Whether dlopen is supported.
16853 dlopen_support=$enable_dlopen
16855 # Whether dlopen of programs is supported.
16856 dlopen_self=$enable_dlopen_self
16858 # Whether dlopen of statically linked programs is supported.
16859 dlopen_self_static=$enable_dlopen_self_static
16861 # Commands to strip libraries.
16862 old_striplib=$lt_old_striplib
16863 striplib=$lt_striplib
16866 # The linker used to build libraries.
16869 # How to create reloadable object files.
16870 reload_flag=$lt_reload_flag
16871 reload_cmds=$lt_reload_cmds
16873 # Commands used to build an old-style archive.
16874 old_archive_cmds=$lt_old_archive_cmds
16876 # A language specific compiler.
16879 # Is the compiler the GNU compiler?
16882 # Compiler flag to turn off builtin functions.
16883 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16885 # Additional compiler flags for building library objects.
16886 pic_flag=$lt_lt_prog_compiler_pic
16888 # How to pass a linker flag through the compiler.
16889 wl=$lt_lt_prog_compiler_wl
16891 # Compiler flag to prevent dynamic linking.
16892 link_static_flag=$lt_lt_prog_compiler_static
16894 # Does compiler simultaneously support -c and -o options?
16895 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16897 # Whether or not to add -lc for building shared libraries.
16898 build_libtool_need_lc=$archive_cmds_need_lc
16900 # Whether or not to disallow shared libs when runtime libs are static.
16901 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16903 # Compiler flag to allow reflexive dlopens.
16904 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16906 # Compiler flag to generate shared objects directly from archives.
16907 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16909 # Whether the compiler copes with passing no objects directly.
16910 compiler_needs_object=$lt_compiler_needs_object
16912 # Create an old-style archive from a shared archive.
16913 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16915 # Create a temporary old-style archive to link instead of a shared archive.
16916 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16918 # Commands used to build a shared archive.
16919 archive_cmds=$lt_archive_cmds
16920 archive_expsym_cmds=$lt_archive_expsym_cmds
16922 # Commands used to build a loadable module if different from building
16923 # a shared archive.
16924 module_cmds=$lt_module_cmds
16925 module_expsym_cmds=$lt_module_expsym_cmds
16927 # Whether we are building with GNU ld or not.
16928 with_gnu_ld=$lt_with_gnu_ld
16930 # Flag that allows shared libraries with undefined symbols to be built.
16931 allow_undefined_flag=$lt_allow_undefined_flag
16933 # Flag that enforces no undefined symbols.
16934 no_undefined_flag=$lt_no_undefined_flag
16936 # Flag to hardcode \$libdir into a binary during linking.
16937 # This must work even if \$libdir does not exist
16938 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16940 # Whether we need a single "-rpath" flag with a separated argument.
16941 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16943 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16944 # DIR into the resulting binary.
16945 hardcode_direct=$hardcode_direct
16947 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16948 # DIR into the resulting binary and the resulting library dependency is
16949 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16950 # library is relocated.
16951 hardcode_direct_absolute=$hardcode_direct_absolute
16953 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16954 # into the resulting binary.
16955 hardcode_minus_L=$hardcode_minus_L
16957 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16958 # into the resulting binary.
16959 hardcode_shlibpath_var=$hardcode_shlibpath_var
16961 # Set to "yes" if building a shared library automatically hardcodes DIR
16962 # into the library and all subsequent libraries and executables linked
16964 hardcode_automatic=$hardcode_automatic
16966 # Set to yes if linker adds runtime paths of dependent libraries
16967 # to runtime path list.
16968 inherit_rpath=$inherit_rpath
16970 # Whether libtool must link a program against all its dependency libraries.
16971 link_all_deplibs=$link_all_deplibs
16973 # Set to "yes" if exported symbols are required.
16974 always_export_symbols=$always_export_symbols
16976 # The commands to list exported symbols.
16977 export_symbols_cmds=$lt_export_symbols_cmds
16979 # Symbols that should not be listed in the preloaded symbols.
16980 exclude_expsyms=$lt_exclude_expsyms
16982 # Symbols that must always be exported.
16983 include_expsyms=$lt_include_expsyms
16985 # Commands necessary for linking programs (against libraries) with templates.
16986 prelink_cmds=$lt_prelink_cmds
16988 # Commands necessary for finishing linking programs.
16989 postlink_cmds=$lt_postlink_cmds
16991 # Specify filename containing input files.
16992 file_list_spec=$lt_file_list_spec
16994 # How to hardcode a shared library path into an executable.
16995 hardcode_action=$hardcode_action
16997 # ### END LIBTOOL CONFIG
17003 cat <<\_LT_EOF >> "$cfgfile"
17004 # AIX sometimes has problems with the GCC collect2 program. For some
17005 # reason, if we set the COLLECT_NAMES environment variable, the problems
17006 # vanish in a puff of smoke.
17007 if test "X${COLLECT_NAMES+set}" != Xset; then
17009 export COLLECT_NAMES
17016 ltmain="$ac_aux_dir/ltmain.sh"
17019 # We use sed instead of cat because bash on DJGPP gets confused if
17020 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17021 # text mode, it properly converts lines to CR/LF. This bash problem
17022 # is reportedly fixed, but why not run on old versions too?
17023 sed '$q' "$ltmain" >> "$cfgfile" \
17024 || (rm -f "$cfgfile"; exit 1)
17026 if test x"$xsi_shell" = xyes; then
17027 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17031 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17032 \ * ) func_dirname_result="${3}" ;;\
17034 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17035 && mv -f "$cfgfile.tmp" "$cfgfile" \
17036 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17037 test 0 -eq $? || _lt_function_replace_fail=:
17040 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17043 \ func_basename_result="${1##*/}"\
17044 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17045 && mv -f "$cfgfile.tmp" "$cfgfile" \
17046 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17047 test 0 -eq $? || _lt_function_replace_fail=:
17050 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17051 func_dirname_and_basename ()\
17054 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17055 \ * ) func_dirname_result="${3}" ;;\
17057 \ func_basename_result="${1##*/}"\
17058 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17059 && mv -f "$cfgfile.tmp" "$cfgfile" \
17060 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17061 test 0 -eq $? || _lt_function_replace_fail=:
17064 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17067 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17068 \ # positional parameters, so assign one to ordinary parameter first.\
17069 \ func_stripname_result=${3}\
17070 \ func_stripname_result=${func_stripname_result#"${1}"}\
17071 \ func_stripname_result=${func_stripname_result%"${2}"}\
17072 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17073 && mv -f "$cfgfile.tmp" "$cfgfile" \
17074 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17075 test 0 -eq $? || _lt_function_replace_fail=:
17078 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17079 func_split_long_opt ()\
17081 \ func_split_long_opt_name=${1%%=*}\
17082 \ func_split_long_opt_arg=${1#*=}\
17083 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17084 && mv -f "$cfgfile.tmp" "$cfgfile" \
17085 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17086 test 0 -eq $? || _lt_function_replace_fail=:
17089 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17090 func_split_short_opt ()\
17092 \ func_split_short_opt_arg=${1#??}\
17093 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17094 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17095 && mv -f "$cfgfile.tmp" "$cfgfile" \
17096 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17097 test 0 -eq $? || _lt_function_replace_fail=:
17100 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17104 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17105 \ *) func_lo2o_result=${1} ;;\
17107 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17108 && mv -f "$cfgfile.tmp" "$cfgfile" \
17109 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17110 test 0 -eq $? || _lt_function_replace_fail=:
17113 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17116 func_xform_result=${1%.*}.lo\
17117 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17118 && mv -f "$cfgfile.tmp" "$cfgfile" \
17119 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17120 test 0 -eq $? || _lt_function_replace_fail=:
17123 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17126 func_arith_result=$(( $* ))\
17127 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17128 && mv -f "$cfgfile.tmp" "$cfgfile" \
17129 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17130 test 0 -eq $? || _lt_function_replace_fail=:
17133 sed -e '/^func_len ()$/,/^} # func_len /c\
17136 func_len_result=${#1}\
17137 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17138 && mv -f "$cfgfile.tmp" "$cfgfile" \
17139 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17140 test 0 -eq $? || _lt_function_replace_fail=:
17144 if test x"$lt_shell_append" = xyes; then
17145 sed -e '/^func_append ()$/,/^} # func_append /c\
17148 eval "${1}+=\\${2}"\
17149 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17150 && mv -f "$cfgfile.tmp" "$cfgfile" \
17151 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17152 test 0 -eq $? || _lt_function_replace_fail=:
17155 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17156 func_append_quoted ()\
17158 \ func_quote_for_eval "${2}"\
17159 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17160 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17161 && mv -f "$cfgfile.tmp" "$cfgfile" \
17162 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17163 test 0 -eq $? || _lt_function_replace_fail=:
17166 # Save a `func_append' function call where possible by direct use of '+='
17167 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17168 && mv -f "$cfgfile.tmp" "$cfgfile" \
17169 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17170 test 0 -eq $? || _lt_function_replace_fail=:
17172 # Save a `func_append' function call even when '+=' is not available
17173 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17174 && mv -f "$cfgfile.tmp" "$cfgfile" \
17175 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17176 test 0 -eq $? || _lt_function_replace_fail=:
17179 if test x"$_lt_function_replace_fail" = x":"; then
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17181 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17185 mv -f "$cfgfile" "$ofile" ||
17186 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17197 ac_clean_files=$ac_clean_files_save
17199 test $ac_write_fail = 0 ||
17200 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17203 # configure is writing to config.log, and then calls config.status.
17204 # config.status does its own redirection, appending to config.log.
17205 # Unfortunately, on DOS this fails, as config.log is still kept open
17206 # by configure, so config.status won't be able to write to it; its
17207 # output is simply discarded. So we exec the FD to /dev/null,
17208 # effectively closing config.log, so it can be properly (re)opened and
17209 # appended to by config.status. When coming back to configure, we
17210 # need to make the FD available again.
17211 if test "$no_create" != yes; then
17213 ac_config_status_args=
17214 test "$silent" = yes &&
17215 ac_config_status_args="$ac_config_status_args --quiet"
17217 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17219 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17220 # would make configure fail if this is the last instruction.
17221 $ac_cs_success || as_fn_exit 1
17223 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17225 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
17232 Using python interpreter: $PYTHON
17233 cairo support: $enable_cairo
17234 thread support: $enable_thread
17235 code coverage support: $enable_code_coverage
17240 Using python interpreter: $PYTHON
17241 cairo support: $enable_cairo
17242 thread support: $enable_thread
17243 code coverage support: $enable_code_coverage