2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xf86-video-intel 2.20.9.
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir=./$as_dir;;
333 test -d "$as_dir" || eval $as_mkdir_p || {
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410 as_val=`expr "$@" || test $? -eq 1`
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
422 as_status=$1; test $as_status -eq 0 && as_status=1
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
508 # Exit status is that of the last command.
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 elif ln conf$$.file conf$$ 2>/dev/null; then
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
555 test -d ./-p && rmdir ./-p
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" || exec 7<&0 </dev/null
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 ac_default_prefix=/usr/local
584 ac_config_libobj_dir=.
591 # Identity of this package.
592 PACKAGE_NAME='xf86-video-intel'
593 PACKAGE_TARNAME='xf86-video-intel'
594 PACKAGE_VERSION='2.20.9'
595 PACKAGE_STRING='xf86-video-intel 2.20.9'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
613 # ifdef HAVE_STDLIB_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
636 ac_subst_vars='am__EXEEXT_FALSE
776 MAINTAINER_MODE_FALSE
786 INSTALL_STRIP_PROGRAM
828 program_transform_name
841 enable_option_checking
842 enable_maintainer_mode
843 enable_dependency_tracking
844 enable_selective_werror
845 enable_strict_compilation
872 ac_precious_vars='build_alias
912 # Initialize some variables set by options.
914 ac_init_version=false
915 ac_unrecognized_opts=
917 # The variables have the same names as the options, with
918 # dashes changed to underlines.
926 program_transform_name=s,x,x,
934 # Installation directory options.
935 # These are left unexpanded so users can "make install exec_prefix=/foo"
936 # and all the variables that are supposed to be based on exec_prefix
937 # by default will actually change.
938 # Use braces instead of parens because sh, perl, etc. also accept them.
939 # (The list follows the same order as the GNU Coding Standards.)
940 bindir='${exec_prefix}/bin'
941 sbindir='${exec_prefix}/sbin'
942 libexecdir='${exec_prefix}/libexec'
943 datarootdir='${prefix}/share'
944 datadir='${datarootdir}'
945 sysconfdir='${prefix}/etc'
946 sharedstatedir='${prefix}/com'
947 localstatedir='${prefix}/var'
948 includedir='${prefix}/include'
949 oldincludedir='/usr/include'
950 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
951 infodir='${datarootdir}/info'
956 libdir='${exec_prefix}/lib'
957 localedir='${datarootdir}/locale'
958 mandir='${datarootdir}/man'
964 # If the previous option needs an argument, assign it.
965 if test -n "$ac_prev"; then
966 eval $ac_prev=\$ac_option
972 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977 # Accept the important Cygnus configure options, so we can diagnose typos.
979 case $ac_dashdash$ac_option in
983 -bindir | --bindir | --bindi | --bind | --bin | --bi)
985 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
988 -build | --build | --buil | --bui | --bu)
989 ac_prev=build_alias ;;
990 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
991 build_alias=$ac_optarg ;;
993 -cache-file | --cache-file | --cache-fil | --cache-fi \
994 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995 ac_prev=cache_file ;;
996 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
998 cache_file=$ac_optarg ;;
1000 --config-cache | -C)
1001 cache_file=config.cache ;;
1003 -datadir | --datadir | --datadi | --datad)
1005 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1006 datadir=$ac_optarg ;;
1008 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009 | --dataroo | --dataro | --datar)
1010 ac_prev=datarootdir ;;
1011 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013 datarootdir=$ac_optarg ;;
1015 -disable-* | --disable-*)
1016 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019 as_fn_error $? "invalid feature name: $ac_useropt"
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1024 "enable_$ac_useropt"
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1029 eval enable_$ac_useropt=no ;;
1031 -docdir | --docdir | --docdi | --doc | --do)
1033 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1034 docdir=$ac_optarg ;;
1036 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1038 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1039 dvidir=$ac_optarg ;;
1041 -enable-* | --enable-*)
1042 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045 as_fn_error $? "invalid feature name: $ac_useropt"
1046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1050 "enable_$ac_useropt"
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
1055 eval enable_$ac_useropt=\$ac_optarg ;;
1057 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059 | --exec | --exe | --ex)
1060 ac_prev=exec_prefix ;;
1061 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063 | --exec=* | --exe=* | --ex=*)
1064 exec_prefix=$ac_optarg ;;
1066 -gas | --gas | --ga | --g)
1067 # Obsolete; use --with-gas.
1070 -help | --help | --hel | --he | -h)
1071 ac_init_help=long ;;
1072 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073 ac_init_help=recursive ;;
1074 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075 ac_init_help=short ;;
1077 -host | --host | --hos | --ho)
1078 ac_prev=host_alias ;;
1079 -host=* | --host=* | --hos=* | --ho=*)
1080 host_alias=$ac_optarg ;;
1082 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1084 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1086 htmldir=$ac_optarg ;;
1088 -includedir | --includedir | --includedi | --included | --include \
1089 | --includ | --inclu | --incl | --inc)
1090 ac_prev=includedir ;;
1091 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092 | --includ=* | --inclu=* | --incl=* | --inc=*)
1093 includedir=$ac_optarg ;;
1095 -infodir | --infodir | --infodi | --infod | --info | --inf)
1097 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1098 infodir=$ac_optarg ;;
1100 -libdir | --libdir | --libdi | --libd)
1102 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1103 libdir=$ac_optarg ;;
1105 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106 | --libexe | --libex | --libe)
1107 ac_prev=libexecdir ;;
1108 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109 | --libexe=* | --libex=* | --libe=*)
1110 libexecdir=$ac_optarg ;;
1112 -localedir | --localedir | --localedi | --localed | --locale)
1113 ac_prev=localedir ;;
1114 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115 localedir=$ac_optarg ;;
1117 -localstatedir | --localstatedir | --localstatedi | --localstated \
1118 | --localstate | --localstat | --localsta | --localst | --locals)
1119 ac_prev=localstatedir ;;
1120 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1121 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1122 localstatedir=$ac_optarg ;;
1124 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1126 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1127 mandir=$ac_optarg ;;
1129 -nfp | --nfp | --nf)
1130 # Obsolete; use --without-fp.
1133 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1134 | --no-cr | --no-c | -n)
1137 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1141 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143 | --oldin | --oldi | --old | --ol | --o)
1144 ac_prev=oldincludedir ;;
1145 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1148 oldincludedir=$ac_optarg ;;
1150 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1152 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1153 prefix=$ac_optarg ;;
1155 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156 | --program-pre | --program-pr | --program-p)
1157 ac_prev=program_prefix ;;
1158 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1160 program_prefix=$ac_optarg ;;
1162 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163 | --program-suf | --program-su | --program-s)
1164 ac_prev=program_suffix ;;
1165 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1167 program_suffix=$ac_optarg ;;
1169 -program-transform-name | --program-transform-name \
1170 | --program-transform-nam | --program-transform-na \
1171 | --program-transform-n | --program-transform- \
1172 | --program-transform | --program-transfor \
1173 | --program-transfo | --program-transf \
1174 | --program-trans | --program-tran \
1175 | --progr-tra | --program-tr | --program-t)
1176 ac_prev=program_transform_name ;;
1177 -program-transform-name=* | --program-transform-name=* \
1178 | --program-transform-nam=* | --program-transform-na=* \
1179 | --program-transform-n=* | --program-transform-=* \
1180 | --program-transform=* | --program-transfor=* \
1181 | --program-transfo=* | --program-transf=* \
1182 | --program-trans=* | --program-tran=* \
1183 | --progr-tra=* | --program-tr=* | --program-t=*)
1184 program_transform_name=$ac_optarg ;;
1186 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1188 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189 pdfdir=$ac_optarg ;;
1191 -psdir | --psdir | --psdi | --psd | --ps)
1193 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197 | -silent | --silent | --silen | --sile | --sil)
1200 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1202 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1204 sbindir=$ac_optarg ;;
1206 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1207 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1208 | --sharedst | --shareds | --shared | --share | --shar \
1210 ac_prev=sharedstatedir ;;
1211 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1212 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1213 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1215 sharedstatedir=$ac_optarg ;;
1217 -site | --site | --sit)
1219 -site=* | --site=* | --sit=*)
1222 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1224 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1225 srcdir=$ac_optarg ;;
1227 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1228 | --syscon | --sysco | --sysc | --sys | --sy)
1229 ac_prev=sysconfdir ;;
1230 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1231 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1232 sysconfdir=$ac_optarg ;;
1234 -target | --target | --targe | --targ | --tar | --ta | --t)
1235 ac_prev=target_alias ;;
1236 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1237 target_alias=$ac_optarg ;;
1239 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1242 -version | --version | --versio | --versi | --vers | -V)
1243 ac_init_version=: ;;
1246 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1247 # Reject names that are not valid shell variable names.
1248 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1249 as_fn_error $? "invalid package name: $ac_useropt"
1250 ac_useropt_orig=$ac_useropt
1251 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1252 case $ac_user_opts in
1256 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1257 ac_unrecognized_sep=', ';;
1259 eval with_$ac_useropt=\$ac_optarg ;;
1261 -without-* | --without-*)
1262 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1265 as_fn_error $? "invalid package name: $ac_useropt"
1266 ac_useropt_orig=$ac_useropt
1267 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268 case $ac_user_opts in
1272 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1273 ac_unrecognized_sep=', ';;
1275 eval with_$ac_useropt=no ;;
1278 # Obsolete; use --with-x.
1281 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1282 | --x-incl | --x-inc | --x-in | --x-i)
1283 ac_prev=x_includes ;;
1284 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1285 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1286 x_includes=$ac_optarg ;;
1288 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1289 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1290 ac_prev=x_libraries ;;
1291 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1292 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1293 x_libraries=$ac_optarg ;;
1295 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1296 Try \`$0 --help' for more information"
1300 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1301 # Reject names that are not valid shell variable names.
1302 case $ac_envvar in #(
1303 '' | [0-9]* | *[!_$as_cr_alnum]* )
1304 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1306 eval $ac_envvar=\$ac_optarg
1307 export $ac_envvar ;;
1310 # FIXME: should be removed in autoconf 3.0.
1311 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1312 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1313 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1314 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1320 if test -n "$ac_prev"; then
1321 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1322 as_fn_error $? "missing argument to $ac_option"
1325 if test -n "$ac_unrecognized_opts"; then
1326 case $enable_option_checking in
1328 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1329 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1333 # Check all directory arguments for consistency.
1334 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335 datadir sysconfdir sharedstatedir localstatedir includedir \
1336 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337 libdir localedir mandir
1339 eval ac_val=\$$ac_var
1340 # Remove trailing slashes.
1343 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1344 eval $ac_var=\$ac_val;;
1346 # Be sure to have absolute directory names.
1348 [\\/$]* | ?:[\\/]* ) continue;;
1349 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1351 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1354 # There might be people who depend on the old broken behavior: `$host'
1355 # used to hold the argument of --host etc.
1356 # FIXME: To remove some day.
1359 target=$target_alias
1361 # FIXME: To remove some day.
1362 if test "x$host_alias" != x; then
1363 if test "x$build_alias" = x; then
1364 cross_compiling=maybe
1365 elif test "x$build_alias" != "x$host_alias"; then
1371 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1373 test "$silent" = yes && exec 6>/dev/null
1376 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1377 ac_ls_di=`ls -di .` &&
1378 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1379 as_fn_error $? "working directory cannot be determined"
1380 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1381 as_fn_error $? "pwd does not report name of working directory"
1384 # Find the source files, if location was not specified.
1385 if test -z "$srcdir"; then
1386 ac_srcdir_defaulted=yes
1387 # Try the directory containing this script, then the parent directory.
1388 ac_confdir=`$as_dirname -- "$as_myself" ||
1389 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1390 X"$as_myself" : 'X\(//\)[^/]' \| \
1391 X"$as_myself" : 'X\(//\)$' \| \
1392 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1393 $as_echo X"$as_myself" |
1394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1412 if test ! -r "$srcdir/$ac_unique_file"; then
1416 ac_srcdir_defaulted=no
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1419 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1420 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1422 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1424 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1426 # When building in place, set srcdir=.
1427 if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 # Remove unnecessary trailing slashes from srcdir.
1431 # Double slashes in file names in object file debugging info
1432 # mess up M-x gdb in Emacs.
1434 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1436 for ac_var in $ac_precious_vars; do
1437 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_env_${ac_var}_value=\$${ac_var}
1439 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1444 # Report the --help message.
1446 if test "$ac_init_help" = "long"; then
1447 # Omit some internal or obsolete options to make the list less imposing.
1448 # This message is too long to be a string in the A/UX 3.1 sh.
1450 \`configure' configures xf86-video-intel 2.20.9 to adapt to many kinds of systems.
1452 Usage: $0 [OPTION]... [VAR=VALUE]...
1454 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455 VAR=VALUE. See below for descriptions of some of the useful variables.
1457 Defaults for the options are specified in brackets.
1460 -h, --help display this help and exit
1461 --help=short display options specific to this package
1462 --help=recursive display the short help of all the included packages
1463 -V, --version display version information and exit
1464 -q, --quiet, --silent do not print \`checking ...' messages
1465 --cache-file=FILE cache test results in FILE [disabled]
1466 -C, --config-cache alias for \`--cache-file=config.cache'
1467 -n, --no-create do not create output files
1468 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1470 Installation directories:
1471 --prefix=PREFIX install architecture-independent files in PREFIX
1472 [$ac_default_prefix]
1473 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1476 By default, \`make install' will install all the files in
1477 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1478 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479 for instance \`--prefix=\$HOME'.
1481 For better control, use the options below.
1483 Fine tuning of the installation directories:
1484 --bindir=DIR user executables [EPREFIX/bin]
1485 --sbindir=DIR system admin executables [EPREFIX/sbin]
1486 --libexecdir=DIR program executables [EPREFIX/libexec]
1487 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1488 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1489 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1490 --libdir=DIR object code libraries [EPREFIX/lib]
1491 --includedir=DIR C header files [PREFIX/include]
1492 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1493 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1494 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1495 --infodir=DIR info documentation [DATAROOTDIR/info]
1496 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1497 --mandir=DIR man documentation [DATAROOTDIR/man]
1498 --docdir=DIR documentation root
1499 [DATAROOTDIR/doc/xf86-video-intel]
1500 --htmldir=DIR html documentation [DOCDIR]
1501 --dvidir=DIR dvi documentation [DOCDIR]
1502 --pdfdir=DIR pdf documentation [DOCDIR]
1503 --psdir=DIR ps documentation [DOCDIR]
1509 --program-prefix=PREFIX prepend PREFIX to installed program names
1510 --program-suffix=SUFFIX append SUFFIX to installed program names
1511 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1514 --build=BUILD configure for building on BUILD [guessed]
1515 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1519 if test -n "$ac_init_help"; then
1520 case $ac_init_help in
1521 short | recursive ) echo "Configuration of xf86-video-intel 2.20.9:";;
1526 --disable-option-checking ignore unrecognized --enable/--with options
1527 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1528 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1529 --enable-maintainer-mode enable make rules and dependencies not useful
1530 (and sometimes confusing) to the casual installer
1531 --disable-dependency-tracking speeds up one-time build
1532 --enable-dependency-tracking do not reject slow dependency extractors
1533 --disable-selective-werror
1534 Turn off selective compiler errors. (default:
1536 --enable-strict-compilation
1537 Enable all warnings from compiler and make them
1538 errors (default: disabled)
1539 --enable-silent-rules less verbose build output (undo: `make V=1')
1540 --disable-silent-rules verbose build output (undo: `make V=0')
1541 --enable-static[=PKGS] build static libraries [default=no]
1542 --enable-shared[=PKGS] build shared libraries [default=yes]
1543 --enable-fast-install[=PKGS]
1544 optimize for fast installation [default=yes]
1545 --disable-libtool-lock avoid locking (might break parallel builds)
1546 --disable-largefile omit support for large files
1547 --disable-udev Disable udev-based monitor hotplug detection
1549 --disable-dri Disable DRI support [[default=auto]]
1550 --disable-xvmc Disable XvMC support [[default=yes]]
1551 --enable-kms-only Assume KMS support [[default=no]]
1552 --enable-ums-only Assume only UMS (no KMS) support [[default=no]]
1553 --enable-sna Enable SandyBridge's New Acceleration (SNA)
1555 --enable-uxa Enable Unified Acceleration Architecture (UXA)
1557 --enable-glamor Enable glamor, a new GL-based acceleration
1559 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1561 --enable-dga Enable legacy Direct Graphics Access (DGA)
1563 --enable-userptr Enable use of userptr (experimental) [default=no]
1564 --enable-async-swap Enable use of asynchronous swaps (experimental)
1566 --enable-debug Enables internal debugging [default=no]
1569 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1570 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1571 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1573 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1574 --with-sysroot=DIR Search for dependent libraries within DIR
1575 (or the compiler's sysroot if not specified).
1576 --with-builderstring=BUILDERSTRING
1577 Additional builder string (default: use git
1579 --with-xorg-module-dir=DIR
1580 Default xorg module directory
1581 [[default=$libdir/xorg/modules]]
1582 --with-default-accel Select the default acceleration method [default=uxa
1583 if enabled, otherwise sna]
1585 Some influential environment variables:
1586 CC C compiler command
1587 CFLAGS C compiler flags
1588 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1589 nonstandard directory <lib dir>
1590 LIBS libraries to pass to the linker, e.g. -l<library>
1591 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1592 you have headers in a nonstandard directory <include dir>
1594 PKG_CONFIG path to pkg-config utility
1596 directories to add to pkg-config's search path
1598 path overriding pkg-config's built-in search path
1600 C compiler flags for GEN4ASM, overriding pkg-config
1602 linker flags for GEN4ASM, overriding pkg-config
1603 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1604 UDEV_LIBS linker flags for UDEV, overriding pkg-config
1605 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1606 X11_LIBS linker flags for X11, overriding pkg-config
1608 C compiler flags for DRMINTEL, overriding pkg-config
1610 linker flags for DRMINTEL, overriding pkg-config
1612 C compiler flags for LIBGLAMOR, overriding pkg-config
1614 linker flags for LIBGLAMOR, overriding pkg-config
1615 LIBGLAMOR_EGL_CFLAGS
1616 C compiler flags for LIBGLAMOR_EGL, overriding pkg-config
1618 linker flags for LIBGLAMOR_EGL, overriding pkg-config
1619 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1620 XORG_LIBS linker flags for XORG, overriding pkg-config
1621 DRM_CFLAGS C compiler flags for DRM, overriding pkg-config
1622 DRM_LIBS linker flags for DRM, overriding pkg-config
1623 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1624 DRI_LIBS linker flags for DRI, overriding pkg-config
1625 DRI2_CFLAGS C compiler flags for DRI2, overriding pkg-config
1626 DRI2_LIBS linker flags for DRI2, overriding pkg-config
1628 C compiler flags for PCIACCESS, overriding pkg-config
1630 linker flags for PCIACCESS, overriding pkg-config
1632 C compiler flags for XVMCLIB, overriding pkg-config
1634 linker flags for XVMCLIB, overriding pkg-config
1636 C compiler flags for VALGRIND, overriding pkg-config
1638 linker flags for VALGRIND, overriding pkg-config
1640 Use these variables to override the choices made by `configure' or to help
1641 it to find libraries and programs with nonstandard names/locations.
1643 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1648 if test "$ac_init_help" = "recursive"; then
1649 # If there are subdirs, report their specific --help.
1650 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1651 test -d "$ac_dir" ||
1652 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1657 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1659 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1660 # A ".." for each directory in $ac_dir_suffix.
1661 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1662 case $ac_top_builddir_sub in
1663 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1667 ac_abs_top_builddir=$ac_pwd
1668 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1669 # for backward compatibility:
1670 ac_top_builddir=$ac_top_build_prefix
1673 .) # We are building in place.
1675 ac_top_srcdir=$ac_top_builddir_sub
1676 ac_abs_top_srcdir=$ac_pwd ;;
1677 [\\/]* | ?:[\\/]* ) # Absolute name.
1678 ac_srcdir=$srcdir$ac_dir_suffix;
1679 ac_top_srcdir=$srcdir
1680 ac_abs_top_srcdir=$srcdir ;;
1682 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1683 ac_top_srcdir=$ac_top_build_prefix$srcdir
1684 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1686 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1688 cd "$ac_dir" || { ac_status=$?; continue; }
1689 # Check for guested configure.
1690 if test -f "$ac_srcdir/configure.gnu"; then
1692 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1693 elif test -f "$ac_srcdir/configure"; then
1695 $SHELL "$ac_srcdir/configure" --help=recursive
1697 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1699 cd "$ac_pwd" || { ac_status=$?; break; }
1703 test -n "$ac_init_help" && exit $ac_status
1704 if $ac_init_version; then
1706 xf86-video-intel configure 2.20.9
1707 generated by GNU Autoconf 2.69
1709 Copyright (C) 2012 Free Software Foundation, Inc.
1710 This configure script is free software; the Free Software Foundation
1711 gives unlimited permission to copy, distribute and modify it.
1716 ## ------------------------ ##
1717 ## Autoconf initialization. ##
1718 ## ------------------------ ##
1720 # ac_fn_c_try_compile LINENO
1721 # --------------------------
1722 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1723 ac_fn_c_try_compile ()
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext
1727 if { { ac_try="$ac_compile"
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_compile") 2>conftest.err
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest.$ac_objext; then :
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 as_fn_set_status $ac_retval
1756 } # ac_fn_c_try_compile
1758 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1759 # ---------------------------------------------
1760 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1762 ac_fn_c_check_decl ()
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 as_decl_name=`echo $2|sed 's/ *(.*//'`
1766 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1768 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1769 if eval \${$3+:} false; then :
1770 $as_echo_n "(cached) " >&6
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h. */
1778 #ifndef $as_decl_name
1780 (void) $as_decl_use;
1782 (void) $as_decl_name;
1790 if ac_fn_c_try_compile "$LINENO"; then :
1795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 $as_echo "$ac_res" >&6; }
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 } # ac_fn_c_check_decl
1804 # ac_fn_c_try_cpp LINENO
1805 # ----------------------
1806 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 if { { ac_try="$ac_cpp conftest.$ac_ext"
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1819 if test -s conftest.err; then
1820 grep -v '^ *+' conftest.err >conftest.er1
1821 cat conftest.er1 >&5
1822 mv -f conftest.er1 conftest.err
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } > conftest.i && {
1826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1827 test ! -s conftest.err
1831 $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
1841 # ac_fn_c_try_run LINENO
1842 # ----------------------
1843 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1844 # that executables *can* be run.
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 if { { ac_try="$ac_link"
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_link") 2>&5
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1859 { { case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_try") 2>&5
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; }; }; then :
1871 $as_echo "$as_me: program exited with status $ac_status" >&5
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1875 ac_retval=$ac_status
1877 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 as_fn_set_status $ac_retval
1883 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1884 # -------------------------------------------------------
1885 # Tests whether HEADER exists and can be compiled using the include files in
1886 # INCLUDES, setting the cache variable VAR accordingly.
1887 ac_fn_c_check_header_compile ()
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891 $as_echo_n "checking for $2... " >&6; }
1892 if eval \${$3+:} false; then :
1893 $as_echo_n "(cached) " >&6
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1900 if ac_fn_c_try_compile "$LINENO"; then :
1905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 } # ac_fn_c_check_header_compile
1914 # ac_fn_c_try_link LINENO
1915 # -----------------------
1916 # Try to link conftest.$ac_ext, and return whether this succeeded.
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 rm -f conftest.$ac_objext conftest$ac_exeext
1921 if { { ac_try="$ac_link"
1923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924 *) ac_try_echo=$ac_try;;
1926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927 $as_echo "$ac_try_echo"; } >&5
1928 (eval "$ac_link") 2>conftest.err
1930 if test -s conftest.err; then
1931 grep -v '^ *+' conftest.err >conftest.er1
1932 cat conftest.er1 >&5
1933 mv -f conftest.er1 conftest.err
1935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936 test $ac_status = 0; } && {
1937 test -z "$ac_c_werror_flag" ||
1938 test ! -s conftest.err
1939 } && test -s conftest$ac_exeext && {
1940 test "$cross_compiling" = yes ||
1941 test -x conftest$ac_exeext
1945 $as_echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1950 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1951 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1952 # interfere with the next link command; also delete a directory that is
1953 # left behind by Apple's compiler. We do this before executing the actions.
1954 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956 as_fn_set_status $ac_retval
1958 } # ac_fn_c_try_link
1960 # ac_fn_c_check_func LINENO FUNC VAR
1961 # ----------------------------------
1962 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1963 ac_fn_c_check_func ()
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if eval \${$3+:} false; then :
1969 $as_echo_n "(cached) " >&6
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1973 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1975 #define $2 innocuous_$2
1977 /* System header to define __stub macros and hopefully few prototypes,
1978 which can conflict with char $2 (); below.
1979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1980 <limits.h> exists even on freestanding compilers. */
1983 # include <limits.h>
1985 # include <assert.h>
1990 /* Override any GCC internal prototype to avoid an error.
1991 Use char because int might match the return type of a GCC
1992 builtin and then its argument prototype would still apply. */
1997 /* The GNU C library defines this for functions which it implements
1998 to always fail with ENOSYS. Some functions are actually named
1999 something starting with __ and the normal name is an alias. */
2000 #if defined __stub_$2 || defined __stub___$2
2012 if ac_fn_c_try_link "$LINENO"; then :
2017 rm -f core conftest.err conftest.$ac_objext \
2018 conftest$ac_exeext conftest.$ac_ext
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025 } # ac_fn_c_check_func
2027 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2028 # -------------------------------------------------------
2029 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2030 # the include files in INCLUDES and setting the cache variable VAR
2032 ac_fn_c_check_header_mongrel ()
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 if eval \${$3+:} false; then :
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037 $as_echo_n "checking for $2... " >&6; }
2038 if eval \${$3+:} false; then :
2039 $as_echo_n "(cached) " >&6
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043 $as_echo "$ac_res" >&6; }
2045 # Is the header compilable?
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2047 $as_echo_n "checking $2 usability... " >&6; }
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2053 if ac_fn_c_try_compile "$LINENO"; then :
2054 ac_header_compiler=yes
2056 ac_header_compiler=no
2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2060 $as_echo "$ac_header_compiler" >&6; }
2062 # Is the header present?
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2064 $as_echo_n "checking $2 presence... " >&6; }
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2069 if ac_fn_c_try_cpp "$LINENO"; then :
2070 ac_header_preproc=yes
2072 ac_header_preproc=no
2074 rm -f conftest.err conftest.i conftest.$ac_ext
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2076 $as_echo "$ac_header_preproc" >&6; }
2078 # So? What about this header?
2079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2082 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2084 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2088 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2090 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2092 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2094 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2096 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2097 ( $as_echo "## ---------------------------------------------------------------------- ##
2098 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
2099 ## ---------------------------------------------------------------------- ##"
2100 ) | sed "s/^/$as_me: WARNING: /" >&2
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2104 $as_echo_n "checking for $2... " >&6; }
2105 if eval \${$3+:} false; then :
2106 $as_echo_n "(cached) " >&6
2108 eval "$3=\$ac_header_compiler"
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112 $as_echo "$ac_res" >&6; }
2114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2116 } # ac_fn_c_check_header_mongrel
2117 cat >config.log <<_ACEOF
2118 This file contains any messages produced by compilers while
2119 running configure, to aid debugging if configure makes a mistake.
2121 It was created by xf86-video-intel $as_me 2.20.9, which was
2122 generated by GNU Autoconf 2.69. Invocation command line was
2134 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2135 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2136 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2137 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2138 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2140 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2141 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2143 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2144 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2145 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2146 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2147 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2148 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2149 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 test -z "$as_dir" && as_dir=.
2158 $as_echo "PATH: $as_dir"
2174 # Keep a trace of the command line.
2175 # Strip out --no-create and --no-recursion so they do not pile up.
2176 # Strip out --silent because we don't want to record it for future runs.
2177 # Also quote any args containing shell meta-characters.
2178 # Make two passes to allow for proper duplicate-argument suppression.
2182 ac_must_keep_next=false
2188 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2190 | -silent | --silent | --silen | --sile | --sil)
2193 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2196 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2198 as_fn_append ac_configure_args1 " '$ac_arg'"
2199 if test $ac_must_keep_next = true; then
2200 ac_must_keep_next=false # Got value, back to normal.
2203 *=* | --config-cache | -C | -disable-* | --disable-* \
2204 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2205 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2206 | -with-* | --with-* | -without-* | --without-* | --x)
2207 case "$ac_configure_args0 " in
2208 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2211 -* ) ac_must_keep_next=true ;;
2214 as_fn_append ac_configure_args " '$ac_arg'"
2219 { ac_configure_args0=; unset ac_configure_args0;}
2220 { ac_configure_args1=; unset ac_configure_args1;}
2222 # When interrupted or exit'd, cleanup temporary files, and complete
2223 # config.log. We remove comments because anyway the quotes in there
2224 # would cause problems or look ugly.
2225 # WARNING: Use '\'' to represent an apostrophe within the trap.
2226 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2227 trap 'exit_status=$?
2228 # Save into config.log some information that might help in debugging.
2232 $as_echo "## ---------------- ##
2233 ## Cache variables. ##
2234 ## ---------------- ##"
2236 # The following way of writing the cache mishandles newlines in values,
2238 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2239 eval ac_val=\$$ac_var
2243 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2244 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2247 _ | IFS | as_nl) ;; #(
2248 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2249 *) { eval $ac_var=; unset $ac_var;} ;;
2254 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2255 *${as_nl}ac_space=\ *)
2257 "s/'\''/'\''\\\\'\'''\''/g;
2258 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2261 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2268 $as_echo "## ----------------- ##
2269 ## Output variables. ##
2270 ## ----------------- ##"
2272 for ac_var in $ac_subst_vars
2274 eval ac_val=\$$ac_var
2276 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2278 $as_echo "$ac_var='\''$ac_val'\''"
2282 if test -n "$ac_subst_files"; then
2283 $as_echo "## ------------------- ##
2284 ## File substitutions. ##
2285 ## ------------------- ##"
2287 for ac_var in $ac_subst_files
2289 eval ac_val=\$$ac_var
2291 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2293 $as_echo "$ac_var='\''$ac_val'\''"
2298 if test -s confdefs.h; then
2299 $as_echo "## ----------- ##
2306 test "$ac_signal" != 0 &&
2307 $as_echo "$as_me: caught signal $ac_signal"
2308 $as_echo "$as_me: exit $exit_status"
2310 rm -f core *.core core.conftest.* &&
2311 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2314 for ac_signal in 1 2 13 15; do
2315 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2319 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2320 rm -f -r conftest* confdefs.h
2322 $as_echo "/* confdefs.h */" > confdefs.h
2324 # Predefined preprocessor variables.
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_NAME "$PACKAGE_NAME"
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_STRING "$PACKAGE_STRING"
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_URL "$PACKAGE_URL"
2351 # Let the site file select an alternate cache file if it wants to.
2352 # Prefer an explicitly selected file to automatically selected ones.
2355 if test -n "$CONFIG_SITE"; then
2356 # We do not want a PATH search for config.site.
2357 case $CONFIG_SITE in #((
2358 -*) ac_site_file1=./$CONFIG_SITE;;
2359 */*) ac_site_file1=$CONFIG_SITE;;
2360 *) ac_site_file1=./$CONFIG_SITE;;
2362 elif test "x$prefix" != xNONE; then
2363 ac_site_file1=$prefix/share/config.site
2364 ac_site_file2=$prefix/etc/config.site
2366 ac_site_file1=$ac_default_prefix/share/config.site
2367 ac_site_file2=$ac_default_prefix/etc/config.site
2369 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2371 test "x$ac_site_file" = xNONE && continue
2372 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2374 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2375 sed 's/^/| /' "$ac_site_file" >&5
2377 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2379 as_fn_error $? "failed to load site script $ac_site_file
2380 See \`config.log' for more details" "$LINENO" 5; }
2384 if test -r "$cache_file"; then
2385 # Some versions of bash will fail to source /dev/null (special files
2386 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2387 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2389 $as_echo "$as_me: loading cache $cache_file" >&6;}
2391 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2392 *) . "./$cache_file";;
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2397 $as_echo "$as_me: creating cache $cache_file" >&6;}
2401 # Check that the precious variables saved in the cache have kept the same
2403 ac_cache_corrupted=false
2404 for ac_var in $ac_precious_vars; do
2405 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2406 eval ac_new_set=\$ac_env_${ac_var}_set
2407 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2408 eval ac_new_val=\$ac_env_${ac_var}_value
2409 case $ac_old_set,$ac_new_set in
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2412 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2413 ac_cache_corrupted=: ;;
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2416 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2417 ac_cache_corrupted=: ;;
2420 if test "x$ac_old_val" != "x$ac_new_val"; then
2421 # differences in whitespace do not lead to failure.
2422 ac_old_val_w=`echo x $ac_old_val`
2423 ac_new_val_w=`echo x $ac_new_val`
2424 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2426 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2427 ac_cache_corrupted=:
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2430 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2431 eval $ac_var=\$ac_old_val
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2434 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2436 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2439 # Pass precious variables to config.status.
2440 if test "$ac_new_set" = set; then
2442 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2443 *) ac_arg=$ac_var=$ac_new_val ;;
2445 case " $ac_configure_args " in
2446 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2447 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2451 if $ac_cache_corrupted; then
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2455 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2456 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2458 ## -------------------- ##
2459 ## Main body of script. ##
2460 ## -------------------- ##
2463 ac_cpp='$CPP $CPPFLAGS'
2464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2470 ac_config_headers="$ac_config_headers config.h"
2473 for ac_dir in . "$srcdir"/.; do
2474 if test -f "$ac_dir/install-sh"; then
2476 ac_install_sh="$ac_aux_dir/install-sh -c"
2478 elif test -f "$ac_dir/install.sh"; then
2480 ac_install_sh="$ac_aux_dir/install.sh -c"
2482 elif test -f "$ac_dir/shtool"; then
2484 ac_install_sh="$ac_aux_dir/shtool install -c"
2488 if test -z "$ac_aux_dir"; then
2489 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2492 # These three variables are undocumented and unsupported,
2493 # and are intended to be withdrawn in a future Autoconf release.
2494 # They can cause serious problems if a builder's source tree is in a directory
2495 # whose full name contains unusual characters.
2496 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2497 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2498 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2502 # Initialize Automake
2503 am__api_version='1.11'
2505 # Find a good install program. We prefer a C program (faster),
2506 # so one script is as good as another. But avoid the broken or
2507 # incompatible versions:
2508 # SysV /etc/install, /usr/sbin/install
2509 # SunOS /usr/etc/install
2510 # IRIX /sbin/install
2512 # AmigaOS /C/install, which installs bootblocks on floppy discs
2513 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2514 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2515 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2516 # OS/2's system install, which has a completely different semantic
2517 # ./install, which can be erroneously created by make from ./install.sh.
2518 # Reject install programs that cannot install multiple files.
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2520 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2521 if test -z "$INSTALL"; then
2522 if ${ac_cv_path_install+:} false; then :
2523 $as_echo_n "(cached) " >&6
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 test -z "$as_dir" && as_dir=.
2530 # Account for people who put trailing slashes in PATH elements.
2531 case $as_dir/ in #((
2532 ./ | .// | /[cC]/* | \
2533 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2534 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2537 # OSF1 and SCO ODT 3.0 have their own names for install.
2538 # Don't use installbsd from OSF since it installs stuff as root
2540 for ac_prog in ginstall scoinst install; do
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2543 if test $ac_prog = install &&
2544 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2545 # AIX install. It has an incompatible calling convention.
2547 elif test $ac_prog = install &&
2548 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2549 # program-specific install script used by HP pwplus--don't use.
2552 rm -rf conftest.one conftest.two conftest.dir
2553 echo one > conftest.one
2554 echo two > conftest.two
2556 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2557 test -s conftest.one && test -s conftest.two &&
2558 test -s conftest.dir/conftest.one &&
2559 test -s conftest.dir/conftest.two
2561 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2574 rm -rf conftest.one conftest.two conftest.dir
2577 if test "${ac_cv_path_install+set}" = set; then
2578 INSTALL=$ac_cv_path_install
2580 # As a last resort, use the slow shell script. Don't cache a
2581 # value for INSTALL within a source directory, because that will
2582 # break other packages using the cache if that directory is
2583 # removed, or if the value is a relative name.
2584 INSTALL=$ac_install_sh
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2588 $as_echo "$INSTALL" >&6; }
2590 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2591 # It thinks the first close brace ends the variable substitution.
2592 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2594 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2596 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2599 $as_echo_n "checking whether build environment is sane... " >&6; }
2602 echo timestamp > conftest.file
2603 # Reject unsafe characters in $srcdir or the absolute working directory
2604 # name. Accept space and tab only in the latter.
2608 *[\\\"\#\$\&\'\`$am_lf]*)
2609 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2612 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2613 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2616 # Do `set' in a subshell so we don't clobber the current shell's
2617 # arguments. Must try -L first in case configure is actually a
2618 # symlink; some systems play weird games with the mod time of symlinks
2619 # (eg FreeBSD returns the mod time of the symlink's containing
2622 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2623 if test "$*" = "X"; then
2625 set X `ls -t "$srcdir/configure" conftest.file`
2628 if test "$*" != "X $srcdir/configure conftest.file" \
2629 && test "$*" != "X conftest.file $srcdir/configure"; then
2631 # If neither matched, then we have a broken ls. This can happen
2632 # if, for instance, CONFIG_SHELL is bash and it inherits a
2633 # broken ls alias from the environment. This has actually
2634 # happened. Such a system could not be considered "sane".
2635 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2636 alias in your environment" "$LINENO" 5
2639 test "$2" = conftest.file
2645 as_fn_error $? "newly created file is older than distributed files!
2646 Check your system clock" "$LINENO" 5
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2649 $as_echo "yes" >&6; }
2650 test "$program_prefix" != NONE &&
2651 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2652 # Use a double $ so make ignores it.
2653 test "$program_suffix" != NONE &&
2654 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2655 # Double any \ or $.
2656 # By default was `s,x,x', remove it if useless.
2657 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2658 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2660 # expand $ac_aux_dir to an absolute path
2661 am_aux_dir=`cd $ac_aux_dir && pwd`
2663 if test x"${MISSING+set}" != xset; then
2666 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2668 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2671 # Use eval to expand $SHELL
2672 if eval "$MISSING --run true"; then
2673 am_missing_run="$MISSING --run "
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2677 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2680 if test x"${install_sh}" != xset; then
2683 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2685 install_sh="\${SHELL} $am_aux_dir/install-sh"
2689 # Installed binaries are usually stripped using `strip' when the user
2690 # run `make install-strip'. However `strip' might not be the right
2691 # tool to use in cross-compilation environments, therefore Automake
2692 # will honor the `STRIP' environment variable to overrule this program.
2693 if test "$cross_compiling" != no; then
2694 if test -n "$ac_tool_prefix"; then
2695 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2696 set dummy ${ac_tool_prefix}strip; ac_word=$2
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if ${ac_cv_prog_STRIP+:} false; then :
2700 $as_echo_n "(cached) " >&6
2702 if test -n "$STRIP"; then
2703 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2712 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 STRIP=$ac_cv_prog_STRIP
2723 if test -n "$STRIP"; then
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2725 $as_echo "$STRIP" >&6; }
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728 $as_echo "no" >&6; }
2733 if test -z "$ac_cv_prog_STRIP"; then
2735 # Extract the first word of "strip", so it can be a program name with args.
2736 set dummy strip; ac_word=$2
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738 $as_echo_n "checking for $ac_word... " >&6; }
2739 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2740 $as_echo_n "(cached) " >&6
2742 if test -n "$ac_ct_STRIP"; then
2743 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2752 ac_cv_prog_ac_ct_STRIP="strip"
2753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2763 if test -n "$ac_ct_STRIP"; then
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2765 $as_echo "$ac_ct_STRIP" >&6; }
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768 $as_echo "no" >&6; }
2771 if test "x$ac_ct_STRIP" = x; then
2774 case $cross_compiling:$ac_tool_warned in
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2778 ac_tool_warned=yes ;;
2783 STRIP="$ac_cv_prog_STRIP"
2787 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2790 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2791 if test -z "$MKDIR_P"; then
2792 if ${ac_cv_path_mkdir+:} false; then :
2793 $as_echo_n "(cached) " >&6
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2799 test -z "$as_dir" && as_dir=.
2800 for ac_prog in mkdir gmkdir; do
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2803 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2804 'mkdir (GNU coreutils) '* | \
2805 'mkdir (coreutils) '* | \
2806 'mkdir (fileutils) '4.1*)
2807 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2817 test -d ./--version && rmdir ./--version
2818 if test "${ac_cv_path_mkdir+set}" = set; then
2819 MKDIR_P="$ac_cv_path_mkdir -p"
2821 # As a last resort, use the slow shell script. Don't cache a
2822 # value for MKDIR_P within a source directory, because that will
2823 # break other packages using the cache if that directory is
2824 # removed, or if the value is a relative name.
2825 MKDIR_P="$ac_install_sh -d"
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2829 $as_echo "$MKDIR_P" >&6; }
2833 [\\/$]* | ?:[\\/]*) ;;
2834 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2837 for ac_prog in gawk mawk nawk awk
2839 # Extract the first word of "$ac_prog", so it can be a program name with args.
2840 set dummy $ac_prog; ac_word=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if ${ac_cv_prog_AWK+:} false; then :
2844 $as_echo_n "(cached) " >&6
2846 if test -n "$AWK"; then
2847 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2856 ac_cv_prog_AWK="$ac_prog"
2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 if test -n "$AWK"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2869 $as_echo "$AWK" >&6; }
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2876 test -n "$AWK" && break
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2880 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2882 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2883 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2884 $as_echo_n "(cached) " >&6
2886 cat >conftest.make <<\_ACEOF
2889 @echo '@@@%%%=$(MAKE)=@@@%%%'
2891 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2892 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2894 eval ac_cv_prog_make_${ac_make}_set=yes;;
2896 eval ac_cv_prog_make_${ac_make}_set=no;;
2900 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2902 $as_echo "yes" >&6; }
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906 $as_echo "no" >&6; }
2907 SET_MAKE="MAKE=${MAKE-make}"
2910 rm -rf .tst 2>/dev/null
2911 mkdir .tst 2>/dev/null
2912 if test -d .tst; then
2917 rmdir .tst 2>/dev/null
2919 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2920 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2921 # is not polluted with repeated "-I."
2922 am__isrc=' -I$(srcdir)'
2923 # test to see if srcdir already configured
2924 if test -f $srcdir/config.status; then
2925 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2929 # test whether we have cygpath
2930 if test -z "$CYGPATH_W"; then
2931 if (cygpath --version) >/dev/null 2>/dev/null; then
2932 CYGPATH_W='cygpath -w'
2939 # Define the identity of the package.
2940 PACKAGE='xf86-video-intel'
2944 cat >>confdefs.h <<_ACEOF
2945 #define PACKAGE "$PACKAGE"
2949 cat >>confdefs.h <<_ACEOF
2950 #define VERSION "$VERSION"
2953 # Some tools Automake needs.
2955 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2958 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2961 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2964 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2967 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2969 # We need awk for the "check" target. The system "awk" is bad on
2971 # Always define AMTAR for backward compatibility. Yes, it's still used
2972 # in the wild :-( We should find a proper way to deprecate it ...
2975 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2983 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2984 # Check whether --enable-maintainer-mode was given.
2985 if test "${enable_maintainer_mode+set}" = set; then :
2986 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2988 USE_MAINTAINER_MODE=no
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2992 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2993 if test $USE_MAINTAINER_MODE = yes; then
2994 MAINTAINER_MODE_TRUE=
2995 MAINTAINER_MODE_FALSE='#'
2997 MAINTAINER_MODE_TRUE='#'
2998 MAINTAINER_MODE_FALSE=
3001 MAINT=$MAINTAINER_MODE_TRUE
3005 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3018 DEPDIR="${am__leading_dot}deps"
3020 ac_config_commands="$ac_config_commands depfiles"
3023 am_make=${MAKE-make}
3024 cat > confinc << 'END'
3026 @echo this is the am__doit target
3029 # If we don't find an include directive, just comment out the code.
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3031 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3035 # First try GNU make style include.
3036 echo "include confinc" > confmf
3037 # Ignore all kinds of additional output from `make'.
3038 case `$am_make -s -f confmf 2> /dev/null` in #(
3039 *the\ am__doit\ target*)
3045 # Now try BSD make style include.
3046 if test "$am__include" = "#"; then
3047 echo '.include "confinc"' > confmf
3048 case `$am_make -s -f confmf 2> /dev/null` in #(
3049 *the\ am__doit\ target*)
3050 am__include=.include
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3059 $as_echo "$_am_result" >&6; }
3060 rm -f confinc confmf
3062 # Check whether --enable-dependency-tracking was given.
3063 if test "${enable_dependency_tracking+set}" = set; then :
3064 enableval=$enable_dependency_tracking;
3067 if test "x$enable_dependency_tracking" != xno; then
3068 am_depcomp="$ac_aux_dir/depcomp"
3072 if test "x$enable_dependency_tracking" != xno; then
3082 ac_cpp='$CPP $CPPFLAGS'
3083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3086 if test -n "$ac_tool_prefix"; then
3087 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3088 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090 $as_echo_n "checking for $ac_word... " >&6; }
3091 if ${ac_cv_prog_CC+:} false; then :
3092 $as_echo_n "(cached) " >&6
3094 if test -n "$CC"; then
3095 ac_cv_prog_CC="$CC" # Let the user override the test.
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 test -z "$as_dir" && as_dir=.
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3104 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 if test -n "$CC"; then
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3117 $as_echo "$CC" >&6; }
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3125 if test -z "$ac_cv_prog_CC"; then
3127 # Extract the first word of "gcc", so it can be a program name with args.
3128 set dummy gcc; ac_word=$2
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130 $as_echo_n "checking for $ac_word... " >&6; }
3131 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3132 $as_echo_n "(cached) " >&6
3134 if test -n "$ac_ct_CC"; then
3135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144 ac_cv_prog_ac_ct_CC="gcc"
3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3155 if test -n "$ac_ct_CC"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3157 $as_echo "$ac_ct_CC" >&6; }
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 $as_echo "no" >&6; }
3163 if test "x$ac_ct_CC" = x; then
3166 case $cross_compiling:$ac_tool_warned in
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3170 ac_tool_warned=yes ;;
3178 if test -z "$CC"; then
3179 if test -n "$ac_tool_prefix"; then
3180 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3181 set dummy ${ac_tool_prefix}cc; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if ${ac_cv_prog_CC+:} false; then :
3185 $as_echo_n "(cached) " >&6
3187 if test -n "$CC"; then
3188 ac_cv_prog_CC="$CC" # Let the user override the test.
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197 ac_cv_prog_CC="${ac_tool_prefix}cc"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 if test -n "$CC"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3210 $as_echo "$CC" >&6; }
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3219 if test -z "$CC"; then
3220 # Extract the first word of "cc", so it can be a program name with args.
3221 set dummy cc; ac_word=$2
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223 $as_echo_n "checking for $ac_word... " >&6; }
3224 if ${ac_cv_prog_CC+:} false; then :
3225 $as_echo_n "(cached) " >&6
3227 if test -n "$CC"; then
3228 ac_cv_prog_CC="$CC" # Let the user override the test.
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 test -z "$as_dir" && as_dir=.
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3238 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3239 ac_prog_rejected=yes
3243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 if test $ac_prog_rejected = yes; then
3251 # We found a bogon in the path, so make sure we never use it.
3252 set dummy $ac_cv_prog_CC
3254 if test $# != 0; then
3255 # We chose a different compiler from the bogus one.
3256 # However, it has the same basename, so the bogon will be chosen
3257 # first if we set CC to just the basename; use the full file name.
3259 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3265 if test -n "$CC"; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3267 $as_echo "$CC" >&6; }
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3275 if test -z "$CC"; then
3276 if test -n "$ac_tool_prefix"; then
3277 for ac_prog in cl.exe
3279 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3280 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3282 $as_echo_n "checking for $ac_word... " >&6; }
3283 if ${ac_cv_prog_CC+:} false; then :
3284 $as_echo_n "(cached) " >&6
3286 if test -n "$CC"; then
3287 ac_cv_prog_CC="$CC" # Let the user override the test.
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 test -z "$as_dir" && as_dir=.
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3296 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 if test -n "$CC"; then
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3309 $as_echo "$CC" >&6; }
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3316 test -n "$CC" && break
3319 if test -z "$CC"; then
3321 for ac_prog in cl.exe
3323 # Extract the first word of "$ac_prog", so it can be a program name with args.
3324 set dummy $ac_prog; ac_word=$2
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326 $as_echo_n "checking for $ac_word... " >&6; }
3327 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3328 $as_echo_n "(cached) " >&6
3330 if test -n "$ac_ct_CC"; then
3331 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 test -z "$as_dir" && as_dir=.
3338 for ac_exec_ext in '' $ac_executable_extensions; do
3339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3340 ac_cv_prog_ac_ct_CC="$ac_prog"
3341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3351 if test -n "$ac_ct_CC"; then
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3353 $as_echo "$ac_ct_CC" >&6; }
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 $as_echo "no" >&6; }
3360 test -n "$ac_ct_CC" && break
3363 if test "x$ac_ct_CC" = x; then
3366 case $cross_compiling:$ac_tool_warned in
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3370 ac_tool_warned=yes ;;
3379 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3381 as_fn_error $? "no acceptable C compiler found in \$PATH
3382 See \`config.log' for more details" "$LINENO" 5; }
3384 # Provide some information about the compiler.
3385 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3388 for ac_option in --version -v -V -qversion; do
3389 { { ac_try="$ac_compiler $ac_option >&5"
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395 $as_echo "$ac_try_echo"; } >&5
3396 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3398 if test -s conftest.err; then
3400 ... rest of stderr output deleted ...
3401 10q' conftest.err >conftest.er1
3402 cat conftest.er1 >&5
3404 rm -f conftest.er1 conftest.err
3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }
3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410 /* end confdefs.h. */
3420 ac_clean_files_save=$ac_clean_files
3421 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3422 # Try to create an executable without -o first, disregard a.out.
3423 # It will help us diagnose broken compilers, and finding out an intuition
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3426 $as_echo_n "checking whether the C compiler works... " >&6; }
3427 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3429 # The possible output files:
3430 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3433 for ac_file in $ac_files
3436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3437 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3442 if { { ac_try="$ac_link_default"
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448 $as_echo "$ac_try_echo"; } >&5
3449 (eval "$ac_link_default") 2>&5
3451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452 test $ac_status = 0; }; then :
3453 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3454 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3455 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3456 # so that the user can short-circuit this test for compilers unknown to
3458 for ac_file in $ac_files ''
3460 test -f "$ac_file" || continue
3462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3465 # We found the default executable, but exeext='' is most
3469 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3471 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3473 # We set ac_cv_exeext here because the later test for it is not
3474 # safe: cross compilers may not add the suffix if given an `-o'
3475 # argument, so we may need to know it at that point already.
3476 # Even if this section looks crufty: it has the advantage of
3483 test "$ac_cv_exeext" = no && ac_cv_exeext=
3488 if test -z "$ac_file"; then :
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3490 $as_echo "no" >&6; }
3491 $as_echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3496 as_fn_error 77 "C compiler cannot create executables
3497 See \`config.log' for more details" "$LINENO" 5; }
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3500 $as_echo "yes" >&6; }
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3503 $as_echo_n "checking for C compiler default output file name... " >&6; }
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3505 $as_echo "$ac_file" >&6; }
3506 ac_exeext=$ac_cv_exeext
3508 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3509 ac_clean_files=$ac_clean_files_save
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3511 $as_echo_n "checking for suffix of executables... " >&6; }
3512 if { { ac_try="$ac_link"
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3518 $as_echo "$ac_try_echo"; } >&5
3519 (eval "$ac_link") 2>&5
3521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3522 test $ac_status = 0; }; then :
3523 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3524 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3525 # work properly (i.e., refer to `conftest.exe'), while it won't with
3527 for ac_file in conftest.exe conftest conftest.*; do
3528 test -f "$ac_file" || continue
3530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3531 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3540 See \`config.log' for more details" "$LINENO" 5; }
3542 rm -f conftest conftest$ac_cv_exeext
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3544 $as_echo "$ac_cv_exeext" >&6; }
3546 rm -f conftest.$ac_ext
3547 EXEEXT=$ac_cv_exeext
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3555 FILE *f = fopen ("conftest.out", "w");
3556 return ferror (f) || fclose (f) != 0;
3562 ac_clean_files="$ac_clean_files conftest.out"
3563 # Check that the compiler produces executables we can run. If not, either
3564 # the compiler is broken, or we cross compile.
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3566 $as_echo_n "checking whether we are cross compiling... " >&6; }
3567 if test "$cross_compiling" != yes; then
3568 { { ac_try="$ac_link"
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574 $as_echo "$ac_try_echo"; } >&5
3575 (eval "$ac_link") 2>&5
3577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578 test $ac_status = 0; }
3579 if { ac_try='./conftest$ac_cv_exeext'
3580 { { case "(($ac_try" in
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585 $as_echo "$ac_try_echo"; } >&5
3586 (eval "$ac_try") 2>&5
3588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589 test $ac_status = 0; }; }; then
3592 if test "$cross_compiling" = maybe; then
3595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597 as_fn_error $? "cannot run C compiled programs.
3598 If you meant to cross compile, use \`--host'.
3599 See \`config.log' for more details" "$LINENO" 5; }
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3604 $as_echo "$cross_compiling" >&6; }
3606 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3607 ac_clean_files=$ac_clean_files_save
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3609 $as_echo_n "checking for suffix of object files... " >&6; }
3610 if ${ac_cv_objext+:} false; then :
3611 $as_echo_n "(cached) " >&6
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3624 rm -f conftest.o conftest.obj
3625 if { { ac_try="$ac_compile"
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3631 $as_echo "$ac_try_echo"; } >&5
3632 (eval "$ac_compile") 2>&5
3634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3635 test $ac_status = 0; }; then :
3636 for ac_file in conftest.o conftest.obj conftest.*; do
3637 test -f "$ac_file" || continue;
3639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3640 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3645 $as_echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.$ac_ext >&5
3648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3650 as_fn_error $? "cannot compute suffix of object files: cannot compile
3651 See \`config.log' for more details" "$LINENO" 5; }
3653 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3656 $as_echo "$ac_cv_objext" >&6; }
3657 OBJEXT=$ac_cv_objext
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3660 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3661 if ${ac_cv_c_compiler_gnu+:} false; then :
3662 $as_echo_n "(cached) " >&6
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3678 if ac_fn_c_try_compile "$LINENO"; then :
3683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3688 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3689 if test $ac_compiler_gnu = yes; then
3694 ac_test_CFLAGS=${CFLAGS+set}
3695 ac_save_CFLAGS=$CFLAGS
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3697 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3698 if ${ac_cv_prog_cc_g+:} false; then :
3699 $as_echo_n "(cached) " >&6
3701 ac_save_c_werror_flag=$ac_c_werror_flag
3702 ac_c_werror_flag=yes
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3716 if ac_fn_c_try_compile "$LINENO"; then :
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3731 if ac_fn_c_try_compile "$LINENO"; then :
3734 ac_c_werror_flag=$ac_save_c_werror_flag
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3747 if ac_fn_c_try_compile "$LINENO"; then :
3750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755 ac_c_werror_flag=$ac_save_c_werror_flag
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3758 $as_echo "$ac_cv_prog_cc_g" >&6; }
3759 if test "$ac_test_CFLAGS" = set; then
3760 CFLAGS=$ac_save_CFLAGS
3761 elif test $ac_cv_prog_cc_g = yes; then
3762 if test "$GCC" = yes; then
3768 if test "$GCC" = yes; then
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3775 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3776 if ${ac_cv_prog_cc_c89+:} false; then :
3777 $as_echo_n "(cached) " >&6
3779 ac_cv_prog_cc_c89=no
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3786 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3787 struct buf { int x; };
3788 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3789 static char *e (p, i)
3795 static char *f (char * (*g) (char **, int), char **p, ...)
3800 s = g (p, va_arg (v,int));
3805 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3806 function prototypes and stuff, but not '\xHH' hex character constants.
3807 These don't provoke an error unfortunately, instead are silently treated
3808 as 'x'. The following induces an error, until -std is added to get
3809 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3810 array size at least. It's necessary to write '\x00'==0 to get something
3811 that's true only with -std. */
3812 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3814 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3815 inside strings and character constants. */
3817 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3819 int test (int i, double x);
3820 struct s1 {int (*f) (int a);};
3821 struct s2 {int (*f) (double a);};
3822 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3828 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3833 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3834 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3836 CC="$ac_save_CC $ac_arg"
3837 if ac_fn_c_try_compile "$LINENO"; then :
3838 ac_cv_prog_cc_c89=$ac_arg
3840 rm -f core conftest.err conftest.$ac_objext
3841 test "x$ac_cv_prog_cc_c89" != "xno" && break
3843 rm -f conftest.$ac_ext
3848 case "x$ac_cv_prog_cc_c89" in
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3851 $as_echo "none needed" >&6; } ;;
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3854 $as_echo "unsupported" >&6; } ;;
3856 CC="$CC $ac_cv_prog_cc_c89"
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3858 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3860 if test "x$ac_cv_prog_cc_c89" != xno; then :
3865 ac_cpp='$CPP $CPPFLAGS'
3866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870 depcc="$CC" am_compiler_list=
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3873 $as_echo_n "checking dependency style of $depcc... " >&6; }
3874 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3875 $as_echo_n "(cached) " >&6
3877 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3878 # We make a subdir and do the tests there. Otherwise we can end up
3879 # making bogus files that we don't know about and never remove. For
3880 # instance it was reported that on HP-UX the gcc test will end up
3881 # making a dummy file named `D' -- because `-MD' means `put the output
3885 # Copy depcomp to subdir because otherwise we won't find it if we're
3886 # using a relative directory.
3887 cp "$am_depcomp" conftest.dir
3889 # We will build objects and dependencies in a subdirectory because
3890 # it helps to detect inapplicable dependency modes. For instance
3891 # both Tru64's cc and ICC support -MD to output dependencies as a
3892 # side effect of compilation, but ICC will put the dependencies in
3893 # the current directory while Tru64 will put them in the object
3897 am_cv_CC_dependencies_compiler_type=none
3898 if test "$am_compiler_list" = ""; then
3899 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3902 case " $depcc " in #(
3903 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3906 for depmode in $am_compiler_list; do
3907 # Setup a source with many dependencies, because some compilers
3908 # like to wrap large dependency lists on column 80 (with \), and
3909 # we should not choose a depcomp mode which is confused by this.
3911 # We need to recreate these files for each test, as the compiler may
3912 # overwrite some of them when testing with obscure command lines.
3913 # This happens at least with the AIX C compiler.
3915 for i in 1 2 3 4 5 6; do
3916 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3917 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3918 # Solaris 8's {/usr,}/bin/sh.
3919 touch sub/conftst$i.h
3921 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3923 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3924 # mode. It turns out that the SunPro C++ compiler does not properly
3925 # handle `-M -o', and we need to detect this. Also, some Intel
3926 # versions had trouble with output in subdirs
3927 am__obj=sub/conftest.${OBJEXT-o}
3928 am__minus_obj="-o $am__obj"
3931 # This depmode causes a compiler race in universal mode.
3932 test "$am__universal" = false || continue
3935 # after this tag, mechanisms are not by side-effect, so they'll
3936 # only be used when explicitly requested
3937 if test "x$enable_dependency_tracking" = xyes; then
3943 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3944 # This compiler won't grok `-c -o', but also, the minuso test has
3945 # not run yet. These depmodes are late enough in the game, and
3946 # so weak that their functioning should not be impacted.
3947 am__obj=conftest.${OBJEXT-o}
3952 if depmode=$depmode \
3953 source=sub/conftest.c object=$am__obj \
3954 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3955 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3956 >/dev/null 2>conftest.err &&
3957 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3958 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3959 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3960 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3961 # icc doesn't choke on unknown options, it will just issue warnings
3962 # or remarks (even with -Werror). So we grep stderr for any message
3963 # that says an option was ignored or not supported.
3964 # When given -MP, icc 7.0 and 7.1 complain thusly:
3965 # icc: Command line warning: ignoring option '-M'; no argument required
3966 # The diagnosis changed in icc 8.0:
3967 # icc: Command line remark: option '-MP' not supported
3968 if (grep 'ignoring option' conftest.err ||
3969 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3970 am_cv_CC_dependencies_compiler_type=$depmode
3979 am_cv_CC_dependencies_compiler_type=none
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3984 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3985 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3988 test "x$enable_dependency_tracking" != xno \
3989 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3991 am__fastdepCC_FALSE='#'
3993 am__fastdepCC_TRUE='#'
3994 am__fastdepCC_FALSE=
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3999 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4000 if ${ac_cv_prog_cc_c99+:} false; then :
4001 $as_echo_n "(cached) " >&6
4003 ac_cv_prog_cc_c99=no
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4008 #include <stdbool.h>
4013 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4014 #define debug(...) fprintf (stderr, __VA_ARGS__)
4015 #define showlist(...) puts (#__VA_ARGS__)
4016 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4018 test_varargs_macros (void)
4023 debug ("X = %d\n", x);
4024 showlist (The first, second, and third items.);
4025 report (x>y, "x is %d but y is %d", x, y);
4028 // Check long long types.
4029 #define BIG64 18446744073709551615ull
4030 #define BIG32 4294967295ul
4031 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4033 your preprocessor is broken;
4037 your preprocessor is broken;
4039 static long long int bignum = -9223372036854775807LL;
4040 static unsigned long long int ubignum = BIG64;
4042 struct incomplete_array
4050 const wchar_t *name;
4054 typedef const char *ccp;
4057 test_restrict (ccp restrict text)
4059 // See if C++-style comments work.
4060 // Iterate through items via the restricted pointer.
4061 // Also check for declarations in for loops.
4062 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4067 // Check varargs and va_copy.
4069 test_varargs (const char *format, ...)
4072 va_start (args, format);
4074 va_copy (args_copy, args);
4085 str = va_arg (args_copy, const char *);
4088 number = va_arg (args_copy, int);
4091 fnumber = va_arg (args_copy, double);
4106 _Bool success = false;
4109 if (test_restrict ("String literal") == 0)
4111 char *restrict newvar = "Another string";
4114 test_varargs ("s, d' f .", "string", 65, 34.234);
4115 test_varargs_macros ();
4117 // Check flexible array members.
4118 struct incomplete_array *ia =
4119 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4121 for (int i = 0; i < ia->datasize; ++i)
4122 ia->data[i] = i * 1.234;
4124 // Check named initializers.
4125 struct named_init ni = {
4127 .name = L"Test wide string",
4128 .average = 543.34343,
4133 int dynamic_array[ni.number];
4134 dynamic_array[ni.number - 1] = 543;
4136 // work around unused variable warnings
4137 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4138 || dynamic_array[ni.number - 1] != 543);
4144 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4146 CC="$ac_save_CC $ac_arg"
4147 if ac_fn_c_try_compile "$LINENO"; then :
4148 ac_cv_prog_cc_c99=$ac_arg
4150 rm -f core conftest.err conftest.$ac_objext
4151 test "x$ac_cv_prog_cc_c99" != "xno" && break
4153 rm -f conftest.$ac_ext
4158 case "x$ac_cv_prog_cc_c99" in
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4161 $as_echo "none needed" >&6; } ;;
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4164 $as_echo "unsupported" >&6; } ;;
4166 CC="$CC $ac_cv_prog_cc_c99"
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4168 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4170 if test "x$ac_cv_prog_cc_c99" != xno; then :
4177 ac_cpp='$CPP $CPPFLAGS'
4178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4182 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4183 # On Suns, sometimes $CPP names a directory.
4184 if test -n "$CPP" && test -d "$CPP"; then
4187 if test -z "$CPP"; then
4188 if ${ac_cv_prog_CPP+:} false; then :
4189 $as_echo_n "(cached) " >&6
4191 # Double quotes because CPP needs to be expanded
4192 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4195 for ac_c_preproc_warn_flag in '' yes
4197 # Use a header file that comes with gcc, so configuring glibc
4198 # with a fresh cross-compiler works.
4199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4200 # <limits.h> exists even on freestanding compilers.
4201 # On the NeXT, cc -E runs the code through the compiler's parser,
4202 # not just through cpp. "Syntax error" is here to catch this case.
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4206 # include <limits.h>
4208 # include <assert.h>
4212 if ac_fn_c_try_cpp "$LINENO"; then :
4215 # Broken: fails on valid input.
4218 rm -f conftest.err conftest.i conftest.$ac_ext
4220 # OK, works on sane cases. Now check whether nonexistent headers
4221 # can be detected and how.
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4224 #include <ac_nonexistent.h>
4226 if ac_fn_c_try_cpp "$LINENO"; then :
4227 # Broken: success on invalid input.
4230 # Passes both tests.
4234 rm -f conftest.err conftest.i conftest.$ac_ext
4237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4238 rm -f conftest.i conftest.err conftest.$ac_ext
4239 if $ac_preproc_ok; then :
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4252 $as_echo "$CPP" >&6; }
4254 for ac_c_preproc_warn_flag in '' yes
4256 # Use a header file that comes with gcc, so configuring glibc
4257 # with a fresh cross-compiler works.
4258 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4259 # <limits.h> exists even on freestanding compilers.
4260 # On the NeXT, cc -E runs the code through the compiler's parser,
4261 # not just through cpp. "Syntax error" is here to catch this case.
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4265 # include <limits.h>
4267 # include <assert.h>
4271 if ac_fn_c_try_cpp "$LINENO"; then :
4274 # Broken: fails on valid input.
4277 rm -f conftest.err conftest.i conftest.$ac_ext
4279 # OK, works on sane cases. Now check whether nonexistent headers
4280 # can be detected and how.
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4283 #include <ac_nonexistent.h>
4285 if ac_fn_c_try_cpp "$LINENO"; then :
4286 # Broken: success on invalid input.
4289 # Passes both tests.
4293 rm -f conftest.err conftest.i conftest.$ac_ext
4296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4297 rm -f conftest.i conftest.err conftest.$ac_ext
4298 if $ac_preproc_ok; then :
4301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4303 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4304 See \`config.log' for more details" "$LINENO" 5; }
4308 ac_cpp='$CPP $CPPFLAGS'
4309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4315 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4316 if ${ac_cv_path_GREP+:} false; then :
4317 $as_echo_n "(cached) " >&6
4319 if test -z "$GREP"; then
4320 ac_path_GREP_found=false
4321 # Loop through the user's path and test for each of PROGNAME-LIST
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4326 test -z "$as_dir" && as_dir=.
4327 for ac_prog in grep ggrep; do
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4330 as_fn_executable_p "$ac_path_GREP" || continue
4331 # Check for GNU ac_path_GREP and select it if it is found.
4332 # Check for GNU $ac_path_GREP
4333 case `"$ac_path_GREP" --version 2>&1` in
4335 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4338 $as_echo_n 0123456789 >"conftest.in"
4341 cat "conftest.in" "conftest.in" >"conftest.tmp"
4342 mv "conftest.tmp" "conftest.in"
4343 cp "conftest.in" "conftest.nl"
4344 $as_echo 'GREP' >> "conftest.nl"
4345 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4346 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4347 as_fn_arith $ac_count + 1 && ac_count=$as_val
4348 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4349 # Best one so far, save it but keep looking for a better one
4350 ac_cv_path_GREP="$ac_path_GREP"
4351 ac_path_GREP_max=$ac_count
4353 # 10*(2^10) chars as input seems more than enough
4354 test $ac_count -gt 10 && break
4356 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4359 $ac_path_GREP_found && break 3
4364 if test -z "$ac_cv_path_GREP"; then
4365 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4368 ac_cv_path_GREP=$GREP
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4373 $as_echo "$ac_cv_path_GREP" >&6; }
4374 GREP="$ac_cv_path_GREP"
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4378 $as_echo_n "checking for egrep... " >&6; }
4379 if ${ac_cv_path_EGREP+:} false; then :
4380 $as_echo_n "(cached) " >&6
4382 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4383 then ac_cv_path_EGREP="$GREP -E"
4385 if test -z "$EGREP"; then
4386 ac_path_EGREP_found=false
4387 # Loop through the user's path and test for each of PROGNAME-LIST
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4392 test -z "$as_dir" && as_dir=.
4393 for ac_prog in egrep; do
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4396 as_fn_executable_p "$ac_path_EGREP" || continue
4397 # Check for GNU ac_path_EGREP and select it if it is found.
4398 # Check for GNU $ac_path_EGREP
4399 case `"$ac_path_EGREP" --version 2>&1` in
4401 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4404 $as_echo_n 0123456789 >"conftest.in"
4407 cat "conftest.in" "conftest.in" >"conftest.tmp"
4408 mv "conftest.tmp" "conftest.in"
4409 cp "conftest.in" "conftest.nl"
4410 $as_echo 'EGREP' >> "conftest.nl"
4411 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4412 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4413 as_fn_arith $ac_count + 1 && ac_count=$as_val
4414 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4415 # Best one so far, save it but keep looking for a better one
4416 ac_cv_path_EGREP="$ac_path_EGREP"
4417 ac_path_EGREP_max=$ac_count
4419 # 10*(2^10) chars as input seems more than enough
4420 test $ac_count -gt 10 && break
4422 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4425 $ac_path_EGREP_found && break 3
4430 if test -z "$ac_cv_path_EGREP"; then
4431 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4434 ac_cv_path_EGREP=$EGREP
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4440 $as_echo "$ac_cv_path_EGREP" >&6; }
4441 EGREP="$ac_cv_path_EGREP"
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4445 $as_echo_n "checking for ANSI C header files... " >&6; }
4446 if ${ac_cv_header_stdc+:} false; then :
4447 $as_echo_n "(cached) " >&6
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4464 if ac_fn_c_try_compile "$LINENO"; then :
4465 ac_cv_header_stdc=yes
4467 ac_cv_header_stdc=no
4469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471 if test $ac_cv_header_stdc = yes; then
4472 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h. */
4478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4479 $EGREP "memchr" >/dev/null 2>&1; then :
4482 ac_cv_header_stdc=no
4488 if test $ac_cv_header_stdc = yes; then
4489 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4496 $EGREP "free" >/dev/null 2>&1; then :
4499 ac_cv_header_stdc=no
4505 if test $ac_cv_header_stdc = yes; then
4506 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4507 if test "$cross_compiling" = yes; then :
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4514 #if ((' ' & 0x0FF) == 0x020)
4515 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4516 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4518 # define ISLOWER(c) \
4519 (('a' <= (c) && (c) <= 'i') \
4520 || ('j' <= (c) && (c) <= 'r') \
4521 || ('s' <= (c) && (c) <= 'z'))
4522 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4525 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4530 for (i = 0; i < 256; i++)
4531 if (XOR (islower (i), ISLOWER (i))
4532 || toupper (i) != TOUPPER (i))
4537 if ac_fn_c_try_run "$LINENO"; then :
4540 ac_cv_header_stdc=no
4542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4543 conftest.$ac_objext conftest.beam conftest.$ac_ext
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4549 $as_echo "$ac_cv_header_stdc" >&6; }
4550 if test $ac_cv_header_stdc = yes; then
4552 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4556 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4557 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4558 inttypes.h stdint.h unistd.h
4560 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4561 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4563 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4564 cat >>confdefs.h <<_ACEOF
4565 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4577 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4578 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4584 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4585 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4591 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4592 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4606 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4607 if test -n "$ac_tool_prefix"; then
4608 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4609 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4611 $as_echo_n "checking for $ac_word... " >&6; }
4612 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4613 $as_echo_n "(cached) " >&6
4617 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4627 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4639 if test -n "$PKG_CONFIG"; then
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4641 $as_echo "$PKG_CONFIG" >&6; }
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644 $as_echo "no" >&6; }
4649 if test -z "$ac_cv_path_PKG_CONFIG"; then
4650 ac_pt_PKG_CONFIG=$PKG_CONFIG
4651 # Extract the first word of "pkg-config", so it can be a program name with args.
4652 set dummy pkg-config; ac_word=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4656 $as_echo_n "(cached) " >&6
4658 case $ac_pt_PKG_CONFIG in
4660 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4670 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4682 if test -n "$ac_pt_PKG_CONFIG"; then
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4684 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4687 $as_echo "no" >&6; }
4690 if test "x$ac_pt_PKG_CONFIG" = x; then
4693 case $cross_compiling:$ac_tool_warned in
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4697 ac_tool_warned=yes ;;
4699 PKG_CONFIG=$ac_pt_PKG_CONFIG
4702 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4706 if test -n "$PKG_CONFIG"; then
4707 _pkg_min_version=0.9.0
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4709 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4710 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4712 $as_echo "yes" >&6; }
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4719 # Make sure we can run config.sub.
4720 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4721 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4724 $as_echo_n "checking build system type... " >&6; }
4725 if ${ac_cv_build+:} false; then :
4726 $as_echo_n "(cached) " >&6
4728 ac_build_alias=$build_alias
4729 test "x$ac_build_alias" = x &&
4730 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4731 test "x$ac_build_alias" = x &&
4732 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4733 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4734 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4738 $as_echo "$ac_cv_build" >&6; }
4739 case $ac_cv_build in
4741 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4744 ac_save_IFS=$IFS; IFS='-'
4750 # Remember, the first character of IFS is used to create $*,
4751 # except with old shells:
4754 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4758 $as_echo_n "checking host system type... " >&6; }
4759 if ${ac_cv_host+:} false; then :
4760 $as_echo_n "(cached) " >&6
4762 if test "x$host_alias" = x; then
4763 ac_cv_host=$ac_cv_build
4765 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4766 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4771 $as_echo "$ac_cv_host" >&6; }
4774 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4777 ac_save_IFS=$IFS; IFS='-'
4783 # Remember, the first character of IFS is used to create $*,
4784 # except with old shells:
4787 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4791 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4792 if ${ac_cv_path_SED+:} false; then :
4793 $as_echo_n "(cached) " >&6
4795 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4796 for ac_i in 1 2 3 4 5 6 7; do
4797 ac_script="$ac_script$as_nl$ac_script"
4799 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4800 { ac_script=; unset ac_script;}
4801 if test -z "$SED"; then
4802 ac_path_SED_found=false
4803 # Loop through the user's path and test for each of PROGNAME-LIST
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 test -z "$as_dir" && as_dir=.
4809 for ac_prog in sed gsed; do
4810 for ac_exec_ext in '' $ac_executable_extensions; do
4811 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4812 as_fn_executable_p "$ac_path_SED" || continue
4813 # Check for GNU ac_path_SED and select it if it is found.
4814 # Check for GNU $ac_path_SED
4815 case `"$ac_path_SED" --version 2>&1` in
4817 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4820 $as_echo_n 0123456789 >"conftest.in"
4823 cat "conftest.in" "conftest.in" >"conftest.tmp"
4824 mv "conftest.tmp" "conftest.in"
4825 cp "conftest.in" "conftest.nl"
4826 $as_echo '' >> "conftest.nl"
4827 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4828 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4829 as_fn_arith $ac_count + 1 && ac_count=$as_val
4830 if test $ac_count -gt ${ac_path_SED_max-0}; then
4831 # Best one so far, save it but keep looking for a better one
4832 ac_cv_path_SED="$ac_path_SED"
4833 ac_path_SED_max=$ac_count
4835 # 10*(2^10) chars as input seems more than enough
4836 test $ac_count -gt 10 && break
4838 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4841 $ac_path_SED_found && break 3
4846 if test -z "$ac_cv_path_SED"; then
4847 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4855 $as_echo "$ac_cv_path_SED" >&6; }
4856 SED="$ac_cv_path_SED"
4864 # Check whether --enable-selective-werror was given.
4865 if test "${enable_selective_werror+set}" = set; then :
4866 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4868 SELECTIVE_WERROR=yes
4875 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4876 if test "x$SUNCC" = "xyes"; then
4882 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4896 xorg_testset_save_CFLAGS="$CFLAGS"
4898 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4901 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4902 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4903 $as_echo_n "(cached) " >&6
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h. */
4909 if ac_fn_c_try_compile "$LINENO"; then :
4910 xorg_cv_cc_flag_unknown_warning_option=yes
4912 xorg_cv_cc_flag_unknown_warning_option=no
4914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4917 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4918 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4919 CFLAGS="$xorg_testset_save_CFLAGS"
4922 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4928 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4929 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4930 $as_echo_n "(cached) " >&6
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4936 if ac_fn_c_try_compile "$LINENO"; then :
4937 xorg_cv_cc_flag_unused_command_line_argument=yes
4939 xorg_cv_cc_flag_unused_command_line_argument=no
4941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4944 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4945 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4946 CFLAGS="$xorg_testset_save_CFLAGS"
4951 if test $found = "no" ; then
4952 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4956 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4960 CFLAGS="$CFLAGS -Wall"
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4963 $as_echo_n "checking if $CC supports-Wall... " >&6; }
4964 cacheid=xorg_cv_cc_flag__Wall
4965 if eval \${$cacheid+:} false; then :
4966 $as_echo_n "(cached) " >&6
4968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969 /* end confdefs.h. */
4979 if ac_fn_c_try_link "$LINENO"; then :
4984 rm -f core conftest.err conftest.$ac_objext \
4985 conftest$ac_exeext conftest.$ac_ext
4989 CFLAGS="$xorg_testset_save_CFLAGS"
4991 eval supported=\$$cacheid
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4993 $as_echo "$supported" >&6; }
4994 if test "$supported" = "yes" ; then
4995 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5014 xorg_testset_save_CFLAGS="$CFLAGS"
5016 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5019 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5020 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5021 $as_echo_n "(cached) " >&6
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5027 if ac_fn_c_try_compile "$LINENO"; then :
5028 xorg_cv_cc_flag_unknown_warning_option=yes
5030 xorg_cv_cc_flag_unknown_warning_option=no
5032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5035 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5036 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5037 CFLAGS="$xorg_testset_save_CFLAGS"
5040 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5046 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5047 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5048 $as_echo_n "(cached) " >&6
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5054 if ac_fn_c_try_compile "$LINENO"; then :
5055 xorg_cv_cc_flag_unused_command_line_argument=yes
5057 xorg_cv_cc_flag_unused_command_line_argument=no
5059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5062 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5064 CFLAGS="$xorg_testset_save_CFLAGS"
5069 if test $found = "no" ; then
5070 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5074 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5078 CFLAGS="$CFLAGS -Wpointer-arith"
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
5081 $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
5082 cacheid=xorg_cv_cc_flag__Wpointer_arith
5083 if eval \${$cacheid+:} false; then :
5084 $as_echo_n "(cached) " >&6
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5097 if ac_fn_c_try_link "$LINENO"; then :
5102 rm -f core conftest.err conftest.$ac_objext \
5103 conftest$ac_exeext conftest.$ac_ext
5107 CFLAGS="$xorg_testset_save_CFLAGS"
5109 eval supported=\$$cacheid
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5111 $as_echo "$supported" >&6; }
5112 if test "$supported" = "yes" ; then
5113 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5132 xorg_testset_save_CFLAGS="$CFLAGS"
5134 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5137 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5138 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5139 $as_echo_n "(cached) " >&6
5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h. */
5145 if ac_fn_c_try_compile "$LINENO"; then :
5146 xorg_cv_cc_flag_unknown_warning_option=yes
5148 xorg_cv_cc_flag_unknown_warning_option=no
5150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5153 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5155 CFLAGS="$xorg_testset_save_CFLAGS"
5158 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5164 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5165 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5166 $as_echo_n "(cached) " >&6
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5172 if ac_fn_c_try_compile "$LINENO"; then :
5173 xorg_cv_cc_flag_unused_command_line_argument=yes
5175 xorg_cv_cc_flag_unused_command_line_argument=no
5177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5180 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5181 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5182 CFLAGS="$xorg_testset_save_CFLAGS"
5187 if test $found = "no" ; then
5188 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5192 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5196 CFLAGS="$CFLAGS -Wmissing-declarations"
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
5199 $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
5200 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5201 if eval \${$cacheid+:} false; then :
5202 $as_echo_n "(cached) " >&6
5204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205 /* end confdefs.h. */
5215 if ac_fn_c_try_link "$LINENO"; then :
5220 rm -f core conftest.err conftest.$ac_objext \
5221 conftest$ac_exeext conftest.$ac_ext
5225 CFLAGS="$xorg_testset_save_CFLAGS"
5227 eval supported=\$$cacheid
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5229 $as_echo "$supported" >&6; }
5230 if test "$supported" = "yes" ; then
5231 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5250 xorg_testset_save_CFLAGS="$CFLAGS"
5252 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5255 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5256 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5257 $as_echo_n "(cached) " >&6
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5263 if ac_fn_c_try_compile "$LINENO"; then :
5264 xorg_cv_cc_flag_unknown_warning_option=yes
5266 xorg_cv_cc_flag_unknown_warning_option=no
5268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5271 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5272 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5273 CFLAGS="$xorg_testset_save_CFLAGS"
5276 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5282 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5283 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5284 $as_echo_n "(cached) " >&6
5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5290 if ac_fn_c_try_compile "$LINENO"; then :
5291 xorg_cv_cc_flag_unused_command_line_argument=yes
5293 xorg_cv_cc_flag_unused_command_line_argument=no
5295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5298 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5299 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5300 CFLAGS="$xorg_testset_save_CFLAGS"
5305 if test $found = "no" ; then
5306 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5307 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5310 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5314 CFLAGS="$CFLAGS -Wformat=2"
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
5317 $as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
5318 cacheid=xorg_cv_cc_flag__Wformat_2
5319 if eval \${$cacheid+:} false; then :
5320 $as_echo_n "(cached) " >&6
5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h. */
5333 if ac_fn_c_try_link "$LINENO"; then :
5338 rm -f core conftest.err conftest.$ac_objext \
5339 conftest$ac_exeext conftest.$ac_ext
5343 CFLAGS="$xorg_testset_save_CFLAGS"
5345 eval supported=\$$cacheid
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5347 $as_echo "$supported" >&6; }
5348 if test "$supported" = "yes" ; then
5349 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5354 if test $found = "no" ; then
5355 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5359 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5363 CFLAGS="$CFLAGS -Wformat"
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5366 $as_echo_n "checking if $CC supports-Wformat... " >&6; }
5367 cacheid=xorg_cv_cc_flag__Wformat
5368 if eval \${$cacheid+:} false; then :
5369 $as_echo_n "(cached) " >&6
5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h. */
5382 if ac_fn_c_try_link "$LINENO"; then :
5387 rm -f core conftest.err conftest.$ac_objext \
5388 conftest$ac_exeext conftest.$ac_ext
5392 CFLAGS="$xorg_testset_save_CFLAGS"
5394 eval supported=\$$cacheid
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5396 $as_echo "$supported" >&6; }
5397 if test "$supported" = "yes" ; then
5398 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5419 xorg_testset_save_CFLAGS="$CFLAGS"
5421 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5424 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5425 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5426 $as_echo_n "(cached) " >&6
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5432 if ac_fn_c_try_compile "$LINENO"; then :
5433 xorg_cv_cc_flag_unknown_warning_option=yes
5435 xorg_cv_cc_flag_unknown_warning_option=no
5437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5440 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5441 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5442 CFLAGS="$xorg_testset_save_CFLAGS"
5445 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5451 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5452 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5453 $as_echo_n "(cached) " >&6
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5459 if ac_fn_c_try_compile "$LINENO"; then :
5460 xorg_cv_cc_flag_unused_command_line_argument=yes
5462 xorg_cv_cc_flag_unused_command_line_argument=no
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5467 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5468 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5469 CFLAGS="$xorg_testset_save_CFLAGS"
5474 if test $found = "no" ; then
5475 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5479 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5483 CFLAGS="$CFLAGS -Wstrict-prototypes"
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5486 $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5487 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5488 if eval \${$cacheid+:} false; then :
5489 $as_echo_n "(cached) " >&6
5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h. */
5502 if ac_fn_c_try_link "$LINENO"; then :
5507 rm -f core conftest.err conftest.$ac_objext \
5508 conftest$ac_exeext conftest.$ac_ext
5512 CFLAGS="$xorg_testset_save_CFLAGS"
5514 eval supported=\$$cacheid
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5516 $as_echo "$supported" >&6; }
5517 if test "$supported" = "yes" ; then
5518 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5537 xorg_testset_save_CFLAGS="$CFLAGS"
5539 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5542 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5543 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5544 $as_echo_n "(cached) " >&6
5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5550 if ac_fn_c_try_compile "$LINENO"; then :
5551 xorg_cv_cc_flag_unknown_warning_option=yes
5553 xorg_cv_cc_flag_unknown_warning_option=no
5555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5558 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5560 CFLAGS="$xorg_testset_save_CFLAGS"
5563 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5569 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5570 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5571 $as_echo_n "(cached) " >&6
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5577 if ac_fn_c_try_compile "$LINENO"; then :
5578 xorg_cv_cc_flag_unused_command_line_argument=yes
5580 xorg_cv_cc_flag_unused_command_line_argument=no
5582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5585 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5587 CFLAGS="$xorg_testset_save_CFLAGS"
5592 if test $found = "no" ; then
5593 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5597 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5601 CFLAGS="$CFLAGS -Wmissing-prototypes"
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5604 $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5605 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5606 if eval \${$cacheid+:} false; then :
5607 $as_echo_n "(cached) " >&6
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h. */
5620 if ac_fn_c_try_link "$LINENO"; then :
5625 rm -f core conftest.err conftest.$ac_objext \
5626 conftest$ac_exeext conftest.$ac_ext
5630 CFLAGS="$xorg_testset_save_CFLAGS"
5632 eval supported=\$$cacheid
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5634 $as_echo "$supported" >&6; }
5635 if test "$supported" = "yes" ; then
5636 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5655 xorg_testset_save_CFLAGS="$CFLAGS"
5657 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5660 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5661 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5662 $as_echo_n "(cached) " >&6
5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5668 if ac_fn_c_try_compile "$LINENO"; then :
5669 xorg_cv_cc_flag_unknown_warning_option=yes
5671 xorg_cv_cc_flag_unknown_warning_option=no
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5676 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5677 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5678 CFLAGS="$xorg_testset_save_CFLAGS"
5681 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5687 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5688 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5689 $as_echo_n "(cached) " >&6
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5695 if ac_fn_c_try_compile "$LINENO"; then :
5696 xorg_cv_cc_flag_unused_command_line_argument=yes
5698 xorg_cv_cc_flag_unused_command_line_argument=no
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5703 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5704 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5705 CFLAGS="$xorg_testset_save_CFLAGS"
5710 if test $found = "no" ; then
5711 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5715 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5719 CFLAGS="$CFLAGS -Wnested-externs"
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5722 $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5723 cacheid=xorg_cv_cc_flag__Wnested_externs
5724 if eval \${$cacheid+:} false; then :
5725 $as_echo_n "(cached) " >&6
5727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5728 /* end confdefs.h. */
5738 if ac_fn_c_try_link "$LINENO"; then :
5743 rm -f core conftest.err conftest.$ac_objext \
5744 conftest$ac_exeext conftest.$ac_ext
5748 CFLAGS="$xorg_testset_save_CFLAGS"
5750 eval supported=\$$cacheid
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5752 $as_echo "$supported" >&6; }
5753 if test "$supported" = "yes" ; then
5754 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5773 xorg_testset_save_CFLAGS="$CFLAGS"
5775 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5778 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5779 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5780 $as_echo_n "(cached) " >&6
5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5786 if ac_fn_c_try_compile "$LINENO"; then :
5787 xorg_cv_cc_flag_unknown_warning_option=yes
5789 xorg_cv_cc_flag_unknown_warning_option=no
5791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5794 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5795 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5796 CFLAGS="$xorg_testset_save_CFLAGS"
5799 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5805 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5806 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5807 $as_echo_n "(cached) " >&6
5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810 /* end confdefs.h. */
5813 if ac_fn_c_try_compile "$LINENO"; then :
5814 xorg_cv_cc_flag_unused_command_line_argument=yes
5816 xorg_cv_cc_flag_unused_command_line_argument=no
5818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5821 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5823 CFLAGS="$xorg_testset_save_CFLAGS"
5828 if test $found = "no" ; then
5829 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5833 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5837 CFLAGS="$CFLAGS -Wbad-function-cast"
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5840 $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5841 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5842 if eval \${$cacheid+:} false; then :
5843 $as_echo_n "(cached) " >&6
5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h. */
5856 if ac_fn_c_try_link "$LINENO"; then :
5861 rm -f core conftest.err conftest.$ac_objext \
5862 conftest$ac_exeext conftest.$ac_ext
5866 CFLAGS="$xorg_testset_save_CFLAGS"
5868 eval supported=\$$cacheid
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5870 $as_echo "$supported" >&6; }
5871 if test "$supported" = "yes" ; then
5872 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5891 xorg_testset_save_CFLAGS="$CFLAGS"
5893 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5896 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5897 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5898 $as_echo_n "(cached) " >&6
5900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901 /* end confdefs.h. */
5904 if ac_fn_c_try_compile "$LINENO"; then :
5905 xorg_cv_cc_flag_unknown_warning_option=yes
5907 xorg_cv_cc_flag_unknown_warning_option=no
5909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5912 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5913 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5914 CFLAGS="$xorg_testset_save_CFLAGS"
5917 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5923 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5924 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5925 $as_echo_n "(cached) " >&6
5927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928 /* end confdefs.h. */
5931 if ac_fn_c_try_compile "$LINENO"; then :
5932 xorg_cv_cc_flag_unused_command_line_argument=yes
5934 xorg_cv_cc_flag_unused_command_line_argument=no
5936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5939 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5941 CFLAGS="$xorg_testset_save_CFLAGS"
5946 if test $found = "no" ; then
5947 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5951 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5955 CFLAGS="$CFLAGS -Wold-style-definition"
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5958 $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5959 cacheid=xorg_cv_cc_flag__Wold_style_definition
5960 if eval \${$cacheid+:} false; then :
5961 $as_echo_n "(cached) " >&6
5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964 /* end confdefs.h. */
5974 if ac_fn_c_try_link "$LINENO"; then :
5979 rm -f core conftest.err conftest.$ac_objext \
5980 conftest$ac_exeext conftest.$ac_ext
5984 CFLAGS="$xorg_testset_save_CFLAGS"
5986 eval supported=\$$cacheid
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5988 $as_echo "$supported" >&6; }
5989 if test "$supported" = "yes" ; then
5990 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6009 xorg_testset_save_CFLAGS="$CFLAGS"
6011 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6014 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6015 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6016 $as_echo_n "(cached) " >&6
6018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019 /* end confdefs.h. */
6022 if ac_fn_c_try_compile "$LINENO"; then :
6023 xorg_cv_cc_flag_unknown_warning_option=yes
6025 xorg_cv_cc_flag_unknown_warning_option=no
6027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6030 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6032 CFLAGS="$xorg_testset_save_CFLAGS"
6035 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6041 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6042 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6043 $as_echo_n "(cached) " >&6
6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h. */
6049 if ac_fn_c_try_compile "$LINENO"; then :
6050 xorg_cv_cc_flag_unused_command_line_argument=yes
6052 xorg_cv_cc_flag_unused_command_line_argument=no
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6057 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6059 CFLAGS="$xorg_testset_save_CFLAGS"
6064 if test $found = "no" ; then
6065 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6069 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6073 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
6076 $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
6077 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6078 if eval \${$cacheid+:} false; then :
6079 $as_echo_n "(cached) " >&6
6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h. */
6092 if ac_fn_c_try_link "$LINENO"; then :
6097 rm -f core conftest.err conftest.$ac_objext \
6098 conftest$ac_exeext conftest.$ac_ext
6102 CFLAGS="$xorg_testset_save_CFLAGS"
6104 eval supported=\$$cacheid
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6106 $as_echo "$supported" >&6; }
6107 if test "$supported" = "yes" ; then
6108 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6117 # This chunk adds additional warnings that could catch undesired effects.
6131 xorg_testset_save_CFLAGS="$CFLAGS"
6133 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6136 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6137 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6138 $as_echo_n "(cached) " >&6
6140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141 /* end confdefs.h. */
6144 if ac_fn_c_try_compile "$LINENO"; then :
6145 xorg_cv_cc_flag_unknown_warning_option=yes
6147 xorg_cv_cc_flag_unknown_warning_option=no
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6152 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6153 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6154 CFLAGS="$xorg_testset_save_CFLAGS"
6157 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6163 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6164 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6165 $as_echo_n "(cached) " >&6
6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168 /* end confdefs.h. */
6171 if ac_fn_c_try_compile "$LINENO"; then :
6172 xorg_cv_cc_flag_unused_command_line_argument=yes
6174 xorg_cv_cc_flag_unused_command_line_argument=no
6176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6179 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6180 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6181 CFLAGS="$xorg_testset_save_CFLAGS"
6186 if test $found = "no" ; then
6187 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6191 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6195 CFLAGS="$CFLAGS -Wunused"
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
6198 $as_echo_n "checking if $CC supports-Wunused... " >&6; }
6199 cacheid=xorg_cv_cc_flag__Wunused
6200 if eval \${$cacheid+:} false; then :
6201 $as_echo_n "(cached) " >&6
6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204 /* end confdefs.h. */
6214 if ac_fn_c_try_link "$LINENO"; then :
6219 rm -f core conftest.err conftest.$ac_objext \
6220 conftest$ac_exeext conftest.$ac_ext
6224 CFLAGS="$xorg_testset_save_CFLAGS"
6226 eval supported=\$$cacheid
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6228 $as_echo "$supported" >&6; }
6229 if test "$supported" = "yes" ; then
6230 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6249 xorg_testset_save_CFLAGS="$CFLAGS"
6251 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6254 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6255 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6256 $as_echo_n "(cached) " >&6
6258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6259 /* end confdefs.h. */
6262 if ac_fn_c_try_compile "$LINENO"; then :
6263 xorg_cv_cc_flag_unknown_warning_option=yes
6265 xorg_cv_cc_flag_unknown_warning_option=no
6267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6270 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6271 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6272 CFLAGS="$xorg_testset_save_CFLAGS"
6275 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6281 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6282 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6283 $as_echo_n "(cached) " >&6
6285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6289 if ac_fn_c_try_compile "$LINENO"; then :
6290 xorg_cv_cc_flag_unused_command_line_argument=yes
6292 xorg_cv_cc_flag_unused_command_line_argument=no
6294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6297 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6298 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6299 CFLAGS="$xorg_testset_save_CFLAGS"
6304 if test $found = "no" ; then
6305 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6309 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6313 CFLAGS="$CFLAGS -Wuninitialized"
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
6316 $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
6317 cacheid=xorg_cv_cc_flag__Wuninitialized
6318 if eval \${$cacheid+:} false; then :
6319 $as_echo_n "(cached) " >&6
6321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6322 /* end confdefs.h. */
6332 if ac_fn_c_try_link "$LINENO"; then :
6337 rm -f core conftest.err conftest.$ac_objext \
6338 conftest$ac_exeext conftest.$ac_ext
6342 CFLAGS="$xorg_testset_save_CFLAGS"
6344 eval supported=\$$cacheid
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6346 $as_echo "$supported" >&6; }
6347 if test "$supported" = "yes" ; then
6348 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6367 xorg_testset_save_CFLAGS="$CFLAGS"
6369 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6372 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6373 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6374 $as_echo_n "(cached) " >&6
6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6380 if ac_fn_c_try_compile "$LINENO"; then :
6381 xorg_cv_cc_flag_unknown_warning_option=yes
6383 xorg_cv_cc_flag_unknown_warning_option=no
6385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6388 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6389 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6390 CFLAGS="$xorg_testset_save_CFLAGS"
6393 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6399 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6400 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6401 $as_echo_n "(cached) " >&6
6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404 /* end confdefs.h. */
6407 if ac_fn_c_try_compile "$LINENO"; then :
6408 xorg_cv_cc_flag_unused_command_line_argument=yes
6410 xorg_cv_cc_flag_unused_command_line_argument=no
6412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6415 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6416 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6417 CFLAGS="$xorg_testset_save_CFLAGS"
6422 if test $found = "no" ; then
6423 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6427 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6431 CFLAGS="$CFLAGS -Wshadow"
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6434 $as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6435 cacheid=xorg_cv_cc_flag__Wshadow
6436 if eval \${$cacheid+:} false; then :
6437 $as_echo_n "(cached) " >&6
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6450 if ac_fn_c_try_link "$LINENO"; then :
6455 rm -f core conftest.err conftest.$ac_objext \
6456 conftest$ac_exeext conftest.$ac_ext
6460 CFLAGS="$xorg_testset_save_CFLAGS"
6462 eval supported=\$$cacheid
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6464 $as_echo "$supported" >&6; }
6465 if test "$supported" = "yes" ; then
6466 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6485 xorg_testset_save_CFLAGS="$CFLAGS"
6487 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6490 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6491 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6492 $as_echo_n "(cached) " >&6
6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h. */
6498 if ac_fn_c_try_compile "$LINENO"; then :
6499 xorg_cv_cc_flag_unknown_warning_option=yes
6501 xorg_cv_cc_flag_unknown_warning_option=no
6503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6506 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6508 CFLAGS="$xorg_testset_save_CFLAGS"
6511 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6517 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6518 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6519 $as_echo_n "(cached) " >&6
6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6525 if ac_fn_c_try_compile "$LINENO"; then :
6526 xorg_cv_cc_flag_unused_command_line_argument=yes
6528 xorg_cv_cc_flag_unused_command_line_argument=no
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6533 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6535 CFLAGS="$xorg_testset_save_CFLAGS"
6540 if test $found = "no" ; then
6541 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6545 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6549 CFLAGS="$CFLAGS -Wcast-qual"
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6552 $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6553 cacheid=xorg_cv_cc_flag__Wcast_qual
6554 if eval \${$cacheid+:} false; then :
6555 $as_echo_n "(cached) " >&6
6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558 /* end confdefs.h. */
6568 if ac_fn_c_try_link "$LINENO"; then :
6573 rm -f core conftest.err conftest.$ac_objext \
6574 conftest$ac_exeext conftest.$ac_ext
6578 CFLAGS="$xorg_testset_save_CFLAGS"
6580 eval supported=\$$cacheid
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6582 $as_echo "$supported" >&6; }
6583 if test "$supported" = "yes" ; then
6584 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6603 xorg_testset_save_CFLAGS="$CFLAGS"
6605 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6608 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6609 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6610 $as_echo_n "(cached) " >&6
6612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613 /* end confdefs.h. */
6616 if ac_fn_c_try_compile "$LINENO"; then :
6617 xorg_cv_cc_flag_unknown_warning_option=yes
6619 xorg_cv_cc_flag_unknown_warning_option=no
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6624 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6625 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6626 CFLAGS="$xorg_testset_save_CFLAGS"
6629 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6635 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6636 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6637 $as_echo_n "(cached) " >&6
6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6643 if ac_fn_c_try_compile "$LINENO"; then :
6644 xorg_cv_cc_flag_unused_command_line_argument=yes
6646 xorg_cv_cc_flag_unused_command_line_argument=no
6648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6651 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6653 CFLAGS="$xorg_testset_save_CFLAGS"
6658 if test $found = "no" ; then
6659 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6663 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6667 CFLAGS="$CFLAGS -Wmissing-noreturn"
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6670 $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6671 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6672 if eval \${$cacheid+:} false; then :
6673 $as_echo_n "(cached) " >&6
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6686 if ac_fn_c_try_link "$LINENO"; then :
6691 rm -f core conftest.err conftest.$ac_objext \
6692 conftest$ac_exeext conftest.$ac_ext
6696 CFLAGS="$xorg_testset_save_CFLAGS"
6698 eval supported=\$$cacheid
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6700 $as_echo "$supported" >&6; }
6701 if test "$supported" = "yes" ; then
6702 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6721 xorg_testset_save_CFLAGS="$CFLAGS"
6723 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6726 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6727 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6728 $as_echo_n "(cached) " >&6
6730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6731 /* end confdefs.h. */
6734 if ac_fn_c_try_compile "$LINENO"; then :
6735 xorg_cv_cc_flag_unknown_warning_option=yes
6737 xorg_cv_cc_flag_unknown_warning_option=no
6739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6742 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6743 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6744 CFLAGS="$xorg_testset_save_CFLAGS"
6747 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6753 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6754 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6755 $as_echo_n "(cached) " >&6
6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h. */
6761 if ac_fn_c_try_compile "$LINENO"; then :
6762 xorg_cv_cc_flag_unused_command_line_argument=yes
6764 xorg_cv_cc_flag_unused_command_line_argument=no
6766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6769 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6770 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6771 CFLAGS="$xorg_testset_save_CFLAGS"
6776 if test $found = "no" ; then
6777 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6781 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6785 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6788 $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6789 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6790 if eval \${$cacheid+:} false; then :
6791 $as_echo_n "(cached) " >&6
6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h. */
6804 if ac_fn_c_try_link "$LINENO"; then :
6809 rm -f core conftest.err conftest.$ac_objext \
6810 conftest$ac_exeext conftest.$ac_ext
6814 CFLAGS="$xorg_testset_save_CFLAGS"
6816 eval supported=\$$cacheid
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6818 $as_echo "$supported" >&6; }
6819 if test "$supported" = "yes" ; then
6820 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6839 xorg_testset_save_CFLAGS="$CFLAGS"
6841 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6844 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6845 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6846 $as_echo_n "(cached) " >&6
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6852 if ac_fn_c_try_compile "$LINENO"; then :
6853 xorg_cv_cc_flag_unknown_warning_option=yes
6855 xorg_cv_cc_flag_unknown_warning_option=no
6857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6860 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6861 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6862 CFLAGS="$xorg_testset_save_CFLAGS"
6865 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6871 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6872 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6873 $as_echo_n "(cached) " >&6
6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h. */
6879 if ac_fn_c_try_compile "$LINENO"; then :
6880 xorg_cv_cc_flag_unused_command_line_argument=yes
6882 xorg_cv_cc_flag_unused_command_line_argument=no
6884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6887 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6889 CFLAGS="$xorg_testset_save_CFLAGS"
6894 if test $found = "no" ; then
6895 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6899 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6903 CFLAGS="$CFLAGS -Wredundant-decls"
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6906 $as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6907 cacheid=xorg_cv_cc_flag__Wredundant_decls
6908 if eval \${$cacheid+:} false; then :
6909 $as_echo_n "(cached) " >&6
6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h. */
6922 if ac_fn_c_try_link "$LINENO"; then :
6927 rm -f core conftest.err conftest.$ac_objext \
6928 conftest$ac_exeext conftest.$ac_ext
6932 CFLAGS="$xorg_testset_save_CFLAGS"
6934 eval supported=\$$cacheid
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6936 $as_echo "$supported" >&6; }
6937 if test "$supported" = "yes" ; then
6938 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6945 # These are currently disabled because they are noisy. They will be enabled
6946 # in the future once the codebase is sufficiently modernized to silence
6947 # them. For now, I don't want them to drown out the other warnings.
6948 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6949 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6950 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6952 # Turn some warnings into errors, so we don't accidently get successful builds
6953 # when there are problems that should be fixed.
6955 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6969 xorg_testset_save_CFLAGS="$CFLAGS"
6971 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6974 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6975 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6976 $as_echo_n "(cached) " >&6
6978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979 /* end confdefs.h. */
6982 if ac_fn_c_try_compile "$LINENO"; then :
6983 xorg_cv_cc_flag_unknown_warning_option=yes
6985 xorg_cv_cc_flag_unknown_warning_option=no
6987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6990 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6991 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6992 CFLAGS="$xorg_testset_save_CFLAGS"
6995 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7001 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7002 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7003 $as_echo_n "(cached) " >&6
7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h. */
7009 if ac_fn_c_try_compile "$LINENO"; then :
7010 xorg_cv_cc_flag_unused_command_line_argument=yes
7012 xorg_cv_cc_flag_unused_command_line_argument=no
7014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7017 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7018 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7019 CFLAGS="$xorg_testset_save_CFLAGS"
7024 if test $found = "no" ; then
7025 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7029 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7033 CFLAGS="$CFLAGS -Werror=implicit"
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
7036 $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
7037 cacheid=xorg_cv_cc_flag__Werror_implicit
7038 if eval \${$cacheid+:} false; then :
7039 $as_echo_n "(cached) " >&6
7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h. */
7052 if ac_fn_c_try_link "$LINENO"; then :
7057 rm -f core conftest.err conftest.$ac_objext \
7058 conftest$ac_exeext conftest.$ac_ext
7062 CFLAGS="$xorg_testset_save_CFLAGS"
7064 eval supported=\$$cacheid
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7066 $as_echo "$supported" >&6; }
7067 if test "$supported" = "yes" ; then
7068 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7073 if test $found = "no" ; then
7074 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7078 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7082 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7085 $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7086 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7087 if eval \${$cacheid+:} false; then :
7088 $as_echo_n "(cached) " >&6
7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091 /* end confdefs.h. */
7101 if ac_fn_c_try_link "$LINENO"; then :
7106 rm -f core conftest.err conftest.$ac_objext \
7107 conftest$ac_exeext conftest.$ac_ext
7111 CFLAGS="$xorg_testset_save_CFLAGS"
7113 eval supported=\$$cacheid
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7115 $as_echo "$supported" >&6; }
7116 if test "$supported" = "yes" ; then
7117 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7136 xorg_testset_save_CFLAGS="$CFLAGS"
7138 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7141 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7142 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7143 $as_echo_n "(cached) " >&6
7145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7146 /* end confdefs.h. */
7149 if ac_fn_c_try_compile "$LINENO"; then :
7150 xorg_cv_cc_flag_unknown_warning_option=yes
7152 xorg_cv_cc_flag_unknown_warning_option=no
7154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7157 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7159 CFLAGS="$xorg_testset_save_CFLAGS"
7162 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7168 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7169 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7170 $as_echo_n "(cached) " >&6
7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h. */
7176 if ac_fn_c_try_compile "$LINENO"; then :
7177 xorg_cv_cc_flag_unused_command_line_argument=yes
7179 xorg_cv_cc_flag_unused_command_line_argument=no
7181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7184 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7185 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7186 CFLAGS="$xorg_testset_save_CFLAGS"
7191 if test $found = "no" ; then
7192 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7196 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7200 CFLAGS="$CFLAGS -Werror=nonnull"
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
7203 $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
7204 cacheid=xorg_cv_cc_flag__Werror_nonnull
7205 if eval \${$cacheid+:} false; then :
7206 $as_echo_n "(cached) " >&6
7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h. */
7219 if ac_fn_c_try_link "$LINENO"; then :
7224 rm -f core conftest.err conftest.$ac_objext \
7225 conftest$ac_exeext conftest.$ac_ext
7229 CFLAGS="$xorg_testset_save_CFLAGS"
7231 eval supported=\$$cacheid
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7233 $as_echo "$supported" >&6; }
7234 if test "$supported" = "yes" ; then
7235 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7254 xorg_testset_save_CFLAGS="$CFLAGS"
7256 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7259 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7260 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7261 $as_echo_n "(cached) " >&6
7263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7264 /* end confdefs.h. */
7267 if ac_fn_c_try_compile "$LINENO"; then :
7268 xorg_cv_cc_flag_unknown_warning_option=yes
7270 xorg_cv_cc_flag_unknown_warning_option=no
7272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7275 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7276 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7277 CFLAGS="$xorg_testset_save_CFLAGS"
7280 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7286 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7287 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7288 $as_echo_n "(cached) " >&6
7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7294 if ac_fn_c_try_compile "$LINENO"; then :
7295 xorg_cv_cc_flag_unused_command_line_argument=yes
7297 xorg_cv_cc_flag_unused_command_line_argument=no
7299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7302 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7303 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7304 CFLAGS="$xorg_testset_save_CFLAGS"
7309 if test $found = "no" ; then
7310 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7314 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7318 CFLAGS="$CFLAGS -Werror=init-self"
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
7321 $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
7322 cacheid=xorg_cv_cc_flag__Werror_init_self
7323 if eval \${$cacheid+:} false; then :
7324 $as_echo_n "(cached) " >&6
7326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7327 /* end confdefs.h. */
7337 if ac_fn_c_try_link "$LINENO"; then :
7342 rm -f core conftest.err conftest.$ac_objext \
7343 conftest$ac_exeext conftest.$ac_ext
7347 CFLAGS="$xorg_testset_save_CFLAGS"
7349 eval supported=\$$cacheid
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7351 $as_echo "$supported" >&6; }
7352 if test "$supported" = "yes" ; then
7353 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7372 xorg_testset_save_CFLAGS="$CFLAGS"
7374 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7377 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7378 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7379 $as_echo_n "(cached) " >&6
7381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7382 /* end confdefs.h. */
7385 if ac_fn_c_try_compile "$LINENO"; then :
7386 xorg_cv_cc_flag_unknown_warning_option=yes
7388 xorg_cv_cc_flag_unknown_warning_option=no
7390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7393 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7395 CFLAGS="$xorg_testset_save_CFLAGS"
7398 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7404 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7405 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7406 $as_echo_n "(cached) " >&6
7408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409 /* end confdefs.h. */
7412 if ac_fn_c_try_compile "$LINENO"; then :
7413 xorg_cv_cc_flag_unused_command_line_argument=yes
7415 xorg_cv_cc_flag_unused_command_line_argument=no
7417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7420 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7422 CFLAGS="$xorg_testset_save_CFLAGS"
7427 if test $found = "no" ; then
7428 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7432 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7436 CFLAGS="$CFLAGS -Werror=main"
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7439 $as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7440 cacheid=xorg_cv_cc_flag__Werror_main
7441 if eval \${$cacheid+:} false; then :
7442 $as_echo_n "(cached) " >&6
7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h. */
7455 if ac_fn_c_try_link "$LINENO"; then :
7460 rm -f core conftest.err conftest.$ac_objext \
7461 conftest$ac_exeext conftest.$ac_ext
7465 CFLAGS="$xorg_testset_save_CFLAGS"
7467 eval supported=\$$cacheid
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7469 $as_echo "$supported" >&6; }
7470 if test "$supported" = "yes" ; then
7471 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7490 xorg_testset_save_CFLAGS="$CFLAGS"
7492 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7495 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7496 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7497 $as_echo_n "(cached) " >&6
7499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500 /* end confdefs.h. */
7503 if ac_fn_c_try_compile "$LINENO"; then :
7504 xorg_cv_cc_flag_unknown_warning_option=yes
7506 xorg_cv_cc_flag_unknown_warning_option=no
7508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7511 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7512 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7513 CFLAGS="$xorg_testset_save_CFLAGS"
7516 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7522 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7523 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7524 $as_echo_n "(cached) " >&6
7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h. */
7530 if ac_fn_c_try_compile "$LINENO"; then :
7531 xorg_cv_cc_flag_unused_command_line_argument=yes
7533 xorg_cv_cc_flag_unused_command_line_argument=no
7535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7538 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7540 CFLAGS="$xorg_testset_save_CFLAGS"
7545 if test $found = "no" ; then
7546 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7550 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7554 CFLAGS="$CFLAGS -Werror=missing-braces"
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7557 $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7558 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7559 if eval \${$cacheid+:} false; then :
7560 $as_echo_n "(cached) " >&6
7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563 /* end confdefs.h. */
7573 if ac_fn_c_try_link "$LINENO"; then :
7578 rm -f core conftest.err conftest.$ac_objext \
7579 conftest$ac_exeext conftest.$ac_ext
7583 CFLAGS="$xorg_testset_save_CFLAGS"
7585 eval supported=\$$cacheid
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7587 $as_echo "$supported" >&6; }
7588 if test "$supported" = "yes" ; then
7589 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7608 xorg_testset_save_CFLAGS="$CFLAGS"
7610 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7613 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7614 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7615 $as_echo_n "(cached) " >&6
7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7621 if ac_fn_c_try_compile "$LINENO"; then :
7622 xorg_cv_cc_flag_unknown_warning_option=yes
7624 xorg_cv_cc_flag_unknown_warning_option=no
7626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7629 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7630 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7631 CFLAGS="$xorg_testset_save_CFLAGS"
7634 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7640 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7641 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7642 $as_echo_n "(cached) " >&6
7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7648 if ac_fn_c_try_compile "$LINENO"; then :
7649 xorg_cv_cc_flag_unused_command_line_argument=yes
7651 xorg_cv_cc_flag_unused_command_line_argument=no
7653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7656 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7658 CFLAGS="$xorg_testset_save_CFLAGS"
7663 if test $found = "no" ; then
7664 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7668 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7672 CFLAGS="$CFLAGS -Werror=sequence-point"
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7675 $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7676 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7677 if eval \${$cacheid+:} false; then :
7678 $as_echo_n "(cached) " >&6
7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h. */
7691 if ac_fn_c_try_link "$LINENO"; then :
7696 rm -f core conftest.err conftest.$ac_objext \
7697 conftest$ac_exeext conftest.$ac_ext
7701 CFLAGS="$xorg_testset_save_CFLAGS"
7703 eval supported=\$$cacheid
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7705 $as_echo "$supported" >&6; }
7706 if test "$supported" = "yes" ; then
7707 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7726 xorg_testset_save_CFLAGS="$CFLAGS"
7728 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7731 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7732 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7733 $as_echo_n "(cached) " >&6
7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736 /* end confdefs.h. */
7739 if ac_fn_c_try_compile "$LINENO"; then :
7740 xorg_cv_cc_flag_unknown_warning_option=yes
7742 xorg_cv_cc_flag_unknown_warning_option=no
7744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7747 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7748 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7749 CFLAGS="$xorg_testset_save_CFLAGS"
7752 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7758 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7759 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7760 $as_echo_n "(cached) " >&6
7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h. */
7766 if ac_fn_c_try_compile "$LINENO"; then :
7767 xorg_cv_cc_flag_unused_command_line_argument=yes
7769 xorg_cv_cc_flag_unused_command_line_argument=no
7771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7774 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7776 CFLAGS="$xorg_testset_save_CFLAGS"
7781 if test $found = "no" ; then
7782 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7786 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7790 CFLAGS="$CFLAGS -Werror=return-type"
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7793 $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7794 cacheid=xorg_cv_cc_flag__Werror_return_type
7795 if eval \${$cacheid+:} false; then :
7796 $as_echo_n "(cached) " >&6
7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h. */
7809 if ac_fn_c_try_link "$LINENO"; then :
7814 rm -f core conftest.err conftest.$ac_objext \
7815 conftest$ac_exeext conftest.$ac_ext
7819 CFLAGS="$xorg_testset_save_CFLAGS"
7821 eval supported=\$$cacheid
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7823 $as_echo "$supported" >&6; }
7824 if test "$supported" = "yes" ; then
7825 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7830 if test $found = "no" ; then
7831 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7835 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7839 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7842 $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7843 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7844 if eval \${$cacheid+:} false; then :
7845 $as_echo_n "(cached) " >&6
7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7858 if ac_fn_c_try_link "$LINENO"; then :
7863 rm -f core conftest.err conftest.$ac_objext \
7864 conftest$ac_exeext conftest.$ac_ext
7868 CFLAGS="$xorg_testset_save_CFLAGS"
7870 eval supported=\$$cacheid
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7872 $as_echo "$supported" >&6; }
7873 if test "$supported" = "yes" ; then
7874 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7893 xorg_testset_save_CFLAGS="$CFLAGS"
7895 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7898 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7899 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7900 $as_echo_n "(cached) " >&6
7902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903 /* end confdefs.h. */
7906 if ac_fn_c_try_compile "$LINENO"; then :
7907 xorg_cv_cc_flag_unknown_warning_option=yes
7909 xorg_cv_cc_flag_unknown_warning_option=no
7911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7914 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7916 CFLAGS="$xorg_testset_save_CFLAGS"
7919 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7925 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7926 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7927 $as_echo_n "(cached) " >&6
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h. */
7933 if ac_fn_c_try_compile "$LINENO"; then :
7934 xorg_cv_cc_flag_unused_command_line_argument=yes
7936 xorg_cv_cc_flag_unused_command_line_argument=no
7938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7941 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7943 CFLAGS="$xorg_testset_save_CFLAGS"
7948 if test $found = "no" ; then
7949 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7953 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7957 CFLAGS="$CFLAGS -Werror=trigraphs"
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7960 $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7961 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7962 if eval \${$cacheid+:} false; then :
7963 $as_echo_n "(cached) " >&6
7965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966 /* end confdefs.h. */
7976 if ac_fn_c_try_link "$LINENO"; then :
7981 rm -f core conftest.err conftest.$ac_objext \
7982 conftest$ac_exeext conftest.$ac_ext
7986 CFLAGS="$xorg_testset_save_CFLAGS"
7988 eval supported=\$$cacheid
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7990 $as_echo "$supported" >&6; }
7991 if test "$supported" = "yes" ; then
7992 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8011 xorg_testset_save_CFLAGS="$CFLAGS"
8013 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8016 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8017 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8018 $as_echo_n "(cached) " >&6
8020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8021 /* end confdefs.h. */
8024 if ac_fn_c_try_compile "$LINENO"; then :
8025 xorg_cv_cc_flag_unknown_warning_option=yes
8027 xorg_cv_cc_flag_unknown_warning_option=no
8029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8032 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8033 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8034 CFLAGS="$xorg_testset_save_CFLAGS"
8037 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8043 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8044 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8045 $as_echo_n "(cached) " >&6
8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h. */
8051 if ac_fn_c_try_compile "$LINENO"; then :
8052 xorg_cv_cc_flag_unused_command_line_argument=yes
8054 xorg_cv_cc_flag_unused_command_line_argument=no
8056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8059 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8060 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8061 CFLAGS="$xorg_testset_save_CFLAGS"
8066 if test $found = "no" ; then
8067 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8071 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8075 CFLAGS="$CFLAGS -Werror=array-bounds"
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
8078 $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
8079 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8080 if eval \${$cacheid+:} false; then :
8081 $as_echo_n "(cached) " >&6
8083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084 /* end confdefs.h. */
8094 if ac_fn_c_try_link "$LINENO"; then :
8099 rm -f core conftest.err conftest.$ac_objext \
8100 conftest$ac_exeext conftest.$ac_ext
8104 CFLAGS="$xorg_testset_save_CFLAGS"
8106 eval supported=\$$cacheid
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8108 $as_echo "$supported" >&6; }
8109 if test "$supported" = "yes" ; then
8110 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8129 xorg_testset_save_CFLAGS="$CFLAGS"
8131 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8134 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8135 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8136 $as_echo_n "(cached) " >&6
8138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h. */
8142 if ac_fn_c_try_compile "$LINENO"; then :
8143 xorg_cv_cc_flag_unknown_warning_option=yes
8145 xorg_cv_cc_flag_unknown_warning_option=no
8147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8150 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8151 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8152 CFLAGS="$xorg_testset_save_CFLAGS"
8155 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8161 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8162 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8163 $as_echo_n "(cached) " >&6
8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h. */
8169 if ac_fn_c_try_compile "$LINENO"; then :
8170 xorg_cv_cc_flag_unused_command_line_argument=yes
8172 xorg_cv_cc_flag_unused_command_line_argument=no
8174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8177 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8178 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8179 CFLAGS="$xorg_testset_save_CFLAGS"
8184 if test $found = "no" ; then
8185 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8189 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8193 CFLAGS="$CFLAGS -Werror=write-strings"
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
8196 $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
8197 cacheid=xorg_cv_cc_flag__Werror_write_strings
8198 if eval \${$cacheid+:} false; then :
8199 $as_echo_n "(cached) " >&6
8201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8202 /* end confdefs.h. */
8212 if ac_fn_c_try_link "$LINENO"; then :
8217 rm -f core conftest.err conftest.$ac_objext \
8218 conftest$ac_exeext conftest.$ac_ext
8222 CFLAGS="$xorg_testset_save_CFLAGS"
8224 eval supported=\$$cacheid
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8226 $as_echo "$supported" >&6; }
8227 if test "$supported" = "yes" ; then
8228 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8247 xorg_testset_save_CFLAGS="$CFLAGS"
8249 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8252 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8253 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8254 $as_echo_n "(cached) " >&6
8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h. */
8260 if ac_fn_c_try_compile "$LINENO"; then :
8261 xorg_cv_cc_flag_unknown_warning_option=yes
8263 xorg_cv_cc_flag_unknown_warning_option=no
8265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8268 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8269 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8270 CFLAGS="$xorg_testset_save_CFLAGS"
8273 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8279 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8280 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8281 $as_echo_n "(cached) " >&6
8283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h. */
8287 if ac_fn_c_try_compile "$LINENO"; then :
8288 xorg_cv_cc_flag_unused_command_line_argument=yes
8290 xorg_cv_cc_flag_unused_command_line_argument=no
8292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8295 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8297 CFLAGS="$xorg_testset_save_CFLAGS"
8302 if test $found = "no" ; then
8303 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8307 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8311 CFLAGS="$CFLAGS -Werror=address"
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
8314 $as_echo_n "checking if $CC supports-Werror=address... " >&6; }
8315 cacheid=xorg_cv_cc_flag__Werror_address
8316 if eval \${$cacheid+:} false; then :
8317 $as_echo_n "(cached) " >&6
8319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h. */
8330 if ac_fn_c_try_link "$LINENO"; then :
8335 rm -f core conftest.err conftest.$ac_objext \
8336 conftest$ac_exeext conftest.$ac_ext
8340 CFLAGS="$xorg_testset_save_CFLAGS"
8342 eval supported=\$$cacheid
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8344 $as_echo "$supported" >&6; }
8345 if test "$supported" = "yes" ; then
8346 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8365 xorg_testset_save_CFLAGS="$CFLAGS"
8367 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8370 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8371 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8372 $as_echo_n "(cached) " >&6
8374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375 /* end confdefs.h. */
8378 if ac_fn_c_try_compile "$LINENO"; then :
8379 xorg_cv_cc_flag_unknown_warning_option=yes
8381 xorg_cv_cc_flag_unknown_warning_option=no
8383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8386 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8387 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8388 CFLAGS="$xorg_testset_save_CFLAGS"
8391 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8397 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8398 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8399 $as_echo_n "(cached) " >&6
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8405 if ac_fn_c_try_compile "$LINENO"; then :
8406 xorg_cv_cc_flag_unused_command_line_argument=yes
8408 xorg_cv_cc_flag_unused_command_line_argument=no
8410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8413 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8414 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8415 CFLAGS="$xorg_testset_save_CFLAGS"
8420 if test $found = "no" ; then
8421 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8425 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8429 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8432 $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8433 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8434 if eval \${$cacheid+:} false; then :
8435 $as_echo_n "(cached) " >&6
8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438 /* end confdefs.h. */
8448 if ac_fn_c_try_link "$LINENO"; then :
8453 rm -f core conftest.err conftest.$ac_objext \
8454 conftest$ac_exeext conftest.$ac_ext
8458 CFLAGS="$xorg_testset_save_CFLAGS"
8460 eval supported=\$$cacheid
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8462 $as_echo "$supported" >&6; }
8463 if test "$supported" = "yes" ; then
8464 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8469 if test $found = "no" ; then
8470 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8474 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8478 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8481 $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8482 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8483 if eval \${$cacheid+:} false; then :
8484 $as_echo_n "(cached) " >&6
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8497 if ac_fn_c_try_link "$LINENO"; then :
8502 rm -f core conftest.err conftest.$ac_objext \
8503 conftest$ac_exeext conftest.$ac_ext
8507 CFLAGS="$xorg_testset_save_CFLAGS"
8509 eval supported=\$$cacheid
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8511 $as_echo "$supported" >&6; }
8512 if test "$supported" = "yes" ; then
8513 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8532 xorg_testset_save_CFLAGS="$CFLAGS"
8534 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8537 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8538 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8539 $as_echo_n "(cached) " >&6
8541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542 /* end confdefs.h. */
8545 if ac_fn_c_try_compile "$LINENO"; then :
8546 xorg_cv_cc_flag_unknown_warning_option=yes
8548 xorg_cv_cc_flag_unknown_warning_option=no
8550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8553 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8555 CFLAGS="$xorg_testset_save_CFLAGS"
8558 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8564 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8565 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8566 $as_echo_n "(cached) " >&6
8568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8569 /* end confdefs.h. */
8572 if ac_fn_c_try_compile "$LINENO"; then :
8573 xorg_cv_cc_flag_unused_command_line_argument=yes
8575 xorg_cv_cc_flag_unused_command_line_argument=no
8577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8580 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8581 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8582 CFLAGS="$xorg_testset_save_CFLAGS"
8587 if test $found = "no" ; then
8588 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8592 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8596 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8599 $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8600 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8601 if eval \${$cacheid+:} false; then :
8602 $as_echo_n "(cached) " >&6
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8615 if ac_fn_c_try_link "$LINENO"; then :
8620 rm -f core conftest.err conftest.$ac_objext \
8621 conftest$ac_exeext conftest.$ac_ext
8625 CFLAGS="$xorg_testset_save_CFLAGS"
8627 eval supported=\$$cacheid
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8629 $as_echo "$supported" >&6; }
8630 if test "$supported" = "yes" ; then
8631 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8636 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8638 { $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
8639 $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;}
8653 xorg_testset_save_CFLAGS="$CFLAGS"
8655 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8658 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8659 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8660 $as_echo_n "(cached) " >&6
8662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8663 /* end confdefs.h. */
8666 if ac_fn_c_try_compile "$LINENO"; then :
8667 xorg_cv_cc_flag_unknown_warning_option=yes
8669 xorg_cv_cc_flag_unknown_warning_option=no
8671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8674 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8675 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8676 CFLAGS="$xorg_testset_save_CFLAGS"
8679 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8685 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8686 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8687 $as_echo_n "(cached) " >&6
8689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690 /* end confdefs.h. */
8693 if ac_fn_c_try_compile "$LINENO"; then :
8694 xorg_cv_cc_flag_unused_command_line_argument=yes
8696 xorg_cv_cc_flag_unused_command_line_argument=no
8698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8701 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8703 CFLAGS="$xorg_testset_save_CFLAGS"
8708 if test $found = "no" ; then
8709 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8713 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8717 CFLAGS="$CFLAGS -Wimplicit"
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8720 $as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8721 cacheid=xorg_cv_cc_flag__Wimplicit
8722 if eval \${$cacheid+:} false; then :
8723 $as_echo_n "(cached) " >&6
8725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726 /* end confdefs.h. */
8736 if ac_fn_c_try_link "$LINENO"; then :
8741 rm -f core conftest.err conftest.$ac_objext \
8742 conftest$ac_exeext conftest.$ac_ext
8746 CFLAGS="$xorg_testset_save_CFLAGS"
8748 eval supported=\$$cacheid
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8750 $as_echo "$supported" >&6; }
8751 if test "$supported" = "yes" ; then
8752 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8771 xorg_testset_save_CFLAGS="$CFLAGS"
8773 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8776 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8777 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8778 $as_echo_n "(cached) " >&6
8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781 /* end confdefs.h. */
8784 if ac_fn_c_try_compile "$LINENO"; then :
8785 xorg_cv_cc_flag_unknown_warning_option=yes
8787 xorg_cv_cc_flag_unknown_warning_option=no
8789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8792 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8794 CFLAGS="$xorg_testset_save_CFLAGS"
8797 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8803 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8804 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8805 $as_echo_n "(cached) " >&6
8807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8808 /* end confdefs.h. */
8811 if ac_fn_c_try_compile "$LINENO"; then :
8812 xorg_cv_cc_flag_unused_command_line_argument=yes
8814 xorg_cv_cc_flag_unused_command_line_argument=no
8816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8819 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8820 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8821 CFLAGS="$xorg_testset_save_CFLAGS"
8826 if test $found = "no" ; then
8827 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8831 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8835 CFLAGS="$CFLAGS -Wnonnull"
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8838 $as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8839 cacheid=xorg_cv_cc_flag__Wnonnull
8840 if eval \${$cacheid+:} false; then :
8841 $as_echo_n "(cached) " >&6
8843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8844 /* end confdefs.h. */
8854 if ac_fn_c_try_link "$LINENO"; then :
8859 rm -f core conftest.err conftest.$ac_objext \
8860 conftest$ac_exeext conftest.$ac_ext
8864 CFLAGS="$xorg_testset_save_CFLAGS"
8866 eval supported=\$$cacheid
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8868 $as_echo "$supported" >&6; }
8869 if test "$supported" = "yes" ; then
8870 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8889 xorg_testset_save_CFLAGS="$CFLAGS"
8891 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8894 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8895 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8896 $as_echo_n "(cached) " >&6
8898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8899 /* end confdefs.h. */
8902 if ac_fn_c_try_compile "$LINENO"; then :
8903 xorg_cv_cc_flag_unknown_warning_option=yes
8905 xorg_cv_cc_flag_unknown_warning_option=no
8907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8910 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8912 CFLAGS="$xorg_testset_save_CFLAGS"
8915 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8921 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8922 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8923 $as_echo_n "(cached) " >&6
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8929 if ac_fn_c_try_compile "$LINENO"; then :
8930 xorg_cv_cc_flag_unused_command_line_argument=yes
8932 xorg_cv_cc_flag_unused_command_line_argument=no
8934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8937 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8939 CFLAGS="$xorg_testset_save_CFLAGS"
8944 if test $found = "no" ; then
8945 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8949 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8953 CFLAGS="$CFLAGS -Winit-self"
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8956 $as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8957 cacheid=xorg_cv_cc_flag__Winit_self
8958 if eval \${$cacheid+:} false; then :
8959 $as_echo_n "(cached) " >&6
8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8962 /* end confdefs.h. */
8972 if ac_fn_c_try_link "$LINENO"; then :
8977 rm -f core conftest.err conftest.$ac_objext \
8978 conftest$ac_exeext conftest.$ac_ext
8982 CFLAGS="$xorg_testset_save_CFLAGS"
8984 eval supported=\$$cacheid
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8986 $as_echo "$supported" >&6; }
8987 if test "$supported" = "yes" ; then
8988 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9007 xorg_testset_save_CFLAGS="$CFLAGS"
9009 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9012 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9013 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9014 $as_echo_n "(cached) " >&6
9016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017 /* end confdefs.h. */
9020 if ac_fn_c_try_compile "$LINENO"; then :
9021 xorg_cv_cc_flag_unknown_warning_option=yes
9023 xorg_cv_cc_flag_unknown_warning_option=no
9025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9028 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9030 CFLAGS="$xorg_testset_save_CFLAGS"
9033 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9039 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9040 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9041 $as_echo_n "(cached) " >&6
9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h. */
9047 if ac_fn_c_try_compile "$LINENO"; then :
9048 xorg_cv_cc_flag_unused_command_line_argument=yes
9050 xorg_cv_cc_flag_unused_command_line_argument=no
9052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9055 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9057 CFLAGS="$xorg_testset_save_CFLAGS"
9062 if test $found = "no" ; then
9063 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9067 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9071 CFLAGS="$CFLAGS -Wmain"
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
9074 $as_echo_n "checking if $CC supports-Wmain... " >&6; }
9075 cacheid=xorg_cv_cc_flag__Wmain
9076 if eval \${$cacheid+:} false; then :
9077 $as_echo_n "(cached) " >&6
9079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9080 /* end confdefs.h. */
9090 if ac_fn_c_try_link "$LINENO"; then :
9095 rm -f core conftest.err conftest.$ac_objext \
9096 conftest$ac_exeext conftest.$ac_ext
9100 CFLAGS="$xorg_testset_save_CFLAGS"
9102 eval supported=\$$cacheid
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9104 $as_echo "$supported" >&6; }
9105 if test "$supported" = "yes" ; then
9106 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9125 xorg_testset_save_CFLAGS="$CFLAGS"
9127 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9130 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9131 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9132 $as_echo_n "(cached) " >&6
9134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h. */
9138 if ac_fn_c_try_compile "$LINENO"; then :
9139 xorg_cv_cc_flag_unknown_warning_option=yes
9141 xorg_cv_cc_flag_unknown_warning_option=no
9143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9146 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9148 CFLAGS="$xorg_testset_save_CFLAGS"
9151 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9157 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9158 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9159 $as_echo_n "(cached) " >&6
9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h. */
9165 if ac_fn_c_try_compile "$LINENO"; then :
9166 xorg_cv_cc_flag_unused_command_line_argument=yes
9168 xorg_cv_cc_flag_unused_command_line_argument=no
9170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9173 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9175 CFLAGS="$xorg_testset_save_CFLAGS"
9180 if test $found = "no" ; then
9181 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9185 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9189 CFLAGS="$CFLAGS -Wmissing-braces"
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
9192 $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
9193 cacheid=xorg_cv_cc_flag__Wmissing_braces
9194 if eval \${$cacheid+:} false; then :
9195 $as_echo_n "(cached) " >&6
9197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9198 /* end confdefs.h. */
9208 if ac_fn_c_try_link "$LINENO"; then :
9213 rm -f core conftest.err conftest.$ac_objext \
9214 conftest$ac_exeext conftest.$ac_ext
9218 CFLAGS="$xorg_testset_save_CFLAGS"
9220 eval supported=\$$cacheid
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9222 $as_echo "$supported" >&6; }
9223 if test "$supported" = "yes" ; then
9224 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9243 xorg_testset_save_CFLAGS="$CFLAGS"
9245 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9248 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9249 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9250 $as_echo_n "(cached) " >&6
9252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253 /* end confdefs.h. */
9256 if ac_fn_c_try_compile "$LINENO"; then :
9257 xorg_cv_cc_flag_unknown_warning_option=yes
9259 xorg_cv_cc_flag_unknown_warning_option=no
9261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9264 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9266 CFLAGS="$xorg_testset_save_CFLAGS"
9269 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9275 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9276 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9277 $as_echo_n "(cached) " >&6
9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280 /* end confdefs.h. */
9283 if ac_fn_c_try_compile "$LINENO"; then :
9284 xorg_cv_cc_flag_unused_command_line_argument=yes
9286 xorg_cv_cc_flag_unused_command_line_argument=no
9288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9291 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9293 CFLAGS="$xorg_testset_save_CFLAGS"
9298 if test $found = "no" ; then
9299 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9303 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9307 CFLAGS="$CFLAGS -Wsequence-point"
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
9310 $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
9311 cacheid=xorg_cv_cc_flag__Wsequence_point
9312 if eval \${$cacheid+:} false; then :
9313 $as_echo_n "(cached) " >&6
9315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316 /* end confdefs.h. */
9326 if ac_fn_c_try_link "$LINENO"; then :
9331 rm -f core conftest.err conftest.$ac_objext \
9332 conftest$ac_exeext conftest.$ac_ext
9336 CFLAGS="$xorg_testset_save_CFLAGS"
9338 eval supported=\$$cacheid
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9340 $as_echo "$supported" >&6; }
9341 if test "$supported" = "yes" ; then
9342 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9361 xorg_testset_save_CFLAGS="$CFLAGS"
9363 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9366 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9367 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9368 $as_echo_n "(cached) " >&6
9370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9371 /* end confdefs.h. */
9374 if ac_fn_c_try_compile "$LINENO"; then :
9375 xorg_cv_cc_flag_unknown_warning_option=yes
9377 xorg_cv_cc_flag_unknown_warning_option=no
9379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9382 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9383 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9384 CFLAGS="$xorg_testset_save_CFLAGS"
9387 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9393 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9394 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9395 $as_echo_n "(cached) " >&6
9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9401 if ac_fn_c_try_compile "$LINENO"; then :
9402 xorg_cv_cc_flag_unused_command_line_argument=yes
9404 xorg_cv_cc_flag_unused_command_line_argument=no
9406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9409 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9411 CFLAGS="$xorg_testset_save_CFLAGS"
9416 if test $found = "no" ; then
9417 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9421 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9425 CFLAGS="$CFLAGS -Wreturn-type"
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9428 $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9429 cacheid=xorg_cv_cc_flag__Wreturn_type
9430 if eval \${$cacheid+:} false; then :
9431 $as_echo_n "(cached) " >&6
9433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434 /* end confdefs.h. */
9444 if ac_fn_c_try_link "$LINENO"; then :
9449 rm -f core conftest.err conftest.$ac_objext \
9450 conftest$ac_exeext conftest.$ac_ext
9454 CFLAGS="$xorg_testset_save_CFLAGS"
9456 eval supported=\$$cacheid
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9458 $as_echo "$supported" >&6; }
9459 if test "$supported" = "yes" ; then
9460 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9479 xorg_testset_save_CFLAGS="$CFLAGS"
9481 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9484 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9485 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9486 $as_echo_n "(cached) " >&6
9488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489 /* end confdefs.h. */
9492 if ac_fn_c_try_compile "$LINENO"; then :
9493 xorg_cv_cc_flag_unknown_warning_option=yes
9495 xorg_cv_cc_flag_unknown_warning_option=no
9497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9500 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9502 CFLAGS="$xorg_testset_save_CFLAGS"
9505 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9511 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9512 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9513 $as_echo_n "(cached) " >&6
9515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516 /* end confdefs.h. */
9519 if ac_fn_c_try_compile "$LINENO"; then :
9520 xorg_cv_cc_flag_unused_command_line_argument=yes
9522 xorg_cv_cc_flag_unused_command_line_argument=no
9524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9527 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9529 CFLAGS="$xorg_testset_save_CFLAGS"
9534 if test $found = "no" ; then
9535 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9539 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9543 CFLAGS="$CFLAGS -Wtrigraphs"
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9546 $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9547 cacheid=xorg_cv_cc_flag__Wtrigraphs
9548 if eval \${$cacheid+:} false; then :
9549 $as_echo_n "(cached) " >&6
9551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9552 /* end confdefs.h. */
9562 if ac_fn_c_try_link "$LINENO"; then :
9567 rm -f core conftest.err conftest.$ac_objext \
9568 conftest$ac_exeext conftest.$ac_ext
9572 CFLAGS="$xorg_testset_save_CFLAGS"
9574 eval supported=\$$cacheid
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9576 $as_echo "$supported" >&6; }
9577 if test "$supported" = "yes" ; then
9578 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9597 xorg_testset_save_CFLAGS="$CFLAGS"
9599 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9602 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9603 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9604 $as_echo_n "(cached) " >&6
9606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607 /* end confdefs.h. */
9610 if ac_fn_c_try_compile "$LINENO"; then :
9611 xorg_cv_cc_flag_unknown_warning_option=yes
9613 xorg_cv_cc_flag_unknown_warning_option=no
9615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9618 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9619 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9620 CFLAGS="$xorg_testset_save_CFLAGS"
9623 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9629 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9630 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9631 $as_echo_n "(cached) " >&6
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h. */
9637 if ac_fn_c_try_compile "$LINENO"; then :
9638 xorg_cv_cc_flag_unused_command_line_argument=yes
9640 xorg_cv_cc_flag_unused_command_line_argument=no
9642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9645 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9647 CFLAGS="$xorg_testset_save_CFLAGS"
9652 if test $found = "no" ; then
9653 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9657 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9661 CFLAGS="$CFLAGS -Warray-bounds"
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9664 $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9665 cacheid=xorg_cv_cc_flag__Warray_bounds
9666 if eval \${$cacheid+:} false; then :
9667 $as_echo_n "(cached) " >&6
9669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9680 if ac_fn_c_try_link "$LINENO"; then :
9685 rm -f core conftest.err conftest.$ac_objext \
9686 conftest$ac_exeext conftest.$ac_ext
9690 CFLAGS="$xorg_testset_save_CFLAGS"
9692 eval supported=\$$cacheid
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9694 $as_echo "$supported" >&6; }
9695 if test "$supported" = "yes" ; then
9696 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9715 xorg_testset_save_CFLAGS="$CFLAGS"
9717 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9720 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9721 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9722 $as_echo_n "(cached) " >&6
9724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9725 /* end confdefs.h. */
9728 if ac_fn_c_try_compile "$LINENO"; then :
9729 xorg_cv_cc_flag_unknown_warning_option=yes
9731 xorg_cv_cc_flag_unknown_warning_option=no
9733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9736 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9737 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9738 CFLAGS="$xorg_testset_save_CFLAGS"
9741 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9747 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9748 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9749 $as_echo_n "(cached) " >&6
9751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9752 /* end confdefs.h. */
9755 if ac_fn_c_try_compile "$LINENO"; then :
9756 xorg_cv_cc_flag_unused_command_line_argument=yes
9758 xorg_cv_cc_flag_unused_command_line_argument=no
9760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9763 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9765 CFLAGS="$xorg_testset_save_CFLAGS"
9770 if test $found = "no" ; then
9771 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9775 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9779 CFLAGS="$CFLAGS -Wwrite-strings"
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9782 $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9783 cacheid=xorg_cv_cc_flag__Wwrite_strings
9784 if eval \${$cacheid+:} false; then :
9785 $as_echo_n "(cached) " >&6
9787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9788 /* end confdefs.h. */
9798 if ac_fn_c_try_link "$LINENO"; then :
9803 rm -f core conftest.err conftest.$ac_objext \
9804 conftest$ac_exeext conftest.$ac_ext
9808 CFLAGS="$xorg_testset_save_CFLAGS"
9810 eval supported=\$$cacheid
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9812 $as_echo "$supported" >&6; }
9813 if test "$supported" = "yes" ; then
9814 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9833 xorg_testset_save_CFLAGS="$CFLAGS"
9835 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9838 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9839 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9840 $as_echo_n "(cached) " >&6
9842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9843 /* end confdefs.h. */
9846 if ac_fn_c_try_compile "$LINENO"; then :
9847 xorg_cv_cc_flag_unknown_warning_option=yes
9849 xorg_cv_cc_flag_unknown_warning_option=no
9851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9854 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9855 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9856 CFLAGS="$xorg_testset_save_CFLAGS"
9859 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9865 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9866 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9867 $as_echo_n "(cached) " >&6
9869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9873 if ac_fn_c_try_compile "$LINENO"; then :
9874 xorg_cv_cc_flag_unused_command_line_argument=yes
9876 xorg_cv_cc_flag_unused_command_line_argument=no
9878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9881 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9882 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9883 CFLAGS="$xorg_testset_save_CFLAGS"
9888 if test $found = "no" ; then
9889 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9893 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9897 CFLAGS="$CFLAGS -Waddress"
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9900 $as_echo_n "checking if $CC supports-Waddress... " >&6; }
9901 cacheid=xorg_cv_cc_flag__Waddress
9902 if eval \${$cacheid+:} false; then :
9903 $as_echo_n "(cached) " >&6
9905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9906 /* end confdefs.h. */
9916 if ac_fn_c_try_link "$LINENO"; then :
9921 rm -f core conftest.err conftest.$ac_objext \
9922 conftest$ac_exeext conftest.$ac_ext
9926 CFLAGS="$xorg_testset_save_CFLAGS"
9928 eval supported=\$$cacheid
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9930 $as_echo "$supported" >&6; }
9931 if test "$supported" = "yes" ; then
9932 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9951 xorg_testset_save_CFLAGS="$CFLAGS"
9953 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9956 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9957 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9958 $as_echo_n "(cached) " >&6
9960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9961 /* end confdefs.h. */
9964 if ac_fn_c_try_compile "$LINENO"; then :
9965 xorg_cv_cc_flag_unknown_warning_option=yes
9967 xorg_cv_cc_flag_unknown_warning_option=no
9969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9972 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9973 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9974 CFLAGS="$xorg_testset_save_CFLAGS"
9977 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9983 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9984 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9985 $as_echo_n "(cached) " >&6
9987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9988 /* end confdefs.h. */
9991 if ac_fn_c_try_compile "$LINENO"; then :
9992 xorg_cv_cc_flag_unused_command_line_argument=yes
9994 xorg_cv_cc_flag_unused_command_line_argument=no
9996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9999 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10000 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10001 CFLAGS="$xorg_testset_save_CFLAGS"
10006 if test $found = "no" ; then
10007 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10011 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10015 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
10018 $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
10019 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10020 if eval \${$cacheid+:} false; then :
10021 $as_echo_n "(cached) " >&6
10023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h. */
10034 if ac_fn_c_try_link "$LINENO"; then :
10039 rm -f core conftest.err conftest.$ac_objext \
10040 conftest$ac_exeext conftest.$ac_ext
10044 CFLAGS="$xorg_testset_save_CFLAGS"
10046 eval supported=\$$cacheid
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10048 $as_echo "$supported" >&6; }
10049 if test "$supported" = "yes" ; then
10050 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10069 xorg_testset_save_CFLAGS="$CFLAGS"
10071 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10074 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10075 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10076 $as_echo_n "(cached) " >&6
10078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079 /* end confdefs.h. */
10082 if ac_fn_c_try_compile "$LINENO"; then :
10083 xorg_cv_cc_flag_unknown_warning_option=yes
10085 xorg_cv_cc_flag_unknown_warning_option=no
10087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10090 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10092 CFLAGS="$xorg_testset_save_CFLAGS"
10095 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10101 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10102 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10103 $as_echo_n "(cached) " >&6
10105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10106 /* end confdefs.h. */
10109 if ac_fn_c_try_compile "$LINENO"; then :
10110 xorg_cv_cc_flag_unused_command_line_argument=yes
10112 xorg_cv_cc_flag_unused_command_line_argument=no
10114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10117 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10118 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10119 CFLAGS="$xorg_testset_save_CFLAGS"
10124 if test $found = "no" ; then
10125 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10129 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10133 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
10136 $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
10137 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10138 if eval \${$cacheid+:} false; then :
10139 $as_echo_n "(cached) " >&6
10141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10152 if ac_fn_c_try_link "$LINENO"; then :
10157 rm -f core conftest.err conftest.$ac_objext \
10158 conftest$ac_exeext conftest.$ac_ext
10162 CFLAGS="$xorg_testset_save_CFLAGS"
10164 eval supported=\$$cacheid
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10166 $as_echo "$supported" >&6; }
10167 if test "$supported" = "yes" ; then
10168 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10182 CWARNFLAGS="$BASE_CFLAGS"
10183 if test "x$GCC" = xyes ; then
10184 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10194 # Check whether --enable-strict-compilation was given.
10195 if test "${enable_strict_compilation+set}" = set; then :
10196 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10220 xorg_testset_save_CFLAGS="$CFLAGS"
10222 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10225 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10226 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10227 $as_echo_n "(cached) " >&6
10229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10230 /* end confdefs.h. */
10233 if ac_fn_c_try_compile "$LINENO"; then :
10234 xorg_cv_cc_flag_unknown_warning_option=yes
10236 xorg_cv_cc_flag_unknown_warning_option=no
10238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10241 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10243 CFLAGS="$xorg_testset_save_CFLAGS"
10246 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10252 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10253 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10254 $as_echo_n "(cached) " >&6
10256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257 /* end confdefs.h. */
10260 if ac_fn_c_try_compile "$LINENO"; then :
10261 xorg_cv_cc_flag_unused_command_line_argument=yes
10263 xorg_cv_cc_flag_unused_command_line_argument=no
10265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10268 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10269 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10270 CFLAGS="$xorg_testset_save_CFLAGS"
10275 if test $found = "no" ; then
10276 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10280 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10284 CFLAGS="$CFLAGS -pedantic"
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
10287 $as_echo_n "checking if $CC supports-pedantic... " >&6; }
10288 cacheid=xorg_cv_cc_flag__pedantic
10289 if eval \${$cacheid+:} false; then :
10290 $as_echo_n "(cached) " >&6
10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10293 /* end confdefs.h. */
10303 if ac_fn_c_try_link "$LINENO"; then :
10308 rm -f core conftest.err conftest.$ac_objext \
10309 conftest$ac_exeext conftest.$ac_ext
10313 CFLAGS="$xorg_testset_save_CFLAGS"
10315 eval supported=\$$cacheid
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10317 $as_echo "$supported" >&6; }
10318 if test "$supported" = "yes" ; then
10319 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10338 xorg_testset_save_CFLAGS="$CFLAGS"
10340 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10343 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10344 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10345 $as_echo_n "(cached) " >&6
10347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348 /* end confdefs.h. */
10351 if ac_fn_c_try_compile "$LINENO"; then :
10352 xorg_cv_cc_flag_unknown_warning_option=yes
10354 xorg_cv_cc_flag_unknown_warning_option=no
10356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10359 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10360 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10361 CFLAGS="$xorg_testset_save_CFLAGS"
10364 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10370 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10371 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10372 $as_echo_n "(cached) " >&6
10374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10375 /* end confdefs.h. */
10378 if ac_fn_c_try_compile "$LINENO"; then :
10379 xorg_cv_cc_flag_unused_command_line_argument=yes
10381 xorg_cv_cc_flag_unused_command_line_argument=no
10383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10386 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10388 CFLAGS="$xorg_testset_save_CFLAGS"
10393 if test $found = "no" ; then
10394 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10398 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10402 CFLAGS="$CFLAGS -Werror"
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10405 $as_echo_n "checking if $CC supports-Werror... " >&6; }
10406 cacheid=xorg_cv_cc_flag__Werror
10407 if eval \${$cacheid+:} false; then :
10408 $as_echo_n "(cached) " >&6
10410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10411 /* end confdefs.h. */
10421 if ac_fn_c_try_link "$LINENO"; then :
10426 rm -f core conftest.err conftest.$ac_objext \
10427 conftest$ac_exeext conftest.$ac_ext
10431 CFLAGS="$xorg_testset_save_CFLAGS"
10433 eval supported=\$$cacheid
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10435 $as_echo "$supported" >&6; }
10436 if test "$supported" = "yes" ; then
10437 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10442 if test $found = "no" ; then
10443 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10447 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10451 CFLAGS="$CFLAGS -errwarn"
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10454 $as_echo_n "checking if $CC supports-errwarn... " >&6; }
10455 cacheid=xorg_cv_cc_flag__errwarn
10456 if eval \${$cacheid+:} false; then :
10457 $as_echo_n "(cached) " >&6
10459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10460 /* end confdefs.h. */
10470 if ac_fn_c_try_link "$LINENO"; then :
10475 rm -f core conftest.err conftest.$ac_objext \
10476 conftest$ac_exeext conftest.$ac_ext
10480 CFLAGS="$xorg_testset_save_CFLAGS"
10482 eval supported=\$$cacheid
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10484 $as_echo "$supported" >&6; }
10485 if test "$supported" = "yes" ; then
10486 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10493 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10494 # activate it with -Werror, so we add it here explicitly.
10508 xorg_testset_save_CFLAGS="$CFLAGS"
10510 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10513 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10514 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10515 $as_echo_n "(cached) " >&6
10517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518 /* end confdefs.h. */
10521 if ac_fn_c_try_compile "$LINENO"; then :
10522 xorg_cv_cc_flag_unknown_warning_option=yes
10524 xorg_cv_cc_flag_unknown_warning_option=no
10526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10529 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10530 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10531 CFLAGS="$xorg_testset_save_CFLAGS"
10534 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10540 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10541 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10542 $as_echo_n "(cached) " >&6
10544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h. */
10548 if ac_fn_c_try_compile "$LINENO"; then :
10549 xorg_cv_cc_flag_unused_command_line_argument=yes
10551 xorg_cv_cc_flag_unused_command_line_argument=no
10553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10556 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10557 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10558 CFLAGS="$xorg_testset_save_CFLAGS"
10563 if test $found = "no" ; then
10564 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10568 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10572 CFLAGS="$CFLAGS -Werror=attributes"
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10575 $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10576 cacheid=xorg_cv_cc_flag__Werror_attributes
10577 if eval \${$cacheid+:} false; then :
10578 $as_echo_n "(cached) " >&6
10580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10581 /* end confdefs.h. */
10591 if ac_fn_c_try_link "$LINENO"; then :
10596 rm -f core conftest.err conftest.$ac_objext \
10597 conftest$ac_exeext conftest.$ac_ext
10601 CFLAGS="$xorg_testset_save_CFLAGS"
10603 eval supported=\$$cacheid
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10605 $as_echo "$supported" >&6; }
10606 if test "$supported" = "yes" ; then
10607 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10614 if test "x$STRICT_COMPILE" = "xyes"; then
10615 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10616 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10624 cat >>confdefs.h <<_ACEOF
10625 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10628 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10629 if test "x$PVM" = "x"; then
10633 cat >>confdefs.h <<_ACEOF
10634 #define PACKAGE_VERSION_MINOR $PVM
10637 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10638 if test "x$PVP" = "x"; then
10642 cat >>confdefs.h <<_ACEOF
10643 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10648 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10649 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10650 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10651 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10656 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10657 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10658 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10659 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10660 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10667 if test x$APP_MAN_SUFFIX = x ; then
10670 if test x$APP_MAN_DIR = x ; then
10671 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10674 if test x$LIB_MAN_SUFFIX = x ; then
10677 if test x$LIB_MAN_DIR = x ; then
10678 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10681 if test x$FILE_MAN_SUFFIX = x ; then
10683 solaris*) FILE_MAN_SUFFIX=4 ;;
10684 *) FILE_MAN_SUFFIX=5 ;;
10687 if test x$FILE_MAN_DIR = x ; then
10688 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10691 if test x$MISC_MAN_SUFFIX = x ; then
10693 solaris*) MISC_MAN_SUFFIX=5 ;;
10694 *) MISC_MAN_SUFFIX=7 ;;
10697 if test x$MISC_MAN_DIR = x ; then
10698 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10701 if test x$DRIVER_MAN_SUFFIX = x ; then
10703 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10704 *) DRIVER_MAN_SUFFIX=4 ;;
10707 if test x$DRIVER_MAN_DIR = x ; then
10708 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10711 if test x$ADMIN_MAN_SUFFIX = x ; then
10713 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10714 *) ADMIN_MAN_SUFFIX=8 ;;
10717 if test x$ADMIN_MAN_DIR = x ; then
10718 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10735 XORG_MAN_PAGE="X Version 11"
10738 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10739 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10740 -e 's|__xservername__|Xorg|g' \
10741 -e 's|__xconfigfile__|xorg.conf|g' \
10742 -e 's|__projectroot__|\$(prefix)|g' \
10743 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10744 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10745 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10746 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10747 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10748 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10749 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10753 # Check whether --enable-silent-rules was given.
10754 if test "${enable_silent_rules+set}" = set; then :
10755 enableval=$enable_silent_rules;
10758 case $enable_silent_rules in
10759 yes) AM_DEFAULT_VERBOSITY=0;;
10760 no) AM_DEFAULT_VERBOSITY=1;;
10761 *) AM_DEFAULT_VERBOSITY=0;;
10763 am_make=${MAKE-make}
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10765 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10766 if ${am_cv_make_support_nested_variables+:} false; then :
10767 $as_echo_n "(cached) " >&6
10769 if $as_echo 'TRUE=$(BAR$(V))
10775 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10776 am_cv_make_support_nested_variables=yes
10778 am_cv_make_support_nested_variables=no
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10782 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10783 if test $am_cv_make_support_nested_variables = yes; then
10785 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10787 AM_V=$AM_DEFAULT_VERBOSITY
10788 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10794 # Require X.Org server macros (i.e. XORG_DRIVER_CHECK_EXT) to check for required modules
10797 # Initialize libtool
10798 # Check whether --enable-static was given.
10799 if test "${enable_static+set}" = set; then :
10800 enableval=$enable_static; p=${PACKAGE-default}
10802 yes) enable_static=yes ;;
10803 no) enable_static=no ;;
10806 # Look at the argument we got. We use all the common list separators.
10807 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10808 for pkg in $enableval; do
10810 if test "X$pkg" = "X$p"; then
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10832 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10837 macro_version='2.4.2'
10838 macro_revision='1.3337'
10852 ltmain="$ac_aux_dir/ltmain.sh"
10854 # Backslashify metacharacters that are still active within
10855 # double-quoted strings.
10856 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10858 # Same as above, but do not quote variable references.
10859 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10861 # Sed substitution to delay expansion of an escaped shell variable in a
10862 # double_quote_subst'ed string.
10863 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10865 # Sed substitution to delay expansion of an escaped single quote.
10866 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10868 # Sed substitution to avoid accidental globbing in evaled expressions
10869 no_glob_subst='s/\*/\\\*/g'
10871 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10872 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10873 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10876 $as_echo_n "checking how to print strings... " >&6; }
10877 # Test print first, because it will be a builtin if present.
10878 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10879 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10881 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10884 # Use this function as a fallback that always works.
10885 func_fallback_echo ()
10887 eval 'cat <<_LTECHO_EOF
10891 ECHO='func_fallback_echo'
10894 # func_echo_all arg...
10895 # Invoke $ECHO with all args, space-separated.
10902 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10903 $as_echo "printf" >&6; } ;;
10904 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10905 $as_echo "print -r" >&6; } ;;
10906 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10907 $as_echo "cat" >&6; } ;;
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10924 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10925 if ${ac_cv_path_SED+:} false; then :
10926 $as_echo_n "(cached) " >&6
10928 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10929 for ac_i in 1 2 3 4 5 6 7; do
10930 ac_script="$ac_script$as_nl$ac_script"
10932 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10933 { ac_script=; unset ac_script;}
10934 if test -z "$SED"; then
10935 ac_path_SED_found=false
10936 # Loop through the user's path and test for each of PROGNAME-LIST
10937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10938 for as_dir in $PATH
10941 test -z "$as_dir" && as_dir=.
10942 for ac_prog in sed gsed; do
10943 for ac_exec_ext in '' $ac_executable_extensions; do
10944 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10945 as_fn_executable_p "$ac_path_SED" || continue
10946 # Check for GNU ac_path_SED and select it if it is found.
10947 # Check for GNU $ac_path_SED
10948 case `"$ac_path_SED" --version 2>&1` in
10950 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10953 $as_echo_n 0123456789 >"conftest.in"
10956 cat "conftest.in" "conftest.in" >"conftest.tmp"
10957 mv "conftest.tmp" "conftest.in"
10958 cp "conftest.in" "conftest.nl"
10959 $as_echo '' >> "conftest.nl"
10960 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10962 as_fn_arith $ac_count + 1 && ac_count=$as_val
10963 if test $ac_count -gt ${ac_path_SED_max-0}; then
10964 # Best one so far, save it but keep looking for a better one
10965 ac_cv_path_SED="$ac_path_SED"
10966 ac_path_SED_max=$ac_count
10968 # 10*(2^10) chars as input seems more than enough
10969 test $ac_count -gt 10 && break
10971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10974 $ac_path_SED_found && break 3
10979 if test -z "$ac_cv_path_SED"; then
10980 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10983 ac_cv_path_SED=$SED
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10988 $as_echo "$ac_cv_path_SED" >&6; }
10989 SED="$ac_cv_path_SED"
10992 test -z "$SED" && SED=sed
10993 Xsed="$SED -e 1s/^X//"
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11006 $as_echo_n "checking for fgrep... " >&6; }
11007 if ${ac_cv_path_FGREP+:} false; then :
11008 $as_echo_n "(cached) " >&6
11010 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11011 then ac_cv_path_FGREP="$GREP -F"
11013 if test -z "$FGREP"; then
11014 ac_path_FGREP_found=false
11015 # Loop through the user's path and test for each of PROGNAME-LIST
11016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11017 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11020 test -z "$as_dir" && as_dir=.
11021 for ac_prog in fgrep; do
11022 for ac_exec_ext in '' $ac_executable_extensions; do
11023 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11024 as_fn_executable_p "$ac_path_FGREP" || continue
11025 # Check for GNU ac_path_FGREP and select it if it is found.
11026 # Check for GNU $ac_path_FGREP
11027 case `"$ac_path_FGREP" --version 2>&1` in
11029 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11032 $as_echo_n 0123456789 >"conftest.in"
11035 cat "conftest.in" "conftest.in" >"conftest.tmp"
11036 mv "conftest.tmp" "conftest.in"
11037 cp "conftest.in" "conftest.nl"
11038 $as_echo 'FGREP' >> "conftest.nl"
11039 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11040 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11041 as_fn_arith $ac_count + 1 && ac_count=$as_val
11042 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11043 # Best one so far, save it but keep looking for a better one
11044 ac_cv_path_FGREP="$ac_path_FGREP"
11045 ac_path_FGREP_max=$ac_count
11047 # 10*(2^10) chars as input seems more than enough
11048 test $ac_count -gt 10 && break
11050 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11053 $ac_path_FGREP_found && break 3
11058 if test -z "$ac_cv_path_FGREP"; then
11059 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11062 ac_cv_path_FGREP=$FGREP
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11068 $as_echo "$ac_cv_path_FGREP" >&6; }
11069 FGREP="$ac_cv_path_FGREP"
11072 test -z "$GREP" && GREP=grep
11092 # Check whether --with-gnu-ld was given.
11093 if test "${with_gnu_ld+set}" = set; then :
11094 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11100 if test "$GCC" = yes; then
11101 # Check if gcc -print-prog-name=ld gives a path.
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11103 $as_echo_n "checking for ld used by $CC... " >&6; }
11106 # gcc leaves a trailing carriage return which upsets mingw
11107 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11109 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11112 # Accept absolute paths.
11114 re_direlt='/[^/][^/]*/\.\./'
11115 # Canonicalize the pathname of ld
11116 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11117 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11118 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11120 test -z "$LD" && LD="$ac_prog"
11123 # If it fails, then pretend we aren't using GCC.
11127 # If it is relative, then search for the first ld in PATH.
11128 with_gnu_ld=unknown
11131 elif test "$with_gnu_ld" = yes; then
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11133 $as_echo_n "checking for GNU ld... " >&6; }
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11136 $as_echo_n "checking for non-GNU ld... " >&6; }
11138 if ${lt_cv_path_LD+:} false; then :
11139 $as_echo_n "(cached) " >&6
11141 if test -z "$LD"; then
11142 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11143 for ac_dir in $PATH; do
11145 test -z "$ac_dir" && ac_dir=.
11146 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11147 lt_cv_path_LD="$ac_dir/$ac_prog"
11148 # Check to see if the program is GNU ld. I'd rather use --version,
11149 # but apparently some variants of GNU ld only accept -v.
11150 # Break only if it was the GNU/non-GNU ld that we prefer.
11151 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11152 *GNU* | *'with BFD'*)
11153 test "$with_gnu_ld" != no && break
11156 test "$with_gnu_ld" != yes && break
11163 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11167 LD="$lt_cv_path_LD"
11168 if test -n "$LD"; then
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11170 $as_echo "$LD" >&6; }
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11173 $as_echo "no" >&6; }
11175 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11177 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11178 if ${lt_cv_prog_gnu_ld+:} false; then :
11179 $as_echo_n "(cached) " >&6
11181 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11182 case `$LD -v 2>&1 </dev/null` in
11183 *GNU* | *'with BFD'*)
11184 lt_cv_prog_gnu_ld=yes
11187 lt_cv_prog_gnu_ld=no
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11192 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11193 with_gnu_ld=$lt_cv_prog_gnu_ld
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11204 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11205 if ${lt_cv_path_NM+:} false; then :
11206 $as_echo_n "(cached) " >&6
11208 if test -n "$NM"; then
11209 # Let the user override the test.
11210 lt_cv_path_NM="$NM"
11212 lt_nm_to_check="${ac_tool_prefix}nm"
11213 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11214 lt_nm_to_check="$lt_nm_to_check nm"
11216 for lt_tmp_nm in $lt_nm_to_check; do
11217 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11218 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11220 test -z "$ac_dir" && ac_dir=.
11221 tmp_nm="$ac_dir/$lt_tmp_nm"
11222 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11223 # Check to see if the nm accepts a BSD-compat flag.
11224 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11225 # nm: unknown option "B" ignored
11226 # Tru64's nm complains that /dev/null is an invalid object file
11227 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11228 */dev/null* | *'Invalid file or object type'*)
11229 lt_cv_path_NM="$tmp_nm -B"
11233 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11235 lt_cv_path_NM="$tmp_nm -p"
11239 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11240 continue # so that we can try to find one that supports BSD flags
11249 : ${lt_cv_path_NM=no}
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11253 $as_echo "$lt_cv_path_NM" >&6; }
11254 if test "$lt_cv_path_NM" != "no"; then
11255 NM="$lt_cv_path_NM"
11257 # Didn't find any BSD compatible name lister, look for dumpbin.
11258 if test -n "$DUMPBIN"; then :
11259 # Let the user override the test.
11261 if test -n "$ac_tool_prefix"; then
11262 for ac_prog in dumpbin "link -dump"
11264 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11265 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11267 $as_echo_n "checking for $ac_word... " >&6; }
11268 if ${ac_cv_prog_DUMPBIN+:} false; then :
11269 $as_echo_n "(cached) " >&6
11271 if test -n "$DUMPBIN"; then
11272 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275 for as_dir in $PATH
11278 test -z "$as_dir" && as_dir=.
11279 for ac_exec_ext in '' $ac_executable_extensions; do
11280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11281 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11291 DUMPBIN=$ac_cv_prog_DUMPBIN
11292 if test -n "$DUMPBIN"; then
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11294 $as_echo "$DUMPBIN" >&6; }
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11297 $as_echo "no" >&6; }
11301 test -n "$DUMPBIN" && break
11304 if test -z "$DUMPBIN"; then
11305 ac_ct_DUMPBIN=$DUMPBIN
11306 for ac_prog in dumpbin "link -dump"
11308 # Extract the first word of "$ac_prog", so it can be a program name with args.
11309 set dummy $ac_prog; ac_word=$2
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11311 $as_echo_n "checking for $ac_word... " >&6; }
11312 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11313 $as_echo_n "(cached) " >&6
11315 if test -n "$ac_ct_DUMPBIN"; then
11316 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11319 for as_dir in $PATH
11322 test -z "$as_dir" && as_dir=.
11323 for ac_exec_ext in '' $ac_executable_extensions; do
11324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11325 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11335 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11336 if test -n "$ac_ct_DUMPBIN"; then
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11338 $as_echo "$ac_ct_DUMPBIN" >&6; }
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341 $as_echo "no" >&6; }
11345 test -n "$ac_ct_DUMPBIN" && break
11348 if test "x$ac_ct_DUMPBIN" = x; then
11351 case $cross_compiling:$ac_tool_warned in
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11355 ac_tool_warned=yes ;;
11357 DUMPBIN=$ac_ct_DUMPBIN
11361 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11363 DUMPBIN="$DUMPBIN -symbols"
11371 if test "$DUMPBIN" != ":"; then
11375 test -z "$NM" && NM=nm
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11383 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11384 if ${lt_cv_nm_interface+:} false; then :
11385 $as_echo_n "(cached) " >&6
11387 lt_cv_nm_interface="BSD nm"
11388 echo "int some_variable = 0;" > conftest.$ac_ext
11389 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11390 (eval "$ac_compile" 2>conftest.err)
11391 cat conftest.err >&5
11392 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11393 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11394 cat conftest.err >&5
11395 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11396 cat conftest.out >&5
11397 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11398 lt_cv_nm_interface="MS dumpbin"
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11403 $as_echo "$lt_cv_nm_interface" >&6; }
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11406 $as_echo_n "checking whether ln -s works... " >&6; }
11408 if test "$LN_S" = "ln -s"; then
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11410 $as_echo "yes" >&6; }
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11413 $as_echo "no, using $LN_S" >&6; }
11416 # find the maximum length of command line arguments
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11418 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11419 if ${lt_cv_sys_max_cmd_len+:} false; then :
11420 $as_echo_n "(cached) " >&6
11427 # On DJGPP, this test can blow up pretty badly due to problems in libc
11428 # (any single argument exceeding 2000 bytes causes a buffer overrun
11429 # during glob expansion). Even if it were fixed, the result of this
11430 # check would be larger than it should be.
11431 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11435 # Under GNU Hurd, this test is not required because there is
11436 # no limit to the length of command line arguments.
11437 # Libtool will interpret -1 as no limit whatsoever
11438 lt_cv_sys_max_cmd_len=-1;
11441 cygwin* | mingw* | cegcc*)
11442 # On Win9x/ME, this test blows up -- it succeeds, but takes
11443 # about 5 minutes as the teststring grows exponentially.
11444 # Worse, since 9x/ME are not pre-emptively multitasking,
11445 # you end up with a "frozen" computer, even though with patience
11446 # the test eventually succeeds (with a max line length of 256k).
11447 # Instead, let's just punt: use the minimum linelength reported by
11448 # all of the supported platforms: 8192 (on NT/2K/XP).
11449 lt_cv_sys_max_cmd_len=8192;
11453 # On MiNT this can take a long time and run out of memory.
11454 lt_cv_sys_max_cmd_len=8192;
11458 # On AmigaOS with pdksh, this test takes hours, literally.
11459 # So we just punt and use a minimum line length of 8192.
11460 lt_cv_sys_max_cmd_len=8192;
11463 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11464 # This has been around since 386BSD, at least. Likely further.
11465 if test -x /sbin/sysctl; then
11466 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11467 elif test -x /usr/sbin/sysctl; then
11468 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11470 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11472 # And add a safety zone
11473 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11474 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11478 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11479 lt_cv_sys_max_cmd_len=196608
11483 # The test takes a long time on OS/2.
11484 lt_cv_sys_max_cmd_len=8192
11488 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11489 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11490 # nice to cause kernel panics so lets avoid the loop below.
11491 # First set a reasonable default.
11492 lt_cv_sys_max_cmd_len=16384
11494 if test -x /sbin/sysconfig; then
11495 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11496 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11501 lt_cv_sys_max_cmd_len=102400
11503 sysv5* | sco5v6* | sysv4.2uw2*)
11504 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11505 if test -n "$kargmax"; then
11506 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11508 lt_cv_sys_max_cmd_len=32768
11512 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11513 if test -n "$lt_cv_sys_max_cmd_len"; then
11514 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11515 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11517 # Make teststring a little bigger before we do anything with it.
11518 # a 1K string should be a reasonable start.
11519 for i in 1 2 3 4 5 6 7 8 ; do
11520 teststring=$teststring$teststring
11522 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11523 # If test is not a shell built-in, we'll probably end up computing a
11524 # maximum length that is only half of the actual maximum length, but
11526 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11527 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11528 test $i != 17 # 1/2 MB should be enough
11531 teststring=$teststring$teststring
11533 # Only check the string length outside the loop.
11534 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11536 # Add a significant safety factor because C++ compilers can tack on
11537 # massive amounts of additional arguments before passing them to the
11538 # linker. It appears as though 1/2 is a usable value.
11539 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11546 if test -n $lt_cv_sys_max_cmd_len ; then
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11548 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11551 $as_echo "none" >&6; }
11553 max_cmd_len=$lt_cv_sys_max_cmd_len
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11565 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11566 # Try some XSI features
11568 ( _lt_dummy="a/b/c"
11569 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11571 && eval 'test $(( 1 + 1 )) -eq 2 \
11572 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11575 $as_echo "$xsi_shell" >&6; }
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11579 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11581 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11583 && lt_shell_append=yes
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11585 $as_echo "$lt_shell_append" >&6; }
11588 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11598 # test EBCDIC or ASCII
11599 case `echo X|tr X '\101'` in
11600 A) # ASCII based system
11601 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11602 lt_SP2NL='tr \040 \012'
11603 lt_NL2SP='tr \015\012 \040\040'
11605 *) # EBCDIC based system
11606 lt_SP2NL='tr \100 \n'
11607 lt_NL2SP='tr \r\n \100\100'
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11620 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11621 if ${lt_cv_to_host_file_cmd+:} false; then :
11622 $as_echo_n "(cached) " >&6
11627 *-*-mingw* ) # actually msys
11628 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11631 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11633 * ) # otherwise, assume *nix
11634 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11640 *-*-mingw* ) # actually msys
11641 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11644 lt_cv_to_host_file_cmd=func_convert_file_noop
11646 * ) # otherwise, assume *nix
11647 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11651 * ) # unhandled hosts (and "normal" native builds)
11652 lt_cv_to_host_file_cmd=func_convert_file_noop
11658 to_host_file_cmd=$lt_cv_to_host_file_cmd
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11660 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11667 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11668 if ${lt_cv_to_tool_file_cmd+:} false; then :
11669 $as_echo_n "(cached) " >&6
11671 #assume ordinary cross tools, or native build.
11672 lt_cv_to_tool_file_cmd=func_convert_file_noop
11676 *-*-mingw* ) # actually msys
11677 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11685 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11687 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11694 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11695 if ${lt_cv_ld_reload_flag+:} false; then :
11696 $as_echo_n "(cached) " >&6
11698 lt_cv_ld_reload_flag='-r'
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11701 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11702 reload_flag=$lt_cv_ld_reload_flag
11703 case $reload_flag in
11705 *) reload_flag=" $reload_flag" ;;
11707 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11709 cygwin* | mingw* | pw32* | cegcc*)
11710 if test "$GCC" != yes; then
11715 if test "$GCC" = yes; then
11716 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11718 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11731 if test -n "$ac_tool_prefix"; then
11732 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11733 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11735 $as_echo_n "checking for $ac_word... " >&6; }
11736 if ${ac_cv_prog_OBJDUMP+:} false; then :
11737 $as_echo_n "(cached) " >&6
11739 if test -n "$OBJDUMP"; then
11740 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11743 for as_dir in $PATH
11746 test -z "$as_dir" && as_dir=.
11747 for ac_exec_ext in '' $ac_executable_extensions; do
11748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11749 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11759 OBJDUMP=$ac_cv_prog_OBJDUMP
11760 if test -n "$OBJDUMP"; then
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11762 $as_echo "$OBJDUMP" >&6; }
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765 $as_echo "no" >&6; }
11770 if test -z "$ac_cv_prog_OBJDUMP"; then
11771 ac_ct_OBJDUMP=$OBJDUMP
11772 # Extract the first word of "objdump", so it can be a program name with args.
11773 set dummy objdump; ac_word=$2
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11775 $as_echo_n "checking for $ac_word... " >&6; }
11776 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11777 $as_echo_n "(cached) " >&6
11779 if test -n "$ac_ct_OBJDUMP"; then
11780 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11783 for as_dir in $PATH
11786 test -z "$as_dir" && as_dir=.
11787 for ac_exec_ext in '' $ac_executable_extensions; do
11788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11789 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11799 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11800 if test -n "$ac_ct_OBJDUMP"; then
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11802 $as_echo "$ac_ct_OBJDUMP" >&6; }
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11805 $as_echo "no" >&6; }
11808 if test "x$ac_ct_OBJDUMP" = x; then
11811 case $cross_compiling:$ac_tool_warned in
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11815 ac_tool_warned=yes ;;
11817 OBJDUMP=$ac_ct_OBJDUMP
11820 OBJDUMP="$ac_cv_prog_OBJDUMP"
11823 test -z "$OBJDUMP" && OBJDUMP=objdump
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11834 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11835 if ${lt_cv_deplibs_check_method+:} false; then :
11836 $as_echo_n "(cached) " >&6
11838 lt_cv_file_magic_cmd='$MAGIC_CMD'
11839 lt_cv_file_magic_test_file=
11840 lt_cv_deplibs_check_method='unknown'
11841 # Need to set the preceding variable on all platforms that support
11842 # interlibrary dependencies.
11843 # 'none' -- dependencies not supported.
11844 # `unknown' -- same as none, but documents that we really don't know.
11845 # 'pass_all' -- all dependencies passed with no checks.
11846 # 'test_compile' -- check by making test program.
11847 # 'file_magic [[regex]]' -- check by looking for files in library path
11848 # which responds to the $file_magic_cmd with a given extended regex.
11849 # If you have `file' or equivalent on your system and you're not sure
11850 # whether `pass_all' will *always* work, you probably want this one.
11854 lt_cv_deplibs_check_method=pass_all
11858 lt_cv_deplibs_check_method=pass_all
11862 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11863 lt_cv_file_magic_cmd='/usr/bin/file -L'
11864 lt_cv_file_magic_test_file=/shlib/libc.so
11868 # func_win32_libid is a shell function defined in ltmain.sh
11869 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11870 lt_cv_file_magic_cmd='func_win32_libid'
11874 # Base MSYS/MinGW do not provide the 'file' command needed by
11875 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11876 # unless we find 'file', for example because we are cross-compiling.
11877 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11878 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11879 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11880 lt_cv_file_magic_cmd='func_win32_libid'
11882 # Keep this pattern in sync with the one in func_win32_libid.
11883 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11884 lt_cv_file_magic_cmd='$OBJDUMP -f'
11889 # use the weaker test based on 'objdump'. See mingw*.
11890 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11891 lt_cv_file_magic_cmd='$OBJDUMP -f'
11894 darwin* | rhapsody*)
11895 lt_cv_deplibs_check_method=pass_all
11898 freebsd* | dragonfly*)
11899 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11902 # Not sure whether the presence of OpenBSD here was a mistake.
11903 # Let's accept both of them until this is cleared up.
11904 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11905 lt_cv_file_magic_cmd=/usr/bin/file
11906 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11910 lt_cv_deplibs_check_method=pass_all
11915 lt_cv_deplibs_check_method=pass_all
11918 hpux10.20* | hpux11*)
11919 lt_cv_file_magic_cmd=/usr/bin/file
11922 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11923 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11926 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]'
11927 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11930 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11931 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11937 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11938 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11941 irix5* | irix6* | nonstopux*)
11943 *-32|*"-32 ") libmagic=32-bit;;
11944 *-n32|*"-n32 ") libmagic=N32;;
11945 *-64|*"-64 ") libmagic=64-bit;;
11946 *) libmagic=never-match;;
11948 lt_cv_deplibs_check_method=pass_all
11951 # This must be glibc/ELF.
11952 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11953 lt_cv_deplibs_check_method=pass_all
11956 netbsd* | netbsdelf*-gnu)
11957 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11958 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11960 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11965 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11966 lt_cv_file_magic_cmd=/usr/bin/file
11967 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11971 lt_cv_deplibs_check_method=pass_all
11975 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11976 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11978 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11982 osf3* | osf4* | osf5*)
11983 lt_cv_deplibs_check_method=pass_all
11987 lt_cv_deplibs_check_method=pass_all
11991 lt_cv_deplibs_check_method=pass_all
11994 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11995 lt_cv_deplibs_check_method=pass_all
11999 case $host_vendor in
12001 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]'
12002 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12005 lt_cv_deplibs_check_method=pass_all
12008 lt_cv_file_magic_cmd='/bin/file'
12009 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12012 lt_cv_file_magic_cmd='/bin/file'
12013 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12014 lt_cv_file_magic_test_file=/lib/libc.so
12017 lt_cv_deplibs_check_method=pass_all
12020 lt_cv_deplibs_check_method=pass_all
12026 lt_cv_deplibs_check_method=pass_all
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12032 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12036 if test "$build" = "$host"; then
12039 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12040 want_nocaseglob=yes
12042 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12048 file_magic_cmd=$lt_cv_file_magic_cmd
12049 deplibs_check_method=$lt_cv_deplibs_check_method
12050 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12073 if test -n "$ac_tool_prefix"; then
12074 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12075 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12077 $as_echo_n "checking for $ac_word... " >&6; }
12078 if ${ac_cv_prog_DLLTOOL+:} false; then :
12079 $as_echo_n "(cached) " >&6
12081 if test -n "$DLLTOOL"; then
12082 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12085 for as_dir in $PATH
12088 test -z "$as_dir" && as_dir=.
12089 for ac_exec_ext in '' $ac_executable_extensions; do
12090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12091 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12101 DLLTOOL=$ac_cv_prog_DLLTOOL
12102 if test -n "$DLLTOOL"; then
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12104 $as_echo "$DLLTOOL" >&6; }
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107 $as_echo "no" >&6; }
12112 if test -z "$ac_cv_prog_DLLTOOL"; then
12113 ac_ct_DLLTOOL=$DLLTOOL
12114 # Extract the first word of "dlltool", so it can be a program name with args.
12115 set dummy dlltool; ac_word=$2
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117 $as_echo_n "checking for $ac_word... " >&6; }
12118 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12119 $as_echo_n "(cached) " >&6
12121 if test -n "$ac_ct_DLLTOOL"; then
12122 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125 for as_dir in $PATH
12128 test -z "$as_dir" && as_dir=.
12129 for ac_exec_ext in '' $ac_executable_extensions; do
12130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12131 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12141 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12142 if test -n "$ac_ct_DLLTOOL"; then
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12144 $as_echo "$ac_ct_DLLTOOL" >&6; }
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12147 $as_echo "no" >&6; }
12150 if test "x$ac_ct_DLLTOOL" = x; then
12153 case $cross_compiling:$ac_tool_warned in
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12157 ac_tool_warned=yes ;;
12159 DLLTOOL=$ac_ct_DLLTOOL
12162 DLLTOOL="$ac_cv_prog_DLLTOOL"
12165 test -z "$DLLTOOL" && DLLTOOL=dlltool
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12177 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12178 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12179 $as_echo_n "(cached) " >&6
12181 lt_cv_sharedlib_from_linklib_cmd='unknown'
12184 cygwin* | mingw* | pw32* | cegcc*)
12185 # two different shell functions defined in ltmain.sh
12186 # decide which to use based on capabilities of $DLLTOOL
12187 case `$DLLTOOL --help 2>&1` in
12188 *--identify-strict*)
12189 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12192 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12197 # fallback: assume linklib IS sharedlib
12198 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12204 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12205 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12206 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12214 if test -n "$ac_tool_prefix"; then
12217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12218 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12220 $as_echo_n "checking for $ac_word... " >&6; }
12221 if ${ac_cv_prog_AR+:} false; then :
12222 $as_echo_n "(cached) " >&6
12224 if test -n "$AR"; then
12225 ac_cv_prog_AR="$AR" # Let the user override the test.
12227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12228 for as_dir in $PATH
12231 test -z "$as_dir" && as_dir=.
12232 for ac_exec_ext in '' $ac_executable_extensions; do
12233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12234 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12245 if test -n "$AR"; then
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12247 $as_echo "$AR" >&6; }
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12250 $as_echo "no" >&6; }
12254 test -n "$AR" && break
12257 if test -z "$AR"; then
12261 # Extract the first word of "$ac_prog", so it can be a program name with args.
12262 set dummy $ac_prog; ac_word=$2
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12264 $as_echo_n "checking for $ac_word... " >&6; }
12265 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12266 $as_echo_n "(cached) " >&6
12268 if test -n "$ac_ct_AR"; then
12269 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12272 for as_dir in $PATH
12275 test -z "$as_dir" && as_dir=.
12276 for ac_exec_ext in '' $ac_executable_extensions; do
12277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12278 ac_cv_prog_ac_ct_AR="$ac_prog"
12279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12288 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12289 if test -n "$ac_ct_AR"; then
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12291 $as_echo "$ac_ct_AR" >&6; }
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12294 $as_echo "no" >&6; }
12298 test -n "$ac_ct_AR" && break
12301 if test "x$ac_ct_AR" = x; then
12304 case $cross_compiling:$ac_tool_warned in
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12308 ac_tool_warned=yes ;;
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12328 $as_echo_n "checking for archiver @FILE support... " >&6; }
12329 if ${lt_cv_ar_at_file+:} false; then :
12330 $as_echo_n "(cached) " >&6
12332 lt_cv_ar_at_file=no
12333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12334 /* end confdefs.h. */
12344 if ac_fn_c_try_compile "$LINENO"; then :
12345 echo conftest.$ac_objext > conftest.lst
12346 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12348 (eval $lt_ar_try) 2>&5
12350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12351 test $ac_status = 0; }
12352 if test "$ac_status" -eq 0; then
12353 # Ensure the archiver fails upon bogus file names.
12354 rm -f conftest.$ac_objext libconftest.a
12355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12356 (eval $lt_ar_try) 2>&5
12358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12359 test $ac_status = 0; }
12360 if test "$ac_status" -ne 0; then
12364 rm -f conftest.* libconftest.a
12367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12371 $as_echo "$lt_cv_ar_at_file" >&6; }
12373 if test "x$lt_cv_ar_at_file" = xno; then
12374 archiver_list_spec=
12376 archiver_list_spec=$lt_cv_ar_at_file
12385 if test -n "$ac_tool_prefix"; then
12386 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12387 set dummy ${ac_tool_prefix}strip; ac_word=$2
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12389 $as_echo_n "checking for $ac_word... " >&6; }
12390 if ${ac_cv_prog_STRIP+:} false; then :
12391 $as_echo_n "(cached) " >&6
12393 if test -n "$STRIP"; then
12394 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12397 for as_dir in $PATH
12400 test -z "$as_dir" && as_dir=.
12401 for ac_exec_ext in '' $ac_executable_extensions; do
12402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12403 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12413 STRIP=$ac_cv_prog_STRIP
12414 if test -n "$STRIP"; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12416 $as_echo "$STRIP" >&6; }
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419 $as_echo "no" >&6; }
12424 if test -z "$ac_cv_prog_STRIP"; then
12426 # Extract the first word of "strip", so it can be a program name with args.
12427 set dummy strip; ac_word=$2
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12429 $as_echo_n "checking for $ac_word... " >&6; }
12430 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12431 $as_echo_n "(cached) " >&6
12433 if test -n "$ac_ct_STRIP"; then
12434 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12437 for as_dir in $PATH
12440 test -z "$as_dir" && as_dir=.
12441 for ac_exec_ext in '' $ac_executable_extensions; do
12442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12443 ac_cv_prog_ac_ct_STRIP="strip"
12444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12453 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12454 if test -n "$ac_ct_STRIP"; then
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12456 $as_echo "$ac_ct_STRIP" >&6; }
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459 $as_echo "no" >&6; }
12462 if test "x$ac_ct_STRIP" = x; then
12465 case $cross_compiling:$ac_tool_warned in
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12469 ac_tool_warned=yes ;;
12474 STRIP="$ac_cv_prog_STRIP"
12477 test -z "$STRIP" && STRIP=:
12484 if test -n "$ac_tool_prefix"; then
12485 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12486 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12488 $as_echo_n "checking for $ac_word... " >&6; }
12489 if ${ac_cv_prog_RANLIB+:} false; then :
12490 $as_echo_n "(cached) " >&6
12492 if test -n "$RANLIB"; then
12493 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12496 for as_dir in $PATH
12499 test -z "$as_dir" && as_dir=.
12500 for ac_exec_ext in '' $ac_executable_extensions; do
12501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12502 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12512 RANLIB=$ac_cv_prog_RANLIB
12513 if test -n "$RANLIB"; then
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12515 $as_echo "$RANLIB" >&6; }
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12523 if test -z "$ac_cv_prog_RANLIB"; then
12524 ac_ct_RANLIB=$RANLIB
12525 # Extract the first word of "ranlib", so it can be a program name with args.
12526 set dummy ranlib; ac_word=$2
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12528 $as_echo_n "checking for $ac_word... " >&6; }
12529 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12530 $as_echo_n "(cached) " >&6
12532 if test -n "$ac_ct_RANLIB"; then
12533 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12536 for as_dir in $PATH
12539 test -z "$as_dir" && as_dir=.
12540 for ac_exec_ext in '' $ac_executable_extensions; do
12541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12542 ac_cv_prog_ac_ct_RANLIB="ranlib"
12543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12552 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12553 if test -n "$ac_ct_RANLIB"; then
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12555 $as_echo "$ac_ct_RANLIB" >&6; }
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558 $as_echo "no" >&6; }
12561 if test "x$ac_ct_RANLIB" = x; then
12564 case $cross_compiling:$ac_tool_warned in
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12568 ac_tool_warned=yes ;;
12570 RANLIB=$ac_ct_RANLIB
12573 RANLIB="$ac_cv_prog_RANLIB"
12576 test -z "$RANLIB" && RANLIB=:
12583 # Determine commands to create old-style static archives.
12584 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12585 old_postinstall_cmds='chmod 644 $oldlib'
12586 old_postuninstall_cmds=
12588 if test -n "$RANLIB"; then
12591 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12594 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12597 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12602 lock_old_archive_extraction=yes ;;
12604 lock_old_archive_extraction=no ;;
12645 # If no C compiler was specified, use CC.
12648 # If no C compiler flags were specified, use CFLAGS.
12649 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12651 # Allow CC to be a program name with arguments.
12655 # Check for command to grab the raw symbol name followed by C symbol from nm.
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12657 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12658 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12659 $as_echo_n "(cached) " >&6
12662 # These are sane defaults that work on at least a few old systems.
12663 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12665 # Character class describing NM global symbol codes.
12666 symcode='[BCDEGRST]'
12668 # Regexp to match symbols that can be accessed directly from C.
12669 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12671 # Define system-specific variables.
12676 cygwin* | mingw* | pw32* | cegcc*)
12677 symcode='[ABCDGISTW]'
12680 if test "$host_cpu" = ia64; then
12681 symcode='[ABCDEGRST]'
12684 irix* | nonstopux*)
12685 symcode='[BCDEGRST]'
12688 symcode='[BCDEGQRST]'
12699 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12707 # If we're using GNU nm, then use its standard symbol codes.
12708 case `$NM -V 2>&1` in
12709 *GNU* | *'with BFD'*)
12710 symcode='[ABCDGIRSTW]' ;;
12713 # Transform an extracted symbol line into a proper C declaration.
12714 # Some systems (esp. on ia64) link data and code symbols differently,
12715 # so use this general approach.
12716 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12718 # Transform an extracted symbol line into symbol name and symbol address
12719 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12720 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'"
12722 # Handle CRLF in mingw tool chain
12726 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12730 # Try without a prefix underscore, then with it.
12731 for ac_symprfx in "" "_"; do
12733 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12734 symxfrm="\\1 $ac_symprfx\\2 \\2"
12736 # Write the raw and C identifiers.
12737 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12738 # Fake it for dumpbin and say T for any non-static function
12739 # and D for any global variable.
12740 # Also find C++ and __fastcall symbols from MSVC++,
12741 # which start with @ or ?.
12742 lt_cv_sys_global_symbol_pipe="$AWK '"\
12743 " {last_section=section; section=\$ 3};"\
12744 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12745 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12746 " \$ 0!~/External *\|/{next};"\
12747 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12748 " {if(hide[section]) next};"\
12749 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12750 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12751 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12752 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12753 " ' prfx=^$ac_symprfx"
12755 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12757 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12759 # Check to see that the pipe works correctly.
12763 cat > conftest.$ac_ext <<_LT_EOF
12768 void nm_test_func(void);
12769 void nm_test_func(void){}
12773 int main(){nm_test_var='a';nm_test_func();return(0);}
12776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12777 (eval $ac_compile) 2>&5
12779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12780 test $ac_status = 0; }; then
12781 # Now try to grab the symbols.
12783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12784 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12787 test $ac_status = 0; } && test -s "$nlist"; then
12788 # Try sorting and uniquifying the output.
12789 if sort "$nlist" | uniq > "$nlist"T; then
12790 mv -f "$nlist"T "$nlist"
12795 # Make sure that we snagged all the symbols we need.
12796 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12797 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12798 cat <<_LT_EOF > conftest.$ac_ext
12799 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12800 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12801 /* DATA imports from DLLs on WIN32 con't be const, because runtime
12802 relocations are performed -- see ld's documentation on pseudo-relocs. */
12803 # define LT_DLSYM_CONST
12804 #elif defined(__osf__)
12805 /* This system does not cope well with relocations in const data. */
12806 # define LT_DLSYM_CONST
12808 # define LT_DLSYM_CONST const
12816 # Now generate the symbol file.
12817 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12819 cat <<_LT_EOF >> conftest.$ac_ext
12821 /* The mapping between symbol names and symbols. */
12822 LT_DLSYM_CONST struct {
12826 lt__PROGRAM__LTX_preloaded_symbols[] =
12828 { "@PROGRAM@", (void *) 0 },
12830 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12831 cat <<\_LT_EOF >> conftest.$ac_ext
12835 /* This works around a problem in FreeBSD linker */
12836 #ifdef FREEBSD_WORKAROUND
12837 static const void *lt_preloaded_setup() {
12838 return lt__PROGRAM__LTX_preloaded_symbols;
12846 # Now try linking the two files.
12847 mv conftest.$ac_objext conftstm.$ac_objext
12848 lt_globsym_save_LIBS=$LIBS
12849 lt_globsym_save_CFLAGS=$CFLAGS
12850 LIBS="conftstm.$ac_objext"
12851 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12853 (eval $ac_link) 2>&5
12855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12856 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12859 LIBS=$lt_globsym_save_LIBS
12860 CFLAGS=$lt_globsym_save_CFLAGS
12862 echo "cannot find nm_test_func in $nlist" >&5
12865 echo "cannot find nm_test_var in $nlist" >&5
12868 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12871 echo "$progname: failed program was:" >&5
12872 cat conftest.$ac_ext >&5
12874 rm -rf conftest* conftst*
12876 # Do not use the global_symbol_pipe unless it works.
12877 if test "$pipe_works" = yes; then
12880 lt_cv_sys_global_symbol_pipe=
12886 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12887 lt_cv_sys_global_symbol_to_cdecl=
12889 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12891 $as_echo "failed" >&6; }
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12894 $as_echo "ok" >&6; }
12897 # Response file support.
12898 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12899 nm_file_list_spec='@'
12900 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12901 nm_file_list_spec='@'
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12931 $as_echo_n "checking for sysroot... " >&6; }
12933 # Check whether --with-sysroot was given.
12934 if test "${with_sysroot+set}" = set; then :
12935 withval=$with_sysroot;
12942 case ${with_sysroot} in #(
12944 if test "$GCC" = yes; then
12945 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12949 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12955 $as_echo "${with_sysroot}" >&6; }
12956 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12961 $as_echo "${lt_sysroot:-no}" >&6; }
12967 # Check whether --enable-libtool-lock was given.
12968 if test "${enable_libtool_lock+set}" = set; then :
12969 enableval=$enable_libtool_lock;
12972 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12974 # Some flags need to be propagated to the compiler or linker for good
12978 # Find out which ABI we are using.
12979 echo 'int i;' > conftest.$ac_ext
12980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12981 (eval $ac_compile) 2>&5
12983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12984 test $ac_status = 0; }; then
12985 case `/usr/bin/file conftest.$ac_objext` in
12987 HPUX_IA64_MODE="32"
12990 HPUX_IA64_MODE="64"
12997 # Find out which ABI we are using.
12998 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13000 (eval $ac_compile) 2>&5
13002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13003 test $ac_status = 0; }; then
13004 if test "$lt_cv_prog_gnu_ld" = yes; then
13005 case `/usr/bin/file conftest.$ac_objext` in
13007 LD="${LD-ld} -melf32bsmip"
13010 LD="${LD-ld} -melf32bmipn32"
13013 LD="${LD-ld} -melf64bmip"
13017 case `/usr/bin/file conftest.$ac_objext` in
13033 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13034 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13035 # Find out which ABI we are using.
13036 echo 'int i;' > conftest.$ac_ext
13037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13038 (eval $ac_compile) 2>&5
13040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13041 test $ac_status = 0; }; then
13042 case `/usr/bin/file conftest.o` in
13045 x86_64-*kfreebsd*-gnu)
13046 LD="${LD-ld} -m elf_i386_fbsd"
13049 LD="${LD-ld} -m elf_i386"
13051 ppc64-*linux*|powerpc64-*linux*)
13052 LD="${LD-ld} -m elf32ppclinux"
13055 LD="${LD-ld} -m elf_s390"
13058 LD="${LD-ld} -m elf32_sparc"
13064 x86_64-*kfreebsd*-gnu)
13065 LD="${LD-ld} -m elf_x86_64_fbsd"
13068 LD="${LD-ld} -m elf_x86_64"
13070 ppc*-*linux*|powerpc*-*linux*)
13071 LD="${LD-ld} -m elf64ppc"
13073 s390*-*linux*|s390*-*tpf*)
13074 LD="${LD-ld} -m elf64_s390"
13077 LD="${LD-ld} -m elf64_sparc"
13087 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13088 SAVE_CFLAGS="$CFLAGS"
13089 CFLAGS="$CFLAGS -belf"
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13091 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13092 if ${lt_cv_cc_needs_belf+:} false; then :
13093 $as_echo_n "(cached) " >&6
13096 ac_cpp='$CPP $CPPFLAGS'
13097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13102 /* end confdefs.h. */
13112 if ac_fn_c_try_link "$LINENO"; then :
13113 lt_cv_cc_needs_belf=yes
13115 lt_cv_cc_needs_belf=no
13117 rm -f core conftest.err conftest.$ac_objext \
13118 conftest$ac_exeext conftest.$ac_ext
13120 ac_cpp='$CPP $CPPFLAGS'
13121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13127 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13128 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13129 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13130 CFLAGS="$SAVE_CFLAGS"
13134 # Find out which ABI we are using.
13135 echo 'int i;' > conftest.$ac_ext
13136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13137 (eval $ac_compile) 2>&5
13139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13140 test $ac_status = 0; }; then
13141 case `/usr/bin/file conftest.o` in
13143 case $lt_cv_prog_gnu_ld in
13147 LD="${LD-ld} -m elf_x86_64"
13150 LD="${LD-ld} -m elf64_sparc"
13153 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13154 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13159 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13171 need_locks="$enable_libtool_lock"
13173 if test -n "$ac_tool_prefix"; then
13174 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13175 set dummy ${ac_tool_prefix}mt; ac_word=$2
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13177 $as_echo_n "checking for $ac_word... " >&6; }
13178 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13179 $as_echo_n "(cached) " >&6
13181 if test -n "$MANIFEST_TOOL"; then
13182 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13185 for as_dir in $PATH
13188 test -z "$as_dir" && as_dir=.
13189 for ac_exec_ext in '' $ac_executable_extensions; do
13190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13191 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13201 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13202 if test -n "$MANIFEST_TOOL"; then
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13204 $as_echo "$MANIFEST_TOOL" >&6; }
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207 $as_echo "no" >&6; }
13212 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13213 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13214 # Extract the first word of "mt", so it can be a program name with args.
13215 set dummy mt; ac_word=$2
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13217 $as_echo_n "checking for $ac_word... " >&6; }
13218 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13219 $as_echo_n "(cached) " >&6
13221 if test -n "$ac_ct_MANIFEST_TOOL"; then
13222 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13225 for as_dir in $PATH
13228 test -z "$as_dir" && as_dir=.
13229 for ac_exec_ext in '' $ac_executable_extensions; do
13230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13231 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13241 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13242 if test -n "$ac_ct_MANIFEST_TOOL"; then
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13244 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13247 $as_echo "no" >&6; }
13250 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13253 case $cross_compiling:$ac_tool_warned in
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13257 ac_tool_warned=yes ;;
13259 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13262 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13265 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13267 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13268 if ${lt_cv_path_mainfest_tool+:} false; then :
13269 $as_echo_n "(cached) " >&6
13271 lt_cv_path_mainfest_tool=no
13272 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13273 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13274 cat conftest.err >&5
13275 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13276 lt_cv_path_mainfest_tool=yes
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13281 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13282 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13292 rhapsody* | darwin*)
13293 if test -n "$ac_tool_prefix"; then
13294 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13295 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13297 $as_echo_n "checking for $ac_word... " >&6; }
13298 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13299 $as_echo_n "(cached) " >&6
13301 if test -n "$DSYMUTIL"; then
13302 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13305 for as_dir in $PATH
13308 test -z "$as_dir" && as_dir=.
13309 for ac_exec_ext in '' $ac_executable_extensions; do
13310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13311 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13321 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13322 if test -n "$DSYMUTIL"; then
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13324 $as_echo "$DSYMUTIL" >&6; }
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13327 $as_echo "no" >&6; }
13332 if test -z "$ac_cv_prog_DSYMUTIL"; then
13333 ac_ct_DSYMUTIL=$DSYMUTIL
13334 # Extract the first word of "dsymutil", so it can be a program name with args.
13335 set dummy dsymutil; ac_word=$2
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13337 $as_echo_n "checking for $ac_word... " >&6; }
13338 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13339 $as_echo_n "(cached) " >&6
13341 if test -n "$ac_ct_DSYMUTIL"; then
13342 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13345 for as_dir in $PATH
13348 test -z "$as_dir" && as_dir=.
13349 for ac_exec_ext in '' $ac_executable_extensions; do
13350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13351 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13361 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13362 if test -n "$ac_ct_DSYMUTIL"; then
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13364 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13367 $as_echo "no" >&6; }
13370 if test "x$ac_ct_DSYMUTIL" = x; then
13373 case $cross_compiling:$ac_tool_warned in
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13377 ac_tool_warned=yes ;;
13379 DSYMUTIL=$ac_ct_DSYMUTIL
13382 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13385 if test -n "$ac_tool_prefix"; then
13386 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13387 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13389 $as_echo_n "checking for $ac_word... " >&6; }
13390 if ${ac_cv_prog_NMEDIT+:} false; then :
13391 $as_echo_n "(cached) " >&6
13393 if test -n "$NMEDIT"; then
13394 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13397 for as_dir in $PATH
13400 test -z "$as_dir" && as_dir=.
13401 for ac_exec_ext in '' $ac_executable_extensions; do
13402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13403 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13413 NMEDIT=$ac_cv_prog_NMEDIT
13414 if test -n "$NMEDIT"; then
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13416 $as_echo "$NMEDIT" >&6; }
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13419 $as_echo "no" >&6; }
13424 if test -z "$ac_cv_prog_NMEDIT"; then
13425 ac_ct_NMEDIT=$NMEDIT
13426 # Extract the first word of "nmedit", so it can be a program name with args.
13427 set dummy nmedit; ac_word=$2
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13429 $as_echo_n "checking for $ac_word... " >&6; }
13430 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13431 $as_echo_n "(cached) " >&6
13433 if test -n "$ac_ct_NMEDIT"; then
13434 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13437 for as_dir in $PATH
13440 test -z "$as_dir" && as_dir=.
13441 for ac_exec_ext in '' $ac_executable_extensions; do
13442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13443 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13453 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13454 if test -n "$ac_ct_NMEDIT"; then
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13456 $as_echo "$ac_ct_NMEDIT" >&6; }
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13459 $as_echo "no" >&6; }
13462 if test "x$ac_ct_NMEDIT" = x; then
13465 case $cross_compiling:$ac_tool_warned in
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13469 ac_tool_warned=yes ;;
13471 NMEDIT=$ac_ct_NMEDIT
13474 NMEDIT="$ac_cv_prog_NMEDIT"
13477 if test -n "$ac_tool_prefix"; then
13478 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13479 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13481 $as_echo_n "checking for $ac_word... " >&6; }
13482 if ${ac_cv_prog_LIPO+:} false; then :
13483 $as_echo_n "(cached) " >&6
13485 if test -n "$LIPO"; then
13486 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13489 for as_dir in $PATH
13492 test -z "$as_dir" && as_dir=.
13493 for ac_exec_ext in '' $ac_executable_extensions; do
13494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13495 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13505 LIPO=$ac_cv_prog_LIPO
13506 if test -n "$LIPO"; then
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13508 $as_echo "$LIPO" >&6; }
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13511 $as_echo "no" >&6; }
13516 if test -z "$ac_cv_prog_LIPO"; then
13518 # Extract the first word of "lipo", so it can be a program name with args.
13519 set dummy lipo; ac_word=$2
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13521 $as_echo_n "checking for $ac_word... " >&6; }
13522 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13523 $as_echo_n "(cached) " >&6
13525 if test -n "$ac_ct_LIPO"; then
13526 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529 for as_dir in $PATH
13532 test -z "$as_dir" && as_dir=.
13533 for ac_exec_ext in '' $ac_executable_extensions; do
13534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13535 ac_cv_prog_ac_ct_LIPO="lipo"
13536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13545 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13546 if test -n "$ac_ct_LIPO"; then
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13548 $as_echo "$ac_ct_LIPO" >&6; }
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13551 $as_echo "no" >&6; }
13554 if test "x$ac_ct_LIPO" = x; then
13557 case $cross_compiling:$ac_tool_warned in
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13561 ac_tool_warned=yes ;;
13566 LIPO="$ac_cv_prog_LIPO"
13569 if test -n "$ac_tool_prefix"; then
13570 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13571 set dummy ${ac_tool_prefix}otool; ac_word=$2
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13573 $as_echo_n "checking for $ac_word... " >&6; }
13574 if ${ac_cv_prog_OTOOL+:} false; then :
13575 $as_echo_n "(cached) " >&6
13577 if test -n "$OTOOL"; then
13578 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13581 for as_dir in $PATH
13584 test -z "$as_dir" && as_dir=.
13585 for ac_exec_ext in '' $ac_executable_extensions; do
13586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13587 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13597 OTOOL=$ac_cv_prog_OTOOL
13598 if test -n "$OTOOL"; then
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13600 $as_echo "$OTOOL" >&6; }
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13603 $as_echo "no" >&6; }
13608 if test -z "$ac_cv_prog_OTOOL"; then
13610 # Extract the first word of "otool", so it can be a program name with args.
13611 set dummy otool; ac_word=$2
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13613 $as_echo_n "checking for $ac_word... " >&6; }
13614 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13615 $as_echo_n "(cached) " >&6
13617 if test -n "$ac_ct_OTOOL"; then
13618 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13621 for as_dir in $PATH
13624 test -z "$as_dir" && as_dir=.
13625 for ac_exec_ext in '' $ac_executable_extensions; do
13626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13627 ac_cv_prog_ac_ct_OTOOL="otool"
13628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13637 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13638 if test -n "$ac_ct_OTOOL"; then
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13640 $as_echo "$ac_ct_OTOOL" >&6; }
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13643 $as_echo "no" >&6; }
13646 if test "x$ac_ct_OTOOL" = x; then
13649 case $cross_compiling:$ac_tool_warned in
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13653 ac_tool_warned=yes ;;
13658 OTOOL="$ac_cv_prog_OTOOL"
13661 if test -n "$ac_tool_prefix"; then
13662 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13663 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13665 $as_echo_n "checking for $ac_word... " >&6; }
13666 if ${ac_cv_prog_OTOOL64+:} false; then :
13667 $as_echo_n "(cached) " >&6
13669 if test -n "$OTOOL64"; then
13670 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13673 for as_dir in $PATH
13676 test -z "$as_dir" && as_dir=.
13677 for ac_exec_ext in '' $ac_executable_extensions; do
13678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13679 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13689 OTOOL64=$ac_cv_prog_OTOOL64
13690 if test -n "$OTOOL64"; then
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13692 $as_echo "$OTOOL64" >&6; }
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13695 $as_echo "no" >&6; }
13700 if test -z "$ac_cv_prog_OTOOL64"; then
13701 ac_ct_OTOOL64=$OTOOL64
13702 # Extract the first word of "otool64", so it can be a program name with args.
13703 set dummy otool64; ac_word=$2
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13705 $as_echo_n "checking for $ac_word... " >&6; }
13706 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13707 $as_echo_n "(cached) " >&6
13709 if test -n "$ac_ct_OTOOL64"; then
13710 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13713 for as_dir in $PATH
13716 test -z "$as_dir" && as_dir=.
13717 for ac_exec_ext in '' $ac_executable_extensions; do
13718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13719 ac_cv_prog_ac_ct_OTOOL64="otool64"
13720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13729 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13730 if test -n "$ac_ct_OTOOL64"; then
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13732 $as_echo "$ac_ct_OTOOL64" >&6; }
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13735 $as_echo "no" >&6; }
13738 if test "x$ac_ct_OTOOL64" = x; then
13741 case $cross_compiling:$ac_tool_warned in
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13745 ac_tool_warned=yes ;;
13747 OTOOL64=$ac_ct_OTOOL64
13750 OTOOL64="$ac_cv_prog_OTOOL64"
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13780 $as_echo_n "checking for -single_module linker flag... " >&6; }
13781 if ${lt_cv_apple_cc_single_mod+:} false; then :
13782 $as_echo_n "(cached) " >&6
13784 lt_cv_apple_cc_single_mod=no
13785 if test -z "${LT_MULTI_MODULE}"; then
13786 # By default we will add the -single_module flag. You can override
13787 # by either setting the environment variable LT_MULTI_MODULE
13788 # non-empty at configure time, or by adding -multi_module to the
13790 rm -rf libconftest.dylib*
13791 echo "int foo(void){return 1;}" > conftest.c
13792 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13793 -dynamiclib -Wl,-single_module conftest.c" >&5
13794 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13795 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13797 # If there is a non-empty error log, and "single_module"
13798 # appears in it, assume the flag caused a linker warning
13799 if test -s conftest.err && $GREP single_module conftest.err; then
13800 cat conftest.err >&5
13801 # Otherwise, if the output was created with a 0 exit code from
13802 # the compiler, it worked.
13803 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13804 lt_cv_apple_cc_single_mod=yes
13806 cat conftest.err >&5
13808 rm -rf libconftest.dylib*
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13813 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13816 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13817 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13818 $as_echo_n "(cached) " >&6
13820 lt_cv_ld_exported_symbols_list=no
13821 save_LDFLAGS=$LDFLAGS
13822 echo "_main" > conftest.sym
13823 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h. */
13835 if ac_fn_c_try_link "$LINENO"; then :
13836 lt_cv_ld_exported_symbols_list=yes
13838 lt_cv_ld_exported_symbols_list=no
13840 rm -f core conftest.err conftest.$ac_objext \
13841 conftest$ac_exeext conftest.$ac_ext
13842 LDFLAGS="$save_LDFLAGS"
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13846 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13849 $as_echo_n "checking for -force_load linker flag... " >&6; }
13850 if ${lt_cv_ld_force_load+:} false; then :
13851 $as_echo_n "(cached) " >&6
13853 lt_cv_ld_force_load=no
13854 cat > conftest.c << _LT_EOF
13855 int forced_loaded() { return 2;}
13857 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13858 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13859 echo "$AR cru libconftest.a conftest.o" >&5
13860 $AR cru libconftest.a conftest.o 2>&5
13861 echo "$RANLIB libconftest.a" >&5
13862 $RANLIB libconftest.a 2>&5
13863 cat > conftest.c << _LT_EOF
13864 int main() { return 0;}
13866 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13867 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13869 if test -s conftest.err && $GREP force_load conftest.err; then
13870 cat conftest.err >&5
13871 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13872 lt_cv_ld_force_load=yes
13874 cat conftest.err >&5
13876 rm -f conftest.err libconftest.a conftest conftest.c
13877 rm -rf conftest.dSYM
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13881 $as_echo "$lt_cv_ld_force_load" >&6; }
13883 rhapsody* | darwin1.[012])
13884 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13886 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13887 darwin*) # darwin 5.x on
13888 # if running on 10.5 or later, the deployment target defaults
13889 # to the OS version, if on x86, and 10.4, the deployment
13890 # target defaults to 10.4. Don't you love it?
13891 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13892 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13893 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13895 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13897 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13901 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13902 _lt_dar_single_mod='$single_module'
13904 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13905 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13907 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13909 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13910 _lt_dsymutil='~$DSYMUTIL $lib || :'
13917 for ac_header in dlfcn.h
13919 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13921 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13922 cat >>confdefs.h <<_ACEOF
13923 #define HAVE_DLFCN_H 1
13941 enable_win32_dll=no
13944 # Check whether --enable-shared was given.
13945 if test "${enable_shared+set}" = set; then :
13946 enableval=$enable_shared; p=${PACKAGE-default}
13948 yes) enable_shared=yes ;;
13949 no) enable_shared=no ;;
13952 # Look at the argument we got. We use all the common list separators.
13953 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13954 for pkg in $enableval; do
13956 if test "X$pkg" = "X$p"; then
13977 # Check whether --with-pic was given.
13978 if test "${with_pic+set}" = set; then :
13979 withval=$with_pic; lt_p=${PACKAGE-default}
13981 yes|no) pic_mode=$withval ;;
13984 # Look at the argument we got. We use all the common list separators.
13985 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13986 for lt_pkg in $withval; do
13988 if test "X$lt_pkg" = "X$lt_p"; then
14000 test -z "$pic_mode" && pic_mode=default
14008 # Check whether --enable-fast-install was given.
14009 if test "${enable_fast_install+set}" = set; then :
14010 enableval=$enable_fast_install; p=${PACKAGE-default}
14012 yes) enable_fast_install=yes ;;
14013 no) enable_fast_install=no ;;
14015 enable_fast_install=no
14016 # Look at the argument we got. We use all the common list separators.
14017 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14018 for pkg in $enableval; do
14020 if test "X$pkg" = "X$p"; then
14021 enable_fast_install=yes
14028 enable_fast_install=yes
14041 # This can be used to rebuild libtool when needed
14042 LIBTOOL_DEPS="$ltmain"
14044 # Always use our own libtool.
14045 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14076 test -z "$LN_S" && LN_S="ln -s"
14091 if test -n "${ZSH_VERSION+set}" ; then
14092 setopt NO_GLOB_SUBST
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14096 $as_echo_n "checking for objdir... " >&6; }
14097 if ${lt_cv_objdir+:} false; then :
14098 $as_echo_n "(cached) " >&6
14100 rm -f .libs 2>/dev/null
14101 mkdir .libs 2>/dev/null
14102 if test -d .libs; then
14105 # MS-DOS does not allow filenames that begin with a dot.
14108 rmdir .libs 2>/dev/null
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14111 $as_echo "$lt_cv_objdir" >&6; }
14112 objdir=$lt_cv_objdir
14118 cat >>confdefs.h <<_ACEOF
14119 #define LT_OBJDIR "$lt_cv_objdir/"
14127 # AIX sometimes has problems with the GCC collect2 program. For some
14128 # reason, if we set the COLLECT_NAMES environment variable, the problems
14129 # vanish in a puff of smoke.
14130 if test "X${COLLECT_NAMES+set}" != Xset; then
14132 export COLLECT_NAMES
14137 # Global variables:
14139 can_build_shared=yes
14141 # All known linkers require a `.a' archive for static linking (except MSVC,
14142 # which needs '.lib').
14145 with_gnu_ld="$lt_cv_prog_gnu_ld"
14148 old_CFLAGS="$CFLAGS"
14150 # Set sane defaults for various variables
14151 test -z "$CC" && CC=cc
14152 test -z "$LTCC" && LTCC=$CC
14153 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14154 test -z "$LD" && LD=ld
14155 test -z "$ac_objext" && ac_objext=o
14157 for cc_temp in $compiler""; do
14159 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14160 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14165 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14168 # Only perform the check for file, if the check method requires it
14169 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14170 case $deplibs_check_method in
14172 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14174 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14175 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14176 $as_echo_n "(cached) " >&6
14180 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14183 lt_save_MAGIC_CMD="$MAGIC_CMD"
14184 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14185 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14186 for ac_dir in $ac_dummy; do
14188 test -z "$ac_dir" && ac_dir=.
14189 if test -f $ac_dir/${ac_tool_prefix}file; then
14190 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14191 if test -n "$file_magic_test_file"; then
14192 case $deplibs_check_method in
14194 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14195 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14196 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14197 $EGREP "$file_magic_regex" > /dev/null; then
14202 *** Warning: the command libtool uses to detect shared libraries,
14203 *** $file_magic_cmd, produces output that libtool cannot recognize.
14204 *** The result is that libtool may fail to recognize shared libraries
14205 *** as such. This will affect the creation of libtool libraries that
14206 *** depend on shared libraries, but programs linked with such libtool
14207 *** libraries will work regardless of this problem. Nevertheless, you
14208 *** may want to report the problem to your system manager and/or to
14209 *** bug-libtool@gnu.org
14219 MAGIC_CMD="$lt_save_MAGIC_CMD"
14224 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14225 if test -n "$MAGIC_CMD"; then
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14227 $as_echo "$MAGIC_CMD" >&6; }
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14230 $as_echo "no" >&6; }
14237 if test -z "$lt_cv_path_MAGIC_CMD"; then
14238 if test -n "$ac_tool_prefix"; then
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14240 $as_echo_n "checking for file... " >&6; }
14241 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14242 $as_echo_n "(cached) " >&6
14246 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14249 lt_save_MAGIC_CMD="$MAGIC_CMD"
14250 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14251 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14252 for ac_dir in $ac_dummy; do
14254 test -z "$ac_dir" && ac_dir=.
14255 if test -f $ac_dir/file; then
14256 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14257 if test -n "$file_magic_test_file"; then
14258 case $deplibs_check_method in
14260 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14261 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14262 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14263 $EGREP "$file_magic_regex" > /dev/null; then
14268 *** Warning: the command libtool uses to detect shared libraries,
14269 *** $file_magic_cmd, produces output that libtool cannot recognize.
14270 *** The result is that libtool may fail to recognize shared libraries
14271 *** as such. This will affect the creation of libtool libraries that
14272 *** depend on shared libraries, but programs linked with such libtool
14273 *** libraries will work regardless of this problem. Nevertheless, you
14274 *** may want to report the problem to your system manager and/or to
14275 *** bug-libtool@gnu.org
14285 MAGIC_CMD="$lt_save_MAGIC_CMD"
14290 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14291 if test -n "$MAGIC_CMD"; then
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14293 $as_echo "$MAGIC_CMD" >&6; }
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14296 $as_echo "no" >&6; }
14309 # Use C for the default configuration in the libtool script
14313 ac_cpp='$CPP $CPPFLAGS'
14314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14319 # Source file extension for C test sources.
14322 # Object file extension for compiled C test sources.
14326 # Code to be used in simple compile tests
14327 lt_simple_compile_test_code="int some_variable = 0;"
14329 # Code to be used in simple link tests
14330 lt_simple_link_test_code='int main(){return(0);}'
14338 # If no C compiler was specified, use CC.
14341 # If no C compiler flags were specified, use CFLAGS.
14342 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14344 # Allow CC to be a program name with arguments.
14347 # Save the default compiler, since it gets overwritten when the other
14348 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14349 compiler_DEFAULT=$CC
14351 # save warnings/boilerplate of simple test code
14352 ac_outfile=conftest.$ac_objext
14353 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14354 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14355 _lt_compiler_boilerplate=`cat conftest.err`
14358 ac_outfile=conftest.$ac_objext
14359 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14360 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14361 _lt_linker_boilerplate=`cat conftest.err`
14365 if test -n "$compiler"; then
14367 lt_prog_compiler_no_builtin_flag=
14369 if test "$GCC" = yes; then
14370 case $cc_basename in
14372 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14374 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14378 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14379 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14380 $as_echo_n "(cached) " >&6
14382 lt_cv_prog_compiler_rtti_exceptions=no
14383 ac_outfile=conftest.$ac_objext
14384 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14385 lt_compiler_flag="-fno-rtti -fno-exceptions"
14386 # Insert the option either (1) after the last *FLAGS variable, or
14387 # (2) before a word containing "conftest.", or (3) at the end.
14388 # Note that $ac_compile itself does not contain backslashes and begins
14389 # with a dollar sign (not a hyphen), so the echo should work correctly.
14390 # The option is referenced via a variable to avoid confusing sed.
14391 lt_compile=`echo "$ac_compile" | $SED \
14392 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14394 -e 's:$: $lt_compiler_flag:'`
14395 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14396 (eval "$lt_compile" 2>conftest.err)
14398 cat conftest.err >&5
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 if (exit $ac_status) && test -s "$ac_outfile"; then
14401 # The compiler can only warn and ignore the option if not recognized
14402 # So say no if there are warnings other than the usual output.
14403 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14404 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14405 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14406 lt_cv_prog_compiler_rtti_exceptions=yes
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14413 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14415 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14416 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14428 lt_prog_compiler_wl=
14429 lt_prog_compiler_pic=
14430 lt_prog_compiler_static=
14433 if test "$GCC" = yes; then
14434 lt_prog_compiler_wl='-Wl,'
14435 lt_prog_compiler_static='-static'
14439 # All AIX code is PIC.
14440 if test "$host_cpu" = ia64; then
14441 # AIX 5 now supports IA64 processor
14442 lt_prog_compiler_static='-Bstatic'
14449 # see comment about AmigaOS4 .so support
14450 lt_prog_compiler_pic='-fPIC'
14453 # FIXME: we need at least 68020 code to build shared libraries, but
14454 # adding the `-m68020' flag to GCC prevents building anything better,
14456 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14461 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14462 # PIC is the default for these OSes.
14465 mingw* | cygwin* | pw32* | os2* | cegcc*)
14466 # This hack is so that the source file can tell whether it is being
14467 # built for inclusion in a dll (and should export symbols for example).
14468 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14469 # (--disable-auto-import) libraries
14470 lt_prog_compiler_pic='-DDLL_EXPORT'
14473 darwin* | rhapsody*)
14474 # PIC is the default on this platform
14475 # Common symbols not allowed in MH_DYLIB files
14476 lt_prog_compiler_pic='-fno-common'
14480 # PIC is the default for Haiku.
14481 # The "-static" flag exists, but is broken.
14482 lt_prog_compiler_static=
14486 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14487 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14488 # sets the default TLS model and affects inlining.
14494 lt_prog_compiler_pic='-fPIC'
14500 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14501 # Instead, we relocate shared libraries at runtime.
14505 # Just because we use GCC doesn't mean we suddenly get shared libraries
14506 # on systems that don't support them.
14507 lt_prog_compiler_can_build_shared=no
14512 # QNX uses GNU C++, but need to define -shared option too, otherwise
14513 # it will coredump.
14514 lt_prog_compiler_pic='-fPIC -shared'
14518 if test -d /usr/nec; then
14519 lt_prog_compiler_pic=-Kconform_pic
14524 lt_prog_compiler_pic='-fPIC'
14528 case $cc_basename in
14529 nvcc*) # Cuda Compiler Driver 2.2
14530 lt_prog_compiler_wl='-Xlinker '
14531 if test -n "$lt_prog_compiler_pic"; then
14532 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14537 # PORTME Check for flag to pass linker flags through the system compiler.
14540 lt_prog_compiler_wl='-Wl,'
14541 if test "$host_cpu" = ia64; then
14542 # AIX 5 now supports IA64 processor
14543 lt_prog_compiler_static='-Bstatic'
14545 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14549 mingw* | cygwin* | pw32* | os2* | cegcc*)
14550 # This hack is so that the source file can tell whether it is being
14551 # built for inclusion in a dll (and should export symbols for example).
14552 lt_prog_compiler_pic='-DDLL_EXPORT'
14555 hpux9* | hpux10* | hpux11*)
14556 lt_prog_compiler_wl='-Wl,'
14557 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14558 # not for PA HP-UX.
14564 lt_prog_compiler_pic='+Z'
14567 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14568 lt_prog_compiler_static='${wl}-a ${wl}archive'
14571 irix5* | irix6* | nonstopux*)
14572 lt_prog_compiler_wl='-Wl,'
14573 # PIC (with -KPIC) is the default.
14574 lt_prog_compiler_static='-non_shared'
14577 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14578 case $cc_basename in
14579 # old Intel for x86_64 which still supported -KPIC.
14581 lt_prog_compiler_wl='-Wl,'
14582 lt_prog_compiler_pic='-KPIC'
14583 lt_prog_compiler_static='-static'
14585 # icc used to be incompatible with GCC.
14586 # ICC 10 doesn't accept -KPIC any more.
14588 lt_prog_compiler_wl='-Wl,'
14589 lt_prog_compiler_pic='-fPIC'
14590 lt_prog_compiler_static='-static'
14592 # Lahey Fortran 8.1.
14594 lt_prog_compiler_wl='-Wl,'
14595 lt_prog_compiler_pic='--shared'
14596 lt_prog_compiler_static='--static'
14599 # NAG Fortran compiler
14600 lt_prog_compiler_wl='-Wl,-Wl,,'
14601 lt_prog_compiler_pic='-PIC'
14602 lt_prog_compiler_static='-Bstatic'
14604 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14605 # Portland Group compilers (*not* the Pentium gcc compiler,
14606 # which looks to be a dead project)
14607 lt_prog_compiler_wl='-Wl,'
14608 lt_prog_compiler_pic='-fpic'
14609 lt_prog_compiler_static='-Bstatic'
14612 lt_prog_compiler_wl='-Wl,'
14613 # All Alpha code is PIC.
14614 lt_prog_compiler_static='-non_shared'
14616 xl* | bgxl* | bgf* | mpixl*)
14617 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14618 lt_prog_compiler_wl='-Wl,'
14619 lt_prog_compiler_pic='-qpic'
14620 lt_prog_compiler_static='-qstaticlink'
14623 case `$CC -V 2>&1 | sed 5q` in
14624 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14625 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14626 lt_prog_compiler_pic='-KPIC'
14627 lt_prog_compiler_static='-Bstatic'
14628 lt_prog_compiler_wl=''
14630 *Sun\ F* | *Sun*Fortran*)
14631 lt_prog_compiler_pic='-KPIC'
14632 lt_prog_compiler_static='-Bstatic'
14633 lt_prog_compiler_wl='-Qoption ld '
14637 lt_prog_compiler_pic='-KPIC'
14638 lt_prog_compiler_static='-Bstatic'
14639 lt_prog_compiler_wl='-Wl,'
14641 *Intel*\ [CF]*Compiler*)
14642 lt_prog_compiler_wl='-Wl,'
14643 lt_prog_compiler_pic='-fPIC'
14644 lt_prog_compiler_static='-static'
14647 lt_prog_compiler_wl='-Wl,'
14648 lt_prog_compiler_pic='-fpic'
14649 lt_prog_compiler_static='-Bstatic'
14657 lt_prog_compiler_pic='-KPIC'
14658 lt_prog_compiler_static='-Bstatic'
14662 # QNX uses GNU C++, but need to define -shared option too, otherwise
14663 # it will coredump.
14664 lt_prog_compiler_pic='-fPIC -shared'
14667 osf3* | osf4* | osf5*)
14668 lt_prog_compiler_wl='-Wl,'
14669 # All OSF/1 code is PIC.
14670 lt_prog_compiler_static='-non_shared'
14674 lt_prog_compiler_static='-non_shared'
14678 lt_prog_compiler_pic='-KPIC'
14679 lt_prog_compiler_static='-Bstatic'
14680 case $cc_basename in
14681 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14682 lt_prog_compiler_wl='-Qoption ld ';;
14684 lt_prog_compiler_wl='-Wl,';;
14689 lt_prog_compiler_wl='-Qoption ld '
14690 lt_prog_compiler_pic='-PIC'
14691 lt_prog_compiler_static='-Bstatic'
14694 sysv4 | sysv4.2uw2* | sysv4.3*)
14695 lt_prog_compiler_wl='-Wl,'
14696 lt_prog_compiler_pic='-KPIC'
14697 lt_prog_compiler_static='-Bstatic'
14701 if test -d /usr/nec ;then
14702 lt_prog_compiler_pic='-Kconform_pic'
14703 lt_prog_compiler_static='-Bstatic'
14707 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14708 lt_prog_compiler_wl='-Wl,'
14709 lt_prog_compiler_pic='-KPIC'
14710 lt_prog_compiler_static='-Bstatic'
14714 lt_prog_compiler_wl='-Wl,'
14715 lt_prog_compiler_can_build_shared=no
14719 lt_prog_compiler_pic='-pic'
14720 lt_prog_compiler_static='-Bstatic'
14724 lt_prog_compiler_can_build_shared=no
14730 # For platforms which do not support PIC, -DPIC is meaningless:
14732 lt_prog_compiler_pic=
14735 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14740 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14741 if ${lt_cv_prog_compiler_pic+:} false; then :
14742 $as_echo_n "(cached) " >&6
14744 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14747 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14748 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14751 # Check to make sure the PIC flag actually works.
14753 if test -n "$lt_prog_compiler_pic"; then
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14755 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14756 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14757 $as_echo_n "(cached) " >&6
14759 lt_cv_prog_compiler_pic_works=no
14760 ac_outfile=conftest.$ac_objext
14761 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14762 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14763 # Insert the option either (1) after the last *FLAGS variable, or
14764 # (2) before a word containing "conftest.", or (3) at the end.
14765 # Note that $ac_compile itself does not contain backslashes and begins
14766 # with a dollar sign (not a hyphen), so the echo should work correctly.
14767 # The option is referenced via a variable to avoid confusing sed.
14768 lt_compile=`echo "$ac_compile" | $SED \
14769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14771 -e 's:$: $lt_compiler_flag:'`
14772 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14773 (eval "$lt_compile" 2>conftest.err)
14775 cat conftest.err >&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 if (exit $ac_status) && test -s "$ac_outfile"; then
14778 # The compiler can only warn and ignore the option if not recognized
14779 # So say no if there are warnings other than the usual output.
14780 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14782 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14783 lt_cv_prog_compiler_pic_works=yes
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14790 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14792 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14793 case $lt_prog_compiler_pic in
14795 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14798 lt_prog_compiler_pic=
14799 lt_prog_compiler_can_build_shared=no
14815 # Check to make sure the static flag actually works.
14817 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14819 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14820 if ${lt_cv_prog_compiler_static_works+:} false; then :
14821 $as_echo_n "(cached) " >&6
14823 lt_cv_prog_compiler_static_works=no
14824 save_LDFLAGS="$LDFLAGS"
14825 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14826 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14827 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14828 # The linker can only warn and ignore the option if not recognized
14829 # So say no if there are warnings
14830 if test -s conftest.err; then
14831 # Append any errors to the config.log.
14832 cat conftest.err 1>&5
14833 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14834 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14835 if diff conftest.exp conftest.er2 >/dev/null; then
14836 lt_cv_prog_compiler_static_works=yes
14839 lt_cv_prog_compiler_static_works=yes
14843 LDFLAGS="$save_LDFLAGS"
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14847 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14849 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14852 lt_prog_compiler_static=
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14862 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14863 if ${lt_cv_prog_compiler_c_o+:} false; then :
14864 $as_echo_n "(cached) " >&6
14866 lt_cv_prog_compiler_c_o=no
14867 $RM -r conftest 2>/dev/null
14871 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14873 lt_compiler_flag="-o out/conftest2.$ac_objext"
14874 # Insert the option either (1) after the last *FLAGS variable, or
14875 # (2) before a word containing "conftest.", or (3) at the end.
14876 # Note that $ac_compile itself does not contain backslashes and begins
14877 # with a dollar sign (not a hyphen), so the echo should work correctly.
14878 lt_compile=`echo "$ac_compile" | $SED \
14879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14881 -e 's:$: $lt_compiler_flag:'`
14882 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14883 (eval "$lt_compile" 2>out/conftest.err)
14885 cat out/conftest.err >&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14889 # The compiler can only warn and ignore the option if not recognized
14890 # So say no if there are warnings
14891 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14892 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14893 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14894 lt_cv_prog_compiler_c_o=yes
14899 # SGI C++ compiler will create directory out/ii_files/ for
14900 # template instantiation
14901 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14902 $RM out/* && rmdir out
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14909 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14917 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14918 if ${lt_cv_prog_compiler_c_o+:} false; then :
14919 $as_echo_n "(cached) " >&6
14921 lt_cv_prog_compiler_c_o=no
14922 $RM -r conftest 2>/dev/null
14926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14928 lt_compiler_flag="-o out/conftest2.$ac_objext"
14929 # Insert the option either (1) after the last *FLAGS variable, or
14930 # (2) before a word containing "conftest.", or (3) at the end.
14931 # Note that $ac_compile itself does not contain backslashes and begins
14932 # with a dollar sign (not a hyphen), so the echo should work correctly.
14933 lt_compile=`echo "$ac_compile" | $SED \
14934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14936 -e 's:$: $lt_compiler_flag:'`
14937 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14938 (eval "$lt_compile" 2>out/conftest.err)
14940 cat out/conftest.err >&5
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14944 # The compiler can only warn and ignore the option if not recognized
14945 # So say no if there are warnings
14946 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14947 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14948 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14949 lt_cv_prog_compiler_c_o=yes
14954 # SGI C++ compiler will create directory out/ii_files/ for
14955 # template instantiation
14956 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14957 $RM out/* && rmdir out
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14964 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14969 hard_links="nottested"
14970 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14971 # do not overwrite the value of need_locks provided by the user
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14973 $as_echo_n "checking if we can lock with hard links... " >&6; }
14976 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14978 ln conftest.a conftest.b 2>&5 || hard_links=no
14979 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14981 $as_echo "$hard_links" >&6; }
14982 if test "$hard_links" = no; then
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14984 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14997 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15000 allow_undefined_flag=
15001 always_export_symbols=no
15003 archive_expsym_cmds=
15004 compiler_needs_object=no
15005 enable_shared_with_static_runtimes=no
15006 export_dynamic_flag_spec=
15007 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15008 hardcode_automatic=no
15010 hardcode_direct_absolute=no
15011 hardcode_libdir_flag_spec=
15012 hardcode_libdir_separator=
15013 hardcode_minus_L=no
15014 hardcode_shlibpath_var=unsupported
15016 link_all_deplibs=unknown
15018 module_expsym_cmds=
15019 old_archive_from_new_cmds=
15020 old_archive_from_expsyms_cmds=
15021 thread_safe_flag_spec=
15022 whole_archive_flag_spec=
15023 # include_expsyms should be a list of space-separated symbols to be *always*
15024 # included in the symbol list
15026 # exclude_expsyms can be an extended regexp of symbols to exclude
15027 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15028 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15029 # as well as any symbol that contains `d'.
15030 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15031 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15032 # platforms (ab)use it in PIC code, but their linkers get confused if
15033 # the symbol is explicitly referenced. Since portable code cannot
15034 # rely on this symbol name, it's probably fine to never include it in
15035 # preloaded symbol tables.
15036 # Exclude shared library initialization/finalization symbols.
15037 extract_expsyms_cmds=
15040 cygwin* | mingw* | pw32* | cegcc*)
15041 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15042 # When not using gcc, we currently assume that we are using
15043 # Microsoft Visual C++.
15044 if test "$GCC" != yes; then
15049 # we just hope/assume this is gcc and not c89 (= MSVC++)
15055 linux* | k*bsd*-gnu | gnu*)
15056 link_all_deplibs=no
15062 # On some targets, GNU ld is compatible enough with the native linker
15063 # that we're better off using the native interface for both.
15064 lt_use_gnu_ld_interface=no
15065 if test "$with_gnu_ld" = yes; then
15068 # The AIX port of GNU ld has always aspired to compatibility
15069 # with the native linker. However, as the warning in the GNU ld
15070 # block says, versions before 2.19.5* couldn't really create working
15071 # shared libraries, regardless of the interface used.
15072 case `$LD -v 2>&1` in
15073 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15074 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15075 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15077 lt_use_gnu_ld_interface=yes
15082 lt_use_gnu_ld_interface=yes
15087 if test "$lt_use_gnu_ld_interface" = yes; then
15088 # If archive_cmds runs LD, not CC, wlarc should be empty
15091 # Set some defaults for GNU ld with shared library support. These
15092 # are reset later if shared libraries are not supported. Putting them
15093 # here allows them to be overridden if necessary.
15094 runpath_var=LD_RUN_PATH
15095 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15096 export_dynamic_flag_spec='${wl}--export-dynamic'
15097 # ancient GNU ld didn't support --whole-archive et. al.
15098 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15099 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15101 whole_archive_flag_spec=
15103 supports_anon_versioning=no
15104 case `$LD -v 2>&1` in
15105 *GNU\ gold*) supports_anon_versioning=yes ;;
15106 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15107 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15108 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15109 *\ 2.11.*) ;; # other 2.11 versions
15110 *) supports_anon_versioning=yes ;;
15113 # See if GNU ld supports shared libraries.
15116 # On AIX/PPC, the GNU linker is very broken
15117 if test "$host_cpu" != ia64; then
15121 *** Warning: the GNU linker, at least up to release 2.19, is reported
15122 *** to be unable to reliably create shared libraries on AIX.
15123 *** Therefore, libtool is disabling shared libraries support. If you
15124 *** really care for shared libraries, you may want to install binutils
15125 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15126 *** You will then need to restart the configuration process.
15135 # see comment about AmigaOS4 .so support
15136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15137 archive_expsym_cmds=''
15140 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)'
15141 hardcode_libdir_flag_spec='-L$libdir'
15142 hardcode_minus_L=yes
15148 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15149 allow_undefined_flag=unsupported
15150 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15151 # support --undefined. This deserves some investigation. FIXME
15152 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15158 cygwin* | mingw* | pw32* | cegcc*)
15159 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15160 # as there is no search path for DLLs.
15161 hardcode_libdir_flag_spec='-L$libdir'
15162 export_dynamic_flag_spec='${wl}--export-all-symbols'
15163 allow_undefined_flag=unsupported
15164 always_export_symbols=no
15165 enable_shared_with_static_runtimes=yes
15166 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'
15167 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15169 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15170 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15171 # If the export-symbols file already is a .def file (1st line
15172 # is EXPORTS), use it as is; otherwise, prepend...
15173 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15174 cp $export_symbols $output_objdir/$soname.def;
15176 echo EXPORTS > $output_objdir/$soname.def;
15177 cat $export_symbols >> $output_objdir/$soname.def;
15179 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15186 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15187 link_all_deplibs=yes
15192 hardcode_shlibpath_var=no
15193 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15194 export_dynamic_flag_spec='${wl}-E'
15195 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15196 # Instead, shared libraries are loaded at an image base (0x10000000 by
15197 # default) and relocated if they conflict, which is a slow very memory
15198 # consuming and fragmenting process. To avoid this, we pick a random,
15199 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15200 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15201 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15202 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'
15205 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15207 if test "$host_os" = linux-dietlibc; then
15208 case $cc_basename in
15209 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15212 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15213 && test "$tmp_diet" = no
15215 tmp_addflag=' $pic_flag'
15216 tmp_sharedflag='-shared'
15217 case $cc_basename,$host_cpu in
15218 pgcc*) # Portland Group C compiler
15219 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'
15220 tmp_addflag=' $pic_flag'
15222 pgf77* | pgf90* | pgf95* | pgfortran*)
15223 # Portland Group f77 and f90 compilers
15224 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'
15225 tmp_addflag=' $pic_flag -Mnomain' ;;
15226 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15227 tmp_addflag=' -i_dynamic' ;;
15228 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15229 tmp_addflag=' -i_dynamic -nofor_main' ;;
15230 ifc* | ifort*) # Intel Fortran compiler
15231 tmp_addflag=' -nofor_main' ;;
15232 lf95*) # Lahey Fortran 8.1
15233 whole_archive_flag_spec=
15234 tmp_sharedflag='--shared' ;;
15235 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15236 tmp_sharedflag='-qmkshrobj'
15238 nvcc*) # Cuda Compiler Driver 2.2
15239 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'
15240 compiler_needs_object=yes
15243 case `$CC -V 2>&1 | sed 5q` in
15244 *Sun\ C*) # Sun C 5.9
15245 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'
15246 compiler_needs_object=yes
15247 tmp_sharedflag='-G' ;;
15248 *Sun\ F*) # Sun Fortran 8.3
15249 tmp_sharedflag='-G' ;;
15251 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15253 if test "x$supports_anon_versioning" = xyes; then
15254 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15255 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15256 echo "local: *; };" >> $output_objdir/$libname.ver~
15257 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15260 case $cc_basename in
15261 xlf* | bgf* | bgxlf* | mpixlf*)
15262 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15263 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15264 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15265 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15266 if test "x$supports_anon_versioning" = xyes; then
15267 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15268 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15269 echo "local: *; };" >> $output_objdir/$libname.ver~
15270 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15279 netbsd* | netbsdelf*-gnu)
15280 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15281 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15284 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15285 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15290 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15294 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15295 *** create shared libraries on Solaris systems. Therefore, libtool
15296 *** is disabling shared libraries support. We urge you to upgrade GNU
15297 *** binutils to release 2.9.1 or newer. Another option is to modify
15298 *** your PATH or compiler configuration so that the native linker is
15299 *** used, and then restart.
15302 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15303 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15304 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15310 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15311 case `$LD -v 2>&1` in
15312 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15316 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15317 *** reliably create shared libraries on SCO systems. Therefore, libtool
15318 *** is disabling shared libraries support. We urge you to upgrade GNU
15319 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15320 *** your PATH or compiler configuration so that the native linker is
15321 *** used, and then restart.
15326 # For security reasons, it is highly recommended that you always
15327 # use absolute paths for naming shared libraries, and exclude the
15328 # DT_RUNPATH tag from executables and libraries. But doing so
15329 # requires that you compile everything twice, which is a pain.
15330 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15331 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15333 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15342 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15344 hardcode_direct=yes
15345 hardcode_shlibpath_var=no
15349 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15350 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15351 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15358 if test "$ld_shlibs" = no; then
15360 hardcode_libdir_flag_spec=
15361 export_dynamic_flag_spec=
15362 whole_archive_flag_spec=
15365 # PORTME fill in a description of your system's linker (not GNU ld)
15368 allow_undefined_flag=unsupported
15369 always_export_symbols=yes
15370 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'
15371 # Note: this linker hardcodes the directories in LIBPATH if there
15372 # are no directories specified by -L.
15373 hardcode_minus_L=yes
15374 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15375 # Neither direct hardcoding nor static linking is supported with a
15377 hardcode_direct=unsupported
15382 if test "$host_cpu" = ia64; then
15383 # On IA64, the linker does run time linking by default, so we don't
15384 # have to do anything special.
15385 aix_use_runtimelinking=no
15386 exp_sym_flag='-Bexport'
15389 # If we're using GNU nm, then we don't want the "-C" option.
15390 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15391 # Also, AIX nm treats weak defined symbols like other global
15392 # defined symbols, whereas GNU nm marks them as "W".
15393 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15394 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'
15396 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'
15398 aix_use_runtimelinking=no
15400 # Test if we are trying to use run time linking or normal
15401 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15402 # need to do runtime linking.
15403 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15404 for ld_flag in $LDFLAGS; do
15405 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15406 aix_use_runtimelinking=yes
15413 exp_sym_flag='-bexport'
15414 no_entry_flag='-bnoentry'
15417 # When large executables or shared objects are built, AIX ld can
15418 # have problems creating the table of contents. If linking a library
15419 # or program results in "error TOC overflow" add -mminimal-toc to
15420 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15421 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15424 hardcode_direct=yes
15425 hardcode_direct_absolute=yes
15426 hardcode_libdir_separator=':'
15427 link_all_deplibs=yes
15428 file_list_spec='${wl}-f,'
15430 if test "$GCC" = yes; then
15431 case $host_os in aix4.[012]|aix4.[012].*)
15432 # We only want to do this on AIX 4.2 and lower, the check
15433 # below for broken collect2 doesn't work under 4.3+
15434 collect2name=`${CC} -print-prog-name=collect2`
15435 if test -f "$collect2name" &&
15436 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15438 # We have reworked collect2
15441 # We have old collect2
15442 hardcode_direct=unsupported
15443 # It fails to find uninstalled libraries when the uninstalled
15444 # path is not listed in the libpath. Setting hardcode_minus_L
15445 # to unsupported forces relinking
15446 hardcode_minus_L=yes
15447 hardcode_libdir_flag_spec='-L$libdir'
15448 hardcode_libdir_separator=
15452 shared_flag='-shared'
15453 if test "$aix_use_runtimelinking" = yes; then
15454 shared_flag="$shared_flag "'${wl}-G'
15456 link_all_deplibs=no
15459 if test "$host_cpu" = ia64; then
15460 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15461 # chokes on -Wl,-G. The following line is correct:
15464 if test "$aix_use_runtimelinking" = yes; then
15465 shared_flag='${wl}-G'
15467 shared_flag='${wl}-bM:SRE'
15472 export_dynamic_flag_spec='${wl}-bexpall'
15473 # It seems that -bexpall does not export symbols beginning with
15474 # underscore (_), so it is better to generate a list of symbols to export.
15475 always_export_symbols=yes
15476 if test "$aix_use_runtimelinking" = yes; then
15477 # Warning - without using the other runtime loading flags (-brtl),
15478 # -berok will link without error, but may produce a broken library.
15479 allow_undefined_flag='-berok'
15480 # Determine the default libpath from the value encoded in an
15481 # empty executable.
15482 if test "${lt_cv_aix_libpath+set}" = set; then
15483 aix_libpath=$lt_cv_aix_libpath
15485 if ${lt_cv_aix_libpath_+:} false; then :
15486 $as_echo_n "(cached) " >&6
15488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489 /* end confdefs.h. */
15499 if ac_fn_c_try_link "$LINENO"; then :
15501 lt_aix_libpath_sed='
15502 /Import File Strings/,/^$/ {
15504 s/^0 *\([^ ]*\) *$/\1/
15508 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15509 # Check for a 64-bit object if we didn't find anything.
15510 if test -z "$lt_cv_aix_libpath_"; then
15511 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15514 rm -f core conftest.err conftest.$ac_objext \
15515 conftest$ac_exeext conftest.$ac_ext
15516 if test -z "$lt_cv_aix_libpath_"; then
15517 lt_cv_aix_libpath_="/usr/lib:/lib"
15522 aix_libpath=$lt_cv_aix_libpath_
15525 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15526 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"
15528 if test "$host_cpu" = ia64; then
15529 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15530 allow_undefined_flag="-z nodefs"
15531 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"
15533 # Determine the default libpath from the value encoded in an
15534 # empty executable.
15535 if test "${lt_cv_aix_libpath+set}" = set; then
15536 aix_libpath=$lt_cv_aix_libpath
15538 if ${lt_cv_aix_libpath_+:} false; then :
15539 $as_echo_n "(cached) " >&6
15541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15542 /* end confdefs.h. */
15552 if ac_fn_c_try_link "$LINENO"; then :
15554 lt_aix_libpath_sed='
15555 /Import File Strings/,/^$/ {
15557 s/^0 *\([^ ]*\) *$/\1/
15561 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15562 # Check for a 64-bit object if we didn't find anything.
15563 if test -z "$lt_cv_aix_libpath_"; then
15564 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15567 rm -f core conftest.err conftest.$ac_objext \
15568 conftest$ac_exeext conftest.$ac_ext
15569 if test -z "$lt_cv_aix_libpath_"; then
15570 lt_cv_aix_libpath_="/usr/lib:/lib"
15575 aix_libpath=$lt_cv_aix_libpath_
15578 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15579 # Warning - without using the other run time loading flags,
15580 # -berok will link without error, but may produce a broken library.
15581 no_undefined_flag=' ${wl}-bernotok'
15582 allow_undefined_flag=' ${wl}-berok'
15583 if test "$with_gnu_ld" = yes; then
15584 # We only use this code for GNU lds that support --whole-archive.
15585 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15587 # Exported symbols can be pulled into shared objects from archives
15588 whole_archive_flag_spec='$convenience'
15590 archive_cmds_need_lc=yes
15591 # This is similar to how AIX traditionally builds its shared libraries.
15592 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'
15600 # see comment about AmigaOS4 .so support
15601 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15602 archive_expsym_cmds=''
15605 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)'
15606 hardcode_libdir_flag_spec='-L$libdir'
15607 hardcode_minus_L=yes
15613 export_dynamic_flag_spec=-rdynamic
15616 cygwin* | mingw* | pw32* | cegcc*)
15617 # When not using gcc, we currently assume that we are using
15618 # Microsoft Visual C++.
15619 # hardcode_libdir_flag_spec is actually meaningless, as there is
15620 # no search path for DLLs.
15621 case $cc_basename in
15624 hardcode_libdir_flag_spec=' '
15625 allow_undefined_flag=unsupported
15626 always_export_symbols=yes
15628 # Tell ltmain to make .lib files, not .a files.
15630 # Tell ltmain to make .dll files, not .so files.
15632 # FIXME: Setting linknames here is a bad hack.
15633 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15634 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15635 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15637 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15639 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15641 # The linker will not automatically build a static lib if we build a DLL.
15642 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15643 enable_shared_with_static_runtimes=yes
15644 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15645 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15647 old_postinstall_cmds='chmod 644 $oldlib'
15648 postlink_cmds='lt_outputfile="@OUTPUT@"~
15649 lt_tool_outputfile="@TOOL_OUTPUT@"~
15650 case $lt_outputfile in
15653 lt_outputfile="$lt_outputfile.exe"
15654 lt_tool_outputfile="$lt_tool_outputfile.exe"
15657 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15658 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15659 $RM "$lt_outputfile.manifest";
15663 # Assume MSVC wrapper
15664 hardcode_libdir_flag_spec=' '
15665 allow_undefined_flag=unsupported
15666 # Tell ltmain to make .lib files, not .a files.
15668 # Tell ltmain to make .dll files, not .so files.
15670 # FIXME: Setting linknames here is a bad hack.
15671 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15672 # The linker will automatically build a .lib file if we build a DLL.
15673 old_archive_from_new_cmds='true'
15674 # FIXME: Should let the user specify the lib program.
15675 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15676 enable_shared_with_static_runtimes=yes
15681 darwin* | rhapsody*)
15684 archive_cmds_need_lc=no
15686 hardcode_automatic=yes
15687 hardcode_shlibpath_var=unsupported
15688 if test "$lt_cv_ld_force_load" = "yes"; then
15689 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\"`'
15692 whole_archive_flag_spec=''
15694 link_all_deplibs=yes
15695 allow_undefined_flag="$_lt_dar_allow_undefined"
15696 case $cc_basename in
15697 ifort*) _lt_dar_can_shared=yes ;;
15698 *) _lt_dar_can_shared=$GCC ;;
15700 if test "$_lt_dar_can_shared" = "yes"; then
15701 output_verbose_link_cmd=func_echo_all
15702 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15703 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15704 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}"
15705 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}"
15714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15715 hardcode_libdir_flag_spec='-L$libdir'
15716 hardcode_shlibpath_var=no
15719 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15720 # support. Future versions do this automatically, but an explicit c++rt0.o
15721 # does not break anything, and helps significantly (at the cost of a little
15724 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15725 hardcode_libdir_flag_spec='-R$libdir'
15726 hardcode_direct=yes
15727 hardcode_shlibpath_var=no
15730 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15732 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15733 hardcode_direct=yes
15734 hardcode_minus_L=yes
15735 hardcode_shlibpath_var=no
15738 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15739 freebsd* | dragonfly*)
15740 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15741 hardcode_libdir_flag_spec='-R$libdir'
15742 hardcode_direct=yes
15743 hardcode_shlibpath_var=no
15747 if test "$GCC" = yes; then
15748 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'
15750 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'
15752 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15753 hardcode_libdir_separator=:
15754 hardcode_direct=yes
15756 # hardcode_minus_L: Not really in the search PATH,
15757 # but as the default location of the library.
15758 hardcode_minus_L=yes
15759 export_dynamic_flag_spec='${wl}-E'
15763 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15764 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15766 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15768 if test "$with_gnu_ld" = no; then
15769 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15770 hardcode_libdir_separator=:
15771 hardcode_direct=yes
15772 hardcode_direct_absolute=yes
15773 export_dynamic_flag_spec='${wl}-E'
15774 # hardcode_minus_L: Not really in the search PATH,
15775 # but as the default location of the library.
15776 hardcode_minus_L=yes
15781 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15784 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15787 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15790 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15796 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15799 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15803 # Older versions of the 11.00 compiler do not understand -b yet
15804 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15806 $as_echo_n "checking if $CC understands -b... " >&6; }
15807 if ${lt_cv_prog_compiler__b+:} false; then :
15808 $as_echo_n "(cached) " >&6
15810 lt_cv_prog_compiler__b=no
15811 save_LDFLAGS="$LDFLAGS"
15812 LDFLAGS="$LDFLAGS -b"
15813 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15814 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15815 # The linker can only warn and ignore the option if not recognized
15816 # So say no if there are warnings
15817 if test -s conftest.err; then
15818 # Append any errors to the config.log.
15819 cat conftest.err 1>&5
15820 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15822 if diff conftest.exp conftest.er2 >/dev/null; then
15823 lt_cv_prog_compiler__b=yes
15826 lt_cv_prog_compiler__b=yes
15830 LDFLAGS="$save_LDFLAGS"
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15834 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15836 if test x"$lt_cv_prog_compiler__b" = xyes; then
15837 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15839 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15845 if test "$with_gnu_ld" = no; then
15846 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15847 hardcode_libdir_separator=:
15852 hardcode_shlibpath_var=no
15855 hardcode_direct=yes
15856 hardcode_direct_absolute=yes
15857 export_dynamic_flag_spec='${wl}-E'
15859 # hardcode_minus_L: Not really in the search PATH,
15860 # but as the default location of the library.
15861 hardcode_minus_L=yes
15867 irix5* | irix6* | nonstopux*)
15868 if test "$GCC" = yes; then
15869 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'
15870 # Try to use the -exported_symbol ld option, if it does not
15871 # work, assume that -exports_file does not work either and
15872 # implicitly export all symbols.
15873 # This should be the same for all languages, so no per-tag cache variable.
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15875 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15876 if ${lt_cv_irix_exported_symbol+:} false; then :
15877 $as_echo_n "(cached) " >&6
15879 save_LDFLAGS="$LDFLAGS"
15880 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882 /* end confdefs.h. */
15883 int foo (void) { return 0; }
15885 if ac_fn_c_try_link "$LINENO"; then :
15886 lt_cv_irix_exported_symbol=yes
15888 lt_cv_irix_exported_symbol=no
15890 rm -f core conftest.err conftest.$ac_objext \
15891 conftest$ac_exeext conftest.$ac_ext
15892 LDFLAGS="$save_LDFLAGS"
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15895 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15896 if test "$lt_cv_irix_exported_symbol" = yes; then
15897 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'
15900 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'
15901 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'
15903 archive_cmds_need_lc='no'
15904 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15905 hardcode_libdir_separator=:
15907 link_all_deplibs=yes
15910 netbsd* | netbsdelf*-gnu)
15911 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15914 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15916 hardcode_libdir_flag_spec='-R$libdir'
15917 hardcode_direct=yes
15918 hardcode_shlibpath_var=no
15922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15923 hardcode_direct=yes
15924 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15925 hardcode_libdir_separator=:
15926 hardcode_shlibpath_var=no
15933 if test -f /usr/libexec/ld.so; then
15934 hardcode_direct=yes
15935 hardcode_shlibpath_var=no
15936 hardcode_direct_absolute=yes
15937 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15938 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15939 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15940 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15941 export_dynamic_flag_spec='${wl}-E'
15944 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15945 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15946 hardcode_libdir_flag_spec='-R$libdir'
15949 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15950 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15960 hardcode_libdir_flag_spec='-L$libdir'
15961 hardcode_minus_L=yes
15962 allow_undefined_flag=unsupported
15963 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'
15964 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15968 if test "$GCC" = yes; then
15969 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15970 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'
15972 allow_undefined_flag=' -expect_unresolved \*'
15973 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'
15975 archive_cmds_need_lc='no'
15976 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15977 hardcode_libdir_separator=:
15980 osf4* | osf5*) # as osf3* with the addition of -msym flag
15981 if test "$GCC" = yes; then
15982 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15983 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'
15984 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15986 allow_undefined_flag=' -expect_unresolved \*'
15987 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'
15988 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~
15989 $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'
15991 # Both c and cxx compiler support -rpath directly
15992 hardcode_libdir_flag_spec='-rpath $libdir'
15994 archive_cmds_need_lc='no'
15995 hardcode_libdir_separator=:
15999 no_undefined_flag=' -z defs'
16000 if test "$GCC" = yes; then
16002 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16003 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16004 $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'
16006 case `$CC -V 2>&1` in
16009 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16010 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16011 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16015 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16016 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16017 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16021 hardcode_libdir_flag_spec='-R$libdir'
16022 hardcode_shlibpath_var=no
16024 solaris2.[0-5] | solaris2.[0-5].*) ;;
16026 # The compiler driver will combine and reorder linker options,
16027 # but understands `-z linker_flag'. GCC discards it without `$wl',
16028 # but is careful enough not to reorder.
16029 # Supported since Solaris 2.6 (maybe 2.5.1?)
16030 if test "$GCC" = yes; then
16031 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16033 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16037 link_all_deplibs=yes
16041 if test "x$host_vendor" = xsequent; then
16042 # Use $CC to link under sequent, because it throws in some extra .o
16043 # files that make .init and .fini sections work.
16044 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16046 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16048 hardcode_libdir_flag_spec='-L$libdir'
16049 hardcode_direct=yes
16050 hardcode_minus_L=yes
16051 hardcode_shlibpath_var=no
16055 case $host_vendor in
16057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16058 hardcode_direct=yes # is this really true???
16061 ## LD is ld it makes a PLAMLIB
16062 ## CC just makes a GrossModule.
16063 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16064 reload_cmds='$CC -r -o $output$reload_objs'
16068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16069 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16072 runpath_var='LD_RUN_PATH'
16073 hardcode_shlibpath_var=no
16077 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16078 hardcode_shlibpath_var=no
16079 export_dynamic_flag_spec='-Bexport'
16083 if test -d /usr/nec; then
16084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16085 hardcode_shlibpath_var=no
16086 runpath_var=LD_RUN_PATH
16087 hardcode_runpath_var=yes
16092 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16093 no_undefined_flag='${wl}-z,text'
16094 archive_cmds_need_lc=no
16095 hardcode_shlibpath_var=no
16096 runpath_var='LD_RUN_PATH'
16098 if test "$GCC" = yes; then
16099 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16100 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16102 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16103 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16107 sysv5* | sco3.2v5* | sco5v6*)
16108 # Note: We can NOT use -z defs as we might desire, because we do not
16109 # link with -lc, and that would cause any symbols used from libc to
16110 # always be unresolved, which means just about no library would
16111 # ever link correctly. If we're not using GNU ld we use -z text
16112 # though, which does catch some bad symbols but isn't as heavy-handed
16114 no_undefined_flag='${wl}-z,text'
16115 allow_undefined_flag='${wl}-z,nodefs'
16116 archive_cmds_need_lc=no
16117 hardcode_shlibpath_var=no
16118 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16119 hardcode_libdir_separator=':'
16120 link_all_deplibs=yes
16121 export_dynamic_flag_spec='${wl}-Bexport'
16122 runpath_var='LD_RUN_PATH'
16124 if test "$GCC" = yes; then
16125 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16126 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16128 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16129 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16135 hardcode_libdir_flag_spec='-L$libdir'
16136 hardcode_shlibpath_var=no
16144 if test x$host_vendor = xsni; then
16146 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16147 export_dynamic_flag_spec='${wl}-Blargedynsym'
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16154 $as_echo "$ld_shlibs" >&6; }
16155 test "$ld_shlibs" = no && can_build_shared=no
16157 with_gnu_ld=$with_gnu_ld
16174 # Do we need to explicitly link libc?
16176 case "x$archive_cmds_need_lc" in
16178 # Assume -lc should be added
16179 archive_cmds_need_lc=yes
16181 if test "$enable_shared" = yes && test "$GCC" = yes; then
16182 case $archive_cmds in
16184 # FIXME: we may have to deal with multi-command sequences.
16187 # Test whether the compiler implicitly links with -lc since on some
16188 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16189 # to ld, don't add -lc before -lgcc.
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16191 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16192 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16193 $as_echo_n "(cached) " >&6
16196 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16199 (eval $ac_compile) 2>&5
16201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16202 test $ac_status = 0; } 2>conftest.err; then
16205 libobjs=conftest.$ac_objext
16207 wl=$lt_prog_compiler_wl
16208 pic_flag=$lt_prog_compiler_pic
16214 lt_save_allow_undefined_flag=$allow_undefined_flag
16215 allow_undefined_flag=
16216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16217 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16220 test $ac_status = 0; }
16222 lt_cv_archive_cmds_need_lc=no
16224 lt_cv_archive_cmds_need_lc=yes
16226 allow_undefined_flag=$lt_save_allow_undefined_flag
16228 cat conftest.err 1>&5
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16234 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16235 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16394 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16396 if test "$GCC" = yes; then
16398 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16399 *) lt_awk_arg="/^libraries:/" ;;
16402 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16403 *) lt_sed_strip_eq="s,=/,/,g" ;;
16405 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16406 case $lt_search_path_spec in
16408 # if the path contains ";" then we assume it to be the separator
16409 # otherwise default to the standard path separator (i.e. ":") - it is
16410 # assumed that no part of a normal pathname contains ";" but that should
16411 # okay in the real world where ";" in dirpaths is itself problematic.
16412 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16415 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16418 # Ok, now we have the path, separated by spaces, we can step through it
16419 # and add multilib dir if necessary.
16420 lt_tmp_lt_search_path_spec=
16421 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16422 for lt_sys_path in $lt_search_path_spec; do
16423 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16424 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16426 test -d "$lt_sys_path" && \
16427 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16430 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16431 BEGIN {RS=" "; FS="/|\n";} {
16434 for (lt_i = NF; lt_i > 0; lt_i--) {
16435 if ($lt_i != "" && $lt_i != ".") {
16436 if ($lt_i == "..") {
16439 if (lt_count == 0) {
16440 lt_foo="/" $lt_i lt_foo;
16447 if (lt_foo != "") { lt_freq[lt_foo]++; }
16448 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16450 # AWK program above erroneously prepends '/' to C:/dos/paths
16453 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16454 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16456 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16458 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16460 library_names_spec=
16461 libname_spec='lib$name'
16465 postuninstall_cmds=
16469 shlibpath_overrides_runpath=unknown
16471 dynamic_linker="$host_os ld.so"
16472 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16473 need_lib_prefix=unknown
16474 hardcode_into_libs=no
16476 # when you set need_version to no, make sure it does not cause -set_version
16477 # flags to be left without arguments
16478 need_version=unknown
16482 version_type=linux # correct to gnu/linux during the next big refactor
16483 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16484 shlibpath_var=LIBPATH
16486 # AIX 3 has no versioning support, so we append a major version to the name.
16487 soname_spec='${libname}${release}${shared_ext}$major'
16491 version_type=linux # correct to gnu/linux during the next big refactor
16494 hardcode_into_libs=yes
16495 if test "$host_cpu" = ia64; then
16496 # AIX 5 supports IA64
16497 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16498 shlibpath_var=LD_LIBRARY_PATH
16500 # With GCC up to 2.95.x, collect2 would create an import file
16501 # for dependence libraries. The import file would start with
16502 # the line `#! .'. This would cause the generated library to
16503 # depend on `.', always an invalid library. This was fixed in
16504 # development snapshots of GCC prior to 3.0.
16506 aix4 | aix4.[01] | aix4.[01].*)
16507 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16509 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16512 can_build_shared=no
16516 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16517 # soname into executable. Probably we can add versioning support to
16518 # collect2, so additional links can be useful in future.
16519 if test "$aix_use_runtimelinking" = yes; then
16520 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16521 # instead of lib<name>.a to let people know that these are not
16522 # typical AIX shared libraries.
16523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16525 # We preserve .a as extension for shared libraries through AIX4.2
16526 # and later when we are not doing run time linking.
16527 library_names_spec='${libname}${release}.a $libname.a'
16528 soname_spec='${libname}${release}${shared_ext}$major'
16530 shlibpath_var=LIBPATH
16537 # Since July 2007 AmigaOS4 officially supports .so libraries.
16538 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16542 library_names_spec='$libname.ixlibrary $libname.a'
16543 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16544 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'
16550 library_names_spec='${libname}${shared_ext}'
16551 dynamic_linker="$host_os ld.so"
16552 shlibpath_var=LIBRARY_PATH
16556 version_type=linux # correct to gnu/linux during the next big refactor
16558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16559 soname_spec='${libname}${release}${shared_ext}$major'
16560 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16561 shlibpath_var=LD_LIBRARY_PATH
16562 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16563 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16564 # the default ld.so.conf also contains /usr/contrib/lib and
16565 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16566 # libtool to hard-code these into programs
16569 cygwin* | mingw* | pw32* | cegcc*)
16570 version_type=windows
16575 case $GCC,$cc_basename in
16578 library_names_spec='$libname.dll.a'
16579 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16580 postinstall_cmds='base_file=`basename \${file}`~
16581 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16582 dldir=$destdir/`dirname \$dlpath`~
16583 test -d \$dldir || mkdir -p \$dldir~
16584 $install_prog $dir/$dlname \$dldir/$dlname~
16585 chmod a+x \$dldir/$dlname~
16586 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16587 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16589 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16590 dlpath=$dir/\$dldll~
16592 shlibpath_overrides_runpath=yes
16596 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16597 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16599 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16602 # MinGW DLLs use traditional 'lib' prefix
16603 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16606 # pw32 DLLs use 'pw' prefix rather than 'lib'
16607 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16610 dynamic_linker='Win32 ld.exe'
16615 libname_spec='$name'
16616 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16617 library_names_spec='${libname}.dll.lib'
16621 sys_lib_search_path_spec=
16624 for lt_path in $LIB
16627 # Let DOS variable expansion print the short 8.3 style file name.
16628 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16629 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16632 # Convert to MSYS style.
16633 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16636 # Convert to unix form, then to dos form, then back to unix form
16637 # but this time dos style (no spaces!) so that the unix form looks
16638 # like /cygdrive/c/PROGRA~1:/cygdr...
16639 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16640 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16641 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16644 sys_lib_search_path_spec="$LIB"
16645 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16646 # It is most probably a Windows format PATH.
16647 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16649 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16651 # FIXME: find the short name or the path components, as spaces are
16652 # common. (e.g. "Program Files" -> "PROGRA~1")
16656 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16657 postinstall_cmds='base_file=`basename \${file}`~
16658 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16659 dldir=$destdir/`dirname \$dlpath`~
16660 test -d \$dldir || mkdir -p \$dldir~
16661 $install_prog $dir/$dlname \$dldir/$dlname'
16662 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16663 dlpath=$dir/\$dldll~
16665 shlibpath_overrides_runpath=yes
16666 dynamic_linker='Win32 link.exe'
16670 # Assume MSVC wrapper
16671 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16672 dynamic_linker='Win32 ld.exe'
16675 # FIXME: first we should search . and the directory the executable is in
16679 darwin* | rhapsody*)
16680 dynamic_linker="$host_os dyld"
16681 version_type=darwin
16684 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16685 soname_spec='${libname}${release}${major}$shared_ext'
16686 shlibpath_overrides_runpath=yes
16687 shlibpath_var=DYLD_LIBRARY_PATH
16688 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16690 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16691 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16695 version_type=linux # correct to gnu/linux during the next big refactor
16698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16699 soname_spec='${libname}${release}${shared_ext}$major'
16700 shlibpath_var=LD_LIBRARY_PATH
16703 freebsd* | dragonfly*)
16704 # DragonFly does not have aout. When/if they implement a new
16705 # versioning mechanism, adjust this.
16706 if test -x /usr/bin/objformat; then
16707 objformat=`/usr/bin/objformat`
16710 freebsd[23].*) objformat=aout ;;
16711 *) objformat=elf ;;
16714 version_type=freebsd-$objformat
16715 case $version_type in
16717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16722 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16726 shlibpath_var=LD_LIBRARY_PATH
16729 shlibpath_overrides_runpath=yes
16731 freebsd3.[01]* | freebsdelf3.[01]*)
16732 shlibpath_overrides_runpath=yes
16733 hardcode_into_libs=yes
16735 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16736 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16737 shlibpath_overrides_runpath=no
16738 hardcode_into_libs=yes
16740 *) # from 4.6 on, and DragonFly
16741 shlibpath_overrides_runpath=yes
16742 hardcode_into_libs=yes
16748 version_type=linux # correct to gnu/linux during the next big refactor
16751 dynamic_linker="$host_os runtime_loader"
16752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16753 soname_spec='${libname}${release}${shared_ext}$major'
16754 shlibpath_var=LIBRARY_PATH
16755 shlibpath_overrides_runpath=yes
16756 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16757 hardcode_into_libs=yes
16760 hpux9* | hpux10* | hpux11*)
16761 # Give a soname corresponding to the major version so that dld.sl refuses to
16762 # link against other versions.
16769 hardcode_into_libs=yes
16770 dynamic_linker="$host_os dld.so"
16771 shlibpath_var=LD_LIBRARY_PATH
16772 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16774 soname_spec='${libname}${release}${shared_ext}$major'
16775 if test "X$HPUX_IA64_MODE" = X32; then
16776 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16778 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16780 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16784 hardcode_into_libs=yes
16785 dynamic_linker="$host_os dld.sl"
16786 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16787 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16789 soname_spec='${libname}${release}${shared_ext}$major'
16790 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16791 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16795 dynamic_linker="$host_os dld.sl"
16796 shlibpath_var=SHLIB_PATH
16797 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16799 soname_spec='${libname}${release}${shared_ext}$major'
16802 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16803 postinstall_cmds='chmod 555 $lib'
16804 # or fails outright, so override atomically:
16805 install_override_mode=555
16809 version_type=linux # correct to gnu/linux during the next big refactor
16812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16813 soname_spec='${libname}${release}${shared_ext}$major'
16814 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16815 shlibpath_var=LD_LIBRARY_PATH
16816 shlibpath_overrides_runpath=no
16817 hardcode_into_libs=yes
16820 irix5* | irix6* | nonstopux*)
16822 nonstopux*) version_type=nonstopux ;;
16824 if test "$lt_cv_prog_gnu_ld" = yes; then
16825 version_type=linux # correct to gnu/linux during the next big refactor
16832 soname_spec='${libname}${release}${shared_ext}$major'
16833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16835 irix5* | nonstopux*)
16836 libsuff= shlibsuff=
16839 case $LD in # libtool.m4 will add one of these switches to LD
16840 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16841 libsuff= shlibsuff= libmagic=32-bit;;
16842 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16843 libsuff=32 shlibsuff=N32 libmagic=N32;;
16844 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16845 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16846 *) libsuff= shlibsuff= libmagic=never-match;;
16850 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16851 shlibpath_overrides_runpath=no
16852 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16853 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16854 hardcode_into_libs=yes
16857 # No shared lib support for Linux oldld, aout, or coff.
16858 linux*oldld* | linux*aout* | linux*coff*)
16862 # This must be glibc/ELF.
16863 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16864 version_type=linux # correct to gnu/linux during the next big refactor
16867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16868 soname_spec='${libname}${release}${shared_ext}$major'
16869 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16870 shlibpath_var=LD_LIBRARY_PATH
16871 shlibpath_overrides_runpath=no
16873 # Some binutils ld are patched to set DT_RUNPATH
16874 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16875 $as_echo_n "(cached) " >&6
16877 lt_cv_shlibpath_overrides_runpath=no
16878 save_LDFLAGS=$LDFLAGS
16879 save_libdir=$libdir
16880 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16881 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16883 /* end confdefs.h. */
16893 if ac_fn_c_try_link "$LINENO"; then :
16894 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16895 lt_cv_shlibpath_overrides_runpath=yes
16898 rm -f core conftest.err conftest.$ac_objext \
16899 conftest$ac_exeext conftest.$ac_ext
16900 LDFLAGS=$save_LDFLAGS
16901 libdir=$save_libdir
16905 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16907 # This implies no fast_install, which is unacceptable.
16908 # Some rework will be needed to allow for fast_install
16909 # before this can be enabled.
16910 hardcode_into_libs=yes
16912 # Append ld.so.conf contents to the search path
16913 if test -f /etc/ld.so.conf; then
16914 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' ' '`
16915 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16918 # We used to test for /lib/ld.so.1 and disable shared libraries on
16919 # powerpc, because MkLinux only supported shared libraries with the
16920 # GNU dynamic linker. Since this was broken with cross compilers,
16921 # most powerpc-linux boxes support dynamic linking these days and
16922 # people can always --disable-shared, the test was removed, and we
16923 # assume the GNU/Linux dynamic linker is in use.
16924 dynamic_linker='GNU/Linux ld.so'
16931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16932 soname_spec='${libname}${release}${shared_ext}$major'
16933 shlibpath_var=LD_LIBRARY_PATH
16934 shlibpath_overrides_runpath=no
16935 hardcode_into_libs=yes
16936 dynamic_linker='NetBSD ld.elf_so'
16943 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16945 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16946 dynamic_linker='NetBSD (a.out) ld.so'
16948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16949 soname_spec='${libname}${release}${shared_ext}$major'
16950 dynamic_linker='NetBSD ld.elf_so'
16952 shlibpath_var=LD_LIBRARY_PATH
16953 shlibpath_overrides_runpath=yes
16954 hardcode_into_libs=yes
16958 version_type=linux # correct to gnu/linux during the next big refactor
16959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16960 shlibpath_var=LD_LIBRARY_PATH
16961 shlibpath_overrides_runpath=yes
16968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16969 soname_spec='${libname}${release}${shared_ext}$major'
16970 shlibpath_var=LD_LIBRARY_PATH
16971 shlibpath_overrides_runpath=no
16972 hardcode_into_libs=yes
16973 dynamic_linker='ldqnx.so'
16978 sys_lib_dlsearch_path_spec="/usr/lib"
16980 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16982 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16983 *) need_version=no ;;
16985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16987 shlibpath_var=LD_LIBRARY_PATH
16988 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16990 openbsd2.[89] | openbsd2.[89].*)
16991 shlibpath_overrides_runpath=no
16994 shlibpath_overrides_runpath=yes
16998 shlibpath_overrides_runpath=yes
17003 libname_spec='$name'
17006 library_names_spec='$libname${shared_ext} $libname.a'
17007 dynamic_linker='OS/2 ld.exe'
17008 shlibpath_var=LIBPATH
17011 osf3* | osf4* | osf5*)
17015 soname_spec='${libname}${release}${shared_ext}$major'
17016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17017 shlibpath_var=LD_LIBRARY_PATH
17018 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17019 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17027 version_type=linux # correct to gnu/linux during the next big refactor
17030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17031 soname_spec='${libname}${release}${shared_ext}$major'
17032 shlibpath_var=LD_LIBRARY_PATH
17033 shlibpath_overrides_runpath=yes
17034 hardcode_into_libs=yes
17035 # ldd complains unless libraries are executable
17036 postinstall_cmds='chmod +x $lib'
17041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17042 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17043 shlibpath_var=LD_LIBRARY_PATH
17044 shlibpath_overrides_runpath=yes
17045 if test "$with_gnu_ld" = yes; then
17052 version_type=linux # correct to gnu/linux during the next big refactor
17053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17054 soname_spec='${libname}${release}${shared_ext}$major'
17055 shlibpath_var=LD_LIBRARY_PATH
17056 case $host_vendor in
17058 shlibpath_overrides_runpath=no
17060 runpath_var=LD_RUN_PATH
17068 shlibpath_overrides_runpath=no
17069 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17075 if test -d /usr/nec ;then
17076 version_type=linux # correct to gnu/linux during the next big refactor
17077 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17078 soname_spec='$libname${shared_ext}.$major'
17079 shlibpath_var=LD_LIBRARY_PATH
17083 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17084 version_type=freebsd-elf
17087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17088 soname_spec='${libname}${release}${shared_ext}$major'
17089 shlibpath_var=LD_LIBRARY_PATH
17090 shlibpath_overrides_runpath=yes
17091 hardcode_into_libs=yes
17092 if test "$with_gnu_ld" = yes; then
17093 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17095 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17098 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17102 sys_lib_dlsearch_path_spec='/usr/lib'
17106 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17107 version_type=linux # correct to gnu/linux during the next big refactor
17110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17111 shlibpath_var=LD_LIBRARY_PATH
17112 shlibpath_overrides_runpath=no
17113 hardcode_into_libs=yes
17117 version_type=linux # correct to gnu/linux during the next big refactor
17118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17119 soname_spec='${libname}${release}${shared_ext}$major'
17120 shlibpath_var=LD_LIBRARY_PATH
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17128 $as_echo "$dynamic_linker" >&6; }
17129 test "$dynamic_linker" = no && can_build_shared=no
17131 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17132 if test "$GCC" = yes; then
17133 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17136 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17137 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17139 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17140 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17235 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17237 if test -n "$hardcode_libdir_flag_spec" ||
17238 test -n "$runpath_var" ||
17239 test "X$hardcode_automatic" = "Xyes" ; then
17241 # We can hardcode non-existent directories.
17242 if test "$hardcode_direct" != no &&
17243 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17244 # have to relink, otherwise we might link with an installed library
17245 # when we should be linking with a yet-to-be-installed one
17246 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17247 test "$hardcode_minus_L" != no; then
17248 # Linking always hardcodes the temporary library directory.
17249 hardcode_action=relink
17251 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17252 hardcode_action=immediate
17255 # We cannot hardcode anything, or else we can only hardcode existing
17257 hardcode_action=unsupported
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17260 $as_echo "$hardcode_action" >&6; }
17262 if test "$hardcode_action" = relink ||
17263 test "$inherit_rpath" = yes; then
17264 # Fast installation is not supported
17265 enable_fast_install=no
17266 elif test "$shlibpath_overrides_runpath" = yes ||
17267 test "$enable_shared" = no; then
17268 # Fast installation is not necessary
17269 enable_fast_install=needless
17277 if test "x$enable_dlopen" != xyes; then
17278 enable_dlopen=unknown
17279 enable_dlopen_self=unknown
17280 enable_dlopen_self_static=unknown
17287 lt_cv_dlopen="load_add_on"
17289 lt_cv_dlopen_self=yes
17292 mingw* | pw32* | cegcc*)
17293 lt_cv_dlopen="LoadLibrary"
17298 lt_cv_dlopen="dlopen"
17303 # if libdl is installed we need to link against it
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17305 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17306 if ${ac_cv_lib_dl_dlopen+:} false; then :
17307 $as_echo_n "(cached) " >&6
17309 ac_check_lib_save_LIBS=$LIBS
17311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17312 /* end confdefs.h. */
17314 /* Override any GCC internal prototype to avoid an error.
17315 Use char because int might match the return type of a GCC
17316 builtin and then its argument prototype would still apply. */
17329 if ac_fn_c_try_link "$LINENO"; then :
17330 ac_cv_lib_dl_dlopen=yes
17332 ac_cv_lib_dl_dlopen=no
17334 rm -f core conftest.err conftest.$ac_objext \
17335 conftest$ac_exeext conftest.$ac_ext
17336 LIBS=$ac_check_lib_save_LIBS
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17339 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17340 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17341 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17344 lt_cv_dlopen="dyld"
17346 lt_cv_dlopen_self=yes
17353 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17354 if test "x$ac_cv_func_shl_load" = xyes; then :
17355 lt_cv_dlopen="shl_load"
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17358 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17359 if ${ac_cv_lib_dld_shl_load+:} false; then :
17360 $as_echo_n "(cached) " >&6
17362 ac_check_lib_save_LIBS=$LIBS
17364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17365 /* end confdefs.h. */
17367 /* Override any GCC internal prototype to avoid an error.
17368 Use char because int might match the return type of a GCC
17369 builtin and then its argument prototype would still apply. */
17377 return shl_load ();
17382 if ac_fn_c_try_link "$LINENO"; then :
17383 ac_cv_lib_dld_shl_load=yes
17385 ac_cv_lib_dld_shl_load=no
17387 rm -f core conftest.err conftest.$ac_objext \
17388 conftest$ac_exeext conftest.$ac_ext
17389 LIBS=$ac_check_lib_save_LIBS
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17392 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17393 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17394 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17396 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17397 if test "x$ac_cv_func_dlopen" = xyes; then :
17398 lt_cv_dlopen="dlopen"
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17401 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17402 if ${ac_cv_lib_dl_dlopen+:} false; then :
17403 $as_echo_n "(cached) " >&6
17405 ac_check_lib_save_LIBS=$LIBS
17407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17408 /* end confdefs.h. */
17410 /* Override any GCC internal prototype to avoid an error.
17411 Use char because int might match the return type of a GCC
17412 builtin and then its argument prototype would still apply. */
17425 if ac_fn_c_try_link "$LINENO"; then :
17426 ac_cv_lib_dl_dlopen=yes
17428 ac_cv_lib_dl_dlopen=no
17430 rm -f core conftest.err conftest.$ac_objext \
17431 conftest$ac_exeext conftest.$ac_ext
17432 LIBS=$ac_check_lib_save_LIBS
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17435 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17436 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17437 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17440 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17441 if ${ac_cv_lib_svld_dlopen+:} false; then :
17442 $as_echo_n "(cached) " >&6
17444 ac_check_lib_save_LIBS=$LIBS
17445 LIBS="-lsvld $LIBS"
17446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17447 /* end confdefs.h. */
17449 /* Override any GCC internal prototype to avoid an error.
17450 Use char because int might match the return type of a GCC
17451 builtin and then its argument prototype would still apply. */
17464 if ac_fn_c_try_link "$LINENO"; then :
17465 ac_cv_lib_svld_dlopen=yes
17467 ac_cv_lib_svld_dlopen=no
17469 rm -f core conftest.err conftest.$ac_objext \
17470 conftest$ac_exeext conftest.$ac_ext
17471 LIBS=$ac_check_lib_save_LIBS
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17474 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17475 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17476 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17479 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17480 if ${ac_cv_lib_dld_dld_link+:} false; then :
17481 $as_echo_n "(cached) " >&6
17483 ac_check_lib_save_LIBS=$LIBS
17485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17486 /* end confdefs.h. */
17488 /* Override any GCC internal prototype to avoid an error.
17489 Use char because int might match the return type of a GCC
17490 builtin and then its argument prototype would still apply. */
17498 return dld_link ();
17503 if ac_fn_c_try_link "$LINENO"; then :
17504 ac_cv_lib_dld_dld_link=yes
17506 ac_cv_lib_dld_dld_link=no
17508 rm -f core conftest.err conftest.$ac_objext \
17509 conftest$ac_exeext conftest.$ac_ext
17510 LIBS=$ac_check_lib_save_LIBS
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17513 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17514 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17515 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17536 if test "x$lt_cv_dlopen" != xno; then
17542 case $lt_cv_dlopen in
17544 save_CPPFLAGS="$CPPFLAGS"
17545 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17547 save_LDFLAGS="$LDFLAGS"
17548 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17551 LIBS="$lt_cv_dlopen_libs $LIBS"
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17554 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17555 if ${lt_cv_dlopen_self+:} false; then :
17556 $as_echo_n "(cached) " >&6
17558 if test "$cross_compiling" = yes; then :
17559 lt_cv_dlopen_self=cross
17561 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17562 lt_status=$lt_dlunknown
17563 cat > conftest.$ac_ext <<_LT_EOF
17564 #line $LINENO "configure"
17565 #include "confdefs.h"
17574 # define LT_DLGLOBAL RTLD_GLOBAL
17577 # define LT_DLGLOBAL DL_GLOBAL
17579 # define LT_DLGLOBAL 0
17583 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17584 find out it does not work in some platform. */
17585 #ifndef LT_DLLAZY_OR_NOW
17587 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17590 # define LT_DLLAZY_OR_NOW DL_LAZY
17593 # define LT_DLLAZY_OR_NOW RTLD_NOW
17596 # define LT_DLLAZY_OR_NOW DL_NOW
17598 # define LT_DLLAZY_OR_NOW 0
17605 /* When -fvisbility=hidden is used, assume the code has been annotated
17606 correspondingly for the symbols needed. */
17607 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17608 int fnord () __attribute__((visibility("default")));
17611 int fnord () { return 42; }
17614 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17615 int status = $lt_dlunknown;
17619 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17622 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17623 else puts (dlerror ());
17625 /* dlclose (self); */
17633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17634 (eval $ac_link) 2>&5
17636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17637 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17638 (./conftest; exit; ) >&5 2>/dev/null
17640 case x$lt_status in
17641 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17642 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17643 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17646 # compilation failed
17647 lt_cv_dlopen_self=no
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17655 $as_echo "$lt_cv_dlopen_self" >&6; }
17657 if test "x$lt_cv_dlopen_self" = xyes; then
17658 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17660 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17661 if ${lt_cv_dlopen_self_static+:} false; then :
17662 $as_echo_n "(cached) " >&6
17664 if test "$cross_compiling" = yes; then :
17665 lt_cv_dlopen_self_static=cross
17667 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17668 lt_status=$lt_dlunknown
17669 cat > conftest.$ac_ext <<_LT_EOF
17670 #line $LINENO "configure"
17671 #include "confdefs.h"
17680 # define LT_DLGLOBAL RTLD_GLOBAL
17683 # define LT_DLGLOBAL DL_GLOBAL
17685 # define LT_DLGLOBAL 0
17689 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17690 find out it does not work in some platform. */
17691 #ifndef LT_DLLAZY_OR_NOW
17693 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17696 # define LT_DLLAZY_OR_NOW DL_LAZY
17699 # define LT_DLLAZY_OR_NOW RTLD_NOW
17702 # define LT_DLLAZY_OR_NOW DL_NOW
17704 # define LT_DLLAZY_OR_NOW 0
17711 /* When -fvisbility=hidden is used, assume the code has been annotated
17712 correspondingly for the symbols needed. */
17713 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17714 int fnord () __attribute__((visibility("default")));
17717 int fnord () { return 42; }
17720 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17721 int status = $lt_dlunknown;
17725 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17728 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17729 else puts (dlerror ());
17731 /* dlclose (self); */
17739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17740 (eval $ac_link) 2>&5
17742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17743 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17744 (./conftest; exit; ) >&5 2>/dev/null
17746 case x$lt_status in
17747 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17748 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17749 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17752 # compilation failed
17753 lt_cv_dlopen_self_static=no
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17761 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17764 CPPFLAGS="$save_CPPFLAGS"
17765 LDFLAGS="$save_LDFLAGS"
17770 case $lt_cv_dlopen_self in
17771 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17772 *) enable_dlopen_self=unknown ;;
17775 case $lt_cv_dlopen_self_static in
17776 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17777 *) enable_dlopen_self_static=unknown ;;
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17800 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17801 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17802 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17803 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17805 $as_echo "yes" >&6; }
17807 # FIXME - insert some real tests, host_os isn't really good enough
17810 if test -n "$STRIP" ; then
17811 striplib="$STRIP -x"
17812 old_striplib="$STRIP -S"
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17814 $as_echo "yes" >&6; }
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17817 $as_echo "no" >&6; }
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17822 $as_echo "no" >&6; }
17838 # Report which library types will actually be built
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17840 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17842 $as_echo "$can_build_shared" >&6; }
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17845 $as_echo_n "checking whether to build shared libraries... " >&6; }
17846 test "$can_build_shared" = "no" && enable_shared=no
17848 # On AIX, shared libraries and static libraries use the same namespace, and
17849 # are all built from PIC.
17852 test "$enable_shared" = yes && enable_static=no
17853 if test -n "$RANLIB"; then
17854 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17855 postinstall_cmds='$RANLIB $lib'
17860 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17861 test "$enable_shared" = yes && enable_static=no
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17866 $as_echo "$enable_shared" >&6; }
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17869 $as_echo_n "checking whether to build static libraries... " >&6; }
17870 # Make sure either enable_shared or enable_static is yes.
17871 test "$enable_shared" = yes || enable_static=yes
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17873 $as_echo "$enable_static" >&6; }
17880 ac_cpp='$CPP $CPPFLAGS'
17881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17901 ac_config_commands="$ac_config_commands libtool"
17906 # Only expand once:
17909 # Check whether --enable-largefile was given.
17910 if test "${enable_largefile+set}" = set; then :
17911 enableval=$enable_largefile;
17914 if test "$enable_largefile" != no; then
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17917 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17918 if ${ac_cv_sys_largefile_CC+:} false; then :
17919 $as_echo_n "(cached) " >&6
17921 ac_cv_sys_largefile_CC=no
17922 if test "$GCC" != yes; then
17925 # IRIX 6.2 and later do not support large files by default,
17926 # so use the C compiler's -n32 option if that helps.
17927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17928 /* end confdefs.h. */
17929 #include <sys/types.h>
17930 /* Check that off_t can represent 2**63 - 1 correctly.
17931 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17932 since some C++ compilers masquerading as C compilers
17933 incorrectly reject 9223372036854775807. */
17934 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17935 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17936 && LARGE_OFF_T % 2147483647 == 1)
17946 if ac_fn_c_try_compile "$LINENO"; then :
17949 rm -f core conftest.err conftest.$ac_objext
17951 if ac_fn_c_try_compile "$LINENO"; then :
17952 ac_cv_sys_largefile_CC=' -n32'; break
17954 rm -f core conftest.err conftest.$ac_objext
17958 rm -f conftest.$ac_ext
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17962 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17963 if test "$ac_cv_sys_largefile_CC" != no; then
17964 CC=$CC$ac_cv_sys_largefile_CC
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17968 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17969 if ${ac_cv_sys_file_offset_bits+:} false; then :
17970 $as_echo_n "(cached) " >&6
17973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17974 /* end confdefs.h. */
17975 #include <sys/types.h>
17976 /* Check that off_t can represent 2**63 - 1 correctly.
17977 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17978 since some C++ compilers masquerading as C compilers
17979 incorrectly reject 9223372036854775807. */
17980 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17981 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17982 && LARGE_OFF_T % 2147483647 == 1)
17992 if ac_fn_c_try_compile "$LINENO"; then :
17993 ac_cv_sys_file_offset_bits=no; break
17995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17997 /* end confdefs.h. */
17998 #define _FILE_OFFSET_BITS 64
17999 #include <sys/types.h>
18000 /* Check that off_t can represent 2**63 - 1 correctly.
18001 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18002 since some C++ compilers masquerading as C compilers
18003 incorrectly reject 9223372036854775807. */
18004 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18005 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18006 && LARGE_OFF_T % 2147483647 == 1)
18016 if ac_fn_c_try_compile "$LINENO"; then :
18017 ac_cv_sys_file_offset_bits=64; break
18019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18020 ac_cv_sys_file_offset_bits=unknown
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18025 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18026 case $ac_cv_sys_file_offset_bits in #(
18029 cat >>confdefs.h <<_ACEOF
18030 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18035 if test $ac_cv_sys_file_offset_bits = unknown; then
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18037 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18038 if ${ac_cv_sys_large_files+:} false; then :
18039 $as_echo_n "(cached) " >&6
18042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18043 /* end confdefs.h. */
18044 #include <sys/types.h>
18045 /* Check that off_t can represent 2**63 - 1 correctly.
18046 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18047 since some C++ compilers masquerading as C compilers
18048 incorrectly reject 9223372036854775807. */
18049 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18050 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18051 && LARGE_OFF_T % 2147483647 == 1)
18061 if ac_fn_c_try_compile "$LINENO"; then :
18062 ac_cv_sys_large_files=no; break
18064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18066 /* end confdefs.h. */
18067 #define _LARGE_FILES 1
18068 #include <sys/types.h>
18069 /* Check that off_t can represent 2**63 - 1 correctly.
18070 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18071 since some C++ compilers masquerading as C compilers
18072 incorrectly reject 9223372036854775807. */
18073 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18074 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18075 && LARGE_OFF_T % 2147483647 == 1)
18085 if ac_fn_c_try_compile "$LINENO"; then :
18086 ac_cv_sys_large_files=1; break
18088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18089 ac_cv_sys_large_files=unknown
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18094 $as_echo "$ac_cv_sys_large_files" >&6; }
18095 case $ac_cv_sys_large_files in #(
18098 cat >>confdefs.h <<_ACEOF
18099 #define _LARGE_FILES $ac_cv_sys_large_files
18110 # Are we in a git checkout?
18112 if test -e .git; then
18114 $as_echo "#define HAVE_DOT_GIT 1" >>confdefs.h
18118 if test x$dot_git = xyes; then
18120 HAVE_DOT_GIT_FALSE='#'
18122 HAVE_DOT_GIT_TRUE='#'
18123 HAVE_DOT_GIT_FALSE=
18127 # If so, we include the git description in our logs for sanity checking.
18129 # However, for people not running their own drivers this is just noise.
18130 # So we copy the xserver's builderstring idiom to allow for this to be
18131 # overridden and perhaps replaced with something more useful.
18133 # Check whether --with-builderstring was given.
18134 if test "${with_builderstring+set}" = set; then :
18135 withval=$with_builderstring; BUILDERSTRING="$withval"
18137 BUILDERSTRING="x-magic-git-describe"
18141 if test "x$BUILDERSTRING" = xx-magic-git-describe -a x$dot_git = xyes; then
18143 $as_echo "#define USE_GIT_DESCRIBE 1" >>confdefs.h
18146 if test "x$BUILDERSTRING" != x -a "x$BUILDERSTRING" != xno -a "x$BUILDERSTRING" != xx-magic-git-describe; then
18148 cat >>confdefs.h <<_ACEOF
18149 #define BUILDER_DESCRIPTION "$BUILDERSTRING"
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GEN4ASM" >&5
18159 $as_echo_n "checking for GEN4ASM... " >&6; }
18161 if test -n "$GEN4ASM_CFLAGS"; then
18162 pkg_cv_GEN4ASM_CFLAGS="$GEN4ASM_CFLAGS"
18163 elif test -n "$PKG_CONFIG"; then
18164 if test -n "$PKG_CONFIG" && \
18165 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"intel-gen4asm >= 1.2\""; } >&5
18166 ($PKG_CONFIG --exists --print-errors "intel-gen4asm >= 1.2") 2>&5
18168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18169 test $ac_status = 0; }; then
18170 pkg_cv_GEN4ASM_CFLAGS=`$PKG_CONFIG --cflags "intel-gen4asm >= 1.2" 2>/dev/null`
18171 test "x$?" != "x0" && pkg_failed=yes
18178 if test -n "$GEN4ASM_LIBS"; then
18179 pkg_cv_GEN4ASM_LIBS="$GEN4ASM_LIBS"
18180 elif test -n "$PKG_CONFIG"; then
18181 if test -n "$PKG_CONFIG" && \
18182 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"intel-gen4asm >= 1.2\""; } >&5
18183 ($PKG_CONFIG --exists --print-errors "intel-gen4asm >= 1.2") 2>&5
18185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18186 test $ac_status = 0; }; then
18187 pkg_cv_GEN4ASM_LIBS=`$PKG_CONFIG --libs "intel-gen4asm >= 1.2" 2>/dev/null`
18188 test "x$?" != "x0" && pkg_failed=yes
18198 if test $pkg_failed = yes; then
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18200 $as_echo "no" >&6; }
18202 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18203 _pkg_short_errors_supported=yes
18205 _pkg_short_errors_supported=no
18207 if test $_pkg_short_errors_supported = yes; then
18208 GEN4ASM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "intel-gen4asm >= 1.2" 2>&1`
18210 GEN4ASM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "intel-gen4asm >= 1.2" 2>&1`
18212 # Put the nasty error message in config.log where it belongs
18213 echo "$GEN4ASM_PKG_ERRORS" >&5
18216 elif test $pkg_failed = untried; then
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18218 $as_echo "no" >&6; }
18221 GEN4ASM_CFLAGS=$pkg_cv_GEN4ASM_CFLAGS
18222 GEN4ASM_LIBS=$pkg_cv_GEN4ASM_LIBS
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18224 $as_echo "yes" >&6; }
18227 if test x$gen4asm = xyes; then
18229 HAVE_GEN4ASM_FALSE='#'
18231 HAVE_GEN4ASM_TRUE='#'
18232 HAVE_GEN4ASM_FALSE=
18236 # Check whether --enable-udev was given.
18237 if test "${enable_udev+set}" = set; then :
18238 enableval=$enable_udev; UDEV="$enableval"
18244 if test x$UDEV != "xno"; then
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
18248 $as_echo_n "checking for UDEV... " >&6; }
18250 if test -n "$UDEV_CFLAGS"; then
18251 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
18252 elif test -n "$PKG_CONFIG"; then
18253 if test -n "$PKG_CONFIG" && \
18254 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
18255 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
18257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18258 test $ac_status = 0; }; then
18259 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
18260 test "x$?" != "x0" && pkg_failed=yes
18267 if test -n "$UDEV_LIBS"; then
18268 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
18269 elif test -n "$PKG_CONFIG"; then
18270 if test -n "$PKG_CONFIG" && \
18271 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
18272 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
18274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18275 test $ac_status = 0; }; then
18276 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
18277 test "x$?" != "x0" && pkg_failed=yes
18287 if test $pkg_failed = yes; then
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18289 $as_echo "no" >&6; }
18291 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18292 _pkg_short_errors_supported=yes
18294 _pkg_short_errors_supported=no
18296 if test $_pkg_short_errors_supported = yes; then
18297 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
18299 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
18301 # Put the nasty error message in config.log where it belongs
18302 echo "$UDEV_PKG_ERRORS" >&5
18305 elif test $pkg_failed = untried; then
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18307 $as_echo "no" >&6; }
18310 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
18311 UDEV_LIBS=$pkg_cv_UDEV_LIBS
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18313 $as_echo "yes" >&6; }
18316 if test x$UDEV == xyes -a x$udev != xyes; then
18317 as_fn_error $? "udev support requested but not found (libudev)" "$LINENO" 5
18319 if test x$udev = xyes; then
18321 $as_echo "#define HAVE_UDEV 1" >>confdefs.h
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
18329 $as_echo_n "checking for X11... " >&6; }
18331 if test -n "$X11_CFLAGS"; then
18332 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
18333 elif test -n "$PKG_CONFIG"; then
18334 if test -n "$PKG_CONFIG" && \
18335 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xrender xext pixman-1\""; } >&5
18336 ($PKG_CONFIG --exists --print-errors "x11 xrender xext pixman-1") 2>&5
18338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18339 test $ac_status = 0; }; then
18340 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11 xrender xext pixman-1" 2>/dev/null`
18341 test "x$?" != "x0" && pkg_failed=yes
18348 if test -n "$X11_LIBS"; then
18349 pkg_cv_X11_LIBS="$X11_LIBS"
18350 elif test -n "$PKG_CONFIG"; then
18351 if test -n "$PKG_CONFIG" && \
18352 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xrender xext pixman-1\""; } >&5
18353 ($PKG_CONFIG --exists --print-errors "x11 xrender xext pixman-1") 2>&5
18355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18356 test $ac_status = 0; }; then
18357 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11 xrender xext pixman-1" 2>/dev/null`
18358 test "x$?" != "x0" && pkg_failed=yes
18368 if test $pkg_failed = yes; then
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18370 $as_echo "no" >&6; }
18372 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18373 _pkg_short_errors_supported=yes
18375 _pkg_short_errors_supported=no
18377 if test $_pkg_short_errors_supported = yes; then
18378 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xrender xext pixman-1" 2>&1`
18380 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xrender xext pixman-1" 2>&1`
18382 # Put the nasty error message in config.log where it belongs
18383 echo "$X11_PKG_ERRORS" >&5
18386 elif test $pkg_failed = untried; then
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18388 $as_echo "no" >&6; }
18391 X11_CFLAGS=$pkg_cv_X11_CFLAGS
18392 X11_LIBS=$pkg_cv_X11_LIBS
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18394 $as_echo "yes" >&6; }
18397 if test x$x11 = xyes; then
18408 # Define a configure option for an alternate module directory
18410 # Check whether --with-xorg-module-dir was given.
18411 if test "${with_xorg_module_dir+set}" = set; then :
18412 withval=$with_xorg_module_dir; moduledir="$withval"
18414 moduledir="$libdir/xorg/modules"
18418 # Check whether --enable-dri was given.
18419 if test "${enable_dri+set}" = set; then :
18420 enableval=$enable_dri;
18424 # Check whether --enable-xvmc was given.
18425 if test "${enable_xvmc+set}" = set; then :
18426 enableval=$enable_xvmc; XVMC="$enableval"
18432 # Check whether --enable-kms-only was given.
18433 if test "${enable_kms_only+set}" = set; then :
18434 enableval=$enable_kms_only; KMS_ONLY="$enableval"
18439 # Check whether --enable-ums-only was given.
18440 if test "${enable_ums_only+set}" = set; then :
18441 enableval=$enable_ums_only; UMS_ONLY="$enableval"
18447 required_xorg_xserver_version=1.6
18448 required_pixman_version=0.24
18450 if pkg-config --exists 'pixman-1 >= 0.27.1'; then
18452 $as_echo "#define HAS_PIXMAN_GLYPHS 1" >>confdefs.h
18456 # Check whether --enable-sna was given.
18457 if test "${enable_sna+set}" = set; then :
18458 enableval=$enable_sna; SNA="$enableval"
18464 for ac_header in sys/sysinfo.h
18466 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default"
18467 if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then :
18468 cat >>confdefs.h <<_ACEOF
18469 #define HAVE_SYS_SYSINFO_H 1
18478 if test "x$SNA" = "xauto" && pkg-config --exists "xorg-server >= 1.10"; then
18481 if test "x$SNA" != "xno"; then
18482 required_xorg_xserver_version=1.10
18484 $as_echo "#define USE_SNA 1" >>confdefs.h
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include SNA support" >&5
18488 $as_echo_n "checking whether to include SNA support... " >&6; }
18489 if test x$SNA != xno; then
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNA" >&5
18498 $as_echo "$SNA" >&6; }
18500 # Check whether --enable-uxa was given.
18501 if test "${enable_uxa+set}" = set; then :
18502 enableval=$enable_uxa; UXA="$enableval"
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include UXA support" >&5
18508 $as_echo_n "checking whether to include UXA support... " >&6; }
18509 if test x$UXA != xno; then
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UXA" >&5
18518 $as_echo "$UXA" >&6; }
18519 if test "x$UXA" != "xno"; then
18521 $as_echo "#define USE_UXA 1" >>confdefs.h
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRMINTEL" >&5
18526 $as_echo_n "checking for DRMINTEL... " >&6; }
18528 if test -n "$DRMINTEL_CFLAGS"; then
18529 pkg_cv_DRMINTEL_CFLAGS="$DRMINTEL_CFLAGS"
18530 elif test -n "$PKG_CONFIG"; then
18531 if test -n "$PKG_CONFIG" && \
18532 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= 2.4.29\""; } >&5
18533 ($PKG_CONFIG --exists --print-errors "libdrm_intel >= 2.4.29") 2>&5
18535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18536 test $ac_status = 0; }; then
18537 pkg_cv_DRMINTEL_CFLAGS=`$PKG_CONFIG --cflags "libdrm_intel >= 2.4.29" 2>/dev/null`
18538 test "x$?" != "x0" && pkg_failed=yes
18545 if test -n "$DRMINTEL_LIBS"; then
18546 pkg_cv_DRMINTEL_LIBS="$DRMINTEL_LIBS"
18547 elif test -n "$PKG_CONFIG"; then
18548 if test -n "$PKG_CONFIG" && \
18549 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= 2.4.29\""; } >&5
18550 ($PKG_CONFIG --exists --print-errors "libdrm_intel >= 2.4.29") 2>&5
18552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18553 test $ac_status = 0; }; then
18554 pkg_cv_DRMINTEL_LIBS=`$PKG_CONFIG --libs "libdrm_intel >= 2.4.29" 2>/dev/null`
18555 test "x$?" != "x0" && pkg_failed=yes
18565 if test $pkg_failed = yes; then
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18567 $as_echo "no" >&6; }
18569 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18570 _pkg_short_errors_supported=yes
18572 _pkg_short_errors_supported=no
18574 if test $_pkg_short_errors_supported = yes; then
18575 DRMINTEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_intel >= 2.4.29" 2>&1`
18577 DRMINTEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_intel >= 2.4.29" 2>&1`
18579 # Put the nasty error message in config.log where it belongs
18580 echo "$DRMINTEL_PKG_ERRORS" >&5
18582 as_fn_error $? "Package requirements (libdrm_intel >= 2.4.29) were not met:
18584 $DRMINTEL_PKG_ERRORS
18586 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18587 installed software in a non-standard prefix.
18589 Alternatively, you may set the environment variables DRMINTEL_CFLAGS
18590 and DRMINTEL_LIBS to avoid the need to call pkg-config.
18591 See the pkg-config man page for more details." "$LINENO" 5
18592 elif test $pkg_failed = untried; then
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18594 $as_echo "no" >&6; }
18595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18597 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18598 is in your PATH or set the PKG_CONFIG environment variable to the full
18599 path to pkg-config.
18601 Alternatively, you may set the environment variables DRMINTEL_CFLAGS
18602 and DRMINTEL_LIBS to avoid the need to call pkg-config.
18603 See the pkg-config man page for more details.
18605 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18606 See \`config.log' for more details" "$LINENO" 5; }
18608 DRMINTEL_CFLAGS=$pkg_cv_DRMINTEL_CFLAGS
18609 DRMINTEL_LIBS=$pkg_cv_DRMINTEL_LIBS
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18611 $as_echo "yes" >&6; }
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include GLAMOR support" >&5
18617 $as_echo_n "checking whether to include GLAMOR support... " >&6; }
18618 # Check whether --enable-glamor was given.
18619 if test "${enable_glamor+set}" = set; then :
18620 enableval=$enable_glamor; GLAMOR="$enableval"
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLAMOR" >&5
18626 $as_echo "$GLAMOR" >&6; }
18627 if test x$GLAMOR != xno; then
18635 if test "x$GLAMOR" != "xno"; then
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR" >&5
18639 $as_echo_n "checking for LIBGLAMOR... " >&6; }
18641 if test -n "$LIBGLAMOR_CFLAGS"; then
18642 pkg_cv_LIBGLAMOR_CFLAGS="$LIBGLAMOR_CFLAGS"
18643 elif test -n "$PKG_CONFIG"; then
18644 if test -n "$PKG_CONFIG" && \
18645 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.3.1\""; } >&5
18646 ($PKG_CONFIG --exists --print-errors "glamor >= 0.3.1") 2>&5
18648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18649 test $ac_status = 0; }; then
18650 pkg_cv_LIBGLAMOR_CFLAGS=`$PKG_CONFIG --cflags "glamor >= 0.3.1" 2>/dev/null`
18651 test "x$?" != "x0" && pkg_failed=yes
18658 if test -n "$LIBGLAMOR_LIBS"; then
18659 pkg_cv_LIBGLAMOR_LIBS="$LIBGLAMOR_LIBS"
18660 elif test -n "$PKG_CONFIG"; then
18661 if test -n "$PKG_CONFIG" && \
18662 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.3.1\""; } >&5
18663 ($PKG_CONFIG --exists --print-errors "glamor >= 0.3.1") 2>&5
18665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18666 test $ac_status = 0; }; then
18667 pkg_cv_LIBGLAMOR_LIBS=`$PKG_CONFIG --libs "glamor >= 0.3.1" 2>/dev/null`
18668 test "x$?" != "x0" && pkg_failed=yes
18678 if test $pkg_failed = yes; then
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18680 $as_echo "no" >&6; }
18682 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18683 _pkg_short_errors_supported=yes
18685 _pkg_short_errors_supported=no
18687 if test $_pkg_short_errors_supported = yes; then
18688 LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor >= 0.3.1" 2>&1`
18690 LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor >= 0.3.1" 2>&1`
18692 # Put the nasty error message in config.log where it belongs
18693 echo "$LIBGLAMOR_PKG_ERRORS" >&5
18695 as_fn_error $? "Package requirements (glamor >= 0.3.1) were not met:
18697 $LIBGLAMOR_PKG_ERRORS
18699 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18700 installed software in a non-standard prefix.
18702 Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS
18703 and LIBGLAMOR_LIBS to avoid the need to call pkg-config.
18704 See the pkg-config man page for more details." "$LINENO" 5
18705 elif test $pkg_failed = untried; then
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18707 $as_echo "no" >&6; }
18708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18710 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18711 is in your PATH or set the PKG_CONFIG environment variable to the full
18712 path to pkg-config.
18714 Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS
18715 and LIBGLAMOR_LIBS to avoid the need to call pkg-config.
18716 See the pkg-config man page for more details.
18718 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18719 See \`config.log' for more details" "$LINENO" 5; }
18721 LIBGLAMOR_CFLAGS=$pkg_cv_LIBGLAMOR_CFLAGS
18722 LIBGLAMOR_LIBS=$pkg_cv_LIBGLAMOR_LIBS
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18724 $as_echo "yes" >&6; }
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR_EGL" >&5
18730 $as_echo_n "checking for LIBGLAMOR_EGL... " >&6; }
18732 if test -n "$LIBGLAMOR_EGL_CFLAGS"; then
18733 pkg_cv_LIBGLAMOR_EGL_CFLAGS="$LIBGLAMOR_EGL_CFLAGS"
18734 elif test -n "$PKG_CONFIG"; then
18735 if test -n "$PKG_CONFIG" && \
18736 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5
18737 ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5
18739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18740 test $ac_status = 0; }; then
18741 pkg_cv_LIBGLAMOR_EGL_CFLAGS=`$PKG_CONFIG --cflags "glamor-egl" 2>/dev/null`
18742 test "x$?" != "x0" && pkg_failed=yes
18749 if test -n "$LIBGLAMOR_EGL_LIBS"; then
18750 pkg_cv_LIBGLAMOR_EGL_LIBS="$LIBGLAMOR_EGL_LIBS"
18751 elif test -n "$PKG_CONFIG"; then
18752 if test -n "$PKG_CONFIG" && \
18753 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5
18754 ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5
18756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18757 test $ac_status = 0; }; then
18758 pkg_cv_LIBGLAMOR_EGL_LIBS=`$PKG_CONFIG --libs "glamor-egl" 2>/dev/null`
18759 test "x$?" != "x0" && pkg_failed=yes
18769 if test $pkg_failed = yes; then
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18771 $as_echo "no" >&6; }
18773 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18774 _pkg_short_errors_supported=yes
18776 _pkg_short_errors_supported=no
18778 if test $_pkg_short_errors_supported = yes; then
18779 LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor-egl" 2>&1`
18781 LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor-egl" 2>&1`
18783 # Put the nasty error message in config.log where it belongs
18784 echo "$LIBGLAMOR_EGL_PKG_ERRORS" >&5
18786 as_fn_error $? "Package requirements (glamor-egl) were not met:
18788 $LIBGLAMOR_EGL_PKG_ERRORS
18790 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18791 installed software in a non-standard prefix.
18793 Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS
18794 and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config.
18795 See the pkg-config man page for more details." "$LINENO" 5
18796 elif test $pkg_failed = untried; then
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18798 $as_echo "no" >&6; }
18799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18801 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18802 is in your PATH or set the PKG_CONFIG environment variable to the full
18803 path to pkg-config.
18805 Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS
18806 and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config.
18807 See the pkg-config man page for more details.
18809 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18810 See \`config.log' for more details" "$LINENO" 5; }
18812 LIBGLAMOR_EGL_CFLAGS=$pkg_cv_LIBGLAMOR_EGL_CFLAGS
18813 LIBGLAMOR_EGL_LIBS=$pkg_cv_LIBGLAMOR_EGL_LIBS
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18815 $as_echo "yes" >&6; }
18819 $as_echo "#define USE_GLAMOR 1" >>confdefs.h
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18827 $as_echo_n "checking for XORG... " >&6; }
18829 if test -n "$XORG_CFLAGS"; then
18830 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18831 elif test -n "$PKG_CONFIG"; then
18832 if test -n "$PKG_CONFIG" && \
18833 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= \$required_xorg_xserver_version xproto fontsproto pixman-1 >= \$required_pixman_version \$REQUIRED_MODULES\""; } >&5
18834 ($PKG_CONFIG --exists --print-errors "xorg-server >= $required_xorg_xserver_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES") 2>&5
18836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18837 test $ac_status = 0; }; then
18838 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= $required_xorg_xserver_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>/dev/null`
18839 test "x$?" != "x0" && pkg_failed=yes
18846 if test -n "$XORG_LIBS"; then
18847 pkg_cv_XORG_LIBS="$XORG_LIBS"
18848 elif test -n "$PKG_CONFIG"; then
18849 if test -n "$PKG_CONFIG" && \
18850 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= \$required_xorg_xserver_version xproto fontsproto pixman-1 >= \$required_pixman_version \$REQUIRED_MODULES\""; } >&5
18851 ($PKG_CONFIG --exists --print-errors "xorg-server >= $required_xorg_xserver_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES") 2>&5
18853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18854 test $ac_status = 0; }; then
18855 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= $required_xorg_xserver_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>/dev/null`
18856 test "x$?" != "x0" && pkg_failed=yes
18866 if test $pkg_failed = yes; then
18867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18868 $as_echo "no" >&6; }
18870 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18871 _pkg_short_errors_supported=yes
18873 _pkg_short_errors_supported=no
18875 if test $_pkg_short_errors_supported = yes; then
18876 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= $required_xorg_xserver_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>&1`
18878 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= $required_xorg_xserver_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>&1`
18880 # Put the nasty error message in config.log where it belongs
18881 echo "$XORG_PKG_ERRORS" >&5
18883 as_fn_error $? "Package requirements (xorg-server >= $required_xorg_xserver_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES) were not met:
18887 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18888 installed software in a non-standard prefix.
18890 Alternatively, you may set the environment variables XORG_CFLAGS
18891 and XORG_LIBS to avoid the need to call pkg-config.
18892 See the pkg-config man page for more details." "$LINENO" 5
18893 elif test $pkg_failed = untried; then
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18895 $as_echo "no" >&6; }
18896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18898 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18899 is in your PATH or set the PKG_CONFIG environment variable to the full
18900 path to pkg-config.
18902 Alternatively, you may set the environment variables XORG_CFLAGS
18903 and XORG_LIBS to avoid the need to call pkg-config.
18904 See the pkg-config man page for more details.
18906 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18907 See \`config.log' for more details" "$LINENO" 5; }
18909 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18910 XORG_LIBS=$pkg_cv_XORG_LIBS
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18912 $as_echo "yes" >&6; }
18916 # Check whether --enable-xaa was given.
18917 if test "${enable_xaa+set}" = set; then :
18918 enableval=$enable_xaa; XAA="$enableval"
18923 if test "x$XAA" != xno; then
18924 save_CFLAGS=$CFLAGS
18925 CFLAGS=$XORG_CFLAGS
18926 for ac_header in xaa.h
18928 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18929 if test "x$ac_cv_header_xaa_h" = xyes; then :
18930 cat >>confdefs.h <<_ACEOF
18931 #define HAVE_XAA_H 1
18940 CFLAGS=$save_CFLAGS
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18943 $as_echo_n "checking whether to include XAA support... " >&6; }
18944 if test "x$XAA" = xyes; then
18952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18953 $as_echo "$XAA" >&6; }
18955 # Check whether --enable-dga was given.
18956 if test "${enable_dga+set}" = set; then :
18957 enableval=$enable_dga; DGA="$enableval"
18962 if test "x$DGA" != xno; then
18963 save_CFLAGS=$CFLAGS
18964 CFLAGS=$XORG_CFLAGS
18965 for ac_header in dgaproc.h
18967 ac_fn_c_check_header_compile "$LINENO" "dgaproc.h" "ac_cv_header_dgaproc_h" "#include <dixstruct.h>
18969 if test "x$ac_cv_header_dgaproc_h" = xyes; then :
18970 cat >>confdefs.h <<_ACEOF
18971 #define HAVE_DGAPROC_H 1
18980 CFLAGS=$save_CFLAGS
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DGA support" >&5
18983 $as_echo_n "checking whether to include DGA support... " >&6; }
18984 if test "x$DGA" = xyes; then
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DGA" >&5
18993 $as_echo "$DGA" >&6; }
18996 # Check whether --with-default-accel was given.
18997 if test "${with_default_accel+set}" = set; then :
18998 withval=$with_default_accel; accel="$withval"
19003 if test "x$accel" = xyes; then
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No default acceleration specified, choosing automatic selection" >&5
19005 $as_echo "$as_me: WARNING: No default acceleration specified, choosing automatic selection" >&2;}
19009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which acceleration method to use by default" >&5
19010 $as_echo_n "checking which acceleration method to use by default... " >&6; }
19011 if test "x$accel" = xauto; then
19012 if test "x$UXA" != "xno"; then
19015 if test "x$SNA" != "xno"; then
19019 if test "x$accel" = xauto -a "x$UMS_ONLY" != "xyes"; then
19020 as_fn_error $? "No default acceleration option" "$LINENO" 5
19025 if test "x$accel" = xsna; then
19026 if test "x$SNA" != "xno"; then
19028 $as_echo "#define DEFAULT_ACCEL_METHOD SNA" >>confdefs.h
19032 as_fn_error $? "SNA requested as default, but is not enabled" "$LINENO" 5
19036 if test "x$accel" = xuxa; then
19037 if test "x$UXA" != "xno"; then
19039 $as_echo "#define DEFAULT_ACCEL_METHOD UXA" >>confdefs.h
19043 as_fn_error $? "UXA requested as default, but is not enabled" "$LINENO" 5
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $accel" >&5
19047 $as_echo "$accel" >&6; }
19048 if test "x$accel" = xnone -a "x$UMS_ONLY" != "xyes"; then
19049 as_fn_error $? "No default acceleration option" "$LINENO" 5
19052 # Check whether --enable-userptr was given.
19053 if test "${enable_userptr+set}" = set; then :
19054 enableval=$enable_userptr; USERPTR="$enableval"
19059 if test x$USERPTR = xyes; then
19061 USE_USERPTR_FALSE='#'
19063 USE_USERPTR_TRUE='#'
19067 if test "x$USERPTR" = xyes; then
19069 $as_echo "#define USE_USERPTR 1" >>confdefs.h
19073 # Check whether --enable-async-swap was given.
19074 if test "${enable_async_swap+set}" = set; then :
19075 enableval=$enable_async_swap; ASYNC_SWAP="$enableval"
19080 if test x$ASYNC_SWAP = xyes; then
19081 USE_ASYNC_SWAP_TRUE=
19082 USE_ASYNC_SWAP_FALSE='#'
19084 USE_ASYNC_SWAP_TRUE='#'
19085 USE_ASYNC_SWAP_FALSE=
19088 if test "x$ASYNC_SWAP" = xyes; then
19090 $as_echo "#define USE_ASYNC_SWAP 1" >>confdefs.h
19094 # Check whether --enable-debug was given.
19095 if test "${enable_debug+set}" = set; then :
19096 enableval=$enable_debug; DEBUG="$enableval"
19101 # Store the list of server defined optional extensions in REQUIRED_MODULES
19104 SAVE_CFLAGS="$CFLAGS"
19105 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19107 /* end confdefs.h. */
19109 #include "xorg-server.h"
19111 #error RANDR not defined
19122 if ac_fn_c_try_compile "$LINENO"; then :
19127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19128 CFLAGS="$SAVE_CFLAGS"
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19130 $as_echo_n "checking if RANDR is defined... " >&6; }
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19132 $as_echo "$_EXT_CHECK" >&6; }
19133 if test "$_EXT_CHECK" != no; then
19134 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19139 SAVE_CFLAGS="$CFLAGS"
19140 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19142 /* end confdefs.h. */
19144 #include "xorg-server.h"
19145 #if !defined RENDER
19146 #error RENDER not defined
19157 if ac_fn_c_try_compile "$LINENO"; then :
19162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19163 CFLAGS="$SAVE_CFLAGS"
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
19165 $as_echo_n "checking if RENDER is defined... " >&6; }
19166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19167 $as_echo "$_EXT_CHECK" >&6; }
19168 if test "$_EXT_CHECK" != no; then
19169 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19174 SAVE_CFLAGS="$CFLAGS"
19175 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19177 /* end confdefs.h. */
19179 #include "xorg-server.h"
19180 #if !defined XF86DRI
19181 #error XF86DRI not defined
19192 if ac_fn_c_try_compile "$LINENO"; then :
19197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19198 CFLAGS="$SAVE_CFLAGS"
19199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XF86DRI is defined" >&5
19200 $as_echo_n "checking if XF86DRI is defined... " >&6; }
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19202 $as_echo "$_EXT_CHECK" >&6; }
19203 if test "$_EXT_CHECK" != no; then
19204 REQUIRED_MODULES="$REQUIRED_MODULES xextproto x11"
19209 SAVE_CFLAGS="$CFLAGS"
19210 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19212 /* end confdefs.h. */
19214 #include "xorg-server.h"
19215 #if !defined DPMSExtension
19216 #error DPMSExtension not defined
19227 if ac_fn_c_try_compile "$LINENO"; then :
19232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19233 CFLAGS="$SAVE_CFLAGS"
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
19235 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19237 $as_echo "$_EXT_CHECK" >&6; }
19238 if test "$_EXT_CHECK" != no; then
19239 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19243 # Obtain compiler/linker options for the driver dependencies
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRM" >&5
19247 $as_echo_n "checking for DRM... " >&6; }
19249 if test -n "$DRM_CFLAGS"; then
19250 pkg_cv_DRM_CFLAGS="$DRM_CFLAGS"
19251 elif test -n "$PKG_CONFIG"; then
19252 if test -n "$PKG_CONFIG" && \
19253 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.24\""; } >&5
19254 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.24") 2>&5
19256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19257 test $ac_status = 0; }; then
19258 pkg_cv_DRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.24" 2>/dev/null`
19259 test "x$?" != "x0" && pkg_failed=yes
19266 if test -n "$DRM_LIBS"; then
19267 pkg_cv_DRM_LIBS="$DRM_LIBS"
19268 elif test -n "$PKG_CONFIG"; then
19269 if test -n "$PKG_CONFIG" && \
19270 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.24\""; } >&5
19271 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.24") 2>&5
19273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19274 test $ac_status = 0; }; then
19275 pkg_cv_DRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.24" 2>/dev/null`
19276 test "x$?" != "x0" && pkg_failed=yes
19286 if test $pkg_failed = yes; then
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19288 $as_echo "no" >&6; }
19290 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19291 _pkg_short_errors_supported=yes
19293 _pkg_short_errors_supported=no
19295 if test $_pkg_short_errors_supported = yes; then
19296 DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.24" 2>&1`
19298 DRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.24" 2>&1`
19300 # Put the nasty error message in config.log where it belongs
19301 echo "$DRM_PKG_ERRORS" >&5
19303 as_fn_error $? "Package requirements (libdrm >= 2.4.24) were not met:
19307 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19308 installed software in a non-standard prefix.
19310 Alternatively, you may set the environment variables DRM_CFLAGS
19311 and DRM_LIBS to avoid the need to call pkg-config.
19312 See the pkg-config man page for more details." "$LINENO" 5
19313 elif test $pkg_failed = untried; then
19314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19315 $as_echo "no" >&6; }
19316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19318 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19319 is in your PATH or set the PKG_CONFIG environment variable to the full
19320 path to pkg-config.
19322 Alternatively, you may set the environment variables DRM_CFLAGS
19323 and DRM_LIBS to avoid the need to call pkg-config.
19324 See the pkg-config man page for more details.
19326 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19327 See \`config.log' for more details" "$LINENO" 5; }
19329 DRM_CFLAGS=$pkg_cv_DRM_CFLAGS
19330 DRM_LIBS=$pkg_cv_DRM_LIBS
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19332 $as_echo "yes" >&6; }
19334 fi # libdrm_intel is checked separately
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
19338 $as_echo_n "checking for DRI... " >&6; }
19340 if test -n "$DRI_CFLAGS"; then
19341 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
19342 elif test -n "$PKG_CONFIG"; then
19343 if test -n "$PKG_CONFIG" && \
19344 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86driproto\""; } >&5
19345 ($PKG_CONFIG --exists --print-errors "xf86driproto") 2>&5
19347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19348 test $ac_status = 0; }; then
19349 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "xf86driproto" 2>/dev/null`
19350 test "x$?" != "x0" && pkg_failed=yes
19357 if test -n "$DRI_LIBS"; then
19358 pkg_cv_DRI_LIBS="$DRI_LIBS"
19359 elif test -n "$PKG_CONFIG"; then
19360 if test -n "$PKG_CONFIG" && \
19361 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86driproto\""; } >&5
19362 ($PKG_CONFIG --exists --print-errors "xf86driproto") 2>&5
19364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19365 test $ac_status = 0; }; then
19366 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "xf86driproto" 2>/dev/null`
19367 test "x$?" != "x0" && pkg_failed=yes
19377 if test $pkg_failed = yes; then
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19379 $as_echo "no" >&6; }
19381 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19382 _pkg_short_errors_supported=yes
19384 _pkg_short_errors_supported=no
19386 if test $_pkg_short_errors_supported = yes; then
19387 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xf86driproto" 2>&1`
19389 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xf86driproto" 2>&1`
19391 # Put the nasty error message in config.log where it belongs
19392 echo "$DRI_PKG_ERRORS" >&5
19395 elif test $pkg_failed = untried; then
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19397 $as_echo "no" >&6; }
19400 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
19401 DRI_LIBS=$pkg_cv_DRI_LIBS
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19403 $as_echo "yes" >&6; }
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI2" >&5
19409 $as_echo_n "checking for DRI2... " >&6; }
19411 if test -n "$DRI2_CFLAGS"; then
19412 pkg_cv_DRI2_CFLAGS="$DRI2_CFLAGS"
19413 elif test -n "$PKG_CONFIG"; then
19414 if test -n "$PKG_CONFIG" && \
19415 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.6\""; } >&5
19416 ($PKG_CONFIG --exists --print-errors "dri2proto >= 2.6") 2>&5
19418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19419 test $ac_status = 0; }; then
19420 pkg_cv_DRI2_CFLAGS=`$PKG_CONFIG --cflags "dri2proto >= 2.6" 2>/dev/null`
19421 test "x$?" != "x0" && pkg_failed=yes
19428 if test -n "$DRI2_LIBS"; then
19429 pkg_cv_DRI2_LIBS="$DRI2_LIBS"
19430 elif test -n "$PKG_CONFIG"; then
19431 if test -n "$PKG_CONFIG" && \
19432 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.6\""; } >&5
19433 ($PKG_CONFIG --exists --print-errors "dri2proto >= 2.6") 2>&5
19435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19436 test $ac_status = 0; }; then
19437 pkg_cv_DRI2_LIBS=`$PKG_CONFIG --libs "dri2proto >= 2.6" 2>/dev/null`
19438 test "x$?" != "x0" && pkg_failed=yes
19448 if test $pkg_failed = yes; then
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19450 $as_echo "no" >&6; }
19452 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19453 _pkg_short_errors_supported=yes
19455 _pkg_short_errors_supported=no
19457 if test $_pkg_short_errors_supported = yes; then
19458 DRI2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dri2proto >= 2.6" 2>&1`
19460 DRI2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dri2proto >= 2.6" 2>&1`
19462 # Put the nasty error message in config.log where it belongs
19463 echo "$DRI2_PKG_ERRORS" >&5
19466 elif test $pkg_failed = untried; then
19467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19468 $as_echo "no" >&6; }
19471 DRI2_CFLAGS=$pkg_cv_DRI2_CFLAGS
19472 DRI2_LIBS=$pkg_cv_DRI2_LIBS
19473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19474 $as_echo "yes" >&6; }
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
19480 $as_echo_n "checking for PCIACCESS... " >&6; }
19482 if test -n "$PCIACCESS_CFLAGS"; then
19483 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19484 elif test -n "$PKG_CONFIG"; then
19485 if test -n "$PKG_CONFIG" && \
19486 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
19487 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
19489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19490 test $ac_status = 0; }; then
19491 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
19492 test "x$?" != "x0" && pkg_failed=yes
19499 if test -n "$PCIACCESS_LIBS"; then
19500 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19501 elif test -n "$PKG_CONFIG"; then
19502 if test -n "$PKG_CONFIG" && \
19503 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
19504 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
19506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19507 test $ac_status = 0; }; then
19508 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
19509 test "x$?" != "x0" && pkg_failed=yes
19519 if test $pkg_failed = yes; then
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19521 $as_echo "no" >&6; }
19523 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19524 _pkg_short_errors_supported=yes
19526 _pkg_short_errors_supported=no
19528 if test $_pkg_short_errors_supported = yes; then
19529 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
19531 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
19533 # Put the nasty error message in config.log where it belongs
19534 echo "$PCIACCESS_PKG_ERRORS" >&5
19536 as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met:
19538 $PCIACCESS_PKG_ERRORS
19540 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19541 installed software in a non-standard prefix.
19543 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19544 and PCIACCESS_LIBS to avoid the need to call pkg-config.
19545 See the pkg-config man page for more details." "$LINENO" 5
19546 elif test $pkg_failed = untried; then
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19548 $as_echo "no" >&6; }
19549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19551 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19552 is in your PATH or set the PKG_CONFIG environment variable to the full
19553 path to pkg-config.
19555 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19556 and PCIACCESS_LIBS to avoid the need to call pkg-config.
19557 See the pkg-config man page for more details.
19559 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19560 See \`config.log' for more details" "$LINENO" 5; }
19562 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
19563 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19565 $as_echo "yes" >&6; }
19569 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
19571 if test "x$enable_dri" != "xno"; then
19572 save_CFLAGS="$CFLAGS"
19573 save_CPPFLAGS="$CPPFLAGS"
19574 CFLAGS="$CFLAGS $XORG_CFLAGS $DRI_CFLAGS $DRM_CFLAGS"
19575 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS $DRI_CFLAGS $DRM_CFLAGS"
19576 for ac_header in dri.h sarea.h dristruct.h
19578 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19579 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "/* for dri.h */
19580 #include <xf86str.h>
19581 /* for dristruct.h */
19582 #include <xorg-server.h>
19586 #ifdef HAVE_SAREA_H
19587 # include <sarea.h>
19591 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19592 cat >>confdefs.h <<_ACEOF
19593 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19602 CFLAGS="$save_CFLAGS $DEBUGFLAGS"
19603 CPPFLAGS="$save_CPPFLAGS"
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
19609 $as_echo_n "checking whether to include DRI support... " >&6; }
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${DRI-yes}" >&5
19611 $as_echo "${DRI-yes}" >&6; }
19613 if test x$DRI != xno; then
19621 if test "x$DRI" != "xno"; then
19623 $as_echo "#define HAVE_DRI1 1" >>confdefs.h
19629 if test "x$enable_dri" = "xyes"; then
19630 as_fn_error $? "DRI requested but prerequisites not found" "$LINENO" 5
19634 if test "x$DRI2" != "xno"; then
19635 save_CFLAGS=$CFLAGS
19636 CFLAGS="$XORG_CFLAGS $DRM_CFLAGS $DRI_CFLAGS $DRI2_CFLAGS"
19637 for ac_header in dri2.h
19639 ac_fn_c_check_header_compile "$LINENO" "dri2.h" "ac_cv_header_dri2_h" "#include <dixstruct.h>
19641 if test "x$ac_cv_header_dri2_h" = xyes; then :
19642 cat >>confdefs.h <<_ACEOF
19643 #define HAVE_DRI2_H 1
19652 CFLAGS=$save_CFLAGS
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI2 support" >&5
19655 $as_echo_n "checking whether to include DRI2 support... " >&6; }
19656 if test "x$DRI2" = xyes; then
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI2" >&5
19665 $as_echo "$DRI2" >&6; }
19667 if test "$XVMC" = yes; then
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVMCLIB" >&5
19671 $as_echo_n "checking for XVMCLIB... " >&6; }
19673 if test -n "$XVMCLIB_CFLAGS"; then
19674 pkg_cv_XVMCLIB_CFLAGS="$XVMCLIB_CFLAGS"
19675 elif test -n "$PKG_CONFIG"; then
19676 if test -n "$PKG_CONFIG" && \
19677 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux\""; } >&5
19678 ($PKG_CONFIG --exists --print-errors "xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux") 2>&5
19680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19681 test $ac_status = 0; }; then
19682 pkg_cv_XVMCLIB_CFLAGS=`$PKG_CONFIG --cflags "xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux" 2>/dev/null`
19683 test "x$?" != "x0" && pkg_failed=yes
19690 if test -n "$XVMCLIB_LIBS"; then
19691 pkg_cv_XVMCLIB_LIBS="$XVMCLIB_LIBS"
19692 elif test -n "$PKG_CONFIG"; then
19693 if test -n "$PKG_CONFIG" && \
19694 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux\""; } >&5
19695 ($PKG_CONFIG --exists --print-errors "xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux") 2>&5
19697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19698 test $ac_status = 0; }; then
19699 pkg_cv_XVMCLIB_LIBS=`$PKG_CONFIG --libs "xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux" 2>/dev/null`
19700 test "x$?" != "x0" && pkg_failed=yes
19710 if test $pkg_failed = yes; then
19711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19712 $as_echo "no" >&6; }
19714 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19715 _pkg_short_errors_supported=yes
19717 _pkg_short_errors_supported=no
19719 if test $_pkg_short_errors_supported = yes; then
19720 XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux" 2>&1`
19722 XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux" 2>&1`
19724 # Put the nasty error message in config.log where it belongs
19725 echo "$XVMCLIB_PKG_ERRORS" >&5
19728 elif test $pkg_failed = untried; then
19729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19730 $as_echo "no" >&6; }
19733 XVMCLIB_CFLAGS=$pkg_cv_XVMCLIB_CFLAGS
19734 XVMCLIB_LIBS=$pkg_cv_XVMCLIB_LIBS
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19736 $as_echo "yes" >&6; }
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XvMC support" >&5
19741 $as_echo_n "checking whether to include XvMC support... " >&6; }
19742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVMC" >&5
19743 $as_echo "$XVMC" >&6; }
19744 if test x$XVMC = xyes; then
19752 if test "x$XVMC" = xyes; then
19754 $as_echo "#define ENABLE_XVMC 1" >>confdefs.h
19758 if test x$KMS_ONLY = xyes; then
19766 if test "x$KMS_ONLY" = xyes; then
19768 $as_echo "#define KMS_ONLY 1" >>confdefs.h
19771 if test x$UMS_ONLY = xyes; then
19779 if test "x$UMS_ONLY" = xyes; then
19781 $as_echo "#define UMS_ONLY 1" >>confdefs.h
19785 if test x$DEBUG != xno; then
19793 if test x$FULL_DEBUG == xfull; then
19795 FULL_DEBUG_FALSE='#'
19797 FULL_DEBUG_TRUE='#'
19801 if test "x$DEBUG" = xno; then
19803 $as_echo "#define NDEBUG 1" >>confdefs.h
19806 if test "x$DEBUG" != xno; then
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
19810 $as_echo_n "checking for VALGRIND... " >&6; }
19812 if test -n "$VALGRIND_CFLAGS"; then
19813 pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
19814 elif test -n "$PKG_CONFIG"; then
19815 if test -n "$PKG_CONFIG" && \
19816 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
19817 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
19819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19820 test $ac_status = 0; }; then
19821 pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
19822 test "x$?" != "x0" && pkg_failed=yes
19829 if test -n "$VALGRIND_LIBS"; then
19830 pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
19831 elif test -n "$PKG_CONFIG"; then
19832 if test -n "$PKG_CONFIG" && \
19833 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
19834 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
19836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19837 test $ac_status = 0; }; then
19838 pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
19839 test "x$?" != "x0" && pkg_failed=yes
19849 if test $pkg_failed = yes; then
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19851 $as_echo "no" >&6; }
19853 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19854 _pkg_short_errors_supported=yes
19856 _pkg_short_errors_supported=no
19858 if test $_pkg_short_errors_supported = yes; then
19859 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
19861 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
19863 # Put the nasty error message in config.log where it belongs
19864 echo "$VALGRIND_PKG_ERRORS" >&5
19867 elif test $pkg_failed = untried; then
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19869 $as_echo "no" >&6; }
19872 VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
19873 VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19875 $as_echo "yes" >&6; }
19878 if test x$have_valgrind = xyes; then
19880 $as_echo "#define HAVE_VALGRIND 1" >>confdefs.h
19884 if test "x$DEBUG" = xmemory; then
19886 $as_echo "#define DEBUG_MEMORY 1" >>confdefs.h
19889 if test "x$DEBUG" = xpixmap; then
19891 $as_echo "#define DEBUG_PIXMAP 1" >>confdefs.h
19894 if test "x$DEBUG" = xfull; then
19896 $as_echo "#define DEBUG_MEMORY 1" >>confdefs.h
19899 $as_echo "#define DEBUG_PIXMAP 1" >>confdefs.h
19902 $as_echo "#define HAS_DEBUG_FULL 1" >>confdefs.h
19904 CFLAGS="$CFLAGS -O0 -ggdb3"
19911 ac_config_files="$ac_config_files Makefile uxa/Makefile src/Makefile src/xvmc/Makefile src/xvmc/shader/Makefile src/xvmc/shader/mc/Makefile src/xvmc/shader/vld/Makefile src/legacy/Makefile src/legacy/i810/Makefile src/legacy/i810/xvmc/Makefile src/sna/Makefile src/sna/brw/Makefile src/sna/fb/Makefile man/Makefile src/render_program/Makefile test/Makefile"
19913 cat >confcache <<\_ACEOF
19914 # This file is a shell script that caches the results of configure
19915 # tests run on this system so they can be shared between configure
19916 # scripts and configure runs, see configure's option --config-cache.
19917 # It is not useful on other systems. If it contains results you don't
19918 # want to keep, you may remove or edit it.
19920 # config.status only pays attention to the cache file if you give it
19921 # the --recheck option to rerun configure.
19923 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19924 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19925 # following values.
19929 # The following way of writing the cache mishandles newlines in values,
19930 # but we know of no workaround that is simple, portable, and efficient.
19931 # So, we kill variables containing newlines.
19932 # Ultrix sh set writes to stderr and can't be redirected directly,
19933 # and sets the high bit in the cache file unless we assign to the vars.
19935 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19936 eval ac_val=\$$ac_var
19940 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19941 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19944 _ | IFS | as_nl) ;; #(
19945 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19946 *) { eval $ac_var=; unset $ac_var;} ;;
19952 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19953 *${as_nl}ac_space=\ *)
19954 # `set' does not quote correctly, so add quotes: double-quote
19955 # substitution turns \\\\ into \\, and sed turns \\ into \.
19958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19961 # `set' quotes correctly as required by POSIX, so do not add quotes.
19962 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19971 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19973 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19975 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19976 if test -w "$cache_file"; then
19977 if test "x$cache_file" != "x/dev/null"; then
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19979 $as_echo "$as_me: updating cache $cache_file" >&6;}
19980 if test ! -f "$cache_file" || test -h "$cache_file"; then
19981 cat confcache >"$cache_file"
19983 case $cache_file in #(
19985 mv -f confcache "$cache_file"$$ &&
19986 mv -f "$cache_file"$$ "$cache_file" ;; #(
19988 mv -f confcache "$cache_file" ;;
19993 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19994 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19999 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20000 # Let make expand exec_prefix.
20001 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20003 DEFS=-DHAVE_CONFIG_H
20008 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20009 # 1. Remove the extension, and $U if already installed.
20010 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20011 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20012 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20013 # will be set to the directory where LIBOBJS objects are built.
20014 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20015 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20017 LIBOBJS=$ac_libobjs
20019 LTLIBOBJS=$ac_ltlibobjs
20022 if test -n "$EXEEXT"; then
20024 am__EXEEXT_FALSE='#'
20026 am__EXEEXT_TRUE='#'
20030 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20031 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20034 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20035 as_fn_error $? "conditional \"AMDEP\" was never defined.
20036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20038 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20039 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20042 if test -z "${HAVE_DOT_GIT_TRUE}" && test -z "${HAVE_DOT_GIT_FALSE}"; then
20043 as_fn_error $? "conditional \"HAVE_DOT_GIT\" was never defined.
20044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20046 if test -z "${HAVE_GEN4ASM_TRUE}" && test -z "${HAVE_GEN4ASM_FALSE}"; then
20047 as_fn_error $? "conditional \"HAVE_GEN4ASM\" was never defined.
20048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20050 if test -z "${HAVE_X11_TRUE}" && test -z "${HAVE_X11_FALSE}"; then
20051 as_fn_error $? "conditional \"HAVE_X11\" was never defined.
20052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20054 if test -z "${SNA_TRUE}" && test -z "${SNA_FALSE}"; then
20055 as_fn_error $? "conditional \"SNA\" was never defined.
20056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20058 if test -z "${UXA_TRUE}" && test -z "${UXA_FALSE}"; then
20059 as_fn_error $? "conditional \"UXA\" was never defined.
20060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20062 if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then
20063 as_fn_error $? "conditional \"GLAMOR\" was never defined.
20064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20066 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
20067 as_fn_error $? "conditional \"XAA\" was never defined.
20068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20070 if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then
20071 as_fn_error $? "conditional \"DGA\" was never defined.
20072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20074 if test -z "${USE_USERPTR_TRUE}" && test -z "${USE_USERPTR_FALSE}"; then
20075 as_fn_error $? "conditional \"USE_USERPTR\" was never defined.
20076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20078 if test -z "${USE_ASYNC_SWAP_TRUE}" && test -z "${USE_ASYNC_SWAP_FALSE}"; then
20079 as_fn_error $? "conditional \"USE_ASYNC_SWAP\" was never defined.
20080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20082 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
20083 as_fn_error $? "conditional \"DRI\" was never defined.
20084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20086 if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then
20087 as_fn_error $? "conditional \"DRI2\" was never defined.
20088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20090 if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
20091 as_fn_error $? "conditional \"XVMC\" was never defined.
20092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20094 if test -z "${KMS_ONLY_TRUE}" && test -z "${KMS_ONLY_FALSE}"; then
20095 as_fn_error $? "conditional \"KMS_ONLY\" was never defined.
20096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20098 if test -z "${UMS_ONLY_TRUE}" && test -z "${UMS_ONLY_FALSE}"; then
20099 as_fn_error $? "conditional \"UMS_ONLY\" was never defined.
20100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20102 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
20103 as_fn_error $? "conditional \"DEBUG\" was never defined.
20104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20106 if test -z "${FULL_DEBUG_TRUE}" && test -z "${FULL_DEBUG_FALSE}"; then
20107 as_fn_error $? "conditional \"FULL_DEBUG\" was never defined.
20108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20111 : "${CONFIG_STATUS=./config.status}"
20113 ac_clean_files_save=$ac_clean_files
20114 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20116 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20118 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20120 # Generated by $as_me.
20121 # Run this file to recreate the current configuration.
20122 # Compiler output produced by configure, useful for debugging
20123 # configure, is in config.log if it exists.
20126 ac_cs_recheck=false
20129 SHELL=\${CONFIG_SHELL-$SHELL}
20132 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20133 ## -------------------- ##
20134 ## M4sh Initialization. ##
20135 ## -------------------- ##
20137 # Be more Bourne compatible
20138 DUALCASE=1; export DUALCASE # for MKS sh
20139 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20142 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20143 # is contrary to our usage. Disable this feature.
20144 alias -g '${1+"$@"}'='"$@"'
20145 setopt NO_GLOB_SUBST
20147 case `(set -o) 2>/dev/null` in #(
20159 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20160 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20161 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20162 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20163 # Prefer a ksh shell builtin over an external printf program on Solaris,
20164 # but without wasting forks for bash or zsh.
20165 if test -z "$BASH_VERSION$ZSH_VERSION" \
20166 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20167 as_echo='print -r --'
20168 as_echo_n='print -rn --'
20169 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20170 as_echo='printf %s\n'
20171 as_echo_n='printf %s'
20173 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20174 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20175 as_echo_n='/usr/ucb/echo -n'
20177 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20178 as_echo_n_body='eval
20182 expr "X$arg" : "X\\(.*\\)$as_nl";
20183 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20185 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20187 export as_echo_n_body
20188 as_echo_n='sh -c $as_echo_n_body as_echo'
20190 export as_echo_body
20191 as_echo='sh -c $as_echo_body as_echo'
20194 # The user is always right.
20195 if test "${PATH_SEPARATOR+set}" != set; then
20197 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20198 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20205 # We need space, tab and new line, in precisely that order. Quoting is
20206 # there to prevent editors from complaining about space-tab.
20207 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20208 # splitting by setting IFS to empty value.)
20211 # Find who we are. Look in the path if we contain no directory separator.
20214 *[\\/]* ) as_myself=$0 ;;
20215 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20216 for as_dir in $PATH
20219 test -z "$as_dir" && as_dir=.
20220 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20226 # We did not find ourselves, most probably we were run as `sh COMMAND'
20227 # in which case we are not to be found in the path.
20228 if test "x$as_myself" = x; then
20231 if test ! -f "$as_myself"; then
20232 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20236 # Unset variables that we do not need and which cause bugs (e.g. in
20237 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20238 # suppresses any "Segmentation fault" message there. '((' could
20239 # trigger a bug in pdksh 5.2.14.
20240 for as_var in BASH_ENV ENV MAIL MAILPATH
20241 do eval test x\${$as_var+set} = xset \
20242 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20255 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20258 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20259 # ----------------------------------------
20260 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20261 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20262 # script with STATUS, using 1 if that was 0.
20265 as_status=$1; test $as_status -eq 0 && as_status=1
20267 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20268 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20270 $as_echo "$as_me: error: $2" >&2
20271 as_fn_exit $as_status
20275 # as_fn_set_status STATUS
20276 # -----------------------
20277 # Set $? to STATUS, without forking.
20278 as_fn_set_status ()
20281 } # as_fn_set_status
20283 # as_fn_exit STATUS
20284 # -----------------
20285 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20289 as_fn_set_status $1
20295 # Portably unset VAR.
20298 { eval $1=; unset $1;}
20300 as_unset=as_fn_unset
20301 # as_fn_append VAR VALUE
20302 # ----------------------
20303 # Append the text in VALUE to the end of the definition contained in VAR. Take
20304 # advantage of any shell optimizations that allow amortized linear growth over
20305 # repeated appends, instead of the typical quadratic growth present in naive
20307 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20308 eval 'as_fn_append ()
20319 # as_fn_arith ARG...
20320 # ------------------
20321 # Perform arithmetic evaluation on the ARGs, and store the result in the
20322 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20323 # must be portable across $(()) and expr.
20324 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20325 eval 'as_fn_arith ()
20332 as_val=`expr "$@" || test $? -eq 1`
20337 if expr a : '\(a\)' >/dev/null 2>&1 &&
20338 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20344 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20345 as_basename=basename
20350 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20356 as_me=`$as_basename -- "$0" ||
20357 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20358 X"$0" : 'X\(//\)$' \| \
20359 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20361 sed '/^.*\/\([^/][^/]*\)\/*$/{
20375 # Avoid depending upon Character Ranges.
20376 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20377 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20378 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20379 as_cr_digits='0123456789'
20380 as_cr_alnum=$as_cr_Letters$as_cr_digits
20382 ECHO_C= ECHO_N= ECHO_T=
20383 case `echo -n x` in #(((((
20385 case `echo 'xy\c'` in
20386 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20388 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20395 rm -f conf$$ conf$$.exe conf$$.file
20396 if test -d conf$$.dir; then
20397 rm -f conf$$.dir/conf$$.file
20400 mkdir conf$$.dir 2>/dev/null
20402 if (echo >conf$$.file) 2>/dev/null; then
20403 if ln -s conf$$.file conf$$ 2>/dev/null; then
20405 # ... but there are two gotchas:
20406 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20407 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20408 # In both cases, we have to default to `cp -pR'.
20409 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20411 elif ln conf$$.file conf$$ 2>/dev/null; then
20419 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20420 rmdir conf$$.dir 2>/dev/null
20425 # Create "$as_dir" as a directory, including parents if necessary.
20430 -*) as_dir=./$as_dir;;
20432 test -d "$as_dir" || eval $as_mkdir_p || {
20436 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20437 *) as_qdir=$as_dir;;
20439 as_dirs="'$as_qdir' $as_dirs"
20440 as_dir=`$as_dirname -- "$as_dir" ||
20441 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20442 X"$as_dir" : 'X\(//\)[^/]' \| \
20443 X"$as_dir" : 'X\(//\)$' \| \
20444 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20445 $as_echo X"$as_dir" |
20446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20450 /^X\(\/\/\)[^/].*/{
20463 test -d "$as_dir" && break
20465 test -z "$as_dirs" || eval "mkdir $as_dirs"
20466 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20470 if mkdir -p . 2>/dev/null; then
20471 as_mkdir_p='mkdir -p "$as_dir"'
20473 test -d ./-p && rmdir ./-p
20478 # as_fn_executable_p FILE
20479 # -----------------------
20480 # Test if FILE is an executable regular file.
20481 as_fn_executable_p ()
20483 test -f "$1" && test -x "$1"
20484 } # as_fn_executable_p
20485 as_test_x='test -x'
20486 as_executable_p=as_fn_executable_p
20488 # Sed expression to map a string onto a valid CPP name.
20489 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20491 # Sed expression to map a string onto a valid variable name.
20492 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20496 ## ----------------------------------- ##
20497 ## Main body of $CONFIG_STATUS script. ##
20498 ## ----------------------------------- ##
20500 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20503 # Save the log message, to keep $0 and so on meaningful, and to
20504 # report actual input values of CONFIG_FILES etc. instead of their
20505 # values after options handling.
20507 This file was extended by xf86-video-intel $as_me 2.20.9, which was
20508 generated by GNU Autoconf 2.69. Invocation command line was
20510 CONFIG_FILES = $CONFIG_FILES
20511 CONFIG_HEADERS = $CONFIG_HEADERS
20512 CONFIG_LINKS = $CONFIG_LINKS
20513 CONFIG_COMMANDS = $CONFIG_COMMANDS
20516 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20521 case $ac_config_files in *"
20522 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20525 case $ac_config_headers in *"
20526 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20531 # Files that config.status was made for.
20532 config_files="$ac_config_files"
20533 config_headers="$ac_config_headers"
20534 config_commands="$ac_config_commands"
20538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20540 \`$as_me' instantiates files and other configuration actions
20541 from templates according to the current configuration. Unless the files
20542 and actions are specified as TAGs, all are instantiated by default.
20544 Usage: $0 [OPTION]... [TAG]...
20546 -h, --help print this help, then exit
20547 -V, --version print version number and configuration settings, then exit
20548 --config print configuration, then exit
20549 -q, --quiet, --silent
20550 do not print progress messages
20551 -d, --debug don't remove temporary files
20552 --recheck update $as_me by reconfiguring in the same conditions
20553 --file=FILE[:TEMPLATE]
20554 instantiate the configuration file FILE
20555 --header=FILE[:TEMPLATE]
20556 instantiate the configuration header FILE
20558 Configuration files:
20561 Configuration headers:
20564 Configuration commands:
20567 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
20570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20571 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20573 xf86-video-intel config.status 2.20.9
20574 configured by $0, generated by GNU Autoconf 2.69,
20575 with options \\"\$ac_cs_config\\"
20577 Copyright (C) 2012 Free Software Foundation, Inc.
20578 This config.status script is free software; the Free Software Foundation
20579 gives unlimited permission to copy, distribute and modify it."
20586 test -n "\$AWK" || AWK=awk
20589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20590 # The default lists apply if the user does not specify any file.
20596 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20597 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20601 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20613 # Handling of the options.
20614 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20616 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20617 $as_echo "$ac_cs_version"; exit ;;
20618 --config | --confi | --conf | --con | --co | --c )
20619 $as_echo "$ac_cs_config"; exit ;;
20620 --debug | --debu | --deb | --de | --d | -d )
20622 --file | --fil | --fi | --f )
20625 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20626 '') as_fn_error $? "missing file argument" ;;
20628 as_fn_append CONFIG_FILES " '$ac_optarg'"
20629 ac_need_defaults=false;;
20630 --header | --heade | --head | --hea )
20633 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20635 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20636 ac_need_defaults=false;;
20638 # Conflict between --help and --header
20639 as_fn_error $? "ambiguous option: \`$1'
20640 Try \`$0 --help' for more information.";;
20641 --help | --hel | -h )
20642 $as_echo "$ac_cs_usage"; exit ;;
20643 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20644 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20647 # This is an error.
20648 -*) as_fn_error $? "unrecognized option: \`$1'
20649 Try \`$0 --help' for more information." ;;
20651 *) as_fn_append ac_config_targets " $1"
20652 ac_need_defaults=false ;;
20658 ac_configure_extra_args=
20660 if $ac_cs_silent; then
20662 ac_configure_extra_args="$ac_configure_extra_args --silent"
20666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20667 if \$ac_cs_recheck; then
20668 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20670 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20671 CONFIG_SHELL='$SHELL'
20672 export CONFIG_SHELL
20677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20681 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20682 ## Running $as_me. ##
20688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20692 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20695 # The HP-UX ksh and POSIX shell print the target directory to stdout
20696 # if CDPATH is set.
20697 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20699 sed_quote_subst='$sed_quote_subst'
20700 double_quote_subst='$double_quote_subst'
20701 delay_variable_subst='$delay_variable_subst'
20702 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20703 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20704 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20705 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20706 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20707 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20708 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20709 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20710 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20711 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20712 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20713 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20714 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20715 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20716 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20717 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20718 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20719 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20720 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20721 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20722 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20723 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20724 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20725 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20726 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20727 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20728 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20729 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20730 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20731 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20732 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20733 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20734 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20735 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20736 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20737 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20738 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20739 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20740 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20741 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20742 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20743 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20744 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20745 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20746 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20747 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20748 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20749 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20750 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20751 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20752 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20753 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20754 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20755 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20756 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20757 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20758 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"`'
20759 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20760 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20761 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20762 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20763 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20764 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20765 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20766 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20767 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20768 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20769 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20770 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20771 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20772 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20773 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20774 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20775 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20776 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20777 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20778 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20779 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20780 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20781 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20782 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20783 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20784 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20785 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20786 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20787 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20788 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20789 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20790 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20791 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20792 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20793 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20794 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20795 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20796 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20797 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20798 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20799 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20800 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20801 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20802 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20803 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20804 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20805 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20806 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20807 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20808 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20809 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20810 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20811 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20812 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20813 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20814 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20815 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20816 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20817 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20818 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20819 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20820 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20821 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20822 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20823 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20824 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20825 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20826 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20827 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20828 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20829 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20830 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20831 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20834 LTCFLAGS='$LTCFLAGS'
20835 compiler='$compiler_DEFAULT'
20837 # A function that is used when there is no print builtin or printf.
20838 func_fallback_echo ()
20840 eval 'cat <<_LTECHO_EOF
20845 # Quote evaled strings.
20860 deplibs_check_method \
20865 sharedlib_from_linklib_cmd \
20868 archiver_list_spec \
20874 lt_cv_sys_global_symbol_pipe \
20875 lt_cv_sys_global_symbol_to_cdecl \
20876 lt_cv_sys_global_symbol_to_c_name_address \
20877 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20878 nm_file_list_spec \
20879 lt_prog_compiler_no_builtin_flag \
20880 lt_prog_compiler_pic \
20881 lt_prog_compiler_wl \
20882 lt_prog_compiler_static \
20883 lt_cv_prog_compiler_c_o \
20892 export_dynamic_flag_spec \
20893 whole_archive_flag_spec \
20894 compiler_needs_object \
20896 allow_undefined_flag \
20897 no_undefined_flag \
20898 hardcode_libdir_flag_spec \
20899 hardcode_libdir_separator \
20903 variables_saved_for_relink \
20905 library_names_spec \
20907 install_override_mode \
20911 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20912 *[\\\\\\\`\\"\\\$]*)
20913 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20916 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20921 # Double-quote double-evaled strings.
20922 for var in reload_cmds \
20923 old_postinstall_cmds \
20924 old_postuninstall_cmds \
20926 extract_expsyms_cmds \
20927 old_archive_from_new_cmds \
20928 old_archive_from_expsyms_cmds \
20930 archive_expsym_cmds \
20932 module_expsym_cmds \
20933 export_symbols_cmds \
20937 postuninstall_cmds \
20939 sys_lib_search_path_spec \
20940 sys_lib_dlsearch_path_spec; do
20941 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20942 *[\\\\\\\`\\"\\\$]*)
20943 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20946 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20951 ac_aux_dir='$ac_aux_dir'
20952 xsi_shell='$xsi_shell'
20953 lt_shell_append='$lt_shell_append'
20955 # See if we are running on zsh, and set the options which allow our
20956 # commands through without removal of \ escapes INIT.
20957 if test -n "\${ZSH_VERSION+set}" ; then
20958 setopt NO_GLOB_SUBST
20964 TIMESTAMP='$TIMESTAMP'
20973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20975 # Handling of arguments.
20976 for ac_config_target in $ac_config_targets
20978 case $ac_config_target in
20979 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20980 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20981 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20982 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20983 "uxa/Makefile") CONFIG_FILES="$CONFIG_FILES uxa/Makefile" ;;
20984 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20985 "src/xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES src/xvmc/Makefile" ;;
20986 "src/xvmc/shader/Makefile") CONFIG_FILES="$CONFIG_FILES src/xvmc/shader/Makefile" ;;
20987 "src/xvmc/shader/mc/Makefile") CONFIG_FILES="$CONFIG_FILES src/xvmc/shader/mc/Makefile" ;;
20988 "src/xvmc/shader/vld/Makefile") CONFIG_FILES="$CONFIG_FILES src/xvmc/shader/vld/Makefile" ;;
20989 "src/legacy/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/Makefile" ;;
20990 "src/legacy/i810/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/i810/Makefile" ;;
20991 "src/legacy/i810/xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/i810/xvmc/Makefile" ;;
20992 "src/sna/Makefile") CONFIG_FILES="$CONFIG_FILES src/sna/Makefile" ;;
20993 "src/sna/brw/Makefile") CONFIG_FILES="$CONFIG_FILES src/sna/brw/Makefile" ;;
20994 "src/sna/fb/Makefile") CONFIG_FILES="$CONFIG_FILES src/sna/fb/Makefile" ;;
20995 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20996 "src/render_program/Makefile") CONFIG_FILES="$CONFIG_FILES src/render_program/Makefile" ;;
20997 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
20999 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21004 # If the user did not use the arguments to specify the items to instantiate,
21005 # then the envvar interface is used. Set only those that are not.
21006 # We use the long form for the default assignment because of an extremely
21007 # bizarre bug on SunOS 4.1.3.
21008 if $ac_need_defaults; then
21009 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21010 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21011 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21014 # Have a temporary directory for convenience. Make it in the build tree
21015 # simply because there is no reason against having it here, and in addition,
21016 # creating and moving files from /tmp can sometimes cause problems.
21017 # Hook for its removal unless debugging.
21018 # Note that there is a small window in which the directory will not be cleaned:
21019 # after its creation but before its name has been assigned to `$tmp'.
21023 trap 'exit_status=$?
21024 : "${ac_tmp:=$tmp}"
21025 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21027 trap 'as_fn_exit 1' 1 2 13 15
21029 # Create a (secure) tmp directory for tmp files.
21032 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21036 tmp=./conf$$-$RANDOM
21037 (umask 077 && mkdir "$tmp")
21038 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21041 # Set up the scripts for CONFIG_FILES section.
21042 # No need to generate them if there are no CONFIG_FILES.
21043 # This happens for instance with `./config.status config.h'.
21044 if test -n "$CONFIG_FILES"; then
21047 ac_cr=`echo X | tr X '\015'`
21048 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21049 # But we know of no other shell where ac_cr would be empty at this
21050 # point, so we can use a bashism as a fallback.
21051 if test "x$ac_cr" = x; then
21052 eval ac_cr=\$\'\\r\'
21054 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21055 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21058 ac_cs_awk_cr=$ac_cr
21061 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21066 echo "cat >conf$$subs.awk <<_ACEOF" &&
21067 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21069 } >conf$$subs.sh ||
21070 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21071 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21073 for ac_last_try in false false false false false :; do
21074 . ./conf$$subs.sh ||
21075 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21077 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21078 if test $ac_delim_n = $ac_delim_num; then
21080 elif $ac_last_try; then
21081 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21083 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21086 rm -f conf$$subs.sh
21088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21089 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21093 s/^/S["/; s/!.*/"]=/
21103 s/\(.\{148\}\)..*/\1/
21105 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21110 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21117 s/\(.\{148\}\)..*/\1/
21119 s/["\\]/\\&/g; s/^/"/; s/$/"/
21123 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21128 ' <conf$$subs.awk | sed '
21133 ' >>$CONFIG_STATUS || ac_write_fail=1
21134 rm -f conf$$subs.awk
21135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21137 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21138 for (key in S) S_is_set[key] = 1
21144 nfields = split(line, field, "@")
21146 len = length(field[1])
21147 for (i = 2; i < nfields; i++) {
21149 keylen = length(key)
21150 if (S_is_set[key]) {
21152 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21153 len += length(value) + length(field[++i])
21164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21165 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21166 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21169 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21170 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21173 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21174 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21175 # trailing colons and then remove the whole line if VPATH becomes empty
21176 # (actually we leave an empty line to preserve line numbers).
21177 if test "x$srcdir" = x.; then
21178 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21197 fi # test -n "$CONFIG_FILES"
21199 # Set up the scripts for CONFIG_HEADERS section.
21200 # No need to generate them if there are no CONFIG_HEADERS.
21201 # This happens for instance with `./config.status Makefile'.
21202 if test -n "$CONFIG_HEADERS"; then
21203 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21207 # Transform confdefs.h into an awk script `defines.awk', embedded as
21208 # here-document in config.status, that substitutes the proper values into
21209 # config.h.in to produce config.h.
21211 # Create a delimiter string that does not exist in confdefs.h, to ease
21212 # handling of long lines.
21214 for ac_last_try in false false :; do
21215 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21216 if test -z "$ac_tt"; then
21218 elif $ac_last_try; then
21219 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21221 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21225 # For the awk script, D is an array of macro values keyed by name,
21226 # likewise P contains macro parameters if any. Preserve backslash
21227 # newline sequences.
21229 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21231 s/.\{148\}/&'"$ac_delim"'/g
21234 s/^[ ]*#[ ]*define[ ][ ]*/ /
21241 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21243 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21247 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21248 D["\1"]=" \3\\\\\\n"\\/p
21250 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21255 s/.\{148\}/&'"$ac_delim"'/g
21260 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21263 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21265 ' <confdefs.h | sed '
21266 s/'"$ac_delim"'/"\\\
21267 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21270 for (key in D) D_is_set[key] = 1
21273 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21275 split(line, arg, " ")
21276 if (arg[1] == "#") {
21280 defundef = substr(arg[1], 2)
21283 split(mac1, mac2, "(") #)
21285 prefix = substr(line, 1, index(line, defundef) - 1)
21286 if (D_is_set[macro]) {
21287 # Preserve the white space surrounding the "#".
21288 print prefix "define", macro P[macro] D[macro]
21291 # Replace #undef with comments. This is necessary, for example,
21292 # in the case of _POSIX_SOURCE, which is predefined and required
21293 # on some systems where configure will not decide to define it.
21294 if (defundef == "undef") {
21295 print "/*", prefix defundef, macro, "*/"
21303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21304 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21305 fi # test -n "$CONFIG_HEADERS"
21308 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21313 :[FHLC]) ac_mode=$ac_tag; continue;;
21315 case $ac_mode$ac_tag in
21317 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21318 :[FH]-) ac_tag=-:-;;
21319 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21336 -) ac_f="$ac_tmp/stdin";;
21337 *) # Look for the file first in the build tree, then in the source tree
21338 # (if the path is not absolute). The absolute path cannot be DOS-style,
21339 # because $ac_f cannot contain `:'.
21343 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21345 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21347 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21348 as_fn_append ac_file_inputs " '$ac_f'"
21351 # Let's still pretend it is `configure' which instantiates (i.e., don't
21352 # use $as_me), people would be surprised to read:
21353 # /* config.h. Generated by config.status. */
21354 configure_input='Generated from '`
21355 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21357 if test x"$ac_file" != x-; then
21358 configure_input="$ac_file. $configure_input"
21359 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21360 $as_echo "$as_me: creating $ac_file" >&6;}
21362 # Neutralize special characters interpreted by sed in replacement strings.
21363 case $configure_input in #(
21364 *\&* | *\|* | *\\* )
21365 ac_sed_conf_input=`$as_echo "$configure_input" |
21366 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21367 *) ac_sed_conf_input=$configure_input;;
21371 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21372 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21377 ac_dir=`$as_dirname -- "$ac_file" ||
21378 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21379 X"$ac_file" : 'X\(//\)[^/]' \| \
21380 X"$ac_file" : 'X\(//\)$' \| \
21381 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21382 $as_echo X"$ac_file" |
21383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21387 /^X\(\/\/\)[^/].*/{
21400 as_dir="$ac_dir"; as_fn_mkdir_p
21404 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21406 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21407 # A ".." for each directory in $ac_dir_suffix.
21408 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21409 case $ac_top_builddir_sub in
21410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21414 ac_abs_top_builddir=$ac_pwd
21415 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21416 # for backward compatibility:
21417 ac_top_builddir=$ac_top_build_prefix
21420 .) # We are building in place.
21422 ac_top_srcdir=$ac_top_builddir_sub
21423 ac_abs_top_srcdir=$ac_pwd ;;
21424 [\\/]* | ?:[\\/]* ) # Absolute name.
21425 ac_srcdir=$srcdir$ac_dir_suffix;
21426 ac_top_srcdir=$srcdir
21427 ac_abs_top_srcdir=$srcdir ;;
21428 *) # Relative name.
21429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21430 ac_top_srcdir=$ac_top_build_prefix$srcdir
21431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21433 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21443 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21444 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21446 ac_MKDIR_P=$MKDIR_P
21448 [\\/$]* | ?:[\\/]* ) ;;
21449 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21454 # If the template does not know about datarootdir, expand it.
21455 # FIXME: This hack should be removed a few years after 2.60.
21456 ac_datarootdir_hack=; ac_datarootdir_seen=
21467 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21468 *datarootdir*) ac_datarootdir_seen=yes;;
21469 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21471 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21474 ac_datarootdir_hack='
21475 s&@datadir@&$datadir&g
21476 s&@docdir@&$docdir&g
21477 s&@infodir@&$infodir&g
21478 s&@localedir@&$localedir&g
21479 s&@mandir@&$mandir&g
21480 s&\\\${datarootdir}&$datarootdir&g' ;;
21484 # Neutralize VPATH when `$srcdir' = `.'.
21485 # Shell code in configure.ac might set extrasub.
21486 # FIXME: do we really want to maintain this feature?
21487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21488 ac_sed_extra="$ac_vpsub
21491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21493 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21494 s|@configure_input@|$ac_sed_conf_input|;t t
21495 s&@top_builddir@&$ac_top_builddir_sub&;t t
21496 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21497 s&@srcdir@&$ac_srcdir&;t t
21498 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21499 s&@top_srcdir@&$ac_top_srcdir&;t t
21500 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21501 s&@builddir@&$ac_builddir&;t t
21502 s&@abs_builddir@&$ac_abs_builddir&;t t
21503 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21504 s&@INSTALL@&$ac_INSTALL&;t t
21505 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21506 $ac_datarootdir_hack
21508 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21509 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21511 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21512 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21513 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21514 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21516 which seems to be undefined. Please make sure it is defined" >&5
21517 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21518 which seems to be undefined. Please make sure it is defined" >&2;}
21520 rm -f "$ac_tmp/stdin"
21522 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21523 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21525 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21531 if test x"$ac_file" != x-; then
21533 $as_echo "/* $configure_input */" \
21534 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21535 } >"$ac_tmp/config.h" \
21536 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21537 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21538 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21539 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21542 mv "$ac_tmp/config.h" "$ac_file" \
21543 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21546 $as_echo "/* $configure_input */" \
21547 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21548 || as_fn_error $? "could not create -" "$LINENO" 5
21550 # Compute "$ac_file"'s index in $config_headers.
21553 for _am_header in $config_headers :; do
21554 case $_am_header in
21555 $_am_arg | $_am_arg:* )
21558 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21561 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21562 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21563 X"$_am_arg" : 'X\(//\)[^/]' \| \
21564 X"$_am_arg" : 'X\(//\)$' \| \
21565 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21566 $as_echo X"$_am_arg" |
21567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21571 /^X\(\/\/\)[^/].*/{
21583 s/.*/./; q'`/stamp-h$_am_stamp_count
21586 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21587 $as_echo "$as_me: executing $ac_file commands" >&6;}
21592 case $ac_file$ac_mode in
21593 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21594 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21595 # are listed without --file. Let's play safe and only enable the eval
21596 # if we detect the quoting.
21597 case $CONFIG_FILES in
21598 *\'*) eval set x "$CONFIG_FILES" ;;
21599 *) set x $CONFIG_FILES ;;
21604 # Strip MF so we end up with the name of the file.
21605 mf=`echo "$mf" | sed -e 's/:.*$//'`
21606 # Check whether this is an Automake generated Makefile or not.
21607 # We used to match only the files named `Makefile.in', but
21608 # some people rename them; so instead we look at the file content.
21609 # Grep'ing the first line is not enough: some people post-process
21610 # each Makefile.in and add a new line on top of each file to say so.
21611 # Grep'ing the whole file is not good either: AIX grep has a line
21612 # limit of 2048, but all sed's we know have understand at least 4000.
21613 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21614 dirpart=`$as_dirname -- "$mf" ||
21615 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21616 X"$mf" : 'X\(//\)[^/]' \| \
21617 X"$mf" : 'X\(//\)$' \| \
21618 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21624 /^X\(\/\/\)[^/].*/{
21640 # Extract the definition of DEPDIR, am__include, and am__quote
21641 # from the Makefile without running `make'.
21642 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21643 test -z "$DEPDIR" && continue
21644 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21645 test -z "am__include" && continue
21646 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21647 # When using ansi2knr, U may be empty or an underscore; expand it
21648 U=`sed -n 's/^U = //p' < "$mf"`
21649 # Find all dependency output files, they are included files with
21650 # $(DEPDIR) in their names. We invoke sed twice because it is the
21651 # simplest approach to changing $(DEPDIR) to its actual value in the
21653 for file in `sed -n "
21654 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21655 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21656 # Make sure the directory exists.
21657 test -f "$dirpart/$file" && continue
21658 fdir=`$as_dirname -- "$file" ||
21659 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21660 X"$file" : 'X\(//\)[^/]' \| \
21661 X"$file" : 'X\(//\)$' \| \
21662 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21663 $as_echo X"$file" |
21664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21668 /^X\(\/\/\)[^/].*/{
21681 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21682 # echo "creating $dirpart/$file"
21683 echo '# dummy' > "$dirpart/$file"
21690 # See if we are running on zsh, and set the options which allow our
21691 # commands through without removal of \ escapes.
21692 if test -n "${ZSH_VERSION+set}" ; then
21693 setopt NO_GLOB_SUBST
21696 cfgfile="${ofile}T"
21697 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21700 cat <<_LT_EOF >> "$cfgfile"
21703 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21704 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21705 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21706 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21708 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21709 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21711 # Written by Gordon Matzigkeit, 1996
21713 # This file is part of GNU Libtool.
21715 # GNU Libtool is free software; you can redistribute it and/or
21716 # modify it under the terms of the GNU General Public License as
21717 # published by the Free Software Foundation; either version 2 of
21718 # the License, or (at your option) any later version.
21720 # As a special exception to the GNU General Public License,
21721 # if you distribute this file as part of a program or library that
21722 # is built using GNU Libtool, you may include this file under the
21723 # same distribution terms that you use for the rest of that program.
21725 # GNU Libtool is distributed in the hope that it will be useful,
21726 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21727 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21728 # GNU General Public License for more details.
21730 # You should have received a copy of the GNU General Public License
21731 # along with GNU Libtool; see the file COPYING. If not, a copy
21732 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21733 # obtained by writing to the Free Software Foundation, Inc.,
21734 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21737 # The names of the tagged configurations supported by this script.
21740 # ### BEGIN LIBTOOL CONFIG
21742 # Whether or not to build static libraries.
21743 build_old_libs=$enable_static
21745 # Which release of libtool.m4 was used?
21746 macro_version=$macro_version
21747 macro_revision=$macro_revision
21749 # Whether or not to build shared libraries.
21750 build_libtool_libs=$enable_shared
21752 # What type of objects to build.
21755 # Whether or not to optimize for fast installation.
21756 fast_install=$enable_fast_install
21758 # Shell to use when invoking shell scripts.
21761 # An echo program that protects backslashes.
21764 # The PATH separator for the build system.
21765 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21768 host_alias=$host_alias
21772 # The build system.
21773 build_alias=$build_alias
21777 # A sed program that does not truncate output.
21780 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21781 Xsed="\$SED -e 1s/^X//"
21783 # A grep program that handles long lines.
21789 # A literal string matcher.
21792 # A BSD- or MS-compatible name lister.
21795 # Whether we need soft or hard links.
21798 # What is the maximum length of a command?
21799 max_cmd_len=$max_cmd_len
21801 # Object file suffix (normally "o").
21804 # Executable file suffix (normally "").
21807 # whether the shell understands "unset".
21810 # turn spaces into newlines.
21813 # turn newlines into spaces.
21816 # convert \$build file names to \$host format.
21817 to_host_file_cmd=$lt_cv_to_host_file_cmd
21819 # convert \$build files to toolchain format.
21820 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21822 # An object symbol dumper.
21823 OBJDUMP=$lt_OBJDUMP
21825 # Method to check whether dependent libraries are shared objects.
21826 deplibs_check_method=$lt_deplibs_check_method
21828 # Command to use when deplibs_check_method = "file_magic".
21829 file_magic_cmd=$lt_file_magic_cmd
21831 # How to find potential files when deplibs_check_method = "file_magic".
21832 file_magic_glob=$lt_file_magic_glob
21834 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21835 want_nocaseglob=$lt_want_nocaseglob
21837 # DLL creation program.
21838 DLLTOOL=$lt_DLLTOOL
21840 # Command to associate shared and link libraries.
21841 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21846 # Flags to create an archive.
21847 AR_FLAGS=$lt_AR_FLAGS
21849 # How to feed a file listing to the archiver.
21850 archiver_list_spec=$lt_archiver_list_spec
21852 # A symbol stripping program.
21855 # Commands used to install an old-style archive.
21857 old_postinstall_cmds=$lt_old_postinstall_cmds
21858 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21860 # Whether to use a lock for old archive extraction.
21861 lock_old_archive_extraction=$lock_old_archive_extraction
21866 # LTCC compiler flags.
21867 LTCFLAGS=$lt_CFLAGS
21869 # Take the output of nm and produce a listing of raw symbols and C names.
21870 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21872 # Transform the output of nm in a proper C declaration.
21873 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21875 # Transform the output of nm in a C name address pair.
21876 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21878 # Transform the output of nm in a C name address pair when lib prefix is needed.
21879 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21881 # Specify filename containing input files for \$NM.
21882 nm_file_list_spec=$lt_nm_file_list_spec
21884 # The root where to search for dependent libraries,and in which our libraries should be installed.
21885 lt_sysroot=$lt_sysroot
21887 # The name of the directory that contains temporary libtool files.
21890 # Used to examine libraries when file_magic_cmd begins with "file".
21891 MAGIC_CMD=$MAGIC_CMD
21893 # Must we lock files when doing compilation?
21894 need_locks=$lt_need_locks
21897 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21899 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21900 DSYMUTIL=$lt_DSYMUTIL
21902 # Tool to change global to local symbols on Mac OS X.
21905 # Tool to manipulate fat objects and archives on Mac OS X.
21908 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21911 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21912 OTOOL64=$lt_OTOOL64
21914 # Old archive suffix (normally "a").
21917 # Shared library suffix (normally ".so").
21918 shrext_cmds=$lt_shrext_cmds
21920 # The commands to extract the exported symbol list from a shared archive.
21921 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21923 # Variables whose values should be saved in libtool wrapper scripts and
21924 # restored at link time.
21925 variables_saved_for_relink=$lt_variables_saved_for_relink
21927 # Do we need the "lib" prefix for modules?
21928 need_lib_prefix=$need_lib_prefix
21930 # Do we need a version for libraries?
21931 need_version=$need_version
21933 # Library versioning type.
21934 version_type=$version_type
21936 # Shared library runtime path variable.
21937 runpath_var=$runpath_var
21939 # Shared library path variable.
21940 shlibpath_var=$shlibpath_var
21942 # Is shlibpath searched before the hard-coded library search path?
21943 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21945 # Format of library name prefix.
21946 libname_spec=$lt_libname_spec
21948 # List of archive names. First name is the real one, the rest are links.
21949 # The last name is the one that the linker finds with -lNAME
21950 library_names_spec=$lt_library_names_spec
21952 # The coded name of the library, if different from the real name.
21953 soname_spec=$lt_soname_spec
21955 # Permission mode override for installation of shared libraries.
21956 install_override_mode=$lt_install_override_mode
21958 # Command to use after installation of a shared archive.
21959 postinstall_cmds=$lt_postinstall_cmds
21961 # Command to use after uninstallation of a shared archive.
21962 postuninstall_cmds=$lt_postuninstall_cmds
21964 # Commands used to finish a libtool library installation in a directory.
21965 finish_cmds=$lt_finish_cmds
21967 # As "finish_cmds", except a single script fragment to be evaled but
21969 finish_eval=$lt_finish_eval
21971 # Whether we should hardcode library paths into libraries.
21972 hardcode_into_libs=$hardcode_into_libs
21974 # Compile-time system search path for libraries.
21975 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21977 # Run-time system search path for libraries.
21978 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21980 # Whether dlopen is supported.
21981 dlopen_support=$enable_dlopen
21983 # Whether dlopen of programs is supported.
21984 dlopen_self=$enable_dlopen_self
21986 # Whether dlopen of statically linked programs is supported.
21987 dlopen_self_static=$enable_dlopen_self_static
21989 # Commands to strip libraries.
21990 old_striplib=$lt_old_striplib
21991 striplib=$lt_striplib
21994 # The linker used to build libraries.
21997 # How to create reloadable object files.
21998 reload_flag=$lt_reload_flag
21999 reload_cmds=$lt_reload_cmds
22001 # Commands used to build an old-style archive.
22002 old_archive_cmds=$lt_old_archive_cmds
22004 # A language specific compiler.
22007 # Is the compiler the GNU compiler?
22010 # Compiler flag to turn off builtin functions.
22011 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22013 # Additional compiler flags for building library objects.
22014 pic_flag=$lt_lt_prog_compiler_pic
22016 # How to pass a linker flag through the compiler.
22017 wl=$lt_lt_prog_compiler_wl
22019 # Compiler flag to prevent dynamic linking.
22020 link_static_flag=$lt_lt_prog_compiler_static
22022 # Does compiler simultaneously support -c and -o options?
22023 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22025 # Whether or not to add -lc for building shared libraries.
22026 build_libtool_need_lc=$archive_cmds_need_lc
22028 # Whether or not to disallow shared libs when runtime libs are static.
22029 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22031 # Compiler flag to allow reflexive dlopens.
22032 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22034 # Compiler flag to generate shared objects directly from archives.
22035 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22037 # Whether the compiler copes with passing no objects directly.
22038 compiler_needs_object=$lt_compiler_needs_object
22040 # Create an old-style archive from a shared archive.
22041 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22043 # Create a temporary old-style archive to link instead of a shared archive.
22044 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22046 # Commands used to build a shared archive.
22047 archive_cmds=$lt_archive_cmds
22048 archive_expsym_cmds=$lt_archive_expsym_cmds
22050 # Commands used to build a loadable module if different from building
22051 # a shared archive.
22052 module_cmds=$lt_module_cmds
22053 module_expsym_cmds=$lt_module_expsym_cmds
22055 # Whether we are building with GNU ld or not.
22056 with_gnu_ld=$lt_with_gnu_ld
22058 # Flag that allows shared libraries with undefined symbols to be built.
22059 allow_undefined_flag=$lt_allow_undefined_flag
22061 # Flag that enforces no undefined symbols.
22062 no_undefined_flag=$lt_no_undefined_flag
22064 # Flag to hardcode \$libdir into a binary during linking.
22065 # This must work even if \$libdir does not exist
22066 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22068 # Whether we need a single "-rpath" flag with a separated argument.
22069 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22071 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22072 # DIR into the resulting binary.
22073 hardcode_direct=$hardcode_direct
22075 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22076 # DIR into the resulting binary and the resulting library dependency is
22077 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22078 # library is relocated.
22079 hardcode_direct_absolute=$hardcode_direct_absolute
22081 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22082 # into the resulting binary.
22083 hardcode_minus_L=$hardcode_minus_L
22085 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22086 # into the resulting binary.
22087 hardcode_shlibpath_var=$hardcode_shlibpath_var
22089 # Set to "yes" if building a shared library automatically hardcodes DIR
22090 # into the library and all subsequent libraries and executables linked
22092 hardcode_automatic=$hardcode_automatic
22094 # Set to yes if linker adds runtime paths of dependent libraries
22095 # to runtime path list.
22096 inherit_rpath=$inherit_rpath
22098 # Whether libtool must link a program against all its dependency libraries.
22099 link_all_deplibs=$link_all_deplibs
22101 # Set to "yes" if exported symbols are required.
22102 always_export_symbols=$always_export_symbols
22104 # The commands to list exported symbols.
22105 export_symbols_cmds=$lt_export_symbols_cmds
22107 # Symbols that should not be listed in the preloaded symbols.
22108 exclude_expsyms=$lt_exclude_expsyms
22110 # Symbols that must always be exported.
22111 include_expsyms=$lt_include_expsyms
22113 # Commands necessary for linking programs (against libraries) with templates.
22114 prelink_cmds=$lt_prelink_cmds
22116 # Commands necessary for finishing linking programs.
22117 postlink_cmds=$lt_postlink_cmds
22119 # Specify filename containing input files.
22120 file_list_spec=$lt_file_list_spec
22122 # How to hardcode a shared library path into an executable.
22123 hardcode_action=$hardcode_action
22125 # ### END LIBTOOL CONFIG
22131 cat <<\_LT_EOF >> "$cfgfile"
22132 # AIX sometimes has problems with the GCC collect2 program. For some
22133 # reason, if we set the COLLECT_NAMES environment variable, the problems
22134 # vanish in a puff of smoke.
22135 if test "X${COLLECT_NAMES+set}" != Xset; then
22137 export COLLECT_NAMES
22144 ltmain="$ac_aux_dir/ltmain.sh"
22147 # We use sed instead of cat because bash on DJGPP gets confused if
22148 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22149 # text mode, it properly converts lines to CR/LF. This bash problem
22150 # is reportedly fixed, but why not run on old versions too?
22151 sed '$q' "$ltmain" >> "$cfgfile" \
22152 || (rm -f "$cfgfile"; exit 1)
22154 if test x"$xsi_shell" = xyes; then
22155 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22159 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22160 \ * ) func_dirname_result="${3}" ;;\
22162 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22163 && mv -f "$cfgfile.tmp" "$cfgfile" \
22164 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22165 test 0 -eq $? || _lt_function_replace_fail=:
22168 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22171 \ func_basename_result="${1##*/}"\
22172 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22173 && mv -f "$cfgfile.tmp" "$cfgfile" \
22174 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22175 test 0 -eq $? || _lt_function_replace_fail=:
22178 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22179 func_dirname_and_basename ()\
22182 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22183 \ * ) func_dirname_result="${3}" ;;\
22185 \ func_basename_result="${1##*/}"\
22186 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22187 && mv -f "$cfgfile.tmp" "$cfgfile" \
22188 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22189 test 0 -eq $? || _lt_function_replace_fail=:
22192 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22195 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22196 \ # positional parameters, so assign one to ordinary parameter first.\
22197 \ func_stripname_result=${3}\
22198 \ func_stripname_result=${func_stripname_result#"${1}"}\
22199 \ func_stripname_result=${func_stripname_result%"${2}"}\
22200 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22201 && mv -f "$cfgfile.tmp" "$cfgfile" \
22202 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22203 test 0 -eq $? || _lt_function_replace_fail=:
22206 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22207 func_split_long_opt ()\
22209 \ func_split_long_opt_name=${1%%=*}\
22210 \ func_split_long_opt_arg=${1#*=}\
22211 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22212 && mv -f "$cfgfile.tmp" "$cfgfile" \
22213 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22214 test 0 -eq $? || _lt_function_replace_fail=:
22217 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22218 func_split_short_opt ()\
22220 \ func_split_short_opt_arg=${1#??}\
22221 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22222 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22223 && mv -f "$cfgfile.tmp" "$cfgfile" \
22224 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22225 test 0 -eq $? || _lt_function_replace_fail=:
22228 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22232 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22233 \ *) func_lo2o_result=${1} ;;\
22235 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22236 && mv -f "$cfgfile.tmp" "$cfgfile" \
22237 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22238 test 0 -eq $? || _lt_function_replace_fail=:
22241 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22244 func_xform_result=${1%.*}.lo\
22245 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22246 && mv -f "$cfgfile.tmp" "$cfgfile" \
22247 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22248 test 0 -eq $? || _lt_function_replace_fail=:
22251 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22254 func_arith_result=$(( $* ))\
22255 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22256 && mv -f "$cfgfile.tmp" "$cfgfile" \
22257 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22258 test 0 -eq $? || _lt_function_replace_fail=:
22261 sed -e '/^func_len ()$/,/^} # func_len /c\
22264 func_len_result=${#1}\
22265 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22266 && mv -f "$cfgfile.tmp" "$cfgfile" \
22267 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22268 test 0 -eq $? || _lt_function_replace_fail=:
22272 if test x"$lt_shell_append" = xyes; then
22273 sed -e '/^func_append ()$/,/^} # func_append /c\
22276 eval "${1}+=\\${2}"\
22277 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22278 && mv -f "$cfgfile.tmp" "$cfgfile" \
22279 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22280 test 0 -eq $? || _lt_function_replace_fail=:
22283 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22284 func_append_quoted ()\
22286 \ func_quote_for_eval "${2}"\
22287 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22288 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22289 && mv -f "$cfgfile.tmp" "$cfgfile" \
22290 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22291 test 0 -eq $? || _lt_function_replace_fail=:
22294 # Save a `func_append' function call where possible by direct use of '+='
22295 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22296 && mv -f "$cfgfile.tmp" "$cfgfile" \
22297 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22298 test 0 -eq $? || _lt_function_replace_fail=:
22300 # Save a `func_append' function call even when '+=' is not available
22301 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22302 && mv -f "$cfgfile.tmp" "$cfgfile" \
22303 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22304 test 0 -eq $? || _lt_function_replace_fail=:
22307 if test x"$_lt_function_replace_fail" = x":"; then
22308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22309 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22313 mv -f "$cfgfile" "$ofile" ||
22314 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22325 ac_clean_files=$ac_clean_files_save
22327 test $ac_write_fail = 0 ||
22328 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22331 # configure is writing to config.log, and then calls config.status.
22332 # config.status does its own redirection, appending to config.log.
22333 # Unfortunately, on DOS this fails, as config.log is still kept open
22334 # by configure, so config.status won't be able to write to it; its
22335 # output is simply discarded. So we exec the FD to /dev/null,
22336 # effectively closing config.log, so it can be properly (re)opened and
22337 # appended to by config.status. When coming back to configure, we
22338 # need to make the FD available again.
22339 if test "$no_create" != yes; then
22341 ac_config_status_args=
22342 test "$silent" = yes &&
22343 ac_config_status_args="$ac_config_status_args --quiet"
22345 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22347 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22348 # would make configure fail if this is the last instruction.
22349 $ac_cs_success || as_fn_exit 1
22351 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22353 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}