2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXi 1.6.1.
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
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
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || 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: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
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 # Use only awk features that work with 7th edition Unix awk (1978).
552 # My, what an old awk you have, Mr. Solaris!
554 while (length(v1) && length(v2)) {
555 # Set d1 to be the next thing to compare from v1, and likewise for d2.
556 # Normally this is a single character, but if v1 and v2 contain digits,
557 # compare them as integers and fractions as strverscmp does.
558 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
559 # Split v1 and v2 into their leading digit string components d1 and d2,
560 # and advance v1 and v2 past the leading digit strings.
561 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
562 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
563 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
564 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
567 # Compare two fractions.
568 while (d1 ~ /^0/ && d2 ~ /^0/) {
569 d1 = substr(d1, 2); len1--
570 d2 = substr(d2, 2); len2--
572 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
573 # The two components differ in length, and the common prefix
574 # contains only leading zeros. Consider the longer to be less.
578 # Otherwise, compare as strings.
583 # A fraction is less than an integer.
588 # An integer is greater than a fraction.
591 # Compare two integers.
597 # The normal case, without worrying about digits.
598 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
599 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
604 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
605 # which mishandles some comparisons of empty strings to integers.
606 if (length(v2)) exit 1
607 if (length(v1)) exit 2
611 test -n "$DJDIR" || exec 7<&0 </dev/null
615 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
616 # so uname gets run too.
617 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
622 ac_default_prefix=/usr/local
624 ac_config_libobj_dir=.
631 # Identity of this package.
633 PACKAGE_TARNAME='libXi'
634 PACKAGE_VERSION='1.6.1'
635 PACKAGE_STRING='libXi 1.6.1'
636 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
639 ac_unique_file="Makefile.am"
640 # Factoring default headers for most tests.
641 ac_includes_default="\
643 #ifdef HAVE_SYS_TYPES_H
644 # include <sys/types.h>
646 #ifdef HAVE_SYS_STAT_H
647 # include <sys/stat.h>
653 # ifdef HAVE_STDLIB_H
658 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
663 #ifdef HAVE_STRINGS_H
664 # include <strings.h>
666 #ifdef HAVE_INTTYPES_H
667 # include <inttypes.h>
676 ac_subst_vars='am__EXEEXT_FALSE
680 INSTALL_MANPAGES_FALSE
681 INSTALL_MANPAGES_TRUE
692 HAVE_STYLESHEETS_FALSE
693 HAVE_STYLESHEETS_TRUE
705 HAVE_XMLTO_TEXT_FALSE
786 MAINTAINER_MODE_FALSE
796 INSTALL_STRIP_PROGRAM
838 program_transform_name
851 enable_option_checking
852 enable_maintainer_mode
857 enable_dependency_tracking
861 enable_selective_werror
862 enable_strict_compilation
870 enable_malloc0returnsnull
872 ac_precious_vars='build_alias
892 # Initialize some variables set by options.
894 ac_init_version=false
895 ac_unrecognized_opts=
897 # The variables have the same names as the options, with
898 # dashes changed to underlines.
906 program_transform_name=s,x,x,
914 # Installation directory options.
915 # These are left unexpanded so users can "make install exec_prefix=/foo"
916 # and all the variables that are supposed to be based on exec_prefix
917 # by default will actually change.
918 # Use braces instead of parens because sh, perl, etc. also accept them.
919 # (The list follows the same order as the GNU Coding Standards.)
920 bindir='${exec_prefix}/bin'
921 sbindir='${exec_prefix}/sbin'
922 libexecdir='${exec_prefix}/libexec'
923 datarootdir='${prefix}/share'
924 datadir='${datarootdir}'
925 sysconfdir='${prefix}/etc'
926 sharedstatedir='${prefix}/com'
927 localstatedir='${prefix}/var'
928 includedir='${prefix}/include'
929 oldincludedir='/usr/include'
930 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
931 infodir='${datarootdir}/info'
936 libdir='${exec_prefix}/lib'
937 localedir='${datarootdir}/locale'
938 mandir='${datarootdir}/man'
944 # If the previous option needs an argument, assign it.
945 if test -n "$ac_prev"; then
946 eval $ac_prev=\$ac_option
952 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
957 # Accept the important Cygnus configure options, so we can diagnose typos.
959 case $ac_dashdash$ac_option in
963 -bindir | --bindir | --bindi | --bind | --bin | --bi)
965 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968 -build | --build | --buil | --bui | --bu)
969 ac_prev=build_alias ;;
970 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971 build_alias=$ac_optarg ;;
973 -cache-file | --cache-file | --cache-fil | --cache-fi \
974 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975 ac_prev=cache_file ;;
976 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978 cache_file=$ac_optarg ;;
981 cache_file=config.cache ;;
983 -datadir | --datadir | --datadi | --datad)
985 -datadir=* | --datadir=* | --datadi=* | --datad=*)
986 datadir=$ac_optarg ;;
988 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989 | --dataroo | --dataro | --datar)
990 ac_prev=datarootdir ;;
991 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993 datarootdir=$ac_optarg ;;
995 -disable-* | --disable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 as_fn_error $? "invalid feature name: $ac_useropt"
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1004 "enable_$ac_useropt"
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1009 eval enable_$ac_useropt=no ;;
1011 -docdir | --docdir | --docdi | --doc | --do)
1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014 docdir=$ac_optarg ;;
1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019 dvidir=$ac_optarg ;;
1021 -enable-* | --enable-*)
1022 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025 as_fn_error $? "invalid feature name: $ac_useropt"
1026 ac_useropt_orig=$ac_useropt
1027 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1030 "enable_$ac_useropt"
1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1033 ac_unrecognized_sep=', ';;
1035 eval enable_$ac_useropt=\$ac_optarg ;;
1037 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039 | --exec | --exe | --ex)
1040 ac_prev=exec_prefix ;;
1041 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043 | --exec=* | --exe=* | --ex=*)
1044 exec_prefix=$ac_optarg ;;
1046 -gas | --gas | --ga | --g)
1047 # Obsolete; use --with-gas.
1050 -help | --help | --hel | --he | -h)
1051 ac_init_help=long ;;
1052 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053 ac_init_help=recursive ;;
1054 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055 ac_init_help=short ;;
1057 -host | --host | --hos | --ho)
1058 ac_prev=host_alias ;;
1059 -host=* | --host=* | --hos=* | --ho=*)
1060 host_alias=$ac_optarg ;;
1062 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1064 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1066 htmldir=$ac_optarg ;;
1068 -includedir | --includedir | --includedi | --included | --include \
1069 | --includ | --inclu | --incl | --inc)
1070 ac_prev=includedir ;;
1071 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072 | --includ=* | --inclu=* | --incl=* | --inc=*)
1073 includedir=$ac_optarg ;;
1075 -infodir | --infodir | --infodi | --infod | --info | --inf)
1077 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1078 infodir=$ac_optarg ;;
1080 -libdir | --libdir | --libdi | --libd)
1082 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1083 libdir=$ac_optarg ;;
1085 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086 | --libexe | --libex | --libe)
1087 ac_prev=libexecdir ;;
1088 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089 | --libexe=* | --libex=* | --libe=*)
1090 libexecdir=$ac_optarg ;;
1092 -localedir | --localedir | --localedi | --localed | --locale)
1093 ac_prev=localedir ;;
1094 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095 localedir=$ac_optarg ;;
1097 -localstatedir | --localstatedir | --localstatedi | --localstated \
1098 | --localstate | --localstat | --localsta | --localst | --locals)
1099 ac_prev=localstatedir ;;
1100 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1101 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1102 localstatedir=$ac_optarg ;;
1104 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1106 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1107 mandir=$ac_optarg ;;
1109 -nfp | --nfp | --nf)
1110 # Obsolete; use --without-fp.
1113 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1114 | --no-cr | --no-c | -n)
1117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123 | --oldin | --oldi | --old | --ol | --o)
1124 ac_prev=oldincludedir ;;
1125 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1128 oldincludedir=$ac_optarg ;;
1130 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1132 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1133 prefix=$ac_optarg ;;
1135 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1136 | --program-pre | --program-pr | --program-p)
1137 ac_prev=program_prefix ;;
1138 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1139 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1140 program_prefix=$ac_optarg ;;
1142 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1143 | --program-suf | --program-su | --program-s)
1144 ac_prev=program_suffix ;;
1145 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1146 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1147 program_suffix=$ac_optarg ;;
1149 -program-transform-name | --program-transform-name \
1150 | --program-transform-nam | --program-transform-na \
1151 | --program-transform-n | --program-transform- \
1152 | --program-transform | --program-transfor \
1153 | --program-transfo | --program-transf \
1154 | --program-trans | --program-tran \
1155 | --progr-tra | --program-tr | --program-t)
1156 ac_prev=program_transform_name ;;
1157 -program-transform-name=* | --program-transform-name=* \
1158 | --program-transform-nam=* | --program-transform-na=* \
1159 | --program-transform-n=* | --program-transform-=* \
1160 | --program-transform=* | --program-transfor=* \
1161 | --program-transfo=* | --program-transf=* \
1162 | --program-trans=* | --program-tran=* \
1163 | --progr-tra=* | --program-tr=* | --program-t=*)
1164 program_transform_name=$ac_optarg ;;
1166 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1168 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169 pdfdir=$ac_optarg ;;
1171 -psdir | --psdir | --psdi | --psd | --ps)
1173 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177 | -silent | --silent | --silen | --sile | --sil)
1180 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1182 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1184 sbindir=$ac_optarg ;;
1186 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1187 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1188 | --sharedst | --shareds | --shared | --share | --shar \
1190 ac_prev=sharedstatedir ;;
1191 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1192 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1193 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1195 sharedstatedir=$ac_optarg ;;
1197 -site | --site | --sit)
1199 -site=* | --site=* | --sit=*)
1202 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1204 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1205 srcdir=$ac_optarg ;;
1207 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1208 | --syscon | --sysco | --sysc | --sys | --sy)
1209 ac_prev=sysconfdir ;;
1210 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1211 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1212 sysconfdir=$ac_optarg ;;
1214 -target | --target | --targe | --targ | --tar | --ta | --t)
1215 ac_prev=target_alias ;;
1216 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1217 target_alias=$ac_optarg ;;
1219 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222 -version | --version | --versio | --versi | --vers | -V)
1223 ac_init_version=: ;;
1226 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1227 # Reject names that are not valid shell variable names.
1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229 as_fn_error $? "invalid package name: $ac_useropt"
1230 ac_useropt_orig=$ac_useropt
1231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 case $ac_user_opts in
1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
1239 eval with_$ac_useropt=\$ac_optarg ;;
1241 -without-* | --without-*)
1242 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245 as_fn_error $? "invalid package name: $ac_useropt"
1246 ac_useropt_orig=$ac_useropt
1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1253 ac_unrecognized_sep=', ';;
1255 eval with_$ac_useropt=no ;;
1258 # Obsolete; use --with-x.
1261 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1262 | --x-incl | --x-inc | --x-in | --x-i)
1263 ac_prev=x_includes ;;
1264 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1265 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1266 x_includes=$ac_optarg ;;
1268 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1269 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1270 ac_prev=x_libraries ;;
1271 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1272 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1273 x_libraries=$ac_optarg ;;
1275 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1276 Try \`$0 --help' for more information"
1280 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281 # Reject names that are not valid shell variable names.
1282 case $ac_envvar in #(
1283 '' | [0-9]* | *[!_$as_cr_alnum]* )
1284 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1286 eval $ac_envvar=\$ac_optarg
1287 export $ac_envvar ;;
1290 # FIXME: should be removed in autoconf 3.0.
1291 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1292 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1294 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1300 if test -n "$ac_prev"; then
1301 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1302 as_fn_error $? "missing argument to $ac_option"
1305 if test -n "$ac_unrecognized_opts"; then
1306 case $enable_option_checking in
1308 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1309 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1313 # Check all directory arguments for consistency.
1314 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315 datadir sysconfdir sharedstatedir localstatedir includedir \
1316 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317 libdir localedir mandir
1319 eval ac_val=\$$ac_var
1320 # Remove trailing slashes.
1323 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1324 eval $ac_var=\$ac_val;;
1326 # Be sure to have absolute directory names.
1328 [\\/$]* | ?:[\\/]* ) continue;;
1329 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1331 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1334 # There might be people who depend on the old broken behavior: `$host'
1335 # used to hold the argument of --host etc.
1336 # FIXME: To remove some day.
1339 target=$target_alias
1341 # FIXME: To remove some day.
1342 if test "x$host_alias" != x; then
1343 if test "x$build_alias" = x; then
1344 cross_compiling=maybe
1345 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1346 If a cross compiler is detected then cross compile mode will be used" >&2
1347 elif test "x$build_alias" != "x$host_alias"; then
1353 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1355 test "$silent" = yes && exec 6>/dev/null
1358 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359 ac_ls_di=`ls -di .` &&
1360 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1361 as_fn_error $? "working directory cannot be determined"
1362 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1363 as_fn_error $? "pwd does not report name of working directory"
1366 # Find the source files, if location was not specified.
1367 if test -z "$srcdir"; then
1368 ac_srcdir_defaulted=yes
1369 # Try the directory containing this script, then the parent directory.
1370 ac_confdir=`$as_dirname -- "$as_myself" ||
1371 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372 X"$as_myself" : 'X\(//\)[^/]' \| \
1373 X"$as_myself" : 'X\(//\)$' \| \
1374 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1375 $as_echo X"$as_myself" |
1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1398 ac_srcdir_defaulted=no
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1404 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1406 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1408 # When building in place, set srcdir=.
1409 if test "$ac_abs_confdir" = "$ac_pwd"; then
1412 # Remove unnecessary trailing slashes from srcdir.
1413 # Double slashes in file names in object file debugging info
1414 # mess up M-x gdb in Emacs.
1416 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1418 for ac_var in $ac_precious_vars; do
1419 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_env_${ac_var}_value=\$${ac_var}
1421 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426 # Report the --help message.
1428 if test "$ac_init_help" = "long"; then
1429 # Omit some internal or obsolete options to make the list less imposing.
1430 # This message is too long to be a string in the A/UX 3.1 sh.
1432 \`configure' configures libXi 1.6.1 to adapt to many kinds of systems.
1434 Usage: $0 [OPTION]... [VAR=VALUE]...
1436 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437 VAR=VALUE. See below for descriptions of some of the useful variables.
1439 Defaults for the options are specified in brackets.
1442 -h, --help display this help and exit
1443 --help=short display options specific to this package
1444 --help=recursive display the short help of all the included packages
1445 -V, --version display version information and exit
1446 -q, --quiet, --silent do not print \`checking ...' messages
1447 --cache-file=FILE cache test results in FILE [disabled]
1448 -C, --config-cache alias for \`--cache-file=config.cache'
1449 -n, --no-create do not create output files
1450 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1452 Installation directories:
1453 --prefix=PREFIX install architecture-independent files in PREFIX
1454 [$ac_default_prefix]
1455 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1458 By default, \`make install' will install all the files in
1459 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1460 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461 for instance \`--prefix=\$HOME'.
1463 For better control, use the options below.
1465 Fine tuning of the installation directories:
1466 --bindir=DIR user executables [EPREFIX/bin]
1467 --sbindir=DIR system admin executables [EPREFIX/sbin]
1468 --libexecdir=DIR program executables [EPREFIX/libexec]
1469 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1470 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1471 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1472 --libdir=DIR object code libraries [EPREFIX/lib]
1473 --includedir=DIR C header files [PREFIX/include]
1474 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1475 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1476 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1477 --infodir=DIR info documentation [DATAROOTDIR/info]
1478 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1479 --mandir=DIR man documentation [DATAROOTDIR/man]
1480 --docdir=DIR documentation root [DATAROOTDIR/doc/libXi]
1481 --htmldir=DIR html documentation [DOCDIR]
1482 --dvidir=DIR dvi documentation [DOCDIR]
1483 --pdfdir=DIR pdf documentation [DOCDIR]
1484 --psdir=DIR ps documentation [DOCDIR]
1490 --program-prefix=PREFIX prepend PREFIX to installed program names
1491 --program-suffix=SUFFIX append SUFFIX to installed program names
1492 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1495 --build=BUILD configure for building on BUILD [guessed]
1496 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1500 if test -n "$ac_init_help"; then
1501 case $ac_init_help in
1502 short | recursive ) echo "Configuration of libXi 1.6.1:";;
1507 --disable-option-checking ignore unrecognized --enable/--with options
1508 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1509 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1510 --enable-maintainer-mode enable make rules and dependencies not useful
1511 (and sometimes confusing) to the casual installer
1512 --enable-shared[=PKGS] build shared libraries [default=yes]
1513 --enable-static[=PKGS] build static libraries [default=yes]
1514 --enable-fast-install[=PKGS]
1515 optimize for fast installation [default=yes]
1516 --disable-dependency-tracking speeds up one-time build
1517 --enable-dependency-tracking do not reject slow dependency extractors
1518 --disable-libtool-lock avoid locking (might break parallel builds)
1519 --disable-selective-werror
1520 Turn off selective compiler errors. (default:
1522 --enable-strict-compilation
1523 Enable all warnings from compiler and make them
1524 errors (default: disabled)
1525 --enable-silent-rules less verbose build output (undo: `make V=1')
1526 --disable-silent-rules verbose build output (undo: `make V=0')
1527 --enable-docs Enable building the documentation (default: yes)
1528 --enable-specs Enable building the specs (default: yes)
1529 --enable-malloc0returnsnull
1530 malloc(0) returns NULL (default: auto)
1533 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1534 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1535 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1537 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1538 --with-sysroot=DIR Search for dependent libraries within DIR
1539 (or the compiler's sysroot if not specified).
1540 --with-xmlto Use xmlto to regenerate documentation (default:
1542 --with-fop Use fop to regenerate documentation (default: auto)
1543 --with-xsltproc Use xsltproc for the transformation of XML documents
1545 --with-asciidoc Use asciidoc to regenerate documentation (default:
1548 Some influential environment variables:
1549 CC C compiler command
1550 CFLAGS C compiler flags
1551 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1552 nonstandard directory <lib dir>
1553 LIBS libraries to pass to the linker, e.g. -l<library>
1554 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1555 you have headers in a nonstandard directory <include dir>
1557 PKG_CONFIG path to pkg-config utility
1559 directories to add to pkg-config's search path
1561 path overriding pkg-config's built-in search path
1562 XMLTO Path to xmlto command
1563 FOP Path to fop command
1564 XSLTPROC Path to xsltproc command
1565 ASCIIDOC Path to asciidoc command
1566 XI_CFLAGS C compiler flags for XI, overriding pkg-config
1567 XI_LIBS linker flags for XI, overriding pkg-config
1569 Use these variables to override the choices made by `configure' or to help
1570 it to find libraries and programs with nonstandard names/locations.
1572 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1577 if test "$ac_init_help" = "recursive"; then
1578 # If there are subdirs, report their specific --help.
1579 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1580 test -d "$ac_dir" ||
1581 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1586 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1589 # A ".." for each directory in $ac_dir_suffix.
1590 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1591 case $ac_top_builddir_sub in
1592 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1596 ac_abs_top_builddir=$ac_pwd
1597 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1598 # for backward compatibility:
1599 ac_top_builddir=$ac_top_build_prefix
1602 .) # We are building in place.
1604 ac_top_srcdir=$ac_top_builddir_sub
1605 ac_abs_top_srcdir=$ac_pwd ;;
1606 [\\/]* | ?:[\\/]* ) # Absolute name.
1607 ac_srcdir=$srcdir$ac_dir_suffix;
1608 ac_top_srcdir=$srcdir
1609 ac_abs_top_srcdir=$srcdir ;;
1611 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1612 ac_top_srcdir=$ac_top_build_prefix$srcdir
1613 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617 cd "$ac_dir" || { ac_status=$?; continue; }
1618 # Check for guested configure.
1619 if test -f "$ac_srcdir/configure.gnu"; then
1621 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1622 elif test -f "$ac_srcdir/configure"; then
1624 $SHELL "$ac_srcdir/configure" --help=recursive
1626 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1628 cd "$ac_pwd" || { ac_status=$?; break; }
1632 test -n "$ac_init_help" && exit $ac_status
1633 if $ac_init_version; then
1635 libXi configure 1.6.1
1636 generated by GNU Autoconf 2.68
1638 Copyright (C) 2010 Free Software Foundation, Inc.
1639 This configure script is free software; the Free Software Foundation
1640 gives unlimited permission to copy, distribute and modify it.
1645 ## ------------------------ ##
1646 ## Autoconf initialization. ##
1647 ## ------------------------ ##
1649 # ac_fn_c_try_compile LINENO
1650 # --------------------------
1651 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_compile ()
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext
1656 if { { ac_try="$ac_compile"
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_compile") 2>conftest.err
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest.$ac_objext; then :
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
1685 } # ac_fn_c_try_compile
1687 # ac_fn_c_try_link LINENO
1688 # -----------------------
1689 # Try to link conftest.$ac_ext, and return whether this succeeded.
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext conftest$ac_exeext
1694 if { { ac_try="$ac_link"
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_link") 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; } && {
1710 test -z "$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest$ac_exeext && {
1713 test "$cross_compiling" = yes ||
1714 $as_test_x conftest$ac_exeext
1718 $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1723 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1724 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1725 # interfere with the next link command; also delete a directory that is
1726 # left behind by Apple's compiler. We do this before executing the actions.
1727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 as_fn_set_status $ac_retval
1731 } # ac_fn_c_try_link
1733 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1734 # -------------------------------------------------------
1735 # Tests whether HEADER exists and can be compiled using the include files in
1736 # INCLUDES, setting the cache variable VAR accordingly.
1737 ac_fn_c_check_header_compile ()
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if eval \${$3+:} false; then :
1743 $as_echo_n "(cached) " >&6
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1750 if ac_fn_c_try_compile "$LINENO"; then :
1755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 $as_echo "$ac_res" >&6; }
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 } # ac_fn_c_check_header_compile
1764 # ac_fn_c_try_cpp LINENO
1765 # ----------------------
1766 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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; } > conftest.i && {
1786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1791 $as_echo "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 as_fn_set_status $ac_retval
1801 # ac_fn_c_try_run LINENO
1802 # ----------------------
1803 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1804 # that executables *can* be run.
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 if { { ac_try="$ac_link"
1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 $as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_link") 2>&5
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1819 { { case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_try") 2>&5
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; }; }; then :
1831 $as_echo "$as_me: program exited with status $ac_status" >&5
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1835 ac_retval=$ac_status
1837 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 as_fn_set_status $ac_retval
1843 # ac_fn_c_check_func LINENO FUNC VAR
1844 # ----------------------------------
1845 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1846 ac_fn_c_check_func ()
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852 $as_echo_n "(cached) " >&6
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1856 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1858 #define $2 innocuous_$2
1860 /* System header to define __stub macros and hopefully few prototypes,
1861 which can conflict with char $2 (); below.
1862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1863 <limits.h> exists even on freestanding compilers. */
1866 # include <limits.h>
1868 # include <assert.h>
1873 /* Override any GCC internal prototype to avoid an error.
1874 Use char because int might match the return type of a GCC
1875 builtin and then its argument prototype would still apply. */
1880 /* The GNU C library defines this for functions which it implements
1881 to always fail with ENOSYS. Some functions are actually named
1882 something starting with __ and the normal name is an alias. */
1883 #if defined __stub_$2 || defined __stub___$2
1895 if ac_fn_c_try_link "$LINENO"; then :
1900 rm -f core conftest.err conftest.$ac_objext \
1901 conftest$ac_exeext conftest.$ac_ext
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908 } # ac_fn_c_check_func
1910 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1911 # ---------------------------------------------
1912 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1914 ac_fn_c_check_decl ()
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 as_decl_name=`echo $2|sed 's/ *(.*//'`
1918 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1920 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1921 if eval \${$3+:} false; then :
1922 $as_echo_n "(cached) " >&6
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1930 #ifndef $as_decl_name
1932 (void) $as_decl_use;
1934 (void) $as_decl_name;
1942 if ac_fn_c_try_compile "$LINENO"; then :
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 } # ac_fn_c_check_decl
1955 cat >config.log <<_ACEOF
1956 This file contains any messages produced by compilers while
1957 running configure, to aid debugging if configure makes a mistake.
1959 It was created by libXi $as_me 1.6.1, which was
1960 generated by GNU Autoconf 2.68. Invocation command line was
1972 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1973 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1974 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1975 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1976 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1978 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1979 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1981 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1982 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1983 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1984 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1985 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1986 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1987 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 test -z "$as_dir" && as_dir=.
1996 $as_echo "PATH: $as_dir"
2012 # Keep a trace of the command line.
2013 # Strip out --no-create and --no-recursion so they do not pile up.
2014 # Strip out --silent because we don't want to record it for future runs.
2015 # Also quote any args containing shell meta-characters.
2016 # Make two passes to allow for proper duplicate-argument suppression.
2020 ac_must_keep_next=false
2026 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2028 | -silent | --silent | --silen | --sile | --sil)
2031 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2034 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2036 as_fn_append ac_configure_args1 " '$ac_arg'"
2037 if test $ac_must_keep_next = true; then
2038 ac_must_keep_next=false # Got value, back to normal.
2041 *=* | --config-cache | -C | -disable-* | --disable-* \
2042 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2043 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2044 | -with-* | --with-* | -without-* | --without-* | --x)
2045 case "$ac_configure_args0 " in
2046 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2049 -* ) ac_must_keep_next=true ;;
2052 as_fn_append ac_configure_args " '$ac_arg'"
2057 { ac_configure_args0=; unset ac_configure_args0;}
2058 { ac_configure_args1=; unset ac_configure_args1;}
2060 # When interrupted or exit'd, cleanup temporary files, and complete
2061 # config.log. We remove comments because anyway the quotes in there
2062 # would cause problems or look ugly.
2063 # WARNING: Use '\'' to represent an apostrophe within the trap.
2064 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2065 trap 'exit_status=$?
2066 # Save into config.log some information that might help in debugging.
2070 $as_echo "## ---------------- ##
2071 ## Cache variables. ##
2072 ## ---------------- ##"
2074 # The following way of writing the cache mishandles newlines in values,
2076 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2077 eval ac_val=\$$ac_var
2081 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2082 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2085 _ | IFS | as_nl) ;; #(
2086 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2087 *) { eval $ac_var=; unset $ac_var;} ;;
2092 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2093 *${as_nl}ac_space=\ *)
2095 "s/'\''/'\''\\\\'\'''\''/g;
2096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2099 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2106 $as_echo "## ----------------- ##
2107 ## Output variables. ##
2108 ## ----------------- ##"
2110 for ac_var in $ac_subst_vars
2112 eval ac_val=\$$ac_var
2114 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2116 $as_echo "$ac_var='\''$ac_val'\''"
2120 if test -n "$ac_subst_files"; then
2121 $as_echo "## ------------------- ##
2122 ## File substitutions. ##
2123 ## ------------------- ##"
2125 for ac_var in $ac_subst_files
2127 eval ac_val=\$$ac_var
2129 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2131 $as_echo "$ac_var='\''$ac_val'\''"
2136 if test -s confdefs.h; then
2137 $as_echo "## ----------- ##
2144 test "$ac_signal" != 0 &&
2145 $as_echo "$as_me: caught signal $ac_signal"
2146 $as_echo "$as_me: exit $exit_status"
2148 rm -f core *.core core.conftest.* &&
2149 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2152 for ac_signal in 1 2 13 15; do
2153 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2158 rm -f -r conftest* confdefs.h
2160 $as_echo "/* confdefs.h */" > confdefs.h
2162 # Predefined preprocessor variables.
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_NAME "$PACKAGE_NAME"
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE_STRING "$PACKAGE_STRING"
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_URL "$PACKAGE_URL"
2189 # Let the site file select an alternate cache file if it wants to.
2190 # Prefer an explicitly selected file to automatically selected ones.
2193 if test -n "$CONFIG_SITE"; then
2194 # We do not want a PATH search for config.site.
2195 case $CONFIG_SITE in #((
2196 -*) ac_site_file1=./$CONFIG_SITE;;
2197 */*) ac_site_file1=$CONFIG_SITE;;
2198 *) ac_site_file1=./$CONFIG_SITE;;
2200 elif test "x$prefix" != xNONE; then
2201 ac_site_file1=$prefix/share/config.site
2202 ac_site_file2=$prefix/etc/config.site
2204 ac_site_file1=$ac_default_prefix/share/config.site
2205 ac_site_file2=$ac_default_prefix/etc/config.site
2207 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2209 test "x$ac_site_file" = xNONE && continue
2210 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2212 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2213 sed 's/^/| /' "$ac_site_file" >&5
2215 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217 as_fn_error $? "failed to load site script $ac_site_file
2218 See \`config.log' for more details" "$LINENO" 5; }
2222 if test -r "$cache_file"; then
2223 # Some versions of bash will fail to source /dev/null (special files
2224 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2225 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2227 $as_echo "$as_me: loading cache $cache_file" >&6;}
2229 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2230 *) . "./$cache_file";;
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2235 $as_echo "$as_me: creating cache $cache_file" >&6;}
2239 # Check that the precious variables saved in the cache have kept the same
2241 ac_cache_corrupted=false
2242 for ac_var in $ac_precious_vars; do
2243 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2244 eval ac_new_set=\$ac_env_${ac_var}_set
2245 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2246 eval ac_new_val=\$ac_env_${ac_var}_value
2247 case $ac_old_set,$ac_new_set in
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2250 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2251 ac_cache_corrupted=: ;;
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2254 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2255 ac_cache_corrupted=: ;;
2258 if test "x$ac_old_val" != "x$ac_new_val"; then
2259 # differences in whitespace do not lead to failure.
2260 ac_old_val_w=`echo x $ac_old_val`
2261 ac_new_val_w=`echo x $ac_new_val`
2262 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2264 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2265 ac_cache_corrupted=:
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2268 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2269 eval $ac_var=\$ac_old_val
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2272 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2274 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2277 # Pass precious variables to config.status.
2278 if test "$ac_new_set" = set; then
2280 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2281 *) ac_arg=$ac_var=$ac_new_val ;;
2283 case " $ac_configure_args " in
2284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2285 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2289 if $ac_cache_corrupted; then
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2293 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2294 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2296 ## -------------------- ##
2297 ## Main body of script. ##
2298 ## -------------------- ##
2301 ac_cpp='$CPP $CPPFLAGS'
2302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2308 ac_config_headers="$ac_config_headers src/config.h"
2311 # Initialize Automake
2312 am__api_version='1.11'
2315 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2316 if test -f "$ac_dir/install-sh"; then
2318 ac_install_sh="$ac_aux_dir/install-sh -c"
2320 elif test -f "$ac_dir/install.sh"; then
2322 ac_install_sh="$ac_aux_dir/install.sh -c"
2324 elif test -f "$ac_dir/shtool"; then
2326 ac_install_sh="$ac_aux_dir/shtool install -c"
2330 if test -z "$ac_aux_dir"; then
2331 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2334 # These three variables are undocumented and unsupported,
2335 # and are intended to be withdrawn in a future Autoconf release.
2336 # They can cause serious problems if a builder's source tree is in a directory
2337 # whose full name contains unusual characters.
2338 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2339 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2340 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2343 # Find a good install program. We prefer a C program (faster),
2344 # so one script is as good as another. But avoid the broken or
2345 # incompatible versions:
2346 # SysV /etc/install, /usr/sbin/install
2347 # SunOS /usr/etc/install
2348 # IRIX /sbin/install
2350 # AmigaOS /C/install, which installs bootblocks on floppy discs
2351 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2352 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2353 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2354 # OS/2's system install, which has a completely different semantic
2355 # ./install, which can be erroneously created by make from ./install.sh.
2356 # Reject install programs that cannot install multiple files.
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2358 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2359 if test -z "$INSTALL"; then
2360 if ${ac_cv_path_install+:} false; then :
2361 $as_echo_n "(cached) " >&6
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 test -z "$as_dir" && as_dir=.
2368 # Account for people who put trailing slashes in PATH elements.
2369 case $as_dir/ in #((
2370 ./ | .// | /[cC]/* | \
2371 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2372 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2375 # OSF1 and SCO ODT 3.0 have their own names for install.
2376 # Don't use installbsd from OSF since it installs stuff as root
2378 for ac_prog in ginstall scoinst install; do
2379 for ac_exec_ext in '' $ac_executable_extensions; do
2380 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2381 if test $ac_prog = install &&
2382 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2383 # AIX install. It has an incompatible calling convention.
2385 elif test $ac_prog = install &&
2386 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2387 # program-specific install script used by HP pwplus--don't use.
2390 rm -rf conftest.one conftest.two conftest.dir
2391 echo one > conftest.one
2392 echo two > conftest.two
2394 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2395 test -s conftest.one && test -s conftest.two &&
2396 test -s conftest.dir/conftest.one &&
2397 test -s conftest.dir/conftest.two
2399 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2412 rm -rf conftest.one conftest.two conftest.dir
2415 if test "${ac_cv_path_install+set}" = set; then
2416 INSTALL=$ac_cv_path_install
2418 # As a last resort, use the slow shell script. Don't cache a
2419 # value for INSTALL within a source directory, because that will
2420 # break other packages using the cache if that directory is
2421 # removed, or if the value is a relative name.
2422 INSTALL=$ac_install_sh
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2426 $as_echo "$INSTALL" >&6; }
2428 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2429 # It thinks the first close brace ends the variable substitution.
2430 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2432 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2434 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2437 $as_echo_n "checking whether build environment is sane... " >&6; }
2440 echo timestamp > conftest.file
2441 # Reject unsafe characters in $srcdir or the absolute working directory
2442 # name. Accept space and tab only in the latter.
2446 *[\\\"\#\$\&\'\`$am_lf]*)
2447 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2450 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2451 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2454 # Do `set' in a subshell so we don't clobber the current shell's
2455 # arguments. Must try -L first in case configure is actually a
2456 # symlink; some systems play weird games with the mod time of symlinks
2457 # (eg FreeBSD returns the mod time of the symlink's containing
2460 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2461 if test "$*" = "X"; then
2463 set X `ls -t "$srcdir/configure" conftest.file`
2466 if test "$*" != "X $srcdir/configure conftest.file" \
2467 && test "$*" != "X conftest.file $srcdir/configure"; then
2469 # If neither matched, then we have a broken ls. This can happen
2470 # if, for instance, CONFIG_SHELL is bash and it inherits a
2471 # broken ls alias from the environment. This has actually
2472 # happened. Such a system could not be considered "sane".
2473 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2474 alias in your environment" "$LINENO" 5
2477 test "$2" = conftest.file
2483 as_fn_error $? "newly created file is older than distributed files!
2484 Check your system clock" "$LINENO" 5
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2487 $as_echo "yes" >&6; }
2488 test "$program_prefix" != NONE &&
2489 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2490 # Use a double $ so make ignores it.
2491 test "$program_suffix" != NONE &&
2492 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2493 # Double any \ or $.
2494 # By default was `s,x,x', remove it if useless.
2495 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2496 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2498 # expand $ac_aux_dir to an absolute path
2499 am_aux_dir=`cd $ac_aux_dir && pwd`
2501 if test x"${MISSING+set}" != xset; then
2504 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2506 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2509 # Use eval to expand $SHELL
2510 if eval "$MISSING --run true"; then
2511 am_missing_run="$MISSING --run "
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2515 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2518 if test x"${install_sh}" != xset; then
2521 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2523 install_sh="\${SHELL} $am_aux_dir/install-sh"
2527 # Installed binaries are usually stripped using `strip' when the user
2528 # run `make install-strip'. However `strip' might not be the right
2529 # tool to use in cross-compilation environments, therefore Automake
2530 # will honor the `STRIP' environment variable to overrule this program.
2531 if test "$cross_compiling" != no; then
2532 if test -n "$ac_tool_prefix"; then
2533 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2534 set dummy ${ac_tool_prefix}strip; ac_word=$2
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2536 $as_echo_n "checking for $ac_word... " >&6; }
2537 if ${ac_cv_prog_STRIP+:} false; then :
2538 $as_echo_n "(cached) " >&6
2540 if test -n "$STRIP"; then
2541 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 STRIP=$ac_cv_prog_STRIP
2561 if test -n "$STRIP"; then
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2563 $as_echo "$STRIP" >&6; }
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2566 $as_echo "no" >&6; }
2571 if test -z "$ac_cv_prog_STRIP"; then
2573 # Extract the first word of "strip", so it can be a program name with args.
2574 set dummy strip; ac_word=$2
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576 $as_echo_n "checking for $ac_word... " >&6; }
2577 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2578 $as_echo_n "(cached) " >&6
2580 if test -n "$ac_ct_STRIP"; then
2581 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590 ac_cv_prog_ac_ct_STRIP="strip"
2591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2601 if test -n "$ac_ct_STRIP"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2603 $as_echo "$ac_ct_STRIP" >&6; }
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606 $as_echo "no" >&6; }
2609 if test "x$ac_ct_STRIP" = x; then
2612 case $cross_compiling:$ac_tool_warned in
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2616 ac_tool_warned=yes ;;
2621 STRIP="$ac_cv_prog_STRIP"
2625 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2628 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2629 if test -z "$MKDIR_P"; then
2630 if ${ac_cv_path_mkdir+:} false; then :
2631 $as_echo_n "(cached) " >&6
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2637 test -z "$as_dir" && as_dir=.
2638 for ac_prog in mkdir gmkdir; do
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2641 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2642 'mkdir (GNU coreutils) '* | \
2643 'mkdir (coreutils) '* | \
2644 'mkdir (fileutils) '4.1*)
2645 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2655 test -d ./--version && rmdir ./--version
2656 if test "${ac_cv_path_mkdir+set}" = set; then
2657 MKDIR_P="$ac_cv_path_mkdir -p"
2659 # As a last resort, use the slow shell script. Don't cache a
2660 # value for MKDIR_P within a source directory, because that will
2661 # break other packages using the cache if that directory is
2662 # removed, or if the value is a relative name.
2663 MKDIR_P="$ac_install_sh -d"
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2667 $as_echo "$MKDIR_P" >&6; }
2671 [\\/$]* | ?:[\\/]*) ;;
2672 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2675 for ac_prog in gawk mawk nawk awk
2677 # Extract the first word of "$ac_prog", so it can be a program name with args.
2678 set dummy $ac_prog; ac_word=$2
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680 $as_echo_n "checking for $ac_word... " >&6; }
2681 if ${ac_cv_prog_AWK+:} false; then :
2682 $as_echo_n "(cached) " >&6
2684 if test -n "$AWK"; then
2685 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2694 ac_cv_prog_AWK="$ac_prog"
2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 if test -n "$AWK"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2707 $as_echo "$AWK" >&6; }
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710 $as_echo "no" >&6; }
2714 test -n "$AWK" && break
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2718 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2720 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2721 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2722 $as_echo_n "(cached) " >&6
2724 cat >conftest.make <<\_ACEOF
2727 @echo '@@@%%%=$(MAKE)=@@@%%%'
2729 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2730 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2732 eval ac_cv_prog_make_${ac_make}_set=yes;;
2734 eval ac_cv_prog_make_${ac_make}_set=no;;
2738 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2740 $as_echo "yes" >&6; }
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744 $as_echo "no" >&6; }
2745 SET_MAKE="MAKE=${MAKE-make}"
2748 rm -rf .tst 2>/dev/null
2749 mkdir .tst 2>/dev/null
2750 if test -d .tst; then
2755 rmdir .tst 2>/dev/null
2757 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2758 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2759 # is not polluted with repeated "-I."
2760 am__isrc=' -I$(srcdir)'
2761 # test to see if srcdir already configured
2762 if test -f $srcdir/config.status; then
2763 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2767 # test whether we have cygpath
2768 if test -z "$CYGPATH_W"; then
2769 if (cygpath --version) >/dev/null 2>/dev/null; then
2770 CYGPATH_W='cygpath -w'
2777 # Define the identity of the package.
2782 cat >>confdefs.h <<_ACEOF
2783 #define PACKAGE "$PACKAGE"
2787 cat >>confdefs.h <<_ACEOF
2788 #define VERSION "$VERSION"
2791 # Some tools Automake needs.
2793 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2796 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2799 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2802 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2805 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2807 # We need awk for the "check" target. The system "awk" is bad on
2809 # Always define AMTAR for backward compatibility. Yes, it's still used
2810 # in the wild :-( We should find a proper way to deprecate it ...
2813 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2821 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2822 # Check whether --enable-maintainer-mode was given.
2823 if test "${enable_maintainer_mode+set}" = set; then :
2824 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2826 USE_MAINTAINER_MODE=no
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2830 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2831 if test $USE_MAINTAINER_MODE = yes; then
2832 MAINTAINER_MODE_TRUE=
2833 MAINTAINER_MODE_FALSE='#'
2835 MAINTAINER_MODE_TRUE='#'
2836 MAINTAINER_MODE_FALSE=
2839 MAINT=$MAINTAINER_MODE_TRUE
2843 # Initialize libtool
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2847 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2852 macro_version='2.4.2'
2853 macro_revision='1.3337'
2867 ltmain="$ac_aux_dir/ltmain.sh"
2869 # Make sure we can run config.sub.
2870 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2871 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2874 $as_echo_n "checking build system type... " >&6; }
2875 if ${ac_cv_build+:} false; then :
2876 $as_echo_n "(cached) " >&6
2878 ac_build_alias=$build_alias
2879 test "x$ac_build_alias" = x &&
2880 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2881 test "x$ac_build_alias" = x &&
2882 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2883 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2884 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2888 $as_echo "$ac_cv_build" >&6; }
2889 case $ac_cv_build in
2891 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2894 ac_save_IFS=$IFS; IFS='-'
2900 # Remember, the first character of IFS is used to create $*,
2901 # except with old shells:
2904 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2908 $as_echo_n "checking host system type... " >&6; }
2909 if ${ac_cv_host+:} false; then :
2910 $as_echo_n "(cached) " >&6
2912 if test "x$host_alias" = x; then
2913 ac_cv_host=$ac_cv_build
2915 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2916 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2921 $as_echo "$ac_cv_host" >&6; }
2924 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2927 ac_save_IFS=$IFS; IFS='-'
2933 # Remember, the first character of IFS is used to create $*,
2934 # except with old shells:
2937 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2940 # Backslashify metacharacters that are still active within
2941 # double-quoted strings.
2942 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2944 # Same as above, but do not quote variable references.
2945 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2947 # Sed substitution to delay expansion of an escaped shell variable in a
2948 # double_quote_subst'ed string.
2949 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2951 # Sed substitution to delay expansion of an escaped single quote.
2952 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2954 # Sed substitution to avoid accidental globbing in evaled expressions
2955 no_glob_subst='s/\*/\\\*/g'
2957 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2958 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2959 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2962 $as_echo_n "checking how to print strings... " >&6; }
2963 # Test print first, because it will be a builtin if present.
2964 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2965 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2967 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2970 # Use this function as a fallback that always works.
2971 func_fallback_echo ()
2973 eval 'cat <<_LTECHO_EOF
2977 ECHO='func_fallback_echo'
2980 # func_echo_all arg...
2981 # Invoke $ECHO with all args, space-separated.
2988 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2989 $as_echo "printf" >&6; } ;;
2990 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2991 $as_echo "print -r" >&6; } ;;
2992 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2993 $as_echo "cat" >&6; } ;;
3009 DEPDIR="${am__leading_dot}deps"
3011 ac_config_commands="$ac_config_commands depfiles"
3014 am_make=${MAKE-make}
3015 cat > confinc << 'END'
3017 @echo this is the am__doit target
3020 # If we don't find an include directive, just comment out the code.
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3022 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3026 # First try GNU make style include.
3027 echo "include confinc" > confmf
3028 # Ignore all kinds of additional output from `make'.
3029 case `$am_make -s -f confmf 2> /dev/null` in #(
3030 *the\ am__doit\ target*)
3036 # Now try BSD make style include.
3037 if test "$am__include" = "#"; then
3038 echo '.include "confinc"' > confmf
3039 case `$am_make -s -f confmf 2> /dev/null` in #(
3040 *the\ am__doit\ target*)
3041 am__include=.include
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3050 $as_echo "$_am_result" >&6; }
3051 rm -f confinc confmf
3053 # Check whether --enable-dependency-tracking was given.
3054 if test "${enable_dependency_tracking+set}" = set; then :
3055 enableval=$enable_dependency_tracking;
3058 if test "x$enable_dependency_tracking" != xno; then
3059 am_depcomp="$ac_aux_dir/depcomp"
3063 if test "x$enable_dependency_tracking" != xno; then
3073 ac_cpp='$CPP $CPPFLAGS'
3074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3077 if test -n "$ac_tool_prefix"; then
3078 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3079 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if ${ac_cv_prog_CC+:} false; then :
3083 $as_echo_n "(cached) " >&6
3085 if test -n "$CC"; then
3086 ac_cv_prog_CC="$CC" # Let the user override the test.
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 test -z "$as_dir" && as_dir=.
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 if test -n "$CC"; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3108 $as_echo "$CC" >&6; }
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3116 if test -z "$ac_cv_prog_CC"; then
3118 # Extract the first word of "gcc", so it can be a program name with args.
3119 set dummy gcc; ac_word=$2
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121 $as_echo_n "checking for $ac_word... " >&6; }
3122 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3123 $as_echo_n "(cached) " >&6
3125 if test -n "$ac_ct_CC"; then
3126 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3135 ac_cv_prog_ac_ct_CC="gcc"
3136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3146 if test -n "$ac_ct_CC"; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3148 $as_echo "$ac_ct_CC" >&6; }
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3154 if test "x$ac_ct_CC" = x; then
3157 case $cross_compiling:$ac_tool_warned in
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3161 ac_tool_warned=yes ;;
3169 if test -z "$CC"; then
3170 if test -n "$ac_tool_prefix"; then
3171 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3172 set dummy ${ac_tool_prefix}cc; ac_word=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if ${ac_cv_prog_CC+:} false; then :
3176 $as_echo_n "(cached) " >&6
3178 if test -n "$CC"; then
3179 ac_cv_prog_CC="$CC" # Let the user override the test.
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188 ac_cv_prog_CC="${ac_tool_prefix}cc"
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 if test -n "$CC"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3201 $as_echo "$CC" >&6; }
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3210 if test -z "$CC"; then
3211 # Extract the first word of "cc", so it can be a program name with args.
3212 set dummy cc; ac_word=$2
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214 $as_echo_n "checking for $ac_word... " >&6; }
3215 if ${ac_cv_prog_CC+:} false; then :
3216 $as_echo_n "(cached) " >&6
3218 if test -n "$CC"; then
3219 ac_cv_prog_CC="$CC" # Let the user override the test.
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 test -z "$as_dir" && as_dir=.
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3229 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3230 ac_prog_rejected=yes
3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 if test $ac_prog_rejected = yes; then
3242 # We found a bogon in the path, so make sure we never use it.
3243 set dummy $ac_cv_prog_CC
3245 if test $# != 0; then
3246 # We chose a different compiler from the bogus one.
3247 # However, it has the same basename, so the bogon will be chosen
3248 # first if we set CC to just the basename; use the full file name.
3250 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3256 if test -n "$CC"; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258 $as_echo "$CC" >&6; }
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 $as_echo "no" >&6; }
3266 if test -z "$CC"; then
3267 if test -n "$ac_tool_prefix"; then
3268 for ac_prog in cl.exe
3270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3271 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3273 $as_echo_n "checking for $ac_word... " >&6; }
3274 if ${ac_cv_prog_CC+:} false; then :
3275 $as_echo_n "(cached) " >&6
3277 if test -n "$CC"; then
3278 ac_cv_prog_CC="$CC" # Let the user override the test.
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3287 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3298 if test -n "$CC"; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3300 $as_echo "$CC" >&6; }
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303 $as_echo "no" >&6; }
3307 test -n "$CC" && break
3310 if test -z "$CC"; then
3312 for ac_prog in cl.exe
3314 # Extract the first word of "$ac_prog", so it can be a program name with args.
3315 set dummy $ac_prog; ac_word=$2
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317 $as_echo_n "checking for $ac_word... " >&6; }
3318 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3319 $as_echo_n "(cached) " >&6
3321 if test -n "$ac_ct_CC"; then
3322 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3331 ac_cv_prog_ac_ct_CC="$ac_prog"
3332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3342 if test -n "$ac_ct_CC"; then
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3344 $as_echo "$ac_ct_CC" >&6; }
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347 $as_echo "no" >&6; }
3351 test -n "$ac_ct_CC" && break
3354 if test "x$ac_ct_CC" = x; then
3357 case $cross_compiling:$ac_tool_warned in
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3361 ac_tool_warned=yes ;;
3370 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372 as_fn_error $? "no acceptable C compiler found in \$PATH
3373 See \`config.log' for more details" "$LINENO" 5; }
3375 # Provide some information about the compiler.
3376 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3379 for ac_option in --version -v -V -qversion; do
3380 { { ac_try="$ac_compiler $ac_option >&5"
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386 $as_echo "$ac_try_echo"; } >&5
3387 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3389 if test -s conftest.err; then
3391 ... rest of stderr output deleted ...
3392 10q' conftest.err >conftest.er1
3393 cat conftest.er1 >&5
3395 rm -f conftest.er1 conftest.err
3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }
3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401 /* end confdefs.h. */
3411 ac_clean_files_save=$ac_clean_files
3412 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3413 # Try to create an executable without -o first, disregard a.out.
3414 # It will help us diagnose broken compilers, and finding out an intuition
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3417 $as_echo_n "checking whether the C compiler works... " >&6; }
3418 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3420 # The possible output files:
3421 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3424 for ac_file in $ac_files
3427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3428 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3433 if { { ac_try="$ac_link_default"
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439 $as_echo "$ac_try_echo"; } >&5
3440 (eval "$ac_link_default") 2>&5
3442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443 test $ac_status = 0; }; then :
3444 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3445 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3446 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3447 # so that the user can short-circuit this test for compilers unknown to
3449 for ac_file in $ac_files ''
3451 test -f "$ac_file" || continue
3453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3456 # We found the default executable, but exeext='' is most
3460 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3462 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3464 # We set ac_cv_exeext here because the later test for it is not
3465 # safe: cross compilers may not add the suffix if given an `-o'
3466 # argument, so we may need to know it at that point already.
3467 # Even if this section looks crufty: it has the advantage of
3474 test "$ac_cv_exeext" = no && ac_cv_exeext=
3479 if test -z "$ac_file"; then :
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3482 $as_echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487 as_fn_error 77 "C compiler cannot create executables
3488 See \`config.log' for more details" "$LINENO" 5; }
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3491 $as_echo "yes" >&6; }
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3494 $as_echo_n "checking for C compiler default output file name... " >&6; }
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3496 $as_echo "$ac_file" >&6; }
3497 ac_exeext=$ac_cv_exeext
3499 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3500 ac_clean_files=$ac_clean_files_save
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3502 $as_echo_n "checking for suffix of executables... " >&6; }
3503 if { { ac_try="$ac_link"
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509 $as_echo "$ac_try_echo"; } >&5
3510 (eval "$ac_link") 2>&5
3512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513 test $ac_status = 0; }; then :
3514 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3515 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3516 # work properly (i.e., refer to `conftest.exe'), while it won't with
3518 for ac_file in conftest.exe conftest conftest.*; do
3519 test -f "$ac_file" || continue
3521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3522 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3531 See \`config.log' for more details" "$LINENO" 5; }
3533 rm -f conftest conftest$ac_cv_exeext
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3535 $as_echo "$ac_cv_exeext" >&6; }
3537 rm -f conftest.$ac_ext
3538 EXEEXT=$ac_cv_exeext
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3546 FILE *f = fopen ("conftest.out", "w");
3547 return ferror (f) || fclose (f) != 0;
3553 ac_clean_files="$ac_clean_files conftest.out"
3554 # Check that the compiler produces executables we can run. If not, either
3555 # the compiler is broken, or we cross compile.
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3557 $as_echo_n "checking whether we are cross compiling... " >&6; }
3558 if test "$cross_compiling" != yes; then
3559 { { ac_try="$ac_link"
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3565 $as_echo "$ac_try_echo"; } >&5
3566 (eval "$ac_link") 2>&5
3568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3569 test $ac_status = 0; }
3570 if { ac_try='./conftest$ac_cv_exeext'
3571 { { case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3576 $as_echo "$ac_try_echo"; } >&5
3577 (eval "$ac_try") 2>&5
3579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580 test $ac_status = 0; }; }; then
3583 if test "$cross_compiling" = maybe; then
3586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3588 as_fn_error $? "cannot run C compiled programs.
3589 If you meant to cross compile, use \`--host'.
3590 See \`config.log' for more details" "$LINENO" 5; }
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3595 $as_echo "$cross_compiling" >&6; }
3597 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3598 ac_clean_files=$ac_clean_files_save
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3600 $as_echo_n "checking for suffix of object files... " >&6; }
3601 if ${ac_cv_objext+:} false; then :
3602 $as_echo_n "(cached) " >&6
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3615 rm -f conftest.o conftest.obj
3616 if { { ac_try="$ac_compile"
3618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619 *) ac_try_echo=$ac_try;;
3621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3622 $as_echo "$ac_try_echo"; } >&5
3623 (eval "$ac_compile") 2>&5
3625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626 test $ac_status = 0; }; then :
3627 for ac_file in conftest.o conftest.obj conftest.*; do
3628 test -f "$ac_file" || continue;
3630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3631 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3636 $as_echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3641 as_fn_error $? "cannot compute suffix of object files: cannot compile
3642 See \`config.log' for more details" "$LINENO" 5; }
3644 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3647 $as_echo "$ac_cv_objext" >&6; }
3648 OBJEXT=$ac_cv_objext
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3651 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3652 if ${ac_cv_c_compiler_gnu+:} false; then :
3653 $as_echo_n "(cached) " >&6
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h. */
3669 if ac_fn_c_try_compile "$LINENO"; then :
3674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3679 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3680 if test $ac_compiler_gnu = yes; then
3685 ac_test_CFLAGS=${CFLAGS+set}
3686 ac_save_CFLAGS=$CFLAGS
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3688 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3689 if ${ac_cv_prog_cc_g+:} false; then :
3690 $as_echo_n "(cached) " >&6
3692 ac_save_c_werror_flag=$ac_c_werror_flag
3693 ac_c_werror_flag=yes
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3707 if ac_fn_c_try_compile "$LINENO"; then :
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3722 if ac_fn_c_try_compile "$LINENO"; then :
3725 ac_c_werror_flag=$ac_save_c_werror_flag
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3738 if ac_fn_c_try_compile "$LINENO"; then :
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 ac_c_werror_flag=$ac_save_c_werror_flag
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3749 $as_echo "$ac_cv_prog_cc_g" >&6; }
3750 if test "$ac_test_CFLAGS" = set; then
3751 CFLAGS=$ac_save_CFLAGS
3752 elif test $ac_cv_prog_cc_g = yes; then
3753 if test "$GCC" = yes; then
3759 if test "$GCC" = yes; then
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3766 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3767 if ${ac_cv_prog_cc_c89+:} false; then :
3768 $as_echo_n "(cached) " >&6
3770 ac_cv_prog_cc_c89=no
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3776 #include <sys/types.h>
3777 #include <sys/stat.h>
3778 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3779 struct buf { int x; };
3780 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3781 static char *e (p, i)
3787 static char *f (char * (*g) (char **, int), char **p, ...)
3792 s = g (p, va_arg (v,int));
3797 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3798 function prototypes and stuff, but not '\xHH' hex character constants.
3799 These don't provoke an error unfortunately, instead are silently treated
3800 as 'x'. The following induces an error, until -std is added to get
3801 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3802 array size at least. It's necessary to write '\x00'==0 to get something
3803 that's true only with -std. */
3804 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3806 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3807 inside strings and character constants. */
3809 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3811 int test (int i, double x);
3812 struct s1 {int (*f) (int a);};
3813 struct s2 {int (*f) (double a);};
3814 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3820 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3825 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3826 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3828 CC="$ac_save_CC $ac_arg"
3829 if ac_fn_c_try_compile "$LINENO"; then :
3830 ac_cv_prog_cc_c89=$ac_arg
3832 rm -f core conftest.err conftest.$ac_objext
3833 test "x$ac_cv_prog_cc_c89" != "xno" && break
3835 rm -f conftest.$ac_ext
3840 case "x$ac_cv_prog_cc_c89" in
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3843 $as_echo "none needed" >&6; } ;;
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3846 $as_echo "unsupported" >&6; } ;;
3848 CC="$CC $ac_cv_prog_cc_c89"
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3850 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3852 if test "x$ac_cv_prog_cc_c89" != xno; then :
3857 ac_cpp='$CPP $CPPFLAGS'
3858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862 depcc="$CC" am_compiler_list=
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3865 $as_echo_n "checking dependency style of $depcc... " >&6; }
3866 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3867 $as_echo_n "(cached) " >&6
3869 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3870 # We make a subdir and do the tests there. Otherwise we can end up
3871 # making bogus files that we don't know about and never remove. For
3872 # instance it was reported that on HP-UX the gcc test will end up
3873 # making a dummy file named `D' -- because `-MD' means `put the output
3877 # Copy depcomp to subdir because otherwise we won't find it if we're
3878 # using a relative directory.
3879 cp "$am_depcomp" conftest.dir
3881 # We will build objects and dependencies in a subdirectory because
3882 # it helps to detect inapplicable dependency modes. For instance
3883 # both Tru64's cc and ICC support -MD to output dependencies as a
3884 # side effect of compilation, but ICC will put the dependencies in
3885 # the current directory while Tru64 will put them in the object
3889 am_cv_CC_dependencies_compiler_type=none
3890 if test "$am_compiler_list" = ""; then
3891 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3894 case " $depcc " in #(
3895 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3898 for depmode in $am_compiler_list; do
3899 # Setup a source with many dependencies, because some compilers
3900 # like to wrap large dependency lists on column 80 (with \), and
3901 # we should not choose a depcomp mode which is confused by this.
3903 # We need to recreate these files for each test, as the compiler may
3904 # overwrite some of them when testing with obscure command lines.
3905 # This happens at least with the AIX C compiler.
3907 for i in 1 2 3 4 5 6; do
3908 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3909 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3910 # Solaris 8's {/usr,}/bin/sh.
3911 touch sub/conftst$i.h
3913 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3915 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3916 # mode. It turns out that the SunPro C++ compiler does not properly
3917 # handle `-M -o', and we need to detect this. Also, some Intel
3918 # versions had trouble with output in subdirs
3919 am__obj=sub/conftest.${OBJEXT-o}
3920 am__minus_obj="-o $am__obj"
3923 # This depmode causes a compiler race in universal mode.
3924 test "$am__universal" = false || continue
3927 # after this tag, mechanisms are not by side-effect, so they'll
3928 # only be used when explicitly requested
3929 if test "x$enable_dependency_tracking" = xyes; then
3935 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3936 # This compiler won't grok `-c -o', but also, the minuso test has
3937 # not run yet. These depmodes are late enough in the game, and
3938 # so weak that their functioning should not be impacted.
3939 am__obj=conftest.${OBJEXT-o}
3944 if depmode=$depmode \
3945 source=sub/conftest.c object=$am__obj \
3946 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3947 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3948 >/dev/null 2>conftest.err &&
3949 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3950 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3951 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3952 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3953 # icc doesn't choke on unknown options, it will just issue warnings
3954 # or remarks (even with -Werror). So we grep stderr for any message
3955 # that says an option was ignored or not supported.
3956 # When given -MP, icc 7.0 and 7.1 complain thusly:
3957 # icc: Command line warning: ignoring option '-M'; no argument required
3958 # The diagnosis changed in icc 8.0:
3959 # icc: Command line remark: option '-MP' not supported
3960 if (grep 'ignoring option' conftest.err ||
3961 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3962 am_cv_CC_dependencies_compiler_type=$depmode
3971 am_cv_CC_dependencies_compiler_type=none
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3976 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3977 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3980 test "x$enable_dependency_tracking" != xno \
3981 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3983 am__fastdepCC_FALSE='#'
3985 am__fastdepCC_TRUE='#'
3986 am__fastdepCC_FALSE=
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3991 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3992 if ${ac_cv_path_SED+:} false; then :
3993 $as_echo_n "(cached) " >&6
3995 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3996 for ac_i in 1 2 3 4 5 6 7; do
3997 ac_script="$ac_script$as_nl$ac_script"
3999 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4000 { ac_script=; unset ac_script;}
4001 if test -z "$SED"; then
4002 ac_path_SED_found=false
4003 # Loop through the user's path and test for each of PROGNAME-LIST
4004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 test -z "$as_dir" && as_dir=.
4009 for ac_prog in sed gsed; do
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4012 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4013 # Check for GNU ac_path_SED and select it if it is found.
4014 # Check for GNU $ac_path_SED
4015 case `"$ac_path_SED" --version 2>&1` in
4017 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4020 $as_echo_n 0123456789 >"conftest.in"
4023 cat "conftest.in" "conftest.in" >"conftest.tmp"
4024 mv "conftest.tmp" "conftest.in"
4025 cp "conftest.in" "conftest.nl"
4026 $as_echo '' >> "conftest.nl"
4027 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4028 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4029 as_fn_arith $ac_count + 1 && ac_count=$as_val
4030 if test $ac_count -gt ${ac_path_SED_max-0}; then
4031 # Best one so far, save it but keep looking for a better one
4032 ac_cv_path_SED="$ac_path_SED"
4033 ac_path_SED_max=$ac_count
4035 # 10*(2^10) chars as input seems more than enough
4036 test $ac_count -gt 10 && break
4038 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4041 $ac_path_SED_found && break 3
4046 if test -z "$ac_cv_path_SED"; then
4047 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4055 $as_echo "$ac_cv_path_SED" >&6; }
4056 SED="$ac_cv_path_SED"
4059 test -z "$SED" && SED=sed
4060 Xsed="$SED -e 1s/^X//"
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4073 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4074 if ${ac_cv_path_GREP+:} false; then :
4075 $as_echo_n "(cached) " >&6
4077 if test -z "$GREP"; then
4078 ac_path_GREP_found=false
4079 # Loop through the user's path and test for each of PROGNAME-LIST
4080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4084 test -z "$as_dir" && as_dir=.
4085 for ac_prog in grep ggrep; do
4086 for ac_exec_ext in '' $ac_executable_extensions; do
4087 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4088 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4089 # Check for GNU ac_path_GREP and select it if it is found.
4090 # Check for GNU $ac_path_GREP
4091 case `"$ac_path_GREP" --version 2>&1` in
4093 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4096 $as_echo_n 0123456789 >"conftest.in"
4099 cat "conftest.in" "conftest.in" >"conftest.tmp"
4100 mv "conftest.tmp" "conftest.in"
4101 cp "conftest.in" "conftest.nl"
4102 $as_echo 'GREP' >> "conftest.nl"
4103 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4104 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4105 as_fn_arith $ac_count + 1 && ac_count=$as_val
4106 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4107 # Best one so far, save it but keep looking for a better one
4108 ac_cv_path_GREP="$ac_path_GREP"
4109 ac_path_GREP_max=$ac_count
4111 # 10*(2^10) chars as input seems more than enough
4112 test $ac_count -gt 10 && break
4114 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4117 $ac_path_GREP_found && break 3
4122 if test -z "$ac_cv_path_GREP"; then
4123 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4126 ac_cv_path_GREP=$GREP
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4131 $as_echo "$ac_cv_path_GREP" >&6; }
4132 GREP="$ac_cv_path_GREP"
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4136 $as_echo_n "checking for egrep... " >&6; }
4137 if ${ac_cv_path_EGREP+:} false; then :
4138 $as_echo_n "(cached) " >&6
4140 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4141 then ac_cv_path_EGREP="$GREP -E"
4143 if test -z "$EGREP"; then
4144 ac_path_EGREP_found=false
4145 # Loop through the user's path and test for each of PROGNAME-LIST
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4150 test -z "$as_dir" && as_dir=.
4151 for ac_prog in egrep; do
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4154 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4155 # Check for GNU ac_path_EGREP and select it if it is found.
4156 # Check for GNU $ac_path_EGREP
4157 case `"$ac_path_EGREP" --version 2>&1` in
4159 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4162 $as_echo_n 0123456789 >"conftest.in"
4165 cat "conftest.in" "conftest.in" >"conftest.tmp"
4166 mv "conftest.tmp" "conftest.in"
4167 cp "conftest.in" "conftest.nl"
4168 $as_echo 'EGREP' >> "conftest.nl"
4169 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4170 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4171 as_fn_arith $ac_count + 1 && ac_count=$as_val
4172 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4173 # Best one so far, save it but keep looking for a better one
4174 ac_cv_path_EGREP="$ac_path_EGREP"
4175 ac_path_EGREP_max=$ac_count
4177 # 10*(2^10) chars as input seems more than enough
4178 test $ac_count -gt 10 && break
4180 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4183 $ac_path_EGREP_found && break 3
4188 if test -z "$ac_cv_path_EGREP"; then
4189 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4192 ac_cv_path_EGREP=$EGREP
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4198 $as_echo "$ac_cv_path_EGREP" >&6; }
4199 EGREP="$ac_cv_path_EGREP"
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4203 $as_echo_n "checking for fgrep... " >&6; }
4204 if ${ac_cv_path_FGREP+:} false; then :
4205 $as_echo_n "(cached) " >&6
4207 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4208 then ac_cv_path_FGREP="$GREP -F"
4210 if test -z "$FGREP"; then
4211 ac_path_FGREP_found=false
4212 # Loop through the user's path and test for each of PROGNAME-LIST
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4217 test -z "$as_dir" && as_dir=.
4218 for ac_prog in fgrep; do
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4221 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4222 # Check for GNU ac_path_FGREP and select it if it is found.
4223 # Check for GNU $ac_path_FGREP
4224 case `"$ac_path_FGREP" --version 2>&1` in
4226 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4229 $as_echo_n 0123456789 >"conftest.in"
4232 cat "conftest.in" "conftest.in" >"conftest.tmp"
4233 mv "conftest.tmp" "conftest.in"
4234 cp "conftest.in" "conftest.nl"
4235 $as_echo 'FGREP' >> "conftest.nl"
4236 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4237 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4238 as_fn_arith $ac_count + 1 && ac_count=$as_val
4239 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4240 # Best one so far, save it but keep looking for a better one
4241 ac_cv_path_FGREP="$ac_path_FGREP"
4242 ac_path_FGREP_max=$ac_count
4244 # 10*(2^10) chars as input seems more than enough
4245 test $ac_count -gt 10 && break
4247 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4250 $ac_path_FGREP_found && break 3
4255 if test -z "$ac_cv_path_FGREP"; then
4256 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4259 ac_cv_path_FGREP=$FGREP
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4265 $as_echo "$ac_cv_path_FGREP" >&6; }
4266 FGREP="$ac_cv_path_FGREP"
4269 test -z "$GREP" && GREP=grep
4289 # Check whether --with-gnu-ld was given.
4290 if test "${with_gnu_ld+set}" = set; then :
4291 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4297 if test "$GCC" = yes; then
4298 # Check if gcc -print-prog-name=ld gives a path.
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4300 $as_echo_n "checking for ld used by $CC... " >&6; }
4303 # gcc leaves a trailing carriage return which upsets mingw
4304 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4306 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4309 # Accept absolute paths.
4311 re_direlt='/[^/][^/]*/\.\./'
4312 # Canonicalize the pathname of ld
4313 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4314 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4315 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4317 test -z "$LD" && LD="$ac_prog"
4320 # If it fails, then pretend we aren't using GCC.
4324 # If it is relative, then search for the first ld in PATH.
4328 elif test "$with_gnu_ld" = yes; then
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4330 $as_echo_n "checking for GNU ld... " >&6; }
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4333 $as_echo_n "checking for non-GNU ld... " >&6; }
4335 if ${lt_cv_path_LD+:} false; then :
4336 $as_echo_n "(cached) " >&6
4338 if test -z "$LD"; then
4339 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4340 for ac_dir in $PATH; do
4342 test -z "$ac_dir" && ac_dir=.
4343 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4344 lt_cv_path_LD="$ac_dir/$ac_prog"
4345 # Check to see if the program is GNU ld. I'd rather use --version,
4346 # but apparently some variants of GNU ld only accept -v.
4347 # Break only if it was the GNU/non-GNU ld that we prefer.
4348 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4349 *GNU* | *'with BFD'*)
4350 test "$with_gnu_ld" != no && break
4353 test "$with_gnu_ld" != yes && break
4360 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4365 if test -n "$LD"; then
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4367 $as_echo "$LD" >&6; }
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370 $as_echo "no" >&6; }
4372 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4374 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4375 if ${lt_cv_prog_gnu_ld+:} false; then :
4376 $as_echo_n "(cached) " >&6
4378 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4379 case `$LD -v 2>&1 </dev/null` in
4380 *GNU* | *'with BFD'*)
4381 lt_cv_prog_gnu_ld=yes
4384 lt_cv_prog_gnu_ld=no
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4389 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4390 with_gnu_ld=$lt_cv_prog_gnu_ld
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4401 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4402 if ${lt_cv_path_NM+:} false; then :
4403 $as_echo_n "(cached) " >&6
4405 if test -n "$NM"; then
4406 # Let the user override the test.
4409 lt_nm_to_check="${ac_tool_prefix}nm"
4410 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4411 lt_nm_to_check="$lt_nm_to_check nm"
4413 for lt_tmp_nm in $lt_nm_to_check; do
4414 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4415 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4417 test -z "$ac_dir" && ac_dir=.
4418 tmp_nm="$ac_dir/$lt_tmp_nm"
4419 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4420 # Check to see if the nm accepts a BSD-compat flag.
4421 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4422 # nm: unknown option "B" ignored
4423 # Tru64's nm complains that /dev/null is an invalid object file
4424 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4425 */dev/null* | *'Invalid file or object type'*)
4426 lt_cv_path_NM="$tmp_nm -B"
4430 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4432 lt_cv_path_NM="$tmp_nm -p"
4436 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4437 continue # so that we can try to find one that supports BSD flags
4446 : ${lt_cv_path_NM=no}
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4450 $as_echo "$lt_cv_path_NM" >&6; }
4451 if test "$lt_cv_path_NM" != "no"; then
4454 # Didn't find any BSD compatible name lister, look for dumpbin.
4455 if test -n "$DUMPBIN"; then :
4456 # Let the user override the test.
4458 if test -n "$ac_tool_prefix"; then
4459 for ac_prog in dumpbin "link -dump"
4461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4464 $as_echo_n "checking for $ac_word... " >&6; }
4465 if ${ac_cv_prog_DUMPBIN+:} false; then :
4466 $as_echo_n "(cached) " >&6
4468 if test -n "$DUMPBIN"; then
4469 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4478 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4488 DUMPBIN=$ac_cv_prog_DUMPBIN
4489 if test -n "$DUMPBIN"; then
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4491 $as_echo "$DUMPBIN" >&6; }
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4494 $as_echo "no" >&6; }
4498 test -n "$DUMPBIN" && break
4501 if test -z "$DUMPBIN"; then
4502 ac_ct_DUMPBIN=$DUMPBIN
4503 for ac_prog in dumpbin "link -dump"
4505 # Extract the first word of "$ac_prog", so it can be a program name with args.
4506 set dummy $ac_prog; ac_word=$2
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4508 $as_echo_n "checking for $ac_word... " >&6; }
4509 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4510 $as_echo_n "(cached) " >&6
4512 if test -n "$ac_ct_DUMPBIN"; then
4513 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4522 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4533 if test -n "$ac_ct_DUMPBIN"; then
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4535 $as_echo "$ac_ct_DUMPBIN" >&6; }
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538 $as_echo "no" >&6; }
4542 test -n "$ac_ct_DUMPBIN" && break
4545 if test "x$ac_ct_DUMPBIN" = x; then
4548 case $cross_compiling:$ac_tool_warned in
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4552 ac_tool_warned=yes ;;
4554 DUMPBIN=$ac_ct_DUMPBIN
4558 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4560 DUMPBIN="$DUMPBIN -symbols"
4568 if test "$DUMPBIN" != ":"; then
4572 test -z "$NM" && NM=nm
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4580 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4581 if ${lt_cv_nm_interface+:} false; then :
4582 $as_echo_n "(cached) " >&6
4584 lt_cv_nm_interface="BSD nm"
4585 echo "int some_variable = 0;" > conftest.$ac_ext
4586 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4587 (eval "$ac_compile" 2>conftest.err)
4588 cat conftest.err >&5
4589 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4590 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4591 cat conftest.err >&5
4592 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4593 cat conftest.out >&5
4594 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4595 lt_cv_nm_interface="MS dumpbin"
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4600 $as_echo "$lt_cv_nm_interface" >&6; }
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4603 $as_echo_n "checking whether ln -s works... " >&6; }
4605 if test "$LN_S" = "ln -s"; then
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4607 $as_echo "yes" >&6; }
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4610 $as_echo "no, using $LN_S" >&6; }
4613 # find the maximum length of command line arguments
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4615 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4616 if ${lt_cv_sys_max_cmd_len+:} false; then :
4617 $as_echo_n "(cached) " >&6
4624 # On DJGPP, this test can blow up pretty badly due to problems in libc
4625 # (any single argument exceeding 2000 bytes causes a buffer overrun
4626 # during glob expansion). Even if it were fixed, the result of this
4627 # check would be larger than it should be.
4628 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4632 # Under GNU Hurd, this test is not required because there is
4633 # no limit to the length of command line arguments.
4634 # Libtool will interpret -1 as no limit whatsoever
4635 lt_cv_sys_max_cmd_len=-1;
4638 cygwin* | mingw* | cegcc*)
4639 # On Win9x/ME, this test blows up -- it succeeds, but takes
4640 # about 5 minutes as the teststring grows exponentially.
4641 # Worse, since 9x/ME are not pre-emptively multitasking,
4642 # you end up with a "frozen" computer, even though with patience
4643 # the test eventually succeeds (with a max line length of 256k).
4644 # Instead, let's just punt: use the minimum linelength reported by
4645 # all of the supported platforms: 8192 (on NT/2K/XP).
4646 lt_cv_sys_max_cmd_len=8192;
4650 # On MiNT this can take a long time and run out of memory.
4651 lt_cv_sys_max_cmd_len=8192;
4655 # On AmigaOS with pdksh, this test takes hours, literally.
4656 # So we just punt and use a minimum line length of 8192.
4657 lt_cv_sys_max_cmd_len=8192;
4660 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4661 # This has been around since 386BSD, at least. Likely further.
4662 if test -x /sbin/sysctl; then
4663 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4664 elif test -x /usr/sbin/sysctl; then
4665 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4667 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4669 # And add a safety zone
4670 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4671 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4675 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4676 lt_cv_sys_max_cmd_len=196608
4680 # The test takes a long time on OS/2.
4681 lt_cv_sys_max_cmd_len=8192
4685 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4686 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4687 # nice to cause kernel panics so lets avoid the loop below.
4688 # First set a reasonable default.
4689 lt_cv_sys_max_cmd_len=16384
4691 if test -x /sbin/sysconfig; then
4692 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4693 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4698 lt_cv_sys_max_cmd_len=102400
4700 sysv5* | sco5v6* | sysv4.2uw2*)
4701 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4702 if test -n "$kargmax"; then
4703 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4705 lt_cv_sys_max_cmd_len=32768
4709 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4710 if test -n "$lt_cv_sys_max_cmd_len"; then
4711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4712 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4714 # Make teststring a little bigger before we do anything with it.
4715 # a 1K string should be a reasonable start.
4716 for i in 1 2 3 4 5 6 7 8 ; do
4717 teststring=$teststring$teststring
4719 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4720 # If test is not a shell built-in, we'll probably end up computing a
4721 # maximum length that is only half of the actual maximum length, but
4723 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4724 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4725 test $i != 17 # 1/2 MB should be enough
4728 teststring=$teststring$teststring
4730 # Only check the string length outside the loop.
4731 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4733 # Add a significant safety factor because C++ compilers can tack on
4734 # massive amounts of additional arguments before passing them to the
4735 # linker. It appears as though 1/2 is a usable value.
4736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4743 if test -n $lt_cv_sys_max_cmd_len ; then
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4745 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4748 $as_echo "none" >&6; }
4750 max_cmd_len=$lt_cv_sys_max_cmd_len
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4762 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4763 # Try some XSI features
4766 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4768 && eval 'test $(( 1 + 1 )) -eq 2 \
4769 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4772 $as_echo "$xsi_shell" >&6; }
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4776 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4778 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4780 && lt_shell_append=yes
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4782 $as_echo "$lt_shell_append" >&6; }
4785 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4795 # test EBCDIC or ASCII
4796 case `echo X|tr X '\101'` in
4797 A) # ASCII based system
4798 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4799 lt_SP2NL='tr \040 \012'
4800 lt_NL2SP='tr \015\012 \040\040'
4802 *) # EBCDIC based system
4803 lt_SP2NL='tr \100 \n'
4804 lt_NL2SP='tr \r\n \100\100'
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4817 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4818 if ${lt_cv_to_host_file_cmd+:} false; then :
4819 $as_echo_n "(cached) " >&6
4824 *-*-mingw* ) # actually msys
4825 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4828 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4830 * ) # otherwise, assume *nix
4831 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4837 *-*-mingw* ) # actually msys
4838 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4841 lt_cv_to_host_file_cmd=func_convert_file_noop
4843 * ) # otherwise, assume *nix
4844 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4848 * ) # unhandled hosts (and "normal" native builds)
4849 lt_cv_to_host_file_cmd=func_convert_file_noop
4855 to_host_file_cmd=$lt_cv_to_host_file_cmd
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4857 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4864 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4865 if ${lt_cv_to_tool_file_cmd+:} false; then :
4866 $as_echo_n "(cached) " >&6
4868 #assume ordinary cross tools, or native build.
4869 lt_cv_to_tool_file_cmd=func_convert_file_noop
4873 *-*-mingw* ) # actually msys
4874 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4882 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4884 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4891 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4892 if ${lt_cv_ld_reload_flag+:} false; then :
4893 $as_echo_n "(cached) " >&6
4895 lt_cv_ld_reload_flag='-r'
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4898 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4899 reload_flag=$lt_cv_ld_reload_flag
4900 case $reload_flag in
4902 *) reload_flag=" $reload_flag" ;;
4904 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4906 cygwin* | mingw* | pw32* | cegcc*)
4907 if test "$GCC" != yes; then
4912 if test "$GCC" = yes; then
4913 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4915 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4928 if test -n "$ac_tool_prefix"; then
4929 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4930 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932 $as_echo_n "checking for $ac_word... " >&6; }
4933 if ${ac_cv_prog_OBJDUMP+:} false; then :
4934 $as_echo_n "(cached) " >&6
4936 if test -n "$OBJDUMP"; then
4937 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4946 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 OBJDUMP=$ac_cv_prog_OBJDUMP
4957 if test -n "$OBJDUMP"; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4959 $as_echo "$OBJDUMP" >&6; }
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4967 if test -z "$ac_cv_prog_OBJDUMP"; then
4968 ac_ct_OBJDUMP=$OBJDUMP
4969 # Extract the first word of "objdump", so it can be a program name with args.
4970 set dummy objdump; ac_word=$2
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972 $as_echo_n "checking for $ac_word... " >&6; }
4973 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4974 $as_echo_n "(cached) " >&6
4976 if test -n "$ac_ct_OBJDUMP"; then
4977 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4986 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4996 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4997 if test -n "$ac_ct_OBJDUMP"; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4999 $as_echo "$ac_ct_OBJDUMP" >&6; }
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5005 if test "x$ac_ct_OBJDUMP" = x; then
5008 case $cross_compiling:$ac_tool_warned in
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5012 ac_tool_warned=yes ;;
5014 OBJDUMP=$ac_ct_OBJDUMP
5017 OBJDUMP="$ac_cv_prog_OBJDUMP"
5020 test -z "$OBJDUMP" && OBJDUMP=objdump
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5031 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5032 if ${lt_cv_deplibs_check_method+:} false; then :
5033 $as_echo_n "(cached) " >&6
5035 lt_cv_file_magic_cmd='$MAGIC_CMD'
5036 lt_cv_file_magic_test_file=
5037 lt_cv_deplibs_check_method='unknown'
5038 # Need to set the preceding variable on all platforms that support
5039 # interlibrary dependencies.
5040 # 'none' -- dependencies not supported.
5041 # `unknown' -- same as none, but documents that we really don't know.
5042 # 'pass_all' -- all dependencies passed with no checks.
5043 # 'test_compile' -- check by making test program.
5044 # 'file_magic [[regex]]' -- check by looking for files in library path
5045 # which responds to the $file_magic_cmd with a given extended regex.
5046 # If you have `file' or equivalent on your system and you're not sure
5047 # whether `pass_all' will *always* work, you probably want this one.
5051 lt_cv_deplibs_check_method=pass_all
5055 lt_cv_deplibs_check_method=pass_all
5059 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5060 lt_cv_file_magic_cmd='/usr/bin/file -L'
5061 lt_cv_file_magic_test_file=/shlib/libc.so
5065 # func_win32_libid is a shell function defined in ltmain.sh
5066 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5067 lt_cv_file_magic_cmd='func_win32_libid'
5071 # Base MSYS/MinGW do not provide the 'file' command needed by
5072 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5073 # unless we find 'file', for example because we are cross-compiling.
5074 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5075 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5076 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5077 lt_cv_file_magic_cmd='func_win32_libid'
5079 # Keep this pattern in sync with the one in func_win32_libid.
5080 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5081 lt_cv_file_magic_cmd='$OBJDUMP -f'
5086 # use the weaker test based on 'objdump'. See mingw*.
5087 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5088 lt_cv_file_magic_cmd='$OBJDUMP -f'
5091 darwin* | rhapsody*)
5092 lt_cv_deplibs_check_method=pass_all
5095 freebsd* | dragonfly*)
5096 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5099 # Not sure whether the presence of OpenBSD here was a mistake.
5100 # Let's accept both of them until this is cleared up.
5101 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5102 lt_cv_file_magic_cmd=/usr/bin/file
5103 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5107 lt_cv_deplibs_check_method=pass_all
5112 lt_cv_deplibs_check_method=pass_all
5116 lt_cv_deplibs_check_method=pass_all
5119 hpux10.20* | hpux11*)
5120 lt_cv_file_magic_cmd=/usr/bin/file
5123 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5124 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5127 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]'
5128 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5131 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5132 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5138 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5139 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5142 irix5* | irix6* | nonstopux*)
5144 *-32|*"-32 ") libmagic=32-bit;;
5145 *-n32|*"-n32 ") libmagic=N32;;
5146 *-64|*"-64 ") libmagic=64-bit;;
5147 *) libmagic=never-match;;
5149 lt_cv_deplibs_check_method=pass_all
5152 # This must be glibc/ELF.
5153 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5154 lt_cv_deplibs_check_method=pass_all
5158 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5159 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5161 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5166 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5167 lt_cv_file_magic_cmd=/usr/bin/file
5168 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5172 lt_cv_deplibs_check_method=pass_all
5176 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5177 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5179 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5183 osf3* | osf4* | osf5*)
5184 lt_cv_deplibs_check_method=pass_all
5188 lt_cv_deplibs_check_method=pass_all
5192 lt_cv_deplibs_check_method=pass_all
5195 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5196 lt_cv_deplibs_check_method=pass_all
5200 case $host_vendor in
5202 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]'
5203 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5206 lt_cv_deplibs_check_method=pass_all
5209 lt_cv_file_magic_cmd='/bin/file'
5210 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5213 lt_cv_file_magic_cmd='/bin/file'
5214 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5215 lt_cv_file_magic_test_file=/lib/libc.so
5218 lt_cv_deplibs_check_method=pass_all
5221 lt_cv_deplibs_check_method=pass_all
5227 lt_cv_deplibs_check_method=pass_all
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5233 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5237 if test "$build" = "$host"; then
5240 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5243 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5249 file_magic_cmd=$lt_cv_file_magic_cmd
5250 deplibs_check_method=$lt_cv_deplibs_check_method
5251 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5274 if test -n "$ac_tool_prefix"; then
5275 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5276 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278 $as_echo_n "checking for $ac_word... " >&6; }
5279 if ${ac_cv_prog_DLLTOOL+:} false; then :
5280 $as_echo_n "(cached) " >&6
5282 if test -n "$DLLTOOL"; then
5283 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5292 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 DLLTOOL=$ac_cv_prog_DLLTOOL
5303 if test -n "$DLLTOOL"; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5305 $as_echo "$DLLTOOL" >&6; }
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308 $as_echo "no" >&6; }
5313 if test -z "$ac_cv_prog_DLLTOOL"; then
5314 ac_ct_DLLTOOL=$DLLTOOL
5315 # Extract the first word of "dlltool", so it can be a program name with args.
5316 set dummy dlltool; ac_word=$2
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318 $as_echo_n "checking for $ac_word... " >&6; }
5319 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5320 $as_echo_n "(cached) " >&6
5322 if test -n "$ac_ct_DLLTOOL"; then
5323 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 test -z "$as_dir" && as_dir=.
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5332 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5343 if test -n "$ac_ct_DLLTOOL"; then
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5345 $as_echo "$ac_ct_DLLTOOL" >&6; }
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348 $as_echo "no" >&6; }
5351 if test "x$ac_ct_DLLTOOL" = x; then
5354 case $cross_compiling:$ac_tool_warned in
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5358 ac_tool_warned=yes ;;
5360 DLLTOOL=$ac_ct_DLLTOOL
5363 DLLTOOL="$ac_cv_prog_DLLTOOL"
5366 test -z "$DLLTOOL" && DLLTOOL=dlltool
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5378 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5379 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5380 $as_echo_n "(cached) " >&6
5382 lt_cv_sharedlib_from_linklib_cmd='unknown'
5385 cygwin* | mingw* | pw32* | cegcc*)
5386 # two different shell functions defined in ltmain.sh
5387 # decide which to use based on capabilities of $DLLTOOL
5388 case `$DLLTOOL --help 2>&1` in
5389 *--identify-strict*)
5390 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5393 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5398 # fallback: assume linklib IS sharedlib
5399 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5405 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5406 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5407 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5416 if test -n "$ac_tool_prefix"; then
5419 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5420 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if ${ac_cv_prog_AR+:} false; then :
5424 $as_echo_n "(cached) " >&6
5426 if test -n "$AR"; then
5427 ac_cv_prog_AR="$AR" # Let the user override the test.
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5436 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5447 if test -n "$AR"; then
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5449 $as_echo "$AR" >&6; }
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5456 test -n "$AR" && break
5459 if test -z "$AR"; then
5463 # Extract the first word of "$ac_prog", so it can be a program name with args.
5464 set dummy $ac_prog; ac_word=$2
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5466 $as_echo_n "checking for $ac_word... " >&6; }
5467 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5468 $as_echo_n "(cached) " >&6
5470 if test -n "$ac_ct_AR"; then
5471 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 test -z "$as_dir" && as_dir=.
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5480 ac_cv_prog_ac_ct_AR="$ac_prog"
5481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5491 if test -n "$ac_ct_AR"; then
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5493 $as_echo "$ac_ct_AR" >&6; }
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 $as_echo "no" >&6; }
5500 test -n "$ac_ct_AR" && break
5503 if test "x$ac_ct_AR" = x; then
5506 case $cross_compiling:$ac_tool_warned in
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5510 ac_tool_warned=yes ;;
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5530 $as_echo_n "checking for archiver @FILE support... " >&6; }
5531 if ${lt_cv_ar_at_file+:} false; then :
5532 $as_echo_n "(cached) " >&6
5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h. */
5546 if ac_fn_c_try_compile "$LINENO"; then :
5547 echo conftest.$ac_objext > conftest.lst
5548 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5550 (eval $lt_ar_try) 2>&5
5552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5553 test $ac_status = 0; }
5554 if test "$ac_status" -eq 0; then
5555 # Ensure the archiver fails upon bogus file names.
5556 rm -f conftest.$ac_objext libconftest.a
5557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5558 (eval $lt_ar_try) 2>&5
5560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5561 test $ac_status = 0; }
5562 if test "$ac_status" -ne 0; then
5566 rm -f conftest.* libconftest.a
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5573 $as_echo "$lt_cv_ar_at_file" >&6; }
5575 if test "x$lt_cv_ar_at_file" = xno; then
5578 archiver_list_spec=$lt_cv_ar_at_file
5587 if test -n "$ac_tool_prefix"; then
5588 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5589 set dummy ${ac_tool_prefix}strip; ac_word=$2
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591 $as_echo_n "checking for $ac_word... " >&6; }
5592 if ${ac_cv_prog_STRIP+:} false; then :
5593 $as_echo_n "(cached) " >&6
5595 if test -n "$STRIP"; then
5596 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602 test -z "$as_dir" && as_dir=.
5603 for ac_exec_ext in '' $ac_executable_extensions; do
5604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5605 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5615 STRIP=$ac_cv_prog_STRIP
5616 if test -n "$STRIP"; then
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5618 $as_echo "$STRIP" >&6; }
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 $as_echo "no" >&6; }
5626 if test -z "$ac_cv_prog_STRIP"; then
5628 # Extract the first word of "strip", so it can be a program name with args.
5629 set dummy strip; ac_word=$2
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631 $as_echo_n "checking for $ac_word... " >&6; }
5632 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5633 $as_echo_n "(cached) " >&6
5635 if test -n "$ac_ct_STRIP"; then
5636 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 test -z "$as_dir" && as_dir=.
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5645 ac_cv_prog_ac_ct_STRIP="strip"
5646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5656 if test -n "$ac_ct_STRIP"; then
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5658 $as_echo "$ac_ct_STRIP" >&6; }
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }
5664 if test "x$ac_ct_STRIP" = x; then
5667 case $cross_compiling:$ac_tool_warned in
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5671 ac_tool_warned=yes ;;
5676 STRIP="$ac_cv_prog_STRIP"
5679 test -z "$STRIP" && STRIP=:
5686 if test -n "$ac_tool_prefix"; then
5687 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5688 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5690 $as_echo_n "checking for $ac_word... " >&6; }
5691 if ${ac_cv_prog_RANLIB+:} false; then :
5692 $as_echo_n "(cached) " >&6
5694 if test -n "$RANLIB"; then
5695 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 test -z "$as_dir" && as_dir=.
5702 for ac_exec_ext in '' $ac_executable_extensions; do
5703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5704 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 RANLIB=$ac_cv_prog_RANLIB
5715 if test -n "$RANLIB"; then
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5717 $as_echo "$RANLIB" >&6; }
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720 $as_echo "no" >&6; }
5725 if test -z "$ac_cv_prog_RANLIB"; then
5726 ac_ct_RANLIB=$RANLIB
5727 # Extract the first word of "ranlib", so it can be a program name with args.
5728 set dummy ranlib; ac_word=$2
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5732 $as_echo_n "(cached) " >&6
5734 if test -n "$ac_ct_RANLIB"; then
5735 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5744 ac_cv_prog_ac_ct_RANLIB="ranlib"
5745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5754 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5755 if test -n "$ac_ct_RANLIB"; then
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5757 $as_echo "$ac_ct_RANLIB" >&6; }
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5763 if test "x$ac_ct_RANLIB" = x; then
5766 case $cross_compiling:$ac_tool_warned in
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5770 ac_tool_warned=yes ;;
5772 RANLIB=$ac_ct_RANLIB
5775 RANLIB="$ac_cv_prog_RANLIB"
5778 test -z "$RANLIB" && RANLIB=:
5785 # Determine commands to create old-style static archives.
5786 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5787 old_postinstall_cmds='chmod 644 $oldlib'
5788 old_postuninstall_cmds=
5790 if test -n "$RANLIB"; then
5793 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5796 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5799 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5804 lock_old_archive_extraction=yes ;;
5806 lock_old_archive_extraction=no ;;
5847 # If no C compiler was specified, use CC.
5850 # If no C compiler flags were specified, use CFLAGS.
5851 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5853 # Allow CC to be a program name with arguments.
5857 # Check for command to grab the raw symbol name followed by C symbol from nm.
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5859 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5860 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5861 $as_echo_n "(cached) " >&6
5864 # These are sane defaults that work on at least a few old systems.
5865 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5867 # Character class describing NM global symbol codes.
5868 symcode='[BCDEGRST]'
5870 # Regexp to match symbols that can be accessed directly from C.
5871 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5873 # Define system-specific variables.
5878 cygwin* | mingw* | pw32* | cegcc*)
5879 symcode='[ABCDGISTW]'
5882 if test "$host_cpu" = ia64; then
5883 symcode='[ABCDEGRST]'
5887 symcode='[BCDEGRST]'
5890 symcode='[BCDEGQRST]'
5901 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5909 # If we're using GNU nm, then use its standard symbol codes.
5910 case `$NM -V 2>&1` in
5911 *GNU* | *'with BFD'*)
5912 symcode='[ABCDGIRSTW]' ;;
5915 # Transform an extracted symbol line into a proper C declaration.
5916 # Some systems (esp. on ia64) link data and code symbols differently,
5917 # so use this general approach.
5918 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5920 # Transform an extracted symbol line into symbol name and symbol address
5921 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5922 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'"
5924 # Handle CRLF in mingw tool chain
5928 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5932 # Try without a prefix underscore, then with it.
5933 for ac_symprfx in "" "_"; do
5935 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5936 symxfrm="\\1 $ac_symprfx\\2 \\2"
5938 # Write the raw and C identifiers.
5939 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5940 # Fake it for dumpbin and say T for any non-static function
5941 # and D for any global variable.
5942 # Also find C++ and __fastcall symbols from MSVC++,
5943 # which start with @ or ?.
5944 lt_cv_sys_global_symbol_pipe="$AWK '"\
5945 " {last_section=section; section=\$ 3};"\
5946 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5947 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5948 " \$ 0!~/External *\|/{next};"\
5949 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5950 " {if(hide[section]) next};"\
5951 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5952 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5953 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5954 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5955 " ' prfx=^$ac_symprfx"
5957 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5959 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5961 # Check to see that the pipe works correctly.
5965 cat > conftest.$ac_ext <<_LT_EOF
5970 void nm_test_func(void);
5971 void nm_test_func(void){}
5975 int main(){nm_test_var='a';nm_test_func();return(0);}
5978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5979 (eval $ac_compile) 2>&5
5981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5982 test $ac_status = 0; }; then
5983 # Now try to grab the symbols.
5985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5986 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5989 test $ac_status = 0; } && test -s "$nlist"; then
5990 # Try sorting and uniquifying the output.
5991 if sort "$nlist" | uniq > "$nlist"T; then
5992 mv -f "$nlist"T "$nlist"
5997 # Make sure that we snagged all the symbols we need.
5998 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5999 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6000 cat <<_LT_EOF > conftest.$ac_ext
6001 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6002 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6003 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6004 relocations are performed -- see ld's documentation on pseudo-relocs. */
6005 # define LT_DLSYM_CONST
6006 #elif defined(__osf__)
6007 /* This system does not cope well with relocations in const data. */
6008 # define LT_DLSYM_CONST
6010 # define LT_DLSYM_CONST const
6018 # Now generate the symbol file.
6019 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6021 cat <<_LT_EOF >> conftest.$ac_ext
6023 /* The mapping between symbol names and symbols. */
6024 LT_DLSYM_CONST struct {
6028 lt__PROGRAM__LTX_preloaded_symbols[] =
6030 { "@PROGRAM@", (void *) 0 },
6032 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6033 cat <<\_LT_EOF >> conftest.$ac_ext
6037 /* This works around a problem in FreeBSD linker */
6038 #ifdef FREEBSD_WORKAROUND
6039 static const void *lt_preloaded_setup() {
6040 return lt__PROGRAM__LTX_preloaded_symbols;
6048 # Now try linking the two files.
6049 mv conftest.$ac_objext conftstm.$ac_objext
6050 lt_globsym_save_LIBS=$LIBS
6051 lt_globsym_save_CFLAGS=$CFLAGS
6052 LIBS="conftstm.$ac_objext"
6053 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6055 (eval $ac_link) 2>&5
6057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6058 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6061 LIBS=$lt_globsym_save_LIBS
6062 CFLAGS=$lt_globsym_save_CFLAGS
6064 echo "cannot find nm_test_func in $nlist" >&5
6067 echo "cannot find nm_test_var in $nlist" >&5
6070 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6073 echo "$progname: failed program was:" >&5
6074 cat conftest.$ac_ext >&5
6076 rm -rf conftest* conftst*
6078 # Do not use the global_symbol_pipe unless it works.
6079 if test "$pipe_works" = yes; then
6082 lt_cv_sys_global_symbol_pipe=
6088 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6089 lt_cv_sys_global_symbol_to_cdecl=
6091 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6093 $as_echo "failed" >&6; }
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6096 $as_echo "ok" >&6; }
6099 # Response file support.
6100 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6101 nm_file_list_spec='@'
6102 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6103 nm_file_list_spec='@'
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6133 $as_echo_n "checking for sysroot... " >&6; }
6135 # Check whether --with-sysroot was given.
6136 if test "${with_sysroot+set}" = set; then :
6137 withval=$with_sysroot;
6144 case ${with_sysroot} in #(
6146 if test "$GCC" = yes; then
6147 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6151 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6157 $as_echo "${with_sysroot}" >&6; }
6158 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6163 $as_echo "${lt_sysroot:-no}" >&6; }
6169 # Check whether --enable-libtool-lock was given.
6170 if test "${enable_libtool_lock+set}" = set; then :
6171 enableval=$enable_libtool_lock;
6174 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6176 # Some flags need to be propagated to the compiler or linker for good
6180 # Find out which ABI we are using.
6181 echo 'int i;' > conftest.$ac_ext
6182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6183 (eval $ac_compile) 2>&5
6185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6186 test $ac_status = 0; }; then
6187 case `/usr/bin/file conftest.$ac_objext` in
6199 # Find out which ABI we are using.
6200 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6202 (eval $ac_compile) 2>&5
6204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6205 test $ac_status = 0; }; then
6206 if test "$lt_cv_prog_gnu_ld" = yes; then
6207 case `/usr/bin/file conftest.$ac_objext` in
6209 LD="${LD-ld} -melf32bsmip"
6212 LD="${LD-ld} -melf32bmipn32"
6215 LD="${LD-ld} -melf64bmip"
6219 case `/usr/bin/file conftest.$ac_objext` in
6235 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6236 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6237 # Find out which ABI we are using.
6238 echo 'int i;' > conftest.$ac_ext
6239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6240 (eval $ac_compile) 2>&5
6242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6243 test $ac_status = 0; }; then
6244 case `/usr/bin/file conftest.o` in
6247 x86_64-*kfreebsd*-gnu)
6248 LD="${LD-ld} -m elf_i386_fbsd"
6251 LD="${LD-ld} -m elf_i386"
6253 ppc64-*linux*|powerpc64-*linux*)
6254 LD="${LD-ld} -m elf32ppclinux"
6257 LD="${LD-ld} -m elf_s390"
6260 LD="${LD-ld} -m elf32_sparc"
6266 x86_64-*kfreebsd*-gnu)
6267 LD="${LD-ld} -m elf_x86_64_fbsd"
6270 LD="${LD-ld} -m elf_x86_64"
6272 ppc*-*linux*|powerpc*-*linux*)
6273 LD="${LD-ld} -m elf64ppc"
6275 s390*-*linux*|s390*-*tpf*)
6276 LD="${LD-ld} -m elf64_s390"
6279 LD="${LD-ld} -m elf64_sparc"
6289 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6290 SAVE_CFLAGS="$CFLAGS"
6291 CFLAGS="$CFLAGS -belf"
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6293 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6294 if ${lt_cv_cc_needs_belf+:} false; then :
6295 $as_echo_n "(cached) " >&6
6298 ac_cpp='$CPP $CPPFLAGS'
6299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304 /* end confdefs.h. */
6314 if ac_fn_c_try_link "$LINENO"; then :
6315 lt_cv_cc_needs_belf=yes
6317 lt_cv_cc_needs_belf=no
6319 rm -f core conftest.err conftest.$ac_objext \
6320 conftest$ac_exeext conftest.$ac_ext
6322 ac_cpp='$CPP $CPPFLAGS'
6323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6329 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6330 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6331 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6332 CFLAGS="$SAVE_CFLAGS"
6336 # Find out which ABI we are using.
6337 echo 'int i;' > conftest.$ac_ext
6338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6339 (eval $ac_compile) 2>&5
6341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6342 test $ac_status = 0; }; then
6343 case `/usr/bin/file conftest.o` in
6345 case $lt_cv_prog_gnu_ld in
6349 LD="${LD-ld} -m elf_x86_64"
6352 LD="${LD-ld} -m elf64_sparc"
6355 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6356 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6361 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6373 need_locks="$enable_libtool_lock"
6375 if test -n "$ac_tool_prefix"; then
6376 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6377 set dummy ${ac_tool_prefix}mt; ac_word=$2
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379 $as_echo_n "checking for $ac_word... " >&6; }
6380 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6381 $as_echo_n "(cached) " >&6
6383 if test -n "$MANIFEST_TOOL"; then
6384 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6393 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6404 if test -n "$MANIFEST_TOOL"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6406 $as_echo "$MANIFEST_TOOL" >&6; }
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6414 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6415 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6416 # Extract the first word of "mt", so it can be a program name with args.
6417 set dummy mt; ac_word=$2
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419 $as_echo_n "checking for $ac_word... " >&6; }
6420 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6421 $as_echo_n "(cached) " >&6
6423 if test -n "$ac_ct_MANIFEST_TOOL"; then
6424 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6433 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6443 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6444 if test -n "$ac_ct_MANIFEST_TOOL"; then
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6446 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449 $as_echo "no" >&6; }
6452 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6455 case $cross_compiling:$ac_tool_warned in
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6459 ac_tool_warned=yes ;;
6461 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6464 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6467 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6469 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6470 if ${lt_cv_path_mainfest_tool+:} false; then :
6471 $as_echo_n "(cached) " >&6
6473 lt_cv_path_mainfest_tool=no
6474 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6475 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6476 cat conftest.err >&5
6477 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6478 lt_cv_path_mainfest_tool=yes
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6483 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6484 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6494 rhapsody* | darwin*)
6495 if test -n "$ac_tool_prefix"; then
6496 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6497 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499 $as_echo_n "checking for $ac_word... " >&6; }
6500 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6501 $as_echo_n "(cached) " >&6
6503 if test -n "$DSYMUTIL"; then
6504 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 test -z "$as_dir" && as_dir=.
6511 for ac_exec_ext in '' $ac_executable_extensions; do
6512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6513 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6523 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6524 if test -n "$DSYMUTIL"; then
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6526 $as_echo "$DSYMUTIL" >&6; }
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6529 $as_echo "no" >&6; }
6534 if test -z "$ac_cv_prog_DSYMUTIL"; then
6535 ac_ct_DSYMUTIL=$DSYMUTIL
6536 # Extract the first word of "dsymutil", so it can be a program name with args.
6537 set dummy dsymutil; ac_word=$2
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6539 $as_echo_n "checking for $ac_word... " >&6; }
6540 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6541 $as_echo_n "(cached) " >&6
6543 if test -n "$ac_ct_DSYMUTIL"; then
6544 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 test -z "$as_dir" && as_dir=.
6551 for ac_exec_ext in '' $ac_executable_extensions; do
6552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6553 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6564 if test -n "$ac_ct_DSYMUTIL"; then
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6566 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569 $as_echo "no" >&6; }
6572 if test "x$ac_ct_DSYMUTIL" = x; then
6575 case $cross_compiling:$ac_tool_warned in
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6579 ac_tool_warned=yes ;;
6581 DSYMUTIL=$ac_ct_DSYMUTIL
6584 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6587 if test -n "$ac_tool_prefix"; then
6588 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6589 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6591 $as_echo_n "checking for $ac_word... " >&6; }
6592 if ${ac_cv_prog_NMEDIT+:} false; then :
6593 $as_echo_n "(cached) " >&6
6595 if test -n "$NMEDIT"; then
6596 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6605 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6615 NMEDIT=$ac_cv_prog_NMEDIT
6616 if test -n "$NMEDIT"; then
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6618 $as_echo "$NMEDIT" >&6; }
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621 $as_echo "no" >&6; }
6626 if test -z "$ac_cv_prog_NMEDIT"; then
6627 ac_ct_NMEDIT=$NMEDIT
6628 # Extract the first word of "nmedit", so it can be a program name with args.
6629 set dummy nmedit; ac_word=$2
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6631 $as_echo_n "checking for $ac_word... " >&6; }
6632 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6633 $as_echo_n "(cached) " >&6
6635 if test -n "$ac_ct_NMEDIT"; then
6636 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 test -z "$as_dir" && as_dir=.
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6645 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6656 if test -n "$ac_ct_NMEDIT"; then
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6658 $as_echo "$ac_ct_NMEDIT" >&6; }
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6661 $as_echo "no" >&6; }
6664 if test "x$ac_ct_NMEDIT" = x; then
6667 case $cross_compiling:$ac_tool_warned in
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6671 ac_tool_warned=yes ;;
6673 NMEDIT=$ac_ct_NMEDIT
6676 NMEDIT="$ac_cv_prog_NMEDIT"
6679 if test -n "$ac_tool_prefix"; then
6680 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6681 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683 $as_echo_n "checking for $ac_word... " >&6; }
6684 if ${ac_cv_prog_LIPO+:} false; then :
6685 $as_echo_n "(cached) " >&6
6687 if test -n "$LIPO"; then
6688 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 LIPO=$ac_cv_prog_LIPO
6708 if test -n "$LIPO"; then
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6710 $as_echo "$LIPO" >&6; }
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713 $as_echo "no" >&6; }
6718 if test -z "$ac_cv_prog_LIPO"; then
6720 # Extract the first word of "lipo", so it can be a program name with args.
6721 set dummy lipo; ac_word=$2
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723 $as_echo_n "checking for $ac_word... " >&6; }
6724 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6725 $as_echo_n "(cached) " >&6
6727 if test -n "$ac_ct_LIPO"; then
6728 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737 ac_cv_prog_ac_ct_LIPO="lipo"
6738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6748 if test -n "$ac_ct_LIPO"; then
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6750 $as_echo "$ac_ct_LIPO" >&6; }
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 $as_echo "no" >&6; }
6756 if test "x$ac_ct_LIPO" = x; then
6759 case $cross_compiling:$ac_tool_warned in
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6763 ac_tool_warned=yes ;;
6768 LIPO="$ac_cv_prog_LIPO"
6771 if test -n "$ac_tool_prefix"; then
6772 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6773 set dummy ${ac_tool_prefix}otool; ac_word=$2
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775 $as_echo_n "checking for $ac_word... " >&6; }
6776 if ${ac_cv_prog_OTOOL+:} false; then :
6777 $as_echo_n "(cached) " >&6
6779 if test -n "$OTOOL"; then
6780 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 OTOOL=$ac_cv_prog_OTOOL
6800 if test -n "$OTOOL"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6802 $as_echo "$OTOOL" >&6; }
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805 $as_echo "no" >&6; }
6810 if test -z "$ac_cv_prog_OTOOL"; then
6812 # Extract the first word of "otool", so it can be a program name with args.
6813 set dummy otool; ac_word=$2
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815 $as_echo_n "checking for $ac_word... " >&6; }
6816 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6817 $as_echo_n "(cached) " >&6
6819 if test -n "$ac_ct_OTOOL"; then
6820 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6829 ac_cv_prog_ac_ct_OTOOL="otool"
6830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6840 if test -n "$ac_ct_OTOOL"; then
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6842 $as_echo "$ac_ct_OTOOL" >&6; }
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 $as_echo "no" >&6; }
6848 if test "x$ac_ct_OTOOL" = x; then
6851 case $cross_compiling:$ac_tool_warned in
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6855 ac_tool_warned=yes ;;
6860 OTOOL="$ac_cv_prog_OTOOL"
6863 if test -n "$ac_tool_prefix"; then
6864 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6865 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6867 $as_echo_n "checking for $ac_word... " >&6; }
6868 if ${ac_cv_prog_OTOOL64+:} false; then :
6869 $as_echo_n "(cached) " >&6
6871 if test -n "$OTOOL64"; then
6872 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 test -z "$as_dir" && as_dir=.
6879 for ac_exec_ext in '' $ac_executable_extensions; do
6880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6881 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 OTOOL64=$ac_cv_prog_OTOOL64
6892 if test -n "$OTOOL64"; then
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6894 $as_echo "$OTOOL64" >&6; }
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6897 $as_echo "no" >&6; }
6902 if test -z "$ac_cv_prog_OTOOL64"; then
6903 ac_ct_OTOOL64=$OTOOL64
6904 # Extract the first word of "otool64", so it can be a program name with args.
6905 set dummy otool64; ac_word=$2
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907 $as_echo_n "checking for $ac_word... " >&6; }
6908 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6909 $as_echo_n "(cached) " >&6
6911 if test -n "$ac_ct_OTOOL64"; then
6912 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6921 ac_cv_prog_ac_ct_OTOOL64="otool64"
6922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6932 if test -n "$ac_ct_OTOOL64"; then
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6934 $as_echo "$ac_ct_OTOOL64" >&6; }
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 $as_echo "no" >&6; }
6940 if test "x$ac_ct_OTOOL64" = x; then
6943 case $cross_compiling:$ac_tool_warned in
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6947 ac_tool_warned=yes ;;
6949 OTOOL64=$ac_ct_OTOOL64
6952 OTOOL64="$ac_cv_prog_OTOOL64"
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6982 $as_echo_n "checking for -single_module linker flag... " >&6; }
6983 if ${lt_cv_apple_cc_single_mod+:} false; then :
6984 $as_echo_n "(cached) " >&6
6986 lt_cv_apple_cc_single_mod=no
6987 if test -z "${LT_MULTI_MODULE}"; then
6988 # By default we will add the -single_module flag. You can override
6989 # by either setting the environment variable LT_MULTI_MODULE
6990 # non-empty at configure time, or by adding -multi_module to the
6992 rm -rf libconftest.dylib*
6993 echo "int foo(void){return 1;}" > conftest.c
6994 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6995 -dynamiclib -Wl,-single_module conftest.c" >&5
6996 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6997 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6999 # If there is a non-empty error log, and "single_module"
7000 # appears in it, assume the flag caused a linker warning
7001 if test -s conftest.err && $GREP single_module conftest.err; then
7002 cat conftest.err >&5
7003 # Otherwise, if the output was created with a 0 exit code from
7004 # the compiler, it worked.
7005 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7006 lt_cv_apple_cc_single_mod=yes
7008 cat conftest.err >&5
7010 rm -rf libconftest.dylib*
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7015 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7018 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7019 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7020 $as_echo_n "(cached) " >&6
7022 lt_cv_ld_exported_symbols_list=no
7023 save_LDFLAGS=$LDFLAGS
7024 echo "_main" > conftest.sym
7025 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h. */
7037 if ac_fn_c_try_link "$LINENO"; then :
7038 lt_cv_ld_exported_symbols_list=yes
7040 lt_cv_ld_exported_symbols_list=no
7042 rm -f core conftest.err conftest.$ac_objext \
7043 conftest$ac_exeext conftest.$ac_ext
7044 LDFLAGS="$save_LDFLAGS"
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7048 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7051 $as_echo_n "checking for -force_load linker flag... " >&6; }
7052 if ${lt_cv_ld_force_load+:} false; then :
7053 $as_echo_n "(cached) " >&6
7055 lt_cv_ld_force_load=no
7056 cat > conftest.c << _LT_EOF
7057 int forced_loaded() { return 2;}
7059 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7060 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7061 echo "$AR cru libconftest.a conftest.o" >&5
7062 $AR cru libconftest.a conftest.o 2>&5
7063 echo "$RANLIB libconftest.a" >&5
7064 $RANLIB libconftest.a 2>&5
7065 cat > conftest.c << _LT_EOF
7066 int main() { return 0;}
7068 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7069 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7071 if test -s conftest.err && $GREP force_load conftest.err; then
7072 cat conftest.err >&5
7073 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7074 lt_cv_ld_force_load=yes
7076 cat conftest.err >&5
7078 rm -f conftest.err libconftest.a conftest conftest.c
7079 rm -rf conftest.dSYM
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7083 $as_echo "$lt_cv_ld_force_load" >&6; }
7085 rhapsody* | darwin1.[012])
7086 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7088 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7089 darwin*) # darwin 5.x on
7090 # if running on 10.5 or later, the deployment target defaults
7091 # to the OS version, if on x86, and 10.4, the deployment
7092 # target defaults to 10.4. Don't you love it?
7093 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7094 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7095 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7097 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7099 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7103 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7104 _lt_dar_single_mod='$single_module'
7106 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7107 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7109 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7111 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7112 _lt_dsymutil='~$DSYMUTIL $lib || :'
7120 ac_cpp='$CPP $CPPFLAGS'
7121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7125 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7126 # On Suns, sometimes $CPP names a directory.
7127 if test -n "$CPP" && test -d "$CPP"; then
7130 if test -z "$CPP"; then
7131 if ${ac_cv_prog_CPP+:} false; then :
7132 $as_echo_n "(cached) " >&6
7134 # Double quotes because CPP needs to be expanded
7135 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7138 for ac_c_preproc_warn_flag in '' yes
7140 # Use a header file that comes with gcc, so configuring glibc
7141 # with a fresh cross-compiler works.
7142 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7143 # <limits.h> exists even on freestanding compilers.
7144 # On the NeXT, cc -E runs the code through the compiler's parser,
7145 # not just through cpp. "Syntax error" is here to catch this case.
7146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147 /* end confdefs.h. */
7149 # include <limits.h>
7151 # include <assert.h>
7155 if ac_fn_c_try_cpp "$LINENO"; then :
7158 # Broken: fails on valid input.
7161 rm -f conftest.err conftest.i conftest.$ac_ext
7163 # OK, works on sane cases. Now check whether nonexistent headers
7164 # can be detected and how.
7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h. */
7167 #include <ac_nonexistent.h>
7169 if ac_fn_c_try_cpp "$LINENO"; then :
7170 # Broken: success on invalid input.
7173 # Passes both tests.
7177 rm -f conftest.err conftest.i conftest.$ac_ext
7180 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7181 rm -f conftest.i conftest.err conftest.$ac_ext
7182 if $ac_preproc_ok; then :
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7195 $as_echo "$CPP" >&6; }
7197 for ac_c_preproc_warn_flag in '' yes
7199 # Use a header file that comes with gcc, so configuring glibc
7200 # with a fresh cross-compiler works.
7201 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7202 # <limits.h> exists even on freestanding compilers.
7203 # On the NeXT, cc -E runs the code through the compiler's parser,
7204 # not just through cpp. "Syntax error" is here to catch this case.
7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h. */
7208 # include <limits.h>
7210 # include <assert.h>
7214 if ac_fn_c_try_cpp "$LINENO"; then :
7217 # Broken: fails on valid input.
7220 rm -f conftest.err conftest.i conftest.$ac_ext
7222 # OK, works on sane cases. Now check whether nonexistent headers
7223 # can be detected and how.
7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h. */
7226 #include <ac_nonexistent.h>
7228 if ac_fn_c_try_cpp "$LINENO"; then :
7229 # Broken: success on invalid input.
7232 # Passes both tests.
7236 rm -f conftest.err conftest.i conftest.$ac_ext
7239 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7240 rm -f conftest.i conftest.err conftest.$ac_ext
7241 if $ac_preproc_ok; then :
7244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7246 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7247 See \`config.log' for more details" "$LINENO" 5; }
7251 ac_cpp='$CPP $CPPFLAGS'
7252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7258 $as_echo_n "checking for ANSI C header files... " >&6; }
7259 if ${ac_cv_header_stdc+:} false; then :
7260 $as_echo_n "(cached) " >&6
7262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263 /* end confdefs.h. */
7277 if ac_fn_c_try_compile "$LINENO"; then :
7278 ac_cv_header_stdc=yes
7280 ac_cv_header_stdc=no
7282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7284 if test $ac_cv_header_stdc = yes; then
7285 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7292 $EGREP "memchr" >/dev/null 2>&1; then :
7295 ac_cv_header_stdc=no
7301 if test $ac_cv_header_stdc = yes; then
7302 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h. */
7308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7309 $EGREP "free" >/dev/null 2>&1; then :
7312 ac_cv_header_stdc=no
7318 if test $ac_cv_header_stdc = yes; then
7319 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7320 if test "$cross_compiling" = yes; then :
7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324 /* end confdefs.h. */
7327 #if ((' ' & 0x0FF) == 0x020)
7328 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7329 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7331 # define ISLOWER(c) \
7332 (('a' <= (c) && (c) <= 'i') \
7333 || ('j' <= (c) && (c) <= 'r') \
7334 || ('s' <= (c) && (c) <= 'z'))
7335 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7338 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7343 for (i = 0; i < 256; i++)
7344 if (XOR (islower (i), ISLOWER (i))
7345 || toupper (i) != TOUPPER (i))
7350 if ac_fn_c_try_run "$LINENO"; then :
7353 ac_cv_header_stdc=no
7355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7356 conftest.$ac_objext conftest.beam conftest.$ac_ext
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7362 $as_echo "$ac_cv_header_stdc" >&6; }
7363 if test $ac_cv_header_stdc = yes; then
7365 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7369 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7370 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7371 inttypes.h stdint.h unistd.h
7373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7374 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7376 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7377 cat >>confdefs.h <<_ACEOF
7378 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7386 for ac_header in dlfcn.h
7388 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7390 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7391 cat >>confdefs.h <<_ACEOF
7392 #define HAVE_DLFCN_H 1
7413 # Check whether --enable-shared was given.
7414 if test "${enable_shared+set}" = set; then :
7415 enableval=$enable_shared; p=${PACKAGE-default}
7417 yes) enable_shared=yes ;;
7418 no) enable_shared=no ;;
7421 # Look at the argument we got. We use all the common list separators.
7422 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7423 for pkg in $enableval; do
7425 if test "X$pkg" = "X$p"; then
7444 # Check whether --enable-static was given.
7445 if test "${enable_static+set}" = set; then :
7446 enableval=$enable_static; p=${PACKAGE-default}
7448 yes) enable_static=yes ;;
7449 no) enable_static=no ;;
7452 # Look at the argument we got. We use all the common list separators.
7453 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7454 for pkg in $enableval; do
7456 if test "X$pkg" = "X$p"; then
7476 # Check whether --with-pic was given.
7477 if test "${with_pic+set}" = set; then :
7478 withval=$with_pic; lt_p=${PACKAGE-default}
7480 yes|no) pic_mode=$withval ;;
7483 # Look at the argument we got. We use all the common list separators.
7484 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7485 for lt_pkg in $withval; do
7487 if test "X$lt_pkg" = "X$lt_p"; then
7499 test -z "$pic_mode" && pic_mode=default
7507 # Check whether --enable-fast-install was given.
7508 if test "${enable_fast_install+set}" = set; then :
7509 enableval=$enable_fast_install; p=${PACKAGE-default}
7511 yes) enable_fast_install=yes ;;
7512 no) enable_fast_install=no ;;
7514 enable_fast_install=no
7515 # Look at the argument we got. We use all the common list separators.
7516 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7517 for pkg in $enableval; do
7519 if test "X$pkg" = "X$p"; then
7520 enable_fast_install=yes
7527 enable_fast_install=yes
7540 # This can be used to rebuild libtool when needed
7541 LIBTOOL_DEPS="$ltmain"
7543 # Always use our own libtool.
7544 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7575 test -z "$LN_S" && LN_S="ln -s"
7590 if test -n "${ZSH_VERSION+set}" ; then
7591 setopt NO_GLOB_SUBST
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7595 $as_echo_n "checking for objdir... " >&6; }
7596 if ${lt_cv_objdir+:} false; then :
7597 $as_echo_n "(cached) " >&6
7599 rm -f .libs 2>/dev/null
7600 mkdir .libs 2>/dev/null
7601 if test -d .libs; then
7604 # MS-DOS does not allow filenames that begin with a dot.
7607 rmdir .libs 2>/dev/null
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7610 $as_echo "$lt_cv_objdir" >&6; }
7611 objdir=$lt_cv_objdir
7617 cat >>confdefs.h <<_ACEOF
7618 #define LT_OBJDIR "$lt_cv_objdir/"
7626 # AIX sometimes has problems with the GCC collect2 program. For some
7627 # reason, if we set the COLLECT_NAMES environment variable, the problems
7628 # vanish in a puff of smoke.
7629 if test "X${COLLECT_NAMES+set}" != Xset; then
7631 export COLLECT_NAMES
7638 can_build_shared=yes
7640 # All known linkers require a `.a' archive for static linking (except MSVC,
7641 # which needs '.lib').
7644 with_gnu_ld="$lt_cv_prog_gnu_ld"
7647 old_CFLAGS="$CFLAGS"
7649 # Set sane defaults for various variables
7650 test -z "$CC" && CC=cc
7651 test -z "$LTCC" && LTCC=$CC
7652 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7653 test -z "$LD" && LD=ld
7654 test -z "$ac_objext" && ac_objext=o
7656 for cc_temp in $compiler""; do
7658 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7659 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7664 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7667 # Only perform the check for file, if the check method requires it
7668 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7669 case $deplibs_check_method in
7671 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7673 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7674 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7675 $as_echo_n "(cached) " >&6
7679 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7682 lt_save_MAGIC_CMD="$MAGIC_CMD"
7683 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7684 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7685 for ac_dir in $ac_dummy; do
7687 test -z "$ac_dir" && ac_dir=.
7688 if test -f $ac_dir/${ac_tool_prefix}file; then
7689 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7690 if test -n "$file_magic_test_file"; then
7691 case $deplibs_check_method in
7693 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7694 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7695 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7696 $EGREP "$file_magic_regex" > /dev/null; then
7701 *** Warning: the command libtool uses to detect shared libraries,
7702 *** $file_magic_cmd, produces output that libtool cannot recognize.
7703 *** The result is that libtool may fail to recognize shared libraries
7704 *** as such. This will affect the creation of libtool libraries that
7705 *** depend on shared libraries, but programs linked with such libtool
7706 *** libraries will work regardless of this problem. Nevertheless, you
7707 *** may want to report the problem to your system manager and/or to
7708 *** bug-libtool@gnu.org
7718 MAGIC_CMD="$lt_save_MAGIC_CMD"
7723 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7724 if test -n "$MAGIC_CMD"; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7726 $as_echo "$MAGIC_CMD" >&6; }
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7736 if test -z "$lt_cv_path_MAGIC_CMD"; then
7737 if test -n "$ac_tool_prefix"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7739 $as_echo_n "checking for file... " >&6; }
7740 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7741 $as_echo_n "(cached) " >&6
7745 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7748 lt_save_MAGIC_CMD="$MAGIC_CMD"
7749 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7750 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7751 for ac_dir in $ac_dummy; do
7753 test -z "$ac_dir" && ac_dir=.
7754 if test -f $ac_dir/file; then
7755 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7756 if test -n "$file_magic_test_file"; then
7757 case $deplibs_check_method in
7759 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7760 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7761 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7762 $EGREP "$file_magic_regex" > /dev/null; then
7767 *** Warning: the command libtool uses to detect shared libraries,
7768 *** $file_magic_cmd, produces output that libtool cannot recognize.
7769 *** The result is that libtool may fail to recognize shared libraries
7770 *** as such. This will affect the creation of libtool libraries that
7771 *** depend on shared libraries, but programs linked with such libtool
7772 *** libraries will work regardless of this problem. Nevertheless, you
7773 *** may want to report the problem to your system manager and/or to
7774 *** bug-libtool@gnu.org
7784 MAGIC_CMD="$lt_save_MAGIC_CMD"
7789 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7790 if test -n "$MAGIC_CMD"; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7792 $as_echo "$MAGIC_CMD" >&6; }
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7808 # Use C for the default configuration in the libtool script
7812 ac_cpp='$CPP $CPPFLAGS'
7813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7818 # Source file extension for C test sources.
7821 # Object file extension for compiled C test sources.
7825 # Code to be used in simple compile tests
7826 lt_simple_compile_test_code="int some_variable = 0;"
7828 # Code to be used in simple link tests
7829 lt_simple_link_test_code='int main(){return(0);}'
7837 # If no C compiler was specified, use CC.
7840 # If no C compiler flags were specified, use CFLAGS.
7841 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7843 # Allow CC to be a program name with arguments.
7846 # Save the default compiler, since it gets overwritten when the other
7847 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7848 compiler_DEFAULT=$CC
7850 # save warnings/boilerplate of simple test code
7851 ac_outfile=conftest.$ac_objext
7852 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7853 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7854 _lt_compiler_boilerplate=`cat conftest.err`
7857 ac_outfile=conftest.$ac_objext
7858 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7859 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7860 _lt_linker_boilerplate=`cat conftest.err`
7864 if test -n "$compiler"; then
7866 lt_prog_compiler_no_builtin_flag=
7868 if test "$GCC" = yes; then
7869 case $cc_basename in
7871 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7873 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7877 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7878 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7879 $as_echo_n "(cached) " >&6
7881 lt_cv_prog_compiler_rtti_exceptions=no
7882 ac_outfile=conftest.$ac_objext
7883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7884 lt_compiler_flag="-fno-rtti -fno-exceptions"
7885 # Insert the option either (1) after the last *FLAGS variable, or
7886 # (2) before a word containing "conftest.", or (3) at the end.
7887 # Note that $ac_compile itself does not contain backslashes and begins
7888 # with a dollar sign (not a hyphen), so the echo should work correctly.
7889 # The option is referenced via a variable to avoid confusing sed.
7890 lt_compile=`echo "$ac_compile" | $SED \
7891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7893 -e 's:$: $lt_compiler_flag:'`
7894 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7895 (eval "$lt_compile" 2>conftest.err)
7897 cat conftest.err >&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 if (exit $ac_status) && test -s "$ac_outfile"; then
7900 # The compiler can only warn and ignore the option if not recognized
7901 # So say no if there are warnings other than the usual output.
7902 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7903 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7904 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7905 lt_cv_prog_compiler_rtti_exceptions=yes
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7912 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7914 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7915 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7927 lt_prog_compiler_wl=
7928 lt_prog_compiler_pic=
7929 lt_prog_compiler_static=
7932 if test "$GCC" = yes; then
7933 lt_prog_compiler_wl='-Wl,'
7934 lt_prog_compiler_static='-static'
7938 # All AIX code is PIC.
7939 if test "$host_cpu" = ia64; then
7940 # AIX 5 now supports IA64 processor
7941 lt_prog_compiler_static='-Bstatic'
7948 # see comment about AmigaOS4 .so support
7949 lt_prog_compiler_pic='-fPIC'
7952 # FIXME: we need at least 68020 code to build shared libraries, but
7953 # adding the `-m68020' flag to GCC prevents building anything better,
7955 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7960 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7961 # PIC is the default for these OSes.
7964 mingw* | cygwin* | pw32* | os2* | cegcc*)
7965 # This hack is so that the source file can tell whether it is being
7966 # built for inclusion in a dll (and should export symbols for example).
7967 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7968 # (--disable-auto-import) libraries
7969 lt_prog_compiler_pic='-DDLL_EXPORT'
7972 darwin* | rhapsody*)
7973 # PIC is the default on this platform
7974 # Common symbols not allowed in MH_DYLIB files
7975 lt_prog_compiler_pic='-fno-common'
7979 # PIC is the default for Haiku.
7980 # The "-static" flag exists, but is broken.
7981 lt_prog_compiler_static=
7985 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7986 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7987 # sets the default TLS model and affects inlining.
7993 lt_prog_compiler_pic='-fPIC'
7999 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8000 # Instead, we relocate shared libraries at runtime.
8004 # Just because we use GCC doesn't mean we suddenly get shared libraries
8005 # on systems that don't support them.
8006 lt_prog_compiler_can_build_shared=no
8011 # QNX uses GNU C++, but need to define -shared option too, otherwise
8013 lt_prog_compiler_pic='-fPIC -shared'
8017 if test -d /usr/nec; then
8018 lt_prog_compiler_pic=-Kconform_pic
8023 lt_prog_compiler_pic='-fPIC'
8027 case $cc_basename in
8028 nvcc*) # Cuda Compiler Driver 2.2
8029 lt_prog_compiler_wl='-Xlinker '
8030 if test -n "$lt_prog_compiler_pic"; then
8031 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8036 # PORTME Check for flag to pass linker flags through the system compiler.
8039 lt_prog_compiler_wl='-Wl,'
8040 if test "$host_cpu" = ia64; then
8041 # AIX 5 now supports IA64 processor
8042 lt_prog_compiler_static='-Bstatic'
8044 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8048 mingw* | cygwin* | pw32* | os2* | cegcc*)
8049 # This hack is so that the source file can tell whether it is being
8050 # built for inclusion in a dll (and should export symbols for example).
8051 lt_prog_compiler_pic='-DDLL_EXPORT'
8054 hpux9* | hpux10* | hpux11*)
8055 lt_prog_compiler_wl='-Wl,'
8056 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8063 lt_prog_compiler_pic='+Z'
8066 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8067 lt_prog_compiler_static='${wl}-a ${wl}archive'
8070 irix5* | irix6* | nonstopux*)
8071 lt_prog_compiler_wl='-Wl,'
8072 # PIC (with -KPIC) is the default.
8073 lt_prog_compiler_static='-non_shared'
8076 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8077 case $cc_basename in
8078 # old Intel for x86_64 which still supported -KPIC.
8080 lt_prog_compiler_wl='-Wl,'
8081 lt_prog_compiler_pic='-KPIC'
8082 lt_prog_compiler_static='-static'
8084 # icc used to be incompatible with GCC.
8085 # ICC 10 doesn't accept -KPIC any more.
8087 lt_prog_compiler_wl='-Wl,'
8088 lt_prog_compiler_pic='-fPIC'
8089 lt_prog_compiler_static='-static'
8091 # Lahey Fortran 8.1.
8093 lt_prog_compiler_wl='-Wl,'
8094 lt_prog_compiler_pic='--shared'
8095 lt_prog_compiler_static='--static'
8098 # NAG Fortran compiler
8099 lt_prog_compiler_wl='-Wl,-Wl,,'
8100 lt_prog_compiler_pic='-PIC'
8101 lt_prog_compiler_static='-Bstatic'
8103 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8104 # Portland Group compilers (*not* the Pentium gcc compiler,
8105 # which looks to be a dead project)
8106 lt_prog_compiler_wl='-Wl,'
8107 lt_prog_compiler_pic='-fpic'
8108 lt_prog_compiler_static='-Bstatic'
8111 lt_prog_compiler_wl='-Wl,'
8112 # All Alpha code is PIC.
8113 lt_prog_compiler_static='-non_shared'
8115 xl* | bgxl* | bgf* | mpixl*)
8116 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8117 lt_prog_compiler_wl='-Wl,'
8118 lt_prog_compiler_pic='-qpic'
8119 lt_prog_compiler_static='-qstaticlink'
8122 case `$CC -V 2>&1 | sed 5q` in
8123 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8124 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8125 lt_prog_compiler_pic='-KPIC'
8126 lt_prog_compiler_static='-Bstatic'
8127 lt_prog_compiler_wl=''
8129 *Sun\ F* | *Sun*Fortran*)
8130 lt_prog_compiler_pic='-KPIC'
8131 lt_prog_compiler_static='-Bstatic'
8132 lt_prog_compiler_wl='-Qoption ld '
8136 lt_prog_compiler_pic='-KPIC'
8137 lt_prog_compiler_static='-Bstatic'
8138 lt_prog_compiler_wl='-Wl,'
8140 *Intel*\ [CF]*Compiler*)
8141 lt_prog_compiler_wl='-Wl,'
8142 lt_prog_compiler_pic='-fPIC'
8143 lt_prog_compiler_static='-static'
8146 lt_prog_compiler_wl='-Wl,'
8147 lt_prog_compiler_pic='-fpic'
8148 lt_prog_compiler_static='-Bstatic'
8156 lt_prog_compiler_pic='-KPIC'
8157 lt_prog_compiler_static='-Bstatic'
8161 # QNX uses GNU C++, but need to define -shared option too, otherwise
8163 lt_prog_compiler_pic='-fPIC -shared'
8166 osf3* | osf4* | osf5*)
8167 lt_prog_compiler_wl='-Wl,'
8168 # All OSF/1 code is PIC.
8169 lt_prog_compiler_static='-non_shared'
8173 lt_prog_compiler_static='-non_shared'
8177 lt_prog_compiler_pic='-KPIC'
8178 lt_prog_compiler_static='-Bstatic'
8179 case $cc_basename in
8180 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8181 lt_prog_compiler_wl='-Qoption ld ';;
8183 lt_prog_compiler_wl='-Wl,';;
8188 lt_prog_compiler_wl='-Qoption ld '
8189 lt_prog_compiler_pic='-PIC'
8190 lt_prog_compiler_static='-Bstatic'
8193 sysv4 | sysv4.2uw2* | sysv4.3*)
8194 lt_prog_compiler_wl='-Wl,'
8195 lt_prog_compiler_pic='-KPIC'
8196 lt_prog_compiler_static='-Bstatic'
8200 if test -d /usr/nec ;then
8201 lt_prog_compiler_pic='-Kconform_pic'
8202 lt_prog_compiler_static='-Bstatic'
8206 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8207 lt_prog_compiler_wl='-Wl,'
8208 lt_prog_compiler_pic='-KPIC'
8209 lt_prog_compiler_static='-Bstatic'
8213 lt_prog_compiler_wl='-Wl,'
8214 lt_prog_compiler_can_build_shared=no
8218 lt_prog_compiler_pic='-pic'
8219 lt_prog_compiler_static='-Bstatic'
8223 lt_prog_compiler_can_build_shared=no
8229 # For platforms which do not support PIC, -DPIC is meaningless:
8231 lt_prog_compiler_pic=
8234 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8239 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8240 if ${lt_cv_prog_compiler_pic+:} false; then :
8241 $as_echo_n "(cached) " >&6
8243 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8246 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8247 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8250 # Check to make sure the PIC flag actually works.
8252 if test -n "$lt_prog_compiler_pic"; then
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8254 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8255 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8256 $as_echo_n "(cached) " >&6
8258 lt_cv_prog_compiler_pic_works=no
8259 ac_outfile=conftest.$ac_objext
8260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8261 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8262 # Insert the option either (1) after the last *FLAGS variable, or
8263 # (2) before a word containing "conftest.", or (3) at the end.
8264 # Note that $ac_compile itself does not contain backslashes and begins
8265 # with a dollar sign (not a hyphen), so the echo should work correctly.
8266 # The option is referenced via a variable to avoid confusing sed.
8267 lt_compile=`echo "$ac_compile" | $SED \
8268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8270 -e 's:$: $lt_compiler_flag:'`
8271 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8272 (eval "$lt_compile" 2>conftest.err)
8274 cat conftest.err >&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 if (exit $ac_status) && test -s "$ac_outfile"; then
8277 # The compiler can only warn and ignore the option if not recognized
8278 # So say no if there are warnings other than the usual output.
8279 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8281 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8282 lt_cv_prog_compiler_pic_works=yes
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8289 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8291 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8292 case $lt_prog_compiler_pic in
8294 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8297 lt_prog_compiler_pic=
8298 lt_prog_compiler_can_build_shared=no
8314 # Check to make sure the static flag actually works.
8316 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8318 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8319 if ${lt_cv_prog_compiler_static_works+:} false; then :
8320 $as_echo_n "(cached) " >&6
8322 lt_cv_prog_compiler_static_works=no
8323 save_LDFLAGS="$LDFLAGS"
8324 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8325 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8326 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8327 # The linker can only warn and ignore the option if not recognized
8328 # So say no if there are warnings
8329 if test -s conftest.err; then
8330 # Append any errors to the config.log.
8331 cat conftest.err 1>&5
8332 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8333 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8334 if diff conftest.exp conftest.er2 >/dev/null; then
8335 lt_cv_prog_compiler_static_works=yes
8338 lt_cv_prog_compiler_static_works=yes
8342 LDFLAGS="$save_LDFLAGS"
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8346 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8348 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8351 lt_prog_compiler_static=
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8361 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8362 if ${lt_cv_prog_compiler_c_o+:} false; then :
8363 $as_echo_n "(cached) " >&6
8365 lt_cv_prog_compiler_c_o=no
8366 $RM -r conftest 2>/dev/null
8370 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8372 lt_compiler_flag="-o out/conftest2.$ac_objext"
8373 # Insert the option either (1) after the last *FLAGS variable, or
8374 # (2) before a word containing "conftest.", or (3) at the end.
8375 # Note that $ac_compile itself does not contain backslashes and begins
8376 # with a dollar sign (not a hyphen), so the echo should work correctly.
8377 lt_compile=`echo "$ac_compile" | $SED \
8378 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8379 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8380 -e 's:$: $lt_compiler_flag:'`
8381 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8382 (eval "$lt_compile" 2>out/conftest.err)
8384 cat out/conftest.err >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8388 # The compiler can only warn and ignore the option if not recognized
8389 # So say no if there are warnings
8390 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8391 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8392 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8393 lt_cv_prog_compiler_c_o=yes
8398 # SGI C++ compiler will create directory out/ii_files/ for
8399 # template instantiation
8400 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8401 $RM out/* && rmdir out
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8408 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8416 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8417 if ${lt_cv_prog_compiler_c_o+:} false; then :
8418 $as_echo_n "(cached) " >&6
8420 lt_cv_prog_compiler_c_o=no
8421 $RM -r conftest 2>/dev/null
8425 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8427 lt_compiler_flag="-o out/conftest2.$ac_objext"
8428 # Insert the option either (1) after the last *FLAGS variable, or
8429 # (2) before a word containing "conftest.", or (3) at the end.
8430 # Note that $ac_compile itself does not contain backslashes and begins
8431 # with a dollar sign (not a hyphen), so the echo should work correctly.
8432 lt_compile=`echo "$ac_compile" | $SED \
8433 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8435 -e 's:$: $lt_compiler_flag:'`
8436 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8437 (eval "$lt_compile" 2>out/conftest.err)
8439 cat out/conftest.err >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8443 # The compiler can only warn and ignore the option if not recognized
8444 # So say no if there are warnings
8445 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8446 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8447 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8448 lt_cv_prog_compiler_c_o=yes
8453 # SGI C++ compiler will create directory out/ii_files/ for
8454 # template instantiation
8455 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8456 $RM out/* && rmdir out
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8463 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8468 hard_links="nottested"
8469 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8470 # do not overwrite the value of need_locks provided by the user
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8472 $as_echo_n "checking if we can lock with hard links... " >&6; }
8475 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8477 ln conftest.a conftest.b 2>&5 || hard_links=no
8478 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8480 $as_echo "$hard_links" >&6; }
8481 if test "$hard_links" = no; then
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8483 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8496 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8499 allow_undefined_flag=
8500 always_export_symbols=no
8502 archive_expsym_cmds=
8503 compiler_needs_object=no
8504 enable_shared_with_static_runtimes=no
8505 export_dynamic_flag_spec=
8506 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8507 hardcode_automatic=no
8509 hardcode_direct_absolute=no
8510 hardcode_libdir_flag_spec=
8511 hardcode_libdir_separator=
8513 hardcode_shlibpath_var=unsupported
8515 link_all_deplibs=unknown
8518 old_archive_from_new_cmds=
8519 old_archive_from_expsyms_cmds=
8520 thread_safe_flag_spec=
8521 whole_archive_flag_spec=
8522 # include_expsyms should be a list of space-separated symbols to be *always*
8523 # included in the symbol list
8525 # exclude_expsyms can be an extended regexp of symbols to exclude
8526 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8527 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8528 # as well as any symbol that contains `d'.
8529 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8530 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8531 # platforms (ab)use it in PIC code, but their linkers get confused if
8532 # the symbol is explicitly referenced. Since portable code cannot
8533 # rely on this symbol name, it's probably fine to never include it in
8534 # preloaded symbol tables.
8535 # Exclude shared library initialization/finalization symbols.
8536 extract_expsyms_cmds=
8539 cygwin* | mingw* | pw32* | cegcc*)
8540 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8541 # When not using gcc, we currently assume that we are using
8542 # Microsoft Visual C++.
8543 if test "$GCC" != yes; then
8548 # we just hope/assume this is gcc and not c89 (= MSVC++)
8558 # On some targets, GNU ld is compatible enough with the native linker
8559 # that we're better off using the native interface for both.
8560 lt_use_gnu_ld_interface=no
8561 if test "$with_gnu_ld" = yes; then
8564 # The AIX port of GNU ld has always aspired to compatibility
8565 # with the native linker. However, as the warning in the GNU ld
8566 # block says, versions before 2.19.5* couldn't really create working
8567 # shared libraries, regardless of the interface used.
8568 case `$LD -v 2>&1` in
8569 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8570 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8571 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8573 lt_use_gnu_ld_interface=yes
8578 lt_use_gnu_ld_interface=yes
8583 if test "$lt_use_gnu_ld_interface" = yes; then
8584 # If archive_cmds runs LD, not CC, wlarc should be empty
8587 # Set some defaults for GNU ld with shared library support. These
8588 # are reset later if shared libraries are not supported. Putting them
8589 # here allows them to be overridden if necessary.
8590 runpath_var=LD_RUN_PATH
8591 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8592 export_dynamic_flag_spec='${wl}--export-dynamic'
8593 # ancient GNU ld didn't support --whole-archive et. al.
8594 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8595 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8597 whole_archive_flag_spec=
8599 supports_anon_versioning=no
8600 case `$LD -v 2>&1` in
8601 *GNU\ gold*) supports_anon_versioning=yes ;;
8602 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8603 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8604 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8605 *\ 2.11.*) ;; # other 2.11 versions
8606 *) supports_anon_versioning=yes ;;
8609 # See if GNU ld supports shared libraries.
8612 # On AIX/PPC, the GNU linker is very broken
8613 if test "$host_cpu" != ia64; then
8617 *** Warning: the GNU linker, at least up to release 2.19, is reported
8618 *** to be unable to reliably create shared libraries on AIX.
8619 *** Therefore, libtool is disabling shared libraries support. If you
8620 *** really care for shared libraries, you may want to install binutils
8621 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8622 *** You will then need to restart the configuration process.
8631 # see comment about AmigaOS4 .so support
8632 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8633 archive_expsym_cmds=''
8636 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)'
8637 hardcode_libdir_flag_spec='-L$libdir'
8638 hardcode_minus_L=yes
8644 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8645 allow_undefined_flag=unsupported
8646 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8647 # support --undefined. This deserves some investigation. FIXME
8648 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8654 cygwin* | mingw* | pw32* | cegcc*)
8655 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8656 # as there is no search path for DLLs.
8657 hardcode_libdir_flag_spec='-L$libdir'
8658 export_dynamic_flag_spec='${wl}--export-all-symbols'
8659 allow_undefined_flag=unsupported
8660 always_export_symbols=no
8661 enable_shared_with_static_runtimes=yes
8662 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'
8663 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8665 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8667 # If the export-symbols file already is a .def file (1st line
8668 # is EXPORTS), use it as is; otherwise, prepend...
8669 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8670 cp $export_symbols $output_objdir/$soname.def;
8672 echo EXPORTS > $output_objdir/$soname.def;
8673 cat $export_symbols >> $output_objdir/$soname.def;
8675 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8683 link_all_deplibs=yes
8688 hardcode_shlibpath_var=no
8689 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8690 export_dynamic_flag_spec='${wl}-E'
8691 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8692 # Instead, shared libraries are loaded at an image base (0x10000000 by
8693 # default) and relocated if they conflict, which is a slow very memory
8694 # consuming and fragmenting process. To avoid this, we pick a random,
8695 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8696 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8697 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8698 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'
8701 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8703 if test "$host_os" = linux-dietlibc; then
8704 case $cc_basename in
8705 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8708 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8709 && test "$tmp_diet" = no
8711 tmp_addflag=' $pic_flag'
8712 tmp_sharedflag='-shared'
8713 case $cc_basename,$host_cpu in
8714 pgcc*) # Portland Group C compiler
8715 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'
8716 tmp_addflag=' $pic_flag'
8718 pgf77* | pgf90* | pgf95* | pgfortran*)
8719 # Portland Group f77 and f90 compilers
8720 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'
8721 tmp_addflag=' $pic_flag -Mnomain' ;;
8722 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8723 tmp_addflag=' -i_dynamic' ;;
8724 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8725 tmp_addflag=' -i_dynamic -nofor_main' ;;
8726 ifc* | ifort*) # Intel Fortran compiler
8727 tmp_addflag=' -nofor_main' ;;
8728 lf95*) # Lahey Fortran 8.1
8729 whole_archive_flag_spec=
8730 tmp_sharedflag='--shared' ;;
8731 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8732 tmp_sharedflag='-qmkshrobj'
8734 nvcc*) # Cuda Compiler Driver 2.2
8735 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'
8736 compiler_needs_object=yes
8739 case `$CC -V 2>&1 | sed 5q` in
8740 *Sun\ C*) # Sun C 5.9
8741 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'
8742 compiler_needs_object=yes
8743 tmp_sharedflag='-G' ;;
8744 *Sun\ F*) # Sun Fortran 8.3
8745 tmp_sharedflag='-G' ;;
8747 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8749 if test "x$supports_anon_versioning" = xyes; then
8750 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8751 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8752 echo "local: *; };" >> $output_objdir/$libname.ver~
8753 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8756 case $cc_basename in
8757 xlf* | bgf* | bgxlf* | mpixlf*)
8758 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8759 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8760 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8761 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8762 if test "x$supports_anon_versioning" = xyes; then
8763 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8764 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8765 echo "local: *; };" >> $output_objdir/$libname.ver~
8766 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8776 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8777 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8780 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8781 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8786 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8790 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8791 *** create shared libraries on Solaris systems. Therefore, libtool
8792 *** is disabling shared libraries support. We urge you to upgrade GNU
8793 *** binutils to release 2.9.1 or newer. Another option is to modify
8794 *** your PATH or compiler configuration so that the native linker is
8795 *** used, and then restart.
8798 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8799 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8800 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8806 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8807 case `$LD -v 2>&1` in
8808 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8812 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8813 *** reliably create shared libraries on SCO systems. Therefore, libtool
8814 *** is disabling shared libraries support. We urge you to upgrade GNU
8815 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8816 *** your PATH or compiler configuration so that the native linker is
8817 *** used, and then restart.
8822 # For security reasons, it is highly recommended that you always
8823 # use absolute paths for naming shared libraries, and exclude the
8824 # DT_RUNPATH tag from executables and libraries. But doing so
8825 # requires that you compile everything twice, which is a pain.
8826 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8827 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8828 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8829 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8838 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8841 hardcode_shlibpath_var=no
8845 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8846 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8847 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8854 if test "$ld_shlibs" = no; then
8856 hardcode_libdir_flag_spec=
8857 export_dynamic_flag_spec=
8858 whole_archive_flag_spec=
8861 # PORTME fill in a description of your system's linker (not GNU ld)
8864 allow_undefined_flag=unsupported
8865 always_export_symbols=yes
8866 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'
8867 # Note: this linker hardcodes the directories in LIBPATH if there
8868 # are no directories specified by -L.
8869 hardcode_minus_L=yes
8870 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8871 # Neither direct hardcoding nor static linking is supported with a
8873 hardcode_direct=unsupported
8878 if test "$host_cpu" = ia64; then
8879 # On IA64, the linker does run time linking by default, so we don't
8880 # have to do anything special.
8881 aix_use_runtimelinking=no
8882 exp_sym_flag='-Bexport'
8885 # If we're using GNU nm, then we don't want the "-C" option.
8886 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8887 # Also, AIX nm treats weak defined symbols like other global
8888 # defined symbols, whereas GNU nm marks them as "W".
8889 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8890 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'
8892 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'
8894 aix_use_runtimelinking=no
8896 # Test if we are trying to use run time linking or normal
8897 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8898 # need to do runtime linking.
8899 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8900 for ld_flag in $LDFLAGS; do
8901 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8902 aix_use_runtimelinking=yes
8909 exp_sym_flag='-bexport'
8910 no_entry_flag='-bnoentry'
8913 # When large executables or shared objects are built, AIX ld can
8914 # have problems creating the table of contents. If linking a library
8915 # or program results in "error TOC overflow" add -mminimal-toc to
8916 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8917 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8921 hardcode_direct_absolute=yes
8922 hardcode_libdir_separator=':'
8923 link_all_deplibs=yes
8924 file_list_spec='${wl}-f,'
8926 if test "$GCC" = yes; then
8927 case $host_os in aix4.[012]|aix4.[012].*)
8928 # We only want to do this on AIX 4.2 and lower, the check
8929 # below for broken collect2 doesn't work under 4.3+
8930 collect2name=`${CC} -print-prog-name=collect2`
8931 if test -f "$collect2name" &&
8932 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8934 # We have reworked collect2
8937 # We have old collect2
8938 hardcode_direct=unsupported
8939 # It fails to find uninstalled libraries when the uninstalled
8940 # path is not listed in the libpath. Setting hardcode_minus_L
8941 # to unsupported forces relinking
8942 hardcode_minus_L=yes
8943 hardcode_libdir_flag_spec='-L$libdir'
8944 hardcode_libdir_separator=
8948 shared_flag='-shared'
8949 if test "$aix_use_runtimelinking" = yes; then
8950 shared_flag="$shared_flag "'${wl}-G'
8954 if test "$host_cpu" = ia64; then
8955 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8956 # chokes on -Wl,-G. The following line is correct:
8959 if test "$aix_use_runtimelinking" = yes; then
8960 shared_flag='${wl}-G'
8962 shared_flag='${wl}-bM:SRE'
8967 export_dynamic_flag_spec='${wl}-bexpall'
8968 # It seems that -bexpall does not export symbols beginning with
8969 # underscore (_), so it is better to generate a list of symbols to export.
8970 always_export_symbols=yes
8971 if test "$aix_use_runtimelinking" = yes; then
8972 # Warning - without using the other runtime loading flags (-brtl),
8973 # -berok will link without error, but may produce a broken library.
8974 allow_undefined_flag='-berok'
8975 # Determine the default libpath from the value encoded in an
8977 if test "${lt_cv_aix_libpath+set}" = set; then
8978 aix_libpath=$lt_cv_aix_libpath
8980 if ${lt_cv_aix_libpath_+:} false; then :
8981 $as_echo_n "(cached) " >&6
8983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984 /* end confdefs.h. */
8994 if ac_fn_c_try_link "$LINENO"; then :
8996 lt_aix_libpath_sed='
8997 /Import File Strings/,/^$/ {
8999 s/^0 *\([^ ]*\) *$/\1/
9003 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9004 # Check for a 64-bit object if we didn't find anything.
9005 if test -z "$lt_cv_aix_libpath_"; then
9006 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9009 rm -f core conftest.err conftest.$ac_objext \
9010 conftest$ac_exeext conftest.$ac_ext
9011 if test -z "$lt_cv_aix_libpath_"; then
9012 lt_cv_aix_libpath_="/usr/lib:/lib"
9017 aix_libpath=$lt_cv_aix_libpath_
9020 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9021 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"
9023 if test "$host_cpu" = ia64; then
9024 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9025 allow_undefined_flag="-z nodefs"
9026 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"
9028 # Determine the default libpath from the value encoded in an
9030 if test "${lt_cv_aix_libpath+set}" = set; then
9031 aix_libpath=$lt_cv_aix_libpath
9033 if ${lt_cv_aix_libpath_+:} false; then :
9034 $as_echo_n "(cached) " >&6
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9047 if ac_fn_c_try_link "$LINENO"; then :
9049 lt_aix_libpath_sed='
9050 /Import File Strings/,/^$/ {
9052 s/^0 *\([^ ]*\) *$/\1/
9056 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9057 # Check for a 64-bit object if we didn't find anything.
9058 if test -z "$lt_cv_aix_libpath_"; then
9059 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9062 rm -f core conftest.err conftest.$ac_objext \
9063 conftest$ac_exeext conftest.$ac_ext
9064 if test -z "$lt_cv_aix_libpath_"; then
9065 lt_cv_aix_libpath_="/usr/lib:/lib"
9070 aix_libpath=$lt_cv_aix_libpath_
9073 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9074 # Warning - without using the other run time loading flags,
9075 # -berok will link without error, but may produce a broken library.
9076 no_undefined_flag=' ${wl}-bernotok'
9077 allow_undefined_flag=' ${wl}-berok'
9078 if test "$with_gnu_ld" = yes; then
9079 # We only use this code for GNU lds that support --whole-archive.
9080 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9082 # Exported symbols can be pulled into shared objects from archives
9083 whole_archive_flag_spec='$convenience'
9085 archive_cmds_need_lc=yes
9086 # This is similar to how AIX traditionally builds its shared libraries.
9087 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'
9095 # see comment about AmigaOS4 .so support
9096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9097 archive_expsym_cmds=''
9100 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)'
9101 hardcode_libdir_flag_spec='-L$libdir'
9102 hardcode_minus_L=yes
9108 export_dynamic_flag_spec=-rdynamic
9111 cygwin* | mingw* | pw32* | cegcc*)
9112 # When not using gcc, we currently assume that we are using
9113 # Microsoft Visual C++.
9114 # hardcode_libdir_flag_spec is actually meaningless, as there is
9115 # no search path for DLLs.
9116 case $cc_basename in
9119 hardcode_libdir_flag_spec=' '
9120 allow_undefined_flag=unsupported
9121 always_export_symbols=yes
9123 # Tell ltmain to make .lib files, not .a files.
9125 # Tell ltmain to make .dll files, not .so files.
9127 # FIXME: Setting linknames here is a bad hack.
9128 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9129 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9130 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9132 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9134 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9136 # The linker will not automatically build a static lib if we build a DLL.
9137 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9138 enable_shared_with_static_runtimes=yes
9139 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9140 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9142 old_postinstall_cmds='chmod 644 $oldlib'
9143 postlink_cmds='lt_outputfile="@OUTPUT@"~
9144 lt_tool_outputfile="@TOOL_OUTPUT@"~
9145 case $lt_outputfile in
9148 lt_outputfile="$lt_outputfile.exe"
9149 lt_tool_outputfile="$lt_tool_outputfile.exe"
9152 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9153 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9154 $RM "$lt_outputfile.manifest";
9158 # Assume MSVC wrapper
9159 hardcode_libdir_flag_spec=' '
9160 allow_undefined_flag=unsupported
9161 # Tell ltmain to make .lib files, not .a files.
9163 # Tell ltmain to make .dll files, not .so files.
9165 # FIXME: Setting linknames here is a bad hack.
9166 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9167 # The linker will automatically build a .lib file if we build a DLL.
9168 old_archive_from_new_cmds='true'
9169 # FIXME: Should let the user specify the lib program.
9170 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9171 enable_shared_with_static_runtimes=yes
9176 darwin* | rhapsody*)
9179 archive_cmds_need_lc=no
9181 hardcode_automatic=yes
9182 hardcode_shlibpath_var=unsupported
9183 if test "$lt_cv_ld_force_load" = "yes"; then
9184 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\"`'
9187 whole_archive_flag_spec=''
9189 link_all_deplibs=yes
9190 allow_undefined_flag="$_lt_dar_allow_undefined"
9191 case $cc_basename in
9192 ifort*) _lt_dar_can_shared=yes ;;
9193 *) _lt_dar_can_shared=$GCC ;;
9195 if test "$_lt_dar_can_shared" = "yes"; then
9196 output_verbose_link_cmd=func_echo_all
9197 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9198 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9199 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}"
9200 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}"
9209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9210 hardcode_libdir_flag_spec='-L$libdir'
9211 hardcode_shlibpath_var=no
9214 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9215 # support. Future versions do this automatically, but an explicit c++rt0.o
9216 # does not break anything, and helps significantly (at the cost of a little
9219 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9220 hardcode_libdir_flag_spec='-R$libdir'
9222 hardcode_shlibpath_var=no
9225 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9227 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9229 hardcode_minus_L=yes
9230 hardcode_shlibpath_var=no
9233 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9234 freebsd* | dragonfly*)
9235 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9236 hardcode_libdir_flag_spec='-R$libdir'
9238 hardcode_shlibpath_var=no
9242 if test "$GCC" = yes; then
9243 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'
9245 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'
9247 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9248 hardcode_libdir_separator=:
9251 # hardcode_minus_L: Not really in the search PATH,
9252 # but as the default location of the library.
9253 hardcode_minus_L=yes
9254 export_dynamic_flag_spec='${wl}-E'
9258 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9259 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9261 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9263 if test "$with_gnu_ld" = no; then
9264 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9265 hardcode_libdir_separator=:
9267 hardcode_direct_absolute=yes
9268 export_dynamic_flag_spec='${wl}-E'
9269 # hardcode_minus_L: Not really in the search PATH,
9270 # but as the default location of the library.
9271 hardcode_minus_L=yes
9276 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9279 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9282 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9285 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9291 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9294 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9298 # Older versions of the 11.00 compiler do not understand -b yet
9299 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9301 $as_echo_n "checking if $CC understands -b... " >&6; }
9302 if ${lt_cv_prog_compiler__b+:} false; then :
9303 $as_echo_n "(cached) " >&6
9305 lt_cv_prog_compiler__b=no
9306 save_LDFLAGS="$LDFLAGS"
9307 LDFLAGS="$LDFLAGS -b"
9308 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9309 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9310 # The linker can only warn and ignore the option if not recognized
9311 # So say no if there are warnings
9312 if test -s conftest.err; then
9313 # Append any errors to the config.log.
9314 cat conftest.err 1>&5
9315 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9317 if diff conftest.exp conftest.er2 >/dev/null; then
9318 lt_cv_prog_compiler__b=yes
9321 lt_cv_prog_compiler__b=yes
9325 LDFLAGS="$save_LDFLAGS"
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9329 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9331 if test x"$lt_cv_prog_compiler__b" = xyes; then
9332 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9334 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9340 if test "$with_gnu_ld" = no; then
9341 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9342 hardcode_libdir_separator=:
9347 hardcode_shlibpath_var=no
9351 hardcode_direct_absolute=yes
9352 export_dynamic_flag_spec='${wl}-E'
9354 # hardcode_minus_L: Not really in the search PATH,
9355 # but as the default location of the library.
9356 hardcode_minus_L=yes
9362 irix5* | irix6* | nonstopux*)
9363 if test "$GCC" = yes; then
9364 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'
9365 # Try to use the -exported_symbol ld option, if it does not
9366 # work, assume that -exports_file does not work either and
9367 # implicitly export all symbols.
9368 # This should be the same for all languages, so no per-tag cache variable.
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9370 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9371 if ${lt_cv_irix_exported_symbol+:} false; then :
9372 $as_echo_n "(cached) " >&6
9374 save_LDFLAGS="$LDFLAGS"
9375 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h. */
9378 int foo (void) { return 0; }
9380 if ac_fn_c_try_link "$LINENO"; then :
9381 lt_cv_irix_exported_symbol=yes
9383 lt_cv_irix_exported_symbol=no
9385 rm -f core conftest.err conftest.$ac_objext \
9386 conftest$ac_exeext conftest.$ac_ext
9387 LDFLAGS="$save_LDFLAGS"
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9390 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9391 if test "$lt_cv_irix_exported_symbol" = yes; then
9392 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'
9395 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'
9396 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'
9398 archive_cmds_need_lc='no'
9399 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9400 hardcode_libdir_separator=:
9402 link_all_deplibs=yes
9406 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9407 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9409 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9411 hardcode_libdir_flag_spec='-R$libdir'
9413 hardcode_shlibpath_var=no
9417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9419 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9420 hardcode_libdir_separator=:
9421 hardcode_shlibpath_var=no
9428 if test -f /usr/libexec/ld.so; then
9430 hardcode_shlibpath_var=no
9431 hardcode_direct_absolute=yes
9432 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9433 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9434 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9435 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9436 export_dynamic_flag_spec='${wl}-E'
9439 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9440 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9441 hardcode_libdir_flag_spec='-R$libdir'
9444 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9445 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9455 hardcode_libdir_flag_spec='-L$libdir'
9456 hardcode_minus_L=yes
9457 allow_undefined_flag=unsupported
9458 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'
9459 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9463 if test "$GCC" = yes; then
9464 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9465 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'
9467 allow_undefined_flag=' -expect_unresolved \*'
9468 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'
9470 archive_cmds_need_lc='no'
9471 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9472 hardcode_libdir_separator=:
9475 osf4* | osf5*) # as osf3* with the addition of -msym flag
9476 if test "$GCC" = yes; then
9477 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9478 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'
9479 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9481 allow_undefined_flag=' -expect_unresolved \*'
9482 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'
9483 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~
9484 $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'
9486 # Both c and cxx compiler support -rpath directly
9487 hardcode_libdir_flag_spec='-rpath $libdir'
9489 archive_cmds_need_lc='no'
9490 hardcode_libdir_separator=:
9494 no_undefined_flag=' -z defs'
9495 if test "$GCC" = yes; then
9497 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9498 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9499 $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'
9501 case `$CC -V 2>&1` in
9504 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9505 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9506 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9510 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9511 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9512 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9516 hardcode_libdir_flag_spec='-R$libdir'
9517 hardcode_shlibpath_var=no
9519 solaris2.[0-5] | solaris2.[0-5].*) ;;
9521 # The compiler driver will combine and reorder linker options,
9522 # but understands `-z linker_flag'. GCC discards it without `$wl',
9523 # but is careful enough not to reorder.
9524 # Supported since Solaris 2.6 (maybe 2.5.1?)
9525 if test "$GCC" = yes; then
9526 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9528 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9532 link_all_deplibs=yes
9536 if test "x$host_vendor" = xsequent; then
9537 # Use $CC to link under sequent, because it throws in some extra .o
9538 # files that make .init and .fini sections work.
9539 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9541 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9543 hardcode_libdir_flag_spec='-L$libdir'
9545 hardcode_minus_L=yes
9546 hardcode_shlibpath_var=no
9550 case $host_vendor in
9552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9553 hardcode_direct=yes # is this really true???
9556 ## LD is ld it makes a PLAMLIB
9557 ## CC just makes a GrossModule.
9558 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9559 reload_cmds='$CC -r -o $output$reload_objs'
9563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9564 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9567 runpath_var='LD_RUN_PATH'
9568 hardcode_shlibpath_var=no
9572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9573 hardcode_shlibpath_var=no
9574 export_dynamic_flag_spec='-Bexport'
9578 if test -d /usr/nec; then
9579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9580 hardcode_shlibpath_var=no
9581 runpath_var=LD_RUN_PATH
9582 hardcode_runpath_var=yes
9587 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9588 no_undefined_flag='${wl}-z,text'
9589 archive_cmds_need_lc=no
9590 hardcode_shlibpath_var=no
9591 runpath_var='LD_RUN_PATH'
9593 if test "$GCC" = yes; then
9594 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9595 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9597 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9598 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9602 sysv5* | sco3.2v5* | sco5v6*)
9603 # Note: We can NOT use -z defs as we might desire, because we do not
9604 # link with -lc, and that would cause any symbols used from libc to
9605 # always be unresolved, which means just about no library would
9606 # ever link correctly. If we're not using GNU ld we use -z text
9607 # though, which does catch some bad symbols but isn't as heavy-handed
9609 no_undefined_flag='${wl}-z,text'
9610 allow_undefined_flag='${wl}-z,nodefs'
9611 archive_cmds_need_lc=no
9612 hardcode_shlibpath_var=no
9613 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9614 hardcode_libdir_separator=':'
9615 link_all_deplibs=yes
9616 export_dynamic_flag_spec='${wl}-Bexport'
9617 runpath_var='LD_RUN_PATH'
9619 if test "$GCC" = yes; then
9620 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9621 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9623 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9624 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9629 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9630 hardcode_libdir_flag_spec='-L$libdir'
9631 hardcode_shlibpath_var=no
9639 if test x$host_vendor = xsni; then
9641 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9642 export_dynamic_flag_spec='${wl}-Blargedynsym'
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9649 $as_echo "$ld_shlibs" >&6; }
9650 test "$ld_shlibs" = no && can_build_shared=no
9652 with_gnu_ld=$with_gnu_ld
9669 # Do we need to explicitly link libc?
9671 case "x$archive_cmds_need_lc" in
9673 # Assume -lc should be added
9674 archive_cmds_need_lc=yes
9676 if test "$enable_shared" = yes && test "$GCC" = yes; then
9677 case $archive_cmds in
9679 # FIXME: we may have to deal with multi-command sequences.
9682 # Test whether the compiler implicitly links with -lc since on some
9683 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9684 # to ld, don't add -lc before -lgcc.
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9686 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9687 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9688 $as_echo_n "(cached) " >&6
9691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9694 (eval $ac_compile) 2>&5
9696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9697 test $ac_status = 0; } 2>conftest.err; then
9700 libobjs=conftest.$ac_objext
9702 wl=$lt_prog_compiler_wl
9703 pic_flag=$lt_prog_compiler_pic
9709 lt_save_allow_undefined_flag=$allow_undefined_flag
9710 allow_undefined_flag=
9711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9712 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9715 test $ac_status = 0; }
9717 lt_cv_archive_cmds_need_lc=no
9719 lt_cv_archive_cmds_need_lc=yes
9721 allow_undefined_flag=$lt_save_allow_undefined_flag
9723 cat conftest.err 1>&5
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9729 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9730 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9889 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9891 if test "$GCC" = yes; then
9893 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9894 *) lt_awk_arg="/^libraries:/" ;;
9897 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9898 *) lt_sed_strip_eq="s,=/,/,g" ;;
9900 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9901 case $lt_search_path_spec in
9903 # if the path contains ";" then we assume it to be the separator
9904 # otherwise default to the standard path separator (i.e. ":") - it is
9905 # assumed that no part of a normal pathname contains ";" but that should
9906 # okay in the real world where ";" in dirpaths is itself problematic.
9907 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9910 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9913 # Ok, now we have the path, separated by spaces, we can step through it
9914 # and add multilib dir if necessary.
9915 lt_tmp_lt_search_path_spec=
9916 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9917 for lt_sys_path in $lt_search_path_spec; do
9918 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9919 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9921 test -d "$lt_sys_path" && \
9922 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9925 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9926 BEGIN {RS=" "; FS="/|\n";} {
9929 for (lt_i = NF; lt_i > 0; lt_i--) {
9930 if ($lt_i != "" && $lt_i != ".") {
9931 if ($lt_i == "..") {
9934 if (lt_count == 0) {
9935 lt_foo="/" $lt_i lt_foo;
9942 if (lt_foo != "") { lt_freq[lt_foo]++; }
9943 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9945 # AWK program above erroneously prepends '/' to C:/dos/paths
9948 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9949 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9951 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9953 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9956 libname_spec='lib$name'
9964 shlibpath_overrides_runpath=unknown
9966 dynamic_linker="$host_os ld.so"
9967 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9968 need_lib_prefix=unknown
9969 hardcode_into_libs=no
9971 # when you set need_version to no, make sure it does not cause -set_version
9972 # flags to be left without arguments
9973 need_version=unknown
9977 version_type=linux # correct to gnu/linux during the next big refactor
9978 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9979 shlibpath_var=LIBPATH
9981 # AIX 3 has no versioning support, so we append a major version to the name.
9982 soname_spec='${libname}${release}${shared_ext}$major'
9986 version_type=linux # correct to gnu/linux during the next big refactor
9989 hardcode_into_libs=yes
9990 if test "$host_cpu" = ia64; then
9991 # AIX 5 supports IA64
9992 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9993 shlibpath_var=LD_LIBRARY_PATH
9995 # With GCC up to 2.95.x, collect2 would create an import file
9996 # for dependence libraries. The import file would start with
9997 # the line `#! .'. This would cause the generated library to
9998 # depend on `.', always an invalid library. This was fixed in
9999 # development snapshots of GCC prior to 3.0.
10001 aix4 | aix4.[01] | aix4.[01].*)
10002 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10004 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10007 can_build_shared=no
10011 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10012 # soname into executable. Probably we can add versioning support to
10013 # collect2, so additional links can be useful in future.
10014 if test "$aix_use_runtimelinking" = yes; then
10015 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10016 # instead of lib<name>.a to let people know that these are not
10017 # typical AIX shared libraries.
10018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10020 # We preserve .a as extension for shared libraries through AIX4.2
10021 # and later when we are not doing run time linking.
10022 library_names_spec='${libname}${release}.a $libname.a'
10023 soname_spec='${libname}${release}${shared_ext}$major'
10025 shlibpath_var=LIBPATH
10032 # Since July 2007 AmigaOS4 officially supports .so libraries.
10033 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10037 library_names_spec='$libname.ixlibrary $libname.a'
10038 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10039 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'
10045 library_names_spec='${libname}${shared_ext}'
10046 dynamic_linker="$host_os ld.so"
10047 shlibpath_var=LIBRARY_PATH
10051 version_type=linux # correct to gnu/linux during the next big refactor
10053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10054 soname_spec='${libname}${release}${shared_ext}$major'
10055 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10056 shlibpath_var=LD_LIBRARY_PATH
10057 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10058 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10059 # the default ld.so.conf also contains /usr/contrib/lib and
10060 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10061 # libtool to hard-code these into programs
10064 cygwin* | mingw* | pw32* | cegcc*)
10065 version_type=windows
10070 case $GCC,$cc_basename in
10073 library_names_spec='$libname.dll.a'
10074 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10075 postinstall_cmds='base_file=`basename \${file}`~
10076 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10077 dldir=$destdir/`dirname \$dlpath`~
10078 test -d \$dldir || mkdir -p \$dldir~
10079 $install_prog $dir/$dlname \$dldir/$dlname~
10080 chmod a+x \$dldir/$dlname~
10081 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10082 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10084 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10085 dlpath=$dir/\$dldll~
10087 shlibpath_overrides_runpath=yes
10091 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10092 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10094 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10097 # MinGW DLLs use traditional 'lib' prefix
10098 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10101 # pw32 DLLs use 'pw' prefix rather than 'lib'
10102 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10105 dynamic_linker='Win32 ld.exe'
10110 libname_spec='$name'
10111 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10112 library_names_spec='${libname}.dll.lib'
10116 sys_lib_search_path_spec=
10119 for lt_path in $LIB
10122 # Let DOS variable expansion print the short 8.3 style file name.
10123 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10124 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10127 # Convert to MSYS style.
10128 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10131 # Convert to unix form, then to dos form, then back to unix form
10132 # but this time dos style (no spaces!) so that the unix form looks
10133 # like /cygdrive/c/PROGRA~1:/cygdr...
10134 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10135 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10136 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10139 sys_lib_search_path_spec="$LIB"
10140 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10141 # It is most probably a Windows format PATH.
10142 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10144 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10146 # FIXME: find the short name or the path components, as spaces are
10147 # common. (e.g. "Program Files" -> "PROGRA~1")
10151 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10152 postinstall_cmds='base_file=`basename \${file}`~
10153 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10154 dldir=$destdir/`dirname \$dlpath`~
10155 test -d \$dldir || mkdir -p \$dldir~
10156 $install_prog $dir/$dlname \$dldir/$dlname'
10157 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10158 dlpath=$dir/\$dldll~
10160 shlibpath_overrides_runpath=yes
10161 dynamic_linker='Win32 link.exe'
10165 # Assume MSVC wrapper
10166 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10167 dynamic_linker='Win32 ld.exe'
10170 # FIXME: first we should search . and the directory the executable is in
10174 darwin* | rhapsody*)
10175 dynamic_linker="$host_os dyld"
10176 version_type=darwin
10179 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10180 soname_spec='${libname}${release}${major}$shared_ext'
10181 shlibpath_overrides_runpath=yes
10182 shlibpath_var=DYLD_LIBRARY_PATH
10183 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10185 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10186 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10190 version_type=linux # correct to gnu/linux during the next big refactor
10193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10194 soname_spec='${libname}${release}${shared_ext}$major'
10195 shlibpath_var=LD_LIBRARY_PATH
10198 freebsd* | dragonfly*)
10199 # DragonFly does not have aout. When/if they implement a new
10200 # versioning mechanism, adjust this.
10201 if test -x /usr/bin/objformat; then
10202 objformat=`/usr/bin/objformat`
10205 freebsd[23].*) objformat=aout ;;
10206 *) objformat=elf ;;
10209 version_type=freebsd-$objformat
10210 case $version_type in
10212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10221 shlibpath_var=LD_LIBRARY_PATH
10224 shlibpath_overrides_runpath=yes
10226 freebsd3.[01]* | freebsdelf3.[01]*)
10227 shlibpath_overrides_runpath=yes
10228 hardcode_into_libs=yes
10230 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10231 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10232 shlibpath_overrides_runpath=no
10233 hardcode_into_libs=yes
10235 *) # from 4.6 on, and DragonFly
10236 shlibpath_overrides_runpath=yes
10237 hardcode_into_libs=yes
10243 version_type=linux # correct to gnu/linux during the next big refactor
10246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10247 soname_spec='${libname}${release}${shared_ext}$major'
10248 shlibpath_var=LD_LIBRARY_PATH
10249 shlibpath_overrides_runpath=no
10250 hardcode_into_libs=yes
10254 version_type=linux # correct to gnu/linux during the next big refactor
10257 dynamic_linker="$host_os runtime_loader"
10258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10259 soname_spec='${libname}${release}${shared_ext}$major'
10260 shlibpath_var=LIBRARY_PATH
10261 shlibpath_overrides_runpath=yes
10262 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10263 hardcode_into_libs=yes
10266 hpux9* | hpux10* | hpux11*)
10267 # Give a soname corresponding to the major version so that dld.sl refuses to
10268 # link against other versions.
10275 hardcode_into_libs=yes
10276 dynamic_linker="$host_os dld.so"
10277 shlibpath_var=LD_LIBRARY_PATH
10278 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10280 soname_spec='${libname}${release}${shared_ext}$major'
10281 if test "X$HPUX_IA64_MODE" = X32; then
10282 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10284 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10286 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10290 hardcode_into_libs=yes
10291 dynamic_linker="$host_os dld.sl"
10292 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10293 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10295 soname_spec='${libname}${release}${shared_ext}$major'
10296 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10297 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10301 dynamic_linker="$host_os dld.sl"
10302 shlibpath_var=SHLIB_PATH
10303 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305 soname_spec='${libname}${release}${shared_ext}$major'
10308 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10309 postinstall_cmds='chmod 555 $lib'
10310 # or fails outright, so override atomically:
10311 install_override_mode=555
10315 version_type=linux # correct to gnu/linux during the next big refactor
10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10319 soname_spec='${libname}${release}${shared_ext}$major'
10320 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10321 shlibpath_var=LD_LIBRARY_PATH
10322 shlibpath_overrides_runpath=no
10323 hardcode_into_libs=yes
10326 irix5* | irix6* | nonstopux*)
10328 nonstopux*) version_type=nonstopux ;;
10330 if test "$lt_cv_prog_gnu_ld" = yes; then
10331 version_type=linux # correct to gnu/linux during the next big refactor
10338 soname_spec='${libname}${release}${shared_ext}$major'
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10341 irix5* | nonstopux*)
10342 libsuff= shlibsuff=
10345 case $LD in # libtool.m4 will add one of these switches to LD
10346 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10347 libsuff= shlibsuff= libmagic=32-bit;;
10348 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10349 libsuff=32 shlibsuff=N32 libmagic=N32;;
10350 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10351 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10352 *) libsuff= shlibsuff= libmagic=never-match;;
10356 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10357 shlibpath_overrides_runpath=no
10358 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10359 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10360 hardcode_into_libs=yes
10363 # No shared lib support for Linux oldld, aout, or coff.
10364 linux*oldld* | linux*aout* | linux*coff*)
10368 # This must be glibc/ELF.
10369 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10370 version_type=linux # correct to gnu/linux during the next big refactor
10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10374 soname_spec='${libname}${release}${shared_ext}$major'
10375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10376 shlibpath_var=LD_LIBRARY_PATH
10377 shlibpath_overrides_runpath=no
10379 # Some binutils ld are patched to set DT_RUNPATH
10380 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10381 $as_echo_n "(cached) " >&6
10383 lt_cv_shlibpath_overrides_runpath=no
10384 save_LDFLAGS=$LDFLAGS
10385 save_libdir=$libdir
10386 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10387 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389 /* end confdefs.h. */
10399 if ac_fn_c_try_link "$LINENO"; then :
10400 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10401 lt_cv_shlibpath_overrides_runpath=yes
10404 rm -f core conftest.err conftest.$ac_objext \
10405 conftest$ac_exeext conftest.$ac_ext
10406 LDFLAGS=$save_LDFLAGS
10407 libdir=$save_libdir
10411 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10413 # This implies no fast_install, which is unacceptable.
10414 # Some rework will be needed to allow for fast_install
10415 # before this can be enabled.
10416 hardcode_into_libs=yes
10418 # Add ABI-specific directories to the system library path.
10419 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10421 # Append ld.so.conf contents to the search path
10422 if test -f /etc/ld.so.conf; then
10423 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' ' '`
10424 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10428 # We used to test for /lib/ld.so.1 and disable shared libraries on
10429 # powerpc, because MkLinux only supported shared libraries with the
10430 # GNU dynamic linker. Since this was broken with cross compilers,
10431 # most powerpc-linux boxes support dynamic linking these days and
10432 # people can always --disable-shared, the test was removed, and we
10433 # assume the GNU/Linux dynamic linker is in use.
10434 dynamic_linker='GNU/Linux ld.so'
10441 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10444 dynamic_linker='NetBSD (a.out) ld.so'
10446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10447 soname_spec='${libname}${release}${shared_ext}$major'
10448 dynamic_linker='NetBSD ld.elf_so'
10450 shlibpath_var=LD_LIBRARY_PATH
10451 shlibpath_overrides_runpath=yes
10452 hardcode_into_libs=yes
10456 version_type=linux # correct to gnu/linux during the next big refactor
10457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458 shlibpath_var=LD_LIBRARY_PATH
10459 shlibpath_overrides_runpath=yes
10466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10467 soname_spec='${libname}${release}${shared_ext}$major'
10468 shlibpath_var=LD_LIBRARY_PATH
10469 shlibpath_overrides_runpath=no
10470 hardcode_into_libs=yes
10471 dynamic_linker='ldqnx.so'
10476 sys_lib_dlsearch_path_spec="/usr/lib"
10478 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10480 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10481 *) need_version=no ;;
10483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10485 shlibpath_var=LD_LIBRARY_PATH
10486 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10488 openbsd2.[89] | openbsd2.[89].*)
10489 shlibpath_overrides_runpath=no
10492 shlibpath_overrides_runpath=yes
10496 shlibpath_overrides_runpath=yes
10501 libname_spec='$name'
10504 library_names_spec='$libname${shared_ext} $libname.a'
10505 dynamic_linker='OS/2 ld.exe'
10506 shlibpath_var=LIBPATH
10509 osf3* | osf4* | osf5*)
10513 soname_spec='${libname}${release}${shared_ext}$major'
10514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10515 shlibpath_var=LD_LIBRARY_PATH
10516 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10517 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10525 version_type=linux # correct to gnu/linux during the next big refactor
10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10529 soname_spec='${libname}${release}${shared_ext}$major'
10530 shlibpath_var=LD_LIBRARY_PATH
10531 shlibpath_overrides_runpath=yes
10532 hardcode_into_libs=yes
10533 # ldd complains unless libraries are executable
10534 postinstall_cmds='chmod +x $lib'
10539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10540 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10541 shlibpath_var=LD_LIBRARY_PATH
10542 shlibpath_overrides_runpath=yes
10543 if test "$with_gnu_ld" = yes; then
10550 version_type=linux # correct to gnu/linux during the next big refactor
10551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10552 soname_spec='${libname}${release}${shared_ext}$major'
10553 shlibpath_var=LD_LIBRARY_PATH
10554 case $host_vendor in
10556 shlibpath_overrides_runpath=no
10558 runpath_var=LD_RUN_PATH
10566 shlibpath_overrides_runpath=no
10567 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10573 if test -d /usr/nec ;then
10574 version_type=linux # correct to gnu/linux during the next big refactor
10575 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10576 soname_spec='$libname${shared_ext}.$major'
10577 shlibpath_var=LD_LIBRARY_PATH
10581 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10582 version_type=freebsd-elf
10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10586 soname_spec='${libname}${release}${shared_ext}$major'
10587 shlibpath_var=LD_LIBRARY_PATH
10588 shlibpath_overrides_runpath=yes
10589 hardcode_into_libs=yes
10590 if test "$with_gnu_ld" = yes; then
10591 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10593 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10596 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10600 sys_lib_dlsearch_path_spec='/usr/lib'
10604 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10605 version_type=linux # correct to gnu/linux during the next big refactor
10608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10609 shlibpath_var=LD_LIBRARY_PATH
10610 shlibpath_overrides_runpath=no
10611 hardcode_into_libs=yes
10615 version_type=linux # correct to gnu/linux during the next big refactor
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617 soname_spec='${libname}${release}${shared_ext}$major'
10618 shlibpath_var=LD_LIBRARY_PATH
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10626 $as_echo "$dynamic_linker" >&6; }
10627 test "$dynamic_linker" = no && can_build_shared=no
10629 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10630 if test "$GCC" = yes; then
10631 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10634 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10635 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10637 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10638 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10733 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10735 if test -n "$hardcode_libdir_flag_spec" ||
10736 test -n "$runpath_var" ||
10737 test "X$hardcode_automatic" = "Xyes" ; then
10739 # We can hardcode non-existent directories.
10740 if test "$hardcode_direct" != no &&
10741 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10742 # have to relink, otherwise we might link with an installed library
10743 # when we should be linking with a yet-to-be-installed one
10744 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10745 test "$hardcode_minus_L" != no; then
10746 # Linking always hardcodes the temporary library directory.
10747 hardcode_action=relink
10749 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10750 hardcode_action=immediate
10753 # We cannot hardcode anything, or else we can only hardcode existing
10755 hardcode_action=unsupported
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10758 $as_echo "$hardcode_action" >&6; }
10760 if test "$hardcode_action" = relink ||
10761 test "$inherit_rpath" = yes; then
10762 # Fast installation is not supported
10763 enable_fast_install=no
10764 elif test "$shlibpath_overrides_runpath" = yes ||
10765 test "$enable_shared" = no; then
10766 # Fast installation is not necessary
10767 enable_fast_install=needless
10775 if test "x$enable_dlopen" != xyes; then
10776 enable_dlopen=unknown
10777 enable_dlopen_self=unknown
10778 enable_dlopen_self_static=unknown
10785 lt_cv_dlopen="load_add_on"
10787 lt_cv_dlopen_self=yes
10790 mingw* | pw32* | cegcc*)
10791 lt_cv_dlopen="LoadLibrary"
10796 lt_cv_dlopen="dlopen"
10801 # if libdl is installed we need to link against it
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10803 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10804 if ${ac_cv_lib_dl_dlopen+:} false; then :
10805 $as_echo_n "(cached) " >&6
10807 ac_check_lib_save_LIBS=$LIBS
10809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h. */
10812 /* Override any GCC internal prototype to avoid an error.
10813 Use char because int might match the return type of a GCC
10814 builtin and then its argument prototype would still apply. */
10827 if ac_fn_c_try_link "$LINENO"; then :
10828 ac_cv_lib_dl_dlopen=yes
10830 ac_cv_lib_dl_dlopen=no
10832 rm -f core conftest.err conftest.$ac_objext \
10833 conftest$ac_exeext conftest.$ac_ext
10834 LIBS=$ac_check_lib_save_LIBS
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10837 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10838 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10839 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10842 lt_cv_dlopen="dyld"
10844 lt_cv_dlopen_self=yes
10851 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10852 if test "x$ac_cv_func_shl_load" = xyes; then :
10853 lt_cv_dlopen="shl_load"
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10856 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10857 if ${ac_cv_lib_dld_shl_load+:} false; then :
10858 $as_echo_n "(cached) " >&6
10860 ac_check_lib_save_LIBS=$LIBS
10862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10863 /* end confdefs.h. */
10865 /* Override any GCC internal prototype to avoid an error.
10866 Use char because int might match the return type of a GCC
10867 builtin and then its argument prototype would still apply. */
10875 return shl_load ();
10880 if ac_fn_c_try_link "$LINENO"; then :
10881 ac_cv_lib_dld_shl_load=yes
10883 ac_cv_lib_dld_shl_load=no
10885 rm -f core conftest.err conftest.$ac_objext \
10886 conftest$ac_exeext conftest.$ac_ext
10887 LIBS=$ac_check_lib_save_LIBS
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10890 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10891 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10892 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10894 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10895 if test "x$ac_cv_func_dlopen" = xyes; then :
10896 lt_cv_dlopen="dlopen"
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10899 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10900 if ${ac_cv_lib_dl_dlopen+:} false; then :
10901 $as_echo_n "(cached) " >&6
10903 ac_check_lib_save_LIBS=$LIBS
10905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906 /* end confdefs.h. */
10908 /* Override any GCC internal prototype to avoid an error.
10909 Use char because int might match the return type of a GCC
10910 builtin and then its argument prototype would still apply. */
10923 if ac_fn_c_try_link "$LINENO"; then :
10924 ac_cv_lib_dl_dlopen=yes
10926 ac_cv_lib_dl_dlopen=no
10928 rm -f core conftest.err conftest.$ac_objext \
10929 conftest$ac_exeext conftest.$ac_ext
10930 LIBS=$ac_check_lib_save_LIBS
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10933 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10934 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10935 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10938 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10939 if ${ac_cv_lib_svld_dlopen+:} false; then :
10940 $as_echo_n "(cached) " >&6
10942 ac_check_lib_save_LIBS=$LIBS
10943 LIBS="-lsvld $LIBS"
10944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h. */
10947 /* Override any GCC internal prototype to avoid an error.
10948 Use char because int might match the return type of a GCC
10949 builtin and then its argument prototype would still apply. */
10962 if ac_fn_c_try_link "$LINENO"; then :
10963 ac_cv_lib_svld_dlopen=yes
10965 ac_cv_lib_svld_dlopen=no
10967 rm -f core conftest.err conftest.$ac_objext \
10968 conftest$ac_exeext conftest.$ac_ext
10969 LIBS=$ac_check_lib_save_LIBS
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10972 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10973 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10974 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10977 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10978 if ${ac_cv_lib_dld_dld_link+:} false; then :
10979 $as_echo_n "(cached) " >&6
10981 ac_check_lib_save_LIBS=$LIBS
10983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984 /* end confdefs.h. */
10986 /* Override any GCC internal prototype to avoid an error.
10987 Use char because int might match the return type of a GCC
10988 builtin and then its argument prototype would still apply. */
10996 return dld_link ();
11001 if ac_fn_c_try_link "$LINENO"; then :
11002 ac_cv_lib_dld_dld_link=yes
11004 ac_cv_lib_dld_dld_link=no
11006 rm -f core conftest.err conftest.$ac_objext \
11007 conftest$ac_exeext conftest.$ac_ext
11008 LIBS=$ac_check_lib_save_LIBS
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11011 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11012 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11013 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11034 if test "x$lt_cv_dlopen" != xno; then
11040 case $lt_cv_dlopen in
11042 save_CPPFLAGS="$CPPFLAGS"
11043 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11045 save_LDFLAGS="$LDFLAGS"
11046 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11049 LIBS="$lt_cv_dlopen_libs $LIBS"
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11052 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11053 if ${lt_cv_dlopen_self+:} false; then :
11054 $as_echo_n "(cached) " >&6
11056 if test "$cross_compiling" = yes; then :
11057 lt_cv_dlopen_self=cross
11059 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11060 lt_status=$lt_dlunknown
11061 cat > conftest.$ac_ext <<_LT_EOF
11062 #line $LINENO "configure"
11063 #include "confdefs.h"
11072 # define LT_DLGLOBAL RTLD_GLOBAL
11075 # define LT_DLGLOBAL DL_GLOBAL
11077 # define LT_DLGLOBAL 0
11081 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11082 find out it does not work in some platform. */
11083 #ifndef LT_DLLAZY_OR_NOW
11085 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11088 # define LT_DLLAZY_OR_NOW DL_LAZY
11091 # define LT_DLLAZY_OR_NOW RTLD_NOW
11094 # define LT_DLLAZY_OR_NOW DL_NOW
11096 # define LT_DLLAZY_OR_NOW 0
11103 /* When -fvisbility=hidden is used, assume the code has been annotated
11104 correspondingly for the symbols needed. */
11105 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11106 int fnord () __attribute__((visibility("default")));
11109 int fnord () { return 42; }
11112 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11113 int status = $lt_dlunknown;
11117 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11120 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11121 else puts (dlerror ());
11123 /* dlclose (self); */
11131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11132 (eval $ac_link) 2>&5
11134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11135 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11136 (./conftest; exit; ) >&5 2>/dev/null
11138 case x$lt_status in
11139 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11140 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11141 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11144 # compilation failed
11145 lt_cv_dlopen_self=no
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11153 $as_echo "$lt_cv_dlopen_self" >&6; }
11155 if test "x$lt_cv_dlopen_self" = xyes; then
11156 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11158 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11159 if ${lt_cv_dlopen_self_static+:} false; then :
11160 $as_echo_n "(cached) " >&6
11162 if test "$cross_compiling" = yes; then :
11163 lt_cv_dlopen_self_static=cross
11165 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11166 lt_status=$lt_dlunknown
11167 cat > conftest.$ac_ext <<_LT_EOF
11168 #line $LINENO "configure"
11169 #include "confdefs.h"
11178 # define LT_DLGLOBAL RTLD_GLOBAL
11181 # define LT_DLGLOBAL DL_GLOBAL
11183 # define LT_DLGLOBAL 0
11187 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11188 find out it does not work in some platform. */
11189 #ifndef LT_DLLAZY_OR_NOW
11191 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11194 # define LT_DLLAZY_OR_NOW DL_LAZY
11197 # define LT_DLLAZY_OR_NOW RTLD_NOW
11200 # define LT_DLLAZY_OR_NOW DL_NOW
11202 # define LT_DLLAZY_OR_NOW 0
11209 /* When -fvisbility=hidden is used, assume the code has been annotated
11210 correspondingly for the symbols needed. */
11211 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11212 int fnord () __attribute__((visibility("default")));
11215 int fnord () { return 42; }
11218 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11219 int status = $lt_dlunknown;
11223 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11226 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11227 else puts (dlerror ());
11229 /* dlclose (self); */
11237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11238 (eval $ac_link) 2>&5
11240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11241 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11242 (./conftest; exit; ) >&5 2>/dev/null
11244 case x$lt_status in
11245 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11246 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11247 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11250 # compilation failed
11251 lt_cv_dlopen_self_static=no
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11259 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11262 CPPFLAGS="$save_CPPFLAGS"
11263 LDFLAGS="$save_LDFLAGS"
11268 case $lt_cv_dlopen_self in
11269 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11270 *) enable_dlopen_self=unknown ;;
11273 case $lt_cv_dlopen_self_static in
11274 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11275 *) enable_dlopen_self_static=unknown ;;
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11298 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11299 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11300 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11301 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11303 $as_echo "yes" >&6; }
11305 # FIXME - insert some real tests, host_os isn't really good enough
11308 if test -n "$STRIP" ; then
11309 striplib="$STRIP -x"
11310 old_striplib="$STRIP -S"
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11312 $as_echo "yes" >&6; }
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11315 $as_echo "no" >&6; }
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11320 $as_echo "no" >&6; }
11336 # Report which library types will actually be built
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11338 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11340 $as_echo "$can_build_shared" >&6; }
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11343 $as_echo_n "checking whether to build shared libraries... " >&6; }
11344 test "$can_build_shared" = "no" && enable_shared=no
11346 # On AIX, shared libraries and static libraries use the same namespace, and
11347 # are all built from PIC.
11350 test "$enable_shared" = yes && enable_static=no
11351 if test -n "$RANLIB"; then
11352 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11353 postinstall_cmds='$RANLIB $lib'
11358 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11359 test "$enable_shared" = yes && enable_static=no
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11364 $as_echo "$enable_shared" >&6; }
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11367 $as_echo_n "checking whether to build static libraries... " >&6; }
11368 # Make sure either enable_shared or enable_static is yes.
11369 test "$enable_shared" = yes || enable_static=yes
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11371 $as_echo "$enable_static" >&6; }
11378 ac_cpp='$CPP $CPPFLAGS'
11379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11399 ac_config_commands="$ac_config_commands libtool"
11404 # Only expand once:
11408 # Require xorg-macros minimum of 1.12 for DocBook external references
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11421 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11422 if ${ac_cv_prog_cc_c99+:} false; then :
11423 $as_echo_n "(cached) " >&6
11425 ac_cv_prog_cc_c99=no
11427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11428 /* end confdefs.h. */
11429 #include <stdarg.h>
11430 #include <stdbool.h>
11431 #include <stdlib.h>
11435 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11436 #define debug(...) fprintf (stderr, __VA_ARGS__)
11437 #define showlist(...) puts (#__VA_ARGS__)
11438 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11440 test_varargs_macros (void)
11445 debug ("X = %d\n", x);
11446 showlist (The first, second, and third items.);
11447 report (x>y, "x is %d but y is %d", x, y);
11450 // Check long long types.
11451 #define BIG64 18446744073709551615ull
11452 #define BIG32 4294967295ul
11453 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11455 your preprocessor is broken;
11459 your preprocessor is broken;
11461 static long long int bignum = -9223372036854775807LL;
11462 static unsigned long long int ubignum = BIG64;
11464 struct incomplete_array
11470 struct named_init {
11472 const wchar_t *name;
11476 typedef const char *ccp;
11479 test_restrict (ccp restrict text)
11481 // See if C++-style comments work.
11482 // Iterate through items via the restricted pointer.
11483 // Also check for declarations in for loops.
11484 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11489 // Check varargs and va_copy.
11491 test_varargs (const char *format, ...)
11494 va_start (args, format);
11496 va_copy (args_copy, args);
11506 case 's': // string
11507 str = va_arg (args_copy, const char *);
11510 number = va_arg (args_copy, int);
11513 fnumber = va_arg (args_copy, double);
11519 va_end (args_copy);
11528 _Bool success = false;
11531 if (test_restrict ("String literal") == 0)
11533 char *restrict newvar = "Another string";
11536 test_varargs ("s, d' f .", "string", 65, 34.234);
11537 test_varargs_macros ();
11539 // Check flexible array members.
11540 struct incomplete_array *ia =
11541 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11543 for (int i = 0; i < ia->datasize; ++i)
11544 ia->data[i] = i * 1.234;
11546 // Check named initializers.
11547 struct named_init ni = {
11549 .name = L"Test wide string",
11550 .average = 543.34343,
11555 int dynamic_array[ni.number];
11556 dynamic_array[ni.number - 1] = 543;
11558 // work around unused variable warnings
11559 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11560 || dynamic_array[ni.number - 1] != 543);
11566 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11568 CC="$ac_save_CC $ac_arg"
11569 if ac_fn_c_try_compile "$LINENO"; then :
11570 ac_cv_prog_cc_c99=$ac_arg
11572 rm -f core conftest.err conftest.$ac_objext
11573 test "x$ac_cv_prog_cc_c99" != "xno" && break
11575 rm -f conftest.$ac_ext
11580 case "x$ac_cv_prog_cc_c99" in
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11583 $as_echo "none needed" >&6; } ;;
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11586 $as_echo "unsupported" >&6; } ;;
11588 CC="$CC $ac_cv_prog_cc_c99"
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11590 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11592 if test "x$ac_cv_prog_cc_c99" != xno; then :
11601 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11602 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11608 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11609 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11615 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11616 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11629 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11630 if test -n "$ac_tool_prefix"; then
11631 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11632 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11634 $as_echo_n "checking for $ac_word... " >&6; }
11635 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11636 $as_echo_n "(cached) " >&6
11638 case $PKG_CONFIG in
11640 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11644 for as_dir in $PATH
11647 test -z "$as_dir" && as_dir=.
11648 for ac_exec_ext in '' $ac_executable_extensions; do
11649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11650 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11661 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11662 if test -n "$PKG_CONFIG"; then
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11664 $as_echo "$PKG_CONFIG" >&6; }
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11667 $as_echo "no" >&6; }
11672 if test -z "$ac_cv_path_PKG_CONFIG"; then
11673 ac_pt_PKG_CONFIG=$PKG_CONFIG
11674 # Extract the first word of "pkg-config", so it can be a program name with args.
11675 set dummy pkg-config; ac_word=$2
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11677 $as_echo_n "checking for $ac_word... " >&6; }
11678 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11679 $as_echo_n "(cached) " >&6
11681 case $ac_pt_PKG_CONFIG in
11683 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11687 for as_dir in $PATH
11690 test -z "$as_dir" && as_dir=.
11691 for ac_exec_ext in '' $ac_executable_extensions; do
11692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11693 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11704 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11705 if test -n "$ac_pt_PKG_CONFIG"; then
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11707 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11710 $as_echo "no" >&6; }
11713 if test "x$ac_pt_PKG_CONFIG" = x; then
11716 case $cross_compiling:$ac_tool_warned in
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11720 ac_tool_warned=yes ;;
11722 PKG_CONFIG=$ac_pt_PKG_CONFIG
11725 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11729 if test -n "$PKG_CONFIG"; then
11730 _pkg_min_version=0.9.0
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11732 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11733 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11735 $as_echo "yes" >&6; }
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738 $as_echo "no" >&6; }
11747 # Check whether --enable-selective-werror was given.
11748 if test "${enable_selective_werror+set}" = set; then :
11749 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11751 SELECTIVE_WERROR=yes
11758 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11759 if test "x$SUNCC" = "xyes"; then
11765 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11779 xorg_testset_save_CFLAGS="$CFLAGS"
11781 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11784 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11785 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11786 $as_echo_n "(cached) " >&6
11788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789 /* end confdefs.h. */
11792 if ac_fn_c_try_compile "$LINENO"; then :
11793 xorg_cv_cc_flag_unknown_warning_option=yes
11795 xorg_cv_cc_flag_unknown_warning_option=no
11797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11800 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11801 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11802 CFLAGS="$xorg_testset_save_CFLAGS"
11805 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11811 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11812 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11813 $as_echo_n "(cached) " >&6
11815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816 /* end confdefs.h. */
11819 if ac_fn_c_try_compile "$LINENO"; then :
11820 xorg_cv_cc_flag_unused_command_line_argument=yes
11822 xorg_cv_cc_flag_unused_command_line_argument=no
11824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11827 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11828 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11829 CFLAGS="$xorg_testset_save_CFLAGS"
11834 if test $found = "no" ; then
11835 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11839 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11843 CFLAGS="$CFLAGS -Wall"
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11846 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11847 cacheid=xorg_cv_cc_flag__Wall
11848 if eval \${$cacheid+:} false; then :
11849 $as_echo_n "(cached) " >&6
11851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11852 /* end confdefs.h. */
11862 if ac_fn_c_try_link "$LINENO"; then :
11867 rm -f core conftest.err conftest.$ac_objext \
11868 conftest$ac_exeext conftest.$ac_ext
11872 CFLAGS="$xorg_testset_save_CFLAGS"
11874 eval supported=\$$cacheid
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11876 $as_echo "$supported" >&6; }
11877 if test "$supported" = "yes" ; then
11878 BASE_CFLAGS="$BASE_CFLAGS -Wall"
11897 xorg_testset_save_CFLAGS="$CFLAGS"
11899 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11902 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11903 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11904 $as_echo_n "(cached) " >&6
11906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907 /* end confdefs.h. */
11910 if ac_fn_c_try_compile "$LINENO"; then :
11911 xorg_cv_cc_flag_unknown_warning_option=yes
11913 xorg_cv_cc_flag_unknown_warning_option=no
11915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11918 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11919 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11920 CFLAGS="$xorg_testset_save_CFLAGS"
11923 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11929 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11930 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11931 $as_echo_n "(cached) " >&6
11933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11934 /* end confdefs.h. */
11937 if ac_fn_c_try_compile "$LINENO"; then :
11938 xorg_cv_cc_flag_unused_command_line_argument=yes
11940 xorg_cv_cc_flag_unused_command_line_argument=no
11942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11945 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11947 CFLAGS="$xorg_testset_save_CFLAGS"
11952 if test $found = "no" ; then
11953 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11957 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11961 CFLAGS="$CFLAGS -Wpointer-arith"
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
11964 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
11965 cacheid=xorg_cv_cc_flag__Wpointer_arith
11966 if eval \${$cacheid+:} false; then :
11967 $as_echo_n "(cached) " >&6
11969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11970 /* end confdefs.h. */
11980 if ac_fn_c_try_link "$LINENO"; then :
11985 rm -f core conftest.err conftest.$ac_objext \
11986 conftest$ac_exeext conftest.$ac_ext
11990 CFLAGS="$xorg_testset_save_CFLAGS"
11992 eval supported=\$$cacheid
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11994 $as_echo "$supported" >&6; }
11995 if test "$supported" = "yes" ; then
11996 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12015 xorg_testset_save_CFLAGS="$CFLAGS"
12017 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12020 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12021 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12022 $as_echo_n "(cached) " >&6
12024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025 /* end confdefs.h. */
12028 if ac_fn_c_try_compile "$LINENO"; then :
12029 xorg_cv_cc_flag_unknown_warning_option=yes
12031 xorg_cv_cc_flag_unknown_warning_option=no
12033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12036 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12037 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12038 CFLAGS="$xorg_testset_save_CFLAGS"
12041 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12047 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12048 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12049 $as_echo_n "(cached) " >&6
12051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052 /* end confdefs.h. */
12055 if ac_fn_c_try_compile "$LINENO"; then :
12056 xorg_cv_cc_flag_unused_command_line_argument=yes
12058 xorg_cv_cc_flag_unused_command_line_argument=no
12060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12063 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12065 CFLAGS="$xorg_testset_save_CFLAGS"
12070 if test $found = "no" ; then
12071 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12075 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12079 CFLAGS="$CFLAGS -Wmissing-declarations"
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12082 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12083 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12084 if eval \${$cacheid+:} false; then :
12085 $as_echo_n "(cached) " >&6
12087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12088 /* end confdefs.h. */
12098 if ac_fn_c_try_link "$LINENO"; then :
12103 rm -f core conftest.err conftest.$ac_objext \
12104 conftest$ac_exeext conftest.$ac_ext
12108 CFLAGS="$xorg_testset_save_CFLAGS"
12110 eval supported=\$$cacheid
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12112 $as_echo "$supported" >&6; }
12113 if test "$supported" = "yes" ; then
12114 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12133 xorg_testset_save_CFLAGS="$CFLAGS"
12135 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12138 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12139 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12140 $as_echo_n "(cached) " >&6
12142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143 /* end confdefs.h. */
12146 if ac_fn_c_try_compile "$LINENO"; then :
12147 xorg_cv_cc_flag_unknown_warning_option=yes
12149 xorg_cv_cc_flag_unknown_warning_option=no
12151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12154 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12155 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12156 CFLAGS="$xorg_testset_save_CFLAGS"
12159 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12165 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12166 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12167 $as_echo_n "(cached) " >&6
12169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h. */
12173 if ac_fn_c_try_compile "$LINENO"; then :
12174 xorg_cv_cc_flag_unused_command_line_argument=yes
12176 xorg_cv_cc_flag_unused_command_line_argument=no
12178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12181 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12182 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12183 CFLAGS="$xorg_testset_save_CFLAGS"
12188 if test $found = "no" ; then
12189 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12193 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12197 CFLAGS="$CFLAGS -Wformat=2"
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12200 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12201 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
12202 if eval \${$cacheid+:} false; then :
12203 $as_echo_n "(cached) " >&6
12205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h. */
12216 if ac_fn_c_try_link "$LINENO"; then :
12221 rm -f core conftest.err conftest.$ac_objext \
12222 conftest$ac_exeext conftest.$ac_ext
12226 CFLAGS="$xorg_testset_save_CFLAGS"
12228 eval supported=\$$cacheid
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12230 $as_echo "$supported" >&6; }
12231 if test "$supported" = "yes" ; then
12232 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12237 if test $found = "no" ; then
12238 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12242 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12246 CFLAGS="$CFLAGS -Wformat"
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12249 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12250 cacheid=xorg_cv_cc_flag__Wformat
12251 if eval \${$cacheid+:} false; then :
12252 $as_echo_n "(cached) " >&6
12254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255 /* end confdefs.h. */
12265 if ac_fn_c_try_link "$LINENO"; then :
12270 rm -f core conftest.err conftest.$ac_objext \
12271 conftest$ac_exeext conftest.$ac_ext
12275 CFLAGS="$xorg_testset_save_CFLAGS"
12277 eval supported=\$$cacheid
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12279 $as_echo "$supported" >&6; }
12280 if test "$supported" = "yes" ; then
12281 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12302 xorg_testset_save_CFLAGS="$CFLAGS"
12304 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12307 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12308 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12309 $as_echo_n "(cached) " >&6
12311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12312 /* end confdefs.h. */
12315 if ac_fn_c_try_compile "$LINENO"; then :
12316 xorg_cv_cc_flag_unknown_warning_option=yes
12318 xorg_cv_cc_flag_unknown_warning_option=no
12320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12323 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12324 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12325 CFLAGS="$xorg_testset_save_CFLAGS"
12328 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12334 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12335 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12336 $as_echo_n "(cached) " >&6
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12342 if ac_fn_c_try_compile "$LINENO"; then :
12343 xorg_cv_cc_flag_unused_command_line_argument=yes
12345 xorg_cv_cc_flag_unused_command_line_argument=no
12347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12350 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12351 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12352 CFLAGS="$xorg_testset_save_CFLAGS"
12357 if test $found = "no" ; then
12358 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12362 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12366 CFLAGS="$CFLAGS -Wstrict-prototypes"
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12369 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12370 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12371 if eval \${$cacheid+:} false; then :
12372 $as_echo_n "(cached) " >&6
12374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375 /* end confdefs.h. */
12385 if ac_fn_c_try_link "$LINENO"; then :
12390 rm -f core conftest.err conftest.$ac_objext \
12391 conftest$ac_exeext conftest.$ac_ext
12395 CFLAGS="$xorg_testset_save_CFLAGS"
12397 eval supported=\$$cacheid
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12399 $as_echo "$supported" >&6; }
12400 if test "$supported" = "yes" ; then
12401 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12420 xorg_testset_save_CFLAGS="$CFLAGS"
12422 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12425 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12426 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12427 $as_echo_n "(cached) " >&6
12429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430 /* end confdefs.h. */
12433 if ac_fn_c_try_compile "$LINENO"; then :
12434 xorg_cv_cc_flag_unknown_warning_option=yes
12436 xorg_cv_cc_flag_unknown_warning_option=no
12438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12441 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12442 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12443 CFLAGS="$xorg_testset_save_CFLAGS"
12446 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12452 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12453 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12454 $as_echo_n "(cached) " >&6
12456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12457 /* end confdefs.h. */
12460 if ac_fn_c_try_compile "$LINENO"; then :
12461 xorg_cv_cc_flag_unused_command_line_argument=yes
12463 xorg_cv_cc_flag_unused_command_line_argument=no
12465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12468 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12469 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12470 CFLAGS="$xorg_testset_save_CFLAGS"
12475 if test $found = "no" ; then
12476 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12477 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12480 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12484 CFLAGS="$CFLAGS -Wmissing-prototypes"
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12487 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12488 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12489 if eval \${$cacheid+:} false; then :
12490 $as_echo_n "(cached) " >&6
12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493 /* end confdefs.h. */
12503 if ac_fn_c_try_link "$LINENO"; then :
12508 rm -f core conftest.err conftest.$ac_objext \
12509 conftest$ac_exeext conftest.$ac_ext
12513 CFLAGS="$xorg_testset_save_CFLAGS"
12515 eval supported=\$$cacheid
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12517 $as_echo "$supported" >&6; }
12518 if test "$supported" = "yes" ; then
12519 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12538 xorg_testset_save_CFLAGS="$CFLAGS"
12540 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12543 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12544 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12545 $as_echo_n "(cached) " >&6
12547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12548 /* end confdefs.h. */
12551 if ac_fn_c_try_compile "$LINENO"; then :
12552 xorg_cv_cc_flag_unknown_warning_option=yes
12554 xorg_cv_cc_flag_unknown_warning_option=no
12556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12559 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12560 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12561 CFLAGS="$xorg_testset_save_CFLAGS"
12564 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12570 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12571 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12572 $as_echo_n "(cached) " >&6
12574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12575 /* end confdefs.h. */
12578 if ac_fn_c_try_compile "$LINENO"; then :
12579 xorg_cv_cc_flag_unused_command_line_argument=yes
12581 xorg_cv_cc_flag_unused_command_line_argument=no
12583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12586 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12587 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12588 CFLAGS="$xorg_testset_save_CFLAGS"
12593 if test $found = "no" ; then
12594 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12598 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12602 CFLAGS="$CFLAGS -Wnested-externs"
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12605 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12606 cacheid=xorg_cv_cc_flag__Wnested_externs
12607 if eval \${$cacheid+:} false; then :
12608 $as_echo_n "(cached) " >&6
12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h. */
12621 if ac_fn_c_try_link "$LINENO"; then :
12626 rm -f core conftest.err conftest.$ac_objext \
12627 conftest$ac_exeext conftest.$ac_ext
12631 CFLAGS="$xorg_testset_save_CFLAGS"
12633 eval supported=\$$cacheid
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12635 $as_echo "$supported" >&6; }
12636 if test "$supported" = "yes" ; then
12637 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12656 xorg_testset_save_CFLAGS="$CFLAGS"
12658 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12661 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12662 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12663 $as_echo_n "(cached) " >&6
12665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h. */
12669 if ac_fn_c_try_compile "$LINENO"; then :
12670 xorg_cv_cc_flag_unknown_warning_option=yes
12672 xorg_cv_cc_flag_unknown_warning_option=no
12674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12677 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12678 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12679 CFLAGS="$xorg_testset_save_CFLAGS"
12682 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12688 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12689 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12690 $as_echo_n "(cached) " >&6
12692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12693 /* end confdefs.h. */
12696 if ac_fn_c_try_compile "$LINENO"; then :
12697 xorg_cv_cc_flag_unused_command_line_argument=yes
12699 xorg_cv_cc_flag_unused_command_line_argument=no
12701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12704 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12705 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12706 CFLAGS="$xorg_testset_save_CFLAGS"
12711 if test $found = "no" ; then
12712 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12713 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12716 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12720 CFLAGS="$CFLAGS -Wbad-function-cast"
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12723 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12724 cacheid=xorg_cv_cc_flag__Wbad_function_cast
12725 if eval \${$cacheid+:} false; then :
12726 $as_echo_n "(cached) " >&6
12728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12729 /* end confdefs.h. */
12739 if ac_fn_c_try_link "$LINENO"; then :
12744 rm -f core conftest.err conftest.$ac_objext \
12745 conftest$ac_exeext conftest.$ac_ext
12749 CFLAGS="$xorg_testset_save_CFLAGS"
12751 eval supported=\$$cacheid
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12753 $as_echo "$supported" >&6; }
12754 if test "$supported" = "yes" ; then
12755 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12774 xorg_testset_save_CFLAGS="$CFLAGS"
12776 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12779 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12780 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12781 $as_echo_n "(cached) " >&6
12783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784 /* end confdefs.h. */
12787 if ac_fn_c_try_compile "$LINENO"; then :
12788 xorg_cv_cc_flag_unknown_warning_option=yes
12790 xorg_cv_cc_flag_unknown_warning_option=no
12792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12795 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12796 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12797 CFLAGS="$xorg_testset_save_CFLAGS"
12800 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12806 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12807 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12808 $as_echo_n "(cached) " >&6
12810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12811 /* end confdefs.h. */
12814 if ac_fn_c_try_compile "$LINENO"; then :
12815 xorg_cv_cc_flag_unused_command_line_argument=yes
12817 xorg_cv_cc_flag_unused_command_line_argument=no
12819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12822 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12823 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12824 CFLAGS="$xorg_testset_save_CFLAGS"
12829 if test $found = "no" ; then
12830 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12834 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12838 CFLAGS="$CFLAGS -Wold-style-definition"
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12841 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12842 cacheid=xorg_cv_cc_flag__Wold_style_definition
12843 if eval \${$cacheid+:} false; then :
12844 $as_echo_n "(cached) " >&6
12846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847 /* end confdefs.h. */
12857 if ac_fn_c_try_link "$LINENO"; then :
12862 rm -f core conftest.err conftest.$ac_objext \
12863 conftest$ac_exeext conftest.$ac_ext
12867 CFLAGS="$xorg_testset_save_CFLAGS"
12869 eval supported=\$$cacheid
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12871 $as_echo "$supported" >&6; }
12872 if test "$supported" = "yes" ; then
12873 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12892 xorg_testset_save_CFLAGS="$CFLAGS"
12894 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12897 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12898 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12899 $as_echo_n "(cached) " >&6
12901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12902 /* end confdefs.h. */
12905 if ac_fn_c_try_compile "$LINENO"; then :
12906 xorg_cv_cc_flag_unknown_warning_option=yes
12908 xorg_cv_cc_flag_unknown_warning_option=no
12910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12913 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12914 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12915 CFLAGS="$xorg_testset_save_CFLAGS"
12918 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12924 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12925 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12926 $as_echo_n "(cached) " >&6
12928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12929 /* end confdefs.h. */
12932 if ac_fn_c_try_compile "$LINENO"; then :
12933 xorg_cv_cc_flag_unused_command_line_argument=yes
12935 xorg_cv_cc_flag_unused_command_line_argument=no
12937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12940 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12941 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12942 CFLAGS="$xorg_testset_save_CFLAGS"
12947 if test $found = "no" ; then
12948 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12952 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12956 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12959 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12960 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
12961 if eval \${$cacheid+:} false; then :
12962 $as_echo_n "(cached) " >&6
12964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965 /* end confdefs.h. */
12975 if ac_fn_c_try_link "$LINENO"; then :
12980 rm -f core conftest.err conftest.$ac_objext \
12981 conftest$ac_exeext conftest.$ac_ext
12985 CFLAGS="$xorg_testset_save_CFLAGS"
12987 eval supported=\$$cacheid
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12989 $as_echo "$supported" >&6; }
12990 if test "$supported" = "yes" ; then
12991 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13000 # This chunk adds additional warnings that could catch undesired effects.
13014 xorg_testset_save_CFLAGS="$CFLAGS"
13016 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13019 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13020 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13021 $as_echo_n "(cached) " >&6
13023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13024 /* end confdefs.h. */
13027 if ac_fn_c_try_compile "$LINENO"; then :
13028 xorg_cv_cc_flag_unknown_warning_option=yes
13030 xorg_cv_cc_flag_unknown_warning_option=no
13032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13035 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13036 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13037 CFLAGS="$xorg_testset_save_CFLAGS"
13040 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13046 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13047 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13048 $as_echo_n "(cached) " >&6
13050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13051 /* end confdefs.h. */
13054 if ac_fn_c_try_compile "$LINENO"; then :
13055 xorg_cv_cc_flag_unused_command_line_argument=yes
13057 xorg_cv_cc_flag_unused_command_line_argument=no
13059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13062 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13064 CFLAGS="$xorg_testset_save_CFLAGS"
13069 if test $found = "no" ; then
13070 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13074 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13078 CFLAGS="$CFLAGS -Wunused"
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13081 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13082 cacheid=xorg_cv_cc_flag__Wunused
13083 if eval \${$cacheid+:} false; then :
13084 $as_echo_n "(cached) " >&6
13086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087 /* end confdefs.h. */
13097 if ac_fn_c_try_link "$LINENO"; then :
13102 rm -f core conftest.err conftest.$ac_objext \
13103 conftest$ac_exeext conftest.$ac_ext
13107 CFLAGS="$xorg_testset_save_CFLAGS"
13109 eval supported=\$$cacheid
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13111 $as_echo "$supported" >&6; }
13112 if test "$supported" = "yes" ; then
13113 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13132 xorg_testset_save_CFLAGS="$CFLAGS"
13134 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13137 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13138 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13139 $as_echo_n "(cached) " >&6
13141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13142 /* end confdefs.h. */
13145 if ac_fn_c_try_compile "$LINENO"; then :
13146 xorg_cv_cc_flag_unknown_warning_option=yes
13148 xorg_cv_cc_flag_unknown_warning_option=no
13150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13153 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13155 CFLAGS="$xorg_testset_save_CFLAGS"
13158 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13164 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13165 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13166 $as_echo_n "(cached) " >&6
13168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13172 if ac_fn_c_try_compile "$LINENO"; then :
13173 xorg_cv_cc_flag_unused_command_line_argument=yes
13175 xorg_cv_cc_flag_unused_command_line_argument=no
13177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13180 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13181 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13182 CFLAGS="$xorg_testset_save_CFLAGS"
13187 if test $found = "no" ; then
13188 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13192 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13196 CFLAGS="$CFLAGS -Wuninitialized"
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13199 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13200 cacheid=xorg_cv_cc_flag__Wuninitialized
13201 if eval \${$cacheid+:} false; then :
13202 $as_echo_n "(cached) " >&6
13204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13205 /* end confdefs.h. */
13215 if ac_fn_c_try_link "$LINENO"; then :
13220 rm -f core conftest.err conftest.$ac_objext \
13221 conftest$ac_exeext conftest.$ac_ext
13225 CFLAGS="$xorg_testset_save_CFLAGS"
13227 eval supported=\$$cacheid
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13229 $as_echo "$supported" >&6; }
13230 if test "$supported" = "yes" ; then
13231 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13250 xorg_testset_save_CFLAGS="$CFLAGS"
13252 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13255 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13256 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13257 $as_echo_n "(cached) " >&6
13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h. */
13263 if ac_fn_c_try_compile "$LINENO"; then :
13264 xorg_cv_cc_flag_unknown_warning_option=yes
13266 xorg_cv_cc_flag_unknown_warning_option=no
13268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13271 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13272 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13273 CFLAGS="$xorg_testset_save_CFLAGS"
13276 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13282 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13283 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13284 $as_echo_n "(cached) " >&6
13286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287 /* end confdefs.h. */
13290 if ac_fn_c_try_compile "$LINENO"; then :
13291 xorg_cv_cc_flag_unused_command_line_argument=yes
13293 xorg_cv_cc_flag_unused_command_line_argument=no
13295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13298 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13299 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13300 CFLAGS="$xorg_testset_save_CFLAGS"
13305 if test $found = "no" ; then
13306 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13307 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13310 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13314 CFLAGS="$CFLAGS -Wshadow"
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13317 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13318 cacheid=xorg_cv_cc_flag__Wshadow
13319 if eval \${$cacheid+:} false; then :
13320 $as_echo_n "(cached) " >&6
13322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13323 /* end confdefs.h. */
13333 if ac_fn_c_try_link "$LINENO"; then :
13338 rm -f core conftest.err conftest.$ac_objext \
13339 conftest$ac_exeext conftest.$ac_ext
13343 CFLAGS="$xorg_testset_save_CFLAGS"
13345 eval supported=\$$cacheid
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13347 $as_echo "$supported" >&6; }
13348 if test "$supported" = "yes" ; then
13349 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13368 xorg_testset_save_CFLAGS="$CFLAGS"
13370 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13373 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13374 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13375 $as_echo_n "(cached) " >&6
13377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378 /* end confdefs.h. */
13381 if ac_fn_c_try_compile "$LINENO"; then :
13382 xorg_cv_cc_flag_unknown_warning_option=yes
13384 xorg_cv_cc_flag_unknown_warning_option=no
13386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13389 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13391 CFLAGS="$xorg_testset_save_CFLAGS"
13394 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13400 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13401 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13402 $as_echo_n "(cached) " >&6
13404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13405 /* end confdefs.h. */
13408 if ac_fn_c_try_compile "$LINENO"; then :
13409 xorg_cv_cc_flag_unused_command_line_argument=yes
13411 xorg_cv_cc_flag_unused_command_line_argument=no
13413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13416 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13417 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13418 CFLAGS="$xorg_testset_save_CFLAGS"
13423 if test $found = "no" ; then
13424 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13428 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13432 CFLAGS="$CFLAGS -Wcast-qual"
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13435 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13436 cacheid=xorg_cv_cc_flag__Wcast_qual
13437 if eval \${$cacheid+:} false; then :
13438 $as_echo_n "(cached) " >&6
13440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13441 /* end confdefs.h. */
13451 if ac_fn_c_try_link "$LINENO"; then :
13456 rm -f core conftest.err conftest.$ac_objext \
13457 conftest$ac_exeext conftest.$ac_ext
13461 CFLAGS="$xorg_testset_save_CFLAGS"
13463 eval supported=\$$cacheid
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13465 $as_echo "$supported" >&6; }
13466 if test "$supported" = "yes" ; then
13467 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13486 xorg_testset_save_CFLAGS="$CFLAGS"
13488 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13491 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13492 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13493 $as_echo_n "(cached) " >&6
13495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496 /* end confdefs.h. */
13499 if ac_fn_c_try_compile "$LINENO"; then :
13500 xorg_cv_cc_flag_unknown_warning_option=yes
13502 xorg_cv_cc_flag_unknown_warning_option=no
13504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13507 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13509 CFLAGS="$xorg_testset_save_CFLAGS"
13512 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13518 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13519 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13520 $as_echo_n "(cached) " >&6
13522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523 /* end confdefs.h. */
13526 if ac_fn_c_try_compile "$LINENO"; then :
13527 xorg_cv_cc_flag_unused_command_line_argument=yes
13529 xorg_cv_cc_flag_unused_command_line_argument=no
13531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13534 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13536 CFLAGS="$xorg_testset_save_CFLAGS"
13541 if test $found = "no" ; then
13542 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13546 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13550 CFLAGS="$CFLAGS -Wmissing-noreturn"
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13553 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13554 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13555 if eval \${$cacheid+:} false; then :
13556 $as_echo_n "(cached) " >&6
13558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13559 /* end confdefs.h. */
13569 if ac_fn_c_try_link "$LINENO"; then :
13574 rm -f core conftest.err conftest.$ac_objext \
13575 conftest$ac_exeext conftest.$ac_ext
13579 CFLAGS="$xorg_testset_save_CFLAGS"
13581 eval supported=\$$cacheid
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13583 $as_echo "$supported" >&6; }
13584 if test "$supported" = "yes" ; then
13585 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13604 xorg_testset_save_CFLAGS="$CFLAGS"
13606 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13609 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13610 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13611 $as_echo_n "(cached) " >&6
13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h. */
13617 if ac_fn_c_try_compile "$LINENO"; then :
13618 xorg_cv_cc_flag_unknown_warning_option=yes
13620 xorg_cv_cc_flag_unknown_warning_option=no
13622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13625 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13627 CFLAGS="$xorg_testset_save_CFLAGS"
13630 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13636 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13637 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13638 $as_echo_n "(cached) " >&6
13640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13641 /* end confdefs.h. */
13644 if ac_fn_c_try_compile "$LINENO"; then :
13645 xorg_cv_cc_flag_unused_command_line_argument=yes
13647 xorg_cv_cc_flag_unused_command_line_argument=no
13649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13652 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13653 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13654 CFLAGS="$xorg_testset_save_CFLAGS"
13659 if test $found = "no" ; then
13660 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13664 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13668 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13671 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13672 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13673 if eval \${$cacheid+:} false; then :
13674 $as_echo_n "(cached) " >&6
13676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13677 /* end confdefs.h. */
13687 if ac_fn_c_try_link "$LINENO"; then :
13692 rm -f core conftest.err conftest.$ac_objext \
13693 conftest$ac_exeext conftest.$ac_ext
13697 CFLAGS="$xorg_testset_save_CFLAGS"
13699 eval supported=\$$cacheid
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13701 $as_echo "$supported" >&6; }
13702 if test "$supported" = "yes" ; then
13703 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13722 xorg_testset_save_CFLAGS="$CFLAGS"
13724 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13727 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13728 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13729 $as_echo_n "(cached) " >&6
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13735 if ac_fn_c_try_compile "$LINENO"; then :
13736 xorg_cv_cc_flag_unknown_warning_option=yes
13738 xorg_cv_cc_flag_unknown_warning_option=no
13740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13743 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13745 CFLAGS="$xorg_testset_save_CFLAGS"
13748 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13754 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13755 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13756 $as_echo_n "(cached) " >&6
13758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13759 /* end confdefs.h. */
13762 if ac_fn_c_try_compile "$LINENO"; then :
13763 xorg_cv_cc_flag_unused_command_line_argument=yes
13765 xorg_cv_cc_flag_unused_command_line_argument=no
13767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13770 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13772 CFLAGS="$xorg_testset_save_CFLAGS"
13777 if test $found = "no" ; then
13778 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13782 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13786 CFLAGS="$CFLAGS -Wredundant-decls"
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13789 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13790 cacheid=xorg_cv_cc_flag__Wredundant_decls
13791 if eval \${$cacheid+:} false; then :
13792 $as_echo_n "(cached) " >&6
13794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13795 /* end confdefs.h. */
13805 if ac_fn_c_try_link "$LINENO"; then :
13810 rm -f core conftest.err conftest.$ac_objext \
13811 conftest$ac_exeext conftest.$ac_ext
13815 CFLAGS="$xorg_testset_save_CFLAGS"
13817 eval supported=\$$cacheid
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13819 $as_echo "$supported" >&6; }
13820 if test "$supported" = "yes" ; then
13821 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13828 # These are currently disabled because they are noisy. They will be enabled
13829 # in the future once the codebase is sufficiently modernized to silence
13830 # them. For now, I don't want them to drown out the other warnings.
13831 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13832 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13833 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13835 # Turn some warnings into errors, so we don't accidently get successful builds
13836 # when there are problems that should be fixed.
13838 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13852 xorg_testset_save_CFLAGS="$CFLAGS"
13854 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13857 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13858 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13859 $as_echo_n "(cached) " >&6
13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h. */
13865 if ac_fn_c_try_compile "$LINENO"; then :
13866 xorg_cv_cc_flag_unknown_warning_option=yes
13868 xorg_cv_cc_flag_unknown_warning_option=no
13870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13873 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13875 CFLAGS="$xorg_testset_save_CFLAGS"
13878 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13884 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13885 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13886 $as_echo_n "(cached) " >&6
13888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13889 /* end confdefs.h. */
13892 if ac_fn_c_try_compile "$LINENO"; then :
13893 xorg_cv_cc_flag_unused_command_line_argument=yes
13895 xorg_cv_cc_flag_unused_command_line_argument=no
13897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13900 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13902 CFLAGS="$xorg_testset_save_CFLAGS"
13907 if test $found = "no" ; then
13908 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13912 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13916 CFLAGS="$CFLAGS -Werror=implicit"
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13919 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13920 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
13921 if eval \${$cacheid+:} false; then :
13922 $as_echo_n "(cached) " >&6
13924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13925 /* end confdefs.h. */
13935 if ac_fn_c_try_link "$LINENO"; then :
13940 rm -f core conftest.err conftest.$ac_objext \
13941 conftest$ac_exeext conftest.$ac_ext
13945 CFLAGS="$xorg_testset_save_CFLAGS"
13947 eval supported=\$$cacheid
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13949 $as_echo "$supported" >&6; }
13950 if test "$supported" = "yes" ; then
13951 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13956 if test $found = "no" ; then
13957 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13961 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13965 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13968 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13969 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
13970 if eval \${$cacheid+:} false; then :
13971 $as_echo_n "(cached) " >&6
13973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13974 /* end confdefs.h. */
13984 if ac_fn_c_try_link "$LINENO"; then :
13989 rm -f core conftest.err conftest.$ac_objext \
13990 conftest$ac_exeext conftest.$ac_ext
13994 CFLAGS="$xorg_testset_save_CFLAGS"
13996 eval supported=\$$cacheid
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13998 $as_echo "$supported" >&6; }
13999 if test "$supported" = "yes" ; then
14000 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14019 xorg_testset_save_CFLAGS="$CFLAGS"
14021 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14024 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14025 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14026 $as_echo_n "(cached) " >&6
14028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14029 /* end confdefs.h. */
14032 if ac_fn_c_try_compile "$LINENO"; then :
14033 xorg_cv_cc_flag_unknown_warning_option=yes
14035 xorg_cv_cc_flag_unknown_warning_option=no
14037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14040 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14042 CFLAGS="$xorg_testset_save_CFLAGS"
14045 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14051 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14052 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14053 $as_echo_n "(cached) " >&6
14055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14056 /* end confdefs.h. */
14059 if ac_fn_c_try_compile "$LINENO"; then :
14060 xorg_cv_cc_flag_unused_command_line_argument=yes
14062 xorg_cv_cc_flag_unused_command_line_argument=no
14064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14067 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14068 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14069 CFLAGS="$xorg_testset_save_CFLAGS"
14074 if test $found = "no" ; then
14075 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14079 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14083 CFLAGS="$CFLAGS -Werror=nonnull"
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14086 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14087 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
14088 if eval \${$cacheid+:} false; then :
14089 $as_echo_n "(cached) " >&6
14091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092 /* end confdefs.h. */
14102 if ac_fn_c_try_link "$LINENO"; then :
14107 rm -f core conftest.err conftest.$ac_objext \
14108 conftest$ac_exeext conftest.$ac_ext
14112 CFLAGS="$xorg_testset_save_CFLAGS"
14114 eval supported=\$$cacheid
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14116 $as_echo "$supported" >&6; }
14117 if test "$supported" = "yes" ; then
14118 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14137 xorg_testset_save_CFLAGS="$CFLAGS"
14139 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14142 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14143 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14144 $as_echo_n "(cached) " >&6
14146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h. */
14150 if ac_fn_c_try_compile "$LINENO"; then :
14151 xorg_cv_cc_flag_unknown_warning_option=yes
14153 xorg_cv_cc_flag_unknown_warning_option=no
14155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14158 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14159 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14160 CFLAGS="$xorg_testset_save_CFLAGS"
14163 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14165 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14169 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14170 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14171 $as_echo_n "(cached) " >&6
14173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14174 /* end confdefs.h. */
14177 if ac_fn_c_try_compile "$LINENO"; then :
14178 xorg_cv_cc_flag_unused_command_line_argument=yes
14180 xorg_cv_cc_flag_unused_command_line_argument=no
14182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14185 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14186 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14187 CFLAGS="$xorg_testset_save_CFLAGS"
14192 if test $found = "no" ; then
14193 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14197 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14201 CFLAGS="$CFLAGS -Werror=init-self"
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14204 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14205 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
14206 if eval \${$cacheid+:} false; then :
14207 $as_echo_n "(cached) " >&6
14209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h. */
14220 if ac_fn_c_try_link "$LINENO"; then :
14225 rm -f core conftest.err conftest.$ac_objext \
14226 conftest$ac_exeext conftest.$ac_ext
14230 CFLAGS="$xorg_testset_save_CFLAGS"
14232 eval supported=\$$cacheid
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14234 $as_echo "$supported" >&6; }
14235 if test "$supported" = "yes" ; then
14236 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14255 xorg_testset_save_CFLAGS="$CFLAGS"
14257 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14260 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14261 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14262 $as_echo_n "(cached) " >&6
14264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14265 /* end confdefs.h. */
14268 if ac_fn_c_try_compile "$LINENO"; then :
14269 xorg_cv_cc_flag_unknown_warning_option=yes
14271 xorg_cv_cc_flag_unknown_warning_option=no
14273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14276 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14277 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14278 CFLAGS="$xorg_testset_save_CFLAGS"
14281 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14287 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14288 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14289 $as_echo_n "(cached) " >&6
14291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14292 /* end confdefs.h. */
14295 if ac_fn_c_try_compile "$LINENO"; then :
14296 xorg_cv_cc_flag_unused_command_line_argument=yes
14298 xorg_cv_cc_flag_unused_command_line_argument=no
14300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14303 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14304 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14305 CFLAGS="$xorg_testset_save_CFLAGS"
14310 if test $found = "no" ; then
14311 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14315 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14319 CFLAGS="$CFLAGS -Werror=main"
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14322 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14323 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
14324 if eval \${$cacheid+:} false; then :
14325 $as_echo_n "(cached) " >&6
14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328 /* end confdefs.h. */
14338 if ac_fn_c_try_link "$LINENO"; then :
14343 rm -f core conftest.err conftest.$ac_objext \
14344 conftest$ac_exeext conftest.$ac_ext
14348 CFLAGS="$xorg_testset_save_CFLAGS"
14350 eval supported=\$$cacheid
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14352 $as_echo "$supported" >&6; }
14353 if test "$supported" = "yes" ; then
14354 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14373 xorg_testset_save_CFLAGS="$CFLAGS"
14375 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14378 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14379 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14380 $as_echo_n "(cached) " >&6
14382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14383 /* end confdefs.h. */
14386 if ac_fn_c_try_compile "$LINENO"; then :
14387 xorg_cv_cc_flag_unknown_warning_option=yes
14389 xorg_cv_cc_flag_unknown_warning_option=no
14391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14394 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14395 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14396 CFLAGS="$xorg_testset_save_CFLAGS"
14399 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14405 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14406 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14407 $as_echo_n "(cached) " >&6
14409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410 /* end confdefs.h. */
14413 if ac_fn_c_try_compile "$LINENO"; then :
14414 xorg_cv_cc_flag_unused_command_line_argument=yes
14416 xorg_cv_cc_flag_unused_command_line_argument=no
14418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14421 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14422 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14423 CFLAGS="$xorg_testset_save_CFLAGS"
14428 if test $found = "no" ; then
14429 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14433 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14437 CFLAGS="$CFLAGS -Werror=missing-braces"
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14440 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14441 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
14442 if eval \${$cacheid+:} false; then :
14443 $as_echo_n "(cached) " >&6
14445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14446 /* end confdefs.h. */
14456 if ac_fn_c_try_link "$LINENO"; then :
14461 rm -f core conftest.err conftest.$ac_objext \
14462 conftest$ac_exeext conftest.$ac_ext
14466 CFLAGS="$xorg_testset_save_CFLAGS"
14468 eval supported=\$$cacheid
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14470 $as_echo "$supported" >&6; }
14471 if test "$supported" = "yes" ; then
14472 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14491 xorg_testset_save_CFLAGS="$CFLAGS"
14493 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14496 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14497 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14498 $as_echo_n "(cached) " >&6
14500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14501 /* end confdefs.h. */
14504 if ac_fn_c_try_compile "$LINENO"; then :
14505 xorg_cv_cc_flag_unknown_warning_option=yes
14507 xorg_cv_cc_flag_unknown_warning_option=no
14509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14512 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14513 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14514 CFLAGS="$xorg_testset_save_CFLAGS"
14517 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14523 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14524 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14525 $as_echo_n "(cached) " >&6
14527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14528 /* end confdefs.h. */
14531 if ac_fn_c_try_compile "$LINENO"; then :
14532 xorg_cv_cc_flag_unused_command_line_argument=yes
14534 xorg_cv_cc_flag_unused_command_line_argument=no
14536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14539 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14540 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14541 CFLAGS="$xorg_testset_save_CFLAGS"
14546 if test $found = "no" ; then
14547 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14551 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14555 CFLAGS="$CFLAGS -Werror=sequence-point"
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14558 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14559 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
14560 if eval \${$cacheid+:} false; then :
14561 $as_echo_n "(cached) " >&6
14563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14564 /* end confdefs.h. */
14574 if ac_fn_c_try_link "$LINENO"; then :
14579 rm -f core conftest.err conftest.$ac_objext \
14580 conftest$ac_exeext conftest.$ac_ext
14584 CFLAGS="$xorg_testset_save_CFLAGS"
14586 eval supported=\$$cacheid
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14588 $as_echo "$supported" >&6; }
14589 if test "$supported" = "yes" ; then
14590 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14609 xorg_testset_save_CFLAGS="$CFLAGS"
14611 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14614 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14615 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14616 $as_echo_n "(cached) " >&6
14618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14619 /* end confdefs.h. */
14622 if ac_fn_c_try_compile "$LINENO"; then :
14623 xorg_cv_cc_flag_unknown_warning_option=yes
14625 xorg_cv_cc_flag_unknown_warning_option=no
14627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14630 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14631 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14632 CFLAGS="$xorg_testset_save_CFLAGS"
14635 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14641 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14642 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14643 $as_echo_n "(cached) " >&6
14645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14646 /* end confdefs.h. */
14649 if ac_fn_c_try_compile "$LINENO"; then :
14650 xorg_cv_cc_flag_unused_command_line_argument=yes
14652 xorg_cv_cc_flag_unused_command_line_argument=no
14654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14657 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14658 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14659 CFLAGS="$xorg_testset_save_CFLAGS"
14664 if test $found = "no" ; then
14665 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14669 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14673 CFLAGS="$CFLAGS -Werror=return-type"
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14676 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14677 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
14678 if eval \${$cacheid+:} false; then :
14679 $as_echo_n "(cached) " >&6
14681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14682 /* end confdefs.h. */
14692 if ac_fn_c_try_link "$LINENO"; then :
14697 rm -f core conftest.err conftest.$ac_objext \
14698 conftest$ac_exeext conftest.$ac_ext
14702 CFLAGS="$xorg_testset_save_CFLAGS"
14704 eval supported=\$$cacheid
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14706 $as_echo "$supported" >&6; }
14707 if test "$supported" = "yes" ; then
14708 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14713 if test $found = "no" ; then
14714 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14718 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14722 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14725 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14726 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
14727 if eval \${$cacheid+:} false; then :
14728 $as_echo_n "(cached) " >&6
14730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14731 /* end confdefs.h. */
14741 if ac_fn_c_try_link "$LINENO"; then :
14746 rm -f core conftest.err conftest.$ac_objext \
14747 conftest$ac_exeext conftest.$ac_ext
14751 CFLAGS="$xorg_testset_save_CFLAGS"
14753 eval supported=\$$cacheid
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14755 $as_echo "$supported" >&6; }
14756 if test "$supported" = "yes" ; then
14757 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14776 xorg_testset_save_CFLAGS="$CFLAGS"
14778 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14781 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14782 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14783 $as_echo_n "(cached) " >&6
14785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14786 /* end confdefs.h. */
14789 if ac_fn_c_try_compile "$LINENO"; then :
14790 xorg_cv_cc_flag_unknown_warning_option=yes
14792 xorg_cv_cc_flag_unknown_warning_option=no
14794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14797 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14798 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14799 CFLAGS="$xorg_testset_save_CFLAGS"
14802 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14808 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14809 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14810 $as_echo_n "(cached) " >&6
14812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14813 /* end confdefs.h. */
14816 if ac_fn_c_try_compile "$LINENO"; then :
14817 xorg_cv_cc_flag_unused_command_line_argument=yes
14819 xorg_cv_cc_flag_unused_command_line_argument=no
14821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14824 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14825 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14826 CFLAGS="$xorg_testset_save_CFLAGS"
14831 if test $found = "no" ; then
14832 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14836 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14840 CFLAGS="$CFLAGS -Werror=trigraphs"
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14843 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14844 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
14845 if eval \${$cacheid+:} false; then :
14846 $as_echo_n "(cached) " >&6
14848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14849 /* end confdefs.h. */
14859 if ac_fn_c_try_link "$LINENO"; then :
14864 rm -f core conftest.err conftest.$ac_objext \
14865 conftest$ac_exeext conftest.$ac_ext
14869 CFLAGS="$xorg_testset_save_CFLAGS"
14871 eval supported=\$$cacheid
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14873 $as_echo "$supported" >&6; }
14874 if test "$supported" = "yes" ; then
14875 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14894 xorg_testset_save_CFLAGS="$CFLAGS"
14896 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14899 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14900 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14901 $as_echo_n "(cached) " >&6
14903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14904 /* end confdefs.h. */
14907 if ac_fn_c_try_compile "$LINENO"; then :
14908 xorg_cv_cc_flag_unknown_warning_option=yes
14910 xorg_cv_cc_flag_unknown_warning_option=no
14912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14915 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14916 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14917 CFLAGS="$xorg_testset_save_CFLAGS"
14920 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14926 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14927 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14928 $as_echo_n "(cached) " >&6
14930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14931 /* end confdefs.h. */
14934 if ac_fn_c_try_compile "$LINENO"; then :
14935 xorg_cv_cc_flag_unused_command_line_argument=yes
14937 xorg_cv_cc_flag_unused_command_line_argument=no
14939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14942 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14943 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14944 CFLAGS="$xorg_testset_save_CFLAGS"
14949 if test $found = "no" ; then
14950 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14954 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14958 CFLAGS="$CFLAGS -Werror=array-bounds"
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14961 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14962 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
14963 if eval \${$cacheid+:} false; then :
14964 $as_echo_n "(cached) " >&6
14966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14967 /* end confdefs.h. */
14977 if ac_fn_c_try_link "$LINENO"; then :
14982 rm -f core conftest.err conftest.$ac_objext \
14983 conftest$ac_exeext conftest.$ac_ext
14987 CFLAGS="$xorg_testset_save_CFLAGS"
14989 eval supported=\$$cacheid
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14991 $as_echo "$supported" >&6; }
14992 if test "$supported" = "yes" ; then
14993 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15012 xorg_testset_save_CFLAGS="$CFLAGS"
15014 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15017 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15018 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15019 $as_echo_n "(cached) " >&6
15021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h. */
15025 if ac_fn_c_try_compile "$LINENO"; then :
15026 xorg_cv_cc_flag_unknown_warning_option=yes
15028 xorg_cv_cc_flag_unknown_warning_option=no
15030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15033 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15035 CFLAGS="$xorg_testset_save_CFLAGS"
15038 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15044 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15045 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15046 $as_echo_n "(cached) " >&6
15048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15049 /* end confdefs.h. */
15052 if ac_fn_c_try_compile "$LINENO"; then :
15053 xorg_cv_cc_flag_unused_command_line_argument=yes
15055 xorg_cv_cc_flag_unused_command_line_argument=no
15057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15060 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15061 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15062 CFLAGS="$xorg_testset_save_CFLAGS"
15067 if test $found = "no" ; then
15068 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15072 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15076 CFLAGS="$CFLAGS -Werror=write-strings"
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15079 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15080 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
15081 if eval \${$cacheid+:} false; then :
15082 $as_echo_n "(cached) " >&6
15084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15085 /* end confdefs.h. */
15095 if ac_fn_c_try_link "$LINENO"; then :
15100 rm -f core conftest.err conftest.$ac_objext \
15101 conftest$ac_exeext conftest.$ac_ext
15105 CFLAGS="$xorg_testset_save_CFLAGS"
15107 eval supported=\$$cacheid
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15109 $as_echo "$supported" >&6; }
15110 if test "$supported" = "yes" ; then
15111 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15130 xorg_testset_save_CFLAGS="$CFLAGS"
15132 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15135 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15136 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15137 $as_echo_n "(cached) " >&6
15139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15140 /* end confdefs.h. */
15143 if ac_fn_c_try_compile "$LINENO"; then :
15144 xorg_cv_cc_flag_unknown_warning_option=yes
15146 xorg_cv_cc_flag_unknown_warning_option=no
15148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15151 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15152 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15153 CFLAGS="$xorg_testset_save_CFLAGS"
15156 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15162 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15163 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15164 $as_echo_n "(cached) " >&6
15166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15167 /* end confdefs.h. */
15170 if ac_fn_c_try_compile "$LINENO"; then :
15171 xorg_cv_cc_flag_unused_command_line_argument=yes
15173 xorg_cv_cc_flag_unused_command_line_argument=no
15175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15178 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15179 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15180 CFLAGS="$xorg_testset_save_CFLAGS"
15185 if test $found = "no" ; then
15186 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15190 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15194 CFLAGS="$CFLAGS -Werror=address"
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15197 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15198 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
15199 if eval \${$cacheid+:} false; then :
15200 $as_echo_n "(cached) " >&6
15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203 /* end confdefs.h. */
15213 if ac_fn_c_try_link "$LINENO"; then :
15218 rm -f core conftest.err conftest.$ac_objext \
15219 conftest$ac_exeext conftest.$ac_ext
15223 CFLAGS="$xorg_testset_save_CFLAGS"
15225 eval supported=\$$cacheid
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15227 $as_echo "$supported" >&6; }
15228 if test "$supported" = "yes" ; then
15229 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15248 xorg_testset_save_CFLAGS="$CFLAGS"
15250 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15253 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15254 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15255 $as_echo_n "(cached) " >&6
15257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15258 /* end confdefs.h. */
15261 if ac_fn_c_try_compile "$LINENO"; then :
15262 xorg_cv_cc_flag_unknown_warning_option=yes
15264 xorg_cv_cc_flag_unknown_warning_option=no
15266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15269 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15270 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15271 CFLAGS="$xorg_testset_save_CFLAGS"
15274 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15280 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15281 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15282 $as_echo_n "(cached) " >&6
15284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285 /* end confdefs.h. */
15288 if ac_fn_c_try_compile "$LINENO"; then :
15289 xorg_cv_cc_flag_unused_command_line_argument=yes
15291 xorg_cv_cc_flag_unused_command_line_argument=no
15293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15296 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15297 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15298 CFLAGS="$xorg_testset_save_CFLAGS"
15303 if test $found = "no" ; then
15304 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15308 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15312 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15315 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15316 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
15317 if eval \${$cacheid+:} false; then :
15318 $as_echo_n "(cached) " >&6
15320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321 /* end confdefs.h. */
15331 if ac_fn_c_try_link "$LINENO"; then :
15336 rm -f core conftest.err conftest.$ac_objext \
15337 conftest$ac_exeext conftest.$ac_ext
15341 CFLAGS="$xorg_testset_save_CFLAGS"
15343 eval supported=\$$cacheid
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15345 $as_echo "$supported" >&6; }
15346 if test "$supported" = "yes" ; then
15347 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15352 if test $found = "no" ; then
15353 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15357 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15361 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15364 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15365 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
15366 if eval \${$cacheid+:} false; then :
15367 $as_echo_n "(cached) " >&6
15369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15370 /* end confdefs.h. */
15380 if ac_fn_c_try_link "$LINENO"; then :
15385 rm -f core conftest.err conftest.$ac_objext \
15386 conftest$ac_exeext conftest.$ac_ext
15390 CFLAGS="$xorg_testset_save_CFLAGS"
15392 eval supported=\$$cacheid
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15394 $as_echo "$supported" >&6; }
15395 if test "$supported" = "yes" ; then
15396 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15415 xorg_testset_save_CFLAGS="$CFLAGS"
15417 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15420 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15421 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15422 $as_echo_n "(cached) " >&6
15424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15425 /* end confdefs.h. */
15428 if ac_fn_c_try_compile "$LINENO"; then :
15429 xorg_cv_cc_flag_unknown_warning_option=yes
15431 xorg_cv_cc_flag_unknown_warning_option=no
15433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15436 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15437 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15438 CFLAGS="$xorg_testset_save_CFLAGS"
15441 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15447 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15448 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15449 $as_echo_n "(cached) " >&6
15451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15452 /* end confdefs.h. */
15455 if ac_fn_c_try_compile "$LINENO"; then :
15456 xorg_cv_cc_flag_unused_command_line_argument=yes
15458 xorg_cv_cc_flag_unused_command_line_argument=no
15460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15463 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15464 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15465 CFLAGS="$xorg_testset_save_CFLAGS"
15470 if test $found = "no" ; then
15471 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15475 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15479 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15482 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15483 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
15484 if eval \${$cacheid+:} false; then :
15485 $as_echo_n "(cached) " >&6
15487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15488 /* end confdefs.h. */
15498 if ac_fn_c_try_link "$LINENO"; then :
15503 rm -f core conftest.err conftest.$ac_objext \
15504 conftest$ac_exeext conftest.$ac_ext
15508 CFLAGS="$xorg_testset_save_CFLAGS"
15510 eval supported=\$$cacheid
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15512 $as_echo "$supported" >&6; }
15513 if test "$supported" = "yes" ; then
15514 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15519 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
15522 $as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
15536 xorg_testset_save_CFLAGS="$CFLAGS"
15538 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15541 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15542 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15543 $as_echo_n "(cached) " >&6
15545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15546 /* end confdefs.h. */
15549 if ac_fn_c_try_compile "$LINENO"; then :
15550 xorg_cv_cc_flag_unknown_warning_option=yes
15552 xorg_cv_cc_flag_unknown_warning_option=no
15554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15557 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15558 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15559 CFLAGS="$xorg_testset_save_CFLAGS"
15562 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15568 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15569 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15570 $as_echo_n "(cached) " >&6
15572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15573 /* end confdefs.h. */
15576 if ac_fn_c_try_compile "$LINENO"; then :
15577 xorg_cv_cc_flag_unused_command_line_argument=yes
15579 xorg_cv_cc_flag_unused_command_line_argument=no
15581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15584 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15586 CFLAGS="$xorg_testset_save_CFLAGS"
15591 if test $found = "no" ; then
15592 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15596 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15600 CFLAGS="$CFLAGS -Wimplicit"
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15603 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15604 cacheid=xorg_cv_cc_flag__Wimplicit
15605 if eval \${$cacheid+:} false; then :
15606 $as_echo_n "(cached) " >&6
15608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15609 /* end confdefs.h. */
15619 if ac_fn_c_try_link "$LINENO"; then :
15624 rm -f core conftest.err conftest.$ac_objext \
15625 conftest$ac_exeext conftest.$ac_ext
15629 CFLAGS="$xorg_testset_save_CFLAGS"
15631 eval supported=\$$cacheid
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15633 $as_echo "$supported" >&6; }
15634 if test "$supported" = "yes" ; then
15635 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15654 xorg_testset_save_CFLAGS="$CFLAGS"
15656 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15659 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15660 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15661 $as_echo_n "(cached) " >&6
15663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15664 /* end confdefs.h. */
15667 if ac_fn_c_try_compile "$LINENO"; then :
15668 xorg_cv_cc_flag_unknown_warning_option=yes
15670 xorg_cv_cc_flag_unknown_warning_option=no
15672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15675 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15676 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15677 CFLAGS="$xorg_testset_save_CFLAGS"
15680 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15686 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15687 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15688 $as_echo_n "(cached) " >&6
15690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15691 /* end confdefs.h. */
15694 if ac_fn_c_try_compile "$LINENO"; then :
15695 xorg_cv_cc_flag_unused_command_line_argument=yes
15697 xorg_cv_cc_flag_unused_command_line_argument=no
15699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15702 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15704 CFLAGS="$xorg_testset_save_CFLAGS"
15709 if test $found = "no" ; then
15710 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15714 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15718 CFLAGS="$CFLAGS -Wnonnull"
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15721 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15722 cacheid=xorg_cv_cc_flag__Wnonnull
15723 if eval \${$cacheid+:} false; then :
15724 $as_echo_n "(cached) " >&6
15726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15727 /* end confdefs.h. */
15737 if ac_fn_c_try_link "$LINENO"; then :
15742 rm -f core conftest.err conftest.$ac_objext \
15743 conftest$ac_exeext conftest.$ac_ext
15747 CFLAGS="$xorg_testset_save_CFLAGS"
15749 eval supported=\$$cacheid
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15751 $as_echo "$supported" >&6; }
15752 if test "$supported" = "yes" ; then
15753 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15772 xorg_testset_save_CFLAGS="$CFLAGS"
15774 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15777 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15778 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15779 $as_echo_n "(cached) " >&6
15781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15782 /* end confdefs.h. */
15785 if ac_fn_c_try_compile "$LINENO"; then :
15786 xorg_cv_cc_flag_unknown_warning_option=yes
15788 xorg_cv_cc_flag_unknown_warning_option=no
15790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15793 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15794 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15795 CFLAGS="$xorg_testset_save_CFLAGS"
15798 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15804 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15805 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15806 $as_echo_n "(cached) " >&6
15808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15809 /* end confdefs.h. */
15812 if ac_fn_c_try_compile "$LINENO"; then :
15813 xorg_cv_cc_flag_unused_command_line_argument=yes
15815 xorg_cv_cc_flag_unused_command_line_argument=no
15817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15820 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15821 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15822 CFLAGS="$xorg_testset_save_CFLAGS"
15827 if test $found = "no" ; then
15828 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15832 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15836 CFLAGS="$CFLAGS -Winit-self"
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15839 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15840 cacheid=xorg_cv_cc_flag__Winit_self
15841 if eval \${$cacheid+:} false; then :
15842 $as_echo_n "(cached) " >&6
15844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15845 /* end confdefs.h. */
15855 if ac_fn_c_try_link "$LINENO"; then :
15860 rm -f core conftest.err conftest.$ac_objext \
15861 conftest$ac_exeext conftest.$ac_ext
15865 CFLAGS="$xorg_testset_save_CFLAGS"
15867 eval supported=\$$cacheid
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15869 $as_echo "$supported" >&6; }
15870 if test "$supported" = "yes" ; then
15871 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15890 xorg_testset_save_CFLAGS="$CFLAGS"
15892 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15895 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15896 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15897 $as_echo_n "(cached) " >&6
15899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15900 /* end confdefs.h. */
15903 if ac_fn_c_try_compile "$LINENO"; then :
15904 xorg_cv_cc_flag_unknown_warning_option=yes
15906 xorg_cv_cc_flag_unknown_warning_option=no
15908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15911 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15912 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15913 CFLAGS="$xorg_testset_save_CFLAGS"
15916 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15922 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15923 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15924 $as_echo_n "(cached) " >&6
15926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15927 /* end confdefs.h. */
15930 if ac_fn_c_try_compile "$LINENO"; then :
15931 xorg_cv_cc_flag_unused_command_line_argument=yes
15933 xorg_cv_cc_flag_unused_command_line_argument=no
15935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15938 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15939 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15940 CFLAGS="$xorg_testset_save_CFLAGS"
15945 if test $found = "no" ; then
15946 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15950 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15954 CFLAGS="$CFLAGS -Wmain"
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15957 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
15958 cacheid=xorg_cv_cc_flag__Wmain
15959 if eval \${$cacheid+:} false; then :
15960 $as_echo_n "(cached) " >&6
15962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15963 /* end confdefs.h. */
15973 if ac_fn_c_try_link "$LINENO"; then :
15978 rm -f core conftest.err conftest.$ac_objext \
15979 conftest$ac_exeext conftest.$ac_ext
15983 CFLAGS="$xorg_testset_save_CFLAGS"
15985 eval supported=\$$cacheid
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15987 $as_echo "$supported" >&6; }
15988 if test "$supported" = "yes" ; then
15989 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16008 xorg_testset_save_CFLAGS="$CFLAGS"
16010 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16013 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16014 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16015 $as_echo_n "(cached) " >&6
16017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16018 /* end confdefs.h. */
16021 if ac_fn_c_try_compile "$LINENO"; then :
16022 xorg_cv_cc_flag_unknown_warning_option=yes
16024 xorg_cv_cc_flag_unknown_warning_option=no
16026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16029 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16030 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16031 CFLAGS="$xorg_testset_save_CFLAGS"
16034 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16040 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16041 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16042 $as_echo_n "(cached) " >&6
16044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16045 /* end confdefs.h. */
16048 if ac_fn_c_try_compile "$LINENO"; then :
16049 xorg_cv_cc_flag_unused_command_line_argument=yes
16051 xorg_cv_cc_flag_unused_command_line_argument=no
16053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16056 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16057 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16058 CFLAGS="$xorg_testset_save_CFLAGS"
16063 if test $found = "no" ; then
16064 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16068 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16072 CFLAGS="$CFLAGS -Wmissing-braces"
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16075 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16076 cacheid=xorg_cv_cc_flag__Wmissing_braces
16077 if eval \${$cacheid+:} false; then :
16078 $as_echo_n "(cached) " >&6
16080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16081 /* end confdefs.h. */
16091 if ac_fn_c_try_link "$LINENO"; then :
16096 rm -f core conftest.err conftest.$ac_objext \
16097 conftest$ac_exeext conftest.$ac_ext
16101 CFLAGS="$xorg_testset_save_CFLAGS"
16103 eval supported=\$$cacheid
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16105 $as_echo "$supported" >&6; }
16106 if test "$supported" = "yes" ; then
16107 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16126 xorg_testset_save_CFLAGS="$CFLAGS"
16128 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16131 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16132 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16133 $as_echo_n "(cached) " >&6
16135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16136 /* end confdefs.h. */
16139 if ac_fn_c_try_compile "$LINENO"; then :
16140 xorg_cv_cc_flag_unknown_warning_option=yes
16142 xorg_cv_cc_flag_unknown_warning_option=no
16144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16147 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16148 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16149 CFLAGS="$xorg_testset_save_CFLAGS"
16152 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16158 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16159 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16160 $as_echo_n "(cached) " >&6
16162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16163 /* end confdefs.h. */
16166 if ac_fn_c_try_compile "$LINENO"; then :
16167 xorg_cv_cc_flag_unused_command_line_argument=yes
16169 xorg_cv_cc_flag_unused_command_line_argument=no
16171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16174 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16175 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16176 CFLAGS="$xorg_testset_save_CFLAGS"
16181 if test $found = "no" ; then
16182 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16186 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16190 CFLAGS="$CFLAGS -Wsequence-point"
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16193 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16194 cacheid=xorg_cv_cc_flag__Wsequence_point
16195 if eval \${$cacheid+:} false; then :
16196 $as_echo_n "(cached) " >&6
16198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16199 /* end confdefs.h. */
16209 if ac_fn_c_try_link "$LINENO"; then :
16214 rm -f core conftest.err conftest.$ac_objext \
16215 conftest$ac_exeext conftest.$ac_ext
16219 CFLAGS="$xorg_testset_save_CFLAGS"
16221 eval supported=\$$cacheid
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16223 $as_echo "$supported" >&6; }
16224 if test "$supported" = "yes" ; then
16225 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16244 xorg_testset_save_CFLAGS="$CFLAGS"
16246 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16249 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16250 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16251 $as_echo_n "(cached) " >&6
16253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16254 /* end confdefs.h. */
16257 if ac_fn_c_try_compile "$LINENO"; then :
16258 xorg_cv_cc_flag_unknown_warning_option=yes
16260 xorg_cv_cc_flag_unknown_warning_option=no
16262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16265 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16266 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16267 CFLAGS="$xorg_testset_save_CFLAGS"
16270 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16276 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16277 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16278 $as_echo_n "(cached) " >&6
16280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16281 /* end confdefs.h. */
16284 if ac_fn_c_try_compile "$LINENO"; then :
16285 xorg_cv_cc_flag_unused_command_line_argument=yes
16287 xorg_cv_cc_flag_unused_command_line_argument=no
16289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16292 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16293 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16294 CFLAGS="$xorg_testset_save_CFLAGS"
16299 if test $found = "no" ; then
16300 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16304 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16308 CFLAGS="$CFLAGS -Wreturn-type"
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16311 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16312 cacheid=xorg_cv_cc_flag__Wreturn_type
16313 if eval \${$cacheid+:} false; then :
16314 $as_echo_n "(cached) " >&6
16316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16317 /* end confdefs.h. */
16327 if ac_fn_c_try_link "$LINENO"; then :
16332 rm -f core conftest.err conftest.$ac_objext \
16333 conftest$ac_exeext conftest.$ac_ext
16337 CFLAGS="$xorg_testset_save_CFLAGS"
16339 eval supported=\$$cacheid
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16341 $as_echo "$supported" >&6; }
16342 if test "$supported" = "yes" ; then
16343 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16362 xorg_testset_save_CFLAGS="$CFLAGS"
16364 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16367 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16368 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16369 $as_echo_n "(cached) " >&6
16371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16372 /* end confdefs.h. */
16375 if ac_fn_c_try_compile "$LINENO"; then :
16376 xorg_cv_cc_flag_unknown_warning_option=yes
16378 xorg_cv_cc_flag_unknown_warning_option=no
16380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16383 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16384 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16385 CFLAGS="$xorg_testset_save_CFLAGS"
16388 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16394 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16395 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16396 $as_echo_n "(cached) " >&6
16398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16399 /* end confdefs.h. */
16402 if ac_fn_c_try_compile "$LINENO"; then :
16403 xorg_cv_cc_flag_unused_command_line_argument=yes
16405 xorg_cv_cc_flag_unused_command_line_argument=no
16407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16410 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16411 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16412 CFLAGS="$xorg_testset_save_CFLAGS"
16417 if test $found = "no" ; then
16418 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16422 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16426 CFLAGS="$CFLAGS -Wtrigraphs"
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16429 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16430 cacheid=xorg_cv_cc_flag__Wtrigraphs
16431 if eval \${$cacheid+:} false; then :
16432 $as_echo_n "(cached) " >&6
16434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16435 /* end confdefs.h. */
16445 if ac_fn_c_try_link "$LINENO"; then :
16450 rm -f core conftest.err conftest.$ac_objext \
16451 conftest$ac_exeext conftest.$ac_ext
16455 CFLAGS="$xorg_testset_save_CFLAGS"
16457 eval supported=\$$cacheid
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16459 $as_echo "$supported" >&6; }
16460 if test "$supported" = "yes" ; then
16461 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16480 xorg_testset_save_CFLAGS="$CFLAGS"
16482 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16485 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16486 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16487 $as_echo_n "(cached) " >&6
16489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16490 /* end confdefs.h. */
16493 if ac_fn_c_try_compile "$LINENO"; then :
16494 xorg_cv_cc_flag_unknown_warning_option=yes
16496 xorg_cv_cc_flag_unknown_warning_option=no
16498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16501 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16503 CFLAGS="$xorg_testset_save_CFLAGS"
16506 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16512 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16513 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16514 $as_echo_n "(cached) " >&6
16516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16517 /* end confdefs.h. */
16520 if ac_fn_c_try_compile "$LINENO"; then :
16521 xorg_cv_cc_flag_unused_command_line_argument=yes
16523 xorg_cv_cc_flag_unused_command_line_argument=no
16525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16528 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16529 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16530 CFLAGS="$xorg_testset_save_CFLAGS"
16535 if test $found = "no" ; then
16536 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16540 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16544 CFLAGS="$CFLAGS -Warray-bounds"
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16547 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16548 cacheid=xorg_cv_cc_flag__Warray_bounds
16549 if eval \${$cacheid+:} false; then :
16550 $as_echo_n "(cached) " >&6
16552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553 /* end confdefs.h. */
16563 if ac_fn_c_try_link "$LINENO"; then :
16568 rm -f core conftest.err conftest.$ac_objext \
16569 conftest$ac_exeext conftest.$ac_ext
16573 CFLAGS="$xorg_testset_save_CFLAGS"
16575 eval supported=\$$cacheid
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16577 $as_echo "$supported" >&6; }
16578 if test "$supported" = "yes" ; then
16579 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16598 xorg_testset_save_CFLAGS="$CFLAGS"
16600 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16603 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16604 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16605 $as_echo_n "(cached) " >&6
16607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16608 /* end confdefs.h. */
16611 if ac_fn_c_try_compile "$LINENO"; then :
16612 xorg_cv_cc_flag_unknown_warning_option=yes
16614 xorg_cv_cc_flag_unknown_warning_option=no
16616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16619 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16620 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16621 CFLAGS="$xorg_testset_save_CFLAGS"
16624 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16630 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16631 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16632 $as_echo_n "(cached) " >&6
16634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16635 /* end confdefs.h. */
16638 if ac_fn_c_try_compile "$LINENO"; then :
16639 xorg_cv_cc_flag_unused_command_line_argument=yes
16641 xorg_cv_cc_flag_unused_command_line_argument=no
16643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16646 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16647 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16648 CFLAGS="$xorg_testset_save_CFLAGS"
16653 if test $found = "no" ; then
16654 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16658 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16662 CFLAGS="$CFLAGS -Wwrite-strings"
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16665 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16666 cacheid=xorg_cv_cc_flag__Wwrite_strings
16667 if eval \${$cacheid+:} false; then :
16668 $as_echo_n "(cached) " >&6
16670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16671 /* end confdefs.h. */
16681 if ac_fn_c_try_link "$LINENO"; then :
16686 rm -f core conftest.err conftest.$ac_objext \
16687 conftest$ac_exeext conftest.$ac_ext
16691 CFLAGS="$xorg_testset_save_CFLAGS"
16693 eval supported=\$$cacheid
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16695 $as_echo "$supported" >&6; }
16696 if test "$supported" = "yes" ; then
16697 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16716 xorg_testset_save_CFLAGS="$CFLAGS"
16718 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16721 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16722 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16723 $as_echo_n "(cached) " >&6
16725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16726 /* end confdefs.h. */
16729 if ac_fn_c_try_compile "$LINENO"; then :
16730 xorg_cv_cc_flag_unknown_warning_option=yes
16732 xorg_cv_cc_flag_unknown_warning_option=no
16734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16737 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16739 CFLAGS="$xorg_testset_save_CFLAGS"
16742 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16748 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16749 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16750 $as_echo_n "(cached) " >&6
16752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16753 /* end confdefs.h. */
16756 if ac_fn_c_try_compile "$LINENO"; then :
16757 xorg_cv_cc_flag_unused_command_line_argument=yes
16759 xorg_cv_cc_flag_unused_command_line_argument=no
16761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16764 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16766 CFLAGS="$xorg_testset_save_CFLAGS"
16771 if test $found = "no" ; then
16772 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16776 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16780 CFLAGS="$CFLAGS -Waddress"
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16783 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16784 cacheid=xorg_cv_cc_flag__Waddress
16785 if eval \${$cacheid+:} false; then :
16786 $as_echo_n "(cached) " >&6
16788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16789 /* end confdefs.h. */
16799 if ac_fn_c_try_link "$LINENO"; then :
16804 rm -f core conftest.err conftest.$ac_objext \
16805 conftest$ac_exeext conftest.$ac_ext
16809 CFLAGS="$xorg_testset_save_CFLAGS"
16811 eval supported=\$$cacheid
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16813 $as_echo "$supported" >&6; }
16814 if test "$supported" = "yes" ; then
16815 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16834 xorg_testset_save_CFLAGS="$CFLAGS"
16836 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16839 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16840 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16841 $as_echo_n "(cached) " >&6
16843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16844 /* end confdefs.h. */
16847 if ac_fn_c_try_compile "$LINENO"; then :
16848 xorg_cv_cc_flag_unknown_warning_option=yes
16850 xorg_cv_cc_flag_unknown_warning_option=no
16852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16855 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16857 CFLAGS="$xorg_testset_save_CFLAGS"
16860 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16866 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16867 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16868 $as_echo_n "(cached) " >&6
16870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16871 /* end confdefs.h. */
16874 if ac_fn_c_try_compile "$LINENO"; then :
16875 xorg_cv_cc_flag_unused_command_line_argument=yes
16877 xorg_cv_cc_flag_unused_command_line_argument=no
16879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16882 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16884 CFLAGS="$xorg_testset_save_CFLAGS"
16889 if test $found = "no" ; then
16890 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16894 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16898 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16901 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16902 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
16903 if eval \${$cacheid+:} false; then :
16904 $as_echo_n "(cached) " >&6
16906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16907 /* end confdefs.h. */
16917 if ac_fn_c_try_link "$LINENO"; then :
16922 rm -f core conftest.err conftest.$ac_objext \
16923 conftest$ac_exeext conftest.$ac_ext
16927 CFLAGS="$xorg_testset_save_CFLAGS"
16929 eval supported=\$$cacheid
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16931 $as_echo "$supported" >&6; }
16932 if test "$supported" = "yes" ; then
16933 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16952 xorg_testset_save_CFLAGS="$CFLAGS"
16954 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16957 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16958 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16959 $as_echo_n "(cached) " >&6
16961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16962 /* end confdefs.h. */
16965 if ac_fn_c_try_compile "$LINENO"; then :
16966 xorg_cv_cc_flag_unknown_warning_option=yes
16968 xorg_cv_cc_flag_unknown_warning_option=no
16970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16973 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16974 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16975 CFLAGS="$xorg_testset_save_CFLAGS"
16978 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16984 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16985 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16986 $as_echo_n "(cached) " >&6
16988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989 /* end confdefs.h. */
16992 if ac_fn_c_try_compile "$LINENO"; then :
16993 xorg_cv_cc_flag_unused_command_line_argument=yes
16995 xorg_cv_cc_flag_unused_command_line_argument=no
16997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17000 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17001 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17002 CFLAGS="$xorg_testset_save_CFLAGS"
17007 if test $found = "no" ; then
17008 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17012 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17016 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17019 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17020 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17021 if eval \${$cacheid+:} false; then :
17022 $as_echo_n "(cached) " >&6
17024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17025 /* end confdefs.h. */
17035 if ac_fn_c_try_link "$LINENO"; then :
17040 rm -f core conftest.err conftest.$ac_objext \
17041 conftest$ac_exeext conftest.$ac_ext
17045 CFLAGS="$xorg_testset_save_CFLAGS"
17047 eval supported=\$$cacheid
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17049 $as_echo "$supported" >&6; }
17050 if test "$supported" = "yes" ; then
17051 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17065 CWARNFLAGS="$BASE_CFLAGS"
17066 if test "x$GCC" = xyes ; then
17067 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17077 # Check whether --enable-strict-compilation was given.
17078 if test "${enable_strict_compilation+set}" = set; then :
17079 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17103 xorg_testset_save_CFLAGS="$CFLAGS"
17105 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17108 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17109 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17110 $as_echo_n "(cached) " >&6
17112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17113 /* end confdefs.h. */
17116 if ac_fn_c_try_compile "$LINENO"; then :
17117 xorg_cv_cc_flag_unknown_warning_option=yes
17119 xorg_cv_cc_flag_unknown_warning_option=no
17121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17124 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17125 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17126 CFLAGS="$xorg_testset_save_CFLAGS"
17129 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17135 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17136 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17137 $as_echo_n "(cached) " >&6
17139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17140 /* end confdefs.h. */
17143 if ac_fn_c_try_compile "$LINENO"; then :
17144 xorg_cv_cc_flag_unused_command_line_argument=yes
17146 xorg_cv_cc_flag_unused_command_line_argument=no
17148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17151 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17152 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17153 CFLAGS="$xorg_testset_save_CFLAGS"
17158 if test $found = "no" ; then
17159 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17163 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17167 CFLAGS="$CFLAGS -pedantic"
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17170 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17171 cacheid=xorg_cv_cc_flag__pedantic
17172 if eval \${$cacheid+:} false; then :
17173 $as_echo_n "(cached) " >&6
17175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17176 /* end confdefs.h. */
17186 if ac_fn_c_try_link "$LINENO"; then :
17191 rm -f core conftest.err conftest.$ac_objext \
17192 conftest$ac_exeext conftest.$ac_ext
17196 CFLAGS="$xorg_testset_save_CFLAGS"
17198 eval supported=\$$cacheid
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17200 $as_echo "$supported" >&6; }
17201 if test "$supported" = "yes" ; then
17202 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17221 xorg_testset_save_CFLAGS="$CFLAGS"
17223 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17226 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17227 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17228 $as_echo_n "(cached) " >&6
17230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17231 /* end confdefs.h. */
17234 if ac_fn_c_try_compile "$LINENO"; then :
17235 xorg_cv_cc_flag_unknown_warning_option=yes
17237 xorg_cv_cc_flag_unknown_warning_option=no
17239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17242 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17243 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17244 CFLAGS="$xorg_testset_save_CFLAGS"
17247 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17253 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17254 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17255 $as_echo_n "(cached) " >&6
17257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17258 /* end confdefs.h. */
17261 if ac_fn_c_try_compile "$LINENO"; then :
17262 xorg_cv_cc_flag_unused_command_line_argument=yes
17264 xorg_cv_cc_flag_unused_command_line_argument=no
17266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17269 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17270 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17271 CFLAGS="$xorg_testset_save_CFLAGS"
17276 if test $found = "no" ; then
17277 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17281 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17285 CFLAGS="$CFLAGS -Werror"
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17288 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17289 cacheid=xorg_cv_cc_flag__Werror
17290 if eval \${$cacheid+:} false; then :
17291 $as_echo_n "(cached) " >&6
17293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17294 /* end confdefs.h. */
17304 if ac_fn_c_try_link "$LINENO"; then :
17309 rm -f core conftest.err conftest.$ac_objext \
17310 conftest$ac_exeext conftest.$ac_ext
17314 CFLAGS="$xorg_testset_save_CFLAGS"
17316 eval supported=\$$cacheid
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17318 $as_echo "$supported" >&6; }
17319 if test "$supported" = "yes" ; then
17320 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17325 if test $found = "no" ; then
17326 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17330 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17334 CFLAGS="$CFLAGS -errwarn"
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17337 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17338 cacheid=xorg_cv_cc_flag__errwarn
17339 if eval \${$cacheid+:} false; then :
17340 $as_echo_n "(cached) " >&6
17342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17343 /* end confdefs.h. */
17353 if ac_fn_c_try_link "$LINENO"; then :
17358 rm -f core conftest.err conftest.$ac_objext \
17359 conftest$ac_exeext conftest.$ac_ext
17363 CFLAGS="$xorg_testset_save_CFLAGS"
17365 eval supported=\$$cacheid
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17367 $as_echo "$supported" >&6; }
17368 if test "$supported" = "yes" ; then
17369 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17376 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17377 # activate it with -Werror, so we add it here explicitly.
17391 xorg_testset_save_CFLAGS="$CFLAGS"
17393 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17396 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17397 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17398 $as_echo_n "(cached) " >&6
17400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17401 /* end confdefs.h. */
17404 if ac_fn_c_try_compile "$LINENO"; then :
17405 xorg_cv_cc_flag_unknown_warning_option=yes
17407 xorg_cv_cc_flag_unknown_warning_option=no
17409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17412 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17414 CFLAGS="$xorg_testset_save_CFLAGS"
17417 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17423 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17424 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17425 $as_echo_n "(cached) " >&6
17427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17428 /* end confdefs.h. */
17431 if ac_fn_c_try_compile "$LINENO"; then :
17432 xorg_cv_cc_flag_unused_command_line_argument=yes
17434 xorg_cv_cc_flag_unused_command_line_argument=no
17436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17439 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17440 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17441 CFLAGS="$xorg_testset_save_CFLAGS"
17446 if test $found = "no" ; then
17447 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17451 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17455 CFLAGS="$CFLAGS -Werror=attributes"
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17458 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17459 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
17460 if eval \${$cacheid+:} false; then :
17461 $as_echo_n "(cached) " >&6
17463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17464 /* end confdefs.h. */
17474 if ac_fn_c_try_link "$LINENO"; then :
17479 rm -f core conftest.err conftest.$ac_objext \
17480 conftest$ac_exeext conftest.$ac_ext
17484 CFLAGS="$xorg_testset_save_CFLAGS"
17486 eval supported=\$$cacheid
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17488 $as_echo "$supported" >&6; }
17489 if test "$supported" = "yes" ; then
17490 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17497 if test "x$STRICT_COMPILE" = "xyes"; then
17498 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17499 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17507 cat >>confdefs.h <<_ACEOF
17508 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17511 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17512 if test "x$PVM" = "x"; then
17516 cat >>confdefs.h <<_ACEOF
17517 #define PACKAGE_VERSION_MINOR $PVM
17520 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17521 if test "x$PVP" = "x"; then
17525 cat >>confdefs.h <<_ACEOF
17526 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17531 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17532 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17533 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17534 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17539 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17540 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17541 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17542 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17543 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17550 if test x$APP_MAN_SUFFIX = x ; then
17553 if test x$APP_MAN_DIR = x ; then
17554 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17557 if test x$LIB_MAN_SUFFIX = x ; then
17560 if test x$LIB_MAN_DIR = x ; then
17561 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17564 if test x$FILE_MAN_SUFFIX = x ; then
17566 solaris*) FILE_MAN_SUFFIX=4 ;;
17567 *) FILE_MAN_SUFFIX=5 ;;
17570 if test x$FILE_MAN_DIR = x ; then
17571 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17574 if test x$MISC_MAN_SUFFIX = x ; then
17576 solaris*) MISC_MAN_SUFFIX=5 ;;
17577 *) MISC_MAN_SUFFIX=7 ;;
17580 if test x$MISC_MAN_DIR = x ; then
17581 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17584 if test x$DRIVER_MAN_SUFFIX = x ; then
17586 solaris*) DRIVER_MAN_SUFFIX=7 ;;
17587 *) DRIVER_MAN_SUFFIX=4 ;;
17590 if test x$DRIVER_MAN_DIR = x ; then
17591 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17594 if test x$ADMIN_MAN_SUFFIX = x ; then
17596 solaris*) ADMIN_MAN_SUFFIX=1m ;;
17597 *) ADMIN_MAN_SUFFIX=8 ;;
17600 if test x$ADMIN_MAN_DIR = x ; then
17601 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17618 XORG_MAN_PAGE="X Version 11"
17621 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17622 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17623 -e 's|__xservername__|Xorg|g' \
17624 -e 's|__xconfigfile__|xorg.conf|g' \
17625 -e 's|__xorgconfdir__|xorg.conf.d|g' \
17626 -e 's|__projectroot__|\$(prefix)|g' \
17627 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17628 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17629 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17630 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17631 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17632 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17633 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17637 # Check whether --enable-silent-rules was given.
17638 if test "${enable_silent_rules+set}" = set; then :
17639 enableval=$enable_silent_rules;
17642 case $enable_silent_rules in
17643 yes) AM_DEFAULT_VERBOSITY=0;;
17644 no) AM_DEFAULT_VERBOSITY=1;;
17645 *) AM_DEFAULT_VERBOSITY=0;;
17647 am_make=${MAKE-make}
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17649 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17650 if ${am_cv_make_support_nested_variables+:} false; then :
17651 $as_echo_n "(cached) " >&6
17653 if $as_echo 'TRUE=$(BAR$(V))
17659 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17660 am_cv_make_support_nested_variables=yes
17662 am_cv_make_support_nested_variables=no
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17666 $as_echo "$am_cv_make_support_nested_variables" >&6; }
17667 if test $am_cv_make_support_nested_variables = yes; then
17669 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17671 AM_V=$AM_DEFAULT_VERBOSITY
17672 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17679 # Check whether --enable-docs was given.
17680 if test "${enable_docs+set}" = set; then :
17681 enableval=$enable_docs; build_docs=$enableval
17687 if test x$build_docs = xyes; then
17689 ENABLE_DOCS_FALSE='#'
17691 ENABLE_DOCS_TRUE='#'
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
17696 $as_echo_n "checking whether to build documentation... " >&6; }
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
17698 $as_echo "$build_docs" >&6; }
17702 # Check whether --enable-specs was given.
17703 if test "${enable_specs+set}" = set; then :
17704 enableval=$enable_specs; build_specs=$enableval
17710 if test x$build_specs = xyes; then
17712 ENABLE_SPECS_FALSE='#'
17714 ENABLE_SPECS_TRUE='#'
17715 ENABLE_SPECS_FALSE=
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
17719 $as_echo_n "checking whether to build functional specifications... " >&6; }
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
17721 $as_echo "$build_specs" >&6; }
17727 # Check whether --with-xmlto was given.
17728 if test "${with_xmlto+set}" = set; then :
17729 withval=$with_xmlto; use_xmlto=$withval
17736 if test "x$use_xmlto" = x"auto"; then
17737 # Extract the first word of "xmlto", so it can be a program name with args.
17738 set dummy xmlto; ac_word=$2
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17740 $as_echo_n "checking for $ac_word... " >&6; }
17741 if ${ac_cv_path_XMLTO+:} false; then :
17742 $as_echo_n "(cached) " >&6
17746 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
17749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17750 for as_dir in $PATH
17753 test -z "$as_dir" && as_dir=.
17754 for ac_exec_ext in '' $ac_executable_extensions; do
17755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17756 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
17757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17767 XMLTO=$ac_cv_path_XMLTO
17768 if test -n "$XMLTO"; then
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
17770 $as_echo "$XMLTO" >&6; }
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17773 $as_echo "no" >&6; }
17777 if test "x$XMLTO" = "x"; then
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
17779 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
17784 elif test "x$use_xmlto" = x"yes" ; then
17785 # Extract the first word of "xmlto", so it can be a program name with args.
17786 set dummy xmlto; ac_word=$2
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17788 $as_echo_n "checking for $ac_word... " >&6; }
17789 if ${ac_cv_path_XMLTO+:} false; then :
17790 $as_echo_n "(cached) " >&6
17794 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
17797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17798 for as_dir in $PATH
17801 test -z "$as_dir" && as_dir=.
17802 for ac_exec_ext in '' $ac_executable_extensions; do
17803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17804 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
17805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17815 XMLTO=$ac_cv_path_XMLTO
17816 if test -n "$XMLTO"; then
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
17818 $as_echo "$XMLTO" >&6; }
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17821 $as_echo "no" >&6; }
17825 if test "x$XMLTO" = "x"; then
17826 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
17829 elif test "x$use_xmlto" = x"no" ; then
17830 if test "x$XMLTO" != "x"; then
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
17832 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
17836 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
17839 # Test for a minimum version of xmlto, if provided.
17840 if test "$have_xmlto" = yes; then
17841 # scrape the xmlto version
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
17843 $as_echo_n "checking the xmlto version... " >&6; }
17844 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
17846 $as_echo "$xmlto_version" >&6; }
17847 as_arg_v1=$xmlto_version
17849 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17852 if test "x$use_xmlto" = xauto; then
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
17854 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
17857 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
17868 # Test for the ability of xmlto to generate a text target
17870 cat > conftest.xml << "EOF"
17872 if test "$have_xmlto" = yes; then :
17873 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
17874 have_xmlto_text=yes
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
17877 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
17881 if test $have_xmlto_text = yes; then
17882 HAVE_XMLTO_TEXT_TRUE=
17883 HAVE_XMLTO_TEXT_FALSE='#'
17885 HAVE_XMLTO_TEXT_TRUE='#'
17886 HAVE_XMLTO_TEXT_FALSE=
17889 if test "$have_xmlto" = yes; then
17891 HAVE_XMLTO_FALSE='#'
17893 HAVE_XMLTO_TRUE='#'
17902 # Check whether --with-fop was given.
17903 if test "${with_fop+set}" = set; then :
17904 withval=$with_fop; use_fop=$withval
17911 if test "x$use_fop" = x"auto"; then
17912 # Extract the first word of "fop", so it can be a program name with args.
17913 set dummy fop; ac_word=$2
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17915 $as_echo_n "checking for $ac_word... " >&6; }
17916 if ${ac_cv_path_FOP+:} false; then :
17917 $as_echo_n "(cached) " >&6
17921 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
17924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17925 for as_dir in $PATH
17928 test -z "$as_dir" && as_dir=.
17929 for ac_exec_ext in '' $ac_executable_extensions; do
17930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17931 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
17932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17942 FOP=$ac_cv_path_FOP
17943 if test -n "$FOP"; then
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
17945 $as_echo "$FOP" >&6; }
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17948 $as_echo "no" >&6; }
17952 if test "x$FOP" = "x"; then
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
17954 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
17959 elif test "x$use_fop" = x"yes" ; then
17960 # Extract the first word of "fop", so it can be a program name with args.
17961 set dummy fop; ac_word=$2
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17963 $as_echo_n "checking for $ac_word... " >&6; }
17964 if ${ac_cv_path_FOP+:} false; then :
17965 $as_echo_n "(cached) " >&6
17969 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
17972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17973 for as_dir in $PATH
17976 test -z "$as_dir" && as_dir=.
17977 for ac_exec_ext in '' $ac_executable_extensions; do
17978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17979 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
17980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17990 FOP=$ac_cv_path_FOP
17991 if test -n "$FOP"; then
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
17993 $as_echo "$FOP" >&6; }
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17996 $as_echo "no" >&6; }
18000 if test "x$FOP" = "x"; then
18001 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
18004 elif test "x$use_fop" = x"no" ; then
18005 if test "x$FOP" != "x"; then
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
18007 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
18011 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
18014 # Test for a minimum version of fop, if provided.
18016 if test "$have_fop" = yes; then
18027 # Preserves the interface, should it be implemented later
18031 # Check whether --with-xsltproc was given.
18032 if test "${with_xsltproc+set}" = set; then :
18033 withval=$with_xsltproc; use_xsltproc=$withval
18040 if test "x$use_xsltproc" = x"auto"; then
18041 # Extract the first word of "xsltproc", so it can be a program name with args.
18042 set dummy xsltproc; ac_word=$2
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18044 $as_echo_n "checking for $ac_word... " >&6; }
18045 if ${ac_cv_path_XSLTPROC+:} false; then :
18046 $as_echo_n "(cached) " >&6
18050 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18054 for as_dir in $PATH
18057 test -z "$as_dir" && as_dir=.
18058 for ac_exec_ext in '' $ac_executable_extensions; do
18059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18060 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18071 XSLTPROC=$ac_cv_path_XSLTPROC
18072 if test -n "$XSLTPROC"; then
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18074 $as_echo "$XSLTPROC" >&6; }
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18077 $as_echo "no" >&6; }
18081 if test "x$XSLTPROC" = "x"; then
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
18083 $as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
18088 elif test "x$use_xsltproc" = x"yes" ; then
18089 # Extract the first word of "xsltproc", so it can be a program name with args.
18090 set dummy xsltproc; ac_word=$2
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18092 $as_echo_n "checking for $ac_word... " >&6; }
18093 if ${ac_cv_path_XSLTPROC+:} false; then :
18094 $as_echo_n "(cached) " >&6
18098 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18102 for as_dir in $PATH
18105 test -z "$as_dir" && as_dir=.
18106 for ac_exec_ext in '' $ac_executable_extensions; do
18107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18108 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18119 XSLTPROC=$ac_cv_path_XSLTPROC
18120 if test -n "$XSLTPROC"; then
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18122 $as_echo "$XSLTPROC" >&6; }
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18125 $as_echo "no" >&6; }
18129 if test "x$XSLTPROC" = "x"; then
18130 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
18133 elif test "x$use_xsltproc" = x"no" ; then
18134 if test "x$XSLTPROC" != "x"; then
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
18136 $as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
18140 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
18143 if test "$have_xsltproc" = yes; then
18144 HAVE_XSLTPROC_TRUE=
18145 HAVE_XSLTPROC_FALSE='#'
18147 HAVE_XSLTPROC_TRUE='#'
18148 HAVE_XSLTPROC_FALSE=
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
18154 $as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
18156 if test -n "$PKG_CONFIG" && \
18157 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
18158 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
18160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18161 test $ac_status = 0; }; then
18162 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
18168 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
18169 # the path and the name of the doc stylesheet
18170 if test "x$XORG_SGML_PATH" != "x" ; then
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
18172 $as_echo "$XORG_SGML_PATH" >&6; }
18173 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
18174 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18177 $as_echo "no" >&6; }
18183 if test "x$XSL_STYLESHEET" != "x"; then
18184 HAVE_STYLESHEETS_TRUE=
18185 HAVE_STYLESHEETS_FALSE='#'
18187 HAVE_STYLESHEETS_TRUE='#'
18188 HAVE_STYLESHEETS_FALSE=
18196 # Check whether --with-asciidoc was given.
18197 if test "${with_asciidoc+set}" = set; then :
18198 withval=$with_asciidoc; use_asciidoc=$withval
18205 if test "x$use_asciidoc" = x"auto"; then
18206 # Extract the first word of "asciidoc", so it can be a program name with args.
18207 set dummy asciidoc; ac_word=$2
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18209 $as_echo_n "checking for $ac_word... " >&6; }
18210 if ${ac_cv_path_ASCIIDOC+:} false; then :
18211 $as_echo_n "(cached) " >&6
18215 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
18218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18219 for as_dir in $PATH
18222 test -z "$as_dir" && as_dir=.
18223 for ac_exec_ext in '' $ac_executable_extensions; do
18224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18225 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
18226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18236 ASCIIDOC=$ac_cv_path_ASCIIDOC
18237 if test -n "$ASCIIDOC"; then
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
18239 $as_echo "$ASCIIDOC" >&6; }
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18242 $as_echo "no" >&6; }
18246 if test "x$ASCIIDOC" = "x"; then
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc not found - documentation targets will be skipped" >&5
18248 $as_echo "$as_me: WARNING: asciidoc not found - documentation targets will be skipped" >&2;}
18253 elif test "x$use_asciidoc" = x"yes" ; then
18254 # Extract the first word of "asciidoc", so it can be a program name with args.
18255 set dummy asciidoc; ac_word=$2
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18257 $as_echo_n "checking for $ac_word... " >&6; }
18258 if ${ac_cv_path_ASCIIDOC+:} false; then :
18259 $as_echo_n "(cached) " >&6
18263 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
18266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18267 for as_dir in $PATH
18270 test -z "$as_dir" && as_dir=.
18271 for ac_exec_ext in '' $ac_executable_extensions; do
18272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18273 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
18274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18284 ASCIIDOC=$ac_cv_path_ASCIIDOC
18285 if test -n "$ASCIIDOC"; then
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
18287 $as_echo "$ASCIIDOC" >&6; }
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18290 $as_echo "no" >&6; }
18294 if test "x$ASCIIDOC" = "x"; then
18295 as_fn_error $? "--with-asciidoc=yes specified but asciidoc not found in PATH" "$LINENO" 5
18298 elif test "x$use_asciidoc" = x"no" ; then
18299 if test "x$ASCIIDOC" != "x"; then
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&5
18301 $as_echo "$as_me: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&2;}
18305 as_fn_error $? "--with-asciidoc expects 'yes' or 'no'" "$LINENO" 5
18307 if test "$have_asciidoc" = yes; then
18308 # scrape the asciidoc version
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the asciidoc version" >&5
18310 $as_echo_n "checking the asciidoc version... " >&6; }
18311 asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2`
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $asciidoc_version" >&5
18313 $as_echo "$asciidoc_version" >&6; }
18314 as_arg_v1=$asciidoc_version
18316 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18319 if test "x$use_asciidoc" = xauto; then
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&5
18321 $as_echo "$as_me: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&2;}
18324 as_fn_error $? "asciidoc version $asciidoc_version found, but 8.4.5 needed" "$LINENO" 5
18334 if test "$have_asciidoc" = yes; then
18335 HAVE_ASCIIDOC_TRUE=
18336 HAVE_ASCIIDOC_FALSE='#'
18338 HAVE_ASCIIDOC_TRUE='#'
18339 HAVE_ASCIIDOC_FALSE=
18344 # Check whether --enable-malloc0returnsnull was given.
18345 if test "${enable_malloc0returnsnull+set}" = set; then :
18346 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
18348 MALLOC_ZERO_RETURNS_NULL=auto
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
18353 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
18354 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
18355 if test "$cross_compiling" = yes; then :
18356 MALLOC_ZERO_RETURNS_NULL=yes
18358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18359 /* end confdefs.h. */
18361 #include <stdlib.h>
18367 char *m0, *r0, *c0, *p;
18372 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
18378 if ac_fn_c_try_run "$LINENO"; then :
18379 MALLOC_ZERO_RETURNS_NULL=yes
18381 MALLOC_ZERO_RETURNS_NULL=no
18383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18384 conftest.$ac_objext conftest.beam conftest.$ac_ext
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
18389 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
18391 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
18392 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
18393 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
18394 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
18396 MALLOC_ZERO_CFLAGS=""
18397 XMALLOC_ZERO_CFLAGS=""
18398 XTMALLOC_ZERO_CFLAGS=""
18406 # Obtain compiler/linker options for dependencies
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI" >&5
18410 $as_echo_n "checking for XI... " >&6; }
18412 if test -n "$XI_CFLAGS"; then
18413 pkg_cv_XI_CFLAGS="$XI_CFLAGS"
18414 elif test -n "$PKG_CONFIG"; then
18415 if test -n "$PKG_CONFIG" && \
18416 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.1.99.6\""; } >&5
18417 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.1.99.6") 2>&5
18419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18420 test $ac_status = 0; }; then
18421 pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.1.99.6" 2>/dev/null`
18428 if test -n "$XI_LIBS"; then
18429 pkg_cv_XI_LIBS="$XI_LIBS"
18430 elif test -n "$PKG_CONFIG"; then
18431 if test -n "$PKG_CONFIG" && \
18432 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.1.99.6\""; } >&5
18433 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.1.99.6") 2>&5
18435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18436 test $ac_status = 0; }; then
18437 pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.1.99.6" 2>/dev/null`
18447 if test $pkg_failed = yes; then
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18449 $as_echo "no" >&6; }
18451 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18452 _pkg_short_errors_supported=yes
18454 _pkg_short_errors_supported=no
18456 if test $_pkg_short_errors_supported = yes; then
18457 XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.1.99.6" 2>&1`
18459 XI_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.1.99.6" 2>&1`
18461 # Put the nasty error message in config.log where it belongs
18462 echo "$XI_PKG_ERRORS" >&5
18464 as_fn_error $? "Package requirements (xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.1.99.6) were not met:
18468 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18469 installed software in a non-standard prefix.
18471 Alternatively, you may set the environment variables XI_CFLAGS
18472 and XI_LIBS to avoid the need to call pkg-config.
18473 See the pkg-config man page for more details." "$LINENO" 5
18475 elif test $pkg_failed = untried; then
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18477 $as_echo "no" >&6; }
18478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18480 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18481 is in your PATH or set the PKG_CONFIG environment variable to the full
18482 path to pkg-config.
18484 Alternatively, you may set the environment variables XI_CFLAGS
18485 and XI_LIBS to avoid the need to call pkg-config.
18486 See the pkg-config man page for more details.
18488 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18489 See \`config.log' for more details" "$LINENO" 5; }
18492 XI_CFLAGS=$pkg_cv_XI_CFLAGS
18493 XI_LIBS=$pkg_cv_XI_LIBS
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18495 $as_echo "yes" >&6; }
18499 # Check for xmlto and asciidoc for man page conversion
18500 # (only needed by people building tarballs)
18501 if test "$have_xmlto" = yes && test "$have_asciidoc" = yes; then
18506 if test $have_doctools = yes; then
18507 HAVE_DOCTOOLS_TRUE=
18508 HAVE_DOCTOOLS_FALSE='#'
18510 HAVE_DOCTOOLS_TRUE='#'
18511 HAVE_DOCTOOLS_FALSE=
18514 if test $have_doctools = no; then
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&5
18516 $as_echo "$as_me: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&2;}
18519 # Determine if the source for man pages is available
18520 # It may already be present (tarball) or can be generated using doctools
18521 if test -f "$srcdir/man/XAllowDeviceEvents.man" || \
18522 test $have_doctools = yes; then
18523 INSTALL_MANPAGES_TRUE=
18524 INSTALL_MANPAGES_FALSE='#'
18526 INSTALL_MANPAGES_TRUE='#'
18527 INSTALL_MANPAGES_FALSE=
18531 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile specs/Makefile xi.pc"
18533 cat >confcache <<\_ACEOF
18534 # This file is a shell script that caches the results of configure
18535 # tests run on this system so they can be shared between configure
18536 # scripts and configure runs, see configure's option --config-cache.
18537 # It is not useful on other systems. If it contains results you don't
18538 # want to keep, you may remove or edit it.
18540 # config.status only pays attention to the cache file if you give it
18541 # the --recheck option to rerun configure.
18543 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18544 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18545 # following values.
18549 # The following way of writing the cache mishandles newlines in values,
18550 # but we know of no workaround that is simple, portable, and efficient.
18551 # So, we kill variables containing newlines.
18552 # Ultrix sh set writes to stderr and can't be redirected directly,
18553 # and sets the high bit in the cache file unless we assign to the vars.
18555 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18556 eval ac_val=\$$ac_var
18560 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18561 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18564 _ | IFS | as_nl) ;; #(
18565 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18566 *) { eval $ac_var=; unset $ac_var;} ;;
18572 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18573 *${as_nl}ac_space=\ *)
18574 # `set' does not quote correctly, so add quotes: double-quote
18575 # substitution turns \\\\ into \\, and sed turns \\ into \.
18578 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18581 # `set' quotes correctly as required by POSIX, so do not add quotes.
18582 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18591 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18593 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18595 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18596 if test -w "$cache_file"; then
18597 if test "x$cache_file" != "x/dev/null"; then
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18599 $as_echo "$as_me: updating cache $cache_file" >&6;}
18600 if test ! -f "$cache_file" || test -h "$cache_file"; then
18601 cat confcache >"$cache_file"
18603 case $cache_file in #(
18605 mv -f confcache "$cache_file"$$ &&
18606 mv -f "$cache_file"$$ "$cache_file" ;; #(
18608 mv -f confcache "$cache_file" ;;
18613 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18614 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18619 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18620 # Let make expand exec_prefix.
18621 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18623 DEFS=-DHAVE_CONFIG_H
18628 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18629 # 1. Remove the extension, and $U if already installed.
18630 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18631 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18632 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18633 # will be set to the directory where LIBOBJS objects are built.
18634 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18635 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18637 LIBOBJS=$ac_libobjs
18639 LTLIBOBJS=$ac_ltlibobjs
18642 if test -n "$EXEEXT"; then
18644 am__EXEEXT_FALSE='#'
18646 am__EXEEXT_TRUE='#'
18650 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18651 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18654 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18655 as_fn_error $? "conditional \"AMDEP\" was never defined.
18656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18658 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18659 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18662 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
18663 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
18664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18666 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
18667 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
18668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18670 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
18671 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
18672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18674 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
18675 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
18676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18678 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
18679 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
18680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18682 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
18683 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
18684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18686 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
18687 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
18688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18690 if test -z "${HAVE_ASCIIDOC_TRUE}" && test -z "${HAVE_ASCIIDOC_FALSE}"; then
18691 as_fn_error $? "conditional \"HAVE_ASCIIDOC\" was never defined.
18692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18694 if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then
18695 as_fn_error $? "conditional \"HAVE_DOCTOOLS\" was never defined.
18696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18698 if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then
18699 as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined.
18700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18703 : "${CONFIG_STATUS=./config.status}"
18705 ac_clean_files_save=$ac_clean_files
18706 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18708 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18710 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18712 # Generated by $as_me.
18713 # Run this file to recreate the current configuration.
18714 # Compiler output produced by configure, useful for debugging
18715 # configure, is in config.log if it exists.
18718 ac_cs_recheck=false
18721 SHELL=\${CONFIG_SHELL-$SHELL}
18724 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18725 ## -------------------- ##
18726 ## M4sh Initialization. ##
18727 ## -------------------- ##
18729 # Be more Bourne compatible
18730 DUALCASE=1; export DUALCASE # for MKS sh
18731 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18734 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18735 # is contrary to our usage. Disable this feature.
18736 alias -g '${1+"$@"}'='"$@"'
18737 setopt NO_GLOB_SUBST
18739 case `(set -o) 2>/dev/null` in #(
18751 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18752 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18753 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18754 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18755 # Prefer a ksh shell builtin over an external printf program on Solaris,
18756 # but without wasting forks for bash or zsh.
18757 if test -z "$BASH_VERSION$ZSH_VERSION" \
18758 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18759 as_echo='print -r --'
18760 as_echo_n='print -rn --'
18761 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18762 as_echo='printf %s\n'
18763 as_echo_n='printf %s'
18765 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18766 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18767 as_echo_n='/usr/ucb/echo -n'
18769 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18770 as_echo_n_body='eval
18774 expr "X$arg" : "X\\(.*\\)$as_nl";
18775 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18777 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18779 export as_echo_n_body
18780 as_echo_n='sh -c $as_echo_n_body as_echo'
18782 export as_echo_body
18783 as_echo='sh -c $as_echo_body as_echo'
18786 # The user is always right.
18787 if test "${PATH_SEPARATOR+set}" != set; then
18789 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18790 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18797 # We need space, tab and new line, in precisely that order. Quoting is
18798 # there to prevent editors from complaining about space-tab.
18799 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18800 # splitting by setting IFS to empty value.)
18803 # Find who we are. Look in the path if we contain no directory separator.
18806 *[\\/]* ) as_myself=$0 ;;
18807 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18808 for as_dir in $PATH
18811 test -z "$as_dir" && as_dir=.
18812 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18818 # We did not find ourselves, most probably we were run as `sh COMMAND'
18819 # in which case we are not to be found in the path.
18820 if test "x$as_myself" = x; then
18823 if test ! -f "$as_myself"; then
18824 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18828 # Unset variables that we do not need and which cause bugs (e.g. in
18829 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18830 # suppresses any "Segmentation fault" message there. '((' could
18831 # trigger a bug in pdksh 5.2.14.
18832 for as_var in BASH_ENV ENV MAIL MAILPATH
18833 do eval test x\${$as_var+set} = xset \
18834 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18847 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18850 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18851 # ----------------------------------------
18852 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18853 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18854 # script with STATUS, using 1 if that was 0.
18857 as_status=$1; test $as_status -eq 0 && as_status=1
18859 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18860 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18862 $as_echo "$as_me: error: $2" >&2
18863 as_fn_exit $as_status
18867 # as_fn_set_status STATUS
18868 # -----------------------
18869 # Set $? to STATUS, without forking.
18870 as_fn_set_status ()
18873 } # as_fn_set_status
18875 # as_fn_exit STATUS
18876 # -----------------
18877 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18881 as_fn_set_status $1
18887 # Portably unset VAR.
18890 { eval $1=; unset $1;}
18892 as_unset=as_fn_unset
18893 # as_fn_append VAR VALUE
18894 # ----------------------
18895 # Append the text in VALUE to the end of the definition contained in VAR. Take
18896 # advantage of any shell optimizations that allow amortized linear growth over
18897 # repeated appends, instead of the typical quadratic growth present in naive
18899 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18900 eval 'as_fn_append ()
18911 # as_fn_arith ARG...
18912 # ------------------
18913 # Perform arithmetic evaluation on the ARGs, and store the result in the
18914 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18915 # must be portable across $(()) and expr.
18916 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18917 eval 'as_fn_arith ()
18924 as_val=`expr "$@" || test $? -eq 1`
18929 if expr a : '\(a\)' >/dev/null 2>&1 &&
18930 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18936 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18937 as_basename=basename
18942 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18948 as_me=`$as_basename -- "$0" ||
18949 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18950 X"$0" : 'X\(//\)$' \| \
18951 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18953 sed '/^.*\/\([^/][^/]*\)\/*$/{
18967 # Avoid depending upon Character Ranges.
18968 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18969 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18970 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18971 as_cr_digits='0123456789'
18972 as_cr_alnum=$as_cr_Letters$as_cr_digits
18974 ECHO_C= ECHO_N= ECHO_T=
18975 case `echo -n x` in #(((((
18977 case `echo 'xy\c'` in
18978 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18980 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18987 rm -f conf$$ conf$$.exe conf$$.file
18988 if test -d conf$$.dir; then
18989 rm -f conf$$.dir/conf$$.file
18992 mkdir conf$$.dir 2>/dev/null
18994 if (echo >conf$$.file) 2>/dev/null; then
18995 if ln -s conf$$.file conf$$ 2>/dev/null; then
18997 # ... but there are two gotchas:
18998 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18999 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19000 # In both cases, we have to default to `cp -p'.
19001 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19003 elif ln conf$$.file conf$$ 2>/dev/null; then
19011 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19012 rmdir conf$$.dir 2>/dev/null
19017 # Create "$as_dir" as a directory, including parents if necessary.
19022 -*) as_dir=./$as_dir;;
19024 test -d "$as_dir" || eval $as_mkdir_p || {
19028 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19029 *) as_qdir=$as_dir;;
19031 as_dirs="'$as_qdir' $as_dirs"
19032 as_dir=`$as_dirname -- "$as_dir" ||
19033 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19034 X"$as_dir" : 'X\(//\)[^/]' \| \
19035 X"$as_dir" : 'X\(//\)$' \| \
19036 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19037 $as_echo X"$as_dir" |
19038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19042 /^X\(\/\/\)[^/].*/{
19055 test -d "$as_dir" && break
19057 test -z "$as_dirs" || eval "mkdir $as_dirs"
19058 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19062 if mkdir -p . 2>/dev/null; then
19063 as_mkdir_p='mkdir -p "$as_dir"'
19065 test -d ./-p && rmdir ./-p
19069 if test -x / >/dev/null 2>&1; then
19070 as_test_x='test -x'
19072 if ls -dL / >/dev/null 2>&1; then
19079 if test -d "$1"; then
19085 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19086 ???[sx]*):;;*)false;;esac;fi
19090 as_executable_p=$as_test_x
19092 # Sed expression to map a string onto a valid CPP name.
19093 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19095 # Sed expression to map a string onto a valid variable name.
19096 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19100 ## ----------------------------------- ##
19101 ## Main body of $CONFIG_STATUS script. ##
19102 ## ----------------------------------- ##
19104 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19107 # Save the log message, to keep $0 and so on meaningful, and to
19108 # report actual input values of CONFIG_FILES etc. instead of their
19109 # values after options handling.
19111 This file was extended by libXi $as_me 1.6.1, which was
19112 generated by GNU Autoconf 2.68. Invocation command line was
19114 CONFIG_FILES = $CONFIG_FILES
19115 CONFIG_HEADERS = $CONFIG_HEADERS
19116 CONFIG_LINKS = $CONFIG_LINKS
19117 CONFIG_COMMANDS = $CONFIG_COMMANDS
19120 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19125 case $ac_config_files in *"
19126 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19129 case $ac_config_headers in *"
19130 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19135 # Files that config.status was made for.
19136 config_files="$ac_config_files"
19137 config_headers="$ac_config_headers"
19138 config_commands="$ac_config_commands"
19142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19144 \`$as_me' instantiates files and other configuration actions
19145 from templates according to the current configuration. Unless the files
19146 and actions are specified as TAGs, all are instantiated by default.
19148 Usage: $0 [OPTION]... [TAG]...
19150 -h, --help print this help, then exit
19151 -V, --version print version number and configuration settings, then exit
19152 --config print configuration, then exit
19153 -q, --quiet, --silent
19154 do not print progress messages
19155 -d, --debug don't remove temporary files
19156 --recheck update $as_me by reconfiguring in the same conditions
19157 --file=FILE[:TEMPLATE]
19158 instantiate the configuration file FILE
19159 --header=FILE[:TEMPLATE]
19160 instantiate the configuration header FILE
19162 Configuration files:
19165 Configuration headers:
19168 Configuration commands:
19171 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19175 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19177 libXi config.status 1.6.1
19178 configured by $0, generated by GNU Autoconf 2.68,
19179 with options \\"\$ac_cs_config\\"
19181 Copyright (C) 2010 Free Software Foundation, Inc.
19182 This config.status script is free software; the Free Software Foundation
19183 gives unlimited permission to copy, distribute and modify it."
19190 test -n "\$AWK" || AWK=awk
19193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19194 # The default lists apply if the user does not specify any file.
19200 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19201 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19205 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19217 # Handling of the options.
19218 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19220 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19221 $as_echo "$ac_cs_version"; exit ;;
19222 --config | --confi | --conf | --con | --co | --c )
19223 $as_echo "$ac_cs_config"; exit ;;
19224 --debug | --debu | --deb | --de | --d | -d )
19226 --file | --fil | --fi | --f )
19229 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19230 '') as_fn_error $? "missing file argument" ;;
19232 as_fn_append CONFIG_FILES " '$ac_optarg'"
19233 ac_need_defaults=false;;
19234 --header | --heade | --head | --hea )
19237 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19239 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19240 ac_need_defaults=false;;
19242 # Conflict between --help and --header
19243 as_fn_error $? "ambiguous option: \`$1'
19244 Try \`$0 --help' for more information.";;
19245 --help | --hel | -h )
19246 $as_echo "$ac_cs_usage"; exit ;;
19247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19248 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19251 # This is an error.
19252 -*) as_fn_error $? "unrecognized option: \`$1'
19253 Try \`$0 --help' for more information." ;;
19255 *) as_fn_append ac_config_targets " $1"
19256 ac_need_defaults=false ;;
19262 ac_configure_extra_args=
19264 if $ac_cs_silent; then
19266 ac_configure_extra_args="$ac_configure_extra_args --silent"
19270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19271 if \$ac_cs_recheck; then
19272 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19274 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19275 CONFIG_SHELL='$SHELL'
19276 export CONFIG_SHELL
19281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19285 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19286 ## Running $as_me. ##
19292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19296 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19299 # The HP-UX ksh and POSIX shell print the target directory to stdout
19300 # if CDPATH is set.
19301 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19303 sed_quote_subst='$sed_quote_subst'
19304 double_quote_subst='$double_quote_subst'
19305 delay_variable_subst='$delay_variable_subst'
19306 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19307 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19308 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19309 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19310 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19311 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19312 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19313 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19314 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19315 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19316 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19317 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19318 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19319 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19320 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19321 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19322 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19323 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19324 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19325 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19326 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19327 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19328 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19329 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19330 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19331 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19332 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19333 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19334 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19335 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19336 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19337 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19338 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19339 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19340 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19341 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19342 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19343 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19344 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19345 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19346 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19347 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19348 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19349 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19350 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19351 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19352 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19353 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19354 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19355 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19356 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19357 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19358 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19359 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19360 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19361 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19362 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"`'
19363 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19364 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19365 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19366 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19367 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19368 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19369 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19370 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19371 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19372 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19373 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19374 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19375 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19376 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19377 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19378 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19379 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19380 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19381 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19382 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19383 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19384 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19385 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19386 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19387 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19388 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19389 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19390 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19391 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19392 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19393 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19394 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19395 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19396 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19397 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19398 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19399 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19400 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19401 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19402 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19403 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19404 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19405 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19406 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19407 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19408 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19409 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19410 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19411 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19412 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19413 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19414 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19415 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19416 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19417 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19418 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19419 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19420 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19421 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19422 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19423 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19424 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19425 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19426 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19427 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19428 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19429 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19430 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19431 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19432 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19433 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19434 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19435 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19438 LTCFLAGS='$LTCFLAGS'
19439 compiler='$compiler_DEFAULT'
19441 # A function that is used when there is no print builtin or printf.
19442 func_fallback_echo ()
19444 eval 'cat <<_LTECHO_EOF
19449 # Quote evaled strings.
19464 deplibs_check_method \
19469 sharedlib_from_linklib_cmd \
19472 archiver_list_spec \
19478 lt_cv_sys_global_symbol_pipe \
19479 lt_cv_sys_global_symbol_to_cdecl \
19480 lt_cv_sys_global_symbol_to_c_name_address \
19481 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19482 nm_file_list_spec \
19483 lt_prog_compiler_no_builtin_flag \
19484 lt_prog_compiler_pic \
19485 lt_prog_compiler_wl \
19486 lt_prog_compiler_static \
19487 lt_cv_prog_compiler_c_o \
19496 export_dynamic_flag_spec \
19497 whole_archive_flag_spec \
19498 compiler_needs_object \
19500 allow_undefined_flag \
19501 no_undefined_flag \
19502 hardcode_libdir_flag_spec \
19503 hardcode_libdir_separator \
19507 variables_saved_for_relink \
19509 library_names_spec \
19511 install_override_mode \
19515 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19516 *[\\\\\\\`\\"\\\$]*)
19517 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19520 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19525 # Double-quote double-evaled strings.
19526 for var in reload_cmds \
19527 old_postinstall_cmds \
19528 old_postuninstall_cmds \
19530 extract_expsyms_cmds \
19531 old_archive_from_new_cmds \
19532 old_archive_from_expsyms_cmds \
19534 archive_expsym_cmds \
19536 module_expsym_cmds \
19537 export_symbols_cmds \
19541 postuninstall_cmds \
19543 sys_lib_search_path_spec \
19544 sys_lib_dlsearch_path_spec; do
19545 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19546 *[\\\\\\\`\\"\\\$]*)
19547 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19550 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19555 ac_aux_dir='$ac_aux_dir'
19556 xsi_shell='$xsi_shell'
19557 lt_shell_append='$lt_shell_append'
19559 # See if we are running on zsh, and set the options which allow our
19560 # commands through without removal of \ escapes INIT.
19561 if test -n "\${ZSH_VERSION+set}" ; then
19562 setopt NO_GLOB_SUBST
19568 TIMESTAMP='$TIMESTAMP'
19577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19579 # Handling of arguments.
19580 for ac_config_target in $ac_config_targets
19582 case $ac_config_target in
19583 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
19584 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19585 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19586 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19587 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19588 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19589 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
19590 "xi.pc") CONFIG_FILES="$CONFIG_FILES xi.pc" ;;
19592 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19597 # If the user did not use the arguments to specify the items to instantiate,
19598 # then the envvar interface is used. Set only those that are not.
19599 # We use the long form for the default assignment because of an extremely
19600 # bizarre bug on SunOS 4.1.3.
19601 if $ac_need_defaults; then
19602 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19603 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19604 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19607 # Have a temporary directory for convenience. Make it in the build tree
19608 # simply because there is no reason against having it here, and in addition,
19609 # creating and moving files from /tmp can sometimes cause problems.
19610 # Hook for its removal unless debugging.
19611 # Note that there is a small window in which the directory will not be cleaned:
19612 # after its creation but before its name has been assigned to `$tmp'.
19616 trap 'exit_status=$?
19617 : "${ac_tmp:=$tmp}"
19618 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19620 trap 'as_fn_exit 1' 1 2 13 15
19622 # Create a (secure) tmp directory for tmp files.
19625 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19629 tmp=./conf$$-$RANDOM
19630 (umask 077 && mkdir "$tmp")
19631 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19634 # Set up the scripts for CONFIG_FILES section.
19635 # No need to generate them if there are no CONFIG_FILES.
19636 # This happens for instance with `./config.status config.h'.
19637 if test -n "$CONFIG_FILES"; then
19640 ac_cr=`echo X | tr X '\015'`
19641 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19642 # But we know of no other shell where ac_cr would be empty at this
19643 # point, so we can use a bashism as a fallback.
19644 if test "x$ac_cr" = x; then
19645 eval ac_cr=\$\'\\r\'
19647 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19648 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19651 ac_cs_awk_cr=$ac_cr
19654 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19659 echo "cat >conf$$subs.awk <<_ACEOF" &&
19660 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19662 } >conf$$subs.sh ||
19663 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19664 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19666 for ac_last_try in false false false false false :; do
19667 . ./conf$$subs.sh ||
19668 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19670 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19671 if test $ac_delim_n = $ac_delim_num; then
19673 elif $ac_last_try; then
19674 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19676 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19679 rm -f conf$$subs.sh
19681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19682 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19686 s/^/S["/; s/!.*/"]=/
19696 s/\(.\{148\}\)..*/\1/
19698 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19703 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19710 s/\(.\{148\}\)..*/\1/
19712 s/["\\]/\\&/g; s/^/"/; s/$/"/
19716 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19721 ' <conf$$subs.awk | sed '
19726 ' >>$CONFIG_STATUS || ac_write_fail=1
19727 rm -f conf$$subs.awk
19728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19730 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19731 for (key in S) S_is_set[key] = 1
19737 nfields = split(line, field, "@")
19739 len = length(field[1])
19740 for (i = 2; i < nfields; i++) {
19742 keylen = length(key)
19743 if (S_is_set[key]) {
19745 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19746 len += length(value) + length(field[++i])
19757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19758 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19759 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19762 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19763 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19766 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19767 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19768 # trailing colons and then remove the whole line if VPATH becomes empty
19769 # (actually we leave an empty line to preserve line numbers).
19770 if test "x$srcdir" = x.; then
19771 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19790 fi # test -n "$CONFIG_FILES"
19792 # Set up the scripts for CONFIG_HEADERS section.
19793 # No need to generate them if there are no CONFIG_HEADERS.
19794 # This happens for instance with `./config.status Makefile'.
19795 if test -n "$CONFIG_HEADERS"; then
19796 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19800 # Transform confdefs.h into an awk script `defines.awk', embedded as
19801 # here-document in config.status, that substitutes the proper values into
19802 # config.h.in to produce config.h.
19804 # Create a delimiter string that does not exist in confdefs.h, to ease
19805 # handling of long lines.
19807 for ac_last_try in false false :; do
19808 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19809 if test -z "$ac_tt"; then
19811 elif $ac_last_try; then
19812 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19814 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19818 # For the awk script, D is an array of macro values keyed by name,
19819 # likewise P contains macro parameters if any. Preserve backslash
19820 # newline sequences.
19822 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19824 s/.\{148\}/&'"$ac_delim"'/g
19827 s/^[ ]*#[ ]*define[ ][ ]*/ /
19834 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19836 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19840 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19841 D["\1"]=" \3\\\\\\n"\\/p
19843 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19848 s/.\{148\}/&'"$ac_delim"'/g
19853 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19856 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19858 ' <confdefs.h | sed '
19859 s/'"$ac_delim"'/"\\\
19860 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19863 for (key in D) D_is_set[key] = 1
19866 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19868 split(line, arg, " ")
19869 if (arg[1] == "#") {
19873 defundef = substr(arg[1], 2)
19876 split(mac1, mac2, "(") #)
19878 prefix = substr(line, 1, index(line, defundef) - 1)
19879 if (D_is_set[macro]) {
19880 # Preserve the white space surrounding the "#".
19881 print prefix "define", macro P[macro] D[macro]
19884 # Replace #undef with comments. This is necessary, for example,
19885 # in the case of _POSIX_SOURCE, which is predefined and required
19886 # on some systems where configure will not decide to define it.
19887 if (defundef == "undef") {
19888 print "/*", prefix defundef, macro, "*/"
19896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19897 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19898 fi # test -n "$CONFIG_HEADERS"
19901 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19906 :[FHLC]) ac_mode=$ac_tag; continue;;
19908 case $ac_mode$ac_tag in
19910 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19911 :[FH]-) ac_tag=-:-;;
19912 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19929 -) ac_f="$ac_tmp/stdin";;
19930 *) # Look for the file first in the build tree, then in the source tree
19931 # (if the path is not absolute). The absolute path cannot be DOS-style,
19932 # because $ac_f cannot contain `:'.
19936 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19938 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19940 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19941 as_fn_append ac_file_inputs " '$ac_f'"
19944 # Let's still pretend it is `configure' which instantiates (i.e., don't
19945 # use $as_me), people would be surprised to read:
19946 # /* config.h. Generated by config.status. */
19947 configure_input='Generated from '`
19948 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19950 if test x"$ac_file" != x-; then
19951 configure_input="$ac_file. $configure_input"
19952 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19953 $as_echo "$as_me: creating $ac_file" >&6;}
19955 # Neutralize special characters interpreted by sed in replacement strings.
19956 case $configure_input in #(
19957 *\&* | *\|* | *\\* )
19958 ac_sed_conf_input=`$as_echo "$configure_input" |
19959 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19960 *) ac_sed_conf_input=$configure_input;;
19964 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19965 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19970 ac_dir=`$as_dirname -- "$ac_file" ||
19971 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19972 X"$ac_file" : 'X\(//\)[^/]' \| \
19973 X"$ac_file" : 'X\(//\)$' \| \
19974 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19975 $as_echo X"$ac_file" |
19976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19980 /^X\(\/\/\)[^/].*/{
19993 as_dir="$ac_dir"; as_fn_mkdir_p
19997 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19999 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20000 # A ".." for each directory in $ac_dir_suffix.
20001 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20002 case $ac_top_builddir_sub in
20003 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20004 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20007 ac_abs_top_builddir=$ac_pwd
20008 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20009 # for backward compatibility:
20010 ac_top_builddir=$ac_top_build_prefix
20013 .) # We are building in place.
20015 ac_top_srcdir=$ac_top_builddir_sub
20016 ac_abs_top_srcdir=$ac_pwd ;;
20017 [\\/]* | ?:[\\/]* ) # Absolute name.
20018 ac_srcdir=$srcdir$ac_dir_suffix;
20019 ac_top_srcdir=$srcdir
20020 ac_abs_top_srcdir=$srcdir ;;
20021 *) # Relative name.
20022 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20023 ac_top_srcdir=$ac_top_build_prefix$srcdir
20024 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20026 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20036 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20037 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20039 ac_MKDIR_P=$MKDIR_P
20041 [\\/$]* | ?:[\\/]* ) ;;
20042 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20047 # If the template does not know about datarootdir, expand it.
20048 # FIXME: This hack should be removed a few years after 2.60.
20049 ac_datarootdir_hack=; ac_datarootdir_seen=
20060 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20061 *datarootdir*) ac_datarootdir_seen=yes;;
20062 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20064 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20067 ac_datarootdir_hack='
20068 s&@datadir@&$datadir&g
20069 s&@docdir@&$docdir&g
20070 s&@infodir@&$infodir&g
20071 s&@localedir@&$localedir&g
20072 s&@mandir@&$mandir&g
20073 s&\\\${datarootdir}&$datarootdir&g' ;;
20077 # Neutralize VPATH when `$srcdir' = `.'.
20078 # Shell code in configure.ac might set extrasub.
20079 # FIXME: do we really want to maintain this feature?
20080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20081 ac_sed_extra="$ac_vpsub
20084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20086 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20087 s|@configure_input@|$ac_sed_conf_input|;t t
20088 s&@top_builddir@&$ac_top_builddir_sub&;t t
20089 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20090 s&@srcdir@&$ac_srcdir&;t t
20091 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20092 s&@top_srcdir@&$ac_top_srcdir&;t t
20093 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20094 s&@builddir@&$ac_builddir&;t t
20095 s&@abs_builddir@&$ac_abs_builddir&;t t
20096 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20097 s&@INSTALL@&$ac_INSTALL&;t t
20098 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20099 $ac_datarootdir_hack
20101 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20102 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20104 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20105 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20106 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20107 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20109 which seems to be undefined. Please make sure it is defined" >&5
20110 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20111 which seems to be undefined. Please make sure it is defined" >&2;}
20113 rm -f "$ac_tmp/stdin"
20115 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20116 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20118 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20124 if test x"$ac_file" != x-; then
20126 $as_echo "/* $configure_input */" \
20127 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20128 } >"$ac_tmp/config.h" \
20129 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20130 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20131 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20132 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20135 mv "$ac_tmp/config.h" "$ac_file" \
20136 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20139 $as_echo "/* $configure_input */" \
20140 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20141 || as_fn_error $? "could not create -" "$LINENO" 5
20143 # Compute "$ac_file"'s index in $config_headers.
20146 for _am_header in $config_headers :; do
20147 case $_am_header in
20148 $_am_arg | $_am_arg:* )
20151 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20154 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20155 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20156 X"$_am_arg" : 'X\(//\)[^/]' \| \
20157 X"$_am_arg" : 'X\(//\)$' \| \
20158 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20159 $as_echo X"$_am_arg" |
20160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20164 /^X\(\/\/\)[^/].*/{
20176 s/.*/./; q'`/stamp-h$_am_stamp_count
20179 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20180 $as_echo "$as_me: executing $ac_file commands" >&6;}
20185 case $ac_file$ac_mode in
20186 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20187 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20188 # are listed without --file. Let's play safe and only enable the eval
20189 # if we detect the quoting.
20190 case $CONFIG_FILES in
20191 *\'*) eval set x "$CONFIG_FILES" ;;
20192 *) set x $CONFIG_FILES ;;
20197 # Strip MF so we end up with the name of the file.
20198 mf=`echo "$mf" | sed -e 's/:.*$//'`
20199 # Check whether this is an Automake generated Makefile or not.
20200 # We used to match only the files named `Makefile.in', but
20201 # some people rename them; so instead we look at the file content.
20202 # Grep'ing the first line is not enough: some people post-process
20203 # each Makefile.in and add a new line on top of each file to say so.
20204 # Grep'ing the whole file is not good either: AIX grep has a line
20205 # limit of 2048, but all sed's we know have understand at least 4000.
20206 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20207 dirpart=`$as_dirname -- "$mf" ||
20208 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20209 X"$mf" : 'X\(//\)[^/]' \| \
20210 X"$mf" : 'X\(//\)$' \| \
20211 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20217 /^X\(\/\/\)[^/].*/{
20233 # Extract the definition of DEPDIR, am__include, and am__quote
20234 # from the Makefile without running `make'.
20235 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20236 test -z "$DEPDIR" && continue
20237 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20238 test -z "am__include" && continue
20239 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20240 # When using ansi2knr, U may be empty or an underscore; expand it
20241 U=`sed -n 's/^U = //p' < "$mf"`
20242 # Find all dependency output files, they are included files with
20243 # $(DEPDIR) in their names. We invoke sed twice because it is the
20244 # simplest approach to changing $(DEPDIR) to its actual value in the
20246 for file in `sed -n "
20247 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20248 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20249 # Make sure the directory exists.
20250 test -f "$dirpart/$file" && continue
20251 fdir=`$as_dirname -- "$file" ||
20252 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20253 X"$file" : 'X\(//\)[^/]' \| \
20254 X"$file" : 'X\(//\)$' \| \
20255 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20256 $as_echo X"$file" |
20257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20261 /^X\(\/\/\)[^/].*/{
20274 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20275 # echo "creating $dirpart/$file"
20276 echo '# dummy' > "$dirpart/$file"
20283 # See if we are running on zsh, and set the options which allow our
20284 # commands through without removal of \ escapes.
20285 if test -n "${ZSH_VERSION+set}" ; then
20286 setopt NO_GLOB_SUBST
20289 cfgfile="${ofile}T"
20290 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20293 cat <<_LT_EOF >> "$cfgfile"
20296 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20297 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20298 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20299 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20301 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20302 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20304 # Written by Gordon Matzigkeit, 1996
20306 # This file is part of GNU Libtool.
20308 # GNU Libtool is free software; you can redistribute it and/or
20309 # modify it under the terms of the GNU General Public License as
20310 # published by the Free Software Foundation; either version 2 of
20311 # the License, or (at your option) any later version.
20313 # As a special exception to the GNU General Public License,
20314 # if you distribute this file as part of a program or library that
20315 # is built using GNU Libtool, you may include this file under the
20316 # same distribution terms that you use for the rest of that program.
20318 # GNU Libtool is distributed in the hope that it will be useful,
20319 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20320 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20321 # GNU General Public License for more details.
20323 # You should have received a copy of the GNU General Public License
20324 # along with GNU Libtool; see the file COPYING. If not, a copy
20325 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20326 # obtained by writing to the Free Software Foundation, Inc.,
20327 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20330 # The names of the tagged configurations supported by this script.
20333 # ### BEGIN LIBTOOL CONFIG
20335 # Which release of libtool.m4 was used?
20336 macro_version=$macro_version
20337 macro_revision=$macro_revision
20339 # Whether or not to build shared libraries.
20340 build_libtool_libs=$enable_shared
20342 # Whether or not to build static libraries.
20343 build_old_libs=$enable_static
20345 # What type of objects to build.
20348 # Whether or not to optimize for fast installation.
20349 fast_install=$enable_fast_install
20351 # Shell to use when invoking shell scripts.
20354 # An echo program that protects backslashes.
20357 # The PATH separator for the build system.
20358 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20361 host_alias=$host_alias
20365 # The build system.
20366 build_alias=$build_alias
20370 # A sed program that does not truncate output.
20373 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20374 Xsed="\$SED -e 1s/^X//"
20376 # A grep program that handles long lines.
20382 # A literal string matcher.
20385 # A BSD- or MS-compatible name lister.
20388 # Whether we need soft or hard links.
20391 # What is the maximum length of a command?
20392 max_cmd_len=$max_cmd_len
20394 # Object file suffix (normally "o").
20397 # Executable file suffix (normally "").
20400 # whether the shell understands "unset".
20403 # turn spaces into newlines.
20406 # turn newlines into spaces.
20409 # convert \$build file names to \$host format.
20410 to_host_file_cmd=$lt_cv_to_host_file_cmd
20412 # convert \$build files to toolchain format.
20413 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20415 # An object symbol dumper.
20416 OBJDUMP=$lt_OBJDUMP
20418 # Method to check whether dependent libraries are shared objects.
20419 deplibs_check_method=$lt_deplibs_check_method
20421 # Command to use when deplibs_check_method = "file_magic".
20422 file_magic_cmd=$lt_file_magic_cmd
20424 # How to find potential files when deplibs_check_method = "file_magic".
20425 file_magic_glob=$lt_file_magic_glob
20427 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20428 want_nocaseglob=$lt_want_nocaseglob
20430 # DLL creation program.
20431 DLLTOOL=$lt_DLLTOOL
20433 # Command to associate shared and link libraries.
20434 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20439 # Flags to create an archive.
20440 AR_FLAGS=$lt_AR_FLAGS
20442 # How to feed a file listing to the archiver.
20443 archiver_list_spec=$lt_archiver_list_spec
20445 # A symbol stripping program.
20448 # Commands used to install an old-style archive.
20450 old_postinstall_cmds=$lt_old_postinstall_cmds
20451 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20453 # Whether to use a lock for old archive extraction.
20454 lock_old_archive_extraction=$lock_old_archive_extraction
20459 # LTCC compiler flags.
20460 LTCFLAGS=$lt_CFLAGS
20462 # Take the output of nm and produce a listing of raw symbols and C names.
20463 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20465 # Transform the output of nm in a proper C declaration.
20466 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20468 # Transform the output of nm in a C name address pair.
20469 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20471 # Transform the output of nm in a C name address pair when lib prefix is needed.
20472 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20474 # Specify filename containing input files for \$NM.
20475 nm_file_list_spec=$lt_nm_file_list_spec
20477 # The root where to search for dependent libraries,and in which our libraries should be installed.
20478 lt_sysroot=$lt_sysroot
20480 # The name of the directory that contains temporary libtool files.
20483 # Used to examine libraries when file_magic_cmd begins with "file".
20484 MAGIC_CMD=$MAGIC_CMD
20486 # Must we lock files when doing compilation?
20487 need_locks=$lt_need_locks
20490 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20492 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20493 DSYMUTIL=$lt_DSYMUTIL
20495 # Tool to change global to local symbols on Mac OS X.
20498 # Tool to manipulate fat objects and archives on Mac OS X.
20501 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20504 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20505 OTOOL64=$lt_OTOOL64
20507 # Old archive suffix (normally "a").
20510 # Shared library suffix (normally ".so").
20511 shrext_cmds=$lt_shrext_cmds
20513 # The commands to extract the exported symbol list from a shared archive.
20514 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20516 # Variables whose values should be saved in libtool wrapper scripts and
20517 # restored at link time.
20518 variables_saved_for_relink=$lt_variables_saved_for_relink
20520 # Do we need the "lib" prefix for modules?
20521 need_lib_prefix=$need_lib_prefix
20523 # Do we need a version for libraries?
20524 need_version=$need_version
20526 # Library versioning type.
20527 version_type=$version_type
20529 # Shared library runtime path variable.
20530 runpath_var=$runpath_var
20532 # Shared library path variable.
20533 shlibpath_var=$shlibpath_var
20535 # Is shlibpath searched before the hard-coded library search path?
20536 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20538 # Format of library name prefix.
20539 libname_spec=$lt_libname_spec
20541 # List of archive names. First name is the real one, the rest are links.
20542 # The last name is the one that the linker finds with -lNAME
20543 library_names_spec=$lt_library_names_spec
20545 # The coded name of the library, if different from the real name.
20546 soname_spec=$lt_soname_spec
20548 # Permission mode override for installation of shared libraries.
20549 install_override_mode=$lt_install_override_mode
20551 # Command to use after installation of a shared archive.
20552 postinstall_cmds=$lt_postinstall_cmds
20554 # Command to use after uninstallation of a shared archive.
20555 postuninstall_cmds=$lt_postuninstall_cmds
20557 # Commands used to finish a libtool library installation in a directory.
20558 finish_cmds=$lt_finish_cmds
20560 # As "finish_cmds", except a single script fragment to be evaled but
20562 finish_eval=$lt_finish_eval
20564 # Whether we should hardcode library paths into libraries.
20565 hardcode_into_libs=$hardcode_into_libs
20567 # Compile-time system search path for libraries.
20568 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20570 # Run-time system search path for libraries.
20571 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20573 # Whether dlopen is supported.
20574 dlopen_support=$enable_dlopen
20576 # Whether dlopen of programs is supported.
20577 dlopen_self=$enable_dlopen_self
20579 # Whether dlopen of statically linked programs is supported.
20580 dlopen_self_static=$enable_dlopen_self_static
20582 # Commands to strip libraries.
20583 old_striplib=$lt_old_striplib
20584 striplib=$lt_striplib
20587 # The linker used to build libraries.
20590 # How to create reloadable object files.
20591 reload_flag=$lt_reload_flag
20592 reload_cmds=$lt_reload_cmds
20594 # Commands used to build an old-style archive.
20595 old_archive_cmds=$lt_old_archive_cmds
20597 # A language specific compiler.
20600 # Is the compiler the GNU compiler?
20603 # Compiler flag to turn off builtin functions.
20604 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20606 # Additional compiler flags for building library objects.
20607 pic_flag=$lt_lt_prog_compiler_pic
20609 # How to pass a linker flag through the compiler.
20610 wl=$lt_lt_prog_compiler_wl
20612 # Compiler flag to prevent dynamic linking.
20613 link_static_flag=$lt_lt_prog_compiler_static
20615 # Does compiler simultaneously support -c and -o options?
20616 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20618 # Whether or not to add -lc for building shared libraries.
20619 build_libtool_need_lc=$archive_cmds_need_lc
20621 # Whether or not to disallow shared libs when runtime libs are static.
20622 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20624 # Compiler flag to allow reflexive dlopens.
20625 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20627 # Compiler flag to generate shared objects directly from archives.
20628 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20630 # Whether the compiler copes with passing no objects directly.
20631 compiler_needs_object=$lt_compiler_needs_object
20633 # Create an old-style archive from a shared archive.
20634 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20636 # Create a temporary old-style archive to link instead of a shared archive.
20637 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20639 # Commands used to build a shared archive.
20640 archive_cmds=$lt_archive_cmds
20641 archive_expsym_cmds=$lt_archive_expsym_cmds
20643 # Commands used to build a loadable module if different from building
20644 # a shared archive.
20645 module_cmds=$lt_module_cmds
20646 module_expsym_cmds=$lt_module_expsym_cmds
20648 # Whether we are building with GNU ld or not.
20649 with_gnu_ld=$lt_with_gnu_ld
20651 # Flag that allows shared libraries with undefined symbols to be built.
20652 allow_undefined_flag=$lt_allow_undefined_flag
20654 # Flag that enforces no undefined symbols.
20655 no_undefined_flag=$lt_no_undefined_flag
20657 # Flag to hardcode \$libdir into a binary during linking.
20658 # This must work even if \$libdir does not exist
20659 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20661 # Whether we need a single "-rpath" flag with a separated argument.
20662 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20664 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20665 # DIR into the resulting binary.
20666 hardcode_direct=$hardcode_direct
20668 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20669 # DIR into the resulting binary and the resulting library dependency is
20670 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20671 # library is relocated.
20672 hardcode_direct_absolute=$hardcode_direct_absolute
20674 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20675 # into the resulting binary.
20676 hardcode_minus_L=$hardcode_minus_L
20678 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20679 # into the resulting binary.
20680 hardcode_shlibpath_var=$hardcode_shlibpath_var
20682 # Set to "yes" if building a shared library automatically hardcodes DIR
20683 # into the library and all subsequent libraries and executables linked
20685 hardcode_automatic=$hardcode_automatic
20687 # Set to yes if linker adds runtime paths of dependent libraries
20688 # to runtime path list.
20689 inherit_rpath=$inherit_rpath
20691 # Whether libtool must link a program against all its dependency libraries.
20692 link_all_deplibs=$link_all_deplibs
20694 # Set to "yes" if exported symbols are required.
20695 always_export_symbols=$always_export_symbols
20697 # The commands to list exported symbols.
20698 export_symbols_cmds=$lt_export_symbols_cmds
20700 # Symbols that should not be listed in the preloaded symbols.
20701 exclude_expsyms=$lt_exclude_expsyms
20703 # Symbols that must always be exported.
20704 include_expsyms=$lt_include_expsyms
20706 # Commands necessary for linking programs (against libraries) with templates.
20707 prelink_cmds=$lt_prelink_cmds
20709 # Commands necessary for finishing linking programs.
20710 postlink_cmds=$lt_postlink_cmds
20712 # Specify filename containing input files.
20713 file_list_spec=$lt_file_list_spec
20715 # How to hardcode a shared library path into an executable.
20716 hardcode_action=$hardcode_action
20718 # ### END LIBTOOL CONFIG
20724 cat <<\_LT_EOF >> "$cfgfile"
20725 # AIX sometimes has problems with the GCC collect2 program. For some
20726 # reason, if we set the COLLECT_NAMES environment variable, the problems
20727 # vanish in a puff of smoke.
20728 if test "X${COLLECT_NAMES+set}" != Xset; then
20730 export COLLECT_NAMES
20737 ltmain="$ac_aux_dir/ltmain.sh"
20740 # We use sed instead of cat because bash on DJGPP gets confused if
20741 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20742 # text mode, it properly converts lines to CR/LF. This bash problem
20743 # is reportedly fixed, but why not run on old versions too?
20744 sed '$q' "$ltmain" >> "$cfgfile" \
20745 || (rm -f "$cfgfile"; exit 1)
20747 if test x"$xsi_shell" = xyes; then
20748 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20752 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20753 \ * ) func_dirname_result="${3}" ;;\
20755 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20756 && mv -f "$cfgfile.tmp" "$cfgfile" \
20757 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20758 test 0 -eq $? || _lt_function_replace_fail=:
20761 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20764 \ func_basename_result="${1##*/}"\
20765 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20766 && mv -f "$cfgfile.tmp" "$cfgfile" \
20767 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20768 test 0 -eq $? || _lt_function_replace_fail=:
20771 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20772 func_dirname_and_basename ()\
20775 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20776 \ * ) func_dirname_result="${3}" ;;\
20778 \ func_basename_result="${1##*/}"\
20779 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20780 && mv -f "$cfgfile.tmp" "$cfgfile" \
20781 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20782 test 0 -eq $? || _lt_function_replace_fail=:
20785 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20788 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20789 \ # positional parameters, so assign one to ordinary parameter first.\
20790 \ func_stripname_result=${3}\
20791 \ func_stripname_result=${func_stripname_result#"${1}"}\
20792 \ func_stripname_result=${func_stripname_result%"${2}"}\
20793 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20794 && mv -f "$cfgfile.tmp" "$cfgfile" \
20795 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20796 test 0 -eq $? || _lt_function_replace_fail=:
20799 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20800 func_split_long_opt ()\
20802 \ func_split_long_opt_name=${1%%=*}\
20803 \ func_split_long_opt_arg=${1#*=}\
20804 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20805 && mv -f "$cfgfile.tmp" "$cfgfile" \
20806 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20807 test 0 -eq $? || _lt_function_replace_fail=:
20810 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20811 func_split_short_opt ()\
20813 \ func_split_short_opt_arg=${1#??}\
20814 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20815 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20816 && mv -f "$cfgfile.tmp" "$cfgfile" \
20817 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20818 test 0 -eq $? || _lt_function_replace_fail=:
20821 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20825 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20826 \ *) func_lo2o_result=${1} ;;\
20828 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20829 && mv -f "$cfgfile.tmp" "$cfgfile" \
20830 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20831 test 0 -eq $? || _lt_function_replace_fail=:
20834 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20837 func_xform_result=${1%.*}.lo\
20838 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20839 && mv -f "$cfgfile.tmp" "$cfgfile" \
20840 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20841 test 0 -eq $? || _lt_function_replace_fail=:
20844 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20847 func_arith_result=$(( $* ))\
20848 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20849 && mv -f "$cfgfile.tmp" "$cfgfile" \
20850 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20851 test 0 -eq $? || _lt_function_replace_fail=:
20854 sed -e '/^func_len ()$/,/^} # func_len /c\
20857 func_len_result=${#1}\
20858 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20859 && mv -f "$cfgfile.tmp" "$cfgfile" \
20860 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20861 test 0 -eq $? || _lt_function_replace_fail=:
20865 if test x"$lt_shell_append" = xyes; then
20866 sed -e '/^func_append ()$/,/^} # func_append /c\
20869 eval "${1}+=\\${2}"\
20870 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20871 && mv -f "$cfgfile.tmp" "$cfgfile" \
20872 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20873 test 0 -eq $? || _lt_function_replace_fail=:
20876 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20877 func_append_quoted ()\
20879 \ func_quote_for_eval "${2}"\
20880 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20881 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20882 && mv -f "$cfgfile.tmp" "$cfgfile" \
20883 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20884 test 0 -eq $? || _lt_function_replace_fail=:
20887 # Save a `func_append' function call where possible by direct use of '+='
20888 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20889 && mv -f "$cfgfile.tmp" "$cfgfile" \
20890 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20891 test 0 -eq $? || _lt_function_replace_fail=:
20893 # Save a `func_append' function call even when '+=' is not available
20894 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20895 && mv -f "$cfgfile.tmp" "$cfgfile" \
20896 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20897 test 0 -eq $? || _lt_function_replace_fail=:
20900 if test x"$_lt_function_replace_fail" = x":"; then
20901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20902 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20906 mv -f "$cfgfile" "$ofile" ||
20907 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20918 ac_clean_files=$ac_clean_files_save
20920 test $ac_write_fail = 0 ||
20921 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20924 # configure is writing to config.log, and then calls config.status.
20925 # config.status does its own redirection, appending to config.log.
20926 # Unfortunately, on DOS this fails, as config.log is still kept open
20927 # by configure, so config.status won't be able to write to it; its
20928 # output is simply discarded. So we exec the FD to /dev/null,
20929 # effectively closing config.log, so it can be properly (re)opened and
20930 # appended to by config.status. When coming back to configure, we
20931 # need to make the FD available again.
20932 if test "$no_create" != yes; then
20934 ac_config_status_args=
20935 test "$silent" = yes &&
20936 ac_config_status_args="$ac_config_status_args --quiet"
20938 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20940 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20941 # would make configure fail if this is the last instruction.
20942 $ac_cs_success || as_fn_exit 1
20944 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20946 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}