2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for glib 2.32.4.
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://bugzilla.gnome.org/enter_bug.cgi?product=glib
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
271 # Portably unset VAR.
274 { eval $1=; unset $1;}
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
298 # Create "$as_dir" as a directory, including parents if necessary.
303 -*) as_dir=./$as_dir;;
305 test -d "$as_dir" || eval $as_mkdir_p || {
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 test -d "$as_dir" && break
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
374 as_val=`expr "$@" || test $? -eq 1`
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
386 as_status=$1; test $as_status -eq 0 && as_status=1
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
468 # Exit status is that of the last command.
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
490 mkdir conf$$.dir 2>/dev/null
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
515 test -d ./-p && rmdir ./-p
519 if test -x / >/dev/null 2>&1; then
522 if ls -dL / >/dev/null 2>&1; then
529 if test -d "$1"; then
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
540 as_executable_p=$as_test_x
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548 SHELL=${CONFIG_SHELL-/bin/sh}
551 test -n "$DJDIR" || exec 7<&0 </dev/null
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
571 # Identity of this package.
573 PACKAGE_TARNAME='glib'
574 PACKAGE_VERSION='2.32.4'
575 PACKAGE_STRING='glib 2.32.4'
576 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=glib'
579 ac_unique_file="glib/glib.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
616 ac_subst_vars='am__EXEEXT_FALSE
636 G_THREAD_LIBS_FOR_GTHREAD
639 GTHREAD_COMPILE_IMPL_DEFINES
642 ENABLE_TIMELOOP_FALSE
656 G_MODULE_BROKEN_RTLD_GLOBAL
657 G_MODULE_HAVE_DLERROR
664 HAVE_GOOD_PRINTF_FALSE
665 HAVE_GOOD_PRINTF_TRUE
669 HAVE_SUNSTUDIO_VISIBILITY_FALSE
670 HAVE_SUNSTUDIO_VISIBILITY_TRUE
671 HAVE_GNUC_VISIBILITY_FALSE
672 HAVE_GNUC_VISIBILITY_TRUE
674 OS_WIN32_AND_DLL_COMPILATION_FALSE
675 OS_WIN32_AND_DLL_COMPILATION_TRUE
676 GLIB_WIN32_STATIC_COMPILATION_DEFINE
720 HAVE_GLIB_RUNTIME_LIBDIR_FALSE
721 HAVE_GLIB_RUNTIME_LIBDIR_TRUE
722 ABS_GLIB_RUNTIME_LIBDIR
727 LIBTOOL_EXPORT_OPTIONS
728 MS_LIB_AVAILABLE_FALSE
729 MS_LIB_AVAILABLE_TRUE
788 MAINTAINER_MODE_FALSE
798 INSTALL_STRIP_PROGRAM
840 program_transform_name
853 enable_option_checking
854 enable_maintainer_mode
856 enable_dependency_tracking
872 enable_included_printf
880 ac_precious_vars='build_alias
895 # Initialize some variables set by options.
897 ac_init_version=false
898 ac_unrecognized_opts=
900 # The variables have the same names as the options, with
901 # dashes changed to underlines.
909 program_transform_name=s,x,x,
917 # Installation directory options.
918 # These are left unexpanded so users can "make install exec_prefix=/foo"
919 # and all the variables that are supposed to be based on exec_prefix
920 # by default will actually change.
921 # Use braces instead of parens because sh, perl, etc. also accept them.
922 # (The list follows the same order as the GNU Coding Standards.)
923 bindir='${exec_prefix}/bin'
924 sbindir='${exec_prefix}/sbin'
925 libexecdir='${exec_prefix}/libexec'
926 datarootdir='${prefix}/share'
927 datadir='${datarootdir}'
928 sysconfdir='${prefix}/etc'
929 sharedstatedir='${prefix}/com'
930 localstatedir='${prefix}/var'
931 includedir='${prefix}/include'
932 oldincludedir='/usr/include'
933 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
934 infodir='${datarootdir}/info'
939 libdir='${exec_prefix}/lib'
940 localedir='${datarootdir}/locale'
941 mandir='${datarootdir}/man'
947 # If the previous option needs an argument, assign it.
948 if test -n "$ac_prev"; then
949 eval $ac_prev=\$ac_option
955 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960 # Accept the important Cygnus configure options, so we can diagnose typos.
962 case $ac_dashdash$ac_option in
966 -bindir | --bindir | --bindi | --bind | --bin | --bi)
968 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
971 -build | --build | --buil | --bui | --bu)
972 ac_prev=build_alias ;;
973 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
974 build_alias=$ac_optarg ;;
976 -cache-file | --cache-file | --cache-fil | --cache-fi \
977 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
978 ac_prev=cache_file ;;
979 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
980 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
981 cache_file=$ac_optarg ;;
984 cache_file=config.cache ;;
986 -datadir | --datadir | --datadi | --datad)
988 -datadir=* | --datadir=* | --datadi=* | --datad=*)
989 datadir=$ac_optarg ;;
991 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
992 | --dataroo | --dataro | --datar)
993 ac_prev=datarootdir ;;
994 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
995 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
996 datarootdir=$ac_optarg ;;
998 -disable-* | --disable-*)
999 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002 as_fn_error $? "invalid feature name: $ac_useropt"
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1007 "enable_$ac_useropt"
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
1012 eval enable_$ac_useropt=no ;;
1014 -docdir | --docdir | --docdi | --doc | --do)
1016 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1017 docdir=$ac_optarg ;;
1019 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1021 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1022 dvidir=$ac_optarg ;;
1024 -enable-* | --enable-*)
1025 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028 as_fn_error $? "invalid feature name: $ac_useropt"
1029 ac_useropt_orig=$ac_useropt
1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1033 "enable_$ac_useropt"
1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1036 ac_unrecognized_sep=', ';;
1038 eval enable_$ac_useropt=\$ac_optarg ;;
1040 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1041 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1042 | --exec | --exe | --ex)
1043 ac_prev=exec_prefix ;;
1044 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1045 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1046 | --exec=* | --exe=* | --ex=*)
1047 exec_prefix=$ac_optarg ;;
1049 -gas | --gas | --ga | --g)
1050 # Obsolete; use --with-gas.
1053 -help | --help | --hel | --he | -h)
1054 ac_init_help=long ;;
1055 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1056 ac_init_help=recursive ;;
1057 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1058 ac_init_help=short ;;
1060 -host | --host | --hos | --ho)
1061 ac_prev=host_alias ;;
1062 -host=* | --host=* | --hos=* | --ho=*)
1063 host_alias=$ac_optarg ;;
1065 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1067 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1069 htmldir=$ac_optarg ;;
1071 -includedir | --includedir | --includedi | --included | --include \
1072 | --includ | --inclu | --incl | --inc)
1073 ac_prev=includedir ;;
1074 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1075 | --includ=* | --inclu=* | --incl=* | --inc=*)
1076 includedir=$ac_optarg ;;
1078 -infodir | --infodir | --infodi | --infod | --info | --inf)
1080 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1081 infodir=$ac_optarg ;;
1083 -libdir | --libdir | --libdi | --libd)
1085 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1086 libdir=$ac_optarg ;;
1088 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1089 | --libexe | --libex | --libe)
1090 ac_prev=libexecdir ;;
1091 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1092 | --libexe=* | --libex=* | --libe=*)
1093 libexecdir=$ac_optarg ;;
1095 -localedir | --localedir | --localedi | --localed | --locale)
1096 ac_prev=localedir ;;
1097 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1098 localedir=$ac_optarg ;;
1100 -localstatedir | --localstatedir | --localstatedi | --localstated \
1101 | --localstate | --localstat | --localsta | --localst | --locals)
1102 ac_prev=localstatedir ;;
1103 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1104 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1105 localstatedir=$ac_optarg ;;
1107 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1109 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1110 mandir=$ac_optarg ;;
1112 -nfp | --nfp | --nf)
1113 # Obsolete; use --without-fp.
1116 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1117 | --no-cr | --no-c | -n)
1120 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1121 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1124 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1125 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1126 | --oldin | --oldi | --old | --ol | --o)
1127 ac_prev=oldincludedir ;;
1128 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1129 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1130 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1131 oldincludedir=$ac_optarg ;;
1133 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1135 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1136 prefix=$ac_optarg ;;
1138 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1139 | --program-pre | --program-pr | --program-p)
1140 ac_prev=program_prefix ;;
1141 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1142 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1143 program_prefix=$ac_optarg ;;
1145 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1146 | --program-suf | --program-su | --program-s)
1147 ac_prev=program_suffix ;;
1148 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1149 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1150 program_suffix=$ac_optarg ;;
1152 -program-transform-name | --program-transform-name \
1153 | --program-transform-nam | --program-transform-na \
1154 | --program-transform-n | --program-transform- \
1155 | --program-transform | --program-transfor \
1156 | --program-transfo | --program-transf \
1157 | --program-trans | --program-tran \
1158 | --progr-tra | --program-tr | --program-t)
1159 ac_prev=program_transform_name ;;
1160 -program-transform-name=* | --program-transform-name=* \
1161 | --program-transform-nam=* | --program-transform-na=* \
1162 | --program-transform-n=* | --program-transform-=* \
1163 | --program-transform=* | --program-transfor=* \
1164 | --program-transfo=* | --program-transf=* \
1165 | --program-trans=* | --program-tran=* \
1166 | --progr-tra=* | --program-tr=* | --program-t=*)
1167 program_transform_name=$ac_optarg ;;
1169 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1171 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1172 pdfdir=$ac_optarg ;;
1174 -psdir | --psdir | --psdi | --psd | --ps)
1176 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1180 | -silent | --silent | --silen | --sile | --sil)
1183 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1185 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1187 sbindir=$ac_optarg ;;
1189 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1190 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1191 | --sharedst | --shareds | --shared | --share | --shar \
1193 ac_prev=sharedstatedir ;;
1194 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1195 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1196 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1198 sharedstatedir=$ac_optarg ;;
1200 -site | --site | --sit)
1202 -site=* | --site=* | --sit=*)
1205 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1207 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1208 srcdir=$ac_optarg ;;
1210 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1211 | --syscon | --sysco | --sysc | --sys | --sy)
1212 ac_prev=sysconfdir ;;
1213 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1214 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1215 sysconfdir=$ac_optarg ;;
1217 -target | --target | --targe | --targ | --tar | --ta | --t)
1218 ac_prev=target_alias ;;
1219 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1220 target_alias=$ac_optarg ;;
1222 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1225 -version | --version | --versio | --versi | --vers | -V)
1226 ac_init_version=: ;;
1229 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error $? "invalid package name: $ac_useropt"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1242 eval with_$ac_useropt=\$ac_optarg ;;
1244 -without-* | --without-*)
1245 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248 as_fn_error $? "invalid package name: $ac_useropt"
1249 ac_useropt_orig=$ac_useropt
1250 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1255 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1256 ac_unrecognized_sep=', ';;
1258 eval with_$ac_useropt=no ;;
1261 # Obsolete; use --with-x.
1264 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1265 | --x-incl | --x-inc | --x-in | --x-i)
1266 ac_prev=x_includes ;;
1267 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1268 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1269 x_includes=$ac_optarg ;;
1271 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1272 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1273 ac_prev=x_libraries ;;
1274 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1275 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1276 x_libraries=$ac_optarg ;;
1278 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1279 Try \`$0 --help' for more information"
1283 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1284 # Reject names that are not valid shell variable names.
1285 case $ac_envvar in #(
1286 '' | [0-9]* | *[!_$as_cr_alnum]* )
1287 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1289 eval $ac_envvar=\$ac_optarg
1290 export $ac_envvar ;;
1293 # FIXME: should be removed in autoconf 3.0.
1294 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1295 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1296 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1297 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1303 if test -n "$ac_prev"; then
1304 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1305 as_fn_error $? "missing argument to $ac_option"
1308 if test -n "$ac_unrecognized_opts"; then
1309 case $enable_option_checking in
1311 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1312 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1316 # Check all directory arguments for consistency.
1317 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318 datadir sysconfdir sharedstatedir localstatedir includedir \
1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320 libdir localedir mandir
1322 eval ac_val=\$$ac_var
1323 # Remove trailing slashes.
1326 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1327 eval $ac_var=\$ac_val;;
1329 # Be sure to have absolute directory names.
1331 [\\/$]* | ?:[\\/]* ) continue;;
1332 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1334 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1337 # There might be people who depend on the old broken behavior: `$host'
1338 # used to hold the argument of --host etc.
1339 # FIXME: To remove some day.
1342 target=$target_alias
1344 # FIXME: To remove some day.
1345 if test "x$host_alias" != x; then
1346 if test "x$build_alias" = x; then
1347 cross_compiling=maybe
1348 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1349 If a cross compiler is detected then cross compile mode will be used" >&2
1350 elif test "x$build_alias" != "x$host_alias"; then
1356 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1358 test "$silent" = yes && exec 6>/dev/null
1361 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362 ac_ls_di=`ls -di .` &&
1363 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364 as_fn_error $? "working directory cannot be determined"
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366 as_fn_error $? "pwd does not report name of working directory"
1369 # Find the source files, if location was not specified.
1370 if test -z "$srcdir"; then
1371 ac_srcdir_defaulted=yes
1372 # Try the directory containing this script, then the parent directory.
1373 ac_confdir=`$as_dirname -- "$as_myself" ||
1374 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375 X"$as_myself" : 'X\(//\)[^/]' \| \
1376 X"$as_myself" : 'X\(//\)$' \| \
1377 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378 $as_echo X"$as_myself" |
1379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1401 ac_srcdir_defaulted=no
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1405 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1407 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1409 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1411 # When building in place, set srcdir=.
1412 if test "$ac_abs_confdir" = "$ac_pwd"; then
1415 # Remove unnecessary trailing slashes from srcdir.
1416 # Double slashes in file names in object file debugging info
1417 # mess up M-x gdb in Emacs.
1419 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1421 for ac_var in $ac_precious_vars; do
1422 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_env_${ac_var}_value=\$${ac_var}
1424 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1429 # Report the --help message.
1431 if test "$ac_init_help" = "long"; then
1432 # Omit some internal or obsolete options to make the list less imposing.
1433 # This message is too long to be a string in the A/UX 3.1 sh.
1435 \`configure' configures glib 2.32.4 to adapt to many kinds of systems.
1437 Usage: $0 [OPTION]... [VAR=VALUE]...
1439 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440 VAR=VALUE. See below for descriptions of some of the useful variables.
1442 Defaults for the options are specified in brackets.
1445 -h, --help display this help and exit
1446 --help=short display options specific to this package
1447 --help=recursive display the short help of all the included packages
1448 -V, --version display version information and exit
1449 -q, --quiet, --silent do not print \`checking ...' messages
1450 --cache-file=FILE cache test results in FILE [disabled]
1451 -C, --config-cache alias for \`--cache-file=config.cache'
1452 -n, --no-create do not create output files
1453 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1455 Installation directories:
1456 --prefix=PREFIX install architecture-independent files in PREFIX
1457 [$ac_default_prefix]
1458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1461 By default, \`make install' will install all the files in
1462 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1463 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464 for instance \`--prefix=\$HOME'.
1466 For better control, use the options below.
1468 Fine tuning of the installation directories:
1469 --bindir=DIR user executables [EPREFIX/bin]
1470 --sbindir=DIR system admin executables [EPREFIX/sbin]
1471 --libexecdir=DIR program executables [EPREFIX/libexec]
1472 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1473 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1474 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1475 --libdir=DIR object code libraries [EPREFIX/lib]
1476 --includedir=DIR C header files [PREFIX/include]
1477 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1478 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1479 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1480 --infodir=DIR info documentation [DATAROOTDIR/info]
1481 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1482 --mandir=DIR man documentation [DATAROOTDIR/man]
1483 --docdir=DIR documentation root [DATAROOTDIR/doc/glib]
1484 --htmldir=DIR html documentation [DOCDIR]
1485 --dvidir=DIR dvi documentation [DOCDIR]
1486 --pdfdir=DIR pdf documentation [DOCDIR]
1487 --psdir=DIR ps documentation [DOCDIR]
1493 --program-prefix=PREFIX prepend PREFIX to installed program names
1494 --program-suffix=SUFFIX append SUFFIX to installed program names
1495 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1498 --build=BUILD configure for building on BUILD [guessed]
1499 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1503 if test -n "$ac_init_help"; then
1504 case $ac_init_help in
1505 short | recursive ) echo "Configuration of glib 2.32.4:";;
1510 --disable-option-checking ignore unrecognized --enable/--with options
1511 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1512 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1513 --disable-maintainer-mode disable make rules and dependencies not useful
1514 (and sometimes confusing) to the casual installer
1515 --enable-silent-rules less verbose build output (undo: `make V=1')
1516 --disable-silent-rules verbose build output (undo: `make V=0')
1517 --disable-dependency-tracking speeds up one-time build
1518 --enable-dependency-tracking do not reject slow dependency extractors
1519 --enable-debug=[no/minimum/yes]
1520 turn on debugging [default=minimum]
1521 --enable-gc-friendly turn on garbage collector friendliness [default=no]
1522 --disable-mem-pools disable all glib memory pools
1523 --disable-rebuilds disable all source autogeneration rules
1524 --disable-largefile omit support for large files
1525 --enable-iconv-cache=[yes/no/auto]
1526 cache iconv descriptors [default=auto]
1527 --enable-static[=PKGS] build static libraries [default=no]
1528 --enable-shared[=PKGS] build shared libraries [default=yes]
1529 --enable-fast-install[=PKGS]
1530 optimize for fast installation [default=yes]
1531 --disable-libtool-lock avoid locking (might break parallel builds)
1532 --enable-included-printf
1533 use included printf [default=auto]
1534 --disable-selinux build without selinux support
1535 --disable-xattr build without xattr support
1536 --enable-gcov enable coverage testing with gcov
1537 --disable-Bsymbolic avoid linking with -Bsymbolic
1540 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1541 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1542 --with-runtime-libdir=RELPATH
1543 install runtime libraries relative to libdir
1544 --with-libiconv=[no/gnu/native]
1545 use the libiconv library
1546 --with-pic try to use only PIC/non-PIC objects [default=use
1548 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1549 --with-sysroot=DIR Search for dependent libraries within DIR
1550 (or the compiler's sysroot if not specified).
1551 --with-gio-module-dir=DIR
1552 load gio modules from this directory
1553 [LIBDIR/gio/modules]
1554 --with-threads=[posix/win32]
1555 specify a thread implementation to use
1557 Some influential environment variables:
1558 CC C compiler command
1559 CFLAGS C compiler flags
1560 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1561 nonstandard directory <lib dir>
1562 LIBS libraries to pass to the linker, e.g. -l<library>
1563 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1564 you have headers in a nonstandard directory <include dir>
1566 CXX C++ compiler command
1567 CXXFLAGS C++ compiler flags
1568 CXXCPP C++ preprocessor
1570 Use these variables to override the choices made by `configure' or to help
1571 it to find libraries and programs with nonstandard names/locations.
1573 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib>.
1578 if test "$ac_init_help" = "recursive"; then
1579 # If there are subdirs, report their specific --help.
1580 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581 test -d "$ac_dir" ||
1582 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1590 # A ".." for each directory in $ac_dir_suffix.
1591 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1592 case $ac_top_builddir_sub in
1593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1597 ac_abs_top_builddir=$ac_pwd
1598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599 # for backward compatibility:
1600 ac_top_builddir=$ac_top_build_prefix
1603 .) # We are building in place.
1605 ac_top_srcdir=$ac_top_builddir_sub
1606 ac_abs_top_srcdir=$ac_pwd ;;
1607 [\\/]* | ?:[\\/]* ) # Absolute name.
1608 ac_srcdir=$srcdir$ac_dir_suffix;
1609 ac_top_srcdir=$srcdir
1610 ac_abs_top_srcdir=$srcdir ;;
1612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613 ac_top_srcdir=$ac_top_build_prefix$srcdir
1614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1618 cd "$ac_dir" || { ac_status=$?; continue; }
1619 # Check for guested configure.
1620 if test -f "$ac_srcdir/configure.gnu"; then
1622 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623 elif test -f "$ac_srcdir/configure"; then
1625 $SHELL "$ac_srcdir/configure" --help=recursive
1627 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1629 cd "$ac_pwd" || { ac_status=$?; break; }
1633 test -n "$ac_init_help" && exit $ac_status
1634 if $ac_init_version; then
1636 glib configure 2.32.4
1637 generated by GNU Autoconf 2.68
1639 Copyright (C) 2010 Free Software Foundation, Inc.
1640 This configure script is free software; the Free Software Foundation
1641 gives unlimited permission to copy, distribute and modify it.
1646 ## ------------------------ ##
1647 ## Autoconf initialization. ##
1648 ## ------------------------ ##
1650 # ac_fn_c_try_compile LINENO
1651 # --------------------------
1652 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_c_try_compile ()
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 rm -f conftest.$ac_objext
1657 if { { ac_try="$ac_compile"
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_compile") 2>conftest.err
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } && {
1673 test -z "$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 } && test -s conftest.$ac_objext; then :
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1686 } # ac_fn_c_try_compile
1688 # ac_fn_c_try_cpp LINENO
1689 # ----------------------
1690 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { { ac_try="$ac_cpp conftest.$ac_ext"
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } > conftest.i && {
1710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1725 # ac_fn_cxx_try_compile LINENO
1726 # ----------------------------
1727 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_cxx_try_compile ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext
1732 if { { ac_try="$ac_compile"
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_compile") 2>conftest.err
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_cxx_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest.$ac_objext; then :
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1761 } # ac_fn_cxx_try_compile
1763 # ac_fn_c_try_link LINENO
1764 # -----------------------
1765 # Try to link conftest.$ac_ext, and return whether this succeeded.
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 rm -f conftest.$ac_objext conftest$ac_exeext
1770 if { { ac_try="$ac_link"
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_link") 2>conftest.err
1779 if test -s conftest.err; then
1780 grep -v '^ *+' conftest.err >conftest.er1
1781 cat conftest.er1 >&5
1782 mv -f conftest.er1 conftest.err
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && {
1786 test -z "$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1788 } && test -s conftest$ac_exeext && {
1789 test "$cross_compiling" = yes ||
1790 $as_test_x conftest$ac_exeext
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1799 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1800 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1801 # interfere with the next link command; also delete a directory that is
1802 # left behind by Apple's compiler. We do this before executing the actions.
1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status $ac_retval
1807 } # ac_fn_c_try_link
1809 # ac_fn_c_check_func LINENO FUNC VAR
1810 # ----------------------------------
1811 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1812 ac_fn_c_check_func ()
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if eval \${$3+:} false; then :
1818 $as_echo_n "(cached) " >&6
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h. */
1822 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1824 #define $2 innocuous_$2
1826 /* System header to define __stub macros and hopefully few prototypes,
1827 which can conflict with char $2 (); below.
1828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1829 <limits.h> exists even on freestanding compilers. */
1832 # include <limits.h>
1834 # include <assert.h>
1839 /* Override any GCC internal prototype to avoid an error.
1840 Use char because int might match the return type of a GCC
1841 builtin and then its argument prototype would still apply. */
1846 /* The GNU C library defines this for functions which it implements
1847 to always fail with ENOSYS. Some functions are actually named
1848 something starting with __ and the normal name is an alias. */
1849 #if defined __stub_$2 || defined __stub___$2
1861 if ac_fn_c_try_link "$LINENO"; then :
1866 rm -f core conftest.err conftest.$ac_objext \
1867 conftest$ac_exeext conftest.$ac_ext
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871 $as_echo "$ac_res" >&6; }
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 } # ac_fn_c_check_func
1876 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1877 # -------------------------------------------------------
1878 # Tests whether HEADER exists and can be compiled using the include files in
1879 # INCLUDES, setting the cache variable VAR accordingly.
1880 ac_fn_c_check_header_compile ()
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if eval \${$3+:} false; then :
1886 $as_echo_n "(cached) " >&6
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1893 if ac_fn_c_try_compile "$LINENO"; then :
1898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 } # ac_fn_c_check_header_compile
1907 # ac_fn_c_try_run LINENO
1908 # ----------------------
1909 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1910 # that executables *can* be run.
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 if { { ac_try="$ac_link"
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_link") 2>&5
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1925 { { case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_try") 2>&5
1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934 test $ac_status = 0; }; }; then :
1937 $as_echo "$as_me: program exited with status $ac_status" >&5
1938 $as_echo "$as_me: failed program was:" >&5
1939 sed 's/^/| /' conftest.$ac_ext >&5
1941 ac_retval=$ac_status
1943 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945 as_fn_set_status $ac_retval
1949 # ac_fn_cxx_try_cpp LINENO
1950 # ------------------------
1951 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1952 ac_fn_cxx_try_cpp ()
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 if { { ac_try="$ac_cpp conftest.$ac_ext"
1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 $as_echo "$ac_try_echo"; } >&5
1962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1964 if test -s conftest.err; then
1965 grep -v '^ *+' conftest.err >conftest.er1
1966 cat conftest.er1 >&5
1967 mv -f conftest.er1 conftest.err
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; } > conftest.i && {
1971 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1972 test ! -s conftest.err
1976 $as_echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982 as_fn_set_status $ac_retval
1984 } # ac_fn_cxx_try_cpp
1986 # ac_fn_cxx_try_link LINENO
1987 # -------------------------
1988 # Try to link conftest.$ac_ext, and return whether this succeeded.
1989 ac_fn_cxx_try_link ()
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 rm -f conftest.$ac_objext conftest$ac_exeext
1993 if { { ac_try="$ac_link"
1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996 *) ac_try_echo=$ac_try;;
1998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 $as_echo "$ac_try_echo"; } >&5
2000 (eval "$ac_link") 2>conftest.err
2002 if test -s conftest.err; then
2003 grep -v '^ *+' conftest.err >conftest.er1
2004 cat conftest.er1 >&5
2005 mv -f conftest.er1 conftest.err
2007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008 test $ac_status = 0; } && {
2009 test -z "$ac_cxx_werror_flag" ||
2010 test ! -s conftest.err
2011 } && test -s conftest$ac_exeext && {
2012 test "$cross_compiling" = yes ||
2013 $as_test_x conftest$ac_exeext
2017 $as_echo "$as_me: failed program was:" >&5
2018 sed 's/^/| /' conftest.$ac_ext >&5
2022 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2023 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2024 # interfere with the next link command; also delete a directory that is
2025 # left behind by Apple's compiler. We do this before executing the actions.
2026 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2027 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028 as_fn_set_status $ac_retval
2030 } # ac_fn_cxx_try_link
2032 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2033 # -------------------------------------------
2034 # Tests whether TYPE exists after having included INCLUDES, setting cache
2035 # variable VAR accordingly.
2036 ac_fn_c_check_type ()
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if eval \${$3+:} false; then :
2042 $as_echo_n "(cached) " >&6
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2057 if ac_fn_c_try_compile "$LINENO"; then :
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2070 if ac_fn_c_try_compile "$LINENO"; then :
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2081 $as_echo "$ac_res" >&6; }
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2084 } # ac_fn_c_check_type
2086 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2087 # --------------------------------------------
2088 # Tries to find the compile-time value of EXPR in a program that includes
2089 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2091 ac_fn_c_compute_int ()
2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094 if test "$cross_compiling" = yes; then
2095 # Depending upon the size, compute the lo and hi bounds.
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2102 static int test_array [1 - 2 * !(($2) >= 0)];
2109 if ac_fn_c_try_compile "$LINENO"; then :
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2118 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2125 if ac_fn_c_try_compile "$LINENO"; then :
2126 ac_hi=$ac_mid; break
2128 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2129 if test $ac_lo -le $ac_mid; then
2133 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2144 static int test_array [1 - 2 * !(($2) < 0)];
2151 if ac_fn_c_try_compile "$LINENO"; then :
2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h. */
2160 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2167 if ac_fn_c_try_compile "$LINENO"; then :
2168 ac_lo=$ac_mid; break
2170 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2171 if test $ac_mid -le $ac_hi; then
2175 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 # Binary search between lo and hi bounds.
2186 while test "x$ac_lo" != "x$ac_hi"; do
2187 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2194 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2201 if ac_fn_c_try_compile "$LINENO"; then :
2204 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h. */
2216 static long int longval () { return $2; }
2217 static unsigned long int ulongval () { return $2; }
2224 FILE *f = fopen ("conftest.val", "w");
2229 long int i = longval ();
2232 fprintf (f, "%ld", i);
2236 unsigned long int i = ulongval ();
2239 fprintf (f, "%lu", i);
2241 /* Do not output a trailing newline, as this causes \r\n confusion
2242 on some platforms. */
2243 return ferror (f) || fclose (f) != 0;
2249 if ac_fn_c_try_run "$LINENO"; then :
2250 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2255 conftest.$ac_objext conftest.beam conftest.$ac_ext
2259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260 as_fn_set_status $ac_retval
2262 } # ac_fn_c_compute_int
2264 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2265 # -------------------------------------------------------
2266 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2267 # the include files in INCLUDES and setting the cache variable VAR
2269 ac_fn_c_check_header_mongrel ()
2271 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272 if eval \${$3+:} false; then :
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2274 $as_echo_n "checking for $2... " >&6; }
2275 if eval \${$3+:} false; then :
2276 $as_echo_n "(cached) " >&6
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2280 $as_echo "$ac_res" >&6; }
2282 # Is the header compilable?
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2284 $as_echo_n "checking $2 usability... " >&6; }
2285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h. */
2290 if ac_fn_c_try_compile "$LINENO"; then :
2291 ac_header_compiler=yes
2293 ac_header_compiler=no
2295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2297 $as_echo "$ac_header_compiler" >&6; }
2299 # Is the header present?
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2301 $as_echo_n "checking $2 presence... " >&6; }
2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h. */
2306 if ac_fn_c_try_cpp "$LINENO"; then :
2307 ac_header_preproc=yes
2309 ac_header_preproc=no
2311 rm -f conftest.err conftest.i conftest.$ac_ext
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2313 $as_echo "$ac_header_preproc" >&6; }
2315 # So? What about this header?
2316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2319 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2321 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2325 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2327 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2329 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2331 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2333 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2334 ( $as_echo "## ------------------------------------------------------------------- ##
2335 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=glib ##
2336 ## ------------------------------------------------------------------- ##"
2337 ) | sed "s/^/$as_me: WARNING: /" >&2
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2341 $as_echo_n "checking for $2... " >&6; }
2342 if eval \${$3+:} false; then :
2343 $as_echo_n "(cached) " >&6
2345 eval "$3=\$ac_header_compiler"
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2351 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2353 } # ac_fn_c_check_header_mongrel
2355 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2356 # ----------------------------------------------------
2357 # Tries to find if the field MEMBER exists in type AGGR, after including
2358 # INCLUDES, setting cache variable VAR accordingly.
2359 ac_fn_c_check_member ()
2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2363 $as_echo_n "checking for $2.$3... " >&6; }
2364 if eval \${$4+:} false; then :
2365 $as_echo_n "(cached) " >&6
2367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h. */
2380 if ac_fn_c_try_compile "$LINENO"; then :
2383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2384 /* end confdefs.h. */
2390 if (sizeof ac_aggr.$3)
2396 if ac_fn_c_try_compile "$LINENO"; then :
2401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2407 $as_echo "$ac_res" >&6; }
2408 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2410 } # ac_fn_c_check_member
2411 cat >config.log <<_ACEOF
2412 This file contains any messages produced by compilers while
2413 running configure, to aid debugging if configure makes a mistake.
2415 It was created by glib $as_me 2.32.4, which was
2416 generated by GNU Autoconf 2.68. Invocation command line was
2428 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2429 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2430 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2431 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2432 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2434 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2435 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2437 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2438 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2439 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2440 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2441 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2442 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2443 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451 test -z "$as_dir" && as_dir=.
2452 $as_echo "PATH: $as_dir"
2468 # Keep a trace of the command line.
2469 # Strip out --no-create and --no-recursion so they do not pile up.
2470 # Strip out --silent because we don't want to record it for future runs.
2471 # Also quote any args containing shell meta-characters.
2472 # Make two passes to allow for proper duplicate-argument suppression.
2476 ac_must_keep_next=false
2482 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2483 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2484 | -silent | --silent | --silen | --sile | --sil)
2487 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2490 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2492 as_fn_append ac_configure_args1 " '$ac_arg'"
2493 if test $ac_must_keep_next = true; then
2494 ac_must_keep_next=false # Got value, back to normal.
2497 *=* | --config-cache | -C | -disable-* | --disable-* \
2498 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2499 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2500 | -with-* | --with-* | -without-* | --without-* | --x)
2501 case "$ac_configure_args0 " in
2502 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2505 -* ) ac_must_keep_next=true ;;
2508 as_fn_append ac_configure_args " '$ac_arg'"
2513 { ac_configure_args0=; unset ac_configure_args0;}
2514 { ac_configure_args1=; unset ac_configure_args1;}
2516 # When interrupted or exit'd, cleanup temporary files, and complete
2517 # config.log. We remove comments because anyway the quotes in there
2518 # would cause problems or look ugly.
2519 # WARNING: Use '\'' to represent an apostrophe within the trap.
2520 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2521 trap 'exit_status=$?
2522 # Save into config.log some information that might help in debugging.
2526 $as_echo "## ---------------- ##
2527 ## Cache variables. ##
2528 ## ---------------- ##"
2530 # The following way of writing the cache mishandles newlines in values,
2532 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2533 eval ac_val=\$$ac_var
2537 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2538 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2541 _ | IFS | as_nl) ;; #(
2542 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2543 *) { eval $ac_var=; unset $ac_var;} ;;
2548 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2549 *${as_nl}ac_space=\ *)
2551 "s/'\''/'\''\\\\'\'''\''/g;
2552 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2555 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2562 $as_echo "## ----------------- ##
2563 ## Output variables. ##
2564 ## ----------------- ##"
2566 for ac_var in $ac_subst_vars
2568 eval ac_val=\$$ac_var
2570 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2572 $as_echo "$ac_var='\''$ac_val'\''"
2576 if test -n "$ac_subst_files"; then
2577 $as_echo "## ------------------- ##
2578 ## File substitutions. ##
2579 ## ------------------- ##"
2581 for ac_var in $ac_subst_files
2583 eval ac_val=\$$ac_var
2585 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2587 $as_echo "$ac_var='\''$ac_val'\''"
2592 if test -s confdefs.h; then
2593 $as_echo "## ----------- ##
2600 test "$ac_signal" != 0 &&
2601 $as_echo "$as_me: caught signal $ac_signal"
2602 $as_echo "$as_me: exit $exit_status"
2604 rm -f core *.core core.conftest.* &&
2605 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2608 for ac_signal in 1 2 13 15; do
2609 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2613 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2614 rm -f -r conftest* confdefs.h
2616 $as_echo "/* confdefs.h */" > confdefs.h
2618 # Predefined preprocessor variables.
2620 cat >>confdefs.h <<_ACEOF
2621 #define PACKAGE_NAME "$PACKAGE_NAME"
2624 cat >>confdefs.h <<_ACEOF
2625 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2628 cat >>confdefs.h <<_ACEOF
2629 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2632 cat >>confdefs.h <<_ACEOF
2633 #define PACKAGE_STRING "$PACKAGE_STRING"
2636 cat >>confdefs.h <<_ACEOF
2637 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2640 cat >>confdefs.h <<_ACEOF
2641 #define PACKAGE_URL "$PACKAGE_URL"
2645 # Let the site file select an alternate cache file if it wants to.
2646 # Prefer an explicitly selected file to automatically selected ones.
2649 if test -n "$CONFIG_SITE"; then
2650 # We do not want a PATH search for config.site.
2651 case $CONFIG_SITE in #((
2652 -*) ac_site_file1=./$CONFIG_SITE;;
2653 */*) ac_site_file1=$CONFIG_SITE;;
2654 *) ac_site_file1=./$CONFIG_SITE;;
2656 elif test "x$prefix" != xNONE; then
2657 ac_site_file1=$prefix/share/config.site
2658 ac_site_file2=$prefix/etc/config.site
2660 ac_site_file1=$ac_default_prefix/share/config.site
2661 ac_site_file2=$ac_default_prefix/etc/config.site
2663 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2665 test "x$ac_site_file" = xNONE && continue
2666 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2668 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2669 sed 's/^/| /' "$ac_site_file" >&5
2671 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2673 as_fn_error $? "failed to load site script $ac_site_file
2674 See \`config.log' for more details" "$LINENO" 5; }
2678 if test -r "$cache_file"; then
2679 # Some versions of bash will fail to source /dev/null (special files
2680 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2681 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2683 $as_echo "$as_me: loading cache $cache_file" >&6;}
2685 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2686 *) . "./$cache_file";;
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2691 $as_echo "$as_me: creating cache $cache_file" >&6;}
2695 # Check that the precious variables saved in the cache have kept the same
2697 ac_cache_corrupted=false
2698 for ac_var in $ac_precious_vars; do
2699 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2700 eval ac_new_set=\$ac_env_${ac_var}_set
2701 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2702 eval ac_new_val=\$ac_env_${ac_var}_value
2703 case $ac_old_set,$ac_new_set in
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2706 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2707 ac_cache_corrupted=: ;;
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2710 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2711 ac_cache_corrupted=: ;;
2714 if test "x$ac_old_val" != "x$ac_new_val"; then
2715 # differences in whitespace do not lead to failure.
2716 ac_old_val_w=`echo x $ac_old_val`
2717 ac_new_val_w=`echo x $ac_new_val`
2718 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2720 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2721 ac_cache_corrupted=:
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2724 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2725 eval $ac_var=\$ac_old_val
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2728 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2730 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2733 # Pass precious variables to config.status.
2734 if test "$ac_new_set" = set; then
2736 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2737 *) ac_arg=$ac_var=$ac_new_val ;;
2739 case " $ac_configure_args " in
2740 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2741 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2745 if $ac_cache_corrupted; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2749 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2750 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2752 ## -------------------- ##
2753 ## Main body of script. ##
2754 ## -------------------- ##
2757 ac_cpp='$CPP $CPPFLAGS'
2758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2764 ac_config_headers="$ac_config_headers config.h"
2769 # Save this value here, since automake will set cflags later
2770 cflags_set=${CFLAGS+set}
2772 am__api_version='1.11'
2775 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2776 if test -f "$ac_dir/install-sh"; then
2778 ac_install_sh="$ac_aux_dir/install-sh -c"
2780 elif test -f "$ac_dir/install.sh"; then
2782 ac_install_sh="$ac_aux_dir/install.sh -c"
2784 elif test -f "$ac_dir/shtool"; then
2786 ac_install_sh="$ac_aux_dir/shtool install -c"
2790 if test -z "$ac_aux_dir"; then
2791 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2794 # These three variables are undocumented and unsupported,
2795 # and are intended to be withdrawn in a future Autoconf release.
2796 # They can cause serious problems if a builder's source tree is in a directory
2797 # whose full name contains unusual characters.
2798 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2799 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2800 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2803 # Find a good install program. We prefer a C program (faster),
2804 # so one script is as good as another. But avoid the broken or
2805 # incompatible versions:
2806 # SysV /etc/install, /usr/sbin/install
2807 # SunOS /usr/etc/install
2808 # IRIX /sbin/install
2810 # AmigaOS /C/install, which installs bootblocks on floppy discs
2811 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2812 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2813 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2814 # OS/2's system install, which has a completely different semantic
2815 # ./install, which can be erroneously created by make from ./install.sh.
2816 # Reject install programs that cannot install multiple files.
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2818 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2819 if test -z "$INSTALL"; then
2820 if ${ac_cv_path_install+:} false; then :
2821 $as_echo_n "(cached) " >&6
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 test -z "$as_dir" && as_dir=.
2828 # Account for people who put trailing slashes in PATH elements.
2829 case $as_dir/ in #((
2830 ./ | .// | /[cC]/* | \
2831 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2832 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2835 # OSF1 and SCO ODT 3.0 have their own names for install.
2836 # Don't use installbsd from OSF since it installs stuff as root
2838 for ac_prog in ginstall scoinst install; do
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2841 if test $ac_prog = install &&
2842 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2843 # AIX install. It has an incompatible calling convention.
2845 elif test $ac_prog = install &&
2846 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2847 # program-specific install script used by HP pwplus--don't use.
2850 rm -rf conftest.one conftest.two conftest.dir
2851 echo one > conftest.one
2852 echo two > conftest.two
2854 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2855 test -s conftest.one && test -s conftest.two &&
2856 test -s conftest.dir/conftest.one &&
2857 test -s conftest.dir/conftest.two
2859 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2872 rm -rf conftest.one conftest.two conftest.dir
2875 if test "${ac_cv_path_install+set}" = set; then
2876 INSTALL=$ac_cv_path_install
2878 # As a last resort, use the slow shell script. Don't cache a
2879 # value for INSTALL within a source directory, because that will
2880 # break other packages using the cache if that directory is
2881 # removed, or if the value is a relative name.
2882 INSTALL=$ac_install_sh
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2886 $as_echo "$INSTALL" >&6; }
2888 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2889 # It thinks the first close brace ends the variable substitution.
2890 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2892 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2894 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2897 $as_echo_n "checking whether build environment is sane... " >&6; }
2900 echo timestamp > conftest.file
2901 # Reject unsafe characters in $srcdir or the absolute working directory
2902 # name. Accept space and tab only in the latter.
2906 *[\\\"\#\$\&\'\`$am_lf]*)
2907 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2910 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2911 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2914 # Do `set' in a subshell so we don't clobber the current shell's
2915 # arguments. Must try -L first in case configure is actually a
2916 # symlink; some systems play weird games with the mod time of symlinks
2917 # (eg FreeBSD returns the mod time of the symlink's containing
2920 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2921 if test "$*" = "X"; then
2923 set X `ls -t "$srcdir/configure" conftest.file`
2926 if test "$*" != "X $srcdir/configure conftest.file" \
2927 && test "$*" != "X conftest.file $srcdir/configure"; then
2929 # If neither matched, then we have a broken ls. This can happen
2930 # if, for instance, CONFIG_SHELL is bash and it inherits a
2931 # broken ls alias from the environment. This has actually
2932 # happened. Such a system could not be considered "sane".
2933 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2934 alias in your environment" "$LINENO" 5
2937 test "$2" = conftest.file
2943 as_fn_error $? "newly created file is older than distributed files!
2944 Check your system clock" "$LINENO" 5
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2947 $as_echo "yes" >&6; }
2948 test "$program_prefix" != NONE &&
2949 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2950 # Use a double $ so make ignores it.
2951 test "$program_suffix" != NONE &&
2952 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2953 # Double any \ or $.
2954 # By default was `s,x,x', remove it if useless.
2955 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2956 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2958 # expand $ac_aux_dir to an absolute path
2959 am_aux_dir=`cd $ac_aux_dir && pwd`
2961 if test x"${MISSING+set}" != xset; then
2964 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2966 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2969 # Use eval to expand $SHELL
2970 if eval "$MISSING --run true"; then
2971 am_missing_run="$MISSING --run "
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2975 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2978 if test x"${install_sh}" != xset; then
2981 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2983 install_sh="\${SHELL} $am_aux_dir/install-sh"
2987 # Installed binaries are usually stripped using `strip' when the user
2988 # run `make install-strip'. However `strip' might not be the right
2989 # tool to use in cross-compilation environments, therefore Automake
2990 # will honor the `STRIP' environment variable to overrule this program.
2991 if test "$cross_compiling" != no; then
2992 if test -n "$ac_tool_prefix"; then
2993 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2994 set dummy ${ac_tool_prefix}strip; ac_word=$2
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if ${ac_cv_prog_STRIP+:} false; then :
2998 $as_echo_n "(cached) " >&6
3000 if test -n "$STRIP"; then
3001 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 test -z "$as_dir" && as_dir=.
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3010 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 STRIP=$ac_cv_prog_STRIP
3021 if test -n "$STRIP"; then
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3023 $as_echo "$STRIP" >&6; }
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 $as_echo "no" >&6; }
3031 if test -z "$ac_cv_prog_STRIP"; then
3033 # Extract the first word of "strip", so it can be a program name with args.
3034 set dummy strip; ac_word=$2
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036 $as_echo_n "checking for $ac_word... " >&6; }
3037 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3038 $as_echo_n "(cached) " >&6
3040 if test -n "$ac_ct_STRIP"; then
3041 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 test -z "$as_dir" && as_dir=.
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3050 ac_cv_prog_ac_ct_STRIP="strip"
3051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3061 if test -n "$ac_ct_STRIP"; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3063 $as_echo "$ac_ct_STRIP" >&6; }
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3069 if test "x$ac_ct_STRIP" = x; then
3072 case $cross_compiling:$ac_tool_warned in
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3076 ac_tool_warned=yes ;;
3081 STRIP="$ac_cv_prog_STRIP"
3085 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3088 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3089 if test -z "$MKDIR_P"; then
3090 if ${ac_cv_path_mkdir+:} false; then :
3091 $as_echo_n "(cached) " >&6
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3097 test -z "$as_dir" && as_dir=.
3098 for ac_prog in mkdir gmkdir; do
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3101 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3102 'mkdir (GNU coreutils) '* | \
3103 'mkdir (coreutils) '* | \
3104 'mkdir (fileutils) '4.1*)
3105 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3115 test -d ./--version && rmdir ./--version
3116 if test "${ac_cv_path_mkdir+set}" = set; then
3117 MKDIR_P="$ac_cv_path_mkdir -p"
3119 # As a last resort, use the slow shell script. Don't cache a
3120 # value for MKDIR_P within a source directory, because that will
3121 # break other packages using the cache if that directory is
3122 # removed, or if the value is a relative name.
3123 MKDIR_P="$ac_install_sh -d"
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3127 $as_echo "$MKDIR_P" >&6; }
3131 [\\/$]* | ?:[\\/]*) ;;
3132 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3135 for ac_prog in gawk mawk nawk awk
3137 # Extract the first word of "$ac_prog", so it can be a program name with args.
3138 set dummy $ac_prog; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_AWK+:} false; then :
3142 $as_echo_n "(cached) " >&6
3144 if test -n "$AWK"; then
3145 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154 ac_cv_prog_AWK="$ac_prog"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 if test -n "$AWK"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3167 $as_echo "$AWK" >&6; }
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3174 test -n "$AWK" && break
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3178 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3180 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3181 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3182 $as_echo_n "(cached) " >&6
3184 cat >conftest.make <<\_ACEOF
3187 @echo '@@@%%%=$(MAKE)=@@@%%%'
3189 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3190 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3192 eval ac_cv_prog_make_${ac_make}_set=yes;;
3194 eval ac_cv_prog_make_${ac_make}_set=no;;
3198 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3200 $as_echo "yes" >&6; }
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3205 SET_MAKE="MAKE=${MAKE-make}"
3208 rm -rf .tst 2>/dev/null
3209 mkdir .tst 2>/dev/null
3210 if test -d .tst; then
3215 rmdir .tst 2>/dev/null
3217 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3218 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3219 # is not polluted with repeated "-I."
3220 am__isrc=' -I$(srcdir)'
3221 # test to see if srcdir already configured
3222 if test -f $srcdir/config.status; then
3223 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3227 # test whether we have cygpath
3228 if test -z "$CYGPATH_W"; then
3229 if (cygpath --version) >/dev/null 2>/dev/null; then
3230 CYGPATH_W='cygpath -w'
3237 # Define the identity of the package.
3242 # Some tools Automake needs.
3244 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3247 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3250 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3253 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3256 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3258 # We need awk for the "check" target. The system "awk" is bad on
3260 # Always define AMTAR for backward compatibility.
3262 AMTAR=${AMTAR-"${am_missing_run}tar"}
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3266 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3267 # Loop over all known methods to create a tar archive until one works.
3268 _am_tools='gnutar plaintar pax cpio none'
3269 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3270 # Do not fold the above two line into one, because Tru64 sh and
3271 # Solaris sh will not grok spaces in the rhs of `-'.
3272 for _am_tool in $_am_tools
3276 for _am_tar in tar gnutar gtar;
3278 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3279 ($_am_tar --version) >&5 2>&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } && break
3284 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3285 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3286 am__untar="$_am_tar -xf -"
3289 # Must skip GNU tar: if it does not support --format= it doesn't create
3290 # ustar tarball either.
3291 (tar --version) >/dev/null 2>&1 && continue
3292 am__tar='tar chf - "$$tardir"'
3293 am__tar_='tar chf - "$tardir"'
3294 am__untar='tar xf -'
3297 am__tar='pax -L -x ustar -w "$$tardir"'
3298 am__tar_='pax -L -x ustar -w "$tardir"'
3302 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3303 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3304 am__untar='cpio -i -H ustar -d'
3313 # If the value was cached, stop now. We just wanted to have am__tar
3314 # and am__untar set.
3315 test -n "${am_cv_prog_tar_ustar}" && break
3317 # tar/untar a dummy directory, and stop if the command works
3320 echo GrepMe > conftest.dir/file
3321 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3322 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }
3327 if test -s conftest.tar; then
3328 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3329 ($am__untar <conftest.tar) >&5 2>&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }
3333 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3338 if ${am_cv_prog_tar_ustar+:} false; then :
3339 $as_echo_n "(cached) " >&6
3341 am_cv_prog_tar_ustar=$_am_tool
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3345 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable maintainer-specific portions of Makefiles" >&5
3353 $as_echo_n "checking whether to disable maintainer-specific portions of Makefiles... " >&6; }
3354 # Check whether --enable-maintainer-mode was given.
3355 if test "${enable_maintainer_mode+set}" = set; then :
3356 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3358 USE_MAINTAINER_MODE=yes
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3362 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3363 if test $USE_MAINTAINER_MODE = yes; then
3364 MAINTAINER_MODE_TRUE=
3365 MAINTAINER_MODE_FALSE='#'
3367 MAINTAINER_MODE_TRUE='#'
3368 MAINTAINER_MODE_FALSE=
3371 MAINT=$MAINTAINER_MODE_TRUE
3375 # Support silent build rules. Disable
3376 # by either passing --disable-silent-rules to configure or passing V=1
3378 # Check whether --enable-silent-rules was given.
3379 if test "${enable_silent_rules+set}" = set; then :
3380 enableval=$enable_silent_rules;
3383 case $enable_silent_rules in
3384 yes) AM_DEFAULT_VERBOSITY=0;;
3385 no) AM_DEFAULT_VERBOSITY=1;;
3386 *) AM_DEFAULT_VERBOSITY=0;;
3391 GLIB_MAJOR_VERSION=2
3392 GLIB_MINOR_VERSION=32
3393 GLIB_MICRO_VERSION=4
3394 GLIB_INTERFACE_AGE=4
3395 GLIB_BINARY_AGE=3204
3406 $as_echo "#define GLIB_MAJOR_VERSION 2" >>confdefs.h
3409 $as_echo "#define GLIB_MINOR_VERSION 32" >>confdefs.h
3412 $as_echo "#define GLIB_MICRO_VERSION 4" >>confdefs.h
3415 $as_echo "#define GLIB_INTERFACE_AGE 4" >>confdefs.h
3418 $as_echo "#define GLIB_BINARY_AGE 3204" >>confdefs.h
3421 # libtool versioning
3426 LT_CURRENT_MINUS_AGE=0
3434 ac_cpp='$CPP $CPPFLAGS'
3435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438 if test -n "$ac_tool_prefix"; then
3439 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3440 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3442 $as_echo_n "checking for $ac_word... " >&6; }
3443 if ${ac_cv_prog_CC+:} false; then :
3444 $as_echo_n "(cached) " >&6
3446 if test -n "$CC"; then
3447 ac_cv_prog_CC="$CC" # Let the user override the test.
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 test -z "$as_dir" && as_dir=.
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3456 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 if test -n "$CC"; then
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3469 $as_echo "$CC" >&6; }
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 $as_echo "no" >&6; }
3477 if test -z "$ac_cv_prog_CC"; then
3479 # Extract the first word of "gcc", so it can be a program name with args.
3480 set dummy gcc; ac_word=$2
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 $as_echo_n "checking for $ac_word... " >&6; }
3483 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3484 $as_echo_n "(cached) " >&6
3486 if test -n "$ac_ct_CC"; then
3487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 test -z "$as_dir" && as_dir=.
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496 ac_cv_prog_ac_ct_CC="gcc"
3497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3507 if test -n "$ac_ct_CC"; then
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3509 $as_echo "$ac_ct_CC" >&6; }
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3515 if test "x$ac_ct_CC" = x; then
3518 case $cross_compiling:$ac_tool_warned in
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3522 ac_tool_warned=yes ;;
3530 if test -z "$CC"; then
3531 if test -n "$ac_tool_prefix"; then
3532 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3533 set dummy ${ac_tool_prefix}cc; ac_word=$2
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535 $as_echo_n "checking for $ac_word... " >&6; }
3536 if ${ac_cv_prog_CC+:} false; then :
3537 $as_echo_n "(cached) " >&6
3539 if test -n "$CC"; then
3540 ac_cv_prog_CC="$CC" # Let the user override the test.
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3549 ac_cv_prog_CC="${ac_tool_prefix}cc"
3550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3560 if test -n "$CC"; then
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3562 $as_echo "$CC" >&6; }
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565 $as_echo "no" >&6; }
3571 if test -z "$CC"; then
3572 # Extract the first word of "cc", so it can be a program name with args.
3573 set dummy cc; ac_word=$2
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575 $as_echo_n "checking for $ac_word... " >&6; }
3576 if ${ac_cv_prog_CC+:} false; then :
3577 $as_echo_n "(cached) " >&6
3579 if test -n "$CC"; then
3580 ac_cv_prog_CC="$CC" # Let the user override the test.
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 test -z "$as_dir" && as_dir=.
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3590 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3591 ac_prog_rejected=yes
3595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 if test $ac_prog_rejected = yes; then
3603 # We found a bogon in the path, so make sure we never use it.
3604 set dummy $ac_cv_prog_CC
3606 if test $# != 0; then
3607 # We chose a different compiler from the bogus one.
3608 # However, it has the same basename, so the bogon will be chosen
3609 # first if we set CC to just the basename; use the full file name.
3611 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3617 if test -n "$CC"; then
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3619 $as_echo "$CC" >&6; }
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 $as_echo "no" >&6; }
3627 if test -z "$CC"; then
3628 if test -n "$ac_tool_prefix"; then
3629 for ac_prog in cl.exe
3631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 $as_echo_n "checking for $ac_word... " >&6; }
3635 if ${ac_cv_prog_CC+:} false; then :
3636 $as_echo_n "(cached) " >&6
3638 if test -n "$CC"; then
3639 ac_cv_prog_CC="$CC" # Let the user override the test.
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3648 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3659 if test -n "$CC"; then
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3661 $as_echo "$CC" >&6; }
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664 $as_echo "no" >&6; }
3668 test -n "$CC" && break
3671 if test -z "$CC"; then
3673 for ac_prog in cl.exe
3675 # Extract the first word of "$ac_prog", so it can be a program name with args.
3676 set dummy $ac_prog; ac_word=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3680 $as_echo_n "(cached) " >&6
3682 if test -n "$ac_ct_CC"; then
3683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 test -z "$as_dir" && as_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3692 ac_cv_prog_ac_ct_CC="$ac_prog"
3693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3703 if test -n "$ac_ct_CC"; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3705 $as_echo "$ac_ct_CC" >&6; }
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3712 test -n "$ac_ct_CC" && break
3715 if test "x$ac_ct_CC" = x; then
3718 case $cross_compiling:$ac_tool_warned in
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3722 ac_tool_warned=yes ;;
3731 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3733 as_fn_error $? "no acceptable C compiler found in \$PATH
3734 See \`config.log' for more details" "$LINENO" 5; }
3736 # Provide some information about the compiler.
3737 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3740 for ac_option in --version -v -V -qversion; do
3741 { { ac_try="$ac_compiler $ac_option >&5"
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3747 $as_echo "$ac_try_echo"; } >&5
3748 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3750 if test -s conftest.err; then
3752 ... rest of stderr output deleted ...
3753 10q' conftest.err >conftest.er1
3754 cat conftest.er1 >&5
3756 rm -f conftest.er1 conftest.err
3757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3758 test $ac_status = 0; }
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3772 ac_clean_files_save=$ac_clean_files
3773 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3774 # Try to create an executable without -o first, disregard a.out.
3775 # It will help us diagnose broken compilers, and finding out an intuition
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3778 $as_echo_n "checking whether the C compiler works... " >&6; }
3779 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3781 # The possible output files:
3782 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3785 for ac_file in $ac_files
3788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3789 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3794 if { { ac_try="$ac_link_default"
3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3800 $as_echo "$ac_try_echo"; } >&5
3801 (eval "$ac_link_default") 2>&5
3803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3804 test $ac_status = 0; }; then :
3805 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3806 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3807 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3808 # so that the user can short-circuit this test for compilers unknown to
3810 for ac_file in $ac_files ''
3812 test -f "$ac_file" || continue
3814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3817 # We found the default executable, but exeext='' is most
3821 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3823 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3825 # We set ac_cv_exeext here because the later test for it is not
3826 # safe: cross compilers may not add the suffix if given an `-o'
3827 # argument, so we may need to know it at that point already.
3828 # Even if this section looks crufty: it has the advantage of
3835 test "$ac_cv_exeext" = no && ac_cv_exeext=
3840 if test -z "$ac_file"; then :
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3842 $as_echo "no" >&6; }
3843 $as_echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3848 as_fn_error 77 "C compiler cannot create executables
3849 See \`config.log' for more details" "$LINENO" 5; }
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3852 $as_echo "yes" >&6; }
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3855 $as_echo_n "checking for C compiler default output file name... " >&6; }
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3857 $as_echo "$ac_file" >&6; }
3858 ac_exeext=$ac_cv_exeext
3860 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3861 ac_clean_files=$ac_clean_files_save
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3863 $as_echo_n "checking for suffix of executables... " >&6; }
3864 if { { ac_try="$ac_link"
3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3870 $as_echo "$ac_try_echo"; } >&5
3871 (eval "$ac_link") 2>&5
3873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3874 test $ac_status = 0; }; then :
3875 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3876 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3877 # work properly (i.e., refer to `conftest.exe'), while it won't with
3879 for ac_file in conftest.exe conftest conftest.*; do
3880 test -f "$ac_file" || continue
3882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3883 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3891 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3892 See \`config.log' for more details" "$LINENO" 5; }
3894 rm -f conftest conftest$ac_cv_exeext
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3896 $as_echo "$ac_cv_exeext" >&6; }
3898 rm -f conftest.$ac_ext
3899 EXEEXT=$ac_cv_exeext
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3907 FILE *f = fopen ("conftest.out", "w");
3908 return ferror (f) || fclose (f) != 0;
3914 ac_clean_files="$ac_clean_files conftest.out"
3915 # Check that the compiler produces executables we can run. If not, either
3916 # the compiler is broken, or we cross compile.
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3918 $as_echo_n "checking whether we are cross compiling... " >&6; }
3919 if test "$cross_compiling" != yes; then
3920 { { ac_try="$ac_link"
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3926 $as_echo "$ac_try_echo"; } >&5
3927 (eval "$ac_link") 2>&5
3929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3930 test $ac_status = 0; }
3931 if { ac_try='./conftest$ac_cv_exeext'
3932 { { case "(($ac_try" in
3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934 *) ac_try_echo=$ac_try;;
3936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3937 $as_echo "$ac_try_echo"; } >&5
3938 (eval "$ac_try") 2>&5
3940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3941 test $ac_status = 0; }; }; then
3944 if test "$cross_compiling" = maybe; then
3947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3949 as_fn_error $? "cannot run C compiled programs.
3950 If you meant to cross compile, use \`--host'.
3951 See \`config.log' for more details" "$LINENO" 5; }
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3956 $as_echo "$cross_compiling" >&6; }
3958 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3959 ac_clean_files=$ac_clean_files_save
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3961 $as_echo_n "checking for suffix of object files... " >&6; }
3962 if ${ac_cv_objext+:} false; then :
3963 $as_echo_n "(cached) " >&6
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3976 rm -f conftest.o conftest.obj
3977 if { { ac_try="$ac_compile"
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3983 $as_echo "$ac_try_echo"; } >&5
3984 (eval "$ac_compile") 2>&5
3986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3987 test $ac_status = 0; }; then :
3988 for ac_file in conftest.o conftest.obj conftest.*; do
3989 test -f "$ac_file" || continue;
3991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3992 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3997 $as_echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
4000 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4002 as_fn_error $? "cannot compute suffix of object files: cannot compile
4003 See \`config.log' for more details" "$LINENO" 5; }
4005 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4008 $as_echo "$ac_cv_objext" >&6; }
4009 OBJEXT=$ac_cv_objext
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4012 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4013 if ${ac_cv_c_compiler_gnu+:} false; then :
4014 $as_echo_n "(cached) " >&6
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4030 if ac_fn_c_try_compile "$LINENO"; then :
4035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4040 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4041 if test $ac_compiler_gnu = yes; then
4046 ac_test_CFLAGS=${CFLAGS+set}
4047 ac_save_CFLAGS=$CFLAGS
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4049 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4050 if ${ac_cv_prog_cc_g+:} false; then :
4051 $as_echo_n "(cached) " >&6
4053 ac_save_c_werror_flag=$ac_c_werror_flag
4054 ac_c_werror_flag=yes
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4068 if ac_fn_c_try_compile "$LINENO"; then :
4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h. */
4083 if ac_fn_c_try_compile "$LINENO"; then :
4086 ac_c_werror_flag=$ac_save_c_werror_flag
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4099 if ac_fn_c_try_compile "$LINENO"; then :
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107 ac_c_werror_flag=$ac_save_c_werror_flag
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4110 $as_echo "$ac_cv_prog_cc_g" >&6; }
4111 if test "$ac_test_CFLAGS" = set; then
4112 CFLAGS=$ac_save_CFLAGS
4113 elif test $ac_cv_prog_cc_g = yes; then
4114 if test "$GCC" = yes; then
4120 if test "$GCC" = yes; then
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4127 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4128 if ${ac_cv_prog_cc_c89+:} false; then :
4129 $as_echo_n "(cached) " >&6
4131 ac_cv_prog_cc_c89=no
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4137 #include <sys/types.h>
4138 #include <sys/stat.h>
4139 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4140 struct buf { int x; };
4141 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4142 static char *e (p, i)
4148 static char *f (char * (*g) (char **, int), char **p, ...)
4153 s = g (p, va_arg (v,int));
4158 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4159 function prototypes and stuff, but not '\xHH' hex character constants.
4160 These don't provoke an error unfortunately, instead are silently treated
4161 as 'x'. The following induces an error, until -std is added to get
4162 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4163 array size at least. It's necessary to write '\x00'==0 to get something
4164 that's true only with -std. */
4165 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4167 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4168 inside strings and character constants. */
4170 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4172 int test (int i, double x);
4173 struct s1 {int (*f) (int a);};
4174 struct s2 {int (*f) (double a);};
4175 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4181 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4186 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4187 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4189 CC="$ac_save_CC $ac_arg"
4190 if ac_fn_c_try_compile "$LINENO"; then :
4191 ac_cv_prog_cc_c89=$ac_arg
4193 rm -f core conftest.err conftest.$ac_objext
4194 test "x$ac_cv_prog_cc_c89" != "xno" && break
4196 rm -f conftest.$ac_ext
4201 case "x$ac_cv_prog_cc_c89" in
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4204 $as_echo "none needed" >&6; } ;;
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4207 $as_echo "unsupported" >&6; } ;;
4209 CC="$CC $ac_cv_prog_cc_c89"
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4211 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4213 if test "x$ac_cv_prog_cc_c89" != xno; then :
4218 ac_cpp='$CPP $CPPFLAGS'
4219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4222 DEPDIR="${am__leading_dot}deps"
4224 ac_config_commands="$ac_config_commands depfiles"
4227 am_make=${MAKE-make}
4228 cat > confinc << 'END'
4230 @echo this is the am__doit target
4233 # If we don't find an include directive, just comment out the code.
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4235 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4239 # First try GNU make style include.
4240 echo "include confinc" > confmf
4241 # Ignore all kinds of additional output from `make'.
4242 case `$am_make -s -f confmf 2> /dev/null` in #(
4243 *the\ am__doit\ target*)
4249 # Now try BSD make style include.
4250 if test "$am__include" = "#"; then
4251 echo '.include "confinc"' > confmf
4252 case `$am_make -s -f confmf 2> /dev/null` in #(
4253 *the\ am__doit\ target*)
4254 am__include=.include
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4263 $as_echo "$_am_result" >&6; }
4264 rm -f confinc confmf
4266 # Check whether --enable-dependency-tracking was given.
4267 if test "${enable_dependency_tracking+set}" = set; then :
4268 enableval=$enable_dependency_tracking;
4271 if test "x$enable_dependency_tracking" != xno; then
4272 am_depcomp="$ac_aux_dir/depcomp"
4275 if test "x$enable_dependency_tracking" != xno; then
4285 depcc="$CC" am_compiler_list=
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4288 $as_echo_n "checking dependency style of $depcc... " >&6; }
4289 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4290 $as_echo_n "(cached) " >&6
4292 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4293 # We make a subdir and do the tests there. Otherwise we can end up
4294 # making bogus files that we don't know about and never remove. For
4295 # instance it was reported that on HP-UX the gcc test will end up
4296 # making a dummy file named `D' -- because `-MD' means `put the output
4299 # Copy depcomp to subdir because otherwise we won't find it if we're
4300 # using a relative directory.
4301 cp "$am_depcomp" conftest.dir
4303 # We will build objects and dependencies in a subdirectory because
4304 # it helps to detect inapplicable dependency modes. For instance
4305 # both Tru64's cc and ICC support -MD to output dependencies as a
4306 # side effect of compilation, but ICC will put the dependencies in
4307 # the current directory while Tru64 will put them in the object
4311 am_cv_CC_dependencies_compiler_type=none
4312 if test "$am_compiler_list" = ""; then
4313 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4316 case " $depcc " in #(
4317 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4320 for depmode in $am_compiler_list; do
4321 # Setup a source with many dependencies, because some compilers
4322 # like to wrap large dependency lists on column 80 (with \), and
4323 # we should not choose a depcomp mode which is confused by this.
4325 # We need to recreate these files for each test, as the compiler may
4326 # overwrite some of them when testing with obscure command lines.
4327 # This happens at least with the AIX C compiler.
4329 for i in 1 2 3 4 5 6; do
4330 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4331 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4332 # Solaris 8's {/usr,}/bin/sh.
4333 touch sub/conftst$i.h
4335 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4337 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4338 # mode. It turns out that the SunPro C++ compiler does not properly
4339 # handle `-M -o', and we need to detect this. Also, some Intel
4340 # versions had trouble with output in subdirs
4341 am__obj=sub/conftest.${OBJEXT-o}
4342 am__minus_obj="-o $am__obj"
4345 # This depmode causes a compiler race in universal mode.
4346 test "$am__universal" = false || continue
4349 # after this tag, mechanisms are not by side-effect, so they'll
4350 # only be used when explicitly requested
4351 if test "x$enable_dependency_tracking" = xyes; then
4357 msvisualcpp | msvcmsys)
4358 # This compiler won't grok `-c -o', but also, the minuso test has
4359 # not run yet. These depmodes are late enough in the game, and
4360 # so weak that their functioning should not be impacted.
4361 am__obj=conftest.${OBJEXT-o}
4366 if depmode=$depmode \
4367 source=sub/conftest.c object=$am__obj \
4368 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4369 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4370 >/dev/null 2>conftest.err &&
4371 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4372 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4373 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4374 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4375 # icc doesn't choke on unknown options, it will just issue warnings
4376 # or remarks (even with -Werror). So we grep stderr for any message
4377 # that says an option was ignored or not supported.
4378 # When given -MP, icc 7.0 and 7.1 complain thusly:
4379 # icc: Command line warning: ignoring option '-M'; no argument required
4380 # The diagnosis changed in icc 8.0:
4381 # icc: Command line remark: option '-MP' not supported
4382 if (grep 'ignoring option' conftest.err ||
4383 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4384 am_cv_CC_dependencies_compiler_type=$depmode
4393 am_cv_CC_dependencies_compiler_type=none
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4398 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4399 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4402 test "x$enable_dependency_tracking" != xno \
4403 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4405 am__fastdepCC_FALSE='#'
4407 am__fastdepCC_TRUE='#'
4408 am__fastdepCC_FALSE=
4413 ac_cpp='$CPP $CPPFLAGS'
4414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4418 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4419 # On Suns, sometimes $CPP names a directory.
4420 if test -n "$CPP" && test -d "$CPP"; then
4423 if test -z "$CPP"; then
4424 if ${ac_cv_prog_CPP+:} false; then :
4425 $as_echo_n "(cached) " >&6
4427 # Double quotes because CPP needs to be expanded
4428 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4431 for ac_c_preproc_warn_flag in '' yes
4433 # Use a header file that comes with gcc, so configuring glibc
4434 # with a fresh cross-compiler works.
4435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4436 # <limits.h> exists even on freestanding compilers.
4437 # On the NeXT, cc -E runs the code through the compiler's parser,
4438 # not just through cpp. "Syntax error" is here to catch this case.
4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h. */
4442 # include <limits.h>
4444 # include <assert.h>
4448 if ac_fn_c_try_cpp "$LINENO"; then :
4451 # Broken: fails on valid input.
4454 rm -f conftest.err conftest.i conftest.$ac_ext
4456 # OK, works on sane cases. Now check whether nonexistent headers
4457 # can be detected and how.
4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459 /* end confdefs.h. */
4460 #include <ac_nonexistent.h>
4462 if ac_fn_c_try_cpp "$LINENO"; then :
4463 # Broken: success on invalid input.
4466 # Passes both tests.
4470 rm -f conftest.err conftest.i conftest.$ac_ext
4473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4474 rm -f conftest.i conftest.err conftest.$ac_ext
4475 if $ac_preproc_ok; then :
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4488 $as_echo "$CPP" >&6; }
4490 for ac_c_preproc_warn_flag in '' yes
4492 # Use a header file that comes with gcc, so configuring glibc
4493 # with a fresh cross-compiler works.
4494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4495 # <limits.h> exists even on freestanding compilers.
4496 # On the NeXT, cc -E runs the code through the compiler's parser,
4497 # not just through cpp. "Syntax error" is here to catch this case.
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4501 # include <limits.h>
4503 # include <assert.h>
4507 if ac_fn_c_try_cpp "$LINENO"; then :
4510 # Broken: fails on valid input.
4513 rm -f conftest.err conftest.i conftest.$ac_ext
4515 # OK, works on sane cases. Now check whether nonexistent headers
4516 # can be detected and how.
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4519 #include <ac_nonexistent.h>
4521 if ac_fn_c_try_cpp "$LINENO"; then :
4522 # Broken: success on invalid input.
4525 # Passes both tests.
4529 rm -f conftest.err conftest.i conftest.$ac_ext
4532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4533 rm -f conftest.i conftest.err conftest.$ac_ext
4534 if $ac_preproc_ok; then :
4537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4539 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4540 See \`config.log' for more details" "$LINENO" 5; }
4544 ac_cpp='$CPP $CPPFLAGS'
4545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4550 if test "$GCC" = "yes"; then
4559 # Make sure we can run config.sub.
4560 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4561 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4564 $as_echo_n "checking build system type... " >&6; }
4565 if ${ac_cv_build+:} false; then :
4566 $as_echo_n "(cached) " >&6
4568 ac_build_alias=$build_alias
4569 test "x$ac_build_alias" = x &&
4570 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4571 test "x$ac_build_alias" = x &&
4572 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4573 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4574 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4578 $as_echo "$ac_cv_build" >&6; }
4579 case $ac_cv_build in
4581 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4584 ac_save_IFS=$IFS; IFS='-'
4590 # Remember, the first character of IFS is used to create $*,
4591 # except with old shells:
4594 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4598 $as_echo_n "checking host system type... " >&6; }
4599 if ${ac_cv_host+:} false; then :
4600 $as_echo_n "(cached) " >&6
4602 if test "x$host_alias" = x; then
4603 ac_cv_host=$ac_cv_build
4605 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4606 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4611 $as_echo "$ac_cv_host" >&6; }
4614 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4617 ac_save_IFS=$IFS; IFS='-'
4623 # Remember, the first character of IFS is used to create $*,
4624 # except with old shells:
4627 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the BeOS" >&5
4632 $as_echo_n "checking for the BeOS... " >&6; }
4635 glib_native_beos="yes"
4638 glib_native_beos="no"
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_native_beos" >&5
4642 $as_echo "$glib_native_beos" >&6; }
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32" >&5
4646 $as_echo_n "checking for Win32... " >&6; }
4647 LIB_EXE_MACHINE_FLAG=X86
4650 glib_native_win32=yes
4651 glib_pid_type='void *'
4652 glib_cv_stack_grows=no
4653 # Unfortunately the mingw implementations of C99-style snprintf and vsnprintf
4654 # don't seem to be quite good enough, at least not in mingw-runtime-3.14.
4655 # (Sorry, I don't know exactly what is the problem, but it is related to
4656 # floating point formatting and decimal point vs. comma.)
4657 # The simple tests in AC_FUNC_VSNPRINTF_C99 and AC_FUNC_SNPRINTF_C99 aren't
4658 # rigorous enough to notice, though.
4659 # So preset the autoconf cache variables.
4660 ac_cv_func_vsnprintf_c99=no
4661 ac_cv_func_snprintf_c99=no
4664 LIB_EXE_MACHINE_FLAG=X64
4669 glib_native_win32=no
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_native_win32" >&5
4680 $as_echo "$glib_native_win32" >&6; }
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X Carbon support" >&5
4686 $as_echo_n "checking for Mac OS X Carbon support... " >&6; }
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4692 #include <Carbon/Carbon.h>
4693 #include <CoreServices/CoreServices.h>
4696 if ac_fn_c_try_cpp "$LINENO"; then :
4697 glib_have_carbon=yes
4699 rm -f conftest.err conftest.i conftest.$ac_ext
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_have_carbon" >&5
4702 $as_echo "$glib_have_carbon" >&6; }
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X Cocoa support" >&5
4706 $as_echo_n "checking for Mac OS X Cocoa support... " >&6; }
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4710 #include <Cocoa/Cocoa.h>
4711 #ifdef GNUSTEP_BASE_VERSION
4712 #error "Detected GNUstep, not Cocoa"
4716 if ac_fn_c_try_cpp "$LINENO"; then :
4719 rm -f conftest.err conftest.i conftest.$ac_ext
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_have_cocoa" >&5
4722 $as_echo "$glib_have_cocoa" >&6; }
4724 if test "$glib_native_win32" = "yes"; then
4732 if test "$LIB_EXE_MACHINE_FLAG" = "X64"; then
4734 OS_WIN32_X64_FALSE='#'
4736 OS_WIN32_X64_TRUE='#'
4740 if test "$glib_native_win32" != "yes"; then
4748 if test "$glib_os_linux" = "yes"; then
4756 if test "$glib_have_carbon" = "yes"; then
4764 if test "$glib_have_cocoa" = "yes"; then
4773 if test "$glib_native_win32" = "yes"; then
4774 if test -n "$ac_tool_prefix"; then
4775 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4776 set dummy ${ac_tool_prefix}windres; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if ${ac_cv_prog_WINDRES+:} false; then :
4780 $as_echo_n "(cached) " >&6
4782 if test -n "$WINDRES"; then
4783 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 WINDRES=$ac_cv_prog_WINDRES
4803 if test -n "$WINDRES"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
4805 $as_echo "$WINDRES" >&6; }
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4813 if test -z "$ac_cv_prog_WINDRES"; then
4814 ac_ct_WINDRES=$WINDRES
4815 # Extract the first word of "windres", so it can be a program name with args.
4816 set dummy windres; ac_word=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
4820 $as_echo_n "(cached) " >&6
4822 if test -n "$ac_ct_WINDRES"; then
4823 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_ac_ct_WINDRES="windres"
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4843 if test -n "$ac_ct_WINDRES"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
4845 $as_echo "$ac_ct_WINDRES" >&6; }
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4851 if test "x$ac_ct_WINDRES" = x; then
4854 case $cross_compiling:$ac_tool_warned in
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4858 ac_tool_warned=yes ;;
4860 WINDRES=$ac_ct_WINDRES
4863 WINDRES="$ac_cv_prog_WINDRES"
4866 if test "$WINDRES" = no; then
4867 as_fn_error $? "*** Could not find an implementation of windres in your PATH." "$LINENO" 5
4869 if test -n "$ac_tool_prefix"; then
4870 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4871 set dummy ${ac_tool_prefix}nm; ac_word=$2
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4873 $as_echo_n "checking for $ac_word... " >&6; }
4874 if ${ac_cv_prog_NM+:} false; then :
4875 $as_echo_n "(cached) " >&6
4877 if test -n "$NM"; then
4878 ac_cv_prog_NM="$NM" # Let the user override the test.
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4887 ac_cv_prog_NM="${ac_tool_prefix}nm"
4888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4898 if test -n "$NM"; then
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
4900 $as_echo "$NM" >&6; }
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903 $as_echo "no" >&6; }
4908 if test -z "$ac_cv_prog_NM"; then
4910 # Extract the first word of "nm", so it can be a program name with args.
4911 set dummy nm; ac_word=$2
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913 $as_echo_n "checking for $ac_word... " >&6; }
4914 if ${ac_cv_prog_ac_ct_NM+:} false; then :
4915 $as_echo_n "(cached) " >&6
4917 if test -n "$ac_ct_NM"; then
4918 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4927 ac_cv_prog_ac_ct_NM="nm"
4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4938 if test -n "$ac_ct_NM"; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
4940 $as_echo "$ac_ct_NM" >&6; }
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4946 if test "x$ac_ct_NM" = x; then
4949 case $cross_compiling:$ac_tool_warned in
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4953 ac_tool_warned=yes ;;
4961 if test "$NM" = no; then
4962 as_fn_error $? "*** Could not find an implementation of nm in your PATH." "$LINENO" 5
4964 if test -n "$ac_tool_prefix"; then
4965 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4966 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968 $as_echo_n "checking for $ac_word... " >&6; }
4969 if ${ac_cv_prog_RANLIB+:} false; then :
4970 $as_echo_n "(cached) " >&6
4972 if test -n "$RANLIB"; then
4973 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 RANLIB=$ac_cv_prog_RANLIB
4993 if test -n "$RANLIB"; then
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4995 $as_echo "$RANLIB" >&6; }
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998 $as_echo "no" >&6; }
5003 if test -z "$ac_cv_prog_RANLIB"; then
5004 ac_ct_RANLIB=$RANLIB
5005 # Extract the first word of "ranlib", so it can be a program name with args.
5006 set dummy ranlib; ac_word=$2
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008 $as_echo_n "checking for $ac_word... " >&6; }
5009 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5010 $as_echo_n "(cached) " >&6
5012 if test -n "$ac_ct_RANLIB"; then
5013 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 test -z "$as_dir" && as_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022 ac_cv_prog_ac_ct_RANLIB="ranlib"
5023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5033 if test -n "$ac_ct_RANLIB"; then
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5035 $as_echo "$ac_ct_RANLIB" >&6; }
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5041 if test "x$ac_ct_RANLIB" = x; then
5044 case $cross_compiling:$ac_tool_warned in
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5048 ac_tool_warned=yes ;;
5050 RANLIB=$ac_ct_RANLIB
5053 RANLIB="$ac_cv_prog_RANLIB"
5056 # Extract the first word of "lib.exe", so it can be a program name with args.
5057 set dummy lib.exe; ac_word=$2
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059 $as_echo_n "checking for $ac_word... " >&6; }
5060 if ${ac_cv_prog_ms_librarian+:} false; then :
5061 $as_echo_n "(cached) " >&6
5063 if test -n "$ms_librarian"; then
5064 ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5073 ac_cv_prog_ms_librarian="yes"
5074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
5084 ms_librarian=$ac_cv_prog_ms_librarian
5085 if test -n "$ms_librarian"; then
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
5087 $as_echo "$ms_librarian" >&6; }
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090 $as_echo "no" >&6; }
5095 if test x$ms_librarian = xyes; then
5096 MS_LIB_AVAILABLE_TRUE=
5097 MS_LIB_AVAILABLE_FALSE='#'
5099 MS_LIB_AVAILABLE_TRUE='#'
5100 MS_LIB_AVAILABLE_FALSE=
5104 if test "$glib_native_win32" != yes; then
5105 # libtool option to control which symbols are exported
5106 # right now, symbols starting with _ are not exported
5107 LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^g.*"'
5109 # We currently use .def files on Windows
5110 LIBTOOL_EXPORT_OPTIONS=
5114 if test "x$glib_have_carbon" = "xyes"; then
5116 $as_echo "#define HAVE_CARBON 1" >>confdefs.h
5118 LDFLAGS="$LDFLAGS -framework Carbon"
5121 if test "x$glib_have_cocoa" = "xyes"; then
5123 $as_echo "#define HAVE_COCOA 1" >>confdefs.h
5125 LDFLAGS="$LDFLAGS -framework Foundation"
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5129 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5130 if ${ac_cv_path_GREP+:} false; then :
5131 $as_echo_n "(cached) " >&6
5133 if test -z "$GREP"; then
5134 ac_path_GREP_found=false
5135 # Loop through the user's path and test for each of PROGNAME-LIST
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5140 test -z "$as_dir" && as_dir=.
5141 for ac_prog in grep ggrep; do
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5144 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5145 # Check for GNU ac_path_GREP and select it if it is found.
5146 # Check for GNU $ac_path_GREP
5147 case `"$ac_path_GREP" --version 2>&1` in
5149 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5152 $as_echo_n 0123456789 >"conftest.in"
5155 cat "conftest.in" "conftest.in" >"conftest.tmp"
5156 mv "conftest.tmp" "conftest.in"
5157 cp "conftest.in" "conftest.nl"
5158 $as_echo 'GREP' >> "conftest.nl"
5159 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5160 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5161 as_fn_arith $ac_count + 1 && ac_count=$as_val
5162 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5163 # Best one so far, save it but keep looking for a better one
5164 ac_cv_path_GREP="$ac_path_GREP"
5165 ac_path_GREP_max=$ac_count
5167 # 10*(2^10) chars as input seems more than enough
5168 test $ac_count -gt 10 && break
5170 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5173 $ac_path_GREP_found && break 3
5178 if test -z "$ac_cv_path_GREP"; then
5179 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5182 ac_cv_path_GREP=$GREP
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5187 $as_echo "$ac_cv_path_GREP" >&6; }
5188 GREP="$ac_cv_path_GREP"
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5192 $as_echo_n "checking for egrep... " >&6; }
5193 if ${ac_cv_path_EGREP+:} false; then :
5194 $as_echo_n "(cached) " >&6
5196 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5197 then ac_cv_path_EGREP="$GREP -E"
5199 if test -z "$EGREP"; then
5200 ac_path_EGREP_found=false
5201 # Loop through the user's path and test for each of PROGNAME-LIST
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5206 test -z "$as_dir" && as_dir=.
5207 for ac_prog in egrep; do
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5210 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5211 # Check for GNU ac_path_EGREP and select it if it is found.
5212 # Check for GNU $ac_path_EGREP
5213 case `"$ac_path_EGREP" --version 2>&1` in
5215 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5218 $as_echo_n 0123456789 >"conftest.in"
5221 cat "conftest.in" "conftest.in" >"conftest.tmp"
5222 mv "conftest.tmp" "conftest.in"
5223 cp "conftest.in" "conftest.nl"
5224 $as_echo 'EGREP' >> "conftest.nl"
5225 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5226 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5227 as_fn_arith $ac_count + 1 && ac_count=$as_val
5228 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5229 # Best one so far, save it but keep looking for a better one
5230 ac_cv_path_EGREP="$ac_path_EGREP"
5231 ac_path_EGREP_max=$ac_count
5233 # 10*(2^10) chars as input seems more than enough
5234 test $ac_count -gt 10 && break
5236 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5239 $ac_path_EGREP_found && break 3
5244 if test -z "$ac_cv_path_EGREP"; then
5245 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5248 ac_cv_path_EGREP=$EGREP
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5254 $as_echo "$ac_cv_path_EGREP" >&6; }
5255 EGREP="$ac_cv_path_EGREP"
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
5260 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
5261 if ${ac_cv_gnu_library_2_1+:} false; then :
5262 $as_echo_n "(cached) " >&6
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5267 #include <features.h>
5268 #ifdef __GNU_LIBRARY__
5269 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5276 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
5277 ac_cv_gnu_library_2_1=yes
5279 ac_cv_gnu_library_2_1=no
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
5287 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
5289 GLIBC21="$ac_cv_gnu_library_2_1"
5292 if test "x$GLIBC21" = "xyes"; then
5294 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5298 # Check whether --enable-debug was given.
5299 if test "${enable_debug+set}" = set; then :
5300 enableval=$enable_debug;
5302 enable_debug=minimum
5306 # Check whether --enable-gc_friendly was given.
5307 if test "${enable_gc_friendly+set}" = set; then :
5308 enableval=$enable_gc_friendly;
5310 enable_gc_friendly=no
5313 # Check whether --enable-mem_pools was given.
5314 if test "${enable_mem_pools+set}" = set; then :
5315 enableval=$enable_mem_pools;
5317 disable_mem_pools=no
5320 # Check whether --enable-rebuilds was given.
5321 if test "${enable_rebuilds+set}" = set; then :
5322 enableval=$enable_rebuilds;
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable garbage collector friendliness" >&5
5329 $as_echo_n "checking whether to enable garbage collector friendliness... " >&6; }
5330 if test "x$enable_gc_friendly" = "xyes"; then
5332 $as_echo "#define ENABLE_GC_FRIENDLY_DEFAULT 1" >>confdefs.h
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5335 $as_echo "yes" >&6; }
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable memory pools" >&5
5342 $as_echo_n "checking whether to disable memory pools... " >&6; }
5343 if test "x$disable_mem_pools" = "xno"; then
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5348 $as_echo "#define DISABLE_MEM_POOLS 1" >>confdefs.h
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351 $as_echo "yes" >&6; }
5355 # Check whether --with-runtime-libdir was given.
5356 if test "${with_runtime_libdir+set}" = set; then :
5357 withval=$with_runtime_libdir;
5359 with_runtime_libdir=""
5362 GLIB_RUNTIME_LIBDIR="$with_runtime_libdir"
5363 ABS_GLIB_RUNTIME_LIBDIR="`readlink -f $libdir/$with_runtime_libdir`"
5366 if test "x$with_runtime_libdir" != "x"; then
5367 HAVE_GLIB_RUNTIME_LIBDIR_TRUE=
5368 HAVE_GLIB_RUNTIME_LIBDIR_FALSE='#'
5370 HAVE_GLIB_RUNTIME_LIBDIR_TRUE='#'
5371 HAVE_GLIB_RUNTIME_LIBDIR_FALSE=
5375 if test -n "$ac_tool_prefix"; then
5376 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5378 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5379 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5381 $as_echo_n "checking for $ac_word... " >&6; }
5382 if ${ac_cv_prog_CXX+:} false; then :
5383 $as_echo_n "(cached) " >&6
5385 if test -n "$CXX"; then
5386 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 test -z "$as_dir" && as_dir=.
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5395 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 if test -n "$CXX"; then
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5408 $as_echo "$CXX" >&6; }
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 $as_echo "no" >&6; }
5415 test -n "$CXX" && break
5418 if test -z "$CXX"; then
5420 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5422 # Extract the first word of "$ac_prog", so it can be a program name with args.
5423 set dummy $ac_prog; ac_word=$2
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5425 $as_echo_n "checking for $ac_word... " >&6; }
5426 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5427 $as_echo_n "(cached) " >&6
5429 if test -n "$ac_ct_CXX"; then
5430 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436 test -z "$as_dir" && as_dir=.
5437 for ac_exec_ext in '' $ac_executable_extensions; do
5438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5439 ac_cv_prog_ac_ct_CXX="$ac_prog"
5440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5449 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5450 if test -n "$ac_ct_CXX"; then
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5452 $as_echo "$ac_ct_CXX" >&6; }
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455 $as_echo "no" >&6; }
5459 test -n "$ac_ct_CXX" && break
5462 if test "x$ac_ct_CXX" = x; then
5465 case $cross_compiling:$ac_tool_warned in
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5469 ac_tool_warned=yes ;;
5477 ac_cpp='$CXXCPP $CPPFLAGS'
5478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5483 ac_cpp='$CXXCPP $CPPFLAGS'
5484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5487 if test -z "$CXX"; then
5488 if test -n "$CCC"; then
5491 if test -n "$ac_tool_prefix"; then
5492 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5495 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if ${ac_cv_prog_CXX+:} false; then :
5499 $as_echo_n "(cached) " >&6
5501 if test -n "$CXX"; then
5502 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5511 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 if test -n "$CXX"; then
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5524 $as_echo "$CXX" >&6; }
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527 $as_echo "no" >&6; }
5531 test -n "$CXX" && break
5534 if test -z "$CXX"; then
5536 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5538 # Extract the first word of "$ac_prog", so it can be a program name with args.
5539 set dummy $ac_prog; ac_word=$2
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541 $as_echo_n "checking for $ac_word... " >&6; }
5542 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5543 $as_echo_n "(cached) " >&6
5545 if test -n "$ac_ct_CXX"; then
5546 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 test -z "$as_dir" && as_dir=.
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555 ac_cv_prog_ac_ct_CXX="$ac_prog"
5556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5566 if test -n "$ac_ct_CXX"; then
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5568 $as_echo "$ac_ct_CXX" >&6; }
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5575 test -n "$ac_ct_CXX" && break
5578 if test "x$ac_ct_CXX" = x; then
5581 case $cross_compiling:$ac_tool_warned in
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5585 ac_tool_warned=yes ;;
5593 # Provide some information about the compiler.
5594 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5597 for ac_option in --version -v -V -qversion; do
5598 { { ac_try="$ac_compiler $ac_option >&5"
5600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601 *) ac_try_echo=$ac_try;;
5603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5604 $as_echo "$ac_try_echo"; } >&5
5605 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5607 if test -s conftest.err; then
5609 ... rest of stderr output deleted ...
5610 10q' conftest.err >conftest.er1
5611 cat conftest.er1 >&5
5613 rm -f conftest.er1 conftest.err
5614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5615 test $ac_status = 0; }
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5619 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5620 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5621 $as_echo_n "(cached) " >&6
5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5637 if ac_fn_cxx_try_compile "$LINENO"; then :
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5647 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5648 if test $ac_compiler_gnu = yes; then
5653 ac_test_CXXFLAGS=${CXXFLAGS+set}
5654 ac_save_CXXFLAGS=$CXXFLAGS
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5656 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5657 if ${ac_cv_prog_cxx_g+:} false; then :
5658 $as_echo_n "(cached) " >&6
5660 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5661 ac_cxx_werror_flag=yes
5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5675 if ac_fn_cxx_try_compile "$LINENO"; then :
5676 ac_cv_prog_cxx_g=yes
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5690 if ac_fn_cxx_try_compile "$LINENO"; then :
5693 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5706 if ac_fn_cxx_try_compile "$LINENO"; then :
5707 ac_cv_prog_cxx_g=yes
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5717 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5718 if test "$ac_test_CXXFLAGS" = set; then
5719 CXXFLAGS=$ac_save_CXXFLAGS
5720 elif test $ac_cv_prog_cxx_g = yes; then
5721 if test "$GXX" = yes; then
5727 if test "$GXX" = yes; then
5734 ac_cpp='$CXXCPP $CPPFLAGS'
5735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5739 depcc="$CXX" am_compiler_list=
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5742 $as_echo_n "checking dependency style of $depcc... " >&6; }
5743 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5744 $as_echo_n "(cached) " >&6
5746 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5747 # We make a subdir and do the tests there. Otherwise we can end up
5748 # making bogus files that we don't know about and never remove. For
5749 # instance it was reported that on HP-UX the gcc test will end up
5750 # making a dummy file named `D' -- because `-MD' means `put the output
5753 # Copy depcomp to subdir because otherwise we won't find it if we're
5754 # using a relative directory.
5755 cp "$am_depcomp" conftest.dir
5757 # We will build objects and dependencies in a subdirectory because
5758 # it helps to detect inapplicable dependency modes. For instance
5759 # both Tru64's cc and ICC support -MD to output dependencies as a
5760 # side effect of compilation, but ICC will put the dependencies in
5761 # the current directory while Tru64 will put them in the object
5765 am_cv_CXX_dependencies_compiler_type=none
5766 if test "$am_compiler_list" = ""; then
5767 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5770 case " $depcc " in #(
5771 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5774 for depmode in $am_compiler_list; do
5775 # Setup a source with many dependencies, because some compilers
5776 # like to wrap large dependency lists on column 80 (with \), and
5777 # we should not choose a depcomp mode which is confused by this.
5779 # We need to recreate these files for each test, as the compiler may
5780 # overwrite some of them when testing with obscure command lines.
5781 # This happens at least with the AIX C compiler.
5783 for i in 1 2 3 4 5 6; do
5784 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5785 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5786 # Solaris 8's {/usr,}/bin/sh.
5787 touch sub/conftst$i.h
5789 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5791 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5792 # mode. It turns out that the SunPro C++ compiler does not properly
5793 # handle `-M -o', and we need to detect this. Also, some Intel
5794 # versions had trouble with output in subdirs
5795 am__obj=sub/conftest.${OBJEXT-o}
5796 am__minus_obj="-o $am__obj"
5799 # This depmode causes a compiler race in universal mode.
5800 test "$am__universal" = false || continue
5803 # after this tag, mechanisms are not by side-effect, so they'll
5804 # only be used when explicitly requested
5805 if test "x$enable_dependency_tracking" = xyes; then
5811 msvisualcpp | msvcmsys)
5812 # This compiler won't grok `-c -o', but also, the minuso test has
5813 # not run yet. These depmodes are late enough in the game, and
5814 # so weak that their functioning should not be impacted.
5815 am__obj=conftest.${OBJEXT-o}
5820 if depmode=$depmode \
5821 source=sub/conftest.c object=$am__obj \
5822 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5823 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5824 >/dev/null 2>conftest.err &&
5825 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5826 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5827 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5828 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5829 # icc doesn't choke on unknown options, it will just issue warnings
5830 # or remarks (even with -Werror). So we grep stderr for any message
5831 # that says an option was ignored or not supported.
5832 # When given -MP, icc 7.0 and 7.1 complain thusly:
5833 # icc: Command line warning: ignoring option '-M'; no argument required
5834 # The diagnosis changed in icc 8.0:
5835 # icc: Command line remark: option '-MP' not supported
5836 if (grep 'ignoring option' conftest.err ||
5837 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5838 am_cv_CXX_dependencies_compiler_type=$depmode
5847 am_cv_CXX_dependencies_compiler_type=none
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5852 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5853 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5856 test "x$enable_dependency_tracking" != xno \
5857 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5858 am__fastdepCXX_TRUE=
5859 am__fastdepCXX_FALSE='#'
5861 am__fastdepCXX_TRUE='#'
5862 am__fastdepCXX_FALSE=
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5873 class a { int b; } c;
5878 if ac_fn_cxx_try_compile "$LINENO"; then :
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884 if test "$CXX" != ""; then
5893 ac_cpp='$CPP $CPPFLAGS'
5894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5900 ac_cpp='$CPP $CPPFLAGS'
5901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5904 if test -n "$ac_tool_prefix"; then
5905 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5906 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5908 $as_echo_n "checking for $ac_word... " >&6; }
5909 if ${ac_cv_prog_CC+:} false; then :
5910 $as_echo_n "(cached) " >&6
5912 if test -n "$CC"; then
5913 ac_cv_prog_CC="$CC" # Let the user override the test.
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 test -z "$as_dir" && as_dir=.
5920 for ac_exec_ext in '' $ac_executable_extensions; do
5921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5922 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 if test -n "$CC"; then
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5935 $as_echo "$CC" >&6; }
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5938 $as_echo "no" >&6; }
5943 if test -z "$ac_cv_prog_CC"; then
5945 # Extract the first word of "gcc", so it can be a program name with args.
5946 set dummy gcc; ac_word=$2
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948 $as_echo_n "checking for $ac_word... " >&6; }
5949 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5950 $as_echo_n "(cached) " >&6
5952 if test -n "$ac_ct_CC"; then
5953 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 test -z "$as_dir" && as_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5962 ac_cv_prog_ac_ct_CC="gcc"
5963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5972 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5973 if test -n "$ac_ct_CC"; then
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5975 $as_echo "$ac_ct_CC" >&6; }
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978 $as_echo "no" >&6; }
5981 if test "x$ac_ct_CC" = x; then
5984 case $cross_compiling:$ac_tool_warned in
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5988 ac_tool_warned=yes ;;
5996 if test -z "$CC"; then
5997 if test -n "$ac_tool_prefix"; then
5998 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5999 set dummy ${ac_tool_prefix}cc; ac_word=$2
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6001 $as_echo_n "checking for $ac_word... " >&6; }
6002 if ${ac_cv_prog_CC+:} false; then :
6003 $as_echo_n "(cached) " >&6
6005 if test -n "$CC"; then
6006 ac_cv_prog_CC="$CC" # Let the user override the test.
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015 ac_cv_prog_CC="${ac_tool_prefix}cc"
6016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6026 if test -n "$CC"; then
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6028 $as_echo "$CC" >&6; }
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031 $as_echo "no" >&6; }
6037 if test -z "$CC"; then
6038 # Extract the first word of "cc", so it can be a program name with args.
6039 set dummy cc; ac_word=$2
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041 $as_echo_n "checking for $ac_word... " >&6; }
6042 if ${ac_cv_prog_CC+:} false; then :
6043 $as_echo_n "(cached) " >&6
6045 if test -n "$CC"; then
6046 ac_cv_prog_CC="$CC" # Let the user override the test.
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6056 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6057 ac_prog_rejected=yes
6061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 if test $ac_prog_rejected = yes; then
6069 # We found a bogon in the path, so make sure we never use it.
6070 set dummy $ac_cv_prog_CC
6072 if test $# != 0; then
6073 # We chose a different compiler from the bogus one.
6074 # However, it has the same basename, so the bogon will be chosen
6075 # first if we set CC to just the basename; use the full file name.
6077 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6083 if test -n "$CC"; then
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6085 $as_echo "$CC" >&6; }
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088 $as_echo "no" >&6; }
6093 if test -z "$CC"; then
6094 if test -n "$ac_tool_prefix"; then
6095 for ac_prog in cl.exe
6097 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6098 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100 $as_echo_n "checking for $ac_word... " >&6; }
6101 if ${ac_cv_prog_CC+:} false; then :
6102 $as_echo_n "(cached) " >&6
6104 if test -n "$CC"; then
6105 ac_cv_prog_CC="$CC" # Let the user override the test.
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 test -z "$as_dir" && as_dir=.
6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6114 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6125 if test -n "$CC"; then
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6127 $as_echo "$CC" >&6; }
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130 $as_echo "no" >&6; }
6134 test -n "$CC" && break
6137 if test -z "$CC"; then
6139 for ac_prog in cl.exe
6141 # Extract the first word of "$ac_prog", so it can be a program name with args.
6142 set dummy $ac_prog; ac_word=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6146 $as_echo_n "(cached) " >&6
6148 if test -n "$ac_ct_CC"; then
6149 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_prog_ac_ct_CC="$ac_prog"
6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6169 if test -n "$ac_ct_CC"; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6171 $as_echo "$ac_ct_CC" >&6; }
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6178 test -n "$ac_ct_CC" && break
6181 if test "x$ac_ct_CC" = x; then
6184 case $cross_compiling:$ac_tool_warned in
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6188 ac_tool_warned=yes ;;
6197 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6199 as_fn_error $? "no acceptable C compiler found in \$PATH
6200 See \`config.log' for more details" "$LINENO" 5; }
6202 # Provide some information about the compiler.
6203 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6206 for ac_option in --version -v -V -qversion; do
6207 { { ac_try="$ac_compiler $ac_option >&5"
6209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210 *) ac_try_echo=$ac_try;;
6212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6213 $as_echo "$ac_try_echo"; } >&5
6214 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6216 if test -s conftest.err; then
6218 ... rest of stderr output deleted ...
6219 10q' conftest.err >conftest.er1
6220 cat conftest.er1 >&5
6222 rm -f conftest.er1 conftest.err
6223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6224 test $ac_status = 0; }
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6228 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6229 if ${ac_cv_c_compiler_gnu+:} false; then :
6230 $as_echo_n "(cached) " >&6
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6246 if ac_fn_c_try_compile "$LINENO"; then :
6251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6256 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6257 if test $ac_compiler_gnu = yes; then
6262 ac_test_CFLAGS=${CFLAGS+set}
6263 ac_save_CFLAGS=$CFLAGS
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6265 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6266 if ${ac_cv_prog_cc_g+:} false; then :
6267 $as_echo_n "(cached) " >&6
6269 ac_save_c_werror_flag=$ac_c_werror_flag
6270 ac_c_werror_flag=yes
6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h. */
6284 if ac_fn_c_try_compile "$LINENO"; then :
6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h. */
6299 if ac_fn_c_try_compile "$LINENO"; then :
6302 ac_c_werror_flag=$ac_save_c_werror_flag
6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6315 if ac_fn_c_try_compile "$LINENO"; then :
6318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6323 ac_c_werror_flag=$ac_save_c_werror_flag
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6326 $as_echo "$ac_cv_prog_cc_g" >&6; }
6327 if test "$ac_test_CFLAGS" = set; then
6328 CFLAGS=$ac_save_CFLAGS
6329 elif test $ac_cv_prog_cc_g = yes; then
6330 if test "$GCC" = yes; then
6336 if test "$GCC" = yes; then
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6343 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6344 if ${ac_cv_prog_cc_c89+:} false; then :
6345 $as_echo_n "(cached) " >&6
6347 ac_cv_prog_cc_c89=no
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h. */
6353 #include <sys/types.h>
6354 #include <sys/stat.h>
6355 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6356 struct buf { int x; };
6357 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6358 static char *e (p, i)
6364 static char *f (char * (*g) (char **, int), char **p, ...)
6369 s = g (p, va_arg (v,int));
6374 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6375 function prototypes and stuff, but not '\xHH' hex character constants.
6376 These don't provoke an error unfortunately, instead are silently treated
6377 as 'x'. The following induces an error, until -std is added to get
6378 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6379 array size at least. It's necessary to write '\x00'==0 to get something
6380 that's true only with -std. */
6381 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6383 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6384 inside strings and character constants. */
6386 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6388 int test (int i, double x);
6389 struct s1 {int (*f) (int a);};
6390 struct s2 {int (*f) (double a);};
6391 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6397 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6402 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6403 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6405 CC="$ac_save_CC $ac_arg"
6406 if ac_fn_c_try_compile "$LINENO"; then :
6407 ac_cv_prog_cc_c89=$ac_arg
6409 rm -f core conftest.err conftest.$ac_objext
6410 test "x$ac_cv_prog_cc_c89" != "xno" && break
6412 rm -f conftest.$ac_ext
6417 case "x$ac_cv_prog_cc_c89" in
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6420 $as_echo "none needed" >&6; } ;;
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6423 $as_echo "unsupported" >&6; } ;;
6425 CC="$CC $ac_cv_prog_cc_c89"
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6427 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6429 if test "x$ac_cv_prog_cc_c89" != xno; then :
6434 ac_cpp='$CPP $CPPFLAGS'
6435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6439 depcc="$CC" am_compiler_list=
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6442 $as_echo_n "checking dependency style of $depcc... " >&6; }
6443 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6444 $as_echo_n "(cached) " >&6
6446 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6447 # We make a subdir and do the tests there. Otherwise we can end up
6448 # making bogus files that we don't know about and never remove. For
6449 # instance it was reported that on HP-UX the gcc test will end up
6450 # making a dummy file named `D' -- because `-MD' means `put the output
6453 # Copy depcomp to subdir because otherwise we won't find it if we're
6454 # using a relative directory.
6455 cp "$am_depcomp" conftest.dir
6457 # We will build objects and dependencies in a subdirectory because
6458 # it helps to detect inapplicable dependency modes. For instance
6459 # both Tru64's cc and ICC support -MD to output dependencies as a
6460 # side effect of compilation, but ICC will put the dependencies in
6461 # the current directory while Tru64 will put them in the object
6465 am_cv_CC_dependencies_compiler_type=none
6466 if test "$am_compiler_list" = ""; then
6467 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6470 case " $depcc " in #(
6471 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6474 for depmode in $am_compiler_list; do
6475 # Setup a source with many dependencies, because some compilers
6476 # like to wrap large dependency lists on column 80 (with \), and
6477 # we should not choose a depcomp mode which is confused by this.
6479 # We need to recreate these files for each test, as the compiler may
6480 # overwrite some of them when testing with obscure command lines.
6481 # This happens at least with the AIX C compiler.
6483 for i in 1 2 3 4 5 6; do
6484 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6485 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6486 # Solaris 8's {/usr,}/bin/sh.
6487 touch sub/conftst$i.h
6489 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6491 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6492 # mode. It turns out that the SunPro C++ compiler does not properly
6493 # handle `-M -o', and we need to detect this. Also, some Intel
6494 # versions had trouble with output in subdirs
6495 am__obj=sub/conftest.${OBJEXT-o}
6496 am__minus_obj="-o $am__obj"
6499 # This depmode causes a compiler race in universal mode.
6500 test "$am__universal" = false || continue
6503 # after this tag, mechanisms are not by side-effect, so they'll
6504 # only be used when explicitly requested
6505 if test "x$enable_dependency_tracking" = xyes; then
6511 msvisualcpp | msvcmsys)
6512 # This compiler won't grok `-c -o', but also, the minuso test has
6513 # not run yet. These depmodes are late enough in the game, and
6514 # so weak that their functioning should not be impacted.
6515 am__obj=conftest.${OBJEXT-o}
6520 if depmode=$depmode \
6521 source=sub/conftest.c object=$am__obj \
6522 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6523 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6524 >/dev/null 2>conftest.err &&
6525 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6526 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6527 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6528 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6529 # icc doesn't choke on unknown options, it will just issue warnings
6530 # or remarks (even with -Werror). So we grep stderr for any message
6531 # that says an option was ignored or not supported.
6532 # When given -MP, icc 7.0 and 7.1 complain thusly:
6533 # icc: Command line warning: ignoring option '-M'; no argument required
6534 # The diagnosis changed in icc 8.0:
6535 # icc: Command line remark: option '-MP' not supported
6536 if (grep 'ignoring option' conftest.err ||
6537 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6538 am_cv_CC_dependencies_compiler_type=$depmode
6547 am_cv_CC_dependencies_compiler_type=none
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6552 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6553 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6556 test "x$enable_dependency_tracking" != xno \
6557 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6559 am__fastdepCC_FALSE='#'
6561 am__fastdepCC_TRUE='#'
6562 am__fastdepCC_FALSE=
6567 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6569 if test "x$CC" != xcc; then
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
6571 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
6574 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6576 set dummy $CC; ac_cc=`$as_echo "$2" |
6577 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6578 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
6579 $as_echo_n "(cached) " >&6
6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h. */
6592 # Make sure it works both with $CC and with simple cc.
6593 # We do the test twice because some compilers refuse to overwrite an
6594 # existing .o file with -o, though they will create one.
6595 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6597 if { { case "(($ac_try" in
6598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6599 *) ac_try_echo=$ac_try;;
6601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6602 $as_echo "$ac_try_echo"; } >&5
6603 (eval "$ac_try") 2>&5
6605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6606 test $ac_status = 0; } &&
6607 test -f conftest2.$ac_objext && { { case "(($ac_try" in
6608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6609 *) ac_try_echo=$ac_try;;
6611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6612 $as_echo "$ac_try_echo"; } >&5
6613 (eval "$ac_try") 2>&5
6615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6616 test $ac_status = 0; };
6618 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6619 if test "x$CC" != xcc; then
6620 # Test first that cc exists at all.
6621 if { ac_try='cc -c conftest.$ac_ext >&5'
6622 { { case "(($ac_try" in
6623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6624 *) ac_try_echo=$ac_try;;
6626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6627 $as_echo "$ac_try_echo"; } >&5
6628 (eval "$ac_try") 2>&5
6630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6631 test $ac_status = 0; }; }; then
6632 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6634 if { { case "(($ac_try" in
6635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636 *) ac_try_echo=$ac_try;;
6638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6639 $as_echo "$ac_try_echo"; } >&5
6640 (eval "$ac_try") 2>&5
6642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6643 test $ac_status = 0; } &&
6644 test -f conftest2.$ac_objext && { { case "(($ac_try" in
6645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6646 *) ac_try_echo=$ac_try;;
6648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6649 $as_echo "$ac_try_echo"; } >&5
6650 (eval "$ac_try") 2>&5
6652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6653 test $ac_status = 0; };
6658 # cc exists but doesn't like -o.
6659 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6664 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6666 rm -f core conftest*
6669 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6671 $as_echo "yes" >&6; }
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 $as_echo "no" >&6; }
6676 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
6680 # FIXME: we rely on the cache variable name because
6681 # there is no other way.
6683 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6684 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6685 if test "$am_t" != yes; then
6686 # Losing compiler, so override with the script.
6687 # FIXME: It is wrong to rewrite CC.
6688 # But if we don't then we get into trouble of one sort or another.
6689 # A longer-term fix would be to have automake use am__CC in this case,
6690 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6691 CC="$am_aux_dir/compile $CC"
6697 # Check whether --enable-largefile was given.
6698 if test "${enable_largefile+set}" = set; then :
6699 enableval=$enable_largefile;
6702 if test "$enable_largefile" != no; then
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6705 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6706 if ${ac_cv_sys_largefile_CC+:} false; then :
6707 $as_echo_n "(cached) " >&6
6709 ac_cv_sys_largefile_CC=no
6710 if test "$GCC" != yes; then
6713 # IRIX 6.2 and later do not support large files by default,
6714 # so use the C compiler's -n32 option if that helps.
6715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716 /* end confdefs.h. */
6717 #include <sys/types.h>
6718 /* Check that off_t can represent 2**63 - 1 correctly.
6719 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6720 since some C++ compilers masquerading as C compilers
6721 incorrectly reject 9223372036854775807. */
6722 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6723 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6724 && LARGE_OFF_T % 2147483647 == 1)
6734 if ac_fn_c_try_compile "$LINENO"; then :
6737 rm -f core conftest.err conftest.$ac_objext
6739 if ac_fn_c_try_compile "$LINENO"; then :
6740 ac_cv_sys_largefile_CC=' -n32'; break
6742 rm -f core conftest.err conftest.$ac_objext
6746 rm -f conftest.$ac_ext
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6750 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6751 if test "$ac_cv_sys_largefile_CC" != no; then
6752 CC=$CC$ac_cv_sys_largefile_CC
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6756 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6757 if ${ac_cv_sys_file_offset_bits+:} false; then :
6758 $as_echo_n "(cached) " >&6
6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6763 #include <sys/types.h>
6764 /* Check that off_t can represent 2**63 - 1 correctly.
6765 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6766 since some C++ compilers masquerading as C compilers
6767 incorrectly reject 9223372036854775807. */
6768 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6769 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6770 && LARGE_OFF_T % 2147483647 == 1)
6780 if ac_fn_c_try_compile "$LINENO"; then :
6781 ac_cv_sys_file_offset_bits=no; break
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786 #define _FILE_OFFSET_BITS 64
6787 #include <sys/types.h>
6788 /* Check that off_t can represent 2**63 - 1 correctly.
6789 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6790 since some C++ compilers masquerading as C compilers
6791 incorrectly reject 9223372036854775807. */
6792 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6793 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6794 && LARGE_OFF_T % 2147483647 == 1)
6804 if ac_fn_c_try_compile "$LINENO"; then :
6805 ac_cv_sys_file_offset_bits=64; break
6807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808 ac_cv_sys_file_offset_bits=unknown
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6813 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6814 case $ac_cv_sys_file_offset_bits in #(
6817 cat >>confdefs.h <<_ACEOF
6818 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6823 if test $ac_cv_sys_file_offset_bits = unknown; then
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6825 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6826 if ${ac_cv_sys_large_files+:} false; then :
6827 $as_echo_n "(cached) " >&6
6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831 /* end confdefs.h. */
6832 #include <sys/types.h>
6833 /* Check that off_t can represent 2**63 - 1 correctly.
6834 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6835 since some C++ compilers masquerading as C compilers
6836 incorrectly reject 9223372036854775807. */
6837 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6838 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6839 && LARGE_OFF_T % 2147483647 == 1)
6849 if ac_fn_c_try_compile "$LINENO"; then :
6850 ac_cv_sys_large_files=no; break
6852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h. */
6855 #define _LARGE_FILES 1
6856 #include <sys/types.h>
6857 /* Check that off_t can represent 2**63 - 1 correctly.
6858 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6859 since some C++ compilers masquerading as C compilers
6860 incorrectly reject 9223372036854775807. */
6861 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6862 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6863 && LARGE_OFF_T % 2147483647 == 1)
6873 if ac_fn_c_try_compile "$LINENO"; then :
6874 ac_cv_sys_large_files=1; break
6876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6877 ac_cv_sys_large_files=unknown
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6882 $as_echo "$ac_cv_sys_large_files" >&6; }
6883 case $ac_cv_sys_large_files in #(
6886 cat >>confdefs.h <<_ACEOF
6887 #define _LARGE_FILES $ac_cv_sys_large_files
6896 if test "x$enable_debug" = "xyes"; then
6897 if test x$cflags_set != xset ; then
6899 *[\ \ ]-g[\ \ ]*) ;;
6900 *) CFLAGS="$CFLAGS -g" ;;
6903 GLIB_DEBUG_FLAGS="-DG_ENABLE_DEBUG"
6905 GLIB_DEBUG_FLAGS="-DG_DISABLE_CAST_CHECKS"
6907 if test "x$enable_debug" = "xno"; then
6908 GLIB_DEBUG_FLAGS="$GLIB_DEBUG_FLAGS -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
6912 # Ensure MSVC-compatible struct packing convention is used when
6913 # compiling for Win32 with gcc.
6914 # What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while
6915 # gcc2 uses "-fnative-struct".
6916 if test x"$glib_native_win32" = xyes; then
6917 if test x"$GCC" = xyes; then
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get MSVC-compatible struct packing" >&5
6920 $as_echo_n "checking how to get MSVC-compatible struct packing... " >&6; }
6921 if test -z "$ac_cv_prog_CC"; then
6924 our_gcc="$ac_cv_prog_CC"
6926 case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
6928 if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
6929 msnative_struct='-fnative-struct'
6933 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
6934 msnative_struct='-mms-bitfields'
6938 if test x"$msnative_struct" = x ; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no way" >&5
6940 $as_echo "no way" >&6; }
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&5
6942 $as_echo "$as_me: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&2;}
6944 CFLAGS="$CFLAGS $msnative_struct"
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${msnative_struct}" >&5
6946 $as_echo "${msnative_struct}" >&6; }
6950 GLIB_EXTRA_CFLAGS="${msnative_struct}"
6955 # define a MAINT-like variable REBUILD which is set if Perl
6956 # and awk are found, so autogenerated sources can be rebuilt
6957 for ac_prog in gawk mawk nawk awk
6959 # Extract the first word of "$ac_prog", so it can be a program name with args.
6960 set dummy $ac_prog; ac_word=$2
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6962 $as_echo_n "checking for $ac_word... " >&6; }
6963 if ${ac_cv_prog_AWK+:} false; then :
6964 $as_echo_n "(cached) " >&6
6966 if test -n "$AWK"; then
6967 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 test -z "$as_dir" && as_dir=.
6974 for ac_exec_ext in '' $ac_executable_extensions; do
6975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6976 ac_cv_prog_AWK="$ac_prog"
6977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 if test -n "$AWK"; then
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6989 $as_echo "$AWK" >&6; }
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6992 $as_echo "no" >&6; }
6996 test -n "$AWK" && break
6999 for ac_prog in perl5 perl
7001 # Extract the first word of "$ac_prog", so it can be a program name with args.
7002 set dummy $ac_prog; ac_word=$2
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004 $as_echo_n "checking for $ac_word... " >&6; }
7005 if ${ac_cv_prog_PERL+:} false; then :
7006 $as_echo_n "(cached) " >&6
7008 if test -n "$PERL"; then
7009 ac_cv_prog_PERL="$PERL" # Let the user override the test.
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7018 ac_cv_prog_PERL="$ac_prog"
7019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7028 PERL=$ac_cv_prog_PERL
7029 if test -n "$PERL"; then
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7031 $as_echo "$PERL" >&6; }
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 $as_echo "no" >&6; }
7038 test -n "$PERL" && break
7041 # We would like indent, but don't require it.
7042 # Extract the first word of "indent", so it can be a program name with args.
7043 set dummy indent; ac_word=$2
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045 $as_echo_n "checking for $ac_word... " >&6; }
7046 if ${ac_cv_prog_INDENT+:} false; then :
7047 $as_echo_n "(cached) " >&6
7049 if test -n "$INDENT"; then
7050 ac_cv_prog_INDENT="$INDENT" # Let the user override the test.
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 test -z "$as_dir" && as_dir=.
7057 for ac_exec_ext in '' $ac_executable_extensions; do
7058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7059 ac_cv_prog_INDENT="indent"
7060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7069 INDENT=$ac_cv_prog_INDENT
7070 if test -n "$INDENT"; then
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5
7072 $as_echo "$INDENT" >&6; }
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075 $as_echo "no" >&6; }
7080 if test "x$enable_rebuilds" = "xyes" && \
7081 test -n "$PERL" && \
7082 $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
7083 test -n "$AWK" ; then
7088 # Need full path to Perl for glib-mkenums
7090 if test "x$PERL" != x ; then
7091 # Extract the first word of "$PERL", so it can be a program name with args.
7092 set dummy $PERL; ac_word=$2
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7094 $as_echo_n "checking for $ac_word... " >&6; }
7095 if ${ac_cv_path_PERL_PATH+:} false; then :
7096 $as_echo_n "(cached) " >&6
7100 ac_cv_path_PERL_PATH="$PERL_PATH" # Let the user override the test with a path.
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7110 ac_cv_path_PERL_PATH="$as_dir/$ac_word$ac_exec_ext"
7111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 PERL_PATH=$ac_cv_path_PERL_PATH
7122 if test -n "$PERL_PATH"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_PATH" >&5
7124 $as_echo "$PERL_PATH" >&6; }
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7132 if test "x$PERL_PATH" = x ; then
7133 PERL_PATH="/usr/bin/env perl"
7137 # Need suitable python path for greport
7142 if test -n "$PYTHON"; then
7143 # If the user set $PYTHON, use it and don't search something else.
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
7145 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
7147 # split strings by '.' and convert to numeric. Append some zeros
7148 # because we need at least 4 digits for the hex conversion.
7149 # map returns an iterator in Python 3.0 and a list in 2.x
7150 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
7152 # xrange is not present in Python 3.0 and range returns an iterator
7153 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
7154 sys.exit(sys.hexversion < minverhex)"
7155 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
7156 ($PYTHON -c "$prog") >&5 2>&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); }; then :
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7161 $as_echo "yes" >&6; }
7163 as_fn_error $? "too old" "$LINENO" 5
7165 am_display_PYTHON=$PYTHON
7167 # Otherwise, try each interpreter until we find one that satisfies
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
7170 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
7171 if ${am_cv_pathless_PYTHON+:} false; then :
7172 $as_echo_n "(cached) " >&6
7175 for am_cv_pathless_PYTHON in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
7176 test "$am_cv_pathless_PYTHON" = none && break
7178 # split strings by '.' and convert to numeric. Append some zeros
7179 # because we need at least 4 digits for the hex conversion.
7180 # map returns an iterator in Python 3.0 and a list in 2.x
7181 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
7183 # xrange is not present in Python 3.0 and range returns an iterator
7184 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
7185 sys.exit(sys.hexversion < minverhex)"
7186 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
7187 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; then :
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
7196 $as_echo "$am_cv_pathless_PYTHON" >&6; }
7197 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
7198 if test "$am_cv_pathless_PYTHON" = none; then
7201 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
7202 set dummy $am_cv_pathless_PYTHON; ac_word=$2
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204 $as_echo_n "checking for $ac_word... " >&6; }
7205 if ${ac_cv_path_PYTHON+:} false; then :
7206 $as_echo_n "(cached) " >&6
7210 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7220 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 PYTHON=$ac_cv_path_PYTHON
7232 if test -n "$PYTHON"; then
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7234 $as_echo "$PYTHON" >&6; }
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7242 am_display_PYTHON=$am_cv_pathless_PYTHON
7246 if test "$PYTHON" = :; then
7247 PYTHON="/usr/bin/env python2.5"
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
7252 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
7253 if ${am_cv_python_version+:} false; then :
7254 $as_echo_n "(cached) " >&6
7256 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
7259 $as_echo "$am_cv_python_version" >&6; }
7260 PYTHON_VERSION=$am_cv_python_version
7264 PYTHON_PREFIX='${prefix}'
7266 PYTHON_EXEC_PREFIX='${exec_prefix}'
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
7271 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
7272 if ${am_cv_python_platform+:} false; then :
7273 $as_echo_n "(cached) " >&6
7275 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
7278 $as_echo "$am_cv_python_platform" >&6; }
7279 PYTHON_PLATFORM=$am_cv_python_platform
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
7285 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
7286 if ${am_cv_python_pythondir+:} false; then :
7287 $as_echo_n "(cached) " >&6
7289 if test "x$prefix" = xNONE
7291 am_py_prefix=$ac_default_prefix
7293 am_py_prefix=$prefix
7295 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 ||
7296 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
7297 case $am_cv_python_pythondir in
7299 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
7300 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
7303 case $am_py_prefix in
7306 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
7314 $as_echo "$am_cv_python_pythondir" >&6; }
7315 pythondir=$am_cv_python_pythondir
7319 pkgpythondir=\${pythondir}/$PACKAGE
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
7323 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
7324 if ${am_cv_python_pyexecdir+:} false; then :
7325 $as_echo_n "(cached) " >&6
7327 if test "x$exec_prefix" = xNONE
7329 am_py_exec_prefix=$am_py_prefix
7331 am_py_exec_prefix=$exec_prefix
7333 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 ||
7334 echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
7335 case $am_cv_python_pyexecdir in
7336 $am_py_exec_prefix*)
7337 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
7338 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
7341 case $am_py_exec_prefix in
7344 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
7352 $as_echo "$am_cv_python_pyexecdir" >&6; }
7353 pyexecdir=$am_cv_python_pyexecdir
7357 pkgpyexecdir=\${pyexecdir}/$PACKAGE
7368 if test x"$glib_native_win32" = xyes; then
7369 with_libiconv=native
7372 # Check whether --with-libiconv was given.
7373 if test "${with_libiconv+set}" = set; then :
7374 withval=$with_libiconv;
7381 case $with_libiconv in
7383 # Check in the C library first
7384 ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
7385 if test "x$ac_cv_func_iconv_open" = xyes; then :
7386 with_libiconv=no; found_iconv=yes
7389 # Check if we have GNU libiconv
7390 if test $found_iconv = "no"; then
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
7392 $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
7393 if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
7394 $as_echo_n "(cached) " >&6
7396 ac_check_lib_save_LIBS=$LIBS
7397 LIBS="-liconv $LIBS"
7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399 /* end confdefs.h. */
7401 /* Override any GCC internal prototype to avoid an error.
7402 Use char because int might match the return type of a GCC
7403 builtin and then its argument prototype would still apply. */
7407 char libiconv_open ();
7411 return libiconv_open ();
7416 if ac_fn_c_try_link "$LINENO"; then :
7417 ac_cv_lib_iconv_libiconv_open=yes
7419 ac_cv_lib_iconv_libiconv_open=no
7421 rm -f core conftest.err conftest.$ac_objext \
7422 conftest$ac_exeext conftest.$ac_ext
7423 LIBS=$ac_check_lib_save_LIBS
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
7426 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
7427 if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
7428 with_libiconv=gnu; found_iconv=yes
7432 # Check if we have a iconv in -liconv, possibly from vendor
7433 if test $found_iconv = "no"; then
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
7435 $as_echo_n "checking for iconv_open in -liconv... " >&6; }
7436 if ${ac_cv_lib_iconv_iconv_open+:} false; then :
7437 $as_echo_n "(cached) " >&6
7439 ac_check_lib_save_LIBS=$LIBS
7440 LIBS="-liconv $LIBS"
7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h. */
7444 /* Override any GCC internal prototype to avoid an error.
7445 Use char because int might match the return type of a GCC
7446 builtin and then its argument prototype would still apply. */
7454 return iconv_open ();
7459 if ac_fn_c_try_link "$LINENO"; then :
7460 ac_cv_lib_iconv_iconv_open=yes
7462 ac_cv_lib_iconv_iconv_open=no
7464 rm -f core conftest.err conftest.$ac_objext \
7465 conftest$ac_exeext conftest.$ac_ext
7466 LIBS=$ac_check_lib_save_LIBS
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
7469 $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
7470 if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
7471 with_libiconv=native; found_iconv=yes
7477 ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
7478 if test "x$ac_cv_func_iconv_open" = xyes; then :
7479 with_libiconv=no; found_iconv=yes
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
7485 $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
7486 if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
7487 $as_echo_n "(cached) " >&6
7489 ac_check_lib_save_LIBS=$LIBS
7490 LIBS="-liconv $LIBS"
7491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492 /* end confdefs.h. */
7494 /* Override any GCC internal prototype to avoid an error.
7495 Use char because int might match the return type of a GCC
7496 builtin and then its argument prototype would still apply. */
7500 char libiconv_open ();
7504 return libiconv_open ();
7509 if ac_fn_c_try_link "$LINENO"; then :
7510 ac_cv_lib_iconv_libiconv_open=yes
7512 ac_cv_lib_iconv_libiconv_open=no
7514 rm -f core conftest.err conftest.$ac_objext \
7515 conftest$ac_exeext conftest.$ac_ext
7516 LIBS=$ac_check_lib_save_LIBS
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
7519 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
7520 if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
7521 with_libiconv=gnu; found_iconv=yes
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
7527 $as_echo_n "checking for iconv_open in -liconv... " >&6; }
7528 if ${ac_cv_lib_iconv_iconv_open+:} false; then :
7529 $as_echo_n "(cached) " >&6
7531 ac_check_lib_save_LIBS=$LIBS
7532 LIBS="-liconv $LIBS"
7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534 /* end confdefs.h. */
7536 /* Override any GCC internal prototype to avoid an error.
7537 Use char because int might match the return type of a GCC
7538 builtin and then its argument prototype would still apply. */
7546 return iconv_open ();
7551 if ac_fn_c_try_link "$LINENO"; then :
7552 ac_cv_lib_iconv_iconv_open=yes
7554 ac_cv_lib_iconv_iconv_open=no
7556 rm -f core conftest.err conftest.$ac_objext \
7557 conftest$ac_exeext conftest.$ac_ext
7558 LIBS=$ac_check_lib_save_LIBS
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
7561 $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
7562 if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
7563 with_libiconv=native; found_iconv=yes
7569 if test "x$found_iconv" = "xno" ; then
7570 as_fn_error $? "*** No iconv() implementation found in C library or libiconv" "$LINENO" 5
7574 # Check whether --enable-iconv-cache was given.
7575 if test "${enable_iconv_cache+set}" = set; then :
7576 enableval=$enable_iconv_cache;
7578 enable_iconv_cache=auto
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to cache iconv descriptors" >&5
7583 $as_echo_n "checking whether to cache iconv descriptors... " >&6; }
7584 case $enable_iconv_cache in
7586 if test $ac_cv_gnu_library_2_1 = yes; then
7587 enable_iconv_cache=no
7589 enable_iconv_cache=yes
7594 *) as_fn_error $? "Value given to --enable-iconv-cache must be one of yes, no or auto" "$LINENO" 5
7598 if test $enable_iconv_cache = yes; then
7600 $as_echo "#define NEED_ICONV_CACHE 1" >>confdefs.h
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_iconv_cache" >&5
7605 $as_echo "$enable_iconv_cache" >&6; }
7609 GETTEXT_PACKAGE=glib20
7612 cat >>confdefs.h <<_ACEOF
7613 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
7618 cat >>confdefs.h <<_ACEOF
7619 #define GLIB_LOCALE_DIR ""
7624 if test x"$glib_native_win32" != xyes; then
7625 if test x$with_libiconv != xno ; then
7626 case " $INTLLIBS " in
7627 *[\ \ ]-liconv[\ \ ]*) ;;
7628 *) ICONV_LIBS="-liconv" ;;
7634 case $with_libiconv in
7637 $as_echo "#define USE_LIBICONV_GNU 1" >>confdefs.h
7642 $as_echo "#define USE_LIBICONV_NATIVE 1" >>confdefs.h
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7654 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7660 macro_revision='1.3293'
7674 ltmain="$ac_aux_dir/ltmain.sh"
7676 # Backslashify metacharacters that are still active within
7677 # double-quoted strings.
7678 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7680 # Same as above, but do not quote variable references.
7681 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7683 # Sed substitution to delay expansion of an escaped shell variable in a
7684 # double_quote_subst'ed string.
7685 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7687 # Sed substitution to delay expansion of an escaped single quote.
7688 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7690 # Sed substitution to avoid accidental globbing in evaled expressions
7691 no_glob_subst='s/\*/\\\*/g'
7693 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7694 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7695 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7698 $as_echo_n "checking how to print strings... " >&6; }
7699 # Test print first, because it will be a builtin if present.
7700 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7701 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7703 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7706 # Use this function as a fallback that always works.
7707 func_fallback_echo ()
7709 eval 'cat <<_LTECHO_EOF
7713 ECHO='func_fallback_echo'
7716 # func_echo_all arg...
7717 # Invoke $ECHO with all args, space-separated.
7724 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7725 $as_echo "printf" >&6; } ;;
7726 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7727 $as_echo "print -r" >&6; } ;;
7728 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7729 $as_echo "cat" >&6; } ;;
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7746 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7747 if ${ac_cv_path_SED+:} false; then :
7748 $as_echo_n "(cached) " >&6
7750 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7751 for ac_i in 1 2 3 4 5 6 7; do
7752 ac_script="$ac_script$as_nl$ac_script"
7754 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7755 { ac_script=; unset ac_script;}
7756 if test -z "$SED"; then
7757 ac_path_SED_found=false
7758 # Loop through the user's path and test for each of PROGNAME-LIST
7759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 test -z "$as_dir" && as_dir=.
7764 for ac_prog in sed gsed; do
7765 for ac_exec_ext in '' $ac_executable_extensions; do
7766 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7767 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7768 # Check for GNU ac_path_SED and select it if it is found.
7769 # Check for GNU $ac_path_SED
7770 case `"$ac_path_SED" --version 2>&1` in
7772 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7775 $as_echo_n 0123456789 >"conftest.in"
7778 cat "conftest.in" "conftest.in" >"conftest.tmp"
7779 mv "conftest.tmp" "conftest.in"
7780 cp "conftest.in" "conftest.nl"
7781 $as_echo '' >> "conftest.nl"
7782 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7783 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7784 as_fn_arith $ac_count + 1 && ac_count=$as_val
7785 if test $ac_count -gt ${ac_path_SED_max-0}; then
7786 # Best one so far, save it but keep looking for a better one
7787 ac_cv_path_SED="$ac_path_SED"
7788 ac_path_SED_max=$ac_count
7790 # 10*(2^10) chars as input seems more than enough
7791 test $ac_count -gt 10 && break
7793 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7796 $ac_path_SED_found && break 3
7801 if test -z "$ac_cv_path_SED"; then
7802 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7810 $as_echo "$ac_cv_path_SED" >&6; }
7811 SED="$ac_cv_path_SED"
7814 test -z "$SED" && SED=sed
7815 Xsed="$SED -e 1s/^X//"
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7828 $as_echo_n "checking for fgrep... " >&6; }
7829 if ${ac_cv_path_FGREP+:} false; then :
7830 $as_echo_n "(cached) " >&6
7832 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7833 then ac_cv_path_FGREP="$GREP -F"
7835 if test -z "$FGREP"; then
7836 ac_path_FGREP_found=false
7837 # Loop through the user's path and test for each of PROGNAME-LIST
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7842 test -z "$as_dir" && as_dir=.
7843 for ac_prog in fgrep; do
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7846 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7847 # Check for GNU ac_path_FGREP and select it if it is found.
7848 # Check for GNU $ac_path_FGREP
7849 case `"$ac_path_FGREP" --version 2>&1` in
7851 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7854 $as_echo_n 0123456789 >"conftest.in"
7857 cat "conftest.in" "conftest.in" >"conftest.tmp"
7858 mv "conftest.tmp" "conftest.in"
7859 cp "conftest.in" "conftest.nl"
7860 $as_echo 'FGREP' >> "conftest.nl"
7861 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7862 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7863 as_fn_arith $ac_count + 1 && ac_count=$as_val
7864 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7865 # Best one so far, save it but keep looking for a better one
7866 ac_cv_path_FGREP="$ac_path_FGREP"
7867 ac_path_FGREP_max=$ac_count
7869 # 10*(2^10) chars as input seems more than enough
7870 test $ac_count -gt 10 && break
7872 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7875 $ac_path_FGREP_found && break 3
7880 if test -z "$ac_cv_path_FGREP"; then
7881 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7884 ac_cv_path_FGREP=$FGREP
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7890 $as_echo "$ac_cv_path_FGREP" >&6; }
7891 FGREP="$ac_cv_path_FGREP"
7894 test -z "$GREP" && GREP=grep
7914 # Check whether --with-gnu-ld was given.
7915 if test "${with_gnu_ld+set}" = set; then :
7916 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7922 if test "$GCC" = yes; then
7923 # Check if gcc -print-prog-name=ld gives a path.
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7925 $as_echo_n "checking for ld used by $CC... " >&6; }
7928 # gcc leaves a trailing carriage return which upsets mingw
7929 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7931 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7934 # Accept absolute paths.
7936 re_direlt='/[^/][^/]*/\.\./'
7937 # Canonicalize the pathname of ld
7938 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7939 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7940 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7942 test -z "$LD" && LD="$ac_prog"
7945 # If it fails, then pretend we aren't using GCC.
7949 # If it is relative, then search for the first ld in PATH.
7953 elif test "$with_gnu_ld" = yes; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7955 $as_echo_n "checking for GNU ld... " >&6; }
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7958 $as_echo_n "checking for non-GNU ld... " >&6; }
7960 if ${lt_cv_path_LD+:} false; then :
7961 $as_echo_n "(cached) " >&6
7963 if test -z "$LD"; then
7964 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7965 for ac_dir in $PATH; do
7967 test -z "$ac_dir" && ac_dir=.
7968 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7969 lt_cv_path_LD="$ac_dir/$ac_prog"
7970 # Check to see if the program is GNU ld. I'd rather use --version,
7971 # but apparently some variants of GNU ld only accept -v.
7972 # Break only if it was the GNU/non-GNU ld that we prefer.
7973 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7974 *GNU* | *'with BFD'*)
7975 test "$with_gnu_ld" != no && break
7978 test "$with_gnu_ld" != yes && break
7985 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7990 if test -n "$LD"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7992 $as_echo "$LD" >&6; }
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7997 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7999 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8000 if ${lt_cv_prog_gnu_ld+:} false; then :
8001 $as_echo_n "(cached) " >&6
8003 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8004 case `$LD -v 2>&1 </dev/null` in
8005 *GNU* | *'with BFD'*)
8006 lt_cv_prog_gnu_ld=yes
8009 lt_cv_prog_gnu_ld=no
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8014 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8015 with_gnu_ld=$lt_cv_prog_gnu_ld
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8026 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8027 if ${lt_cv_path_NM+:} false; then :
8028 $as_echo_n "(cached) " >&6
8030 if test -n "$NM"; then
8031 # Let the user override the test.
8034 lt_nm_to_check="${ac_tool_prefix}nm"
8035 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8036 lt_nm_to_check="$lt_nm_to_check nm"
8038 for lt_tmp_nm in $lt_nm_to_check; do
8039 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8040 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8042 test -z "$ac_dir" && ac_dir=.
8043 tmp_nm="$ac_dir/$lt_tmp_nm"
8044 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8045 # Check to see if the nm accepts a BSD-compat flag.
8046 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8047 # nm: unknown option "B" ignored
8048 # Tru64's nm complains that /dev/null is an invalid object file
8049 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8050 */dev/null* | *'Invalid file or object type'*)
8051 lt_cv_path_NM="$tmp_nm -B"
8055 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8057 lt_cv_path_NM="$tmp_nm -p"
8061 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8062 continue # so that we can try to find one that supports BSD flags
8071 : ${lt_cv_path_NM=no}
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8075 $as_echo "$lt_cv_path_NM" >&6; }
8076 if test "$lt_cv_path_NM" != "no"; then
8079 # Didn't find any BSD compatible name lister, look for dumpbin.
8080 if test -n "$DUMPBIN"; then :
8081 # Let the user override the test.
8083 if test -n "$ac_tool_prefix"; then
8084 for ac_prog in dumpbin "link -dump"
8086 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8087 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8089 $as_echo_n "checking for $ac_word... " >&6; }
8090 if ${ac_cv_prog_DUMPBIN+:} false; then :
8091 $as_echo_n "(cached) " >&6
8093 if test -n "$DUMPBIN"; then
8094 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 test -z "$as_dir" && as_dir=.
8101 for ac_exec_ext in '' $ac_executable_extensions; do
8102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8103 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8113 DUMPBIN=$ac_cv_prog_DUMPBIN
8114 if test -n "$DUMPBIN"; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8116 $as_echo "$DUMPBIN" >&6; }
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119 $as_echo "no" >&6; }
8123 test -n "$DUMPBIN" && break
8126 if test -z "$DUMPBIN"; then
8127 ac_ct_DUMPBIN=$DUMPBIN
8128 for ac_prog in dumpbin "link -dump"
8130 # Extract the first word of "$ac_prog", so it can be a program name with args.
8131 set dummy $ac_prog; ac_word=$2
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 $as_echo_n "checking for $ac_word... " >&6; }
8134 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8135 $as_echo_n "(cached) " >&6
8137 if test -n "$ac_ct_DUMPBIN"; then
8138 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8147 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8157 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8158 if test -n "$ac_ct_DUMPBIN"; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8160 $as_echo "$ac_ct_DUMPBIN" >&6; }
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8167 test -n "$ac_ct_DUMPBIN" && break
8170 if test "x$ac_ct_DUMPBIN" = x; then
8173 case $cross_compiling:$ac_tool_warned in
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8177 ac_tool_warned=yes ;;
8179 DUMPBIN=$ac_ct_DUMPBIN
8183 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8185 DUMPBIN="$DUMPBIN -symbols"
8193 if test "$DUMPBIN" != ":"; then
8197 test -z "$NM" && NM=nm
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8205 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8206 if ${lt_cv_nm_interface+:} false; then :
8207 $as_echo_n "(cached) " >&6
8209 lt_cv_nm_interface="BSD nm"
8210 echo "int some_variable = 0;" > conftest.$ac_ext
8211 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8212 (eval "$ac_compile" 2>conftest.err)
8213 cat conftest.err >&5
8214 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8215 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8216 cat conftest.err >&5
8217 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8218 cat conftest.out >&5
8219 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8220 lt_cv_nm_interface="MS dumpbin"
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8225 $as_echo "$lt_cv_nm_interface" >&6; }
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8228 $as_echo_n "checking whether ln -s works... " >&6; }
8230 if test "$LN_S" = "ln -s"; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8232 $as_echo "yes" >&6; }
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8235 $as_echo "no, using $LN_S" >&6; }
8238 # find the maximum length of command line arguments
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8240 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8241 if ${lt_cv_sys_max_cmd_len+:} false; then :
8242 $as_echo_n "(cached) " >&6
8249 # On DJGPP, this test can blow up pretty badly due to problems in libc
8250 # (any single argument exceeding 2000 bytes causes a buffer overrun
8251 # during glob expansion). Even if it were fixed, the result of this
8252 # check would be larger than it should be.
8253 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8257 # Under GNU Hurd, this test is not required because there is
8258 # no limit to the length of command line arguments.
8259 # Libtool will interpret -1 as no limit whatsoever
8260 lt_cv_sys_max_cmd_len=-1;
8263 cygwin* | mingw* | cegcc*)
8264 # On Win9x/ME, this test blows up -- it succeeds, but takes
8265 # about 5 minutes as the teststring grows exponentially.
8266 # Worse, since 9x/ME are not pre-emptively multitasking,
8267 # you end up with a "frozen" computer, even though with patience
8268 # the test eventually succeeds (with a max line length of 256k).
8269 # Instead, let's just punt: use the minimum linelength reported by
8270 # all of the supported platforms: 8192 (on NT/2K/XP).
8271 lt_cv_sys_max_cmd_len=8192;
8275 # On MiNT this can take a long time and run out of memory.
8276 lt_cv_sys_max_cmd_len=8192;
8280 # On AmigaOS with pdksh, this test takes hours, literally.
8281 # So we just punt and use a minimum line length of 8192.
8282 lt_cv_sys_max_cmd_len=8192;
8285 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8286 # This has been around since 386BSD, at least. Likely further.
8287 if test -x /sbin/sysctl; then
8288 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8289 elif test -x /usr/sbin/sysctl; then
8290 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8292 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8294 # And add a safety zone
8295 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8296 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8300 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8301 lt_cv_sys_max_cmd_len=196608
8305 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8306 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8307 # nice to cause kernel panics so lets avoid the loop below.
8308 # First set a reasonable default.
8309 lt_cv_sys_max_cmd_len=16384
8311 if test -x /sbin/sysconfig; then
8312 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8313 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8318 lt_cv_sys_max_cmd_len=102400
8320 sysv5* | sco5v6* | sysv4.2uw2*)
8321 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8322 if test -n "$kargmax"; then
8323 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8325 lt_cv_sys_max_cmd_len=32768
8329 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8330 if test -n "$lt_cv_sys_max_cmd_len"; then
8331 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8332 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8334 # Make teststring a little bigger before we do anything with it.
8335 # a 1K string should be a reasonable start.
8336 for i in 1 2 3 4 5 6 7 8 ; do
8337 teststring=$teststring$teststring
8339 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8340 # If test is not a shell built-in, we'll probably end up computing a
8341 # maximum length that is only half of the actual maximum length, but
8343 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
8344 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8345 test $i != 17 # 1/2 MB should be enough
8348 teststring=$teststring$teststring
8350 # Only check the string length outside the loop.
8351 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8353 # Add a significant safety factor because C++ compilers can tack on
8354 # massive amounts of additional arguments before passing them to the
8355 # linker. It appears as though 1/2 is a usable value.
8356 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8363 if test -n $lt_cv_sys_max_cmd_len ; then
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8365 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8368 $as_echo "none" >&6; }
8370 max_cmd_len=$lt_cv_sys_max_cmd_len
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8382 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8383 # Try some XSI features
8386 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8388 && eval 'test $(( 1 + 1 )) -eq 2 \
8389 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8392 $as_echo "$xsi_shell" >&6; }
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8396 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8398 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8400 && lt_shell_append=yes
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8402 $as_echo "$lt_shell_append" >&6; }
8405 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8415 # test EBCDIC or ASCII
8416 case `echo X|tr X '\101'` in
8417 A) # ASCII based system
8418 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8419 lt_SP2NL='tr \040 \012'
8420 lt_NL2SP='tr \015\012 \040\040'
8422 *) # EBCDIC based system
8423 lt_SP2NL='tr \100 \n'
8424 lt_NL2SP='tr \r\n \100\100'
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8437 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8438 if ${lt_cv_to_host_file_cmd+:} false; then :
8439 $as_echo_n "(cached) " >&6
8444 *-*-mingw* ) # actually msys
8445 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8448 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8450 * ) # otherwise, assume *nix
8451 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8457 *-*-mingw* ) # actually msys
8458 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8461 lt_cv_to_host_file_cmd=func_convert_file_noop
8463 * ) # otherwise, assume *nix
8464 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8468 * ) # unhandled hosts (and "normal" native builds)
8469 lt_cv_to_host_file_cmd=func_convert_file_noop
8475 to_host_file_cmd=$lt_cv_to_host_file_cmd
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8477 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8484 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8485 if ${lt_cv_to_tool_file_cmd+:} false; then :
8486 $as_echo_n "(cached) " >&6
8488 #assume ordinary cross tools, or native build.
8489 lt_cv_to_tool_file_cmd=func_convert_file_noop
8493 *-*-mingw* ) # actually msys
8494 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8502 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8504 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8511 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8512 if ${lt_cv_ld_reload_flag+:} false; then :
8513 $as_echo_n "(cached) " >&6
8515 lt_cv_ld_reload_flag='-r'
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8518 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8519 reload_flag=$lt_cv_ld_reload_flag
8520 case $reload_flag in
8522 *) reload_flag=" $reload_flag" ;;
8524 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8526 cygwin* | mingw* | pw32* | cegcc*)
8527 if test "$GCC" != yes; then
8532 if test "$GCC" = yes; then
8533 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8535 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8548 if test -n "$ac_tool_prefix"; then
8549 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8550 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8552 $as_echo_n "checking for $ac_word... " >&6; }
8553 if ${ac_cv_prog_OBJDUMP+:} false; then :
8554 $as_echo_n "(cached) " >&6
8556 if test -n "$OBJDUMP"; then
8557 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563 test -z "$as_dir" && as_dir=.
8564 for ac_exec_ext in '' $ac_executable_extensions; do
8565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8566 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8576 OBJDUMP=$ac_cv_prog_OBJDUMP
8577 if test -n "$OBJDUMP"; then
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8579 $as_echo "$OBJDUMP" >&6; }
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8582 $as_echo "no" >&6; }
8587 if test -z "$ac_cv_prog_OBJDUMP"; then
8588 ac_ct_OBJDUMP=$OBJDUMP
8589 # Extract the first word of "objdump", so it can be a program name with args.
8590 set dummy objdump; ac_word=$2
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8592 $as_echo_n "checking for $ac_word... " >&6; }
8593 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8594 $as_echo_n "(cached) " >&6
8596 if test -n "$ac_ct_OBJDUMP"; then
8597 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603 test -z "$as_dir" && as_dir=.
8604 for ac_exec_ext in '' $ac_executable_extensions; do
8605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8606 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8616 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8617 if test -n "$ac_ct_OBJDUMP"; then
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8619 $as_echo "$ac_ct_OBJDUMP" >&6; }
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622 $as_echo "no" >&6; }
8625 if test "x$ac_ct_OBJDUMP" = x; then
8628 case $cross_compiling:$ac_tool_warned in
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8632 ac_tool_warned=yes ;;
8634 OBJDUMP=$ac_ct_OBJDUMP
8637 OBJDUMP="$ac_cv_prog_OBJDUMP"
8640 test -z "$OBJDUMP" && OBJDUMP=objdump
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8648 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8649 if ${lt_cv_deplibs_check_method+:} false; then :
8650 $as_echo_n "(cached) " >&6
8652 lt_cv_file_magic_cmd='$MAGIC_CMD'
8653 lt_cv_file_magic_test_file=
8654 lt_cv_deplibs_check_method='unknown'
8655 # Need to set the preceding variable on all platforms that support
8656 # interlibrary dependencies.
8657 # 'none' -- dependencies not supported.
8658 # `unknown' -- same as none, but documents that we really don't know.
8659 # 'pass_all' -- all dependencies passed with no checks.
8660 # 'test_compile' -- check by making test program.
8661 # 'file_magic [[regex]]' -- check by looking for files in library path
8662 # which responds to the $file_magic_cmd with a given extended regex.
8663 # If you have `file' or equivalent on your system and you're not sure
8664 # whether `pass_all' will *always* work, you probably want this one.
8668 lt_cv_deplibs_check_method=pass_all
8672 lt_cv_deplibs_check_method=pass_all
8676 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8677 lt_cv_file_magic_cmd='/usr/bin/file -L'
8678 lt_cv_file_magic_test_file=/shlib/libc.so
8682 # func_win32_libid is a shell function defined in ltmain.sh
8683 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8684 lt_cv_file_magic_cmd='func_win32_libid'
8688 # Base MSYS/MinGW do not provide the 'file' command needed by
8689 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8690 # unless we find 'file', for example because we are cross-compiling.
8691 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8692 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8693 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8694 lt_cv_file_magic_cmd='func_win32_libid'
8696 # Keep this pattern in sync with the one in func_win32_libid.
8697 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8698 lt_cv_file_magic_cmd='$OBJDUMP -f'
8703 # use the weaker test based on 'objdump'. See mingw*.
8704 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8705 lt_cv_file_magic_cmd='$OBJDUMP -f'
8708 darwin* | rhapsody*)
8709 lt_cv_deplibs_check_method=pass_all
8712 freebsd* | dragonfly*)
8713 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8716 # Not sure whether the presence of OpenBSD here was a mistake.
8717 # Let's accept both of them until this is cleared up.
8718 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8719 lt_cv_file_magic_cmd=/usr/bin/file
8720 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8724 lt_cv_deplibs_check_method=pass_all
8729 lt_cv_deplibs_check_method=pass_all
8733 lt_cv_deplibs_check_method=pass_all
8736 hpux10.20* | hpux11*)
8737 lt_cv_file_magic_cmd=/usr/bin/file
8740 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8741 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8744 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]'
8745 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8748 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8749 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8755 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8756 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8759 irix5* | irix6* | nonstopux*)
8761 *-32|*"-32 ") libmagic=32-bit;;
8762 *-n32|*"-n32 ") libmagic=N32;;
8763 *-64|*"-64 ") libmagic=64-bit;;
8764 *) libmagic=never-match;;
8766 lt_cv_deplibs_check_method=pass_all
8769 # This must be Linux ELF.
8770 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8771 lt_cv_deplibs_check_method=pass_all
8775 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8776 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8778 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8783 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8784 lt_cv_file_magic_cmd=/usr/bin/file
8785 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8789 lt_cv_deplibs_check_method=pass_all
8793 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8796 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8800 osf3* | osf4* | osf5*)
8801 lt_cv_deplibs_check_method=pass_all
8805 lt_cv_deplibs_check_method=pass_all
8809 lt_cv_deplibs_check_method=pass_all
8812 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8813 lt_cv_deplibs_check_method=pass_all
8817 case $host_vendor in
8819 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]'
8820 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8823 lt_cv_deplibs_check_method=pass_all
8826 lt_cv_file_magic_cmd='/bin/file'
8827 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8830 lt_cv_file_magic_cmd='/bin/file'
8831 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8832 lt_cv_file_magic_test_file=/lib/libc.so
8835 lt_cv_deplibs_check_method=pass_all
8838 lt_cv_deplibs_check_method=pass_all
8844 lt_cv_deplibs_check_method=pass_all
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8850 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8854 if test "$build" = "$host"; then
8857 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8860 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8866 file_magic_cmd=$lt_cv_file_magic_cmd
8867 deplibs_check_method=$lt_cv_deplibs_check_method
8868 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8891 if test -n "$ac_tool_prefix"; then
8892 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8893 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8895 $as_echo_n "checking for $ac_word... " >&6; }
8896 if ${ac_cv_prog_DLLTOOL+:} false; then :
8897 $as_echo_n "(cached) " >&6
8899 if test -n "$DLLTOOL"; then
8900 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8906 test -z "$as_dir" && as_dir=.
8907 for ac_exec_ext in '' $ac_executable_extensions; do
8908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8909 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8919 DLLTOOL=$ac_cv_prog_DLLTOOL
8920 if test -n "$DLLTOOL"; then
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8922 $as_echo "$DLLTOOL" >&6; }
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8925 $as_echo "no" >&6; }
8930 if test -z "$ac_cv_prog_DLLTOOL"; then
8931 ac_ct_DLLTOOL=$DLLTOOL
8932 # Extract the first word of "dlltool", so it can be a program name with args.
8933 set dummy dlltool; ac_word=$2
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8935 $as_echo_n "checking for $ac_word... " >&6; }
8936 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8937 $as_echo_n "(cached) " >&6
8939 if test -n "$ac_ct_DLLTOOL"; then
8940 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946 test -z "$as_dir" && as_dir=.
8947 for ac_exec_ext in '' $ac_executable_extensions; do
8948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8949 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8959 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8960 if test -n "$ac_ct_DLLTOOL"; then
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8962 $as_echo "$ac_ct_DLLTOOL" >&6; }
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8965 $as_echo "no" >&6; }
8968 if test "x$ac_ct_DLLTOOL" = x; then
8971 case $cross_compiling:$ac_tool_warned in
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8975 ac_tool_warned=yes ;;
8977 DLLTOOL=$ac_ct_DLLTOOL
8980 DLLTOOL="$ac_cv_prog_DLLTOOL"
8983 test -z "$DLLTOOL" && DLLTOOL=dlltool
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8992 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8993 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8994 $as_echo_n "(cached) " >&6
8996 lt_cv_sharedlib_from_linklib_cmd='unknown'
8999 cygwin* | mingw* | pw32* | cegcc*)
9000 # two different shell functions defined in ltmain.sh
9001 # decide which to use based on capabilities of $DLLTOOL
9002 case `$DLLTOOL --help 2>&1` in
9003 *--identify-strict*)
9004 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9007 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9012 # fallback: assume linklib IS sharedlib
9013 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9019 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9020 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9021 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9029 if test -n "$ac_tool_prefix"; then
9032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9035 $as_echo_n "checking for $ac_word... " >&6; }
9036 if ${ac_cv_prog_AR+:} false; then :
9037 $as_echo_n "(cached) " >&6
9039 if test -n "$AR"; then
9040 ac_cv_prog_AR="$AR" # Let the user override the test.
9042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9046 test -z "$as_dir" && as_dir=.
9047 for ac_exec_ext in '' $ac_executable_extensions; do
9048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9049 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9060 if test -n "$AR"; then
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9062 $as_echo "$AR" >&6; }
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9065 $as_echo "no" >&6; }
9069 test -n "$AR" && break
9072 if test -z "$AR"; then
9076 # Extract the first word of "$ac_prog", so it can be a program name with args.
9077 set dummy $ac_prog; ac_word=$2
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9079 $as_echo_n "checking for $ac_word... " >&6; }
9080 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9081 $as_echo_n "(cached) " >&6
9083 if test -n "$ac_ct_AR"; then
9084 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9090 test -z "$as_dir" && as_dir=.
9091 for ac_exec_ext in '' $ac_executable_extensions; do
9092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9093 ac_cv_prog_ac_ct_AR="$ac_prog"
9094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9103 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9104 if test -n "$ac_ct_AR"; then
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9106 $as_echo "$ac_ct_AR" >&6; }
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9109 $as_echo "no" >&6; }
9113 test -n "$ac_ct_AR" && break
9116 if test "x$ac_ct_AR" = x; then
9119 case $cross_compiling:$ac_tool_warned in
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9123 ac_tool_warned=yes ;;
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9143 $as_echo_n "checking for archiver @FILE support... " >&6; }
9144 if ${lt_cv_ar_at_file+:} false; then :
9145 $as_echo_n "(cached) " >&6
9148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149 /* end confdefs.h. */
9159 if ac_fn_c_try_compile "$LINENO"; then :
9160 echo conftest.$ac_objext > conftest.lst
9161 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9163 (eval $lt_ar_try) 2>&5
9165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9166 test $ac_status = 0; }
9167 if test "$ac_status" -eq 0; then
9168 # Ensure the archiver fails upon bogus file names.
9169 rm -f conftest.$ac_objext libconftest.a
9170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9171 (eval $lt_ar_try) 2>&5
9173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9174 test $ac_status = 0; }
9175 if test "$ac_status" -ne 0; then
9179 rm -f conftest.* libconftest.a
9182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9186 $as_echo "$lt_cv_ar_at_file" >&6; }
9188 if test "x$lt_cv_ar_at_file" = xno; then
9191 archiver_list_spec=$lt_cv_ar_at_file
9200 if test -n "$ac_tool_prefix"; then
9201 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9202 set dummy ${ac_tool_prefix}strip; ac_word=$2
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9204 $as_echo_n "checking for $ac_word... " >&6; }
9205 if ${ac_cv_prog_STRIP+:} false; then :
9206 $as_echo_n "(cached) " >&6
9208 if test -n "$STRIP"; then
9209 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9215 test -z "$as_dir" && as_dir=.
9216 for ac_exec_ext in '' $ac_executable_extensions; do
9217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9218 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9228 STRIP=$ac_cv_prog_STRIP
9229 if test -n "$STRIP"; then
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9231 $as_echo "$STRIP" >&6; }
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9234 $as_echo "no" >&6; }
9239 if test -z "$ac_cv_prog_STRIP"; then
9241 # Extract the first word of "strip", so it can be a program name with args.
9242 set dummy strip; ac_word=$2
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9244 $as_echo_n "checking for $ac_word... " >&6; }
9245 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9246 $as_echo_n "(cached) " >&6
9248 if test -n "$ac_ct_STRIP"; then
9249 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9255 test -z "$as_dir" && as_dir=.
9256 for ac_exec_ext in '' $ac_executable_extensions; do
9257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9258 ac_cv_prog_ac_ct_STRIP="strip"
9259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9268 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9269 if test -n "$ac_ct_STRIP"; then
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9271 $as_echo "$ac_ct_STRIP" >&6; }
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9274 $as_echo "no" >&6; }
9277 if test "x$ac_ct_STRIP" = x; then
9280 case $cross_compiling:$ac_tool_warned in
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9284 ac_tool_warned=yes ;;
9289 STRIP="$ac_cv_prog_STRIP"
9292 test -z "$STRIP" && STRIP=:
9299 if test -n "$ac_tool_prefix"; then
9300 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9301 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9303 $as_echo_n "checking for $ac_word... " >&6; }
9304 if ${ac_cv_prog_RANLIB+:} false; then :
9305 $as_echo_n "(cached) " >&6
9307 if test -n "$RANLIB"; then
9308 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9314 test -z "$as_dir" && as_dir=.
9315 for ac_exec_ext in '' $ac_executable_extensions; do
9316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9317 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9327 RANLIB=$ac_cv_prog_RANLIB
9328 if test -n "$RANLIB"; then
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9330 $as_echo "$RANLIB" >&6; }
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9333 $as_echo "no" >&6; }
9338 if test -z "$ac_cv_prog_RANLIB"; then
9339 ac_ct_RANLIB=$RANLIB
9340 # Extract the first word of "ranlib", so it can be a program name with args.
9341 set dummy ranlib; ac_word=$2
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9343 $as_echo_n "checking for $ac_word... " >&6; }
9344 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9345 $as_echo_n "(cached) " >&6
9347 if test -n "$ac_ct_RANLIB"; then
9348 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9354 test -z "$as_dir" && as_dir=.
9355 for ac_exec_ext in '' $ac_executable_extensions; do
9356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9357 ac_cv_prog_ac_ct_RANLIB="ranlib"
9358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9367 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9368 if test -n "$ac_ct_RANLIB"; then
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9370 $as_echo "$ac_ct_RANLIB" >&6; }
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9373 $as_echo "no" >&6; }
9376 if test "x$ac_ct_RANLIB" = x; then
9379 case $cross_compiling:$ac_tool_warned in
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9383 ac_tool_warned=yes ;;
9385 RANLIB=$ac_ct_RANLIB
9388 RANLIB="$ac_cv_prog_RANLIB"
9391 test -z "$RANLIB" && RANLIB=:
9398 # Determine commands to create old-style static archives.
9399 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9400 old_postinstall_cmds='chmod 644 $oldlib'
9401 old_postuninstall_cmds=
9403 if test -n "$RANLIB"; then
9406 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9409 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9412 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9417 lock_old_archive_extraction=yes ;;
9419 lock_old_archive_extraction=no ;;
9460 # If no C compiler was specified, use CC.
9463 # If no C compiler flags were specified, use CFLAGS.
9464 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9466 # Allow CC to be a program name with arguments.
9470 # Check for command to grab the raw symbol name followed by C symbol from nm.
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9472 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9473 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9474 $as_echo_n "(cached) " >&6
9477 # These are sane defaults that work on at least a few old systems.
9478 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9480 # Character class describing NM global symbol codes.
9481 symcode='[BCDEGRST]'
9483 # Regexp to match symbols that can be accessed directly from C.
9484 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9486 # Define system-specific variables.
9491 cygwin* | mingw* | pw32* | cegcc*)
9492 symcode='[ABCDGISTW]'
9495 if test "$host_cpu" = ia64; then
9496 symcode='[ABCDEGRST]'
9500 symcode='[BCDEGRST]'
9503 symcode='[BCDEGQRST]'
9514 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9522 # If we're using GNU nm, then use its standard symbol codes.
9523 case `$NM -V 2>&1` in
9524 *GNU* | *'with BFD'*)
9525 symcode='[ABCDGIRSTW]' ;;
9528 # Transform an extracted symbol line into a proper C declaration.
9529 # Some systems (esp. on ia64) link data and code symbols differently,
9530 # so use this general approach.
9531 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9533 # Transform an extracted symbol line into symbol name and symbol address
9534 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9535 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'"
9537 # Handle CRLF in mingw tool chain
9541 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9545 # Try without a prefix underscore, then with it.
9546 for ac_symprfx in "" "_"; do
9548 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9549 symxfrm="\\1 $ac_symprfx\\2 \\2"
9551 # Write the raw and C identifiers.
9552 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9553 # Fake it for dumpbin and say T for any non-static function
9554 # and D for any global variable.
9555 # Also find C++ and __fastcall symbols from MSVC++,
9556 # which start with @ or ?.
9557 lt_cv_sys_global_symbol_pipe="$AWK '"\
9558 " {last_section=section; section=\$ 3};"\
9559 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9560 " \$ 0!~/External *\|/{next};"\
9561 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9562 " {if(hide[section]) next};"\
9563 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9564 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9565 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
9566 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9567 " ' prfx=^$ac_symprfx"
9569 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9571 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9573 # Check to see that the pipe works correctly.
9577 cat > conftest.$ac_ext <<_LT_EOF
9582 void nm_test_func(void);
9583 void nm_test_func(void){}
9587 int main(){nm_test_var='a';nm_test_func();return(0);}
9590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9591 (eval $ac_compile) 2>&5
9593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9594 test $ac_status = 0; }; then
9595 # Now try to grab the symbols.
9597 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9598 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9601 test $ac_status = 0; } && test -s "$nlist"; then
9602 # Try sorting and uniquifying the output.
9603 if sort "$nlist" | uniq > "$nlist"T; then
9604 mv -f "$nlist"T "$nlist"
9609 # Make sure that we snagged all the symbols we need.
9610 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9611 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9612 cat <<_LT_EOF > conftest.$ac_ext
9613 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9614 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9615 /* DATA imports from DLLs on WIN32 con't be const, because runtime
9616 relocations are performed -- see ld's documentation on pseudo-relocs. */
9617 # define LT_DLSYM_CONST
9618 #elif defined(__osf__)
9619 /* This system does not cope well with relocations in const data. */
9620 # define LT_DLSYM_CONST
9622 # define LT_DLSYM_CONST const
9630 # Now generate the symbol file.
9631 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9633 cat <<_LT_EOF >> conftest.$ac_ext
9635 /* The mapping between symbol names and symbols. */
9636 LT_DLSYM_CONST struct {
9640 lt__PROGRAM__LTX_preloaded_symbols[] =
9642 { "@PROGRAM@", (void *) 0 },
9644 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9645 cat <<\_LT_EOF >> conftest.$ac_ext
9649 /* This works around a problem in FreeBSD linker */
9650 #ifdef FREEBSD_WORKAROUND
9651 static const void *lt_preloaded_setup() {
9652 return lt__PROGRAM__LTX_preloaded_symbols;
9660 # Now try linking the two files.
9661 mv conftest.$ac_objext conftstm.$ac_objext
9662 lt_globsym_save_LIBS=$LIBS
9663 lt_globsym_save_CFLAGS=$CFLAGS
9664 LIBS="conftstm.$ac_objext"
9665 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9667 (eval $ac_link) 2>&5
9669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9670 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9673 LIBS=$lt_globsym_save_LIBS
9674 CFLAGS=$lt_globsym_save_CFLAGS
9676 echo "cannot find nm_test_func in $nlist" >&5
9679 echo "cannot find nm_test_var in $nlist" >&5
9682 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9685 echo "$progname: failed program was:" >&5
9686 cat conftest.$ac_ext >&5
9688 rm -rf conftest* conftst*
9690 # Do not use the global_symbol_pipe unless it works.
9691 if test "$pipe_works" = yes; then
9694 lt_cv_sys_global_symbol_pipe=
9700 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9701 lt_cv_sys_global_symbol_to_cdecl=
9703 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9705 $as_echo "failed" >&6; }
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9708 $as_echo "ok" >&6; }
9711 # Response file support.
9712 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9713 nm_file_list_spec='@'
9714 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9715 nm_file_list_spec='@'
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9745 $as_echo_n "checking for sysroot... " >&6; }
9747 # Check whether --with-sysroot was given.
9748 if test "${with_sysroot+set}" = set; then :
9749 withval=$with_sysroot;
9756 case ${with_sysroot} in #(
9758 if test "$GCC" = yes; then
9759 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9763 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9769 $as_echo "${with_sysroot}" >&6; }
9770 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9775 $as_echo "${lt_sysroot:-no}" >&6; }
9781 # Check whether --enable-libtool-lock was given.
9782 if test "${enable_libtool_lock+set}" = set; then :
9783 enableval=$enable_libtool_lock;
9786 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9788 # Some flags need to be propagated to the compiler or linker for good
9792 # Find out which ABI we are using.
9793 echo 'int i;' > conftest.$ac_ext
9794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9795 (eval $ac_compile) 2>&5
9797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9798 test $ac_status = 0; }; then
9799 case `/usr/bin/file conftest.$ac_objext` in
9811 # Find out which ABI we are using.
9812 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9814 (eval $ac_compile) 2>&5
9816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9817 test $ac_status = 0; }; then
9818 if test "$lt_cv_prog_gnu_ld" = yes; then
9819 case `/usr/bin/file conftest.$ac_objext` in
9821 LD="${LD-ld} -melf32bsmip"
9824 LD="${LD-ld} -melf32bmipn32"
9827 LD="${LD-ld} -melf64bmip"
9831 case `/usr/bin/file conftest.$ac_objext` in
9847 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9848 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9849 # Find out which ABI we are using.
9850 echo 'int i;' > conftest.$ac_ext
9851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9852 (eval $ac_compile) 2>&5
9854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9855 test $ac_status = 0; }; then
9856 case `/usr/bin/file conftest.o` in
9859 x86_64-*kfreebsd*-gnu)
9860 LD="${LD-ld} -m elf_i386_fbsd"
9863 LD="${LD-ld} -m elf_i386"
9865 ppc64-*linux*|powerpc64-*linux*)
9866 LD="${LD-ld} -m elf32ppclinux"
9869 LD="${LD-ld} -m elf_s390"
9872 LD="${LD-ld} -m elf32_sparc"
9878 x86_64-*kfreebsd*-gnu)
9879 LD="${LD-ld} -m elf_x86_64_fbsd"
9882 LD="${LD-ld} -m elf_x86_64"
9884 ppc*-*linux*|powerpc*-*linux*)
9885 LD="${LD-ld} -m elf64ppc"
9887 s390*-*linux*|s390*-*tpf*)
9888 LD="${LD-ld} -m elf64_s390"
9891 LD="${LD-ld} -m elf64_sparc"
9901 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9902 SAVE_CFLAGS="$CFLAGS"
9903 CFLAGS="$CFLAGS -belf"
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9905 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9906 if ${lt_cv_cc_needs_belf+:} false; then :
9907 $as_echo_n "(cached) " >&6
9910 ac_cpp='$CPP $CPPFLAGS'
9911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9916 /* end confdefs.h. */
9926 if ac_fn_c_try_link "$LINENO"; then :
9927 lt_cv_cc_needs_belf=yes
9929 lt_cv_cc_needs_belf=no
9931 rm -f core conftest.err conftest.$ac_objext \
9932 conftest$ac_exeext conftest.$ac_ext
9934 ac_cpp='$CPP $CPPFLAGS'
9935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9941 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9942 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9943 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9944 CFLAGS="$SAVE_CFLAGS"
9948 # Find out which ABI we are using.
9949 echo 'int i;' > conftest.$ac_ext
9950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9951 (eval $ac_compile) 2>&5
9953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9954 test $ac_status = 0; }; then
9955 case `/usr/bin/file conftest.o` in
9957 case $lt_cv_prog_gnu_ld in
9958 yes*) LD="${LD-ld} -m elf64_sparc" ;;
9960 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9972 need_locks="$enable_libtool_lock"
9974 if test -n "$ac_tool_prefix"; then
9975 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9976 set dummy ${ac_tool_prefix}mt; ac_word=$2
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9978 $as_echo_n "checking for $ac_word... " >&6; }
9979 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9980 $as_echo_n "(cached) " >&6
9982 if test -n "$MANIFEST_TOOL"; then
9983 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9989 test -z "$as_dir" && as_dir=.
9990 for ac_exec_ext in '' $ac_executable_extensions; do
9991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9992 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10002 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10003 if test -n "$MANIFEST_TOOL"; then
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10005 $as_echo "$MANIFEST_TOOL" >&6; }
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008 $as_echo "no" >&6; }
10013 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10014 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10015 # Extract the first word of "mt", so it can be a program name with args.
10016 set dummy mt; ac_word=$2
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10018 $as_echo_n "checking for $ac_word... " >&6; }
10019 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10020 $as_echo_n "(cached) " >&6
10022 if test -n "$ac_ct_MANIFEST_TOOL"; then
10023 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10026 for as_dir in $PATH
10029 test -z "$as_dir" && as_dir=.
10030 for ac_exec_ext in '' $ac_executable_extensions; do
10031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10032 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10042 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10043 if test -n "$ac_ct_MANIFEST_TOOL"; then
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10045 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10048 $as_echo "no" >&6; }
10051 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10054 case $cross_compiling:$ac_tool_warned in
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10058 ac_tool_warned=yes ;;
10060 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10063 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10066 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10068 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10069 if ${lt_cv_path_mainfest_tool+:} false; then :
10070 $as_echo_n "(cached) " >&6
10072 lt_cv_path_mainfest_tool=no
10073 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10074 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10075 cat conftest.err >&5
10076 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10077 lt_cv_path_mainfest_tool=yes
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10082 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10083 if test "x$lt_cv_path_mainfest_tool" != xyes; then
10093 rhapsody* | darwin*)
10094 if test -n "$ac_tool_prefix"; then
10095 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10096 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10098 $as_echo_n "checking for $ac_word... " >&6; }
10099 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10100 $as_echo_n "(cached) " >&6
10102 if test -n "$DSYMUTIL"; then
10103 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10106 for as_dir in $PATH
10109 test -z "$as_dir" && as_dir=.
10110 for ac_exec_ext in '' $ac_executable_extensions; do
10111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10112 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10122 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10123 if test -n "$DSYMUTIL"; then
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10125 $as_echo "$DSYMUTIL" >&6; }
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10128 $as_echo "no" >&6; }
10133 if test -z "$ac_cv_prog_DSYMUTIL"; then
10134 ac_ct_DSYMUTIL=$DSYMUTIL
10135 # Extract the first word of "dsymutil", so it can be a program name with args.
10136 set dummy dsymutil; ac_word=$2
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10138 $as_echo_n "checking for $ac_word... " >&6; }
10139 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10140 $as_echo_n "(cached) " >&6
10142 if test -n "$ac_ct_DSYMUTIL"; then
10143 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10146 for as_dir in $PATH
10149 test -z "$as_dir" && as_dir=.
10150 for ac_exec_ext in '' $ac_executable_extensions; do
10151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10152 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10162 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10163 if test -n "$ac_ct_DSYMUTIL"; then
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10165 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168 $as_echo "no" >&6; }
10171 if test "x$ac_ct_DSYMUTIL" = x; then
10174 case $cross_compiling:$ac_tool_warned in
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10178 ac_tool_warned=yes ;;
10180 DSYMUTIL=$ac_ct_DSYMUTIL
10183 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10186 if test -n "$ac_tool_prefix"; then
10187 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10188 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10190 $as_echo_n "checking for $ac_word... " >&6; }
10191 if ${ac_cv_prog_NMEDIT+:} false; then :
10192 $as_echo_n "(cached) " >&6
10194 if test -n "$NMEDIT"; then
10195 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10198 for as_dir in $PATH
10201 test -z "$as_dir" && as_dir=.
10202 for ac_exec_ext in '' $ac_executable_extensions; do
10203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10204 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10214 NMEDIT=$ac_cv_prog_NMEDIT
10215 if test -n "$NMEDIT"; then
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10217 $as_echo "$NMEDIT" >&6; }
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10220 $as_echo "no" >&6; }
10225 if test -z "$ac_cv_prog_NMEDIT"; then
10226 ac_ct_NMEDIT=$NMEDIT
10227 # Extract the first word of "nmedit", so it can be a program name with args.
10228 set dummy nmedit; ac_word=$2
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10230 $as_echo_n "checking for $ac_word... " >&6; }
10231 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10232 $as_echo_n "(cached) " >&6
10234 if test -n "$ac_ct_NMEDIT"; then
10235 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10238 for as_dir in $PATH
10241 test -z "$as_dir" && as_dir=.
10242 for ac_exec_ext in '' $ac_executable_extensions; do
10243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10244 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10254 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10255 if test -n "$ac_ct_NMEDIT"; then
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10257 $as_echo "$ac_ct_NMEDIT" >&6; }
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10260 $as_echo "no" >&6; }
10263 if test "x$ac_ct_NMEDIT" = x; then
10266 case $cross_compiling:$ac_tool_warned in
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10270 ac_tool_warned=yes ;;
10272 NMEDIT=$ac_ct_NMEDIT
10275 NMEDIT="$ac_cv_prog_NMEDIT"
10278 if test -n "$ac_tool_prefix"; then
10279 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10280 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10282 $as_echo_n "checking for $ac_word... " >&6; }
10283 if ${ac_cv_prog_LIPO+:} false; then :
10284 $as_echo_n "(cached) " >&6
10286 if test -n "$LIPO"; then
10287 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10290 for as_dir in $PATH
10293 test -z "$as_dir" && as_dir=.
10294 for ac_exec_ext in '' $ac_executable_extensions; do
10295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10296 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10306 LIPO=$ac_cv_prog_LIPO
10307 if test -n "$LIPO"; then
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10309 $as_echo "$LIPO" >&6; }
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10312 $as_echo "no" >&6; }
10317 if test -z "$ac_cv_prog_LIPO"; then
10319 # Extract the first word of "lipo", so it can be a program name with args.
10320 set dummy lipo; ac_word=$2
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10322 $as_echo_n "checking for $ac_word... " >&6; }
10323 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10324 $as_echo_n "(cached) " >&6
10326 if test -n "$ac_ct_LIPO"; then
10327 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10330 for as_dir in $PATH
10333 test -z "$as_dir" && as_dir=.
10334 for ac_exec_ext in '' $ac_executable_extensions; do
10335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10336 ac_cv_prog_ac_ct_LIPO="lipo"
10337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10346 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10347 if test -n "$ac_ct_LIPO"; then
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10349 $as_echo "$ac_ct_LIPO" >&6; }
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10352 $as_echo "no" >&6; }
10355 if test "x$ac_ct_LIPO" = x; then
10358 case $cross_compiling:$ac_tool_warned in
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10362 ac_tool_warned=yes ;;
10367 LIPO="$ac_cv_prog_LIPO"
10370 if test -n "$ac_tool_prefix"; then
10371 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10372 set dummy ${ac_tool_prefix}otool; ac_word=$2
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10374 $as_echo_n "checking for $ac_word... " >&6; }
10375 if ${ac_cv_prog_OTOOL+:} false; then :
10376 $as_echo_n "(cached) " >&6
10378 if test -n "$OTOOL"; then
10379 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10382 for as_dir in $PATH
10385 test -z "$as_dir" && as_dir=.
10386 for ac_exec_ext in '' $ac_executable_extensions; do
10387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10388 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10398 OTOOL=$ac_cv_prog_OTOOL
10399 if test -n "$OTOOL"; then
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10401 $as_echo "$OTOOL" >&6; }
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10404 $as_echo "no" >&6; }
10409 if test -z "$ac_cv_prog_OTOOL"; then
10411 # Extract the first word of "otool", so it can be a program name with args.
10412 set dummy otool; ac_word=$2
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10414 $as_echo_n "checking for $ac_word... " >&6; }
10415 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10416 $as_echo_n "(cached) " >&6
10418 if test -n "$ac_ct_OTOOL"; then
10419 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10422 for as_dir in $PATH
10425 test -z "$as_dir" && as_dir=.
10426 for ac_exec_ext in '' $ac_executable_extensions; do
10427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10428 ac_cv_prog_ac_ct_OTOOL="otool"
10429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10438 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10439 if test -n "$ac_ct_OTOOL"; then
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10441 $as_echo "$ac_ct_OTOOL" >&6; }
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10444 $as_echo "no" >&6; }
10447 if test "x$ac_ct_OTOOL" = x; then
10450 case $cross_compiling:$ac_tool_warned in
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10454 ac_tool_warned=yes ;;
10459 OTOOL="$ac_cv_prog_OTOOL"
10462 if test -n "$ac_tool_prefix"; then
10463 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10464 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10466 $as_echo_n "checking for $ac_word... " >&6; }
10467 if ${ac_cv_prog_OTOOL64+:} false; then :
10468 $as_echo_n "(cached) " >&6
10470 if test -n "$OTOOL64"; then
10471 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10474 for as_dir in $PATH
10477 test -z "$as_dir" && as_dir=.
10478 for ac_exec_ext in '' $ac_executable_extensions; do
10479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10480 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10490 OTOOL64=$ac_cv_prog_OTOOL64
10491 if test -n "$OTOOL64"; then
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10493 $as_echo "$OTOOL64" >&6; }
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10496 $as_echo "no" >&6; }
10501 if test -z "$ac_cv_prog_OTOOL64"; then
10502 ac_ct_OTOOL64=$OTOOL64
10503 # Extract the first word of "otool64", so it can be a program name with args.
10504 set dummy otool64; ac_word=$2
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10506 $as_echo_n "checking for $ac_word... " >&6; }
10507 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10508 $as_echo_n "(cached) " >&6
10510 if test -n "$ac_ct_OTOOL64"; then
10511 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10514 for as_dir in $PATH
10517 test -z "$as_dir" && as_dir=.
10518 for ac_exec_ext in '' $ac_executable_extensions; do
10519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10520 ac_cv_prog_ac_ct_OTOOL64="otool64"
10521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10530 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10531 if test -n "$ac_ct_OTOOL64"; then
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10533 $as_echo "$ac_ct_OTOOL64" >&6; }
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10536 $as_echo "no" >&6; }
10539 if test "x$ac_ct_OTOOL64" = x; then
10542 case $cross_compiling:$ac_tool_warned in
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10546 ac_tool_warned=yes ;;
10548 OTOOL64=$ac_ct_OTOOL64
10551 OTOOL64="$ac_cv_prog_OTOOL64"
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10581 $as_echo_n "checking for -single_module linker flag... " >&6; }
10582 if ${lt_cv_apple_cc_single_mod+:} false; then :
10583 $as_echo_n "(cached) " >&6
10585 lt_cv_apple_cc_single_mod=no
10586 if test -z "${LT_MULTI_MODULE}"; then
10587 # By default we will add the -single_module flag. You can override
10588 # by either setting the environment variable LT_MULTI_MODULE
10589 # non-empty at configure time, or by adding -multi_module to the
10591 rm -rf libconftest.dylib*
10592 echo "int foo(void){return 1;}" > conftest.c
10593 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10594 -dynamiclib -Wl,-single_module conftest.c" >&5
10595 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10596 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10598 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10599 lt_cv_apple_cc_single_mod=yes
10601 cat conftest.err >&5
10603 rm -rf libconftest.dylib*
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10608 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10610 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10611 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10612 $as_echo_n "(cached) " >&6
10614 lt_cv_ld_exported_symbols_list=no
10615 save_LDFLAGS=$LDFLAGS
10616 echo "_main" > conftest.sym
10617 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10619 /* end confdefs.h. */
10629 if ac_fn_c_try_link "$LINENO"; then :
10630 lt_cv_ld_exported_symbols_list=yes
10632 lt_cv_ld_exported_symbols_list=no
10634 rm -f core conftest.err conftest.$ac_objext \
10635 conftest$ac_exeext conftest.$ac_ext
10636 LDFLAGS="$save_LDFLAGS"
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10640 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10642 $as_echo_n "checking for -force_load linker flag... " >&6; }
10643 if ${lt_cv_ld_force_load+:} false; then :
10644 $as_echo_n "(cached) " >&6
10646 lt_cv_ld_force_load=no
10647 cat > conftest.c << _LT_EOF
10648 int forced_loaded() { return 2;}
10650 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10651 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10652 echo "$AR cru libconftest.a conftest.o" >&5
10653 $AR cru libconftest.a conftest.o 2>&5
10654 echo "$RANLIB libconftest.a" >&5
10655 $RANLIB libconftest.a 2>&5
10656 cat > conftest.c << _LT_EOF
10657 int main() { return 0;}
10659 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10660 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10662 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
10663 lt_cv_ld_force_load=yes
10665 cat conftest.err >&5
10667 rm -f conftest.err libconftest.a conftest conftest.c
10668 rm -rf conftest.dSYM
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10672 $as_echo "$lt_cv_ld_force_load" >&6; }
10674 rhapsody* | darwin1.[012])
10675 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10677 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10678 darwin*) # darwin 5.x on
10679 # if running on 10.5 or later, the deployment target defaults
10680 # to the OS version, if on x86, and 10.4, the deployment
10681 # target defaults to 10.4. Don't you love it?
10682 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10683 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10684 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10686 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10688 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10692 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10693 _lt_dar_single_mod='$single_module'
10695 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10696 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10698 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10700 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10701 _lt_dsymutil='~$DSYMUTIL $lib || :'
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10709 $as_echo_n "checking for ANSI C header files... " >&6; }
10710 if ${ac_cv_header_stdc+:} false; then :
10711 $as_echo_n "(cached) " >&6
10713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10714 /* end confdefs.h. */
10715 #include <stdlib.h>
10716 #include <stdarg.h>
10717 #include <string.h>
10728 if ac_fn_c_try_compile "$LINENO"; then :
10729 ac_cv_header_stdc=yes
10731 ac_cv_header_stdc=no
10733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10735 if test $ac_cv_header_stdc = yes; then
10736 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h. */
10739 #include <string.h>
10742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10743 $EGREP "memchr" >/dev/null 2>&1; then :
10746 ac_cv_header_stdc=no
10752 if test $ac_cv_header_stdc = yes; then
10753 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h. */
10756 #include <stdlib.h>
10759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10760 $EGREP "free" >/dev/null 2>&1; then :
10763 ac_cv_header_stdc=no
10769 if test $ac_cv_header_stdc = yes; then
10770 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10771 if test "$cross_compiling" = yes; then :
10774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10775 /* end confdefs.h. */
10777 #include <stdlib.h>
10778 #if ((' ' & 0x0FF) == 0x020)
10779 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10780 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10782 # define ISLOWER(c) \
10783 (('a' <= (c) && (c) <= 'i') \
10784 || ('j' <= (c) && (c) <= 'r') \
10785 || ('s' <= (c) && (c) <= 'z'))
10786 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10789 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10794 for (i = 0; i < 256; i++)
10795 if (XOR (islower (i), ISLOWER (i))
10796 || toupper (i) != TOUPPER (i))
10801 if ac_fn_c_try_run "$LINENO"; then :
10804 ac_cv_header_stdc=no
10806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10807 conftest.$ac_objext conftest.beam conftest.$ac_ext
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10813 $as_echo "$ac_cv_header_stdc" >&6; }
10814 if test $ac_cv_header_stdc = yes; then
10816 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10820 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10821 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10822 inttypes.h stdint.h unistd.h
10824 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10825 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10827 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10828 cat >>confdefs.h <<_ACEOF
10829 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10837 for ac_header in dlfcn.h
10839 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10841 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10842 cat >>confdefs.h <<_ACEOF
10843 #define HAVE_DLFCN_H 1
10852 func_stripname_cnf ()
10855 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
10856 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
10858 } # func_stripname_cnf
10865 # Check whether --enable-static was given.
10866 if test "${enable_static+set}" = set; then :
10867 enableval=$enable_static; p=${PACKAGE-default}
10869 yes) enable_static=yes ;;
10870 no) enable_static=no ;;
10873 # Look at the argument we got. We use all the common list separators.
10874 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10875 for pkg in $enableval; do
10877 if test "X$pkg" = "X$p"; then
10894 enable_win32_dll=yes
10897 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10898 if test -n "$ac_tool_prefix"; then
10899 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10900 set dummy ${ac_tool_prefix}as; ac_word=$2
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10902 $as_echo_n "checking for $ac_word... " >&6; }
10903 if ${ac_cv_prog_AS+:} false; then :
10904 $as_echo_n "(cached) " >&6
10906 if test -n "$AS"; then
10907 ac_cv_prog_AS="$AS" # Let the user override the test.
10909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10910 for as_dir in $PATH
10913 test -z "$as_dir" && as_dir=.
10914 for ac_exec_ext in '' $ac_executable_extensions; do
10915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10916 ac_cv_prog_AS="${ac_tool_prefix}as"
10917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10927 if test -n "$AS"; then
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10929 $as_echo "$AS" >&6; }
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10932 $as_echo "no" >&6; }
10937 if test -z "$ac_cv_prog_AS"; then
10939 # Extract the first word of "as", so it can be a program name with args.
10940 set dummy as; ac_word=$2
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10942 $as_echo_n "checking for $ac_word... " >&6; }
10943 if ${ac_cv_prog_ac_ct_AS+:} false; then :
10944 $as_echo_n "(cached) " >&6
10946 if test -n "$ac_ct_AS"; then
10947 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10950 for as_dir in $PATH
10953 test -z "$as_dir" && as_dir=.
10954 for ac_exec_ext in '' $ac_executable_extensions; do
10955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10956 ac_cv_prog_ac_ct_AS="as"
10957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10966 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10967 if test -n "$ac_ct_AS"; then
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10969 $as_echo "$ac_ct_AS" >&6; }
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10972 $as_echo "no" >&6; }
10975 if test "x$ac_ct_AS" = x; then
10978 case $cross_compiling:$ac_tool_warned in
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10982 ac_tool_warned=yes ;;
10987 AS="$ac_cv_prog_AS"
10990 if test -n "$ac_tool_prefix"; then
10991 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10992 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10994 $as_echo_n "checking for $ac_word... " >&6; }
10995 if ${ac_cv_prog_DLLTOOL+:} false; then :
10996 $as_echo_n "(cached) " >&6
10998 if test -n "$DLLTOOL"; then
10999 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11002 for as_dir in $PATH
11005 test -z "$as_dir" && as_dir=.
11006 for ac_exec_ext in '' $ac_executable_extensions; do
11007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11008 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11018 DLLTOOL=$ac_cv_prog_DLLTOOL
11019 if test -n "$DLLTOOL"; then
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11021 $as_echo "$DLLTOOL" >&6; }
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11024 $as_echo "no" >&6; }
11029 if test -z "$ac_cv_prog_DLLTOOL"; then
11030 ac_ct_DLLTOOL=$DLLTOOL
11031 # Extract the first word of "dlltool", so it can be a program name with args.
11032 set dummy dlltool; ac_word=$2
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11034 $as_echo_n "checking for $ac_word... " >&6; }
11035 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11036 $as_echo_n "(cached) " >&6
11038 if test -n "$ac_ct_DLLTOOL"; then
11039 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11042 for as_dir in $PATH
11045 test -z "$as_dir" && as_dir=.
11046 for ac_exec_ext in '' $ac_executable_extensions; do
11047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11048 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11058 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11059 if test -n "$ac_ct_DLLTOOL"; then
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11061 $as_echo "$ac_ct_DLLTOOL" >&6; }
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11064 $as_echo "no" >&6; }
11067 if test "x$ac_ct_DLLTOOL" = x; then
11070 case $cross_compiling:$ac_tool_warned in
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11074 ac_tool_warned=yes ;;
11076 DLLTOOL=$ac_ct_DLLTOOL
11079 DLLTOOL="$ac_cv_prog_DLLTOOL"
11082 if test -n "$ac_tool_prefix"; then
11083 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11084 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11086 $as_echo_n "checking for $ac_word... " >&6; }
11087 if ${ac_cv_prog_OBJDUMP+:} false; then :
11088 $as_echo_n "(cached) " >&6
11090 if test -n "$OBJDUMP"; then
11091 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094 for as_dir in $PATH
11097 test -z "$as_dir" && as_dir=.
11098 for ac_exec_ext in '' $ac_executable_extensions; do
11099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11100 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11110 OBJDUMP=$ac_cv_prog_OBJDUMP
11111 if test -n "$OBJDUMP"; then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11113 $as_echo "$OBJDUMP" >&6; }
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116 $as_echo "no" >&6; }
11121 if test -z "$ac_cv_prog_OBJDUMP"; then
11122 ac_ct_OBJDUMP=$OBJDUMP
11123 # Extract the first word of "objdump", so it can be a program name with args.
11124 set dummy objdump; ac_word=$2
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11126 $as_echo_n "checking for $ac_word... " >&6; }
11127 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11128 $as_echo_n "(cached) " >&6
11130 if test -n "$ac_ct_OBJDUMP"; then
11131 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134 for as_dir in $PATH
11137 test -z "$as_dir" && as_dir=.
11138 for ac_exec_ext in '' $ac_executable_extensions; do
11139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11140 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11150 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11151 if test -n "$ac_ct_OBJDUMP"; then
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11153 $as_echo "$ac_ct_OBJDUMP" >&6; }
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156 $as_echo "no" >&6; }
11159 if test "x$ac_ct_OBJDUMP" = x; then
11162 case $cross_compiling:$ac_tool_warned in
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11166 ac_tool_warned=yes ;;
11168 OBJDUMP=$ac_ct_OBJDUMP
11171 OBJDUMP="$ac_cv_prog_OBJDUMP"
11177 test -z "$AS" && AS=as
11183 test -z "$DLLTOOL" && DLLTOOL=dlltool
11189 test -z "$OBJDUMP" && OBJDUMP=objdump
11201 # Check whether --enable-shared was given.
11202 if test "${enable_shared+set}" = set; then :
11203 enableval=$enable_shared; p=${PACKAGE-default}
11205 yes) enable_shared=yes ;;
11206 no) enable_shared=no ;;
11209 # Look at the argument we got. We use all the common list separators.
11210 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11211 for pkg in $enableval; do
11213 if test "X$pkg" = "X$p"; then
11234 # Check whether --with-pic was given.
11235 if test "${with_pic+set}" = set; then :
11236 withval=$with_pic; pic_mode="$withval"
11242 test -z "$pic_mode" && pic_mode=default
11250 # Check whether --enable-fast-install was given.
11251 if test "${enable_fast_install+set}" = set; then :
11252 enableval=$enable_fast_install; p=${PACKAGE-default}
11254 yes) enable_fast_install=yes ;;
11255 no) enable_fast_install=no ;;
11257 enable_fast_install=no
11258 # Look at the argument we got. We use all the common list separators.
11259 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11260 for pkg in $enableval; do
11262 if test "X$pkg" = "X$p"; then
11263 enable_fast_install=yes
11270 enable_fast_install=yes
11283 # This can be used to rebuild libtool when needed
11284 LIBTOOL_DEPS="$ltmain"
11286 # Always use our own libtool.
11287 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11314 test -z "$LN_S" && LN_S="ln -s"
11329 if test -n "${ZSH_VERSION+set}" ; then
11330 setopt NO_GLOB_SUBST
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11334 $as_echo_n "checking for objdir... " >&6; }
11335 if ${lt_cv_objdir+:} false; then :
11336 $as_echo_n "(cached) " >&6
11338 rm -f .libs 2>/dev/null
11339 mkdir .libs 2>/dev/null
11340 if test -d .libs; then
11343 # MS-DOS does not allow filenames that begin with a dot.
11346 rmdir .libs 2>/dev/null
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11349 $as_echo "$lt_cv_objdir" >&6; }
11350 objdir=$lt_cv_objdir
11356 cat >>confdefs.h <<_ACEOF
11357 #define LT_OBJDIR "$lt_cv_objdir/"
11365 # AIX sometimes has problems with the GCC collect2 program. For some
11366 # reason, if we set the COLLECT_NAMES environment variable, the problems
11367 # vanish in a puff of smoke.
11368 if test "X${COLLECT_NAMES+set}" != Xset; then
11370 export COLLECT_NAMES
11375 # Global variables:
11377 can_build_shared=yes
11379 # All known linkers require a `.a' archive for static linking (except MSVC,
11380 # which needs '.lib').
11383 with_gnu_ld="$lt_cv_prog_gnu_ld"
11386 old_CFLAGS="$CFLAGS"
11388 # Set sane defaults for various variables
11389 test -z "$CC" && CC=cc
11390 test -z "$LTCC" && LTCC=$CC
11391 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11392 test -z "$LD" && LD=ld
11393 test -z "$ac_objext" && ac_objext=o
11395 for cc_temp in $compiler""; do
11397 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11398 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11403 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11406 # Only perform the check for file, if the check method requires it
11407 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11408 case $deplibs_check_method in
11410 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11412 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11413 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11414 $as_echo_n "(cached) " >&6
11418 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11421 lt_save_MAGIC_CMD="$MAGIC_CMD"
11422 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11423 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11424 for ac_dir in $ac_dummy; do
11426 test -z "$ac_dir" && ac_dir=.
11427 if test -f $ac_dir/${ac_tool_prefix}file; then
11428 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11429 if test -n "$file_magic_test_file"; then
11430 case $deplibs_check_method in
11432 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11433 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11434 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11435 $EGREP "$file_magic_regex" > /dev/null; then
11440 *** Warning: the command libtool uses to detect shared libraries,
11441 *** $file_magic_cmd, produces output that libtool cannot recognize.
11442 *** The result is that libtool may fail to recognize shared libraries
11443 *** as such. This will affect the creation of libtool libraries that
11444 *** depend on shared libraries, but programs linked with such libtool
11445 *** libraries will work regardless of this problem. Nevertheless, you
11446 *** may want to report the problem to your system manager and/or to
11447 *** bug-libtool@gnu.org
11457 MAGIC_CMD="$lt_save_MAGIC_CMD"
11462 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11463 if test -n "$MAGIC_CMD"; then
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11465 $as_echo "$MAGIC_CMD" >&6; }
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468 $as_echo "no" >&6; }
11475 if test -z "$lt_cv_path_MAGIC_CMD"; then
11476 if test -n "$ac_tool_prefix"; then
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11478 $as_echo_n "checking for file... " >&6; }
11479 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11480 $as_echo_n "(cached) " >&6
11484 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11487 lt_save_MAGIC_CMD="$MAGIC_CMD"
11488 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11489 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11490 for ac_dir in $ac_dummy; do
11492 test -z "$ac_dir" && ac_dir=.
11493 if test -f $ac_dir/file; then
11494 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11495 if test -n "$file_magic_test_file"; then
11496 case $deplibs_check_method in
11498 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11499 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11500 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11501 $EGREP "$file_magic_regex" > /dev/null; then
11506 *** Warning: the command libtool uses to detect shared libraries,
11507 *** $file_magic_cmd, produces output that libtool cannot recognize.
11508 *** The result is that libtool may fail to recognize shared libraries
11509 *** as such. This will affect the creation of libtool libraries that
11510 *** depend on shared libraries, but programs linked with such libtool
11511 *** libraries will work regardless of this problem. Nevertheless, you
11512 *** may want to report the problem to your system manager and/or to
11513 *** bug-libtool@gnu.org
11523 MAGIC_CMD="$lt_save_MAGIC_CMD"
11528 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11529 if test -n "$MAGIC_CMD"; then
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11531 $as_echo "$MAGIC_CMD" >&6; }
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534 $as_echo "no" >&6; }
11547 # Use C for the default configuration in the libtool script
11551 ac_cpp='$CPP $CPPFLAGS'
11552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11557 # Source file extension for C test sources.
11560 # Object file extension for compiled C test sources.
11564 # Code to be used in simple compile tests
11565 lt_simple_compile_test_code="int some_variable = 0;"
11567 # Code to be used in simple link tests
11568 lt_simple_link_test_code='int main(){return(0);}'
11576 # If no C compiler was specified, use CC.
11579 # If no C compiler flags were specified, use CFLAGS.
11580 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11582 # Allow CC to be a program name with arguments.
11585 # Save the default compiler, since it gets overwritten when the other
11586 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11587 compiler_DEFAULT=$CC
11589 # save warnings/boilerplate of simple test code
11590 ac_outfile=conftest.$ac_objext
11591 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11592 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11593 _lt_compiler_boilerplate=`cat conftest.err`
11596 ac_outfile=conftest.$ac_objext
11597 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11598 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11599 _lt_linker_boilerplate=`cat conftest.err`
11604 ## There is no encapsulation within the following macros, do not change
11605 ## the running order or otherwise move them around unless you know exactly
11606 ## what you are doing...
11607 if test -n "$compiler"; then
11609 lt_prog_compiler_no_builtin_flag=
11611 if test "$GCC" = yes; then
11612 case $cc_basename in
11614 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11616 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11620 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11621 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11622 $as_echo_n "(cached) " >&6
11624 lt_cv_prog_compiler_rtti_exceptions=no
11625 ac_outfile=conftest.$ac_objext
11626 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11627 lt_compiler_flag="-fno-rtti -fno-exceptions"
11628 # Insert the option either (1) after the last *FLAGS variable, or
11629 # (2) before a word containing "conftest.", or (3) at the end.
11630 # Note that $ac_compile itself does not contain backslashes and begins
11631 # with a dollar sign (not a hyphen), so the echo should work correctly.
11632 # The option is referenced via a variable to avoid confusing sed.
11633 lt_compile=`echo "$ac_compile" | $SED \
11634 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11635 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11636 -e 's:$: $lt_compiler_flag:'`
11637 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11638 (eval "$lt_compile" 2>conftest.err)
11640 cat conftest.err >&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 if (exit $ac_status) && test -s "$ac_outfile"; then
11643 # The compiler can only warn and ignore the option if not recognized
11644 # So say no if there are warnings other than the usual output.
11645 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11646 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11647 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11648 lt_cv_prog_compiler_rtti_exceptions=yes
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11655 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11657 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11658 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11670 lt_prog_compiler_wl=
11671 lt_prog_compiler_pic=
11672 lt_prog_compiler_static=
11675 if test "$GCC" = yes; then
11676 lt_prog_compiler_wl='-Wl,'
11677 lt_prog_compiler_static='-static'
11681 # All AIX code is PIC.
11682 if test "$host_cpu" = ia64; then
11683 # AIX 5 now supports IA64 processor
11684 lt_prog_compiler_static='-Bstatic'
11691 # see comment about AmigaOS4 .so support
11692 lt_prog_compiler_pic='-fPIC'
11695 # FIXME: we need at least 68020 code to build shared libraries, but
11696 # adding the `-m68020' flag to GCC prevents building anything better,
11698 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11703 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11704 # PIC is the default for these OSes.
11707 mingw* | cygwin* | pw32* | os2* | cegcc*)
11708 # This hack is so that the source file can tell whether it is being
11709 # built for inclusion in a dll (and should export symbols for example).
11710 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11711 # (--disable-auto-import) libraries
11712 lt_prog_compiler_pic='-DDLL_EXPORT'
11715 darwin* | rhapsody*)
11716 # PIC is the default on this platform
11717 # Common symbols not allowed in MH_DYLIB files
11718 lt_prog_compiler_pic='-fno-common'
11722 # PIC is the default for Haiku.
11723 # The "-static" flag exists, but is broken.
11724 lt_prog_compiler_static=
11728 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11729 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11730 # sets the default TLS model and affects inlining.
11736 lt_prog_compiler_pic='-fPIC'
11742 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11743 # Instead, we relocate shared libraries at runtime.
11747 # Just because we use GCC doesn't mean we suddenly get shared libraries
11748 # on systems that don't support them.
11749 lt_prog_compiler_can_build_shared=no
11754 # QNX uses GNU C++, but need to define -shared option too, otherwise
11755 # it will coredump.
11756 lt_prog_compiler_pic='-fPIC -shared'
11760 if test -d /usr/nec; then
11761 lt_prog_compiler_pic=-Kconform_pic
11766 lt_prog_compiler_pic='-fPIC'
11770 case $cc_basename in
11771 nvcc*) # Cuda Compiler Driver 2.2
11772 lt_prog_compiler_wl='-Xlinker '
11773 lt_prog_compiler_pic='-Xcompiler -fPIC'
11777 # PORTME Check for flag to pass linker flags through the system compiler.
11780 lt_prog_compiler_wl='-Wl,'
11781 if test "$host_cpu" = ia64; then
11782 # AIX 5 now supports IA64 processor
11783 lt_prog_compiler_static='-Bstatic'
11785 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11789 mingw* | cygwin* | pw32* | os2* | cegcc*)
11790 # This hack is so that the source file can tell whether it is being
11791 # built for inclusion in a dll (and should export symbols for example).
11792 lt_prog_compiler_pic='-DDLL_EXPORT'
11795 hpux9* | hpux10* | hpux11*)
11796 lt_prog_compiler_wl='-Wl,'
11797 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11798 # not for PA HP-UX.
11804 lt_prog_compiler_pic='+Z'
11807 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11808 lt_prog_compiler_static='${wl}-a ${wl}archive'
11811 irix5* | irix6* | nonstopux*)
11812 lt_prog_compiler_wl='-Wl,'
11813 # PIC (with -KPIC) is the default.
11814 lt_prog_compiler_static='-non_shared'
11817 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11818 case $cc_basename in
11819 # old Intel for x86_64 which still supported -KPIC.
11821 lt_prog_compiler_wl='-Wl,'
11822 lt_prog_compiler_pic='-KPIC'
11823 lt_prog_compiler_static='-static'
11825 # icc used to be incompatible with GCC.
11826 # ICC 10 doesn't accept -KPIC any more.
11828 lt_prog_compiler_wl='-Wl,'
11829 lt_prog_compiler_pic='-fPIC'
11830 lt_prog_compiler_static='-static'
11832 # Lahey Fortran 8.1.
11834 lt_prog_compiler_wl='-Wl,'
11835 lt_prog_compiler_pic='--shared'
11836 lt_prog_compiler_static='--static'
11839 # NAG Fortran compiler
11840 lt_prog_compiler_wl='-Wl,-Wl,,'
11841 lt_prog_compiler_pic='-PIC'
11842 lt_prog_compiler_static='-Bstatic'
11844 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11845 # Portland Group compilers (*not* the Pentium gcc compiler,
11846 # which looks to be a dead project)
11847 lt_prog_compiler_wl='-Wl,'
11848 lt_prog_compiler_pic='-fpic'
11849 lt_prog_compiler_static='-Bstatic'
11852 lt_prog_compiler_wl='-Wl,'
11853 # All Alpha code is PIC.
11854 lt_prog_compiler_static='-non_shared'
11856 xl* | bgxl* | bgf* | mpixl*)
11857 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11858 lt_prog_compiler_wl='-Wl,'
11859 lt_prog_compiler_pic='-qpic'
11860 lt_prog_compiler_static='-qstaticlink'
11863 case `$CC -V 2>&1 | sed 5q` in
11864 *Sun\ F* | *Sun*Fortran*)
11865 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11866 lt_prog_compiler_pic='-KPIC'
11867 lt_prog_compiler_static='-Bstatic'
11868 lt_prog_compiler_wl=''
11872 lt_prog_compiler_pic='-KPIC'
11873 lt_prog_compiler_static='-Bstatic'
11874 lt_prog_compiler_wl='-Wl,'
11882 lt_prog_compiler_pic='-KPIC'
11883 lt_prog_compiler_static='-Bstatic'
11887 # QNX uses GNU C++, but need to define -shared option too, otherwise
11888 # it will coredump.
11889 lt_prog_compiler_pic='-fPIC -shared'
11892 osf3* | osf4* | osf5*)
11893 lt_prog_compiler_wl='-Wl,'
11894 # All OSF/1 code is PIC.
11895 lt_prog_compiler_static='-non_shared'
11899 lt_prog_compiler_static='-non_shared'
11903 lt_prog_compiler_pic='-KPIC'
11904 lt_prog_compiler_static='-Bstatic'
11905 case $cc_basename in
11906 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11907 lt_prog_compiler_wl='-Qoption ld ';;
11909 lt_prog_compiler_wl='-Wl,';;
11914 lt_prog_compiler_wl='-Qoption ld '
11915 lt_prog_compiler_pic='-PIC'
11916 lt_prog_compiler_static='-Bstatic'
11919 sysv4 | sysv4.2uw2* | sysv4.3*)
11920 lt_prog_compiler_wl='-Wl,'
11921 lt_prog_compiler_pic='-KPIC'
11922 lt_prog_compiler_static='-Bstatic'
11926 if test -d /usr/nec ;then
11927 lt_prog_compiler_pic='-Kconform_pic'
11928 lt_prog_compiler_static='-Bstatic'
11932 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11933 lt_prog_compiler_wl='-Wl,'
11934 lt_prog_compiler_pic='-KPIC'
11935 lt_prog_compiler_static='-Bstatic'
11939 lt_prog_compiler_wl='-Wl,'
11940 lt_prog_compiler_can_build_shared=no
11944 lt_prog_compiler_pic='-pic'
11945 lt_prog_compiler_static='-Bstatic'
11949 lt_prog_compiler_can_build_shared=no
11955 # For platforms which do not support PIC, -DPIC is meaningless:
11957 lt_prog_compiler_pic=
11960 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11965 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11966 if ${lt_cv_prog_compiler_pic+:} false; then :
11967 $as_echo_n "(cached) " >&6
11969 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11972 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11973 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11976 # Check to make sure the PIC flag actually works.
11978 if test -n "$lt_prog_compiler_pic"; then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11980 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11981 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11982 $as_echo_n "(cached) " >&6
11984 lt_cv_prog_compiler_pic_works=no
11985 ac_outfile=conftest.$ac_objext
11986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11987 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11988 # Insert the option either (1) after the last *FLAGS variable, or
11989 # (2) before a word containing "conftest.", or (3) at the end.
11990 # Note that $ac_compile itself does not contain backslashes and begins
11991 # with a dollar sign (not a hyphen), so the echo should work correctly.
11992 # The option is referenced via a variable to avoid confusing sed.
11993 lt_compile=`echo "$ac_compile" | $SED \
11994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11996 -e 's:$: $lt_compiler_flag:'`
11997 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11998 (eval "$lt_compile" 2>conftest.err)
12000 cat conftest.err >&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 if (exit $ac_status) && test -s "$ac_outfile"; then
12003 # The compiler can only warn and ignore the option if not recognized
12004 # So say no if there are warnings other than the usual output.
12005 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12007 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12008 lt_cv_prog_compiler_pic_works=yes
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12015 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12017 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12018 case $lt_prog_compiler_pic in
12020 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12023 lt_prog_compiler_pic=
12024 lt_prog_compiler_can_build_shared=no
12040 # Check to make sure the static flag actually works.
12042 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12044 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12045 if ${lt_cv_prog_compiler_static_works+:} false; then :
12046 $as_echo_n "(cached) " >&6
12048 lt_cv_prog_compiler_static_works=no
12049 save_LDFLAGS="$LDFLAGS"
12050 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12051 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12052 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12053 # The linker can only warn and ignore the option if not recognized
12054 # So say no if there are warnings
12055 if test -s conftest.err; then
12056 # Append any errors to the config.log.
12057 cat conftest.err 1>&5
12058 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12059 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12060 if diff conftest.exp conftest.er2 >/dev/null; then
12061 lt_cv_prog_compiler_static_works=yes
12064 lt_cv_prog_compiler_static_works=yes
12068 LDFLAGS="$save_LDFLAGS"
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12072 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12074 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12077 lt_prog_compiler_static=
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12087 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12088 if ${lt_cv_prog_compiler_c_o+:} false; then :
12089 $as_echo_n "(cached) " >&6
12091 lt_cv_prog_compiler_c_o=no
12092 $RM -r conftest 2>/dev/null
12096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12098 lt_compiler_flag="-o out/conftest2.$ac_objext"
12099 # Insert the option either (1) after the last *FLAGS variable, or
12100 # (2) before a word containing "conftest.", or (3) at the end.
12101 # Note that $ac_compile itself does not contain backslashes and begins
12102 # with a dollar sign (not a hyphen), so the echo should work correctly.
12103 lt_compile=`echo "$ac_compile" | $SED \
12104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12106 -e 's:$: $lt_compiler_flag:'`
12107 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12108 (eval "$lt_compile" 2>out/conftest.err)
12110 cat out/conftest.err >&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12114 # The compiler can only warn and ignore the option if not recognized
12115 # So say no if there are warnings
12116 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12117 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12118 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12119 lt_cv_prog_compiler_c_o=yes
12124 # SGI C++ compiler will create directory out/ii_files/ for
12125 # template instantiation
12126 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12127 $RM out/* && rmdir out
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12134 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12142 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12143 if ${lt_cv_prog_compiler_c_o+:} false; then :
12144 $as_echo_n "(cached) " >&6
12146 lt_cv_prog_compiler_c_o=no
12147 $RM -r conftest 2>/dev/null
12151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12153 lt_compiler_flag="-o out/conftest2.$ac_objext"
12154 # Insert the option either (1) after the last *FLAGS variable, or
12155 # (2) before a word containing "conftest.", or (3) at the end.
12156 # Note that $ac_compile itself does not contain backslashes and begins
12157 # with a dollar sign (not a hyphen), so the echo should work correctly.
12158 lt_compile=`echo "$ac_compile" | $SED \
12159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12161 -e 's:$: $lt_compiler_flag:'`
12162 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12163 (eval "$lt_compile" 2>out/conftest.err)
12165 cat out/conftest.err >&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12169 # The compiler can only warn and ignore the option if not recognized
12170 # So say no if there are warnings
12171 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12172 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12173 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12174 lt_cv_prog_compiler_c_o=yes
12179 # SGI C++ compiler will create directory out/ii_files/ for
12180 # template instantiation
12181 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12182 $RM out/* && rmdir out
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12189 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12194 hard_links="nottested"
12195 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12196 # do not overwrite the value of need_locks provided by the user
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12198 $as_echo_n "checking if we can lock with hard links... " >&6; }
12201 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12203 ln conftest.a conftest.b 2>&5 || hard_links=no
12204 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12206 $as_echo "$hard_links" >&6; }
12207 if test "$hard_links" = no; then
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12209 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12222 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12225 allow_undefined_flag=
12226 always_export_symbols=no
12228 archive_expsym_cmds=
12229 compiler_needs_object=no
12230 enable_shared_with_static_runtimes=no
12231 export_dynamic_flag_spec=
12232 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12233 hardcode_automatic=no
12235 hardcode_direct_absolute=no
12236 hardcode_libdir_flag_spec=
12237 hardcode_libdir_flag_spec_ld=
12238 hardcode_libdir_separator=
12239 hardcode_minus_L=no
12240 hardcode_shlibpath_var=unsupported
12242 link_all_deplibs=unknown
12244 module_expsym_cmds=
12245 old_archive_from_new_cmds=
12246 old_archive_from_expsyms_cmds=
12247 thread_safe_flag_spec=
12248 whole_archive_flag_spec=
12249 # include_expsyms should be a list of space-separated symbols to be *always*
12250 # included in the symbol list
12252 # exclude_expsyms can be an extended regexp of symbols to exclude
12253 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12254 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12255 # as well as any symbol that contains `d'.
12256 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12257 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12258 # platforms (ab)use it in PIC code, but their linkers get confused if
12259 # the symbol is explicitly referenced. Since portable code cannot
12260 # rely on this symbol name, it's probably fine to never include it in
12261 # preloaded symbol tables.
12262 # Exclude shared library initialization/finalization symbols.
12263 extract_expsyms_cmds=
12266 cygwin* | mingw* | pw32* | cegcc*)
12267 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12268 # When not using gcc, we currently assume that we are using
12269 # Microsoft Visual C++.
12270 if test "$GCC" != yes; then
12275 # we just hope/assume this is gcc and not c89 (= MSVC++)
12285 # On some targets, GNU ld is compatible enough with the native linker
12286 # that we're better off using the native interface for both.
12287 lt_use_gnu_ld_interface=no
12288 if test "$with_gnu_ld" = yes; then
12291 # The AIX port of GNU ld has always aspired to compatibility
12292 # with the native linker. However, as the warning in the GNU ld
12293 # block says, versions before 2.19.5* couldn't really create working
12294 # shared libraries, regardless of the interface used.
12295 case `$LD -v 2>&1` in
12296 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12297 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12298 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12300 lt_use_gnu_ld_interface=yes
12305 lt_use_gnu_ld_interface=yes
12310 if test "$lt_use_gnu_ld_interface" = yes; then
12311 # If archive_cmds runs LD, not CC, wlarc should be empty
12314 # Set some defaults for GNU ld with shared library support. These
12315 # are reset later if shared libraries are not supported. Putting them
12316 # here allows them to be overridden if necessary.
12317 runpath_var=LD_RUN_PATH
12318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12319 export_dynamic_flag_spec='${wl}--export-dynamic'
12320 # ancient GNU ld didn't support --whole-archive et. al.
12321 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12322 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12324 whole_archive_flag_spec=
12326 supports_anon_versioning=no
12327 case `$LD -v 2>&1` in
12328 *GNU\ gold*) supports_anon_versioning=yes ;;
12329 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12330 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12331 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12332 *\ 2.11.*) ;; # other 2.11 versions
12333 *) supports_anon_versioning=yes ;;
12336 # See if GNU ld supports shared libraries.
12339 # On AIX/PPC, the GNU linker is very broken
12340 if test "$host_cpu" != ia64; then
12344 *** Warning: the GNU linker, at least up to release 2.19, is reported
12345 *** to be unable to reliably create shared libraries on AIX.
12346 *** Therefore, libtool is disabling shared libraries support. If you
12347 *** really care for shared libraries, you may want to install binutils
12348 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12349 *** You will then need to restart the configuration process.
12358 # see comment about AmigaOS4 .so support
12359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12360 archive_expsym_cmds=''
12363 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)'
12364 hardcode_libdir_flag_spec='-L$libdir'
12365 hardcode_minus_L=yes
12371 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12372 allow_undefined_flag=unsupported
12373 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12374 # support --undefined. This deserves some investigation. FIXME
12375 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12381 cygwin* | mingw* | pw32* | cegcc*)
12382 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12383 # as there is no search path for DLLs.
12384 hardcode_libdir_flag_spec='-L$libdir'
12385 export_dynamic_flag_spec='${wl}--export-all-symbols'
12386 allow_undefined_flag=unsupported
12387 always_export_symbols=no
12388 enable_shared_with_static_runtimes=yes
12389 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'
12390 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12392 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12393 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12394 # If the export-symbols file already is a .def file (1st line
12395 # is EXPORTS), use it as is; otherwise, prepend...
12396 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12397 cp $export_symbols $output_objdir/$soname.def;
12399 echo EXPORTS > $output_objdir/$soname.def;
12400 cat $export_symbols >> $output_objdir/$soname.def;
12402 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12410 link_all_deplibs=yes
12415 hardcode_shlibpath_var=no
12416 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12417 export_dynamic_flag_spec='${wl}-E'
12418 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12419 # Instead, shared libraries are loaded at an image base (0x10000000 by
12420 # default) and relocated if they conflict, which is a slow very memory
12421 # consuming and fragmenting process. To avoid this, we pick a random,
12422 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12423 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12424 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12425 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'
12428 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12430 if test "$host_os" = linux-dietlibc; then
12431 case $cc_basename in
12432 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12435 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12436 && test "$tmp_diet" = no
12438 tmp_addflag=' $pic_flag'
12439 tmp_sharedflag='-shared'
12440 case $cc_basename,$host_cpu in
12441 pgcc*) # Portland Group C compiler
12442 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'
12443 tmp_addflag=' $pic_flag'
12445 pgf77* | pgf90* | pgf95* | pgfortran*)
12446 # Portland Group f77 and f90 compilers
12447 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'
12448 tmp_addflag=' $pic_flag -Mnomain' ;;
12449 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12450 tmp_addflag=' -i_dynamic' ;;
12451 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12452 tmp_addflag=' -i_dynamic -nofor_main' ;;
12453 ifc* | ifort*) # Intel Fortran compiler
12454 tmp_addflag=' -nofor_main' ;;
12455 lf95*) # Lahey Fortran 8.1
12456 whole_archive_flag_spec=
12457 tmp_sharedflag='--shared' ;;
12458 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12459 tmp_sharedflag='-qmkshrobj'
12461 nvcc*) # Cuda Compiler Driver 2.2
12462 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'
12463 compiler_needs_object=yes
12466 case `$CC -V 2>&1 | sed 5q` in
12467 *Sun\ C*) # Sun C 5.9
12468 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'
12469 compiler_needs_object=yes
12470 tmp_sharedflag='-G' ;;
12471 *Sun\ F*) # Sun Fortran 8.3
12472 tmp_sharedflag='-G' ;;
12474 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12476 if test "x$supports_anon_versioning" = xyes; then
12477 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12478 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12479 echo "local: *; };" >> $output_objdir/$libname.ver~
12480 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12483 case $cc_basename in
12484 xlf* | bgf* | bgxlf* | mpixlf*)
12485 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12486 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12487 hardcode_libdir_flag_spec=
12488 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12489 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12490 if test "x$supports_anon_versioning" = xyes; then
12491 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12492 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12493 echo "local: *; };" >> $output_objdir/$libname.ver~
12494 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12504 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12505 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12508 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12509 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12514 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12518 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12519 *** create shared libraries on Solaris systems. Therefore, libtool
12520 *** is disabling shared libraries support. We urge you to upgrade GNU
12521 *** binutils to release 2.9.1 or newer. Another option is to modify
12522 *** your PATH or compiler configuration so that the native linker is
12523 *** used, and then restart.
12526 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12527 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12528 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12534 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12535 case `$LD -v 2>&1` in
12536 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12540 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12541 *** reliably create shared libraries on SCO systems. Therefore, libtool
12542 *** is disabling shared libraries support. We urge you to upgrade GNU
12543 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12544 *** your PATH or compiler configuration so that the native linker is
12545 *** used, and then restart.
12550 # For security reasons, it is highly recommended that you always
12551 # use absolute paths for naming shared libraries, and exclude the
12552 # DT_RUNPATH tag from executables and libraries. But doing so
12553 # requires that you compile everything twice, which is a pain.
12554 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12555 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12557 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12566 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12568 hardcode_direct=yes
12569 hardcode_shlibpath_var=no
12573 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12574 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12575 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12582 if test "$ld_shlibs" = no; then
12584 hardcode_libdir_flag_spec=
12585 export_dynamic_flag_spec=
12586 whole_archive_flag_spec=
12589 # PORTME fill in a description of your system's linker (not GNU ld)
12592 allow_undefined_flag=unsupported
12593 always_export_symbols=yes
12594 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'
12595 # Note: this linker hardcodes the directories in LIBPATH if there
12596 # are no directories specified by -L.
12597 hardcode_minus_L=yes
12598 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12599 # Neither direct hardcoding nor static linking is supported with a
12601 hardcode_direct=unsupported
12606 if test "$host_cpu" = ia64; then
12607 # On IA64, the linker does run time linking by default, so we don't
12608 # have to do anything special.
12609 aix_use_runtimelinking=no
12610 exp_sym_flag='-Bexport'
12613 # If we're using GNU nm, then we don't want the "-C" option.
12614 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12615 # Also, AIX nm treats weak defined symbols like other global
12616 # defined symbols, whereas GNU nm marks them as "W".
12617 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12618 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'
12620 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'
12622 aix_use_runtimelinking=no
12624 # Test if we are trying to use run time linking or normal
12625 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12626 # need to do runtime linking.
12627 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12628 for ld_flag in $LDFLAGS; do
12629 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12630 aix_use_runtimelinking=yes
12637 exp_sym_flag='-bexport'
12638 no_entry_flag='-bnoentry'
12641 # When large executables or shared objects are built, AIX ld can
12642 # have problems creating the table of contents. If linking a library
12643 # or program results in "error TOC overflow" add -mminimal-toc to
12644 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12645 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12648 hardcode_direct=yes
12649 hardcode_direct_absolute=yes
12650 hardcode_libdir_separator=':'
12651 link_all_deplibs=yes
12652 file_list_spec='${wl}-f,'
12654 if test "$GCC" = yes; then
12655 case $host_os in aix4.[012]|aix4.[012].*)
12656 # We only want to do this on AIX 4.2 and lower, the check
12657 # below for broken collect2 doesn't work under 4.3+
12658 collect2name=`${CC} -print-prog-name=collect2`
12659 if test -f "$collect2name" &&
12660 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12662 # We have reworked collect2
12665 # We have old collect2
12666 hardcode_direct=unsupported
12667 # It fails to find uninstalled libraries when the uninstalled
12668 # path is not listed in the libpath. Setting hardcode_minus_L
12669 # to unsupported forces relinking
12670 hardcode_minus_L=yes
12671 hardcode_libdir_flag_spec='-L$libdir'
12672 hardcode_libdir_separator=
12676 shared_flag='-shared'
12677 if test "$aix_use_runtimelinking" = yes; then
12678 shared_flag="$shared_flag "'${wl}-G'
12682 if test "$host_cpu" = ia64; then
12683 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12684 # chokes on -Wl,-G. The following line is correct:
12687 if test "$aix_use_runtimelinking" = yes; then
12688 shared_flag='${wl}-G'
12690 shared_flag='${wl}-bM:SRE'
12695 export_dynamic_flag_spec='${wl}-bexpall'
12696 # It seems that -bexpall does not export symbols beginning with
12697 # underscore (_), so it is better to generate a list of symbols to export.
12698 always_export_symbols=yes
12699 if test "$aix_use_runtimelinking" = yes; then
12700 # Warning - without using the other runtime loading flags (-brtl),
12701 # -berok will link without error, but may produce a broken library.
12702 allow_undefined_flag='-berok'
12703 # Determine the default libpath from the value encoded in an
12704 # empty executable.
12705 if test "${lt_cv_aix_libpath+set}" = set; then
12706 aix_libpath=$lt_cv_aix_libpath
12708 if ${lt_cv_aix_libpath_+:} false; then :
12709 $as_echo_n "(cached) " >&6
12711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12712 /* end confdefs.h. */
12722 if ac_fn_c_try_link "$LINENO"; then :
12724 lt_aix_libpath_sed='
12725 /Import File Strings/,/^$/ {
12727 s/^0 *\([^ ]*\) *$/\1/
12731 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12732 # Check for a 64-bit object if we didn't find anything.
12733 if test -z "$lt_cv_aix_libpath_"; then
12734 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12737 rm -f core conftest.err conftest.$ac_objext \
12738 conftest$ac_exeext conftest.$ac_ext
12739 if test -z "$lt_cv_aix_libpath_"; then
12740 lt_cv_aix_libpath_="/usr/lib:/lib"
12745 aix_libpath=$lt_cv_aix_libpath_
12748 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12749 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"
12751 if test "$host_cpu" = ia64; then
12752 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12753 allow_undefined_flag="-z nodefs"
12754 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"
12756 # Determine the default libpath from the value encoded in an
12757 # empty executable.
12758 if test "${lt_cv_aix_libpath+set}" = set; then
12759 aix_libpath=$lt_cv_aix_libpath
12761 if ${lt_cv_aix_libpath_+:} false; then :
12762 $as_echo_n "(cached) " >&6
12764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12765 /* end confdefs.h. */
12775 if ac_fn_c_try_link "$LINENO"; then :
12777 lt_aix_libpath_sed='
12778 /Import File Strings/,/^$/ {
12780 s/^0 *\([^ ]*\) *$/\1/
12784 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12785 # Check for a 64-bit object if we didn't find anything.
12786 if test -z "$lt_cv_aix_libpath_"; then
12787 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12790 rm -f core conftest.err conftest.$ac_objext \
12791 conftest$ac_exeext conftest.$ac_ext
12792 if test -z "$lt_cv_aix_libpath_"; then
12793 lt_cv_aix_libpath_="/usr/lib:/lib"
12798 aix_libpath=$lt_cv_aix_libpath_
12801 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12802 # Warning - without using the other run time loading flags,
12803 # -berok will link without error, but may produce a broken library.
12804 no_undefined_flag=' ${wl}-bernotok'
12805 allow_undefined_flag=' ${wl}-berok'
12806 if test "$with_gnu_ld" = yes; then
12807 # We only use this code for GNU lds that support --whole-archive.
12808 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12810 # Exported symbols can be pulled into shared objects from archives
12811 whole_archive_flag_spec='$convenience'
12813 archive_cmds_need_lc=yes
12814 # This is similar to how AIX traditionally builds its shared libraries.
12815 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'
12823 # see comment about AmigaOS4 .so support
12824 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12825 archive_expsym_cmds=''
12828 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)'
12829 hardcode_libdir_flag_spec='-L$libdir'
12830 hardcode_minus_L=yes
12836 export_dynamic_flag_spec=-rdynamic
12839 cygwin* | mingw* | pw32* | cegcc*)
12840 # When not using gcc, we currently assume that we are using
12841 # Microsoft Visual C++.
12842 # hardcode_libdir_flag_spec is actually meaningless, as there is
12843 # no search path for DLLs.
12844 case $cc_basename in
12847 hardcode_libdir_flag_spec=' '
12848 allow_undefined_flag=unsupported
12849 always_export_symbols=yes
12851 # Tell ltmain to make .lib files, not .a files.
12853 # Tell ltmain to make .dll files, not .so files.
12855 # FIXME: Setting linknames here is a bad hack.
12856 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12857 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12858 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12860 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12862 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12864 # The linker will not automatically build a static lib if we build a DLL.
12865 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12866 enable_shared_with_static_runtimes=yes
12867 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12869 old_postinstall_cmds='chmod 644 $oldlib'
12870 postlink_cmds='lt_outputfile="@OUTPUT@"~
12871 lt_tool_outputfile="@TOOL_OUTPUT@"~
12872 case $lt_outputfile in
12875 lt_outputfile="$lt_outputfile.exe"
12876 lt_tool_outputfile="$lt_tool_outputfile.exe"
12879 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12880 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12881 $RM "$lt_outputfile.manifest";
12885 # Assume MSVC wrapper
12886 hardcode_libdir_flag_spec=' '
12887 allow_undefined_flag=unsupported
12888 # Tell ltmain to make .lib files, not .a files.
12890 # Tell ltmain to make .dll files, not .so files.
12892 # FIXME: Setting linknames here is a bad hack.
12893 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12894 # The linker will automatically build a .lib file if we build a DLL.
12895 old_archive_from_new_cmds='true'
12896 # FIXME: Should let the user specify the lib program.
12897 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12898 enable_shared_with_static_runtimes=yes
12903 darwin* | rhapsody*)
12906 archive_cmds_need_lc=no
12908 hardcode_automatic=yes
12909 hardcode_shlibpath_var=unsupported
12910 if test "$lt_cv_ld_force_load" = "yes"; then
12911 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\"`'
12913 whole_archive_flag_spec=''
12915 link_all_deplibs=yes
12916 allow_undefined_flag="$_lt_dar_allow_undefined"
12917 case $cc_basename in
12918 ifort*) _lt_dar_can_shared=yes ;;
12919 *) _lt_dar_can_shared=$GCC ;;
12921 if test "$_lt_dar_can_shared" = "yes"; then
12922 output_verbose_link_cmd=func_echo_all
12923 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12924 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12925 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}"
12926 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}"
12935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12936 hardcode_libdir_flag_spec='-L$libdir'
12937 hardcode_shlibpath_var=no
12944 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12945 # support. Future versions do this automatically, but an explicit c++rt0.o
12946 # does not break anything, and helps significantly (at the cost of a little
12949 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12950 hardcode_libdir_flag_spec='-R$libdir'
12951 hardcode_direct=yes
12952 hardcode_shlibpath_var=no
12955 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12957 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12958 hardcode_direct=yes
12959 hardcode_minus_L=yes
12960 hardcode_shlibpath_var=no
12963 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12964 freebsd* | dragonfly*)
12965 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12966 hardcode_libdir_flag_spec='-R$libdir'
12967 hardcode_direct=yes
12968 hardcode_shlibpath_var=no
12972 if test "$GCC" = yes; then
12973 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'
12975 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'
12977 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12978 hardcode_libdir_separator=:
12979 hardcode_direct=yes
12981 # hardcode_minus_L: Not really in the search PATH,
12982 # but as the default location of the library.
12983 hardcode_minus_L=yes
12984 export_dynamic_flag_spec='${wl}-E'
12988 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12989 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12991 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12993 if test "$with_gnu_ld" = no; then
12994 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12995 hardcode_libdir_flag_spec_ld='+b $libdir'
12996 hardcode_libdir_separator=:
12997 hardcode_direct=yes
12998 hardcode_direct_absolute=yes
12999 export_dynamic_flag_spec='${wl}-E'
13000 # hardcode_minus_L: Not really in the search PATH,
13001 # but as the default location of the library.
13002 hardcode_minus_L=yes
13007 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13010 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13013 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13016 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13022 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13025 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13029 # Older versions of the 11.00 compiler do not understand -b yet
13030 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13032 $as_echo_n "checking if $CC understands -b... " >&6; }
13033 if ${lt_cv_prog_compiler__b+:} false; then :
13034 $as_echo_n "(cached) " >&6
13036 lt_cv_prog_compiler__b=no
13037 save_LDFLAGS="$LDFLAGS"
13038 LDFLAGS="$LDFLAGS -b"
13039 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13040 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13041 # The linker can only warn and ignore the option if not recognized
13042 # So say no if there are warnings
13043 if test -s conftest.err; then
13044 # Append any errors to the config.log.
13045 cat conftest.err 1>&5
13046 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13047 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13048 if diff conftest.exp conftest.er2 >/dev/null; then
13049 lt_cv_prog_compiler__b=yes
13052 lt_cv_prog_compiler__b=yes
13056 LDFLAGS="$save_LDFLAGS"
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13060 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13062 if test x"$lt_cv_prog_compiler__b" = xyes; then
13063 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13065 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13071 if test "$with_gnu_ld" = no; then
13072 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13073 hardcode_libdir_separator=:
13078 hardcode_shlibpath_var=no
13081 hardcode_direct=yes
13082 hardcode_direct_absolute=yes
13083 export_dynamic_flag_spec='${wl}-E'
13085 # hardcode_minus_L: Not really in the search PATH,
13086 # but as the default location of the library.
13087 hardcode_minus_L=yes
13093 irix5* | irix6* | nonstopux*)
13094 if test "$GCC" = yes; then
13095 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'
13096 # Try to use the -exported_symbol ld option, if it does not
13097 # work, assume that -exports_file does not work either and
13098 # implicitly export all symbols.
13099 # This should be the same for all languages, so no per-tag cache variable.
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13101 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13102 if ${lt_cv_irix_exported_symbol+:} false; then :
13103 $as_echo_n "(cached) " >&6
13105 save_LDFLAGS="$LDFLAGS"
13106 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13108 /* end confdefs.h. */
13109 int foo (void) { return 0; }
13111 if ac_fn_c_try_link "$LINENO"; then :
13112 lt_cv_irix_exported_symbol=yes
13114 lt_cv_irix_exported_symbol=no
13116 rm -f core conftest.err conftest.$ac_objext \
13117 conftest$ac_exeext conftest.$ac_ext
13118 LDFLAGS="$save_LDFLAGS"
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13121 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13122 if test "$lt_cv_irix_exported_symbol" = yes; then
13123 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'
13126 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'
13127 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'
13129 archive_cmds_need_lc='no'
13130 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13131 hardcode_libdir_separator=:
13133 link_all_deplibs=yes
13137 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13138 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13140 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13142 hardcode_libdir_flag_spec='-R$libdir'
13143 hardcode_direct=yes
13144 hardcode_shlibpath_var=no
13148 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13149 hardcode_direct=yes
13150 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13151 hardcode_libdir_separator=:
13152 hardcode_shlibpath_var=no
13159 if test -f /usr/libexec/ld.so; then
13160 hardcode_direct=yes
13161 hardcode_shlibpath_var=no
13162 hardcode_direct_absolute=yes
13163 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13164 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13165 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13166 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13167 export_dynamic_flag_spec='${wl}-E'
13170 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13171 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13172 hardcode_libdir_flag_spec='-R$libdir'
13175 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13176 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13186 hardcode_libdir_flag_spec='-L$libdir'
13187 hardcode_minus_L=yes
13188 allow_undefined_flag=unsupported
13189 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'
13190 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13194 if test "$GCC" = yes; then
13195 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13196 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'
13198 allow_undefined_flag=' -expect_unresolved \*'
13199 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'
13201 archive_cmds_need_lc='no'
13202 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13203 hardcode_libdir_separator=:
13206 osf4* | osf5*) # as osf3* with the addition of -msym flag
13207 if test "$GCC" = yes; then
13208 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13209 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'
13210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13212 allow_undefined_flag=' -expect_unresolved \*'
13213 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'
13214 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~
13215 $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'
13217 # Both c and cxx compiler support -rpath directly
13218 hardcode_libdir_flag_spec='-rpath $libdir'
13220 archive_cmds_need_lc='no'
13221 hardcode_libdir_separator=:
13225 no_undefined_flag=' -z defs'
13226 if test "$GCC" = yes; then
13228 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13229 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13230 $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'
13232 case `$CC -V 2>&1` in
13235 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13236 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13237 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13241 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13242 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13243 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13247 hardcode_libdir_flag_spec='-R$libdir'
13248 hardcode_shlibpath_var=no
13250 solaris2.[0-5] | solaris2.[0-5].*) ;;
13252 # The compiler driver will combine and reorder linker options,
13253 # but understands `-z linker_flag'. GCC discards it without `$wl',
13254 # but is careful enough not to reorder.
13255 # Supported since Solaris 2.6 (maybe 2.5.1?)
13256 if test "$GCC" = yes; then
13257 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13259 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13263 link_all_deplibs=yes
13267 if test "x$host_vendor" = xsequent; then
13268 # Use $CC to link under sequent, because it throws in some extra .o
13269 # files that make .init and .fini sections work.
13270 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13272 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13274 hardcode_libdir_flag_spec='-L$libdir'
13275 hardcode_direct=yes
13276 hardcode_minus_L=yes
13277 hardcode_shlibpath_var=no
13281 case $host_vendor in
13283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13284 hardcode_direct=yes # is this really true???
13287 ## LD is ld it makes a PLAMLIB
13288 ## CC just makes a GrossModule.
13289 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13290 reload_cmds='$CC -r -o $output$reload_objs'
13294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13295 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13298 runpath_var='LD_RUN_PATH'
13299 hardcode_shlibpath_var=no
13303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13304 hardcode_shlibpath_var=no
13305 export_dynamic_flag_spec='-Bexport'
13309 if test -d /usr/nec; then
13310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13311 hardcode_shlibpath_var=no
13312 runpath_var=LD_RUN_PATH
13313 hardcode_runpath_var=yes
13318 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13319 no_undefined_flag='${wl}-z,text'
13320 archive_cmds_need_lc=no
13321 hardcode_shlibpath_var=no
13322 runpath_var='LD_RUN_PATH'
13324 if test "$GCC" = yes; then
13325 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13326 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13328 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13329 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13333 sysv5* | sco3.2v5* | sco5v6*)
13334 # Note: We can NOT use -z defs as we might desire, because we do not
13335 # link with -lc, and that would cause any symbols used from libc to
13336 # always be unresolved, which means just about no library would
13337 # ever link correctly. If we're not using GNU ld we use -z text
13338 # though, which does catch some bad symbols but isn't as heavy-handed
13340 no_undefined_flag='${wl}-z,text'
13341 allow_undefined_flag='${wl}-z,nodefs'
13342 archive_cmds_need_lc=no
13343 hardcode_shlibpath_var=no
13344 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13345 hardcode_libdir_separator=':'
13346 link_all_deplibs=yes
13347 export_dynamic_flag_spec='${wl}-Bexport'
13348 runpath_var='LD_RUN_PATH'
13350 if test "$GCC" = yes; then
13351 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13352 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13354 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13355 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13361 hardcode_libdir_flag_spec='-L$libdir'
13362 hardcode_shlibpath_var=no
13370 if test x$host_vendor = xsni; then
13372 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13373 export_dynamic_flag_spec='${wl}-Blargedynsym'
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13380 $as_echo "$ld_shlibs" >&6; }
13381 test "$ld_shlibs" = no && can_build_shared=no
13383 with_gnu_ld=$with_gnu_ld
13400 # Do we need to explicitly link libc?
13402 case "x$archive_cmds_need_lc" in
13404 # Assume -lc should be added
13405 archive_cmds_need_lc=yes
13407 if test "$enable_shared" = yes && test "$GCC" = yes; then
13408 case $archive_cmds in
13410 # FIXME: we may have to deal with multi-command sequences.
13413 # Test whether the compiler implicitly links with -lc since on some
13414 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13415 # to ld, don't add -lc before -lgcc.
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13417 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13418 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13419 $as_echo_n "(cached) " >&6
13422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13424 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13425 (eval $ac_compile) 2>&5
13427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13428 test $ac_status = 0; } 2>conftest.err; then
13431 libobjs=conftest.$ac_objext
13433 wl=$lt_prog_compiler_wl
13434 pic_flag=$lt_prog_compiler_pic
13440 lt_save_allow_undefined_flag=$allow_undefined_flag
13441 allow_undefined_flag=
13442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13443 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13446 test $ac_status = 0; }
13448 lt_cv_archive_cmds_need_lc=no
13450 lt_cv_archive_cmds_need_lc=yes
13452 allow_undefined_flag=$lt_save_allow_undefined_flag
13454 cat conftest.err 1>&5
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13460 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13461 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13625 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13627 if test "$GCC" = yes; then
13629 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13630 *) lt_awk_arg="/^libraries:/" ;;
13633 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13634 *) lt_sed_strip_eq="s,=/,/,g" ;;
13636 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13637 case $lt_search_path_spec in
13639 # if the path contains ";" then we assume it to be the separator
13640 # otherwise default to the standard path separator (i.e. ":") - it is
13641 # assumed that no part of a normal pathname contains ";" but that should
13642 # okay in the real world where ";" in dirpaths is itself problematic.
13643 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13646 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13649 # Ok, now we have the path, separated by spaces, we can step through it
13650 # and add multilib dir if necessary.
13651 lt_tmp_lt_search_path_spec=
13652 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13653 for lt_sys_path in $lt_search_path_spec; do
13654 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13655 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13657 test -d "$lt_sys_path" && \
13658 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13661 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13662 BEGIN {RS=" "; FS="/|\n";} {
13665 for (lt_i = NF; lt_i > 0; lt_i--) {
13666 if ($lt_i != "" && $lt_i != ".") {
13667 if ($lt_i == "..") {
13670 if (lt_count == 0) {
13671 lt_foo="/" $lt_i lt_foo;
13678 if (lt_foo != "") { lt_freq[lt_foo]++; }
13679 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13681 # AWK program above erroneously prepends '/' to C:/dos/paths
13684 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13685 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13687 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13689 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13691 library_names_spec=
13692 libname_spec='lib$name'
13696 postuninstall_cmds=
13700 shlibpath_overrides_runpath=unknown
13702 dynamic_linker="$host_os ld.so"
13703 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13704 need_lib_prefix=unknown
13705 hardcode_into_libs=no
13707 # when you set need_version to no, make sure it does not cause -set_version
13708 # flags to be left without arguments
13709 need_version=unknown
13714 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13715 shlibpath_var=LIBPATH
13717 # AIX 3 has no versioning support, so we append a major version to the name.
13718 soname_spec='${libname}${release}${shared_ext}$major'
13725 hardcode_into_libs=yes
13726 if test "$host_cpu" = ia64; then
13727 # AIX 5 supports IA64
13728 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13729 shlibpath_var=LD_LIBRARY_PATH
13731 # With GCC up to 2.95.x, collect2 would create an import file
13732 # for dependence libraries. The import file would start with
13733 # the line `#! .'. This would cause the generated library to
13734 # depend on `.', always an invalid library. This was fixed in
13735 # development snapshots of GCC prior to 3.0.
13737 aix4 | aix4.[01] | aix4.[01].*)
13738 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13740 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13743 can_build_shared=no
13747 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13748 # soname into executable. Probably we can add versioning support to
13749 # collect2, so additional links can be useful in future.
13750 if test "$aix_use_runtimelinking" = yes; then
13751 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13752 # instead of lib<name>.a to let people know that these are not
13753 # typical AIX shared libraries.
13754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13756 # We preserve .a as extension for shared libraries through AIX4.2
13757 # and later when we are not doing run time linking.
13758 library_names_spec='${libname}${release}.a $libname.a'
13759 soname_spec='${libname}${release}${shared_ext}$major'
13761 shlibpath_var=LIBPATH
13768 # Since July 2007 AmigaOS4 officially supports .so libraries.
13769 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13773 library_names_spec='$libname.ixlibrary $libname.a'
13774 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13775 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'
13781 library_names_spec='${libname}${shared_ext}'
13782 dynamic_linker="$host_os ld.so"
13783 shlibpath_var=LIBRARY_PATH
13789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13790 soname_spec='${libname}${release}${shared_ext}$major'
13791 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13792 shlibpath_var=LD_LIBRARY_PATH
13793 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13794 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13795 # the default ld.so.conf also contains /usr/contrib/lib and
13796 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13797 # libtool to hard-code these into programs
13800 cygwin* | mingw* | pw32* | cegcc*)
13801 version_type=windows
13806 case $GCC,$cc_basename in
13809 library_names_spec='$libname.dll.a'
13810 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13811 postinstall_cmds='base_file=`basename \${file}`~
13812 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13813 dldir=$destdir/`dirname \$dlpath`~
13814 test -d \$dldir || mkdir -p \$dldir~
13815 $install_prog $dir/$dlname \$dldir/$dlname~
13816 chmod a+x \$dldir/$dlname~
13817 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13818 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13820 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13821 dlpath=$dir/\$dldll~
13823 shlibpath_overrides_runpath=yes
13827 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13828 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13830 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13833 # MinGW DLLs use traditional 'lib' prefix
13834 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13837 # pw32 DLLs use 'pw' prefix rather than 'lib'
13838 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13841 dynamic_linker='Win32 ld.exe'
13846 libname_spec='$name'
13847 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13848 library_names_spec='${libname}.dll.lib'
13852 sys_lib_search_path_spec=
13855 for lt_path in $LIB
13858 # Let DOS variable expansion print the short 8.3 style file name.
13859 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13860 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13863 # Convert to MSYS style.
13864 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13867 # Convert to unix form, then to dos form, then back to unix form
13868 # but this time dos style (no spaces!) so that the unix form looks
13869 # like /cygdrive/c/PROGRA~1:/cygdr...
13870 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13871 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13872 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13875 sys_lib_search_path_spec="$LIB"
13876 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13877 # It is most probably a Windows format PATH.
13878 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13880 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13882 # FIXME: find the short name or the path components, as spaces are
13883 # common. (e.g. "Program Files" -> "PROGRA~1")
13887 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13888 postinstall_cmds='base_file=`basename \${file}`~
13889 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13890 dldir=$destdir/`dirname \$dlpath`~
13891 test -d \$dldir || mkdir -p \$dldir~
13892 $install_prog $dir/$dlname \$dldir/$dlname'
13893 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13894 dlpath=$dir/\$dldll~
13896 shlibpath_overrides_runpath=yes
13897 dynamic_linker='Win32 link.exe'
13901 # Assume MSVC wrapper
13902 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13903 dynamic_linker='Win32 ld.exe'
13906 # FIXME: first we should search . and the directory the executable is in
13910 darwin* | rhapsody*)
13911 dynamic_linker="$host_os dyld"
13912 version_type=darwin
13915 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13916 soname_spec='${libname}${release}${major}$shared_ext'
13917 shlibpath_overrides_runpath=yes
13918 shlibpath_var=DYLD_LIBRARY_PATH
13919 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13921 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13922 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13930 soname_spec='${libname}${release}${shared_ext}$major'
13931 shlibpath_var=LD_LIBRARY_PATH
13938 freebsd* | dragonfly*)
13939 # DragonFly does not have aout. When/if they implement a new
13940 # versioning mechanism, adjust this.
13941 if test -x /usr/bin/objformat; then
13942 objformat=`/usr/bin/objformat`
13945 freebsd[123]*) objformat=aout ;;
13946 *) objformat=elf ;;
13949 version_type=freebsd-$objformat
13950 case $version_type in
13952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13957 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13961 shlibpath_var=LD_LIBRARY_PATH
13964 shlibpath_overrides_runpath=yes
13966 freebsd3.[01]* | freebsdelf3.[01]*)
13967 shlibpath_overrides_runpath=yes
13968 hardcode_into_libs=yes
13970 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13971 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13972 shlibpath_overrides_runpath=no
13973 hardcode_into_libs=yes
13975 *) # from 4.6 on, and DragonFly
13976 shlibpath_overrides_runpath=yes
13977 hardcode_into_libs=yes
13986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13987 soname_spec='${libname}${release}${shared_ext}$major'
13988 shlibpath_var=LD_LIBRARY_PATH
13989 hardcode_into_libs=yes
13996 dynamic_linker="$host_os runtime_loader"
13997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13998 soname_spec='${libname}${release}${shared_ext}$major'
13999 shlibpath_var=LIBRARY_PATH
14000 shlibpath_overrides_runpath=yes
14001 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14002 hardcode_into_libs=yes
14005 hpux9* | hpux10* | hpux11*)
14006 # Give a soname corresponding to the major version so that dld.sl refuses to
14007 # link against other versions.
14014 hardcode_into_libs=yes
14015 dynamic_linker="$host_os dld.so"
14016 shlibpath_var=LD_LIBRARY_PATH
14017 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14019 soname_spec='${libname}${release}${shared_ext}$major'
14020 if test "X$HPUX_IA64_MODE" = X32; then
14021 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14023 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14025 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14029 hardcode_into_libs=yes
14030 dynamic_linker="$host_os dld.sl"
14031 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14032 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14034 soname_spec='${libname}${release}${shared_ext}$major'
14035 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14036 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14040 dynamic_linker="$host_os dld.sl"
14041 shlibpath_var=SHLIB_PATH
14042 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14044 soname_spec='${libname}${release}${shared_ext}$major'
14047 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14048 postinstall_cmds='chmod 555 $lib'
14049 # or fails outright, so override atomically:
14050 install_override_mode=555
14057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14058 soname_spec='${libname}${release}${shared_ext}$major'
14059 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14060 shlibpath_var=LD_LIBRARY_PATH
14061 shlibpath_overrides_runpath=no
14062 hardcode_into_libs=yes
14065 irix5* | irix6* | nonstopux*)
14067 nonstopux*) version_type=nonstopux ;;
14069 if test "$lt_cv_prog_gnu_ld" = yes; then
14077 soname_spec='${libname}${release}${shared_ext}$major'
14078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14080 irix5* | nonstopux*)
14081 libsuff= shlibsuff=
14084 case $LD in # libtool.m4 will add one of these switches to LD
14085 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14086 libsuff= shlibsuff= libmagic=32-bit;;
14087 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14088 libsuff=32 shlibsuff=N32 libmagic=N32;;
14089 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14090 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14091 *) libsuff= shlibsuff= libmagic=never-match;;
14095 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14096 shlibpath_overrides_runpath=no
14097 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14098 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14099 hardcode_into_libs=yes
14102 # No shared lib support for Linux oldld, aout, or coff.
14103 linux*oldld* | linux*aout* | linux*coff*)
14107 # This must be Linux ELF.
14108 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14113 soname_spec='${libname}${release}${shared_ext}$major'
14114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14115 shlibpath_var=LD_LIBRARY_PATH
14116 shlibpath_overrides_runpath=no
14118 # Some binutils ld are patched to set DT_RUNPATH
14119 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14120 $as_echo_n "(cached) " >&6
14122 lt_cv_shlibpath_overrides_runpath=no
14123 save_LDFLAGS=$LDFLAGS
14124 save_libdir=$libdir
14125 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14126 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14128 /* end confdefs.h. */
14138 if ac_fn_c_try_link "$LINENO"; then :
14139 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14140 lt_cv_shlibpath_overrides_runpath=yes
14143 rm -f core conftest.err conftest.$ac_objext \
14144 conftest$ac_exeext conftest.$ac_ext
14145 LDFLAGS=$save_LDFLAGS
14146 libdir=$save_libdir
14150 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14152 # This implies no fast_install, which is unacceptable.
14153 # Some rework will be needed to allow for fast_install
14154 # before this can be enabled.
14155 hardcode_into_libs=yes
14157 # Add ABI-specific directories to the system library path.
14158 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14160 # Append ld.so.conf contents to the search path
14161 if test -f /etc/ld.so.conf; then
14162 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' ' '`
14163 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14167 # We used to test for /lib/ld.so.1 and disable shared libraries on
14168 # powerpc, because MkLinux only supported shared libraries with the
14169 # GNU dynamic linker. Since this was broken with cross compilers,
14170 # most powerpc-linux boxes support dynamic linking these days and
14171 # people can always --disable-shared, the test was removed, and we
14172 # assume the GNU/Linux dynamic linker is in use.
14173 dynamic_linker='GNU/Linux ld.so'
14180 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14182 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14183 dynamic_linker='NetBSD (a.out) ld.so'
14185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14186 soname_spec='${libname}${release}${shared_ext}$major'
14187 dynamic_linker='NetBSD ld.elf_so'
14189 shlibpath_var=LD_LIBRARY_PATH
14190 shlibpath_overrides_runpath=yes
14191 hardcode_into_libs=yes
14196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14197 shlibpath_var=LD_LIBRARY_PATH
14198 shlibpath_overrides_runpath=yes
14205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14206 soname_spec='${libname}${release}${shared_ext}$major'
14207 shlibpath_var=LD_LIBRARY_PATH
14208 shlibpath_overrides_runpath=no
14209 hardcode_into_libs=yes
14210 dynamic_linker='ldqnx.so'
14215 sys_lib_dlsearch_path_spec="/usr/lib"
14217 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14219 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14220 *) need_version=no ;;
14222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14224 shlibpath_var=LD_LIBRARY_PATH
14225 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14227 openbsd2.[89] | openbsd2.[89].*)
14228 shlibpath_overrides_runpath=no
14231 shlibpath_overrides_runpath=yes
14235 shlibpath_overrides_runpath=yes
14240 libname_spec='$name'
14243 library_names_spec='$libname${shared_ext} $libname.a'
14244 dynamic_linker='OS/2 ld.exe'
14245 shlibpath_var=LIBPATH
14248 osf3* | osf4* | osf5*)
14252 soname_spec='${libname}${release}${shared_ext}$major'
14253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14254 shlibpath_var=LD_LIBRARY_PATH
14255 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14256 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14268 soname_spec='${libname}${release}${shared_ext}$major'
14269 shlibpath_var=LD_LIBRARY_PATH
14270 shlibpath_overrides_runpath=yes
14271 hardcode_into_libs=yes
14272 # ldd complains unless libraries are executable
14273 postinstall_cmds='chmod +x $lib'
14278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14279 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14280 shlibpath_var=LD_LIBRARY_PATH
14281 shlibpath_overrides_runpath=yes
14282 if test "$with_gnu_ld" = yes; then
14290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14291 soname_spec='${libname}${release}${shared_ext}$major'
14292 shlibpath_var=LD_LIBRARY_PATH
14293 case $host_vendor in
14295 shlibpath_overrides_runpath=no
14297 runpath_var=LD_RUN_PATH
14305 shlibpath_overrides_runpath=no
14306 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14312 if test -d /usr/nec ;then
14314 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14315 soname_spec='$libname${shared_ext}.$major'
14316 shlibpath_var=LD_LIBRARY_PATH
14320 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14321 version_type=freebsd-elf
14324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14325 soname_spec='${libname}${release}${shared_ext}$major'
14326 shlibpath_var=LD_LIBRARY_PATH
14327 shlibpath_overrides_runpath=yes
14328 hardcode_into_libs=yes
14329 if test "$with_gnu_ld" = yes; then
14330 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14332 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14335 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14339 sys_lib_dlsearch_path_spec='/usr/lib'
14343 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14348 shlibpath_var=LD_LIBRARY_PATH
14349 shlibpath_overrides_runpath=no
14350 hardcode_into_libs=yes
14355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14356 soname_spec='${libname}${release}${shared_ext}$major'
14357 shlibpath_var=LD_LIBRARY_PATH
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14365 $as_echo "$dynamic_linker" >&6; }
14366 test "$dynamic_linker" = no && can_build_shared=no
14368 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14369 if test "$GCC" = yes; then
14370 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14373 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14374 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14376 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14377 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14472 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14474 if test -n "$hardcode_libdir_flag_spec" ||
14475 test -n "$runpath_var" ||
14476 test "X$hardcode_automatic" = "Xyes" ; then
14478 # We can hardcode non-existent directories.
14479 if test "$hardcode_direct" != no &&
14480 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14481 # have to relink, otherwise we might link with an installed library
14482 # when we should be linking with a yet-to-be-installed one
14483 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14484 test "$hardcode_minus_L" != no; then
14485 # Linking always hardcodes the temporary library directory.
14486 hardcode_action=relink
14488 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14489 hardcode_action=immediate
14492 # We cannot hardcode anything, or else we can only hardcode existing
14494 hardcode_action=unsupported
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14497 $as_echo "$hardcode_action" >&6; }
14499 if test "$hardcode_action" = relink ||
14500 test "$inherit_rpath" = yes; then
14501 # Fast installation is not supported
14502 enable_fast_install=no
14503 elif test "$shlibpath_overrides_runpath" = yes ||
14504 test "$enable_shared" = no; then
14505 # Fast installation is not necessary
14506 enable_fast_install=needless
14514 if test "x$enable_dlopen" != xyes; then
14515 enable_dlopen=unknown
14516 enable_dlopen_self=unknown
14517 enable_dlopen_self_static=unknown
14524 lt_cv_dlopen="load_add_on"
14526 lt_cv_dlopen_self=yes
14529 mingw* | pw32* | cegcc*)
14530 lt_cv_dlopen="LoadLibrary"
14535 lt_cv_dlopen="dlopen"
14540 # if libdl is installed we need to link against it
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14542 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14543 if ${ac_cv_lib_dl_dlopen+:} false; then :
14544 $as_echo_n "(cached) " >&6
14546 ac_check_lib_save_LIBS=$LIBS
14548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14549 /* end confdefs.h. */
14551 /* Override any GCC internal prototype to avoid an error.
14552 Use char because int might match the return type of a GCC
14553 builtin and then its argument prototype would still apply. */
14566 if ac_fn_c_try_link "$LINENO"; then :
14567 ac_cv_lib_dl_dlopen=yes
14569 ac_cv_lib_dl_dlopen=no
14571 rm -f core conftest.err conftest.$ac_objext \
14572 conftest$ac_exeext conftest.$ac_ext
14573 LIBS=$ac_check_lib_save_LIBS
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14576 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14577 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14578 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14581 lt_cv_dlopen="dyld"
14583 lt_cv_dlopen_self=yes
14590 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14591 if test "x$ac_cv_func_shl_load" = xyes; then :
14592 lt_cv_dlopen="shl_load"
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14595 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14596 if ${ac_cv_lib_dld_shl_load+:} false; then :
14597 $as_echo_n "(cached) " >&6
14599 ac_check_lib_save_LIBS=$LIBS
14601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14602 /* end confdefs.h. */
14604 /* Override any GCC internal prototype to avoid an error.
14605 Use char because int might match the return type of a GCC
14606 builtin and then its argument prototype would still apply. */
14614 return shl_load ();
14619 if ac_fn_c_try_link "$LINENO"; then :
14620 ac_cv_lib_dld_shl_load=yes
14622 ac_cv_lib_dld_shl_load=no
14624 rm -f core conftest.err conftest.$ac_objext \
14625 conftest$ac_exeext conftest.$ac_ext
14626 LIBS=$ac_check_lib_save_LIBS
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14629 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14630 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14631 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14633 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14634 if test "x$ac_cv_func_dlopen" = xyes; then :
14635 lt_cv_dlopen="dlopen"
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14638 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14639 if ${ac_cv_lib_dl_dlopen+:} false; then :
14640 $as_echo_n "(cached) " >&6
14642 ac_check_lib_save_LIBS=$LIBS
14644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14645 /* end confdefs.h. */
14647 /* Override any GCC internal prototype to avoid an error.
14648 Use char because int might match the return type of a GCC
14649 builtin and then its argument prototype would still apply. */
14662 if ac_fn_c_try_link "$LINENO"; then :
14663 ac_cv_lib_dl_dlopen=yes
14665 ac_cv_lib_dl_dlopen=no
14667 rm -f core conftest.err conftest.$ac_objext \
14668 conftest$ac_exeext conftest.$ac_ext
14669 LIBS=$ac_check_lib_save_LIBS
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14672 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14673 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14674 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14677 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14678 if ${ac_cv_lib_svld_dlopen+:} false; then :
14679 $as_echo_n "(cached) " >&6
14681 ac_check_lib_save_LIBS=$LIBS
14682 LIBS="-lsvld $LIBS"
14683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14684 /* end confdefs.h. */
14686 /* Override any GCC internal prototype to avoid an error.
14687 Use char because int might match the return type of a GCC
14688 builtin and then its argument prototype would still apply. */
14701 if ac_fn_c_try_link "$LINENO"; then :
14702 ac_cv_lib_svld_dlopen=yes
14704 ac_cv_lib_svld_dlopen=no
14706 rm -f core conftest.err conftest.$ac_objext \
14707 conftest$ac_exeext conftest.$ac_ext
14708 LIBS=$ac_check_lib_save_LIBS
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14711 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14712 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14713 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14716 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14717 if ${ac_cv_lib_dld_dld_link+:} false; then :
14718 $as_echo_n "(cached) " >&6
14720 ac_check_lib_save_LIBS=$LIBS
14722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14723 /* end confdefs.h. */
14725 /* Override any GCC internal prototype to avoid an error.
14726 Use char because int might match the return type of a GCC
14727 builtin and then its argument prototype would still apply. */
14735 return dld_link ();
14740 if ac_fn_c_try_link "$LINENO"; then :
14741 ac_cv_lib_dld_dld_link=yes
14743 ac_cv_lib_dld_dld_link=no
14745 rm -f core conftest.err conftest.$ac_objext \
14746 conftest$ac_exeext conftest.$ac_ext
14747 LIBS=$ac_check_lib_save_LIBS
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14750 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14751 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14752 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14773 if test "x$lt_cv_dlopen" != xno; then
14779 case $lt_cv_dlopen in
14781 save_CPPFLAGS="$CPPFLAGS"
14782 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14784 save_LDFLAGS="$LDFLAGS"
14785 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14788 LIBS="$lt_cv_dlopen_libs $LIBS"
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14791 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14792 if ${lt_cv_dlopen_self+:} false; then :
14793 $as_echo_n "(cached) " >&6
14795 if test "$cross_compiling" = yes; then :
14796 lt_cv_dlopen_self=cross
14798 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14799 lt_status=$lt_dlunknown
14800 cat > conftest.$ac_ext <<_LT_EOF
14801 #line $LINENO "configure"
14802 #include "confdefs.h"
14811 # define LT_DLGLOBAL RTLD_GLOBAL
14814 # define LT_DLGLOBAL DL_GLOBAL
14816 # define LT_DLGLOBAL 0
14820 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14821 find out it does not work in some platform. */
14822 #ifndef LT_DLLAZY_OR_NOW
14824 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14827 # define LT_DLLAZY_OR_NOW DL_LAZY
14830 # define LT_DLLAZY_OR_NOW RTLD_NOW
14833 # define LT_DLLAZY_OR_NOW DL_NOW
14835 # define LT_DLLAZY_OR_NOW 0
14842 /* When -fvisbility=hidden is used, assume the code has been annotated
14843 correspondingly for the symbols needed. */
14844 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14845 int fnord () __attribute__((visibility("default")));
14848 int fnord () { return 42; }
14851 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14852 int status = $lt_dlunknown;
14856 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14859 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14860 else puts (dlerror ());
14862 /* dlclose (self); */
14870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14871 (eval $ac_link) 2>&5
14873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14874 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14875 (./conftest; exit; ) >&5 2>/dev/null
14877 case x$lt_status in
14878 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14879 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14880 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14883 # compilation failed
14884 lt_cv_dlopen_self=no
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14892 $as_echo "$lt_cv_dlopen_self" >&6; }
14894 if test "x$lt_cv_dlopen_self" = xyes; then
14895 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14897 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14898 if ${lt_cv_dlopen_self_static+:} false; then :
14899 $as_echo_n "(cached) " >&6
14901 if test "$cross_compiling" = yes; then :
14902 lt_cv_dlopen_self_static=cross
14904 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14905 lt_status=$lt_dlunknown
14906 cat > conftest.$ac_ext <<_LT_EOF
14907 #line $LINENO "configure"
14908 #include "confdefs.h"
14917 # define LT_DLGLOBAL RTLD_GLOBAL
14920 # define LT_DLGLOBAL DL_GLOBAL
14922 # define LT_DLGLOBAL 0
14926 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14927 find out it does not work in some platform. */
14928 #ifndef LT_DLLAZY_OR_NOW
14930 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14933 # define LT_DLLAZY_OR_NOW DL_LAZY
14936 # define LT_DLLAZY_OR_NOW RTLD_NOW
14939 # define LT_DLLAZY_OR_NOW DL_NOW
14941 # define LT_DLLAZY_OR_NOW 0
14948 /* When -fvisbility=hidden is used, assume the code has been annotated
14949 correspondingly for the symbols needed. */
14950 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14951 int fnord () __attribute__((visibility("default")));
14954 int fnord () { return 42; }
14957 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14958 int status = $lt_dlunknown;
14962 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14965 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14966 else puts (dlerror ());
14968 /* dlclose (self); */
14976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14977 (eval $ac_link) 2>&5
14979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14980 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14981 (./conftest; exit; ) >&5 2>/dev/null
14983 case x$lt_status in
14984 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14985 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14986 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14989 # compilation failed
14990 lt_cv_dlopen_self_static=no
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14998 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15001 CPPFLAGS="$save_CPPFLAGS"
15002 LDFLAGS="$save_LDFLAGS"
15007 case $lt_cv_dlopen_self in
15008 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15009 *) enable_dlopen_self=unknown ;;
15012 case $lt_cv_dlopen_self_static in
15013 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15014 *) enable_dlopen_self_static=unknown ;;
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15037 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15038 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15039 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15040 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15042 $as_echo "yes" >&6; }
15044 # FIXME - insert some real tests, host_os isn't really good enough
15047 if test -n "$STRIP" ; then
15048 striplib="$STRIP -x"
15049 old_striplib="$STRIP -S"
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15051 $as_echo "yes" >&6; }
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15054 $as_echo "no" >&6; }
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15059 $as_echo "no" >&6; }
15075 # Report which library types will actually be built
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15077 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15079 $as_echo "$can_build_shared" >&6; }
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15082 $as_echo_n "checking whether to build shared libraries... " >&6; }
15083 test "$can_build_shared" = "no" && enable_shared=no
15085 # On AIX, shared libraries and static libraries use the same namespace, and
15086 # are all built from PIC.
15089 test "$enable_shared" = yes && enable_static=no
15090 if test -n "$RANLIB"; then
15091 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15092 postinstall_cmds='$RANLIB $lib'
15097 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15098 test "$enable_shared" = yes && enable_static=no
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15103 $as_echo "$enable_shared" >&6; }
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15106 $as_echo_n "checking whether to build static libraries... " >&6; }
15107 # Make sure either enable_shared or enable_static is yes.
15108 test "$enable_shared" = yes || enable_static=yes
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15110 $as_echo "$enable_static" >&6; }
15117 ac_cpp='$CPP $CPPFLAGS'
15118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15124 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15125 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15126 (test "X$CXX" != "Xg++"))) ; then
15128 ac_cpp='$CXXCPP $CPPFLAGS'
15129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15133 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15134 if test -z "$CXXCPP"; then
15135 if ${ac_cv_prog_CXXCPP+:} false; then :
15136 $as_echo_n "(cached) " >&6
15138 # Double quotes because CXXCPP needs to be expanded
15139 for CXXCPP in "$CXX -E" "/lib/cpp"
15141 ac_preproc_ok=false
15142 for ac_cxx_preproc_warn_flag in '' yes
15144 # Use a header file that comes with gcc, so configuring glibc
15145 # with a fresh cross-compiler works.
15146 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15147 # <limits.h> exists even on freestanding compilers.
15148 # On the NeXT, cc -E runs the code through the compiler's parser,
15149 # not just through cpp. "Syntax error" is here to catch this case.
15150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15151 /* end confdefs.h. */
15153 # include <limits.h>
15155 # include <assert.h>
15159 if ac_fn_cxx_try_cpp "$LINENO"; then :
15162 # Broken: fails on valid input.
15165 rm -f conftest.err conftest.i conftest.$ac_ext
15167 # OK, works on sane cases. Now check whether nonexistent headers
15168 # can be detected and how.
15169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15170 /* end confdefs.h. */
15171 #include <ac_nonexistent.h>
15173 if ac_fn_cxx_try_cpp "$LINENO"; then :
15174 # Broken: success on invalid input.
15177 # Passes both tests.
15181 rm -f conftest.err conftest.i conftest.$ac_ext
15184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15185 rm -f conftest.i conftest.err conftest.$ac_ext
15186 if $ac_preproc_ok; then :
15191 ac_cv_prog_CXXCPP=$CXXCPP
15194 CXXCPP=$ac_cv_prog_CXXCPP
15196 ac_cv_prog_CXXCPP=$CXXCPP
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15199 $as_echo "$CXXCPP" >&6; }
15200 ac_preproc_ok=false
15201 for ac_cxx_preproc_warn_flag in '' yes
15203 # Use a header file that comes with gcc, so configuring glibc
15204 # with a fresh cross-compiler works.
15205 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15206 # <limits.h> exists even on freestanding compilers.
15207 # On the NeXT, cc -E runs the code through the compiler's parser,
15208 # not just through cpp. "Syntax error" is here to catch this case.
15209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15210 /* end confdefs.h. */
15212 # include <limits.h>
15214 # include <assert.h>
15218 if ac_fn_cxx_try_cpp "$LINENO"; then :
15221 # Broken: fails on valid input.
15224 rm -f conftest.err conftest.i conftest.$ac_ext
15226 # OK, works on sane cases. Now check whether nonexistent headers
15227 # can be detected and how.
15228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229 /* end confdefs.h. */
15230 #include <ac_nonexistent.h>
15232 if ac_fn_cxx_try_cpp "$LINENO"; then :
15233 # Broken: success on invalid input.
15236 # Passes both tests.
15240 rm -f conftest.err conftest.i conftest.$ac_ext
15243 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15244 rm -f conftest.i conftest.err conftest.$ac_ext
15245 if $ac_preproc_ok; then :
15248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15250 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15251 See \`config.log' for more details" "$LINENO" 5; }
15255 ac_cpp='$CPP $CPPFLAGS'
15256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15261 _lt_caught_CXX_error=yes
15265 ac_cpp='$CXXCPP $CPPFLAGS'
15266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15270 archive_cmds_need_lc_CXX=no
15271 allow_undefined_flag_CXX=
15272 always_export_symbols_CXX=no
15273 archive_expsym_cmds_CXX=
15274 compiler_needs_object_CXX=no
15275 export_dynamic_flag_spec_CXX=
15276 hardcode_direct_CXX=no
15277 hardcode_direct_absolute_CXX=no
15278 hardcode_libdir_flag_spec_CXX=
15279 hardcode_libdir_flag_spec_ld_CXX=
15280 hardcode_libdir_separator_CXX=
15281 hardcode_minus_L_CXX=no
15282 hardcode_shlibpath_var_CXX=unsupported
15283 hardcode_automatic_CXX=no
15284 inherit_rpath_CXX=no
15286 module_expsym_cmds_CXX=
15287 link_all_deplibs_CXX=unknown
15288 old_archive_cmds_CXX=$old_archive_cmds
15289 reload_flag_CXX=$reload_flag
15290 reload_cmds_CXX=$reload_cmds
15291 no_undefined_flag_CXX=
15292 whole_archive_flag_spec_CXX=
15293 enable_shared_with_static_runtimes_CXX=no
15295 # Source file extension for C++ test sources.
15298 # Object file extension for compiled C++ test sources.
15302 # No sense in running all these tests if we already determined that
15303 # the CXX compiler isn't working. Some variables (like enable_shared)
15304 # are currently assumed to apply to all compilers on this platform,
15305 # and will be corrupted by setting them based on a non-working compiler.
15306 if test "$_lt_caught_CXX_error" != yes; then
15307 # Code to be used in simple compile tests
15308 lt_simple_compile_test_code="int some_variable = 0;"
15310 # Code to be used in simple link tests
15311 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15313 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15320 # If no C compiler was specified, use CC.
15323 # If no C compiler flags were specified, use CFLAGS.
15324 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15326 # Allow CC to be a program name with arguments.
15330 # save warnings/boilerplate of simple test code
15331 ac_outfile=conftest.$ac_objext
15332 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15333 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15334 _lt_compiler_boilerplate=`cat conftest.err`
15337 ac_outfile=conftest.$ac_objext
15338 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15339 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15340 _lt_linker_boilerplate=`cat conftest.err`
15344 # Allow CC to be a program name with arguments.
15346 lt_save_CFLAGS=$CFLAGS
15350 lt_save_with_gnu_ld=$with_gnu_ld
15351 lt_save_path_LD=$lt_cv_path_LD
15352 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15353 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15355 $as_unset lt_cv_prog_gnu_ld
15357 if test -n "${lt_cv_path_LDCXX+set}"; then
15358 lt_cv_path_LD=$lt_cv_path_LDCXX
15360 $as_unset lt_cv_path_LD
15362 test -z "${LDCXX+set}" || LD=$LDCXX
15367 for cc_temp in $compiler""; do
15369 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15370 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15375 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15378 if test -n "$compiler"; then
15379 # We don't want -fno-exception when compiling C++ code, so set the
15380 # no_builtin_flag separately
15381 if test "$GXX" = yes; then
15382 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15384 lt_prog_compiler_no_builtin_flag_CXX=
15387 if test "$GXX" = yes; then
15388 # Set up default GNU C++ configuration
15392 # Check whether --with-gnu-ld was given.
15393 if test "${with_gnu_ld+set}" = set; then :
15394 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15400 if test "$GCC" = yes; then
15401 # Check if gcc -print-prog-name=ld gives a path.
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15403 $as_echo_n "checking for ld used by $CC... " >&6; }
15406 # gcc leaves a trailing carriage return which upsets mingw
15407 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15409 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15412 # Accept absolute paths.
15414 re_direlt='/[^/][^/]*/\.\./'
15415 # Canonicalize the pathname of ld
15416 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15417 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15418 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15420 test -z "$LD" && LD="$ac_prog"
15423 # If it fails, then pretend we aren't using GCC.
15427 # If it is relative, then search for the first ld in PATH.
15428 with_gnu_ld=unknown
15431 elif test "$with_gnu_ld" = yes; then
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15433 $as_echo_n "checking for GNU ld... " >&6; }
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15436 $as_echo_n "checking for non-GNU ld... " >&6; }
15438 if ${lt_cv_path_LD+:} false; then :
15439 $as_echo_n "(cached) " >&6
15441 if test -z "$LD"; then
15442 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15443 for ac_dir in $PATH; do
15445 test -z "$ac_dir" && ac_dir=.
15446 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15447 lt_cv_path_LD="$ac_dir/$ac_prog"
15448 # Check to see if the program is GNU ld. I'd rather use --version,
15449 # but apparently some variants of GNU ld only accept -v.
15450 # Break only if it was the GNU/non-GNU ld that we prefer.
15451 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15452 *GNU* | *'with BFD'*)
15453 test "$with_gnu_ld" != no && break
15456 test "$with_gnu_ld" != yes && break
15463 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15467 LD="$lt_cv_path_LD"
15468 if test -n "$LD"; then
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15470 $as_echo "$LD" >&6; }
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15473 $as_echo "no" >&6; }
15475 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15477 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15478 if ${lt_cv_prog_gnu_ld+:} false; then :
15479 $as_echo_n "(cached) " >&6
15481 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15482 case `$LD -v 2>&1 </dev/null` in
15483 *GNU* | *'with BFD'*)
15484 lt_cv_prog_gnu_ld=yes
15487 lt_cv_prog_gnu_ld=no
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15492 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15493 with_gnu_ld=$lt_cv_prog_gnu_ld
15501 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15502 # archiving commands below assume that GNU ld is being used.
15503 if test "$with_gnu_ld" = yes; then
15504 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15505 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15507 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15508 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15510 # If archive_cmds runs LD, not CC, wlarc should be empty
15511 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15512 # investigate it a little bit more. (MM)
15515 # ancient GNU ld didn't support --whole-archive et. al.
15516 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15517 $GREP 'no-whole-archive' > /dev/null; then
15518 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15520 whole_archive_flag_spec_CXX=
15526 # A generic and very simple default shared library creation
15527 # command for GNU C++ for the case where it uses the native
15528 # linker, instead of GNU ld. If possible, this setting should
15529 # overridden to take advantage of the native linker features on
15530 # the platform it is being used on.
15531 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15534 # Commands to make compiler produce verbose output that lists
15535 # what "hidden" libraries, object files and flags are used when
15536 # linking a shared library.
15537 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15545 # PORTME: fill in a description of your system's C++ link characteristics
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15547 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15551 # FIXME: insert proper C++ library support
15555 if test "$host_cpu" = ia64; then
15556 # On IA64, the linker does run time linking by default, so we don't
15557 # have to do anything special.
15558 aix_use_runtimelinking=no
15559 exp_sym_flag='-Bexport'
15562 aix_use_runtimelinking=no
15564 # Test if we are trying to use run time linking or normal
15565 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15566 # need to do runtime linking.
15567 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15568 for ld_flag in $LDFLAGS; do
15571 aix_use_runtimelinking=yes
15579 exp_sym_flag='-bexport'
15580 no_entry_flag='-bnoentry'
15583 # When large executables or shared objects are built, AIX ld can
15584 # have problems creating the table of contents. If linking a library
15585 # or program results in "error TOC overflow" add -mminimal-toc to
15586 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15587 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15589 archive_cmds_CXX=''
15590 hardcode_direct_CXX=yes
15591 hardcode_direct_absolute_CXX=yes
15592 hardcode_libdir_separator_CXX=':'
15593 link_all_deplibs_CXX=yes
15594 file_list_spec_CXX='${wl}-f,'
15596 if test "$GXX" = yes; then
15597 case $host_os in aix4.[012]|aix4.[012].*)
15598 # We only want to do this on AIX 4.2 and lower, the check
15599 # below for broken collect2 doesn't work under 4.3+
15600 collect2name=`${CC} -print-prog-name=collect2`
15601 if test -f "$collect2name" &&
15602 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15604 # We have reworked collect2
15607 # We have old collect2
15608 hardcode_direct_CXX=unsupported
15609 # It fails to find uninstalled libraries when the uninstalled
15610 # path is not listed in the libpath. Setting hardcode_minus_L
15611 # to unsupported forces relinking
15612 hardcode_minus_L_CXX=yes
15613 hardcode_libdir_flag_spec_CXX='-L$libdir'
15614 hardcode_libdir_separator_CXX=
15617 shared_flag='-shared'
15618 if test "$aix_use_runtimelinking" = yes; then
15619 shared_flag="$shared_flag "'${wl}-G'
15623 if test "$host_cpu" = ia64; then
15624 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15625 # chokes on -Wl,-G. The following line is correct:
15628 if test "$aix_use_runtimelinking" = yes; then
15629 shared_flag='${wl}-G'
15631 shared_flag='${wl}-bM:SRE'
15636 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15637 # It seems that -bexpall does not export symbols beginning with
15638 # underscore (_), so it is better to generate a list of symbols to
15640 always_export_symbols_CXX=yes
15641 if test "$aix_use_runtimelinking" = yes; then
15642 # Warning - without using the other runtime loading flags (-brtl),
15643 # -berok will link without error, but may produce a broken library.
15644 allow_undefined_flag_CXX='-berok'
15645 # Determine the default libpath from the value encoded in an empty
15647 if test "${lt_cv_aix_libpath+set}" = set; then
15648 aix_libpath=$lt_cv_aix_libpath
15650 if ${lt_cv_aix_libpath__CXX+:} false; then :
15651 $as_echo_n "(cached) " >&6
15653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15654 /* end confdefs.h. */
15664 if ac_fn_cxx_try_link "$LINENO"; then :
15666 lt_aix_libpath_sed='
15667 /Import File Strings/,/^$/ {
15669 s/^0 *\([^ ]*\) *$/\1/
15673 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15674 # Check for a 64-bit object if we didn't find anything.
15675 if test -z "$lt_cv_aix_libpath__CXX"; then
15676 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15679 rm -f core conftest.err conftest.$ac_objext \
15680 conftest$ac_exeext conftest.$ac_ext
15681 if test -z "$lt_cv_aix_libpath__CXX"; then
15682 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
15687 aix_libpath=$lt_cv_aix_libpath__CXX
15690 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15692 archive_expsym_cmds_CXX='$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"
15694 if test "$host_cpu" = ia64; then
15695 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15696 allow_undefined_flag_CXX="-z nodefs"
15697 archive_expsym_cmds_CXX="\$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"
15699 # Determine the default libpath from the value encoded in an
15700 # empty executable.
15701 if test "${lt_cv_aix_libpath+set}" = set; then
15702 aix_libpath=$lt_cv_aix_libpath
15704 if ${lt_cv_aix_libpath__CXX+:} false; then :
15705 $as_echo_n "(cached) " >&6
15707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708 /* end confdefs.h. */
15718 if ac_fn_cxx_try_link "$LINENO"; then :
15720 lt_aix_libpath_sed='
15721 /Import File Strings/,/^$/ {
15723 s/^0 *\([^ ]*\) *$/\1/
15727 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15728 # Check for a 64-bit object if we didn't find anything.
15729 if test -z "$lt_cv_aix_libpath__CXX"; then
15730 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15733 rm -f core conftest.err conftest.$ac_objext \
15734 conftest$ac_exeext conftest.$ac_ext
15735 if test -z "$lt_cv_aix_libpath__CXX"; then
15736 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
15741 aix_libpath=$lt_cv_aix_libpath__CXX
15744 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15745 # Warning - without using the other run time loading flags,
15746 # -berok will link without error, but may produce a broken library.
15747 no_undefined_flag_CXX=' ${wl}-bernotok'
15748 allow_undefined_flag_CXX=' ${wl}-berok'
15749 if test "$with_gnu_ld" = yes; then
15750 # We only use this code for GNU lds that support --whole-archive.
15751 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15753 # Exported symbols can be pulled into shared objects from archives
15754 whole_archive_flag_spec_CXX='$convenience'
15756 archive_cmds_need_lc_CXX=yes
15757 # This is similar to how AIX traditionally builds its shared
15759 archive_expsym_cmds_CXX="\$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'
15765 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15766 allow_undefined_flag_CXX=unsupported
15767 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15768 # support --undefined. This deserves some investigation. FIXME
15769 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15776 case $cc_basename in
15778 # FIXME: insert proper C++ library support
15784 cygwin* | mingw* | pw32* | cegcc*)
15785 case $GXX,$cc_basename in
15788 # hardcode_libdir_flag_spec is actually meaningless, as there is
15789 # no search path for DLLs.
15790 hardcode_libdir_flag_spec_CXX=' '
15791 allow_undefined_flag_CXX=unsupported
15792 always_export_symbols_CXX=yes
15793 file_list_spec_CXX='@'
15794 # Tell ltmain to make .lib files, not .a files.
15796 # Tell ltmain to make .dll files, not .so files.
15798 # FIXME: Setting linknames here is a bad hack.
15799 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15800 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15801 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15803 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15805 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15807 # The linker will not automatically build a static lib if we build a DLL.
15808 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15809 enable_shared_with_static_runtimes_CXX=yes
15811 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15812 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15813 lt_tool_outputfile="@TOOL_OUTPUT@"~
15814 case $lt_outputfile in
15817 lt_outputfile="$lt_outputfile.exe"
15818 lt_tool_outputfile="$lt_tool_outputfile.exe"
15821 func_to_tool_file "$lt_outputfile"~
15822 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15823 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15824 $RM "$lt_outputfile.manifest";
15829 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15830 # as there is no search path for DLLs.
15831 hardcode_libdir_flag_spec_CXX='-L$libdir'
15832 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
15833 allow_undefined_flag_CXX=unsupported
15834 always_export_symbols_CXX=no
15835 enable_shared_with_static_runtimes_CXX=yes
15837 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15838 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15839 # If the export-symbols file already is a .def file (1st line
15840 # is EXPORTS), use it as is; otherwise, prepend...
15841 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15842 cp $export_symbols $output_objdir/$soname.def;
15844 echo EXPORTS > $output_objdir/$soname.def;
15845 cat $export_symbols >> $output_objdir/$soname.def;
15847 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15854 darwin* | rhapsody*)
15857 archive_cmds_need_lc_CXX=no
15858 hardcode_direct_CXX=no
15859 hardcode_automatic_CXX=yes
15860 hardcode_shlibpath_var_CXX=unsupported
15861 if test "$lt_cv_ld_force_load" = "yes"; then
15862 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15864 whole_archive_flag_spec_CXX=''
15866 link_all_deplibs_CXX=yes
15867 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15868 case $cc_basename in
15869 ifort*) _lt_dar_can_shared=yes ;;
15870 *) _lt_dar_can_shared=$GCC ;;
15872 if test "$_lt_dar_can_shared" = "yes"; then
15873 output_verbose_link_cmd=func_echo_all
15874 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15875 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15876 archive_expsym_cmds_CXX="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}"
15877 module_expsym_cmds_CXX="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}"
15878 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15879 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
15880 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
15890 case $cc_basename in
15892 # FIXME: insert proper C++ library support
15896 # Green Hills C++ Compiler
15897 # FIXME: insert proper C++ library support
15901 # FIXME: insert proper C++ library support
15908 # C++ shared libraries reported to be fairly broken before
15914 archive_cmds_need_lc_CXX=no
15917 freebsd* | dragonfly*)
15918 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15927 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15928 link_all_deplibs_CXX=yes
15932 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15933 hardcode_libdir_separator_CXX=:
15934 export_dynamic_flag_spec_CXX='${wl}-E'
15935 hardcode_direct_CXX=yes
15936 hardcode_minus_L_CXX=yes # Not in the search PATH,
15937 # but as the default
15938 # location of the library.
15940 case $cc_basename in
15942 # FIXME: insert proper C++ library support
15946 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15947 # Commands to make compiler produce verbose output that lists
15948 # what "hidden" libraries, object files and flags are used when
15949 # linking a shared library.
15951 # There doesn't appear to be a way to prevent this compiler from
15952 # explicitly linking system object files so we need to strip them
15953 # from the output so that they don't get included in the library
15955 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15958 if test "$GXX" = yes; then
15959 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15961 # FIXME: insert proper C++ library support
15969 if test $with_gnu_ld = no; then
15970 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15971 hardcode_libdir_separator_CXX=:
15977 export_dynamic_flag_spec_CXX='${wl}-E'
15983 hardcode_direct_CXX=no
15984 hardcode_shlibpath_var_CXX=no
15987 hardcode_direct_CXX=yes
15988 hardcode_direct_absolute_CXX=yes
15989 hardcode_minus_L_CXX=yes # Not in the search PATH,
15990 # but as the default
15991 # location of the library.
15995 case $cc_basename in
15997 # FIXME: insert proper C++ library support
16003 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16006 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16009 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16012 # Commands to make compiler produce verbose output that lists
16013 # what "hidden" libraries, object files and flags are used when
16014 # linking a shared library.
16016 # There doesn't appear to be a way to prevent this compiler from
16017 # explicitly linking system object files so we need to strip them
16018 # from the output so that they don't get included in the library
16020 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16023 if test "$GXX" = yes; then
16024 if test $with_gnu_ld = no; then
16027 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16030 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16033 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16038 # FIXME: insert proper C++ library support
16046 hardcode_direct_CXX=no
16047 hardcode_shlibpath_var_CXX=no
16048 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16049 export_dynamic_flag_spec_CXX='${wl}-E'
16050 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16051 # Instead, shared libraries are loaded at an image base (0x10000000 by
16052 # default) and relocated if they conflict, which is a slow very memory
16053 # consuming and fragmenting process. To avoid this, we pick a random,
16054 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16055 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16056 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16057 archive_expsym_cmds_CXX='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'
16060 case $cc_basename in
16063 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16065 # Archives containing C++ object files must be created using
16066 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16067 # necessary to make sure instantiated templates are included
16069 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16072 if test "$GXX" = yes; then
16073 if test "$with_gnu_ld" = no; then
16074 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
16076 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
16079 link_all_deplibs_CXX=yes
16082 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16083 hardcode_libdir_separator_CXX=:
16084 inherit_rpath_CXX=yes
16087 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16088 case $cc_basename in
16090 # Kuck and Associates, Inc. (KAI) C++ Compiler
16092 # KCC will only create a shared library if the output file
16093 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16094 # to its proper name (with version) after linking.
16095 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16096 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
16097 # Commands to make compiler produce verbose output that lists
16098 # what "hidden" libraries, object files and flags are used when
16099 # linking a shared library.
16101 # There doesn't appear to be a way to prevent this compiler from
16102 # explicitly linking system object files so we need to strip them
16103 # from the output so that they don't get included in the library
16105 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16107 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16108 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16110 # Archives containing C++ object files must be created using
16111 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16112 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16117 # version 8.0 and above of icpc choke on multiply defined symbols
16118 # if we add $predep_objects and $postdep_objects, however 7.1 and
16119 # earlier do not add the objects themselves.
16120 case `$CC -V 2>&1` in
16122 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16123 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16125 *) # Version 8.0 or newer
16128 ia64*) tmp_idyn=' -i_dynamic';;
16130 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16131 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16134 archive_cmds_need_lc_CXX=no
16135 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16136 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16137 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16140 # Portland Group C++ compiler
16142 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16143 prelink_cmds_CXX='tpldir=Template.dir~
16145 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16146 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16147 old_archive_cmds_CXX='tpldir=Template.dir~
16149 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16150 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16152 archive_cmds_CXX='tpldir=Template.dir~
16154 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16155 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16156 archive_expsym_cmds_CXX='tpldir=Template.dir~
16158 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16159 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
16161 *) # Version 6 and above use weak symbols
16162 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16163 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
16167 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16168 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16169 whole_archive_flag_spec_CXX='${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'
16173 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16174 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
16176 runpath_var=LD_RUN_PATH
16177 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16178 hardcode_libdir_separator_CXX=:
16180 # Commands to make compiler produce verbose output that lists
16181 # what "hidden" libraries, object files and flags are used when
16182 # linking a shared library.
16184 # There doesn't appear to be a way to prevent this compiler from
16185 # explicitly linking system object files so we need to strip them
16186 # from the output so that they don't get included in the library
16188 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
16190 xl* | mpixl* | bgxl*)
16191 # IBM XL 8.0 on PPC, with GNU ld
16192 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16193 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16194 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16195 if test "x$supports_anon_versioning" = xyes; then
16196 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16197 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16198 echo "local: *; };" >> $output_objdir/$libname.ver~
16199 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16203 case `$CC -V 2>&1 | sed 5q` in
16206 no_undefined_flag_CXX=' -zdefs'
16207 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16208 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
16209 hardcode_libdir_flag_spec_CXX='-R$libdir'
16210 whole_archive_flag_spec_CXX='${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'
16211 compiler_needs_object_CXX=yes
16213 # Not sure whether something based on
16214 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16216 output_verbose_link_cmd='func_echo_all'
16218 # Archives containing C++ object files must be created using
16219 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16220 # necessary to make sure instantiated templates are included
16222 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16230 # FIXME: insert proper C++ library support
16235 # FIXME: insert proper C++ library support
16240 case $cc_basename in
16242 # FIXME: insert proper C++ library support
16246 # FIXME: insert proper C++ library support
16253 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16254 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16256 hardcode_libdir_flag_spec_CXX='-R$libdir'
16257 hardcode_direct_CXX=yes
16258 hardcode_shlibpath_var_CXX=no
16260 # Workaround some broken pre-1.5 toolchains
16261 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16269 # C++ shared libraries are fairly broken
16274 if test -f /usr/libexec/ld.so; then
16275 hardcode_direct_CXX=yes
16276 hardcode_shlibpath_var_CXX=no
16277 hardcode_direct_absolute_CXX=yes
16278 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16279 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16280 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16281 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16282 export_dynamic_flag_spec_CXX='${wl}-E'
16283 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16285 output_verbose_link_cmd=func_echo_all
16291 osf3* | osf4* | osf5*)
16292 case $cc_basename in
16294 # Kuck and Associates, Inc. (KAI) C++ Compiler
16296 # KCC will only create a shared library if the output file
16297 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16298 # to its proper name (with version) after linking.
16299 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16301 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16302 hardcode_libdir_separator_CXX=:
16304 # Archives containing C++ object files must be created using
16305 # the KAI C++ compiler.
16307 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16308 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16312 # Rational C++ 2.4.1
16313 # FIXME: insert proper C++ library support
16319 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16320 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16321 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16324 allow_undefined_flag_CXX=' -expect_unresolved \*'
16325 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16326 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16327 echo "-hidden">> $lib.exp~
16328 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
16330 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16334 hardcode_libdir_separator_CXX=:
16336 # Commands to make compiler produce verbose output that lists
16337 # what "hidden" libraries, object files and flags are used when
16338 # linking a shared library.
16340 # There doesn't appear to be a way to prevent this compiler from
16341 # explicitly linking system object files so we need to strip them
16342 # from the output so that they don't get included in the library
16344 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16347 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16348 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16351 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
16354 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
16358 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16359 hardcode_libdir_separator_CXX=:
16361 # Commands to make compiler produce verbose output that lists
16362 # what "hidden" libraries, object files and flags are used when
16363 # linking a shared library.
16364 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16367 # FIXME: insert proper C++ library support
16375 # FIXME: insert proper C++ library support
16380 case $cc_basename in
16383 # FIXME: insert proper C++ library support
16388 # FIXME: insert proper C++ library support
16392 # FIXME: insert proper C++ library support
16399 case $cc_basename in
16401 # Sun C++ 4.2, 5.x and Centerline C++
16402 archive_cmds_need_lc_CXX=yes
16403 no_undefined_flag_CXX=' -zdefs'
16404 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16405 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16406 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16408 hardcode_libdir_flag_spec_CXX='-R$libdir'
16409 hardcode_shlibpath_var_CXX=no
16411 solaris2.[0-5] | solaris2.[0-5].*) ;;
16413 # The compiler driver will combine and reorder linker options,
16414 # but understands `-z linker_flag'.
16415 # Supported since Solaris 2.6 (maybe 2.5.1?)
16416 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16419 link_all_deplibs_CXX=yes
16421 output_verbose_link_cmd='func_echo_all'
16423 # Archives containing C++ object files must be created using
16424 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16425 # necessary to make sure instantiated templates are included
16427 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16430 # Green Hills C++ Compiler
16431 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16433 # The C++ compiler must be used to create the archive.
16434 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16437 # GNU C++ compiler with Solaris linker
16438 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16439 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16440 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16441 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16442 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16443 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16445 # Commands to make compiler produce verbose output that lists
16446 # what "hidden" libraries, object files and flags are used when
16447 # linking a shared library.
16448 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16450 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16452 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16453 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16454 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16456 # Commands to make compiler produce verbose output that lists
16457 # what "hidden" libraries, object files and flags are used when
16458 # linking a shared library.
16459 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16462 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16464 solaris2.[0-5] | solaris2.[0-5].*) ;;
16466 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16474 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16475 no_undefined_flag_CXX='${wl}-z,text'
16476 archive_cmds_need_lc_CXX=no
16477 hardcode_shlibpath_var_CXX=no
16478 runpath_var='LD_RUN_PATH'
16480 case $cc_basename in
16482 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16483 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16486 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16487 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16492 sysv5* | sco3.2v5* | sco5v6*)
16493 # Note: We can NOT use -z defs as we might desire, because we do not
16494 # link with -lc, and that would cause any symbols used from libc to
16495 # always be unresolved, which means just about no library would
16496 # ever link correctly. If we're not using GNU ld we use -z text
16497 # though, which does catch some bad symbols but isn't as heavy-handed
16499 no_undefined_flag_CXX='${wl}-z,text'
16500 allow_undefined_flag_CXX='${wl}-z,nodefs'
16501 archive_cmds_need_lc_CXX=no
16502 hardcode_shlibpath_var_CXX=no
16503 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16504 hardcode_libdir_separator_CXX=':'
16505 link_all_deplibs_CXX=yes
16506 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16507 runpath_var='LD_RUN_PATH'
16509 case $cc_basename in
16511 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16512 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16513 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16514 '"$old_archive_cmds_CXX"
16515 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16516 '"$reload_cmds_CXX"
16519 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16520 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16526 case $cc_basename in
16528 # NonStop-UX NCC 3.20
16529 # FIXME: insert proper C++ library support
16533 # FIXME: insert proper C++ library support
16540 # FIXME: insert proper C++ library support
16545 # FIXME: insert proper C++ library support
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16551 $as_echo "$ld_shlibs_CXX" >&6; }
16552 test "$ld_shlibs_CXX" = no && can_build_shared=no
16558 ## There is no encapsulation within the following macros, do not change
16559 ## the running order or otherwise move them around unless you know exactly
16560 ## what you are doing...
16561 # Dependencies to place before and after the object being linked:
16562 predep_objects_CXX=
16563 postdep_objects_CXX=
16566 compiler_lib_search_path_CXX=
16568 cat > conftest.$ac_ext <<_LT_EOF
16572 Foo (void) { a = 0; }
16579 _lt_libdeps_save_CFLAGS=$CFLAGS
16580 case "$CC $CFLAGS " in #(
16581 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16582 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16586 (eval $ac_compile) 2>&5
16588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16589 test $ac_status = 0; }; then
16590 # Parse the compiler output and extract the necessary
16591 # objects, libraries and library flags.
16593 # Sentinel used to keep track of whether or not we are before
16594 # the conftest object file.
16595 pre_test_object_deps_done=no
16597 for p in `eval "$output_verbose_link_cmd"`; do
16598 case ${prev}${p} in
16601 # Some compilers place space between "-{L,R}" and the path.
16602 # Remove the space.
16603 if test $p = "-L" ||
16604 test $p = "-R"; then
16609 # Expand the sysroot to ease extracting the directories later.
16610 if test -z "$prev"; then
16612 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16613 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16614 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16618 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16620 if test "$pre_test_object_deps_done" = no; then
16623 # Internal compiler library paths should come after those
16624 # provided the user. The postdeps already come after the
16625 # user supplied libs so there is no need to process them.
16626 if test -z "$compiler_lib_search_path_CXX"; then
16627 compiler_lib_search_path_CXX="${prev}${p}"
16629 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16632 # The "-l" case would never come before the object being
16633 # linked, so don't bother handling this case.
16636 if test -z "$postdeps_CXX"; then
16637 postdeps_CXX="${prev}${p}"
16639 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16645 *.lto.$objext) ;; # Ignore GCC LTO objects
16647 # This assumes that the test object file only shows up
16648 # once in the compiler output.
16649 if test "$p" = "conftest.$objext"; then
16650 pre_test_object_deps_done=yes
16654 if test "$pre_test_object_deps_done" = no; then
16655 if test -z "$predep_objects_CXX"; then
16656 predep_objects_CXX="$p"
16658 predep_objects_CXX="$predep_objects_CXX $p"
16661 if test -z "$postdep_objects_CXX"; then
16662 postdep_objects_CXX="$p"
16664 postdep_objects_CXX="$postdep_objects_CXX $p"
16669 *) ;; # Ignore the rest.
16677 echo "libtool.m4: error: problem compiling CXX test program"
16680 $RM -f confest.$objext
16681 CFLAGS=$_lt_libdeps_save_CFLAGS
16683 # PORTME: override above test on systems where it is broken
16686 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16687 # hack all around it, let's just trust "g++" to DTRT.
16688 predep_objects_CXX=
16689 postdep_objects_CXX=
16694 case `$CC -V 2>&1 | sed 5q` in
16698 # The more standards-conforming stlport4 library is
16699 # incompatible with the Cstd library. Avoid specifying
16700 # it if it's in CXXFLAGS. Ignore libCrun as
16701 # -library=stlport4 depends on it.
16702 case " $CXX $CXXFLAGS " in
16703 *" -library=stlport4 "*)
16704 solaris_use_stlport4=yes
16708 if test "$solaris_use_stlport4" != yes; then
16709 postdeps_CXX='-library=Cstd -library=Crun'
16716 case $cc_basename in
16718 # The more standards-conforming stlport4 library is
16719 # incompatible with the Cstd library. Avoid specifying
16720 # it if it's in CXXFLAGS. Ignore libCrun as
16721 # -library=stlport4 depends on it.
16722 case " $CXX $CXXFLAGS " in
16723 *" -library=stlport4 "*)
16724 solaris_use_stlport4=yes
16728 # Adding this requires a known-good setup of shared libraries for
16729 # Sun compiler versions before 5.6, else PIC objects from an old
16730 # archive will be linked into the output, leading to subtle bugs.
16731 if test "$solaris_use_stlport4" != yes; then
16732 postdeps_CXX='-library=Cstd -library=Crun'
16740 case " $postdeps_CXX " in
16741 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16743 compiler_lib_search_dirs_CXX=
16744 if test -n "${compiler_lib_search_path_CXX}"; then
16745 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16778 lt_prog_compiler_wl_CXX=
16779 lt_prog_compiler_pic_CXX=
16780 lt_prog_compiler_static_CXX=
16783 # C++ specific cases for pic, static, wl, etc.
16784 if test "$GXX" = yes; then
16785 lt_prog_compiler_wl_CXX='-Wl,'
16786 lt_prog_compiler_static_CXX='-static'
16790 # All AIX code is PIC.
16791 if test "$host_cpu" = ia64; then
16792 # AIX 5 now supports IA64 processor
16793 lt_prog_compiler_static_CXX='-Bstatic'
16800 # see comment about AmigaOS4 .so support
16801 lt_prog_compiler_pic_CXX='-fPIC'
16804 # FIXME: we need at least 68020 code to build shared libraries, but
16805 # adding the `-m68020' flag to GCC prevents building anything better,
16807 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16812 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16813 # PIC is the default for these OSes.
16815 mingw* | cygwin* | os2* | pw32* | cegcc*)
16816 # This hack is so that the source file can tell whether it is being
16817 # built for inclusion in a dll (and should export symbols for example).
16818 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16819 # (--disable-auto-import) libraries
16820 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16822 darwin* | rhapsody*)
16823 # PIC is the default on this platform
16824 # Common symbols not allowed in MH_DYLIB files
16825 lt_prog_compiler_pic_CXX='-fno-common'
16828 # DJGPP does not support shared libraries at all
16829 lt_prog_compiler_pic_CXX=
16832 # PIC is the default for Haiku.
16833 # The "-static" flag exists, but is broken.
16834 lt_prog_compiler_static_CXX=
16837 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16838 # Instead, we relocate shared libraries at runtime.
16841 if test -d /usr/nec; then
16842 lt_prog_compiler_pic_CXX=-Kconform_pic
16846 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16847 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16848 # sets the default TLS model and affects inlining.
16853 lt_prog_compiler_pic_CXX='-fPIC'
16858 # QNX uses GNU C++, but need to define -shared option too, otherwise
16859 # it will coredump.
16860 lt_prog_compiler_pic_CXX='-fPIC -shared'
16863 lt_prog_compiler_pic_CXX='-fPIC'
16869 # All AIX code is PIC.
16870 if test "$host_cpu" = ia64; then
16871 # AIX 5 now supports IA64 processor
16872 lt_prog_compiler_static_CXX='-Bstatic'
16874 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16878 case $cc_basename in
16880 # Green Hills C++ Compiler
16881 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
16885 mingw* | cygwin* | os2* | pw32* | cegcc*)
16886 # This hack is so that the source file can tell whether it is being
16887 # built for inclusion in a dll (and should export symbols for example).
16888 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16891 case $cc_basename in
16893 lt_prog_compiler_pic_CXX='-KPIC'
16896 # Green Hills C++ Compiler
16897 lt_prog_compiler_pic_CXX='-pic'
16903 freebsd* | dragonfly*)
16904 # FreeBSD uses GNU C++
16906 hpux9* | hpux10* | hpux11*)
16907 case $cc_basename in
16909 lt_prog_compiler_wl_CXX='-Wl,'
16910 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16911 if test "$host_cpu" != ia64; then
16912 lt_prog_compiler_pic_CXX='+Z'
16916 lt_prog_compiler_wl_CXX='-Wl,'
16917 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16923 lt_prog_compiler_pic_CXX='+Z'
16932 # This is c89, which is MS Visual C++ (no shared libs)
16933 # Anyone wants to do a port?
16935 irix5* | irix6* | nonstopux*)
16936 case $cc_basename in
16938 lt_prog_compiler_wl_CXX='-Wl,'
16939 lt_prog_compiler_static_CXX='-non_shared'
16940 # CC pic flag -KPIC is the default.
16946 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16947 case $cc_basename in
16950 lt_prog_compiler_wl_CXX='--backend -Wl,'
16951 lt_prog_compiler_pic_CXX='-fPIC'
16954 # old Intel C++ for x86_64 which still supported -KPIC.
16955 lt_prog_compiler_wl_CXX='-Wl,'
16956 lt_prog_compiler_pic_CXX='-KPIC'
16957 lt_prog_compiler_static_CXX='-static'
16960 # Intel C++, used to be incompatible with GCC.
16961 # ICC 10 doesn't accept -KPIC any more.
16962 lt_prog_compiler_wl_CXX='-Wl,'
16963 lt_prog_compiler_pic_CXX='-fPIC'
16964 lt_prog_compiler_static_CXX='-static'
16967 # Portland Group C++ compiler
16968 lt_prog_compiler_wl_CXX='-Wl,'
16969 lt_prog_compiler_pic_CXX='-fpic'
16970 lt_prog_compiler_static_CXX='-Bstatic'
16974 # Make sure the PIC flag is empty. It appears that all Alpha
16975 # Linux and Compaq Tru64 Unix objects are PIC.
16976 lt_prog_compiler_pic_CXX=
16977 lt_prog_compiler_static_CXX='-non_shared'
16979 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16980 # IBM XL 8.0, 9.0 on PPC and BlueGene
16981 lt_prog_compiler_wl_CXX='-Wl,'
16982 lt_prog_compiler_pic_CXX='-qpic'
16983 lt_prog_compiler_static_CXX='-qstaticlink'
16986 case `$CC -V 2>&1 | sed 5q` in
16989 lt_prog_compiler_pic_CXX='-KPIC'
16990 lt_prog_compiler_static_CXX='-Bstatic'
16991 lt_prog_compiler_wl_CXX='-Qoption ld '
17002 case $cc_basename in
17004 lt_prog_compiler_pic_CXX='-W c,exportall'
17013 # QNX uses GNU C++, but need to define -shared option too, otherwise
17014 # it will coredump.
17015 lt_prog_compiler_pic_CXX='-fPIC -shared'
17017 osf3* | osf4* | osf5*)
17018 case $cc_basename in
17020 lt_prog_compiler_wl_CXX='--backend -Wl,'
17023 # Rational C++ 2.4.1
17024 lt_prog_compiler_pic_CXX='-pic'
17027 # Digital/Compaq C++
17028 lt_prog_compiler_wl_CXX='-Wl,'
17029 # Make sure the PIC flag is empty. It appears that all Alpha
17030 # Linux and Compaq Tru64 Unix objects are PIC.
17031 lt_prog_compiler_pic_CXX=
17032 lt_prog_compiler_static_CXX='-non_shared'
17041 case $cc_basename in
17043 # Sun C++ 4.2, 5.x and Centerline C++
17044 lt_prog_compiler_pic_CXX='-KPIC'
17045 lt_prog_compiler_static_CXX='-Bstatic'
17046 lt_prog_compiler_wl_CXX='-Qoption ld '
17049 # Green Hills C++ Compiler
17050 lt_prog_compiler_pic_CXX='-PIC'
17057 case $cc_basename in
17060 lt_prog_compiler_pic_CXX='-pic'
17061 lt_prog_compiler_static_CXX='-Bstatic'
17065 lt_prog_compiler_pic_CXX='-pic'
17071 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17072 case $cc_basename in
17074 lt_prog_compiler_wl_CXX='-Wl,'
17075 lt_prog_compiler_pic_CXX='-KPIC'
17076 lt_prog_compiler_static_CXX='-Bstatic'
17081 case $cc_basename in
17083 # NonStop-UX NCC 3.20
17084 lt_prog_compiler_pic_CXX='-KPIC'
17093 lt_prog_compiler_can_build_shared_CXX=no
17099 # For platforms which do not support PIC, -DPIC is meaningless:
17101 lt_prog_compiler_pic_CXX=
17104 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17109 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17110 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17111 $as_echo_n "(cached) " >&6
17113 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17116 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17117 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17120 # Check to make sure the PIC flag actually works.
17122 if test -n "$lt_prog_compiler_pic_CXX"; then
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17124 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17125 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17126 $as_echo_n "(cached) " >&6
17128 lt_cv_prog_compiler_pic_works_CXX=no
17129 ac_outfile=conftest.$ac_objext
17130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17131 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17132 # Insert the option either (1) after the last *FLAGS variable, or
17133 # (2) before a word containing "conftest.", or (3) at the end.
17134 # Note that $ac_compile itself does not contain backslashes and begins
17135 # with a dollar sign (not a hyphen), so the echo should work correctly.
17136 # The option is referenced via a variable to avoid confusing sed.
17137 lt_compile=`echo "$ac_compile" | $SED \
17138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17140 -e 's:$: $lt_compiler_flag:'`
17141 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17142 (eval "$lt_compile" 2>conftest.err)
17144 cat conftest.err >&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 if (exit $ac_status) && test -s "$ac_outfile"; then
17147 # The compiler can only warn and ignore the option if not recognized
17148 # So say no if there are warnings other than the usual output.
17149 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17150 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17151 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17152 lt_cv_prog_compiler_pic_works_CXX=yes
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17159 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17161 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17162 case $lt_prog_compiler_pic_CXX in
17164 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17167 lt_prog_compiler_pic_CXX=
17168 lt_prog_compiler_can_build_shared_CXX=no
17178 # Check to make sure the static flag actually works.
17180 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17182 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17183 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17184 $as_echo_n "(cached) " >&6
17186 lt_cv_prog_compiler_static_works_CXX=no
17187 save_LDFLAGS="$LDFLAGS"
17188 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17189 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17190 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17191 # The linker can only warn and ignore the option if not recognized
17192 # So say no if there are warnings
17193 if test -s conftest.err; then
17194 # Append any errors to the config.log.
17195 cat conftest.err 1>&5
17196 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17197 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17198 if diff conftest.exp conftest.er2 >/dev/null; then
17199 lt_cv_prog_compiler_static_works_CXX=yes
17202 lt_cv_prog_compiler_static_works_CXX=yes
17206 LDFLAGS="$save_LDFLAGS"
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17210 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17212 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17215 lt_prog_compiler_static_CXX=
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17222 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17223 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17224 $as_echo_n "(cached) " >&6
17226 lt_cv_prog_compiler_c_o_CXX=no
17227 $RM -r conftest 2>/dev/null
17231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17233 lt_compiler_flag="-o out/conftest2.$ac_objext"
17234 # Insert the option either (1) after the last *FLAGS variable, or
17235 # (2) before a word containing "conftest.", or (3) at the end.
17236 # Note that $ac_compile itself does not contain backslashes and begins
17237 # with a dollar sign (not a hyphen), so the echo should work correctly.
17238 lt_compile=`echo "$ac_compile" | $SED \
17239 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17241 -e 's:$: $lt_compiler_flag:'`
17242 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17243 (eval "$lt_compile" 2>out/conftest.err)
17245 cat out/conftest.err >&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17249 # The compiler can only warn and ignore the option if not recognized
17250 # So say no if there are warnings
17251 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17252 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17253 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17254 lt_cv_prog_compiler_c_o_CXX=yes
17259 # SGI C++ compiler will create directory out/ii_files/ for
17260 # template instantiation
17261 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17262 $RM out/* && rmdir out
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17269 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17274 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17275 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17276 $as_echo_n "(cached) " >&6
17278 lt_cv_prog_compiler_c_o_CXX=no
17279 $RM -r conftest 2>/dev/null
17283 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17285 lt_compiler_flag="-o out/conftest2.$ac_objext"
17286 # Insert the option either (1) after the last *FLAGS variable, or
17287 # (2) before a word containing "conftest.", or (3) at the end.
17288 # Note that $ac_compile itself does not contain backslashes and begins
17289 # with a dollar sign (not a hyphen), so the echo should work correctly.
17290 lt_compile=`echo "$ac_compile" | $SED \
17291 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17292 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17293 -e 's:$: $lt_compiler_flag:'`
17294 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17295 (eval "$lt_compile" 2>out/conftest.err)
17297 cat out/conftest.err >&5
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17301 # The compiler can only warn and ignore the option if not recognized
17302 # So say no if there are warnings
17303 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17304 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17305 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17306 lt_cv_prog_compiler_c_o_CXX=yes
17311 # SGI C++ compiler will create directory out/ii_files/ for
17312 # template instantiation
17313 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17314 $RM out/* && rmdir out
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17321 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17326 hard_links="nottested"
17327 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17328 # do not overwrite the value of need_locks provided by the user
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17330 $as_echo_n "checking if we can lock with hard links... " >&6; }
17333 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17335 ln conftest.a conftest.b 2>&5 || hard_links=no
17336 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17338 $as_echo "$hard_links" >&6; }
17339 if test "$hard_links" = no; then
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17341 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17351 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17353 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17354 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17357 # If we're using GNU nm, then we don't want the "-C" option.
17358 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17359 # Also, AIX nm treats weak defined symbols like other global defined
17360 # symbols, whereas GNU nm marks them as "W".
17361 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17362 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17364 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17368 export_symbols_cmds_CXX="$ltdll_cmds"
17370 cygwin* | mingw* | cegcc*)
17371 case $cc_basename in
17374 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17375 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17380 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17385 $as_echo "$ld_shlibs_CXX" >&6; }
17386 test "$ld_shlibs_CXX" = no && can_build_shared=no
17388 with_gnu_ld_CXX=$with_gnu_ld
17396 # Do we need to explicitly link libc?
17398 case "x$archive_cmds_need_lc_CXX" in
17400 # Assume -lc should be added
17401 archive_cmds_need_lc_CXX=yes
17403 if test "$enable_shared" = yes && test "$GCC" = yes; then
17404 case $archive_cmds_CXX in
17406 # FIXME: we may have to deal with multi-command sequences.
17409 # Test whether the compiler implicitly links with -lc since on some
17410 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17411 # to ld, don't add -lc before -lgcc.
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17413 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17414 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17415 $as_echo_n "(cached) " >&6
17418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17421 (eval $ac_compile) 2>&5
17423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17424 test $ac_status = 0; } 2>conftest.err; then
17427 libobjs=conftest.$ac_objext
17429 wl=$lt_prog_compiler_wl_CXX
17430 pic_flag=$lt_prog_compiler_pic_CXX
17436 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17437 allow_undefined_flag_CXX=
17438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17439 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17442 test $ac_status = 0; }
17444 lt_cv_archive_cmds_need_lc_CXX=no
17446 lt_cv_archive_cmds_need_lc_CXX=yes
17448 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17450 cat conftest.err 1>&5
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17456 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17457 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17528 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17530 library_names_spec=
17531 libname_spec='lib$name'
17535 postuninstall_cmds=
17539 shlibpath_overrides_runpath=unknown
17541 dynamic_linker="$host_os ld.so"
17542 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17543 need_lib_prefix=unknown
17544 hardcode_into_libs=no
17546 # when you set need_version to no, make sure it does not cause -set_version
17547 # flags to be left without arguments
17548 need_version=unknown
17553 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17554 shlibpath_var=LIBPATH
17556 # AIX 3 has no versioning support, so we append a major version to the name.
17557 soname_spec='${libname}${release}${shared_ext}$major'
17564 hardcode_into_libs=yes
17565 if test "$host_cpu" = ia64; then
17566 # AIX 5 supports IA64
17567 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17568 shlibpath_var=LD_LIBRARY_PATH
17570 # With GCC up to 2.95.x, collect2 would create an import file
17571 # for dependence libraries. The import file would start with
17572 # the line `#! .'. This would cause the generated library to
17573 # depend on `.', always an invalid library. This was fixed in
17574 # development snapshots of GCC prior to 3.0.
17576 aix4 | aix4.[01] | aix4.[01].*)
17577 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17579 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17582 can_build_shared=no
17586 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17587 # soname into executable. Probably we can add versioning support to
17588 # collect2, so additional links can be useful in future.
17589 if test "$aix_use_runtimelinking" = yes; then
17590 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17591 # instead of lib<name>.a to let people know that these are not
17592 # typical AIX shared libraries.
17593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17595 # We preserve .a as extension for shared libraries through AIX4.2
17596 # and later when we are not doing run time linking.
17597 library_names_spec='${libname}${release}.a $libname.a'
17598 soname_spec='${libname}${release}${shared_ext}$major'
17600 shlibpath_var=LIBPATH
17607 # Since July 2007 AmigaOS4 officially supports .so libraries.
17608 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17612 library_names_spec='$libname.ixlibrary $libname.a'
17613 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17614 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'
17620 library_names_spec='${libname}${shared_ext}'
17621 dynamic_linker="$host_os ld.so"
17622 shlibpath_var=LIBRARY_PATH
17628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17629 soname_spec='${libname}${release}${shared_ext}$major'
17630 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17631 shlibpath_var=LD_LIBRARY_PATH
17632 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17633 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17634 # the default ld.so.conf also contains /usr/contrib/lib and
17635 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17636 # libtool to hard-code these into programs
17639 cygwin* | mingw* | pw32* | cegcc*)
17640 version_type=windows
17645 case $GCC,$cc_basename in
17648 library_names_spec='$libname.dll.a'
17649 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17650 postinstall_cmds='base_file=`basename \${file}`~
17651 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17652 dldir=$destdir/`dirname \$dlpath`~
17653 test -d \$dldir || mkdir -p \$dldir~
17654 $install_prog $dir/$dlname \$dldir/$dlname~
17655 chmod a+x \$dldir/$dlname~
17656 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17657 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17659 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17660 dlpath=$dir/\$dldll~
17662 shlibpath_overrides_runpath=yes
17666 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17667 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17671 # MinGW DLLs use traditional 'lib' prefix
17672 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17675 # pw32 DLLs use 'pw' prefix rather than 'lib'
17676 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17679 dynamic_linker='Win32 ld.exe'
17684 libname_spec='$name'
17685 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17686 library_names_spec='${libname}.dll.lib'
17690 sys_lib_search_path_spec=
17693 for lt_path in $LIB
17696 # Let DOS variable expansion print the short 8.3 style file name.
17697 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17698 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17701 # Convert to MSYS style.
17702 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17705 # Convert to unix form, then to dos form, then back to unix form
17706 # but this time dos style (no spaces!) so that the unix form looks
17707 # like /cygdrive/c/PROGRA~1:/cygdr...
17708 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17709 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17710 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17713 sys_lib_search_path_spec="$LIB"
17714 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17715 # It is most probably a Windows format PATH.
17716 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17718 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17720 # FIXME: find the short name or the path components, as spaces are
17721 # common. (e.g. "Program Files" -> "PROGRA~1")
17725 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17726 postinstall_cmds='base_file=`basename \${file}`~
17727 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17728 dldir=$destdir/`dirname \$dlpath`~
17729 test -d \$dldir || mkdir -p \$dldir~
17730 $install_prog $dir/$dlname \$dldir/$dlname'
17731 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17732 dlpath=$dir/\$dldll~
17734 shlibpath_overrides_runpath=yes
17735 dynamic_linker='Win32 link.exe'
17739 # Assume MSVC wrapper
17740 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17741 dynamic_linker='Win32 ld.exe'
17744 # FIXME: first we should search . and the directory the executable is in
17748 darwin* | rhapsody*)
17749 dynamic_linker="$host_os dyld"
17750 version_type=darwin
17753 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17754 soname_spec='${libname}${release}${major}$shared_ext'
17755 shlibpath_overrides_runpath=yes
17756 shlibpath_var=DYLD_LIBRARY_PATH
17757 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17759 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17767 soname_spec='${libname}${release}${shared_ext}$major'
17768 shlibpath_var=LD_LIBRARY_PATH
17775 freebsd* | dragonfly*)
17776 # DragonFly does not have aout. When/if they implement a new
17777 # versioning mechanism, adjust this.
17778 if test -x /usr/bin/objformat; then
17779 objformat=`/usr/bin/objformat`
17782 freebsd[123]*) objformat=aout ;;
17783 *) objformat=elf ;;
17786 version_type=freebsd-$objformat
17787 case $version_type in
17789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17794 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17798 shlibpath_var=LD_LIBRARY_PATH
17801 shlibpath_overrides_runpath=yes
17803 freebsd3.[01]* | freebsdelf3.[01]*)
17804 shlibpath_overrides_runpath=yes
17805 hardcode_into_libs=yes
17807 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17808 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17809 shlibpath_overrides_runpath=no
17810 hardcode_into_libs=yes
17812 *) # from 4.6 on, and DragonFly
17813 shlibpath_overrides_runpath=yes
17814 hardcode_into_libs=yes
17823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17824 soname_spec='${libname}${release}${shared_ext}$major'
17825 shlibpath_var=LD_LIBRARY_PATH
17826 hardcode_into_libs=yes
17833 dynamic_linker="$host_os runtime_loader"
17834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17835 soname_spec='${libname}${release}${shared_ext}$major'
17836 shlibpath_var=LIBRARY_PATH
17837 shlibpath_overrides_runpath=yes
17838 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17839 hardcode_into_libs=yes
17842 hpux9* | hpux10* | hpux11*)
17843 # Give a soname corresponding to the major version so that dld.sl refuses to
17844 # link against other versions.
17851 hardcode_into_libs=yes
17852 dynamic_linker="$host_os dld.so"
17853 shlibpath_var=LD_LIBRARY_PATH
17854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17856 soname_spec='${libname}${release}${shared_ext}$major'
17857 if test "X$HPUX_IA64_MODE" = X32; then
17858 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17860 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17862 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17866 hardcode_into_libs=yes
17867 dynamic_linker="$host_os dld.sl"
17868 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17869 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17871 soname_spec='${libname}${release}${shared_ext}$major'
17872 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17873 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17877 dynamic_linker="$host_os dld.sl"
17878 shlibpath_var=SHLIB_PATH
17879 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17881 soname_spec='${libname}${release}${shared_ext}$major'
17884 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17885 postinstall_cmds='chmod 555 $lib'
17886 # or fails outright, so override atomically:
17887 install_override_mode=555
17894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17895 soname_spec='${libname}${release}${shared_ext}$major'
17896 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17897 shlibpath_var=LD_LIBRARY_PATH
17898 shlibpath_overrides_runpath=no
17899 hardcode_into_libs=yes
17902 irix5* | irix6* | nonstopux*)
17904 nonstopux*) version_type=nonstopux ;;
17906 if test "$lt_cv_prog_gnu_ld" = yes; then
17914 soname_spec='${libname}${release}${shared_ext}$major'
17915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17917 irix5* | nonstopux*)
17918 libsuff= shlibsuff=
17921 case $LD in # libtool.m4 will add one of these switches to LD
17922 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17923 libsuff= shlibsuff= libmagic=32-bit;;
17924 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17925 libsuff=32 shlibsuff=N32 libmagic=N32;;
17926 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17927 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17928 *) libsuff= shlibsuff= libmagic=never-match;;
17932 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17933 shlibpath_overrides_runpath=no
17934 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17935 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17936 hardcode_into_libs=yes
17939 # No shared lib support for Linux oldld, aout, or coff.
17940 linux*oldld* | linux*aout* | linux*coff*)
17944 # This must be Linux ELF.
17945 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17950 soname_spec='${libname}${release}${shared_ext}$major'
17951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17952 shlibpath_var=LD_LIBRARY_PATH
17953 shlibpath_overrides_runpath=no
17955 # Some binutils ld are patched to set DT_RUNPATH
17956 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17957 $as_echo_n "(cached) " >&6
17959 lt_cv_shlibpath_overrides_runpath=no
17960 save_LDFLAGS=$LDFLAGS
17961 save_libdir=$libdir
17962 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17963 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17965 /* end confdefs.h. */
17975 if ac_fn_cxx_try_link "$LINENO"; then :
17976 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17977 lt_cv_shlibpath_overrides_runpath=yes
17980 rm -f core conftest.err conftest.$ac_objext \
17981 conftest$ac_exeext conftest.$ac_ext
17982 LDFLAGS=$save_LDFLAGS
17983 libdir=$save_libdir
17987 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17989 # This implies no fast_install, which is unacceptable.
17990 # Some rework will be needed to allow for fast_install
17991 # before this can be enabled.
17992 hardcode_into_libs=yes
17994 # Add ABI-specific directories to the system library path.
17995 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17997 # Append ld.so.conf contents to the search path
17998 if test -f /etc/ld.so.conf; then
17999 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' ' '`
18000 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18004 # We used to test for /lib/ld.so.1 and disable shared libraries on
18005 # powerpc, because MkLinux only supported shared libraries with the
18006 # GNU dynamic linker. Since this was broken with cross compilers,
18007 # most powerpc-linux boxes support dynamic linking these days and
18008 # people can always --disable-shared, the test was removed, and we
18009 # assume the GNU/Linux dynamic linker is in use.
18010 dynamic_linker='GNU/Linux ld.so'
18017 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18020 dynamic_linker='NetBSD (a.out) ld.so'
18022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18023 soname_spec='${libname}${release}${shared_ext}$major'
18024 dynamic_linker='NetBSD ld.elf_so'
18026 shlibpath_var=LD_LIBRARY_PATH
18027 shlibpath_overrides_runpath=yes
18028 hardcode_into_libs=yes
18033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18034 shlibpath_var=LD_LIBRARY_PATH
18035 shlibpath_overrides_runpath=yes
18042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18043 soname_spec='${libname}${release}${shared_ext}$major'
18044 shlibpath_var=LD_LIBRARY_PATH
18045 shlibpath_overrides_runpath=no
18046 hardcode_into_libs=yes
18047 dynamic_linker='ldqnx.so'
18052 sys_lib_dlsearch_path_spec="/usr/lib"
18054 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18056 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18057 *) need_version=no ;;
18059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18060 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18061 shlibpath_var=LD_LIBRARY_PATH
18062 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18064 openbsd2.[89] | openbsd2.[89].*)
18065 shlibpath_overrides_runpath=no
18068 shlibpath_overrides_runpath=yes
18072 shlibpath_overrides_runpath=yes
18077 libname_spec='$name'
18080 library_names_spec='$libname${shared_ext} $libname.a'
18081 dynamic_linker='OS/2 ld.exe'
18082 shlibpath_var=LIBPATH
18085 osf3* | osf4* | osf5*)
18089 soname_spec='${libname}${release}${shared_ext}$major'
18090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18091 shlibpath_var=LD_LIBRARY_PATH
18092 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18093 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18105 soname_spec='${libname}${release}${shared_ext}$major'
18106 shlibpath_var=LD_LIBRARY_PATH
18107 shlibpath_overrides_runpath=yes
18108 hardcode_into_libs=yes
18109 # ldd complains unless libraries are executable
18110 postinstall_cmds='chmod +x $lib'
18115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18116 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18117 shlibpath_var=LD_LIBRARY_PATH
18118 shlibpath_overrides_runpath=yes
18119 if test "$with_gnu_ld" = yes; then
18127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18128 soname_spec='${libname}${release}${shared_ext}$major'
18129 shlibpath_var=LD_LIBRARY_PATH
18130 case $host_vendor in
18132 shlibpath_overrides_runpath=no
18134 runpath_var=LD_RUN_PATH
18142 shlibpath_overrides_runpath=no
18143 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18149 if test -d /usr/nec ;then
18151 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18152 soname_spec='$libname${shared_ext}.$major'
18153 shlibpath_var=LD_LIBRARY_PATH
18157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18158 version_type=freebsd-elf
18161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18162 soname_spec='${libname}${release}${shared_ext}$major'
18163 shlibpath_var=LD_LIBRARY_PATH
18164 shlibpath_overrides_runpath=yes
18165 hardcode_into_libs=yes
18166 if test "$with_gnu_ld" = yes; then
18167 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18169 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18172 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18176 sys_lib_dlsearch_path_spec='/usr/lib'
18180 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18185 shlibpath_var=LD_LIBRARY_PATH
18186 shlibpath_overrides_runpath=no
18187 hardcode_into_libs=yes
18192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18193 soname_spec='${libname}${release}${shared_ext}$major'
18194 shlibpath_var=LD_LIBRARY_PATH
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18202 $as_echo "$dynamic_linker" >&6; }
18203 test "$dynamic_linker" = no && can_build_shared=no
18205 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18206 if test "$GCC" = yes; then
18207 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18210 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18211 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18213 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18214 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18255 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18256 hardcode_action_CXX=
18257 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18258 test -n "$runpath_var_CXX" ||
18259 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18261 # We can hardcode non-existent directories.
18262 if test "$hardcode_direct_CXX" != no &&
18263 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18264 # have to relink, otherwise we might link with an installed library
18265 # when we should be linking with a yet-to-be-installed one
18266 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18267 test "$hardcode_minus_L_CXX" != no; then
18268 # Linking always hardcodes the temporary library directory.
18269 hardcode_action_CXX=relink
18271 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18272 hardcode_action_CXX=immediate
18275 # We cannot hardcode anything, or else we can only hardcode existing
18277 hardcode_action_CXX=unsupported
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18280 $as_echo "$hardcode_action_CXX" >&6; }
18282 if test "$hardcode_action_CXX" = relink ||
18283 test "$inherit_rpath_CXX" = yes; then
18284 # Fast installation is not supported
18285 enable_fast_install=no
18286 elif test "$shlibpath_overrides_runpath" = yes ||
18287 test "$enable_shared" = no; then
18288 # Fast installation is not necessary
18289 enable_fast_install=needless
18298 fi # test -n "$compiler"
18301 CFLAGS=$lt_save_CFLAGS
18305 with_gnu_ld=$lt_save_with_gnu_ld
18306 lt_cv_path_LDCXX=$lt_cv_path_LD
18307 lt_cv_path_LD=$lt_save_path_LD
18308 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18309 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18310 fi # test "$_lt_caught_CXX_error" != yes
18313 ac_cpp='$CPP $CPPFLAGS'
18314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18330 ac_config_commands="$ac_config_commands libtool"
18335 # Only expand once:
18338 : ${CONFIG_LT=./config.lt}
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
18340 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
18342 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
18344 # Generated by $as_me.
18345 # Run this file to recreate a libtool stub with the current configuration.
18346 SHELL=\${CONFIG_SHELL-$SHELL}
18349 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
18350 ## -------------------- ##
18351 ## M4sh Initialization. ##
18352 ## -------------------- ##
18354 # Be more Bourne compatible
18355 DUALCASE=1; export DUALCASE # for MKS sh
18356 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18359 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18360 # is contrary to our usage. Disable this feature.
18361 alias -g '${1+"$@"}'='"$@"'
18362 setopt NO_GLOB_SUBST
18364 case `(set -o) 2>/dev/null` in #(
18376 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18377 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18378 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18379 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18380 # Prefer a ksh shell builtin over an external printf program on Solaris,
18381 # but without wasting forks for bash or zsh.
18382 if test -z "$BASH_VERSION$ZSH_VERSION" \
18383 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18384 as_echo='print -r --'
18385 as_echo_n='print -rn --'
18386 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18387 as_echo='printf %s\n'
18388 as_echo_n='printf %s'
18390 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18391 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18392 as_echo_n='/usr/ucb/echo -n'
18394 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18395 as_echo_n_body='eval
18399 expr "X$arg" : "X\\(.*\\)$as_nl";
18400 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18402 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18404 export as_echo_n_body
18405 as_echo_n='sh -c $as_echo_n_body as_echo'
18407 export as_echo_body
18408 as_echo='sh -c $as_echo_body as_echo'
18411 # The user is always right.
18412 if test "${PATH_SEPARATOR+set}" != set; then
18414 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18415 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18422 # We need space, tab and new line, in precisely that order. Quoting is
18423 # there to prevent editors from complaining about space-tab.
18424 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18425 # splitting by setting IFS to empty value.)
18428 # Find who we are. Look in the path if we contain no directory separator.
18431 *[\\/]* ) as_myself=$0 ;;
18432 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18433 for as_dir in $PATH
18436 test -z "$as_dir" && as_dir=.
18437 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18443 # We did not find ourselves, most probably we were run as `sh COMMAND'
18444 # in which case we are not to be found in the path.
18445 if test "x$as_myself" = x; then
18448 if test ! -f "$as_myself"; then
18449 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18453 # Unset variables that we do not need and which cause bugs (e.g. in
18454 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18455 # suppresses any "Segmentation fault" message there. '((' could
18456 # trigger a bug in pdksh 5.2.14.
18457 for as_var in BASH_ENV ENV MAIL MAILPATH
18458 do eval test x\${$as_var+set} = xset \
18459 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18472 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18475 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18476 # ----------------------------------------
18477 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18478 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18479 # script with STATUS, using 1 if that was 0.
18482 as_status=$1; test $as_status -eq 0 && as_status=1
18484 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18485 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18487 $as_echo "$as_me: error: $2" >&2
18488 as_fn_exit $as_status
18492 # as_fn_set_status STATUS
18493 # -----------------------
18494 # Set $? to STATUS, without forking.
18495 as_fn_set_status ()
18498 } # as_fn_set_status
18500 # as_fn_exit STATUS
18501 # -----------------
18502 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18506 as_fn_set_status $1
18512 # Portably unset VAR.
18515 { eval $1=; unset $1;}
18517 as_unset=as_fn_unset
18518 # as_fn_append VAR VALUE
18519 # ----------------------
18520 # Append the text in VALUE to the end of the definition contained in VAR. Take
18521 # advantage of any shell optimizations that allow amortized linear growth over
18522 # repeated appends, instead of the typical quadratic growth present in naive
18524 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18525 eval 'as_fn_append ()
18536 # as_fn_arith ARG...
18537 # ------------------
18538 # Perform arithmetic evaluation on the ARGs, and store the result in the
18539 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18540 # must be portable across $(()) and expr.
18541 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18542 eval 'as_fn_arith ()
18549 as_val=`expr "$@" || test $? -eq 1`
18554 if expr a : '\(a\)' >/dev/null 2>&1 &&
18555 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18561 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18562 as_basename=basename
18567 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18573 as_me=`$as_basename -- "$0" ||
18574 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18575 X"$0" : 'X\(//\)$' \| \
18576 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18578 sed '/^.*\/\([^/][^/]*\)\/*$/{
18592 # Avoid depending upon Character Ranges.
18593 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18594 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18595 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18596 as_cr_digits='0123456789'
18597 as_cr_alnum=$as_cr_Letters$as_cr_digits
18599 ECHO_C= ECHO_N= ECHO_T=
18600 case `echo -n x` in #(((((
18602 case `echo 'xy\c'` in
18603 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18605 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18612 rm -f conf$$ conf$$.exe conf$$.file
18613 if test -d conf$$.dir; then
18614 rm -f conf$$.dir/conf$$.file
18617 mkdir conf$$.dir 2>/dev/null
18619 if (echo >conf$$.file) 2>/dev/null; then
18620 if ln -s conf$$.file conf$$ 2>/dev/null; then
18622 # ... but there are two gotchas:
18623 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18624 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18625 # In both cases, we have to default to `cp -p'.
18626 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18628 elif ln conf$$.file conf$$ 2>/dev/null; then
18636 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18637 rmdir conf$$.dir 2>/dev/null
18642 # Create "$as_dir" as a directory, including parents if necessary.
18647 -*) as_dir=./$as_dir;;
18649 test -d "$as_dir" || eval $as_mkdir_p || {
18653 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18654 *) as_qdir=$as_dir;;
18656 as_dirs="'$as_qdir' $as_dirs"
18657 as_dir=`$as_dirname -- "$as_dir" ||
18658 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18659 X"$as_dir" : 'X\(//\)[^/]' \| \
18660 X"$as_dir" : 'X\(//\)$' \| \
18661 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18662 $as_echo X"$as_dir" |
18663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18667 /^X\(\/\/\)[^/].*/{
18680 test -d "$as_dir" && break
18682 test -z "$as_dirs" || eval "mkdir $as_dirs"
18683 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18687 if mkdir -p . 2>/dev/null; then
18688 as_mkdir_p='mkdir -p "$as_dir"'
18690 test -d ./-p && rmdir ./-p
18694 if test -x / >/dev/null 2>&1; then
18695 as_test_x='test -x'
18697 if ls -dL / >/dev/null 2>&1; then
18704 if test -d "$1"; then
18710 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18711 ???[sx]*):;;*)false;;esac;fi
18715 as_executable_p=$as_test_x
18717 # Sed expression to map a string onto a valid CPP name.
18718 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18720 # Sed expression to map a string onto a valid variable name.
18721 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18725 ## --------------------------------- ##
18726 ## Main body of "$CONFIG_LT" script. ##
18727 ## --------------------------------- ##
18729 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
18731 cat >>"$CONFIG_LT" <<\_LTEOF
18736 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18737 ## Running $as_me. ##
18742 \`$as_me' creates a local libtool stub from the current configuration,
18743 for use in further configure time tests before the real libtool is
18746 Usage: $0 [OPTIONS]
18748 -h, --help print this help, then exit
18749 -V, --version print version number, then exit
18750 -q, --quiet do not print progress messages
18751 -d, --debug don't remove temporary files
18753 Report bugs to <bug-libtool@gnu.org>."
18756 glib config.lt 2.32.4
18757 configured by $0, generated by GNU Autoconf 2.68.
18759 Copyright (C) 2010 Free Software Foundation, Inc.
18760 This config.lt script is free software; the Free Software Foundation
18761 gives unlimited permision to copy, distribute and modify it."
18766 --version | --v* | -V )
18767 echo "$lt_cl_version"; exit 0 ;;
18768 --help | --h* | -h )
18769 echo "$lt_cl_help"; exit 0 ;;
18770 --debug | --d* | -d )
18772 --quiet | --q* | --silent | --s* | -q )
18775 -*) as_fn_error $? "unrecognized option: $1
18776 Try \`$0 --help' for more information." "$LINENO" 5 ;;
18778 *) as_fn_error $? "unrecognized argument: $1
18779 Try \`$0 --help' for more information." "$LINENO" 5 ;;
18784 if $lt_cl_silent; then
18789 cat >>"$CONFIG_LT" <<_LTEOF
18792 # The HP-UX ksh and POSIX shell print the target directory to stdout
18793 # if CDPATH is set.
18794 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18796 sed_quote_subst='$sed_quote_subst'
18797 double_quote_subst='$double_quote_subst'
18798 delay_variable_subst='$delay_variable_subst'
18799 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18800 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18801 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18802 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18803 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18804 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18805 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18806 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18807 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18808 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18809 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18810 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18811 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18812 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18813 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18814 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18815 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18816 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18817 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18818 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18819 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18820 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18821 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18822 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18823 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18824 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18825 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18826 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18827 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18828 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18829 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18830 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18831 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18832 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18833 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18834 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18835 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18836 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18837 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18838 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18839 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18840 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18841 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18842 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18843 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18844 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18845 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18846 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18847 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18848 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18849 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18850 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18851 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18852 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18853 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18854 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18855 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"`'
18856 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18857 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18858 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18859 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18860 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18861 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18862 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18863 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18864 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18865 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18866 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18867 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18868 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18869 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18870 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18871 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18872 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18873 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18874 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18875 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18876 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18877 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18878 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18879 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18880 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18881 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18882 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18883 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18884 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18885 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18886 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18887 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18888 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18889 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18890 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18891 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18892 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18893 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18894 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18895 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18896 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18897 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18898 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18899 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18900 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18901 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18902 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18903 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18904 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18905 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18906 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18907 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18908 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18909 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18910 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18911 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18912 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18913 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18914 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18915 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18916 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18917 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18918 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18919 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18920 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18921 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18922 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18923 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18924 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18925 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18926 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18927 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18928 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18929 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18930 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18931 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18932 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18933 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18934 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18935 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18936 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18937 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18938 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18939 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18940 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18941 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18942 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18943 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18944 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18945 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18946 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18947 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18948 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18949 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18950 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18951 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18952 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18953 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18954 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18955 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18956 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18957 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18958 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18959 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18960 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18961 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18962 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18963 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18964 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18965 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18966 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18967 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18968 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18969 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18970 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18971 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18972 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18973 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18974 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18975 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18976 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18977 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18978 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18979 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18980 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18981 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18982 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18983 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18984 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18987 LTCFLAGS='$LTCFLAGS'
18988 compiler='$compiler_DEFAULT'
18990 # A function that is used when there is no print builtin or printf.
18991 func_fallback_echo ()
18993 eval 'cat <<_LTECHO_EOF
18998 # Quote evaled strings.
19014 deplibs_check_method \
19018 sharedlib_from_linklib_cmd \
19021 archiver_list_spec \
19027 lt_cv_sys_global_symbol_pipe \
19028 lt_cv_sys_global_symbol_to_cdecl \
19029 lt_cv_sys_global_symbol_to_c_name_address \
19030 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19031 nm_file_list_spec \
19032 lt_prog_compiler_no_builtin_flag \
19033 lt_prog_compiler_pic \
19034 lt_prog_compiler_wl \
19035 lt_prog_compiler_static \
19036 lt_cv_prog_compiler_c_o \
19045 export_dynamic_flag_spec \
19046 whole_archive_flag_spec \
19047 compiler_needs_object \
19049 allow_undefined_flag \
19050 no_undefined_flag \
19051 hardcode_libdir_flag_spec \
19052 hardcode_libdir_flag_spec_ld \
19053 hardcode_libdir_separator \
19057 variables_saved_for_relink \
19059 library_names_spec \
19061 install_override_mode \
19065 compiler_lib_search_dirs \
19070 compiler_lib_search_path \
19074 lt_prog_compiler_no_builtin_flag_CXX \
19075 lt_prog_compiler_pic_CXX \
19076 lt_prog_compiler_wl_CXX \
19077 lt_prog_compiler_static_CXX \
19078 lt_cv_prog_compiler_c_o_CXX \
19079 export_dynamic_flag_spec_CXX \
19080 whole_archive_flag_spec_CXX \
19081 compiler_needs_object_CXX \
19083 allow_undefined_flag_CXX \
19084 no_undefined_flag_CXX \
19085 hardcode_libdir_flag_spec_CXX \
19086 hardcode_libdir_flag_spec_ld_CXX \
19087 hardcode_libdir_separator_CXX \
19088 exclude_expsyms_CXX \
19089 include_expsyms_CXX \
19090 file_list_spec_CXX \
19091 compiler_lib_search_dirs_CXX \
19092 predep_objects_CXX \
19093 postdep_objects_CXX \
19096 compiler_lib_search_path_CXX; do
19097 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19098 *[\\\\\\\`\\"\\\$]*)
19099 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19102 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19107 # Double-quote double-evaled strings.
19108 for var in reload_cmds \
19109 old_postinstall_cmds \
19110 old_postuninstall_cmds \
19112 extract_expsyms_cmds \
19113 old_archive_from_new_cmds \
19114 old_archive_from_expsyms_cmds \
19116 archive_expsym_cmds \
19118 module_expsym_cmds \
19119 export_symbols_cmds \
19123 postuninstall_cmds \
19125 sys_lib_search_path_spec \
19126 sys_lib_dlsearch_path_spec \
19128 old_archive_cmds_CXX \
19129 old_archive_from_new_cmds_CXX \
19130 old_archive_from_expsyms_cmds_CXX \
19132 archive_expsym_cmds_CXX \
19134 module_expsym_cmds_CXX \
19135 export_symbols_cmds_CXX \
19137 postlink_cmds_CXX; do
19138 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19139 *[\\\\\\\`\\"\\\$]*)
19140 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19143 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19148 ac_aux_dir='$ac_aux_dir'
19149 xsi_shell='$xsi_shell'
19150 lt_shell_append='$lt_shell_append'
19152 # See if we are running on zsh, and set the options which allow our
19153 # commands through without removal of \ escapes INIT.
19154 if test -n "\${ZSH_VERSION+set}" ; then
19155 setopt NO_GLOB_SUBST
19161 TIMESTAMP='$TIMESTAMP'
19171 cat >>"$CONFIG_LT" <<\_LTEOF
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
19173 $as_echo "$as_me: creating $ofile" >&6;}
19176 # See if we are running on zsh, and set the options which allow our
19177 # commands through without removal of \ escapes.
19178 if test -n "${ZSH_VERSION+set}" ; then
19179 setopt NO_GLOB_SUBST
19182 cfgfile="${ofile}T"
19183 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19186 cat <<_LT_EOF >> "$cfgfile"
19189 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19190 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19191 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19192 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19194 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19195 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19197 # Written by Gordon Matzigkeit, 1996
19199 # This file is part of GNU Libtool.
19201 # GNU Libtool is free software; you can redistribute it and/or
19202 # modify it under the terms of the GNU General Public License as
19203 # published by the Free Software Foundation; either version 2 of
19204 # the License, or (at your option) any later version.
19206 # As a special exception to the GNU General Public License,
19207 # if you distribute this file as part of a program or library that
19208 # is built using GNU Libtool, you may include this file under the
19209 # same distribution terms that you use for the rest of that program.
19211 # GNU Libtool is distributed in the hope that it will be useful,
19212 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19213 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19214 # GNU General Public License for more details.
19216 # You should have received a copy of the GNU General Public License
19217 # along with GNU Libtool; see the file COPYING. If not, a copy
19218 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19219 # obtained by writing to the Free Software Foundation, Inc.,
19220 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19223 # The names of the tagged configurations supported by this script.
19224 available_tags="CXX "
19226 # ### BEGIN LIBTOOL CONFIG
19228 # Which release of libtool.m4 was used?
19229 macro_version=$macro_version
19230 macro_revision=$macro_revision
19232 # Whether or not to build static libraries.
19233 build_old_libs=$enable_static
19235 # Assembler program.
19238 # DLL creation program.
19239 DLLTOOL=$lt_DLLTOOL
19241 # Object dumper program.
19242 OBJDUMP=$lt_OBJDUMP
19244 # Whether or not to build shared libraries.
19245 build_libtool_libs=$enable_shared
19247 # What type of objects to build.
19250 # Whether or not to optimize for fast installation.
19251 fast_install=$enable_fast_install
19253 # Shell to use when invoking shell scripts.
19256 # An echo program that protects backslashes.
19260 host_alias=$host_alias
19264 # The build system.
19265 build_alias=$build_alias
19269 # A sed program that does not truncate output.
19272 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19273 Xsed="\$SED -e 1s/^X//"
19275 # A grep program that handles long lines.
19281 # A literal string matcher.
19284 # A BSD- or MS-compatible name lister.
19287 # Whether we need soft or hard links.
19290 # What is the maximum length of a command?
19291 max_cmd_len=$max_cmd_len
19293 # Object file suffix (normally "o").
19296 # Executable file suffix (normally "").
19299 # whether the shell understands "unset".
19302 # turn spaces into newlines.
19305 # turn newlines into spaces.
19308 # convert \$build file names to \$host format.
19309 to_host_file_cmd=$lt_cv_to_host_file_cmd
19311 # convert \$build files to toolchain format.
19312 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19314 # Method to check whether dependent libraries are shared objects.
19315 deplibs_check_method=$lt_deplibs_check_method
19317 # Command to use when deplibs_check_method = "file_magic".
19318 file_magic_cmd=$lt_file_magic_cmd
19320 # How to find potential files when deplibs_check_method = "file_magic".
19321 file_magic_glob=$lt_file_magic_glob
19323 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19324 want_nocaseglob=$lt_want_nocaseglob
19326 # Command to associate shared and link libraries.
19327 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19332 # Flags to create an archive.
19333 AR_FLAGS=$lt_AR_FLAGS
19335 # How to feed a file listing to the archiver.
19336 archiver_list_spec=$lt_archiver_list_spec
19338 # A symbol stripping program.
19341 # Commands used to install an old-style archive.
19343 old_postinstall_cmds=$lt_old_postinstall_cmds
19344 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19346 # Whether to use a lock for old archive extraction.
19347 lock_old_archive_extraction=$lock_old_archive_extraction
19352 # LTCC compiler flags.
19353 LTCFLAGS=$lt_CFLAGS
19355 # Take the output of nm and produce a listing of raw symbols and C names.
19356 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19358 # Transform the output of nm in a proper C declaration.
19359 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19361 # Transform the output of nm in a C name address pair.
19362 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19364 # Transform the output of nm in a C name address pair when lib prefix is needed.
19365 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19367 # Specify filename containing input files for \$NM.
19368 nm_file_list_spec=$lt_nm_file_list_spec
19370 # The root where to search for dependent libraries,and in which our libraries should be installed.
19371 lt_sysroot=$lt_sysroot
19373 # The name of the directory that contains temporary libtool files.
19376 # Used to examine libraries when file_magic_cmd begins with "file".
19377 MAGIC_CMD=$MAGIC_CMD
19379 # Must we lock files when doing compilation?
19380 need_locks=$lt_need_locks
19383 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19385 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19386 DSYMUTIL=$lt_DSYMUTIL
19388 # Tool to change global to local symbols on Mac OS X.
19391 # Tool to manipulate fat objects and archives on Mac OS X.
19394 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19397 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19398 OTOOL64=$lt_OTOOL64
19400 # Old archive suffix (normally "a").
19403 # Shared library suffix (normally ".so").
19404 shrext_cmds=$lt_shrext_cmds
19406 # The commands to extract the exported symbol list from a shared archive.
19407 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19409 # Variables whose values should be saved in libtool wrapper scripts and
19410 # restored at link time.
19411 variables_saved_for_relink=$lt_variables_saved_for_relink
19413 # Do we need the "lib" prefix for modules?
19414 need_lib_prefix=$need_lib_prefix
19416 # Do we need a version for libraries?
19417 need_version=$need_version
19419 # Library versioning type.
19420 version_type=$version_type
19422 # Shared library runtime path variable.
19423 runpath_var=$runpath_var
19425 # Shared library path variable.
19426 shlibpath_var=$shlibpath_var
19428 # Is shlibpath searched before the hard-coded library search path?
19429 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19431 # Format of library name prefix.
19432 libname_spec=$lt_libname_spec
19434 # List of archive names. First name is the real one, the rest are links.
19435 # The last name is the one that the linker finds with -lNAME
19436 library_names_spec=$lt_library_names_spec
19438 # The coded name of the library, if different from the real name.
19439 soname_spec=$lt_soname_spec
19441 # Permission mode override for installation of shared libraries.
19442 install_override_mode=$lt_install_override_mode
19444 # Command to use after installation of a shared archive.
19445 postinstall_cmds=$lt_postinstall_cmds
19447 # Command to use after uninstallation of a shared archive.
19448 postuninstall_cmds=$lt_postuninstall_cmds
19450 # Commands used to finish a libtool library installation in a directory.
19451 finish_cmds=$lt_finish_cmds
19453 # As "finish_cmds", except a single script fragment to be evaled but
19455 finish_eval=$lt_finish_eval
19457 # Whether we should hardcode library paths into libraries.
19458 hardcode_into_libs=$hardcode_into_libs
19460 # Compile-time system search path for libraries.
19461 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19463 # Run-time system search path for libraries.
19464 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19466 # Whether dlopen is supported.
19467 dlopen_support=$enable_dlopen
19469 # Whether dlopen of programs is supported.
19470 dlopen_self=$enable_dlopen_self
19472 # Whether dlopen of statically linked programs is supported.
19473 dlopen_self_static=$enable_dlopen_self_static
19475 # Commands to strip libraries.
19476 old_striplib=$lt_old_striplib
19477 striplib=$lt_striplib
19480 # The linker used to build libraries.
19483 # How to create reloadable object files.
19484 reload_flag=$lt_reload_flag
19485 reload_cmds=$lt_reload_cmds
19487 # Commands used to build an old-style archive.
19488 old_archive_cmds=$lt_old_archive_cmds
19490 # A language specific compiler.
19493 # Is the compiler the GNU compiler?
19496 # Compiler flag to turn off builtin functions.
19497 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19499 # Additional compiler flags for building library objects.
19500 pic_flag=$lt_lt_prog_compiler_pic
19502 # How to pass a linker flag through the compiler.
19503 wl=$lt_lt_prog_compiler_wl
19505 # Compiler flag to prevent dynamic linking.
19506 link_static_flag=$lt_lt_prog_compiler_static
19508 # Does compiler simultaneously support -c and -o options?
19509 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19511 # Whether or not to add -lc for building shared libraries.
19512 build_libtool_need_lc=$archive_cmds_need_lc
19514 # Whether or not to disallow shared libs when runtime libs are static.
19515 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19517 # Compiler flag to allow reflexive dlopens.
19518 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19520 # Compiler flag to generate shared objects directly from archives.
19521 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19523 # Whether the compiler copes with passing no objects directly.
19524 compiler_needs_object=$lt_compiler_needs_object
19526 # Create an old-style archive from a shared archive.
19527 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19529 # Create a temporary old-style archive to link instead of a shared archive.
19530 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19532 # Commands used to build a shared archive.
19533 archive_cmds=$lt_archive_cmds
19534 archive_expsym_cmds=$lt_archive_expsym_cmds
19536 # Commands used to build a loadable module if different from building
19537 # a shared archive.
19538 module_cmds=$lt_module_cmds
19539 module_expsym_cmds=$lt_module_expsym_cmds
19541 # Whether we are building with GNU ld or not.
19542 with_gnu_ld=$lt_with_gnu_ld
19544 # Flag that allows shared libraries with undefined symbols to be built.
19545 allow_undefined_flag=$lt_allow_undefined_flag
19547 # Flag that enforces no undefined symbols.
19548 no_undefined_flag=$lt_no_undefined_flag
19550 # Flag to hardcode \$libdir into a binary during linking.
19551 # This must work even if \$libdir does not exist
19552 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19554 # If ld is used when linking, flag to hardcode \$libdir into a binary
19555 # during linking. This must work even if \$libdir does not exist.
19556 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19558 # Whether we need a single "-rpath" flag with a separated argument.
19559 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19561 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19562 # DIR into the resulting binary.
19563 hardcode_direct=$hardcode_direct
19565 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19566 # DIR into the resulting binary and the resulting library dependency is
19567 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19568 # library is relocated.
19569 hardcode_direct_absolute=$hardcode_direct_absolute
19571 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19572 # into the resulting binary.
19573 hardcode_minus_L=$hardcode_minus_L
19575 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19576 # into the resulting binary.
19577 hardcode_shlibpath_var=$hardcode_shlibpath_var
19579 # Set to "yes" if building a shared library automatically hardcodes DIR
19580 # into the library and all subsequent libraries and executables linked
19582 hardcode_automatic=$hardcode_automatic
19584 # Set to yes if linker adds runtime paths of dependent libraries
19585 # to runtime path list.
19586 inherit_rpath=$inherit_rpath
19588 # Whether libtool must link a program against all its dependency libraries.
19589 link_all_deplibs=$link_all_deplibs
19591 # Set to "yes" if exported symbols are required.
19592 always_export_symbols=$always_export_symbols
19594 # The commands to list exported symbols.
19595 export_symbols_cmds=$lt_export_symbols_cmds
19597 # Symbols that should not be listed in the preloaded symbols.
19598 exclude_expsyms=$lt_exclude_expsyms
19600 # Symbols that must always be exported.
19601 include_expsyms=$lt_include_expsyms
19603 # Commands necessary for linking programs (against libraries) with templates.
19604 prelink_cmds=$lt_prelink_cmds
19606 # Commands necessary for finishing linking programs.
19607 postlink_cmds=$lt_postlink_cmds
19609 # Specify filename containing input files.
19610 file_list_spec=$lt_file_list_spec
19612 # How to hardcode a shared library path into an executable.
19613 hardcode_action=$hardcode_action
19615 # The directories searched by this compiler when creating a shared library.
19616 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19618 # Dependencies to place before and after the objects being linked to
19619 # create a shared library.
19620 predep_objects=$lt_predep_objects
19621 postdep_objects=$lt_postdep_objects
19622 predeps=$lt_predeps
19623 postdeps=$lt_postdeps
19625 # The library search path used internally by the compiler when linking
19626 # a shared library.
19627 compiler_lib_search_path=$lt_compiler_lib_search_path
19629 # ### END LIBTOOL CONFIG
19635 cat <<\_LT_EOF >> "$cfgfile"
19636 # AIX sometimes has problems with the GCC collect2 program. For some
19637 # reason, if we set the COLLECT_NAMES environment variable, the problems
19638 # vanish in a puff of smoke.
19639 if test "X${COLLECT_NAMES+set}" != Xset; then
19641 export COLLECT_NAMES
19648 ltmain="$ac_aux_dir/ltmain.sh"
19651 # We use sed instead of cat because bash on DJGPP gets confused if
19652 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19653 # text mode, it properly converts lines to CR/LF. This bash problem
19654 # is reportedly fixed, but why not run on old versions too?
19655 sed '$q' "$ltmain" >> "$cfgfile" \
19656 || (rm -f "$cfgfile"; exit 1)
19658 if test x"$xsi_shell" = xyes; then
19659 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19663 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19664 \ * ) func_dirname_result="${3}" ;;\
19666 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19667 && mv -f "$cfgfile.tmp" "$cfgfile" \
19668 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19669 test 0 -eq $? || _lt_function_replace_fail=:
19672 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19675 \ func_basename_result="${1##*/}"\
19676 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19677 && mv -f "$cfgfile.tmp" "$cfgfile" \
19678 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19679 test 0 -eq $? || _lt_function_replace_fail=:
19682 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19683 func_dirname_and_basename ()\
19686 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19687 \ * ) func_dirname_result="${3}" ;;\
19689 \ func_basename_result="${1##*/}"\
19690 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19691 && mv -f "$cfgfile.tmp" "$cfgfile" \
19692 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19693 test 0 -eq $? || _lt_function_replace_fail=:
19696 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19699 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19700 \ # positional parameters, so assign one to ordinary parameter first.\
19701 \ func_stripname_result=${3}\
19702 \ func_stripname_result=${func_stripname_result#"${1}"}\
19703 \ func_stripname_result=${func_stripname_result%"${2}"}\
19704 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19705 && mv -f "$cfgfile.tmp" "$cfgfile" \
19706 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19707 test 0 -eq $? || _lt_function_replace_fail=:
19710 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19711 func_split_long_opt ()\
19713 \ func_split_long_opt_name=${1%%=*}\
19714 \ func_split_long_opt_arg=${1#*=}\
19715 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19716 && mv -f "$cfgfile.tmp" "$cfgfile" \
19717 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19718 test 0 -eq $? || _lt_function_replace_fail=:
19721 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19722 func_split_short_opt ()\
19724 \ func_split_short_opt_arg=${1#??}\
19725 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19726 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19727 && mv -f "$cfgfile.tmp" "$cfgfile" \
19728 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19729 test 0 -eq $? || _lt_function_replace_fail=:
19732 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19736 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19737 \ *) func_lo2o_result=${1} ;;\
19739 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19740 && mv -f "$cfgfile.tmp" "$cfgfile" \
19741 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19742 test 0 -eq $? || _lt_function_replace_fail=:
19745 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19748 func_xform_result=${1%.*}.lo\
19749 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19750 && mv -f "$cfgfile.tmp" "$cfgfile" \
19751 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19752 test 0 -eq $? || _lt_function_replace_fail=:
19755 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19758 func_arith_result=$(( $* ))\
19759 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19760 && mv -f "$cfgfile.tmp" "$cfgfile" \
19761 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19762 test 0 -eq $? || _lt_function_replace_fail=:
19765 sed -e '/^func_len ()$/,/^} # func_len /c\
19768 func_len_result=${#1}\
19769 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19770 && mv -f "$cfgfile.tmp" "$cfgfile" \
19771 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19772 test 0 -eq $? || _lt_function_replace_fail=:
19776 if test x"$lt_shell_append" = xyes; then
19777 sed -e '/^func_append ()$/,/^} # func_append /c\
19780 eval "${1}+=\\${2}"\
19781 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19782 && mv -f "$cfgfile.tmp" "$cfgfile" \
19783 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19784 test 0 -eq $? || _lt_function_replace_fail=:
19787 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19788 func_append_quoted ()\
19790 \ func_quote_for_eval "${2}"\
19791 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19792 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19793 && mv -f "$cfgfile.tmp" "$cfgfile" \
19794 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19795 test 0 -eq $? || _lt_function_replace_fail=:
19798 # Save a `func_append' function call where possible by direct use of '+='
19799 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19800 && mv -f "$cfgfile.tmp" "$cfgfile" \
19801 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19802 test 0 -eq $? || _lt_function_replace_fail=:
19804 # Save a `func_append' function call even when '+=' is not available
19805 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19806 && mv -f "$cfgfile.tmp" "$cfgfile" \
19807 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19808 test 0 -eq $? || _lt_function_replace_fail=:
19811 if test x"$_lt_function_replace_fail" = x":"; then
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19813 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19817 mv -f "$cfgfile" "$ofile" ||
19818 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19822 cat <<_LT_EOF >> "$ofile"
19824 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19826 # The linker used to build libraries.
19829 # How to create reloadable object files.
19830 reload_flag=$lt_reload_flag_CXX
19831 reload_cmds=$lt_reload_cmds_CXX
19833 # Commands used to build an old-style archive.
19834 old_archive_cmds=$lt_old_archive_cmds_CXX
19836 # A language specific compiler.
19837 CC=$lt_compiler_CXX
19839 # Is the compiler the GNU compiler?
19842 # Compiler flag to turn off builtin functions.
19843 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19845 # Additional compiler flags for building library objects.
19846 pic_flag=$lt_lt_prog_compiler_pic_CXX
19848 # How to pass a linker flag through the compiler.
19849 wl=$lt_lt_prog_compiler_wl_CXX
19851 # Compiler flag to prevent dynamic linking.
19852 link_static_flag=$lt_lt_prog_compiler_static_CXX
19854 # Does compiler simultaneously support -c and -o options?
19855 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19857 # Whether or not to add -lc for building shared libraries.
19858 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19860 # Whether or not to disallow shared libs when runtime libs are static.
19861 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19863 # Compiler flag to allow reflexive dlopens.
19864 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19866 # Compiler flag to generate shared objects directly from archives.
19867 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19869 # Whether the compiler copes with passing no objects directly.
19870 compiler_needs_object=$lt_compiler_needs_object_CXX
19872 # Create an old-style archive from a shared archive.
19873 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19875 # Create a temporary old-style archive to link instead of a shared archive.
19876 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19878 # Commands used to build a shared archive.
19879 archive_cmds=$lt_archive_cmds_CXX
19880 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19882 # Commands used to build a loadable module if different from building
19883 # a shared archive.
19884 module_cmds=$lt_module_cmds_CXX
19885 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19887 # Whether we are building with GNU ld or not.
19888 with_gnu_ld=$lt_with_gnu_ld_CXX
19890 # Flag that allows shared libraries with undefined symbols to be built.
19891 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19893 # Flag that enforces no undefined symbols.
19894 no_undefined_flag=$lt_no_undefined_flag_CXX
19896 # Flag to hardcode \$libdir into a binary during linking.
19897 # This must work even if \$libdir does not exist
19898 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19900 # If ld is used when linking, flag to hardcode \$libdir into a binary
19901 # during linking. This must work even if \$libdir does not exist.
19902 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19904 # Whether we need a single "-rpath" flag with a separated argument.
19905 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19907 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19908 # DIR into the resulting binary.
19909 hardcode_direct=$hardcode_direct_CXX
19911 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19912 # DIR into the resulting binary and the resulting library dependency is
19913 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19914 # library is relocated.
19915 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19917 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19918 # into the resulting binary.
19919 hardcode_minus_L=$hardcode_minus_L_CXX
19921 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19922 # into the resulting binary.
19923 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19925 # Set to "yes" if building a shared library automatically hardcodes DIR
19926 # into the library and all subsequent libraries and executables linked
19928 hardcode_automatic=$hardcode_automatic_CXX
19930 # Set to yes if linker adds runtime paths of dependent libraries
19931 # to runtime path list.
19932 inherit_rpath=$inherit_rpath_CXX
19934 # Whether libtool must link a program against all its dependency libraries.
19935 link_all_deplibs=$link_all_deplibs_CXX
19937 # Set to "yes" if exported symbols are required.
19938 always_export_symbols=$always_export_symbols_CXX
19940 # The commands to list exported symbols.
19941 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19943 # Symbols that should not be listed in the preloaded symbols.
19944 exclude_expsyms=$lt_exclude_expsyms_CXX
19946 # Symbols that must always be exported.
19947 include_expsyms=$lt_include_expsyms_CXX
19949 # Commands necessary for linking programs (against libraries) with templates.
19950 prelink_cmds=$lt_prelink_cmds_CXX
19952 # Commands necessary for finishing linking programs.
19953 postlink_cmds=$lt_postlink_cmds_CXX
19955 # Specify filename containing input files.
19956 file_list_spec=$lt_file_list_spec_CXX
19958 # How to hardcode a shared library path into an executable.
19959 hardcode_action=$hardcode_action_CXX
19961 # The directories searched by this compiler when creating a shared library.
19962 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19964 # Dependencies to place before and after the objects being linked to
19965 # create a shared library.
19966 predep_objects=$lt_predep_objects_CXX
19967 postdep_objects=$lt_postdep_objects_CXX
19968 predeps=$lt_predeps_CXX
19969 postdeps=$lt_postdeps_CXX
19971 # The library search path used internally by the compiler when linking
19972 # a shared library.
19973 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19975 # ### END LIBTOOL TAG CONFIG: CXX
19981 chmod +x "$CONFIG_LT"
19983 # configure is writing to config.log, but config.lt does its own redirection,
19984 # appending to config.log, which fails on DOS, as config.log is still kept
19985 # open by configure. Here we exec the FD to /dev/null, effectively closing
19986 # config.log, so it can be properly (re)opened and appended to by config.lt.
19988 test "$silent" = yes &&
19989 lt_config_lt_args="$lt_config_lt_args --quiet"
19991 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
19993 $lt_cl_success || as_fn_exit 1
19997 if test "x$GCC" = "xyes"; then
19998 case " $CFLAGS " in
19999 *[\ \ ]-Wall[\ \ ]*) ;;
20000 *) CFLAGS="$CFLAGS -Wall" ;;
20004 if test "$glib_native_win32" = "yes"; then
20005 if test x$enable_static = xyes -a x$enable_shared = xyes; then
20006 as_fn_error $? "Can not build both shared and static at the same time on Windows." "$LINENO" 5
20008 if test x$enable_static = xyes; then
20009 glib_win32_static_compilation=yes
20010 GLIB_WIN32_STATIC_COMPILATION_DEFINE="#define GLIB_STATIC_COMPILATION 1
20011 #define GOBJECT_STATIC_COMPILATION 1"
20015 if test x$glib_native_win32 = xyes -a x$glib_win32_static_compilation != xyes; then
20016 OS_WIN32_AND_DLL_COMPILATION_TRUE=
20017 OS_WIN32_AND_DLL_COMPILATION_FALSE='#'
20019 OS_WIN32_AND_DLL_COMPILATION_TRUE='#'
20020 OS_WIN32_AND_DLL_COMPILATION_FALSE=
20024 if test $cross_compiling != yes ; then
20025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra flags to get ANSI library prototypes" >&5
20026 $as_echo_n "checking for extra flags to get ANSI library prototypes... " >&6; }
20027 glib_save_LIBS=$LIBS
20029 if test "$cross_compiling" = yes; then :
20030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20032 as_fn_error $? "cannot run test program while cross compiling
20033 See \`config.log' for more details" "$LINENO" 5; }
20035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20036 /* end confdefs.h. */
20038 int main (void) { return (log(1) != log(1.)); }
20040 if ac_fn_c_try_run "$LINENO"; then :
20041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
20042 $as_echo "none needed" >&6; }
20044 glib_save_CFLAGS=$CFLAGS
20045 CFLAGS="$CFLAGS -std1"
20046 if test "$cross_compiling" = yes; then :
20047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20049 as_fn_error $? "cannot run test program while cross compiling
20050 See \`config.log' for more details" "$LINENO" 5; }
20052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20053 /* end confdefs.h. */
20055 int main (void) { return (log(1) != log(1.)); }
20057 if ac_fn_c_try_run "$LINENO"; then :
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -std1" >&5
20059 $as_echo "-std1" >&6; }
20061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
20063 CFLAGS=$glib_save_CFLAGS
20064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No ANSI prototypes found in library. (-std1 didn't work.)" >&5
20065 $as_echo "$as_me: WARNING: No ANSI prototypes found in library. (-std1 didn't work.)" >&2;}
20068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20069 conftest.$ac_objext conftest.beam conftest.$ac_ext
20074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20075 conftest.$ac_objext conftest.beam conftest.$ac_ext
20078 LIBS=$glib_save_LIBS
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra flags for POSIX compliance" >&5
20082 $as_echo_n "checking for extra flags for POSIX compliance... " >&6; }
20083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20084 /* end confdefs.h. */
20085 #include <dirent.h>
20094 if ac_fn_c_try_compile "$LINENO"; then :
20095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
20096 $as_echo "none needed" >&6; }
20098 glib_save_CFLAGS=$CFLAGS
20099 CFLAGS="$CFLAGS -posix"
20100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20101 /* end confdefs.h. */
20102 #include <dirent.h>
20111 if ac_fn_c_try_compile "$LINENO"; then :
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -posix" >&5
20113 $as_echo "-posix" >&6; }
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
20117 CFLAGS=$glib_save_CFLAGS
20118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine POSIX flag. (-posix didn't work.)" >&5
20119 $as_echo "$as_me: WARNING: Could not determine POSIX flag. (-posix didn't work.)" >&2;}
20121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20125 # Checks for library functions.
20126 for ac_func in vprintf
20128 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
20129 if test "x$ac_cv_func_vprintf" = xyes; then :
20130 cat >>confdefs.h <<_ACEOF
20131 #define HAVE_VPRINTF 1
20134 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
20135 if test "x$ac_cv_func__doprnt" = xyes; then :
20137 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
20145 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20146 if test "x$ac_cv_type_size_t" = xyes; then :
20150 cat >>confdefs.h <<_ACEOF
20151 #define size_t unsigned int
20156 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20157 # for constant arguments. Useless!
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
20159 $as_echo_n "checking for working alloca.h... " >&6; }
20160 if ${ac_cv_working_alloca_h+:} false; then :
20161 $as_echo_n "(cached) " >&6
20163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20164 /* end confdefs.h. */
20165 #include <alloca.h>
20169 char *p = (char *) alloca (2 * sizeof (int));
20175 if ac_fn_c_try_link "$LINENO"; then :
20176 ac_cv_working_alloca_h=yes
20178 ac_cv_working_alloca_h=no
20180 rm -f core conftest.err conftest.$ac_objext \
20181 conftest$ac_exeext conftest.$ac_ext
20183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
20184 $as_echo "$ac_cv_working_alloca_h" >&6; }
20185 if test $ac_cv_working_alloca_h = yes; then
20187 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
20192 $as_echo_n "checking for alloca... " >&6; }
20193 if ${ac_cv_func_alloca_works+:} false; then :
20194 $as_echo_n "(cached) " >&6
20196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20197 /* end confdefs.h. */
20199 # define alloca __builtin_alloca
20202 # include <malloc.h>
20203 # define alloca _alloca
20205 # ifdef HAVE_ALLOCA_H
20206 # include <alloca.h>
20211 # ifndef alloca /* predefined by HP cc +Olibcalls */
20212 void *alloca (size_t);
20222 char *p = (char *) alloca (1);
20228 if ac_fn_c_try_link "$LINENO"; then :
20229 ac_cv_func_alloca_works=yes
20231 ac_cv_func_alloca_works=no
20233 rm -f core conftest.err conftest.$ac_objext \
20234 conftest$ac_exeext conftest.$ac_ext
20236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
20237 $as_echo "$ac_cv_func_alloca_works" >&6; }
20239 if test $ac_cv_func_alloca_works = yes; then
20241 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20244 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20245 # that cause trouble. Some versions do not even contain alloca or
20246 # contain a buggy version. If you still want to use their alloca,
20247 # use ar to extract alloca.o from them instead of compiling alloca.c.
20249 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20251 $as_echo "#define C_ALLOCA 1" >>confdefs.h
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
20255 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
20256 if ${ac_cv_os_cray+:} false; then :
20257 $as_echo_n "(cached) " >&6
20259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20260 /* end confdefs.h. */
20261 #if defined CRAY && ! defined CRAY2
20268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20269 $EGREP "webecray" >/dev/null 2>&1; then :
20277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
20278 $as_echo "$ac_cv_os_cray" >&6; }
20279 if test $ac_cv_os_cray = yes; then
20280 for ac_func in _getb67 GETB67 getb67; do
20281 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20282 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20283 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20285 cat >>confdefs.h <<_ACEOF
20286 #define CRAY_STACKSEG_END $ac_func
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
20296 $as_echo_n "checking stack direction for C alloca... " >&6; }
20297 if ${ac_cv_c_stack_direction+:} false; then :
20298 $as_echo_n "(cached) " >&6
20300 if test "$cross_compiling" = yes; then :
20301 ac_cv_c_stack_direction=0
20303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20304 /* end confdefs.h. */
20305 $ac_includes_default
20307 find_stack_direction ()
20309 static char *addr = 0;
20314 return find_stack_direction ();
20317 return (&dummy > addr) ? 1 : -1;
20323 return find_stack_direction () < 0;
20326 if ac_fn_c_try_run "$LINENO"; then :
20327 ac_cv_c_stack_direction=1
20329 ac_cv_c_stack_direction=-1
20331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20332 conftest.$ac_objext conftest.beam conftest.$ac_ext
20336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
20337 $as_echo "$ac_cv_c_stack_direction" >&6; }
20338 cat >>confdefs.h <<_ACEOF
20339 #define STACK_DIRECTION $ac_cv_c_stack_direction
20345 for ac_func in mmap posix_memalign memalign valloc fsync pipe2
20347 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20348 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20349 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20350 cat >>confdefs.h <<_ACEOF
20351 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20357 for ac_func in atexit on_exit timegm gmtime_r
20359 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20360 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20361 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20362 cat >>confdefs.h <<_ACEOF
20363 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20370 # The cast to long int works around a bug in the HP C Compiler
20371 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20372 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20373 # This bug is HP SR number 8606223364.
20374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
20375 $as_echo_n "checking size of char... " >&6; }
20376 if ${ac_cv_sizeof_char+:} false; then :
20377 $as_echo_n "(cached) " >&6
20379 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
20382 if test "$ac_cv_type_char" = yes; then
20383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20385 as_fn_error 77 "cannot compute sizeof (char)
20386 See \`config.log' for more details" "$LINENO" 5; }
20388 ac_cv_sizeof_char=0
20393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
20394 $as_echo "$ac_cv_sizeof_char" >&6; }
20398 cat >>confdefs.h <<_ACEOF
20399 #define SIZEOF_CHAR $ac_cv_sizeof_char
20403 # The cast to long int works around a bug in the HP C Compiler
20404 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20405 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20406 # This bug is HP SR number 8606223364.
20407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
20408 $as_echo_n "checking size of short... " >&6; }
20409 if ${ac_cv_sizeof_short+:} false; then :
20410 $as_echo_n "(cached) " >&6
20412 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
20415 if test "$ac_cv_type_short" = yes; then
20416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20418 as_fn_error 77 "cannot compute sizeof (short)
20419 See \`config.log' for more details" "$LINENO" 5; }
20421 ac_cv_sizeof_short=0
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
20427 $as_echo "$ac_cv_sizeof_short" >&6; }
20431 cat >>confdefs.h <<_ACEOF
20432 #define SIZEOF_SHORT $ac_cv_sizeof_short
20436 # The cast to long int works around a bug in the HP C Compiler
20437 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20438 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20439 # This bug is HP SR number 8606223364.
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
20441 $as_echo_n "checking size of long... " >&6; }
20442 if ${ac_cv_sizeof_long+:} false; then :
20443 $as_echo_n "(cached) " >&6
20445 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
20448 if test "$ac_cv_type_long" = yes; then
20449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20451 as_fn_error 77 "cannot compute sizeof (long)
20452 See \`config.log' for more details" "$LINENO" 5; }
20454 ac_cv_sizeof_long=0
20459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
20460 $as_echo "$ac_cv_sizeof_long" >&6; }
20464 cat >>confdefs.h <<_ACEOF
20465 #define SIZEOF_LONG $ac_cv_sizeof_long
20469 # The cast to long int works around a bug in the HP C Compiler
20470 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20471 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20472 # This bug is HP SR number 8606223364.
20473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
20474 $as_echo_n "checking size of int... " >&6; }
20475 if ${ac_cv_sizeof_int+:} false; then :
20476 $as_echo_n "(cached) " >&6
20478 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
20481 if test "$ac_cv_type_int" = yes; then
20482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20484 as_fn_error 77 "cannot compute sizeof (int)
20485 See \`config.log' for more details" "$LINENO" 5; }
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
20493 $as_echo "$ac_cv_sizeof_int" >&6; }
20497 cat >>confdefs.h <<_ACEOF
20498 #define SIZEOF_INT $ac_cv_sizeof_int
20502 # The cast to long int works around a bug in the HP C Compiler
20503 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20504 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20505 # This bug is HP SR number 8606223364.
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
20507 $as_echo_n "checking size of void *... " >&6; }
20508 if ${ac_cv_sizeof_void_p+:} false; then :
20509 $as_echo_n "(cached) " >&6
20511 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
20514 if test "$ac_cv_type_void_p" = yes; then
20515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20517 as_fn_error 77 "cannot compute sizeof (void *)
20518 See \`config.log' for more details" "$LINENO" 5; }
20520 ac_cv_sizeof_void_p=0
20525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
20526 $as_echo "$ac_cv_sizeof_void_p" >&6; }
20530 cat >>confdefs.h <<_ACEOF
20531 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
20535 # The cast to long int works around a bug in the HP C Compiler
20536 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20537 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20538 # This bug is HP SR number 8606223364.
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
20540 $as_echo_n "checking size of long long... " >&6; }
20541 if ${ac_cv_sizeof_long_long+:} false; then :
20542 $as_echo_n "(cached) " >&6
20544 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
20547 if test "$ac_cv_type_long_long" = yes; then
20548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20550 as_fn_error 77 "cannot compute sizeof (long long)
20551 See \`config.log' for more details" "$LINENO" 5; }
20553 ac_cv_sizeof_long_long=0
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
20559 $as_echo "$ac_cv_sizeof_long_long" >&6; }
20563 cat >>confdefs.h <<_ACEOF
20564 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20568 # The cast to long int works around a bug in the HP C Compiler
20569 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20570 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20571 # This bug is HP SR number 8606223364.
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
20573 $as_echo_n "checking size of __int64... " >&6; }
20574 if ${ac_cv_sizeof___int64+:} false; then :
20575 $as_echo_n "(cached) " >&6
20577 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
20580 if test "$ac_cv_type___int64" = yes; then
20581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20583 as_fn_error 77 "cannot compute sizeof (__int64)
20584 See \`config.log' for more details" "$LINENO" 5; }
20586 ac_cv_sizeof___int64=0
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
20592 $as_echo "$ac_cv_sizeof___int64" >&6; }
20596 cat >>confdefs.h <<_ACEOF
20597 #define SIZEOF___INT64 $ac_cv_sizeof___int64
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5
20603 $as_echo_n "checking for sig_atomic_t... " >&6; }
20604 if ${ac_cv_type_sig_atomic_t+:} false; then :
20605 $as_echo_n "(cached) " >&6
20607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20608 /* end confdefs.h. */
20609 #include <signal.h>
20610 #include <sys/types.h>
20611 sig_atomic_t val = 42;
20615 return val == 42 ? 0 : 1
20620 if ac_fn_c_try_link "$LINENO"; then :
20621 ac_cv_type_sig_atomic_t=yes
20623 ac_cv_type_sig_atomic_t=no
20625 rm -f core conftest.err conftest.$ac_objext \
20626 conftest$ac_exeext conftest.$ac_ext
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_sig_atomic_t" >&5
20629 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
20630 if test x$ac_cv_type_sig_atomic_t = xyes; then
20632 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
20636 if test x$ac_cv_sizeof_long = x8 || test x$ac_cv_sizeof_long_long = x8 || test x$ac_cv_sizeof___int64 = x8 ; then
20640 *** GLib requires a 64 bit type. You might want to consider
20641 *** using the GNU C compiler.
20645 if test x$glib_native_win32 != xyes && test x$ac_cv_sizeof_long_long = x8; then
20646 # long long is a 64 bit integer.
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for format to printf and scanf a guint64" >&5
20648 $as_echo_n "checking for format to printf and scanf a guint64... " >&6; }
20649 if ${glib_cv_long_long_format+:} false; then :
20650 $as_echo_n "(cached) " >&6
20653 for format in ll q I64; do
20654 if test "$cross_compiling" = yes; then :
20657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20658 /* end confdefs.h. */
20662 long long b, a = -0x3AFAFAFAFAFAFAFALL;
20664 sprintf (buffer, "%${format}u", a);
20665 sscanf (buffer, "%${format}u", &b);
20670 if ac_fn_c_try_run "$LINENO"; then :
20671 glib_cv_long_long_format=${format}
20674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20675 conftest.$ac_objext conftest.beam conftest.$ac_ext
20681 if test -n "$glib_cv_long_long_format"; then
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %${glib_cv_long_long_format}u" >&5
20683 $as_echo "%${glib_cv_long_long_format}u" >&6; }
20685 $as_echo "#define HAVE_LONG_LONG_FORMAT 1" >>confdefs.h
20687 if test x"$glib_cv_long_long_format" = xI64; then
20689 $as_echo "#define HAVE_INT64_AND_I64 1" >>confdefs.h
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20694 $as_echo "none" >&6; }
20696 elif test x$ac_cv_sizeof___int64 = x8; then
20697 # __int64 is a 64 bit integer.
20698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for format to printf and scanf a guint64" >&5
20699 $as_echo_n "checking for format to printf and scanf a guint64... " >&6; }
20700 # We know this is MSVCRT.DLL, and what the formats are
20701 glib_cv_long_long_format=I64
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %${glib_cv_long_long_format}u" >&5
20703 $as_echo "%${glib_cv_long_long_format}u" >&6; }
20705 $as_echo "#define HAVE_LONG_LONG_FORMAT 1" >>confdefs.h
20708 $as_echo "#define HAVE_INT64_AND_I64 1" >>confdefs.h
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20713 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20714 if ${ac_cv_c_const+:} false; then :
20715 $as_echo_n "(cached) " >&6
20717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20718 /* end confdefs.h. */
20723 /* FIXME: Include the comments suggested by Paul. */
20724 #ifndef __cplusplus
20725 /* Ultrix mips cc rejects this. */
20726 typedef int charset[2];
20728 /* SunOS 4.1.1 cc rejects this. */
20729 char const *const *pcpcc;
20731 /* NEC SVR4.0.2 mips cc rejects this. */
20732 struct point {int x, y;};
20733 static struct point const zero = {0,0};
20734 /* AIX XL C 1.02.0.0 rejects this.
20735 It does not let you subtract one const X* pointer from another in
20736 an arm of an if-expression whose if-part is not a constant
20738 const char *g = "string";
20739 pcpcc = &g + (g ? g-g : 0);
20740 /* HPUX 7.0 cc rejects these. */
20742 ppc = (char**) pcpcc;
20743 pcpcc = (char const *const *) ppc;
20744 { /* SCO 3.2v4 cc rejects this. */
20746 char const *s = 0 ? (char *) 0 : (char const *) 0;
20751 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20752 int x[] = {25, 17};
20753 const int *foo = &x[0];
20756 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20757 typedef const int *iptr;
20761 { /* AIX XL C 1.02.0.0 rejects this saying
20762 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20763 struct s { int j; const int *ap[3]; };
20764 struct s *b; b->j = 5;
20766 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20767 const int foo = 10;
20768 if (!foo) return 0;
20770 return !cs[0] && !zero.x;
20777 if ac_fn_c_try_compile "$LINENO"; then :
20782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20785 $as_echo "$ac_cv_c_const" >&6; }
20786 if test $ac_cv_c_const = no; then
20788 $as_echo "#define const /**/" >>confdefs.h
20793 SANE_MALLOC_PROTOS=no
20794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc() and friends prototypes are gmem.h compatible" >&5
20795 $as_echo_n "checking if malloc() and friends prototypes are gmem.h compatible... " >&6; }
20796 glib_save_CFLAGS=$CFLAGS
20797 if test "x$GCC" = "xyes"; then
20798 CFLAGS="$CFLAGS -Werror"
20799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20800 /* end confdefs.h. */
20801 #include <stdlib.h>
20806 void* (*my_calloc_p) (size_t, size_t) = calloc;
20807 void* (*my_malloc_p) (size_t) = malloc;
20808 void (*my_free_p) (void*) = free;
20809 void* (*my_realloc_p) (void*, size_t) = realloc;
20819 if ac_fn_c_try_compile "$LINENO"; then :
20821 $as_echo "#define SANE_MALLOC_PROTOS 1" >>confdefs.h
20823 SANE_MALLOC_PROTOS=yes
20825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SANE_MALLOC_PROTOS" >&5
20828 $as_echo "$SANE_MALLOC_PROTOS" >&6; }
20829 CFLAGS=$glib_save_CFLAGS
20831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for growing stack pointer" >&5
20832 $as_echo_n "checking for growing stack pointer... " >&6; }
20833 if ${glib_cv_stack_grows+:} false; then :
20834 $as_echo_n "(cached) " >&6
20837 if test "$cross_compiling" = yes; then :
20838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20840 as_fn_error $? "cannot run test program while cross compiling
20841 See \`config.log' for more details" "$LINENO" 5; }
20843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20844 /* end confdefs.h. */
20846 volatile int *a = 0, *b = 0;
20848 int main () { volatile int y = 7; a = &y; foo (); return b > a; }
20849 void foo (void) { volatile int x = 5; b = &x; }
20852 if ac_fn_c_try_run "$LINENO"; then :
20853 glib_cv_stack_grows=no
20856 glib_cv_stack_grows=yes
20859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20860 conftest.$ac_objext conftest.beam conftest.$ac_ext
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_stack_grows" >&5
20866 $as_echo "$glib_cv_stack_grows" >&6; }
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inline" >&5
20869 $as_echo_n "checking for __inline... " >&6; }
20870 if ${glib_cv_has__inline+:} false; then :
20871 $as_echo_n "(cached) " >&6
20874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20875 /* end confdefs.h. */
20877 __inline int foo () { return 0; }
20878 int main () { return foo (); }
20881 if ac_fn_c_try_compile "$LINENO"; then :
20882 glib_cv_has__inline=yes
20885 glib_cv_has__inline=no
20888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_has__inline" >&5
20892 $as_echo "$glib_cv_has__inline" >&6; }
20893 case x$glib_cv_has__inline in
20895 $as_echo "#define G_HAVE___INLINE 1" >>confdefs.h
20898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inline__" >&5
20899 $as_echo_n "checking for __inline__... " >&6; }
20900 if ${glib_cv_has__inline__+:} false; then :
20901 $as_echo_n "(cached) " >&6
20904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20905 /* end confdefs.h. */
20907 __inline__ int foo () { return 0; }
20908 int main () { return foo (); }
20911 if ac_fn_c_try_compile "$LINENO"; then :
20912 glib_cv_has__inline__=yes
20915 glib_cv_has__inline__=no
20918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_has__inline__" >&5
20922 $as_echo "$glib_cv_has__inline__" >&6; }
20923 case x$glib_cv_has__inline__ in
20925 $as_echo "#define G_HAVE___INLINE__ 1" >>confdefs.h
20928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
20929 $as_echo_n "checking for inline... " >&6; }
20930 if ${glib_cv_hasinline+:} false; then :
20931 $as_echo_n "(cached) " >&6
20934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20935 /* end confdefs.h. */
20938 inline int foo () { return 0; }
20939 int main () { return foo (); }
20942 if ac_fn_c_try_compile "$LINENO"; then :
20943 glib_cv_hasinline=yes
20946 glib_cv_hasinline=no
20949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_hasinline" >&5
20953 $as_echo "$glib_cv_hasinline" >&6; }
20954 case x$glib_cv_hasinline in
20956 $as_echo "#define G_HAVE_INLINE 1" >>confdefs.h
20960 # if we can use inline functions in headers
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inline functions in headers work" >&5
20962 $as_echo_n "checking if inline functions in headers work... " >&6; }
20963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20964 /* end confdefs.h. */
20966 #if defined (G_HAVE_INLINE) && defined (__GNUC__) && defined (__STRICT_ANSI__)
20968 # define inline __inline__
20969 #elif !defined (G_HAVE_INLINE)
20971 # if defined (G_HAVE___INLINE__)
20972 # define inline __inline__
20973 # elif defined (G_HAVE___INLINE)
20974 # define inline __inline
20978 int glib_test_func2 (int);
20981 glib_test_func1 (void) {
20982 return glib_test_func2 (1);
20990 if ac_fn_c_try_link "$LINENO"; then :
20995 rm -f core conftest.err conftest.$ac_objext \
20996 conftest$ac_exeext conftest.$ac_ext
20997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_can_inline" >&5
20998 $as_echo "$g_can_inline" >&6; }
21000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working do while(0) macros" >&5
21001 $as_echo_n "checking for working do while(0) macros... " >&6; }
21002 if ${g_cv_support_dowhile_macros+:} false; then :
21003 $as_echo_n "(cached) " >&6
21006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21007 /* end confdefs.h. */
21013 #define STMT_START do
21014 #define STMT_END while(0)
21015 #define STMT_TEST STMT_START { i = 0; } STMT_END
21016 int main(void) { int i = 1; STMT_TEST; return i; }
21021 if ac_fn_c_try_compile "$LINENO"; then :
21022 g_cv_support_dowhile_macros=yes
21024 g_cv_support_dowhile_macros=no
21026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_cv_support_dowhile_macros" >&5
21030 $as_echo "$g_cv_support_dowhile_macros" >&6; }
21031 if test x$g_cv_support_dowhile_macros = xyes; then
21033 $as_echo "#define HAVE_DOWHILE_MACROS 1" >>confdefs.h
21037 # check for flavours of varargs macros
21038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 varargs macros in C" >&5
21039 $as_echo_n "checking for ISO C99 varargs macros in C... " >&6; }
21040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21041 /* end confdefs.h. */
21047 int a(int p1, int p2, int p3);
21048 #define call_a(...) a(1,__VA_ARGS__)
21055 if ac_fn_c_try_compile "$LINENO"; then :
21056 g_have_iso_c_varargs=yes
21058 g_have_iso_c_varargs=no
21060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_iso_c_varargs" >&5
21062 $as_echo "$g_have_iso_c_varargs" >&6; }
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 varargs macros in C++" >&5
21065 $as_echo_n "checking for ISO C99 varargs macros in C++... " >&6; }
21066 if test "$CXX" = ""; then
21067 g_have_iso_cxx_varargs=no
21070 ac_cpp='$CXXCPP $CPPFLAGS'
21071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21076 /* end confdefs.h. */
21082 int a(int p1, int p2, int p3);
21083 #define call_a(...) a(1,__VA_ARGS__)
21090 if ac_fn_cxx_try_compile "$LINENO"; then :
21091 g_have_iso_cxx_varargs=yes
21093 g_have_iso_cxx_varargs=no
21095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21097 ac_cpp='$CPP $CPPFLAGS'
21098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_iso_cxx_varargs" >&5
21104 $as_echo "$g_have_iso_cxx_varargs" >&6; }
21106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUC varargs macros" >&5
21107 $as_echo_n "checking for GNUC varargs macros... " >&6; }
21108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21109 /* end confdefs.h. */
21115 int a(int p1, int p2, int p3);
21116 #define call_a(params...) a(1,params)
21123 if ac_fn_c_try_compile "$LINENO"; then :
21124 g_have_gnuc_varargs=yes
21126 g_have_gnuc_varargs=no
21128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_gnuc_varargs" >&5
21130 $as_echo "$g_have_gnuc_varargs" >&6; }
21132 # check for GNUC visibility support
21133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUC visibility attribute" >&5
21134 $as_echo_n "checking for GNUC visibility attribute... " >&6; }
21135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21136 /* end confdefs.h. */
21139 __attribute__ ((visibility ("hidden")))
21144 __attribute__ ((visibility ("internal")))
21149 __attribute__ ((visibility ("protected")))
21154 __attribute__ ((visibility ("default")))
21158 int main (int argc, char **argv)
21168 rm -f conftest.$ac_objext
21169 glib_ac_compile_save="$ac_compile"
21170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext'
21171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21172 (eval $ac_compile) 2>conftest.err
21174 if test -s conftest.err; then
21175 grep -v '^ *+' conftest.err >conftest.er1
21176 cat conftest.er1 >&5
21177 mv -f conftest.er1 conftest.err
21179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21180 test $ac_status = 0; } &&
21181 { ac_try='(if test -s conftest.err; then false ; else true; fi)'
21182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21183 (eval $ac_try) 2>&5
21185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21186 test $ac_status = 0; }; }; then :
21187 g_have_gnuc_visibility=yes
21189 echo "$as_me: failed program was:" >&5
21190 cat conftest.$ac_ext >&5
21191 g_have_gnuc_visibility=no
21193 ac_compile="$glib_ac_compile_save"
21194 rm -f conftest.$ac_objext conftest.err conftest.$ac_ext
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_gnuc_visibility" >&5
21196 $as_echo "$g_have_gnuc_visibility" >&6; }
21197 if test x$g_have_gnuc_visibility = xyes; then
21198 HAVE_GNUC_VISIBILITY_TRUE=
21199 HAVE_GNUC_VISIBILITY_FALSE='#'
21201 HAVE_GNUC_VISIBILITY_TRUE='#'
21202 HAVE_GNUC_VISIBILITY_FALSE=
21206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether using Sun Studio C compiler" >&5
21207 $as_echo_n "checking whether using Sun Studio C compiler... " >&6; }
21208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21209 /* end confdefs.h. */
21210 #if defined(__SUNPRO_C) || (__SUNPRO_C >= 0x550)
21212 # include "error: this is not Sun Studio."
21223 if ac_fn_c_try_compile "$LINENO"; then :
21224 g_have_sunstudio_visibility=yes
21226 g_have_sunstudio_visibility=no
21228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_sunstudio_visibility" >&5
21230 $as_echo "$g_have_sunstudio_visibility" >&6; }
21231 if test x$g_have_sunstudio_visibility = xyes; then
21232 HAVE_SUNSTUDIO_VISIBILITY_TRUE=
21233 HAVE_SUNSTUDIO_VISIBILITY_FALSE='#'
21235 HAVE_SUNSTUDIO_VISIBILITY_TRUE='#'
21236 HAVE_SUNSTUDIO_VISIBILITY_FALSE=
21240 # check for bytesex stuff
21241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
21242 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
21243 if ${ac_cv_c_bigendian+:} false; then :
21244 $as_echo_n "(cached) " >&6
21246 ac_cv_c_bigendian=unknown
21247 # See if we're dealing with a universal compiler.
21248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21249 /* end confdefs.h. */
21250 #ifndef __APPLE_CC__
21251 not a universal capable compiler
21256 if ac_fn_c_try_compile "$LINENO"; then :
21258 # Check for potential -arch flags. It is not universal unless
21259 # there are at least two -arch flags with different values.
21262 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21263 if test -n "$ac_prev"; then
21265 i?86 | x86_64 | ppc | ppc64)
21266 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21269 ac_cv_c_bigendian=universal
21275 elif test "x$ac_word" = "x-arch"; then
21280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21281 if test $ac_cv_c_bigendian = unknown; then
21282 # See if sys/param.h defines the BYTE_ORDER macro.
21283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21284 /* end confdefs.h. */
21285 #include <sys/types.h>
21286 #include <sys/param.h>
21291 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21292 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21294 bogus endian macros
21301 if ac_fn_c_try_compile "$LINENO"; then :
21302 # It does; now see whether it defined to BIG_ENDIAN or not.
21303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21304 /* end confdefs.h. */
21305 #include <sys/types.h>
21306 #include <sys/param.h>
21311 #if BYTE_ORDER != BIG_ENDIAN
21319 if ac_fn_c_try_compile "$LINENO"; then :
21320 ac_cv_c_bigendian=yes
21322 ac_cv_c_bigendian=no
21324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21328 if test $ac_cv_c_bigendian = unknown; then
21329 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21331 /* end confdefs.h. */
21332 #include <limits.h>
21337 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21338 bogus endian macros
21345 if ac_fn_c_try_compile "$LINENO"; then :
21346 # It does; now see whether it defined to _BIG_ENDIAN or not.
21347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21348 /* end confdefs.h. */
21349 #include <limits.h>
21354 #ifndef _BIG_ENDIAN
21362 if ac_fn_c_try_compile "$LINENO"; then :
21363 ac_cv_c_bigendian=yes
21365 ac_cv_c_bigendian=no
21367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21371 if test $ac_cv_c_bigendian = unknown; then
21372 # Compile a test program.
21373 if test "$cross_compiling" = yes; then :
21374 # Try to guess by grepping values from an object file.
21375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21376 /* end confdefs.h. */
21377 short int ascii_mm[] =
21378 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21379 short int ascii_ii[] =
21380 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21381 int use_ascii (int i) {
21382 return ascii_mm[i] + ascii_ii[i];
21384 short int ebcdic_ii[] =
21385 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21386 short int ebcdic_mm[] =
21387 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21388 int use_ebcdic (int i) {
21389 return ebcdic_mm[i] + ebcdic_ii[i];
21396 return use_ascii (foo) == use_ebcdic (foo);
21401 if ac_fn_c_try_compile "$LINENO"; then :
21402 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21403 ac_cv_c_bigendian=yes
21405 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21406 if test "$ac_cv_c_bigendian" = unknown; then
21407 ac_cv_c_bigendian=no
21409 # finding both strings is unlikely to happen, but who knows?
21410 ac_cv_c_bigendian=unknown
21414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21417 /* end confdefs.h. */
21418 $ac_includes_default
21423 /* Are we little or big endian? From Harbison&Steele. */
21427 char c[sizeof (long int)];
21430 return u.c[sizeof (long int) - 1] == 1;
21436 if ac_fn_c_try_run "$LINENO"; then :
21437 ac_cv_c_bigendian=no
21439 ac_cv_c_bigendian=yes
21441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21442 conftest.$ac_objext conftest.beam conftest.$ac_ext
21447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
21448 $as_echo "$ac_cv_c_bigendian" >&6; }
21449 case $ac_cv_c_bigendian in #(
21451 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
21457 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21461 as_fn_error $? "unknown endianness
21462 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
21465 if test x$ac_cv_c_bigendian = xuniversal ; then
21466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21467 /* end confdefs.h. */
21468 #include <endian.h>
21472 #if __BYTE_ORDER == __BIG_ENDIAN
21474 #error Not a big endian.
21480 if ac_fn_c_try_compile "$LINENO"; then :
21481 ac_cv_c_bigendian=yes
21484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21485 /* end confdefs.h. */
21486 #include <endian.h>
21490 #if __BYTE_ORDER == __LITTLE_ENDIAN
21492 #error Not a little endian.
21498 if ac_fn_c_try_compile "$LINENO"; then :
21499 ac_cv_c_bigendian=no
21502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine endianness." >&5
21503 $as_echo "$as_me: WARNING: Could not determine endianness." >&2;}
21505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21511 # check for header files
21512 for ac_header in dirent.h float.h limits.h pwd.h grp.h sys/param.h sys/poll.h sys/resource.h
21514 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21515 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21516 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21517 cat >>confdefs.h <<_ACEOF
21518 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21525 for ac_header in sys/time.h sys/times.h sys/wait.h unistd.h values.h
21527 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21528 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21529 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21530 cat >>confdefs.h <<_ACEOF
21531 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21538 for ac_header in sys/select.h sys/types.h stdint.h inttypes.h sched.h malloc.h
21540 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21541 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21542 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21543 cat >>confdefs.h <<_ACEOF
21544 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21551 for ac_header in sys/vfs.h sys/vmount.h sys/statfs.h sys/statvfs.h
21553 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21554 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21555 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21556 cat >>confdefs.h <<_ACEOF
21557 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21564 for ac_header in mntent.h sys/mnttab.h sys/vfstab.h sys/mntctl.h fstab.h
21566 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21567 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21568 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21569 cat >>confdefs.h <<_ACEOF
21570 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21577 for ac_header in sys/uio.h sys/mkdev.h
21579 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21580 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21581 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21582 cat >>confdefs.h <<_ACEOF
21583 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21590 for ac_header in linux/magic.h
21592 ac_fn_c_check_header_mongrel "$LINENO" "linux/magic.h" "ac_cv_header_linux_magic_h" "$ac_includes_default"
21593 if test "x$ac_cv_header_linux_magic_h" = xyes; then :
21594 cat >>confdefs.h <<_ACEOF
21595 #define HAVE_LINUX_MAGIC_H 1
21602 for ac_header in sys/prctl.h
21604 ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
21605 if test "x$ac_cv_header_sys_prctl_h" = xyes; then :
21606 cat >>confdefs.h <<_ACEOF
21607 #define HAVE_SYS_PRCTL_H 1
21615 for ac_header in sys/mount.h sys/sysctl.h
21617 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21618 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#if HAVE_SYS_PARAM_H
21619 #include <sys/param.h>
21623 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21624 cat >>confdefs.h <<_ACEOF
21625 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21633 for ac_header in xlocale.h
21635 ac_fn_c_check_header_mongrel "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
21636 if test "x$ac_cv_header_xlocale_h" = xyes; then :
21637 cat >>confdefs.h <<_ACEOF
21638 #define HAVE_XLOCALE_H 1
21646 # check for structure fields
21647 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "$ac_includes_default"
21648 if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
21650 cat >>confdefs.h <<_ACEOF
21651 #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
21656 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default"
21657 if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
21659 cat >>confdefs.h <<_ACEOF
21660 #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
21665 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "$ac_includes_default"
21666 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
21668 cat >>confdefs.h <<_ACEOF
21669 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
21674 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "$ac_includes_default"
21675 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
21677 cat >>confdefs.h <<_ACEOF
21678 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
21683 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimensec" "ac_cv_member_struct_stat_st_ctimensec" "$ac_includes_default"
21684 if test "x$ac_cv_member_struct_stat_st_ctimensec" = xyes; then :
21686 cat >>confdefs.h <<_ACEOF
21687 #define HAVE_STRUCT_STAT_ST_CTIMENSEC 1
21692 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim.tv_nsec" "ac_cv_member_struct_stat_st_ctim_tv_nsec" "$ac_includes_default"
21693 if test "x$ac_cv_member_struct_stat_st_ctim_tv_nsec" = xyes; then :
21695 cat >>confdefs.h <<_ACEOF
21696 #define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1
21702 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#include <sys/types.h>
21703 #include <sys/stat.h>
21704 #include <unistd.h>
21705 #ifdef HAVE_SYS_STATFS_H
21706 #include <sys/statfs.h>
21708 #ifdef HAVE_SYS_PARAM_H
21709 #include <sys/param.h>
21711 #ifdef HAVE_SYS_MOUNT_H
21712 #include <sys/mount.h>
21715 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
21717 cat >>confdefs.h <<_ACEOF
21718 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21723 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#include <sys/types.h>
21724 #include <sys/stat.h>
21725 #include <unistd.h>
21726 #ifdef HAVE_SYS_STATFS_H
21727 #include <sys/statfs.h>
21729 #ifdef HAVE_SYS_PARAM_H
21730 #include <sys/param.h>
21732 #ifdef HAVE_SYS_MOUNT_H
21733 #include <sys/mount.h>
21736 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
21738 cat >>confdefs.h <<_ACEOF
21739 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21744 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "#include <sys/types.h>
21745 #include <sys/stat.h>
21746 #include <unistd.h>
21747 #ifdef HAVE_SYS_STATFS_H
21748 #include <sys/statfs.h>
21750 #ifdef HAVE_SYS_PARAM_H
21751 #include <sys/param.h>
21753 #ifdef HAVE_SYS_MOUNT_H
21754 #include <sys/mount.h>
21757 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then :
21759 cat >>confdefs.h <<_ACEOF
21760 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
21765 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
21766 #include <sys/stat.h>
21767 #include <unistd.h>
21768 #ifdef HAVE_SYS_STATFS_H
21769 #include <sys/statfs.h>
21771 #ifdef HAVE_SYS_PARAM_H
21772 #include <sys/param.h>
21774 #ifdef HAVE_SYS_MOUNT_H
21775 #include <sys/mount.h>
21778 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
21780 cat >>confdefs.h <<_ACEOF
21781 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
21787 # struct statvfs.f_basetype is available on Solaris but not for Linux.
21788 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#include <sys/statvfs.h>
21790 if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes; then :
21792 cat >>confdefs.h <<_ACEOF
21793 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
21799 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#include <sys/statvfs.h>
21801 if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes; then :
21803 cat >>confdefs.h <<_ACEOF
21804 #define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1
21810 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
21812 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
21814 cat >>confdefs.h <<_ACEOF
21815 #define HAVE_STRUCT_TM_TM_GMTOFF 1
21820 ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "#include <time.h>
21822 if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes; then :
21824 cat >>confdefs.h <<_ACEOF
21825 #define HAVE_STRUCT_TM___TM_GMTOFF 1
21832 ac_header_dirent=no
21833 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21834 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21836 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21837 if eval \${$as_ac_Header+:} false; then :
21838 $as_echo_n "(cached) " >&6
21840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21841 /* end confdefs.h. */
21842 #include <sys/types.h>
21854 if ac_fn_c_try_compile "$LINENO"; then :
21855 eval "$as_ac_Header=yes"
21857 eval "$as_ac_Header=no"
21859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21861 eval ac_res=\$$as_ac_Header
21862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21863 $as_echo "$ac_res" >&6; }
21864 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21865 cat >>confdefs.h <<_ACEOF
21866 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21869 ac_header_dirent=$ac_hdr; break
21873 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21874 if test $ac_header_dirent = dirent.h; then
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21876 $as_echo_n "checking for library containing opendir... " >&6; }
21877 if ${ac_cv_search_opendir+:} false; then :
21878 $as_echo_n "(cached) " >&6
21880 ac_func_search_save_LIBS=$LIBS
21881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21882 /* end confdefs.h. */
21884 /* Override any GCC internal prototype to avoid an error.
21885 Use char because int might match the return type of a GCC
21886 builtin and then its argument prototype would still apply. */
21899 for ac_lib in '' dir; do
21900 if test -z "$ac_lib"; then
21901 ac_res="none required"
21904 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21906 if ac_fn_c_try_link "$LINENO"; then :
21907 ac_cv_search_opendir=$ac_res
21909 rm -f core conftest.err conftest.$ac_objext \
21911 if ${ac_cv_search_opendir+:} false; then :
21915 if ${ac_cv_search_opendir+:} false; then :
21918 ac_cv_search_opendir=no
21920 rm conftest.$ac_ext
21921 LIBS=$ac_func_search_save_LIBS
21923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21924 $as_echo "$ac_cv_search_opendir" >&6; }
21925 ac_res=$ac_cv_search_opendir
21926 if test "$ac_res" != no; then :
21927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21933 $as_echo_n "checking for library containing opendir... " >&6; }
21934 if ${ac_cv_search_opendir+:} false; then :
21935 $as_echo_n "(cached) " >&6
21937 ac_func_search_save_LIBS=$LIBS
21938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21939 /* end confdefs.h. */
21941 /* Override any GCC internal prototype to avoid an error.
21942 Use char because int might match the return type of a GCC
21943 builtin and then its argument prototype would still apply. */
21956 for ac_lib in '' x; do
21957 if test -z "$ac_lib"; then
21958 ac_res="none required"
21961 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21963 if ac_fn_c_try_link "$LINENO"; then :
21964 ac_cv_search_opendir=$ac_res
21966 rm -f core conftest.err conftest.$ac_objext \
21968 if ${ac_cv_search_opendir+:} false; then :
21972 if ${ac_cv_search_opendir+:} false; then :
21975 ac_cv_search_opendir=no
21977 rm conftest.$ac_ext
21978 LIBS=$ac_func_search_save_LIBS
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21981 $as_echo "$ac_cv_search_opendir" >&6; }
21982 ac_res=$ac_cv_search_opendir
21983 if test "$ac_res" != no; then :
21984 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21992 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
21993 #include <sys/types.h>
21994 #ifdef HAVE_DIRENT_H
21995 # include <dirent.h>
21997 # define dirent direct
21998 # ifdef HAVE_SYS_NDIR_H
21999 # include <sys/ndir.h>
22001 # ifdef HAVE_SYS_DIR_H
22002 # include <sys/dir.h>
22004 # ifdef HAVE_NDIR_H
22010 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
22012 cat >>confdefs.h <<_ACEOF
22013 #define HAVE_STRUCT_DIRENT_D_TYPE 1
22021 # Checks for libcharset
22023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
22024 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
22025 if ${am_cv_langinfo_codeset+:} false; then :
22026 $as_echo_n "(cached) " >&6
22028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22029 /* end confdefs.h. */
22030 #include <langinfo.h>
22034 char* cs = nl_langinfo(CODESET);
22039 if ac_fn_c_try_link "$LINENO"; then :
22040 am_cv_langinfo_codeset=yes
22042 am_cv_langinfo_codeset=no
22044 rm -f core conftest.err conftest.$ac_objext \
22045 conftest$ac_exeext conftest.$ac_ext
22048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
22049 $as_echo "$am_cv_langinfo_codeset" >&6; }
22050 if test $am_cv_langinfo_codeset = yes; then
22052 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
22056 for ac_header in stddef.h stdlib.h string.h
22058 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22059 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22060 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22061 cat >>confdefs.h <<_ACEOF
22062 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22069 for ac_func in setlocale
22071 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
22072 if test "x$ac_cv_func_setlocale" = xyes; then :
22073 cat >>confdefs.h <<_ACEOF
22074 #define HAVE_SETLOCALE 1
22081 # check additional type sizes
22082 # The cast to long int works around a bug in the HP C Compiler
22083 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22084 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22085 # This bug is HP SR number 8606223364.
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
22087 $as_echo_n "checking size of size_t... " >&6; }
22088 if ${ac_cv_sizeof_size_t+:} false; then :
22089 $as_echo_n "(cached) " >&6
22091 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
22094 if test "$ac_cv_type_size_t" = yes; then
22095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22097 as_fn_error 77 "cannot compute sizeof (size_t)
22098 See \`config.log' for more details" "$LINENO" 5; }
22100 ac_cv_sizeof_size_t=0
22105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
22106 $as_echo "$ac_cv_sizeof_size_t" >&6; }
22110 cat >>confdefs.h <<_ACEOF
22111 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the appropriate definition for size_t" >&5
22117 $as_echo_n "checking for the appropriate definition for size_t... " >&6; }
22119 case $ac_cv_sizeof_size_t in
22120 $ac_cv_sizeof_short)
22121 glib_size_type=short
22126 $ac_cv_sizeof_long)
22127 glib_size_type=long
22129 $ac_cv_sizeof_long_long)
22130 glib_size_type='long long'
22132 $ac_cv_sizeof__int64)
22133 glib_size_type='__int64'
22135 *) as_fn_error $? "No type matching size_t in size" "$LINENO" 5
22139 if test $ac_cv_sizeof_size_t = $ac_cv_sizeof_int &&
22140 test $ac_cv_sizeof_size_t = $ac_cv_sizeof_long ; then
22141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22142 /* end confdefs.h. */
22144 #if defined(_AIX) && !defined(__GNUC__)
22145 #pragma options langlvl=stdc89
22147 #include <stddef.h>
22151 unsigned int *size_int = &s;
22152 return (int)*size_int;
22156 rm -f conftest.$ac_objext
22157 glib_ac_compile_save="$ac_compile"
22158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext'
22159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22160 (eval $ac_compile) 2>conftest.err
22162 if test -s conftest.err; then
22163 grep -v '^ *+' conftest.err >conftest.er1
22164 cat conftest.er1 >&5
22165 mv -f conftest.er1 conftest.err
22167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22168 test $ac_status = 0; } &&
22169 { ac_try='(if test -s conftest.err; then false ; else true; fi)'
22170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22171 (eval $ac_try) 2>&5
22173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22174 test $ac_status = 0; }; }; then :
22177 echo "$as_me: failed program was:" >&5
22178 cat conftest.$ac_ext >&5
22179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22180 /* end confdefs.h. */
22182 #if defined(_AIX) && !defined(__GNUC__)
22183 #pragma options langlvl=stdc89
22185 #include <stddef.h>
22189 unsigned long *size_long = &s;
22190 return (int)*size_long;
22194 rm -f conftest.$ac_objext
22195 glib_ac_compile_save="$ac_compile"
22196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext'
22197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22198 (eval $ac_compile) 2>conftest.err
22200 if test -s conftest.err; then
22201 grep -v '^ *+' conftest.err >conftest.er1
22202 cat conftest.er1 >&5
22203 mv -f conftest.er1 conftest.err
22205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22206 test $ac_status = 0; } &&
22207 { ac_try='(if test -s conftest.err; then false ; else true; fi)'
22208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22209 (eval $ac_try) 2>&5
22211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22212 test $ac_status = 0; }; }; then :
22213 glib_size_type=long
22215 echo "$as_me: failed program was:" >&5
22216 cat conftest.$ac_ext >&5
22218 ac_compile="$glib_ac_compile_save"
22219 rm -f conftest.$ac_objext conftest.err conftest.$ac_ext
22221 ac_compile="$glib_ac_compile_save"
22222 rm -f conftest.$ac_objext conftest.err conftest.$ac_ext
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsigned $glib_size_type" >&5
22226 $as_echo "unsigned $glib_size_type" >&6; }
22228 # Check for some functions
22229 for ac_func in lstat strerror strsignal memmove vsnprintf stpcpy strcasecmp strncasecmp poll getcwd vasprintf setenv unsetenv getc_unlocked readlink symlink fdwalk memmem
22231 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22232 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22233 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22234 cat >>confdefs.h <<_ACEOF
22235 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22241 for ac_func in chown lchmod lchown fchmod fchown link utimes getgrgid getpwuid
22243 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22244 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22245 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22246 cat >>confdefs.h <<_ACEOF
22247 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22253 for ac_func in getmntent_r setmntent endmntent hasmntopt getfsstat getvfsstat
22255 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22256 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22257 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22258 cat >>confdefs.h <<_ACEOF
22259 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22265 # Check for high-resolution sleep functions
22266 for ac_func in splice
22268 ac_fn_c_check_func "$LINENO" "splice" "ac_cv_func_splice"
22269 if test "x$ac_cv_func_splice" = xyes; then :
22270 cat >>confdefs.h <<_ACEOF
22271 #define HAVE_SPLICE 1
22277 for ac_func in prlimit
22279 ac_fn_c_check_func "$LINENO" "prlimit" "ac_cv_func_prlimit"
22280 if test "x$ac_cv_func_prlimit" = xyes; then :
22281 cat >>confdefs.h <<_ACEOF
22282 #define HAVE_PRLIMIT 1
22289 # To avoid finding a compatibility unusable statfs, which typically
22290 # successfully compiles, but warns to use the newer statvfs interface:
22291 if test $ac_cv_header_sys_statvfs_h = yes; then :
22292 for ac_func in statvfs
22294 ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
22295 if test "x$ac_cv_func_statvfs" = xyes; then :
22296 cat >>confdefs.h <<_ACEOF
22297 #define HAVE_STATVFS 1
22304 if test $ac_cv_header_sys_statfs_h = yes -o $ac_cv_header_sys_mount_h = yes; then :
22305 for ac_func in statfs
22307 ac_fn_c_check_func "$LINENO" "statfs" "ac_cv_func_statfs"
22308 if test "x$ac_cv_func_statfs" = xyes; then :
22309 cat >>confdefs.h <<_ACEOF
22310 #define HAVE_STATFS 1
22318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use statfs or statvfs" >&5
22319 $as_echo_n "checking whether to use statfs or statvfs... " >&6; }
22320 # Some systems have both statfs and statvfs, pick the most "native" for these
22321 if test x$ac_cv_func_statfs = xyes && test x$ac_cv_func_statvfs = xyes; then :
22323 # on solaris and irix, statfs doesn't even have the f_bavail field
22324 if test x$ac_cv_member_struct_statfs_f_bavail = xno; then :
22325 ac_cv_func_statfs=no
22327 # else, at least on linux, statfs is the actual syscall
22328 ac_cv_func_statvfs=no
22333 if test x$ac_cv_func_statfs = xyes; then :
22336 $as_echo "#define USE_STATFS 1" >>confdefs.h
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: statfs" >&5
22339 $as_echo "statfs" >&6; }
22341 elif test x$ac_cv_func_statvfs = xyes; then :
22344 $as_echo "#define USE_STATVFS 1" >>confdefs.h
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: statvfs" >&5
22347 $as_echo "statvfs" >&6; }
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither" >&5
22351 $as_echo "neither" >&6; }
22354 for ac_header in crt_externs.h
22356 ac_fn_c_check_header_mongrel "$LINENO" "crt_externs.h" "ac_cv_header_crt_externs_h" "$ac_includes_default"
22357 if test "x$ac_cv_header_crt_externs_h" = xyes; then :
22358 cat >>confdefs.h <<_ACEOF
22359 #define HAVE_CRT_EXTERNS_H 1
22366 for ac_func in _NSGetEnviron
22368 ac_fn_c_check_func "$LINENO" "_NSGetEnviron" "ac_cv_func__NSGetEnviron"
22369 if test "x$ac_cv_func__NSGetEnviron" = xyes; then :
22370 cat >>confdefs.h <<_ACEOF
22371 #define HAVE__NSGETENVIRON 1
22378 for ac_func in newlocale uselocale strtod_l strtoll_l strtoull_l
22380 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22381 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22382 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22383 cat >>confdefs.h <<_ACEOF
22384 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 vsnprintf" >&5
22392 $as_echo_n "checking for C99 vsnprintf... " >&6; }
22393 if ${ac_cv_func_vsnprintf_c99+:} false; then :
22394 $as_echo_n "(cached) " >&6
22396 if test "$cross_compiling" = yes; then :
22397 ac_cv_func_vsnprintf_c99=no
22399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22400 /* end confdefs.h. */
22402 #include <stdarg.h>
22405 doit(char * s, ...)
22412 r = vsnprintf(buffer, 5, s, args);
22418 /* AIX 5.1 and Solaris seems to have a half-baked vsnprintf()
22419 implementation. The above will return 7 but if you replace
22420 the size of the buffer with 0, it borks! */
22422 r = vsnprintf(buffer, 0, s, args);
22438 if ac_fn_c_try_run "$LINENO"; then :
22439 ac_cv_func_vsnprintf_c99=yes
22441 ac_cv_func_vsnprintf_c99=no
22443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22444 conftest.$ac_objext conftest.beam conftest.$ac_ext
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vsnprintf_c99" >&5
22449 $as_echo "$ac_cv_func_vsnprintf_c99" >&6; }
22450 if test $ac_cv_func_vsnprintf_c99 = yes; then
22452 $as_echo "#define HAVE_C99_VSNPRINTF 1" >>confdefs.h
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports positional parameters" >&5
22457 $as_echo_n "checking whether printf supports positional parameters... " >&6; }
22458 if ${ac_cv_func_printf_unix98+:} false; then :
22459 $as_echo_n "(cached) " >&6
22461 if test "$cross_compiling" = yes; then :
22462 ac_cv_func_printf_unix98=no
22464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22465 /* end confdefs.h. */
22473 sprintf (buffer, "%2\$d %3\$d %1\$d", 1, 2, 3);
22474 if (strcmp ("2 3 1", buffer) == 0)
22479 if ac_fn_c_try_run "$LINENO"; then :
22480 ac_cv_func_printf_unix98=yes
22482 ac_cv_func_printf_unix98=no
22484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22485 conftest.$ac_objext conftest.beam conftest.$ac_ext
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_printf_unix98" >&5
22490 $as_echo "$ac_cv_func_printf_unix98" >&6; }
22491 if test $ac_cv_func_printf_unix98 = yes; then
22493 $as_echo "#define HAVE_UNIX98_PRINTF 1" >>confdefs.h
22498 # Internet address families
22499 if test $glib_native_win32 = yes; then
22500 glib_inet_includes="
22501 #include <winsock2.h>
22504 glib_inet_includes="
22505 #include <sys/types.h>
22506 #include <sys/socket.h>
22511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of AF_INET" >&5
22512 $as_echo_n "checking value of AF_INET... " >&6; }
22513 if ${glib_cv_value_AF_INET+:} false; then :
22514 $as_echo_n "(cached) " >&6
22516 if ac_fn_c_compute_int "$LINENO" "AF_INET" "glib_cv_value_AF_INET" "$glib_inet_includes"; then :
22524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_AF_INET" >&5
22525 $as_echo "$glib_cv_value_AF_INET" >&6; }
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of AF_INET6" >&5
22528 $as_echo_n "checking value of AF_INET6... " >&6; }
22529 if ${glib_cv_value_AF_INET6+:} false; then :
22530 $as_echo_n "(cached) " >&6
22532 if ac_fn_c_compute_int "$LINENO" "AF_INET6" "glib_cv_value_AF_INET6" "$glib_inet_includes"; then :
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_AF_INET6" >&5
22541 $as_echo "$glib_cv_value_AF_INET6" >&6; }
22543 # winsock defines this even though it doesn't support it
22544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of AF_UNIX" >&5
22545 $as_echo_n "checking value of AF_UNIX... " >&6; }
22546 if ${glib_cv_value_AF_UNIX+:} false; then :
22547 $as_echo_n "(cached) " >&6
22549 if ac_fn_c_compute_int "$LINENO" "AF_UNIX" "glib_cv_value_AF_UNIX" "$glib_inet_includes"; then :
22557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_AF_UNIX" >&5
22558 $as_echo "$glib_cv_value_AF_UNIX" >&6; }
22560 if $glib_failed ; then
22561 as_fn_error $? "Could not determine values for AF_INET* constants" "$LINENO" 5
22565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of MSG_PEEK" >&5
22566 $as_echo_n "checking value of MSG_PEEK... " >&6; }
22567 if ${glib_cv_value_MSG_PEEK+:} false; then :
22568 $as_echo_n "(cached) " >&6
22570 if ac_fn_c_compute_int "$LINENO" "MSG_PEEK" "glib_cv_value_MSG_PEEK" "$glib_inet_includes"; then :
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_MSG_PEEK" >&5
22579 $as_echo "$glib_cv_value_MSG_PEEK" >&6; }
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of MSG_OOB" >&5
22582 $as_echo_n "checking value of MSG_OOB... " >&6; }
22583 if ${glib_cv_value_MSG_OOB+:} false; then :
22584 $as_echo_n "(cached) " >&6
22586 if ac_fn_c_compute_int "$LINENO" "MSG_OOB" "glib_cv_value_MSG_OOB" "$glib_inet_includes"; then :
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_MSG_OOB" >&5
22595 $as_echo "$glib_cv_value_MSG_OOB" >&6; }
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of MSG_DONTROUTE" >&5
22598 $as_echo_n "checking value of MSG_DONTROUTE... " >&6; }
22599 if ${glib_cv_value_MSG_DONTROUTE+:} false; then :
22600 $as_echo_n "(cached) " >&6
22602 if ac_fn_c_compute_int "$LINENO" "MSG_DONTROUTE" "glib_cv_value_MSG_DONTROUTE" "$glib_inet_includes"; then :
22610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_MSG_DONTROUTE" >&5
22611 $as_echo "$glib_cv_value_MSG_DONTROUTE" >&6; }
22613 if $glib_failed ; then
22614 as_fn_error $? "Could not determine values for MSG_* constants" "$LINENO" 5
22617 for ac_func in getprotobyname_r endservent if_nametoindex
22619 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22620 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22621 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22622 cat >>confdefs.h <<_ACEOF
22623 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22629 for ac_header in netdb.h wspiapi.h arpa/nameser_compat.h
22631 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22632 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22633 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22634 cat >>confdefs.h <<_ACEOF
22635 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22643 if test $glib_native_win32 = no; then
22644 # We can't just use AC_CHECK_FUNC/AC_CHECK_LIB here. Bug 586150
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query" >&5
22647 $as_echo_n "checking for res_query... " >&6; }
22648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22649 /* end confdefs.h. */
22650 #include <sys/types.h>
22651 #include <netinet/in.h>
22652 #include <arpa/nameser.h>
22653 #include <resolv.h>
22659 res_query("test", 0, 0, (void *)0, 0);
22665 if ac_fn_c_try_link "$LINENO"; then :
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22667 $as_echo "yes" >&6; }
22670 LIBS="-lresolv $LIBS"
22671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22672 /* end confdefs.h. */
22673 #include <sys/types.h>
22674 #include <netinet/in.h>
22675 #include <arpa/nameser.h>
22676 #include <resolv.h>
22682 res_query("test", 0, 0, (void *)0, 0);
22688 if ac_fn_c_try_link "$LINENO"; then :
22689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in -lresolv" >&5
22690 $as_echo "in -lresolv" >&6; }
22691 NETWORK_LIBS="-lresolv $NETWORK_LIBS"
22693 LIBS="-lbind $save_libs"
22694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22695 /* end confdefs.h. */
22696 #include <resolv.h>
22700 res_query("test", 0, 0, (void *)0, 0);
22705 if ac_fn_c_try_link "$LINENO"; then :
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in -lbind" >&5
22707 $as_echo "in -lbind" >&6; }
22708 NETWORK_LIBS="-lbind $NETWORK_LIBS"
22710 as_fn_error $? "not found" "$LINENO" 5
22712 rm -f core conftest.err conftest.$ac_objext \
22713 conftest$ac_exeext conftest.$ac_ext
22715 rm -f core conftest.err conftest.$ac_objext \
22716 conftest$ac_exeext conftest.$ac_ext
22719 rm -f core conftest.err conftest.$ac_objext \
22720 conftest$ac_exeext conftest.$ac_ext
22721 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22722 if test "x$ac_cv_func_socket" = xyes; then :
22725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22726 $as_echo_n "checking for socket in -lsocket... " >&6; }
22727 if ${ac_cv_lib_socket_socket+:} false; then :
22728 $as_echo_n "(cached) " >&6
22730 ac_check_lib_save_LIBS=$LIBS
22731 LIBS="-lsocket $LIBS"
22732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22733 /* end confdefs.h. */
22735 /* Override any GCC internal prototype to avoid an error.
22736 Use char because int might match the return type of a GCC
22737 builtin and then its argument prototype would still apply. */
22750 if ac_fn_c_try_link "$LINENO"; then :
22751 ac_cv_lib_socket_socket=yes
22753 ac_cv_lib_socket_socket=no
22755 rm -f core conftest.err conftest.$ac_objext \
22756 conftest$ac_exeext conftest.$ac_ext
22757 LIBS=$ac_check_lib_save_LIBS
22759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22760 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22761 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22762 NETWORK_LIBS="-lsocket $NETWORK_LIBS"
22764 as_fn_error $? "Could not find socket()" "$LINENO" 5
22772 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "#include <sys/socket.h>
22774 if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
22776 $as_echo "#define HAVE_NETLINK 1" >>confdefs.h
22781 if test "$ac_cv_header_linux_netlink_h" = "yes"; then
22783 HAVE_NETLINK_FALSE='#'
22785 HAVE_NETLINK_TRUE='#'
22786 HAVE_NETLINK_FALSE=
22790 ac_fn_c_check_type "$LINENO" "struct ip_mreqn" "ac_cv_type_struct_ip_mreqn" "#include <netinet/in.h>
22792 if test "x$ac_cv_type_struct_ip_mreqn" = xyes; then :
22795 $as_echo "#define HAVE_IP_MREQN /**/" >>confdefs.h
22803 $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
22806 $as_echo "#define _XOPEN_SOURCE 2" >>confdefs.h
22809 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
22814 if test "$ac_cv_func_statfs" = yes ; then
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to statfs()" >&5
22816 $as_echo_n "checking number of arguments to statfs()... " >&6; }
22817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22818 /* end confdefs.h. */
22819 #include <unistd.h>
22820 #ifdef HAVE_SYS_PARAM_H
22821 #include <sys/param.h>
22823 #ifdef HAVE_SYS_VFS_H
22824 #include <sys/vfs.h>
22826 #ifdef HAVE_SYS_MOUNT_H
22827 #include <sys/mount.h>
22829 #ifdef HAVE_SYS_STATFS_H
22830 #include <sys/statfs.h>
22841 if ac_fn_c_try_compile "$LINENO"; then :
22843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2" >&5
22844 $as_echo "2" >&6; }
22846 $as_echo "#define STATFS_ARGS 2" >>confdefs.h
22850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22851 /* end confdefs.h. */
22852 #include <unistd.h>
22853 #ifdef HAVE_SYS_PARAM_H
22854 #include <sys/param.h>
22856 #ifdef HAVE_SYS_VFS_H
22857 #include <sys/vfs.h>
22859 #ifdef HAVE_SYS_MOUNT_H
22860 #include <sys/mount.h>
22862 #ifdef HAVE_SYS_STATFS_H
22863 #include <sys/statfs.h>
22869 statfs(NULL, &st, sizeof (st), 0);
22874 if ac_fn_c_try_compile "$LINENO"; then :
22876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4" >&5
22877 $as_echo "4" >&6; }
22879 $as_echo "#define STATFS_ARGS 4" >>confdefs.h
22883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
22884 $as_echo "unknown" >&6; }
22885 as_fn_error $? "unable to determine number of arguments to statfs()" "$LINENO" 5
22887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22893 # Check whether to use an included printf
22896 # Check whether --enable-included-printf was given.
22897 if test "${enable_included_printf+set}" = set; then :
22898 enableval=$enable_included_printf; enable_included_printf="$enableval"
22902 need_included_printf=no
22903 if test "x$enable_included_printf" = "xyes" ; then
22904 need_included_printf=yes
22906 if test "$ac_cv_func_vsnprintf_c99" != "yes" ; then
22907 need_included_printf=yes
22909 if test "$ac_cv_func_printf_unix98" != "yes" ; then
22910 need_included_printf=yes
22912 if test "x$ac_cv_sizeof_long_long" = "x8" &&
22913 test -z "$glib_cv_long_long_format" ; then
22914 need_included_printf=yes
22917 if test "x$enable_included_printf" = "xno" &&
22918 test "x$need_included_printf" = "xyes" ; then
22920 *** Your C library's printf doesn't appear to have the features that
22921 *** GLib needs, but you specified --enable-included-printf=no." "$LINENO" 5
22924 enable_included_printf=$need_included_printf
22926 if test "$enable_included_printf" != "yes"; then
22927 HAVE_GOOD_PRINTF_TRUE=
22928 HAVE_GOOD_PRINTF_FALSE='#'
22930 HAVE_GOOD_PRINTF_TRUE='#'
22931 HAVE_GOOD_PRINTF_FALSE=
22934 if test "$enable_included_printf" != "yes" ; then
22936 $as_echo "#define HAVE_GOOD_PRINTF 1" >>confdefs.h
22939 if test -z "$glib_cv_long_long_format" ; then
22940 glib_cv_long_long_format="ll"
22942 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
22946 # Checks needed for gnulib vasnprintf
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
22949 $as_echo_n "checking for signed... " >&6; }
22950 if ${bh_cv_c_signed+:} false; then :
22951 $as_echo_n "(cached) " >&6
22953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22954 /* end confdefs.h. */
22964 if ac_fn_c_try_compile "$LINENO"; then :
22969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
22972 $as_echo "$bh_cv_c_signed" >&6; }
22973 if test $bh_cv_c_signed = no; then
22975 $as_echo "#define signed /**/" >>confdefs.h
22980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
22981 $as_echo_n "checking for long long... " >&6; }
22982 if ${ac_cv_type_long_long+:} false; then :
22983 $as_echo_n "(cached) " >&6
22985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22986 /* end confdefs.h. */
22987 long long ll = 1LL; int i = 63;
22991 long long llmax = (long long) -1;
22992 return ll << i | ll >> i | llmax / ll | llmax % ll;
22997 if ac_fn_c_try_link "$LINENO"; then :
22998 ac_cv_type_long_long=yes
23000 ac_cv_type_long_long=no
23002 rm -f core conftest.err conftest.$ac_objext \
23003 conftest$ac_exeext conftest.$ac_ext
23005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
23006 $as_echo "$ac_cv_type_long_long" >&6; }
23007 if test $ac_cv_type_long_long = yes; then
23009 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
23014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23015 $as_echo_n "checking for long double... " >&6; }
23016 if ${gt_cv_c_long_double+:} false; then :
23017 $as_echo_n "(cached) " >&6
23019 if test "$GCC" = yes; then
23020 gt_cv_c_long_double=yes
23022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23023 /* end confdefs.h. */
23025 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
23026 long double foo = 0.0;
23027 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23028 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
23038 if ac_fn_c_try_compile "$LINENO"; then :
23039 gt_cv_c_long_double=yes
23041 gt_cv_c_long_double=no
23043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
23047 $as_echo "$gt_cv_c_long_double" >&6; }
23048 if test $gt_cv_c_long_double = yes; then
23050 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
23055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
23056 $as_echo_n "checking for wchar_t... " >&6; }
23057 if ${gt_cv_c_wchar_t+:} false; then :
23058 $as_echo_n "(cached) " >&6
23060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23061 /* end confdefs.h. */
23062 #include <stddef.h>
23063 wchar_t foo = (wchar_t)'\0';
23072 if ac_fn_c_try_compile "$LINENO"; then :
23073 gt_cv_c_wchar_t=yes
23077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
23080 $as_echo "$gt_cv_c_wchar_t" >&6; }
23081 if test $gt_cv_c_wchar_t = yes; then
23083 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
23088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
23089 $as_echo_n "checking for wint_t... " >&6; }
23090 if ${gt_cv_c_wint_t+:} false; then :
23091 $as_echo_n "(cached) " >&6
23093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23094 /* end confdefs.h. */
23096 wint_t foo = (wchar_t)'\0';
23105 if ac_fn_c_try_compile "$LINENO"; then :
23110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
23113 $as_echo "$gt_cv_c_wint_t" >&6; }
23114 if test $gt_cv_c_wint_t = yes; then
23116 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
23120 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23121 if test "x$ac_cv_type_size_t" = xyes; then :
23125 cat >>confdefs.h <<_ACEOF
23126 #define size_t unsigned int
23131 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
23132 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
23134 cat >>confdefs.h <<_ACEOF
23135 #define HAVE_PTRDIFF_T 1
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
23143 $as_echo_n "checking for inttypes.h... " >&6; }
23144 if ${jm_ac_cv_header_inttypes_h+:} false; then :
23145 $as_echo_n "(cached) " >&6
23147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23148 /* end confdefs.h. */
23149 #include <sys/types.h>
23150 #include <inttypes.h>
23154 uintmax_t i = (uintmax_t) -1;
23159 if ac_fn_c_try_compile "$LINENO"; then :
23160 jm_ac_cv_header_inttypes_h=yes
23162 jm_ac_cv_header_inttypes_h=no
23164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
23167 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
23168 if test $jm_ac_cv_header_inttypes_h = yes; then
23170 cat >>confdefs.h <<_ACEOF
23171 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
23177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
23178 $as_echo_n "checking for stdint.h... " >&6; }
23179 if ${jm_ac_cv_header_stdint_h+:} false; then :
23180 $as_echo_n "(cached) " >&6
23182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23183 /* end confdefs.h. */
23184 #include <sys/types.h>
23185 #include <stdint.h>
23189 uintmax_t i = (uintmax_t) -1;
23194 if ac_fn_c_try_compile "$LINENO"; then :
23195 jm_ac_cv_header_stdint_h=yes
23197 jm_ac_cv_header_stdint_h=no
23199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
23202 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
23203 if test $jm_ac_cv_header_stdint_h = yes; then
23205 cat >>confdefs.h <<_ACEOF
23206 #define HAVE_STDINT_H_WITH_UINTMAX 1
23214 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
23216 test $ac_cv_type_long_long = yes \
23217 && ac_type='long long' \
23220 cat >>confdefs.h <<_ACEOF
23221 #define intmax_t $ac_type
23226 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23230 for ac_func in snprintf wcslen
23232 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23233 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23234 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23235 cat >>confdefs.h <<_ACEOF
23236 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 snprintf" >&5
23243 $as_echo_n "checking for C99 snprintf... " >&6; }
23244 if ${ac_cv_func_snprintf_c99+:} false; then :
23245 $as_echo_n "(cached) " >&6
23247 if test "$cross_compiling" = yes; then :
23248 ac_cv_func_snprintf_c99=no
23250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23251 /* end confdefs.h. */
23253 #include <stdarg.h>
23262 r = snprintf(buffer, 5, "1234567");
23267 r = snprintf(buffer, 0, "1234567");
23272 r = snprintf(NULL, 0, "1234567");
23287 if ac_fn_c_try_run "$LINENO"; then :
23288 ac_cv_func_snprintf_c99=yes
23290 ac_cv_func_snprintf_c99=no
23292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23293 conftest.$ac_objext conftest.beam conftest.$ac_ext
23297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf_c99" >&5
23298 $as_echo "$ac_cv_func_snprintf_c99" >&6; }
23299 if test $ac_cv_func_snprintf_c99 = yes; then
23301 $as_echo "#define HAVE_C99_SNPRINTF 1" >>confdefs.h
23306 # Check if bcopy can be used for overlapping copies, if memmove isn't found.
23307 # The check is borrowed from the PERL Configure script.
23308 if test "$ac_cv_func_memmove" != "yes"; then
23309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy can handle overlapping copies" >&5
23310 $as_echo_n "checking whether bcopy can handle overlapping copies... " >&6; }
23311 if ${glib_cv_working_bcopy+:} false; then :
23312 $as_echo_n "(cached) " >&6
23314 if test "$cross_compiling" = yes; then :
23315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23317 as_fn_error $? "cannot run test program while cross compiling
23318 See \`config.log' for more details" "$LINENO" 5; }
23320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23321 /* end confdefs.h. */
23324 char buf[128], abc[128], *b;
23325 int len, off, align;
23326 bcopy("abcdefghijklmnopqrstuvwxyz0123456789", abc, 36);
23327 for (align = 7; align >= 0; align--) {
23328 for (len = 36; len; len--) {
23329 b = buf+align; bcopy(abc, b, len);
23330 for (off = 1; off <= len; off++) {
23331 bcopy(b, b+off, len); bcopy(b+off, b, len);
23332 if (bcmp(b, abc, len)) return(1);
23339 if ac_fn_c_try_run "$LINENO"; then :
23340 glib_cv_working_bcopy=yes
23342 glib_cv_working_bcopy=no
23344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23345 conftest.$ac_objext conftest.beam conftest.$ac_ext
23349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_working_bcopy" >&5
23350 $as_echo "$glib_cv_working_bcopy" >&6; }
23352 if test "x${glib_cv_working_bcopy+set}" != "xset" ; then
23353 as_fn_error $? "glib_cv_working_bcopy must be set in cache file when cross-compiling." "$LINENO" 5
23356 if test "$glib_cv_working_bcopy" = "yes"; then
23358 $as_echo "#define HAVE_WORKING_BCOPY 1" >>confdefs.h
23363 # Check if <sys/select.h> needs to be included for fd_set
23364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fd_set" >&5
23365 $as_echo_n "checking for fd_set... " >&6; }
23366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23367 /* end confdefs.h. */
23368 #include <sys/types.h>
23372 fd_set readMask, writeMask;
23377 if ac_fn_c_try_compile "$LINENO"; then :
23382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23383 if test "$gtk_ok" = "yes"; then
23384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, found in sys/types.h" >&5
23385 $as_echo "yes, found in sys/types.h" >&6; }
23387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23388 /* end confdefs.h. */
23389 #include <sys/select.h>
23392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23393 $EGREP "fd_set" >/dev/null 2>&1; then :
23398 if test "$gtk_ok" = "yes"; then
23399 # *** FIXME: give it a different name
23401 $as_echo "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, found in sys/select.h" >&5
23404 $as_echo "yes, found in sys/select.h" >&6; }
23407 $as_echo "#define NO_FD_SET 1" >>confdefs.h
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23410 $as_echo "no" >&6; }
23414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realloc (NULL,) will work" >&5
23415 $as_echo_n "checking whether realloc (NULL,) will work... " >&6; }
23416 if ${glib_cv_sane_realloc+:} false; then :
23417 $as_echo_n "(cached) " >&6
23420 if test "$cross_compiling" = yes; then :
23421 glib_cv_sane_realloc=yes
23423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23424 /* end confdefs.h. */
23425 #include <stdlib.h>
23427 return realloc (0, sizeof (int)) == 0;
23430 if ac_fn_c_try_run "$LINENO"; then :
23431 glib_cv_sane_realloc=yes
23433 glib_cv_sane_realloc=no
23435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23436 conftest.$ac_objext conftest.beam conftest.$ac_ext
23441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_sane_realloc" >&5
23442 $as_echo "$glib_cv_sane_realloc" >&6; }
23443 if test x$glib_cv_sane_realloc = xyes; then
23445 $as_echo "#define REALLOC_0_WORKS 1" >>confdefs.h
23449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (CODESET)" >&5
23450 $as_echo_n "checking for nl_langinfo (CODESET)... " >&6; }
23451 if ${glib_cv_langinfo_codeset+:} false; then :
23452 $as_echo_n "(cached) " >&6
23455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23456 /* end confdefs.h. */
23457 #include <langinfo.h>
23461 char *codeset = nl_langinfo (CODESET);
23466 if ac_fn_c_try_compile "$LINENO"; then :
23467 glib_cv_langinfo_codeset=yes
23469 glib_cv_langinfo_codeset=no
23471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_langinfo_codeset" >&5
23474 $as_echo "$glib_cv_langinfo_codeset" >&6; }
23475 if test x$glib_cv_langinfo_codeset = xyes; then
23477 $as_echo "#define HAVE_CODESET 1" >>confdefs.h
23481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (PM_STR)" >&5
23482 $as_echo_n "checking for nl_langinfo (PM_STR)... " >&6; }
23483 if ${glib_cv_langinfo_time+:} false; then :
23484 $as_echo_n "(cached) " >&6
23487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23488 /* end confdefs.h. */
23489 #include <langinfo.h>
23494 str = nl_langinfo (PM_STR);
23495 str = nl_langinfo (D_T_FMT);
23496 str = nl_langinfo (D_FMT);
23497 str = nl_langinfo (T_FMT);
23498 str = nl_langinfo (T_FMT_AMPM);
23499 str = nl_langinfo (MON_1);
23500 str = nl_langinfo (ABMON_12);
23501 str = nl_langinfo (DAY_1);
23502 str = nl_langinfo (ABDAY_7);
23507 if ac_fn_c_try_compile "$LINENO"; then :
23508 glib_cv_langinfo_time=yes
23510 glib_cv_langinfo_time=no
23512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_langinfo_time" >&5
23515 $as_echo "$glib_cv_langinfo_time" >&6; }
23516 if test x$glib_cv_langinfo_time = xyes; then
23518 $as_echo "#define HAVE_LANGINFO_TIME 1" >>confdefs.h
23522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (_NL_CTYPE_OUTDIGITn_MB)" >&5
23523 $as_echo_n "checking for nl_langinfo (_NL_CTYPE_OUTDIGITn_MB)... " >&6; }
23524 if ${glib_cv_langinfo_outdigit+:} false; then :
23525 $as_echo_n "(cached) " >&6
23528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23529 /* end confdefs.h. */
23530 #include <langinfo.h>
23535 str = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB);
23536 str = nl_langinfo (_NL_CTYPE_OUTDIGIT1_MB);
23537 str = nl_langinfo (_NL_CTYPE_OUTDIGIT2_MB);
23538 str = nl_langinfo (_NL_CTYPE_OUTDIGIT3_MB);
23539 str = nl_langinfo (_NL_CTYPE_OUTDIGIT4_MB);
23540 str = nl_langinfo (_NL_CTYPE_OUTDIGIT5_MB);
23541 str = nl_langinfo (_NL_CTYPE_OUTDIGIT6_MB);
23542 str = nl_langinfo (_NL_CTYPE_OUTDIGIT7_MB);
23543 str = nl_langinfo (_NL_CTYPE_OUTDIGIT8_MB);
23544 str = nl_langinfo (_NL_CTYPE_OUTDIGIT9_MB);
23549 if ac_fn_c_try_compile "$LINENO"; then :
23550 glib_cv_langinfo_outdigit=yes
23552 glib_cv_langinfo_outdigit=no
23554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_langinfo_outdigit" >&5
23557 $as_echo "$glib_cv_langinfo_outdigit" >&6; }
23558 if test x$glib_cv_langinfo_outdigit = xyes; then
23560 $as_echo "#define HAVE_LANGINFO_OUTDIGIT 1" >>confdefs.h
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a compliant posix_memalign() implementation" >&5
23565 $as_echo_n "checking for a compliant posix_memalign() implementation... " >&6; }
23566 if ${glib_cv_compliant_posix_memalign+:} false; then :
23567 $as_echo_n "(cached) " >&6
23570 glib_cv_compliant_posix_memalign=0
23571 if test "$ac_cv_func_posix_memalign" = "yes" ; then
23572 if test "$cross_compiling" = yes; then :
23575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23576 /* end confdefs.h. */
23578 #define _XOPEN_SOURCE 600
23579 #include <stdlib.h> /* posix_memalign() should be defined here */
23580 /* some systems break if #include <malloc.h> used */
23581 static void test_memalign (size_t boundary, size_t size) {
23583 if (posix_memalign (&mem, boundary, size) != 0 || !mem)
23589 test_memalign ( 128, 128 - 2 * sizeof (void*));
23590 test_memalign ( 256, 256 - 2 * sizeof (void*));
23591 test_memalign ( 512, 512 - 2 * sizeof (void*));
23592 test_memalign ( 1024, 1024 - 2 * sizeof (void*));
23593 test_memalign ( 2048, 2048 - 2 * sizeof (void*));
23594 test_memalign ( 4096, 4096 - 2 * sizeof (void*));
23595 test_memalign ( 8192, 8192 - 2 * sizeof (void*));
23596 test_memalign (16384, 16384 - 2 * sizeof (void*));
23597 test_memalign (32768, 32768 - 2 * sizeof (void*));
23598 exit (0); /* success */
23602 if ac_fn_c_try_run "$LINENO"; then :
23603 glib_cv_compliant_posix_memalign=1
23605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23606 conftest.$ac_objext conftest.beam conftest.$ac_ext
23614 if test "$glib_cv_compliant_posix_memalign" = "1"; then
23615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23616 $as_echo "yes" >&6; }
23618 $as_echo "#define POSIX_MEMALIGN_WITH_COMPLIANT_ALLOCS 1" >>confdefs.h
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23622 $as_echo "no" >&6; }
23626 # Check for strlcpy
23627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD strlcpy/strlcat" >&5
23628 $as_echo_n "checking for OpenBSD strlcpy/strlcat... " >&6; }
23629 if ${glib_cv_have_strlcpy+:} false; then :
23630 $as_echo_n "(cached) " >&6
23633 if test "$cross_compiling" = yes; then :
23634 glib_cv_have_strlcpy=no
23636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23637 /* end confdefs.h. */
23638 #include <stdlib.h>
23639 #include <string.h>
23642 (void) strlcpy (p, "hi", 10);
23643 if (strlcat (p, "bye", 0) != 3)
23648 if ac_fn_c_try_run "$LINENO"; then :
23649 glib_cv_have_strlcpy=yes
23651 glib_cv_have_strlcpy=no
23653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23654 conftest.$ac_objext conftest.beam conftest.$ac_ext
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_have_strlcpy" >&5
23659 $as_echo "$glib_cv_have_strlcpy" >&6; }
23660 if test "$glib_cv_have_strlcpy" = "yes"; then
23662 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an implementation of va_copy()" >&5
23668 $as_echo_n "checking for an implementation of va_copy()... " >&6; }
23669 if ${glib_cv_va_copy+:} false; then :
23670 $as_echo_n "(cached) " >&6
23673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23674 /* end confdefs.h. */
23675 #include <stdarg.h>
23676 #include <stdlib.h>
23677 void f (int i, ...) {
23678 va_list args1, args2;
23679 va_start (args1, i);
23680 va_copy (args2, args1);
23681 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
23683 va_end (args1); va_end (args2);
23690 if ac_fn_c_try_link "$LINENO"; then :
23691 glib_cv_va_copy=yes
23695 rm -f core conftest.err conftest.$ac_objext \
23696 conftest$ac_exeext conftest.$ac_ext
23699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_va_copy" >&5
23700 $as_echo "$glib_cv_va_copy" >&6; }
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an implementation of __va_copy()" >&5
23702 $as_echo_n "checking for an implementation of __va_copy()... " >&6; }
23703 if ${glib_cv___va_copy+:} false; then :
23704 $as_echo_n "(cached) " >&6
23707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23708 /* end confdefs.h. */
23709 #include <stdarg.h>
23710 #include <stdlib.h>
23711 void f (int i, ...) {
23712 va_list args1, args2;
23713 va_start (args1, i);
23714 __va_copy (args2, args1);
23715 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
23717 va_end (args1); va_end (args2);
23724 if ac_fn_c_try_link "$LINENO"; then :
23725 glib_cv___va_copy=yes
23727 glib_cv___va_copy=no
23729 rm -f core conftest.err conftest.$ac_objext \
23730 conftest$ac_exeext conftest.$ac_ext
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv___va_copy" >&5
23734 $as_echo "$glib_cv___va_copy" >&6; }
23736 if test "x$glib_cv_va_copy" = "xyes"; then
23737 g_va_copy_func=va_copy
23738 else if test "x$glib_cv___va_copy" = "xyes"; then
23739 g_va_copy_func=__va_copy
23743 if test -n "$g_va_copy_func"; then
23745 cat >>confdefs.h <<_ACEOF
23746 #define G_VA_COPY $g_va_copy_func
23751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_lists can be copied by value" >&5
23752 $as_echo_n "checking whether va_lists can be copied by value... " >&6; }
23753 if ${glib_cv_va_val_copy+:} false; then :
23754 $as_echo_n "(cached) " >&6
23757 if test "$cross_compiling" = yes; then :
23758 glib_cv_va_val_copy=yes
23760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23761 /* end confdefs.h. */
23762 #include <stdarg.h>
23763 #include <stdlib.h>
23764 void f (int i, ...) {
23765 va_list args1, args2;
23766 va_start (args1, i);
23768 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
23770 va_end (args1); va_end (args2);
23777 if ac_fn_c_try_run "$LINENO"; then :
23778 glib_cv_va_val_copy=yes
23780 glib_cv_va_val_copy=no
23782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23783 conftest.$ac_objext conftest.beam conftest.$ac_ext
23788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_va_val_copy" >&5
23789 $as_echo "$glib_cv_va_val_copy" >&6; }
23791 if test "x$glib_cv_va_val_copy" = "xno"; then
23793 $as_echo "#define G_VA_COPY_AS_ARRAY 1" >>confdefs.h
23798 G_MODULE_LIBS_EXTRA=
23799 G_MODULE_PLUGIN_LIBS=
23800 if test x"$glib_native_win32" = xyes; then
23804 G_MODULE_LDFLAGS=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
23806 G_MODULE_NEED_USCORE=0
23807 G_MODULE_BROKEN_RTLD_GLOBAL=0
23808 G_MODULE_HAVE_DLERROR=0
23809 if test -z "$G_MODULE_IMPL"; then
23811 *-*-mingw*|*-*-cygwin*) G_MODULE_IMPL=G_MODULE_IMPL_WIN32 ;;
23814 if test -z "$G_MODULE_IMPL"; then
23816 *-*-aix*) G_MODULE_IMPL=G_MODULE_IMPL_AR ;;
23819 if test -z "$G_MODULE_IMPL"; then
23820 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
23821 if test "x$ac_cv_func_dlopen" = xyes; then :
23822 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
23823 if test "x$ac_cv_func_dlsym" = xyes; then :
23824 G_MODULE_IMPL=G_MODULE_IMPL_DL
23830 if test -z "$G_MODULE_IMPL" && test "x$glib_native_beos" = "xyes"; then
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for load_image in -lroot" >&5
23832 $as_echo_n "checking for load_image in -lroot... " >&6; }
23833 if ${ac_cv_lib_root_load_image+:} false; then :
23834 $as_echo_n "(cached) " >&6
23836 ac_check_lib_save_LIBS=$LIBS
23837 LIBS="-lroot $LIBS"
23838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23839 /* end confdefs.h. */
23841 /* Override any GCC internal prototype to avoid an error.
23842 Use char because int might match the return type of a GCC
23843 builtin and then its argument prototype would still apply. */
23847 char load_image ();
23851 return load_image ();
23856 if ac_fn_c_try_link "$LINENO"; then :
23857 ac_cv_lib_root_load_image=yes
23859 ac_cv_lib_root_load_image=no
23861 rm -f core conftest.err conftest.$ac_objext \
23862 conftest$ac_exeext conftest.$ac_ext
23863 LIBS=$ac_check_lib_save_LIBS
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_load_image" >&5
23866 $as_echo "$ac_cv_lib_root_load_image" >&6; }
23867 if test "x$ac_cv_lib_root_load_image" = xyes; then :
23868 G_MODULE_LIBS="-lbe -lroot -lglib-2.0 "
23869 G_MODULE_LIBS_EXTRA="-L\$(top_builddir_full)/.libs"
23870 G_MODULE_PLUGIN_LIBS="-L\$(top_builddir_full)/gmodule/.libs -lgmodule"
23871 G_MODULE_IMPL=G_MODULE_IMPL_BEOS
23875 if test -z "$G_MODULE_IMPL"; then
23876 ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule"
23877 if test "x$ac_cv_func_NSLinkModule" = xyes; then :
23878 G_MODULE_IMPL=G_MODULE_IMPL_DYLD
23879 G_MODULE_NEED_USCORE=1
23883 if test -z "$G_MODULE_IMPL"; then
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
23885 $as_echo_n "checking for dlopen in -ldl... " >&6; }
23886 if ${ac_cv_lib_dl_dlopen+:} false; then :
23887 $as_echo_n "(cached) " >&6
23889 ac_check_lib_save_LIBS=$LIBS
23891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23892 /* end confdefs.h. */
23894 /* Override any GCC internal prototype to avoid an error.
23895 Use char because int might match the return type of a GCC
23896 builtin and then its argument prototype would still apply. */
23909 if ac_fn_c_try_link "$LINENO"; then :
23910 ac_cv_lib_dl_dlopen=yes
23912 ac_cv_lib_dl_dlopen=no
23914 rm -f core conftest.err conftest.$ac_objext \
23915 conftest$ac_exeext conftest.$ac_ext
23916 LIBS=$ac_check_lib_save_LIBS
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
23919 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
23920 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
23921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
23922 $as_echo_n "checking for dlsym in -ldl... " >&6; }
23923 if ${ac_cv_lib_dl_dlsym+:} false; then :
23924 $as_echo_n "(cached) " >&6
23926 ac_check_lib_save_LIBS=$LIBS
23928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23929 /* end confdefs.h. */
23931 /* Override any GCC internal prototype to avoid an error.
23932 Use char because int might match the return type of a GCC
23933 builtin and then its argument prototype would still apply. */
23946 if ac_fn_c_try_link "$LINENO"; then :
23947 ac_cv_lib_dl_dlsym=yes
23949 ac_cv_lib_dl_dlsym=no
23951 rm -f core conftest.err conftest.$ac_objext \
23952 conftest$ac_exeext conftest.$ac_ext
23953 LIBS=$ac_check_lib_save_LIBS
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
23956 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
23957 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
23959 G_MODULE_IMPL=G_MODULE_IMPL_DL
23965 if test -z "$G_MODULE_IMPL"; then
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
23967 $as_echo_n "checking for shl_load in -ldld... " >&6; }
23968 if ${ac_cv_lib_dld_shl_load+:} false; then :
23969 $as_echo_n "(cached) " >&6
23971 ac_check_lib_save_LIBS=$LIBS
23973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23974 /* end confdefs.h. */
23976 /* Override any GCC internal prototype to avoid an error.
23977 Use char because int might match the return type of a GCC
23978 builtin and then its argument prototype would still apply. */
23986 return shl_load ();
23991 if ac_fn_c_try_link "$LINENO"; then :
23992 ac_cv_lib_dld_shl_load=yes
23994 ac_cv_lib_dld_shl_load=no
23996 rm -f core conftest.err conftest.$ac_objext \
23997 conftest$ac_exeext conftest.$ac_ext
23998 LIBS=$ac_check_lib_save_LIBS
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
24001 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
24002 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
24003 G_MODULE_LIBS=-ldld
24004 G_MODULE_IMPL=G_MODULE_IMPL_DLD
24008 if test "$G_MODULE_IMPL" = "G_MODULE_IMPL_DL"; then
24010 LDFLAGS_orig="$LDFLAGS"
24011 LIBS="$G_MODULE_LIBS $LIBS"
24012 LDFLAGS="$LDFLAGS $G_MODULE_LDFLAGS"
24013 echo "void glib_plugin_test(void) { }" > plugin.c
24014 ${SHELL} ./libtool --mode=compile --tag=CC ${CC} ${CFLAGS} \
24015 ${CPPFLAGS} -c -o plugin.lo plugin.c >/dev/null 2>&1
24016 ${SHELL} ./libtool --mode=link --tag=CC ${CC} ${CFLAGS} \
24017 ${LDFLAGS} -module -o plugin.la -export-dynamic \
24018 -shrext ".o" -avoid-version plugin.lo \
24019 -rpath /dont/care >/dev/null 2>&1
24020 eval `./libtool --config | grep ^objdir`
24021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTLD_GLOBAL brokenness" >&5
24022 $as_echo_n "checking for RTLD_GLOBAL brokenness... " >&6; }
24023 if ${glib_cv_rtldglobal_broken+:} false; then :
24024 $as_echo_n "(cached) " >&6
24027 if test "$cross_compiling" = yes; then :
24028 glib_cv_rtldglobal_broken=no
24030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24031 /* end confdefs.h. */
24034 #ifndef RTLD_GLOBAL
24035 # define RTLD_GLOBAL 0
24038 # define RTLD_LAZY 0
24040 int glib_plugin_test;
24042 void *handle, *global, *local;
24043 global = &glib_plugin_test;
24044 handle = dlopen ("./$objdir/plugin.o", RTLD_GLOBAL | RTLD_LAZY);
24045 if (!handle) return 0;
24046 local = dlsym (handle, "glib_plugin_test");
24047 return global == local;
24050 if ac_fn_c_try_run "$LINENO"; then :
24051 glib_cv_rtldglobal_broken=no
24053 glib_cv_rtldglobal_broken=yes
24055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24056 conftest.$ac_objext conftest.beam conftest.$ac_ext
24059 rm -f plugin.c plugin.o plugin.lo plugin.la ${objdir}/plugin.*
24060 rmdir ${objdir} 2>/dev/null
24063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_rtldglobal_broken" >&5
24064 $as_echo "$glib_cv_rtldglobal_broken" >&6; }
24065 if test "x$glib_cv_rtldglobal_broken" = "xyes"; then
24066 G_MODULE_BROKEN_RTLD_GLOBAL=1
24068 G_MODULE_BROKEN_RTLD_GLOBAL=0
24070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preceeding underscore in symbols" >&5
24071 $as_echo_n "checking for preceeding underscore in symbols... " >&6; }
24072 if ${glib_cv_uscore+:} false; then :
24073 $as_echo_n "(cached) " >&6
24076 if test "$cross_compiling" = yes; then :
24077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24079 as_fn_error $? "cannot run test program while cross compiling
24080 See \`config.log' for more details" "$LINENO" 5; }
24082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24083 /* end confdefs.h. */
24085 int glib_underscore_test (void) { return 42; }
24087 void *f1 = (void*)0, *f2 = (void*)0, *handle;
24088 handle = dlopen ((void*)0, 0);
24090 f1 = dlsym (handle, "glib_underscore_test");
24091 f2 = dlsym (handle, "_glib_underscore_test");
24092 } return (!f2 || f1);
24095 if ac_fn_c_try_run "$LINENO"; then :
24100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24101 conftest.$ac_objext conftest.beam conftest.$ac_ext
24104 rm -f plugin.c plugin.$ac_objext plugin.lo
24107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_uscore" >&5
24108 $as_echo "$glib_cv_uscore" >&6; }
24109 if test "x${glib_cv_uscore+set}" != "xset" ; then
24110 as_fn_error $? "glib_cv_uscore must be set in cache file when cross-compiling." "$LINENO" 5
24113 if test "x$glib_cv_uscore" = "xyes"; then
24114 G_MODULE_NEED_USCORE=1
24116 G_MODULE_NEED_USCORE=0
24119 LDFLAGS="$LDFLAGS_orig"
24120 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
24121 if test "x$ac_cv_func_dlerror" = xyes; then :
24122 G_MODULE_HAVE_DLERROR=1
24124 G_MODULE_HAVE_DLERROR=0
24129 if test -z "$G_MODULE_IMPL"; then
24131 G_MODULE_SUPPORTED=false
24133 G_MODULE_SUPPORTED=true
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the suffix of module shared libraries" >&5
24137 $as_echo_n "checking for the suffix of module shared libraries... " >&6; }
24139 shrext_cmds=`./libtool --config | grep '^shrext_cmds='`
24141 module=yes eval std_shrext=$shrext_cmds
24142 # chop the initial dot
24143 glib_gmodule_suffix=`echo $std_shrext | sed 's/^\.//'`
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: .$glib_gmodule_suffix" >&5
24145 $as_echo ".$glib_gmodule_suffix" >&6; }
24146 # any reason it may fail?
24147 if test "x$glib_gmodule_suffix" = x; then
24148 as_fn_error $? "Cannot determine shared library suffix from libtool" "$LINENO" 5
24163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gspawn implementation" >&5
24164 $as_echo_n "checking for gspawn implementation... " >&6; }
24167 GSPAWN=gspawn-win32.lo
24173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPAWN" >&5
24174 $as_echo "$GSPAWN" >&6; }
24178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIOChannel implementation" >&5
24179 $as_echo_n "checking for GIOChannel implementation... " >&6; }
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIO" >&5
24189 $as_echo "$GIO" >&6; }
24194 # Check whether --with-gio-module-dir was given.
24195 if test "${with_gio_module_dir+set}" = set; then :
24196 withval=$with_gio_module_dir;
24198 with_gio_module_dir='${libdir}/gio/modules'
24201 GIO_MODULE_DIR=$with_gio_module_dir
24204 # Check whether --enable-selinux was given.
24205 if test "${enable_selinux+set}" = set; then :
24206 enableval=$enable_selinux;
24211 if test "x$enable_selinux" != "xno"; then
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
24214 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
24215 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
24216 $as_echo_n "(cached) " >&6
24218 ac_check_lib_save_LIBS=$LIBS
24219 LIBS="-lselinux $LIBS"
24220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24221 /* end confdefs.h. */
24223 /* Override any GCC internal prototype to avoid an error.
24224 Use char because int might match the return type of a GCC
24225 builtin and then its argument prototype would still apply. */
24229 char is_selinux_enabled ();
24233 return is_selinux_enabled ();
24238 if ac_fn_c_try_link "$LINENO"; then :
24239 ac_cv_lib_selinux_is_selinux_enabled=yes
24241 ac_cv_lib_selinux_is_selinux_enabled=no
24243 rm -f core conftest.err conftest.$ac_objext \
24244 conftest$ac_exeext conftest.$ac_ext
24245 LIBS=$ac_check_lib_save_LIBS
24247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
24248 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
24249 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
24250 for ac_header in selinux/selinux.h
24252 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
24253 if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
24254 cat >>confdefs.h <<_ACEOF
24255 #define HAVE_SELINUX_SELINUX_H 1
24257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon_raw in -lselinux" >&5
24258 $as_echo_n "checking for lgetfilecon_raw in -lselinux... " >&6; }
24259 if ${ac_cv_lib_selinux_lgetfilecon_raw+:} false; then :
24260 $as_echo_n "(cached) " >&6
24262 ac_check_lib_save_LIBS=$LIBS
24263 LIBS="-lselinux $LIBS"
24264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24265 /* end confdefs.h. */
24267 /* Override any GCC internal prototype to avoid an error.
24268 Use char because int might match the return type of a GCC
24269 builtin and then its argument prototype would still apply. */
24273 char lgetfilecon_raw ();
24277 return lgetfilecon_raw ();
24282 if ac_fn_c_try_link "$LINENO"; then :
24283 ac_cv_lib_selinux_lgetfilecon_raw=yes
24285 ac_cv_lib_selinux_lgetfilecon_raw=no
24287 rm -f core conftest.err conftest.$ac_objext \
24288 conftest$ac_exeext conftest.$ac_ext
24289 LIBS=$ac_check_lib_save_LIBS
24291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon_raw" >&5
24292 $as_echo "$ac_cv_lib_selinux_lgetfilecon_raw" >&6; }
24293 if test "x$ac_cv_lib_selinux_lgetfilecon_raw" = xyes; then :
24295 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
24297 SELINUX_LIBS="-lselinux"
24313 for ac_header in sys/inotify.h
24315 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
24316 if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
24317 cat >>confdefs.h <<_ACEOF
24318 #define HAVE_SYS_INOTIFY_H 1
24321 inotify_support=yes
24322 for ac_func in inotify_init1
24324 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
24325 if test "x$ac_cv_func_inotify_init1" = xyes; then :
24326 cat >>confdefs.h <<_ACEOF
24327 #define HAVE_INOTIFY_INIT1 1
24339 if test "$inotify_support" = "yes"; then
24341 HAVE_INOTIFY_FALSE='#'
24343 HAVE_INOTIFY_TRUE='#'
24344 HAVE_INOTIFY_FALSE=
24349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24350 /* end confdefs.h. */
24353 #ifndef PORT_SOURCE_FILE
24354 #error "Please upgrade to Nevada 72 or above to suppoert FEN"
24356 int main() { return 0; }
24358 if ac_fn_c_try_compile "$LINENO"; then :
24363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24365 if test "$fen_support" = "yes"; then
24375 # Check whether --enable-xattr was given.
24376 if test "${enable_xattr+set}" = set; then :
24377 enableval=$enable_xattr;
24382 if test "x$enable_xattr" != "xno"; then
24386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr in -lc" >&5
24387 $as_echo_n "checking for getxattr in -lc... " >&6; }
24388 if ${ac_cv_lib_c_getxattr+:} false; then :
24389 $as_echo_n "(cached) " >&6
24391 ac_check_lib_save_LIBS=$LIBS
24393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24394 /* end confdefs.h. */
24396 /* Override any GCC internal prototype to avoid an error.
24397 Use char because int might match the return type of a GCC
24398 builtin and then its argument prototype would still apply. */
24406 return getxattr ();
24411 if ac_fn_c_try_link "$LINENO"; then :
24412 ac_cv_lib_c_getxattr=yes
24414 ac_cv_lib_c_getxattr=no
24416 rm -f core conftest.err conftest.$ac_objext \
24417 conftest$ac_exeext conftest.$ac_ext
24418 LIBS=$ac_check_lib_save_LIBS
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getxattr" >&5
24421 $as_echo "$ac_cv_lib_c_getxattr" >&6; }
24422 if test "x$ac_cv_lib_c_getxattr" = xyes; then :
24423 for ac_header in sys/xattr.h
24425 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
24426 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
24427 cat >>confdefs.h <<_ACEOF
24428 #define HAVE_SYS_XATTR_H 1
24431 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
24442 if test "x$msg_xattr" != "xyes"; then
24443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr in -lattr" >&5
24444 $as_echo_n "checking for getxattr in -lattr... " >&6; }
24445 if ${ac_cv_lib_attr_getxattr+:} false; then :
24446 $as_echo_n "(cached) " >&6
24448 ac_check_lib_save_LIBS=$LIBS
24449 LIBS="-lattr $LIBS"
24450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24451 /* end confdefs.h. */
24453 /* Override any GCC internal prototype to avoid an error.
24454 Use char because int might match the return type of a GCC
24455 builtin and then its argument prototype would still apply. */
24463 return getxattr ();
24468 if ac_fn_c_try_link "$LINENO"; then :
24469 ac_cv_lib_attr_getxattr=yes
24471 ac_cv_lib_attr_getxattr=no
24473 rm -f core conftest.err conftest.$ac_objext \
24474 conftest$ac_exeext conftest.$ac_ext
24475 LIBS=$ac_check_lib_save_LIBS
24477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_getxattr" >&5
24478 $as_echo "$ac_cv_lib_attr_getxattr" >&6; }
24479 if test "x$ac_cv_lib_attr_getxattr" = xyes; then :
24480 for ac_header in attr/xattr.h
24482 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
24483 if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
24484 cat >>confdefs.h <<_ACEOF
24485 #define HAVE_ATTR_XATTR_H 1
24488 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
24490 XATTR_LIBS="-lattr"
24501 if test "x$msg_xattr" = "xyes"; then
24502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NOFOLLOW" >&5
24503 $as_echo_n "checking for XATTR_NOFOLLOW... " >&6; }
24504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24505 /* end confdefs.h. */
24508 #ifdef HAVE_SYS_TYPES_H
24509 #include <sys/types.h>
24511 #ifdef HAVE_SYS_XATTR_H
24512 #include <sys/xattr.h>
24513 #elif HAVE_ATTR_XATTR_H
24514 #include <attr/xattr.h>
24520 ssize_t len = getxattr("", "", NULL, 0, 0, XATTR_NOFOLLOW);
24525 if ac_fn_c_try_compile "$LINENO"; then :
24528 $as_echo "#define HAVE_XATTR_NOFOLLOW 1" >>confdefs.h
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24531 $as_echo "yes" >&6; }
24534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24535 $as_echo "no" >&6; }
24538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for platform-dependent source" >&5
24546 $as_echo_n "checking for platform-dependent source... " >&6; }
24548 *-*-cygwin*|*-*-mingw*)
24549 PLATFORMDEP=gwin32.lo
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORMDEP" >&5
24556 $as_echo "$PLATFORMDEP" >&6; }
24559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile timeloop" >&5
24560 $as_echo_n "checking whether to compile timeloop... " >&6; }
24562 *-*-cygwin*|*-*-mingw*|*-*-minix)
24566 enable_timeloop=yes
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_timeloop" >&5
24570 $as_echo "$enable_timeloop" >&6; }
24571 if test x$enable_timeloop = xyes; then
24572 ENABLE_TIMELOOP_TRUE=
24573 ENABLE_TIMELOOP_FALSE='#'
24575 ENABLE_TIMELOOP_TRUE='#'
24576 ENABLE_TIMELOOP_FALSE=
24580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for some Win32 platform" >&5
24581 $as_echo_n "checking if building for some Win32 platform... " >&6; }
24583 *-*-mingw*|*-*-cygwin*)
24590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
24591 $as_echo "$platform_win32" >&6; }
24592 if test x$platform_win32 = xyes; then
24593 PLATFORM_WIN32_TRUE=
24594 PLATFORM_WIN32_FALSE='#'
24596 PLATFORM_WIN32_TRUE='#'
24597 PLATFORM_WIN32_FALSE=
24603 # Check whether --with-threads was given.
24604 if test "${with_threads+set}" = set; then :
24605 withval=$with_threads;
24612 THREAD_NO_IMPLEMENTATION="No thread implementation found."
24614 FLAG_DOES_NOT_WORK="I can't find the MACRO to enable thread safety on your
24615 platform (normally it's "_REENTRANT"). I'll not use any flag on
24616 compilation now, but then your programs might not work.
24617 Please provide information on how it is done on your system."
24619 LIBS_NOT_FOUND_1="I can't find the libraries for the thread implementation
24622 LIBS_NOT_FOUND_2=". Please choose another thread implementation or
24623 provide information on your thread implementation."
24625 FUNC_NO_GETPWUID_R="the 'g_get_(user_name|real_name|home_dir|tmp_dir)'
24626 functions will not be MT-safe during their first call because
24627 there is no working 'getpwuid_r' on your system."
24629 FUNC_NO_LOCALTIME_R="the 'g_date_set_time' function will not be MT-safe
24630 because there is no 'localtime_r' on your system."
24632 AIX_COMPILE_INFO="AIX's C compiler needs to be called by a different name, when
24633 linking threaded applications. As GLib cannot do that
24634 automatically, you will get an linkg error everytime you are
24635 not using the right compiler. In that case you have to relink
24636 with the right compiler. Ususally just '_r' is appended
24637 to the compiler name."
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread implementation" >&5
24641 $as_echo_n "checking for thread implementation... " >&6; }
24644 if test "x$with_threads" = xyes || test "x$with_threads" = xposix; then
24645 # -D_POSIX4_DRAFT_SOURCE -D_POSIX4A_DRAFT10_SOURCE is for DG/UX
24646 # -U_OSF_SOURCE is for Digital UNIX 4.0d
24647 GTHREAD_COMPILE_IMPL_DEFINES="-D_POSIX4_DRAFT_SOURCE -D_POSIX4A_DRAFT10_SOURCE -U_OSF_SOURCE"
24648 glib_save_CPPFLAGS="$CPPFLAGS"
24649 CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
24650 if test "x$have_threads" = xno; then
24651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24652 /* end confdefs.h. */
24653 #include <pthread.h>
24657 pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
24662 if ac_fn_c_try_compile "$LINENO"; then :
24665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24667 # Tru64Unix requires -pthread to find pthread.h. See #103020
24668 CPPFLAGS="$CPPFLAGS -pthread"
24669 if test "x$have_threads" = xno; then
24670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24671 /* end confdefs.h. */
24672 #include <pthread.h>
24676 pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
24681 if ac_fn_c_try_compile "$LINENO"; then :
24684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24686 CPPFLAGS="$glib_save_CPPFLAGS"
24688 if test "x$with_threads" = xyes || test "x$with_threads" = xwin32; then
24696 if test "x$have_threads" = xno; then
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none available" >&5
24698 $as_echo "none available" >&6; }
24699 as_fn_error $? "$THREAD_NO_IMPLEMENTATION" "$LINENO" 5
24701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_threads" >&5
24702 $as_echo "$have_threads" >&6; }
24708 G_THREAD_LIBS_EXTRA=
24713 if test x"$have_threads" = xposix; then
24714 # First we test for posix, whether -pthread or -pthreads do the trick as
24715 # both CPPFLAG and LIBS.
24716 # One of them does for most gcc versions and some other platforms/compilers
24717 # too and could be considered as the canonical way to go.
24719 *-*-cygwin*|*-*-darwin*)
24720 # skip cygwin and darwin -pthread or -pthreads test
24723 # These compiler/linker flags work with both Sun Studio and gcc
24724 # Sun Studio expands -mt to -D_REENTRANT and -lthread
24725 # gcc expands -pthreads to -D_REENTRANT -D_PTHREADS -lpthread
24726 G_THREAD_CFLAGS="-D_REENTRANT -D_PTHREADS"
24727 G_THREAD_LIBS="-lpthread -lthread"
24730 for flag in pthread pthreads mt; do
24731 glib_save_CFLAGS="$CFLAGS"
24732 CFLAGS="$CFLAGS -$flag"
24733 if test "$cross_compiling" = yes; then :
24734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24735 /* end confdefs.h. */
24737 #include <pthread.h>
24739 void* func(void* data) {check_me = 42; return &check_me;}
24743 pthread_create (&t, 0, func, 0);
24744 pthread_join (t, &ret);
24745 return (check_me != 42 || ret != &check_me);
24748 if ac_fn_c_try_link "$LINENO"; then :
24749 glib_flag_works=yes
24753 rm -f core conftest.err conftest.$ac_objext \
24754 conftest$ac_exeext conftest.$ac_ext
24756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24757 /* end confdefs.h. */
24759 #include <pthread.h>
24761 void* func(void* data) {check_me = 42; return &check_me;}
24765 pthread_create (&t, 0, func, 0);
24766 pthread_join (t, &ret);
24767 return (check_me != 42 || ret != &check_me);
24770 if ac_fn_c_try_run "$LINENO"; then :
24771 glib_flag_works=yes
24775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24776 conftest.$ac_objext conftest.beam conftest.$ac_ext
24779 CFLAGS="$glib_save_CFLAGS"
24780 if test $glib_flag_works = yes ; then
24781 G_THREAD_CFLAGS=-$flag
24782 G_THREAD_LIBS=-$flag
24790 if test x"$G_THREAD_CFLAGS" = x; then
24792 # The canonical -pthread[s] does not work. Try something different.
24796 if test x"$GCC" = xyes; then
24797 # GCC 3.0 and above needs -pthread.
24798 # Should be coverd by the case above.
24799 # GCC 2.x and below needs -mthreads
24800 G_THREAD_CFLAGS="-mthreads"
24801 G_THREAD_LIBS=$G_THREAD_CFLAGS
24803 # We are probably using the aix compiler. Normaly a
24804 # program would have to be compiled with the _r variant
24805 # of the corresponding compiler, but we as GLib cannot
24806 # do that: but the good news is that for compiling the
24807 # only difference is the added -D_THREAD_SAFE compile
24808 # option. This is according to the "C for AIX User's
24810 G_THREAD_CFLAGS="-D_THREAD_SAFE"
24813 *-dg-dgux*) # DG/UX
24814 G_THREAD_CFLAGS="-D_REENTRANT -D_POSIX4A_DRAFT10_SOURCE"
24816 *-sysv5uw7*) # UnixWare 7
24817 # We are not using gcc with -pthread. Catched above.
24818 G_THREAD_CFLAGS="-Kthread"
24819 G_THREAD_LIBS=$G_THREAD_CFLAGS
24822 # No flag needed when using MSVCRT.DLL
24826 G_THREAD_CFLAGS="-D_REENTRANT" # good default guess otherwise
24832 # if we are not finding the localtime_r function, then we probably are
24833 # not using the proper multithread flag
24835 glib_save_CPPFLAGS="$CPPFLAGS"
24836 CPPFLAGS="$CPPFLAGS $G_THREAD_CFLAGS"
24838 # First we test, whether localtime_r is declared in time.h
24839 # directly. Then we test whether a macro localtime_r exists, in
24840 # which case localtime_r in the test program is replaced and thus
24841 # if we still find localtime_r in the output, it is not defined as
24844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24845 /* end confdefs.h. */
24848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24849 $EGREP "[^a-zA-Z1-9_]localtime_r[^a-zA-Z1-9_]" >/dev/null 2>&1; then :
24852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24853 /* end confdefs.h. */
24857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24858 $EGREP "[^a-zA-Z1-9_]localtime_r[^a-zA-Z1-9_]" >/dev/null 2>&1; then :
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FLAG_DOES_NOT_WORK" >&5
24860 $as_echo "$as_me: WARNING: $FLAG_DOES_NOT_WORK" >&2;}
24868 CPPFLAGS="$glib_save_CPPFLAGS"
24870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread related cflags" >&5
24871 $as_echo_n "checking thread related cflags... " >&6; }
24872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $G_THREAD_CFLAGS" >&5
24873 $as_echo "$G_THREAD_CFLAGS" >&6; }
24874 CPPFLAGS="$CPPFLAGS $G_THREAD_CFLAGS"
24877 case $have_threads in
24879 glib_save_CPPFLAGS="$CPPFLAGS"
24880 CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
24881 if test x"$G_THREAD_LIBS" = x; then
24884 # We are not using gcc (would have set G_THREAD_LIBS) and thus
24885 # probably using the aix compiler.
24886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $AIX_COMPILE_INFO" >&5
24887 $as_echo "$as_me: WARNING: $AIX_COMPILE_INFO" >&2;}
24890 G_THREAD_LIBS=error
24891 glib_save_LIBS="$LIBS"
24892 for thread_lib in "" pthread pthread32 pthreads thread; do
24893 if test x"$thread_lib" = x; then
24897 add_thread_lib="-l$thread_lib"
24898 IN=" in -l$thread_lib"
24900 if test x"$have_threads" = xposix; then
24903 defattr=pthread_attr_default
24906 LIBS="$add_thread_lib $glib_save_LIBS"
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create/pthread_join$IN" >&5
24909 $as_echo_n "checking for pthread_create/pthread_join$IN... " >&6; }
24910 if test "$cross_compiling" = yes; then :
24911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24912 /* end confdefs.h. */
24914 #include <pthread.h>
24916 void* func(void* data) {check_me = 42; return &check_me;}
24920 pthread_create (&t, $defattr, func, 0);
24921 pthread_join (t, &ret);
24922 return (check_me != 42 || ret != &check_me);
24925 if ac_fn_c_try_link "$LINENO"; then :
24930 rm -f core conftest.err conftest.$ac_objext \
24931 conftest$ac_exeext conftest.$ac_ext
24933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24934 /* end confdefs.h. */
24936 #include <pthread.h>
24938 void* func(void* data) {check_me = 42; return &check_me;}
24942 pthread_create (&t, $defattr, func, 0);
24943 pthread_join (t, &ret);
24944 return (check_me != 42 || ret != &check_me);
24947 if ac_fn_c_try_run "$LINENO"; then :
24952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24953 conftest.$ac_objext conftest.beam conftest.$ac_ext
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_result" >&5
24957 $as_echo "$glib_result" >&6; }
24959 if test "$glib_result" = "yes" ; then
24960 G_THREAD_LIBS="$add_thread_lib"
24964 if test "x$G_THREAD_LIBS" = xerror; then
24965 as_fn_error $? "$LIBS_NOT_FOUND_1$have_threads$LIBS_NOT_FOUND_2" "$LINENO" 5
24967 LIBS="$glib_save_LIBS"
24972 g_threads_impl="POSIX"
24974 CPPFLAGS="$glib_save_CPPFLAGS"
24977 g_threads_impl="WIN32"
24980 g_threads_impl="NONE"
24981 G_THREAD_LIBS=error
24985 if test "x$G_THREAD_LIBS" = xerror; then
24986 as_fn_error $? "$LIBS_NOT_FOUND_1$have_threads$LIBS_NOT_FOUND_2" "$LINENO" 5
24991 G_THREAD_LIBS="-lbe -lroot -lglib-2.0 "
24992 G_THREAD_LIBS_EXTRA="-L\$(top_builddir_full)/.libs"
24998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread related libraries" >&5
24999 $as_echo_n "checking thread related libraries... " >&6; }
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $G_THREAD_LIBS" >&5
25001 $as_echo "$G_THREAD_LIBS" >&6; }
25004 glib_save_LIBS="$LIBS"
25005 # we are not doing the following for now, as this might require glib
25006 # to always be linked with the thread libs on some platforms.
25007 # LIBS="$LIBS $G_THREAD_LIBS"
25008 for ac_func in localtime_r gmtime_r
25010 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25011 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25012 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25013 cat >>confdefs.h <<_ACEOF
25014 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25020 if test "$ac_cv_header_pwd_h" = "yes"; then
25021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix getpwuid_r" >&5
25022 $as_echo_n "checking for posix getpwuid_r... " >&6; }
25023 if ${ac_cv_func_posix_getpwuid_r+:} false; then :
25024 $as_echo_n "(cached) " >&6
25026 if test "$cross_compiling" = yes; then :
25027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25029 as_fn_error $? "cannot run test program while cross compiling
25030 See \`config.log' for more details" "$LINENO" 5; }
25032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25033 /* end confdefs.h. */
25038 char buffer[10000];
25039 struct passwd pwd, *pwptr = &pwd;
25042 error = getpwuid_r (0, &pwd, buffer,
25043 sizeof (buffer), &pwptr);
25044 return (error < 0 && errno == ENOSYS)
25045 || error == ENOSYS;
25048 if ac_fn_c_try_run "$LINENO"; then :
25049 ac_cv_func_posix_getpwuid_r=yes
25051 ac_cv_func_posix_getpwuid_r=no
25053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25054 conftest.$ac_objext conftest.beam conftest.$ac_ext
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_posix_getpwuid_r" >&5
25059 $as_echo "$ac_cv_func_posix_getpwuid_r" >&6; }
25060 if test "x${ac_cv_func_posix_getpwuid_r+set}" != "xset" ; then
25061 as_fn_error $? "ac_cv_func_posix_getpwuid_r must be set in cache file when cross-compiling." "$LINENO" 5
25064 if test "$ac_cv_func_posix_getpwuid_r" = yes; then
25066 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
25069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nonposix getpwuid_r" >&5
25070 $as_echo_n "checking for nonposix getpwuid_r... " >&6; }
25071 if ${ac_cv_func_nonposix_getpwuid_r+:} false; then :
25072 $as_echo_n "(cached) " >&6
25074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25075 /* end confdefs.h. */
25080 char buffer[10000];
25082 getpwuid_r (0, &pwd, buffer,
25088 if ac_fn_c_try_link "$LINENO"; then :
25089 ac_cv_func_nonposix_getpwuid_r=yes
25091 ac_cv_func_nonposix_getpwuid_r=no
25093 rm -f core conftest.err conftest.$ac_objext \
25094 conftest$ac_exeext conftest.$ac_ext
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_nonposix_getpwuid_r" >&5
25097 $as_echo "$ac_cv_func_nonposix_getpwuid_r" >&6; }
25098 if test "x${ac_cv_func_nonposix_getpwuid_r+set}" != "xset" ; then
25099 as_fn_error $? "ac_cv_func_nonposix_getpwuid_r must be set in cache file when cross-compiling." "$LINENO" 5
25102 if test "$ac_cv_func_nonposix_getpwuid_r" = yes; then
25104 $as_echo "#define HAVE_NONPOSIX_GETPWUID_R 1" >>confdefs.h
25109 if test "$ac_cv_header_grp_h" = "yes"; then
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix getgrgid_r" >&5
25111 $as_echo_n "checking for posix getgrgid_r... " >&6; }
25112 if ${ac_cv_func_posix_getgrgid_r+:} false; then :
25113 $as_echo_n "(cached) " >&6
25115 if test "$cross_compiling" = yes; then :
25116 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25118 as_fn_error $? "cannot run test program while cross compiling
25119 See \`config.log' for more details" "$LINENO" 5; }
25121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25122 /* end confdefs.h. */
25127 char buffer[10000];
25128 struct group grp, *grpptr = &grp;
25131 error = getgrgid_r (0, &grp, buffer,
25132 sizeof (buffer), &grpptr);
25133 return (error < 0 && errno == ENOSYS)
25134 || error == ENOSYS;
25137 if ac_fn_c_try_run "$LINENO"; then :
25138 ac_cv_func_posix_getgrgid_r=yes
25140 ac_cv_func_posix_getgrgid_r=no
25142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25143 conftest.$ac_objext conftest.beam conftest.$ac_ext
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_posix_getgrgid_r" >&5
25148 $as_echo "$ac_cv_func_posix_getgrgid_r" >&6; }
25149 if test "x${ac_cv_func_posix_getgrgid_r+set}" != "xset" ; then
25150 as_fn_error $? "ac_cv_func_posix_getgrgid_r must be set in cache file when cross-compiling." "$LINENO" 5
25153 if test "$ac_cv_func_posix_getgrgid_r" = yes; then
25155 $as_echo "#define HAVE_POSIX_GETGRGID_R 1" >>confdefs.h
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nonposix getgrgid_r" >&5
25159 $as_echo_n "checking for nonposix getgrgid_r... " >&6; }
25160 if ${ac_cv_func_nonposix_getgrgid_r+:} false; then :
25161 $as_echo_n "(cached) " >&6
25163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25164 /* end confdefs.h. */
25169 char buffer[10000];
25171 getgrgid_r (0, &grp, buffer,
25177 if ac_fn_c_try_link "$LINENO"; then :
25178 ac_cv_func_nonposix_getgrgid_r=yes
25180 ac_cv_func_nonposix_getgrgid_r=no
25182 rm -f core conftest.err conftest.$ac_objext \
25183 conftest$ac_exeext conftest.$ac_ext
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_nonposix_getgrgid_r" >&5
25186 $as_echo "$ac_cv_func_nonposix_getgrgid_r" >&6; }
25187 if test "x${ac_cv_func_nonposix_getgrgid_r+set}" != "xset" ; then
25188 as_fn_error $? "ac_cv_func_nonposix_getgrgid_r must be set in cache file when cross-compiling." "$LINENO" 5
25191 if test "$ac_cv_func_nonposix_getgrgid_r" = yes; then
25193 $as_echo "#define HAVE_NONPOSIX_GETGRGID_R 1" >>confdefs.h
25198 LIBS="$G_THREAD_LIBS $LIBS"
25199 if test x"$have_threads" = xposix; then
25200 glib_save_CPPFLAGS="$CPPFLAGS"
25201 CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
25202 # This is not AC_CHECK_FUNC to also work with function
25203 # name mangling in header files.
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_setstacksize" >&5
25205 $as_echo_n "checking for pthread_attr_setstacksize... " >&6; }
25206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25207 /* end confdefs.h. */
25208 #include <pthread.h>
25212 pthread_attr_t t; pthread_attr_setstacksize(&t,0)
25217 if ac_fn_c_try_link "$LINENO"; then :
25218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25219 $as_echo "yes" >&6; }
25221 $as_echo "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25225 $as_echo "no" >&6; }
25227 rm -f core conftest.err conftest.$ac_objext \
25228 conftest$ac_exeext conftest.$ac_ext
25229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_condattr_setclock" >&5
25230 $as_echo_n "checking for pthread_condattr_setclock... " >&6; }
25231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25232 /* end confdefs.h. */
25233 #include <pthread.h>
25237 pthread_condattr_t a; pthread_condattr_setclock(&a,0)
25242 if ac_fn_c_try_link "$LINENO"; then :
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25244 $as_echo "yes" >&6; }
25246 $as_echo "#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1" >>confdefs.h
25249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25250 $as_echo "no" >&6; }
25252 rm -f core conftest.err conftest.$ac_objext \
25253 conftest$ac_exeext conftest.$ac_ext
25254 CPPFLAGS="$glib_save_CPPFLAGS"
25257 LIBS="$glib_save_LIBS"
25259 # now spit out all the warnings.
25260 if test "$ac_cv_func_posix_getpwuid_r" != "yes" &&
25261 test "$ac_cv_func_nonposix_getpwuid_r" != "yes"; then
25262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FUNC_NO_GETPWUID_R" >&5
25263 $as_echo "$as_me: WARNING: $FUNC_NO_GETPWUID_R" >&2;}
25265 if test "$ac_cv_func_localtime_r" != "yes"; then
25266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FUNC_NO_LOCALTIME_R" >&5
25267 $as_echo "$as_me: WARNING: $FUNC_NO_LOCALTIME_R" >&2;}
25271 # Hack to deal with:
25273 # a) GCC < 3.3 for Linux doesn't include -lpthread when
25274 # building shared libraries with linux.
25275 # b) FreeBSD doesn't do this either.
25278 *-*-freebsd*|*-*-linux*)
25279 G_THREAD_LIBS_FOR_GTHREAD="`echo $G_THREAD_LIBS | sed s/-pthread/-lpthread/`"
25282 LDFLAGS="$LDFLAGS -pthread"
25285 G_THREAD_LIBS_FOR_GTHREAD="$G_THREAD_LIBS"
25294 for ac_func in clock_gettime
25296 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
25297 if test "x$ac_cv_func_clock_gettime" = xyes; then :
25298 cat >>confdefs.h <<_ACEOF
25299 #define HAVE_CLOCK_GETTIME 1
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25305 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25306 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
25307 $as_echo_n "(cached) " >&6
25309 ac_check_lib_save_LIBS=$LIBS
25311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25312 /* end confdefs.h. */
25314 /* Override any GCC internal prototype to avoid an error.
25315 Use char because int might match the return type of a GCC
25316 builtin and then its argument prototype would still apply. */
25320 char clock_gettime ();
25324 return clock_gettime ();
25329 if ac_fn_c_try_link "$LINENO"; then :
25330 ac_cv_lib_rt_clock_gettime=yes
25332 ac_cv_lib_rt_clock_gettime=no
25334 rm -f core conftest.err conftest.$ac_objext \
25335 conftest$ac_exeext conftest.$ac_ext
25336 LIBS=$ac_check_lib_save_LIBS
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25339 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25340 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
25342 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
25344 G_THREAD_LIBS="$G_THREAD_LIBS -lrt"
25345 G_THREAD_LIBS_FOR_GTHREAD="$G_THREAD_LIBS_FOR_GTHREAD -lrt"
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lock-free atomic intrinsics" >&5
25359 $as_echo_n "checking for lock-free atomic intrinsics... " >&6; }
25360 if ${glib_cv_g_atomic_lock_free+:} false; then :
25361 $as_echo_n "(cached) " >&6
25364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25365 /* end confdefs.h. */
25370 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4;
25375 if ac_fn_c_try_compile "$LINENO"; then :
25376 glib_cv_g_atomic_lock_free=yes
25378 glib_cv_g_atomic_lock_free=no
25380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_g_atomic_lock_free" >&5
25383 $as_echo "$glib_cv_g_atomic_lock_free" >&6; }
25385 if test "$glib_cv_g_atomic_lock_free" = "no"; then
25386 SAVE_CFLAGS="${CFLAGS}"
25387 CFLAGS="-march=i486"
25388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25389 /* end confdefs.h. */
25394 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4;
25399 if ac_fn_c_try_compile "$LINENO"; then :
25400 as_fn_error $? "GLib must be build with -march=i486 or later." "$LINENO" 5
25402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25403 CFLAGS="${SAVE_CFLAGS}"
25407 i?86|x86_64|s390|s390x|arm*|crisv32*|etrax*)
25408 glib_memory_barrier_needed=no
25410 sparc*|alpha*|powerpc*|ia64)
25411 glib_memory_barrier_needed=yes
25414 glib_memory_barrier_needed=yes
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for futex(2) system call" >&5
25419 $as_echo_n "checking for futex(2) system call... " >&6; }
25420 if ${glib_cv_futex+:} false; then :
25421 $as_echo_n "(cached) " >&6
25423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25424 /* end confdefs.h. */
25426 #include <linux/futex.h>
25427 #include <sys/syscall.h>
25428 #include <unistd.h>
25437 /* it is not like this actually runs or anything... */
25438 syscall (__NR_futex, NULL, FUTEX_WAKE, FUTEX_WAIT);
25446 if ac_fn_c_try_compile "$LINENO"; then :
25451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_futex" >&5
25454 $as_echo "$glib_cv_futex" >&6; }
25455 if test x"$glib_cv_futex" = xyes; then
25457 $as_echo "#define HAVE_FUTEX 1" >>confdefs.h
25461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd(2) system call" >&5
25462 $as_echo_n "checking for eventfd(2) system call... " >&6; }
25463 if ${glib_cv_eventfd+:} false; then :
25464 $as_echo_n "(cached) " >&6
25466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25467 /* end confdefs.h. */
25469 #include <sys/eventfd.h>
25470 #include <unistd.h>
25479 eventfd (0, EFD_CLOEXEC);
25487 if ac_fn_c_try_compile "$LINENO"; then :
25488 glib_cv_eventfd=yes
25492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_eventfd" >&5
25495 $as_echo "$glib_cv_eventfd" >&6; }
25496 if test x"$glib_cv_eventfd" = x"yes"; then
25498 $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
25501 if test "$glib_cv_eventfd" = "yes"; then
25503 HAVE_EVENTFD_FALSE='#'
25505 HAVE_EVENTFD_TRUE='#'
25506 HAVE_EVENTFD_FALSE=
25511 glib_poll_includes="
25512 #include <sys/types.h>
25513 #include <sys/poll.h>
25516 if test $ac_cv_header_sys_types_h = yes &&
25517 test $ac_cv_header_sys_poll_h = yes ; then
25519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLIN" >&5
25520 $as_echo_n "checking value of POLLIN... " >&6; }
25521 if ${glib_cv_value_POLLIN+:} false; then :
25522 $as_echo_n "(cached) " >&6
25524 if ac_fn_c_compute_int "$LINENO" "POLLIN" "glib_cv_value_POLLIN" "$glib_poll_includes"; then :
25532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLIN" >&5
25533 $as_echo "$glib_cv_value_POLLIN" >&6; }
25535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLOUT" >&5
25536 $as_echo_n "checking value of POLLOUT... " >&6; }
25537 if ${glib_cv_value_POLLOUT+:} false; then :
25538 $as_echo_n "(cached) " >&6
25540 if ac_fn_c_compute_int "$LINENO" "POLLOUT" "glib_cv_value_POLLOUT" "$glib_poll_includes"; then :
25548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLOUT" >&5
25549 $as_echo "$glib_cv_value_POLLOUT" >&6; }
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLPRI" >&5
25552 $as_echo_n "checking value of POLLPRI... " >&6; }
25553 if ${glib_cv_value_POLLPRI+:} false; then :
25554 $as_echo_n "(cached) " >&6
25556 if ac_fn_c_compute_int "$LINENO" "POLLPRI" "glib_cv_value_POLLPRI" "$glib_poll_includes"; then :
25564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLPRI" >&5
25565 $as_echo "$glib_cv_value_POLLPRI" >&6; }
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLERR" >&5
25568 $as_echo_n "checking value of POLLERR... " >&6; }
25569 if ${glib_cv_value_POLLERR+:} false; then :
25570 $as_echo_n "(cached) " >&6
25572 if ac_fn_c_compute_int "$LINENO" "POLLERR" "glib_cv_value_POLLERR" "$glib_poll_includes"; then :
25580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLERR" >&5
25581 $as_echo "$glib_cv_value_POLLERR" >&6; }
25583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLHUP" >&5
25584 $as_echo_n "checking value of POLLHUP... " >&6; }
25585 if ${glib_cv_value_POLLHUP+:} false; then :
25586 $as_echo_n "(cached) " >&6
25588 if ac_fn_c_compute_int "$LINENO" "POLLHUP" "glib_cv_value_POLLHUP" "$glib_poll_includes"; then :
25596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLHUP" >&5
25597 $as_echo "$glib_cv_value_POLLHUP" >&6; }
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLNVAL" >&5
25600 $as_echo_n "checking value of POLLNVAL... " >&6; }
25601 if ${glib_cv_value_POLLNVAL+:} false; then :
25602 $as_echo_n "(cached) " >&6
25604 if ac_fn_c_compute_int "$LINENO" "POLLNVAL" "glib_cv_value_POLLNVAL" "$glib_poll_includes"; then :
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLNVAL" >&5
25613 $as_echo "$glib_cv_value_POLLNVAL" >&6; }
25615 if $glib_failed ; then
25616 as_fn_error $? "Could not determine values for POLL* constants" "$LINENO" 5
25619 glib_cv_value_POLLIN=1
25620 glib_cv_value_POLLOUT=4
25621 glib_cv_value_POLLPRI=2
25622 glib_cv_value_POLLERR=8
25623 glib_cv_value_POLLHUP=16
25624 glib_cv_value_POLLNVAL=32
25627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll" >&5
25628 $as_echo_n "checking for broken poll... " >&6; }
25629 if test "$cross_compiling" = yes; then :
25630 broken_poll="no (cross compiling)"
25632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25633 /* end confdefs.h. */
25635 #include <stdlib.h>
25638 #ifdef HAVE_SYS_POLL_H
25639 #include <sys/poll.h>
25642 struct pollfd fds[1];
25644 fd = open("/dev/null", 1);
25646 fds[0].events = POLLIN;
25647 fds[0].revents = 0;
25648 if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) {
25649 exit(1); /* Does not work for devices -- fail */
25654 if ac_fn_c_try_run "$LINENO"; then :
25659 $as_echo "#define BROKEN_POLL 1" >>confdefs.h
25662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25663 conftest.$ac_objext conftest.beam conftest.$ac_ext
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $broken_poll" >&5
25667 $as_echo "$broken_poll" >&6; }
25672 G_LIBS_EXTRA="-luser32 -lkernel32"
25675 G_LIBS_EXTRA="-lws2_32 -lole32 -lwinmm -lshlwapi"
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EILSEQ" >&5
25685 $as_echo_n "checking for EILSEQ... " >&6; }
25686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25687 /* end confdefs.h. */
25695 int error = EILSEQ;
25701 if ac_fn_c_try_compile "$LINENO"; then :
25706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
25707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_eilseq" >&5
25708 $as_echo "$have_eilseq" >&6; }
25711 # Check whether --enable-gcov was given.
25712 if test "${enable_gcov+set}" = set; then :
25713 enableval=$enable_gcov; use_gcov=$enableval
25719 if test "x$use_gcov" = "xyes"; then
25720 if test "$GCC" != "yes"; then
25721 as_fn_error $? "GCC is required for --enable-gcov" "$LINENO" 5
25724 # Extract the first word of "shtool", so it can be a program name with args.
25725 set dummy shtool; ac_word=$2
25726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25727 $as_echo_n "checking for $ac_word... " >&6; }
25728 if ${ac_cv_prog_SHTOOL+:} false; then :
25729 $as_echo_n "(cached) " >&6
25731 if test -n "$SHTOOL"; then
25732 ac_cv_prog_SHTOOL="$SHTOOL" # Let the user override the test.
25734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25735 for as_dir in $PATH
25738 test -z "$as_dir" && as_dir=.
25739 for ac_exec_ext in '' $ac_executable_extensions; do
25740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25741 ac_cv_prog_SHTOOL="shtool"
25742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25751 SHTOOL=$ac_cv_prog_SHTOOL
25752 if test -n "$SHTOOL"; then
25753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
25754 $as_echo "$SHTOOL" >&6; }
25756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25757 $as_echo "no" >&6; }
25761 case `$SHTOOL path $CC` in
25762 *ccache*) gcc_ccache=yes;;
25766 if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then
25767 as_fn_error $? "ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." "$LINENO" 5
25770 ltp_version_list="1.6 1.7 1.8 1.9"
25771 # Extract the first word of "lcov", so it can be a program name with args.
25772 set dummy lcov; ac_word=$2
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25774 $as_echo_n "checking for $ac_word... " >&6; }
25775 if ${ac_cv_prog_LTP+:} false; then :
25776 $as_echo_n "(cached) " >&6
25778 if test -n "$LTP"; then
25779 ac_cv_prog_LTP="$LTP" # Let the user override the test.
25781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25782 for as_dir in $PATH
25785 test -z "$as_dir" && as_dir=.
25786 for ac_exec_ext in '' $ac_executable_extensions; do
25787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25788 ac_cv_prog_LTP="lcov"
25789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25798 LTP=$ac_cv_prog_LTP
25799 if test -n "$LTP"; then
25800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP" >&5
25801 $as_echo "$LTP" >&6; }
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25804 $as_echo "no" >&6; }
25808 # Extract the first word of "genhtml", so it can be a program name with args.
25809 set dummy genhtml; ac_word=$2
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25811 $as_echo_n "checking for $ac_word... " >&6; }
25812 if ${ac_cv_prog_LTP_GENHTML+:} false; then :
25813 $as_echo_n "(cached) " >&6
25815 if test -n "$LTP_GENHTML"; then
25816 ac_cv_prog_LTP_GENHTML="$LTP_GENHTML" # Let the user override the test.
25818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25819 for as_dir in $PATH
25822 test -z "$as_dir" && as_dir=.
25823 for ac_exec_ext in '' $ac_executable_extensions; do
25824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25825 ac_cv_prog_LTP_GENHTML="genhtml"
25826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25835 LTP_GENHTML=$ac_cv_prog_LTP_GENHTML
25836 if test -n "$LTP_GENHTML"; then
25837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP_GENHTML" >&5
25838 $as_echo "$LTP_GENHTML" >&6; }
25840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25841 $as_echo "no" >&6; }
25846 if test "$LTP"; then
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ltp version" >&5
25848 $as_echo_n "checking for ltp version... " >&6; }
25849 if ${glib_cv_ltp_version+:} false; then :
25850 $as_echo_n "(cached) " >&6
25853 glib_cv_ltp_version=invalid
25854 ltp_version=`$LTP -v 2>/dev/null | $SED -e 's/^.* //'`
25855 for ltp_check_version in $ltp_version_list; do
25856 if test "$ltp_version" = "$ltp_check_version"; then
25857 glib_cv_ltp_version="$ltp_check_version (ok)"
25862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_ltp_version" >&5
25863 $as_echo "$glib_cv_ltp_version" >&6; }
25865 ltp_msg="To enable code coverage reporting you must have one of the following LTP versions installed: $ltp_version_list"
25866 as_fn_error $? "$ltp_msg" "$LINENO" 5
25869 case $glib_cv_ltp_version in
25871 ltp_msg="You must have one of the following versions of LTP: $ltp_version_list (found: $ltp_version)."
25872 as_fn_error $? "$ltp_msg" "$LINENO" 5
25877 if test -z "$LTP_GENHTML"; then
25878 as_fn_error $? "Could not find genhtml from the LTP package" "$LINENO" 5
25882 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
25885 CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
25886 LDFLAGS="$LDFLAGS -lgcov"
25890 ac_config_commands="$ac_config_commands glib/glibconfig.h"
25893 # Redo enough to get guint32 and guint64 for the alignment checks below
25895 $ac_cv_sizeof_short)
25901 $ac_cv_sizeof_long)
25909 $ac_cv_sizeof_long)
25912 $ac_cv_sizeof_long_long)
25915 $ac_cv_sizeof___int64)
25920 ac_fn_c_check_type "$LINENO" "guint32" "ac_cv_type_guint32" "typedef unsigned $gint32 guint32;
25922 if test "x$ac_cv_type_guint32" = xyes; then :
25926 # The cast to long int works around a bug in the HP C Compiler,
25927 # see AC_CHECK_SIZEOF for more information.
25928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of guint32" >&5
25929 $as_echo_n "checking alignment of guint32... " >&6; }
25930 if ${ac_cv_alignof_guint32+:} false; then :
25931 $as_echo_n "(cached) " >&6
25933 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_guint32" "$ac_includes_default
25934 typedef unsigned $gint32 guint32;
25937 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25939 typedef struct { char x; guint32 y; } ac__type_alignof_;"; then :
25942 if test "$ac_cv_type_guint32" = yes; then
25943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25945 as_fn_error 77 "cannot compute alignment of guint32
25946 See \`config.log' for more details" "$LINENO" 5; }
25948 ac_cv_alignof_guint32=0
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_guint32" >&5
25954 $as_echo "$ac_cv_alignof_guint32" >&6; }
25958 cat >>confdefs.h <<_ACEOF
25959 #define ALIGNOF_GUINT32 $ac_cv_alignof_guint32
25963 ac_fn_c_check_type "$LINENO" "guint64" "ac_cv_type_guint64" "typedef unsigned $gint64 guint64;
25965 if test "x$ac_cv_type_guint64" = xyes; then :
25969 # The cast to long int works around a bug in the HP C Compiler,
25970 # see AC_CHECK_SIZEOF for more information.
25971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of guint64" >&5
25972 $as_echo_n "checking alignment of guint64... " >&6; }
25973 if ${ac_cv_alignof_guint64+:} false; then :
25974 $as_echo_n "(cached) " >&6
25976 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_guint64" "$ac_includes_default
25977 typedef unsigned $gint64 guint64;
25980 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25982 typedef struct { char x; guint64 y; } ac__type_alignof_;"; then :
25985 if test "$ac_cv_type_guint64" = yes; then
25986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25988 as_fn_error 77 "cannot compute alignment of guint64
25989 See \`config.log' for more details" "$LINENO" 5; }
25991 ac_cv_alignof_guint64=0
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_guint64" >&5
25997 $as_echo "$ac_cv_alignof_guint64" >&6; }
26001 cat >>confdefs.h <<_ACEOF
26002 #define ALIGNOF_GUINT64 $ac_cv_alignof_guint64
26006 ac_fn_c_check_type "$LINENO" "unsigned long" "ac_cv_type_unsigned_long" "$ac_includes_default"
26007 if test "x$ac_cv_type_unsigned_long" = xyes; then :
26011 # The cast to long int works around a bug in the HP C Compiler,
26012 # see AC_CHECK_SIZEOF for more information.
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of unsigned long" >&5
26014 $as_echo_n "checking alignment of unsigned long... " >&6; }
26015 if ${ac_cv_alignof_unsigned_long+:} false; then :
26016 $as_echo_n "(cached) " >&6
26018 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_unsigned_long" "$ac_includes_default
26020 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26022 typedef struct { char x; unsigned long y; } ac__type_alignof_;"; then :
26025 if test "$ac_cv_type_unsigned_long" = yes; then
26026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26028 as_fn_error 77 "cannot compute alignment of unsigned long
26029 See \`config.log' for more details" "$LINENO" 5; }
26031 ac_cv_alignof_unsigned_long=0
26036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_unsigned_long" >&5
26037 $as_echo "$ac_cv_alignof_unsigned_long" >&6; }
26041 cat >>confdefs.h <<_ACEOF
26042 #define ALIGNOF_UNSIGNED_LONG $ac_cv_alignof_unsigned_long
26047 # Check for libdbus1 - Optional - is only used in the GDBus test cases
26049 # 1.2.14 required for dbus_message_set_serial
26051 if test "x$have_dbus1" = "xyes"; then
26053 HAVE_DBUS1_FALSE='#'
26055 HAVE_DBUS1_TRUE='#'
26061 # Check whether --enable-Bsymbolic was given.
26062 if test "${enable_Bsymbolic+set}" = set; then :
26063 enableval=$enable_Bsymbolic;
26065 SAVED_LDFLAGS="${LDFLAGS}"
26066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker flag" >&5
26067 $as_echo_n "checking for -Bsymbolic-functions linker flag... " >&6; }
26068 LDFLAGS=-Wl,-Bsymbolic-functions
26069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26070 /* end confdefs.h. */
26075 int main (void) { return 0; }
26080 if ac_fn_c_try_link "$LINENO"; then :
26081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26082 $as_echo "yes" >&6; }
26083 enable_Bsymbolic=yes
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26086 $as_echo "no" >&6; }
26087 enable_Bsymbolic=no
26089 rm -f core conftest.err conftest.$ac_objext \
26090 conftest$ac_exeext conftest.$ac_ext
26091 LDFLAGS="${SAVED_LDFLAGS}"
26095 if test "x${enable_Bsymbolic}" = "xyes"; then
26096 GLIB_LINK_FLAGS=-Wl,-Bsymbolic-functions
26102 # Define variables corresponding to the correct include paths to use for
26103 # in-tree building.
26107 config_h_INCLUDES='-I$(top_builddir)'
26112 # $(top_builddir)/glib: for glibconfig.h
26113 # $(top_srcdir)/glib: for glib.h
26114 # $(top_srcdir): for everything
26115 glib_INCLUDES='$(config_h_INCLUDES) -I$(top_builddir)/glib -I$(top_srcdir)/glib -I$(top_srcdir)'
26120 gthread_INCLUDES='$(glib_INCLUDES)'
26125 gobject_INCLUDES='$(gthread_INCLUDES)'
26130 # $(top_srcdir)/gmodule: for gmodule.h
26131 gmodule_INCLUDES='$(glib_INCLUDES) -I$(top_srcdir)/gmodule'
26136 gio_INCLUDES='$(gmodule_INCLUDES)'
26140 ac_config_files="$ac_config_files Makefile glib/Makefile glib/libcharset/Makefile glib/gnulib/Makefile m4macros/Makefile"
26143 # we want to invoke this macro solely so that the config.status script
26144 # and automake generated makefiles know about these generated files.
26145 # They are only needed to distcheck the package
26147 ac_config_files="$ac_config_files README glib/glib.rc"
26151 cat >confcache <<\_ACEOF
26152 # This file is a shell script that caches the results of configure
26153 # tests run on this system so they can be shared between configure
26154 # scripts and configure runs, see configure's option --config-cache.
26155 # It is not useful on other systems. If it contains results you don't
26156 # want to keep, you may remove or edit it.
26158 # config.status only pays attention to the cache file if you give it
26159 # the --recheck option to rerun configure.
26161 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26162 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26163 # following values.
26167 # The following way of writing the cache mishandles newlines in values,
26168 # but we know of no workaround that is simple, portable, and efficient.
26169 # So, we kill variables containing newlines.
26170 # Ultrix sh set writes to stderr and can't be redirected directly,
26171 # and sets the high bit in the cache file unless we assign to the vars.
26173 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26174 eval ac_val=\$$ac_var
26178 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26179 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26182 _ | IFS | as_nl) ;; #(
26183 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26184 *) { eval $ac_var=; unset $ac_var;} ;;
26190 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26191 *${as_nl}ac_space=\ *)
26192 # `set' does not quote correctly, so add quotes: double-quote
26193 # substitution turns \\\\ into \\, and sed turns \\ into \.
26196 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26199 # `set' quotes correctly as required by POSIX, so do not add quotes.
26200 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26209 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26211 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26213 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26214 if test -w "$cache_file"; then
26215 if test "x$cache_file" != "x/dev/null"; then
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26217 $as_echo "$as_me: updating cache $cache_file" >&6;}
26218 if test ! -f "$cache_file" || test -h "$cache_file"; then
26219 cat confcache >"$cache_file"
26221 case $cache_file in #(
26223 mv -f confcache "$cache_file"$$ &&
26224 mv -f "$cache_file"$$ "$cache_file" ;; #(
26226 mv -f confcache "$cache_file" ;;
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26232 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26237 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26238 # Let make expand exec_prefix.
26239 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26241 DEFS=-DHAVE_CONFIG_H
26246 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26247 # 1. Remove the extension, and $U if already installed.
26248 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26249 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26250 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26251 # will be set to the directory where LIBOBJS objects are built.
26252 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26253 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26255 LIBOBJS=$ac_libobjs
26257 LTLIBOBJS=$ac_ltlibobjs
26260 if test -n "$EXEEXT"; then
26262 am__EXEEXT_FALSE='#'
26264 am__EXEEXT_TRUE='#'
26268 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26269 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
26270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26272 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26273 as_fn_error $? "conditional \"AMDEP\" was never defined.
26274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26276 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26277 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26280 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
26281 as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
26282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26284 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
26285 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
26286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26288 if test -z "${OS_WIN32_X64_TRUE}" && test -z "${OS_WIN32_X64_FALSE}"; then
26289 as_fn_error $? "conditional \"OS_WIN32_X64\" was never defined.
26290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26292 if test -z "${OS_UNIX_TRUE}" && test -z "${OS_UNIX_FALSE}"; then
26293 as_fn_error $? "conditional \"OS_UNIX\" was never defined.
26294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26296 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
26297 as_fn_error $? "conditional \"OS_LINUX\" was never defined.
26298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26300 if test -z "${OS_CARBON_TRUE}" && test -z "${OS_CARBON_FALSE}"; then
26301 as_fn_error $? "conditional \"OS_CARBON\" was never defined.
26302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26304 if test -z "${OS_COCOA_TRUE}" && test -z "${OS_COCOA_FALSE}"; then
26305 as_fn_error $? "conditional \"OS_COCOA\" was never defined.
26306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26308 if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
26309 as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined.
26310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26312 if test -z "${HAVE_GLIB_RUNTIME_LIBDIR_TRUE}" && test -z "${HAVE_GLIB_RUNTIME_LIBDIR_FALSE}"; then
26313 as_fn_error $? "conditional \"HAVE_GLIB_RUNTIME_LIBDIR\" was never defined.
26314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26316 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26317 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
26318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26320 if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
26321 as_fn_error $? "conditional \"HAVE_CXX\" was never defined.
26322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26324 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26325 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26328 if test -z "${OS_WIN32_AND_DLL_COMPILATION_TRUE}" && test -z "${OS_WIN32_AND_DLL_COMPILATION_FALSE}"; then
26329 as_fn_error $? "conditional \"OS_WIN32_AND_DLL_COMPILATION\" was never defined.
26330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26332 if test -z "${HAVE_GNUC_VISIBILITY_TRUE}" && test -z "${HAVE_GNUC_VISIBILITY_FALSE}"; then
26333 as_fn_error $? "conditional \"HAVE_GNUC_VISIBILITY\" was never defined.
26334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26336 if test -z "${HAVE_SUNSTUDIO_VISIBILITY_TRUE}" && test -z "${HAVE_SUNSTUDIO_VISIBILITY_FALSE}"; then
26337 as_fn_error $? "conditional \"HAVE_SUNSTUDIO_VISIBILITY\" was never defined.
26338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26341 if test -z "${HAVE_NETLINK_TRUE}" && test -z "${HAVE_NETLINK_FALSE}"; then
26342 as_fn_error $? "conditional \"HAVE_NETLINK\" was never defined.
26343 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26345 if test -z "${HAVE_GOOD_PRINTF_TRUE}" && test -z "${HAVE_GOOD_PRINTF_FALSE}"; then
26346 as_fn_error $? "conditional \"HAVE_GOOD_PRINTF\" was never defined.
26347 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26349 if test -z "${HAVE_INOTIFY_TRUE}" && test -z "${HAVE_INOTIFY_FALSE}"; then
26350 as_fn_error $? "conditional \"HAVE_INOTIFY\" was never defined.
26351 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26353 if test -z "${HAVE_FEN_TRUE}" && test -z "${HAVE_FEN_FALSE}"; then
26354 as_fn_error $? "conditional \"HAVE_FEN\" was never defined.
26355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26357 if test -z "${ENABLE_TIMELOOP_TRUE}" && test -z "${ENABLE_TIMELOOP_FALSE}"; then
26358 as_fn_error $? "conditional \"ENABLE_TIMELOOP\" was never defined.
26359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26361 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
26362 as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
26363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26365 if test -z "${HAVE_EVENTFD_TRUE}" && test -z "${HAVE_EVENTFD_FALSE}"; then
26366 as_fn_error $? "conditional \"HAVE_EVENTFD\" was never defined.
26367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26369 if test -z "${HAVE_DBUS1_TRUE}" && test -z "${HAVE_DBUS1_FALSE}"; then
26370 as_fn_error $? "conditional \"HAVE_DBUS1\" was never defined.
26371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26374 : "${CONFIG_STATUS=./config.status}"
26376 ac_clean_files_save=$ac_clean_files
26377 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26379 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26381 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26383 # Generated by $as_me.
26384 # Run this file to recreate the current configuration.
26385 # Compiler output produced by configure, useful for debugging
26386 # configure, is in config.log if it exists.
26389 ac_cs_recheck=false
26392 SHELL=\${CONFIG_SHELL-$SHELL}
26395 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26396 ## -------------------- ##
26397 ## M4sh Initialization. ##
26398 ## -------------------- ##
26400 # Be more Bourne compatible
26401 DUALCASE=1; export DUALCASE # for MKS sh
26402 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26405 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26406 # is contrary to our usage. Disable this feature.
26407 alias -g '${1+"$@"}'='"$@"'
26408 setopt NO_GLOB_SUBST
26410 case `(set -o) 2>/dev/null` in #(
26422 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26423 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26424 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26425 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26426 # Prefer a ksh shell builtin over an external printf program on Solaris,
26427 # but without wasting forks for bash or zsh.
26428 if test -z "$BASH_VERSION$ZSH_VERSION" \
26429 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26430 as_echo='print -r --'
26431 as_echo_n='print -rn --'
26432 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26433 as_echo='printf %s\n'
26434 as_echo_n='printf %s'
26436 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26437 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26438 as_echo_n='/usr/ucb/echo -n'
26440 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26441 as_echo_n_body='eval
26445 expr "X$arg" : "X\\(.*\\)$as_nl";
26446 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26448 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26450 export as_echo_n_body
26451 as_echo_n='sh -c $as_echo_n_body as_echo'
26453 export as_echo_body
26454 as_echo='sh -c $as_echo_body as_echo'
26457 # The user is always right.
26458 if test "${PATH_SEPARATOR+set}" != set; then
26460 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26461 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26468 # We need space, tab and new line, in precisely that order. Quoting is
26469 # there to prevent editors from complaining about space-tab.
26470 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26471 # splitting by setting IFS to empty value.)
26474 # Find who we are. Look in the path if we contain no directory separator.
26477 *[\\/]* ) as_myself=$0 ;;
26478 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26479 for as_dir in $PATH
26482 test -z "$as_dir" && as_dir=.
26483 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26489 # We did not find ourselves, most probably we were run as `sh COMMAND'
26490 # in which case we are not to be found in the path.
26491 if test "x$as_myself" = x; then
26494 if test ! -f "$as_myself"; then
26495 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26499 # Unset variables that we do not need and which cause bugs (e.g. in
26500 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26501 # suppresses any "Segmentation fault" message there. '((' could
26502 # trigger a bug in pdksh 5.2.14.
26503 for as_var in BASH_ENV ENV MAIL MAILPATH
26504 do eval test x\${$as_var+set} = xset \
26505 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26518 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26521 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26522 # ----------------------------------------
26523 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26524 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26525 # script with STATUS, using 1 if that was 0.
26528 as_status=$1; test $as_status -eq 0 && as_status=1
26530 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26531 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26533 $as_echo "$as_me: error: $2" >&2
26534 as_fn_exit $as_status
26538 # as_fn_set_status STATUS
26539 # -----------------------
26540 # Set $? to STATUS, without forking.
26541 as_fn_set_status ()
26544 } # as_fn_set_status
26546 # as_fn_exit STATUS
26547 # -----------------
26548 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26552 as_fn_set_status $1
26558 # Portably unset VAR.
26561 { eval $1=; unset $1;}
26563 as_unset=as_fn_unset
26564 # as_fn_append VAR VALUE
26565 # ----------------------
26566 # Append the text in VALUE to the end of the definition contained in VAR. Take
26567 # advantage of any shell optimizations that allow amortized linear growth over
26568 # repeated appends, instead of the typical quadratic growth present in naive
26570 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26571 eval 'as_fn_append ()
26582 # as_fn_arith ARG...
26583 # ------------------
26584 # Perform arithmetic evaluation on the ARGs, and store the result in the
26585 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26586 # must be portable across $(()) and expr.
26587 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26588 eval 'as_fn_arith ()
26595 as_val=`expr "$@" || test $? -eq 1`
26600 if expr a : '\(a\)' >/dev/null 2>&1 &&
26601 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26607 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26608 as_basename=basename
26613 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26619 as_me=`$as_basename -- "$0" ||
26620 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26621 X"$0" : 'X\(//\)$' \| \
26622 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26624 sed '/^.*\/\([^/][^/]*\)\/*$/{
26638 # Avoid depending upon Character Ranges.
26639 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26640 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26641 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26642 as_cr_digits='0123456789'
26643 as_cr_alnum=$as_cr_Letters$as_cr_digits
26645 ECHO_C= ECHO_N= ECHO_T=
26646 case `echo -n x` in #(((((
26648 case `echo 'xy\c'` in
26649 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26651 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26658 rm -f conf$$ conf$$.exe conf$$.file
26659 if test -d conf$$.dir; then
26660 rm -f conf$$.dir/conf$$.file
26663 mkdir conf$$.dir 2>/dev/null
26665 if (echo >conf$$.file) 2>/dev/null; then
26666 if ln -s conf$$.file conf$$ 2>/dev/null; then
26668 # ... but there are two gotchas:
26669 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26670 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26671 # In both cases, we have to default to `cp -p'.
26672 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26674 elif ln conf$$.file conf$$ 2>/dev/null; then
26682 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26683 rmdir conf$$.dir 2>/dev/null
26688 # Create "$as_dir" as a directory, including parents if necessary.
26693 -*) as_dir=./$as_dir;;
26695 test -d "$as_dir" || eval $as_mkdir_p || {
26699 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26700 *) as_qdir=$as_dir;;
26702 as_dirs="'$as_qdir' $as_dirs"
26703 as_dir=`$as_dirname -- "$as_dir" ||
26704 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26705 X"$as_dir" : 'X\(//\)[^/]' \| \
26706 X"$as_dir" : 'X\(//\)$' \| \
26707 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26708 $as_echo X"$as_dir" |
26709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26713 /^X\(\/\/\)[^/].*/{
26726 test -d "$as_dir" && break
26728 test -z "$as_dirs" || eval "mkdir $as_dirs"
26729 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26733 if mkdir -p . 2>/dev/null; then
26734 as_mkdir_p='mkdir -p "$as_dir"'
26736 test -d ./-p && rmdir ./-p
26740 if test -x / >/dev/null 2>&1; then
26741 as_test_x='test -x'
26743 if ls -dL / >/dev/null 2>&1; then
26750 if test -d "$1"; then
26756 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26757 ???[sx]*):;;*)false;;esac;fi
26761 as_executable_p=$as_test_x
26763 # Sed expression to map a string onto a valid CPP name.
26764 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26766 # Sed expression to map a string onto a valid variable name.
26767 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26771 ## ----------------------------------- ##
26772 ## Main body of $CONFIG_STATUS script. ##
26773 ## ----------------------------------- ##
26775 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26778 # Save the log message, to keep $0 and so on meaningful, and to
26779 # report actual input values of CONFIG_FILES etc. instead of their
26780 # values after options handling.
26782 This file was extended by glib $as_me 2.32.4, which was
26783 generated by GNU Autoconf 2.68. Invocation command line was
26785 CONFIG_FILES = $CONFIG_FILES
26786 CONFIG_HEADERS = $CONFIG_HEADERS
26787 CONFIG_LINKS = $CONFIG_LINKS
26788 CONFIG_COMMANDS = $CONFIG_COMMANDS
26791 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26796 case $ac_config_files in *"
26797 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26800 case $ac_config_headers in *"
26801 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26806 # Files that config.status was made for.
26807 config_files="$ac_config_files"
26808 config_headers="$ac_config_headers"
26809 config_commands="$ac_config_commands"
26813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26815 \`$as_me' instantiates files and other configuration actions
26816 from templates according to the current configuration. Unless the files
26817 and actions are specified as TAGs, all are instantiated by default.
26819 Usage: $0 [OPTION]... [TAG]...
26821 -h, --help print this help, then exit
26822 -V, --version print version number and configuration settings, then exit
26823 --config print configuration, then exit
26824 -q, --quiet, --silent
26825 do not print progress messages
26826 -d, --debug don't remove temporary files
26827 --recheck update $as_me by reconfiguring in the same conditions
26828 --file=FILE[:TEMPLATE]
26829 instantiate the configuration file FILE
26830 --header=FILE[:TEMPLATE]
26831 instantiate the configuration header FILE
26833 Configuration files:
26836 Configuration headers:
26839 Configuration commands:
26842 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib>."
26845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26846 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26848 glib config.status 2.32.4
26849 configured by $0, generated by GNU Autoconf 2.68,
26850 with options \\"\$ac_cs_config\\"
26852 Copyright (C) 2010 Free Software Foundation, Inc.
26853 This config.status script is free software; the Free Software Foundation
26854 gives unlimited permission to copy, distribute and modify it."
26861 test -n "\$AWK" || AWK=awk
26864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26865 # The default lists apply if the user does not specify any file.
26871 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26872 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26876 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26888 # Handling of the options.
26889 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26891 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26892 $as_echo "$ac_cs_version"; exit ;;
26893 --config | --confi | --conf | --con | --co | --c )
26894 $as_echo "$ac_cs_config"; exit ;;
26895 --debug | --debu | --deb | --de | --d | -d )
26897 --file | --fil | --fi | --f )
26900 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26901 '') as_fn_error $? "missing file argument" ;;
26903 as_fn_append CONFIG_FILES " '$ac_optarg'"
26904 ac_need_defaults=false;;
26905 --header | --heade | --head | --hea )
26908 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26910 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26911 ac_need_defaults=false;;
26913 # Conflict between --help and --header
26914 as_fn_error $? "ambiguous option: \`$1'
26915 Try \`$0 --help' for more information.";;
26916 --help | --hel | -h )
26917 $as_echo "$ac_cs_usage"; exit ;;
26918 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26919 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26922 # This is an error.
26923 -*) as_fn_error $? "unrecognized option: \`$1'
26924 Try \`$0 --help' for more information." ;;
26926 *) as_fn_append ac_config_targets " $1"
26927 ac_need_defaults=false ;;
26933 ac_configure_extra_args=
26935 if $ac_cs_silent; then
26937 ac_configure_extra_args="$ac_configure_extra_args --silent"
26941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26942 if \$ac_cs_recheck; then
26943 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26945 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26946 CONFIG_SHELL='$SHELL'
26947 export CONFIG_SHELL
26952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26956 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26957 ## Running $as_me. ##
26963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26967 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26970 # The HP-UX ksh and POSIX shell print the target directory to stdout
26971 # if CDPATH is set.
26972 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26974 sed_quote_subst='$sed_quote_subst'
26975 double_quote_subst='$double_quote_subst'
26976 delay_variable_subst='$delay_variable_subst'
26977 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26978 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26979 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26980 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
26981 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26982 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26983 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26984 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26985 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26986 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26987 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26988 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26989 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26990 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26991 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26992 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26993 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26994 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26995 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26996 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26997 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26998 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26999 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27000 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27001 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27002 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27003 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27004 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27005 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27006 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27007 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27008 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27009 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27010 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27011 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27012 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27013 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27014 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27015 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27016 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27017 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27018 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27019 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27020 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27021 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27022 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27023 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27024 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27025 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27026 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27027 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27028 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27029 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27030 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27031 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27032 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27033 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"`'
27034 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27035 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27036 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27037 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27038 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27039 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27040 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27041 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27042 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27043 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27044 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27045 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27046 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27047 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27048 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27049 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27050 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27051 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27052 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27053 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27054 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27055 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27056 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27057 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27058 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27059 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27060 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27061 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27062 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27063 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27064 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27065 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27066 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27067 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27068 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27069 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27070 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27071 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27072 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27073 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27074 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27075 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27076 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27077 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27078 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27079 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27080 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27081 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27082 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27083 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27084 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27085 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27086 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27087 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27088 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27089 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27090 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27091 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27092 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27093 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27094 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27095 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27096 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27097 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27098 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27099 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27100 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27101 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27102 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27103 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27104 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27105 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27106 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27107 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27108 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27109 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27110 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27111 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27112 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27113 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27114 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
27115 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
27116 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27117 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27118 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
27119 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
27120 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
27121 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
27122 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
27123 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
27124 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
27125 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
27126 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
27127 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27128 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27129 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
27130 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27131 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27132 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27133 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27134 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27135 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27136 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
27137 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27138 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27139 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27140 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
27141 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
27142 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
27143 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
27144 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
27145 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
27146 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
27147 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
27148 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
27149 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
27150 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27151 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27152 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27153 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27154 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27155 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
27156 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
27157 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
27158 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27159 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27160 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
27161 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
27162 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
27165 LTCFLAGS='$LTCFLAGS'
27166 compiler='$compiler_DEFAULT'
27168 # A function that is used when there is no print builtin or printf.
27169 func_fallback_echo ()
27171 eval 'cat <<_LTECHO_EOF
27176 # Quote evaled strings.
27192 deplibs_check_method \
27196 sharedlib_from_linklib_cmd \
27199 archiver_list_spec \
27205 lt_cv_sys_global_symbol_pipe \
27206 lt_cv_sys_global_symbol_to_cdecl \
27207 lt_cv_sys_global_symbol_to_c_name_address \
27208 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27209 nm_file_list_spec \
27210 lt_prog_compiler_no_builtin_flag \
27211 lt_prog_compiler_pic \
27212 lt_prog_compiler_wl \
27213 lt_prog_compiler_static \
27214 lt_cv_prog_compiler_c_o \
27223 export_dynamic_flag_spec \
27224 whole_archive_flag_spec \
27225 compiler_needs_object \
27227 allow_undefined_flag \
27228 no_undefined_flag \
27229 hardcode_libdir_flag_spec \
27230 hardcode_libdir_flag_spec_ld \
27231 hardcode_libdir_separator \
27235 variables_saved_for_relink \
27237 library_names_spec \
27239 install_override_mode \
27243 compiler_lib_search_dirs \
27248 compiler_lib_search_path \
27252 lt_prog_compiler_no_builtin_flag_CXX \
27253 lt_prog_compiler_pic_CXX \
27254 lt_prog_compiler_wl_CXX \
27255 lt_prog_compiler_static_CXX \
27256 lt_cv_prog_compiler_c_o_CXX \
27257 export_dynamic_flag_spec_CXX \
27258 whole_archive_flag_spec_CXX \
27259 compiler_needs_object_CXX \
27261 allow_undefined_flag_CXX \
27262 no_undefined_flag_CXX \
27263 hardcode_libdir_flag_spec_CXX \
27264 hardcode_libdir_flag_spec_ld_CXX \
27265 hardcode_libdir_separator_CXX \
27266 exclude_expsyms_CXX \
27267 include_expsyms_CXX \
27268 file_list_spec_CXX \
27269 compiler_lib_search_dirs_CXX \
27270 predep_objects_CXX \
27271 postdep_objects_CXX \
27274 compiler_lib_search_path_CXX; do
27275 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27276 *[\\\\\\\`\\"\\\$]*)
27277 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27280 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27285 # Double-quote double-evaled strings.
27286 for var in reload_cmds \
27287 old_postinstall_cmds \
27288 old_postuninstall_cmds \
27290 extract_expsyms_cmds \
27291 old_archive_from_new_cmds \
27292 old_archive_from_expsyms_cmds \
27294 archive_expsym_cmds \
27296 module_expsym_cmds \
27297 export_symbols_cmds \
27301 postuninstall_cmds \
27303 sys_lib_search_path_spec \
27304 sys_lib_dlsearch_path_spec \
27306 old_archive_cmds_CXX \
27307 old_archive_from_new_cmds_CXX \
27308 old_archive_from_expsyms_cmds_CXX \
27310 archive_expsym_cmds_CXX \
27312 module_expsym_cmds_CXX \
27313 export_symbols_cmds_CXX \
27315 postlink_cmds_CXX; do
27316 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27317 *[\\\\\\\`\\"\\\$]*)
27318 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27321 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27326 ac_aux_dir='$ac_aux_dir'
27327 xsi_shell='$xsi_shell'
27328 lt_shell_append='$lt_shell_append'
27330 # See if we are running on zsh, and set the options which allow our
27331 # commands through without removal of \ escapes INIT.
27332 if test -n "\${ZSH_VERSION+set}" ; then
27333 setopt NO_GLOB_SUBST
27339 TIMESTAMP='$TIMESTAMP'
27345 ac_aux_dir='$ac_aux_dir'
27350 # Note that if two cases are the same, case goes with the first one.
27351 # Note also that this is inside an AC_OUTPUT_COMMAND. We do not depend
27352 # on variable expansion in case labels. Look at the generated config.status
27355 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
27356 glib_header_alloca_h="$ac_cv_working_alloca_h"
27358 glib_header_alloca_h="$ac_cv_header_alloca_h"
27362 x$ac_cv_header_float_h)
27364 glib_mf=FLT_MIN glib_Mf=FLT_MAX
27365 glib_md=DBL_MIN glib_Md=DBL_MAX
27367 x$ac_cv_header_values_h)
27369 glib_mf=MINFLOAT glib_Mf=MAXFLOAT
27370 glib_md=MINDOUBLE glib_Md=MAXDOUBLE
27375 x$ac_cv_header_limits_h)
27377 glib_ms=SHRT_MIN glib_Ms=SHRT_MAX glib_Mus=USHRT_MAX
27378 glib_mi=INT_MIN glib_Mi=INT_MAX glib_Mui=UINT_MAX
27379 glib_ml=LONG_MIN glib_Ml=LONG_MAX glib_Mul=ULONG_MAX
27381 x$ac_cv_header_values_h)
27383 glib_ms=MINSHORT glib_Ms=MAXSHORT glib_Mus="(((gushort)G_MAXSHORT)*2+1)"
27384 glib_mi=MININT glib_Mi=MAXINT glib_Mui="(((guint)G_MAXINT)*2+1)"
27385 glib_ml=MINLONG glib_Ml=MAXLONG glib_Mul="(((gulong)G_MAXLONG)*2+1)"
27389 if test x$ac_cv_header_sys_poll_h = xyes ; then
27390 glib_sys_poll_h=yes
27393 if test x$enable_included_printf = xyes ; then
27394 glib_included_printf=yes
27398 $ac_cv_sizeof_short)
27400 gint16_modifier='"h"'
27401 gint16_format='"hi"'
27402 guint16_format='"hu"'
27406 gint16_modifier='""'
27407 gint16_format='"i"'
27408 guint16_format='"u"'
27412 $ac_cv_sizeof_short)
27414 gint32_modifier='"h"'
27415 gint32_format='"hi"'
27416 guint32_format='"hu"'
27420 gint32_modifier='""'
27421 gint32_format='"i"'
27422 guint32_format='"u"'
27424 $ac_cv_sizeof_long)
27426 gint32_modifier='"l"'
27427 gint32_format='"li"'
27428 guint32_format='"lu"'
27434 gint64_modifier='""'
27435 gint64_format='"i"'
27436 guint64_format='"u"'
27438 gint64_constant='(val)'
27439 guint64_constant='(val)'
27441 $ac_cv_sizeof_long)
27443 gint64_modifier='"l"'
27444 gint64_format='"li"'
27445 guint64_format='"lu"'
27447 gint64_constant='(val##L)'
27448 guint64_constant='(val##UL)'
27450 $ac_cv_sizeof_long_long)
27452 if test -n "$glib_cv_long_long_format"; then
27453 gint64_modifier='"'$glib_cv_long_long_format'"'
27454 gint64_format='"'$glib_cv_long_long_format'i"'
27455 guint64_format='"'$glib_cv_long_long_format'u"'
27457 glib_extension='G_GNUC_EXTENSION '
27458 gint64_constant='(G_GNUC_EXTENSION (val##LL))'
27459 guint64_constant='(G_GNUC_EXTENSION (val##ULL))'
27461 $ac_cv_sizeof___int64)
27463 if test -n "$glib_cv_long_long_format"; then
27464 gint64_modifier='"'$glib_cv_long_long_format'"'
27465 gint64_format='"'$glib_cv_long_long_format'i"'
27466 guint64_format='"'$glib_cv_long_long_format'u"'
27469 gint64_constant='(val##i64)'
27470 guint64_constant='(val##ui64)'
27473 glib_size_t=$ac_cv_sizeof_size_t
27474 glib_size_type_define="$glib_size_type"
27475 glib_void_p=$ac_cv_sizeof_void_p
27476 glib_long=$ac_cv_sizeof_long
27478 case "$glib_size_type" in
27480 gsize_modifier='"h"'
27481 gsize_format='"hu"'
27482 gssize_format='"hi"'
27483 glib_msize_type='SHRT'
27486 gsize_modifier='""'
27488 gssize_format='"i"'
27489 glib_msize_type='INT'
27492 gsize_modifier='"l"'
27493 gsize_format='"lu"'
27494 gssize_format='"li"'
27495 glib_msize_type='LONG'
27497 "long long"|__int64)
27498 gsize_modifier='"I64"'
27499 gsize_format='"I64u"'
27500 gssize_format='"I64i"'
27501 glib_msize_type='INT64'
27505 gintbits=`expr $ac_cv_sizeof_int \* 8`
27506 glongbits=`expr $ac_cv_sizeof_long \* 8`
27507 gsizebits=`expr $ac_cv_sizeof_size_t \* 8`
27509 case $ac_cv_sizeof_void_p in
27511 glib_intptr_type_define=int
27512 gintptr_modifier='""'
27513 gintptr_format='"i"'
27514 guintptr_format='"u"'
27515 glib_gpi_cast='(gint)'
27516 glib_gpui_cast='(guint)'
27518 $ac_cv_sizeof_long)
27519 glib_intptr_type_define=long
27520 gintptr_modifier='"l"'
27521 gintptr_format='"li"'
27522 guintptr_format='"lu"'
27523 glib_gpi_cast='(glong)'
27524 glib_gpui_cast='(gulong)'
27526 $ac_cv_sizeof_long_long)
27527 glib_intptr_type_define='long long'
27528 gintptr_modifier='"I64"'
27529 gintptr_format='"I64i"'
27530 guintptr_format='"I64u"'
27531 glib_gpi_cast='(gint64)'
27532 glib_gpui_cast='(guint64)'
27534 $ac_cv_sizeof___int64)
27535 glib_intptr_type_define=__int64
27536 gintptr_modifier='"I64"'
27537 gintptr_format='"I64i"'
27538 guintptr_format='"I64u"'
27539 glib_gpi_cast='(gint64)'
27540 glib_gpui_cast='(guint64)'
27543 glib_unknown_void_p=yes
27549 x$ac_cv_func_atexit)
27551 #ifdef NeXT /* @#%@! NeXTStep */
27552 # define g_ATEXIT(proc) (!atexit (proc))
27554 # define g_ATEXIT(proc) (atexit (proc))
27557 x$ac_cv_func_on_exit)
27559 #define g_ATEXIT(proc) (on_exit ((void (*)(int, void*))(proc), NULL))"
27564 x$ac_cv_func_memmove)
27566 #define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END'
27568 x$glib_cv_working_bcopy)
27570 /* memmove isn't available, but bcopy can copy overlapping memory regions */
27571 #define g_memmove(d,s,n) G_STMT_START { bcopy ((s), (d), (n)); } G_STMT_END"
27575 /* memmove isn't found and bcopy can't copy overlapping memory regions,
27576 * so we have to roll our own copy routine. */
27577 void g_memmove (void* dest, const void * src, unsigned long len);"
27582 #define GLIB_MAJOR_VERSION $GLIB_MAJOR_VERSION
27583 #define GLIB_MINOR_VERSION $GLIB_MINOR_VERSION
27584 #define GLIB_MICRO_VERSION $GLIB_MICRO_VERSION
27588 x$glib_cv_va_copy) glib_vacopy='#define G_VA_COPY va_copy' ;;
27589 x$glib_cv___va_copy) glib_vacopy='#define G_VA_COPY __va_copy' ;;
27593 if test x$glib_cv_va_val_copy = xno; then
27594 glib_vacopy="\$glib_vacopy
27595 #define G_VA_COPY_AS_ARRAY 1"
27598 if test x$glib_cv_hasinline = xyes; then
27599 glib_inline='#define G_HAVE_INLINE 1'
27601 if test x$glib_cv_has__inline = xyes; then
27602 glib_inline="\$glib_inline
27603 #define G_HAVE___INLINE 1"
27605 if test x$glib_cv_has__inline__ = xyes; then
27606 glib_inline="\$glib_inline
27607 #define G_HAVE___INLINE__ 1"
27610 g_have_gnuc_varargs=$g_have_gnuc_varargs
27611 g_have_iso_c_varargs=$g_have_iso_c_varargs
27612 g_have_iso_cxx_varargs=$g_have_iso_cxx_varargs
27614 g_can_inline=$g_can_inline
27615 g_have_gnuc_visibility=$g_have_gnuc_visibility
27616 g_have_sunstudio_visibility=$g_have_sunstudio_visibility
27618 if test x$ac_cv_c_bigendian = xyes; then
27619 g_byte_order=G_BIG_ENDIAN
27623 g_byte_order=G_LITTLE_ENDIAN
27628 g_pollin=$glib_cv_value_POLLIN
27629 g_pollout=$glib_cv_value_POLLOUT
27630 g_pollpri=$glib_cv_value_POLLPRI
27631 g_pollhup=$glib_cv_value_POLLHUP
27632 g_pollerr=$glib_cv_value_POLLERR
27633 g_pollnval=$glib_cv_value_POLLNVAL
27635 # If a family is not found on the system, define that family to
27636 # a negative value, picking a different one for each undefined
27637 # family (-1 for AF_UNIX, -2 for the next one, -3 ...)
27638 # This is needed because glib-mkenums doesn't handle optional
27639 # values in enums, and thus we have to have all existing values
27640 # defined in the enum.
27641 if test "x$glib_cv_value_AF_UNIX" != "x"; then
27642 g_af_unix=$glib_cv_value_AF_UNIX
27646 g_af_inet=$glib_cv_value_AF_INET
27647 g_af_inet6=$glib_cv_value_AF_INET6
27649 g_msg_peek=$glib_cv_value_MSG_PEEK
27650 g_msg_oob=$glib_cv_value_MSG_OOB
27651 g_msg_dontroute=$glib_cv_value_MSG_DONTROUTE
27653 g_stack_grows=$glib_cv_stack_grows
27655 g_have_eilseq=$have_eilseq
27657 g_threads_impl_def=$g_threads_impl
27659 g_atomic_lock_free="$glib_cv_g_atomic_lock_free"
27660 g_memory_barrier_needed="$glib_memory_barrier_needed"
27661 g_gcc_atomic_ops="$glib_cv_gcc_has_builtin_atomic_operations"
27663 g_module_suffix="$glib_gmodule_suffix"
27665 g_pid_type="$glib_pid_type"
27668 glib_os="#define G_OS_BEOS"
27671 glib_os="#define G_OS_UNIX
27672 #define G_PLATFORM_WIN32
27673 #define G_WITH_CYGWIN"
27676 glib_os="#define G_OS_WIN32
27677 #define G_PLATFORM_WIN32"
27680 glib_os="#define G_OS_UNIX"
27683 glib_static_compilation=""
27684 if test x$glib_win32_static_compilation = xyes; then
27685 glib_static_compilation="#define GLIB_STATIC_COMPILATION 1
27686 #define GOBJECT_STATIC_COMPILATION 1"
27692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27694 # Handling of arguments.
27695 for ac_config_target in $ac_config_targets
27697 case $ac_config_target in
27698 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27699 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27700 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27701 "glib/glibconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS glib/glibconfig.h" ;;
27702 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27703 "glib/Makefile") CONFIG_FILES="$CONFIG_FILES glib/Makefile" ;;
27704 "glib/libcharset/Makefile") CONFIG_FILES="$CONFIG_FILES glib/libcharset/Makefile" ;;
27705 "glib/gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES glib/gnulib/Makefile" ;;
27706 "m4macros/Makefile") CONFIG_FILES="$CONFIG_FILES m4macros/Makefile" ;;
27707 "README") CONFIG_FILES="$CONFIG_FILES README" ;;
27708 "glib/glib.rc") CONFIG_FILES="$CONFIG_FILES glib/glib.rc" ;;
27710 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27715 # If the user did not use the arguments to specify the items to instantiate,
27716 # then the envvar interface is used. Set only those that are not.
27717 # We use the long form for the default assignment because of an extremely
27718 # bizarre bug on SunOS 4.1.3.
27719 if $ac_need_defaults; then
27720 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27721 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27722 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27725 # Have a temporary directory for convenience. Make it in the build tree
27726 # simply because there is no reason against having it here, and in addition,
27727 # creating and moving files from /tmp can sometimes cause problems.
27728 # Hook for its removal unless debugging.
27729 # Note that there is a small window in which the directory will not be cleaned:
27730 # after its creation but before its name has been assigned to `$tmp'.
27734 trap 'exit_status=$?
27735 : "${ac_tmp:=$tmp}"
27736 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27738 trap 'as_fn_exit 1' 1 2 13 15
27740 # Create a (secure) tmp directory for tmp files.
27743 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27747 tmp=./conf$$-$RANDOM
27748 (umask 077 && mkdir "$tmp")
27749 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27752 # Set up the scripts for CONFIG_FILES section.
27753 # No need to generate them if there are no CONFIG_FILES.
27754 # This happens for instance with `./config.status config.h'.
27755 if test -n "$CONFIG_FILES"; then
27758 ac_cr=`echo X | tr X '\015'`
27759 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27760 # But we know of no other shell where ac_cr would be empty at this
27761 # point, so we can use a bashism as a fallback.
27762 if test "x$ac_cr" = x; then
27763 eval ac_cr=\$\'\\r\'
27765 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27766 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27769 ac_cs_awk_cr=$ac_cr
27772 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27777 echo "cat >conf$$subs.awk <<_ACEOF" &&
27778 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27780 } >conf$$subs.sh ||
27781 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27782 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27784 for ac_last_try in false false false false false :; do
27785 . ./conf$$subs.sh ||
27786 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27788 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27789 if test $ac_delim_n = $ac_delim_num; then
27791 elif $ac_last_try; then
27792 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27794 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27797 rm -f conf$$subs.sh
27799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27800 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27804 s/^/S["/; s/!.*/"]=/
27814 s/\(.\{148\}\)..*/\1/
27816 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27821 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27828 s/\(.\{148\}\)..*/\1/
27830 s/["\\]/\\&/g; s/^/"/; s/$/"/
27834 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27839 ' <conf$$subs.awk | sed '
27844 ' >>$CONFIG_STATUS || ac_write_fail=1
27845 rm -f conf$$subs.awk
27846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27848 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27849 for (key in S) S_is_set[key] = 1
27855 nfields = split(line, field, "@")
27857 len = length(field[1])
27858 for (i = 2; i < nfields; i++) {
27860 keylen = length(key)
27861 if (S_is_set[key]) {
27863 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27864 len += length(value) + length(field[++i])
27875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27876 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27877 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27880 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27881 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27884 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27885 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27886 # trailing colons and then remove the whole line if VPATH becomes empty
27887 # (actually we leave an empty line to preserve line numbers).
27888 if test "x$srcdir" = x.; then
27889 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
27907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27908 fi # test -n "$CONFIG_FILES"
27910 # Set up the scripts for CONFIG_HEADERS section.
27911 # No need to generate them if there are no CONFIG_HEADERS.
27912 # This happens for instance with `./config.status Makefile'.
27913 if test -n "$CONFIG_HEADERS"; then
27914 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27918 # Transform confdefs.h into an awk script `defines.awk', embedded as
27919 # here-document in config.status, that substitutes the proper values into
27920 # config.h.in to produce config.h.
27922 # Create a delimiter string that does not exist in confdefs.h, to ease
27923 # handling of long lines.
27925 for ac_last_try in false false :; do
27926 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27927 if test -z "$ac_tt"; then
27929 elif $ac_last_try; then
27930 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27932 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27936 # For the awk script, D is an array of macro values keyed by name,
27937 # likewise P contains macro parameters if any. Preserve backslash
27938 # newline sequences.
27940 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27942 s/.\{148\}/&'"$ac_delim"'/g
27945 s/^[ ]*#[ ]*define[ ][ ]*/ /
27952 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27954 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27958 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27959 D["\1"]=" \3\\\\\\n"\\/p
27961 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27966 s/.\{148\}/&'"$ac_delim"'/g
27971 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27974 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27976 ' <confdefs.h | sed '
27977 s/'"$ac_delim"'/"\\\
27978 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27981 for (key in D) D_is_set[key] = 1
27984 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27986 split(line, arg, " ")
27987 if (arg[1] == "#") {
27991 defundef = substr(arg[1], 2)
27994 split(mac1, mac2, "(") #)
27996 prefix = substr(line, 1, index(line, defundef) - 1)
27997 if (D_is_set[macro]) {
27998 # Preserve the white space surrounding the "#".
27999 print prefix "define", macro P[macro] D[macro]
28002 # Replace #undef with comments. This is necessary, for example,
28003 # in the case of _POSIX_SOURCE, which is predefined and required
28004 # on some systems where configure will not decide to define it.
28005 if (defundef == "undef") {
28006 print "/*", prefix defundef, macro, "*/"
28014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28015 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28016 fi # test -n "$CONFIG_HEADERS"
28019 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28024 :[FHLC]) ac_mode=$ac_tag; continue;;
28026 case $ac_mode$ac_tag in
28028 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
28029 :[FH]-) ac_tag=-:-;;
28030 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28047 -) ac_f="$ac_tmp/stdin";;
28048 *) # Look for the file first in the build tree, then in the source tree
28049 # (if the path is not absolute). The absolute path cannot be DOS-style,
28050 # because $ac_f cannot contain `:'.
28054 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28056 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28058 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28059 as_fn_append ac_file_inputs " '$ac_f'"
28062 # Let's still pretend it is `configure' which instantiates (i.e., don't
28063 # use $as_me), people would be surprised to read:
28064 # /* config.h. Generated by config.status. */
28065 configure_input='Generated from '`
28066 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28068 if test x"$ac_file" != x-; then
28069 configure_input="$ac_file. $configure_input"
28070 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28071 $as_echo "$as_me: creating $ac_file" >&6;}
28073 # Neutralize special characters interpreted by sed in replacement strings.
28074 case $configure_input in #(
28075 *\&* | *\|* | *\\* )
28076 ac_sed_conf_input=`$as_echo "$configure_input" |
28077 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28078 *) ac_sed_conf_input=$configure_input;;
28082 *:-:* | *:-) cat >"$ac_tmp/stdin" \
28083 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28088 ac_dir=`$as_dirname -- "$ac_file" ||
28089 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28090 X"$ac_file" : 'X\(//\)[^/]' \| \
28091 X"$ac_file" : 'X\(//\)$' \| \
28092 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28093 $as_echo X"$ac_file" |
28094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28098 /^X\(\/\/\)[^/].*/{
28111 as_dir="$ac_dir"; as_fn_mkdir_p
28115 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28117 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28118 # A ".." for each directory in $ac_dir_suffix.
28119 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28120 case $ac_top_builddir_sub in
28121 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28122 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28125 ac_abs_top_builddir=$ac_pwd
28126 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28127 # for backward compatibility:
28128 ac_top_builddir=$ac_top_build_prefix
28131 .) # We are building in place.
28133 ac_top_srcdir=$ac_top_builddir_sub
28134 ac_abs_top_srcdir=$ac_pwd ;;
28135 [\\/]* | ?:[\\/]* ) # Absolute name.
28136 ac_srcdir=$srcdir$ac_dir_suffix;
28137 ac_top_srcdir=$srcdir
28138 ac_abs_top_srcdir=$srcdir ;;
28139 *) # Relative name.
28140 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28141 ac_top_srcdir=$ac_top_build_prefix$srcdir
28142 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28144 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28154 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28155 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28157 ac_MKDIR_P=$MKDIR_P
28159 [\\/$]* | ?:[\\/]* ) ;;
28160 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28165 # If the template does not know about datarootdir, expand it.
28166 # FIXME: This hack should be removed a few years after 2.60.
28167 ac_datarootdir_hack=; ac_datarootdir_seen=
28178 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28179 *datarootdir*) ac_datarootdir_seen=yes;;
28180 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28182 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28185 ac_datarootdir_hack='
28186 s&@datadir@&$datadir&g
28187 s&@docdir@&$docdir&g
28188 s&@infodir@&$infodir&g
28189 s&@localedir@&$localedir&g
28190 s&@mandir@&$mandir&g
28191 s&\\\${datarootdir}&$datarootdir&g' ;;
28195 # Neutralize VPATH when `$srcdir' = `.'.
28196 # Shell code in configure.ac might set extrasub.
28197 # FIXME: do we really want to maintain this feature?
28198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28199 ac_sed_extra="$ac_vpsub
28202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28204 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28205 s|@configure_input@|$ac_sed_conf_input|;t t
28206 s&@top_builddir@&$ac_top_builddir_sub&;t t
28207 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28208 s&@srcdir@&$ac_srcdir&;t t
28209 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28210 s&@top_srcdir@&$ac_top_srcdir&;t t
28211 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28212 s&@builddir@&$ac_builddir&;t t
28213 s&@abs_builddir@&$ac_abs_builddir&;t t
28214 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28215 s&@INSTALL@&$ac_INSTALL&;t t
28216 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28217 $ac_datarootdir_hack
28219 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28220 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28222 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28223 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28224 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28225 "$ac_tmp/out"`; test -z "$ac_out"; } &&
28226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28227 which seems to be undefined. Please make sure it is defined" >&5
28228 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28229 which seems to be undefined. Please make sure it is defined" >&2;}
28231 rm -f "$ac_tmp/stdin"
28233 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28234 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28236 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28242 if test x"$ac_file" != x-; then
28244 $as_echo "/* $configure_input */" \
28245 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28246 } >"$ac_tmp/config.h" \
28247 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28248 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28249 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28250 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28253 mv "$ac_tmp/config.h" "$ac_file" \
28254 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28257 $as_echo "/* $configure_input */" \
28258 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28259 || as_fn_error $? "could not create -" "$LINENO" 5
28261 # Compute "$ac_file"'s index in $config_headers.
28264 for _am_header in $config_headers :; do
28265 case $_am_header in
28266 $_am_arg | $_am_arg:* )
28269 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28272 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28273 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28274 X"$_am_arg" : 'X\(//\)[^/]' \| \
28275 X"$_am_arg" : 'X\(//\)$' \| \
28276 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28277 $as_echo X"$_am_arg" |
28278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28282 /^X\(\/\/\)[^/].*/{
28294 s/.*/./; q'`/stamp-h$_am_stamp_count
28297 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28298 $as_echo "$as_me: executing $ac_file commands" >&6;}
28303 case $ac_file$ac_mode in
28304 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28305 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28306 # are listed without --file. Let's play safe and only enable the eval
28307 # if we detect the quoting.
28308 case $CONFIG_FILES in
28309 *\'*) eval set x "$CONFIG_FILES" ;;
28310 *) set x $CONFIG_FILES ;;
28315 # Strip MF so we end up with the name of the file.
28316 mf=`echo "$mf" | sed -e 's/:.*$//'`
28317 # Check whether this is an Automake generated Makefile or not.
28318 # We used to match only the files named `Makefile.in', but
28319 # some people rename them; so instead we look at the file content.
28320 # Grep'ing the first line is not enough: some people post-process
28321 # each Makefile.in and add a new line on top of each file to say so.
28322 # Grep'ing the whole file is not good either: AIX grep has a line
28323 # limit of 2048, but all sed's we know have understand at least 4000.
28324 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28325 dirpart=`$as_dirname -- "$mf" ||
28326 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28327 X"$mf" : 'X\(//\)[^/]' \| \
28328 X"$mf" : 'X\(//\)$' \| \
28329 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28335 /^X\(\/\/\)[^/].*/{
28351 # Extract the definition of DEPDIR, am__include, and am__quote
28352 # from the Makefile without running `make'.
28353 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28354 test -z "$DEPDIR" && continue
28355 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28356 test -z "am__include" && continue
28357 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28358 # When using ansi2knr, U may be empty or an underscore; expand it
28359 U=`sed -n 's/^U = //p' < "$mf"`
28360 # Find all dependency output files, they are included files with
28361 # $(DEPDIR) in their names. We invoke sed twice because it is the
28362 # simplest approach to changing $(DEPDIR) to its actual value in the
28364 for file in `sed -n "
28365 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28366 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28367 # Make sure the directory exists.
28368 test -f "$dirpart/$file" && continue
28369 fdir=`$as_dirname -- "$file" ||
28370 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28371 X"$file" : 'X\(//\)[^/]' \| \
28372 X"$file" : 'X\(//\)$' \| \
28373 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28374 $as_echo X"$file" |
28375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28379 /^X\(\/\/\)[^/].*/{
28392 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28393 # echo "creating $dirpart/$file"
28394 echo '# dummy' > "$dirpart/$file"
28401 # See if we are running on zsh, and set the options which allow our
28402 # commands through without removal of \ escapes.
28403 if test -n "${ZSH_VERSION+set}" ; then
28404 setopt NO_GLOB_SUBST
28407 cfgfile="${ofile}T"
28408 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28411 cat <<_LT_EOF >> "$cfgfile"
28414 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28415 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28416 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28417 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28419 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28420 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
28422 # Written by Gordon Matzigkeit, 1996
28424 # This file is part of GNU Libtool.
28426 # GNU Libtool is free software; you can redistribute it and/or
28427 # modify it under the terms of the GNU General Public License as
28428 # published by the Free Software Foundation; either version 2 of
28429 # the License, or (at your option) any later version.
28431 # As a special exception to the GNU General Public License,
28432 # if you distribute this file as part of a program or library that
28433 # is built using GNU Libtool, you may include this file under the
28434 # same distribution terms that you use for the rest of that program.
28436 # GNU Libtool is distributed in the hope that it will be useful,
28437 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28438 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28439 # GNU General Public License for more details.
28441 # You should have received a copy of the GNU General Public License
28442 # along with GNU Libtool; see the file COPYING. If not, a copy
28443 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28444 # obtained by writing to the Free Software Foundation, Inc.,
28445 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28448 # The names of the tagged configurations supported by this script.
28449 available_tags="CXX "
28451 # ### BEGIN LIBTOOL CONFIG
28453 # Which release of libtool.m4 was used?
28454 macro_version=$macro_version
28455 macro_revision=$macro_revision
28457 # Whether or not to build static libraries.
28458 build_old_libs=$enable_static
28460 # Assembler program.
28463 # DLL creation program.
28464 DLLTOOL=$lt_DLLTOOL
28466 # Object dumper program.
28467 OBJDUMP=$lt_OBJDUMP
28469 # Whether or not to build shared libraries.
28470 build_libtool_libs=$enable_shared
28472 # What type of objects to build.
28475 # Whether or not to optimize for fast installation.
28476 fast_install=$enable_fast_install
28478 # Shell to use when invoking shell scripts.
28481 # An echo program that protects backslashes.
28485 host_alias=$host_alias
28489 # The build system.
28490 build_alias=$build_alias
28494 # A sed program that does not truncate output.
28497 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28498 Xsed="\$SED -e 1s/^X//"
28500 # A grep program that handles long lines.
28506 # A literal string matcher.
28509 # A BSD- or MS-compatible name lister.
28512 # Whether we need soft or hard links.
28515 # What is the maximum length of a command?
28516 max_cmd_len=$max_cmd_len
28518 # Object file suffix (normally "o").
28521 # Executable file suffix (normally "").
28524 # whether the shell understands "unset".
28527 # turn spaces into newlines.
28530 # turn newlines into spaces.
28533 # convert \$build file names to \$host format.
28534 to_host_file_cmd=$lt_cv_to_host_file_cmd
28536 # convert \$build files to toolchain format.
28537 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28539 # Method to check whether dependent libraries are shared objects.
28540 deplibs_check_method=$lt_deplibs_check_method
28542 # Command to use when deplibs_check_method = "file_magic".
28543 file_magic_cmd=$lt_file_magic_cmd
28545 # How to find potential files when deplibs_check_method = "file_magic".
28546 file_magic_glob=$lt_file_magic_glob
28548 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28549 want_nocaseglob=$lt_want_nocaseglob
28551 # Command to associate shared and link libraries.
28552 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28557 # Flags to create an archive.
28558 AR_FLAGS=$lt_AR_FLAGS
28560 # How to feed a file listing to the archiver.
28561 archiver_list_spec=$lt_archiver_list_spec
28563 # A symbol stripping program.
28566 # Commands used to install an old-style archive.
28568 old_postinstall_cmds=$lt_old_postinstall_cmds
28569 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28571 # Whether to use a lock for old archive extraction.
28572 lock_old_archive_extraction=$lock_old_archive_extraction
28577 # LTCC compiler flags.
28578 LTCFLAGS=$lt_CFLAGS
28580 # Take the output of nm and produce a listing of raw symbols and C names.
28581 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28583 # Transform the output of nm in a proper C declaration.
28584 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28586 # Transform the output of nm in a C name address pair.
28587 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28589 # Transform the output of nm in a C name address pair when lib prefix is needed.
28590 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28592 # Specify filename containing input files for \$NM.
28593 nm_file_list_spec=$lt_nm_file_list_spec
28595 # The root where to search for dependent libraries,and in which our libraries should be installed.
28596 lt_sysroot=$lt_sysroot
28598 # The name of the directory that contains temporary libtool files.
28601 # Used to examine libraries when file_magic_cmd begins with "file".
28602 MAGIC_CMD=$MAGIC_CMD
28604 # Must we lock files when doing compilation?
28605 need_locks=$lt_need_locks
28608 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28610 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28611 DSYMUTIL=$lt_DSYMUTIL
28613 # Tool to change global to local symbols on Mac OS X.
28616 # Tool to manipulate fat objects and archives on Mac OS X.
28619 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28622 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28623 OTOOL64=$lt_OTOOL64
28625 # Old archive suffix (normally "a").
28628 # Shared library suffix (normally ".so").
28629 shrext_cmds=$lt_shrext_cmds
28631 # The commands to extract the exported symbol list from a shared archive.
28632 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28634 # Variables whose values should be saved in libtool wrapper scripts and
28635 # restored at link time.
28636 variables_saved_for_relink=$lt_variables_saved_for_relink
28638 # Do we need the "lib" prefix for modules?
28639 need_lib_prefix=$need_lib_prefix
28641 # Do we need a version for libraries?
28642 need_version=$need_version
28644 # Library versioning type.
28645 version_type=$version_type
28647 # Shared library runtime path variable.
28648 runpath_var=$runpath_var
28650 # Shared library path variable.
28651 shlibpath_var=$shlibpath_var
28653 # Is shlibpath searched before the hard-coded library search path?
28654 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28656 # Format of library name prefix.
28657 libname_spec=$lt_libname_spec
28659 # List of archive names. First name is the real one, the rest are links.
28660 # The last name is the one that the linker finds with -lNAME
28661 library_names_spec=$lt_library_names_spec
28663 # The coded name of the library, if different from the real name.
28664 soname_spec=$lt_soname_spec
28666 # Permission mode override for installation of shared libraries.
28667 install_override_mode=$lt_install_override_mode
28669 # Command to use after installation of a shared archive.
28670 postinstall_cmds=$lt_postinstall_cmds
28672 # Command to use after uninstallation of a shared archive.
28673 postuninstall_cmds=$lt_postuninstall_cmds
28675 # Commands used to finish a libtool library installation in a directory.
28676 finish_cmds=$lt_finish_cmds
28678 # As "finish_cmds", except a single script fragment to be evaled but
28680 finish_eval=$lt_finish_eval
28682 # Whether we should hardcode library paths into libraries.
28683 hardcode_into_libs=$hardcode_into_libs
28685 # Compile-time system search path for libraries.
28686 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28688 # Run-time system search path for libraries.
28689 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28691 # Whether dlopen is supported.
28692 dlopen_support=$enable_dlopen
28694 # Whether dlopen of programs is supported.
28695 dlopen_self=$enable_dlopen_self
28697 # Whether dlopen of statically linked programs is supported.
28698 dlopen_self_static=$enable_dlopen_self_static
28700 # Commands to strip libraries.
28701 old_striplib=$lt_old_striplib
28702 striplib=$lt_striplib
28705 # The linker used to build libraries.
28708 # How to create reloadable object files.
28709 reload_flag=$lt_reload_flag
28710 reload_cmds=$lt_reload_cmds
28712 # Commands used to build an old-style archive.
28713 old_archive_cmds=$lt_old_archive_cmds
28715 # A language specific compiler.
28718 # Is the compiler the GNU compiler?
28721 # Compiler flag to turn off builtin functions.
28722 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28724 # Additional compiler flags for building library objects.
28725 pic_flag=$lt_lt_prog_compiler_pic
28727 # How to pass a linker flag through the compiler.
28728 wl=$lt_lt_prog_compiler_wl
28730 # Compiler flag to prevent dynamic linking.
28731 link_static_flag=$lt_lt_prog_compiler_static
28733 # Does compiler simultaneously support -c and -o options?
28734 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28736 # Whether or not to add -lc for building shared libraries.
28737 build_libtool_need_lc=$archive_cmds_need_lc
28739 # Whether or not to disallow shared libs when runtime libs are static.
28740 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28742 # Compiler flag to allow reflexive dlopens.
28743 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28745 # Compiler flag to generate shared objects directly from archives.
28746 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28748 # Whether the compiler copes with passing no objects directly.
28749 compiler_needs_object=$lt_compiler_needs_object
28751 # Create an old-style archive from a shared archive.
28752 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28754 # Create a temporary old-style archive to link instead of a shared archive.
28755 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28757 # Commands used to build a shared archive.
28758 archive_cmds=$lt_archive_cmds
28759 archive_expsym_cmds=$lt_archive_expsym_cmds
28761 # Commands used to build a loadable module if different from building
28762 # a shared archive.
28763 module_cmds=$lt_module_cmds
28764 module_expsym_cmds=$lt_module_expsym_cmds
28766 # Whether we are building with GNU ld or not.
28767 with_gnu_ld=$lt_with_gnu_ld
28769 # Flag that allows shared libraries with undefined symbols to be built.
28770 allow_undefined_flag=$lt_allow_undefined_flag
28772 # Flag that enforces no undefined symbols.
28773 no_undefined_flag=$lt_no_undefined_flag
28775 # Flag to hardcode \$libdir into a binary during linking.
28776 # This must work even if \$libdir does not exist
28777 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28779 # If ld is used when linking, flag to hardcode \$libdir into a binary
28780 # during linking. This must work even if \$libdir does not exist.
28781 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28783 # Whether we need a single "-rpath" flag with a separated argument.
28784 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28786 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28787 # DIR into the resulting binary.
28788 hardcode_direct=$hardcode_direct
28790 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28791 # DIR into the resulting binary and the resulting library dependency is
28792 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28793 # library is relocated.
28794 hardcode_direct_absolute=$hardcode_direct_absolute
28796 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28797 # into the resulting binary.
28798 hardcode_minus_L=$hardcode_minus_L
28800 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28801 # into the resulting binary.
28802 hardcode_shlibpath_var=$hardcode_shlibpath_var
28804 # Set to "yes" if building a shared library automatically hardcodes DIR
28805 # into the library and all subsequent libraries and executables linked
28807 hardcode_automatic=$hardcode_automatic
28809 # Set to yes if linker adds runtime paths of dependent libraries
28810 # to runtime path list.
28811 inherit_rpath=$inherit_rpath
28813 # Whether libtool must link a program against all its dependency libraries.
28814 link_all_deplibs=$link_all_deplibs
28816 # Set to "yes" if exported symbols are required.
28817 always_export_symbols=$always_export_symbols
28819 # The commands to list exported symbols.
28820 export_symbols_cmds=$lt_export_symbols_cmds
28822 # Symbols that should not be listed in the preloaded symbols.
28823 exclude_expsyms=$lt_exclude_expsyms
28825 # Symbols that must always be exported.
28826 include_expsyms=$lt_include_expsyms
28828 # Commands necessary for linking programs (against libraries) with templates.
28829 prelink_cmds=$lt_prelink_cmds
28831 # Commands necessary for finishing linking programs.
28832 postlink_cmds=$lt_postlink_cmds
28834 # Specify filename containing input files.
28835 file_list_spec=$lt_file_list_spec
28837 # How to hardcode a shared library path into an executable.
28838 hardcode_action=$hardcode_action
28840 # The directories searched by this compiler when creating a shared library.
28841 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28843 # Dependencies to place before and after the objects being linked to
28844 # create a shared library.
28845 predep_objects=$lt_predep_objects
28846 postdep_objects=$lt_postdep_objects
28847 predeps=$lt_predeps
28848 postdeps=$lt_postdeps
28850 # The library search path used internally by the compiler when linking
28851 # a shared library.
28852 compiler_lib_search_path=$lt_compiler_lib_search_path
28854 # ### END LIBTOOL CONFIG
28860 cat <<\_LT_EOF >> "$cfgfile"
28861 # AIX sometimes has problems with the GCC collect2 program. For some
28862 # reason, if we set the COLLECT_NAMES environment variable, the problems
28863 # vanish in a puff of smoke.
28864 if test "X${COLLECT_NAMES+set}" != Xset; then
28866 export COLLECT_NAMES
28873 ltmain="$ac_aux_dir/ltmain.sh"
28876 # We use sed instead of cat because bash on DJGPP gets confused if
28877 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28878 # text mode, it properly converts lines to CR/LF. This bash problem
28879 # is reportedly fixed, but why not run on old versions too?
28880 sed '$q' "$ltmain" >> "$cfgfile" \
28881 || (rm -f "$cfgfile"; exit 1)
28883 if test x"$xsi_shell" = xyes; then
28884 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
28888 \ */*) func_dirname_result="${1%/*}${2}" ;;\
28889 \ * ) func_dirname_result="${3}" ;;\
28891 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
28892 && mv -f "$cfgfile.tmp" "$cfgfile" \
28893 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28894 test 0 -eq $? || _lt_function_replace_fail=:
28897 sed -e '/^func_basename ()$/,/^} # func_basename /c\
28900 \ func_basename_result="${1##*/}"\
28901 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
28902 && mv -f "$cfgfile.tmp" "$cfgfile" \
28903 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28904 test 0 -eq $? || _lt_function_replace_fail=:
28907 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
28908 func_dirname_and_basename ()\
28911 \ */*) func_dirname_result="${1%/*}${2}" ;;\
28912 \ * ) func_dirname_result="${3}" ;;\
28914 \ func_basename_result="${1##*/}"\
28915 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
28916 && mv -f "$cfgfile.tmp" "$cfgfile" \
28917 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28918 test 0 -eq $? || _lt_function_replace_fail=:
28921 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
28924 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
28925 \ # positional parameters, so assign one to ordinary parameter first.\
28926 \ func_stripname_result=${3}\
28927 \ func_stripname_result=${func_stripname_result#"${1}"}\
28928 \ func_stripname_result=${func_stripname_result%"${2}"}\
28929 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
28930 && mv -f "$cfgfile.tmp" "$cfgfile" \
28931 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28932 test 0 -eq $? || _lt_function_replace_fail=:
28935 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
28936 func_split_long_opt ()\
28938 \ func_split_long_opt_name=${1%%=*}\
28939 \ func_split_long_opt_arg=${1#*=}\
28940 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
28941 && mv -f "$cfgfile.tmp" "$cfgfile" \
28942 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28943 test 0 -eq $? || _lt_function_replace_fail=:
28946 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
28947 func_split_short_opt ()\
28949 \ func_split_short_opt_arg=${1#??}\
28950 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
28951 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
28952 && mv -f "$cfgfile.tmp" "$cfgfile" \
28953 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28954 test 0 -eq $? || _lt_function_replace_fail=:
28957 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
28961 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
28962 \ *) func_lo2o_result=${1} ;;\
28964 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
28965 && mv -f "$cfgfile.tmp" "$cfgfile" \
28966 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28967 test 0 -eq $? || _lt_function_replace_fail=:
28970 sed -e '/^func_xform ()$/,/^} # func_xform /c\
28973 func_xform_result=${1%.*}.lo\
28974 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
28975 && mv -f "$cfgfile.tmp" "$cfgfile" \
28976 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28977 test 0 -eq $? || _lt_function_replace_fail=:
28980 sed -e '/^func_arith ()$/,/^} # func_arith /c\
28983 func_arith_result=$(( $* ))\
28984 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
28985 && mv -f "$cfgfile.tmp" "$cfgfile" \
28986 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28987 test 0 -eq $? || _lt_function_replace_fail=:
28990 sed -e '/^func_len ()$/,/^} # func_len /c\
28993 func_len_result=${#1}\
28994 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
28995 && mv -f "$cfgfile.tmp" "$cfgfile" \
28996 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28997 test 0 -eq $? || _lt_function_replace_fail=:
29001 if test x"$lt_shell_append" = xyes; then
29002 sed -e '/^func_append ()$/,/^} # func_append /c\
29005 eval "${1}+=\\${2}"\
29006 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
29007 && mv -f "$cfgfile.tmp" "$cfgfile" \
29008 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29009 test 0 -eq $? || _lt_function_replace_fail=:
29012 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
29013 func_append_quoted ()\
29015 \ func_quote_for_eval "${2}"\
29016 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
29017 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
29018 && mv -f "$cfgfile.tmp" "$cfgfile" \
29019 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29020 test 0 -eq $? || _lt_function_replace_fail=:
29023 # Save a `func_append' function call where possible by direct use of '+='
29024 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
29025 && mv -f "$cfgfile.tmp" "$cfgfile" \
29026 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29027 test 0 -eq $? || _lt_function_replace_fail=:
29029 # Save a `func_append' function call even when '+=' is not available
29030 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
29031 && mv -f "$cfgfile.tmp" "$cfgfile" \
29032 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29033 test 0 -eq $? || _lt_function_replace_fail=:
29036 if test x"$_lt_function_replace_fail" = x":"; then
29037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
29038 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
29042 mv -f "$cfgfile" "$ofile" ||
29043 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29047 cat <<_LT_EOF >> "$ofile"
29049 # ### BEGIN LIBTOOL TAG CONFIG: CXX
29051 # The linker used to build libraries.
29054 # How to create reloadable object files.
29055 reload_flag=$lt_reload_flag_CXX
29056 reload_cmds=$lt_reload_cmds_CXX
29058 # Commands used to build an old-style archive.
29059 old_archive_cmds=$lt_old_archive_cmds_CXX
29061 # A language specific compiler.
29062 CC=$lt_compiler_CXX
29064 # Is the compiler the GNU compiler?
29067 # Compiler flag to turn off builtin functions.
29068 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
29070 # Additional compiler flags for building library objects.
29071 pic_flag=$lt_lt_prog_compiler_pic_CXX
29073 # How to pass a linker flag through the compiler.
29074 wl=$lt_lt_prog_compiler_wl_CXX
29076 # Compiler flag to prevent dynamic linking.
29077 link_static_flag=$lt_lt_prog_compiler_static_CXX
29079 # Does compiler simultaneously support -c and -o options?
29080 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
29082 # Whether or not to add -lc for building shared libraries.
29083 build_libtool_need_lc=$archive_cmds_need_lc_CXX
29085 # Whether or not to disallow shared libs when runtime libs are static.
29086 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
29088 # Compiler flag to allow reflexive dlopens.
29089 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
29091 # Compiler flag to generate shared objects directly from archives.
29092 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
29094 # Whether the compiler copes with passing no objects directly.
29095 compiler_needs_object=$lt_compiler_needs_object_CXX
29097 # Create an old-style archive from a shared archive.
29098 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
29100 # Create a temporary old-style archive to link instead of a shared archive.
29101 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
29103 # Commands used to build a shared archive.
29104 archive_cmds=$lt_archive_cmds_CXX
29105 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
29107 # Commands used to build a loadable module if different from building
29108 # a shared archive.
29109 module_cmds=$lt_module_cmds_CXX
29110 module_expsym_cmds=$lt_module_expsym_cmds_CXX
29112 # Whether we are building with GNU ld or not.
29113 with_gnu_ld=$lt_with_gnu_ld_CXX
29115 # Flag that allows shared libraries with undefined symbols to be built.
29116 allow_undefined_flag=$lt_allow_undefined_flag_CXX
29118 # Flag that enforces no undefined symbols.
29119 no_undefined_flag=$lt_no_undefined_flag_CXX
29121 # Flag to hardcode \$libdir into a binary during linking.
29122 # This must work even if \$libdir does not exist
29123 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
29125 # If ld is used when linking, flag to hardcode \$libdir into a binary
29126 # during linking. This must work even if \$libdir does not exist.
29127 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
29129 # Whether we need a single "-rpath" flag with a separated argument.
29130 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
29132 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29133 # DIR into the resulting binary.
29134 hardcode_direct=$hardcode_direct_CXX
29136 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29137 # DIR into the resulting binary and the resulting library dependency is
29138 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29139 # library is relocated.
29140 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
29142 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29143 # into the resulting binary.
29144 hardcode_minus_L=$hardcode_minus_L_CXX
29146 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29147 # into the resulting binary.
29148 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
29150 # Set to "yes" if building a shared library automatically hardcodes DIR
29151 # into the library and all subsequent libraries and executables linked
29153 hardcode_automatic=$hardcode_automatic_CXX
29155 # Set to yes if linker adds runtime paths of dependent libraries
29156 # to runtime path list.
29157 inherit_rpath=$inherit_rpath_CXX
29159 # Whether libtool must link a program against all its dependency libraries.
29160 link_all_deplibs=$link_all_deplibs_CXX
29162 # Set to "yes" if exported symbols are required.
29163 always_export_symbols=$always_export_symbols_CXX
29165 # The commands to list exported symbols.
29166 export_symbols_cmds=$lt_export_symbols_cmds_CXX
29168 # Symbols that should not be listed in the preloaded symbols.
29169 exclude_expsyms=$lt_exclude_expsyms_CXX
29171 # Symbols that must always be exported.
29172 include_expsyms=$lt_include_expsyms_CXX
29174 # Commands necessary for linking programs (against libraries) with templates.
29175 prelink_cmds=$lt_prelink_cmds_CXX
29177 # Commands necessary for finishing linking programs.
29178 postlink_cmds=$lt_postlink_cmds_CXX
29180 # Specify filename containing input files.
29181 file_list_spec=$lt_file_list_spec_CXX
29183 # How to hardcode a shared library path into an executable.
29184 hardcode_action=$hardcode_action_CXX
29186 # The directories searched by this compiler when creating a shared library.
29187 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
29189 # Dependencies to place before and after the objects being linked to
29190 # create a shared library.
29191 predep_objects=$lt_predep_objects_CXX
29192 postdep_objects=$lt_postdep_objects_CXX
29193 predeps=$lt_predeps_CXX
29194 postdeps=$lt_postdeps_CXX
29196 # The library search path used internally by the compiler when linking
29197 # a shared library.
29198 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
29200 # ### END LIBTOOL TAG CONFIG: CXX
29204 "glib/glibconfig.h":C)
29205 outfile=glib/glibconfig.h-tmp
29206 cat > $outfile <<\_______EOF
29209 * This is a generated file. Please modify 'configure.ac'
29212 #ifndef __GLIBCONFIG_H__
29213 #define __GLIBCONFIG_H__
29215 #include <glib/gmacros.h>
29219 if test x$glib_limits_h = xyes; then
29220 echo '#include <limits.h>' >> $outfile
29222 if test x$glib_float_h = xyes; then
29223 echo '#include <float.h>' >> $outfile
29225 if test x$glib_values_h = xyes; then
29226 echo '#include <values.h>' >> $outfile
29228 if test "$glib_header_alloca_h" = "yes"; then
29229 echo '#define GLIB_HAVE_ALLOCA_H' >> $outfile
29231 if test x$glib_sys_poll_h = xyes; then
29232 echo '#define GLIB_HAVE_SYS_POLL_H' >> $outfile
29234 if test x$glib_included_printf != xyes; then
29236 /* Specifies that GLib's g_print*() functions wrap the
29237 * system printf functions. This is useful to know, for example,
29238 * when using glibc's register_printf_function().
29240 echo '#define GLIB_USING_SYSTEM_PRINTF' >> $outfile
29243 cat >> $outfile <<_______EOF
29247 #define G_MINFLOAT $glib_mf
29248 #define G_MAXFLOAT $glib_Mf
29249 #define G_MINDOUBLE $glib_md
29250 #define G_MAXDOUBLE $glib_Md
29251 #define G_MINSHORT $glib_ms
29252 #define G_MAXSHORT $glib_Ms
29253 #define G_MAXUSHORT $glib_Mus
29254 #define G_MININT $glib_mi
29255 #define G_MAXINT $glib_Mi
29256 #define G_MAXUINT $glib_Mui
29257 #define G_MINLONG $glib_ml
29258 #define G_MAXLONG $glib_Ml
29259 #define G_MAXULONG $glib_Mul
29264 ### this should always be true in a modern C/C++ compiler
29265 cat >>$outfile <<_______EOF
29266 typedef signed char gint8;
29267 typedef unsigned char guint8;
29271 if test -n "$gint16"; then
29272 cat >>$outfile <<_______EOF
29273 typedef signed $gint16 gint16;
29274 typedef unsigned $gint16 guint16;
29275 #define G_GINT16_MODIFIER $gint16_modifier
29276 #define G_GINT16_FORMAT $gint16_format
29277 #define G_GUINT16_FORMAT $guint16_format
29282 if test -n "$gint32"; then
29283 cat >>$outfile <<_______EOF
29284 typedef signed $gint32 gint32;
29285 typedef unsigned $gint32 guint32;
29286 #define G_GINT32_MODIFIER $gint32_modifier
29287 #define G_GINT32_FORMAT $gint32_format
29288 #define G_GUINT32_FORMAT $guint32_format
29292 cat >>$outfile <<_______EOF
29293 #define G_HAVE_GINT64 1 /* deprecated, always true */
29295 ${glib_extension}typedef signed $gint64 gint64;
29296 ${glib_extension}typedef unsigned $gint64 guint64;
29298 #define G_GINT64_CONSTANT(val) $gint64_constant
29299 #define G_GUINT64_CONSTANT(val) $guint64_constant
29302 if test x$gint64_format != x ; then
29303 cat >>$outfile <<_______EOF
29304 #define G_GINT64_MODIFIER $gint64_modifier
29305 #define G_GINT64_FORMAT $gint64_format
29306 #define G_GUINT64_FORMAT $guint64_format
29309 cat >>$outfile <<_______EOF
29310 #undef G_GINT64_MODIFIER
29311 #undef G_GINT64_FORMAT
29312 #undef G_GUINT64_FORMAT
29316 cat >>$outfile <<_______EOF
29318 #define GLIB_SIZEOF_VOID_P $glib_void_p
29319 #define GLIB_SIZEOF_LONG $glib_long
29320 #define GLIB_SIZEOF_SIZE_T $glib_size_t
29324 cat >>$outfile <<_______EOF
29325 typedef signed $glib_size_type_define gssize;
29326 typedef unsigned $glib_size_type_define gsize;
29327 #define G_GSIZE_MODIFIER $gsize_modifier
29328 #define G_GSSIZE_FORMAT $gssize_format
29329 #define G_GSIZE_FORMAT $gsize_format
29331 #define G_MAXSIZE G_MAXU$glib_msize_type
29332 #define G_MINSSIZE G_MIN$glib_msize_type
29333 #define G_MAXSSIZE G_MAX$glib_msize_type
29335 typedef gint64 goffset;
29336 #define G_MINOFFSET G_MININT64
29337 #define G_MAXOFFSET G_MAXINT64
29339 #define G_GOFFSET_MODIFIER G_GINT64_MODIFIER
29340 #define G_GOFFSET_FORMAT G_GINT64_FORMAT
29341 #define G_GOFFSET_CONSTANT(val) G_GINT64_CONSTANT(val)
29345 if test -z "$glib_unknown_void_p"; then
29346 cat >>$outfile <<_______EOF
29348 #define GPOINTER_TO_INT(p) ((gint) ${glib_gpi_cast} (p))
29349 #define GPOINTER_TO_UINT(p) ((guint) ${glib_gpui_cast} (p))
29351 #define GINT_TO_POINTER(i) ((gpointer) ${glib_gpi_cast} (i))
29352 #define GUINT_TO_POINTER(u) ((gpointer) ${glib_gpui_cast} (u))
29354 typedef signed $glib_intptr_type_define gintptr;
29355 typedef unsigned $glib_intptr_type_define guintptr;
29357 #define G_GINTPTR_MODIFIER $gintptr_modifier
29358 #define G_GINTPTR_FORMAT $gintptr_format
29359 #define G_GUINTPTR_FORMAT $guintptr_format
29362 echo '#error SIZEOF_VOID_P unknown - This should never happen' >>$outfile
29367 cat >>$outfile <<_______EOF
29372 $glib_static_compilation
29377 #define G_HAVE_INLINE 1
29378 #else /* !__cplusplus */
29380 #endif /* !__cplusplus */
29383 #define G_CAN_INLINE 1
29386 if test x$g_can_inline = xyes ; then
29387 cat >>$outfile <<_______EOF
29388 #else /* !__cplusplus */
29389 #define G_CAN_INLINE 1
29393 cat >>$outfile <<_______EOF
29398 if test x$g_have_iso_c_varargs = xyes ; then
29399 cat >>$outfile <<_______EOF
29400 #ifndef __cplusplus
29401 # define G_HAVE_ISO_VARARGS 1
29405 if test x$g_have_iso_cxx_varargs = xyes ; then
29406 cat >>$outfile <<_______EOF
29408 # define G_HAVE_ISO_VARARGS 1
29412 if test x$g_have_gnuc_varargs = xyes ; then
29413 cat >>$outfile <<_______EOF
29415 /* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
29416 * is passed ISO vararg support is turned off, and there is no work
29417 * around to turn it on, so we unconditionally turn it off.
29419 #if __GNUC__ == 2 && __GNUC_MINOR__ == 95
29420 # undef G_HAVE_ISO_VARARGS
29423 #define G_HAVE_GNUC_VARARGS 1
29427 case x$g_stack_grows in
29428 xyes) echo "#define G_HAVE_GROWING_STACK 1" >>$outfile ;;
29429 *) echo "#define G_HAVE_GROWING_STACK 0" >>$outfile ;;
29434 if test x$g_have_eilseq = xno; then
29435 cat >>$outfile <<_______EOF
29437 /* On some systems, like SunOS and NetBSD, EILSEQ is not defined.
29438 * The correspondence between this and the corresponding definition
29439 * in libiconv is essential.
29441 # define EILSEQ ENOENT
29447 if test x$g_have_gnuc_visibility = xyes; then
29448 cat >>$outfile <<_______EOF
29449 #define G_HAVE_GNUC_VISIBILITY 1
29452 cat >>$outfile <<_______EOF
29453 #if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
29454 #define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
29455 #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
29456 #define G_GNUC_INTERNAL __hidden
29457 #elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY)
29458 #define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
29460 #define G_GNUC_INTERNAL
29465 cat >>$outfile <<_______EOF
29466 #define G_THREADS_ENABLED
29467 #define G_THREADS_IMPL_$g_threads_impl_def
29470 if test x"$g_memory_barrier_needed" != xno; then
29472 echo "#define G_ATOMIC_OP_MEMORY_BARRIER_NEEDED 1" >>$outfile
29474 if test x"$g_atomic_lock_free" = xyes; then
29476 echo "#define G_ATOMIC_LOCK_FREE" >>$outfile
29479 g_bit_sizes="16 32 64"
29480 for bits in $g_bit_sizes; do
29481 cat >>$outfile <<_______EOF
29482 #define GINT${bits}_TO_${g_bs_native}(val) ((gint${bits}) (val))
29483 #define GUINT${bits}_TO_${g_bs_native}(val) ((guint${bits}) (val))
29484 #define GINT${bits}_TO_${g_bs_alien}(val) ((gint${bits}) GUINT${bits}_SWAP_LE_BE (val))
29485 #define GUINT${bits}_TO_${g_bs_alien}(val) (GUINT${bits}_SWAP_LE_BE (val))
29489 cat >>$outfile <<_______EOF
29490 #define GLONG_TO_LE(val) ((glong) GINT${glongbits}_TO_LE (val))
29491 #define GULONG_TO_LE(val) ((gulong) GUINT${glongbits}_TO_LE (val))
29492 #define GLONG_TO_BE(val) ((glong) GINT${glongbits}_TO_BE (val))
29493 #define GULONG_TO_BE(val) ((gulong) GUINT${glongbits}_TO_BE (val))
29494 #define GINT_TO_LE(val) ((gint) GINT${gintbits}_TO_LE (val))
29495 #define GUINT_TO_LE(val) ((guint) GUINT${gintbits}_TO_LE (val))
29496 #define GINT_TO_BE(val) ((gint) GINT${gintbits}_TO_BE (val))
29497 #define GUINT_TO_BE(val) ((guint) GUINT${gintbits}_TO_BE (val))
29498 #define GSIZE_TO_LE(val) ((gsize) GUINT${gsizebits}_TO_LE (val))
29499 #define GSSIZE_TO_LE(val) ((gssize) GINT${gsizebits}_TO_LE (val))
29500 #define GSIZE_TO_BE(val) ((gsize) GUINT${gsizebits}_TO_BE (val))
29501 #define GSSIZE_TO_BE(val) ((gssize) GINT${gsizebits}_TO_BE (val))
29502 #define G_BYTE_ORDER $g_byte_order
29504 #define GLIB_SYSDEF_POLLIN =$g_pollin
29505 #define GLIB_SYSDEF_POLLOUT =$g_pollout
29506 #define GLIB_SYSDEF_POLLPRI =$g_pollpri
29507 #define GLIB_SYSDEF_POLLHUP =$g_pollhup
29508 #define GLIB_SYSDEF_POLLERR =$g_pollerr
29509 #define GLIB_SYSDEF_POLLNVAL =$g_pollnval
29511 #define G_MODULE_SUFFIX "$g_module_suffix"
29513 typedef $g_pid_type GPid;
29515 #define GLIB_SYSDEF_AF_UNIX $g_af_unix
29516 #define GLIB_SYSDEF_AF_INET $g_af_inet
29517 #define GLIB_SYSDEF_AF_INET6 $g_af_inet6
29519 #define GLIB_SYSDEF_MSG_OOB $g_msg_oob
29520 #define GLIB_SYSDEF_MSG_PEEK $g_msg_peek
29521 #define GLIB_SYSDEF_MSG_DONTROUTE $g_msg_dontroute
29525 #endif /* __GLIBCONFIG_H__ */
29529 if cmp -s $outfile glib/glibconfig.h; then
29530 { $as_echo "$as_me:${as_lineno-$LINENO}: glib/glibconfig.h is unchanged" >&5
29531 $as_echo "$as_me: glib/glibconfig.h is unchanged" >&6;}
29534 mv $outfile glib/glibconfig.h
29544 ac_clean_files=$ac_clean_files_save
29546 test $ac_write_fail = 0 ||
29547 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29550 # configure is writing to config.log, and then calls config.status.
29551 # config.status does its own redirection, appending to config.log.
29552 # Unfortunately, on DOS this fails, as config.log is still kept open
29553 # by configure, so config.status won't be able to write to it; its
29554 # output is simply discarded. So we exec the FD to /dev/null,
29555 # effectively closing config.log, so it can be properly (re)opened and
29556 # appended to by config.status. When coming back to configure, we
29557 # need to make the FD available again.
29558 if test "$no_create" != yes; then
29560 ac_config_status_args=
29561 test "$silent" = yes &&
29562 ac_config_status_args="$ac_config_status_args --quiet"
29564 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29566 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29567 # would make configure fail if this is the last instruction.
29568 $ac_cs_success || as_fn_exit 1
29570 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29572 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}