2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for pygobject 3.7.4.
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.7.4'
595 PACKAGE_STRING='pygobject 3.7.4'
596 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject'
597 PACKAGE_URL='https://live.gnome.org/PyGObject/'
599 ac_unique_file="gi/gimodule.c"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
613 # ifdef HAVE_STDLIB_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
636 ac_subst_vars='am__EXEEXT_FALSE
640 GNOME_CODE_COVERAGE_RULES
641 CODE_COVERAGE_LDFLAGS
645 CODE_COVERAGE_ENABLED
646 CODE_COVERAGE_ENABLED_FALSE
647 CODE_COVERAGE_ENABLED_TRUE
648 INTROSPECTION_COMPILER
649 INTROSPECTION_SCANNER
668 GLIB_COMPILE_RESOURCES
751 INSTALL_STRIP_PROGRAM
770 PYGOBJECT_MICRO_VERSION
771 PYGOBJECT_MINOR_VERSION
772 PYGOBJECT_MAJOR_VERSION
801 program_transform_name
814 enable_option_checking
820 enable_dependency_tracking
831 ac_precious_vars='build_alias
856 # Initialize some variables set by options.
858 ac_init_version=false
859 ac_unrecognized_opts=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
870 program_transform_name=s,x,x,
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir='${exec_prefix}/bin'
885 sbindir='${exec_prefix}/sbin'
886 libexecdir='${exec_prefix}/libexec'
887 datarootdir='${prefix}/share'
888 datadir='${datarootdir}'
889 sysconfdir='${prefix}/etc'
890 sharedstatedir='${prefix}/com'
891 localstatedir='${prefix}/var'
892 includedir='${prefix}/include'
893 oldincludedir='/usr/include'
894 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
895 infodir='${datarootdir}/info'
900 libdir='${exec_prefix}/lib'
901 localedir='${datarootdir}/locale'
902 mandir='${datarootdir}/man'
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\$ac_option
916 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 # Accept the important Cygnus configure options, so we can diagnose typos.
923 case $ac_dashdash$ac_option in
927 -bindir | --bindir | --bindi | --bind | --bin | --bi)
929 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
932 -build | --build | --buil | --bui | --bu)
933 ac_prev=build_alias ;;
934 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935 build_alias=$ac_optarg ;;
937 -cache-file | --cache-file | --cache-fil | --cache-fi \
938 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939 ac_prev=cache_file ;;
940 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942 cache_file=$ac_optarg ;;
945 cache_file=config.cache ;;
947 -datadir | --datadir | --datadi | --datad)
949 -datadir=* | --datadir=* | --datadi=* | --datad=*)
950 datadir=$ac_optarg ;;
952 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953 | --dataroo | --dataro | --datar)
954 ac_prev=datarootdir ;;
955 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957 datarootdir=$ac_optarg ;;
959 -disable-* | --disable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error $? "invalid feature name: $ac_useropt"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
973 eval enable_$ac_useropt=no ;;
975 -docdir | --docdir | --docdi | --doc | --do)
977 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
980 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
982 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
985 -enable-* | --enable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 as_fn_error $? "invalid feature name: $ac_useropt"
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
999 eval enable_$ac_useropt=\$ac_optarg ;;
1001 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003 | --exec | --exe | --ex)
1004 ac_prev=exec_prefix ;;
1005 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007 | --exec=* | --exe=* | --ex=*)
1008 exec_prefix=$ac_optarg ;;
1010 -gas | --gas | --ga | --g)
1011 # Obsolete; use --with-gas.
1014 -help | --help | --hel | --he | -h)
1015 ac_init_help=long ;;
1016 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017 ac_init_help=recursive ;;
1018 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019 ac_init_help=short ;;
1021 -host | --host | --hos | --ho)
1022 ac_prev=host_alias ;;
1023 -host=* | --host=* | --hos=* | --ho=*)
1024 host_alias=$ac_optarg ;;
1026 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1028 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1030 htmldir=$ac_optarg ;;
1032 -includedir | --includedir | --includedi | --included | --include \
1033 | --includ | --inclu | --incl | --inc)
1034 ac_prev=includedir ;;
1035 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036 | --includ=* | --inclu=* | --incl=* | --inc=*)
1037 includedir=$ac_optarg ;;
1039 -infodir | --infodir | --infodi | --infod | --info | --inf)
1041 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042 infodir=$ac_optarg ;;
1044 -libdir | --libdir | --libdi | --libd)
1046 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047 libdir=$ac_optarg ;;
1049 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050 | --libexe | --libex | --libe)
1051 ac_prev=libexecdir ;;
1052 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053 | --libexe=* | --libex=* | --libe=*)
1054 libexecdir=$ac_optarg ;;
1056 -localedir | --localedir | --localedi | --localed | --locale)
1057 ac_prev=localedir ;;
1058 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059 localedir=$ac_optarg ;;
1061 -localstatedir | --localstatedir | --localstatedi | --localstated \
1062 | --localstate | --localstat | --localsta | --localst | --locals)
1063 ac_prev=localstatedir ;;
1064 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066 localstatedir=$ac_optarg ;;
1068 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1070 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071 mandir=$ac_optarg ;;
1073 -nfp | --nfp | --nf)
1074 # Obsolete; use --without-fp.
1077 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078 | --no-cr | --no-c | -n)
1081 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1085 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087 | --oldin | --oldi | --old | --ol | --o)
1088 ac_prev=oldincludedir ;;
1089 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092 oldincludedir=$ac_optarg ;;
1094 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1096 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097 prefix=$ac_optarg ;;
1099 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100 | --program-pre | --program-pr | --program-p)
1101 ac_prev=program_prefix ;;
1102 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104 program_prefix=$ac_optarg ;;
1106 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107 | --program-suf | --program-su | --program-s)
1108 ac_prev=program_suffix ;;
1109 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111 program_suffix=$ac_optarg ;;
1113 -program-transform-name | --program-transform-name \
1114 | --program-transform-nam | --program-transform-na \
1115 | --program-transform-n | --program-transform- \
1116 | --program-transform | --program-transfor \
1117 | --program-transfo | --program-transf \
1118 | --program-trans | --program-tran \
1119 | --progr-tra | --program-tr | --program-t)
1120 ac_prev=program_transform_name ;;
1121 -program-transform-name=* | --program-transform-name=* \
1122 | --program-transform-nam=* | --program-transform-na=* \
1123 | --program-transform-n=* | --program-transform-=* \
1124 | --program-transform=* | --program-transfor=* \
1125 | --program-transfo=* | --program-transf=* \
1126 | --program-trans=* | --program-tran=* \
1127 | --progr-tra=* | --program-tr=* | --program-t=*)
1128 program_transform_name=$ac_optarg ;;
1130 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1132 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133 pdfdir=$ac_optarg ;;
1135 -psdir | --psdir | --psdi | --psd | --ps)
1137 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141 | -silent | --silent | --silen | --sile | --sil)
1144 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1146 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1148 sbindir=$ac_optarg ;;
1150 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1151 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1152 | --sharedst | --shareds | --shared | --share | --shar \
1154 ac_prev=sharedstatedir ;;
1155 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1156 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1157 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1159 sharedstatedir=$ac_optarg ;;
1161 -site | --site | --sit)
1163 -site=* | --site=* | --sit=*)
1166 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1168 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1169 srcdir=$ac_optarg ;;
1171 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1172 | --syscon | --sysco | --sysc | --sys | --sy)
1173 ac_prev=sysconfdir ;;
1174 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1175 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1176 sysconfdir=$ac_optarg ;;
1178 -target | --target | --targe | --targ | --tar | --ta | --t)
1179 ac_prev=target_alias ;;
1180 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1181 target_alias=$ac_optarg ;;
1183 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1186 -version | --version | --versio | --versi | --vers | -V)
1187 ac_init_version=: ;;
1190 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error $? "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1203 eval with_$ac_useropt=\$ac_optarg ;;
1205 -without-* | --without-*)
1206 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209 as_fn_error $? "invalid package name: $ac_useropt"
1210 ac_useropt_orig=$ac_useropt
1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1217 ac_unrecognized_sep=', ';;
1219 eval with_$ac_useropt=no ;;
1222 # Obsolete; use --with-x.
1225 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1226 | --x-incl | --x-inc | --x-in | --x-i)
1227 ac_prev=x_includes ;;
1228 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1229 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1230 x_includes=$ac_optarg ;;
1232 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1233 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1234 ac_prev=x_libraries ;;
1235 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1236 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1237 x_libraries=$ac_optarg ;;
1239 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1240 Try \`$0 --help' for more information"
1244 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1245 # Reject names that are not valid shell variable names.
1246 case $ac_envvar in #(
1247 '' | [0-9]* | *[!_$as_cr_alnum]* )
1248 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1250 eval $ac_envvar=\$ac_optarg
1251 export $ac_envvar ;;
1254 # FIXME: should be removed in autoconf 3.0.
1255 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1256 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1258 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1264 if test -n "$ac_prev"; then
1265 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1266 as_fn_error $? "missing argument to $ac_option"
1269 if test -n "$ac_unrecognized_opts"; then
1270 case $enable_option_checking in
1272 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1273 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277 # Check all directory arguments for consistency.
1278 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279 datadir sysconfdir sharedstatedir localstatedir includedir \
1280 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281 libdir localedir mandir
1283 eval ac_val=\$$ac_var
1284 # Remove trailing slashes.
1287 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1288 eval $ac_var=\$ac_val;;
1290 # Be sure to have absolute directory names.
1292 [\\/$]* | ?:[\\/]* ) continue;;
1293 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1298 # There might be people who depend on the old broken behavior: `$host'
1299 # used to hold the argument of --host etc.
1300 # FIXME: To remove some day.
1303 target=$target_alias
1305 # FIXME: To remove some day.
1306 if test "x$host_alias" != x; then
1307 if test "x$build_alias" = x; then
1308 cross_compiling=maybe
1309 elif test "x$build_alias" != "x$host_alias"; then
1315 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317 test "$silent" = yes && exec 6>/dev/null
1320 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di=`ls -di .` &&
1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323 as_fn_error $? "working directory cannot be determined"
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325 as_fn_error $? "pwd does not report name of working directory"
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$as_myself" ||
1333 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$as_myself" : 'X\(//\)[^/]' \| \
1335 X"$as_myself" : 'X\(//\)$' \| \
1336 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1337 $as_echo X"$as_myself" |
1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1360 ac_srcdir_defaulted=no
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1366 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 # Report the --help message.
1390 if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1394 \`configure' configures pygobject 3.7.4 to adapt to many kinds of systems.
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE. See below for descriptions of some of the useful variables.
1401 Defaults for the options are specified in brackets.
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking ...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414 Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1425 For better control, use the options below.
1427 Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/pygobject]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462 if test -n "$ac_init_help"; then
1463 case $ac_init_help in
1464 short | recursive ) echo "Configuration of pygobject 3.7.4:";;
1469 --disable-option-checking ignore unrecognized --enable/--with options
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1472 --enable-silent-rules less verbose build output (undo: `make V=1')
1473 --disable-silent-rules verbose build output (undo: `make V=0')
1474 --enable-static[=PKGS] build static libraries [default=no]
1475 --enable-shared[=PKGS] build shared libraries [default=yes]
1476 --enable-fast-install[=PKGS]
1477 optimize for fast installation [default=yes]
1478 --disable-dependency-tracking speeds up one-time build
1479 --enable-dependency-tracking do not reject slow dependency extractors
1480 --disable-libtool-lock avoid locking (might break parallel builds)
1481 --disable-thread Disable pygobject threading support
1482 --disable-glibtest do not try to compile and run a test GLIB program
1483 --enable-cairo Enable Cairo bindings using introspection
1485 --enable-code-coverage Whether to enable code coverage support
1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1490 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1492 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1493 --with-sysroot=DIR Search for dependent libraries within DIR
1494 (or the compiler's sysroot if not specified).
1495 --with-python=PATH Path to Python interpreter; searches $PATH if only a
1496 program name is given; if not given, searches for a
1497 few standard names such as "python3" or "python2"
1498 --without-ffi Disable libffi support
1500 Some influential environment variables:
1501 CC C compiler command
1502 CFLAGS C compiler flags
1503 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1504 nonstandard directory <lib dir>
1505 LIBS libraries to pass to the linker, e.g. -l<library>
1506 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1507 you have headers in a nonstandard directory <include dir>
1509 PYTHON the Python interpreter
1510 PKG_CONFIG path to pkg-config utility
1512 directories to add to pkg-config's search path
1514 path overriding pkg-config's built-in search path
1515 FFI_CFLAGS C compiler flags for FFI, overriding pkg-config
1516 FFI_LIBS linker flags for FFI, overriding pkg-config
1517 GIO_CFLAGS C compiler flags for GIO, overriding pkg-config
1518 GIO_LIBS linker flags for GIO, overriding pkg-config
1519 GI_CFLAGS C compiler flags for GI, overriding pkg-config
1520 GI_LIBS linker flags for GI, overriding pkg-config
1522 C compiler flags for CAIRO, overriding pkg-config
1523 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1525 C compiler flags for PYCAIRO, overriding pkg-config
1527 linker flags for PYCAIRO, overriding pkg-config
1529 Use these variables to override the choices made by `configure' or to help
1530 it to find libraries and programs with nonstandard names/locations.
1532 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
1533 pygobject home page: <https://live.gnome.org/PyGObject/>.
1538 if test "$ac_init_help" = "recursive"; then
1539 # If there are subdirs, report their specific --help.
1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541 test -d "$ac_dir" ||
1542 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1550 # A ".." for each directory in $ac_dir_suffix.
1551 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1552 case $ac_top_builddir_sub in
1553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557 ac_abs_top_builddir=$ac_pwd
1558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559 # for backward compatibility:
1560 ac_top_builddir=$ac_top_build_prefix
1563 .) # We are building in place.
1565 ac_top_srcdir=$ac_top_builddir_sub
1566 ac_abs_top_srcdir=$ac_pwd ;;
1567 [\\/]* | ?:[\\/]* ) # Absolute name.
1568 ac_srcdir=$srcdir$ac_dir_suffix;
1569 ac_top_srcdir=$srcdir
1570 ac_abs_top_srcdir=$srcdir ;;
1572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573 ac_top_srcdir=$ac_top_build_prefix$srcdir
1574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578 cd "$ac_dir" || { ac_status=$?; continue; }
1579 # Check for guested configure.
1580 if test -f "$ac_srcdir/configure.gnu"; then
1582 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583 elif test -f "$ac_srcdir/configure"; then
1585 $SHELL "$ac_srcdir/configure" --help=recursive
1587 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 cd "$ac_pwd" || { ac_status=$?; break; }
1593 test -n "$ac_init_help" && exit $ac_status
1594 if $ac_init_version; then
1596 pygobject configure 3.7.4
1597 generated by GNU Autoconf 2.69
1599 Copyright (C) 2012 Free Software Foundation, Inc.
1600 This configure script is free software; the Free Software Foundation
1601 gives unlimited permission to copy, distribute and modify it.
1606 ## ------------------------ ##
1607 ## Autoconf initialization. ##
1608 ## ------------------------ ##
1610 # ac_fn_c_try_compile LINENO
1611 # --------------------------
1612 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_compile ()
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 rm -f conftest.$ac_objext
1617 if { { ac_try="$ac_compile"
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_compile") 2>conftest.err
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } && {
1633 test -z "$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1635 } && test -s conftest.$ac_objext; then :
1638 $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644 as_fn_set_status $ac_retval
1646 } # ac_fn_c_try_compile
1648 # ac_fn_c_try_link LINENO
1649 # -----------------------
1650 # Try to link conftest.$ac_ext, and return whether this succeeded.
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 rm -f conftest.$ac_objext conftest$ac_exeext
1655 if { { ac_try="$ac_link"
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_link") 2>conftest.err
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } && {
1671 test -z "$ac_c_werror_flag" ||
1672 test ! -s conftest.err
1673 } && test -s conftest$ac_exeext && {
1674 test "$cross_compiling" = yes ||
1675 test -x conftest$ac_exeext
1679 $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1684 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1685 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1686 # interfere with the next link command; also delete a directory that is
1687 # left behind by Apple's compiler. We do this before executing the actions.
1688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1692 } # ac_fn_c_try_link
1694 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1695 # -------------------------------------------------------
1696 # Tests whether HEADER exists and can be compiled using the include files in
1697 # INCLUDES, setting the cache variable VAR accordingly.
1698 ac_fn_c_check_header_compile ()
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702 $as_echo_n "checking for $2... " >&6; }
1703 if eval \${$3+:} false; then :
1704 $as_echo_n "(cached) " >&6
1706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707 /* end confdefs.h. */
1711 if ac_fn_c_try_compile "$LINENO"; then :
1716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720 $as_echo "$ac_res" >&6; }
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 } # ac_fn_c_check_header_compile
1725 # ac_fn_c_try_cpp LINENO
1726 # ----------------------
1727 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 if { { ac_try="$ac_cpp conftest.$ac_ext"
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } > conftest.i && {
1747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status $ac_retval
1762 # ac_fn_c_try_run LINENO
1763 # ----------------------
1764 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1765 # that executables *can* be run.
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if { { ac_try="$ac_link"
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>&5
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1780 { { case "(($ac_try" in
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_try") 2>&5
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; }; }; then :
1792 $as_echo "$as_me: program exited with status $ac_status" >&5
1793 $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1796 ac_retval=$ac_status
1798 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 as_fn_set_status $ac_retval
1804 # ac_fn_c_check_func LINENO FUNC VAR
1805 # ----------------------------------
1806 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1807 ac_fn_c_check_func ()
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 $as_echo_n "checking for $2... " >&6; }
1812 if eval \${$3+:} false; then :
1813 $as_echo_n "(cached) " >&6
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1817 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1819 #define $2 innocuous_$2
1821 /* System header to define __stub macros and hopefully few prototypes,
1822 which can conflict with char $2 (); below.
1823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1824 <limits.h> exists even on freestanding compilers. */
1827 # include <limits.h>
1829 # include <assert.h>
1834 /* Override any GCC internal prototype to avoid an error.
1835 Use char because int might match the return type of a GCC
1836 builtin and then its argument prototype would still apply. */
1841 /* The GNU C library defines this for functions which it implements
1842 to always fail with ENOSYS. Some functions are actually named
1843 something starting with __ and the normal name is an alias. */
1844 #if defined __stub_$2 || defined __stub___$2
1856 if ac_fn_c_try_link "$LINENO"; then :
1861 rm -f core conftest.err conftest.$ac_objext \
1862 conftest$ac_exeext conftest.$ac_ext
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 } # ac_fn_c_check_func
1870 cat >config.log <<_ACEOF
1871 This file contains any messages produced by compilers while
1872 running configure, to aid debugging if configure makes a mistake.
1874 It was created by pygobject $as_me 3.7.4, which was
1875 generated by GNU Autoconf 2.69. Invocation command line was
1887 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1888 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1889 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1890 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1891 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1893 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1894 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1896 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1897 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1898 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1899 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1900 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1901 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1902 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910 test -z "$as_dir" && as_dir=.
1911 $as_echo "PATH: $as_dir"
1927 # Keep a trace of the command line.
1928 # Strip out --no-create and --no-recursion so they do not pile up.
1929 # Strip out --silent because we don't want to record it for future runs.
1930 # Also quote any args containing shell meta-characters.
1931 # Make two passes to allow for proper duplicate-argument suppression.
1935 ac_must_keep_next=false
1941 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1943 | -silent | --silent | --silen | --sile | --sil)
1946 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1949 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1951 as_fn_append ac_configure_args1 " '$ac_arg'"
1952 if test $ac_must_keep_next = true; then
1953 ac_must_keep_next=false # Got value, back to normal.
1956 *=* | --config-cache | -C | -disable-* | --disable-* \
1957 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1958 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1959 | -with-* | --with-* | -without-* | --without-* | --x)
1960 case "$ac_configure_args0 " in
1961 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1964 -* ) ac_must_keep_next=true ;;
1967 as_fn_append ac_configure_args " '$ac_arg'"
1972 { ac_configure_args0=; unset ac_configure_args0;}
1973 { ac_configure_args1=; unset ac_configure_args1;}
1975 # When interrupted or exit'd, cleanup temporary files, and complete
1976 # config.log. We remove comments because anyway the quotes in there
1977 # would cause problems or look ugly.
1978 # WARNING: Use '\'' to represent an apostrophe within the trap.
1979 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1980 trap 'exit_status=$?
1981 # Save into config.log some information that might help in debugging.
1985 $as_echo "## ---------------- ##
1986 ## Cache variables. ##
1987 ## ---------------- ##"
1989 # The following way of writing the cache mishandles newlines in values,
1991 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1992 eval ac_val=\$$ac_var
1996 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1997 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2000 _ | IFS | as_nl) ;; #(
2001 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2002 *) { eval $ac_var=; unset $ac_var;} ;;
2007 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2008 *${as_nl}ac_space=\ *)
2010 "s/'\''/'\''\\\\'\'''\''/g;
2011 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2014 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2021 $as_echo "## ----------------- ##
2022 ## Output variables. ##
2023 ## ----------------- ##"
2025 for ac_var in $ac_subst_vars
2027 eval ac_val=\$$ac_var
2029 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031 $as_echo "$ac_var='\''$ac_val'\''"
2035 if test -n "$ac_subst_files"; then
2036 $as_echo "## ------------------- ##
2037 ## File substitutions. ##
2038 ## ------------------- ##"
2040 for ac_var in $ac_subst_files
2042 eval ac_val=\$$ac_var
2044 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046 $as_echo "$ac_var='\''$ac_val'\''"
2051 if test -s confdefs.h; then
2052 $as_echo "## ----------- ##
2059 test "$ac_signal" != 0 &&
2060 $as_echo "$as_me: caught signal $ac_signal"
2061 $as_echo "$as_me: exit $exit_status"
2063 rm -f core *.core core.conftest.* &&
2064 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2067 for ac_signal in 1 2 13 15; do
2068 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2072 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2073 rm -f -r conftest* confdefs.h
2075 $as_echo "/* confdefs.h */" > confdefs.h
2077 # Predefined preprocessor variables.
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_NAME "$PACKAGE_NAME"
2083 cat >>confdefs.h <<_ACEOF
2084 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2087 cat >>confdefs.h <<_ACEOF
2088 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_STRING "$PACKAGE_STRING"
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_URL "$PACKAGE_URL"
2104 # Let the site file select an alternate cache file if it wants to.
2105 # Prefer an explicitly selected file to automatically selected ones.
2108 if test -n "$CONFIG_SITE"; then
2109 # We do not want a PATH search for config.site.
2110 case $CONFIG_SITE in #((
2111 -*) ac_site_file1=./$CONFIG_SITE;;
2112 */*) ac_site_file1=$CONFIG_SITE;;
2113 *) ac_site_file1=./$CONFIG_SITE;;
2115 elif test "x$prefix" != xNONE; then
2116 ac_site_file1=$prefix/share/config.site
2117 ac_site_file2=$prefix/etc/config.site
2119 ac_site_file1=$ac_default_prefix/share/config.site
2120 ac_site_file2=$ac_default_prefix/etc/config.site
2122 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2124 test "x$ac_site_file" = xNONE && continue
2125 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2127 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2128 sed 's/^/| /' "$ac_site_file" >&5
2130 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2132 as_fn_error $? "failed to load site script $ac_site_file
2133 See \`config.log' for more details" "$LINENO" 5; }
2137 if test -r "$cache_file"; then
2138 # Some versions of bash will fail to source /dev/null (special files
2139 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2140 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2142 $as_echo "$as_me: loading cache $cache_file" >&6;}
2144 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2145 *) . "./$cache_file";;
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2150 $as_echo "$as_me: creating cache $cache_file" >&6;}
2154 # Check that the precious variables saved in the cache have kept the same
2156 ac_cache_corrupted=false
2157 for ac_var in $ac_precious_vars; do
2158 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2159 eval ac_new_set=\$ac_env_${ac_var}_set
2160 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2161 eval ac_new_val=\$ac_env_${ac_var}_value
2162 case $ac_old_set,$ac_new_set in
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2165 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2166 ac_cache_corrupted=: ;;
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2169 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2170 ac_cache_corrupted=: ;;
2173 if test "x$ac_old_val" != "x$ac_new_val"; then
2174 # differences in whitespace do not lead to failure.
2175 ac_old_val_w=`echo x $ac_old_val`
2176 ac_new_val_w=`echo x $ac_new_val`
2177 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2179 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2180 ac_cache_corrupted=:
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2183 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2184 eval $ac_var=\$ac_old_val
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2187 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2189 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2192 # Pass precious variables to config.status.
2193 if test "$ac_new_set" = set; then
2195 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2196 *) ac_arg=$ac_var=$ac_new_val ;;
2198 case " $ac_configure_args " in
2199 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2200 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2204 if $ac_cache_corrupted; then
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2208 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2209 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2211 ## -------------------- ##
2212 ## Main body of script. ##
2213 ## -------------------- ##
2216 ac_cpp='$CPP $CPPFLAGS'
2217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2222 ACLOCAL_AMFLAGS="-I m4 -I ."
2228 $as_echo "#define PYGOBJECT_MAJOR_VERSION 3" >>confdefs.h
2230 PYGOBJECT_MAJOR_VERSION=3
2233 $as_echo "#define PYGOBJECT_MINOR_VERSION 7" >>confdefs.h
2235 PYGOBJECT_MINOR_VERSION=7
2238 $as_echo "#define PYGOBJECT_MICRO_VERSION 4" >>confdefs.h
2240 PYGOBJECT_MICRO_VERSION=4
2243 ac_config_headers="$ac_config_headers config.h"
2245 # Check whether --enable-silent-rules was given.
2246 if test "${enable_silent_rules+set}" = set; then :
2247 enableval=$enable_silent_rules;
2250 case $enable_silent_rules in
2251 yes) AM_DEFAULT_VERBOSITY=0;;
2252 no) AM_DEFAULT_VERBOSITY=1;;
2253 *) AM_DEFAULT_VERBOSITY=0;;
2255 am_make=${MAKE-make}
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2257 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2258 if ${am_cv_make_support_nested_variables+:} false; then :
2259 $as_echo_n "(cached) " >&6
2261 if $as_echo 'TRUE=$(BAR$(V))
2267 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2268 am_cv_make_support_nested_variables=yes
2270 am_cv_make_support_nested_variables=no
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2274 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2275 if test $am_cv_make_support_nested_variables = yes; then
2277 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2279 AM_V=$AM_DEFAULT_VERBOSITY
2280 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2284 am__api_version='1.11'
2287 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2288 if test -f "$ac_dir/install-sh"; then
2290 ac_install_sh="$ac_aux_dir/install-sh -c"
2292 elif test -f "$ac_dir/install.sh"; then
2294 ac_install_sh="$ac_aux_dir/install.sh -c"
2296 elif test -f "$ac_dir/shtool"; then
2298 ac_install_sh="$ac_aux_dir/shtool install -c"
2302 if test -z "$ac_aux_dir"; then
2303 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2306 # These three variables are undocumented and unsupported,
2307 # and are intended to be withdrawn in a future Autoconf release.
2308 # They can cause serious problems if a builder's source tree is in a directory
2309 # whose full name contains unusual characters.
2310 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2311 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2312 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2315 # Find a good install program. We prefer a C program (faster),
2316 # so one script is as good as another. But avoid the broken or
2317 # incompatible versions:
2318 # SysV /etc/install, /usr/sbin/install
2319 # SunOS /usr/etc/install
2320 # IRIX /sbin/install
2322 # AmigaOS /C/install, which installs bootblocks on floppy discs
2323 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2324 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2325 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2326 # OS/2's system install, which has a completely different semantic
2327 # ./install, which can be erroneously created by make from ./install.sh.
2328 # Reject install programs that cannot install multiple files.
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2330 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2331 if test -z "$INSTALL"; then
2332 if ${ac_cv_path_install+:} false; then :
2333 $as_echo_n "(cached) " >&6
2335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339 test -z "$as_dir" && as_dir=.
2340 # Account for people who put trailing slashes in PATH elements.
2341 case $as_dir/ in #((
2342 ./ | .// | /[cC]/* | \
2343 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2344 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2347 # OSF1 and SCO ODT 3.0 have their own names for install.
2348 # Don't use installbsd from OSF since it installs stuff as root
2350 for ac_prog in ginstall scoinst install; do
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2353 if test $ac_prog = install &&
2354 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2355 # AIX install. It has an incompatible calling convention.
2357 elif test $ac_prog = install &&
2358 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2359 # program-specific install script used by HP pwplus--don't use.
2362 rm -rf conftest.one conftest.two conftest.dir
2363 echo one > conftest.one
2364 echo two > conftest.two
2366 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2367 test -s conftest.one && test -s conftest.two &&
2368 test -s conftest.dir/conftest.one &&
2369 test -s conftest.dir/conftest.two
2371 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2384 rm -rf conftest.one conftest.two conftest.dir
2387 if test "${ac_cv_path_install+set}" = set; then
2388 INSTALL=$ac_cv_path_install
2390 # As a last resort, use the slow shell script. Don't cache a
2391 # value for INSTALL within a source directory, because that will
2392 # break other packages using the cache if that directory is
2393 # removed, or if the value is a relative name.
2394 INSTALL=$ac_install_sh
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2398 $as_echo "$INSTALL" >&6; }
2400 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2401 # It thinks the first close brace ends the variable substitution.
2402 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2404 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2406 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2409 $as_echo_n "checking whether build environment is sane... " >&6; }
2412 echo timestamp > conftest.file
2413 # Reject unsafe characters in $srcdir or the absolute working directory
2414 # name. Accept space and tab only in the latter.
2418 *[\\\"\#\$\&\'\`$am_lf]*)
2419 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2422 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2423 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2426 # Do `set' in a subshell so we don't clobber the current shell's
2427 # arguments. Must try -L first in case configure is actually a
2428 # symlink; some systems play weird games with the mod time of symlinks
2429 # (eg FreeBSD returns the mod time of the symlink's containing
2432 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2433 if test "$*" = "X"; then
2435 set X `ls -t "$srcdir/configure" conftest.file`
2438 if test "$*" != "X $srcdir/configure conftest.file" \
2439 && test "$*" != "X conftest.file $srcdir/configure"; then
2441 # If neither matched, then we have a broken ls. This can happen
2442 # if, for instance, CONFIG_SHELL is bash and it inherits a
2443 # broken ls alias from the environment. This has actually
2444 # happened. Such a system could not be considered "sane".
2445 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2446 alias in your environment" "$LINENO" 5
2449 test "$2" = conftest.file
2455 as_fn_error $? "newly created file is older than distributed files!
2456 Check your system clock" "$LINENO" 5
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2459 $as_echo "yes" >&6; }
2460 test "$program_prefix" != NONE &&
2461 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2462 # Use a double $ so make ignores it.
2463 test "$program_suffix" != NONE &&
2464 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2465 # Double any \ or $.
2466 # By default was `s,x,x', remove it if useless.
2467 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2468 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2470 # expand $ac_aux_dir to an absolute path
2471 am_aux_dir=`cd $ac_aux_dir && pwd`
2473 if test x"${MISSING+set}" != xset; then
2476 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2478 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2481 # Use eval to expand $SHELL
2482 if eval "$MISSING --run true"; then
2483 am_missing_run="$MISSING --run "
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2487 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2490 if test x"${install_sh}" != xset; then
2493 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2495 install_sh="\${SHELL} $am_aux_dir/install-sh"
2499 # Installed binaries are usually stripped using `strip' when the user
2500 # run `make install-strip'. However `strip' might not be the right
2501 # tool to use in cross-compilation environments, therefore Automake
2502 # will honor the `STRIP' environment variable to overrule this program.
2503 if test "$cross_compiling" != no; then
2504 if test -n "$ac_tool_prefix"; then
2505 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2506 set dummy ${ac_tool_prefix}strip; ac_word=$2
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2508 $as_echo_n "checking for $ac_word... " >&6; }
2509 if ${ac_cv_prog_STRIP+:} false; then :
2510 $as_echo_n "(cached) " >&6
2512 if test -n "$STRIP"; then
2513 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 test -z "$as_dir" && as_dir=.
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2522 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 STRIP=$ac_cv_prog_STRIP
2533 if test -n "$STRIP"; then
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2535 $as_echo "$STRIP" >&6; }
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2538 $as_echo "no" >&6; }
2543 if test -z "$ac_cv_prog_STRIP"; then
2545 # Extract the first word of "strip", so it can be a program name with args.
2546 set dummy strip; ac_word=$2
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2548 $as_echo_n "checking for $ac_word... " >&6; }
2549 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2550 $as_echo_n "(cached) " >&6
2552 if test -n "$ac_ct_STRIP"; then
2553 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 test -z "$as_dir" && as_dir=.
2560 for ac_exec_ext in '' $ac_executable_extensions; do
2561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2562 ac_cv_prog_ac_ct_STRIP="strip"
2563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2572 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2573 if test -n "$ac_ct_STRIP"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2575 $as_echo "$ac_ct_STRIP" >&6; }
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2578 $as_echo "no" >&6; }
2581 if test "x$ac_ct_STRIP" = x; then
2584 case $cross_compiling:$ac_tool_warned in
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2588 ac_tool_warned=yes ;;
2593 STRIP="$ac_cv_prog_STRIP"
2597 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2600 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2601 if test -z "$MKDIR_P"; then
2602 if ${ac_cv_path_mkdir+:} false; then :
2603 $as_echo_n "(cached) " >&6
2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2609 test -z "$as_dir" && as_dir=.
2610 for ac_prog in mkdir gmkdir; do
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2613 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2614 'mkdir (GNU coreutils) '* | \
2615 'mkdir (coreutils) '* | \
2616 'mkdir (fileutils) '4.1*)
2617 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2627 test -d ./--version && rmdir ./--version
2628 if test "${ac_cv_path_mkdir+set}" = set; then
2629 MKDIR_P="$ac_cv_path_mkdir -p"
2631 # As a last resort, use the slow shell script. Don't cache a
2632 # value for MKDIR_P within a source directory, because that will
2633 # break other packages using the cache if that directory is
2634 # removed, or if the value is a relative name.
2635 MKDIR_P="$ac_install_sh -d"
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2639 $as_echo "$MKDIR_P" >&6; }
2643 [\\/$]* | ?:[\\/]*) ;;
2644 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2647 for ac_prog in gawk mawk nawk awk
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650 set dummy $ac_prog; ac_word=$2
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if ${ac_cv_prog_AWK+:} false; then :
2654 $as_echo_n "(cached) " >&6
2656 if test -n "$AWK"; then
2657 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2666 ac_cv_prog_AWK="$ac_prog"
2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 if test -n "$AWK"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2679 $as_echo "$AWK" >&6; }
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 $as_echo "no" >&6; }
2686 test -n "$AWK" && break
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2690 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2692 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2693 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2694 $as_echo_n "(cached) " >&6
2696 cat >conftest.make <<\_ACEOF
2699 @echo '@@@%%%=$(MAKE)=@@@%%%'
2701 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2702 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2704 eval ac_cv_prog_make_${ac_make}_set=yes;;
2706 eval ac_cv_prog_make_${ac_make}_set=no;;
2710 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2712 $as_echo "yes" >&6; }
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2717 SET_MAKE="MAKE=${MAKE-make}"
2720 rm -rf .tst 2>/dev/null
2721 mkdir .tst 2>/dev/null
2722 if test -d .tst; then
2727 rmdir .tst 2>/dev/null
2729 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2730 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2731 # is not polluted with repeated "-I."
2732 am__isrc=' -I$(srcdir)'
2733 # test to see if srcdir already configured
2734 if test -f $srcdir/config.status; then
2735 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2739 # test whether we have cygpath
2740 if test -z "$CYGPATH_W"; then
2741 if (cygpath --version) >/dev/null 2>/dev/null; then
2742 CYGPATH_W='cygpath -w'
2749 # Define the identity of the package.
2754 cat >>confdefs.h <<_ACEOF
2755 #define PACKAGE "$PACKAGE"
2759 cat >>confdefs.h <<_ACEOF
2760 #define VERSION "$VERSION"
2763 # Some tools Automake needs.
2765 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2768 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2771 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2774 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2777 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2779 # We need awk for the "check" target. The system "awk" is bad on
2781 # Always define AMTAR for backward compatibility. Yes, it's still used
2782 # in the wild :-( We should find a proper way to deprecate it ...
2785 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2792 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2794 # Make sure we can run config.sub.
2795 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2796 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2799 $as_echo_n "checking build system type... " >&6; }
2800 if ${ac_cv_build+:} false; then :
2801 $as_echo_n "(cached) " >&6
2803 ac_build_alias=$build_alias
2804 test "x$ac_build_alias" = x &&
2805 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2806 test "x$ac_build_alias" = x &&
2807 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2808 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2809 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2813 $as_echo "$ac_cv_build" >&6; }
2814 case $ac_cv_build in
2816 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2819 ac_save_IFS=$IFS; IFS='-'
2825 # Remember, the first character of IFS is used to create $*,
2826 # except with old shells:
2829 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2833 $as_echo_n "checking host system type... " >&6; }
2834 if ${ac_cv_host+:} false; then :
2835 $as_echo_n "(cached) " >&6
2837 if test "x$host_alias" = x; then
2838 ac_cv_host=$ac_cv_build
2840 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2841 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2846 $as_echo "$ac_cv_host" >&6; }
2849 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2852 ac_save_IFS=$IFS; IFS='-'
2858 # Remember, the first character of IFS is used to create $*,
2859 # except with old shells:
2862 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for some Win32 platform" >&5
2866 $as_echo_n "checking for some Win32 platform... " >&6; }
2868 *-*-mingw*|*-*-cygwin*)
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
2876 $as_echo "$platform_win32" >&6; }
2877 if test "$platform_win32" = "yes"; then
2878 PLATFORM_WIN32_TRUE=
2879 PLATFORM_WIN32_FALSE='#'
2881 PLATFORM_WIN32_TRUE='#'
2882 PLATFORM_WIN32_FALSE=
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
2887 $as_echo_n "checking for native Win32... " >&6; }
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_win32" >&5
2897 $as_echo "$os_win32" >&6; }
2898 if test "$os_win32" = "yes"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2911 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2916 macro_version='2.4.2'
2917 macro_revision='1.3337'
2931 ltmain="$ac_aux_dir/ltmain.sh"
2933 # Backslashify metacharacters that are still active within
2934 # double-quoted strings.
2935 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2937 # Same as above, but do not quote variable references.
2938 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2940 # Sed substitution to delay expansion of an escaped shell variable in a
2941 # double_quote_subst'ed string.
2942 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2944 # Sed substitution to delay expansion of an escaped single quote.
2945 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2947 # Sed substitution to avoid accidental globbing in evaled expressions
2948 no_glob_subst='s/\*/\\\*/g'
2950 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2951 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2952 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2955 $as_echo_n "checking how to print strings... " >&6; }
2956 # Test print first, because it will be a builtin if present.
2957 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2958 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2960 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2963 # Use this function as a fallback that always works.
2964 func_fallback_echo ()
2966 eval 'cat <<_LTECHO_EOF
2970 ECHO='func_fallback_echo'
2973 # func_echo_all arg...
2974 # Invoke $ECHO with all args, space-separated.
2981 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2982 $as_echo "printf" >&6; } ;;
2983 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2984 $as_echo "print -r" >&6; } ;;
2985 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2986 $as_echo "cat" >&6; } ;;
3002 DEPDIR="${am__leading_dot}deps"
3004 ac_config_commands="$ac_config_commands depfiles"
3007 am_make=${MAKE-make}
3008 cat > confinc << 'END'
3010 @echo this is the am__doit target
3013 # If we don't find an include directive, just comment out the code.
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3015 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3019 # First try GNU make style include.
3020 echo "include confinc" > confmf
3021 # Ignore all kinds of additional output from `make'.
3022 case `$am_make -s -f confmf 2> /dev/null` in #(
3023 *the\ am__doit\ target*)
3029 # Now try BSD make style include.
3030 if test "$am__include" = "#"; then
3031 echo '.include "confinc"' > confmf
3032 case `$am_make -s -f confmf 2> /dev/null` in #(
3033 *the\ am__doit\ target*)
3034 am__include=.include
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3043 $as_echo "$_am_result" >&6; }
3044 rm -f confinc confmf
3046 # Check whether --enable-dependency-tracking was given.
3047 if test "${enable_dependency_tracking+set}" = set; then :
3048 enableval=$enable_dependency_tracking;
3051 if test "x$enable_dependency_tracking" != xno; then
3052 am_depcomp="$ac_aux_dir/depcomp"
3056 if test "x$enable_dependency_tracking" != xno; then
3066 ac_cpp='$CPP $CPPFLAGS'
3067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3070 if test -n "$ac_tool_prefix"; then
3071 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3072 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if ${ac_cv_prog_CC+:} false; then :
3076 $as_echo_n "(cached) " >&6
3078 if test -n "$CC"; then
3079 ac_cv_prog_CC="$CC" # Let the user override the test.
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 if test -n "$CC"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3101 $as_echo "$CC" >&6; }
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3109 if test -z "$ac_cv_prog_CC"; then
3111 # Extract the first word of "gcc", so it can be a program name with args.
3112 set dummy gcc; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3116 $as_echo_n "(cached) " >&6
3118 if test -n "$ac_ct_CC"; then
3119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 test -z "$as_dir" && as_dir=.
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128 ac_cv_prog_ac_ct_CC="gcc"
3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3139 if test -n "$ac_ct_CC"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3141 $as_echo "$ac_ct_CC" >&6; }
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3147 if test "x$ac_ct_CC" = x; then
3150 case $cross_compiling:$ac_tool_warned in
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3154 ac_tool_warned=yes ;;
3162 if test -z "$CC"; then
3163 if test -n "$ac_tool_prefix"; then
3164 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3165 set dummy ${ac_tool_prefix}cc; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_CC+:} false; then :
3169 $as_echo_n "(cached) " >&6
3171 if test -n "$CC"; then
3172 ac_cv_prog_CC="$CC" # Let the user override the test.
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181 ac_cv_prog_CC="${ac_tool_prefix}cc"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 if test -n "$CC"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3194 $as_echo "$CC" >&6; }
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3203 if test -z "$CC"; then
3204 # Extract the first word of "cc", so it can be a program name with args.
3205 set dummy cc; ac_word=$2
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207 $as_echo_n "checking for $ac_word... " >&6; }
3208 if ${ac_cv_prog_CC+:} false; then :
3209 $as_echo_n "(cached) " >&6
3211 if test -n "$CC"; then
3212 ac_cv_prog_CC="$CC" # Let the user override the test.
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3223 ac_prog_rejected=yes
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 if test $ac_prog_rejected = yes; then
3235 # We found a bogon in the path, so make sure we never use it.
3236 set dummy $ac_cv_prog_CC
3238 if test $# != 0; then
3239 # We chose a different compiler from the bogus one.
3240 # However, it has the same basename, so the bogon will be chosen
3241 # first if we set CC to just the basename; use the full file name.
3243 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3249 if test -n "$CC"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3251 $as_echo "$CC" >&6; }
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3259 if test -z "$CC"; then
3260 if test -n "$ac_tool_prefix"; then
3261 for ac_prog in cl.exe
3263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3264 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_CC+:} false; then :
3268 $as_echo_n "(cached) " >&6
3270 if test -n "$CC"; then
3271 ac_cv_prog_CC="$CC" # Let the user override the test.
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 if test -n "$CC"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3293 $as_echo "$CC" >&6; }
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3300 test -n "$CC" && break
3303 if test -z "$CC"; then
3305 for ac_prog in cl.exe
3307 # Extract the first word of "$ac_prog", so it can be a program name with args.
3308 set dummy $ac_prog; ac_word=$2
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3310 $as_echo_n "checking for $ac_word... " >&6; }
3311 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3312 $as_echo_n "(cached) " >&6
3314 if test -n "$ac_ct_CC"; then
3315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 test -z "$as_dir" && as_dir=.
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3324 ac_cv_prog_ac_ct_CC="$ac_prog"
3325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3335 if test -n "$ac_ct_CC"; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3337 $as_echo "$ac_ct_CC" >&6; }
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 $as_echo "no" >&6; }
3344 test -n "$ac_ct_CC" && break
3347 if test "x$ac_ct_CC" = x; then
3350 case $cross_compiling:$ac_tool_warned in
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3354 ac_tool_warned=yes ;;
3363 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error $? "no acceptable C compiler found in \$PATH
3366 See \`config.log' for more details" "$LINENO" 5; }
3368 # Provide some information about the compiler.
3369 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3372 for ac_option in --version -v -V -qversion; do
3373 { { ac_try="$ac_compiler $ac_option >&5"
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379 $as_echo "$ac_try_echo"; } >&5
3380 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3382 if test -s conftest.err; then
3384 ... rest of stderr output deleted ...
3385 10q' conftest.err >conftest.er1
3386 cat conftest.er1 >&5
3388 rm -f conftest.er1 conftest.err
3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 test $ac_status = 0; }
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h. */
3404 ac_clean_files_save=$ac_clean_files
3405 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3406 # Try to create an executable without -o first, disregard a.out.
3407 # It will help us diagnose broken compilers, and finding out an intuition
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3410 $as_echo_n "checking whether the C compiler works... " >&6; }
3411 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3413 # The possible output files:
3414 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3417 for ac_file in $ac_files
3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3421 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3426 if { { ac_try="$ac_link_default"
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_link_default") 2>&5
3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436 test $ac_status = 0; }; then :
3437 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3438 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3439 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3440 # so that the user can short-circuit this test for compilers unknown to
3442 for ac_file in $ac_files ''
3444 test -f "$ac_file" || continue
3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3449 # We found the default executable, but exeext='' is most
3453 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3455 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3457 # We set ac_cv_exeext here because the later test for it is not
3458 # safe: cross compilers may not add the suffix if given an `-o'
3459 # argument, so we may need to know it at that point already.
3460 # Even if this section looks crufty: it has the advantage of
3467 test "$ac_cv_exeext" = no && ac_cv_exeext=
3472 if test -z "$ac_file"; then :
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 $as_echo "no" >&6; }
3475 $as_echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3480 as_fn_error 77 "C compiler cannot create executables
3481 See \`config.log' for more details" "$LINENO" 5; }
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3484 $as_echo "yes" >&6; }
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3487 $as_echo_n "checking for C compiler default output file name... " >&6; }
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3489 $as_echo "$ac_file" >&6; }
3490 ac_exeext=$ac_cv_exeext
3492 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3493 ac_clean_files=$ac_clean_files_save
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3495 $as_echo_n "checking for suffix of executables... " >&6; }
3496 if { { ac_try="$ac_link"
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 $as_echo "$ac_try_echo"; } >&5
3503 (eval "$ac_link") 2>&5
3505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506 test $ac_status = 0; }; then :
3507 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3508 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3509 # work properly (i.e., refer to `conftest.exe'), while it won't with
3511 for ac_file in conftest.exe conftest conftest.*; do
3512 test -f "$ac_file" || continue
3514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3515 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3524 See \`config.log' for more details" "$LINENO" 5; }
3526 rm -f conftest conftest$ac_cv_exeext
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3528 $as_echo "$ac_cv_exeext" >&6; }
3530 rm -f conftest.$ac_ext
3531 EXEEXT=$ac_cv_exeext
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3539 FILE *f = fopen ("conftest.out", "w");
3540 return ferror (f) || fclose (f) != 0;
3546 ac_clean_files="$ac_clean_files conftest.out"
3547 # Check that the compiler produces executables we can run. If not, either
3548 # the compiler is broken, or we cross compile.
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3550 $as_echo_n "checking whether we are cross compiling... " >&6; }
3551 if test "$cross_compiling" != yes; then
3552 { { ac_try="$ac_link"
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3558 $as_echo "$ac_try_echo"; } >&5
3559 (eval "$ac_link") 2>&5
3561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3562 test $ac_status = 0; }
3563 if { ac_try='./conftest$ac_cv_exeext'
3564 { { case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570 (eval "$ac_try") 2>&5
3572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573 test $ac_status = 0; }; }; then
3576 if test "$cross_compiling" = maybe; then
3579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581 as_fn_error $? "cannot run C compiled programs.
3582 If you meant to cross compile, use \`--host'.
3583 See \`config.log' for more details" "$LINENO" 5; }
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3588 $as_echo "$cross_compiling" >&6; }
3590 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3591 ac_clean_files=$ac_clean_files_save
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3593 $as_echo_n "checking for suffix of object files... " >&6; }
3594 if ${ac_cv_objext+:} false; then :
3595 $as_echo_n "(cached) " >&6
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h. */
3608 rm -f conftest.o conftest.obj
3609 if { { ac_try="$ac_compile"
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616 (eval "$ac_compile") 2>&5
3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619 test $ac_status = 0; }; then :
3620 for ac_file in conftest.o conftest.obj conftest.*; do
3621 test -f "$ac_file" || continue;
3623 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3624 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3629 $as_echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3634 as_fn_error $? "cannot compute suffix of object files: cannot compile
3635 See \`config.log' for more details" "$LINENO" 5; }
3637 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3640 $as_echo "$ac_cv_objext" >&6; }
3641 OBJEXT=$ac_cv_objext
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3644 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3645 if ${ac_cv_c_compiler_gnu+:} false; then :
3646 $as_echo_n "(cached) " >&6
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3662 if ac_fn_c_try_compile "$LINENO"; then :
3667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3672 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3673 if test $ac_compiler_gnu = yes; then
3678 ac_test_CFLAGS=${CFLAGS+set}
3679 ac_save_CFLAGS=$CFLAGS
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3681 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3682 if ${ac_cv_prog_cc_g+:} false; then :
3683 $as_echo_n "(cached) " >&6
3685 ac_save_c_werror_flag=$ac_c_werror_flag
3686 ac_c_werror_flag=yes
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3700 if ac_fn_c_try_compile "$LINENO"; then :
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3715 if ac_fn_c_try_compile "$LINENO"; then :
3718 ac_c_werror_flag=$ac_save_c_werror_flag
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3731 if ac_fn_c_try_compile "$LINENO"; then :
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739 ac_c_werror_flag=$ac_save_c_werror_flag
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3742 $as_echo "$ac_cv_prog_cc_g" >&6; }
3743 if test "$ac_test_CFLAGS" = set; then
3744 CFLAGS=$ac_save_CFLAGS
3745 elif test $ac_cv_prog_cc_g = yes; then
3746 if test "$GCC" = yes; then
3752 if test "$GCC" = yes; then
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3759 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3760 if ${ac_cv_prog_cc_c89+:} false; then :
3761 $as_echo_n "(cached) " >&6
3763 ac_cv_prog_cc_c89=no
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3770 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3771 struct buf { int x; };
3772 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3773 static char *e (p, i)
3779 static char *f (char * (*g) (char **, int), char **p, ...)
3784 s = g (p, va_arg (v,int));
3789 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3790 function prototypes and stuff, but not '\xHH' hex character constants.
3791 These don't provoke an error unfortunately, instead are silently treated
3792 as 'x'. The following induces an error, until -std is added to get
3793 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3794 array size at least. It's necessary to write '\x00'==0 to get something
3795 that's true only with -std. */
3796 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3798 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3799 inside strings and character constants. */
3801 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3803 int test (int i, double x);
3804 struct s1 {int (*f) (int a);};
3805 struct s2 {int (*f) (double a);};
3806 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3812 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3817 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3818 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3820 CC="$ac_save_CC $ac_arg"
3821 if ac_fn_c_try_compile "$LINENO"; then :
3822 ac_cv_prog_cc_c89=$ac_arg
3824 rm -f core conftest.err conftest.$ac_objext
3825 test "x$ac_cv_prog_cc_c89" != "xno" && break
3827 rm -f conftest.$ac_ext
3832 case "x$ac_cv_prog_cc_c89" in
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3835 $as_echo "none needed" >&6; } ;;
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3838 $as_echo "unsupported" >&6; } ;;
3840 CC="$CC $ac_cv_prog_cc_c89"
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3842 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3844 if test "x$ac_cv_prog_cc_c89" != xno; then :
3849 ac_cpp='$CPP $CPPFLAGS'
3850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3854 depcc="$CC" am_compiler_list=
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3857 $as_echo_n "checking dependency style of $depcc... " >&6; }
3858 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3859 $as_echo_n "(cached) " >&6
3861 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3862 # We make a subdir and do the tests there. Otherwise we can end up
3863 # making bogus files that we don't know about and never remove. For
3864 # instance it was reported that on HP-UX the gcc test will end up
3865 # making a dummy file named `D' -- because `-MD' means `put the output
3869 # Copy depcomp to subdir because otherwise we won't find it if we're
3870 # using a relative directory.
3871 cp "$am_depcomp" conftest.dir
3873 # We will build objects and dependencies in a subdirectory because
3874 # it helps to detect inapplicable dependency modes. For instance
3875 # both Tru64's cc and ICC support -MD to output dependencies as a
3876 # side effect of compilation, but ICC will put the dependencies in
3877 # the current directory while Tru64 will put them in the object
3881 am_cv_CC_dependencies_compiler_type=none
3882 if test "$am_compiler_list" = ""; then
3883 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3886 case " $depcc " in #(
3887 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3890 for depmode in $am_compiler_list; do
3891 # Setup a source with many dependencies, because some compilers
3892 # like to wrap large dependency lists on column 80 (with \), and
3893 # we should not choose a depcomp mode which is confused by this.
3895 # We need to recreate these files for each test, as the compiler may
3896 # overwrite some of them when testing with obscure command lines.
3897 # This happens at least with the AIX C compiler.
3899 for i in 1 2 3 4 5 6; do
3900 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3901 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3902 # Solaris 8's {/usr,}/bin/sh.
3903 touch sub/conftst$i.h
3905 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3907 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3908 # mode. It turns out that the SunPro C++ compiler does not properly
3909 # handle `-M -o', and we need to detect this. Also, some Intel
3910 # versions had trouble with output in subdirs
3911 am__obj=sub/conftest.${OBJEXT-o}
3912 am__minus_obj="-o $am__obj"
3915 # This depmode causes a compiler race in universal mode.
3916 test "$am__universal" = false || continue
3919 # after this tag, mechanisms are not by side-effect, so they'll
3920 # only be used when explicitly requested
3921 if test "x$enable_dependency_tracking" = xyes; then
3927 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3928 # This compiler won't grok `-c -o', but also, the minuso test has
3929 # not run yet. These depmodes are late enough in the game, and
3930 # so weak that their functioning should not be impacted.
3931 am__obj=conftest.${OBJEXT-o}
3936 if depmode=$depmode \
3937 source=sub/conftest.c object=$am__obj \
3938 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3939 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3940 >/dev/null 2>conftest.err &&
3941 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3942 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3943 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3944 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3945 # icc doesn't choke on unknown options, it will just issue warnings
3946 # or remarks (even with -Werror). So we grep stderr for any message
3947 # that says an option was ignored or not supported.
3948 # When given -MP, icc 7.0 and 7.1 complain thusly:
3949 # icc: Command line warning: ignoring option '-M'; no argument required
3950 # The diagnosis changed in icc 8.0:
3951 # icc: Command line remark: option '-MP' not supported
3952 if (grep 'ignoring option' conftest.err ||
3953 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3954 am_cv_CC_dependencies_compiler_type=$depmode
3963 am_cv_CC_dependencies_compiler_type=none
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3968 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3969 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3972 test "x$enable_dependency_tracking" != xno \
3973 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3975 am__fastdepCC_FALSE='#'
3977 am__fastdepCC_TRUE='#'
3978 am__fastdepCC_FALSE=
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3983 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3984 if ${ac_cv_path_SED+:} false; then :
3985 $as_echo_n "(cached) " >&6
3987 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3988 for ac_i in 1 2 3 4 5 6 7; do
3989 ac_script="$ac_script$as_nl$ac_script"
3991 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3992 { ac_script=; unset ac_script;}
3993 if test -z "$SED"; then
3994 ac_path_SED_found=false
3995 # Loop through the user's path and test for each of PROGNAME-LIST
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 test -z "$as_dir" && as_dir=.
4001 for ac_prog in sed gsed; do
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4004 as_fn_executable_p "$ac_path_SED" || continue
4005 # Check for GNU ac_path_SED and select it if it is found.
4006 # Check for GNU $ac_path_SED
4007 case `"$ac_path_SED" --version 2>&1` in
4009 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4012 $as_echo_n 0123456789 >"conftest.in"
4015 cat "conftest.in" "conftest.in" >"conftest.tmp"
4016 mv "conftest.tmp" "conftest.in"
4017 cp "conftest.in" "conftest.nl"
4018 $as_echo '' >> "conftest.nl"
4019 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4020 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4021 as_fn_arith $ac_count + 1 && ac_count=$as_val
4022 if test $ac_count -gt ${ac_path_SED_max-0}; then
4023 # Best one so far, save it but keep looking for a better one
4024 ac_cv_path_SED="$ac_path_SED"
4025 ac_path_SED_max=$ac_count
4027 # 10*(2^10) chars as input seems more than enough
4028 test $ac_count -gt 10 && break
4030 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4033 $ac_path_SED_found && break 3
4038 if test -z "$ac_cv_path_SED"; then
4039 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4047 $as_echo "$ac_cv_path_SED" >&6; }
4048 SED="$ac_cv_path_SED"
4051 test -z "$SED" && SED=sed
4052 Xsed="$SED -e 1s/^X//"
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4065 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4066 if ${ac_cv_path_GREP+:} false; then :
4067 $as_echo_n "(cached) " >&6
4069 if test -z "$GREP"; then
4070 ac_path_GREP_found=false
4071 # Loop through the user's path and test for each of PROGNAME-LIST
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4076 test -z "$as_dir" && as_dir=.
4077 for ac_prog in grep ggrep; do
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4080 as_fn_executable_p "$ac_path_GREP" || continue
4081 # Check for GNU ac_path_GREP and select it if it is found.
4082 # Check for GNU $ac_path_GREP
4083 case `"$ac_path_GREP" --version 2>&1` in
4085 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4088 $as_echo_n 0123456789 >"conftest.in"
4091 cat "conftest.in" "conftest.in" >"conftest.tmp"
4092 mv "conftest.tmp" "conftest.in"
4093 cp "conftest.in" "conftest.nl"
4094 $as_echo 'GREP' >> "conftest.nl"
4095 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4097 as_fn_arith $ac_count + 1 && ac_count=$as_val
4098 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4099 # Best one so far, save it but keep looking for a better one
4100 ac_cv_path_GREP="$ac_path_GREP"
4101 ac_path_GREP_max=$ac_count
4103 # 10*(2^10) chars as input seems more than enough
4104 test $ac_count -gt 10 && break
4106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4109 $ac_path_GREP_found && break 3
4114 if test -z "$ac_cv_path_GREP"; then
4115 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4118 ac_cv_path_GREP=$GREP
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4123 $as_echo "$ac_cv_path_GREP" >&6; }
4124 GREP="$ac_cv_path_GREP"
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4128 $as_echo_n "checking for egrep... " >&6; }
4129 if ${ac_cv_path_EGREP+:} false; then :
4130 $as_echo_n "(cached) " >&6
4132 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4133 then ac_cv_path_EGREP="$GREP -E"
4135 if test -z "$EGREP"; then
4136 ac_path_EGREP_found=false
4137 # Loop through the user's path and test for each of PROGNAME-LIST
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4142 test -z "$as_dir" && as_dir=.
4143 for ac_prog in egrep; do
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4146 as_fn_executable_p "$ac_path_EGREP" || continue
4147 # Check for GNU ac_path_EGREP and select it if it is found.
4148 # Check for GNU $ac_path_EGREP
4149 case `"$ac_path_EGREP" --version 2>&1` in
4151 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4154 $as_echo_n 0123456789 >"conftest.in"
4157 cat "conftest.in" "conftest.in" >"conftest.tmp"
4158 mv "conftest.tmp" "conftest.in"
4159 cp "conftest.in" "conftest.nl"
4160 $as_echo 'EGREP' >> "conftest.nl"
4161 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4163 as_fn_arith $ac_count + 1 && ac_count=$as_val
4164 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4165 # Best one so far, save it but keep looking for a better one
4166 ac_cv_path_EGREP="$ac_path_EGREP"
4167 ac_path_EGREP_max=$ac_count
4169 # 10*(2^10) chars as input seems more than enough
4170 test $ac_count -gt 10 && break
4172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4175 $ac_path_EGREP_found && break 3
4180 if test -z "$ac_cv_path_EGREP"; then
4181 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4184 ac_cv_path_EGREP=$EGREP
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4190 $as_echo "$ac_cv_path_EGREP" >&6; }
4191 EGREP="$ac_cv_path_EGREP"
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4195 $as_echo_n "checking for fgrep... " >&6; }
4196 if ${ac_cv_path_FGREP+:} false; then :
4197 $as_echo_n "(cached) " >&6
4199 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4200 then ac_cv_path_FGREP="$GREP -F"
4202 if test -z "$FGREP"; then
4203 ac_path_FGREP_found=false
4204 # Loop through the user's path and test for each of PROGNAME-LIST
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4209 test -z "$as_dir" && as_dir=.
4210 for ac_prog in fgrep; do
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4213 as_fn_executable_p "$ac_path_FGREP" || continue
4214 # Check for GNU ac_path_FGREP and select it if it is found.
4215 # Check for GNU $ac_path_FGREP
4216 case `"$ac_path_FGREP" --version 2>&1` in
4218 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4221 $as_echo_n 0123456789 >"conftest.in"
4224 cat "conftest.in" "conftest.in" >"conftest.tmp"
4225 mv "conftest.tmp" "conftest.in"
4226 cp "conftest.in" "conftest.nl"
4227 $as_echo 'FGREP' >> "conftest.nl"
4228 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4229 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4230 as_fn_arith $ac_count + 1 && ac_count=$as_val
4231 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4232 # Best one so far, save it but keep looking for a better one
4233 ac_cv_path_FGREP="$ac_path_FGREP"
4234 ac_path_FGREP_max=$ac_count
4236 # 10*(2^10) chars as input seems more than enough
4237 test $ac_count -gt 10 && break
4239 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4242 $ac_path_FGREP_found && break 3
4247 if test -z "$ac_cv_path_FGREP"; then
4248 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4251 ac_cv_path_FGREP=$FGREP
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4257 $as_echo "$ac_cv_path_FGREP" >&6; }
4258 FGREP="$ac_cv_path_FGREP"
4261 test -z "$GREP" && GREP=grep
4281 # Check whether --with-gnu-ld was given.
4282 if test "${with_gnu_ld+set}" = set; then :
4283 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4289 if test "$GCC" = yes; then
4290 # Check if gcc -print-prog-name=ld gives a path.
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4292 $as_echo_n "checking for ld used by $CC... " >&6; }
4295 # gcc leaves a trailing carriage return which upsets mingw
4296 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4298 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4301 # Accept absolute paths.
4303 re_direlt='/[^/][^/]*/\.\./'
4304 # Canonicalize the pathname of ld
4305 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4306 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4307 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4309 test -z "$LD" && LD="$ac_prog"
4312 # If it fails, then pretend we aren't using GCC.
4316 # If it is relative, then search for the first ld in PATH.
4320 elif test "$with_gnu_ld" = yes; then
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4322 $as_echo_n "checking for GNU ld... " >&6; }
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4325 $as_echo_n "checking for non-GNU ld... " >&6; }
4327 if ${lt_cv_path_LD+:} false; then :
4328 $as_echo_n "(cached) " >&6
4330 if test -z "$LD"; then
4331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4332 for ac_dir in $PATH; do
4334 test -z "$ac_dir" && ac_dir=.
4335 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4336 lt_cv_path_LD="$ac_dir/$ac_prog"
4337 # Check to see if the program is GNU ld. I'd rather use --version,
4338 # but apparently some variants of GNU ld only accept -v.
4339 # Break only if it was the GNU/non-GNU ld that we prefer.
4340 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4341 *GNU* | *'with BFD'*)
4342 test "$with_gnu_ld" != no && break
4345 test "$with_gnu_ld" != yes && break
4352 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4357 if test -n "$LD"; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4359 $as_echo "$LD" >&6; }
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362 $as_echo "no" >&6; }
4364 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4366 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4367 if ${lt_cv_prog_gnu_ld+:} false; then :
4368 $as_echo_n "(cached) " >&6
4370 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4371 case `$LD -v 2>&1 </dev/null` in
4372 *GNU* | *'with BFD'*)
4373 lt_cv_prog_gnu_ld=yes
4376 lt_cv_prog_gnu_ld=no
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4381 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4382 with_gnu_ld=$lt_cv_prog_gnu_ld
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4393 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4394 if ${lt_cv_path_NM+:} false; then :
4395 $as_echo_n "(cached) " >&6
4397 if test -n "$NM"; then
4398 # Let the user override the test.
4401 lt_nm_to_check="${ac_tool_prefix}nm"
4402 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4403 lt_nm_to_check="$lt_nm_to_check nm"
4405 for lt_tmp_nm in $lt_nm_to_check; do
4406 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4407 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4409 test -z "$ac_dir" && ac_dir=.
4410 tmp_nm="$ac_dir/$lt_tmp_nm"
4411 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4412 # Check to see if the nm accepts a BSD-compat flag.
4413 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4414 # nm: unknown option "B" ignored
4415 # Tru64's nm complains that /dev/null is an invalid object file
4416 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4417 */dev/null* | *'Invalid file or object type'*)
4418 lt_cv_path_NM="$tmp_nm -B"
4422 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4424 lt_cv_path_NM="$tmp_nm -p"
4428 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4429 continue # so that we can try to find one that supports BSD flags
4438 : ${lt_cv_path_NM=no}
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4442 $as_echo "$lt_cv_path_NM" >&6; }
4443 if test "$lt_cv_path_NM" != "no"; then
4446 # Didn't find any BSD compatible name lister, look for dumpbin.
4447 if test -n "$DUMPBIN"; then :
4448 # Let the user override the test.
4450 if test -n "$ac_tool_prefix"; then
4451 for ac_prog in dumpbin "link -dump"
4453 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4454 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4456 $as_echo_n "checking for $ac_word... " >&6; }
4457 if ${ac_cv_prog_DUMPBIN+:} false; then :
4458 $as_echo_n "(cached) " >&6
4460 if test -n "$DUMPBIN"; then
4461 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 test -z "$as_dir" && as_dir=.
4468 for ac_exec_ext in '' $ac_executable_extensions; do
4469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4470 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4480 DUMPBIN=$ac_cv_prog_DUMPBIN
4481 if test -n "$DUMPBIN"; then
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4483 $as_echo "$DUMPBIN" >&6; }
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486 $as_echo "no" >&6; }
4490 test -n "$DUMPBIN" && break
4493 if test -z "$DUMPBIN"; then
4494 ac_ct_DUMPBIN=$DUMPBIN
4495 for ac_prog in dumpbin "link -dump"
4497 # Extract the first word of "$ac_prog", so it can be a program name with args.
4498 set dummy $ac_prog; ac_word=$2
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4500 $as_echo_n "checking for $ac_word... " >&6; }
4501 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4502 $as_echo_n "(cached) " >&6
4504 if test -n "$ac_ct_DUMPBIN"; then
4505 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 test -z "$as_dir" && as_dir=.
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4525 if test -n "$ac_ct_DUMPBIN"; then
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4527 $as_echo "$ac_ct_DUMPBIN" >&6; }
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530 $as_echo "no" >&6; }
4534 test -n "$ac_ct_DUMPBIN" && break
4537 if test "x$ac_ct_DUMPBIN" = x; then
4540 case $cross_compiling:$ac_tool_warned in
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4544 ac_tool_warned=yes ;;
4546 DUMPBIN=$ac_ct_DUMPBIN
4550 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4552 DUMPBIN="$DUMPBIN -symbols"
4560 if test "$DUMPBIN" != ":"; then
4564 test -z "$NM" && NM=nm
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4572 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4573 if ${lt_cv_nm_interface+:} false; then :
4574 $as_echo_n "(cached) " >&6
4576 lt_cv_nm_interface="BSD nm"
4577 echo "int some_variable = 0;" > conftest.$ac_ext
4578 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4579 (eval "$ac_compile" 2>conftest.err)
4580 cat conftest.err >&5
4581 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4582 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4583 cat conftest.err >&5
4584 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4585 cat conftest.out >&5
4586 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4587 lt_cv_nm_interface="MS dumpbin"
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4592 $as_echo "$lt_cv_nm_interface" >&6; }
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4595 $as_echo_n "checking whether ln -s works... " >&6; }
4597 if test "$LN_S" = "ln -s"; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4599 $as_echo "yes" >&6; }
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4602 $as_echo "no, using $LN_S" >&6; }
4605 # find the maximum length of command line arguments
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4607 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4608 if ${lt_cv_sys_max_cmd_len+:} false; then :
4609 $as_echo_n "(cached) " >&6
4616 # On DJGPP, this test can blow up pretty badly due to problems in libc
4617 # (any single argument exceeding 2000 bytes causes a buffer overrun
4618 # during glob expansion). Even if it were fixed, the result of this
4619 # check would be larger than it should be.
4620 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4624 # Under GNU Hurd, this test is not required because there is
4625 # no limit to the length of command line arguments.
4626 # Libtool will interpret -1 as no limit whatsoever
4627 lt_cv_sys_max_cmd_len=-1;
4630 cygwin* | mingw* | cegcc*)
4631 # On Win9x/ME, this test blows up -- it succeeds, but takes
4632 # about 5 minutes as the teststring grows exponentially.
4633 # Worse, since 9x/ME are not pre-emptively multitasking,
4634 # you end up with a "frozen" computer, even though with patience
4635 # the test eventually succeeds (with a max line length of 256k).
4636 # Instead, let's just punt: use the minimum linelength reported by
4637 # all of the supported platforms: 8192 (on NT/2K/XP).
4638 lt_cv_sys_max_cmd_len=8192;
4642 # On MiNT this can take a long time and run out of memory.
4643 lt_cv_sys_max_cmd_len=8192;
4647 # On AmigaOS with pdksh, this test takes hours, literally.
4648 # So we just punt and use a minimum line length of 8192.
4649 lt_cv_sys_max_cmd_len=8192;
4652 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4653 # This has been around since 386BSD, at least. Likely further.
4654 if test -x /sbin/sysctl; then
4655 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4656 elif test -x /usr/sbin/sysctl; then
4657 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4659 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4661 # And add a safety zone
4662 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4663 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4667 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4668 lt_cv_sys_max_cmd_len=196608
4672 # The test takes a long time on OS/2.
4673 lt_cv_sys_max_cmd_len=8192
4677 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4678 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4679 # nice to cause kernel panics so lets avoid the loop below.
4680 # First set a reasonable default.
4681 lt_cv_sys_max_cmd_len=16384
4683 if test -x /sbin/sysconfig; then
4684 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4685 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4690 lt_cv_sys_max_cmd_len=102400
4692 sysv5* | sco5v6* | sysv4.2uw2*)
4693 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4694 if test -n "$kargmax"; then
4695 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4697 lt_cv_sys_max_cmd_len=32768
4701 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4702 if test -n "$lt_cv_sys_max_cmd_len" && \
4703 test undefined != "$lt_cv_sys_max_cmd_len"; then
4704 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4707 # Make teststring a little bigger before we do anything with it.
4708 # a 1K string should be a reasonable start.
4709 for i in 1 2 3 4 5 6 7 8 ; do
4710 teststring=$teststring$teststring
4712 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4713 # If test is not a shell built-in, we'll probably end up computing a
4714 # maximum length that is only half of the actual maximum length, but
4716 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4717 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4718 test $i != 17 # 1/2 MB should be enough
4721 teststring=$teststring$teststring
4723 # Only check the string length outside the loop.
4724 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4726 # Add a significant safety factor because C++ compilers can tack on
4727 # massive amounts of additional arguments before passing them to the
4728 # linker. It appears as though 1/2 is a usable value.
4729 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4736 if test -n $lt_cv_sys_max_cmd_len ; then
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4738 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4741 $as_echo "none" >&6; }
4743 max_cmd_len=$lt_cv_sys_max_cmd_len
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4755 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4756 # Try some XSI features
4759 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4761 && eval 'test $(( 1 + 1 )) -eq 2 \
4762 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4765 $as_echo "$xsi_shell" >&6; }
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4769 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4771 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4773 && lt_shell_append=yes
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4775 $as_echo "$lt_shell_append" >&6; }
4778 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4788 # test EBCDIC or ASCII
4789 case `echo X|tr X '\101'` in
4790 A) # ASCII based system
4791 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4792 lt_SP2NL='tr \040 \012'
4793 lt_NL2SP='tr \015\012 \040\040'
4795 *) # EBCDIC based system
4796 lt_SP2NL='tr \100 \n'
4797 lt_NL2SP='tr \r\n \100\100'
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4810 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4811 if ${lt_cv_to_host_file_cmd+:} false; then :
4812 $as_echo_n "(cached) " >&6
4817 *-*-mingw* ) # actually msys
4818 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4821 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4823 * ) # otherwise, assume *nix
4824 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4830 *-*-mingw* ) # actually msys
4831 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4834 lt_cv_to_host_file_cmd=func_convert_file_noop
4836 * ) # otherwise, assume *nix
4837 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4841 * ) # unhandled hosts (and "normal" native builds)
4842 lt_cv_to_host_file_cmd=func_convert_file_noop
4848 to_host_file_cmd=$lt_cv_to_host_file_cmd
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4850 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4857 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4858 if ${lt_cv_to_tool_file_cmd+:} false; then :
4859 $as_echo_n "(cached) " >&6
4861 #assume ordinary cross tools, or native build.
4862 lt_cv_to_tool_file_cmd=func_convert_file_noop
4866 *-*-mingw* ) # actually msys
4867 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4875 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4877 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4884 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4885 if ${lt_cv_ld_reload_flag+:} false; then :
4886 $as_echo_n "(cached) " >&6
4888 lt_cv_ld_reload_flag='-r'
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4891 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4892 reload_flag=$lt_cv_ld_reload_flag
4893 case $reload_flag in
4895 *) reload_flag=" $reload_flag" ;;
4897 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4899 cygwin* | mingw* | pw32* | cegcc*)
4900 if test "$GCC" != yes; then
4905 if test "$GCC" = yes; then
4906 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4908 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4921 if test -n "$ac_tool_prefix"; then
4922 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4923 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925 $as_echo_n "checking for $ac_word... " >&6; }
4926 if ${ac_cv_prog_OBJDUMP+:} false; then :
4927 $as_echo_n "(cached) " >&6
4929 if test -n "$OBJDUMP"; then
4930 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 test -z "$as_dir" && as_dir=.
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4939 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4949 OBJDUMP=$ac_cv_prog_OBJDUMP
4950 if test -n "$OBJDUMP"; then
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4952 $as_echo "$OBJDUMP" >&6; }
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4960 if test -z "$ac_cv_prog_OBJDUMP"; then
4961 ac_ct_OBJDUMP=$OBJDUMP
4962 # Extract the first word of "objdump", so it can be a program name with args.
4963 set dummy objdump; ac_word=$2
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965 $as_echo_n "checking for $ac_word... " >&6; }
4966 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4967 $as_echo_n "(cached) " >&6
4969 if test -n "$ac_ct_OBJDUMP"; then
4970 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 test -z "$as_dir" && as_dir=.
4977 for ac_exec_ext in '' $ac_executable_extensions; do
4978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4979 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4989 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4990 if test -n "$ac_ct_OBJDUMP"; then
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4992 $as_echo "$ac_ct_OBJDUMP" >&6; }
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 $as_echo "no" >&6; }
4998 if test "x$ac_ct_OBJDUMP" = x; then
5001 case $cross_compiling:$ac_tool_warned in
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5005 ac_tool_warned=yes ;;
5007 OBJDUMP=$ac_ct_OBJDUMP
5010 OBJDUMP="$ac_cv_prog_OBJDUMP"
5013 test -z "$OBJDUMP" && OBJDUMP=objdump
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5021 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5022 if ${lt_cv_deplibs_check_method+:} false; then :
5023 $as_echo_n "(cached) " >&6
5025 lt_cv_file_magic_cmd='$MAGIC_CMD'
5026 lt_cv_file_magic_test_file=
5027 lt_cv_deplibs_check_method='unknown'
5028 # Need to set the preceding variable on all platforms that support
5029 # interlibrary dependencies.
5030 # 'none' -- dependencies not supported.
5031 # `unknown' -- same as none, but documents that we really don't know.
5032 # 'pass_all' -- all dependencies passed with no checks.
5033 # 'test_compile' -- check by making test program.
5034 # 'file_magic [[regex]]' -- check by looking for files in library path
5035 # which responds to the $file_magic_cmd with a given extended regex.
5036 # If you have `file' or equivalent on your system and you're not sure
5037 # whether `pass_all' will *always* work, you probably want this one.
5041 lt_cv_deplibs_check_method=pass_all
5045 lt_cv_deplibs_check_method=pass_all
5049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5050 lt_cv_file_magic_cmd='/usr/bin/file -L'
5051 lt_cv_file_magic_test_file=/shlib/libc.so
5055 # func_win32_libid is a shell function defined in ltmain.sh
5056 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5057 lt_cv_file_magic_cmd='func_win32_libid'
5061 # Base MSYS/MinGW do not provide the 'file' command needed by
5062 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5063 # unless we find 'file', for example because we are cross-compiling.
5064 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5065 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5066 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5067 lt_cv_file_magic_cmd='func_win32_libid'
5069 # Keep this pattern in sync with the one in func_win32_libid.
5070 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5071 lt_cv_file_magic_cmd='$OBJDUMP -f'
5076 # use the weaker test based on 'objdump'. See mingw*.
5077 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5078 lt_cv_file_magic_cmd='$OBJDUMP -f'
5081 darwin* | rhapsody*)
5082 lt_cv_deplibs_check_method=pass_all
5085 freebsd* | dragonfly*)
5086 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5089 # Not sure whether the presence of OpenBSD here was a mistake.
5090 # Let's accept both of them until this is cleared up.
5091 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5092 lt_cv_file_magic_cmd=/usr/bin/file
5093 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5097 lt_cv_deplibs_check_method=pass_all
5102 lt_cv_deplibs_check_method=pass_all
5105 hpux10.20* | hpux11*)
5106 lt_cv_file_magic_cmd=/usr/bin/file
5109 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5110 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5113 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]'
5114 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5117 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5118 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5124 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5128 irix5* | irix6* | nonstopux*)
5130 *-32|*"-32 ") libmagic=32-bit;;
5131 *-n32|*"-n32 ") libmagic=N32;;
5132 *-64|*"-64 ") libmagic=64-bit;;
5133 *) libmagic=never-match;;
5135 lt_cv_deplibs_check_method=pass_all
5138 # This must be glibc/ELF.
5139 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5140 lt_cv_deplibs_check_method=pass_all
5143 netbsd* | netbsdelf*-gnu)
5144 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5145 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5147 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5152 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5153 lt_cv_file_magic_cmd=/usr/bin/file
5154 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5158 lt_cv_deplibs_check_method=pass_all
5162 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5163 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5165 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5169 osf3* | osf4* | osf5*)
5170 lt_cv_deplibs_check_method=pass_all
5174 lt_cv_deplibs_check_method=pass_all
5178 lt_cv_deplibs_check_method=pass_all
5181 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5182 lt_cv_deplibs_check_method=pass_all
5186 case $host_vendor in
5188 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]'
5189 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5192 lt_cv_deplibs_check_method=pass_all
5195 lt_cv_file_magic_cmd='/bin/file'
5196 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5199 lt_cv_file_magic_cmd='/bin/file'
5200 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5201 lt_cv_file_magic_test_file=/lib/libc.so
5204 lt_cv_deplibs_check_method=pass_all
5207 lt_cv_deplibs_check_method=pass_all
5213 lt_cv_deplibs_check_method=pass_all
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5219 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5223 if test "$build" = "$host"; then
5226 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5229 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5235 file_magic_cmd=$lt_cv_file_magic_cmd
5236 deplibs_check_method=$lt_cv_deplibs_check_method
5237 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5260 if test -n "$ac_tool_prefix"; then
5261 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5262 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5264 $as_echo_n "checking for $ac_word... " >&6; }
5265 if ${ac_cv_prog_DLLTOOL+:} false; then :
5266 $as_echo_n "(cached) " >&6
5268 if test -n "$DLLTOOL"; then
5269 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 test -z "$as_dir" && as_dir=.
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5278 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5288 DLLTOOL=$ac_cv_prog_DLLTOOL
5289 if test -n "$DLLTOOL"; then
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5291 $as_echo "$DLLTOOL" >&6; }
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294 $as_echo "no" >&6; }
5299 if test -z "$ac_cv_prog_DLLTOOL"; then
5300 ac_ct_DLLTOOL=$DLLTOOL
5301 # Extract the first word of "dlltool", so it can be a program name with args.
5302 set dummy dlltool; ac_word=$2
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5304 $as_echo_n "checking for $ac_word... " >&6; }
5305 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5306 $as_echo_n "(cached) " >&6
5308 if test -n "$ac_ct_DLLTOOL"; then
5309 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 test -z "$as_dir" && as_dir=.
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5318 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5328 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5329 if test -n "$ac_ct_DLLTOOL"; then
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5331 $as_echo "$ac_ct_DLLTOOL" >&6; }
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334 $as_echo "no" >&6; }
5337 if test "x$ac_ct_DLLTOOL" = x; then
5340 case $cross_compiling:$ac_tool_warned in
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5344 ac_tool_warned=yes ;;
5346 DLLTOOL=$ac_ct_DLLTOOL
5349 DLLTOOL="$ac_cv_prog_DLLTOOL"
5352 test -z "$DLLTOOL" && DLLTOOL=dlltool
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5361 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5362 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5363 $as_echo_n "(cached) " >&6
5365 lt_cv_sharedlib_from_linklib_cmd='unknown'
5368 cygwin* | mingw* | pw32* | cegcc*)
5369 # two different shell functions defined in ltmain.sh
5370 # decide which to use based on capabilities of $DLLTOOL
5371 case `$DLLTOOL --help 2>&1` in
5372 *--identify-strict*)
5373 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5376 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5381 # fallback: assume linklib IS sharedlib
5382 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5388 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5389 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5390 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5399 if test -n "$ac_tool_prefix"; then
5402 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5403 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405 $as_echo_n "checking for $ac_word... " >&6; }
5406 if ${ac_cv_prog_AR+:} false; then :
5407 $as_echo_n "(cached) " >&6
5409 if test -n "$AR"; then
5410 ac_cv_prog_AR="$AR" # Let the user override the test.
5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 test -z "$as_dir" && as_dir=.
5417 for ac_exec_ext in '' $ac_executable_extensions; do
5418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5419 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430 if test -n "$AR"; then
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5432 $as_echo "$AR" >&6; }
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 $as_echo "no" >&6; }
5439 test -n "$AR" && break
5442 if test -z "$AR"; then
5446 # Extract the first word of "$ac_prog", so it can be a program name with args.
5447 set dummy $ac_prog; ac_word=$2
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5451 $as_echo_n "(cached) " >&6
5453 if test -n "$ac_ct_AR"; then
5454 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 test -z "$as_dir" && as_dir=.
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5463 ac_cv_prog_ac_ct_AR="$ac_prog"
5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5474 if test -n "$ac_ct_AR"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5476 $as_echo "$ac_ct_AR" >&6; }
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5483 test -n "$ac_ct_AR" && break
5486 if test "x$ac_ct_AR" = x; then
5489 case $cross_compiling:$ac_tool_warned in
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5493 ac_tool_warned=yes ;;
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5513 $as_echo_n "checking for archiver @FILE support... " >&6; }
5514 if ${lt_cv_ar_at_file+:} false; then :
5515 $as_echo_n "(cached) " >&6
5518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5529 if ac_fn_c_try_compile "$LINENO"; then :
5530 echo conftest.$ac_objext > conftest.lst
5531 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5533 (eval $lt_ar_try) 2>&5
5535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5536 test $ac_status = 0; }
5537 if test "$ac_status" -eq 0; then
5538 # Ensure the archiver fails upon bogus file names.
5539 rm -f conftest.$ac_objext libconftest.a
5540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5541 (eval $lt_ar_try) 2>&5
5543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5544 test $ac_status = 0; }
5545 if test "$ac_status" -ne 0; then
5549 rm -f conftest.* libconftest.a
5552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5556 $as_echo "$lt_cv_ar_at_file" >&6; }
5558 if test "x$lt_cv_ar_at_file" = xno; then
5561 archiver_list_spec=$lt_cv_ar_at_file
5570 if test -n "$ac_tool_prefix"; then
5571 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5572 set dummy ${ac_tool_prefix}strip; ac_word=$2
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574 $as_echo_n "checking for $ac_word... " >&6; }
5575 if ${ac_cv_prog_STRIP+:} false; then :
5576 $as_echo_n "(cached) " >&6
5578 if test -n "$STRIP"; then
5579 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 test -z "$as_dir" && as_dir=.
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5588 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 STRIP=$ac_cv_prog_STRIP
5599 if test -n "$STRIP"; then
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5601 $as_echo "$STRIP" >&6; }
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5609 if test -z "$ac_cv_prog_STRIP"; then
5611 # Extract the first word of "strip", so it can be a program name with args.
5612 set dummy strip; ac_word=$2
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614 $as_echo_n "checking for $ac_word... " >&6; }
5615 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5616 $as_echo_n "(cached) " >&6
5618 if test -n "$ac_ct_STRIP"; then
5619 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 test -z "$as_dir" && as_dir=.
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5628 ac_cv_prog_ac_ct_STRIP="strip"
5629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5639 if test -n "$ac_ct_STRIP"; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5641 $as_echo "$ac_ct_STRIP" >&6; }
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 $as_echo "no" >&6; }
5647 if test "x$ac_ct_STRIP" = x; then
5650 case $cross_compiling:$ac_tool_warned in
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5654 ac_tool_warned=yes ;;
5659 STRIP="$ac_cv_prog_STRIP"
5662 test -z "$STRIP" && STRIP=:
5669 if test -n "$ac_tool_prefix"; then
5670 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5671 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5673 $as_echo_n "checking for $ac_word... " >&6; }
5674 if ${ac_cv_prog_RANLIB+:} false; then :
5675 $as_echo_n "(cached) " >&6
5677 if test -n "$RANLIB"; then
5678 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 test -z "$as_dir" && as_dir=.
5685 for ac_exec_ext in '' $ac_executable_extensions; do
5686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5687 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5697 RANLIB=$ac_cv_prog_RANLIB
5698 if test -n "$RANLIB"; then
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5700 $as_echo "$RANLIB" >&6; }
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703 $as_echo "no" >&6; }
5708 if test -z "$ac_cv_prog_RANLIB"; then
5709 ac_ct_RANLIB=$RANLIB
5710 # Extract the first word of "ranlib", so it can be a program name with args.
5711 set dummy ranlib; ac_word=$2
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5713 $as_echo_n "checking for $ac_word... " >&6; }
5714 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5715 $as_echo_n "(cached) " >&6
5717 if test -n "$ac_ct_RANLIB"; then
5718 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 test -z "$as_dir" && as_dir=.
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5727 ac_cv_prog_ac_ct_RANLIB="ranlib"
5728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5737 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5738 if test -n "$ac_ct_RANLIB"; then
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5740 $as_echo "$ac_ct_RANLIB" >&6; }
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743 $as_echo "no" >&6; }
5746 if test "x$ac_ct_RANLIB" = x; then
5749 case $cross_compiling:$ac_tool_warned in
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5753 ac_tool_warned=yes ;;
5755 RANLIB=$ac_ct_RANLIB
5758 RANLIB="$ac_cv_prog_RANLIB"
5761 test -z "$RANLIB" && RANLIB=:
5768 # Determine commands to create old-style static archives.
5769 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5770 old_postinstall_cmds='chmod 644 $oldlib'
5771 old_postuninstall_cmds=
5773 if test -n "$RANLIB"; then
5776 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5779 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5782 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5787 lock_old_archive_extraction=yes ;;
5789 lock_old_archive_extraction=no ;;
5830 # If no C compiler was specified, use CC.
5833 # If no C compiler flags were specified, use CFLAGS.
5834 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5836 # Allow CC to be a program name with arguments.
5840 # Check for command to grab the raw symbol name followed by C symbol from nm.
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5842 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5843 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5844 $as_echo_n "(cached) " >&6
5847 # These are sane defaults that work on at least a few old systems.
5848 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5850 # Character class describing NM global symbol codes.
5851 symcode='[BCDEGRST]'
5853 # Regexp to match symbols that can be accessed directly from C.
5854 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5856 # Define system-specific variables.
5861 cygwin* | mingw* | pw32* | cegcc*)
5862 symcode='[ABCDGISTW]'
5865 if test "$host_cpu" = ia64; then
5866 symcode='[ABCDEGRST]'
5870 symcode='[BCDEGRST]'
5873 symcode='[BCDEGQRST]'
5884 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5892 # If we're using GNU nm, then use its standard symbol codes.
5893 case `$NM -V 2>&1` in
5894 *GNU* | *'with BFD'*)
5895 symcode='[ABCDGIRSTW]' ;;
5898 # Transform an extracted symbol line into a proper C declaration.
5899 # Some systems (esp. on ia64) link data and code symbols differently,
5900 # so use this general approach.
5901 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5903 # Transform an extracted symbol line into symbol name and symbol address
5904 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5905 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'"
5907 # Handle CRLF in mingw tool chain
5911 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5915 # Try without a prefix underscore, then with it.
5916 for ac_symprfx in "" "_"; do
5918 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5919 symxfrm="\\1 $ac_symprfx\\2 \\2"
5921 # Write the raw and C identifiers.
5922 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5923 # Fake it for dumpbin and say T for any non-static function
5924 # and D for any global variable.
5925 # Also find C++ and __fastcall symbols from MSVC++,
5926 # which start with @ or ?.
5927 lt_cv_sys_global_symbol_pipe="$AWK '"\
5928 " {last_section=section; section=\$ 3};"\
5929 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5930 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5931 " \$ 0!~/External *\|/{next};"\
5932 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5933 " {if(hide[section]) next};"\
5934 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5935 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5936 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5937 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5938 " ' prfx=^$ac_symprfx"
5940 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5942 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5944 # Check to see that the pipe works correctly.
5948 cat > conftest.$ac_ext <<_LT_EOF
5953 void nm_test_func(void);
5954 void nm_test_func(void){}
5958 int main(){nm_test_var='a';nm_test_func();return(0);}
5961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5962 (eval $ac_compile) 2>&5
5964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5965 test $ac_status = 0; }; then
5966 # Now try to grab the symbols.
5968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5969 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5972 test $ac_status = 0; } && test -s "$nlist"; then
5973 # Try sorting and uniquifying the output.
5974 if sort "$nlist" | uniq > "$nlist"T; then
5975 mv -f "$nlist"T "$nlist"
5980 # Make sure that we snagged all the symbols we need.
5981 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5982 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5983 cat <<_LT_EOF > conftest.$ac_ext
5984 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5985 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5986 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5987 relocations are performed -- see ld's documentation on pseudo-relocs. */
5988 # define LT_DLSYM_CONST
5989 #elif defined(__osf__)
5990 /* This system does not cope well with relocations in const data. */
5991 # define LT_DLSYM_CONST
5993 # define LT_DLSYM_CONST const
6001 # Now generate the symbol file.
6002 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6004 cat <<_LT_EOF >> conftest.$ac_ext
6006 /* The mapping between symbol names and symbols. */
6007 LT_DLSYM_CONST struct {
6011 lt__PROGRAM__LTX_preloaded_symbols[] =
6013 { "@PROGRAM@", (void *) 0 },
6015 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6016 cat <<\_LT_EOF >> conftest.$ac_ext
6020 /* This works around a problem in FreeBSD linker */
6021 #ifdef FREEBSD_WORKAROUND
6022 static const void *lt_preloaded_setup() {
6023 return lt__PROGRAM__LTX_preloaded_symbols;
6031 # Now try linking the two files.
6032 mv conftest.$ac_objext conftstm.$ac_objext
6033 lt_globsym_save_LIBS=$LIBS
6034 lt_globsym_save_CFLAGS=$CFLAGS
6035 LIBS="conftstm.$ac_objext"
6036 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6038 (eval $ac_link) 2>&5
6040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6041 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6044 LIBS=$lt_globsym_save_LIBS
6045 CFLAGS=$lt_globsym_save_CFLAGS
6047 echo "cannot find nm_test_func in $nlist" >&5
6050 echo "cannot find nm_test_var in $nlist" >&5
6053 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6056 echo "$progname: failed program was:" >&5
6057 cat conftest.$ac_ext >&5
6059 rm -rf conftest* conftst*
6061 # Do not use the global_symbol_pipe unless it works.
6062 if test "$pipe_works" = yes; then
6065 lt_cv_sys_global_symbol_pipe=
6071 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6072 lt_cv_sys_global_symbol_to_cdecl=
6074 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6076 $as_echo "failed" >&6; }
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6079 $as_echo "ok" >&6; }
6082 # Response file support.
6083 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6084 nm_file_list_spec='@'
6085 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6086 nm_file_list_spec='@'
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6116 $as_echo_n "checking for sysroot... " >&6; }
6118 # Check whether --with-sysroot was given.
6119 if test "${with_sysroot+set}" = set; then :
6120 withval=$with_sysroot;
6127 case ${with_sysroot} in #(
6129 if test "$GCC" = yes; then
6130 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6134 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6140 $as_echo "${with_sysroot}" >&6; }
6141 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6146 $as_echo "${lt_sysroot:-no}" >&6; }
6152 # Check whether --enable-libtool-lock was given.
6153 if test "${enable_libtool_lock+set}" = set; then :
6154 enableval=$enable_libtool_lock;
6157 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6159 # Some flags need to be propagated to the compiler or linker for good
6163 # Find out which ABI we are using.
6164 echo 'int i;' > conftest.$ac_ext
6165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6166 (eval $ac_compile) 2>&5
6168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6169 test $ac_status = 0; }; then
6170 case `/usr/bin/file conftest.$ac_objext` in
6182 # Find out which ABI we are using.
6183 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6185 (eval $ac_compile) 2>&5
6187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6188 test $ac_status = 0; }; then
6189 if test "$lt_cv_prog_gnu_ld" = yes; then
6190 case `/usr/bin/file conftest.$ac_objext` in
6192 LD="${LD-ld} -melf32bsmip"
6195 LD="${LD-ld} -melf32bmipn32"
6198 LD="${LD-ld} -melf64bmip"
6202 case `/usr/bin/file conftest.$ac_objext` in
6218 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6219 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6220 # Find out which ABI we are using.
6221 echo 'int i;' > conftest.$ac_ext
6222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6223 (eval $ac_compile) 2>&5
6225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6226 test $ac_status = 0; }; then
6227 case `/usr/bin/file conftest.o` in
6230 x86_64-*kfreebsd*-gnu)
6231 LD="${LD-ld} -m elf_i386_fbsd"
6234 case `/usr/bin/file conftest.o` in
6236 LD="${LD-ld} -m elf32_x86_64"
6239 LD="${LD-ld} -m elf_i386"
6243 ppc64-*linux*|powerpc64-*linux*)
6244 LD="${LD-ld} -m elf32ppclinux"
6247 LD="${LD-ld} -m elf_s390"
6250 LD="${LD-ld} -m elf32_sparc"
6256 x86_64-*kfreebsd*-gnu)
6257 LD="${LD-ld} -m elf_x86_64_fbsd"
6260 LD="${LD-ld} -m elf_x86_64"
6262 ppc*-*linux*|powerpc*-*linux*)
6263 LD="${LD-ld} -m elf64ppc"
6265 s390*-*linux*|s390*-*tpf*)
6266 LD="${LD-ld} -m elf64_s390"
6269 LD="${LD-ld} -m elf64_sparc"
6279 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6280 SAVE_CFLAGS="$CFLAGS"
6281 CFLAGS="$CFLAGS -belf"
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6283 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6284 if ${lt_cv_cc_needs_belf+:} false; then :
6285 $as_echo_n "(cached) " >&6
6288 ac_cpp='$CPP $CPPFLAGS'
6289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6304 if ac_fn_c_try_link "$LINENO"; then :
6305 lt_cv_cc_needs_belf=yes
6307 lt_cv_cc_needs_belf=no
6309 rm -f core conftest.err conftest.$ac_objext \
6310 conftest$ac_exeext conftest.$ac_ext
6312 ac_cpp='$CPP $CPPFLAGS'
6313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6319 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6320 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6321 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6322 CFLAGS="$SAVE_CFLAGS"
6326 # Find out which ABI we are using.
6327 echo 'int i;' > conftest.$ac_ext
6328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6329 (eval $ac_compile) 2>&5
6331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6332 test $ac_status = 0; }; then
6333 case `/usr/bin/file conftest.o` in
6335 case $lt_cv_prog_gnu_ld in
6339 LD="${LD-ld} -m elf_x86_64"
6342 LD="${LD-ld} -m elf64_sparc"
6345 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6346 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6351 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6363 need_locks="$enable_libtool_lock"
6365 if test -n "$ac_tool_prefix"; then
6366 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6367 set dummy ${ac_tool_prefix}mt; ac_word=$2
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369 $as_echo_n "checking for $ac_word... " >&6; }
6370 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6371 $as_echo_n "(cached) " >&6
6373 if test -n "$MANIFEST_TOOL"; then
6374 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380 test -z "$as_dir" && as_dir=.
6381 for ac_exec_ext in '' $ac_executable_extensions; do
6382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6383 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6393 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6394 if test -n "$MANIFEST_TOOL"; then
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6396 $as_echo "$MANIFEST_TOOL" >&6; }
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399 $as_echo "no" >&6; }
6404 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6405 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6406 # Extract the first word of "mt", so it can be a program name with args.
6407 set dummy mt; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6411 $as_echo_n "(cached) " >&6
6413 if test -n "$ac_ct_MANIFEST_TOOL"; then
6414 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6434 if test -n "$ac_ct_MANIFEST_TOOL"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6436 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6442 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6445 case $cross_compiling:$ac_tool_warned in
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6449 ac_tool_warned=yes ;;
6451 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6454 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6457 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6459 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6460 if ${lt_cv_path_mainfest_tool+:} false; then :
6461 $as_echo_n "(cached) " >&6
6463 lt_cv_path_mainfest_tool=no
6464 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6465 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6466 cat conftest.err >&5
6467 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6468 lt_cv_path_mainfest_tool=yes
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6473 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6474 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6484 rhapsody* | darwin*)
6485 if test -n "$ac_tool_prefix"; then
6486 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6487 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489 $as_echo_n "checking for $ac_word... " >&6; }
6490 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6491 $as_echo_n "(cached) " >&6
6493 if test -n "$DSYMUTIL"; then
6494 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 test -z "$as_dir" && as_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6503 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6514 if test -n "$DSYMUTIL"; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6516 $as_echo "$DSYMUTIL" >&6; }
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 $as_echo "no" >&6; }
6524 if test -z "$ac_cv_prog_DSYMUTIL"; then
6525 ac_ct_DSYMUTIL=$DSYMUTIL
6526 # Extract the first word of "dsymutil", so it can be a program name with args.
6527 set dummy dsymutil; ac_word=$2
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529 $as_echo_n "checking for $ac_word... " >&6; }
6530 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6531 $as_echo_n "(cached) " >&6
6533 if test -n "$ac_ct_DSYMUTIL"; then
6534 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 test -z "$as_dir" && as_dir=.
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6543 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6554 if test -n "$ac_ct_DSYMUTIL"; then
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6556 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6562 if test "x$ac_ct_DSYMUTIL" = x; then
6565 case $cross_compiling:$ac_tool_warned in
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6569 ac_tool_warned=yes ;;
6571 DSYMUTIL=$ac_ct_DSYMUTIL
6574 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6577 if test -n "$ac_tool_prefix"; then
6578 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6579 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581 $as_echo_n "checking for $ac_word... " >&6; }
6582 if ${ac_cv_prog_NMEDIT+:} false; then :
6583 $as_echo_n "(cached) " >&6
6585 if test -n "$NMEDIT"; then
6586 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 test -z "$as_dir" && as_dir=.
6593 for ac_exec_ext in '' $ac_executable_extensions; do
6594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6595 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 NMEDIT=$ac_cv_prog_NMEDIT
6606 if test -n "$NMEDIT"; then
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6608 $as_echo "$NMEDIT" >&6; }
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 $as_echo "no" >&6; }
6616 if test -z "$ac_cv_prog_NMEDIT"; then
6617 ac_ct_NMEDIT=$NMEDIT
6618 # Extract the first word of "nmedit", so it can be a program name with args.
6619 set dummy nmedit; ac_word=$2
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621 $as_echo_n "checking for $ac_word... " >&6; }
6622 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6623 $as_echo_n "(cached) " >&6
6625 if test -n "$ac_ct_NMEDIT"; then
6626 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 test -z "$as_dir" && as_dir=.
6633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6635 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6646 if test -n "$ac_ct_NMEDIT"; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6648 $as_echo "$ac_ct_NMEDIT" >&6; }
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651 $as_echo "no" >&6; }
6654 if test "x$ac_ct_NMEDIT" = x; then
6657 case $cross_compiling:$ac_tool_warned in
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6661 ac_tool_warned=yes ;;
6663 NMEDIT=$ac_ct_NMEDIT
6666 NMEDIT="$ac_cv_prog_NMEDIT"
6669 if test -n "$ac_tool_prefix"; then
6670 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6671 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 $as_echo_n "checking for $ac_word... " >&6; }
6674 if ${ac_cv_prog_LIPO+:} false; then :
6675 $as_echo_n "(cached) " >&6
6677 if test -n "$LIPO"; then
6678 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6687 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6697 LIPO=$ac_cv_prog_LIPO
6698 if test -n "$LIPO"; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6700 $as_echo "$LIPO" >&6; }
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6708 if test -z "$ac_cv_prog_LIPO"; then
6710 # Extract the first word of "lipo", so it can be a program name with args.
6711 set dummy lipo; ac_word=$2
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713 $as_echo_n "checking for $ac_word... " >&6; }
6714 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6715 $as_echo_n "(cached) " >&6
6717 if test -n "$ac_ct_LIPO"; then
6718 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6727 ac_cv_prog_ac_ct_LIPO="lipo"
6728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6738 if test -n "$ac_ct_LIPO"; then
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6740 $as_echo "$ac_ct_LIPO" >&6; }
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743 $as_echo "no" >&6; }
6746 if test "x$ac_ct_LIPO" = x; then
6749 case $cross_compiling:$ac_tool_warned in
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6753 ac_tool_warned=yes ;;
6758 LIPO="$ac_cv_prog_LIPO"
6761 if test -n "$ac_tool_prefix"; then
6762 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6763 set dummy ${ac_tool_prefix}otool; ac_word=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if ${ac_cv_prog_OTOOL+:} false; then :
6767 $as_echo_n "(cached) " >&6
6769 if test -n "$OTOOL"; then
6770 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6779 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 OTOOL=$ac_cv_prog_OTOOL
6790 if test -n "$OTOOL"; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6792 $as_echo "$OTOOL" >&6; }
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6800 if test -z "$ac_cv_prog_OTOOL"; then
6802 # Extract the first word of "otool", so it can be a program name with args.
6803 set dummy otool; ac_word=$2
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6805 $as_echo_n "checking for $ac_word... " >&6; }
6806 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6807 $as_echo_n "(cached) " >&6
6809 if test -n "$ac_ct_OTOOL"; then
6810 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6819 ac_cv_prog_ac_ct_OTOOL="otool"
6820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6830 if test -n "$ac_ct_OTOOL"; then
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6832 $as_echo "$ac_ct_OTOOL" >&6; }
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835 $as_echo "no" >&6; }
6838 if test "x$ac_ct_OTOOL" = x; then
6841 case $cross_compiling:$ac_tool_warned in
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6845 ac_tool_warned=yes ;;
6850 OTOOL="$ac_cv_prog_OTOOL"
6853 if test -n "$ac_tool_prefix"; then
6854 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6855 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857 $as_echo_n "checking for $ac_word... " >&6; }
6858 if ${ac_cv_prog_OTOOL64+:} false; then :
6859 $as_echo_n "(cached) " >&6
6861 if test -n "$OTOOL64"; then
6862 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6871 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 OTOOL64=$ac_cv_prog_OTOOL64
6882 if test -n "$OTOOL64"; then
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6884 $as_echo "$OTOOL64" >&6; }
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887 $as_echo "no" >&6; }
6892 if test -z "$ac_cv_prog_OTOOL64"; then
6893 ac_ct_OTOOL64=$OTOOL64
6894 # Extract the first word of "otool64", so it can be a program name with args.
6895 set dummy otool64; ac_word=$2
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6897 $as_echo_n "checking for $ac_word... " >&6; }
6898 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6899 $as_echo_n "(cached) " >&6
6901 if test -n "$ac_ct_OTOOL64"; then
6902 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 test -z "$as_dir" && as_dir=.
6909 for ac_exec_ext in '' $ac_executable_extensions; do
6910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6911 ac_cv_prog_ac_ct_OTOOL64="otool64"
6912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6922 if test -n "$ac_ct_OTOOL64"; then
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6924 $as_echo "$ac_ct_OTOOL64" >&6; }
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6927 $as_echo "no" >&6; }
6930 if test "x$ac_ct_OTOOL64" = x; then
6933 case $cross_compiling:$ac_tool_warned in
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6937 ac_tool_warned=yes ;;
6939 OTOOL64=$ac_ct_OTOOL64
6942 OTOOL64="$ac_cv_prog_OTOOL64"
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6972 $as_echo_n "checking for -single_module linker flag... " >&6; }
6973 if ${lt_cv_apple_cc_single_mod+:} false; then :
6974 $as_echo_n "(cached) " >&6
6976 lt_cv_apple_cc_single_mod=no
6977 if test -z "${LT_MULTI_MODULE}"; then
6978 # By default we will add the -single_module flag. You can override
6979 # by either setting the environment variable LT_MULTI_MODULE
6980 # non-empty at configure time, or by adding -multi_module to the
6982 rm -rf libconftest.dylib*
6983 echo "int foo(void){return 1;}" > conftest.c
6984 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6985 -dynamiclib -Wl,-single_module conftest.c" >&5
6986 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6987 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6989 # If there is a non-empty error log, and "single_module"
6990 # appears in it, assume the flag caused a linker warning
6991 if test -s conftest.err && $GREP single_module conftest.err; then
6992 cat conftest.err >&5
6993 # Otherwise, if the output was created with a 0 exit code from
6994 # the compiler, it worked.
6995 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6996 lt_cv_apple_cc_single_mod=yes
6998 cat conftest.err >&5
7000 rm -rf libconftest.dylib*
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7005 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7008 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7009 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7010 $as_echo_n "(cached) " >&6
7012 lt_cv_ld_exported_symbols_list=no
7013 save_LDFLAGS=$LDFLAGS
7014 echo "_main" > conftest.sym
7015 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h. */
7027 if ac_fn_c_try_link "$LINENO"; then :
7028 lt_cv_ld_exported_symbols_list=yes
7030 lt_cv_ld_exported_symbols_list=no
7032 rm -f core conftest.err conftest.$ac_objext \
7033 conftest$ac_exeext conftest.$ac_ext
7034 LDFLAGS="$save_LDFLAGS"
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7038 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7041 $as_echo_n "checking for -force_load linker flag... " >&6; }
7042 if ${lt_cv_ld_force_load+:} false; then :
7043 $as_echo_n "(cached) " >&6
7045 lt_cv_ld_force_load=no
7046 cat > conftest.c << _LT_EOF
7047 int forced_loaded() { return 2;}
7049 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7050 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7051 echo "$AR cru libconftest.a conftest.o" >&5
7052 $AR cru libconftest.a conftest.o 2>&5
7053 echo "$RANLIB libconftest.a" >&5
7054 $RANLIB libconftest.a 2>&5
7055 cat > conftest.c << _LT_EOF
7056 int main() { return 0;}
7058 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7059 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7061 if test -s conftest.err && $GREP force_load conftest.err; then
7062 cat conftest.err >&5
7063 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7064 lt_cv_ld_force_load=yes
7066 cat conftest.err >&5
7068 rm -f conftest.err libconftest.a conftest conftest.c
7069 rm -rf conftest.dSYM
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7073 $as_echo "$lt_cv_ld_force_load" >&6; }
7075 rhapsody* | darwin1.[012])
7076 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7078 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7079 darwin*) # darwin 5.x on
7080 # if running on 10.5 or later, the deployment target defaults
7081 # to the OS version, if on x86, and 10.4, the deployment
7082 # target defaults to 10.4. Don't you love it?
7083 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7084 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7085 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7087 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7089 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7093 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7094 _lt_dar_single_mod='$single_module'
7096 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7097 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7099 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7101 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7102 _lt_dsymutil='~$DSYMUTIL $lib || :'
7110 ac_cpp='$CPP $CPPFLAGS'
7111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7115 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7116 # On Suns, sometimes $CPP names a directory.
7117 if test -n "$CPP" && test -d "$CPP"; then
7120 if test -z "$CPP"; then
7121 if ${ac_cv_prog_CPP+:} false; then :
7122 $as_echo_n "(cached) " >&6
7124 # Double quotes because CPP needs to be expanded
7125 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7128 for ac_c_preproc_warn_flag in '' yes
7130 # Use a header file that comes with gcc, so configuring glibc
7131 # with a fresh cross-compiler works.
7132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7133 # <limits.h> exists even on freestanding compilers.
7134 # On the NeXT, cc -E runs the code through the compiler's parser,
7135 # not just through cpp. "Syntax error" is here to catch this case.
7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7139 # include <limits.h>
7141 # include <assert.h>
7145 if ac_fn_c_try_cpp "$LINENO"; then :
7148 # Broken: fails on valid input.
7151 rm -f conftest.err conftest.i conftest.$ac_ext
7153 # OK, works on sane cases. Now check whether nonexistent headers
7154 # can be detected and how.
7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h. */
7157 #include <ac_nonexistent.h>
7159 if ac_fn_c_try_cpp "$LINENO"; then :
7160 # Broken: success on invalid input.
7163 # Passes both tests.
7167 rm -f conftest.err conftest.i conftest.$ac_ext
7170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7171 rm -f conftest.i conftest.err conftest.$ac_ext
7172 if $ac_preproc_ok; then :
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7185 $as_echo "$CPP" >&6; }
7187 for ac_c_preproc_warn_flag in '' yes
7189 # Use a header file that comes with gcc, so configuring glibc
7190 # with a fresh cross-compiler works.
7191 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7192 # <limits.h> exists even on freestanding compilers.
7193 # On the NeXT, cc -E runs the code through the compiler's parser,
7194 # not just through cpp. "Syntax error" is here to catch this case.
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h. */
7198 # include <limits.h>
7200 # include <assert.h>
7204 if ac_fn_c_try_cpp "$LINENO"; then :
7207 # Broken: fails on valid input.
7210 rm -f conftest.err conftest.i conftest.$ac_ext
7212 # OK, works on sane cases. Now check whether nonexistent headers
7213 # can be detected and how.
7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h. */
7216 #include <ac_nonexistent.h>
7218 if ac_fn_c_try_cpp "$LINENO"; then :
7219 # Broken: success on invalid input.
7222 # Passes both tests.
7226 rm -f conftest.err conftest.i conftest.$ac_ext
7229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7230 rm -f conftest.i conftest.err conftest.$ac_ext
7231 if $ac_preproc_ok; then :
7234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7236 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7237 See \`config.log' for more details" "$LINENO" 5; }
7241 ac_cpp='$CPP $CPPFLAGS'
7242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7248 $as_echo_n "checking for ANSI C header files... " >&6; }
7249 if ${ac_cv_header_stdc+:} false; then :
7250 $as_echo_n "(cached) " >&6
7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h. */
7267 if ac_fn_c_try_compile "$LINENO"; then :
7268 ac_cv_header_stdc=yes
7270 ac_cv_header_stdc=no
7272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7274 if test $ac_cv_header_stdc = yes; then
7275 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7277 /* end confdefs.h. */
7281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7282 $EGREP "memchr" >/dev/null 2>&1; then :
7285 ac_cv_header_stdc=no
7291 if test $ac_cv_header_stdc = yes; then
7292 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294 /* end confdefs.h. */
7298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7299 $EGREP "free" >/dev/null 2>&1; then :
7302 ac_cv_header_stdc=no
7308 if test $ac_cv_header_stdc = yes; then
7309 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7310 if test "$cross_compiling" = yes; then :
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7317 #if ((' ' & 0x0FF) == 0x020)
7318 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7319 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7321 # define ISLOWER(c) \
7322 (('a' <= (c) && (c) <= 'i') \
7323 || ('j' <= (c) && (c) <= 'r') \
7324 || ('s' <= (c) && (c) <= 'z'))
7325 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7328 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7333 for (i = 0; i < 256; i++)
7334 if (XOR (islower (i), ISLOWER (i))
7335 || toupper (i) != TOUPPER (i))
7340 if ac_fn_c_try_run "$LINENO"; then :
7343 ac_cv_header_stdc=no
7345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7346 conftest.$ac_objext conftest.beam conftest.$ac_ext
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7352 $as_echo "$ac_cv_header_stdc" >&6; }
7353 if test $ac_cv_header_stdc = yes; then
7355 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7359 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7360 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7361 inttypes.h stdint.h unistd.h
7363 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7364 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7366 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7367 cat >>confdefs.h <<_ACEOF
7368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7376 for ac_header in dlfcn.h
7378 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7380 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7381 cat >>confdefs.h <<_ACEOF
7382 #define HAVE_DLFCN_H 1
7395 enable_win32_dll=yes
7398 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7399 if test -n "$ac_tool_prefix"; then
7400 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7401 set dummy ${ac_tool_prefix}as; ac_word=$2
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7403 $as_echo_n "checking for $ac_word... " >&6; }
7404 if ${ac_cv_prog_AS+:} false; then :
7405 $as_echo_n "(cached) " >&6
7407 if test -n "$AS"; then
7408 ac_cv_prog_AS="$AS" # Let the user override the test.
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 test -z "$as_dir" && as_dir=.
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7417 ac_cv_prog_AS="${ac_tool_prefix}as"
7418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428 if test -n "$AS"; then
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7430 $as_echo "$AS" >&6; }
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433 $as_echo "no" >&6; }
7438 if test -z "$ac_cv_prog_AS"; then
7440 # Extract the first word of "as", so it can be a program name with args.
7441 set dummy as; ac_word=$2
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7443 $as_echo_n "checking for $ac_word... " >&6; }
7444 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7445 $as_echo_n "(cached) " >&6
7447 if test -n "$ac_ct_AS"; then
7448 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 test -z "$as_dir" && as_dir=.
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7457 ac_cv_prog_ac_ct_AS="as"
7458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7468 if test -n "$ac_ct_AS"; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7470 $as_echo "$ac_ct_AS" >&6; }
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473 $as_echo "no" >&6; }
7476 if test "x$ac_ct_AS" = x; then
7479 case $cross_compiling:$ac_tool_warned in
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7483 ac_tool_warned=yes ;;
7491 if test -n "$ac_tool_prefix"; then
7492 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7493 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7495 $as_echo_n "checking for $ac_word... " >&6; }
7496 if ${ac_cv_prog_DLLTOOL+:} false; then :
7497 $as_echo_n "(cached) " >&6
7499 if test -n "$DLLTOOL"; then
7500 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7509 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 DLLTOOL=$ac_cv_prog_DLLTOOL
7520 if test -n "$DLLTOOL"; then
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7522 $as_echo "$DLLTOOL" >&6; }
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7525 $as_echo "no" >&6; }
7530 if test -z "$ac_cv_prog_DLLTOOL"; then
7531 ac_ct_DLLTOOL=$DLLTOOL
7532 # Extract the first word of "dlltool", so it can be a program name with args.
7533 set dummy dlltool; ac_word=$2
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7535 $as_echo_n "checking for $ac_word... " >&6; }
7536 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7537 $as_echo_n "(cached) " >&6
7539 if test -n "$ac_ct_DLLTOOL"; then
7540 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 test -z "$as_dir" && as_dir=.
7547 for ac_exec_ext in '' $ac_executable_extensions; do
7548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7549 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7559 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7560 if test -n "$ac_ct_DLLTOOL"; then
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7562 $as_echo "$ac_ct_DLLTOOL" >&6; }
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565 $as_echo "no" >&6; }
7568 if test "x$ac_ct_DLLTOOL" = x; then
7571 case $cross_compiling:$ac_tool_warned in
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7575 ac_tool_warned=yes ;;
7577 DLLTOOL=$ac_ct_DLLTOOL
7580 DLLTOOL="$ac_cv_prog_DLLTOOL"
7583 if test -n "$ac_tool_prefix"; then
7584 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7585 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7587 $as_echo_n "checking for $ac_word... " >&6; }
7588 if ${ac_cv_prog_OBJDUMP+:} false; then :
7589 $as_echo_n "(cached) " >&6
7591 if test -n "$OBJDUMP"; then
7592 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7601 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7611 OBJDUMP=$ac_cv_prog_OBJDUMP
7612 if test -n "$OBJDUMP"; then
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7614 $as_echo "$OBJDUMP" >&6; }
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617 $as_echo "no" >&6; }
7622 if test -z "$ac_cv_prog_OBJDUMP"; then
7623 ac_ct_OBJDUMP=$OBJDUMP
7624 # Extract the first word of "objdump", so it can be a program name with args.
7625 set dummy objdump; ac_word=$2
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627 $as_echo_n "checking for $ac_word... " >&6; }
7628 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7629 $as_echo_n "(cached) " >&6
7631 if test -n "$ac_ct_OBJDUMP"; then
7632 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 test -z "$as_dir" && as_dir=.
7639 for ac_exec_ext in '' $ac_executable_extensions; do
7640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7641 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7651 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7652 if test -n "$ac_ct_OBJDUMP"; then
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7654 $as_echo "$ac_ct_OBJDUMP" >&6; }
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 $as_echo "no" >&6; }
7660 if test "x$ac_ct_OBJDUMP" = x; then
7663 case $cross_compiling:$ac_tool_warned in
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7667 ac_tool_warned=yes ;;
7669 OBJDUMP=$ac_ct_OBJDUMP
7672 OBJDUMP="$ac_cv_prog_OBJDUMP"
7678 test -z "$AS" && AS=as
7684 test -z "$DLLTOOL" && DLLTOOL=dlltool
7690 test -z "$OBJDUMP" && OBJDUMP=objdump
7695 # Check whether --enable-static was given.
7696 if test "${enable_static+set}" = set; then :
7697 enableval=$enable_static; p=${PACKAGE-default}
7699 yes) enable_static=yes ;;
7700 no) enable_static=no ;;
7703 # Look at the argument we got. We use all the common list separators.
7704 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7705 for pkg in $enableval; do
7707 if test "X$pkg" = "X$p"; then
7729 # Check whether --enable-shared was given.
7730 if test "${enable_shared+set}" = set; then :
7731 enableval=$enable_shared; p=${PACKAGE-default}
7733 yes) enable_shared=yes ;;
7734 no) enable_shared=no ;;
7737 # Look at the argument we got. We use all the common list separators.
7738 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7739 for pkg in $enableval; do
7741 if test "X$pkg" = "X$p"; then
7762 # Check whether --with-pic was given.
7763 if test "${with_pic+set}" = set; then :
7764 withval=$with_pic; lt_p=${PACKAGE-default}
7766 yes|no) pic_mode=$withval ;;
7769 # Look at the argument we got. We use all the common list separators.
7770 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7771 for lt_pkg in $withval; do
7773 if test "X$lt_pkg" = "X$lt_p"; then
7785 test -z "$pic_mode" && pic_mode=default
7793 # Check whether --enable-fast-install was given.
7794 if test "${enable_fast_install+set}" = set; then :
7795 enableval=$enable_fast_install; p=${PACKAGE-default}
7797 yes) enable_fast_install=yes ;;
7798 no) enable_fast_install=no ;;
7800 enable_fast_install=no
7801 # Look at the argument we got. We use all the common list separators.
7802 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7803 for pkg in $enableval; do
7805 if test "X$pkg" = "X$p"; then
7806 enable_fast_install=yes
7813 enable_fast_install=yes
7826 # This can be used to rebuild libtool when needed
7827 LIBTOOL_DEPS="$ltmain"
7829 # Always use our own libtool.
7830 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7861 test -z "$LN_S" && LN_S="ln -s"
7876 if test -n "${ZSH_VERSION+set}" ; then
7877 setopt NO_GLOB_SUBST
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7881 $as_echo_n "checking for objdir... " >&6; }
7882 if ${lt_cv_objdir+:} false; then :
7883 $as_echo_n "(cached) " >&6
7885 rm -f .libs 2>/dev/null
7886 mkdir .libs 2>/dev/null
7887 if test -d .libs; then
7890 # MS-DOS does not allow filenames that begin with a dot.
7893 rmdir .libs 2>/dev/null
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7896 $as_echo "$lt_cv_objdir" >&6; }
7897 objdir=$lt_cv_objdir
7903 cat >>confdefs.h <<_ACEOF
7904 #define LT_OBJDIR "$lt_cv_objdir/"
7912 # AIX sometimes has problems with the GCC collect2 program. For some
7913 # reason, if we set the COLLECT_NAMES environment variable, the problems
7914 # vanish in a puff of smoke.
7915 if test "X${COLLECT_NAMES+set}" != Xset; then
7917 export COLLECT_NAMES
7924 can_build_shared=yes
7926 # All known linkers require a `.a' archive for static linking (except MSVC,
7927 # which needs '.lib').
7930 with_gnu_ld="$lt_cv_prog_gnu_ld"
7933 old_CFLAGS="$CFLAGS"
7935 # Set sane defaults for various variables
7936 test -z "$CC" && CC=cc
7937 test -z "$LTCC" && LTCC=$CC
7938 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7939 test -z "$LD" && LD=ld
7940 test -z "$ac_objext" && ac_objext=o
7942 for cc_temp in $compiler""; do
7944 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7945 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7950 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7953 # Only perform the check for file, if the check method requires it
7954 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7955 case $deplibs_check_method in
7957 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7959 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7960 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7961 $as_echo_n "(cached) " >&6
7965 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7968 lt_save_MAGIC_CMD="$MAGIC_CMD"
7969 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7970 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7971 for ac_dir in $ac_dummy; do
7973 test -z "$ac_dir" && ac_dir=.
7974 if test -f $ac_dir/${ac_tool_prefix}file; then
7975 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7976 if test -n "$file_magic_test_file"; then
7977 case $deplibs_check_method in
7979 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7980 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7981 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7982 $EGREP "$file_magic_regex" > /dev/null; then
7987 *** Warning: the command libtool uses to detect shared libraries,
7988 *** $file_magic_cmd, produces output that libtool cannot recognize.
7989 *** The result is that libtool may fail to recognize shared libraries
7990 *** as such. This will affect the creation of libtool libraries that
7991 *** depend on shared libraries, but programs linked with such libtool
7992 *** libraries will work regardless of this problem. Nevertheless, you
7993 *** may want to report the problem to your system manager and/or to
7994 *** bug-libtool@gnu.org
8004 MAGIC_CMD="$lt_save_MAGIC_CMD"
8009 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8010 if test -n "$MAGIC_CMD"; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8012 $as_echo "$MAGIC_CMD" >&6; }
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015 $as_echo "no" >&6; }
8022 if test -z "$lt_cv_path_MAGIC_CMD"; then
8023 if test -n "$ac_tool_prefix"; then
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8025 $as_echo_n "checking for file... " >&6; }
8026 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8027 $as_echo_n "(cached) " >&6
8031 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8034 lt_save_MAGIC_CMD="$MAGIC_CMD"
8035 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8036 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8037 for ac_dir in $ac_dummy; do
8039 test -z "$ac_dir" && ac_dir=.
8040 if test -f $ac_dir/file; then
8041 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8042 if test -n "$file_magic_test_file"; then
8043 case $deplibs_check_method in
8045 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8046 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8047 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8048 $EGREP "$file_magic_regex" > /dev/null; then
8053 *** Warning: the command libtool uses to detect shared libraries,
8054 *** $file_magic_cmd, produces output that libtool cannot recognize.
8055 *** The result is that libtool may fail to recognize shared libraries
8056 *** as such. This will affect the creation of libtool libraries that
8057 *** depend on shared libraries, but programs linked with such libtool
8058 *** libraries will work regardless of this problem. Nevertheless, you
8059 *** may want to report the problem to your system manager and/or to
8060 *** bug-libtool@gnu.org
8070 MAGIC_CMD="$lt_save_MAGIC_CMD"
8075 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8076 if test -n "$MAGIC_CMD"; then
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8078 $as_echo "$MAGIC_CMD" >&6; }
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081 $as_echo "no" >&6; }
8094 # Use C for the default configuration in the libtool script
8098 ac_cpp='$CPP $CPPFLAGS'
8099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8104 # Source file extension for C test sources.
8107 # Object file extension for compiled C test sources.
8111 # Code to be used in simple compile tests
8112 lt_simple_compile_test_code="int some_variable = 0;"
8114 # Code to be used in simple link tests
8115 lt_simple_link_test_code='int main(){return(0);}'
8123 # If no C compiler was specified, use CC.
8126 # If no C compiler flags were specified, use CFLAGS.
8127 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8129 # Allow CC to be a program name with arguments.
8132 # Save the default compiler, since it gets overwritten when the other
8133 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8134 compiler_DEFAULT=$CC
8136 # save warnings/boilerplate of simple test code
8137 ac_outfile=conftest.$ac_objext
8138 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8139 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8140 _lt_compiler_boilerplate=`cat conftest.err`
8143 ac_outfile=conftest.$ac_objext
8144 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8145 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8146 _lt_linker_boilerplate=`cat conftest.err`
8151 ## There is no encapsulation within the following macros, do not change
8152 ## the running order or otherwise move them around unless you know exactly
8153 ## what you are doing...
8154 if test -n "$compiler"; then
8156 lt_prog_compiler_no_builtin_flag=
8158 if test "$GCC" = yes; then
8159 case $cc_basename in
8161 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8163 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8167 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8168 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8169 $as_echo_n "(cached) " >&6
8171 lt_cv_prog_compiler_rtti_exceptions=no
8172 ac_outfile=conftest.$ac_objext
8173 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8174 lt_compiler_flag="-fno-rtti -fno-exceptions"
8175 # Insert the option either (1) after the last *FLAGS variable, or
8176 # (2) before a word containing "conftest.", or (3) at the end.
8177 # Note that $ac_compile itself does not contain backslashes and begins
8178 # with a dollar sign (not a hyphen), so the echo should work correctly.
8179 # The option is referenced via a variable to avoid confusing sed.
8180 lt_compile=`echo "$ac_compile" | $SED \
8181 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8183 -e 's:$: $lt_compiler_flag:'`
8184 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8185 (eval "$lt_compile" 2>conftest.err)
8187 cat conftest.err >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 if (exit $ac_status) && test -s "$ac_outfile"; then
8190 # The compiler can only warn and ignore the option if not recognized
8191 # So say no if there are warnings other than the usual output.
8192 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8193 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8194 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8195 lt_cv_prog_compiler_rtti_exceptions=yes
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8202 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8204 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8205 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8217 lt_prog_compiler_wl=
8218 lt_prog_compiler_pic=
8219 lt_prog_compiler_static=
8222 if test "$GCC" = yes; then
8223 lt_prog_compiler_wl='-Wl,'
8224 lt_prog_compiler_static='-static'
8228 # All AIX code is PIC.
8229 if test "$host_cpu" = ia64; then
8230 # AIX 5 now supports IA64 processor
8231 lt_prog_compiler_static='-Bstatic'
8238 # see comment about AmigaOS4 .so support
8239 lt_prog_compiler_pic='-fPIC'
8242 # FIXME: we need at least 68020 code to build shared libraries, but
8243 # adding the `-m68020' flag to GCC prevents building anything better,
8245 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8250 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8251 # PIC is the default for these OSes.
8254 mingw* | cygwin* | pw32* | os2* | cegcc*)
8255 # This hack is so that the source file can tell whether it is being
8256 # built for inclusion in a dll (and should export symbols for example).
8257 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8258 # (--disable-auto-import) libraries
8259 lt_prog_compiler_pic='-DDLL_EXPORT'
8262 darwin* | rhapsody*)
8263 # PIC is the default on this platform
8264 # Common symbols not allowed in MH_DYLIB files
8265 lt_prog_compiler_pic='-fno-common'
8269 # PIC is the default for Haiku.
8270 # The "-static" flag exists, but is broken.
8271 lt_prog_compiler_static=
8275 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8276 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8277 # sets the default TLS model and affects inlining.
8283 lt_prog_compiler_pic='-fPIC'
8289 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8290 # Instead, we relocate shared libraries at runtime.
8294 # Just because we use GCC doesn't mean we suddenly get shared libraries
8295 # on systems that don't support them.
8296 lt_prog_compiler_can_build_shared=no
8301 # QNX uses GNU C++, but need to define -shared option too, otherwise
8303 lt_prog_compiler_pic='-fPIC -shared'
8307 if test -d /usr/nec; then
8308 lt_prog_compiler_pic=-Kconform_pic
8313 lt_prog_compiler_pic='-fPIC'
8317 case $cc_basename in
8318 nvcc*) # Cuda Compiler Driver 2.2
8319 lt_prog_compiler_wl='-Xlinker '
8320 if test -n "$lt_prog_compiler_pic"; then
8321 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8326 # PORTME Check for flag to pass linker flags through the system compiler.
8329 lt_prog_compiler_wl='-Wl,'
8330 if test "$host_cpu" = ia64; then
8331 # AIX 5 now supports IA64 processor
8332 lt_prog_compiler_static='-Bstatic'
8334 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8338 mingw* | cygwin* | pw32* | os2* | cegcc*)
8339 # This hack is so that the source file can tell whether it is being
8340 # built for inclusion in a dll (and should export symbols for example).
8341 lt_prog_compiler_pic='-DDLL_EXPORT'
8344 hpux9* | hpux10* | hpux11*)
8345 lt_prog_compiler_wl='-Wl,'
8346 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8353 lt_prog_compiler_pic='+Z'
8356 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8357 lt_prog_compiler_static='${wl}-a ${wl}archive'
8360 irix5* | irix6* | nonstopux*)
8361 lt_prog_compiler_wl='-Wl,'
8362 # PIC (with -KPIC) is the default.
8363 lt_prog_compiler_static='-non_shared'
8366 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8367 case $cc_basename in
8368 # old Intel for x86_64 which still supported -KPIC.
8370 lt_prog_compiler_wl='-Wl,'
8371 lt_prog_compiler_pic='-KPIC'
8372 lt_prog_compiler_static='-static'
8374 # icc used to be incompatible with GCC.
8375 # ICC 10 doesn't accept -KPIC any more.
8377 lt_prog_compiler_wl='-Wl,'
8378 lt_prog_compiler_pic='-fPIC'
8379 lt_prog_compiler_static='-static'
8381 # Lahey Fortran 8.1.
8383 lt_prog_compiler_wl='-Wl,'
8384 lt_prog_compiler_pic='--shared'
8385 lt_prog_compiler_static='--static'
8388 # NAG Fortran compiler
8389 lt_prog_compiler_wl='-Wl,-Wl,,'
8390 lt_prog_compiler_pic='-PIC'
8391 lt_prog_compiler_static='-Bstatic'
8393 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8394 # Portland Group compilers (*not* the Pentium gcc compiler,
8395 # which looks to be a dead project)
8396 lt_prog_compiler_wl='-Wl,'
8397 lt_prog_compiler_pic='-fpic'
8398 lt_prog_compiler_static='-Bstatic'
8401 lt_prog_compiler_wl='-Wl,'
8402 # All Alpha code is PIC.
8403 lt_prog_compiler_static='-non_shared'
8405 xl* | bgxl* | bgf* | mpixl*)
8406 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8407 lt_prog_compiler_wl='-Wl,'
8408 lt_prog_compiler_pic='-qpic'
8409 lt_prog_compiler_static='-qstaticlink'
8412 case `$CC -V 2>&1 | sed 5q` in
8413 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8414 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8415 lt_prog_compiler_pic='-KPIC'
8416 lt_prog_compiler_static='-Bstatic'
8417 lt_prog_compiler_wl=''
8419 *Sun\ F* | *Sun*Fortran*)
8420 lt_prog_compiler_pic='-KPIC'
8421 lt_prog_compiler_static='-Bstatic'
8422 lt_prog_compiler_wl='-Qoption ld '
8426 lt_prog_compiler_pic='-KPIC'
8427 lt_prog_compiler_static='-Bstatic'
8428 lt_prog_compiler_wl='-Wl,'
8430 *Intel*\ [CF]*Compiler*)
8431 lt_prog_compiler_wl='-Wl,'
8432 lt_prog_compiler_pic='-fPIC'
8433 lt_prog_compiler_static='-static'
8436 lt_prog_compiler_wl='-Wl,'
8437 lt_prog_compiler_pic='-fpic'
8438 lt_prog_compiler_static='-Bstatic'
8446 lt_prog_compiler_pic='-KPIC'
8447 lt_prog_compiler_static='-Bstatic'
8451 # QNX uses GNU C++, but need to define -shared option too, otherwise
8453 lt_prog_compiler_pic='-fPIC -shared'
8456 osf3* | osf4* | osf5*)
8457 lt_prog_compiler_wl='-Wl,'
8458 # All OSF/1 code is PIC.
8459 lt_prog_compiler_static='-non_shared'
8463 lt_prog_compiler_static='-non_shared'
8467 lt_prog_compiler_pic='-KPIC'
8468 lt_prog_compiler_static='-Bstatic'
8469 case $cc_basename in
8470 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8471 lt_prog_compiler_wl='-Qoption ld ';;
8473 lt_prog_compiler_wl='-Wl,';;
8478 lt_prog_compiler_wl='-Qoption ld '
8479 lt_prog_compiler_pic='-PIC'
8480 lt_prog_compiler_static='-Bstatic'
8483 sysv4 | sysv4.2uw2* | sysv4.3*)
8484 lt_prog_compiler_wl='-Wl,'
8485 lt_prog_compiler_pic='-KPIC'
8486 lt_prog_compiler_static='-Bstatic'
8490 if test -d /usr/nec ;then
8491 lt_prog_compiler_pic='-Kconform_pic'
8492 lt_prog_compiler_static='-Bstatic'
8496 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8497 lt_prog_compiler_wl='-Wl,'
8498 lt_prog_compiler_pic='-KPIC'
8499 lt_prog_compiler_static='-Bstatic'
8503 lt_prog_compiler_wl='-Wl,'
8504 lt_prog_compiler_can_build_shared=no
8508 lt_prog_compiler_pic='-pic'
8509 lt_prog_compiler_static='-Bstatic'
8513 lt_prog_compiler_can_build_shared=no
8519 # For platforms which do not support PIC, -DPIC is meaningless:
8521 lt_prog_compiler_pic=
8524 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8529 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8530 if ${lt_cv_prog_compiler_pic+:} false; then :
8531 $as_echo_n "(cached) " >&6
8533 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8536 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8537 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8540 # Check to make sure the PIC flag actually works.
8542 if test -n "$lt_prog_compiler_pic"; then
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8544 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8545 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8546 $as_echo_n "(cached) " >&6
8548 lt_cv_prog_compiler_pic_works=no
8549 ac_outfile=conftest.$ac_objext
8550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8551 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8552 # Insert the option either (1) after the last *FLAGS variable, or
8553 # (2) before a word containing "conftest.", or (3) at the end.
8554 # Note that $ac_compile itself does not contain backslashes and begins
8555 # with a dollar sign (not a hyphen), so the echo should work correctly.
8556 # The option is referenced via a variable to avoid confusing sed.
8557 lt_compile=`echo "$ac_compile" | $SED \
8558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8560 -e 's:$: $lt_compiler_flag:'`
8561 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8562 (eval "$lt_compile" 2>conftest.err)
8564 cat conftest.err >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 if (exit $ac_status) && test -s "$ac_outfile"; then
8567 # The compiler can only warn and ignore the option if not recognized
8568 # So say no if there are warnings other than the usual output.
8569 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8570 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8571 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8572 lt_cv_prog_compiler_pic_works=yes
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8579 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8581 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8582 case $lt_prog_compiler_pic in
8584 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8587 lt_prog_compiler_pic=
8588 lt_prog_compiler_can_build_shared=no
8604 # Check to make sure the static flag actually works.
8606 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8608 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8609 if ${lt_cv_prog_compiler_static_works+:} false; then :
8610 $as_echo_n "(cached) " >&6
8612 lt_cv_prog_compiler_static_works=no
8613 save_LDFLAGS="$LDFLAGS"
8614 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8615 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8616 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8617 # The linker can only warn and ignore the option if not recognized
8618 # So say no if there are warnings
8619 if test -s conftest.err; then
8620 # Append any errors to the config.log.
8621 cat conftest.err 1>&5
8622 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8623 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8624 if diff conftest.exp conftest.er2 >/dev/null; then
8625 lt_cv_prog_compiler_static_works=yes
8628 lt_cv_prog_compiler_static_works=yes
8632 LDFLAGS="$save_LDFLAGS"
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8636 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8638 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8641 lt_prog_compiler_static=
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8651 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8652 if ${lt_cv_prog_compiler_c_o+:} false; then :
8653 $as_echo_n "(cached) " >&6
8655 lt_cv_prog_compiler_c_o=no
8656 $RM -r conftest 2>/dev/null
8660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8662 lt_compiler_flag="-o out/conftest2.$ac_objext"
8663 # Insert the option either (1) after the last *FLAGS variable, or
8664 # (2) before a word containing "conftest.", or (3) at the end.
8665 # Note that $ac_compile itself does not contain backslashes and begins
8666 # with a dollar sign (not a hyphen), so the echo should work correctly.
8667 lt_compile=`echo "$ac_compile" | $SED \
8668 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8669 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8670 -e 's:$: $lt_compiler_flag:'`
8671 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8672 (eval "$lt_compile" 2>out/conftest.err)
8674 cat out/conftest.err >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8678 # The compiler can only warn and ignore the option if not recognized
8679 # So say no if there are warnings
8680 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8681 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8682 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8683 lt_cv_prog_compiler_c_o=yes
8688 # SGI C++ compiler will create directory out/ii_files/ for
8689 # template instantiation
8690 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8691 $RM out/* && rmdir out
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8698 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8706 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8707 if ${lt_cv_prog_compiler_c_o+:} false; then :
8708 $as_echo_n "(cached) " >&6
8710 lt_cv_prog_compiler_c_o=no
8711 $RM -r conftest 2>/dev/null
8715 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8717 lt_compiler_flag="-o out/conftest2.$ac_objext"
8718 # Insert the option either (1) after the last *FLAGS variable, or
8719 # (2) before a word containing "conftest.", or (3) at the end.
8720 # Note that $ac_compile itself does not contain backslashes and begins
8721 # with a dollar sign (not a hyphen), so the echo should work correctly.
8722 lt_compile=`echo "$ac_compile" | $SED \
8723 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8725 -e 's:$: $lt_compiler_flag:'`
8726 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8727 (eval "$lt_compile" 2>out/conftest.err)
8729 cat out/conftest.err >&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8733 # The compiler can only warn and ignore the option if not recognized
8734 # So say no if there are warnings
8735 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8736 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8737 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8738 lt_cv_prog_compiler_c_o=yes
8743 # SGI C++ compiler will create directory out/ii_files/ for
8744 # template instantiation
8745 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8746 $RM out/* && rmdir out
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8753 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8758 hard_links="nottested"
8759 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8760 # do not overwrite the value of need_locks provided by the user
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8762 $as_echo_n "checking if we can lock with hard links... " >&6; }
8765 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8767 ln conftest.a conftest.b 2>&5 || hard_links=no
8768 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8770 $as_echo "$hard_links" >&6; }
8771 if test "$hard_links" = no; then
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8773 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8786 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8789 allow_undefined_flag=
8790 always_export_symbols=no
8792 archive_expsym_cmds=
8793 compiler_needs_object=no
8794 enable_shared_with_static_runtimes=no
8795 export_dynamic_flag_spec=
8796 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8797 hardcode_automatic=no
8799 hardcode_direct_absolute=no
8800 hardcode_libdir_flag_spec=
8801 hardcode_libdir_separator=
8803 hardcode_shlibpath_var=unsupported
8805 link_all_deplibs=unknown
8808 old_archive_from_new_cmds=
8809 old_archive_from_expsyms_cmds=
8810 thread_safe_flag_spec=
8811 whole_archive_flag_spec=
8812 # include_expsyms should be a list of space-separated symbols to be *always*
8813 # included in the symbol list
8815 # exclude_expsyms can be an extended regexp of symbols to exclude
8816 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8817 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8818 # as well as any symbol that contains `d'.
8819 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8820 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8821 # platforms (ab)use it in PIC code, but their linkers get confused if
8822 # the symbol is explicitly referenced. Since portable code cannot
8823 # rely on this symbol name, it's probably fine to never include it in
8824 # preloaded symbol tables.
8825 # Exclude shared library initialization/finalization symbols.
8826 extract_expsyms_cmds=
8829 cygwin* | mingw* | pw32* | cegcc*)
8830 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8831 # When not using gcc, we currently assume that we are using
8832 # Microsoft Visual C++.
8833 if test "$GCC" != yes; then
8838 # we just hope/assume this is gcc and not c89 (= MSVC++)
8844 linux* | k*bsd*-gnu | gnu*)
8851 # On some targets, GNU ld is compatible enough with the native linker
8852 # that we're better off using the native interface for both.
8853 lt_use_gnu_ld_interface=no
8854 if test "$with_gnu_ld" = yes; then
8857 # The AIX port of GNU ld has always aspired to compatibility
8858 # with the native linker. However, as the warning in the GNU ld
8859 # block says, versions before 2.19.5* couldn't really create working
8860 # shared libraries, regardless of the interface used.
8861 case `$LD -v 2>&1` in
8862 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8863 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8864 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8866 lt_use_gnu_ld_interface=yes
8871 lt_use_gnu_ld_interface=yes
8876 if test "$lt_use_gnu_ld_interface" = yes; then
8877 # If archive_cmds runs LD, not CC, wlarc should be empty
8880 # Set some defaults for GNU ld with shared library support. These
8881 # are reset later if shared libraries are not supported. Putting them
8882 # here allows them to be overridden if necessary.
8883 runpath_var=LD_RUN_PATH
8884 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8885 export_dynamic_flag_spec='${wl}--export-dynamic'
8886 # ancient GNU ld didn't support --whole-archive et. al.
8887 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8888 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8890 whole_archive_flag_spec=
8892 supports_anon_versioning=no
8893 case `$LD -v 2>&1` in
8894 *GNU\ gold*) supports_anon_versioning=yes ;;
8895 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8896 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8897 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8898 *\ 2.11.*) ;; # other 2.11 versions
8899 *) supports_anon_versioning=yes ;;
8902 # See if GNU ld supports shared libraries.
8905 # On AIX/PPC, the GNU linker is very broken
8906 if test "$host_cpu" != ia64; then
8910 *** Warning: the GNU linker, at least up to release 2.19, is reported
8911 *** to be unable to reliably create shared libraries on AIX.
8912 *** Therefore, libtool is disabling shared libraries support. If you
8913 *** really care for shared libraries, you may want to install binutils
8914 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8915 *** You will then need to restart the configuration process.
8924 # see comment about AmigaOS4 .so support
8925 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8926 archive_expsym_cmds=''
8929 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)'
8930 hardcode_libdir_flag_spec='-L$libdir'
8931 hardcode_minus_L=yes
8937 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8938 allow_undefined_flag=unsupported
8939 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8940 # support --undefined. This deserves some investigation. FIXME
8941 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8947 cygwin* | mingw* | pw32* | cegcc*)
8948 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8949 # as there is no search path for DLLs.
8950 hardcode_libdir_flag_spec='-L$libdir'
8951 export_dynamic_flag_spec='${wl}--export-all-symbols'
8952 allow_undefined_flag=unsupported
8953 always_export_symbols=no
8954 enable_shared_with_static_runtimes=yes
8955 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'
8956 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8958 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8959 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8960 # If the export-symbols file already is a .def file (1st line
8961 # is EXPORTS), use it as is; otherwise, prepend...
8962 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8963 cp $export_symbols $output_objdir/$soname.def;
8965 echo EXPORTS > $output_objdir/$soname.def;
8966 cat $export_symbols >> $output_objdir/$soname.def;
8968 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8975 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8976 link_all_deplibs=yes
8981 hardcode_shlibpath_var=no
8982 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8983 export_dynamic_flag_spec='${wl}-E'
8984 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8985 # Instead, shared libraries are loaded at an image base (0x10000000 by
8986 # default) and relocated if they conflict, which is a slow very memory
8987 # consuming and fragmenting process. To avoid this, we pick a random,
8988 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8989 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8990 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8991 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'
8994 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8996 if test "$host_os" = linux-dietlibc; then
8997 case $cc_basename in
8998 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9001 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9002 && test "$tmp_diet" = no
9004 tmp_addflag=' $pic_flag'
9005 tmp_sharedflag='-shared'
9006 case $cc_basename,$host_cpu in
9007 pgcc*) # Portland Group C compiler
9008 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'
9009 tmp_addflag=' $pic_flag'
9011 pgf77* | pgf90* | pgf95* | pgfortran*)
9012 # Portland Group f77 and f90 compilers
9013 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'
9014 tmp_addflag=' $pic_flag -Mnomain' ;;
9015 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9016 tmp_addflag=' -i_dynamic' ;;
9017 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9018 tmp_addflag=' -i_dynamic -nofor_main' ;;
9019 ifc* | ifort*) # Intel Fortran compiler
9020 tmp_addflag=' -nofor_main' ;;
9021 lf95*) # Lahey Fortran 8.1
9022 whole_archive_flag_spec=
9023 tmp_sharedflag='--shared' ;;
9024 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9025 tmp_sharedflag='-qmkshrobj'
9027 nvcc*) # Cuda Compiler Driver 2.2
9028 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'
9029 compiler_needs_object=yes
9032 case `$CC -V 2>&1 | sed 5q` in
9033 *Sun\ C*) # Sun C 5.9
9034 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'
9035 compiler_needs_object=yes
9036 tmp_sharedflag='-G' ;;
9037 *Sun\ F*) # Sun Fortran 8.3
9038 tmp_sharedflag='-G' ;;
9040 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9042 if test "x$supports_anon_versioning" = xyes; then
9043 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9044 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9045 echo "local: *; };" >> $output_objdir/$libname.ver~
9046 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9049 case $cc_basename in
9050 xlf* | bgf* | bgxlf* | mpixlf*)
9051 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9052 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9053 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9054 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9055 if test "x$supports_anon_versioning" = xyes; then
9056 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9057 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9058 echo "local: *; };" >> $output_objdir/$libname.ver~
9059 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9068 netbsd* | netbsdelf*-gnu)
9069 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9070 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9073 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9074 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9079 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9083 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9084 *** create shared libraries on Solaris systems. Therefore, libtool
9085 *** is disabling shared libraries support. We urge you to upgrade GNU
9086 *** binutils to release 2.9.1 or newer. Another option is to modify
9087 *** your PATH or compiler configuration so that the native linker is
9088 *** used, and then restart.
9091 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9092 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9093 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9099 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9100 case `$LD -v 2>&1` in
9101 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9105 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9106 *** reliably create shared libraries on SCO systems. Therefore, libtool
9107 *** is disabling shared libraries support. We urge you to upgrade GNU
9108 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9109 *** your PATH or compiler configuration so that the native linker is
9110 *** used, and then restart.
9115 # For security reasons, it is highly recommended that you always
9116 # use absolute paths for naming shared libraries, and exclude the
9117 # DT_RUNPATH tag from executables and libraries. But doing so
9118 # requires that you compile everything twice, which is a pain.
9119 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9120 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9122 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9131 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9134 hardcode_shlibpath_var=no
9138 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9139 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9140 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9147 if test "$ld_shlibs" = no; then
9149 hardcode_libdir_flag_spec=
9150 export_dynamic_flag_spec=
9151 whole_archive_flag_spec=
9154 # PORTME fill in a description of your system's linker (not GNU ld)
9157 allow_undefined_flag=unsupported
9158 always_export_symbols=yes
9159 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'
9160 # Note: this linker hardcodes the directories in LIBPATH if there
9161 # are no directories specified by -L.
9162 hardcode_minus_L=yes
9163 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9164 # Neither direct hardcoding nor static linking is supported with a
9166 hardcode_direct=unsupported
9171 if test "$host_cpu" = ia64; then
9172 # On IA64, the linker does run time linking by default, so we don't
9173 # have to do anything special.
9174 aix_use_runtimelinking=no
9175 exp_sym_flag='-Bexport'
9178 # If we're using GNU nm, then we don't want the "-C" option.
9179 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9180 # Also, AIX nm treats weak defined symbols like other global
9181 # defined symbols, whereas GNU nm marks them as "W".
9182 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9183 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'
9185 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'
9187 aix_use_runtimelinking=no
9189 # Test if we are trying to use run time linking or normal
9190 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9191 # need to do runtime linking.
9192 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9193 for ld_flag in $LDFLAGS; do
9194 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9195 aix_use_runtimelinking=yes
9202 exp_sym_flag='-bexport'
9203 no_entry_flag='-bnoentry'
9206 # When large executables or shared objects are built, AIX ld can
9207 # have problems creating the table of contents. If linking a library
9208 # or program results in "error TOC overflow" add -mminimal-toc to
9209 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9210 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9214 hardcode_direct_absolute=yes
9215 hardcode_libdir_separator=':'
9216 link_all_deplibs=yes
9217 file_list_spec='${wl}-f,'
9219 if test "$GCC" = yes; then
9220 case $host_os in aix4.[012]|aix4.[012].*)
9221 # We only want to do this on AIX 4.2 and lower, the check
9222 # below for broken collect2 doesn't work under 4.3+
9223 collect2name=`${CC} -print-prog-name=collect2`
9224 if test -f "$collect2name" &&
9225 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9227 # We have reworked collect2
9230 # We have old collect2
9231 hardcode_direct=unsupported
9232 # It fails to find uninstalled libraries when the uninstalled
9233 # path is not listed in the libpath. Setting hardcode_minus_L
9234 # to unsupported forces relinking
9235 hardcode_minus_L=yes
9236 hardcode_libdir_flag_spec='-L$libdir'
9237 hardcode_libdir_separator=
9241 shared_flag='-shared'
9242 if test "$aix_use_runtimelinking" = yes; then
9243 shared_flag="$shared_flag "'${wl}-G'
9248 if test "$host_cpu" = ia64; then
9249 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9250 # chokes on -Wl,-G. The following line is correct:
9253 if test "$aix_use_runtimelinking" = yes; then
9254 shared_flag='${wl}-G'
9256 shared_flag='${wl}-bM:SRE'
9261 export_dynamic_flag_spec='${wl}-bexpall'
9262 # It seems that -bexpall does not export symbols beginning with
9263 # underscore (_), so it is better to generate a list of symbols to export.
9264 always_export_symbols=yes
9265 if test "$aix_use_runtimelinking" = yes; then
9266 # Warning - without using the other runtime loading flags (-brtl),
9267 # -berok will link without error, but may produce a broken library.
9268 allow_undefined_flag='-berok'
9269 # Determine the default libpath from the value encoded in an
9271 if test "${lt_cv_aix_libpath+set}" = set; then
9272 aix_libpath=$lt_cv_aix_libpath
9274 if ${lt_cv_aix_libpath_+:} false; then :
9275 $as_echo_n "(cached) " >&6
9277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278 /* end confdefs.h. */
9288 if ac_fn_c_try_link "$LINENO"; then :
9290 lt_aix_libpath_sed='
9291 /Import File Strings/,/^$/ {
9293 s/^0 *\([^ ]*\) *$/\1/
9297 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9298 # Check for a 64-bit object if we didn't find anything.
9299 if test -z "$lt_cv_aix_libpath_"; then
9300 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9303 rm -f core conftest.err conftest.$ac_objext \
9304 conftest$ac_exeext conftest.$ac_ext
9305 if test -z "$lt_cv_aix_libpath_"; then
9306 lt_cv_aix_libpath_="/usr/lib:/lib"
9311 aix_libpath=$lt_cv_aix_libpath_
9314 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9315 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"
9317 if test "$host_cpu" = ia64; then
9318 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9319 allow_undefined_flag="-z nodefs"
9320 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"
9322 # Determine the default libpath from the value encoded in an
9324 if test "${lt_cv_aix_libpath+set}" = set; then
9325 aix_libpath=$lt_cv_aix_libpath
9327 if ${lt_cv_aix_libpath_+:} false; then :
9328 $as_echo_n "(cached) " >&6
9330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331 /* end confdefs.h. */
9341 if ac_fn_c_try_link "$LINENO"; then :
9343 lt_aix_libpath_sed='
9344 /Import File Strings/,/^$/ {
9346 s/^0 *\([^ ]*\) *$/\1/
9350 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9351 # Check for a 64-bit object if we didn't find anything.
9352 if test -z "$lt_cv_aix_libpath_"; then
9353 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9356 rm -f core conftest.err conftest.$ac_objext \
9357 conftest$ac_exeext conftest.$ac_ext
9358 if test -z "$lt_cv_aix_libpath_"; then
9359 lt_cv_aix_libpath_="/usr/lib:/lib"
9364 aix_libpath=$lt_cv_aix_libpath_
9367 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9368 # Warning - without using the other run time loading flags,
9369 # -berok will link without error, but may produce a broken library.
9370 no_undefined_flag=' ${wl}-bernotok'
9371 allow_undefined_flag=' ${wl}-berok'
9372 if test "$with_gnu_ld" = yes; then
9373 # We only use this code for GNU lds that support --whole-archive.
9374 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9376 # Exported symbols can be pulled into shared objects from archives
9377 whole_archive_flag_spec='$convenience'
9379 archive_cmds_need_lc=yes
9380 # This is similar to how AIX traditionally builds its shared libraries.
9381 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'
9389 # see comment about AmigaOS4 .so support
9390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9391 archive_expsym_cmds=''
9394 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)'
9395 hardcode_libdir_flag_spec='-L$libdir'
9396 hardcode_minus_L=yes
9402 export_dynamic_flag_spec=-rdynamic
9405 cygwin* | mingw* | pw32* | cegcc*)
9406 # When not using gcc, we currently assume that we are using
9407 # Microsoft Visual C++.
9408 # hardcode_libdir_flag_spec is actually meaningless, as there is
9409 # no search path for DLLs.
9410 case $cc_basename in
9413 hardcode_libdir_flag_spec=' '
9414 allow_undefined_flag=unsupported
9415 always_export_symbols=yes
9417 # Tell ltmain to make .lib files, not .a files.
9419 # Tell ltmain to make .dll files, not .so files.
9421 # FIXME: Setting linknames here is a bad hack.
9422 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9423 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9424 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9426 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9428 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9430 # The linker will not automatically build a static lib if we build a DLL.
9431 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9432 enable_shared_with_static_runtimes=yes
9433 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9434 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9436 old_postinstall_cmds='chmod 644 $oldlib'
9437 postlink_cmds='lt_outputfile="@OUTPUT@"~
9438 lt_tool_outputfile="@TOOL_OUTPUT@"~
9439 case $lt_outputfile in
9442 lt_outputfile="$lt_outputfile.exe"
9443 lt_tool_outputfile="$lt_tool_outputfile.exe"
9446 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9447 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9448 $RM "$lt_outputfile.manifest";
9452 # Assume MSVC wrapper
9453 hardcode_libdir_flag_spec=' '
9454 allow_undefined_flag=unsupported
9455 # Tell ltmain to make .lib files, not .a files.
9457 # Tell ltmain to make .dll files, not .so files.
9459 # FIXME: Setting linknames here is a bad hack.
9460 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9461 # The linker will automatically build a .lib file if we build a DLL.
9462 old_archive_from_new_cmds='true'
9463 # FIXME: Should let the user specify the lib program.
9464 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9465 enable_shared_with_static_runtimes=yes
9470 darwin* | rhapsody*)
9473 archive_cmds_need_lc=no
9475 hardcode_automatic=yes
9476 hardcode_shlibpath_var=unsupported
9477 if test "$lt_cv_ld_force_load" = "yes"; then
9478 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\"`'
9481 whole_archive_flag_spec=''
9483 link_all_deplibs=yes
9484 allow_undefined_flag="$_lt_dar_allow_undefined"
9485 case $cc_basename in
9486 ifort*) _lt_dar_can_shared=yes ;;
9487 *) _lt_dar_can_shared=$GCC ;;
9489 if test "$_lt_dar_can_shared" = "yes"; then
9490 output_verbose_link_cmd=func_echo_all
9491 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9492 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9493 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}"
9494 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}"
9503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9504 hardcode_libdir_flag_spec='-L$libdir'
9505 hardcode_shlibpath_var=no
9508 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9509 # support. Future versions do this automatically, but an explicit c++rt0.o
9510 # does not break anything, and helps significantly (at the cost of a little
9513 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9514 hardcode_libdir_flag_spec='-R$libdir'
9516 hardcode_shlibpath_var=no
9519 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9521 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9523 hardcode_minus_L=yes
9524 hardcode_shlibpath_var=no
9527 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9528 freebsd* | dragonfly*)
9529 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9530 hardcode_libdir_flag_spec='-R$libdir'
9532 hardcode_shlibpath_var=no
9536 if test "$GCC" = yes; then
9537 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'
9539 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'
9541 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9542 hardcode_libdir_separator=:
9545 # hardcode_minus_L: Not really in the search PATH,
9546 # but as the default location of the library.
9547 hardcode_minus_L=yes
9548 export_dynamic_flag_spec='${wl}-E'
9552 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9553 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9555 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9557 if test "$with_gnu_ld" = no; then
9558 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9559 hardcode_libdir_separator=:
9561 hardcode_direct_absolute=yes
9562 export_dynamic_flag_spec='${wl}-E'
9563 # hardcode_minus_L: Not really in the search PATH,
9564 # but as the default location of the library.
9565 hardcode_minus_L=yes
9570 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9573 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9576 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9579 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9585 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9588 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9592 # Older versions of the 11.00 compiler do not understand -b yet
9593 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9595 $as_echo_n "checking if $CC understands -b... " >&6; }
9596 if ${lt_cv_prog_compiler__b+:} false; then :
9597 $as_echo_n "(cached) " >&6
9599 lt_cv_prog_compiler__b=no
9600 save_LDFLAGS="$LDFLAGS"
9601 LDFLAGS="$LDFLAGS -b"
9602 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9603 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9604 # The linker can only warn and ignore the option if not recognized
9605 # So say no if there are warnings
9606 if test -s conftest.err; then
9607 # Append any errors to the config.log.
9608 cat conftest.err 1>&5
9609 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9610 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9611 if diff conftest.exp conftest.er2 >/dev/null; then
9612 lt_cv_prog_compiler__b=yes
9615 lt_cv_prog_compiler__b=yes
9619 LDFLAGS="$save_LDFLAGS"
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9623 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9625 if test x"$lt_cv_prog_compiler__b" = xyes; then
9626 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9628 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9634 if test "$with_gnu_ld" = no; then
9635 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9636 hardcode_libdir_separator=:
9641 hardcode_shlibpath_var=no
9645 hardcode_direct_absolute=yes
9646 export_dynamic_flag_spec='${wl}-E'
9648 # hardcode_minus_L: Not really in the search PATH,
9649 # but as the default location of the library.
9650 hardcode_minus_L=yes
9656 irix5* | irix6* | nonstopux*)
9657 if test "$GCC" = yes; then
9658 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'
9659 # Try to use the -exported_symbol ld option, if it does not
9660 # work, assume that -exports_file does not work either and
9661 # implicitly export all symbols.
9662 # This should be the same for all languages, so no per-tag cache variable.
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9664 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9665 if ${lt_cv_irix_exported_symbol+:} false; then :
9666 $as_echo_n "(cached) " >&6
9668 save_LDFLAGS="$LDFLAGS"
9669 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9671 /* end confdefs.h. */
9672 int foo (void) { return 0; }
9674 if ac_fn_c_try_link "$LINENO"; then :
9675 lt_cv_irix_exported_symbol=yes
9677 lt_cv_irix_exported_symbol=no
9679 rm -f core conftest.err conftest.$ac_objext \
9680 conftest$ac_exeext conftest.$ac_ext
9681 LDFLAGS="$save_LDFLAGS"
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9684 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9685 if test "$lt_cv_irix_exported_symbol" = yes; then
9686 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'
9689 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'
9690 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'
9692 archive_cmds_need_lc='no'
9693 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9694 hardcode_libdir_separator=:
9696 link_all_deplibs=yes
9699 netbsd* | netbsdelf*-gnu)
9700 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9701 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9703 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9705 hardcode_libdir_flag_spec='-R$libdir'
9707 hardcode_shlibpath_var=no
9711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9713 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9714 hardcode_libdir_separator=:
9715 hardcode_shlibpath_var=no
9722 if test -f /usr/libexec/ld.so; then
9724 hardcode_shlibpath_var=no
9725 hardcode_direct_absolute=yes
9726 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9727 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9728 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9729 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9730 export_dynamic_flag_spec='${wl}-E'
9733 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9734 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9735 hardcode_libdir_flag_spec='-R$libdir'
9738 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9739 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9749 hardcode_libdir_flag_spec='-L$libdir'
9750 hardcode_minus_L=yes
9751 allow_undefined_flag=unsupported
9752 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'
9753 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9757 if test "$GCC" = yes; then
9758 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9759 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'
9761 allow_undefined_flag=' -expect_unresolved \*'
9762 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'
9764 archive_cmds_need_lc='no'
9765 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9766 hardcode_libdir_separator=:
9769 osf4* | osf5*) # as osf3* with the addition of -msym flag
9770 if test "$GCC" = yes; then
9771 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9772 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'
9773 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9775 allow_undefined_flag=' -expect_unresolved \*'
9776 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'
9777 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~
9778 $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'
9780 # Both c and cxx compiler support -rpath directly
9781 hardcode_libdir_flag_spec='-rpath $libdir'
9783 archive_cmds_need_lc='no'
9784 hardcode_libdir_separator=:
9788 no_undefined_flag=' -z defs'
9789 if test "$GCC" = yes; then
9791 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9792 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9793 $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'
9795 case `$CC -V 2>&1` in
9798 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9799 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9800 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9804 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9805 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9806 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9810 hardcode_libdir_flag_spec='-R$libdir'
9811 hardcode_shlibpath_var=no
9813 solaris2.[0-5] | solaris2.[0-5].*) ;;
9815 # The compiler driver will combine and reorder linker options,
9816 # but understands `-z linker_flag'. GCC discards it without `$wl',
9817 # but is careful enough not to reorder.
9818 # Supported since Solaris 2.6 (maybe 2.5.1?)
9819 if test "$GCC" = yes; then
9820 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9822 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9826 link_all_deplibs=yes
9830 if test "x$host_vendor" = xsequent; then
9831 # Use $CC to link under sequent, because it throws in some extra .o
9832 # files that make .init and .fini sections work.
9833 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9835 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9837 hardcode_libdir_flag_spec='-L$libdir'
9839 hardcode_minus_L=yes
9840 hardcode_shlibpath_var=no
9844 case $host_vendor in
9846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9847 hardcode_direct=yes # is this really true???
9850 ## LD is ld it makes a PLAMLIB
9851 ## CC just makes a GrossModule.
9852 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9853 reload_cmds='$CC -r -o $output$reload_objs'
9857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9858 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9861 runpath_var='LD_RUN_PATH'
9862 hardcode_shlibpath_var=no
9866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9867 hardcode_shlibpath_var=no
9868 export_dynamic_flag_spec='-Bexport'
9872 if test -d /usr/nec; then
9873 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9874 hardcode_shlibpath_var=no
9875 runpath_var=LD_RUN_PATH
9876 hardcode_runpath_var=yes
9881 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9882 no_undefined_flag='${wl}-z,text'
9883 archive_cmds_need_lc=no
9884 hardcode_shlibpath_var=no
9885 runpath_var='LD_RUN_PATH'
9887 if test "$GCC" = yes; then
9888 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9889 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9891 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9892 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9896 sysv5* | sco3.2v5* | sco5v6*)
9897 # Note: We can NOT use -z defs as we might desire, because we do not
9898 # link with -lc, and that would cause any symbols used from libc to
9899 # always be unresolved, which means just about no library would
9900 # ever link correctly. If we're not using GNU ld we use -z text
9901 # though, which does catch some bad symbols but isn't as heavy-handed
9903 no_undefined_flag='${wl}-z,text'
9904 allow_undefined_flag='${wl}-z,nodefs'
9905 archive_cmds_need_lc=no
9906 hardcode_shlibpath_var=no
9907 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9908 hardcode_libdir_separator=':'
9909 link_all_deplibs=yes
9910 export_dynamic_flag_spec='${wl}-Bexport'
9911 runpath_var='LD_RUN_PATH'
9913 if test "$GCC" = yes; then
9914 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9915 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9917 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9918 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9924 hardcode_libdir_flag_spec='-L$libdir'
9925 hardcode_shlibpath_var=no
9933 if test x$host_vendor = xsni; then
9935 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9936 export_dynamic_flag_spec='${wl}-Blargedynsym'
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9943 $as_echo "$ld_shlibs" >&6; }
9944 test "$ld_shlibs" = no && can_build_shared=no
9946 with_gnu_ld=$with_gnu_ld
9963 # Do we need to explicitly link libc?
9965 case "x$archive_cmds_need_lc" in
9967 # Assume -lc should be added
9968 archive_cmds_need_lc=yes
9970 if test "$enable_shared" = yes && test "$GCC" = yes; then
9971 case $archive_cmds in
9973 # FIXME: we may have to deal with multi-command sequences.
9976 # Test whether the compiler implicitly links with -lc since on some
9977 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9978 # to ld, don't add -lc before -lgcc.
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9980 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9981 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9982 $as_echo_n "(cached) " >&6
9985 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9988 (eval $ac_compile) 2>&5
9990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9991 test $ac_status = 0; } 2>conftest.err; then
9994 libobjs=conftest.$ac_objext
9996 wl=$lt_prog_compiler_wl
9997 pic_flag=$lt_prog_compiler_pic
10003 lt_save_allow_undefined_flag=$allow_undefined_flag
10004 allow_undefined_flag=
10005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10006 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10009 test $ac_status = 0; }
10011 lt_cv_archive_cmds_need_lc=no
10013 lt_cv_archive_cmds_need_lc=yes
10015 allow_undefined_flag=$lt_save_allow_undefined_flag
10017 cat conftest.err 1>&5
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10023 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10024 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10183 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10185 if test "$GCC" = yes; then
10187 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10188 *) lt_awk_arg="/^libraries:/" ;;
10191 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10192 *) lt_sed_strip_eq="s,=/,/,g" ;;
10194 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10195 case $lt_search_path_spec in
10197 # if the path contains ";" then we assume it to be the separator
10198 # otherwise default to the standard path separator (i.e. ":") - it is
10199 # assumed that no part of a normal pathname contains ";" but that should
10200 # okay in the real world where ";" in dirpaths is itself problematic.
10201 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10204 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10207 # Ok, now we have the path, separated by spaces, we can step through it
10208 # and add multilib dir if necessary.
10209 lt_tmp_lt_search_path_spec=
10210 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10211 for lt_sys_path in $lt_search_path_spec; do
10212 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10213 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10215 test -d "$lt_sys_path" && \
10216 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10219 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10220 BEGIN {RS=" "; FS="/|\n";} {
10223 for (lt_i = NF; lt_i > 0; lt_i--) {
10224 if ($lt_i != "" && $lt_i != ".") {
10225 if ($lt_i == "..") {
10228 if (lt_count == 0) {
10229 lt_foo="/" $lt_i lt_foo;
10236 if (lt_foo != "") { lt_freq[lt_foo]++; }
10237 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10239 # AWK program above erroneously prepends '/' to C:/dos/paths
10242 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10243 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10245 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10247 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10249 library_names_spec=
10250 libname_spec='lib$name'
10254 postuninstall_cmds=
10258 shlibpath_overrides_runpath=unknown
10260 dynamic_linker="$host_os ld.so"
10261 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10262 need_lib_prefix=unknown
10263 hardcode_into_libs=no
10265 # when you set need_version to no, make sure it does not cause -set_version
10266 # flags to be left without arguments
10267 need_version=unknown
10271 version_type=linux # correct to gnu/linux during the next big refactor
10272 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10273 shlibpath_var=LIBPATH
10275 # AIX 3 has no versioning support, so we append a major version to the name.
10276 soname_spec='${libname}${release}${shared_ext}$major'
10280 version_type=linux # correct to gnu/linux during the next big refactor
10283 hardcode_into_libs=yes
10284 if test "$host_cpu" = ia64; then
10285 # AIX 5 supports IA64
10286 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10287 shlibpath_var=LD_LIBRARY_PATH
10289 # With GCC up to 2.95.x, collect2 would create an import file
10290 # for dependence libraries. The import file would start with
10291 # the line `#! .'. This would cause the generated library to
10292 # depend on `.', always an invalid library. This was fixed in
10293 # development snapshots of GCC prior to 3.0.
10295 aix4 | aix4.[01] | aix4.[01].*)
10296 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10298 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10301 can_build_shared=no
10305 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10306 # soname into executable. Probably we can add versioning support to
10307 # collect2, so additional links can be useful in future.
10308 if test "$aix_use_runtimelinking" = yes; then
10309 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10310 # instead of lib<name>.a to let people know that these are not
10311 # typical AIX shared libraries.
10312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10314 # We preserve .a as extension for shared libraries through AIX4.2
10315 # and later when we are not doing run time linking.
10316 library_names_spec='${libname}${release}.a $libname.a'
10317 soname_spec='${libname}${release}${shared_ext}$major'
10319 shlibpath_var=LIBPATH
10326 # Since July 2007 AmigaOS4 officially supports .so libraries.
10327 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10331 library_names_spec='$libname.ixlibrary $libname.a'
10332 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10333 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'
10339 library_names_spec='${libname}${shared_ext}'
10340 dynamic_linker="$host_os ld.so"
10341 shlibpath_var=LIBRARY_PATH
10345 version_type=linux # correct to gnu/linux during the next big refactor
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10350 shlibpath_var=LD_LIBRARY_PATH
10351 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10352 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10353 # the default ld.so.conf also contains /usr/contrib/lib and
10354 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10355 # libtool to hard-code these into programs
10358 cygwin* | mingw* | pw32* | cegcc*)
10359 version_type=windows
10364 case $GCC,$cc_basename in
10367 library_names_spec='$libname.dll.a'
10368 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10369 postinstall_cmds='base_file=`basename \${file}`~
10370 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10371 dldir=$destdir/`dirname \$dlpath`~
10372 test -d \$dldir || mkdir -p \$dldir~
10373 $install_prog $dir/$dlname \$dldir/$dlname~
10374 chmod a+x \$dldir/$dlname~
10375 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10376 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10378 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10379 dlpath=$dir/\$dldll~
10381 shlibpath_overrides_runpath=yes
10385 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10386 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10388 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10391 # MinGW DLLs use traditional 'lib' prefix
10392 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10395 # pw32 DLLs use 'pw' prefix rather than 'lib'
10396 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10399 dynamic_linker='Win32 ld.exe'
10404 libname_spec='$name'
10405 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10406 library_names_spec='${libname}.dll.lib'
10410 sys_lib_search_path_spec=
10413 for lt_path in $LIB
10416 # Let DOS variable expansion print the short 8.3 style file name.
10417 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10418 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10421 # Convert to MSYS style.
10422 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10425 # Convert to unix form, then to dos form, then back to unix form
10426 # but this time dos style (no spaces!) so that the unix form looks
10427 # like /cygdrive/c/PROGRA~1:/cygdr...
10428 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10429 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10430 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10433 sys_lib_search_path_spec="$LIB"
10434 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10435 # It is most probably a Windows format PATH.
10436 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10438 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10440 # FIXME: find the short name or the path components, as spaces are
10441 # common. (e.g. "Program Files" -> "PROGRA~1")
10445 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10446 postinstall_cmds='base_file=`basename \${file}`~
10447 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10448 dldir=$destdir/`dirname \$dlpath`~
10449 test -d \$dldir || mkdir -p \$dldir~
10450 $install_prog $dir/$dlname \$dldir/$dlname'
10451 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10452 dlpath=$dir/\$dldll~
10454 shlibpath_overrides_runpath=yes
10455 dynamic_linker='Win32 link.exe'
10459 # Assume MSVC wrapper
10460 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10461 dynamic_linker='Win32 ld.exe'
10464 # FIXME: first we should search . and the directory the executable is in
10468 darwin* | rhapsody*)
10469 dynamic_linker="$host_os dyld"
10470 version_type=darwin
10473 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10474 soname_spec='${libname}${release}${major}$shared_ext'
10475 shlibpath_overrides_runpath=yes
10476 shlibpath_var=DYLD_LIBRARY_PATH
10477 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10479 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10480 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10484 version_type=linux # correct to gnu/linux during the next big refactor
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10488 soname_spec='${libname}${release}${shared_ext}$major'
10489 shlibpath_var=LD_LIBRARY_PATH
10492 freebsd* | dragonfly*)
10493 # DragonFly does not have aout. When/if they implement a new
10494 # versioning mechanism, adjust this.
10495 if test -x /usr/bin/objformat; then
10496 objformat=`/usr/bin/objformat`
10499 freebsd[23].*) objformat=aout ;;
10500 *) objformat=elf ;;
10503 version_type=freebsd-$objformat
10504 case $version_type in
10506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10511 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10515 shlibpath_var=LD_LIBRARY_PATH
10518 shlibpath_overrides_runpath=yes
10520 freebsd3.[01]* | freebsdelf3.[01]*)
10521 shlibpath_overrides_runpath=yes
10522 hardcode_into_libs=yes
10524 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10525 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10526 shlibpath_overrides_runpath=no
10527 hardcode_into_libs=yes
10529 *) # from 4.6 on, and DragonFly
10530 shlibpath_overrides_runpath=yes
10531 hardcode_into_libs=yes
10537 version_type=linux # correct to gnu/linux during the next big refactor
10540 dynamic_linker="$host_os runtime_loader"
10541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10542 soname_spec='${libname}${release}${shared_ext}$major'
10543 shlibpath_var=LIBRARY_PATH
10544 shlibpath_overrides_runpath=yes
10545 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10546 hardcode_into_libs=yes
10549 hpux9* | hpux10* | hpux11*)
10550 # Give a soname corresponding to the major version so that dld.sl refuses to
10551 # link against other versions.
10558 hardcode_into_libs=yes
10559 dynamic_linker="$host_os dld.so"
10560 shlibpath_var=LD_LIBRARY_PATH
10561 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10563 soname_spec='${libname}${release}${shared_ext}$major'
10564 if test "X$HPUX_IA64_MODE" = X32; then
10565 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10567 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10569 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10573 hardcode_into_libs=yes
10574 dynamic_linker="$host_os dld.sl"
10575 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10576 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10578 soname_spec='${libname}${release}${shared_ext}$major'
10579 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10580 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10584 dynamic_linker="$host_os dld.sl"
10585 shlibpath_var=SHLIB_PATH
10586 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588 soname_spec='${libname}${release}${shared_ext}$major'
10591 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10592 postinstall_cmds='chmod 555 $lib'
10593 # or fails outright, so override atomically:
10594 install_override_mode=555
10598 version_type=linux # correct to gnu/linux during the next big refactor
10601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10602 soname_spec='${libname}${release}${shared_ext}$major'
10603 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10604 shlibpath_var=LD_LIBRARY_PATH
10605 shlibpath_overrides_runpath=no
10606 hardcode_into_libs=yes
10609 irix5* | irix6* | nonstopux*)
10611 nonstopux*) version_type=nonstopux ;;
10613 if test "$lt_cv_prog_gnu_ld" = yes; then
10614 version_type=linux # correct to gnu/linux during the next big refactor
10621 soname_spec='${libname}${release}${shared_ext}$major'
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10624 irix5* | nonstopux*)
10625 libsuff= shlibsuff=
10628 case $LD in # libtool.m4 will add one of these switches to LD
10629 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10630 libsuff= shlibsuff= libmagic=32-bit;;
10631 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10632 libsuff=32 shlibsuff=N32 libmagic=N32;;
10633 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10634 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10635 *) libsuff= shlibsuff= libmagic=never-match;;
10639 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10640 shlibpath_overrides_runpath=no
10641 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10642 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10643 hardcode_into_libs=yes
10646 # No shared lib support for Linux oldld, aout, or coff.
10647 linux*oldld* | linux*aout* | linux*coff*)
10651 # This must be glibc/ELF.
10652 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10653 version_type=linux # correct to gnu/linux during the next big refactor
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10657 soname_spec='${libname}${release}${shared_ext}$major'
10658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10659 shlibpath_var=LD_LIBRARY_PATH
10660 shlibpath_overrides_runpath=no
10662 # Some binutils ld are patched to set DT_RUNPATH
10663 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10664 $as_echo_n "(cached) " >&6
10666 lt_cv_shlibpath_overrides_runpath=no
10667 save_LDFLAGS=$LDFLAGS
10668 save_libdir=$libdir
10669 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10670 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672 /* end confdefs.h. */
10682 if ac_fn_c_try_link "$LINENO"; then :
10683 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10684 lt_cv_shlibpath_overrides_runpath=yes
10687 rm -f core conftest.err conftest.$ac_objext \
10688 conftest$ac_exeext conftest.$ac_ext
10689 LDFLAGS=$save_LDFLAGS
10690 libdir=$save_libdir
10694 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10696 # This implies no fast_install, which is unacceptable.
10697 # Some rework will be needed to allow for fast_install
10698 # before this can be enabled.
10699 hardcode_into_libs=yes
10701 # Append ld.so.conf contents to the search path
10702 if test -f /etc/ld.so.conf; then
10703 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' ' '`
10704 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10707 # We used to test for /lib/ld.so.1 and disable shared libraries on
10708 # powerpc, because MkLinux only supported shared libraries with the
10709 # GNU dynamic linker. Since this was broken with cross compilers,
10710 # most powerpc-linux boxes support dynamic linking these days and
10711 # people can always --disable-shared, the test was removed, and we
10712 # assume the GNU/Linux dynamic linker is in use.
10713 dynamic_linker='GNU/Linux ld.so'
10720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10721 soname_spec='${libname}${release}${shared_ext}$major'
10722 shlibpath_var=LD_LIBRARY_PATH
10723 shlibpath_overrides_runpath=no
10724 hardcode_into_libs=yes
10725 dynamic_linker='NetBSD ld.elf_so'
10732 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10735 dynamic_linker='NetBSD (a.out) ld.so'
10737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10738 soname_spec='${libname}${release}${shared_ext}$major'
10739 dynamic_linker='NetBSD ld.elf_so'
10741 shlibpath_var=LD_LIBRARY_PATH
10742 shlibpath_overrides_runpath=yes
10743 hardcode_into_libs=yes
10747 version_type=linux # correct to gnu/linux during the next big refactor
10748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10749 shlibpath_var=LD_LIBRARY_PATH
10750 shlibpath_overrides_runpath=yes
10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10758 soname_spec='${libname}${release}${shared_ext}$major'
10759 shlibpath_var=LD_LIBRARY_PATH
10760 shlibpath_overrides_runpath=no
10761 hardcode_into_libs=yes
10762 dynamic_linker='ldqnx.so'
10767 sys_lib_dlsearch_path_spec="/usr/lib"
10769 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10771 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10772 *) need_version=no ;;
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10776 shlibpath_var=LD_LIBRARY_PATH
10777 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10779 openbsd2.[89] | openbsd2.[89].*)
10780 shlibpath_overrides_runpath=no
10783 shlibpath_overrides_runpath=yes
10787 shlibpath_overrides_runpath=yes
10792 libname_spec='$name'
10795 library_names_spec='$libname${shared_ext} $libname.a'
10796 dynamic_linker='OS/2 ld.exe'
10797 shlibpath_var=LIBPATH
10800 osf3* | osf4* | osf5*)
10804 soname_spec='${libname}${release}${shared_ext}$major'
10805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10806 shlibpath_var=LD_LIBRARY_PATH
10807 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10808 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10816 version_type=linux # correct to gnu/linux during the next big refactor
10819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10820 soname_spec='${libname}${release}${shared_ext}$major'
10821 shlibpath_var=LD_LIBRARY_PATH
10822 shlibpath_overrides_runpath=yes
10823 hardcode_into_libs=yes
10824 # ldd complains unless libraries are executable
10825 postinstall_cmds='chmod +x $lib'
10830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10831 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10832 shlibpath_var=LD_LIBRARY_PATH
10833 shlibpath_overrides_runpath=yes
10834 if test "$with_gnu_ld" = yes; then
10841 version_type=linux # correct to gnu/linux during the next big refactor
10842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10843 soname_spec='${libname}${release}${shared_ext}$major'
10844 shlibpath_var=LD_LIBRARY_PATH
10845 case $host_vendor in
10847 shlibpath_overrides_runpath=no
10849 runpath_var=LD_RUN_PATH
10857 shlibpath_overrides_runpath=no
10858 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10864 if test -d /usr/nec ;then
10865 version_type=linux # correct to gnu/linux during the next big refactor
10866 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10867 soname_spec='$libname${shared_ext}.$major'
10868 shlibpath_var=LD_LIBRARY_PATH
10872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10873 version_type=freebsd-elf
10876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10877 soname_spec='${libname}${release}${shared_ext}$major'
10878 shlibpath_var=LD_LIBRARY_PATH
10879 shlibpath_overrides_runpath=yes
10880 hardcode_into_libs=yes
10881 if test "$with_gnu_ld" = yes; then
10882 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10884 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10887 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10891 sys_lib_dlsearch_path_spec='/usr/lib'
10895 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10896 version_type=linux # correct to gnu/linux during the next big refactor
10899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10900 shlibpath_var=LD_LIBRARY_PATH
10901 shlibpath_overrides_runpath=no
10902 hardcode_into_libs=yes
10906 version_type=linux # correct to gnu/linux during the next big refactor
10907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10908 soname_spec='${libname}${release}${shared_ext}$major'
10909 shlibpath_var=LD_LIBRARY_PATH
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10917 $as_echo "$dynamic_linker" >&6; }
10918 test "$dynamic_linker" = no && can_build_shared=no
10920 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10921 if test "$GCC" = yes; then
10922 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10925 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10926 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10928 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10929 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11024 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11026 if test -n "$hardcode_libdir_flag_spec" ||
11027 test -n "$runpath_var" ||
11028 test "X$hardcode_automatic" = "Xyes" ; then
11030 # We can hardcode non-existent directories.
11031 if test "$hardcode_direct" != no &&
11032 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11033 # have to relink, otherwise we might link with an installed library
11034 # when we should be linking with a yet-to-be-installed one
11035 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11036 test "$hardcode_minus_L" != no; then
11037 # Linking always hardcodes the temporary library directory.
11038 hardcode_action=relink
11040 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11041 hardcode_action=immediate
11044 # We cannot hardcode anything, or else we can only hardcode existing
11046 hardcode_action=unsupported
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11049 $as_echo "$hardcode_action" >&6; }
11051 if test "$hardcode_action" = relink ||
11052 test "$inherit_rpath" = yes; then
11053 # Fast installation is not supported
11054 enable_fast_install=no
11055 elif test "$shlibpath_overrides_runpath" = yes ||
11056 test "$enable_shared" = no; then
11057 # Fast installation is not necessary
11058 enable_fast_install=needless
11066 if test "x$enable_dlopen" != xyes; then
11067 enable_dlopen=unknown
11068 enable_dlopen_self=unknown
11069 enable_dlopen_self_static=unknown
11076 lt_cv_dlopen="load_add_on"
11078 lt_cv_dlopen_self=yes
11081 mingw* | pw32* | cegcc*)
11082 lt_cv_dlopen="LoadLibrary"
11087 lt_cv_dlopen="dlopen"
11092 # if libdl is installed we need to link against it
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11094 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11095 if ${ac_cv_lib_dl_dlopen+:} false; then :
11096 $as_echo_n "(cached) " >&6
11098 ac_check_lib_save_LIBS=$LIBS
11100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11101 /* end confdefs.h. */
11103 /* Override any GCC internal prototype to avoid an error.
11104 Use char because int might match the return type of a GCC
11105 builtin and then its argument prototype would still apply. */
11118 if ac_fn_c_try_link "$LINENO"; then :
11119 ac_cv_lib_dl_dlopen=yes
11121 ac_cv_lib_dl_dlopen=no
11123 rm -f core conftest.err conftest.$ac_objext \
11124 conftest$ac_exeext conftest.$ac_ext
11125 LIBS=$ac_check_lib_save_LIBS
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11128 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11129 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11130 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11133 lt_cv_dlopen="dyld"
11135 lt_cv_dlopen_self=yes
11142 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11143 if test "x$ac_cv_func_shl_load" = xyes; then :
11144 lt_cv_dlopen="shl_load"
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11147 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11148 if ${ac_cv_lib_dld_shl_load+:} false; then :
11149 $as_echo_n "(cached) " >&6
11151 ac_check_lib_save_LIBS=$LIBS
11153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154 /* end confdefs.h. */
11156 /* Override any GCC internal prototype to avoid an error.
11157 Use char because int might match the return type of a GCC
11158 builtin and then its argument prototype would still apply. */
11166 return shl_load ();
11171 if ac_fn_c_try_link "$LINENO"; then :
11172 ac_cv_lib_dld_shl_load=yes
11174 ac_cv_lib_dld_shl_load=no
11176 rm -f core conftest.err conftest.$ac_objext \
11177 conftest$ac_exeext conftest.$ac_ext
11178 LIBS=$ac_check_lib_save_LIBS
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11181 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11182 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11183 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11185 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11186 if test "x$ac_cv_func_dlopen" = xyes; then :
11187 lt_cv_dlopen="dlopen"
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11190 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11191 if ${ac_cv_lib_dl_dlopen+:} false; then :
11192 $as_echo_n "(cached) " >&6
11194 ac_check_lib_save_LIBS=$LIBS
11196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11197 /* end confdefs.h. */
11199 /* Override any GCC internal prototype to avoid an error.
11200 Use char because int might match the return type of a GCC
11201 builtin and then its argument prototype would still apply. */
11214 if ac_fn_c_try_link "$LINENO"; then :
11215 ac_cv_lib_dl_dlopen=yes
11217 ac_cv_lib_dl_dlopen=no
11219 rm -f core conftest.err conftest.$ac_objext \
11220 conftest$ac_exeext conftest.$ac_ext
11221 LIBS=$ac_check_lib_save_LIBS
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11224 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11225 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11226 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11229 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11230 if ${ac_cv_lib_svld_dlopen+:} false; then :
11231 $as_echo_n "(cached) " >&6
11233 ac_check_lib_save_LIBS=$LIBS
11234 LIBS="-lsvld $LIBS"
11235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h. */
11238 /* Override any GCC internal prototype to avoid an error.
11239 Use char because int might match the return type of a GCC
11240 builtin and then its argument prototype would still apply. */
11253 if ac_fn_c_try_link "$LINENO"; then :
11254 ac_cv_lib_svld_dlopen=yes
11256 ac_cv_lib_svld_dlopen=no
11258 rm -f core conftest.err conftest.$ac_objext \
11259 conftest$ac_exeext conftest.$ac_ext
11260 LIBS=$ac_check_lib_save_LIBS
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11263 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11264 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11265 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11268 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11269 if ${ac_cv_lib_dld_dld_link+:} false; then :
11270 $as_echo_n "(cached) " >&6
11272 ac_check_lib_save_LIBS=$LIBS
11274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11275 /* end confdefs.h. */
11277 /* Override any GCC internal prototype to avoid an error.
11278 Use char because int might match the return type of a GCC
11279 builtin and then its argument prototype would still apply. */
11287 return dld_link ();
11292 if ac_fn_c_try_link "$LINENO"; then :
11293 ac_cv_lib_dld_dld_link=yes
11295 ac_cv_lib_dld_dld_link=no
11297 rm -f core conftest.err conftest.$ac_objext \
11298 conftest$ac_exeext conftest.$ac_ext
11299 LIBS=$ac_check_lib_save_LIBS
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11302 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11303 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11304 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11325 if test "x$lt_cv_dlopen" != xno; then
11331 case $lt_cv_dlopen in
11333 save_CPPFLAGS="$CPPFLAGS"
11334 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11336 save_LDFLAGS="$LDFLAGS"
11337 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11340 LIBS="$lt_cv_dlopen_libs $LIBS"
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11343 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11344 if ${lt_cv_dlopen_self+:} false; then :
11345 $as_echo_n "(cached) " >&6
11347 if test "$cross_compiling" = yes; then :
11348 lt_cv_dlopen_self=cross
11350 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11351 lt_status=$lt_dlunknown
11352 cat > conftest.$ac_ext <<_LT_EOF
11353 #line $LINENO "configure"
11354 #include "confdefs.h"
11363 # define LT_DLGLOBAL RTLD_GLOBAL
11366 # define LT_DLGLOBAL DL_GLOBAL
11368 # define LT_DLGLOBAL 0
11372 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11373 find out it does not work in some platform. */
11374 #ifndef LT_DLLAZY_OR_NOW
11376 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11379 # define LT_DLLAZY_OR_NOW DL_LAZY
11382 # define LT_DLLAZY_OR_NOW RTLD_NOW
11385 # define LT_DLLAZY_OR_NOW DL_NOW
11387 # define LT_DLLAZY_OR_NOW 0
11394 /* When -fvisbility=hidden is used, assume the code has been annotated
11395 correspondingly for the symbols needed. */
11396 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11397 int fnord () __attribute__((visibility("default")));
11400 int fnord () { return 42; }
11403 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11404 int status = $lt_dlunknown;
11408 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11411 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11412 else puts (dlerror ());
11414 /* dlclose (self); */
11422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11423 (eval $ac_link) 2>&5
11425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11426 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11427 (./conftest; exit; ) >&5 2>/dev/null
11429 case x$lt_status in
11430 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11431 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11432 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11435 # compilation failed
11436 lt_cv_dlopen_self=no
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11444 $as_echo "$lt_cv_dlopen_self" >&6; }
11446 if test "x$lt_cv_dlopen_self" = xyes; then
11447 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11449 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11450 if ${lt_cv_dlopen_self_static+:} false; then :
11451 $as_echo_n "(cached) " >&6
11453 if test "$cross_compiling" = yes; then :
11454 lt_cv_dlopen_self_static=cross
11456 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11457 lt_status=$lt_dlunknown
11458 cat > conftest.$ac_ext <<_LT_EOF
11459 #line $LINENO "configure"
11460 #include "confdefs.h"
11469 # define LT_DLGLOBAL RTLD_GLOBAL
11472 # define LT_DLGLOBAL DL_GLOBAL
11474 # define LT_DLGLOBAL 0
11478 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11479 find out it does not work in some platform. */
11480 #ifndef LT_DLLAZY_OR_NOW
11482 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11485 # define LT_DLLAZY_OR_NOW DL_LAZY
11488 # define LT_DLLAZY_OR_NOW RTLD_NOW
11491 # define LT_DLLAZY_OR_NOW DL_NOW
11493 # define LT_DLLAZY_OR_NOW 0
11500 /* When -fvisbility=hidden is used, assume the code has been annotated
11501 correspondingly for the symbols needed. */
11502 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11503 int fnord () __attribute__((visibility("default")));
11506 int fnord () { return 42; }
11509 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11510 int status = $lt_dlunknown;
11514 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11517 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11518 else puts (dlerror ());
11520 /* dlclose (self); */
11528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11529 (eval $ac_link) 2>&5
11531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11532 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11533 (./conftest; exit; ) >&5 2>/dev/null
11535 case x$lt_status in
11536 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11537 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11538 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11541 # compilation failed
11542 lt_cv_dlopen_self_static=no
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11550 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11553 CPPFLAGS="$save_CPPFLAGS"
11554 LDFLAGS="$save_LDFLAGS"
11559 case $lt_cv_dlopen_self in
11560 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11561 *) enable_dlopen_self=unknown ;;
11564 case $lt_cv_dlopen_self_static in
11565 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11566 *) enable_dlopen_self_static=unknown ;;
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11589 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11590 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11591 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11592 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11594 $as_echo "yes" >&6; }
11596 # FIXME - insert some real tests, host_os isn't really good enough
11599 if test -n "$STRIP" ; then
11600 striplib="$STRIP -x"
11601 old_striplib="$STRIP -S"
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11603 $as_echo "yes" >&6; }
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606 $as_echo "no" >&6; }
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11611 $as_echo "no" >&6; }
11627 # Report which library types will actually be built
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11629 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11631 $as_echo "$can_build_shared" >&6; }
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11634 $as_echo_n "checking whether to build shared libraries... " >&6; }
11635 test "$can_build_shared" = "no" && enable_shared=no
11637 # On AIX, shared libraries and static libraries use the same namespace, and
11638 # are all built from PIC.
11641 test "$enable_shared" = yes && enable_static=no
11642 if test -n "$RANLIB"; then
11643 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11644 postinstall_cmds='$RANLIB $lib'
11649 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11650 test "$enable_shared" = yes && enable_static=no
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11655 $as_echo "$enable_shared" >&6; }
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11658 $as_echo_n "checking whether to build static libraries... " >&6; }
11659 # Make sure either enable_shared or enable_static is yes.
11660 test "$enable_shared" = yes || enable_static=yes
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11662 $as_echo "$enable_static" >&6; }
11669 ac_cpp='$CPP $CPPFLAGS'
11670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11690 ac_config_commands="$ac_config_commands libtool"
11695 # Only expand once:
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
11700 $as_echo_n "checking for library containing strerror... " >&6; }
11701 if ${ac_cv_search_strerror+:} false; then :
11702 $as_echo_n "(cached) " >&6
11704 ac_func_search_save_LIBS=$LIBS
11705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11706 /* end confdefs.h. */
11708 /* Override any GCC internal prototype to avoid an error.
11709 Use char because int might match the return type of a GCC
11710 builtin and then its argument prototype would still apply. */
11718 return strerror ();
11723 for ac_lib in '' cposix; do
11724 if test -z "$ac_lib"; then
11725 ac_res="none required"
11728 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11730 if ac_fn_c_try_link "$LINENO"; then :
11731 ac_cv_search_strerror=$ac_res
11733 rm -f core conftest.err conftest.$ac_objext \
11735 if ${ac_cv_search_strerror+:} false; then :
11739 if ${ac_cv_search_strerror+:} false; then :
11742 ac_cv_search_strerror=no
11744 rm conftest.$ac_ext
11745 LIBS=$ac_func_search_save_LIBS
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
11748 $as_echo "$ac_cv_search_strerror" >&6; }
11749 ac_res=$ac_cv_search_strerror
11750 if test "$ac_res" != no; then :
11751 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11756 ac_cpp='$CPP $CPPFLAGS'
11757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11760 if test -n "$ac_tool_prefix"; then
11761 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11762 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11764 $as_echo_n "checking for $ac_word... " >&6; }
11765 if ${ac_cv_prog_CC+:} false; then :
11766 $as_echo_n "(cached) " >&6
11768 if test -n "$CC"; then
11769 ac_cv_prog_CC="$CC" # Let the user override the test.
11771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11772 for as_dir in $PATH
11775 test -z "$as_dir" && as_dir=.
11776 for ac_exec_ext in '' $ac_executable_extensions; do
11777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11778 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11789 if test -n "$CC"; then
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11791 $as_echo "$CC" >&6; }
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794 $as_echo "no" >&6; }
11799 if test -z "$ac_cv_prog_CC"; then
11801 # Extract the first word of "gcc", so it can be a program name with args.
11802 set dummy gcc; ac_word=$2
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11804 $as_echo_n "checking for $ac_word... " >&6; }
11805 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11806 $as_echo_n "(cached) " >&6
11808 if test -n "$ac_ct_CC"; then
11809 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11812 for as_dir in $PATH
11815 test -z "$as_dir" && as_dir=.
11816 for ac_exec_ext in '' $ac_executable_extensions; do
11817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11818 ac_cv_prog_ac_ct_CC="gcc"
11819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11828 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11829 if test -n "$ac_ct_CC"; then
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11831 $as_echo "$ac_ct_CC" >&6; }
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11834 $as_echo "no" >&6; }
11837 if test "x$ac_ct_CC" = x; then
11840 case $cross_compiling:$ac_tool_warned in
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11844 ac_tool_warned=yes ;;
11849 CC="$ac_cv_prog_CC"
11852 if test -z "$CC"; then
11853 if test -n "$ac_tool_prefix"; then
11854 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11855 set dummy ${ac_tool_prefix}cc; ac_word=$2
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11857 $as_echo_n "checking for $ac_word... " >&6; }
11858 if ${ac_cv_prog_CC+:} false; then :
11859 $as_echo_n "(cached) " >&6
11861 if test -n "$CC"; then
11862 ac_cv_prog_CC="$CC" # Let the user override the test.
11864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11865 for as_dir in $PATH
11868 test -z "$as_dir" && as_dir=.
11869 for ac_exec_ext in '' $ac_executable_extensions; do
11870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11871 ac_cv_prog_CC="${ac_tool_prefix}cc"
11872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11882 if test -n "$CC"; then
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11884 $as_echo "$CC" >&6; }
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11893 if test -z "$CC"; then
11894 # Extract the first word of "cc", so it can be a program name with args.
11895 set dummy cc; ac_word=$2
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11897 $as_echo_n "checking for $ac_word... " >&6; }
11898 if ${ac_cv_prog_CC+:} false; then :
11899 $as_echo_n "(cached) " >&6
11901 if test -n "$CC"; then
11902 ac_cv_prog_CC="$CC" # Let the user override the test.
11904 ac_prog_rejected=no
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11912 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11913 ac_prog_rejected=yes
11917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11924 if test $ac_prog_rejected = yes; then
11925 # We found a bogon in the path, so make sure we never use it.
11926 set dummy $ac_cv_prog_CC
11928 if test $# != 0; then
11929 # We chose a different compiler from the bogus one.
11930 # However, it has the same basename, so the bogon will be chosen
11931 # first if we set CC to just the basename; use the full file name.
11933 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11939 if test -n "$CC"; then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11941 $as_echo "$CC" >&6; }
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11949 if test -z "$CC"; then
11950 if test -n "$ac_tool_prefix"; then
11951 for ac_prog in cl.exe
11953 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11954 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11956 $as_echo_n "checking for $ac_word... " >&6; }
11957 if ${ac_cv_prog_CC+:} false; then :
11958 $as_echo_n "(cached) " >&6
11960 if test -n "$CC"; then
11961 ac_cv_prog_CC="$CC" # Let the user override the test.
11963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11964 for as_dir in $PATH
11967 test -z "$as_dir" && as_dir=.
11968 for ac_exec_ext in '' $ac_executable_extensions; do
11969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11970 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11981 if test -n "$CC"; then
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11983 $as_echo "$CC" >&6; }
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11990 test -n "$CC" && break
11993 if test -z "$CC"; then
11995 for ac_prog in cl.exe
11997 # Extract the first word of "$ac_prog", so it can be a program name with args.
11998 set dummy $ac_prog; ac_word=$2
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12000 $as_echo_n "checking for $ac_word... " >&6; }
12001 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12002 $as_echo_n "(cached) " >&6
12004 if test -n "$ac_ct_CC"; then
12005 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12008 for as_dir in $PATH
12011 test -z "$as_dir" && as_dir=.
12012 for ac_exec_ext in '' $ac_executable_extensions; do
12013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12014 ac_cv_prog_ac_ct_CC="$ac_prog"
12015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12025 if test -n "$ac_ct_CC"; then
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12027 $as_echo "$ac_ct_CC" >&6; }
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12030 $as_echo "no" >&6; }
12034 test -n "$ac_ct_CC" && break
12037 if test "x$ac_ct_CC" = x; then
12040 case $cross_compiling:$ac_tool_warned in
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12044 ac_tool_warned=yes ;;
12053 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12055 as_fn_error $? "no acceptable C compiler found in \$PATH
12056 See \`config.log' for more details" "$LINENO" 5; }
12058 # Provide some information about the compiler.
12059 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12062 for ac_option in --version -v -V -qversion; do
12063 { { ac_try="$ac_compiler $ac_option >&5"
12064 case "(($ac_try" in
12065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066 *) ac_try_echo=$ac_try;;
12068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12069 $as_echo "$ac_try_echo"; } >&5
12070 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12072 if test -s conftest.err; then
12074 ... rest of stderr output deleted ...
12075 10q' conftest.err >conftest.er1
12076 cat conftest.er1 >&5
12078 rm -f conftest.er1 conftest.err
12079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12080 test $ac_status = 0; }
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12084 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12085 if ${ac_cv_c_compiler_gnu+:} false; then :
12086 $as_echo_n "(cached) " >&6
12088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089 /* end confdefs.h. */
12102 if ac_fn_c_try_compile "$LINENO"; then :
12103 ac_compiler_gnu=yes
12107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12108 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12112 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12113 if test $ac_compiler_gnu = yes; then
12118 ac_test_CFLAGS=${CFLAGS+set}
12119 ac_save_CFLAGS=$CFLAGS
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12121 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12122 if ${ac_cv_prog_cc_g+:} false; then :
12123 $as_echo_n "(cached) " >&6
12125 ac_save_c_werror_flag=$ac_c_werror_flag
12126 ac_c_werror_flag=yes
12129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12130 /* end confdefs.h. */
12140 if ac_fn_c_try_compile "$LINENO"; then :
12141 ac_cv_prog_cc_g=yes
12144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h. */
12155 if ac_fn_c_try_compile "$LINENO"; then :
12158 ac_c_werror_flag=$ac_save_c_werror_flag
12160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161 /* end confdefs.h. */
12171 if ac_fn_c_try_compile "$LINENO"; then :
12172 ac_cv_prog_cc_g=yes
12174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12179 ac_c_werror_flag=$ac_save_c_werror_flag
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12182 $as_echo "$ac_cv_prog_cc_g" >&6; }
12183 if test "$ac_test_CFLAGS" = set; then
12184 CFLAGS=$ac_save_CFLAGS
12185 elif test $ac_cv_prog_cc_g = yes; then
12186 if test "$GCC" = yes; then
12192 if test "$GCC" = yes; then
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12199 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12200 if ${ac_cv_prog_cc_c89+:} false; then :
12201 $as_echo_n "(cached) " >&6
12203 ac_cv_prog_cc_c89=no
12205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h. */
12207 #include <stdarg.h>
12210 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12211 struct buf { int x; };
12212 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12213 static char *e (p, i)
12219 static char *f (char * (*g) (char **, int), char **p, ...)
12224 s = g (p, va_arg (v,int));
12229 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12230 function prototypes and stuff, but not '\xHH' hex character constants.
12231 These don't provoke an error unfortunately, instead are silently treated
12232 as 'x'. The following induces an error, until -std is added to get
12233 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12234 array size at least. It's necessary to write '\x00'==0 to get something
12235 that's true only with -std. */
12236 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12238 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12239 inside strings and character constants. */
12241 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12243 int test (int i, double x);
12244 struct s1 {int (*f) (int a);};
12245 struct s2 {int (*f) (double a);};
12246 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12252 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12257 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12258 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12260 CC="$ac_save_CC $ac_arg"
12261 if ac_fn_c_try_compile "$LINENO"; then :
12262 ac_cv_prog_cc_c89=$ac_arg
12264 rm -f core conftest.err conftest.$ac_objext
12265 test "x$ac_cv_prog_cc_c89" != "xno" && break
12267 rm -f conftest.$ac_ext
12272 case "x$ac_cv_prog_cc_c89" in
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12275 $as_echo "none needed" >&6; } ;;
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12278 $as_echo "unsupported" >&6; } ;;
12280 CC="$CC $ac_cv_prog_cc_c89"
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12282 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12284 if test "x$ac_cv_prog_cc_c89" != xno; then :
12289 ac_cpp='$CPP $CPPFLAGS'
12290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12294 depcc="$CC" am_compiler_list=
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12297 $as_echo_n "checking dependency style of $depcc... " >&6; }
12298 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12299 $as_echo_n "(cached) " >&6
12301 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12302 # We make a subdir and do the tests there. Otherwise we can end up
12303 # making bogus files that we don't know about and never remove. For
12304 # instance it was reported that on HP-UX the gcc test will end up
12305 # making a dummy file named `D' -- because `-MD' means `put the output
12307 rm -rf conftest.dir
12309 # Copy depcomp to subdir because otherwise we won't find it if we're
12310 # using a relative directory.
12311 cp "$am_depcomp" conftest.dir
12313 # We will build objects and dependencies in a subdirectory because
12314 # it helps to detect inapplicable dependency modes. For instance
12315 # both Tru64's cc and ICC support -MD to output dependencies as a
12316 # side effect of compilation, but ICC will put the dependencies in
12317 # the current directory while Tru64 will put them in the object
12321 am_cv_CC_dependencies_compiler_type=none
12322 if test "$am_compiler_list" = ""; then
12323 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12325 am__universal=false
12326 case " $depcc " in #(
12327 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12330 for depmode in $am_compiler_list; do
12331 # Setup a source with many dependencies, because some compilers
12332 # like to wrap large dependency lists on column 80 (with \), and
12333 # we should not choose a depcomp mode which is confused by this.
12335 # We need to recreate these files for each test, as the compiler may
12336 # overwrite some of them when testing with obscure command lines.
12337 # This happens at least with the AIX C compiler.
12339 for i in 1 2 3 4 5 6; do
12340 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12341 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12342 # Solaris 8's {/usr,}/bin/sh.
12343 touch sub/conftst$i.h
12345 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12347 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12348 # mode. It turns out that the SunPro C++ compiler does not properly
12349 # handle `-M -o', and we need to detect this. Also, some Intel
12350 # versions had trouble with output in subdirs
12351 am__obj=sub/conftest.${OBJEXT-o}
12352 am__minus_obj="-o $am__obj"
12355 # This depmode causes a compiler race in universal mode.
12356 test "$am__universal" = false || continue
12359 # after this tag, mechanisms are not by side-effect, so they'll
12360 # only be used when explicitly requested
12361 if test "x$enable_dependency_tracking" = xyes; then
12367 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12368 # This compiler won't grok `-c -o', but also, the minuso test has
12369 # not run yet. These depmodes are late enough in the game, and
12370 # so weak that their functioning should not be impacted.
12371 am__obj=conftest.${OBJEXT-o}
12376 if depmode=$depmode \
12377 source=sub/conftest.c object=$am__obj \
12378 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12379 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12380 >/dev/null 2>conftest.err &&
12381 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12382 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12383 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12384 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12385 # icc doesn't choke on unknown options, it will just issue warnings
12386 # or remarks (even with -Werror). So we grep stderr for any message
12387 # that says an option was ignored or not supported.
12388 # When given -MP, icc 7.0 and 7.1 complain thusly:
12389 # icc: Command line warning: ignoring option '-M'; no argument required
12390 # The diagnosis changed in icc 8.0:
12391 # icc: Command line remark: option '-MP' not supported
12392 if (grep 'ignoring option' conftest.err ||
12393 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12394 am_cv_CC_dependencies_compiler_type=$depmode
12401 rm -rf conftest.dir
12403 am_cv_CC_dependencies_compiler_type=none
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12408 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12409 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12412 test "x$enable_dependency_tracking" != xno \
12413 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12414 am__fastdepCC_TRUE=
12415 am__fastdepCC_FALSE='#'
12417 am__fastdepCC_TRUE='#'
12418 am__fastdepCC_FALSE=
12422 if test "x$CC" != xcc; then
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12424 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12427 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12429 set dummy $CC; ac_cc=`$as_echo "$2" |
12430 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12431 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
12432 $as_echo_n "(cached) " >&6
12434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12435 /* end confdefs.h. */
12445 # Make sure it works both with $CC and with simple cc.
12446 # We do the test twice because some compilers refuse to overwrite an
12447 # existing .o file with -o, though they will create one.
12448 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12450 if { { case "(($ac_try" in
12451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452 *) ac_try_echo=$ac_try;;
12454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12455 $as_echo "$ac_try_echo"; } >&5
12456 (eval "$ac_try") 2>&5
12458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12459 test $ac_status = 0; } &&
12460 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462 *) ac_try_echo=$ac_try;;
12464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12465 $as_echo "$ac_try_echo"; } >&5
12466 (eval "$ac_try") 2>&5
12468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12469 test $ac_status = 0; };
12471 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12472 if test "x$CC" != xcc; then
12473 # Test first that cc exists at all.
12474 if { ac_try='cc -c conftest.$ac_ext >&5'
12475 { { case "(($ac_try" in
12476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477 *) ac_try_echo=$ac_try;;
12479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12480 $as_echo "$ac_try_echo"; } >&5
12481 (eval "$ac_try") 2>&5
12483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12484 test $ac_status = 0; }; }; then
12485 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12487 if { { case "(($ac_try" in
12488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489 *) ac_try_echo=$ac_try;;
12491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12492 $as_echo "$ac_try_echo"; } >&5
12493 (eval "$ac_try") 2>&5
12495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12496 test $ac_status = 0; } &&
12497 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12499 *) ac_try_echo=$ac_try;;
12501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12502 $as_echo "$ac_try_echo"; } >&5
12503 (eval "$ac_try") 2>&5
12505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12506 test $ac_status = 0; };
12511 # cc exists but doesn't like -o.
12512 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12517 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12519 rm -f core conftest*
12522 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12524 $as_echo "yes" >&6; }
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527 $as_echo "no" >&6; }
12529 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12533 # FIXME: we rely on the cache variable name because
12534 # there is no other way.
12536 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12537 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12538 if test "$am_t" != yes; then
12539 # Losing compiler, so override with the script.
12540 # FIXME: It is wrong to rewrite CC.
12541 # But if we don't then we get into trouble of one sort or another.
12542 # A longer-term fix would be to have automake use am__CC in this case,
12543 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12544 CC="$am_aux_dir/compile $CC"
12549 # option to specify python interpreter to use; this just sets $PYTHON, so that
12550 # we will fallback to reading $PYTHON if --with-python is not given, and
12551 # python.m4 will get the expected input
12553 # Check whether --with-python was given.
12554 if test "${with_python+set}" = set; then :
12555 withval=$with_python; PYTHON="$withval"
12558 if test x"$PYTHON" = xyes; then
12559 as_fn_error $? "--with-python option requires a path or program argument" "$LINENO" 5
12561 if test -n "$PYTHON" && ! which "$PYTHON"; then
12562 as_fn_error $? "Python interpreter $PYTHON does not exist" "$LINENO" 5
12565 # check that we have the minimum version of python necessary to build
12570 if test -n "$PYTHON"; then
12571 # If the user set $PYTHON, use it and don't search something else.
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.6" >&5
12573 $as_echo_n "checking whether $PYTHON version >= 2.6... " >&6; }
12575 # split strings by '.' and convert to numeric. Append some zeros
12576 # because we need at least 4 digits for the hex conversion.
12577 # map returns an iterator in Python 3.0 and a list in 2.x
12578 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
12580 # xrange is not present in Python 3.0 and range returns an iterator
12581 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12582 sys.exit(sys.hexversion < minverhex)"
12583 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12584 ($PYTHON -c "$prog") >&5 2>&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; then :
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12589 $as_echo "yes" >&6; }
12591 as_fn_error $? "too old" "$LINENO" 5
12593 am_display_PYTHON=$PYTHON
12595 # Otherwise, try each interpreter until we find one that satisfies
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
12598 $as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
12599 if ${am_cv_pathless_PYTHON+:} false; then :
12600 $as_echo_n "(cached) " >&6
12603 for am_cv_pathless_PYTHON in python3 python3.3 python3.2 python3.1 python2 python2.7 python2.6 python none; do
12604 test "$am_cv_pathless_PYTHON" = none && break
12606 # split strings by '.' and convert to numeric. Append some zeros
12607 # because we need at least 4 digits for the hex conversion.
12608 # map returns an iterator in Python 3.0 and a list in 2.x
12609 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
12611 # xrange is not present in Python 3.0 and range returns an iterator
12612 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12613 sys.exit(sys.hexversion < minverhex)"
12614 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
12615 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; then :
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
12624 $as_echo "$am_cv_pathless_PYTHON" >&6; }
12625 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
12626 if test "$am_cv_pathless_PYTHON" = none; then
12629 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
12630 set dummy $am_cv_pathless_PYTHON; ac_word=$2
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12632 $as_echo_n "checking for $ac_word... " >&6; }
12633 if ${ac_cv_path_PYTHON+:} false; then :
12634 $as_echo_n "(cached) " >&6
12638 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12642 for as_dir in $PATH
12645 test -z "$as_dir" && as_dir=.
12646 for ac_exec_ext in '' $ac_executable_extensions; do
12647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12648 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12659 PYTHON=$ac_cv_path_PYTHON
12660 if test -n "$PYTHON"; then
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12662 $as_echo "$PYTHON" >&6; }
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12665 $as_echo "no" >&6; }
12670 am_display_PYTHON=$am_cv_pathless_PYTHON
12674 if test "$PYTHON" = :; then
12675 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12680 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12681 if ${am_cv_python_version+:} false; then :
12682 $as_echo_n "(cached) " >&6
12684 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12687 $as_echo "$am_cv_python_version" >&6; }
12688 PYTHON_VERSION=$am_cv_python_version
12692 PYTHON_PREFIX='${prefix}'
12694 PYTHON_EXEC_PREFIX='${exec_prefix}'
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12699 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12700 if ${am_cv_python_platform+:} false; then :
12701 $as_echo_n "(cached) " >&6
12703 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12706 $as_echo "$am_cv_python_platform" >&6; }
12707 PYTHON_PLATFORM=$am_cv_python_platform
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12713 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12714 if ${am_cv_python_pythondir+:} false; then :
12715 $as_echo_n "(cached) " >&6
12717 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX'))" 2>/dev/null ||
12718 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12721 $as_echo "$am_cv_python_pythondir" >&6; }
12722 pythondir=$am_cv_python_pythondir
12726 pkgpythondir=\${pythondir}/$PACKAGE
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
12730 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
12731 if ${am_cv_python_pyexecdir+:} false; then :
12732 $as_echo_n "(cached) " >&6
12734 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX'))" 2>/dev/null ||
12735 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
12738 $as_echo "$am_cv_python_pyexecdir" >&6; }
12739 pyexecdir=$am_cv_python_pyexecdir
12743 pkgpyexecdir=\${pyexecdir}/$PACKAGE
12751 # check if we are building for python 3
12753 # split strings by '.' and convert to numeric. Append some zeros
12754 # because we need at least 4 digits for the hex conversion.
12755 # map returns an iterator in Python 3.0 and a list in 2.x
12756 minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0]
12758 # xrange is not present in Python 3.0 and range returns an iterator
12759 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12760 sys.exit(sys.hexversion < minverhex)"
12761 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12762 ($PYTHON -c "$prog") >&5 2>&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; then :
12771 # if building for python 3 make sure we have the minimum version supported
12772 if test $build_py3k = true ; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PYTHON >= 3.1" >&5
12774 $as_echo_n "checking for $PYTHON >= 3.1... " >&6; }
12776 # split strings by '.' and convert to numeric. Append some zeros
12777 # because we need at least 4 digits for the hex conversion.
12778 # map returns an iterator in Python 3.0 and a list in 2.x
12779 minver = list(map(int, '3.1'.split('.'))) + [0, 0, 0]
12781 # xrange is not present in Python 3.0 and range returns an iterator
12782 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12783 sys.exit(sys.hexversion < minverhex)"
12784 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12785 ($PYTHON -c "$prog") >&5 2>&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); }; then :
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12790 $as_echo "yes" >&6; }
12792 as_fn_error $? "too old" "$LINENO" 5
12802 # Find any Python interpreter.
12803 if test -z "$PYTHON"; then
12804 for ac_prog in python3 python3.3 python3.2 python3.1 python2 python2.7 python2.6 python
12806 # Extract the first word of "$ac_prog", so it can be a program name with args.
12807 set dummy $ac_prog; ac_word=$2
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12809 $as_echo_n "checking for $ac_word... " >&6; }
12810 if ${ac_cv_path_PYTHON+:} false; then :
12811 $as_echo_n "(cached) " >&6
12815 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12819 for as_dir in $PATH
12822 test -z "$as_dir" && as_dir=.
12823 for ac_exec_ext in '' $ac_executable_extensions; do
12824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12825 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12836 PYTHON=$ac_cv_path_PYTHON
12837 if test -n "$PYTHON"; then
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12839 $as_echo "$PYTHON" >&6; }
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12842 $as_echo "no" >&6; }
12846 test -n "$PYTHON" && break
12848 test -n "$PYTHON" || PYTHON=":"
12851 am_display_PYTHON=python
12854 if test "$PYTHON" = :; then
12855 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12860 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12861 if ${am_cv_python_version+:} false; then :
12862 $as_echo_n "(cached) " >&6
12864 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12867 $as_echo "$am_cv_python_version" >&6; }
12868 PYTHON_VERSION=$am_cv_python_version
12872 PYTHON_PREFIX='${prefix}'
12874 PYTHON_EXEC_PREFIX='${exec_prefix}'
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12879 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12880 if ${am_cv_python_platform+:} false; then :
12881 $as_echo_n "(cached) " >&6
12883 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12886 $as_echo "$am_cv_python_platform" >&6; }
12887 PYTHON_PLATFORM=$am_cv_python_platform
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12893 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12894 if ${am_cv_python_pythondir+:} false; then :
12895 $as_echo_n "(cached) " >&6
12897 if test "x$prefix" = xNONE
12899 am_py_prefix=$ac_default_prefix
12901 am_py_prefix=$prefix
12903 am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
12904 case $am_cv_python_pythondir in
12906 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
12907 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
12910 case $am_py_prefix in
12913 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12921 $as_echo "$am_cv_python_pythondir" >&6; }
12922 pythondir=$am_cv_python_pythondir
12926 pkgpythondir=\${pythondir}/$PACKAGE
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
12930 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
12931 if ${am_cv_python_pyexecdir+:} false; then :
12932 $as_echo_n "(cached) " >&6
12934 if test "x$exec_prefix" = xNONE
12936 am_py_exec_prefix=$am_py_prefix
12938 am_py_exec_prefix=$exec_prefix
12940 am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
12941 case $am_cv_python_pyexecdir in
12942 $am_py_exec_prefix*)
12943 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
12944 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
12947 case $am_py_exec_prefix in
12950 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
12958 $as_echo "$am_cv_python_pyexecdir" >&6; }
12959 pyexecdir=$am_cv_python_pyexecdir
12963 pkgpyexecdir=\${pyexecdir}/$PACKAGE
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
12972 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
12973 if test "x$PYTHON_INCLUDES" = x; then
12974 PYTHON_CONFIG=`which $PYTHON`-config
12975 if test -x "$PYTHON_CONFIG"; then
12976 PYTHON_INCLUDES=`$PYTHON_CONFIG --includes 2>/dev/null`
12978 py_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
12979 py_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
12980 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
12981 if test "$py_prefix" != "$py_exec_prefix"; then
12982 PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
12987 save_CPPFLAGS="$CPPFLAGS"
12988 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
12989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12990 /* end confdefs.h. */
12991 #include <Python.h>
12993 if ac_fn_c_try_cpp "$LINENO"; then :
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12995 $as_echo "found" >&6; }
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12999 $as_echo "not found" >&6; }
13000 as_fn_error $? "Python headers not found" "$LINENO" 5
13002 rm -f conftest.err conftest.i conftest.$ac_ext
13003 CPPFLAGS="$save_CPPFLAGS"
13005 if test "x$os_win32" = "xyes"; then
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to embed python" >&5
13008 $as_echo_n "checking for libraries required to embed python... " >&6; }
13009 py_exec_prefix=`$PYTHON -c "import sys; print(sys.exec_prefix)"`
13010 if test "x$PYTHON_LIBS" = x; then
13011 PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
13013 if test "x$PYTHON_LIB_LOC" = x; then
13014 PYTHON_LIB_LOC="${py_prefix}/lib"
13019 LIBS="$LIBS $PYTHON_LIBS"
13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021 /* end confdefs.h. */
13023 /* Override any GCC internal prototype to avoid an error.
13024 Use char because int might match the return type of a GCC
13025 builtin and then its argument prototype would still apply. */
13029 char Py_Initialize ();
13033 return Py_Initialize ();
13038 if ac_fn_c_try_link "$LINENO"; then :
13039 LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13040 $as_echo "yes" >&6; };
13042 LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13043 $as_echo "no" >&6; }; as_fn_error $? "Python libs not found. Windows requires Python modules to be explicitly linked to libpython." "$LINENO" 5
13045 rm -f core conftest.err conftest.$ac_objext \
13046 conftest$ac_exeext conftest.$ac_ext
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PySignal_SetWakeupFd in Python.h" >&5
13052 $as_echo_n "checking for PySignal_SetWakeupFd in Python.h... " >&6; }
13053 old_CPPFLAGS=$CPPFLAGS
13054 CPPFLAGS="-Wall -Werror $PYTHON_INCLUDES"
13055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13056 /* end confdefs.h. */
13057 #include <Python.h>
13061 PySignal_SetWakeupFd(0);
13066 if ac_fn_c_try_compile "$LINENO"; then :
13071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $setwakeupfd_ok" >&5
13073 $as_echo "$setwakeupfd_ok" >&6; }
13074 if test "x$setwakeupfd_ok" != xno; then
13076 $as_echo "#define HAVE_PYSIGNAL_SETWAKEUPFD 1" >>confdefs.h
13079 CPPFLAGS=$old_CPPFLAGS
13081 PLATFORM=`$PYTHON -c "import sys; from distutils import util; sys.stdout.write(util.get_platform())"`
13084 # Check whether --enable-thread was given.
13085 if test "${enable_thread+set}" = set; then :
13086 enableval=$enable_thread;
13093 py_mod_var=`echo thread'_' | sed 'y%./+-%__p_%'`
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module thread" >&5
13095 $as_echo_n "checking for python module thread... " >&6; }
13096 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13097 $as_echo_n "(cached) " >&6
13104 except ImportError:
13109 if $PYTHON -c "$prog" 1>&5 2>&5
13111 eval "py_cv_mod_$py_mod_var=yes"
13113 eval "py_cv_mod_$py_mod_var=no"
13118 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13119 if test "x$py_val" != xno; then
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13121 $as_echo "yes" >&6; }
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13124 $as_echo "no" >&6; }
13125 enable_thread=check_for_py3_module
13128 if test "x$enable_thread" = xcheck_for_py3_module; then
13130 py_mod_var=`echo _thread'_' | sed 'y%./+-%__p_%'`
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module _thread" >&5
13132 $as_echo_n "checking for python module _thread... " >&6; }
13133 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13134 $as_echo_n "(cached) " >&6
13141 except ImportError:
13146 if $PYTHON -c "$prog" 1>&5 2>&5
13148 eval "py_cv_mod_$py_mod_var=yes"
13150 eval "py_cv_mod_$py_mod_var=no"
13155 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13156 if test "x$py_val" != xno; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13158 $as_echo "yes" >&6; }
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13162 $as_echo "no" >&6; }
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable threading in pygobject" >&5
13169 $as_echo_n "checking whether to enable threading in pygobject... " >&6; }
13170 if test "x$enable_thread" != xno; then
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13174 $as_echo "yes" >&6; }
13177 THREADING_CFLAGS="-DDISABLE_THREADING"
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13179 $as_echo "no" >&6; }
13182 CPPFLAGS="${CPPFLAGS} $THREADING_CFLAGS"
13184 export_dynamic=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
13186 # Check whether --enable-glibtest was given.
13187 if test "${enable_glibtest+set}" = set; then :
13188 enableval=$enable_glibtest;
13190 enable_glibtest=yes
13194 pkg_config_args=glib-2.0
13195 for module in . gobject $extra_mods
13199 pkg_config_args="$pkg_config_args gmodule-2.0"
13202 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
13205 pkg_config_args="$pkg_config_args gobject-2.0"
13208 pkg_config_args="$pkg_config_args gthread-2.0"
13211 pkg_config_args="$pkg_config_args $module-2.0"
13223 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13224 if test -n "$ac_tool_prefix"; then
13225 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13226 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13228 $as_echo_n "checking for $ac_word... " >&6; }
13229 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13230 $as_echo_n "(cached) " >&6
13232 case $PKG_CONFIG in
13234 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13238 for as_dir in $PATH
13241 test -z "$as_dir" && as_dir=.
13242 for ac_exec_ext in '' $ac_executable_extensions; do
13243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13244 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13255 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13256 if test -n "$PKG_CONFIG"; then
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13258 $as_echo "$PKG_CONFIG" >&6; }
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13261 $as_echo "no" >&6; }
13266 if test -z "$ac_cv_path_PKG_CONFIG"; then
13267 ac_pt_PKG_CONFIG=$PKG_CONFIG
13268 # Extract the first word of "pkg-config", so it can be a program name with args.
13269 set dummy pkg-config; ac_word=$2
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13271 $as_echo_n "checking for $ac_word... " >&6; }
13272 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13273 $as_echo_n "(cached) " >&6
13275 case $ac_pt_PKG_CONFIG in
13277 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13281 for as_dir in $PATH
13284 test -z "$as_dir" && as_dir=.
13285 for ac_exec_ext in '' $ac_executable_extensions; do
13286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13287 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13298 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13299 if test -n "$ac_pt_PKG_CONFIG"; then
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13301 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304 $as_echo "no" >&6; }
13307 if test "x$ac_pt_PKG_CONFIG" = x; then
13310 case $cross_compiling:$ac_tool_warned in
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13314 ac_tool_warned=yes ;;
13316 PKG_CONFIG=$ac_pt_PKG_CONFIG
13319 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13323 if test -n "$PKG_CONFIG"; then
13324 _pkg_min_version=0.16
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13326 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13327 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13329 $as_echo "yes" >&6; }
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13332 $as_echo "no" >&6; }
13339 if test "x$PKG_CONFIG" = x ; then
13344 min_glib_version=2.34.2
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
13346 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
13348 if test x$PKG_CONFIG != xno ; then
13349 ## don't try to run the test against uninstalled libtool libs
13350 if $PKG_CONFIG --uninstalled $pkg_config_args; then
13351 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
13355 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
13362 if test x"$no_glib" = x ; then
13363 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
13364 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
13365 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
13366 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
13368 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
13369 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
13370 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
13371 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13372 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
13373 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13374 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
13375 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13376 if test "x$enable_glibtest" = "xyes" ; then
13377 ac_save_CFLAGS="$CFLAGS"
13378 ac_save_LIBS="$LIBS"
13379 CFLAGS="$CFLAGS $GLIB_CFLAGS"
13380 LIBS="$GLIB_LIBS $LIBS"
13381 rm -f conf.glibtest
13382 if test "$cross_compiling" = yes; then :
13383 echo $ac_n "cross compiling; assumed OK... $ac_c"
13385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h. */
13390 #include <stdlib.h>
13395 unsigned int major, minor, micro;
13398 fclose (fopen ("conf.glibtest", "w"));
13400 /* HP/UX 9 (%@#!) writes to sscanf strings */
13401 tmp_version = g_strdup("$min_glib_version");
13402 if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, µ) != 3) {
13403 printf("%s, bad version string\n", "$min_glib_version");
13407 if ((glib_major_version != $glib_config_major_version) ||
13408 (glib_minor_version != $glib_config_minor_version) ||
13409 (glib_micro_version != $glib_config_micro_version))
13411 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
13412 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
13413 glib_major_version, glib_minor_version, glib_micro_version);
13414 printf ("*** was found! If pkg-config was correct, then it is best\n");
13415 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
13416 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13417 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13418 printf("*** required on your system.\n");
13419 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
13420 printf("*** to point to the correct configuration files\n");
13422 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
13423 (glib_minor_version != GLIB_MINOR_VERSION) ||
13424 (glib_micro_version != GLIB_MICRO_VERSION))
13426 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
13427 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
13428 printf("*** library (version %d.%d.%d)\n",
13429 glib_major_version, glib_minor_version, glib_micro_version);
13433 if ((glib_major_version > major) ||
13434 ((glib_major_version == major) && (glib_minor_version > minor)) ||
13435 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
13441 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
13442 glib_major_version, glib_minor_version, glib_micro_version);
13443 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
13444 major, minor, micro);
13445 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
13447 printf("*** If you have already installed a sufficiently new version, this error\n");
13448 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
13449 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13450 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
13451 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
13452 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13453 printf("*** so that the correct libraries are found at run-time))\n");
13460 if ac_fn_c_try_run "$LINENO"; then :
13465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13466 conftest.$ac_objext conftest.beam conftest.$ac_ext
13469 CFLAGS="$ac_save_CFLAGS"
13470 LIBS="$ac_save_LIBS"
13473 if test "x$no_glib" = x ; then
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
13475 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13479 $as_echo "no" >&6; }
13480 if test "$PKG_CONFIG" = "no" ; then
13481 echo "*** A new enough version of pkg-config was not found."
13482 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
13484 if test -f conf.glibtest ; then
13487 echo "*** Could not run GLIB test program, checking why..."
13488 ac_save_CFLAGS="$CFLAGS"
13489 ac_save_LIBS="$LIBS"
13490 CFLAGS="$CFLAGS $GLIB_CFLAGS"
13491 LIBS="$LIBS $GLIB_LIBS"
13492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13493 /* end confdefs.h. */
13501 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
13506 if ac_fn_c_try_link "$LINENO"; then :
13507 echo "*** The test program compiled, but did not run. This usually means"
13508 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
13509 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
13510 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13511 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13512 echo "*** is required on your system"
13514 echo "*** If you have an old version installed, it is best to remove it, although"
13515 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13517 echo "*** The test program failed to compile or link. See the file config.log for the"
13518 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
13520 rm -f core conftest.err conftest.$ac_objext \
13521 conftest$ac_exeext conftest.$ac_ext
13522 CFLAGS="$ac_save_CFLAGS"
13523 LIBS="$ac_save_LIBS"
13531 GLIB_COMPILE_RESOURCES=""
13532 as_fn_error $? "maybe you want the pygobject-2-4 branch?" "$LINENO" 5
13540 rm -f conf.glibtest
13542 if test -n "$export_dynamic"; then
13543 GLIB_LIBS=`echo $GLIB_LIBS | sed -e "s/$export_dynamic//"`
13545 PYTHON_BASENAME=`basename $PYTHON`
13552 prefix_save=$prefix
13553 exec_prefix_save=$exec_prefix
13555 if test "x$prefix" = "xNONE"; then
13556 prefix=$ac_default_prefix
13558 if test "x$exec_prefix" = "xNONE"; then
13559 exec_prefix=$prefix
13562 full_var="$FROM_VAR"
13564 new_full_var="`eval echo $full_var`"
13565 if test "x$new_full_var"="x$full_var"; then break; fi
13566 full_var=$new_full_var
13569 full_var=$new_full_var
13570 DATADIR="$full_var"
13573 prefix=$prefix_save
13574 exec_prefix=$exec_prefix_save
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi" >&5
13578 $as_echo_n "checking for ffi... " >&6; }
13580 # Check whether --with-ffi was given.
13581 if test "${with_ffi+set}" = set; then :
13582 withval=$with_ffi; with_libffi=$withval
13587 if test x"$with_libffi" = xno ; then
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFI" >&5
13593 $as_echo_n "checking for FFI... " >&6; }
13595 if test -n "$FFI_CFLAGS"; then
13596 pkg_cv_FFI_CFLAGS="$FFI_CFLAGS"
13597 elif test -n "$PKG_CONFIG"; then
13598 if test -n "$PKG_CONFIG" && \
13599 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
13600 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
13602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13603 test $ac_status = 0; }; then
13604 pkg_cv_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0" 2>/dev/null`
13605 test "x$?" != "x0" && pkg_failed=yes
13612 if test -n "$FFI_LIBS"; then
13613 pkg_cv_FFI_LIBS="$FFI_LIBS"
13614 elif test -n "$PKG_CONFIG"; then
13615 if test -n "$PKG_CONFIG" && \
13616 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
13617 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
13619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13620 test $ac_status = 0; }; then
13621 pkg_cv_FFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0" 2>/dev/null`
13622 test "x$?" != "x0" && pkg_failed=yes
13632 if test $pkg_failed = yes; then
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13634 $as_echo "no" >&6; }
13636 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13637 _pkg_short_errors_supported=yes
13639 _pkg_short_errors_supported=no
13641 if test $_pkg_short_errors_supported = yes; then
13642 FFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
13644 FFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
13646 # Put the nasty error message in config.log where it belongs
13647 echo "$FFI_PKG_ERRORS" >&5
13650 elif test $pkg_failed = untried; then
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13652 $as_echo "no" >&6; }
13655 FFI_CFLAGS=$pkg_cv_FFI_CFLAGS
13656 FFI_LIBS=$pkg_cv_FFI_LIBS
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13658 $as_echo "yes" >&6; }
13662 if test x"$with_libffi" = xyes && test x"$have_libffi" = xno ; then
13663 as_fn_error $? "ffi requested, but not found" "$LINENO" 5
13665 if test x"$have_libffi" = xyes; then
13668 if test "$have_libffi" = "yes"; then
13670 HAVE_LIBFFI_FALSE='#'
13672 HAVE_LIBFFI_TRUE='#'
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
13683 $as_echo_n "checking for GIO... " >&6; }
13685 if test -n "$GIO_CFLAGS"; then
13686 pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
13687 elif test -n "$PKG_CONFIG"; then
13688 if test -n "$PKG_CONFIG" && \
13689 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.34.2\""; } >&5
13690 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.34.2") 2>&5
13692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13693 test $ac_status = 0; }; then
13694 pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.34.2" 2>/dev/null`
13695 test "x$?" != "x0" && pkg_failed=yes
13702 if test -n "$GIO_LIBS"; then
13703 pkg_cv_GIO_LIBS="$GIO_LIBS"
13704 elif test -n "$PKG_CONFIG"; then
13705 if test -n "$PKG_CONFIG" && \
13706 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.34.2\""; } >&5
13707 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.34.2") 2>&5
13709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13710 test $ac_status = 0; }; then
13711 pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.34.2" 2>/dev/null`
13712 test "x$?" != "x0" && pkg_failed=yes
13722 if test $pkg_failed = yes; then
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13724 $as_echo "no" >&6; }
13726 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13727 _pkg_short_errors_supported=yes
13729 _pkg_short_errors_supported=no
13731 if test $_pkg_short_errors_supported = yes; then
13732 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.34.2" 2>&1`
13734 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.34.2" 2>&1`
13736 # Put the nasty error message in config.log where it belongs
13737 echo "$GIO_PKG_ERRORS" >&5
13739 as_fn_error $? "Package requirements (gio-2.0 >= 2.34.2) were not met:
13743 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13744 installed software in a non-standard prefix.
13746 Alternatively, you may set the environment variables GIO_CFLAGS
13747 and GIO_LIBS to avoid the need to call pkg-config.
13748 See the pkg-config man page for more details." "$LINENO" 5
13749 elif test $pkg_failed = untried; then
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13751 $as_echo "no" >&6; }
13752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13754 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13755 is in your PATH or set the PKG_CONFIG environment variable to the full
13756 path to pkg-config.
13758 Alternatively, you may set the environment variables GIO_CFLAGS
13759 and GIO_LIBS to avoid the need to call pkg-config.
13760 See the pkg-config man page for more details.
13762 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13763 See \`config.log' for more details" "$LINENO" 5; }
13765 GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
13766 GIO_LIBS=$pkg_cv_GIO_LIBS
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13768 $as_echo "yes" >&6; }
13772 # Check whether --enable-cairo was given.
13773 if test "${enable_cairo+set}" = set; then :
13774 enableval=$enable_cairo; enable_cairo=$enableval
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GI" >&5
13783 $as_echo_n "checking for GI... " >&6; }
13785 if test -n "$GI_CFLAGS"; then
13786 pkg_cv_GI_CFLAGS="$GI_CFLAGS"
13787 elif test -n "$PKG_CONFIG"; then
13788 if test -n "$PKG_CONFIG" && \
13789 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.34.2
13790 gobject-introspection-1.0 >= 1.34.2
13792 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.34.2
13793 gobject-introspection-1.0 >= 1.34.2
13796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13797 test $ac_status = 0; }; then
13798 pkg_cv_GI_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.34.2
13799 gobject-introspection-1.0 >= 1.34.2
13801 test "x$?" != "x0" && pkg_failed=yes
13808 if test -n "$GI_LIBS"; then
13809 pkg_cv_GI_LIBS="$GI_LIBS"
13810 elif test -n "$PKG_CONFIG"; then
13811 if test -n "$PKG_CONFIG" && \
13812 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.34.2
13813 gobject-introspection-1.0 >= 1.34.2
13815 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.34.2
13816 gobject-introspection-1.0 >= 1.34.2
13819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13820 test $ac_status = 0; }; then
13821 pkg_cv_GI_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.34.2
13822 gobject-introspection-1.0 >= 1.34.2
13824 test "x$?" != "x0" && pkg_failed=yes
13834 if test $pkg_failed = yes; then
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13836 $as_echo "no" >&6; }
13838 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13839 _pkg_short_errors_supported=yes
13841 _pkg_short_errors_supported=no
13843 if test $_pkg_short_errors_supported = yes; then
13844 GI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.34.2
13845 gobject-introspection-1.0 >= 1.34.2
13848 GI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.34.2
13849 gobject-introspection-1.0 >= 1.34.2
13852 # Put the nasty error message in config.log where it belongs
13853 echo "$GI_PKG_ERRORS" >&5
13855 as_fn_error $? "Package requirements (glib-2.0 >= 2.34.2
13856 gobject-introspection-1.0 >= 1.34.2
13861 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13862 installed software in a non-standard prefix.
13864 Alternatively, you may set the environment variables GI_CFLAGS
13865 and GI_LIBS to avoid the need to call pkg-config.
13866 See the pkg-config man page for more details." "$LINENO" 5
13867 elif test $pkg_failed = untried; then
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13869 $as_echo "no" >&6; }
13870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13872 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13873 is in your PATH or set the PKG_CONFIG environment variable to the full
13874 path to pkg-config.
13876 Alternatively, you may set the environment variables GI_CFLAGS
13877 and GI_LIBS to avoid the need to call pkg-config.
13878 See the pkg-config man page for more details.
13880 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13881 See \`config.log' for more details" "$LINENO" 5; }
13883 GI_CFLAGS=$pkg_cv_GI_CFLAGS
13884 GI_LIBS=$pkg_cv_GI_LIBS
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13886 $as_echo "yes" >&6; }
13890 GI_DATADIR=$($PKG_CONFIG --variable=gidatadir gobject-introspection-1.0)
13893 if test "$enable_cairo" != no; then
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
13897 $as_echo_n "checking for CAIRO... " >&6; }
13899 if test -n "$CAIRO_CFLAGS"; then
13900 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
13901 elif test -n "$PKG_CONFIG"; then
13902 if test -n "$PKG_CONFIG" && \
13903 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13904 ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13907 test $ac_status = 0; }; then
13908 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo cairo-gobject" 2>/dev/null`
13909 test "x$?" != "x0" && pkg_failed=yes
13916 if test -n "$CAIRO_LIBS"; then
13917 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
13918 elif test -n "$PKG_CONFIG"; then
13919 if test -n "$PKG_CONFIG" && \
13920 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13921 ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13924 test $ac_status = 0; }; then
13925 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo cairo-gobject" 2>/dev/null`
13926 test "x$?" != "x0" && pkg_failed=yes
13936 if test $pkg_failed = yes; then
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13938 $as_echo "no" >&6; }
13940 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13941 _pkg_short_errors_supported=yes
13943 _pkg_short_errors_supported=no
13945 if test $_pkg_short_errors_supported = yes; then
13946 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
13948 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
13950 # Put the nasty error message in config.log where it belongs
13951 echo "$CAIRO_PKG_ERRORS" >&5
13953 as_fn_error $? "Package requirements (cairo cairo-gobject) were not met:
13957 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13958 installed software in a non-standard prefix.
13960 Alternatively, you may set the environment variables CAIRO_CFLAGS
13961 and CAIRO_LIBS to avoid the need to call pkg-config.
13962 See the pkg-config man page for more details." "$LINENO" 5
13963 elif test $pkg_failed = untried; then
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13965 $as_echo "no" >&6; }
13966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13968 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13969 is in your PATH or set the PKG_CONFIG environment variable to the full
13970 path to pkg-config.
13972 Alternatively, you may set the environment variables CAIRO_CFLAGS
13973 and CAIRO_LIBS to avoid the need to call pkg-config.
13974 See the pkg-config man page for more details.
13976 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13977 See \`config.log' for more details" "$LINENO" 5; }
13979 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
13980 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13982 $as_echo "yes" >&6; }
13986 if test $build_py3k = true; then
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
13990 $as_echo_n "checking for PYCAIRO... " >&6; }
13992 if test -n "$PYCAIRO_CFLAGS"; then
13993 pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
13994 elif test -n "$PKG_CONFIG"; then
13995 if test -n "$PKG_CONFIG" && \
13996 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
13998 ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14002 test $ac_status = 0; }; then
14003 pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "py3cairo >= 1.10.0
14005 test "x$?" != "x0" && pkg_failed=yes
14012 if test -n "$PYCAIRO_LIBS"; then
14013 pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14014 elif test -n "$PKG_CONFIG"; then
14015 if test -n "$PKG_CONFIG" && \
14016 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
14018 ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14022 test $ac_status = 0; }; then
14023 pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "py3cairo >= 1.10.0
14025 test "x$?" != "x0" && pkg_failed=yes
14035 if test $pkg_failed = yes; then
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14037 $as_echo "no" >&6; }
14039 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14040 _pkg_short_errors_supported=yes
14042 _pkg_short_errors_supported=no
14044 if test $_pkg_short_errors_supported = yes; then
14045 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "py3cairo >= 1.10.0
14048 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "py3cairo >= 1.10.0
14051 # Put the nasty error message in config.log where it belongs
14052 echo "$PYCAIRO_PKG_ERRORS" >&5
14054 as_fn_error $? "Package requirements (py3cairo >= 1.10.0
14057 $PYCAIRO_PKG_ERRORS
14059 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14060 installed software in a non-standard prefix.
14062 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14063 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14064 See the pkg-config man page for more details." "$LINENO" 5
14065 elif test $pkg_failed = untried; then
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14067 $as_echo "no" >&6; }
14068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14070 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14071 is in your PATH or set the PKG_CONFIG environment variable to the full
14072 path to pkg-config.
14074 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14075 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14076 See the pkg-config man page for more details.
14078 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14079 See \`config.log' for more details" "$LINENO" 5; }
14081 PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14082 PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14084 $as_echo "yes" >&6; }
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14091 $as_echo_n "checking for PYCAIRO... " >&6; }
14093 if test -n "$PYCAIRO_CFLAGS"; then
14094 pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14095 elif test -n "$PKG_CONFIG"; then
14096 if test -n "$PKG_CONFIG" && \
14097 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14099 ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14103 test $ac_status = 0; }; then
14104 pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "pycairo >= 1.2.0
14106 test "x$?" != "x0" && pkg_failed=yes
14113 if test -n "$PYCAIRO_LIBS"; then
14114 pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14115 elif test -n "$PKG_CONFIG"; then
14116 if test -n "$PKG_CONFIG" && \
14117 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14119 ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14123 test $ac_status = 0; }; then
14124 pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "pycairo >= 1.2.0
14126 test "x$?" != "x0" && pkg_failed=yes
14136 if test $pkg_failed = yes; then
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14138 $as_echo "no" >&6; }
14140 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14141 _pkg_short_errors_supported=yes
14143 _pkg_short_errors_supported=no
14145 if test $_pkg_short_errors_supported = yes; then
14146 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pycairo >= 1.2.0
14149 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pycairo >= 1.2.0
14152 # Put the nasty error message in config.log where it belongs
14153 echo "$PYCAIRO_PKG_ERRORS" >&5
14155 as_fn_error $? "Package requirements (pycairo >= 1.2.0
14158 $PYCAIRO_PKG_ERRORS
14160 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14161 installed software in a non-standard prefix.
14163 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14164 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14165 See the pkg-config man page for more details." "$LINENO" 5
14166 elif test $pkg_failed = untried; then
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14168 $as_echo "no" >&6; }
14169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14171 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14172 is in your PATH or set the PKG_CONFIG environment variable to the full
14173 path to pkg-config.
14175 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14176 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14177 See the pkg-config man page for more details.
14179 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14180 See \`config.log' for more details" "$LINENO" 5; }
14182 PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14183 PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14185 $as_echo "yes" >&6; }
14190 if test "$enable_cairo" = "yes"; then
14192 ENABLE_CAIRO_FALSE='#'
14194 ENABLE_CAIRO_TRUE='#'
14195 ENABLE_CAIRO_FALSE=
14199 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
14200 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
14205 if test "x$GCC" = "xyes"; then
14207 case " $CFLAGS " in
14208 *[\ \ ]-Wall[\ \ ]*)
14211 save_CFLAGS="$CFLAGS"
14212 CFLAGS="$CFLAGS -Wall"
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Wall" >&5
14214 $as_echo_n "checking whether $CC understands -Wall... " >&6; }
14215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216 /* end confdefs.h. */
14226 if ac_fn_c_try_compile "$LINENO"; then :
14231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14233 $as_echo "$jh_has_option" >&6; }
14234 if test $jh_has_option = no; then
14235 CFLAGS="$save_CFLAGS"
14239 #JH_ADD_CFLAG([-Werror=missing-prototypes])
14241 case " $CFLAGS " in
14242 *[\ \ ]-Werror=implicit-function-declaration[\ \ ]*)
14245 save_CFLAGS="$CFLAGS"
14246 CFLAGS="$CFLAGS -Werror=implicit-function-declaration"
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=implicit-function-declaration" >&5
14248 $as_echo_n "checking whether $CC understands -Werror=implicit-function-declaration... " >&6; }
14249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h. */
14260 if ac_fn_c_try_compile "$LINENO"; then :
14265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14267 $as_echo "$jh_has_option" >&6; }
14268 if test $jh_has_option = no; then
14269 CFLAGS="$save_CFLAGS"
14274 case " $CFLAGS " in
14275 *[\ \ ]-Werror=pointer-arith[\ \ ]*)
14278 save_CFLAGS="$CFLAGS"
14279 CFLAGS="$CFLAGS -Werror=pointer-arith"
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=pointer-arith" >&5
14281 $as_echo_n "checking whether $CC understands -Werror=pointer-arith... " >&6; }
14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h. */
14293 if ac_fn_c_try_compile "$LINENO"; then :
14298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14300 $as_echo "$jh_has_option" >&6; }
14301 if test $jh_has_option = no; then
14302 CFLAGS="$save_CFLAGS"
14307 case " $CFLAGS " in
14308 *[\ \ ]-Werror=format-security[\ \ ]*)
14311 save_CFLAGS="$CFLAGS"
14312 CFLAGS="$CFLAGS -Werror=format-security"
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=format-security" >&5
14314 $as_echo_n "checking whether $CC understands -Werror=format-security... " >&6; }
14315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316 /* end confdefs.h. */
14326 if ac_fn_c_try_compile "$LINENO"; then :
14331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14333 $as_echo "$jh_has_option" >&6; }
14334 if test $jh_has_option = no; then
14335 CFLAGS="$save_CFLAGS"
14340 case " $CFLAGS " in
14341 *[\ \ ]-Werror=missing-include-dirs[\ \ ]*)
14344 save_CFLAGS="$CFLAGS"
14345 CFLAGS="$CFLAGS -Werror=missing-include-dirs"
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=missing-include-dirs" >&5
14347 $as_echo_n "checking whether $CC understands -Werror=missing-include-dirs... " >&6; }
14348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h. */
14359 if ac_fn_c_try_compile "$LINENO"; then :
14364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14366 $as_echo "$jh_has_option" >&6; }
14367 if test $jh_has_option = no; then
14368 CFLAGS="$save_CFLAGS"
14373 case " $CFLAGS " in
14374 *[\ \ ]-Werror=format[\ \ ]*)
14377 save_CFLAGS="$CFLAGS"
14378 CFLAGS="$CFLAGS -Werror=format"
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=format" >&5
14380 $as_echo_n "checking whether $CC understands -Werror=format... " >&6; }
14381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14382 /* end confdefs.h. */
14392 if ac_fn_c_try_compile "$LINENO"; then :
14397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14399 $as_echo "$jh_has_option" >&6; }
14400 if test $jh_has_option = no; then
14401 CFLAGS="$save_CFLAGS"
14406 case " $CFLAGS " in
14407 *[\ \ ]-Werror=unused-variable[\ \ ]*)
14410 save_CFLAGS="$CFLAGS"
14411 CFLAGS="$CFLAGS -Werror=unused-variable"
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=unused-variable" >&5
14413 $as_echo_n "checking whether $CC understands -Werror=unused-variable... " >&6; }
14414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14415 /* end confdefs.h. */
14425 if ac_fn_c_try_compile "$LINENO"; then :
14430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14432 $as_echo "$jh_has_option" >&6; }
14433 if test $jh_has_option = no; then
14434 CFLAGS="$save_CFLAGS"
14439 case " $CFLAGS " in
14440 *[\ \ ]-fno-strict-aliasing[\ \ ]*)
14443 save_CFLAGS="$CFLAGS"
14444 CFLAGS="$CFLAGS -fno-strict-aliasing"
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -fno-strict-aliasing" >&5
14446 $as_echo_n "checking whether $CC understands -fno-strict-aliasing... " >&6; }
14447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14448 /* end confdefs.h. */
14458 if ac_fn_c_try_compile "$LINENO"; then :
14463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14465 $as_echo "$jh_has_option" >&6; }
14466 if test $jh_has_option = no; then
14467 CFLAGS="$save_CFLAGS"
14477 case " $CFLAGS " in
14478 *[\ \ ]-std=c9x[\ \ ]*)
14481 save_CFLAGS="$CFLAGS"
14482 CFLAGS="$CFLAGS -std=c9x"
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -std=c9x" >&5
14484 $as_echo_n "checking whether $CC understands -std=c9x... " >&6; }
14485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h. */
14496 if ac_fn_c_try_compile "$LINENO"; then :
14501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14503 $as_echo "$jh_has_option" >&6; }
14504 if test $jh_has_option = no; then
14505 CFLAGS="$save_CFLAGS"
14514 # enable code coverage support
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
14517 $as_echo_n "checking whether to build with code coverage support... " >&6; }
14518 # Check whether --enable-code-coverage was given.
14519 if test "${enable_code_coverage+set}" = set; then :
14520 enableval=$enable_code_coverage;
14522 enable_code_coverage=no
14525 if test x$enable_code_coverage = xyes; then
14526 CODE_COVERAGE_ENABLED_TRUE=
14527 CODE_COVERAGE_ENABLED_FALSE='#'
14529 CODE_COVERAGE_ENABLED_TRUE='#'
14530 CODE_COVERAGE_ENABLED_FALSE=
14533 CODE_COVERAGE_ENABLED=$enable_code_coverage
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
14536 $as_echo "$enable_code_coverage" >&6; }
14538 if test "$enable_code_coverage" = "yes" ; then :
14540 if test "$GCC" = "no" ; then :
14542 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
14546 # List of supported lcov versions.
14547 lcov_version_list="1.6 1.7 1.8 1.9"
14549 # Extract the first word of "lcov", so it can be a program name with args.
14550 set dummy lcov; ac_word=$2
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14552 $as_echo_n "checking for $ac_word... " >&6; }
14553 if ${ac_cv_prog_LCOV+:} false; then :
14554 $as_echo_n "(cached) " >&6
14556 if test -n "$LCOV"; then
14557 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
14559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14560 for as_dir in $PATH
14563 test -z "$as_dir" && as_dir=.
14564 for ac_exec_ext in '' $ac_executable_extensions; do
14565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14566 ac_cv_prog_LCOV="lcov"
14567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14576 LCOV=$ac_cv_prog_LCOV
14577 if test -n "$LCOV"; then
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
14579 $as_echo "$LCOV" >&6; }
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14582 $as_echo "no" >&6; }
14586 # Extract the first word of "genhtml", so it can be a program name with args.
14587 set dummy genhtml; ac_word=$2
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14589 $as_echo_n "checking for $ac_word... " >&6; }
14590 if ${ac_cv_prog_GENHTML+:} false; then :
14591 $as_echo_n "(cached) " >&6
14593 if test -n "$GENHTML"; then
14594 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
14596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14597 for as_dir in $PATH
14600 test -z "$as_dir" && as_dir=.
14601 for ac_exec_ext in '' $ac_executable_extensions; do
14602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14603 ac_cv_prog_GENHTML="genhtml"
14604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14613 GENHTML=$ac_cv_prog_GENHTML
14614 if test -n "$GENHTML"; then
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
14616 $as_echo "$GENHTML" >&6; }
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14619 $as_echo "no" >&6; }
14624 if test "$LCOV" ; then :
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
14627 $as_echo_n "checking for lcov version... " >&6; }
14628 if ${gnome_cv_lcov_version+:} false; then :
14629 $as_echo_n "(cached) " >&6
14632 gnome_cv_lcov_version=invalid
14633 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
14634 for lcov_check_version in $lcov_version_list; do
14635 if test "$lcov_version" = "$lcov_check_version"; then
14636 gnome_cv_lcov_version="$lcov_check_version (ok)"
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnome_cv_lcov_version" >&5
14642 $as_echo "$gnome_cv_lcov_version" >&6; }
14646 lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
14647 as_fn_error $? "$lcov_msg" "$LINENO" 5
14651 case $gnome_cv_lcov_version in
14653 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
14654 as_fn_error $? "$lcov_msg" "$LINENO" 5
14659 if test -z "$GENHTML" ; then :
14661 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
14665 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
14666 CODE_COVERAGE_LDFLAGS="-lgcov"
14673 GNOME_CODE_COVERAGE_RULES='
14677 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
14678 # (Default: $(top_builddir))
14679 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
14680 # by lcov for code coverage. (Default:
14681 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
14682 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
14683 # reports to be created. (Default:
14684 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
14685 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
14687 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
14688 # instance. (Default: empty)
14690 # The generated report will be titled using the $(PACKAGE_NAME) and
14691 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
14692 # use the git-version-gen script, available online.
14694 # Optional variables
14695 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
14696 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
14697 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
14698 CODE_COVERAGE_LCOV_OPTIONS ?=
14699 CODE_COVERAGE_GENHTML_OPTIONS ?=
14701 # Use recursive makes in order to ignore errors during check
14702 check-code-coverage:
14703 ifdef CODE_COVERAGE_ENABLED
14704 -$(MAKE) $(AM_MAKEFLAGS) -k check
14705 $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
14707 @echo "Need to reconfigure with --enable-code-coverage"
14710 # Capture code coverage data
14711 code-coverage-capture: code-coverage-capture-hook
14712 ifdef CODE_COVERAGE_ENABLED
14713 $(LCOV) --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)
14714 $(LCOV) --directory $(CODE_COVERAGE_DIRECTORY) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" --output-file "$(CODE_COVERAGE_OUTPUT_FILE)"
14715 -rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
14716 LANG=C $(GENHTML) --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)
14717 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
14719 @echo "Need to reconfigure with --enable-code-coverage"
14722 # Hook rule executed before code-coverage-capture, overridable by the user
14723 code-coverage-capture-hook:
14725 clean: code-coverage-clean
14726 code-coverage-clean:
14727 -$(LCOV) --directory $(top_builddir) -z
14728 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
14729 -find . -name "*.gcda" -o -name "*.gcov" -delete
14732 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
14734 DISTCHECK_CONFIGURE_FLAGS ?=
14735 DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
14737 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
14743 CFLAGS="$CFLAGS $CODE_COVERAGE_CFLAGS"
14744 LDFLAGS="$LDFLAGS $CODE_COVERAGE_CFLAGS"
14746 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/_glib/Makefile gi/_gobject/Makefile examples/Makefile tests/Makefile pygtkcompat/Makefile PKG-INFO"
14748 cat >confcache <<\_ACEOF
14749 # This file is a shell script that caches the results of configure
14750 # tests run on this system so they can be shared between configure
14751 # scripts and configure runs, see configure's option --config-cache.
14752 # It is not useful on other systems. If it contains results you don't
14753 # want to keep, you may remove or edit it.
14755 # config.status only pays attention to the cache file if you give it
14756 # the --recheck option to rerun configure.
14758 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14759 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14760 # following values.
14764 # The following way of writing the cache mishandles newlines in values,
14765 # but we know of no workaround that is simple, portable, and efficient.
14766 # So, we kill variables containing newlines.
14767 # Ultrix sh set writes to stderr and can't be redirected directly,
14768 # and sets the high bit in the cache file unless we assign to the vars.
14770 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14771 eval ac_val=\$$ac_var
14775 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14776 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14779 _ | IFS | as_nl) ;; #(
14780 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14781 *) { eval $ac_var=; unset $ac_var;} ;;
14787 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14788 *${as_nl}ac_space=\ *)
14789 # `set' does not quote correctly, so add quotes: double-quote
14790 # substitution turns \\\\ into \\, and sed turns \\ into \.
14793 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14796 # `set' quotes correctly as required by POSIX, so do not add quotes.
14797 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14806 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14808 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14810 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14811 if test -w "$cache_file"; then
14812 if test "x$cache_file" != "x/dev/null"; then
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14814 $as_echo "$as_me: updating cache $cache_file" >&6;}
14815 if test ! -f "$cache_file" || test -h "$cache_file"; then
14816 cat confcache >"$cache_file"
14818 case $cache_file in #(
14820 mv -f confcache "$cache_file"$$ &&
14821 mv -f "$cache_file"$$ "$cache_file" ;; #(
14823 mv -f confcache "$cache_file" ;;
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14829 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14834 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14835 # Let make expand exec_prefix.
14836 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14838 DEFS=-DHAVE_CONFIG_H
14843 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14844 # 1. Remove the extension, and $U if already installed.
14845 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14846 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14847 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14848 # will be set to the directory where LIBOBJS objects are built.
14849 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14850 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14852 LIBOBJS=$ac_libobjs
14854 LTLIBOBJS=$ac_ltlibobjs
14857 if test -n "$EXEEXT"; then
14859 am__EXEEXT_FALSE='#'
14861 am__EXEEXT_TRUE='#'
14865 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
14866 as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
14867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14869 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
14870 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
14871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14873 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14874 as_fn_error $? "conditional \"AMDEP\" was never defined.
14875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14877 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14878 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14879 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14881 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14882 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14885 if test -z "${HAVE_LIBFFI_TRUE}" && test -z "${HAVE_LIBFFI_FALSE}"; then
14886 as_fn_error $? "conditional \"HAVE_LIBFFI\" was never defined.
14887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14889 if test -z "${ENABLE_CAIRO_TRUE}" && test -z "${ENABLE_CAIRO_FALSE}"; then
14890 as_fn_error $? "conditional \"ENABLE_CAIRO\" was never defined.
14891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14893 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
14894 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
14895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14898 : "${CONFIG_STATUS=./config.status}"
14900 ac_clean_files_save=$ac_clean_files
14901 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14903 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14905 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14907 # Generated by $as_me.
14908 # Run this file to recreate the current configuration.
14909 # Compiler output produced by configure, useful for debugging
14910 # configure, is in config.log if it exists.
14913 ac_cs_recheck=false
14916 SHELL=\${CONFIG_SHELL-$SHELL}
14919 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14920 ## -------------------- ##
14921 ## M4sh Initialization. ##
14922 ## -------------------- ##
14924 # Be more Bourne compatible
14925 DUALCASE=1; export DUALCASE # for MKS sh
14926 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14929 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14930 # is contrary to our usage. Disable this feature.
14931 alias -g '${1+"$@"}'='"$@"'
14932 setopt NO_GLOB_SUBST
14934 case `(set -o) 2>/dev/null` in #(
14946 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14947 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14948 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14949 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14950 # Prefer a ksh shell builtin over an external printf program on Solaris,
14951 # but without wasting forks for bash or zsh.
14952 if test -z "$BASH_VERSION$ZSH_VERSION" \
14953 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14954 as_echo='print -r --'
14955 as_echo_n='print -rn --'
14956 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14957 as_echo='printf %s\n'
14958 as_echo_n='printf %s'
14960 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14961 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14962 as_echo_n='/usr/ucb/echo -n'
14964 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14965 as_echo_n_body='eval
14969 expr "X$arg" : "X\\(.*\\)$as_nl";
14970 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14972 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14974 export as_echo_n_body
14975 as_echo_n='sh -c $as_echo_n_body as_echo'
14977 export as_echo_body
14978 as_echo='sh -c $as_echo_body as_echo'
14981 # The user is always right.
14982 if test "${PATH_SEPARATOR+set}" != set; then
14984 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14985 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14992 # We need space, tab and new line, in precisely that order. Quoting is
14993 # there to prevent editors from complaining about space-tab.
14994 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14995 # splitting by setting IFS to empty value.)
14998 # Find who we are. Look in the path if we contain no directory separator.
15001 *[\\/]* ) as_myself=$0 ;;
15002 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15003 for as_dir in $PATH
15006 test -z "$as_dir" && as_dir=.
15007 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15013 # We did not find ourselves, most probably we were run as `sh COMMAND'
15014 # in which case we are not to be found in the path.
15015 if test "x$as_myself" = x; then
15018 if test ! -f "$as_myself"; then
15019 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15023 # Unset variables that we do not need and which cause bugs (e.g. in
15024 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15025 # suppresses any "Segmentation fault" message there. '((' could
15026 # trigger a bug in pdksh 5.2.14.
15027 for as_var in BASH_ENV ENV MAIL MAILPATH
15028 do eval test x\${$as_var+set} = xset \
15029 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15042 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15045 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15046 # ----------------------------------------
15047 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15048 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15049 # script with STATUS, using 1 if that was 0.
15052 as_status=$1; test $as_status -eq 0 && as_status=1
15054 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15055 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15057 $as_echo "$as_me: error: $2" >&2
15058 as_fn_exit $as_status
15062 # as_fn_set_status STATUS
15063 # -----------------------
15064 # Set $? to STATUS, without forking.
15065 as_fn_set_status ()
15068 } # as_fn_set_status
15070 # as_fn_exit STATUS
15071 # -----------------
15072 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15076 as_fn_set_status $1
15082 # Portably unset VAR.
15085 { eval $1=; unset $1;}
15087 as_unset=as_fn_unset
15088 # as_fn_append VAR VALUE
15089 # ----------------------
15090 # Append the text in VALUE to the end of the definition contained in VAR. Take
15091 # advantage of any shell optimizations that allow amortized linear growth over
15092 # repeated appends, instead of the typical quadratic growth present in naive
15094 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15095 eval 'as_fn_append ()
15106 # as_fn_arith ARG...
15107 # ------------------
15108 # Perform arithmetic evaluation on the ARGs, and store the result in the
15109 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15110 # must be portable across $(()) and expr.
15111 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15112 eval 'as_fn_arith ()
15119 as_val=`expr "$@" || test $? -eq 1`
15124 if expr a : '\(a\)' >/dev/null 2>&1 &&
15125 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15131 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15132 as_basename=basename
15137 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15143 as_me=`$as_basename -- "$0" ||
15144 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15145 X"$0" : 'X\(//\)$' \| \
15146 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15148 sed '/^.*\/\([^/][^/]*\)\/*$/{
15162 # Avoid depending upon Character Ranges.
15163 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15164 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15165 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15166 as_cr_digits='0123456789'
15167 as_cr_alnum=$as_cr_Letters$as_cr_digits
15169 ECHO_C= ECHO_N= ECHO_T=
15170 case `echo -n x` in #(((((
15172 case `echo 'xy\c'` in
15173 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15175 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15182 rm -f conf$$ conf$$.exe conf$$.file
15183 if test -d conf$$.dir; then
15184 rm -f conf$$.dir/conf$$.file
15187 mkdir conf$$.dir 2>/dev/null
15189 if (echo >conf$$.file) 2>/dev/null; then
15190 if ln -s conf$$.file conf$$ 2>/dev/null; then
15192 # ... but there are two gotchas:
15193 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15194 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15195 # In both cases, we have to default to `cp -pR'.
15196 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15198 elif ln conf$$.file conf$$ 2>/dev/null; then
15206 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15207 rmdir conf$$.dir 2>/dev/null
15212 # Create "$as_dir" as a directory, including parents if necessary.
15217 -*) as_dir=./$as_dir;;
15219 test -d "$as_dir" || eval $as_mkdir_p || {
15223 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15224 *) as_qdir=$as_dir;;
15226 as_dirs="'$as_qdir' $as_dirs"
15227 as_dir=`$as_dirname -- "$as_dir" ||
15228 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15229 X"$as_dir" : 'X\(//\)[^/]' \| \
15230 X"$as_dir" : 'X\(//\)$' \| \
15231 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15232 $as_echo X"$as_dir" |
15233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15237 /^X\(\/\/\)[^/].*/{
15250 test -d "$as_dir" && break
15252 test -z "$as_dirs" || eval "mkdir $as_dirs"
15253 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15257 if mkdir -p . 2>/dev/null; then
15258 as_mkdir_p='mkdir -p "$as_dir"'
15260 test -d ./-p && rmdir ./-p
15265 # as_fn_executable_p FILE
15266 # -----------------------
15267 # Test if FILE is an executable regular file.
15268 as_fn_executable_p ()
15270 test -f "$1" && test -x "$1"
15271 } # as_fn_executable_p
15272 as_test_x='test -x'
15273 as_executable_p=as_fn_executable_p
15275 # Sed expression to map a string onto a valid CPP name.
15276 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15278 # Sed expression to map a string onto a valid variable name.
15279 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15283 ## ----------------------------------- ##
15284 ## Main body of $CONFIG_STATUS script. ##
15285 ## ----------------------------------- ##
15287 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15290 # Save the log message, to keep $0 and so on meaningful, and to
15291 # report actual input values of CONFIG_FILES etc. instead of their
15292 # values after options handling.
15294 This file was extended by pygobject $as_me 3.7.4, which was
15295 generated by GNU Autoconf 2.69. Invocation command line was
15297 CONFIG_FILES = $CONFIG_FILES
15298 CONFIG_HEADERS = $CONFIG_HEADERS
15299 CONFIG_LINKS = $CONFIG_LINKS
15300 CONFIG_COMMANDS = $CONFIG_COMMANDS
15303 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15308 case $ac_config_files in *"
15309 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15312 case $ac_config_headers in *"
15313 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15318 # Files that config.status was made for.
15319 config_files="$ac_config_files"
15320 config_headers="$ac_config_headers"
15321 config_commands="$ac_config_commands"
15325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15327 \`$as_me' instantiates files and other configuration actions
15328 from templates according to the current configuration. Unless the files
15329 and actions are specified as TAGs, all are instantiated by default.
15331 Usage: $0 [OPTION]... [TAG]...
15333 -h, --help print this help, then exit
15334 -V, --version print version number and configuration settings, then exit
15335 --config print configuration, then exit
15336 -q, --quiet, --silent
15337 do not print progress messages
15338 -d, --debug don't remove temporary files
15339 --recheck update $as_me by reconfiguring in the same conditions
15340 --file=FILE[:TEMPLATE]
15341 instantiate the configuration file FILE
15342 --header=FILE[:TEMPLATE]
15343 instantiate the configuration header FILE
15345 Configuration files:
15348 Configuration headers:
15351 Configuration commands:
15354 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
15355 pygobject home page: <https://live.gnome.org/PyGObject/>."
15358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15359 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15361 pygobject config.status 3.7.4
15362 configured by $0, generated by GNU Autoconf 2.69,
15363 with options \\"\$ac_cs_config\\"
15365 Copyright (C) 2012 Free Software Foundation, Inc.
15366 This config.status script is free software; the Free Software Foundation
15367 gives unlimited permission to copy, distribute and modify it."
15374 test -n "\$AWK" || AWK=awk
15377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15378 # The default lists apply if the user does not specify any file.
15384 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15385 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15389 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15401 # Handling of the options.
15402 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15404 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15405 $as_echo "$ac_cs_version"; exit ;;
15406 --config | --confi | --conf | --con | --co | --c )
15407 $as_echo "$ac_cs_config"; exit ;;
15408 --debug | --debu | --deb | --de | --d | -d )
15410 --file | --fil | --fi | --f )
15413 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15414 '') as_fn_error $? "missing file argument" ;;
15416 as_fn_append CONFIG_FILES " '$ac_optarg'"
15417 ac_need_defaults=false;;
15418 --header | --heade | --head | --hea )
15421 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15423 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15424 ac_need_defaults=false;;
15426 # Conflict between --help and --header
15427 as_fn_error $? "ambiguous option: \`$1'
15428 Try \`$0 --help' for more information.";;
15429 --help | --hel | -h )
15430 $as_echo "$ac_cs_usage"; exit ;;
15431 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15432 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15435 # This is an error.
15436 -*) as_fn_error $? "unrecognized option: \`$1'
15437 Try \`$0 --help' for more information." ;;
15439 *) as_fn_append ac_config_targets " $1"
15440 ac_need_defaults=false ;;
15446 ac_configure_extra_args=
15448 if $ac_cs_silent; then
15450 ac_configure_extra_args="$ac_configure_extra_args --silent"
15454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15455 if \$ac_cs_recheck; then
15456 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15458 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15459 CONFIG_SHELL='$SHELL'
15460 export CONFIG_SHELL
15465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15469 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15470 ## Running $as_me. ##
15476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15480 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15483 # The HP-UX ksh and POSIX shell print the target directory to stdout
15484 # if CDPATH is set.
15485 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15487 sed_quote_subst='$sed_quote_subst'
15488 double_quote_subst='$double_quote_subst'
15489 delay_variable_subst='$delay_variable_subst'
15490 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15491 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15492 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15493 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15494 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15495 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15496 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15497 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15498 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15499 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15500 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15501 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15502 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15503 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15504 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15505 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15506 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15507 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15508 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15509 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15510 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15511 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15512 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15513 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15514 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15515 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15516 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15517 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15518 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15519 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15520 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15521 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15522 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15523 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15524 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15525 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15526 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15527 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15528 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15529 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15530 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15531 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15532 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15533 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15534 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15535 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15536 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15537 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15538 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15539 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15540 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15541 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15542 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15543 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15544 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15545 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15546 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15547 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"`'
15548 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15549 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15550 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15551 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15552 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15553 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15554 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15555 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15556 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15557 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15558 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15559 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15560 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15561 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15562 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15563 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15564 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15565 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15566 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15567 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15568 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15569 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15570 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15571 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15572 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15573 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15574 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15575 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15576 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15577 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15578 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15579 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15580 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15581 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15582 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15583 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15584 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15585 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15586 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15587 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15588 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15589 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15590 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15591 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15592 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15593 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15594 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15595 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15596 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15597 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15598 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15599 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15600 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15601 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15602 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15603 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15604 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15605 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15606 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15607 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15608 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15609 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15610 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15611 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15612 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15613 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15614 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15615 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15616 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15617 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15618 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15619 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15620 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15623 LTCFLAGS='$LTCFLAGS'
15624 compiler='$compiler_DEFAULT'
15626 # A function that is used when there is no print builtin or printf.
15627 func_fallback_echo ()
15629 eval 'cat <<_LTECHO_EOF
15634 # Quote evaled strings.
15651 deplibs_check_method \
15655 sharedlib_from_linklib_cmd \
15658 archiver_list_spec \
15664 lt_cv_sys_global_symbol_pipe \
15665 lt_cv_sys_global_symbol_to_cdecl \
15666 lt_cv_sys_global_symbol_to_c_name_address \
15667 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15668 nm_file_list_spec \
15669 lt_prog_compiler_no_builtin_flag \
15670 lt_prog_compiler_pic \
15671 lt_prog_compiler_wl \
15672 lt_prog_compiler_static \
15673 lt_cv_prog_compiler_c_o \
15682 export_dynamic_flag_spec \
15683 whole_archive_flag_spec \
15684 compiler_needs_object \
15686 allow_undefined_flag \
15687 no_undefined_flag \
15688 hardcode_libdir_flag_spec \
15689 hardcode_libdir_separator \
15693 variables_saved_for_relink \
15695 library_names_spec \
15697 install_override_mode \
15701 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15702 *[\\\\\\\`\\"\\\$]*)
15703 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15706 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15711 # Double-quote double-evaled strings.
15712 for var in reload_cmds \
15713 old_postinstall_cmds \
15714 old_postuninstall_cmds \
15716 extract_expsyms_cmds \
15717 old_archive_from_new_cmds \
15718 old_archive_from_expsyms_cmds \
15720 archive_expsym_cmds \
15722 module_expsym_cmds \
15723 export_symbols_cmds \
15727 postuninstall_cmds \
15729 sys_lib_search_path_spec \
15730 sys_lib_dlsearch_path_spec; do
15731 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15732 *[\\\\\\\`\\"\\\$]*)
15733 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15736 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15741 ac_aux_dir='$ac_aux_dir'
15742 xsi_shell='$xsi_shell'
15743 lt_shell_append='$lt_shell_append'
15745 # See if we are running on zsh, and set the options which allow our
15746 # commands through without removal of \ escapes INIT.
15747 if test -n "\${ZSH_VERSION+set}" ; then
15748 setopt NO_GLOB_SUBST
15754 TIMESTAMP='$TIMESTAMP'
15763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15765 # Handling of arguments.
15766 for ac_config_target in $ac_config_targets
15768 case $ac_config_target in
15769 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15770 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15771 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15772 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15773 "pygobject-3.0.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0.pc" ;;
15774 "pygobject-3.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0-uninstalled.pc" ;;
15775 "gi/Makefile") CONFIG_FILES="$CONFIG_FILES gi/Makefile" ;;
15776 "gi/repository/Makefile") CONFIG_FILES="$CONFIG_FILES gi/repository/Makefile" ;;
15777 "gi/overrides/Makefile") CONFIG_FILES="$CONFIG_FILES gi/overrides/Makefile" ;;
15778 "gi/_glib/Makefile") CONFIG_FILES="$CONFIG_FILES gi/_glib/Makefile" ;;
15779 "gi/_gobject/Makefile") CONFIG_FILES="$CONFIG_FILES gi/_gobject/Makefile" ;;
15780 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
15781 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15782 "pygtkcompat/Makefile") CONFIG_FILES="$CONFIG_FILES pygtkcompat/Makefile" ;;
15783 "PKG-INFO") CONFIG_FILES="$CONFIG_FILES PKG-INFO" ;;
15785 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15790 # If the user did not use the arguments to specify the items to instantiate,
15791 # then the envvar interface is used. Set only those that are not.
15792 # We use the long form for the default assignment because of an extremely
15793 # bizarre bug on SunOS 4.1.3.
15794 if $ac_need_defaults; then
15795 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15796 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15797 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15800 # Have a temporary directory for convenience. Make it in the build tree
15801 # simply because there is no reason against having it here, and in addition,
15802 # creating and moving files from /tmp can sometimes cause problems.
15803 # Hook for its removal unless debugging.
15804 # Note that there is a small window in which the directory will not be cleaned:
15805 # after its creation but before its name has been assigned to `$tmp'.
15809 trap 'exit_status=$?
15810 : "${ac_tmp:=$tmp}"
15811 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15813 trap 'as_fn_exit 1' 1 2 13 15
15815 # Create a (secure) tmp directory for tmp files.
15818 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15822 tmp=./conf$$-$RANDOM
15823 (umask 077 && mkdir "$tmp")
15824 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15827 # Set up the scripts for CONFIG_FILES section.
15828 # No need to generate them if there are no CONFIG_FILES.
15829 # This happens for instance with `./config.status config.h'.
15830 if test -n "$CONFIG_FILES"; then
15833 ac_cr=`echo X | tr X '\015'`
15834 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15835 # But we know of no other shell where ac_cr would be empty at this
15836 # point, so we can use a bashism as a fallback.
15837 if test "x$ac_cr" = x; then
15838 eval ac_cr=\$\'\\r\'
15840 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15841 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15844 ac_cs_awk_cr=$ac_cr
15847 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15852 echo "cat >conf$$subs.awk <<_ACEOF" &&
15853 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15855 } >conf$$subs.sh ||
15856 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15857 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15859 for ac_last_try in false false false false false :; do
15860 . ./conf$$subs.sh ||
15861 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15863 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15864 if test $ac_delim_n = $ac_delim_num; then
15866 elif $ac_last_try; then
15867 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15869 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15872 rm -f conf$$subs.sh
15874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15875 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15879 s/^/S["/; s/!.*/"]=/
15889 s/\(.\{148\}\)..*/\1/
15891 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15896 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15903 s/\(.\{148\}\)..*/\1/
15905 s/["\\]/\\&/g; s/^/"/; s/$/"/
15909 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15914 ' <conf$$subs.awk | sed '
15919 ' >>$CONFIG_STATUS || ac_write_fail=1
15920 rm -f conf$$subs.awk
15921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15923 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15924 for (key in S) S_is_set[key] = 1
15930 nfields = split(line, field, "@")
15932 len = length(field[1])
15933 for (i = 2; i < nfields; i++) {
15935 keylen = length(key)
15936 if (S_is_set[key]) {
15938 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15939 len += length(value) + length(field[++i])
15950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15951 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15952 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15955 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15956 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15959 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15960 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15961 # trailing colons and then remove the whole line if VPATH becomes empty
15962 # (actually we leave an empty line to preserve line numbers).
15963 if test "x$srcdir" = x.; then
15964 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15983 fi # test -n "$CONFIG_FILES"
15985 # Set up the scripts for CONFIG_HEADERS section.
15986 # No need to generate them if there are no CONFIG_HEADERS.
15987 # This happens for instance with `./config.status Makefile'.
15988 if test -n "$CONFIG_HEADERS"; then
15989 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15993 # Transform confdefs.h into an awk script `defines.awk', embedded as
15994 # here-document in config.status, that substitutes the proper values into
15995 # config.h.in to produce config.h.
15997 # Create a delimiter string that does not exist in confdefs.h, to ease
15998 # handling of long lines.
16000 for ac_last_try in false false :; do
16001 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16002 if test -z "$ac_tt"; then
16004 elif $ac_last_try; then
16005 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16007 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16011 # For the awk script, D is an array of macro values keyed by name,
16012 # likewise P contains macro parameters if any. Preserve backslash
16013 # newline sequences.
16015 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16017 s/.\{148\}/&'"$ac_delim"'/g
16020 s/^[ ]*#[ ]*define[ ][ ]*/ /
16027 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16029 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16033 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16034 D["\1"]=" \3\\\\\\n"\\/p
16036 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16041 s/.\{148\}/&'"$ac_delim"'/g
16046 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16049 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16051 ' <confdefs.h | sed '
16052 s/'"$ac_delim"'/"\\\
16053 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16056 for (key in D) D_is_set[key] = 1
16059 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16061 split(line, arg, " ")
16062 if (arg[1] == "#") {
16066 defundef = substr(arg[1], 2)
16069 split(mac1, mac2, "(") #)
16071 prefix = substr(line, 1, index(line, defundef) - 1)
16072 if (D_is_set[macro]) {
16073 # Preserve the white space surrounding the "#".
16074 print prefix "define", macro P[macro] D[macro]
16077 # Replace #undef with comments. This is necessary, for example,
16078 # in the case of _POSIX_SOURCE, which is predefined and required
16079 # on some systems where configure will not decide to define it.
16080 if (defundef == "undef") {
16081 print "/*", prefix defundef, macro, "*/"
16089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16090 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16091 fi # test -n "$CONFIG_HEADERS"
16094 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16099 :[FHLC]) ac_mode=$ac_tag; continue;;
16101 case $ac_mode$ac_tag in
16103 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16104 :[FH]-) ac_tag=-:-;;
16105 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16122 -) ac_f="$ac_tmp/stdin";;
16123 *) # Look for the file first in the build tree, then in the source tree
16124 # (if the path is not absolute). The absolute path cannot be DOS-style,
16125 # because $ac_f cannot contain `:'.
16129 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16131 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16133 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16134 as_fn_append ac_file_inputs " '$ac_f'"
16137 # Let's still pretend it is `configure' which instantiates (i.e., don't
16138 # use $as_me), people would be surprised to read:
16139 # /* config.h. Generated by config.status. */
16140 configure_input='Generated from '`
16141 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16143 if test x"$ac_file" != x-; then
16144 configure_input="$ac_file. $configure_input"
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16146 $as_echo "$as_me: creating $ac_file" >&6;}
16148 # Neutralize special characters interpreted by sed in replacement strings.
16149 case $configure_input in #(
16150 *\&* | *\|* | *\\* )
16151 ac_sed_conf_input=`$as_echo "$configure_input" |
16152 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16153 *) ac_sed_conf_input=$configure_input;;
16157 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16158 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16163 ac_dir=`$as_dirname -- "$ac_file" ||
16164 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16165 X"$ac_file" : 'X\(//\)[^/]' \| \
16166 X"$ac_file" : 'X\(//\)$' \| \
16167 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16168 $as_echo X"$ac_file" |
16169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16173 /^X\(\/\/\)[^/].*/{
16186 as_dir="$ac_dir"; as_fn_mkdir_p
16190 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16192 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16193 # A ".." for each directory in $ac_dir_suffix.
16194 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16195 case $ac_top_builddir_sub in
16196 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16197 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16200 ac_abs_top_builddir=$ac_pwd
16201 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16202 # for backward compatibility:
16203 ac_top_builddir=$ac_top_build_prefix
16206 .) # We are building in place.
16208 ac_top_srcdir=$ac_top_builddir_sub
16209 ac_abs_top_srcdir=$ac_pwd ;;
16210 [\\/]* | ?:[\\/]* ) # Absolute name.
16211 ac_srcdir=$srcdir$ac_dir_suffix;
16212 ac_top_srcdir=$srcdir
16213 ac_abs_top_srcdir=$srcdir ;;
16214 *) # Relative name.
16215 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16216 ac_top_srcdir=$ac_top_build_prefix$srcdir
16217 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16219 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16229 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16230 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16232 ac_MKDIR_P=$MKDIR_P
16234 [\\/$]* | ?:[\\/]* ) ;;
16235 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16240 # If the template does not know about datarootdir, expand it.
16241 # FIXME: This hack should be removed a few years after 2.60.
16242 ac_datarootdir_hack=; ac_datarootdir_seen=
16253 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16254 *datarootdir*) ac_datarootdir_seen=yes;;
16255 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16257 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16260 ac_datarootdir_hack='
16261 s&@datadir@&$datadir&g
16262 s&@docdir@&$docdir&g
16263 s&@infodir@&$infodir&g
16264 s&@localedir@&$localedir&g
16265 s&@mandir@&$mandir&g
16266 s&\\\${datarootdir}&$datarootdir&g' ;;
16270 # Neutralize VPATH when `$srcdir' = `.'.
16271 # Shell code in configure.ac might set extrasub.
16272 # FIXME: do we really want to maintain this feature?
16273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16274 ac_sed_extra="$ac_vpsub
16277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16279 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16280 s|@configure_input@|$ac_sed_conf_input|;t t
16281 s&@top_builddir@&$ac_top_builddir_sub&;t t
16282 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16283 s&@srcdir@&$ac_srcdir&;t t
16284 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16285 s&@top_srcdir@&$ac_top_srcdir&;t t
16286 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16287 s&@builddir@&$ac_builddir&;t t
16288 s&@abs_builddir@&$ac_abs_builddir&;t t
16289 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16290 s&@INSTALL@&$ac_INSTALL&;t t
16291 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16292 $ac_datarootdir_hack
16294 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16295 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16297 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16298 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16299 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16300 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16302 which seems to be undefined. Please make sure it is defined" >&5
16303 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16304 which seems to be undefined. Please make sure it is defined" >&2;}
16306 rm -f "$ac_tmp/stdin"
16308 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16309 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16311 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16317 if test x"$ac_file" != x-; then
16319 $as_echo "/* $configure_input */" \
16320 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16321 } >"$ac_tmp/config.h" \
16322 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16323 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16325 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16328 mv "$ac_tmp/config.h" "$ac_file" \
16329 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16332 $as_echo "/* $configure_input */" \
16333 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16334 || as_fn_error $? "could not create -" "$LINENO" 5
16336 # Compute "$ac_file"'s index in $config_headers.
16339 for _am_header in $config_headers :; do
16340 case $_am_header in
16341 $_am_arg | $_am_arg:* )
16344 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16347 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16348 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16349 X"$_am_arg" : 'X\(//\)[^/]' \| \
16350 X"$_am_arg" : 'X\(//\)$' \| \
16351 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16352 $as_echo X"$_am_arg" |
16353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16357 /^X\(\/\/\)[^/].*/{
16369 s/.*/./; q'`/stamp-h$_am_stamp_count
16372 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16373 $as_echo "$as_me: executing $ac_file commands" >&6;}
16378 case $ac_file$ac_mode in
16379 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16380 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16381 # are listed without --file. Let's play safe and only enable the eval
16382 # if we detect the quoting.
16383 case $CONFIG_FILES in
16384 *\'*) eval set x "$CONFIG_FILES" ;;
16385 *) set x $CONFIG_FILES ;;
16390 # Strip MF so we end up with the name of the file.
16391 mf=`echo "$mf" | sed -e 's/:.*$//'`
16392 # Check whether this is an Automake generated Makefile or not.
16393 # We used to match only the files named `Makefile.in', but
16394 # some people rename them; so instead we look at the file content.
16395 # Grep'ing the first line is not enough: some people post-process
16396 # each Makefile.in and add a new line on top of each file to say so.
16397 # Grep'ing the whole file is not good either: AIX grep has a line
16398 # limit of 2048, but all sed's we know have understand at least 4000.
16399 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16400 dirpart=`$as_dirname -- "$mf" ||
16401 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16402 X"$mf" : 'X\(//\)[^/]' \| \
16403 X"$mf" : 'X\(//\)$' \| \
16404 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16410 /^X\(\/\/\)[^/].*/{
16426 # Extract the definition of DEPDIR, am__include, and am__quote
16427 # from the Makefile without running `make'.
16428 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16429 test -z "$DEPDIR" && continue
16430 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16431 test -z "am__include" && continue
16432 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16433 # When using ansi2knr, U may be empty or an underscore; expand it
16434 U=`sed -n 's/^U = //p' < "$mf"`
16435 # Find all dependency output files, they are included files with
16436 # $(DEPDIR) in their names. We invoke sed twice because it is the
16437 # simplest approach to changing $(DEPDIR) to its actual value in the
16439 for file in `sed -n "
16440 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16441 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16442 # Make sure the directory exists.
16443 test -f "$dirpart/$file" && continue
16444 fdir=`$as_dirname -- "$file" ||
16445 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16446 X"$file" : 'X\(//\)[^/]' \| \
16447 X"$file" : 'X\(//\)$' \| \
16448 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16449 $as_echo X"$file" |
16450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16454 /^X\(\/\/\)[^/].*/{
16467 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16468 # echo "creating $dirpart/$file"
16469 echo '# dummy' > "$dirpart/$file"
16476 # See if we are running on zsh, and set the options which allow our
16477 # commands through without removal of \ escapes.
16478 if test -n "${ZSH_VERSION+set}" ; then
16479 setopt NO_GLOB_SUBST
16482 cfgfile="${ofile}T"
16483 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16486 cat <<_LT_EOF >> "$cfgfile"
16489 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16490 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16491 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16492 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16494 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16495 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16497 # Written by Gordon Matzigkeit, 1996
16499 # This file is part of GNU Libtool.
16501 # GNU Libtool is free software; you can redistribute it and/or
16502 # modify it under the terms of the GNU General Public License as
16503 # published by the Free Software Foundation; either version 2 of
16504 # the License, or (at your option) any later version.
16506 # As a special exception to the GNU General Public License,
16507 # if you distribute this file as part of a program or library that
16508 # is built using GNU Libtool, you may include this file under the
16509 # same distribution terms that you use for the rest of that program.
16511 # GNU Libtool is distributed in the hope that it will be useful,
16512 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16513 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16514 # GNU General Public License for more details.
16516 # You should have received a copy of the GNU General Public License
16517 # along with GNU Libtool; see the file COPYING. If not, a copy
16518 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16519 # obtained by writing to the Free Software Foundation, Inc.,
16520 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16523 # The names of the tagged configurations supported by this script.
16526 # ### BEGIN LIBTOOL CONFIG
16528 # Which release of libtool.m4 was used?
16529 macro_version=$macro_version
16530 macro_revision=$macro_revision
16532 # Assembler program.
16535 # DLL creation program.
16536 DLLTOOL=$lt_DLLTOOL
16538 # Object dumper program.
16539 OBJDUMP=$lt_OBJDUMP
16541 # Whether or not to build static libraries.
16542 build_old_libs=$enable_static
16544 # Whether or not to build shared libraries.
16545 build_libtool_libs=$enable_shared
16547 # What type of objects to build.
16550 # Whether or not to optimize for fast installation.
16551 fast_install=$enable_fast_install
16553 # Shell to use when invoking shell scripts.
16556 # An echo program that protects backslashes.
16559 # The PATH separator for the build system.
16560 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16563 host_alias=$host_alias
16567 # The build system.
16568 build_alias=$build_alias
16572 # A sed program that does not truncate output.
16575 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16576 Xsed="\$SED -e 1s/^X//"
16578 # A grep program that handles long lines.
16584 # A literal string matcher.
16587 # A BSD- or MS-compatible name lister.
16590 # Whether we need soft or hard links.
16593 # What is the maximum length of a command?
16594 max_cmd_len=$max_cmd_len
16596 # Object file suffix (normally "o").
16599 # Executable file suffix (normally "").
16602 # whether the shell understands "unset".
16605 # turn spaces into newlines.
16608 # turn newlines into spaces.
16611 # convert \$build file names to \$host format.
16612 to_host_file_cmd=$lt_cv_to_host_file_cmd
16614 # convert \$build files to toolchain format.
16615 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16617 # Method to check whether dependent libraries are shared objects.
16618 deplibs_check_method=$lt_deplibs_check_method
16620 # Command to use when deplibs_check_method = "file_magic".
16621 file_magic_cmd=$lt_file_magic_cmd
16623 # How to find potential files when deplibs_check_method = "file_magic".
16624 file_magic_glob=$lt_file_magic_glob
16626 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16627 want_nocaseglob=$lt_want_nocaseglob
16629 # Command to associate shared and link libraries.
16630 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16635 # Flags to create an archive.
16636 AR_FLAGS=$lt_AR_FLAGS
16638 # How to feed a file listing to the archiver.
16639 archiver_list_spec=$lt_archiver_list_spec
16641 # A symbol stripping program.
16644 # Commands used to install an old-style archive.
16646 old_postinstall_cmds=$lt_old_postinstall_cmds
16647 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16649 # Whether to use a lock for old archive extraction.
16650 lock_old_archive_extraction=$lock_old_archive_extraction
16655 # LTCC compiler flags.
16656 LTCFLAGS=$lt_CFLAGS
16658 # Take the output of nm and produce a listing of raw symbols and C names.
16659 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16661 # Transform the output of nm in a proper C declaration.
16662 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16664 # Transform the output of nm in a C name address pair.
16665 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16667 # Transform the output of nm in a C name address pair when lib prefix is needed.
16668 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16670 # Specify filename containing input files for \$NM.
16671 nm_file_list_spec=$lt_nm_file_list_spec
16673 # The root where to search for dependent libraries,and in which our libraries should be installed.
16674 lt_sysroot=$lt_sysroot
16676 # The name of the directory that contains temporary libtool files.
16679 # Used to examine libraries when file_magic_cmd begins with "file".
16680 MAGIC_CMD=$MAGIC_CMD
16682 # Must we lock files when doing compilation?
16683 need_locks=$lt_need_locks
16686 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16688 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16689 DSYMUTIL=$lt_DSYMUTIL
16691 # Tool to change global to local symbols on Mac OS X.
16694 # Tool to manipulate fat objects and archives on Mac OS X.
16697 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16700 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16701 OTOOL64=$lt_OTOOL64
16703 # Old archive suffix (normally "a").
16706 # Shared library suffix (normally ".so").
16707 shrext_cmds=$lt_shrext_cmds
16709 # The commands to extract the exported symbol list from a shared archive.
16710 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16712 # Variables whose values should be saved in libtool wrapper scripts and
16713 # restored at link time.
16714 variables_saved_for_relink=$lt_variables_saved_for_relink
16716 # Do we need the "lib" prefix for modules?
16717 need_lib_prefix=$need_lib_prefix
16719 # Do we need a version for libraries?
16720 need_version=$need_version
16722 # Library versioning type.
16723 version_type=$version_type
16725 # Shared library runtime path variable.
16726 runpath_var=$runpath_var
16728 # Shared library path variable.
16729 shlibpath_var=$shlibpath_var
16731 # Is shlibpath searched before the hard-coded library search path?
16732 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16734 # Format of library name prefix.
16735 libname_spec=$lt_libname_spec
16737 # List of archive names. First name is the real one, the rest are links.
16738 # The last name is the one that the linker finds with -lNAME
16739 library_names_spec=$lt_library_names_spec
16741 # The coded name of the library, if different from the real name.
16742 soname_spec=$lt_soname_spec
16744 # Permission mode override for installation of shared libraries.
16745 install_override_mode=$lt_install_override_mode
16747 # Command to use after installation of a shared archive.
16748 postinstall_cmds=$lt_postinstall_cmds
16750 # Command to use after uninstallation of a shared archive.
16751 postuninstall_cmds=$lt_postuninstall_cmds
16753 # Commands used to finish a libtool library installation in a directory.
16754 finish_cmds=$lt_finish_cmds
16756 # As "finish_cmds", except a single script fragment to be evaled but
16758 finish_eval=$lt_finish_eval
16760 # Whether we should hardcode library paths into libraries.
16761 hardcode_into_libs=$hardcode_into_libs
16763 # Compile-time system search path for libraries.
16764 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16766 # Run-time system search path for libraries.
16767 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16769 # Whether dlopen is supported.
16770 dlopen_support=$enable_dlopen
16772 # Whether dlopen of programs is supported.
16773 dlopen_self=$enable_dlopen_self
16775 # Whether dlopen of statically linked programs is supported.
16776 dlopen_self_static=$enable_dlopen_self_static
16778 # Commands to strip libraries.
16779 old_striplib=$lt_old_striplib
16780 striplib=$lt_striplib
16783 # The linker used to build libraries.
16786 # How to create reloadable object files.
16787 reload_flag=$lt_reload_flag
16788 reload_cmds=$lt_reload_cmds
16790 # Commands used to build an old-style archive.
16791 old_archive_cmds=$lt_old_archive_cmds
16793 # A language specific compiler.
16796 # Is the compiler the GNU compiler?
16799 # Compiler flag to turn off builtin functions.
16800 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16802 # Additional compiler flags for building library objects.
16803 pic_flag=$lt_lt_prog_compiler_pic
16805 # How to pass a linker flag through the compiler.
16806 wl=$lt_lt_prog_compiler_wl
16808 # Compiler flag to prevent dynamic linking.
16809 link_static_flag=$lt_lt_prog_compiler_static
16811 # Does compiler simultaneously support -c and -o options?
16812 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16814 # Whether or not to add -lc for building shared libraries.
16815 build_libtool_need_lc=$archive_cmds_need_lc
16817 # Whether or not to disallow shared libs when runtime libs are static.
16818 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16820 # Compiler flag to allow reflexive dlopens.
16821 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16823 # Compiler flag to generate shared objects directly from archives.
16824 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16826 # Whether the compiler copes with passing no objects directly.
16827 compiler_needs_object=$lt_compiler_needs_object
16829 # Create an old-style archive from a shared archive.
16830 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16832 # Create a temporary old-style archive to link instead of a shared archive.
16833 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16835 # Commands used to build a shared archive.
16836 archive_cmds=$lt_archive_cmds
16837 archive_expsym_cmds=$lt_archive_expsym_cmds
16839 # Commands used to build a loadable module if different from building
16840 # a shared archive.
16841 module_cmds=$lt_module_cmds
16842 module_expsym_cmds=$lt_module_expsym_cmds
16844 # Whether we are building with GNU ld or not.
16845 with_gnu_ld=$lt_with_gnu_ld
16847 # Flag that allows shared libraries with undefined symbols to be built.
16848 allow_undefined_flag=$lt_allow_undefined_flag
16850 # Flag that enforces no undefined symbols.
16851 no_undefined_flag=$lt_no_undefined_flag
16853 # Flag to hardcode \$libdir into a binary during linking.
16854 # This must work even if \$libdir does not exist
16855 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16857 # Whether we need a single "-rpath" flag with a separated argument.
16858 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16860 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16861 # DIR into the resulting binary.
16862 hardcode_direct=$hardcode_direct
16864 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16865 # DIR into the resulting binary and the resulting library dependency is
16866 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16867 # library is relocated.
16868 hardcode_direct_absolute=$hardcode_direct_absolute
16870 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16871 # into the resulting binary.
16872 hardcode_minus_L=$hardcode_minus_L
16874 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16875 # into the resulting binary.
16876 hardcode_shlibpath_var=$hardcode_shlibpath_var
16878 # Set to "yes" if building a shared library automatically hardcodes DIR
16879 # into the library and all subsequent libraries and executables linked
16881 hardcode_automatic=$hardcode_automatic
16883 # Set to yes if linker adds runtime paths of dependent libraries
16884 # to runtime path list.
16885 inherit_rpath=$inherit_rpath
16887 # Whether libtool must link a program against all its dependency libraries.
16888 link_all_deplibs=$link_all_deplibs
16890 # Set to "yes" if exported symbols are required.
16891 always_export_symbols=$always_export_symbols
16893 # The commands to list exported symbols.
16894 export_symbols_cmds=$lt_export_symbols_cmds
16896 # Symbols that should not be listed in the preloaded symbols.
16897 exclude_expsyms=$lt_exclude_expsyms
16899 # Symbols that must always be exported.
16900 include_expsyms=$lt_include_expsyms
16902 # Commands necessary for linking programs (against libraries) with templates.
16903 prelink_cmds=$lt_prelink_cmds
16905 # Commands necessary for finishing linking programs.
16906 postlink_cmds=$lt_postlink_cmds
16908 # Specify filename containing input files.
16909 file_list_spec=$lt_file_list_spec
16911 # How to hardcode a shared library path into an executable.
16912 hardcode_action=$hardcode_action
16914 # ### END LIBTOOL CONFIG
16920 cat <<\_LT_EOF >> "$cfgfile"
16921 # AIX sometimes has problems with the GCC collect2 program. For some
16922 # reason, if we set the COLLECT_NAMES environment variable, the problems
16923 # vanish in a puff of smoke.
16924 if test "X${COLLECT_NAMES+set}" != Xset; then
16926 export COLLECT_NAMES
16933 ltmain="$ac_aux_dir/ltmain.sh"
16936 # We use sed instead of cat because bash on DJGPP gets confused if
16937 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16938 # text mode, it properly converts lines to CR/LF. This bash problem
16939 # is reportedly fixed, but why not run on old versions too?
16940 sed '$q' "$ltmain" >> "$cfgfile" \
16941 || (rm -f "$cfgfile"; exit 1)
16943 if test x"$xsi_shell" = xyes; then
16944 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16948 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16949 \ * ) func_dirname_result="${3}" ;;\
16951 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16952 && mv -f "$cfgfile.tmp" "$cfgfile" \
16953 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16954 test 0 -eq $? || _lt_function_replace_fail=:
16957 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16960 \ func_basename_result="${1##*/}"\
16961 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16962 && mv -f "$cfgfile.tmp" "$cfgfile" \
16963 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16964 test 0 -eq $? || _lt_function_replace_fail=:
16967 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16968 func_dirname_and_basename ()\
16971 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16972 \ * ) func_dirname_result="${3}" ;;\
16974 \ func_basename_result="${1##*/}"\
16975 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16976 && mv -f "$cfgfile.tmp" "$cfgfile" \
16977 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16978 test 0 -eq $? || _lt_function_replace_fail=:
16981 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16984 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16985 \ # positional parameters, so assign one to ordinary parameter first.\
16986 \ func_stripname_result=${3}\
16987 \ func_stripname_result=${func_stripname_result#"${1}"}\
16988 \ func_stripname_result=${func_stripname_result%"${2}"}\
16989 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16990 && mv -f "$cfgfile.tmp" "$cfgfile" \
16991 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16992 test 0 -eq $? || _lt_function_replace_fail=:
16995 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16996 func_split_long_opt ()\
16998 \ func_split_long_opt_name=${1%%=*}\
16999 \ func_split_long_opt_arg=${1#*=}\
17000 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17001 && mv -f "$cfgfile.tmp" "$cfgfile" \
17002 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17003 test 0 -eq $? || _lt_function_replace_fail=:
17006 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17007 func_split_short_opt ()\
17009 \ func_split_short_opt_arg=${1#??}\
17010 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17011 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17012 && mv -f "$cfgfile.tmp" "$cfgfile" \
17013 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17014 test 0 -eq $? || _lt_function_replace_fail=:
17017 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17021 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17022 \ *) func_lo2o_result=${1} ;;\
17024 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17025 && mv -f "$cfgfile.tmp" "$cfgfile" \
17026 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17027 test 0 -eq $? || _lt_function_replace_fail=:
17030 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17033 func_xform_result=${1%.*}.lo\
17034 } # Extended-shell func_xform 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_arith ()$/,/^} # func_arith /c\
17043 func_arith_result=$(( $* ))\
17044 } # Extended-shell func_arith 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_len ()$/,/^} # func_len /c\
17053 func_len_result=${#1}\
17054 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17055 && mv -f "$cfgfile.tmp" "$cfgfile" \
17056 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17057 test 0 -eq $? || _lt_function_replace_fail=:
17061 if test x"$lt_shell_append" = xyes; then
17062 sed -e '/^func_append ()$/,/^} # func_append /c\
17065 eval "${1}+=\\${2}"\
17066 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17067 && mv -f "$cfgfile.tmp" "$cfgfile" \
17068 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17069 test 0 -eq $? || _lt_function_replace_fail=:
17072 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17073 func_append_quoted ()\
17075 \ func_quote_for_eval "${2}"\
17076 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17077 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17078 && mv -f "$cfgfile.tmp" "$cfgfile" \
17079 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17080 test 0 -eq $? || _lt_function_replace_fail=:
17083 # Save a `func_append' function call where possible by direct use of '+='
17084 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17085 && mv -f "$cfgfile.tmp" "$cfgfile" \
17086 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17087 test 0 -eq $? || _lt_function_replace_fail=:
17089 # Save a `func_append' function call even when '+=' is not available
17090 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17091 && mv -f "$cfgfile.tmp" "$cfgfile" \
17092 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17093 test 0 -eq $? || _lt_function_replace_fail=:
17096 if test x"$_lt_function_replace_fail" = x":"; then
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17098 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17102 mv -f "$cfgfile" "$ofile" ||
17103 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17114 ac_clean_files=$ac_clean_files_save
17116 test $ac_write_fail = 0 ||
17117 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17120 # configure is writing to config.log, and then calls config.status.
17121 # config.status does its own redirection, appending to config.log.
17122 # Unfortunately, on DOS this fails, as config.log is still kept open
17123 # by configure, so config.status won't be able to write to it; its
17124 # output is simply discarded. So we exec the FD to /dev/null,
17125 # effectively closing config.log, so it can be properly (re)opened and
17126 # appended to by config.status. When coming back to configure, we
17127 # need to make the FD available again.
17128 if test "$no_create" != yes; then
17130 ac_config_status_args=
17131 test "$silent" = yes &&
17132 ac_config_status_args="$ac_config_status_args --quiet"
17134 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17136 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17137 # would make configure fail if this is the last instruction.
17138 $ac_cs_success || as_fn_exit 1
17140 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17142 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
17149 Using python interpreter: $PYTHON
17150 libffi support: $have_libffi
17151 cairo support: $enable_cairo
17152 thread support: $enable_thread
17153 code coverage support: $enable_code_coverage
17158 Using python interpreter: $PYTHON
17159 libffi support: $have_libffi
17160 cairo support: $enable_cairo
17161 thread support: $enable_thread
17162 code coverage support: $enable_code_coverage