2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for pygobject 3.7.3.
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir=./$as_dir;;
333 test -d "$as_dir" || eval $as_mkdir_p || {
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410 as_val=`expr "$@" || test $? -eq 1`
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
422 as_status=$1; test $as_status -eq 0 && as_status=1
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
508 # Exit status is that of the last command.
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 elif ln conf$$.file conf$$ 2>/dev/null; then
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
555 test -d ./-p && rmdir ./-p
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" || exec 7<&0 </dev/null
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 ac_default_prefix=/usr/local
584 ac_config_libobj_dir=.
591 # Identity of this package.
592 PACKAGE_NAME='pygobject'
593 PACKAGE_TARNAME='pygobject'
594 PACKAGE_VERSION='3.7.3'
595 PACKAGE_STRING='pygobject 3.7.3'
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.3 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.3:";;
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.3
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.3, 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 3" >>confdefs.h
2240 PYGOBJECT_MICRO_VERSION=3
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=
12423 ac_cpp='$CPP $CPPFLAGS'
12424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12427 if test -n "$ac_tool_prefix"; then
12428 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12429 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12431 $as_echo_n "checking for $ac_word... " >&6; }
12432 if ${ac_cv_prog_CC+:} false; then :
12433 $as_echo_n "(cached) " >&6
12435 if test -n "$CC"; then
12436 ac_cv_prog_CC="$CC" # Let the user override the test.
12438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12439 for as_dir in $PATH
12442 test -z "$as_dir" && as_dir=.
12443 for ac_exec_ext in '' $ac_executable_extensions; do
12444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12445 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12456 if test -n "$CC"; then
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12458 $as_echo "$CC" >&6; }
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12461 $as_echo "no" >&6; }
12466 if test -z "$ac_cv_prog_CC"; then
12468 # Extract the first word of "gcc", so it can be a program name with args.
12469 set dummy gcc; ac_word=$2
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12471 $as_echo_n "checking for $ac_word... " >&6; }
12472 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12473 $as_echo_n "(cached) " >&6
12475 if test -n "$ac_ct_CC"; then
12476 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12479 for as_dir in $PATH
12482 test -z "$as_dir" && as_dir=.
12483 for ac_exec_ext in '' $ac_executable_extensions; do
12484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12485 ac_cv_prog_ac_ct_CC="gcc"
12486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12495 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12496 if test -n "$ac_ct_CC"; then
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12498 $as_echo "$ac_ct_CC" >&6; }
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501 $as_echo "no" >&6; }
12504 if test "x$ac_ct_CC" = x; then
12507 case $cross_compiling:$ac_tool_warned in
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12511 ac_tool_warned=yes ;;
12516 CC="$ac_cv_prog_CC"
12519 if test -z "$CC"; then
12520 if test -n "$ac_tool_prefix"; then
12521 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12522 set dummy ${ac_tool_prefix}cc; ac_word=$2
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12524 $as_echo_n "checking for $ac_word... " >&6; }
12525 if ${ac_cv_prog_CC+:} false; then :
12526 $as_echo_n "(cached) " >&6
12528 if test -n "$CC"; then
12529 ac_cv_prog_CC="$CC" # Let the user override the test.
12531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12532 for as_dir in $PATH
12535 test -z "$as_dir" && as_dir=.
12536 for ac_exec_ext in '' $ac_executable_extensions; do
12537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12538 ac_cv_prog_CC="${ac_tool_prefix}cc"
12539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12549 if test -n "$CC"; then
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12551 $as_echo "$CC" >&6; }
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554 $as_echo "no" >&6; }
12560 if test -z "$CC"; then
12561 # Extract the first word of "cc", so it can be a program name with args.
12562 set dummy cc; ac_word=$2
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12564 $as_echo_n "checking for $ac_word... " >&6; }
12565 if ${ac_cv_prog_CC+:} false; then :
12566 $as_echo_n "(cached) " >&6
12568 if test -n "$CC"; then
12569 ac_cv_prog_CC="$CC" # Let the user override the test.
12571 ac_prog_rejected=no
12572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12573 for as_dir in $PATH
12576 test -z "$as_dir" && as_dir=.
12577 for ac_exec_ext in '' $ac_executable_extensions; do
12578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12579 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12580 ac_prog_rejected=yes
12584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12591 if test $ac_prog_rejected = yes; then
12592 # We found a bogon in the path, so make sure we never use it.
12593 set dummy $ac_cv_prog_CC
12595 if test $# != 0; then
12596 # We chose a different compiler from the bogus one.
12597 # However, it has the same basename, so the bogon will be chosen
12598 # first if we set CC to just the basename; use the full file name.
12600 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12606 if test -n "$CC"; then
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12608 $as_echo "$CC" >&6; }
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611 $as_echo "no" >&6; }
12616 if test -z "$CC"; then
12617 if test -n "$ac_tool_prefix"; then
12618 for ac_prog in cl.exe
12620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12621 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12623 $as_echo_n "checking for $ac_word... " >&6; }
12624 if ${ac_cv_prog_CC+:} false; then :
12625 $as_echo_n "(cached) " >&6
12627 if test -n "$CC"; then
12628 ac_cv_prog_CC="$CC" # Let the user override the test.
12630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12631 for as_dir in $PATH
12634 test -z "$as_dir" && as_dir=.
12635 for ac_exec_ext in '' $ac_executable_extensions; do
12636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12637 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12648 if test -n "$CC"; then
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12650 $as_echo "$CC" >&6; }
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653 $as_echo "no" >&6; }
12657 test -n "$CC" && break
12660 if test -z "$CC"; then
12662 for ac_prog in cl.exe
12664 # Extract the first word of "$ac_prog", so it can be a program name with args.
12665 set dummy $ac_prog; ac_word=$2
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12667 $as_echo_n "checking for $ac_word... " >&6; }
12668 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12669 $as_echo_n "(cached) " >&6
12671 if test -n "$ac_ct_CC"; then
12672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12675 for as_dir in $PATH
12678 test -z "$as_dir" && as_dir=.
12679 for ac_exec_ext in '' $ac_executable_extensions; do
12680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12681 ac_cv_prog_ac_ct_CC="$ac_prog"
12682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12691 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12692 if test -n "$ac_ct_CC"; then
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12694 $as_echo "$ac_ct_CC" >&6; }
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12697 $as_echo "no" >&6; }
12701 test -n "$ac_ct_CC" && break
12704 if test "x$ac_ct_CC" = x; then
12707 case $cross_compiling:$ac_tool_warned in
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12711 ac_tool_warned=yes ;;
12720 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12722 as_fn_error $? "no acceptable C compiler found in \$PATH
12723 See \`config.log' for more details" "$LINENO" 5; }
12725 # Provide some information about the compiler.
12726 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12729 for ac_option in --version -v -V -qversion; do
12730 { { ac_try="$ac_compiler $ac_option >&5"
12731 case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12736 $as_echo "$ac_try_echo"; } >&5
12737 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12739 if test -s conftest.err; then
12741 ... rest of stderr output deleted ...
12742 10q' conftest.err >conftest.er1
12743 cat conftest.er1 >&5
12745 rm -f conftest.er1 conftest.err
12746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12747 test $ac_status = 0; }
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12751 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12752 if ${ac_cv_c_compiler_gnu+:} false; then :
12753 $as_echo_n "(cached) " >&6
12755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12756 /* end confdefs.h. */
12769 if ac_fn_c_try_compile "$LINENO"; then :
12770 ac_compiler_gnu=yes
12774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12775 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12779 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12780 if test $ac_compiler_gnu = yes; then
12785 ac_test_CFLAGS=${CFLAGS+set}
12786 ac_save_CFLAGS=$CFLAGS
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12788 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12789 if ${ac_cv_prog_cc_g+:} false; then :
12790 $as_echo_n "(cached) " >&6
12792 ac_save_c_werror_flag=$ac_c_werror_flag
12793 ac_c_werror_flag=yes
12796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12797 /* end confdefs.h. */
12807 if ac_fn_c_try_compile "$LINENO"; then :
12808 ac_cv_prog_cc_g=yes
12811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812 /* end confdefs.h. */
12822 if ac_fn_c_try_compile "$LINENO"; then :
12825 ac_c_werror_flag=$ac_save_c_werror_flag
12827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12828 /* end confdefs.h. */
12838 if ac_fn_c_try_compile "$LINENO"; then :
12839 ac_cv_prog_cc_g=yes
12841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12846 ac_c_werror_flag=$ac_save_c_werror_flag
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12849 $as_echo "$ac_cv_prog_cc_g" >&6; }
12850 if test "$ac_test_CFLAGS" = set; then
12851 CFLAGS=$ac_save_CFLAGS
12852 elif test $ac_cv_prog_cc_g = yes; then
12853 if test "$GCC" = yes; then
12859 if test "$GCC" = yes; then
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12866 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12867 if ${ac_cv_prog_cc_c89+:} false; then :
12868 $as_echo_n "(cached) " >&6
12870 ac_cv_prog_cc_c89=no
12872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12873 /* end confdefs.h. */
12874 #include <stdarg.h>
12877 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12878 struct buf { int x; };
12879 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12880 static char *e (p, i)
12886 static char *f (char * (*g) (char **, int), char **p, ...)
12891 s = g (p, va_arg (v,int));
12896 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12897 function prototypes and stuff, but not '\xHH' hex character constants.
12898 These don't provoke an error unfortunately, instead are silently treated
12899 as 'x'. The following induces an error, until -std is added to get
12900 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12901 array size at least. It's necessary to write '\x00'==0 to get something
12902 that's true only with -std. */
12903 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12905 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12906 inside strings and character constants. */
12908 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12910 int test (int i, double x);
12911 struct s1 {int (*f) (int a);};
12912 struct s2 {int (*f) (double a);};
12913 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12919 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12924 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12925 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12927 CC="$ac_save_CC $ac_arg"
12928 if ac_fn_c_try_compile "$LINENO"; then :
12929 ac_cv_prog_cc_c89=$ac_arg
12931 rm -f core conftest.err conftest.$ac_objext
12932 test "x$ac_cv_prog_cc_c89" != "xno" && break
12934 rm -f conftest.$ac_ext
12939 case "x$ac_cv_prog_cc_c89" in
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12942 $as_echo "none needed" >&6; } ;;
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12945 $as_echo "unsupported" >&6; } ;;
12947 CC="$CC $ac_cv_prog_cc_c89"
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12949 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12951 if test "x$ac_cv_prog_cc_c89" != xno; then :
12956 ac_cpp='$CPP $CPPFLAGS'
12957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12961 depcc="$CC" am_compiler_list=
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12964 $as_echo_n "checking dependency style of $depcc... " >&6; }
12965 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12966 $as_echo_n "(cached) " >&6
12968 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12969 # We make a subdir and do the tests there. Otherwise we can end up
12970 # making bogus files that we don't know about and never remove. For
12971 # instance it was reported that on HP-UX the gcc test will end up
12972 # making a dummy file named `D' -- because `-MD' means `put the output
12974 rm -rf conftest.dir
12976 # Copy depcomp to subdir because otherwise we won't find it if we're
12977 # using a relative directory.
12978 cp "$am_depcomp" conftest.dir
12980 # We will build objects and dependencies in a subdirectory because
12981 # it helps to detect inapplicable dependency modes. For instance
12982 # both Tru64's cc and ICC support -MD to output dependencies as a
12983 # side effect of compilation, but ICC will put the dependencies in
12984 # the current directory while Tru64 will put them in the object
12988 am_cv_CC_dependencies_compiler_type=none
12989 if test "$am_compiler_list" = ""; then
12990 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12992 am__universal=false
12993 case " $depcc " in #(
12994 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12997 for depmode in $am_compiler_list; do
12998 # Setup a source with many dependencies, because some compilers
12999 # like to wrap large dependency lists on column 80 (with \), and
13000 # we should not choose a depcomp mode which is confused by this.
13002 # We need to recreate these files for each test, as the compiler may
13003 # overwrite some of them when testing with obscure command lines.
13004 # This happens at least with the AIX C compiler.
13006 for i in 1 2 3 4 5 6; do
13007 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13008 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13009 # Solaris 8's {/usr,}/bin/sh.
13010 touch sub/conftst$i.h
13012 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13014 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13015 # mode. It turns out that the SunPro C++ compiler does not properly
13016 # handle `-M -o', and we need to detect this. Also, some Intel
13017 # versions had trouble with output in subdirs
13018 am__obj=sub/conftest.${OBJEXT-o}
13019 am__minus_obj="-o $am__obj"
13022 # This depmode causes a compiler race in universal mode.
13023 test "$am__universal" = false || continue
13026 # after this tag, mechanisms are not by side-effect, so they'll
13027 # only be used when explicitly requested
13028 if test "x$enable_dependency_tracking" = xyes; then
13034 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13035 # This compiler won't grok `-c -o', but also, the minuso test has
13036 # not run yet. These depmodes are late enough in the game, and
13037 # so weak that their functioning should not be impacted.
13038 am__obj=conftest.${OBJEXT-o}
13043 if depmode=$depmode \
13044 source=sub/conftest.c object=$am__obj \
13045 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13046 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13047 >/dev/null 2>conftest.err &&
13048 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13049 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13050 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13051 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13052 # icc doesn't choke on unknown options, it will just issue warnings
13053 # or remarks (even with -Werror). So we grep stderr for any message
13054 # that says an option was ignored or not supported.
13055 # When given -MP, icc 7.0 and 7.1 complain thusly:
13056 # icc: Command line warning: ignoring option '-M'; no argument required
13057 # The diagnosis changed in icc 8.0:
13058 # icc: Command line remark: option '-MP' not supported
13059 if (grep 'ignoring option' conftest.err ||
13060 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13061 am_cv_CC_dependencies_compiler_type=$depmode
13068 rm -rf conftest.dir
13070 am_cv_CC_dependencies_compiler_type=none
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13075 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13076 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13079 test "x$enable_dependency_tracking" != xno \
13080 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13081 am__fastdepCC_TRUE=
13082 am__fastdepCC_FALSE='#'
13084 am__fastdepCC_TRUE='#'
13085 am__fastdepCC_FALSE=
13090 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
13092 if test "x$CC" != xcc; then
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
13094 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
13097 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
13099 set dummy $CC; ac_cc=`$as_echo "$2" |
13100 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
13101 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
13102 $as_echo_n "(cached) " >&6
13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h. */
13115 # Make sure it works both with $CC and with simple cc.
13116 # We do the test twice because some compilers refuse to overwrite an
13117 # existing .o file with -o, though they will create one.
13118 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
13120 if { { case "(($ac_try" in
13121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122 *) ac_try_echo=$ac_try;;
13124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13125 $as_echo "$ac_try_echo"; } >&5
13126 (eval "$ac_try") 2>&5
13128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13129 test $ac_status = 0; } &&
13130 test -f conftest2.$ac_objext && { { case "(($ac_try" in
13131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13135 $as_echo "$ac_try_echo"; } >&5
13136 (eval "$ac_try") 2>&5
13138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13139 test $ac_status = 0; };
13141 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
13142 if test "x$CC" != xcc; then
13143 # Test first that cc exists at all.
13144 if { ac_try='cc -c conftest.$ac_ext >&5'
13145 { { case "(($ac_try" in
13146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147 *) ac_try_echo=$ac_try;;
13149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13150 $as_echo "$ac_try_echo"; } >&5
13151 (eval "$ac_try") 2>&5
13153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13154 test $ac_status = 0; }; }; then
13155 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
13157 if { { case "(($ac_try" in
13158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159 *) ac_try_echo=$ac_try;;
13161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13162 $as_echo "$ac_try_echo"; } >&5
13163 (eval "$ac_try") 2>&5
13165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13166 test $ac_status = 0; } &&
13167 test -f conftest2.$ac_objext && { { case "(($ac_try" in
13168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169 *) ac_try_echo=$ac_try;;
13171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13172 $as_echo "$ac_try_echo"; } >&5
13173 (eval "$ac_try") 2>&5
13175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13176 test $ac_status = 0; };
13181 # cc exists but doesn't like -o.
13182 eval ac_cv_prog_cc_${ac_cc}_c_o=no
13187 eval ac_cv_prog_cc_${ac_cc}_c_o=no
13189 rm -f core conftest*
13192 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13194 $as_echo "yes" >&6; }
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13197 $as_echo "no" >&6; }
13199 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
13203 # FIXME: we rely on the cache variable name because
13204 # there is no other way.
13206 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
13207 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
13208 if test "$am_t" != yes; then
13209 # Losing compiler, so override with the script.
13210 # FIXME: It is wrong to rewrite CC.
13211 # But if we don't then we get into trouble of one sort or another.
13212 # A longer-term fix would be to have automake use am__CC in this case,
13213 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13214 CC="$am_aux_dir/compile $CC"
13219 # option to specify python interpreter to use; this just sets $PYTHON, so that
13220 # we will fallback to reading $PYTHON if --with-python is not given, and
13221 # python.m4 will get the expected input
13223 # Check whether --with-python was given.
13224 if test "${with_python+set}" = set; then :
13225 withval=$with_python; PYTHON="$withval"
13228 if test x"$PYTHON" = xyes; then
13229 as_fn_error $? "--with-python option requires a path or program argument" "$LINENO" 5
13231 if test -n "$PYTHON" && ! which "$PYTHON"; then
13232 as_fn_error $? "Python interpreter $PYTHON does not exist" "$LINENO" 5
13235 # check that we have the minimum version of python necessary to build
13240 if test -n "$PYTHON"; then
13241 # If the user set $PYTHON, use it and don't search something else.
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.6" >&5
13243 $as_echo_n "checking whether $PYTHON version >= 2.6... " >&6; }
13245 # split strings by '.' and convert to numeric. Append some zeros
13246 # because we need at least 4 digits for the hex conversion.
13247 # map returns an iterator in Python 3.0 and a list in 2.x
13248 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
13250 # xrange is not present in Python 3.0 and range returns an iterator
13251 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13252 sys.exit(sys.hexversion < minverhex)"
13253 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
13254 ($PYTHON -c "$prog") >&5 2>&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; then :
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13259 $as_echo "yes" >&6; }
13261 as_fn_error $? "too old" "$LINENO" 5
13263 am_display_PYTHON=$PYTHON
13265 # Otherwise, try each interpreter until we find one that satisfies
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
13268 $as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
13269 if ${am_cv_pathless_PYTHON+:} false; then :
13270 $as_echo_n "(cached) " >&6
13273 for am_cv_pathless_PYTHON in python3 python3.3 python3.2 python3.1 python2 python2.7 python2.6 python none; do
13274 test "$am_cv_pathless_PYTHON" = none && break
13276 # split strings by '.' and convert to numeric. Append some zeros
13277 # because we need at least 4 digits for the hex conversion.
13278 # map returns an iterator in Python 3.0 and a list in 2.x
13279 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
13281 # xrange is not present in Python 3.0 and range returns an iterator
13282 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13283 sys.exit(sys.hexversion < minverhex)"
13284 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
13285 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; then :
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
13294 $as_echo "$am_cv_pathless_PYTHON" >&6; }
13295 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
13296 if test "$am_cv_pathless_PYTHON" = none; then
13299 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
13300 set dummy $am_cv_pathless_PYTHON; ac_word=$2
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13302 $as_echo_n "checking for $ac_word... " >&6; }
13303 if ${ac_cv_path_PYTHON+:} false; then :
13304 $as_echo_n "(cached) " >&6
13308 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13312 for as_dir in $PATH
13315 test -z "$as_dir" && as_dir=.
13316 for ac_exec_ext in '' $ac_executable_extensions; do
13317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13318 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13329 PYTHON=$ac_cv_path_PYTHON
13330 if test -n "$PYTHON"; then
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13332 $as_echo "$PYTHON" >&6; }
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13335 $as_echo "no" >&6; }
13340 am_display_PYTHON=$am_cv_pathless_PYTHON
13344 if test "$PYTHON" = :; then
13345 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
13350 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
13351 if ${am_cv_python_version+:} false; then :
13352 $as_echo_n "(cached) " >&6
13354 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
13357 $as_echo "$am_cv_python_version" >&6; }
13358 PYTHON_VERSION=$am_cv_python_version
13362 PYTHON_PREFIX='${prefix}'
13364 PYTHON_EXEC_PREFIX='${exec_prefix}'
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
13369 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
13370 if ${am_cv_python_platform+:} false; then :
13371 $as_echo_n "(cached) " >&6
13373 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
13376 $as_echo "$am_cv_python_platform" >&6; }
13377 PYTHON_PLATFORM=$am_cv_python_platform
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
13383 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
13384 if ${am_cv_python_pythondir+:} false; then :
13385 $as_echo_n "(cached) " >&6
13387 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX'))" 2>/dev/null ||
13388 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
13391 $as_echo "$am_cv_python_pythondir" >&6; }
13392 pythondir=$am_cv_python_pythondir
13396 pkgpythondir=\${pythondir}/$PACKAGE
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
13400 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
13401 if ${am_cv_python_pyexecdir+:} false; then :
13402 $as_echo_n "(cached) " >&6
13404 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX'))" 2>/dev/null ||
13405 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13408 $as_echo "$am_cv_python_pyexecdir" >&6; }
13409 pyexecdir=$am_cv_python_pyexecdir
13413 pkgpyexecdir=\${pyexecdir}/$PACKAGE
13421 # check if we are building for python 3
13423 # split strings by '.' and convert to numeric. Append some zeros
13424 # because we need at least 4 digits for the hex conversion.
13425 # map returns an iterator in Python 3.0 and a list in 2.x
13426 minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0]
13428 # xrange is not present in Python 3.0 and range returns an iterator
13429 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13430 sys.exit(sys.hexversion < minverhex)"
13431 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
13432 ($PYTHON -c "$prog") >&5 2>&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; then :
13441 # if building for python 3 make sure we have the minimum version supported
13442 if test $build_py3k = true ; then
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PYTHON >= 3.1" >&5
13444 $as_echo_n "checking for $PYTHON >= 3.1... " >&6; }
13446 # split strings by '.' and convert to numeric. Append some zeros
13447 # because we need at least 4 digits for the hex conversion.
13448 # map returns an iterator in Python 3.0 and a list in 2.x
13449 minver = list(map(int, '3.1'.split('.'))) + [0, 0, 0]
13451 # xrange is not present in Python 3.0 and range returns an iterator
13452 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13453 sys.exit(sys.hexversion < minverhex)"
13454 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
13455 ($PYTHON -c "$prog") >&5 2>&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; then :
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13460 $as_echo "yes" >&6; }
13462 as_fn_error $? "too old" "$LINENO" 5
13472 # Find any Python interpreter.
13473 if test -z "$PYTHON"; then
13474 for ac_prog in python3 python3.3 python3.2 python3.1 python2 python2.7 python2.6 python
13476 # Extract the first word of "$ac_prog", so it can be a program name with args.
13477 set dummy $ac_prog; ac_word=$2
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13479 $as_echo_n "checking for $ac_word... " >&6; }
13480 if ${ac_cv_path_PYTHON+:} false; then :
13481 $as_echo_n "(cached) " >&6
13485 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13489 for as_dir in $PATH
13492 test -z "$as_dir" && as_dir=.
13493 for ac_exec_ext in '' $ac_executable_extensions; do
13494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13495 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13506 PYTHON=$ac_cv_path_PYTHON
13507 if test -n "$PYTHON"; then
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13509 $as_echo "$PYTHON" >&6; }
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13512 $as_echo "no" >&6; }
13516 test -n "$PYTHON" && break
13518 test -n "$PYTHON" || PYTHON=":"
13521 am_display_PYTHON=python
13524 if test "$PYTHON" = :; then
13525 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
13530 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
13531 if ${am_cv_python_version+:} false; then :
13532 $as_echo_n "(cached) " >&6
13534 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
13537 $as_echo "$am_cv_python_version" >&6; }
13538 PYTHON_VERSION=$am_cv_python_version
13542 PYTHON_PREFIX='${prefix}'
13544 PYTHON_EXEC_PREFIX='${exec_prefix}'
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
13549 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
13550 if ${am_cv_python_platform+:} false; then :
13551 $as_echo_n "(cached) " >&6
13553 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
13556 $as_echo "$am_cv_python_platform" >&6; }
13557 PYTHON_PLATFORM=$am_cv_python_platform
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
13563 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
13564 if ${am_cv_python_pythondir+:} false; then :
13565 $as_echo_n "(cached) " >&6
13567 if test "x$prefix" = xNONE
13569 am_py_prefix=$ac_default_prefix
13571 am_py_prefix=$prefix
13573 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`
13574 case $am_cv_python_pythondir in
13576 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
13577 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
13580 case $am_py_prefix in
13583 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
13591 $as_echo "$am_cv_python_pythondir" >&6; }
13592 pythondir=$am_cv_python_pythondir
13596 pkgpythondir=\${pythondir}/$PACKAGE
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
13600 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
13601 if ${am_cv_python_pyexecdir+:} false; then :
13602 $as_echo_n "(cached) " >&6
13604 if test "x$exec_prefix" = xNONE
13606 am_py_exec_prefix=$am_py_prefix
13608 am_py_exec_prefix=$exec_prefix
13610 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`
13611 case $am_cv_python_pyexecdir in
13612 $am_py_exec_prefix*)
13613 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
13614 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
13617 case $am_py_exec_prefix in
13620 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13628 $as_echo "$am_cv_python_pyexecdir" >&6; }
13629 pyexecdir=$am_cv_python_pyexecdir
13633 pkgpyexecdir=\${pyexecdir}/$PACKAGE
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
13642 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
13643 if test "x$PYTHON_INCLUDES" = x; then
13644 PYTHON_CONFIG=`which $PYTHON`-config
13645 if test -x "$PYTHON_CONFIG"; then
13646 PYTHON_INCLUDES=`$PYTHON_CONFIG --includes 2>/dev/null`
13648 py_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
13649 py_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
13650 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
13651 if test "$py_prefix" != "$py_exec_prefix"; then
13652 PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
13657 save_CPPFLAGS="$CPPFLAGS"
13658 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
13659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13660 /* end confdefs.h. */
13661 #include <Python.h>
13663 if ac_fn_c_try_cpp "$LINENO"; then :
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13665 $as_echo "found" >&6; }
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13669 $as_echo "not found" >&6; }
13670 as_fn_error $? "Python headers not found" "$LINENO" 5
13672 rm -f conftest.err conftest.i conftest.$ac_ext
13673 CPPFLAGS="$save_CPPFLAGS"
13675 if test "x$os_win32" = "xyes"; then
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to embed python" >&5
13678 $as_echo_n "checking for libraries required to embed python... " >&6; }
13679 py_exec_prefix=`$PYTHON -c "import sys; print(sys.exec_prefix)"`
13680 if test "x$PYTHON_LIBS" = x; then
13681 PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
13683 if test "x$PYTHON_LIB_LOC" = x; then
13684 PYTHON_LIB_LOC="${py_prefix}/lib"
13689 LIBS="$LIBS $PYTHON_LIBS"
13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h. */
13693 /* Override any GCC internal prototype to avoid an error.
13694 Use char because int might match the return type of a GCC
13695 builtin and then its argument prototype would still apply. */
13699 char Py_Initialize ();
13703 return Py_Initialize ();
13708 if ac_fn_c_try_link "$LINENO"; then :
13709 LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13710 $as_echo "yes" >&6; };
13712 LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13713 $as_echo "no" >&6; }; as_fn_error $? "Python libs not found. Windows requires Python modules to be explicitly linked to libpython." "$LINENO" 5
13715 rm -f core conftest.err conftest.$ac_objext \
13716 conftest$ac_exeext conftest.$ac_ext
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PySignal_SetWakeupFd in Python.h" >&5
13722 $as_echo_n "checking for PySignal_SetWakeupFd in Python.h... " >&6; }
13723 old_CPPFLAGS=$CPPFLAGS
13724 CPPFLAGS="-Wall -Werror $PYTHON_INCLUDES"
13725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13726 /* end confdefs.h. */
13727 #include <Python.h>
13731 PySignal_SetWakeupFd(0);
13736 if ac_fn_c_try_compile "$LINENO"; then :
13741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $setwakeupfd_ok" >&5
13743 $as_echo "$setwakeupfd_ok" >&6; }
13744 if test "x$setwakeupfd_ok" != xno; then
13746 $as_echo "#define HAVE_PYSIGNAL_SETWAKEUPFD 1" >>confdefs.h
13749 CPPFLAGS=$old_CPPFLAGS
13751 PLATFORM=`$PYTHON -c "import sys; from distutils import util; sys.stdout.write(util.get_platform())"`
13754 # Check whether --enable-thread was given.
13755 if test "${enable_thread+set}" = set; then :
13756 enableval=$enable_thread;
13763 py_mod_var=`echo thread'_' | sed 'y%./+-%__p_%'`
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module thread" >&5
13765 $as_echo_n "checking for python module thread... " >&6; }
13766 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13767 $as_echo_n "(cached) " >&6
13774 except ImportError:
13779 if $PYTHON -c "$prog" 1>&5 2>&5
13781 eval "py_cv_mod_$py_mod_var=yes"
13783 eval "py_cv_mod_$py_mod_var=no"
13788 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13789 if test "x$py_val" != xno; then
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13791 $as_echo "yes" >&6; }
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13794 $as_echo "no" >&6; }
13795 enable_thread=check_for_py3_module
13798 if test "x$enable_thread" = xcheck_for_py3_module; then
13800 py_mod_var=`echo _thread'_' | sed 'y%./+-%__p_%'`
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module _thread" >&5
13802 $as_echo_n "checking for python module _thread... " >&6; }
13803 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13804 $as_echo_n "(cached) " >&6
13811 except ImportError:
13816 if $PYTHON -c "$prog" 1>&5 2>&5
13818 eval "py_cv_mod_$py_mod_var=yes"
13820 eval "py_cv_mod_$py_mod_var=no"
13825 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13826 if test "x$py_val" != xno; then
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13828 $as_echo "yes" >&6; }
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13832 $as_echo "no" >&6; }
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable threading in pygobject" >&5
13839 $as_echo_n "checking whether to enable threading in pygobject... " >&6; }
13840 if test "x$enable_thread" != xno; then
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13844 $as_echo "yes" >&6; }
13847 THREADING_CFLAGS="-DDISABLE_THREADING"
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13849 $as_echo "no" >&6; }
13852 CPPFLAGS="${CPPFLAGS} $THREADING_CFLAGS"
13854 export_dynamic=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
13856 # Check whether --enable-glibtest was given.
13857 if test "${enable_glibtest+set}" = set; then :
13858 enableval=$enable_glibtest;
13860 enable_glibtest=yes
13864 pkg_config_args=glib-2.0
13865 for module in . gobject $extra_mods
13869 pkg_config_args="$pkg_config_args gmodule-2.0"
13872 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
13875 pkg_config_args="$pkg_config_args gobject-2.0"
13878 pkg_config_args="$pkg_config_args gthread-2.0"
13881 pkg_config_args="$pkg_config_args $module-2.0"
13893 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13894 if test -n "$ac_tool_prefix"; then
13895 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13896 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13898 $as_echo_n "checking for $ac_word... " >&6; }
13899 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13900 $as_echo_n "(cached) " >&6
13902 case $PKG_CONFIG in
13904 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13908 for as_dir in $PATH
13911 test -z "$as_dir" && as_dir=.
13912 for ac_exec_ext in '' $ac_executable_extensions; do
13913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13914 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13925 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13926 if test -n "$PKG_CONFIG"; then
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13928 $as_echo "$PKG_CONFIG" >&6; }
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13931 $as_echo "no" >&6; }
13936 if test -z "$ac_cv_path_PKG_CONFIG"; then
13937 ac_pt_PKG_CONFIG=$PKG_CONFIG
13938 # Extract the first word of "pkg-config", so it can be a program name with args.
13939 set dummy pkg-config; ac_word=$2
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13941 $as_echo_n "checking for $ac_word... " >&6; }
13942 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13943 $as_echo_n "(cached) " >&6
13945 case $ac_pt_PKG_CONFIG in
13947 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13951 for as_dir in $PATH
13954 test -z "$as_dir" && as_dir=.
13955 for ac_exec_ext in '' $ac_executable_extensions; do
13956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13957 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13968 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13969 if test -n "$ac_pt_PKG_CONFIG"; then
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13971 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13974 $as_echo "no" >&6; }
13977 if test "x$ac_pt_PKG_CONFIG" = x; then
13980 case $cross_compiling:$ac_tool_warned in
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13984 ac_tool_warned=yes ;;
13986 PKG_CONFIG=$ac_pt_PKG_CONFIG
13989 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13993 if test -n "$PKG_CONFIG"; then
13994 _pkg_min_version=0.16
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13996 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13997 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13999 $as_echo "yes" >&6; }
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14002 $as_echo "no" >&6; }
14009 if test "x$PKG_CONFIG" = x ; then
14014 min_glib_version=2.34.2
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
14016 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
14018 if test x$PKG_CONFIG != xno ; then
14019 ## don't try to run the test against uninstalled libtool libs
14020 if $PKG_CONFIG --uninstalled $pkg_config_args; then
14021 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
14025 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
14032 if test x"$no_glib" = x ; then
14033 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
14034 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
14035 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
14036 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
14038 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
14039 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
14040 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
14041 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14042 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
14043 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14044 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
14045 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14046 if test "x$enable_glibtest" = "xyes" ; then
14047 ac_save_CFLAGS="$CFLAGS"
14048 ac_save_LIBS="$LIBS"
14049 CFLAGS="$CFLAGS $GLIB_CFLAGS"
14050 LIBS="$GLIB_LIBS $LIBS"
14051 rm -f conf.glibtest
14052 if test "$cross_compiling" = yes; then :
14053 echo $ac_n "cross compiling; assumed OK... $ac_c"
14055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14056 /* end confdefs.h. */
14060 #include <stdlib.h>
14065 unsigned int major, minor, micro;
14068 fclose (fopen ("conf.glibtest", "w"));
14070 /* HP/UX 9 (%@#!) writes to sscanf strings */
14071 tmp_version = g_strdup("$min_glib_version");
14072 if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, µ) != 3) {
14073 printf("%s, bad version string\n", "$min_glib_version");
14077 if ((glib_major_version != $glib_config_major_version) ||
14078 (glib_minor_version != $glib_config_minor_version) ||
14079 (glib_micro_version != $glib_config_micro_version))
14081 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
14082 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
14083 glib_major_version, glib_minor_version, glib_micro_version);
14084 printf ("*** was found! If pkg-config was correct, then it is best\n");
14085 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
14086 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
14087 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
14088 printf("*** required on your system.\n");
14089 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
14090 printf("*** to point to the correct configuration files\n");
14092 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
14093 (glib_minor_version != GLIB_MINOR_VERSION) ||
14094 (glib_micro_version != GLIB_MICRO_VERSION))
14096 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
14097 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
14098 printf("*** library (version %d.%d.%d)\n",
14099 glib_major_version, glib_minor_version, glib_micro_version);
14103 if ((glib_major_version > major) ||
14104 ((glib_major_version == major) && (glib_minor_version > minor)) ||
14105 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
14111 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
14112 glib_major_version, glib_minor_version, glib_micro_version);
14113 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
14114 major, minor, micro);
14115 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
14117 printf("*** If you have already installed a sufficiently new version, this error\n");
14118 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
14119 printf("*** being found. The easiest way to fix this is to remove the old version\n");
14120 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
14121 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
14122 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
14123 printf("*** so that the correct libraries are found at run-time))\n");
14130 if ac_fn_c_try_run "$LINENO"; then :
14135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14136 conftest.$ac_objext conftest.beam conftest.$ac_ext
14139 CFLAGS="$ac_save_CFLAGS"
14140 LIBS="$ac_save_LIBS"
14143 if test "x$no_glib" = x ; then
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
14145 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14149 $as_echo "no" >&6; }
14150 if test "$PKG_CONFIG" = "no" ; then
14151 echo "*** A new enough version of pkg-config was not found."
14152 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
14154 if test -f conf.glibtest ; then
14157 echo "*** Could not run GLIB test program, checking why..."
14158 ac_save_CFLAGS="$CFLAGS"
14159 ac_save_LIBS="$LIBS"
14160 CFLAGS="$CFLAGS $GLIB_CFLAGS"
14161 LIBS="$LIBS $GLIB_LIBS"
14162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14163 /* end confdefs.h. */
14171 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
14176 if ac_fn_c_try_link "$LINENO"; then :
14177 echo "*** The test program compiled, but did not run. This usually means"
14178 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
14179 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
14180 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14181 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14182 echo "*** is required on your system"
14184 echo "*** If you have an old version installed, it is best to remove it, although"
14185 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14187 echo "*** The test program failed to compile or link. See the file config.log for the"
14188 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
14190 rm -f core conftest.err conftest.$ac_objext \
14191 conftest$ac_exeext conftest.$ac_ext
14192 CFLAGS="$ac_save_CFLAGS"
14193 LIBS="$ac_save_LIBS"
14201 GLIB_COMPILE_RESOURCES=""
14202 as_fn_error $? "maybe you want the pygobject-2-4 branch?" "$LINENO" 5
14210 rm -f conf.glibtest
14212 if test -n "$export_dynamic"; then
14213 GLIB_LIBS=`echo $GLIB_LIBS | sed -e "s/$export_dynamic//"`
14215 PYTHON_BASENAME=`basename $PYTHON`
14222 prefix_save=$prefix
14223 exec_prefix_save=$exec_prefix
14225 if test "x$prefix" = "xNONE"; then
14226 prefix=$ac_default_prefix
14228 if test "x$exec_prefix" = "xNONE"; then
14229 exec_prefix=$prefix
14232 full_var="$FROM_VAR"
14234 new_full_var="`eval echo $full_var`"
14235 if test "x$new_full_var"="x$full_var"; then break; fi
14236 full_var=$new_full_var
14239 full_var=$new_full_var
14240 DATADIR="$full_var"
14243 prefix=$prefix_save
14244 exec_prefix=$exec_prefix_save
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi" >&5
14248 $as_echo_n "checking for ffi... " >&6; }
14250 # Check whether --with-ffi was given.
14251 if test "${with_ffi+set}" = set; then :
14252 withval=$with_ffi; with_libffi=$withval
14257 if test x"$with_libffi" = xno ; then
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFI" >&5
14263 $as_echo_n "checking for FFI... " >&6; }
14265 if test -n "$FFI_CFLAGS"; then
14266 pkg_cv_FFI_CFLAGS="$FFI_CFLAGS"
14267 elif test -n "$PKG_CONFIG"; then
14268 if test -n "$PKG_CONFIG" && \
14269 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
14270 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
14272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14273 test $ac_status = 0; }; then
14274 pkg_cv_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0" 2>/dev/null`
14275 test "x$?" != "x0" && pkg_failed=yes
14282 if test -n "$FFI_LIBS"; then
14283 pkg_cv_FFI_LIBS="$FFI_LIBS"
14284 elif test -n "$PKG_CONFIG"; then
14285 if test -n "$PKG_CONFIG" && \
14286 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
14287 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
14289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14290 test $ac_status = 0; }; then
14291 pkg_cv_FFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0" 2>/dev/null`
14292 test "x$?" != "x0" && pkg_failed=yes
14302 if test $pkg_failed = yes; then
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14304 $as_echo "no" >&6; }
14306 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14307 _pkg_short_errors_supported=yes
14309 _pkg_short_errors_supported=no
14311 if test $_pkg_short_errors_supported = yes; then
14312 FFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
14314 FFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
14316 # Put the nasty error message in config.log where it belongs
14317 echo "$FFI_PKG_ERRORS" >&5
14320 elif test $pkg_failed = untried; then
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14322 $as_echo "no" >&6; }
14325 FFI_CFLAGS=$pkg_cv_FFI_CFLAGS
14326 FFI_LIBS=$pkg_cv_FFI_LIBS
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14328 $as_echo "yes" >&6; }
14332 if test x"$with_libffi" = xyes && test x"$have_libffi" = xno ; then
14333 as_fn_error $? "ffi requested, but not found" "$LINENO" 5
14335 if test x"$have_libffi" = xyes; then
14338 if test "$have_libffi" = "yes"; then
14340 HAVE_LIBFFI_FALSE='#'
14342 HAVE_LIBFFI_TRUE='#'
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
14353 $as_echo_n "checking for GIO... " >&6; }
14355 if test -n "$GIO_CFLAGS"; then
14356 pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
14357 elif test -n "$PKG_CONFIG"; then
14358 if test -n "$PKG_CONFIG" && \
14359 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.34.2\""; } >&5
14360 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.34.2") 2>&5
14362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14363 test $ac_status = 0; }; then
14364 pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.34.2" 2>/dev/null`
14365 test "x$?" != "x0" && pkg_failed=yes
14372 if test -n "$GIO_LIBS"; then
14373 pkg_cv_GIO_LIBS="$GIO_LIBS"
14374 elif test -n "$PKG_CONFIG"; then
14375 if test -n "$PKG_CONFIG" && \
14376 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.34.2\""; } >&5
14377 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.34.2") 2>&5
14379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14380 test $ac_status = 0; }; then
14381 pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.34.2" 2>/dev/null`
14382 test "x$?" != "x0" && pkg_failed=yes
14392 if test $pkg_failed = yes; then
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14394 $as_echo "no" >&6; }
14396 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14397 _pkg_short_errors_supported=yes
14399 _pkg_short_errors_supported=no
14401 if test $_pkg_short_errors_supported = yes; then
14402 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.34.2" 2>&1`
14404 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.34.2" 2>&1`
14406 # Put the nasty error message in config.log where it belongs
14407 echo "$GIO_PKG_ERRORS" >&5
14409 as_fn_error $? "Package requirements (gio-2.0 >= 2.34.2) were not met:
14413 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14414 installed software in a non-standard prefix.
14416 Alternatively, you may set the environment variables GIO_CFLAGS
14417 and GIO_LIBS to avoid the need to call pkg-config.
14418 See the pkg-config man page for more details." "$LINENO" 5
14419 elif test $pkg_failed = untried; then
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14421 $as_echo "no" >&6; }
14422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14424 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14425 is in your PATH or set the PKG_CONFIG environment variable to the full
14426 path to pkg-config.
14428 Alternatively, you may set the environment variables GIO_CFLAGS
14429 and GIO_LIBS to avoid the need to call pkg-config.
14430 See the pkg-config man page for more details.
14432 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14433 See \`config.log' for more details" "$LINENO" 5; }
14435 GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
14436 GIO_LIBS=$pkg_cv_GIO_LIBS
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14438 $as_echo "yes" >&6; }
14442 # Check whether --enable-cairo was given.
14443 if test "${enable_cairo+set}" = set; then :
14444 enableval=$enable_cairo; enable_cairo=$enableval
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GI" >&5
14453 $as_echo_n "checking for GI... " >&6; }
14455 if test -n "$GI_CFLAGS"; then
14456 pkg_cv_GI_CFLAGS="$GI_CFLAGS"
14457 elif test -n "$PKG_CONFIG"; then
14458 if test -n "$PKG_CONFIG" && \
14459 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.34.2
14460 gobject-introspection-1.0 >= 1.34.2
14462 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.34.2
14463 gobject-introspection-1.0 >= 1.34.2
14466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14467 test $ac_status = 0; }; then
14468 pkg_cv_GI_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.34.2
14469 gobject-introspection-1.0 >= 1.34.2
14471 test "x$?" != "x0" && pkg_failed=yes
14478 if test -n "$GI_LIBS"; then
14479 pkg_cv_GI_LIBS="$GI_LIBS"
14480 elif test -n "$PKG_CONFIG"; then
14481 if test -n "$PKG_CONFIG" && \
14482 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.34.2
14483 gobject-introspection-1.0 >= 1.34.2
14485 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.34.2
14486 gobject-introspection-1.0 >= 1.34.2
14489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14490 test $ac_status = 0; }; then
14491 pkg_cv_GI_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.34.2
14492 gobject-introspection-1.0 >= 1.34.2
14494 test "x$?" != "x0" && pkg_failed=yes
14504 if test $pkg_failed = yes; then
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14506 $as_echo "no" >&6; }
14508 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14509 _pkg_short_errors_supported=yes
14511 _pkg_short_errors_supported=no
14513 if test $_pkg_short_errors_supported = yes; then
14514 GI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.34.2
14515 gobject-introspection-1.0 >= 1.34.2
14518 GI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.34.2
14519 gobject-introspection-1.0 >= 1.34.2
14522 # Put the nasty error message in config.log where it belongs
14523 echo "$GI_PKG_ERRORS" >&5
14525 as_fn_error $? "Package requirements (glib-2.0 >= 2.34.2
14526 gobject-introspection-1.0 >= 1.34.2
14531 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14532 installed software in a non-standard prefix.
14534 Alternatively, you may set the environment variables GI_CFLAGS
14535 and GI_LIBS to avoid the need to call pkg-config.
14536 See the pkg-config man page for more details." "$LINENO" 5
14537 elif test $pkg_failed = untried; then
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14539 $as_echo "no" >&6; }
14540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14542 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14543 is in your PATH or set the PKG_CONFIG environment variable to the full
14544 path to pkg-config.
14546 Alternatively, you may set the environment variables GI_CFLAGS
14547 and GI_LIBS to avoid the need to call pkg-config.
14548 See the pkg-config man page for more details.
14550 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14551 See \`config.log' for more details" "$LINENO" 5; }
14553 GI_CFLAGS=$pkg_cv_GI_CFLAGS
14554 GI_LIBS=$pkg_cv_GI_LIBS
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14556 $as_echo "yes" >&6; }
14560 GI_DATADIR=$($PKG_CONFIG --variable=gidatadir gobject-introspection-1.0)
14563 if test "$enable_cairo" != no; then
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
14567 $as_echo_n "checking for CAIRO... " >&6; }
14569 if test -n "$CAIRO_CFLAGS"; then
14570 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
14571 elif test -n "$PKG_CONFIG"; then
14572 if test -n "$PKG_CONFIG" && \
14573 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
14574 ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
14576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14577 test $ac_status = 0; }; then
14578 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo cairo-gobject" 2>/dev/null`
14579 test "x$?" != "x0" && pkg_failed=yes
14586 if test -n "$CAIRO_LIBS"; then
14587 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
14588 elif test -n "$PKG_CONFIG"; then
14589 if test -n "$PKG_CONFIG" && \
14590 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
14591 ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
14593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14594 test $ac_status = 0; }; then
14595 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo cairo-gobject" 2>/dev/null`
14596 test "x$?" != "x0" && pkg_failed=yes
14606 if test $pkg_failed = yes; then
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14608 $as_echo "no" >&6; }
14610 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14611 _pkg_short_errors_supported=yes
14613 _pkg_short_errors_supported=no
14615 if test $_pkg_short_errors_supported = yes; then
14616 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
14618 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
14620 # Put the nasty error message in config.log where it belongs
14621 echo "$CAIRO_PKG_ERRORS" >&5
14623 as_fn_error $? "Package requirements (cairo cairo-gobject) were not met:
14627 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14628 installed software in a non-standard prefix.
14630 Alternatively, you may set the environment variables CAIRO_CFLAGS
14631 and CAIRO_LIBS to avoid the need to call pkg-config.
14632 See the pkg-config man page for more details." "$LINENO" 5
14633 elif test $pkg_failed = untried; then
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14635 $as_echo "no" >&6; }
14636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14638 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14639 is in your PATH or set the PKG_CONFIG environment variable to the full
14640 path to pkg-config.
14642 Alternatively, you may set the environment variables CAIRO_CFLAGS
14643 and CAIRO_LIBS to avoid the need to call pkg-config.
14644 See the pkg-config man page for more details.
14646 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14647 See \`config.log' for more details" "$LINENO" 5; }
14649 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
14650 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14652 $as_echo "yes" >&6; }
14656 if test $build_py3k = true; then
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14660 $as_echo_n "checking for PYCAIRO... " >&6; }
14662 if test -n "$PYCAIRO_CFLAGS"; then
14663 pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14664 elif test -n "$PKG_CONFIG"; then
14665 if test -n "$PKG_CONFIG" && \
14666 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
14668 ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14672 test $ac_status = 0; }; then
14673 pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "py3cairo >= 1.10.0
14675 test "x$?" != "x0" && pkg_failed=yes
14682 if test -n "$PYCAIRO_LIBS"; then
14683 pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14684 elif test -n "$PKG_CONFIG"; then
14685 if test -n "$PKG_CONFIG" && \
14686 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
14688 ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14692 test $ac_status = 0; }; then
14693 pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "py3cairo >= 1.10.0
14695 test "x$?" != "x0" && pkg_failed=yes
14705 if test $pkg_failed = yes; then
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14707 $as_echo "no" >&6; }
14709 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14710 _pkg_short_errors_supported=yes
14712 _pkg_short_errors_supported=no
14714 if test $_pkg_short_errors_supported = yes; then
14715 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "py3cairo >= 1.10.0
14718 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "py3cairo >= 1.10.0
14721 # Put the nasty error message in config.log where it belongs
14722 echo "$PYCAIRO_PKG_ERRORS" >&5
14724 as_fn_error $? "Package requirements (py3cairo >= 1.10.0
14727 $PYCAIRO_PKG_ERRORS
14729 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14730 installed software in a non-standard prefix.
14732 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14733 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14734 See the pkg-config man page for more details." "$LINENO" 5
14735 elif test $pkg_failed = untried; then
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14737 $as_echo "no" >&6; }
14738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14740 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14741 is in your PATH or set the PKG_CONFIG environment variable to the full
14742 path to pkg-config.
14744 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14745 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14746 See the pkg-config man page for more details.
14748 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14749 See \`config.log' for more details" "$LINENO" 5; }
14751 PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14752 PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14754 $as_echo "yes" >&6; }
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14761 $as_echo_n "checking for PYCAIRO... " >&6; }
14763 if test -n "$PYCAIRO_CFLAGS"; then
14764 pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14765 elif test -n "$PKG_CONFIG"; then
14766 if test -n "$PKG_CONFIG" && \
14767 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14769 ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14773 test $ac_status = 0; }; then
14774 pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "pycairo >= 1.2.0
14776 test "x$?" != "x0" && pkg_failed=yes
14783 if test -n "$PYCAIRO_LIBS"; then
14784 pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14785 elif test -n "$PKG_CONFIG"; then
14786 if test -n "$PKG_CONFIG" && \
14787 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14789 ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14793 test $ac_status = 0; }; then
14794 pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "pycairo >= 1.2.0
14796 test "x$?" != "x0" && pkg_failed=yes
14806 if test $pkg_failed = yes; then
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14808 $as_echo "no" >&6; }
14810 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14811 _pkg_short_errors_supported=yes
14813 _pkg_short_errors_supported=no
14815 if test $_pkg_short_errors_supported = yes; then
14816 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pycairo >= 1.2.0
14819 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pycairo >= 1.2.0
14822 # Put the nasty error message in config.log where it belongs
14823 echo "$PYCAIRO_PKG_ERRORS" >&5
14825 as_fn_error $? "Package requirements (pycairo >= 1.2.0
14828 $PYCAIRO_PKG_ERRORS
14830 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14831 installed software in a non-standard prefix.
14833 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14834 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14835 See the pkg-config man page for more details." "$LINENO" 5
14836 elif test $pkg_failed = untried; then
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14838 $as_echo "no" >&6; }
14839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14841 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14842 is in your PATH or set the PKG_CONFIG environment variable to the full
14843 path to pkg-config.
14845 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14846 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14847 See the pkg-config man page for more details.
14849 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14850 See \`config.log' for more details" "$LINENO" 5; }
14852 PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14853 PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14855 $as_echo "yes" >&6; }
14860 if test "$enable_cairo" = "yes"; then
14862 ENABLE_CAIRO_FALSE='#'
14864 ENABLE_CAIRO_TRUE='#'
14865 ENABLE_CAIRO_FALSE=
14869 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
14870 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
14875 if test "x$GCC" = "xyes"; then
14877 case " $CFLAGS " in
14878 *[\ \ ]-Wall[\ \ ]*)
14881 save_CFLAGS="$CFLAGS"
14882 CFLAGS="$CFLAGS -Wall"
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Wall" >&5
14884 $as_echo_n "checking whether $CC understands -Wall... " >&6; }
14885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14886 /* end confdefs.h. */
14896 if ac_fn_c_try_compile "$LINENO"; then :
14901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14903 $as_echo "$jh_has_option" >&6; }
14904 if test $jh_has_option = no; then
14905 CFLAGS="$save_CFLAGS"
14909 #JH_ADD_CFLAG([-Werror=missing-prototypes])
14911 case " $CFLAGS " in
14912 *[\ \ ]-Werror=implicit-function-declaration[\ \ ]*)
14915 save_CFLAGS="$CFLAGS"
14916 CFLAGS="$CFLAGS -Werror=implicit-function-declaration"
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=implicit-function-declaration" >&5
14918 $as_echo_n "checking whether $CC understands -Werror=implicit-function-declaration... " >&6; }
14919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14920 /* end confdefs.h. */
14930 if ac_fn_c_try_compile "$LINENO"; then :
14935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14937 $as_echo "$jh_has_option" >&6; }
14938 if test $jh_has_option = no; then
14939 CFLAGS="$save_CFLAGS"
14944 case " $CFLAGS " in
14945 *[\ \ ]-Werror=pointer-arith[\ \ ]*)
14948 save_CFLAGS="$CFLAGS"
14949 CFLAGS="$CFLAGS -Werror=pointer-arith"
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=pointer-arith" >&5
14951 $as_echo_n "checking whether $CC understands -Werror=pointer-arith... " >&6; }
14952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14953 /* end confdefs.h. */
14963 if ac_fn_c_try_compile "$LINENO"; then :
14968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14970 $as_echo "$jh_has_option" >&6; }
14971 if test $jh_has_option = no; then
14972 CFLAGS="$save_CFLAGS"
14977 case " $CFLAGS " in
14978 *[\ \ ]-Werror=format-security[\ \ ]*)
14981 save_CFLAGS="$CFLAGS"
14982 CFLAGS="$CFLAGS -Werror=format-security"
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=format-security" >&5
14984 $as_echo_n "checking whether $CC understands -Werror=format-security... " >&6; }
14985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14986 /* end confdefs.h. */
14996 if ac_fn_c_try_compile "$LINENO"; then :
15001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
15003 $as_echo "$jh_has_option" >&6; }
15004 if test $jh_has_option = no; then
15005 CFLAGS="$save_CFLAGS"
15010 case " $CFLAGS " in
15011 *[\ \ ]-Werror=missing-include-dirs[\ \ ]*)
15014 save_CFLAGS="$CFLAGS"
15015 CFLAGS="$CFLAGS -Werror=missing-include-dirs"
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=missing-include-dirs" >&5
15017 $as_echo_n "checking whether $CC understands -Werror=missing-include-dirs... " >&6; }
15018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15019 /* end confdefs.h. */
15029 if ac_fn_c_try_compile "$LINENO"; then :
15034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
15036 $as_echo "$jh_has_option" >&6; }
15037 if test $jh_has_option = no; then
15038 CFLAGS="$save_CFLAGS"
15043 case " $CFLAGS " in
15044 *[\ \ ]-Werror=format[\ \ ]*)
15047 save_CFLAGS="$CFLAGS"
15048 CFLAGS="$CFLAGS -Werror=format"
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=format" >&5
15050 $as_echo_n "checking whether $CC understands -Werror=format... " >&6; }
15051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15052 /* end confdefs.h. */
15062 if ac_fn_c_try_compile "$LINENO"; then :
15067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
15069 $as_echo "$jh_has_option" >&6; }
15070 if test $jh_has_option = no; then
15071 CFLAGS="$save_CFLAGS"
15076 case " $CFLAGS " in
15077 *[\ \ ]-Werror=unused-variable[\ \ ]*)
15080 save_CFLAGS="$CFLAGS"
15081 CFLAGS="$CFLAGS -Werror=unused-variable"
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=unused-variable" >&5
15083 $as_echo_n "checking whether $CC understands -Werror=unused-variable... " >&6; }
15084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15085 /* end confdefs.h. */
15095 if ac_fn_c_try_compile "$LINENO"; then :
15100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
15102 $as_echo "$jh_has_option" >&6; }
15103 if test $jh_has_option = no; then
15104 CFLAGS="$save_CFLAGS"
15109 case " $CFLAGS " in
15110 *[\ \ ]-fno-strict-aliasing[\ \ ]*)
15113 save_CFLAGS="$CFLAGS"
15114 CFLAGS="$CFLAGS -fno-strict-aliasing"
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -fno-strict-aliasing" >&5
15116 $as_echo_n "checking whether $CC understands -fno-strict-aliasing... " >&6; }
15117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15118 /* end confdefs.h. */
15128 if ac_fn_c_try_compile "$LINENO"; then :
15133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
15135 $as_echo "$jh_has_option" >&6; }
15136 if test $jh_has_option = no; then
15137 CFLAGS="$save_CFLAGS"
15147 case " $CFLAGS " in
15148 *[\ \ ]-std=c9x[\ \ ]*)
15151 save_CFLAGS="$CFLAGS"
15152 CFLAGS="$CFLAGS -std=c9x"
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -std=c9x" >&5
15154 $as_echo_n "checking whether $CC understands -std=c9x... " >&6; }
15155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15156 /* end confdefs.h. */
15166 if ac_fn_c_try_compile "$LINENO"; then :
15171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
15173 $as_echo "$jh_has_option" >&6; }
15174 if test $jh_has_option = no; then
15175 CFLAGS="$save_CFLAGS"
15184 # enable code coverage support
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
15187 $as_echo_n "checking whether to build with code coverage support... " >&6; }
15188 # Check whether --enable-code-coverage was given.
15189 if test "${enable_code_coverage+set}" = set; then :
15190 enableval=$enable_code_coverage;
15192 enable_code_coverage=no
15195 if test x$enable_code_coverage = xyes; then
15196 CODE_COVERAGE_ENABLED_TRUE=
15197 CODE_COVERAGE_ENABLED_FALSE='#'
15199 CODE_COVERAGE_ENABLED_TRUE='#'
15200 CODE_COVERAGE_ENABLED_FALSE=
15203 CODE_COVERAGE_ENABLED=$enable_code_coverage
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
15206 $as_echo "$enable_code_coverage" >&6; }
15208 if test "$enable_code_coverage" = "yes" ; then :
15210 if test "$GCC" = "no" ; then :
15212 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
15216 # List of supported lcov versions.
15217 lcov_version_list="1.6 1.7 1.8 1.9"
15219 # Extract the first word of "lcov", so it can be a program name with args.
15220 set dummy lcov; ac_word=$2
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15222 $as_echo_n "checking for $ac_word... " >&6; }
15223 if ${ac_cv_prog_LCOV+:} false; then :
15224 $as_echo_n "(cached) " >&6
15226 if test -n "$LCOV"; then
15227 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
15229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15230 for as_dir in $PATH
15233 test -z "$as_dir" && as_dir=.
15234 for ac_exec_ext in '' $ac_executable_extensions; do
15235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15236 ac_cv_prog_LCOV="lcov"
15237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15246 LCOV=$ac_cv_prog_LCOV
15247 if test -n "$LCOV"; then
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
15249 $as_echo "$LCOV" >&6; }
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15252 $as_echo "no" >&6; }
15256 # Extract the first word of "genhtml", so it can be a program name with args.
15257 set dummy genhtml; ac_word=$2
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15259 $as_echo_n "checking for $ac_word... " >&6; }
15260 if ${ac_cv_prog_GENHTML+:} false; then :
15261 $as_echo_n "(cached) " >&6
15263 if test -n "$GENHTML"; then
15264 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
15266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15267 for as_dir in $PATH
15270 test -z "$as_dir" && as_dir=.
15271 for ac_exec_ext in '' $ac_executable_extensions; do
15272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15273 ac_cv_prog_GENHTML="genhtml"
15274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15283 GENHTML=$ac_cv_prog_GENHTML
15284 if test -n "$GENHTML"; then
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
15286 $as_echo "$GENHTML" >&6; }
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15289 $as_echo "no" >&6; }
15294 if test "$LCOV" ; then :
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
15297 $as_echo_n "checking for lcov version... " >&6; }
15298 if ${gnome_cv_lcov_version+:} false; then :
15299 $as_echo_n "(cached) " >&6
15302 gnome_cv_lcov_version=invalid
15303 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
15304 for lcov_check_version in $lcov_version_list; do
15305 if test "$lcov_version" = "$lcov_check_version"; then
15306 gnome_cv_lcov_version="$lcov_check_version (ok)"
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnome_cv_lcov_version" >&5
15312 $as_echo "$gnome_cv_lcov_version" >&6; }
15316 lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
15317 as_fn_error $? "$lcov_msg" "$LINENO" 5
15321 case $gnome_cv_lcov_version in
15323 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
15324 as_fn_error $? "$lcov_msg" "$LINENO" 5
15329 if test -z "$GENHTML" ; then :
15331 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
15335 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
15336 CODE_COVERAGE_LDFLAGS="-lgcov"
15343 GNOME_CODE_COVERAGE_RULES='
15347 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
15348 # (Default: $(top_builddir))
15349 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
15350 # by lcov for code coverage. (Default:
15351 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
15352 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
15353 # reports to be created. (Default:
15354 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
15355 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
15357 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
15358 # instance. (Default: empty)
15360 # The generated report will be titled using the $(PACKAGE_NAME) and
15361 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
15362 # use the git-version-gen script, available online.
15364 # Optional variables
15365 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
15366 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
15367 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
15368 CODE_COVERAGE_LCOV_OPTIONS ?=
15369 CODE_COVERAGE_GENHTML_OPTIONS ?=
15371 # Use recursive makes in order to ignore errors during check
15372 check-code-coverage:
15373 ifdef CODE_COVERAGE_ENABLED
15374 -$(MAKE) $(AM_MAKEFLAGS) -k check
15375 $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
15377 @echo "Need to reconfigure with --enable-code-coverage"
15380 # Capture code coverage data
15381 code-coverage-capture: code-coverage-capture-hook
15382 ifdef CODE_COVERAGE_ENABLED
15383 $(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)
15384 $(LCOV) --directory $(CODE_COVERAGE_DIRECTORY) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" --output-file "$(CODE_COVERAGE_OUTPUT_FILE)"
15385 -rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
15386 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)
15387 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
15389 @echo "Need to reconfigure with --enable-code-coverage"
15392 # Hook rule executed before code-coverage-capture, overridable by the user
15393 code-coverage-capture-hook:
15395 clean: code-coverage-clean
15396 code-coverage-clean:
15397 -$(LCOV) --directory $(top_builddir) -z
15398 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
15399 -find . -name "*.gcda" -o -name "*.gcov" -delete
15402 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
15404 DISTCHECK_CONFIGURE_FLAGS ?=
15405 DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
15407 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
15413 CFLAGS="$CFLAGS $CODE_COVERAGE_CFLAGS"
15414 LDFLAGS="$LDFLAGS $CODE_COVERAGE_CFLAGS"
15416 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"
15418 cat >confcache <<\_ACEOF
15419 # This file is a shell script that caches the results of configure
15420 # tests run on this system so they can be shared between configure
15421 # scripts and configure runs, see configure's option --config-cache.
15422 # It is not useful on other systems. If it contains results you don't
15423 # want to keep, you may remove or edit it.
15425 # config.status only pays attention to the cache file if you give it
15426 # the --recheck option to rerun configure.
15428 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15429 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15430 # following values.
15434 # The following way of writing the cache mishandles newlines in values,
15435 # but we know of no workaround that is simple, portable, and efficient.
15436 # So, we kill variables containing newlines.
15437 # Ultrix sh set writes to stderr and can't be redirected directly,
15438 # and sets the high bit in the cache file unless we assign to the vars.
15440 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15441 eval ac_val=\$$ac_var
15445 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15446 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15449 _ | IFS | as_nl) ;; #(
15450 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15451 *) { eval $ac_var=; unset $ac_var;} ;;
15457 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15458 *${as_nl}ac_space=\ *)
15459 # `set' does not quote correctly, so add quotes: double-quote
15460 # substitution turns \\\\ into \\, and sed turns \\ into \.
15463 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15466 # `set' quotes correctly as required by POSIX, so do not add quotes.
15467 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15476 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15478 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15480 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15481 if test -w "$cache_file"; then
15482 if test "x$cache_file" != "x/dev/null"; then
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15484 $as_echo "$as_me: updating cache $cache_file" >&6;}
15485 if test ! -f "$cache_file" || test -h "$cache_file"; then
15486 cat confcache >"$cache_file"
15488 case $cache_file in #(
15490 mv -f confcache "$cache_file"$$ &&
15491 mv -f "$cache_file"$$ "$cache_file" ;; #(
15493 mv -f confcache "$cache_file" ;;
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15499 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15504 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15505 # Let make expand exec_prefix.
15506 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15508 DEFS=-DHAVE_CONFIG_H
15513 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15514 # 1. Remove the extension, and $U if already installed.
15515 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15516 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15517 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15518 # will be set to the directory where LIBOBJS objects are built.
15519 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15520 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15522 LIBOBJS=$ac_libobjs
15524 LTLIBOBJS=$ac_ltlibobjs
15527 if test -n "$EXEEXT"; then
15529 am__EXEEXT_FALSE='#'
15531 am__EXEEXT_TRUE='#'
15535 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
15536 as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
15537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15539 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
15540 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
15541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15543 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15544 as_fn_error $? "conditional \"AMDEP\" was never defined.
15545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15547 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15548 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15551 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15552 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15555 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15556 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15559 if test -z "${HAVE_LIBFFI_TRUE}" && test -z "${HAVE_LIBFFI_FALSE}"; then
15560 as_fn_error $? "conditional \"HAVE_LIBFFI\" was never defined.
15561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15563 if test -z "${ENABLE_CAIRO_TRUE}" && test -z "${ENABLE_CAIRO_FALSE}"; then
15564 as_fn_error $? "conditional \"ENABLE_CAIRO\" was never defined.
15565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15567 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
15568 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
15569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15572 : "${CONFIG_STATUS=./config.status}"
15574 ac_clean_files_save=$ac_clean_files
15575 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15577 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15579 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15581 # Generated by $as_me.
15582 # Run this file to recreate the current configuration.
15583 # Compiler output produced by configure, useful for debugging
15584 # configure, is in config.log if it exists.
15587 ac_cs_recheck=false
15590 SHELL=\${CONFIG_SHELL-$SHELL}
15593 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15594 ## -------------------- ##
15595 ## M4sh Initialization. ##
15596 ## -------------------- ##
15598 # Be more Bourne compatible
15599 DUALCASE=1; export DUALCASE # for MKS sh
15600 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15603 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15604 # is contrary to our usage. Disable this feature.
15605 alias -g '${1+"$@"}'='"$@"'
15606 setopt NO_GLOB_SUBST
15608 case `(set -o) 2>/dev/null` in #(
15620 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15621 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15622 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15623 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15624 # Prefer a ksh shell builtin over an external printf program on Solaris,
15625 # but without wasting forks for bash or zsh.
15626 if test -z "$BASH_VERSION$ZSH_VERSION" \
15627 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15628 as_echo='print -r --'
15629 as_echo_n='print -rn --'
15630 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15631 as_echo='printf %s\n'
15632 as_echo_n='printf %s'
15634 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15635 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15636 as_echo_n='/usr/ucb/echo -n'
15638 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15639 as_echo_n_body='eval
15643 expr "X$arg" : "X\\(.*\\)$as_nl";
15644 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15646 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15648 export as_echo_n_body
15649 as_echo_n='sh -c $as_echo_n_body as_echo'
15651 export as_echo_body
15652 as_echo='sh -c $as_echo_body as_echo'
15655 # The user is always right.
15656 if test "${PATH_SEPARATOR+set}" != set; then
15658 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15659 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15666 # We need space, tab and new line, in precisely that order. Quoting is
15667 # there to prevent editors from complaining about space-tab.
15668 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15669 # splitting by setting IFS to empty value.)
15672 # Find who we are. Look in the path if we contain no directory separator.
15675 *[\\/]* ) as_myself=$0 ;;
15676 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15677 for as_dir in $PATH
15680 test -z "$as_dir" && as_dir=.
15681 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15687 # We did not find ourselves, most probably we were run as `sh COMMAND'
15688 # in which case we are not to be found in the path.
15689 if test "x$as_myself" = x; then
15692 if test ! -f "$as_myself"; then
15693 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15697 # Unset variables that we do not need and which cause bugs (e.g. in
15698 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15699 # suppresses any "Segmentation fault" message there. '((' could
15700 # trigger a bug in pdksh 5.2.14.
15701 for as_var in BASH_ENV ENV MAIL MAILPATH
15702 do eval test x\${$as_var+set} = xset \
15703 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15716 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15719 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15720 # ----------------------------------------
15721 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15722 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15723 # script with STATUS, using 1 if that was 0.
15726 as_status=$1; test $as_status -eq 0 && as_status=1
15728 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15729 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15731 $as_echo "$as_me: error: $2" >&2
15732 as_fn_exit $as_status
15736 # as_fn_set_status STATUS
15737 # -----------------------
15738 # Set $? to STATUS, without forking.
15739 as_fn_set_status ()
15742 } # as_fn_set_status
15744 # as_fn_exit STATUS
15745 # -----------------
15746 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15750 as_fn_set_status $1
15756 # Portably unset VAR.
15759 { eval $1=; unset $1;}
15761 as_unset=as_fn_unset
15762 # as_fn_append VAR VALUE
15763 # ----------------------
15764 # Append the text in VALUE to the end of the definition contained in VAR. Take
15765 # advantage of any shell optimizations that allow amortized linear growth over
15766 # repeated appends, instead of the typical quadratic growth present in naive
15768 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15769 eval 'as_fn_append ()
15780 # as_fn_arith ARG...
15781 # ------------------
15782 # Perform arithmetic evaluation on the ARGs, and store the result in the
15783 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15784 # must be portable across $(()) and expr.
15785 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15786 eval 'as_fn_arith ()
15793 as_val=`expr "$@" || test $? -eq 1`
15798 if expr a : '\(a\)' >/dev/null 2>&1 &&
15799 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15805 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15806 as_basename=basename
15811 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15817 as_me=`$as_basename -- "$0" ||
15818 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15819 X"$0" : 'X\(//\)$' \| \
15820 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15822 sed '/^.*\/\([^/][^/]*\)\/*$/{
15836 # Avoid depending upon Character Ranges.
15837 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15838 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15839 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15840 as_cr_digits='0123456789'
15841 as_cr_alnum=$as_cr_Letters$as_cr_digits
15843 ECHO_C= ECHO_N= ECHO_T=
15844 case `echo -n x` in #(((((
15846 case `echo 'xy\c'` in
15847 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15849 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15856 rm -f conf$$ conf$$.exe conf$$.file
15857 if test -d conf$$.dir; then
15858 rm -f conf$$.dir/conf$$.file
15861 mkdir conf$$.dir 2>/dev/null
15863 if (echo >conf$$.file) 2>/dev/null; then
15864 if ln -s conf$$.file conf$$ 2>/dev/null; then
15866 # ... but there are two gotchas:
15867 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15868 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15869 # In both cases, we have to default to `cp -pR'.
15870 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15872 elif ln conf$$.file conf$$ 2>/dev/null; then
15880 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15881 rmdir conf$$.dir 2>/dev/null
15886 # Create "$as_dir" as a directory, including parents if necessary.
15891 -*) as_dir=./$as_dir;;
15893 test -d "$as_dir" || eval $as_mkdir_p || {
15897 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15898 *) as_qdir=$as_dir;;
15900 as_dirs="'$as_qdir' $as_dirs"
15901 as_dir=`$as_dirname -- "$as_dir" ||
15902 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15903 X"$as_dir" : 'X\(//\)[^/]' \| \
15904 X"$as_dir" : 'X\(//\)$' \| \
15905 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15906 $as_echo X"$as_dir" |
15907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15911 /^X\(\/\/\)[^/].*/{
15924 test -d "$as_dir" && break
15926 test -z "$as_dirs" || eval "mkdir $as_dirs"
15927 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15931 if mkdir -p . 2>/dev/null; then
15932 as_mkdir_p='mkdir -p "$as_dir"'
15934 test -d ./-p && rmdir ./-p
15939 # as_fn_executable_p FILE
15940 # -----------------------
15941 # Test if FILE is an executable regular file.
15942 as_fn_executable_p ()
15944 test -f "$1" && test -x "$1"
15945 } # as_fn_executable_p
15946 as_test_x='test -x'
15947 as_executable_p=as_fn_executable_p
15949 # Sed expression to map a string onto a valid CPP name.
15950 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15952 # Sed expression to map a string onto a valid variable name.
15953 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15957 ## ----------------------------------- ##
15958 ## Main body of $CONFIG_STATUS script. ##
15959 ## ----------------------------------- ##
15961 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15964 # Save the log message, to keep $0 and so on meaningful, and to
15965 # report actual input values of CONFIG_FILES etc. instead of their
15966 # values after options handling.
15968 This file was extended by pygobject $as_me 3.7.3, which was
15969 generated by GNU Autoconf 2.69. Invocation command line was
15971 CONFIG_FILES = $CONFIG_FILES
15972 CONFIG_HEADERS = $CONFIG_HEADERS
15973 CONFIG_LINKS = $CONFIG_LINKS
15974 CONFIG_COMMANDS = $CONFIG_COMMANDS
15977 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15982 case $ac_config_files in *"
15983 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15986 case $ac_config_headers in *"
15987 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15992 # Files that config.status was made for.
15993 config_files="$ac_config_files"
15994 config_headers="$ac_config_headers"
15995 config_commands="$ac_config_commands"
15999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16001 \`$as_me' instantiates files and other configuration actions
16002 from templates according to the current configuration. Unless the files
16003 and actions are specified as TAGs, all are instantiated by default.
16005 Usage: $0 [OPTION]... [TAG]...
16007 -h, --help print this help, then exit
16008 -V, --version print version number and configuration settings, then exit
16009 --config print configuration, then exit
16010 -q, --quiet, --silent
16011 do not print progress messages
16012 -d, --debug don't remove temporary files
16013 --recheck update $as_me by reconfiguring in the same conditions
16014 --file=FILE[:TEMPLATE]
16015 instantiate the configuration file FILE
16016 --header=FILE[:TEMPLATE]
16017 instantiate the configuration header FILE
16019 Configuration files:
16022 Configuration headers:
16025 Configuration commands:
16028 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
16029 pygobject home page: <https://live.gnome.org/PyGObject/>."
16032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16033 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16035 pygobject config.status 3.7.3
16036 configured by $0, generated by GNU Autoconf 2.69,
16037 with options \\"\$ac_cs_config\\"
16039 Copyright (C) 2012 Free Software Foundation, Inc.
16040 This config.status script is free software; the Free Software Foundation
16041 gives unlimited permission to copy, distribute and modify it."
16048 test -n "\$AWK" || AWK=awk
16051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16052 # The default lists apply if the user does not specify any file.
16058 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16059 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16063 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16075 # Handling of the options.
16076 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16078 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16079 $as_echo "$ac_cs_version"; exit ;;
16080 --config | --confi | --conf | --con | --co | --c )
16081 $as_echo "$ac_cs_config"; exit ;;
16082 --debug | --debu | --deb | --de | --d | -d )
16084 --file | --fil | --fi | --f )
16087 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16088 '') as_fn_error $? "missing file argument" ;;
16090 as_fn_append CONFIG_FILES " '$ac_optarg'"
16091 ac_need_defaults=false;;
16092 --header | --heade | --head | --hea )
16095 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16097 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16098 ac_need_defaults=false;;
16100 # Conflict between --help and --header
16101 as_fn_error $? "ambiguous option: \`$1'
16102 Try \`$0 --help' for more information.";;
16103 --help | --hel | -h )
16104 $as_echo "$ac_cs_usage"; exit ;;
16105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16106 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16109 # This is an error.
16110 -*) as_fn_error $? "unrecognized option: \`$1'
16111 Try \`$0 --help' for more information." ;;
16113 *) as_fn_append ac_config_targets " $1"
16114 ac_need_defaults=false ;;
16120 ac_configure_extra_args=
16122 if $ac_cs_silent; then
16124 ac_configure_extra_args="$ac_configure_extra_args --silent"
16128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16129 if \$ac_cs_recheck; then
16130 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16132 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16133 CONFIG_SHELL='$SHELL'
16134 export CONFIG_SHELL
16139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16143 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16144 ## Running $as_me. ##
16150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16154 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16157 # The HP-UX ksh and POSIX shell print the target directory to stdout
16158 # if CDPATH is set.
16159 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16161 sed_quote_subst='$sed_quote_subst'
16162 double_quote_subst='$double_quote_subst'
16163 delay_variable_subst='$delay_variable_subst'
16164 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16165 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16166 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16167 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16168 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16169 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16170 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16171 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16172 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16173 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16174 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16175 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16176 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16177 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16178 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16179 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16180 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16181 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16182 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16183 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16184 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16185 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16186 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16187 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16188 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16189 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16190 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16191 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16192 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16193 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16194 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16195 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16196 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16197 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16198 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16199 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16200 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16201 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16202 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16203 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16204 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16205 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16206 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16207 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16208 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16209 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16210 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16211 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16212 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16213 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16214 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16215 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16216 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16217 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16218 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16219 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16220 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16221 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"`'
16222 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16223 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16224 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16225 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16226 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16227 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16228 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16229 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16230 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16231 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16232 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16233 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16234 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16235 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16236 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16237 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16238 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16239 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16240 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16241 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16242 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16243 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16244 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16245 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16246 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16247 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16248 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16249 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16250 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16251 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16252 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16253 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16254 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16255 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16256 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16257 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16258 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16259 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16260 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16261 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16262 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16263 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16264 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16265 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16266 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16267 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16268 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16269 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16270 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16271 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16272 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16273 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16274 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16275 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16276 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16277 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16278 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16279 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16280 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16281 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16282 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16283 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16284 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16285 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16286 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16287 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16288 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16289 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16290 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16291 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16292 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16293 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16294 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16297 LTCFLAGS='$LTCFLAGS'
16298 compiler='$compiler_DEFAULT'
16300 # A function that is used when there is no print builtin or printf.
16301 func_fallback_echo ()
16303 eval 'cat <<_LTECHO_EOF
16308 # Quote evaled strings.
16325 deplibs_check_method \
16329 sharedlib_from_linklib_cmd \
16332 archiver_list_spec \
16338 lt_cv_sys_global_symbol_pipe \
16339 lt_cv_sys_global_symbol_to_cdecl \
16340 lt_cv_sys_global_symbol_to_c_name_address \
16341 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16342 nm_file_list_spec \
16343 lt_prog_compiler_no_builtin_flag \
16344 lt_prog_compiler_pic \
16345 lt_prog_compiler_wl \
16346 lt_prog_compiler_static \
16347 lt_cv_prog_compiler_c_o \
16356 export_dynamic_flag_spec \
16357 whole_archive_flag_spec \
16358 compiler_needs_object \
16360 allow_undefined_flag \
16361 no_undefined_flag \
16362 hardcode_libdir_flag_spec \
16363 hardcode_libdir_separator \
16367 variables_saved_for_relink \
16369 library_names_spec \
16371 install_override_mode \
16375 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16376 *[\\\\\\\`\\"\\\$]*)
16377 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16380 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16385 # Double-quote double-evaled strings.
16386 for var in reload_cmds \
16387 old_postinstall_cmds \
16388 old_postuninstall_cmds \
16390 extract_expsyms_cmds \
16391 old_archive_from_new_cmds \
16392 old_archive_from_expsyms_cmds \
16394 archive_expsym_cmds \
16396 module_expsym_cmds \
16397 export_symbols_cmds \
16401 postuninstall_cmds \
16403 sys_lib_search_path_spec \
16404 sys_lib_dlsearch_path_spec; do
16405 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16406 *[\\\\\\\`\\"\\\$]*)
16407 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16410 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16415 ac_aux_dir='$ac_aux_dir'
16416 xsi_shell='$xsi_shell'
16417 lt_shell_append='$lt_shell_append'
16419 # See if we are running on zsh, and set the options which allow our
16420 # commands through without removal of \ escapes INIT.
16421 if test -n "\${ZSH_VERSION+set}" ; then
16422 setopt NO_GLOB_SUBST
16428 TIMESTAMP='$TIMESTAMP'
16437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16439 # Handling of arguments.
16440 for ac_config_target in $ac_config_targets
16442 case $ac_config_target in
16443 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16444 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16445 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16446 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16447 "pygobject-3.0.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0.pc" ;;
16448 "pygobject-3.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0-uninstalled.pc" ;;
16449 "gi/Makefile") CONFIG_FILES="$CONFIG_FILES gi/Makefile" ;;
16450 "gi/repository/Makefile") CONFIG_FILES="$CONFIG_FILES gi/repository/Makefile" ;;
16451 "gi/overrides/Makefile") CONFIG_FILES="$CONFIG_FILES gi/overrides/Makefile" ;;
16452 "gi/_glib/Makefile") CONFIG_FILES="$CONFIG_FILES gi/_glib/Makefile" ;;
16453 "gi/_gobject/Makefile") CONFIG_FILES="$CONFIG_FILES gi/_gobject/Makefile" ;;
16454 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
16455 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16456 "pygtkcompat/Makefile") CONFIG_FILES="$CONFIG_FILES pygtkcompat/Makefile" ;;
16457 "PKG-INFO") CONFIG_FILES="$CONFIG_FILES PKG-INFO" ;;
16459 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16464 # If the user did not use the arguments to specify the items to instantiate,
16465 # then the envvar interface is used. Set only those that are not.
16466 # We use the long form for the default assignment because of an extremely
16467 # bizarre bug on SunOS 4.1.3.
16468 if $ac_need_defaults; then
16469 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16470 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16471 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16474 # Have a temporary directory for convenience. Make it in the build tree
16475 # simply because there is no reason against having it here, and in addition,
16476 # creating and moving files from /tmp can sometimes cause problems.
16477 # Hook for its removal unless debugging.
16478 # Note that there is a small window in which the directory will not be cleaned:
16479 # after its creation but before its name has been assigned to `$tmp'.
16483 trap 'exit_status=$?
16484 : "${ac_tmp:=$tmp}"
16485 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16487 trap 'as_fn_exit 1' 1 2 13 15
16489 # Create a (secure) tmp directory for tmp files.
16492 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16496 tmp=./conf$$-$RANDOM
16497 (umask 077 && mkdir "$tmp")
16498 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16501 # Set up the scripts for CONFIG_FILES section.
16502 # No need to generate them if there are no CONFIG_FILES.
16503 # This happens for instance with `./config.status config.h'.
16504 if test -n "$CONFIG_FILES"; then
16507 ac_cr=`echo X | tr X '\015'`
16508 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16509 # But we know of no other shell where ac_cr would be empty at this
16510 # point, so we can use a bashism as a fallback.
16511 if test "x$ac_cr" = x; then
16512 eval ac_cr=\$\'\\r\'
16514 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16515 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16518 ac_cs_awk_cr=$ac_cr
16521 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16526 echo "cat >conf$$subs.awk <<_ACEOF" &&
16527 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16529 } >conf$$subs.sh ||
16530 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16531 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16533 for ac_last_try in false false false false false :; do
16534 . ./conf$$subs.sh ||
16535 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16537 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16538 if test $ac_delim_n = $ac_delim_num; then
16540 elif $ac_last_try; then
16541 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16543 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16546 rm -f conf$$subs.sh
16548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16549 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16553 s/^/S["/; s/!.*/"]=/
16563 s/\(.\{148\}\)..*/\1/
16565 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16570 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16577 s/\(.\{148\}\)..*/\1/
16579 s/["\\]/\\&/g; s/^/"/; s/$/"/
16583 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16588 ' <conf$$subs.awk | sed '
16593 ' >>$CONFIG_STATUS || ac_write_fail=1
16594 rm -f conf$$subs.awk
16595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16597 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16598 for (key in S) S_is_set[key] = 1
16604 nfields = split(line, field, "@")
16606 len = length(field[1])
16607 for (i = 2; i < nfields; i++) {
16609 keylen = length(key)
16610 if (S_is_set[key]) {
16612 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16613 len += length(value) + length(field[++i])
16624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16625 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16626 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16629 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16630 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16633 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16634 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16635 # trailing colons and then remove the whole line if VPATH becomes empty
16636 # (actually we leave an empty line to preserve line numbers).
16637 if test "x$srcdir" = x.; then
16638 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16657 fi # test -n "$CONFIG_FILES"
16659 # Set up the scripts for CONFIG_HEADERS section.
16660 # No need to generate them if there are no CONFIG_HEADERS.
16661 # This happens for instance with `./config.status Makefile'.
16662 if test -n "$CONFIG_HEADERS"; then
16663 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16667 # Transform confdefs.h into an awk script `defines.awk', embedded as
16668 # here-document in config.status, that substitutes the proper values into
16669 # config.h.in to produce config.h.
16671 # Create a delimiter string that does not exist in confdefs.h, to ease
16672 # handling of long lines.
16674 for ac_last_try in false false :; do
16675 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16676 if test -z "$ac_tt"; then
16678 elif $ac_last_try; then
16679 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16681 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16685 # For the awk script, D is an array of macro values keyed by name,
16686 # likewise P contains macro parameters if any. Preserve backslash
16687 # newline sequences.
16689 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16691 s/.\{148\}/&'"$ac_delim"'/g
16694 s/^[ ]*#[ ]*define[ ][ ]*/ /
16701 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16703 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16707 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16708 D["\1"]=" \3\\\\\\n"\\/p
16710 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16715 s/.\{148\}/&'"$ac_delim"'/g
16720 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16723 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16725 ' <confdefs.h | sed '
16726 s/'"$ac_delim"'/"\\\
16727 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16730 for (key in D) D_is_set[key] = 1
16733 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16735 split(line, arg, " ")
16736 if (arg[1] == "#") {
16740 defundef = substr(arg[1], 2)
16743 split(mac1, mac2, "(") #)
16745 prefix = substr(line, 1, index(line, defundef) - 1)
16746 if (D_is_set[macro]) {
16747 # Preserve the white space surrounding the "#".
16748 print prefix "define", macro P[macro] D[macro]
16751 # Replace #undef with comments. This is necessary, for example,
16752 # in the case of _POSIX_SOURCE, which is predefined and required
16753 # on some systems where configure will not decide to define it.
16754 if (defundef == "undef") {
16755 print "/*", prefix defundef, macro, "*/"
16763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16764 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16765 fi # test -n "$CONFIG_HEADERS"
16768 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16773 :[FHLC]) ac_mode=$ac_tag; continue;;
16775 case $ac_mode$ac_tag in
16777 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16778 :[FH]-) ac_tag=-:-;;
16779 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16796 -) ac_f="$ac_tmp/stdin";;
16797 *) # Look for the file first in the build tree, then in the source tree
16798 # (if the path is not absolute). The absolute path cannot be DOS-style,
16799 # because $ac_f cannot contain `:'.
16803 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16805 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16807 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16808 as_fn_append ac_file_inputs " '$ac_f'"
16811 # Let's still pretend it is `configure' which instantiates (i.e., don't
16812 # use $as_me), people would be surprised to read:
16813 # /* config.h. Generated by config.status. */
16814 configure_input='Generated from '`
16815 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16817 if test x"$ac_file" != x-; then
16818 configure_input="$ac_file. $configure_input"
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16820 $as_echo "$as_me: creating $ac_file" >&6;}
16822 # Neutralize special characters interpreted by sed in replacement strings.
16823 case $configure_input in #(
16824 *\&* | *\|* | *\\* )
16825 ac_sed_conf_input=`$as_echo "$configure_input" |
16826 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16827 *) ac_sed_conf_input=$configure_input;;
16831 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16832 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16837 ac_dir=`$as_dirname -- "$ac_file" ||
16838 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16839 X"$ac_file" : 'X\(//\)[^/]' \| \
16840 X"$ac_file" : 'X\(//\)$' \| \
16841 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16842 $as_echo X"$ac_file" |
16843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16847 /^X\(\/\/\)[^/].*/{
16860 as_dir="$ac_dir"; as_fn_mkdir_p
16864 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16866 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16867 # A ".." for each directory in $ac_dir_suffix.
16868 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16869 case $ac_top_builddir_sub in
16870 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16871 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16874 ac_abs_top_builddir=$ac_pwd
16875 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16876 # for backward compatibility:
16877 ac_top_builddir=$ac_top_build_prefix
16880 .) # We are building in place.
16882 ac_top_srcdir=$ac_top_builddir_sub
16883 ac_abs_top_srcdir=$ac_pwd ;;
16884 [\\/]* | ?:[\\/]* ) # Absolute name.
16885 ac_srcdir=$srcdir$ac_dir_suffix;
16886 ac_top_srcdir=$srcdir
16887 ac_abs_top_srcdir=$srcdir ;;
16888 *) # Relative name.
16889 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16890 ac_top_srcdir=$ac_top_build_prefix$srcdir
16891 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16893 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16903 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16904 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16906 ac_MKDIR_P=$MKDIR_P
16908 [\\/$]* | ?:[\\/]* ) ;;
16909 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16914 # If the template does not know about datarootdir, expand it.
16915 # FIXME: This hack should be removed a few years after 2.60.
16916 ac_datarootdir_hack=; ac_datarootdir_seen=
16927 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16928 *datarootdir*) ac_datarootdir_seen=yes;;
16929 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16931 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16934 ac_datarootdir_hack='
16935 s&@datadir@&$datadir&g
16936 s&@docdir@&$docdir&g
16937 s&@infodir@&$infodir&g
16938 s&@localedir@&$localedir&g
16939 s&@mandir@&$mandir&g
16940 s&\\\${datarootdir}&$datarootdir&g' ;;
16944 # Neutralize VPATH when `$srcdir' = `.'.
16945 # Shell code in configure.ac might set extrasub.
16946 # FIXME: do we really want to maintain this feature?
16947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16948 ac_sed_extra="$ac_vpsub
16951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16953 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16954 s|@configure_input@|$ac_sed_conf_input|;t t
16955 s&@top_builddir@&$ac_top_builddir_sub&;t t
16956 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16957 s&@srcdir@&$ac_srcdir&;t t
16958 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16959 s&@top_srcdir@&$ac_top_srcdir&;t t
16960 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16961 s&@builddir@&$ac_builddir&;t t
16962 s&@abs_builddir@&$ac_abs_builddir&;t t
16963 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16964 s&@INSTALL@&$ac_INSTALL&;t t
16965 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16966 $ac_datarootdir_hack
16968 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16969 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16971 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16972 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16973 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16974 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16976 which seems to be undefined. Please make sure it is defined" >&5
16977 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16978 which seems to be undefined. Please make sure it is defined" >&2;}
16980 rm -f "$ac_tmp/stdin"
16982 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16983 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16985 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16991 if test x"$ac_file" != x-; then
16993 $as_echo "/* $configure_input */" \
16994 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16995 } >"$ac_tmp/config.h" \
16996 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16997 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16999 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17002 mv "$ac_tmp/config.h" "$ac_file" \
17003 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17006 $as_echo "/* $configure_input */" \
17007 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17008 || as_fn_error $? "could not create -" "$LINENO" 5
17010 # Compute "$ac_file"'s index in $config_headers.
17013 for _am_header in $config_headers :; do
17014 case $_am_header in
17015 $_am_arg | $_am_arg:* )
17018 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17021 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17022 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17023 X"$_am_arg" : 'X\(//\)[^/]' \| \
17024 X"$_am_arg" : 'X\(//\)$' \| \
17025 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17026 $as_echo X"$_am_arg" |
17027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17031 /^X\(\/\/\)[^/].*/{
17043 s/.*/./; q'`/stamp-h$_am_stamp_count
17046 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17047 $as_echo "$as_me: executing $ac_file commands" >&6;}
17052 case $ac_file$ac_mode in
17053 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17054 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17055 # are listed without --file. Let's play safe and only enable the eval
17056 # if we detect the quoting.
17057 case $CONFIG_FILES in
17058 *\'*) eval set x "$CONFIG_FILES" ;;
17059 *) set x $CONFIG_FILES ;;
17064 # Strip MF so we end up with the name of the file.
17065 mf=`echo "$mf" | sed -e 's/:.*$//'`
17066 # Check whether this is an Automake generated Makefile or not.
17067 # We used to match only the files named `Makefile.in', but
17068 # some people rename them; so instead we look at the file content.
17069 # Grep'ing the first line is not enough: some people post-process
17070 # each Makefile.in and add a new line on top of each file to say so.
17071 # Grep'ing the whole file is not good either: AIX grep has a line
17072 # limit of 2048, but all sed's we know have understand at least 4000.
17073 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17074 dirpart=`$as_dirname -- "$mf" ||
17075 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17076 X"$mf" : 'X\(//\)[^/]' \| \
17077 X"$mf" : 'X\(//\)$' \| \
17078 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17084 /^X\(\/\/\)[^/].*/{
17100 # Extract the definition of DEPDIR, am__include, and am__quote
17101 # from the Makefile without running `make'.
17102 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17103 test -z "$DEPDIR" && continue
17104 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17105 test -z "am__include" && continue
17106 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17107 # When using ansi2knr, U may be empty or an underscore; expand it
17108 U=`sed -n 's/^U = //p' < "$mf"`
17109 # Find all dependency output files, they are included files with
17110 # $(DEPDIR) in their names. We invoke sed twice because it is the
17111 # simplest approach to changing $(DEPDIR) to its actual value in the
17113 for file in `sed -n "
17114 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17115 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17116 # Make sure the directory exists.
17117 test -f "$dirpart/$file" && continue
17118 fdir=`$as_dirname -- "$file" ||
17119 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17120 X"$file" : 'X\(//\)[^/]' \| \
17121 X"$file" : 'X\(//\)$' \| \
17122 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17123 $as_echo X"$file" |
17124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17128 /^X\(\/\/\)[^/].*/{
17141 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17142 # echo "creating $dirpart/$file"
17143 echo '# dummy' > "$dirpart/$file"
17150 # See if we are running on zsh, and set the options which allow our
17151 # commands through without removal of \ escapes.
17152 if test -n "${ZSH_VERSION+set}" ; then
17153 setopt NO_GLOB_SUBST
17156 cfgfile="${ofile}T"
17157 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17160 cat <<_LT_EOF >> "$cfgfile"
17163 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17164 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17165 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17166 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17168 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17169 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17171 # Written by Gordon Matzigkeit, 1996
17173 # This file is part of GNU Libtool.
17175 # GNU Libtool is free software; you can redistribute it and/or
17176 # modify it under the terms of the GNU General Public License as
17177 # published by the Free Software Foundation; either version 2 of
17178 # the License, or (at your option) any later version.
17180 # As a special exception to the GNU General Public License,
17181 # if you distribute this file as part of a program or library that
17182 # is built using GNU Libtool, you may include this file under the
17183 # same distribution terms that you use for the rest of that program.
17185 # GNU Libtool is distributed in the hope that it will be useful,
17186 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17187 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17188 # GNU General Public License for more details.
17190 # You should have received a copy of the GNU General Public License
17191 # along with GNU Libtool; see the file COPYING. If not, a copy
17192 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17193 # obtained by writing to the Free Software Foundation, Inc.,
17194 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17197 # The names of the tagged configurations supported by this script.
17200 # ### BEGIN LIBTOOL CONFIG
17202 # Which release of libtool.m4 was used?
17203 macro_version=$macro_version
17204 macro_revision=$macro_revision
17206 # Assembler program.
17209 # DLL creation program.
17210 DLLTOOL=$lt_DLLTOOL
17212 # Object dumper program.
17213 OBJDUMP=$lt_OBJDUMP
17215 # Whether or not to build static libraries.
17216 build_old_libs=$enable_static
17218 # Whether or not to build shared libraries.
17219 build_libtool_libs=$enable_shared
17221 # What type of objects to build.
17224 # Whether or not to optimize for fast installation.
17225 fast_install=$enable_fast_install
17227 # Shell to use when invoking shell scripts.
17230 # An echo program that protects backslashes.
17233 # The PATH separator for the build system.
17234 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17237 host_alias=$host_alias
17241 # The build system.
17242 build_alias=$build_alias
17246 # A sed program that does not truncate output.
17249 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17250 Xsed="\$SED -e 1s/^X//"
17252 # A grep program that handles long lines.
17258 # A literal string matcher.
17261 # A BSD- or MS-compatible name lister.
17264 # Whether we need soft or hard links.
17267 # What is the maximum length of a command?
17268 max_cmd_len=$max_cmd_len
17270 # Object file suffix (normally "o").
17273 # Executable file suffix (normally "").
17276 # whether the shell understands "unset".
17279 # turn spaces into newlines.
17282 # turn newlines into spaces.
17285 # convert \$build file names to \$host format.
17286 to_host_file_cmd=$lt_cv_to_host_file_cmd
17288 # convert \$build files to toolchain format.
17289 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17291 # Method to check whether dependent libraries are shared objects.
17292 deplibs_check_method=$lt_deplibs_check_method
17294 # Command to use when deplibs_check_method = "file_magic".
17295 file_magic_cmd=$lt_file_magic_cmd
17297 # How to find potential files when deplibs_check_method = "file_magic".
17298 file_magic_glob=$lt_file_magic_glob
17300 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17301 want_nocaseglob=$lt_want_nocaseglob
17303 # Command to associate shared and link libraries.
17304 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17309 # Flags to create an archive.
17310 AR_FLAGS=$lt_AR_FLAGS
17312 # How to feed a file listing to the archiver.
17313 archiver_list_spec=$lt_archiver_list_spec
17315 # A symbol stripping program.
17318 # Commands used to install an old-style archive.
17320 old_postinstall_cmds=$lt_old_postinstall_cmds
17321 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17323 # Whether to use a lock for old archive extraction.
17324 lock_old_archive_extraction=$lock_old_archive_extraction
17329 # LTCC compiler flags.
17330 LTCFLAGS=$lt_CFLAGS
17332 # Take the output of nm and produce a listing of raw symbols and C names.
17333 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17335 # Transform the output of nm in a proper C declaration.
17336 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17338 # Transform the output of nm in a C name address pair.
17339 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17341 # Transform the output of nm in a C name address pair when lib prefix is needed.
17342 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17344 # Specify filename containing input files for \$NM.
17345 nm_file_list_spec=$lt_nm_file_list_spec
17347 # The root where to search for dependent libraries,and in which our libraries should be installed.
17348 lt_sysroot=$lt_sysroot
17350 # The name of the directory that contains temporary libtool files.
17353 # Used to examine libraries when file_magic_cmd begins with "file".
17354 MAGIC_CMD=$MAGIC_CMD
17356 # Must we lock files when doing compilation?
17357 need_locks=$lt_need_locks
17360 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17362 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17363 DSYMUTIL=$lt_DSYMUTIL
17365 # Tool to change global to local symbols on Mac OS X.
17368 # Tool to manipulate fat objects and archives on Mac OS X.
17371 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17374 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17375 OTOOL64=$lt_OTOOL64
17377 # Old archive suffix (normally "a").
17380 # Shared library suffix (normally ".so").
17381 shrext_cmds=$lt_shrext_cmds
17383 # The commands to extract the exported symbol list from a shared archive.
17384 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17386 # Variables whose values should be saved in libtool wrapper scripts and
17387 # restored at link time.
17388 variables_saved_for_relink=$lt_variables_saved_for_relink
17390 # Do we need the "lib" prefix for modules?
17391 need_lib_prefix=$need_lib_prefix
17393 # Do we need a version for libraries?
17394 need_version=$need_version
17396 # Library versioning type.
17397 version_type=$version_type
17399 # Shared library runtime path variable.
17400 runpath_var=$runpath_var
17402 # Shared library path variable.
17403 shlibpath_var=$shlibpath_var
17405 # Is shlibpath searched before the hard-coded library search path?
17406 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17408 # Format of library name prefix.
17409 libname_spec=$lt_libname_spec
17411 # List of archive names. First name is the real one, the rest are links.
17412 # The last name is the one that the linker finds with -lNAME
17413 library_names_spec=$lt_library_names_spec
17415 # The coded name of the library, if different from the real name.
17416 soname_spec=$lt_soname_spec
17418 # Permission mode override for installation of shared libraries.
17419 install_override_mode=$lt_install_override_mode
17421 # Command to use after installation of a shared archive.
17422 postinstall_cmds=$lt_postinstall_cmds
17424 # Command to use after uninstallation of a shared archive.
17425 postuninstall_cmds=$lt_postuninstall_cmds
17427 # Commands used to finish a libtool library installation in a directory.
17428 finish_cmds=$lt_finish_cmds
17430 # As "finish_cmds", except a single script fragment to be evaled but
17432 finish_eval=$lt_finish_eval
17434 # Whether we should hardcode library paths into libraries.
17435 hardcode_into_libs=$hardcode_into_libs
17437 # Compile-time system search path for libraries.
17438 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17440 # Run-time system search path for libraries.
17441 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17443 # Whether dlopen is supported.
17444 dlopen_support=$enable_dlopen
17446 # Whether dlopen of programs is supported.
17447 dlopen_self=$enable_dlopen_self
17449 # Whether dlopen of statically linked programs is supported.
17450 dlopen_self_static=$enable_dlopen_self_static
17452 # Commands to strip libraries.
17453 old_striplib=$lt_old_striplib
17454 striplib=$lt_striplib
17457 # The linker used to build libraries.
17460 # How to create reloadable object files.
17461 reload_flag=$lt_reload_flag
17462 reload_cmds=$lt_reload_cmds
17464 # Commands used to build an old-style archive.
17465 old_archive_cmds=$lt_old_archive_cmds
17467 # A language specific compiler.
17470 # Is the compiler the GNU compiler?
17473 # Compiler flag to turn off builtin functions.
17474 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17476 # Additional compiler flags for building library objects.
17477 pic_flag=$lt_lt_prog_compiler_pic
17479 # How to pass a linker flag through the compiler.
17480 wl=$lt_lt_prog_compiler_wl
17482 # Compiler flag to prevent dynamic linking.
17483 link_static_flag=$lt_lt_prog_compiler_static
17485 # Does compiler simultaneously support -c and -o options?
17486 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17488 # Whether or not to add -lc for building shared libraries.
17489 build_libtool_need_lc=$archive_cmds_need_lc
17491 # Whether or not to disallow shared libs when runtime libs are static.
17492 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17494 # Compiler flag to allow reflexive dlopens.
17495 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17497 # Compiler flag to generate shared objects directly from archives.
17498 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17500 # Whether the compiler copes with passing no objects directly.
17501 compiler_needs_object=$lt_compiler_needs_object
17503 # Create an old-style archive from a shared archive.
17504 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17506 # Create a temporary old-style archive to link instead of a shared archive.
17507 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17509 # Commands used to build a shared archive.
17510 archive_cmds=$lt_archive_cmds
17511 archive_expsym_cmds=$lt_archive_expsym_cmds
17513 # Commands used to build a loadable module if different from building
17514 # a shared archive.
17515 module_cmds=$lt_module_cmds
17516 module_expsym_cmds=$lt_module_expsym_cmds
17518 # Whether we are building with GNU ld or not.
17519 with_gnu_ld=$lt_with_gnu_ld
17521 # Flag that allows shared libraries with undefined symbols to be built.
17522 allow_undefined_flag=$lt_allow_undefined_flag
17524 # Flag that enforces no undefined symbols.
17525 no_undefined_flag=$lt_no_undefined_flag
17527 # Flag to hardcode \$libdir into a binary during linking.
17528 # This must work even if \$libdir does not exist
17529 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17531 # Whether we need a single "-rpath" flag with a separated argument.
17532 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17534 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17535 # DIR into the resulting binary.
17536 hardcode_direct=$hardcode_direct
17538 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17539 # DIR into the resulting binary and the resulting library dependency is
17540 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17541 # library is relocated.
17542 hardcode_direct_absolute=$hardcode_direct_absolute
17544 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17545 # into the resulting binary.
17546 hardcode_minus_L=$hardcode_minus_L
17548 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17549 # into the resulting binary.
17550 hardcode_shlibpath_var=$hardcode_shlibpath_var
17552 # Set to "yes" if building a shared library automatically hardcodes DIR
17553 # into the library and all subsequent libraries and executables linked
17555 hardcode_automatic=$hardcode_automatic
17557 # Set to yes if linker adds runtime paths of dependent libraries
17558 # to runtime path list.
17559 inherit_rpath=$inherit_rpath
17561 # Whether libtool must link a program against all its dependency libraries.
17562 link_all_deplibs=$link_all_deplibs
17564 # Set to "yes" if exported symbols are required.
17565 always_export_symbols=$always_export_symbols
17567 # The commands to list exported symbols.
17568 export_symbols_cmds=$lt_export_symbols_cmds
17570 # Symbols that should not be listed in the preloaded symbols.
17571 exclude_expsyms=$lt_exclude_expsyms
17573 # Symbols that must always be exported.
17574 include_expsyms=$lt_include_expsyms
17576 # Commands necessary for linking programs (against libraries) with templates.
17577 prelink_cmds=$lt_prelink_cmds
17579 # Commands necessary for finishing linking programs.
17580 postlink_cmds=$lt_postlink_cmds
17582 # Specify filename containing input files.
17583 file_list_spec=$lt_file_list_spec
17585 # How to hardcode a shared library path into an executable.
17586 hardcode_action=$hardcode_action
17588 # ### END LIBTOOL CONFIG
17594 cat <<\_LT_EOF >> "$cfgfile"
17595 # AIX sometimes has problems with the GCC collect2 program. For some
17596 # reason, if we set the COLLECT_NAMES environment variable, the problems
17597 # vanish in a puff of smoke.
17598 if test "X${COLLECT_NAMES+set}" != Xset; then
17600 export COLLECT_NAMES
17607 ltmain="$ac_aux_dir/ltmain.sh"
17610 # We use sed instead of cat because bash on DJGPP gets confused if
17611 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17612 # text mode, it properly converts lines to CR/LF. This bash problem
17613 # is reportedly fixed, but why not run on old versions too?
17614 sed '$q' "$ltmain" >> "$cfgfile" \
17615 || (rm -f "$cfgfile"; exit 1)
17617 if test x"$xsi_shell" = xyes; then
17618 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17622 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17623 \ * ) func_dirname_result="${3}" ;;\
17625 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17626 && mv -f "$cfgfile.tmp" "$cfgfile" \
17627 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17628 test 0 -eq $? || _lt_function_replace_fail=:
17631 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17634 \ func_basename_result="${1##*/}"\
17635 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17636 && mv -f "$cfgfile.tmp" "$cfgfile" \
17637 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17638 test 0 -eq $? || _lt_function_replace_fail=:
17641 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17642 func_dirname_and_basename ()\
17645 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17646 \ * ) func_dirname_result="${3}" ;;\
17648 \ func_basename_result="${1##*/}"\
17649 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17650 && mv -f "$cfgfile.tmp" "$cfgfile" \
17651 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17652 test 0 -eq $? || _lt_function_replace_fail=:
17655 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17658 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17659 \ # positional parameters, so assign one to ordinary parameter first.\
17660 \ func_stripname_result=${3}\
17661 \ func_stripname_result=${func_stripname_result#"${1}"}\
17662 \ func_stripname_result=${func_stripname_result%"${2}"}\
17663 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17664 && mv -f "$cfgfile.tmp" "$cfgfile" \
17665 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17666 test 0 -eq $? || _lt_function_replace_fail=:
17669 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17670 func_split_long_opt ()\
17672 \ func_split_long_opt_name=${1%%=*}\
17673 \ func_split_long_opt_arg=${1#*=}\
17674 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17675 && mv -f "$cfgfile.tmp" "$cfgfile" \
17676 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17677 test 0 -eq $? || _lt_function_replace_fail=:
17680 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17681 func_split_short_opt ()\
17683 \ func_split_short_opt_arg=${1#??}\
17684 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17685 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17686 && mv -f "$cfgfile.tmp" "$cfgfile" \
17687 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17688 test 0 -eq $? || _lt_function_replace_fail=:
17691 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17695 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17696 \ *) func_lo2o_result=${1} ;;\
17698 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17699 && mv -f "$cfgfile.tmp" "$cfgfile" \
17700 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17701 test 0 -eq $? || _lt_function_replace_fail=:
17704 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17707 func_xform_result=${1%.*}.lo\
17708 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17709 && mv -f "$cfgfile.tmp" "$cfgfile" \
17710 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17711 test 0 -eq $? || _lt_function_replace_fail=:
17714 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17717 func_arith_result=$(( $* ))\
17718 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17719 && mv -f "$cfgfile.tmp" "$cfgfile" \
17720 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17721 test 0 -eq $? || _lt_function_replace_fail=:
17724 sed -e '/^func_len ()$/,/^} # func_len /c\
17727 func_len_result=${#1}\
17728 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17729 && mv -f "$cfgfile.tmp" "$cfgfile" \
17730 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17731 test 0 -eq $? || _lt_function_replace_fail=:
17735 if test x"$lt_shell_append" = xyes; then
17736 sed -e '/^func_append ()$/,/^} # func_append /c\
17739 eval "${1}+=\\${2}"\
17740 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17741 && mv -f "$cfgfile.tmp" "$cfgfile" \
17742 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17743 test 0 -eq $? || _lt_function_replace_fail=:
17746 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17747 func_append_quoted ()\
17749 \ func_quote_for_eval "${2}"\
17750 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17751 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17752 && mv -f "$cfgfile.tmp" "$cfgfile" \
17753 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17754 test 0 -eq $? || _lt_function_replace_fail=:
17757 # Save a `func_append' function call where possible by direct use of '+='
17758 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17759 && mv -f "$cfgfile.tmp" "$cfgfile" \
17760 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17761 test 0 -eq $? || _lt_function_replace_fail=:
17763 # Save a `func_append' function call even when '+=' is not available
17764 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17765 && mv -f "$cfgfile.tmp" "$cfgfile" \
17766 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17767 test 0 -eq $? || _lt_function_replace_fail=:
17770 if test x"$_lt_function_replace_fail" = x":"; then
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17772 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17776 mv -f "$cfgfile" "$ofile" ||
17777 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17788 ac_clean_files=$ac_clean_files_save
17790 test $ac_write_fail = 0 ||
17791 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17794 # configure is writing to config.log, and then calls config.status.
17795 # config.status does its own redirection, appending to config.log.
17796 # Unfortunately, on DOS this fails, as config.log is still kept open
17797 # by configure, so config.status won't be able to write to it; its
17798 # output is simply discarded. So we exec the FD to /dev/null,
17799 # effectively closing config.log, so it can be properly (re)opened and
17800 # appended to by config.status. When coming back to configure, we
17801 # need to make the FD available again.
17802 if test "$no_create" != yes; then
17804 ac_config_status_args=
17805 test "$silent" = yes &&
17806 ac_config_status_args="$ac_config_status_args --quiet"
17808 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17810 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17811 # would make configure fail if this is the last instruction.
17812 $ac_cs_success || as_fn_exit 1
17814 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17816 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
17823 Using python interpreter: $PYTHON
17824 libffi support: $have_libffi
17825 cairo support: $enable_cairo
17826 thread support: $enable_thread
17827 code coverage support: $enable_code_coverage
17832 Using python interpreter: $PYTHON
17833 libffi support: $have_libffi
17834 cairo support: $enable_cairo
17835 thread support: $enable_thread
17836 code coverage support: $enable_code_coverage