2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXvMC 1.0.7.
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
271 # Portably unset VAR.
274 { eval $1=; unset $1;}
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
298 # Create "$as_dir" as a directory, including parents if necessary.
303 -*) as_dir=./$as_dir;;
305 test -d "$as_dir" || eval $as_mkdir_p || {
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 test -d "$as_dir" && break
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
374 as_val=`expr "$@" || test $? -eq 1`
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
386 as_status=$1; test $as_status -eq 0 && as_status=1
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
468 # Exit status is that of the last command.
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
490 mkdir conf$$.dir 2>/dev/null
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
515 test -d ./-p && rmdir ./-p
519 if test -x / >/dev/null 2>&1; then
522 if ls -dL / >/dev/null 2>&1; then
529 if test -d "$1"; then
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
540 as_executable_p=$as_test_x
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548 SHELL=${CONFIG_SHELL-/bin/sh}
551 test -n "$DJDIR" || exec 7<&0 </dev/null
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
571 # Identity of this package.
572 PACKAGE_NAME='libXvMC'
573 PACKAGE_TARNAME='libXvMC'
574 PACKAGE_VERSION='1.0.7'
575 PACKAGE_STRING='libXvMC 1.0.7'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
579 ac_unique_file="Makefile.am"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
616 ac_subst_vars='am__EXEEXT_FALSE
698 MAINTAINER_MODE_FALSE
708 INSTALL_STRIP_PROGRAM
750 program_transform_name
763 enable_option_checking
764 enable_maintainer_mode
769 enable_dependency_tracking
773 enable_selective_werror
774 enable_strict_compilation
776 enable_malloc0returnsnull
779 ac_precious_vars='build_alias
795 # Initialize some variables set by options.
797 ac_init_version=false
798 ac_unrecognized_opts=
800 # The variables have the same names as the options, with
801 # dashes changed to underlines.
809 program_transform_name=s,x,x,
817 # Installation directory options.
818 # These are left unexpanded so users can "make install exec_prefix=/foo"
819 # and all the variables that are supposed to be based on exec_prefix
820 # by default will actually change.
821 # Use braces instead of parens because sh, perl, etc. also accept them.
822 # (The list follows the same order as the GNU Coding Standards.)
823 bindir='${exec_prefix}/bin'
824 sbindir='${exec_prefix}/sbin'
825 libexecdir='${exec_prefix}/libexec'
826 datarootdir='${prefix}/share'
827 datadir='${datarootdir}'
828 sysconfdir='${prefix}/etc'
829 sharedstatedir='${prefix}/com'
830 localstatedir='${prefix}/var'
831 includedir='${prefix}/include'
832 oldincludedir='/usr/include'
833 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834 infodir='${datarootdir}/info'
839 libdir='${exec_prefix}/lib'
840 localedir='${datarootdir}/locale'
841 mandir='${datarootdir}/man'
847 # If the previous option needs an argument, assign it.
848 if test -n "$ac_prev"; then
849 eval $ac_prev=\$ac_option
855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
860 # Accept the important Cygnus configure options, so we can diagnose typos.
862 case $ac_dashdash$ac_option in
866 -bindir | --bindir | --bindi | --bind | --bin | --bi)
868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
871 -build | --build | --buil | --bui | --bu)
872 ac_prev=build_alias ;;
873 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874 build_alias=$ac_optarg ;;
876 -cache-file | --cache-file | --cache-fil | --cache-fi \
877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878 ac_prev=cache_file ;;
879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881 cache_file=$ac_optarg ;;
884 cache_file=config.cache ;;
886 -datadir | --datadir | --datadi | --datad)
888 -datadir=* | --datadir=* | --datadi=* | --datad=*)
889 datadir=$ac_optarg ;;
891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892 | --dataroo | --dataro | --datar)
893 ac_prev=datarootdir ;;
894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896 datarootdir=$ac_optarg ;;
898 -disable-* | --disable-*)
899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902 as_fn_error $? "invalid feature name: $ac_useropt"
903 ac_useropt_orig=$ac_useropt
904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910 ac_unrecognized_sep=', ';;
912 eval enable_$ac_useropt=no ;;
914 -docdir | --docdir | --docdi | --doc | --do)
916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
924 -enable-* | --enable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
938 eval enable_$ac_useropt=\$ac_optarg ;;
940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942 | --exec | --exe | --ex)
943 ac_prev=exec_prefix ;;
944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946 | --exec=* | --exe=* | --ex=*)
947 exec_prefix=$ac_optarg ;;
949 -gas | --gas | --ga | --g)
950 # Obsolete; use --with-gas.
953 -help | --help | --hel | --he | -h)
955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956 ac_init_help=recursive ;;
957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958 ac_init_help=short ;;
960 -host | --host | --hos | --ho)
961 ac_prev=host_alias ;;
962 -host=* | --host=* | --hos=* | --ho=*)
963 host_alias=$ac_optarg ;;
965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969 htmldir=$ac_optarg ;;
971 -includedir | --includedir | --includedi | --included | --include \
972 | --includ | --inclu | --incl | --inc)
973 ac_prev=includedir ;;
974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975 | --includ=* | --inclu=* | --incl=* | --inc=*)
976 includedir=$ac_optarg ;;
978 -infodir | --infodir | --infodi | --infod | --info | --inf)
980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981 infodir=$ac_optarg ;;
983 -libdir | --libdir | --libdi | --libd)
985 -libdir=* | --libdir=* | --libdi=* | --libd=*)
988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989 | --libexe | --libex | --libe)
990 ac_prev=libexecdir ;;
991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992 | --libexe=* | --libex=* | --libe=*)
993 libexecdir=$ac_optarg ;;
995 -localedir | --localedir | --localedi | --localed | --locale)
997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998 localedir=$ac_optarg ;;
1000 -localstatedir | --localstatedir | --localstatedi | --localstated \
1001 | --localstate | --localstat | --localsta | --localst | --locals)
1002 ac_prev=localstatedir ;;
1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005 localstatedir=$ac_optarg ;;
1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010 mandir=$ac_optarg ;;
1012 -nfp | --nfp | --nf)
1013 # Obsolete; use --without-fp.
1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017 | --no-cr | --no-c | -n)
1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026 | --oldin | --oldi | --old | --ol | --o)
1027 ac_prev=oldincludedir ;;
1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031 oldincludedir=$ac_optarg ;;
1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036 prefix=$ac_optarg ;;
1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039 | --program-pre | --program-pr | --program-p)
1040 ac_prev=program_prefix ;;
1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043 program_prefix=$ac_optarg ;;
1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046 | --program-suf | --program-su | --program-s)
1047 ac_prev=program_suffix ;;
1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050 program_suffix=$ac_optarg ;;
1052 -program-transform-name | --program-transform-name \
1053 | --program-transform-nam | --program-transform-na \
1054 | --program-transform-n | --program-transform- \
1055 | --program-transform | --program-transfor \
1056 | --program-transfo | --program-transf \
1057 | --program-trans | --program-tran \
1058 | --progr-tra | --program-tr | --program-t)
1059 ac_prev=program_transform_name ;;
1060 -program-transform-name=* | --program-transform-name=* \
1061 | --program-transform-nam=* | --program-transform-na=* \
1062 | --program-transform-n=* | --program-transform-=* \
1063 | --program-transform=* | --program-transfor=* \
1064 | --program-transfo=* | --program-transf=* \
1065 | --program-trans=* | --program-tran=* \
1066 | --progr-tra=* | --program-tr=* | --program-t=*)
1067 program_transform_name=$ac_optarg ;;
1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072 pdfdir=$ac_optarg ;;
1074 -psdir | --psdir | --psdi | --psd | --ps)
1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080 | -silent | --silent | --silen | --sile | --sil)
1083 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087 sbindir=$ac_optarg ;;
1089 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091 | --sharedst | --shareds | --shared | --share | --shar \
1093 ac_prev=sharedstatedir ;;
1094 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098 sharedstatedir=$ac_optarg ;;
1100 -site | --site | --sit)
1102 -site=* | --site=* | --sit=*)
1105 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108 srcdir=$ac_optarg ;;
1110 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111 | --syscon | --sysco | --sysc | --sys | --sy)
1112 ac_prev=sysconfdir ;;
1113 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115 sysconfdir=$ac_optarg ;;
1117 -target | --target | --targe | --targ | --tar | --ta | --t)
1118 ac_prev=target_alias ;;
1119 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120 target_alias=$ac_optarg ;;
1122 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1125 -version | --version | --versio | --versi | --vers | -V)
1126 ac_init_version=: ;;
1129 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 as_fn_error $? "invalid package name: $ac_useropt"
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1142 eval with_$ac_useropt=\$ac_optarg ;;
1144 -without-* | --without-*)
1145 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error $? "invalid package name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1158 eval with_$ac_useropt=no ;;
1161 # Obsolete; use --with-x.
1164 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165 | --x-incl | --x-inc | --x-in | --x-i)
1166 ac_prev=x_includes ;;
1167 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169 x_includes=$ac_optarg ;;
1171 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173 ac_prev=x_libraries ;;
1174 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176 x_libraries=$ac_optarg ;;
1178 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1179 Try \`$0 --help' for more information"
1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184 # Reject names that are not valid shell variable names.
1185 case $ac_envvar in #(
1186 '' | [0-9]* | *[!_$as_cr_alnum]* )
1187 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1189 eval $ac_envvar=\$ac_optarg
1190 export $ac_envvar ;;
1193 # FIXME: should be removed in autoconf 3.0.
1194 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1203 if test -n "$ac_prev"; then
1204 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205 as_fn_error $? "missing argument to $ac_option"
1208 if test -n "$ac_unrecognized_opts"; then
1209 case $enable_option_checking in
1211 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1212 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1216 # Check all directory arguments for consistency.
1217 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218 datadir sysconfdir sharedstatedir localstatedir includedir \
1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220 libdir localedir mandir
1222 eval ac_val=\$$ac_var
1223 # Remove trailing slashes.
1226 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227 eval $ac_var=\$ac_val;;
1229 # Be sure to have absolute directory names.
1231 [\\/$]* | ?:[\\/]* ) continue;;
1232 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1234 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1237 # There might be people who depend on the old broken behavior: `$host'
1238 # used to hold the argument of --host etc.
1239 # FIXME: To remove some day.
1242 target=$target_alias
1244 # FIXME: To remove some day.
1245 if test "x$host_alias" != x; then
1246 if test "x$build_alias" = x; then
1247 cross_compiling=maybe
1248 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1249 If a cross compiler is detected then cross compile mode will be used" >&2
1250 elif test "x$build_alias" != "x$host_alias"; then
1256 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258 test "$silent" = yes && exec 6>/dev/null
1261 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262 ac_ls_di=`ls -di .` &&
1263 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264 as_fn_error $? "working directory cannot be determined"
1265 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266 as_fn_error $? "pwd does not report name of working directory"
1269 # Find the source files, if location was not specified.
1270 if test -z "$srcdir"; then
1271 ac_srcdir_defaulted=yes
1272 # Try the directory containing this script, then the parent directory.
1273 ac_confdir=`$as_dirname -- "$as_myself" ||
1274 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275 X"$as_myself" : 'X\(//\)[^/]' \| \
1276 X"$as_myself" : 'X\(//\)$' \| \
1277 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278 $as_echo X"$as_myself" |
1279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1301 ac_srcdir_defaulted=no
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1311 # When building in place, set srcdir=.
1312 if test "$ac_abs_confdir" = "$ac_pwd"; then
1315 # Remove unnecessary trailing slashes from srcdir.
1316 # Double slashes in file names in object file debugging info
1317 # mess up M-x gdb in Emacs.
1319 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321 for ac_var in $ac_precious_vars; do
1322 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_env_${ac_var}_value=\$${ac_var}
1324 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329 # Report the --help message.
1331 if test "$ac_init_help" = "long"; then
1332 # Omit some internal or obsolete options to make the list less imposing.
1333 # This message is too long to be a string in the A/UX 3.1 sh.
1335 \`configure' configures libXvMC 1.0.7 to adapt to many kinds of systems.
1337 Usage: $0 [OPTION]... [VAR=VALUE]...
1339 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340 VAR=VALUE. See below for descriptions of some of the useful variables.
1342 Defaults for the options are specified in brackets.
1345 -h, --help display this help and exit
1346 --help=short display options specific to this package
1347 --help=recursive display the short help of all the included packages
1348 -V, --version display version information and exit
1349 -q, --quiet, --silent do not print \`checking ...' messages
1350 --cache-file=FILE cache test results in FILE [disabled]
1351 -C, --config-cache alias for \`--cache-file=config.cache'
1352 -n, --no-create do not create output files
1353 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1355 Installation directories:
1356 --prefix=PREFIX install architecture-independent files in PREFIX
1357 [$ac_default_prefix]
1358 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1361 By default, \`make install' will install all the files in
1362 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1363 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364 for instance \`--prefix=\$HOME'.
1366 For better control, use the options below.
1368 Fine tuning of the installation directories:
1369 --bindir=DIR user executables [EPREFIX/bin]
1370 --sbindir=DIR system admin executables [EPREFIX/sbin]
1371 --libexecdir=DIR program executables [EPREFIX/libexec]
1372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1374 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1375 --libdir=DIR object code libraries [EPREFIX/lib]
1376 --includedir=DIR C header files [PREFIX/include]
1377 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1380 --infodir=DIR info documentation [DATAROOTDIR/info]
1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1382 --mandir=DIR man documentation [DATAROOTDIR/man]
1383 --docdir=DIR documentation root [DATAROOTDIR/doc/libXvMC]
1384 --htmldir=DIR html documentation [DOCDIR]
1385 --dvidir=DIR dvi documentation [DOCDIR]
1386 --pdfdir=DIR pdf documentation [DOCDIR]
1387 --psdir=DIR ps documentation [DOCDIR]
1393 --program-prefix=PREFIX prepend PREFIX to installed program names
1394 --program-suffix=SUFFIX append SUFFIX to installed program names
1395 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1398 --build=BUILD configure for building on BUILD [guessed]
1399 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1403 if test -n "$ac_init_help"; then
1404 case $ac_init_help in
1405 short | recursive ) echo "Configuration of libXvMC 1.0.7:";;
1410 --disable-option-checking ignore unrecognized --enable/--with options
1411 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1412 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1413 --enable-maintainer-mode enable make rules and dependencies not useful
1414 (and sometimes confusing) to the casual installer
1415 --enable-shared[=PKGS] build shared libraries [default=yes]
1416 --enable-static[=PKGS] build static libraries [default=yes]
1417 --enable-fast-install[=PKGS]
1418 optimize for fast installation [default=yes]
1419 --disable-dependency-tracking speeds up one-time build
1420 --enable-dependency-tracking do not reject slow dependency extractors
1421 --disable-libtool-lock avoid locking (might break parallel builds)
1422 --disable-selective-werror
1423 Turn off selective compiler errors. (default:
1425 --enable-strict-compilation
1426 Enable all warnings from compiler and make them
1427 errors (default: disabled)
1428 --enable-silent-rules less verbose build output (undo: `make V=1')
1429 --disable-silent-rules verbose build output (undo: `make V=0')
1430 --enable-malloc0returnsnull
1431 malloc(0) returns NULL (default: auto)
1434 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1435 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1436 --with-pic try to use only PIC/non-PIC objects [default=use
1438 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1439 --with-sysroot=DIR Search for dependent libraries within DIR
1440 (or the compiler's sysroot if not specified).
1441 --with-lint Use a lint-style source code checker (default:
1444 Some influential environment variables:
1445 CC C compiler command
1446 CFLAGS C compiler flags
1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1448 nonstandard directory <lib dir>
1449 LIBS libraries to pass to the linker, e.g. -l<library>
1450 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1451 you have headers in a nonstandard directory <include dir>
1453 PKG_CONFIG path to pkg-config utility
1454 XVMC_CFLAGS C compiler flags for XVMC, overriding pkg-config
1455 XVMC_LIBS linker flags for XVMC, overriding pkg-config
1456 LINT Path to a lint-style command
1457 LINT_FLAGS Flags for the lint-style command
1459 Use these variables to override the choices made by `configure' or to help
1460 it to find libraries and programs with nonstandard names/locations.
1462 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1467 if test "$ac_init_help" = "recursive"; then
1468 # If there are subdirs, report their specific --help.
1469 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1470 test -d "$ac_dir" ||
1471 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1479 # A ".." for each directory in $ac_dir_suffix.
1480 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1481 case $ac_top_builddir_sub in
1482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486 ac_abs_top_builddir=$ac_pwd
1487 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1488 # for backward compatibility:
1489 ac_top_builddir=$ac_top_build_prefix
1492 .) # We are building in place.
1494 ac_top_srcdir=$ac_top_builddir_sub
1495 ac_abs_top_srcdir=$ac_pwd ;;
1496 [\\/]* | ?:[\\/]* ) # Absolute name.
1497 ac_srcdir=$srcdir$ac_dir_suffix;
1498 ac_top_srcdir=$srcdir
1499 ac_abs_top_srcdir=$srcdir ;;
1501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1502 ac_top_srcdir=$ac_top_build_prefix$srcdir
1503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507 cd "$ac_dir" || { ac_status=$?; continue; }
1508 # Check for guested configure.
1509 if test -f "$ac_srcdir/configure.gnu"; then
1511 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1512 elif test -f "$ac_srcdir/configure"; then
1514 $SHELL "$ac_srcdir/configure" --help=recursive
1516 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1518 cd "$ac_pwd" || { ac_status=$?; break; }
1522 test -n "$ac_init_help" && exit $ac_status
1523 if $ac_init_version; then
1525 libXvMC configure 1.0.7
1526 generated by GNU Autoconf 2.68
1528 Copyright (C) 2010 Free Software Foundation, Inc.
1529 This configure script is free software; the Free Software Foundation
1530 gives unlimited permission to copy, distribute and modify it.
1535 ## ------------------------ ##
1536 ## Autoconf initialization. ##
1537 ## ------------------------ ##
1539 # ac_fn_c_try_compile LINENO
1540 # --------------------------
1541 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1542 ac_fn_c_try_compile ()
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 rm -f conftest.$ac_objext
1546 if { { ac_try="$ac_compile"
1548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549 *) ac_try_echo=$ac_try;;
1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 $as_echo "$ac_try_echo"; } >&5
1553 (eval "$ac_compile") 2>conftest.err
1555 if test -s conftest.err; then
1556 grep -v '^ *+' conftest.err >conftest.er1
1557 cat conftest.er1 >&5
1558 mv -f conftest.er1 conftest.err
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } && {
1562 test -z "$ac_c_werror_flag" ||
1563 test ! -s conftest.err
1564 } && test -s conftest.$ac_objext; then :
1567 $as_echo "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573 as_fn_set_status $ac_retval
1575 } # ac_fn_c_try_compile
1577 # ac_fn_c_try_link LINENO
1578 # -----------------------
1579 # Try to link conftest.$ac_ext, and return whether this succeeded.
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext conftest$ac_exeext
1584 if { { ac_try="$ac_link"
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_link") 2>conftest.err
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest$ac_exeext && {
1603 test "$cross_compiling" = yes ||
1604 $as_test_x conftest$ac_exeext
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1613 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1614 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1615 # interfere with the next link command; also delete a directory that is
1616 # left behind by Apple's compiler. We do this before executing the actions.
1617 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619 as_fn_set_status $ac_retval
1621 } # ac_fn_c_try_link
1623 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1624 # -------------------------------------------------------
1625 # Tests whether HEADER exists and can be compiled using the include files in
1626 # INCLUDES, setting the cache variable VAR accordingly.
1627 ac_fn_c_check_header_compile ()
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1631 $as_echo_n "checking for $2... " >&6; }
1632 if eval \${$3+:} false; then :
1633 $as_echo_n "(cached) " >&6
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1640 if ac_fn_c_try_compile "$LINENO"; then :
1645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649 $as_echo "$ac_res" >&6; }
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 } # ac_fn_c_check_header_compile
1654 # ac_fn_c_try_cpp LINENO
1655 # ----------------------
1656 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 if { { ac_try="$ac_cpp conftest.$ac_ext"
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1669 if test -s conftest.err; then
1670 grep -v '^ *+' conftest.err >conftest.er1
1671 cat conftest.er1 >&5
1672 mv -f conftest.er1 conftest.err
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } > conftest.i && {
1676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1677 test ! -s conftest.err
1681 $as_echo "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 as_fn_set_status $ac_retval
1691 # ac_fn_c_try_run LINENO
1692 # ----------------------
1693 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1694 # that executables *can* be run.
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if { { ac_try="$ac_link"
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_link") 2>&5
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1709 { { case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_try") 2>&5
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; }; }; then :
1721 $as_echo "$as_me: program exited with status $ac_status" >&5
1722 $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1725 ac_retval=$ac_status
1727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 as_fn_set_status $ac_retval
1733 # ac_fn_c_check_func LINENO FUNC VAR
1734 # ----------------------------------
1735 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1736 ac_fn_c_check_func ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if eval \${$3+:} false; then :
1742 $as_echo_n "(cached) " >&6
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1746 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1748 #define $2 innocuous_$2
1750 /* System header to define __stub macros and hopefully few prototypes,
1751 which can conflict with char $2 (); below.
1752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1753 <limits.h> exists even on freestanding compilers. */
1756 # include <limits.h>
1758 # include <assert.h>
1763 /* Override any GCC internal prototype to avoid an error.
1764 Use char because int might match the return type of a GCC
1765 builtin and then its argument prototype would still apply. */
1770 /* The GNU C library defines this for functions which it implements
1771 to always fail with ENOSYS. Some functions are actually named
1772 something starting with __ and the normal name is an alias. */
1773 #if defined __stub_$2 || defined __stub___$2
1785 if ac_fn_c_try_link "$LINENO"; then :
1790 rm -f core conftest.err conftest.$ac_objext \
1791 conftest$ac_exeext conftest.$ac_ext
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798 } # ac_fn_c_check_func
1800 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1801 # ---------------------------------------------
1802 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1804 ac_fn_c_check_decl ()
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 as_decl_name=`echo $2|sed 's/ *(.*//'`
1808 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1810 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1811 if eval \${$3+:} false; then :
1812 $as_echo_n "(cached) " >&6
1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1820 #ifndef $as_decl_name
1822 (void) $as_decl_use;
1824 (void) $as_decl_name;
1832 if ac_fn_c_try_compile "$LINENO"; then :
1837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844 } # ac_fn_c_check_decl
1845 cat >config.log <<_ACEOF
1846 This file contains any messages produced by compilers while
1847 running configure, to aid debugging if configure makes a mistake.
1849 It was created by libXvMC $as_me 1.0.7, which was
1850 generated by GNU Autoconf 2.68. Invocation command line was
1862 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1863 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1864 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1865 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1866 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1868 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1869 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1871 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1872 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1873 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1874 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1875 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1876 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1877 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 test -z "$as_dir" && as_dir=.
1886 $as_echo "PATH: $as_dir"
1902 # Keep a trace of the command line.
1903 # Strip out --no-create and --no-recursion so they do not pile up.
1904 # Strip out --silent because we don't want to record it for future runs.
1905 # Also quote any args containing shell meta-characters.
1906 # Make two passes to allow for proper duplicate-argument suppression.
1910 ac_must_keep_next=false
1916 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1917 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1918 | -silent | --silent | --silen | --sile | --sil)
1921 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1924 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1926 as_fn_append ac_configure_args1 " '$ac_arg'"
1927 if test $ac_must_keep_next = true; then
1928 ac_must_keep_next=false # Got value, back to normal.
1931 *=* | --config-cache | -C | -disable-* | --disable-* \
1932 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1933 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1934 | -with-* | --with-* | -without-* | --without-* | --x)
1935 case "$ac_configure_args0 " in
1936 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1939 -* ) ac_must_keep_next=true ;;
1942 as_fn_append ac_configure_args " '$ac_arg'"
1947 { ac_configure_args0=; unset ac_configure_args0;}
1948 { ac_configure_args1=; unset ac_configure_args1;}
1950 # When interrupted or exit'd, cleanup temporary files, and complete
1951 # config.log. We remove comments because anyway the quotes in there
1952 # would cause problems or look ugly.
1953 # WARNING: Use '\'' to represent an apostrophe within the trap.
1954 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1955 trap 'exit_status=$?
1956 # Save into config.log some information that might help in debugging.
1960 $as_echo "## ---------------- ##
1961 ## Cache variables. ##
1962 ## ---------------- ##"
1964 # The following way of writing the cache mishandles newlines in values,
1966 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1967 eval ac_val=\$$ac_var
1971 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1972 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1975 _ | IFS | as_nl) ;; #(
1976 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1977 *) { eval $ac_var=; unset $ac_var;} ;;
1982 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1983 *${as_nl}ac_space=\ *)
1985 "s/'\''/'\''\\\\'\'''\''/g;
1986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1989 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1996 $as_echo "## ----------------- ##
1997 ## Output variables. ##
1998 ## ----------------- ##"
2000 for ac_var in $ac_subst_vars
2002 eval ac_val=\$$ac_var
2004 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2006 $as_echo "$ac_var='\''$ac_val'\''"
2010 if test -n "$ac_subst_files"; then
2011 $as_echo "## ------------------- ##
2012 ## File substitutions. ##
2013 ## ------------------- ##"
2015 for ac_var in $ac_subst_files
2017 eval ac_val=\$$ac_var
2019 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2021 $as_echo "$ac_var='\''$ac_val'\''"
2026 if test -s confdefs.h; then
2027 $as_echo "## ----------- ##
2034 test "$ac_signal" != 0 &&
2035 $as_echo "$as_me: caught signal $ac_signal"
2036 $as_echo "$as_me: exit $exit_status"
2038 rm -f core *.core core.conftest.* &&
2039 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2042 for ac_signal in 1 2 13 15; do
2043 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2047 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2048 rm -f -r conftest* confdefs.h
2050 $as_echo "/* confdefs.h */" > confdefs.h
2052 # Predefined preprocessor variables.
2054 cat >>confdefs.h <<_ACEOF
2055 #define PACKAGE_NAME "$PACKAGE_NAME"
2058 cat >>confdefs.h <<_ACEOF
2059 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2066 cat >>confdefs.h <<_ACEOF
2067 #define PACKAGE_STRING "$PACKAGE_STRING"
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_URL "$PACKAGE_URL"
2079 # Let the site file select an alternate cache file if it wants to.
2080 # Prefer an explicitly selected file to automatically selected ones.
2083 if test -n "$CONFIG_SITE"; then
2084 # We do not want a PATH search for config.site.
2085 case $CONFIG_SITE in #((
2086 -*) ac_site_file1=./$CONFIG_SITE;;
2087 */*) ac_site_file1=$CONFIG_SITE;;
2088 *) ac_site_file1=./$CONFIG_SITE;;
2090 elif test "x$prefix" != xNONE; then
2091 ac_site_file1=$prefix/share/config.site
2092 ac_site_file2=$prefix/etc/config.site
2094 ac_site_file1=$ac_default_prefix/share/config.site
2095 ac_site_file2=$ac_default_prefix/etc/config.site
2097 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2099 test "x$ac_site_file" = xNONE && continue
2100 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2102 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2103 sed 's/^/| /' "$ac_site_file" >&5
2105 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2107 as_fn_error $? "failed to load site script $ac_site_file
2108 See \`config.log' for more details" "$LINENO" 5; }
2112 if test -r "$cache_file"; then
2113 # Some versions of bash will fail to source /dev/null (special files
2114 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2115 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2117 $as_echo "$as_me: loading cache $cache_file" >&6;}
2119 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2120 *) . "./$cache_file";;
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2125 $as_echo "$as_me: creating cache $cache_file" >&6;}
2129 # Check that the precious variables saved in the cache have kept the same
2131 ac_cache_corrupted=false
2132 for ac_var in $ac_precious_vars; do
2133 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2134 eval ac_new_set=\$ac_env_${ac_var}_set
2135 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2136 eval ac_new_val=\$ac_env_${ac_var}_value
2137 case $ac_old_set,$ac_new_set in
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2140 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2141 ac_cache_corrupted=: ;;
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2144 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2145 ac_cache_corrupted=: ;;
2148 if test "x$ac_old_val" != "x$ac_new_val"; then
2149 # differences in whitespace do not lead to failure.
2150 ac_old_val_w=`echo x $ac_old_val`
2151 ac_new_val_w=`echo x $ac_new_val`
2152 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2154 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2155 ac_cache_corrupted=:
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2158 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2159 eval $ac_var=\$ac_old_val
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2162 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2164 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2167 # Pass precious variables to config.status.
2168 if test "$ac_new_set" = set; then
2170 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2171 *) ac_arg=$ac_var=$ac_new_val ;;
2173 case " $ac_configure_args " in
2174 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2175 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2179 if $ac_cache_corrupted; then
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2183 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2184 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2186 ## -------------------- ##
2187 ## Main body of script. ##
2188 ## -------------------- ##
2191 ac_cpp='$CPP $CPPFLAGS'
2192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2198 ac_config_headers="$ac_config_headers config.h"
2201 # Initialize Automake
2202 am__api_version='1.11'
2205 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2206 if test -f "$ac_dir/install-sh"; then
2208 ac_install_sh="$ac_aux_dir/install-sh -c"
2210 elif test -f "$ac_dir/install.sh"; then
2212 ac_install_sh="$ac_aux_dir/install.sh -c"
2214 elif test -f "$ac_dir/shtool"; then
2216 ac_install_sh="$ac_aux_dir/shtool install -c"
2220 if test -z "$ac_aux_dir"; then
2221 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2224 # These three variables are undocumented and unsupported,
2225 # and are intended to be withdrawn in a future Autoconf release.
2226 # They can cause serious problems if a builder's source tree is in a directory
2227 # whose full name contains unusual characters.
2228 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2229 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2230 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2233 # Find a good install program. We prefer a C program (faster),
2234 # so one script is as good as another. But avoid the broken or
2235 # incompatible versions:
2236 # SysV /etc/install, /usr/sbin/install
2237 # SunOS /usr/etc/install
2238 # IRIX /sbin/install
2240 # AmigaOS /C/install, which installs bootblocks on floppy discs
2241 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2242 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2243 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2244 # OS/2's system install, which has a completely different semantic
2245 # ./install, which can be erroneously created by make from ./install.sh.
2246 # Reject install programs that cannot install multiple files.
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2248 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2249 if test -z "$INSTALL"; then
2250 if ${ac_cv_path_install+:} false; then :
2251 $as_echo_n "(cached) " >&6
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 test -z "$as_dir" && as_dir=.
2258 # Account for people who put trailing slashes in PATH elements.
2259 case $as_dir/ in #((
2260 ./ | .// | /[cC]/* | \
2261 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2262 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2265 # OSF1 and SCO ODT 3.0 have their own names for install.
2266 # Don't use installbsd from OSF since it installs stuff as root
2268 for ac_prog in ginstall scoinst install; do
2269 for ac_exec_ext in '' $ac_executable_extensions; do
2270 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2271 if test $ac_prog = install &&
2272 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2273 # AIX install. It has an incompatible calling convention.
2275 elif test $ac_prog = install &&
2276 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2277 # program-specific install script used by HP pwplus--don't use.
2280 rm -rf conftest.one conftest.two conftest.dir
2281 echo one > conftest.one
2282 echo two > conftest.two
2284 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2285 test -s conftest.one && test -s conftest.two &&
2286 test -s conftest.dir/conftest.one &&
2287 test -s conftest.dir/conftest.two
2289 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2302 rm -rf conftest.one conftest.two conftest.dir
2305 if test "${ac_cv_path_install+set}" = set; then
2306 INSTALL=$ac_cv_path_install
2308 # As a last resort, use the slow shell script. Don't cache a
2309 # value for INSTALL within a source directory, because that will
2310 # break other packages using the cache if that directory is
2311 # removed, or if the value is a relative name.
2312 INSTALL=$ac_install_sh
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2316 $as_echo "$INSTALL" >&6; }
2318 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2319 # It thinks the first close brace ends the variable substitution.
2320 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2322 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2324 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2327 $as_echo_n "checking whether build environment is sane... " >&6; }
2330 echo timestamp > conftest.file
2331 # Reject unsafe characters in $srcdir or the absolute working directory
2332 # name. Accept space and tab only in the latter.
2336 *[\\\"\#\$\&\'\`$am_lf]*)
2337 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2340 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2341 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2344 # Do `set' in a subshell so we don't clobber the current shell's
2345 # arguments. Must try -L first in case configure is actually a
2346 # symlink; some systems play weird games with the mod time of symlinks
2347 # (eg FreeBSD returns the mod time of the symlink's containing
2350 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2351 if test "$*" = "X"; then
2353 set X `ls -t "$srcdir/configure" conftest.file`
2356 if test "$*" != "X $srcdir/configure conftest.file" \
2357 && test "$*" != "X conftest.file $srcdir/configure"; then
2359 # If neither matched, then we have a broken ls. This can happen
2360 # if, for instance, CONFIG_SHELL is bash and it inherits a
2361 # broken ls alias from the environment. This has actually
2362 # happened. Such a system could not be considered "sane".
2363 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2364 alias in your environment" "$LINENO" 5
2367 test "$2" = conftest.file
2373 as_fn_error $? "newly created file is older than distributed files!
2374 Check your system clock" "$LINENO" 5
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2377 $as_echo "yes" >&6; }
2378 test "$program_prefix" != NONE &&
2379 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2380 # Use a double $ so make ignores it.
2381 test "$program_suffix" != NONE &&
2382 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2383 # Double any \ or $.
2384 # By default was `s,x,x', remove it if useless.
2385 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2386 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2388 # expand $ac_aux_dir to an absolute path
2389 am_aux_dir=`cd $ac_aux_dir && pwd`
2391 if test x"${MISSING+set}" != xset; then
2394 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2396 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2399 # Use eval to expand $SHELL
2400 if eval "$MISSING --run true"; then
2401 am_missing_run="$MISSING --run "
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2405 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2408 if test x"${install_sh}" != xset; then
2411 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2413 install_sh="\${SHELL} $am_aux_dir/install-sh"
2417 # Installed binaries are usually stripped using `strip' when the user
2418 # run `make install-strip'. However `strip' might not be the right
2419 # tool to use in cross-compilation environments, therefore Automake
2420 # will honor the `STRIP' environment variable to overrule this program.
2421 if test "$cross_compiling" != no; then
2422 if test -n "$ac_tool_prefix"; then
2423 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2424 set dummy ${ac_tool_prefix}strip; ac_word=$2
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2426 $as_echo_n "checking for $ac_word... " >&6; }
2427 if ${ac_cv_prog_STRIP+:} false; then :
2428 $as_echo_n "(cached) " >&6
2430 if test -n "$STRIP"; then
2431 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 test -z "$as_dir" && as_dir=.
2438 for ac_exec_ext in '' $ac_executable_extensions; do
2439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2440 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 STRIP=$ac_cv_prog_STRIP
2451 if test -n "$STRIP"; then
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2453 $as_echo "$STRIP" >&6; }
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2456 $as_echo "no" >&6; }
2461 if test -z "$ac_cv_prog_STRIP"; then
2463 # Extract the first word of "strip", so it can be a program name with args.
2464 set dummy strip; ac_word=$2
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2466 $as_echo_n "checking for $ac_word... " >&6; }
2467 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2468 $as_echo_n "(cached) " >&6
2470 if test -n "$ac_ct_STRIP"; then
2471 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480 ac_cv_prog_ac_ct_STRIP="strip"
2481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2491 if test -n "$ac_ct_STRIP"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2493 $as_echo "$ac_ct_STRIP" >&6; }
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2496 $as_echo "no" >&6; }
2499 if test "x$ac_ct_STRIP" = x; then
2502 case $cross_compiling:$ac_tool_warned in
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2506 ac_tool_warned=yes ;;
2511 STRIP="$ac_cv_prog_STRIP"
2515 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2518 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2519 if test -z "$MKDIR_P"; then
2520 if ${ac_cv_path_mkdir+:} false; then :
2521 $as_echo_n "(cached) " >&6
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2527 test -z "$as_dir" && as_dir=.
2528 for ac_prog in mkdir gmkdir; do
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2531 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2532 'mkdir (GNU coreutils) '* | \
2533 'mkdir (coreutils) '* | \
2534 'mkdir (fileutils) '4.1*)
2535 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2545 test -d ./--version && rmdir ./--version
2546 if test "${ac_cv_path_mkdir+set}" = set; then
2547 MKDIR_P="$ac_cv_path_mkdir -p"
2549 # As a last resort, use the slow shell script. Don't cache a
2550 # value for MKDIR_P within a source directory, because that will
2551 # break other packages using the cache if that directory is
2552 # removed, or if the value is a relative name.
2553 MKDIR_P="$ac_install_sh -d"
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2557 $as_echo "$MKDIR_P" >&6; }
2561 [\\/$]* | ?:[\\/]*) ;;
2562 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2565 for ac_prog in gawk mawk nawk awk
2567 # Extract the first word of "$ac_prog", so it can be a program name with args.
2568 set dummy $ac_prog; ac_word=$2
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2570 $as_echo_n "checking for $ac_word... " >&6; }
2571 if ${ac_cv_prog_AWK+:} false; then :
2572 $as_echo_n "(cached) " >&6
2574 if test -n "$AWK"; then
2575 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2584 ac_cv_prog_AWK="$ac_prog"
2585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 if test -n "$AWK"; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2597 $as_echo "$AWK" >&6; }
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2600 $as_echo "no" >&6; }
2604 test -n "$AWK" && break
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2608 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2610 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2611 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2612 $as_echo_n "(cached) " >&6
2614 cat >conftest.make <<\_ACEOF
2617 @echo '@@@%%%=$(MAKE)=@@@%%%'
2619 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2620 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2622 eval ac_cv_prog_make_${ac_make}_set=yes;;
2624 eval ac_cv_prog_make_${ac_make}_set=no;;
2628 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2630 $as_echo "yes" >&6; }
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2634 $as_echo "no" >&6; }
2635 SET_MAKE="MAKE=${MAKE-make}"
2638 rm -rf .tst 2>/dev/null
2639 mkdir .tst 2>/dev/null
2640 if test -d .tst; then
2645 rmdir .tst 2>/dev/null
2647 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2648 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2649 # is not polluted with repeated "-I."
2650 am__isrc=' -I$(srcdir)'
2651 # test to see if srcdir already configured
2652 if test -f $srcdir/config.status; then
2653 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2657 # test whether we have cygpath
2658 if test -z "$CYGPATH_W"; then
2659 if (cygpath --version) >/dev/null 2>/dev/null; then
2660 CYGPATH_W='cygpath -w'
2667 # Define the identity of the package.
2672 cat >>confdefs.h <<_ACEOF
2673 #define PACKAGE "$PACKAGE"
2677 cat >>confdefs.h <<_ACEOF
2678 #define VERSION "$VERSION"
2681 # Some tools Automake needs.
2683 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2686 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2689 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2692 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2695 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2697 # We need awk for the "check" target. The system "awk" is bad on
2699 # Always define AMTAR for backward compatibility.
2701 AMTAR=${AMTAR-"${am_missing_run}tar"}
2703 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2711 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2712 # Check whether --enable-maintainer-mode was given.
2713 if test "${enable_maintainer_mode+set}" = set; then :
2714 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2716 USE_MAINTAINER_MODE=no
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2720 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2721 if test $USE_MAINTAINER_MODE = yes; then
2722 MAINTAINER_MODE_TRUE=
2723 MAINTAINER_MODE_FALSE='#'
2725 MAINTAINER_MODE_TRUE='#'
2726 MAINTAINER_MODE_FALSE=
2729 MAINT=$MAINTAINER_MODE_TRUE
2733 # Initialize libtool
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2737 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2743 macro_revision='1.3293'
2757 ltmain="$ac_aux_dir/ltmain.sh"
2759 # Make sure we can run config.sub.
2760 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2761 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2764 $as_echo_n "checking build system type... " >&6; }
2765 if ${ac_cv_build+:} false; then :
2766 $as_echo_n "(cached) " >&6
2768 ac_build_alias=$build_alias
2769 test "x$ac_build_alias" = x &&
2770 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2771 test "x$ac_build_alias" = x &&
2772 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2773 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2774 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2778 $as_echo "$ac_cv_build" >&6; }
2779 case $ac_cv_build in
2781 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2784 ac_save_IFS=$IFS; IFS='-'
2790 # Remember, the first character of IFS is used to create $*,
2791 # except with old shells:
2794 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2798 $as_echo_n "checking host system type... " >&6; }
2799 if ${ac_cv_host+:} false; then :
2800 $as_echo_n "(cached) " >&6
2802 if test "x$host_alias" = x; then
2803 ac_cv_host=$ac_cv_build
2805 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2806 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2811 $as_echo "$ac_cv_host" >&6; }
2814 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2817 ac_save_IFS=$IFS; IFS='-'
2823 # Remember, the first character of IFS is used to create $*,
2824 # except with old shells:
2827 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2830 # Backslashify metacharacters that are still active within
2831 # double-quoted strings.
2832 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2834 # Same as above, but do not quote variable references.
2835 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2837 # Sed substitution to delay expansion of an escaped shell variable in a
2838 # double_quote_subst'ed string.
2839 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2841 # Sed substitution to delay expansion of an escaped single quote.
2842 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2844 # Sed substitution to avoid accidental globbing in evaled expressions
2845 no_glob_subst='s/\*/\\\*/g'
2847 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2848 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2849 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2852 $as_echo_n "checking how to print strings... " >&6; }
2853 # Test print first, because it will be a builtin if present.
2854 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2855 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2857 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2860 # Use this function as a fallback that always works.
2861 func_fallback_echo ()
2863 eval 'cat <<_LTECHO_EOF
2867 ECHO='func_fallback_echo'
2870 # func_echo_all arg...
2871 # Invoke $ECHO with all args, space-separated.
2878 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2879 $as_echo "printf" >&6; } ;;
2880 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2881 $as_echo "print -r" >&6; } ;;
2882 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2883 $as_echo "cat" >&6; } ;;
2899 DEPDIR="${am__leading_dot}deps"
2901 ac_config_commands="$ac_config_commands depfiles"
2904 am_make=${MAKE-make}
2905 cat > confinc << 'END'
2907 @echo this is the am__doit target
2910 # If we don't find an include directive, just comment out the code.
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2912 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2916 # First try GNU make style include.
2917 echo "include confinc" > confmf
2918 # Ignore all kinds of additional output from `make'.
2919 case `$am_make -s -f confmf 2> /dev/null` in #(
2920 *the\ am__doit\ target*)
2926 # Now try BSD make style include.
2927 if test "$am__include" = "#"; then
2928 echo '.include "confinc"' > confmf
2929 case `$am_make -s -f confmf 2> /dev/null` in #(
2930 *the\ am__doit\ target*)
2931 am__include=.include
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2940 $as_echo "$_am_result" >&6; }
2941 rm -f confinc confmf
2943 # Check whether --enable-dependency-tracking was given.
2944 if test "${enable_dependency_tracking+set}" = set; then :
2945 enableval=$enable_dependency_tracking;
2948 if test "x$enable_dependency_tracking" != xno; then
2949 am_depcomp="$ac_aux_dir/depcomp"
2952 if test "x$enable_dependency_tracking" != xno; then
2962 ac_cpp='$CPP $CPPFLAGS'
2963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2966 if test -n "$ac_tool_prefix"; then
2967 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2968 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if ${ac_cv_prog_CC+:} false; then :
2972 $as_echo_n "(cached) " >&6
2974 if test -n "$CC"; then
2975 ac_cv_prog_CC="$CC" # Let the user override the test.
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995 if test -n "$CC"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2997 $as_echo "$CC" >&6; }
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3005 if test -z "$ac_cv_prog_CC"; then
3007 # Extract the first word of "gcc", so it can be a program name with args.
3008 set dummy gcc; ac_word=$2
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 $as_echo_n "checking for $ac_word... " >&6; }
3011 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3012 $as_echo_n "(cached) " >&6
3014 if test -n "$ac_ct_CC"; then
3015 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3024 ac_cv_prog_ac_ct_CC="gcc"
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3034 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3035 if test -n "$ac_ct_CC"; then
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3037 $as_echo "$ac_ct_CC" >&6; }
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040 $as_echo "no" >&6; }
3043 if test "x$ac_ct_CC" = x; then
3046 case $cross_compiling:$ac_tool_warned in
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3050 ac_tool_warned=yes ;;
3058 if test -z "$CC"; then
3059 if test -n "$ac_tool_prefix"; then
3060 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3061 set dummy ${ac_tool_prefix}cc; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if ${ac_cv_prog_CC+:} false; then :
3065 $as_echo_n "(cached) " >&6
3067 if test -n "$CC"; then
3068 ac_cv_prog_CC="$CC" # Let the user override the test.
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3077 ac_cv_prog_CC="${ac_tool_prefix}cc"
3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 if test -n "$CC"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3090 $as_echo "$CC" >&6; }
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3099 if test -z "$CC"; then
3100 # Extract the first word of "cc", so it can be a program name with args.
3101 set dummy cc; ac_word=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if ${ac_cv_prog_CC+:} false; then :
3105 $as_echo_n "(cached) " >&6
3107 if test -n "$CC"; then
3108 ac_cv_prog_CC="$CC" # Let the user override the test.
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3118 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3119 ac_prog_rejected=yes
3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 if test $ac_prog_rejected = yes; then
3131 # We found a bogon in the path, so make sure we never use it.
3132 set dummy $ac_cv_prog_CC
3134 if test $# != 0; then
3135 # We chose a different compiler from the bogus one.
3136 # However, it has the same basename, so the bogon will be chosen
3137 # first if we set CC to just the basename; use the full file name.
3139 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3145 if test -n "$CC"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3147 $as_echo "$CC" >&6; }
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3155 if test -z "$CC"; then
3156 if test -n "$ac_tool_prefix"; then
3157 for ac_prog in cl.exe
3159 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3160 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if ${ac_cv_prog_CC+:} false; then :
3164 $as_echo_n "(cached) " >&6
3166 if test -n "$CC"; then
3167 ac_cv_prog_CC="$CC" # Let the user override the test.
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3176 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187 if test -n "$CC"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3189 $as_echo "$CC" >&6; }
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3196 test -n "$CC" && break
3199 if test -z "$CC"; then
3201 for ac_prog in cl.exe
3203 # Extract the first word of "$ac_prog", so it can be a program name with args.
3204 set dummy $ac_prog; ac_word=$2
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3208 $as_echo_n "(cached) " >&6
3210 if test -n "$ac_ct_CC"; then
3211 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 test -z "$as_dir" && as_dir=.
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3220 ac_cv_prog_ac_ct_CC="$ac_prog"
3221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3231 if test -n "$ac_ct_CC"; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3233 $as_echo "$ac_ct_CC" >&6; }
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3240 test -n "$ac_ct_CC" && break
3243 if test "x$ac_ct_CC" = x; then
3246 case $cross_compiling:$ac_tool_warned in
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3250 ac_tool_warned=yes ;;
3259 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261 as_fn_error $? "no acceptable C compiler found in \$PATH
3262 See \`config.log' for more details" "$LINENO" 5; }
3264 # Provide some information about the compiler.
3265 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3268 for ac_option in --version -v -V -qversion; do
3269 { { ac_try="$ac_compiler $ac_option >&5"
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275 $as_echo "$ac_try_echo"; } >&5
3276 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3278 if test -s conftest.err; then
3280 ... rest of stderr output deleted ...
3281 10q' conftest.err >conftest.er1
3282 cat conftest.er1 >&5
3284 rm -f conftest.er1 conftest.err
3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286 test $ac_status = 0; }
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h. */
3300 ac_clean_files_save=$ac_clean_files
3301 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3302 # Try to create an executable without -o first, disregard a.out.
3303 # It will help us diagnose broken compilers, and finding out an intuition
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3306 $as_echo_n "checking whether the C compiler works... " >&6; }
3307 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3309 # The possible output files:
3310 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3313 for ac_file in $ac_files
3316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3317 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3322 if { { ac_try="$ac_link_default"
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328 $as_echo "$ac_try_echo"; } >&5
3329 (eval "$ac_link_default") 2>&5
3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }; then :
3333 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3334 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3335 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3336 # so that the user can short-circuit this test for compilers unknown to
3338 for ac_file in $ac_files ''
3340 test -f "$ac_file" || continue
3342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3345 # We found the default executable, but exeext='' is most
3349 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3351 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3353 # We set ac_cv_exeext here because the later test for it is not
3354 # safe: cross compilers may not add the suffix if given an `-o'
3355 # argument, so we may need to know it at that point already.
3356 # Even if this section looks crufty: it has the advantage of
3363 test "$ac_cv_exeext" = no && ac_cv_exeext=
3368 if test -z "$ac_file"; then :
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3371 $as_echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376 as_fn_error 77 "C compiler cannot create executables
3377 See \`config.log' for more details" "$LINENO" 5; }
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3380 $as_echo "yes" >&6; }
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3383 $as_echo_n "checking for C compiler default output file name... " >&6; }
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3385 $as_echo "$ac_file" >&6; }
3386 ac_exeext=$ac_cv_exeext
3388 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3389 ac_clean_files=$ac_clean_files_save
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3391 $as_echo_n "checking for suffix of executables... " >&6; }
3392 if { { ac_try="$ac_link"
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3398 $as_echo "$ac_try_echo"; } >&5
3399 (eval "$ac_link") 2>&5
3401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3402 test $ac_status = 0; }; then :
3403 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3404 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3405 # work properly (i.e., refer to `conftest.exe'), while it won't with
3407 for ac_file in conftest.exe conftest conftest.*; do
3408 test -f "$ac_file" || continue
3410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3411 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3419 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3420 See \`config.log' for more details" "$LINENO" 5; }
3422 rm -f conftest conftest$ac_cv_exeext
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3424 $as_echo "$ac_cv_exeext" >&6; }
3426 rm -f conftest.$ac_ext
3427 EXEEXT=$ac_cv_exeext
3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430 /* end confdefs.h. */
3435 FILE *f = fopen ("conftest.out", "w");
3436 return ferror (f) || fclose (f) != 0;
3442 ac_clean_files="$ac_clean_files conftest.out"
3443 # Check that the compiler produces executables we can run. If not, either
3444 # the compiler is broken, or we cross compile.
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3446 $as_echo_n "checking whether we are cross compiling... " >&6; }
3447 if test "$cross_compiling" != yes; then
3448 { { ac_try="$ac_link"
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455 (eval "$ac_link") 2>&5
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }
3459 if { ac_try='./conftest$ac_cv_exeext'
3460 { { case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3465 $as_echo "$ac_try_echo"; } >&5
3466 (eval "$ac_try") 2>&5
3468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469 test $ac_status = 0; }; }; then
3472 if test "$cross_compiling" = maybe; then
3475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3477 as_fn_error $? "cannot run C compiled programs.
3478 If you meant to cross compile, use \`--host'.
3479 See \`config.log' for more details" "$LINENO" 5; }
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3484 $as_echo "$cross_compiling" >&6; }
3486 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3487 ac_clean_files=$ac_clean_files_save
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3489 $as_echo_n "checking for suffix of object files... " >&6; }
3490 if ${ac_cv_objext+:} false; then :
3491 $as_echo_n "(cached) " >&6
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3504 rm -f conftest.o conftest.obj
3505 if { { ac_try="$ac_compile"
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511 $as_echo "$ac_try_echo"; } >&5
3512 (eval "$ac_compile") 2>&5
3514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515 test $ac_status = 0; }; then :
3516 for ac_file in conftest.o conftest.obj conftest.*; do
3517 test -f "$ac_file" || continue;
3519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3520 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3525 $as_echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530 as_fn_error $? "cannot compute suffix of object files: cannot compile
3531 See \`config.log' for more details" "$LINENO" 5; }
3533 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3536 $as_echo "$ac_cv_objext" >&6; }
3537 OBJEXT=$ac_cv_objext
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3540 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3541 if ${ac_cv_c_compiler_gnu+:} false; then :
3542 $as_echo_n "(cached) " >&6
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3558 if ac_fn_c_try_compile "$LINENO"; then :
3563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3568 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3569 if test $ac_compiler_gnu = yes; then
3574 ac_test_CFLAGS=${CFLAGS+set}
3575 ac_save_CFLAGS=$CFLAGS
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3577 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3578 if ${ac_cv_prog_cc_g+:} false; then :
3579 $as_echo_n "(cached) " >&6
3581 ac_save_c_werror_flag=$ac_c_werror_flag
3582 ac_c_werror_flag=yes
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3596 if ac_fn_c_try_compile "$LINENO"; then :
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3611 if ac_fn_c_try_compile "$LINENO"; then :
3614 ac_c_werror_flag=$ac_save_c_werror_flag
3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617 /* end confdefs.h. */
3627 if ac_fn_c_try_compile "$LINENO"; then :
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635 ac_c_werror_flag=$ac_save_c_werror_flag
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3638 $as_echo "$ac_cv_prog_cc_g" >&6; }
3639 if test "$ac_test_CFLAGS" = set; then
3640 CFLAGS=$ac_save_CFLAGS
3641 elif test $ac_cv_prog_cc_g = yes; then
3642 if test "$GCC" = yes; then
3648 if test "$GCC" = yes; then
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3655 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3656 if ${ac_cv_prog_cc_c89+:} false; then :
3657 $as_echo_n "(cached) " >&6
3659 ac_cv_prog_cc_c89=no
3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662 /* end confdefs.h. */
3665 #include <sys/types.h>
3666 #include <sys/stat.h>
3667 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3668 struct buf { int x; };
3669 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3670 static char *e (p, i)
3676 static char *f (char * (*g) (char **, int), char **p, ...)
3681 s = g (p, va_arg (v,int));
3686 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3687 function prototypes and stuff, but not '\xHH' hex character constants.
3688 These don't provoke an error unfortunately, instead are silently treated
3689 as 'x'. The following induces an error, until -std is added to get
3690 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3691 array size at least. It's necessary to write '\x00'==0 to get something
3692 that's true only with -std. */
3693 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3695 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3696 inside strings and character constants. */
3698 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3700 int test (int i, double x);
3701 struct s1 {int (*f) (int a);};
3702 struct s2 {int (*f) (double a);};
3703 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3709 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3714 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3715 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3717 CC="$ac_save_CC $ac_arg"
3718 if ac_fn_c_try_compile "$LINENO"; then :
3719 ac_cv_prog_cc_c89=$ac_arg
3721 rm -f core conftest.err conftest.$ac_objext
3722 test "x$ac_cv_prog_cc_c89" != "xno" && break
3724 rm -f conftest.$ac_ext
3729 case "x$ac_cv_prog_cc_c89" in
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3732 $as_echo "none needed" >&6; } ;;
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3735 $as_echo "unsupported" >&6; } ;;
3737 CC="$CC $ac_cv_prog_cc_c89"
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3739 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3741 if test "x$ac_cv_prog_cc_c89" != xno; then :
3746 ac_cpp='$CPP $CPPFLAGS'
3747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751 depcc="$CC" am_compiler_list=
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3754 $as_echo_n "checking dependency style of $depcc... " >&6; }
3755 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3756 $as_echo_n "(cached) " >&6
3758 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3759 # We make a subdir and do the tests there. Otherwise we can end up
3760 # making bogus files that we don't know about and never remove. For
3761 # instance it was reported that on HP-UX the gcc test will end up
3762 # making a dummy file named `D' -- because `-MD' means `put the output
3765 # Copy depcomp to subdir because otherwise we won't find it if we're
3766 # using a relative directory.
3767 cp "$am_depcomp" conftest.dir
3769 # We will build objects and dependencies in a subdirectory because
3770 # it helps to detect inapplicable dependency modes. For instance
3771 # both Tru64's cc and ICC support -MD to output dependencies as a
3772 # side effect of compilation, but ICC will put the dependencies in
3773 # the current directory while Tru64 will put them in the object
3777 am_cv_CC_dependencies_compiler_type=none
3778 if test "$am_compiler_list" = ""; then
3779 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3782 case " $depcc " in #(
3783 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3786 for depmode in $am_compiler_list; do
3787 # Setup a source with many dependencies, because some compilers
3788 # like to wrap large dependency lists on column 80 (with \), and
3789 # we should not choose a depcomp mode which is confused by this.
3791 # We need to recreate these files for each test, as the compiler may
3792 # overwrite some of them when testing with obscure command lines.
3793 # This happens at least with the AIX C compiler.
3795 for i in 1 2 3 4 5 6; do
3796 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3797 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3798 # Solaris 8's {/usr,}/bin/sh.
3799 touch sub/conftst$i.h
3801 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3803 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3804 # mode. It turns out that the SunPro C++ compiler does not properly
3805 # handle `-M -o', and we need to detect this. Also, some Intel
3806 # versions had trouble with output in subdirs
3807 am__obj=sub/conftest.${OBJEXT-o}
3808 am__minus_obj="-o $am__obj"
3811 # This depmode causes a compiler race in universal mode.
3812 test "$am__universal" = false || continue
3815 # after this tag, mechanisms are not by side-effect, so they'll
3816 # only be used when explicitly requested
3817 if test "x$enable_dependency_tracking" = xyes; then
3823 msvisualcpp | msvcmsys)
3824 # This compiler won't grok `-c -o', but also, the minuso test has
3825 # not run yet. These depmodes are late enough in the game, and
3826 # so weak that their functioning should not be impacted.
3827 am__obj=conftest.${OBJEXT-o}
3832 if depmode=$depmode \
3833 source=sub/conftest.c object=$am__obj \
3834 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3835 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3836 >/dev/null 2>conftest.err &&
3837 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3838 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3839 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3840 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3841 # icc doesn't choke on unknown options, it will just issue warnings
3842 # or remarks (even with -Werror). So we grep stderr for any message
3843 # that says an option was ignored or not supported.
3844 # When given -MP, icc 7.0 and 7.1 complain thusly:
3845 # icc: Command line warning: ignoring option '-M'; no argument required
3846 # The diagnosis changed in icc 8.0:
3847 # icc: Command line remark: option '-MP' not supported
3848 if (grep 'ignoring option' conftest.err ||
3849 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3850 am_cv_CC_dependencies_compiler_type=$depmode
3859 am_cv_CC_dependencies_compiler_type=none
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3864 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3865 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3868 test "x$enable_dependency_tracking" != xno \
3869 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3871 am__fastdepCC_FALSE='#'
3873 am__fastdepCC_TRUE='#'
3874 am__fastdepCC_FALSE=
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3879 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3880 if ${ac_cv_path_SED+:} false; then :
3881 $as_echo_n "(cached) " >&6
3883 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3884 for ac_i in 1 2 3 4 5 6 7; do
3885 ac_script="$ac_script$as_nl$ac_script"
3887 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3888 { ac_script=; unset ac_script;}
3889 if test -z "$SED"; then
3890 ac_path_SED_found=false
3891 # Loop through the user's path and test for each of PROGNAME-LIST
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 test -z "$as_dir" && as_dir=.
3897 for ac_prog in sed gsed; do
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3900 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3901 # Check for GNU ac_path_SED and select it if it is found.
3902 # Check for GNU $ac_path_SED
3903 case `"$ac_path_SED" --version 2>&1` in
3905 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3908 $as_echo_n 0123456789 >"conftest.in"
3911 cat "conftest.in" "conftest.in" >"conftest.tmp"
3912 mv "conftest.tmp" "conftest.in"
3913 cp "conftest.in" "conftest.nl"
3914 $as_echo '' >> "conftest.nl"
3915 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3917 as_fn_arith $ac_count + 1 && ac_count=$as_val
3918 if test $ac_count -gt ${ac_path_SED_max-0}; then
3919 # Best one so far, save it but keep looking for a better one
3920 ac_cv_path_SED="$ac_path_SED"
3921 ac_path_SED_max=$ac_count
3923 # 10*(2^10) chars as input seems more than enough
3924 test $ac_count -gt 10 && break
3926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3929 $ac_path_SED_found && break 3
3934 if test -z "$ac_cv_path_SED"; then
3935 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3943 $as_echo "$ac_cv_path_SED" >&6; }
3944 SED="$ac_cv_path_SED"
3947 test -z "$SED" && SED=sed
3948 Xsed="$SED -e 1s/^X//"
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3961 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3962 if ${ac_cv_path_GREP+:} false; then :
3963 $as_echo_n "(cached) " >&6
3965 if test -z "$GREP"; then
3966 ac_path_GREP_found=false
3967 # Loop through the user's path and test for each of PROGNAME-LIST
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3972 test -z "$as_dir" && as_dir=.
3973 for ac_prog in grep ggrep; do
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3976 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3977 # Check for GNU ac_path_GREP and select it if it is found.
3978 # Check for GNU $ac_path_GREP
3979 case `"$ac_path_GREP" --version 2>&1` in
3981 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3984 $as_echo_n 0123456789 >"conftest.in"
3987 cat "conftest.in" "conftest.in" >"conftest.tmp"
3988 mv "conftest.tmp" "conftest.in"
3989 cp "conftest.in" "conftest.nl"
3990 $as_echo 'GREP' >> "conftest.nl"
3991 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3992 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3993 as_fn_arith $ac_count + 1 && ac_count=$as_val
3994 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3995 # Best one so far, save it but keep looking for a better one
3996 ac_cv_path_GREP="$ac_path_GREP"
3997 ac_path_GREP_max=$ac_count
3999 # 10*(2^10) chars as input seems more than enough
4000 test $ac_count -gt 10 && break
4002 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4005 $ac_path_GREP_found && break 3
4010 if test -z "$ac_cv_path_GREP"; then
4011 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4014 ac_cv_path_GREP=$GREP
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4019 $as_echo "$ac_cv_path_GREP" >&6; }
4020 GREP="$ac_cv_path_GREP"
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4024 $as_echo_n "checking for egrep... " >&6; }
4025 if ${ac_cv_path_EGREP+:} false; then :
4026 $as_echo_n "(cached) " >&6
4028 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4029 then ac_cv_path_EGREP="$GREP -E"
4031 if test -z "$EGREP"; then
4032 ac_path_EGREP_found=false
4033 # Loop through the user's path and test for each of PROGNAME-LIST
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4038 test -z "$as_dir" && as_dir=.
4039 for ac_prog in egrep; do
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4042 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4043 # Check for GNU ac_path_EGREP and select it if it is found.
4044 # Check for GNU $ac_path_EGREP
4045 case `"$ac_path_EGREP" --version 2>&1` in
4047 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4050 $as_echo_n 0123456789 >"conftest.in"
4053 cat "conftest.in" "conftest.in" >"conftest.tmp"
4054 mv "conftest.tmp" "conftest.in"
4055 cp "conftest.in" "conftest.nl"
4056 $as_echo 'EGREP' >> "conftest.nl"
4057 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4058 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4059 as_fn_arith $ac_count + 1 && ac_count=$as_val
4060 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4061 # Best one so far, save it but keep looking for a better one
4062 ac_cv_path_EGREP="$ac_path_EGREP"
4063 ac_path_EGREP_max=$ac_count
4065 # 10*(2^10) chars as input seems more than enough
4066 test $ac_count -gt 10 && break
4068 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4071 $ac_path_EGREP_found && break 3
4076 if test -z "$ac_cv_path_EGREP"; then
4077 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4080 ac_cv_path_EGREP=$EGREP
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4086 $as_echo "$ac_cv_path_EGREP" >&6; }
4087 EGREP="$ac_cv_path_EGREP"
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4091 $as_echo_n "checking for fgrep... " >&6; }
4092 if ${ac_cv_path_FGREP+:} false; then :
4093 $as_echo_n "(cached) " >&6
4095 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4096 then ac_cv_path_FGREP="$GREP -F"
4098 if test -z "$FGREP"; then
4099 ac_path_FGREP_found=false
4100 # Loop through the user's path and test for each of PROGNAME-LIST
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4105 test -z "$as_dir" && as_dir=.
4106 for ac_prog in fgrep; do
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4109 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4110 # Check for GNU ac_path_FGREP and select it if it is found.
4111 # Check for GNU $ac_path_FGREP
4112 case `"$ac_path_FGREP" --version 2>&1` in
4114 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4117 $as_echo_n 0123456789 >"conftest.in"
4120 cat "conftest.in" "conftest.in" >"conftest.tmp"
4121 mv "conftest.tmp" "conftest.in"
4122 cp "conftest.in" "conftest.nl"
4123 $as_echo 'FGREP' >> "conftest.nl"
4124 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4125 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4126 as_fn_arith $ac_count + 1 && ac_count=$as_val
4127 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4128 # Best one so far, save it but keep looking for a better one
4129 ac_cv_path_FGREP="$ac_path_FGREP"
4130 ac_path_FGREP_max=$ac_count
4132 # 10*(2^10) chars as input seems more than enough
4133 test $ac_count -gt 10 && break
4135 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4138 $ac_path_FGREP_found && break 3
4143 if test -z "$ac_cv_path_FGREP"; then
4144 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4147 ac_cv_path_FGREP=$FGREP
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4153 $as_echo "$ac_cv_path_FGREP" >&6; }
4154 FGREP="$ac_cv_path_FGREP"
4157 test -z "$GREP" && GREP=grep
4177 # Check whether --with-gnu-ld was given.
4178 if test "${with_gnu_ld+set}" = set; then :
4179 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4185 if test "$GCC" = yes; then
4186 # Check if gcc -print-prog-name=ld gives a path.
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4188 $as_echo_n "checking for ld used by $CC... " >&6; }
4191 # gcc leaves a trailing carriage return which upsets mingw
4192 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4194 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4197 # Accept absolute paths.
4199 re_direlt='/[^/][^/]*/\.\./'
4200 # Canonicalize the pathname of ld
4201 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4202 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4203 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4205 test -z "$LD" && LD="$ac_prog"
4208 # If it fails, then pretend we aren't using GCC.
4212 # If it is relative, then search for the first ld in PATH.
4216 elif test "$with_gnu_ld" = yes; then
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4218 $as_echo_n "checking for GNU ld... " >&6; }
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4221 $as_echo_n "checking for non-GNU ld... " >&6; }
4223 if ${lt_cv_path_LD+:} false; then :
4224 $as_echo_n "(cached) " >&6
4226 if test -z "$LD"; then
4227 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4228 for ac_dir in $PATH; do
4230 test -z "$ac_dir" && ac_dir=.
4231 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4232 lt_cv_path_LD="$ac_dir/$ac_prog"
4233 # Check to see if the program is GNU ld. I'd rather use --version,
4234 # but apparently some variants of GNU ld only accept -v.
4235 # Break only if it was the GNU/non-GNU ld that we prefer.
4236 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4237 *GNU* | *'with BFD'*)
4238 test "$with_gnu_ld" != no && break
4241 test "$with_gnu_ld" != yes && break
4248 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4253 if test -n "$LD"; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4255 $as_echo "$LD" >&6; }
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258 $as_echo "no" >&6; }
4260 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4262 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4263 if ${lt_cv_prog_gnu_ld+:} false; then :
4264 $as_echo_n "(cached) " >&6
4266 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4267 case `$LD -v 2>&1 </dev/null` in
4268 *GNU* | *'with BFD'*)
4269 lt_cv_prog_gnu_ld=yes
4272 lt_cv_prog_gnu_ld=no
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4277 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4278 with_gnu_ld=$lt_cv_prog_gnu_ld
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4289 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4290 if ${lt_cv_path_NM+:} false; then :
4291 $as_echo_n "(cached) " >&6
4293 if test -n "$NM"; then
4294 # Let the user override the test.
4297 lt_nm_to_check="${ac_tool_prefix}nm"
4298 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4299 lt_nm_to_check="$lt_nm_to_check nm"
4301 for lt_tmp_nm in $lt_nm_to_check; do
4302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4303 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4305 test -z "$ac_dir" && ac_dir=.
4306 tmp_nm="$ac_dir/$lt_tmp_nm"
4307 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4308 # Check to see if the nm accepts a BSD-compat flag.
4309 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4310 # nm: unknown option "B" ignored
4311 # Tru64's nm complains that /dev/null is an invalid object file
4312 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4313 */dev/null* | *'Invalid file or object type'*)
4314 lt_cv_path_NM="$tmp_nm -B"
4318 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4320 lt_cv_path_NM="$tmp_nm -p"
4324 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4325 continue # so that we can try to find one that supports BSD flags
4334 : ${lt_cv_path_NM=no}
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4338 $as_echo "$lt_cv_path_NM" >&6; }
4339 if test "$lt_cv_path_NM" != "no"; then
4342 # Didn't find any BSD compatible name lister, look for dumpbin.
4343 if test -n "$DUMPBIN"; then :
4344 # Let the user override the test.
4346 if test -n "$ac_tool_prefix"; then
4347 for ac_prog in dumpbin "link -dump"
4349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4352 $as_echo_n "checking for $ac_word... " >&6; }
4353 if ${ac_cv_prog_DUMPBIN+:} false; then :
4354 $as_echo_n "(cached) " >&6
4356 if test -n "$DUMPBIN"; then
4357 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4366 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4376 DUMPBIN=$ac_cv_prog_DUMPBIN
4377 if test -n "$DUMPBIN"; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4379 $as_echo "$DUMPBIN" >&6; }
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; }
4386 test -n "$DUMPBIN" && break
4389 if test -z "$DUMPBIN"; then
4390 ac_ct_DUMPBIN=$DUMPBIN
4391 for ac_prog in dumpbin "link -dump"
4393 # Extract the first word of "$ac_prog", so it can be a program name with args.
4394 set dummy $ac_prog; ac_word=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4398 $as_echo_n "(cached) " >&6
4400 if test -n "$ac_ct_DUMPBIN"; then
4401 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4421 if test -n "$ac_ct_DUMPBIN"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4423 $as_echo "$ac_ct_DUMPBIN" >&6; }
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4430 test -n "$ac_ct_DUMPBIN" && break
4433 if test "x$ac_ct_DUMPBIN" = x; then
4436 case $cross_compiling:$ac_tool_warned in
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4440 ac_tool_warned=yes ;;
4442 DUMPBIN=$ac_ct_DUMPBIN
4446 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4448 DUMPBIN="$DUMPBIN -symbols"
4456 if test "$DUMPBIN" != ":"; then
4460 test -z "$NM" && NM=nm
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4468 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4469 if ${lt_cv_nm_interface+:} false; then :
4470 $as_echo_n "(cached) " >&6
4472 lt_cv_nm_interface="BSD nm"
4473 echo "int some_variable = 0;" > conftest.$ac_ext
4474 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4475 (eval "$ac_compile" 2>conftest.err)
4476 cat conftest.err >&5
4477 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4478 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4479 cat conftest.err >&5
4480 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4481 cat conftest.out >&5
4482 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4483 lt_cv_nm_interface="MS dumpbin"
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4488 $as_echo "$lt_cv_nm_interface" >&6; }
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4491 $as_echo_n "checking whether ln -s works... " >&6; }
4493 if test "$LN_S" = "ln -s"; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4495 $as_echo "yes" >&6; }
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4498 $as_echo "no, using $LN_S" >&6; }
4501 # find the maximum length of command line arguments
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4503 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4504 if ${lt_cv_sys_max_cmd_len+:} false; then :
4505 $as_echo_n "(cached) " >&6
4512 # On DJGPP, this test can blow up pretty badly due to problems in libc
4513 # (any single argument exceeding 2000 bytes causes a buffer overrun
4514 # during glob expansion). Even if it were fixed, the result of this
4515 # check would be larger than it should be.
4516 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4520 # Under GNU Hurd, this test is not required because there is
4521 # no limit to the length of command line arguments.
4522 # Libtool will interpret -1 as no limit whatsoever
4523 lt_cv_sys_max_cmd_len=-1;
4526 cygwin* | mingw* | cegcc*)
4527 # On Win9x/ME, this test blows up -- it succeeds, but takes
4528 # about 5 minutes as the teststring grows exponentially.
4529 # Worse, since 9x/ME are not pre-emptively multitasking,
4530 # you end up with a "frozen" computer, even though with patience
4531 # the test eventually succeeds (with a max line length of 256k).
4532 # Instead, let's just punt: use the minimum linelength reported by
4533 # all of the supported platforms: 8192 (on NT/2K/XP).
4534 lt_cv_sys_max_cmd_len=8192;
4538 # On MiNT this can take a long time and run out of memory.
4539 lt_cv_sys_max_cmd_len=8192;
4543 # On AmigaOS with pdksh, this test takes hours, literally.
4544 # So we just punt and use a minimum line length of 8192.
4545 lt_cv_sys_max_cmd_len=8192;
4548 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4549 # This has been around since 386BSD, at least. Likely further.
4550 if test -x /sbin/sysctl; then
4551 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4552 elif test -x /usr/sbin/sysctl; then
4553 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4555 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4557 # And add a safety zone
4558 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4559 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4563 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4564 lt_cv_sys_max_cmd_len=196608
4568 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4569 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4570 # nice to cause kernel panics so lets avoid the loop below.
4571 # First set a reasonable default.
4572 lt_cv_sys_max_cmd_len=16384
4574 if test -x /sbin/sysconfig; then
4575 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4576 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4581 lt_cv_sys_max_cmd_len=102400
4583 sysv5* | sco5v6* | sysv4.2uw2*)
4584 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4585 if test -n "$kargmax"; then
4586 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4588 lt_cv_sys_max_cmd_len=32768
4592 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4593 if test -n "$lt_cv_sys_max_cmd_len"; then
4594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4595 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4597 # Make teststring a little bigger before we do anything with it.
4598 # a 1K string should be a reasonable start.
4599 for i in 1 2 3 4 5 6 7 8 ; do
4600 teststring=$teststring$teststring
4602 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4603 # If test is not a shell built-in, we'll probably end up computing a
4604 # maximum length that is only half of the actual maximum length, but
4606 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4607 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4608 test $i != 17 # 1/2 MB should be enough
4611 teststring=$teststring$teststring
4613 # Only check the string length outside the loop.
4614 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4616 # Add a significant safety factor because C++ compilers can tack on
4617 # massive amounts of additional arguments before passing them to the
4618 # linker. It appears as though 1/2 is a usable value.
4619 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4626 if test -n $lt_cv_sys_max_cmd_len ; then
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4628 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4631 $as_echo "none" >&6; }
4633 max_cmd_len=$lt_cv_sys_max_cmd_len
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4645 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4646 # Try some XSI features
4649 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4651 && eval 'test $(( 1 + 1 )) -eq 2 \
4652 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4655 $as_echo "$xsi_shell" >&6; }
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4659 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4661 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4663 && lt_shell_append=yes
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4665 $as_echo "$lt_shell_append" >&6; }
4668 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4678 # test EBCDIC or ASCII
4679 case `echo X|tr X '\101'` in
4680 A) # ASCII based system
4681 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4682 lt_SP2NL='tr \040 \012'
4683 lt_NL2SP='tr \015\012 \040\040'
4685 *) # EBCDIC based system
4686 lt_SP2NL='tr \100 \n'
4687 lt_NL2SP='tr \r\n \100\100'
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4700 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4701 if ${lt_cv_to_host_file_cmd+:} false; then :
4702 $as_echo_n "(cached) " >&6
4707 *-*-mingw* ) # actually msys
4708 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4711 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4713 * ) # otherwise, assume *nix
4714 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4720 *-*-mingw* ) # actually msys
4721 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4724 lt_cv_to_host_file_cmd=func_convert_file_noop
4726 * ) # otherwise, assume *nix
4727 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4731 * ) # unhandled hosts (and "normal" native builds)
4732 lt_cv_to_host_file_cmd=func_convert_file_noop
4738 to_host_file_cmd=$lt_cv_to_host_file_cmd
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4740 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4747 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4748 if ${lt_cv_to_tool_file_cmd+:} false; then :
4749 $as_echo_n "(cached) " >&6
4751 #assume ordinary cross tools, or native build.
4752 lt_cv_to_tool_file_cmd=func_convert_file_noop
4756 *-*-mingw* ) # actually msys
4757 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4765 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4767 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4774 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4775 if ${lt_cv_ld_reload_flag+:} false; then :
4776 $as_echo_n "(cached) " >&6
4778 lt_cv_ld_reload_flag='-r'
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4781 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4782 reload_flag=$lt_cv_ld_reload_flag
4783 case $reload_flag in
4785 *) reload_flag=" $reload_flag" ;;
4787 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4789 cygwin* | mingw* | pw32* | cegcc*)
4790 if test "$GCC" != yes; then
4795 if test "$GCC" = yes; then
4796 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4798 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4811 if test -n "$ac_tool_prefix"; then
4812 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4813 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815 $as_echo_n "checking for $ac_word... " >&6; }
4816 if ${ac_cv_prog_OBJDUMP+:} false; then :
4817 $as_echo_n "(cached) " >&6
4819 if test -n "$OBJDUMP"; then
4820 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4829 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 OBJDUMP=$ac_cv_prog_OBJDUMP
4840 if test -n "$OBJDUMP"; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4842 $as_echo "$OBJDUMP" >&6; }
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845 $as_echo "no" >&6; }
4850 if test -z "$ac_cv_prog_OBJDUMP"; then
4851 ac_ct_OBJDUMP=$OBJDUMP
4852 # Extract the first word of "objdump", so it can be a program name with args.
4853 set dummy objdump; ac_word=$2
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4857 $as_echo_n "(cached) " >&6
4859 if test -n "$ac_ct_OBJDUMP"; then
4860 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4880 if test -n "$ac_ct_OBJDUMP"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4882 $as_echo "$ac_ct_OBJDUMP" >&6; }
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4888 if test "x$ac_ct_OBJDUMP" = x; then
4891 case $cross_compiling:$ac_tool_warned in
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4895 ac_tool_warned=yes ;;
4897 OBJDUMP=$ac_ct_OBJDUMP
4900 OBJDUMP="$ac_cv_prog_OBJDUMP"
4903 test -z "$OBJDUMP" && OBJDUMP=objdump
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4914 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4915 if ${lt_cv_deplibs_check_method+:} false; then :
4916 $as_echo_n "(cached) " >&6
4918 lt_cv_file_magic_cmd='$MAGIC_CMD'
4919 lt_cv_file_magic_test_file=
4920 lt_cv_deplibs_check_method='unknown'
4921 # Need to set the preceding variable on all platforms that support
4922 # interlibrary dependencies.
4923 # 'none' -- dependencies not supported.
4924 # `unknown' -- same as none, but documents that we really don't know.
4925 # 'pass_all' -- all dependencies passed with no checks.
4926 # 'test_compile' -- check by making test program.
4927 # 'file_magic [[regex]]' -- check by looking for files in library path
4928 # which responds to the $file_magic_cmd with a given extended regex.
4929 # If you have `file' or equivalent on your system and you're not sure
4930 # whether `pass_all' will *always* work, you probably want this one.
4934 lt_cv_deplibs_check_method=pass_all
4938 lt_cv_deplibs_check_method=pass_all
4942 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4943 lt_cv_file_magic_cmd='/usr/bin/file -L'
4944 lt_cv_file_magic_test_file=/shlib/libc.so
4948 # func_win32_libid is a shell function defined in ltmain.sh
4949 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4950 lt_cv_file_magic_cmd='func_win32_libid'
4954 # Base MSYS/MinGW do not provide the 'file' command needed by
4955 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4956 # unless we find 'file', for example because we are cross-compiling.
4957 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4958 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4959 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4960 lt_cv_file_magic_cmd='func_win32_libid'
4962 # Keep this pattern in sync with the one in func_win32_libid.
4963 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4964 lt_cv_file_magic_cmd='$OBJDUMP -f'
4969 # use the weaker test based on 'objdump'. See mingw*.
4970 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4971 lt_cv_file_magic_cmd='$OBJDUMP -f'
4974 darwin* | rhapsody*)
4975 lt_cv_deplibs_check_method=pass_all
4978 freebsd* | dragonfly*)
4979 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4982 # Not sure whether the presence of OpenBSD here was a mistake.
4983 # Let's accept both of them until this is cleared up.
4984 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4985 lt_cv_file_magic_cmd=/usr/bin/file
4986 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4990 lt_cv_deplibs_check_method=pass_all
4995 lt_cv_deplibs_check_method=pass_all
4999 lt_cv_deplibs_check_method=pass_all
5002 hpux10.20* | hpux11*)
5003 lt_cv_file_magic_cmd=/usr/bin/file
5006 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5007 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5010 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]'
5011 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5014 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5015 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5021 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5022 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5025 irix5* | irix6* | nonstopux*)
5027 *-32|*"-32 ") libmagic=32-bit;;
5028 *-n32|*"-n32 ") libmagic=N32;;
5029 *-64|*"-64 ") libmagic=64-bit;;
5030 *) libmagic=never-match;;
5032 lt_cv_deplibs_check_method=pass_all
5035 # This must be Linux ELF.
5036 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5037 lt_cv_deplibs_check_method=pass_all
5041 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5042 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5050 lt_cv_file_magic_cmd=/usr/bin/file
5051 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5055 lt_cv_deplibs_check_method=pass_all
5059 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5060 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5066 osf3* | osf4* | osf5*)
5067 lt_cv_deplibs_check_method=pass_all
5071 lt_cv_deplibs_check_method=pass_all
5075 lt_cv_deplibs_check_method=pass_all
5078 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5079 lt_cv_deplibs_check_method=pass_all
5083 case $host_vendor in
5085 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]'
5086 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5089 lt_cv_deplibs_check_method=pass_all
5092 lt_cv_file_magic_cmd='/bin/file'
5093 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5096 lt_cv_file_magic_cmd='/bin/file'
5097 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5098 lt_cv_file_magic_test_file=/lib/libc.so
5101 lt_cv_deplibs_check_method=pass_all
5104 lt_cv_deplibs_check_method=pass_all
5110 lt_cv_deplibs_check_method=pass_all
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5116 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5120 if test "$build" = "$host"; then
5123 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5126 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5132 file_magic_cmd=$lt_cv_file_magic_cmd
5133 deplibs_check_method=$lt_cv_deplibs_check_method
5134 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5157 if test -n "$ac_tool_prefix"; then
5158 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5159 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161 $as_echo_n "checking for $ac_word... " >&6; }
5162 if ${ac_cv_prog_DLLTOOL+:} false; then :
5163 $as_echo_n "(cached) " >&6
5165 if test -n "$DLLTOOL"; then
5166 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 DLLTOOL=$ac_cv_prog_DLLTOOL
5186 if test -n "$DLLTOOL"; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5188 $as_echo "$DLLTOOL" >&6; }
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5196 if test -z "$ac_cv_prog_DLLTOOL"; then
5197 ac_ct_DLLTOOL=$DLLTOOL
5198 # Extract the first word of "dlltool", so it can be a program name with args.
5199 set dummy dlltool; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5203 $as_echo_n "(cached) " >&6
5205 if test -n "$ac_ct_DLLTOOL"; then
5206 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5226 if test -n "$ac_ct_DLLTOOL"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5228 $as_echo "$ac_ct_DLLTOOL" >&6; }
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5234 if test "x$ac_ct_DLLTOOL" = x; then
5237 case $cross_compiling:$ac_tool_warned in
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5241 ac_tool_warned=yes ;;
5243 DLLTOOL=$ac_ct_DLLTOOL
5246 DLLTOOL="$ac_cv_prog_DLLTOOL"
5249 test -z "$DLLTOOL" && DLLTOOL=dlltool
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5261 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5262 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5263 $as_echo_n "(cached) " >&6
5265 lt_cv_sharedlib_from_linklib_cmd='unknown'
5268 cygwin* | mingw* | pw32* | cegcc*)
5269 # two different shell functions defined in ltmain.sh
5270 # decide which to use based on capabilities of $DLLTOOL
5271 case `$DLLTOOL --help 2>&1` in
5272 *--identify-strict*)
5273 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5276 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5281 # fallback: assume linklib IS sharedlib
5282 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5288 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5289 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5290 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5299 if test -n "$ac_tool_prefix"; then
5302 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5303 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5305 $as_echo_n "checking for $ac_word... " >&6; }
5306 if ${ac_cv_prog_AR+:} false; then :
5307 $as_echo_n "(cached) " >&6
5309 if test -n "$AR"; then
5310 ac_cv_prog_AR="$AR" # Let the user override the test.
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 test -z "$as_dir" && as_dir=.
5317 for ac_exec_ext in '' $ac_executable_extensions; do
5318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5319 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330 if test -n "$AR"; then
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5332 $as_echo "$AR" >&6; }
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335 $as_echo "no" >&6; }
5339 test -n "$AR" && break
5342 if test -z "$AR"; then
5346 # Extract the first word of "$ac_prog", so it can be a program name with args.
5347 set dummy $ac_prog; ac_word=$2
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 $as_echo_n "checking for $ac_word... " >&6; }
5350 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5351 $as_echo_n "(cached) " >&6
5353 if test -n "$ac_ct_AR"; then
5354 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5363 ac_cv_prog_ac_ct_AR="$ac_prog"
5364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5374 if test -n "$ac_ct_AR"; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5376 $as_echo "$ac_ct_AR" >&6; }
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5383 test -n "$ac_ct_AR" && break
5386 if test "x$ac_ct_AR" = x; then
5389 case $cross_compiling:$ac_tool_warned in
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5393 ac_tool_warned=yes ;;
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5413 $as_echo_n "checking for archiver @FILE support... " >&6; }
5414 if ${lt_cv_ar_at_file+:} false; then :
5415 $as_echo_n "(cached) " >&6
5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5429 if ac_fn_c_try_compile "$LINENO"; then :
5430 echo conftest.$ac_objext > conftest.lst
5431 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5433 (eval $lt_ar_try) 2>&5
5435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5436 test $ac_status = 0; }
5437 if test "$ac_status" -eq 0; then
5438 # Ensure the archiver fails upon bogus file names.
5439 rm -f conftest.$ac_objext libconftest.a
5440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5441 (eval $lt_ar_try) 2>&5
5443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5444 test $ac_status = 0; }
5445 if test "$ac_status" -ne 0; then
5449 rm -f conftest.* libconftest.a
5452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5456 $as_echo "$lt_cv_ar_at_file" >&6; }
5458 if test "x$lt_cv_ar_at_file" = xno; then
5461 archiver_list_spec=$lt_cv_ar_at_file
5470 if test -n "$ac_tool_prefix"; then
5471 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5472 set dummy ${ac_tool_prefix}strip; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_prog_STRIP+:} false; then :
5476 $as_echo_n "(cached) " >&6
5478 if test -n "$STRIP"; then
5479 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 test -z "$as_dir" && as_dir=.
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5488 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 STRIP=$ac_cv_prog_STRIP
5499 if test -n "$STRIP"; then
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5501 $as_echo "$STRIP" >&6; }
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5509 if test -z "$ac_cv_prog_STRIP"; then
5511 # Extract the first word of "strip", so it can be a program name with args.
5512 set dummy strip; ac_word=$2
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5514 $as_echo_n "checking for $ac_word... " >&6; }
5515 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5516 $as_echo_n "(cached) " >&6
5518 if test -n "$ac_ct_STRIP"; then
5519 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 test -z "$as_dir" && as_dir=.
5526 for ac_exec_ext in '' $ac_executable_extensions; do
5527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5528 ac_cv_prog_ac_ct_STRIP="strip"
5529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5539 if test -n "$ac_ct_STRIP"; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5541 $as_echo "$ac_ct_STRIP" >&6; }
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5547 if test "x$ac_ct_STRIP" = x; then
5550 case $cross_compiling:$ac_tool_warned in
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5554 ac_tool_warned=yes ;;
5559 STRIP="$ac_cv_prog_STRIP"
5562 test -z "$STRIP" && STRIP=:
5569 if test -n "$ac_tool_prefix"; then
5570 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5571 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573 $as_echo_n "checking for $ac_word... " >&6; }
5574 if ${ac_cv_prog_RANLIB+:} false; then :
5575 $as_echo_n "(cached) " >&6
5577 if test -n "$RANLIB"; then
5578 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5587 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5597 RANLIB=$ac_cv_prog_RANLIB
5598 if test -n "$RANLIB"; then
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5600 $as_echo "$RANLIB" >&6; }
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 $as_echo "no" >&6; }
5608 if test -z "$ac_cv_prog_RANLIB"; then
5609 ac_ct_RANLIB=$RANLIB
5610 # Extract the first word of "ranlib", so it can be a program name with args.
5611 set dummy ranlib; ac_word=$2
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5615 $as_echo_n "(cached) " >&6
5617 if test -n "$ac_ct_RANLIB"; then
5618 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5627 ac_cv_prog_ac_ct_RANLIB="ranlib"
5628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5638 if test -n "$ac_ct_RANLIB"; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5640 $as_echo "$ac_ct_RANLIB" >&6; }
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643 $as_echo "no" >&6; }
5646 if test "x$ac_ct_RANLIB" = x; then
5649 case $cross_compiling:$ac_tool_warned in
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5653 ac_tool_warned=yes ;;
5655 RANLIB=$ac_ct_RANLIB
5658 RANLIB="$ac_cv_prog_RANLIB"
5661 test -z "$RANLIB" && RANLIB=:
5668 # Determine commands to create old-style static archives.
5669 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5670 old_postinstall_cmds='chmod 644 $oldlib'
5671 old_postuninstall_cmds=
5673 if test -n "$RANLIB"; then
5676 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5679 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5682 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5687 lock_old_archive_extraction=yes ;;
5689 lock_old_archive_extraction=no ;;
5730 # If no C compiler was specified, use CC.
5733 # If no C compiler flags were specified, use CFLAGS.
5734 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5736 # Allow CC to be a program name with arguments.
5740 # Check for command to grab the raw symbol name followed by C symbol from nm.
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5742 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5743 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5744 $as_echo_n "(cached) " >&6
5747 # These are sane defaults that work on at least a few old systems.
5748 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5750 # Character class describing NM global symbol codes.
5751 symcode='[BCDEGRST]'
5753 # Regexp to match symbols that can be accessed directly from C.
5754 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5756 # Define system-specific variables.
5761 cygwin* | mingw* | pw32* | cegcc*)
5762 symcode='[ABCDGISTW]'
5765 if test "$host_cpu" = ia64; then
5766 symcode='[ABCDEGRST]'
5770 symcode='[BCDEGRST]'
5773 symcode='[BCDEGQRST]'
5784 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5792 # If we're using GNU nm, then use its standard symbol codes.
5793 case `$NM -V 2>&1` in
5794 *GNU* | *'with BFD'*)
5795 symcode='[ABCDGIRSTW]' ;;
5798 # Transform an extracted symbol line into a proper C declaration.
5799 # Some systems (esp. on ia64) link data and code symbols differently,
5800 # so use this general approach.
5801 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5803 # Transform an extracted symbol line into symbol name and symbol address
5804 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5805 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'"
5807 # Handle CRLF in mingw tool chain
5811 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5815 # Try without a prefix underscore, then with it.
5816 for ac_symprfx in "" "_"; do
5818 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5819 symxfrm="\\1 $ac_symprfx\\2 \\2"
5821 # Write the raw and C identifiers.
5822 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5823 # Fake it for dumpbin and say T for any non-static function
5824 # and D for any global variable.
5825 # Also find C++ and __fastcall symbols from MSVC++,
5826 # which start with @ or ?.
5827 lt_cv_sys_global_symbol_pipe="$AWK '"\
5828 " {last_section=section; section=\$ 3};"\
5829 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5830 " \$ 0!~/External *\|/{next};"\
5831 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5832 " {if(hide[section]) next};"\
5833 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5834 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5835 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5836 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5837 " ' prfx=^$ac_symprfx"
5839 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5841 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5843 # Check to see that the pipe works correctly.
5847 cat > conftest.$ac_ext <<_LT_EOF
5852 void nm_test_func(void);
5853 void nm_test_func(void){}
5857 int main(){nm_test_var='a';nm_test_func();return(0);}
5860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5861 (eval $ac_compile) 2>&5
5863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5864 test $ac_status = 0; }; then
5865 # Now try to grab the symbols.
5867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5868 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5871 test $ac_status = 0; } && test -s "$nlist"; then
5872 # Try sorting and uniquifying the output.
5873 if sort "$nlist" | uniq > "$nlist"T; then
5874 mv -f "$nlist"T "$nlist"
5879 # Make sure that we snagged all the symbols we need.
5880 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5881 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5882 cat <<_LT_EOF > conftest.$ac_ext
5883 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5884 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5885 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5886 relocations are performed -- see ld's documentation on pseudo-relocs. */
5887 # define LT_DLSYM_CONST
5888 #elif defined(__osf__)
5889 /* This system does not cope well with relocations in const data. */
5890 # define LT_DLSYM_CONST
5892 # define LT_DLSYM_CONST const
5900 # Now generate the symbol file.
5901 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5903 cat <<_LT_EOF >> conftest.$ac_ext
5905 /* The mapping between symbol names and symbols. */
5906 LT_DLSYM_CONST struct {
5910 lt__PROGRAM__LTX_preloaded_symbols[] =
5912 { "@PROGRAM@", (void *) 0 },
5914 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5915 cat <<\_LT_EOF >> conftest.$ac_ext
5919 /* This works around a problem in FreeBSD linker */
5920 #ifdef FREEBSD_WORKAROUND
5921 static const void *lt_preloaded_setup() {
5922 return lt__PROGRAM__LTX_preloaded_symbols;
5930 # Now try linking the two files.
5931 mv conftest.$ac_objext conftstm.$ac_objext
5932 lt_globsym_save_LIBS=$LIBS
5933 lt_globsym_save_CFLAGS=$CFLAGS
5934 LIBS="conftstm.$ac_objext"
5935 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5937 (eval $ac_link) 2>&5
5939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5940 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5943 LIBS=$lt_globsym_save_LIBS
5944 CFLAGS=$lt_globsym_save_CFLAGS
5946 echo "cannot find nm_test_func in $nlist" >&5
5949 echo "cannot find nm_test_var in $nlist" >&5
5952 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5955 echo "$progname: failed program was:" >&5
5956 cat conftest.$ac_ext >&5
5958 rm -rf conftest* conftst*
5960 # Do not use the global_symbol_pipe unless it works.
5961 if test "$pipe_works" = yes; then
5964 lt_cv_sys_global_symbol_pipe=
5970 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5971 lt_cv_sys_global_symbol_to_cdecl=
5973 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5975 $as_echo "failed" >&6; }
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5978 $as_echo "ok" >&6; }
5981 # Response file support.
5982 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5983 nm_file_list_spec='@'
5984 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5985 nm_file_list_spec='@'
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6015 $as_echo_n "checking for sysroot... " >&6; }
6017 # Check whether --with-sysroot was given.
6018 if test "${with_sysroot+set}" = set; then :
6019 withval=$with_sysroot;
6026 case ${with_sysroot} in #(
6028 if test "$GCC" = yes; then
6029 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6033 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6039 $as_echo "${with_sysroot}" >&6; }
6040 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6045 $as_echo "${lt_sysroot:-no}" >&6; }
6051 # Check whether --enable-libtool-lock was given.
6052 if test "${enable_libtool_lock+set}" = set; then :
6053 enableval=$enable_libtool_lock;
6056 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6058 # Some flags need to be propagated to the compiler or linker for good
6062 # Find out which ABI we are using.
6063 echo 'int i;' > conftest.$ac_ext
6064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6065 (eval $ac_compile) 2>&5
6067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6068 test $ac_status = 0; }; then
6069 case `/usr/bin/file conftest.$ac_objext` in
6081 # Find out which ABI we are using.
6082 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6084 (eval $ac_compile) 2>&5
6086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6087 test $ac_status = 0; }; then
6088 if test "$lt_cv_prog_gnu_ld" = yes; then
6089 case `/usr/bin/file conftest.$ac_objext` in
6091 LD="${LD-ld} -melf32bsmip"
6094 LD="${LD-ld} -melf32bmipn32"
6097 LD="${LD-ld} -melf64bmip"
6101 case `/usr/bin/file conftest.$ac_objext` in
6117 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6118 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6119 # Find out which ABI we are using.
6120 echo 'int i;' > conftest.$ac_ext
6121 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6122 (eval $ac_compile) 2>&5
6124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6125 test $ac_status = 0; }; then
6126 case `/usr/bin/file conftest.o` in
6129 x86_64-*kfreebsd*-gnu)
6130 LD="${LD-ld} -m elf_i386_fbsd"
6133 LD="${LD-ld} -m elf_i386"
6135 ppc64-*linux*|powerpc64-*linux*)
6136 LD="${LD-ld} -m elf32ppclinux"
6139 LD="${LD-ld} -m elf_s390"
6142 LD="${LD-ld} -m elf32_sparc"
6148 x86_64-*kfreebsd*-gnu)
6149 LD="${LD-ld} -m elf_x86_64_fbsd"
6152 LD="${LD-ld} -m elf_x86_64"
6154 ppc*-*linux*|powerpc*-*linux*)
6155 LD="${LD-ld} -m elf64ppc"
6157 s390*-*linux*|s390*-*tpf*)
6158 LD="${LD-ld} -m elf64_s390"
6161 LD="${LD-ld} -m elf64_sparc"
6171 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6172 SAVE_CFLAGS="$CFLAGS"
6173 CFLAGS="$CFLAGS -belf"
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6175 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6176 if ${lt_cv_cc_needs_belf+:} false; then :
6177 $as_echo_n "(cached) " >&6
6180 ac_cpp='$CPP $CPPFLAGS'
6181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h. */
6196 if ac_fn_c_try_link "$LINENO"; then :
6197 lt_cv_cc_needs_belf=yes
6199 lt_cv_cc_needs_belf=no
6201 rm -f core conftest.err conftest.$ac_objext \
6202 conftest$ac_exeext conftest.$ac_ext
6204 ac_cpp='$CPP $CPPFLAGS'
6205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6211 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6212 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6213 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6214 CFLAGS="$SAVE_CFLAGS"
6218 # Find out which ABI we are using.
6219 echo 'int i;' > conftest.$ac_ext
6220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6221 (eval $ac_compile) 2>&5
6223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6224 test $ac_status = 0; }; then
6225 case `/usr/bin/file conftest.o` in
6227 case $lt_cv_prog_gnu_ld in
6228 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6230 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6242 need_locks="$enable_libtool_lock"
6244 if test -n "$ac_tool_prefix"; then
6245 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6246 set dummy ${ac_tool_prefix}mt; ac_word=$2
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6248 $as_echo_n "checking for $ac_word... " >&6; }
6249 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6250 $as_echo_n "(cached) " >&6
6252 if test -n "$MANIFEST_TOOL"; then
6253 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 test -z "$as_dir" && as_dir=.
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6273 if test -n "$MANIFEST_TOOL"; then
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6275 $as_echo "$MANIFEST_TOOL" >&6; }
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278 $as_echo "no" >&6; }
6283 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6284 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6285 # Extract the first word of "mt", so it can be a program name with args.
6286 set dummy mt; ac_word=$2
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6290 $as_echo_n "(cached) " >&6
6292 if test -n "$ac_ct_MANIFEST_TOOL"; then
6293 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6313 if test -n "$ac_ct_MANIFEST_TOOL"; then
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6315 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 $as_echo "no" >&6; }
6321 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6324 case $cross_compiling:$ac_tool_warned in
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6328 ac_tool_warned=yes ;;
6330 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6333 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6336 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6338 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6339 if ${lt_cv_path_mainfest_tool+:} false; then :
6340 $as_echo_n "(cached) " >&6
6342 lt_cv_path_mainfest_tool=no
6343 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6344 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6345 cat conftest.err >&5
6346 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6347 lt_cv_path_mainfest_tool=yes
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6352 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6353 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6363 rhapsody* | darwin*)
6364 if test -n "$ac_tool_prefix"; then
6365 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6366 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6368 $as_echo_n "checking for $ac_word... " >&6; }
6369 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6370 $as_echo_n "(cached) " >&6
6372 if test -n "$DSYMUTIL"; then
6373 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 test -z "$as_dir" && as_dir=.
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6382 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6393 if test -n "$DSYMUTIL"; then
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6395 $as_echo "$DSYMUTIL" >&6; }
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6398 $as_echo "no" >&6; }
6403 if test -z "$ac_cv_prog_DSYMUTIL"; then
6404 ac_ct_DSYMUTIL=$DSYMUTIL
6405 # Extract the first word of "dsymutil", so it can be a program name with args.
6406 set dummy dsymutil; ac_word=$2
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6408 $as_echo_n "checking for $ac_word... " >&6; }
6409 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6410 $as_echo_n "(cached) " >&6
6412 if test -n "$ac_ct_DSYMUTIL"; then
6413 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 test -z "$as_dir" && as_dir=.
6420 for ac_exec_ext in '' $ac_executable_extensions; do
6421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6422 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6433 if test -n "$ac_ct_DSYMUTIL"; then
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6435 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438 $as_echo "no" >&6; }
6441 if test "x$ac_ct_DSYMUTIL" = x; then
6444 case $cross_compiling:$ac_tool_warned in
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6448 ac_tool_warned=yes ;;
6450 DSYMUTIL=$ac_ct_DSYMUTIL
6453 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6456 if test -n "$ac_tool_prefix"; then
6457 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6458 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460 $as_echo_n "checking for $ac_word... " >&6; }
6461 if ${ac_cv_prog_NMEDIT+:} false; then :
6462 $as_echo_n "(cached) " >&6
6464 if test -n "$NMEDIT"; then
6465 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6474 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6484 NMEDIT=$ac_cv_prog_NMEDIT
6485 if test -n "$NMEDIT"; then
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6487 $as_echo "$NMEDIT" >&6; }
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490 $as_echo "no" >&6; }
6495 if test -z "$ac_cv_prog_NMEDIT"; then
6496 ac_ct_NMEDIT=$NMEDIT
6497 # Extract the first word of "nmedit", so it can be a program name with args.
6498 set dummy nmedit; ac_word=$2
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500 $as_echo_n "checking for $ac_word... " >&6; }
6501 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6502 $as_echo_n "(cached) " >&6
6504 if test -n "$ac_ct_NMEDIT"; then
6505 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 test -z "$as_dir" && as_dir=.
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6514 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6525 if test -n "$ac_ct_NMEDIT"; then
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6527 $as_echo "$ac_ct_NMEDIT" >&6; }
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 $as_echo "no" >&6; }
6533 if test "x$ac_ct_NMEDIT" = x; then
6536 case $cross_compiling:$ac_tool_warned in
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6540 ac_tool_warned=yes ;;
6542 NMEDIT=$ac_ct_NMEDIT
6545 NMEDIT="$ac_cv_prog_NMEDIT"
6548 if test -n "$ac_tool_prefix"; then
6549 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6550 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552 $as_echo_n "checking for $ac_word... " >&6; }
6553 if ${ac_cv_prog_LIPO+:} false; then :
6554 $as_echo_n "(cached) " >&6
6556 if test -n "$LIPO"; then
6557 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6566 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6576 LIPO=$ac_cv_prog_LIPO
6577 if test -n "$LIPO"; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6579 $as_echo "$LIPO" >&6; }
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582 $as_echo "no" >&6; }
6587 if test -z "$ac_cv_prog_LIPO"; then
6589 # Extract the first word of "lipo", so it can be a program name with args.
6590 set dummy lipo; ac_word=$2
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592 $as_echo_n "checking for $ac_word... " >&6; }
6593 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6594 $as_echo_n "(cached) " >&6
6596 if test -n "$ac_ct_LIPO"; then
6597 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6606 ac_cv_prog_ac_ct_LIPO="lipo"
6607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6617 if test -n "$ac_ct_LIPO"; then
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6619 $as_echo "$ac_ct_LIPO" >&6; }
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622 $as_echo "no" >&6; }
6625 if test "x$ac_ct_LIPO" = x; then
6628 case $cross_compiling:$ac_tool_warned in
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6632 ac_tool_warned=yes ;;
6637 LIPO="$ac_cv_prog_LIPO"
6640 if test -n "$ac_tool_prefix"; then
6641 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6642 set dummy ${ac_tool_prefix}otool; ac_word=$2
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6644 $as_echo_n "checking for $ac_word... " >&6; }
6645 if ${ac_cv_prog_OTOOL+:} false; then :
6646 $as_echo_n "(cached) " >&6
6648 if test -n "$OTOOL"; then
6649 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6658 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668 OTOOL=$ac_cv_prog_OTOOL
6669 if test -n "$OTOOL"; then
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6671 $as_echo "$OTOOL" >&6; }
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 $as_echo "no" >&6; }
6679 if test -z "$ac_cv_prog_OTOOL"; then
6681 # Extract the first word of "otool", so it can be a program name with args.
6682 set dummy otool; ac_word=$2
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684 $as_echo_n "checking for $ac_word... " >&6; }
6685 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6686 $as_echo_n "(cached) " >&6
6688 if test -n "$ac_ct_OTOOL"; then
6689 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 test -z "$as_dir" && as_dir=.
6696 for ac_exec_ext in '' $ac_executable_extensions; do
6697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6698 ac_cv_prog_ac_ct_OTOOL="otool"
6699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6709 if test -n "$ac_ct_OTOOL"; then
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6711 $as_echo "$ac_ct_OTOOL" >&6; }
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6714 $as_echo "no" >&6; }
6717 if test "x$ac_ct_OTOOL" = x; then
6720 case $cross_compiling:$ac_tool_warned in
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6724 ac_tool_warned=yes ;;
6729 OTOOL="$ac_cv_prog_OTOOL"
6732 if test -n "$ac_tool_prefix"; then
6733 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6734 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if ${ac_cv_prog_OTOOL64+:} false; then :
6738 $as_echo_n "(cached) " >&6
6740 if test -n "$OTOOL64"; then
6741 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 OTOOL64=$ac_cv_prog_OTOOL64
6761 if test -n "$OTOOL64"; then
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6763 $as_echo "$OTOOL64" >&6; }
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766 $as_echo "no" >&6; }
6771 if test -z "$ac_cv_prog_OTOOL64"; then
6772 ac_ct_OTOOL64=$OTOOL64
6773 # Extract the first word of "otool64", so it can be a program name with args.
6774 set dummy otool64; ac_word=$2
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776 $as_echo_n "checking for $ac_word... " >&6; }
6777 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6778 $as_echo_n "(cached) " >&6
6780 if test -n "$ac_ct_OTOOL64"; then
6781 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6790 ac_cv_prog_ac_ct_OTOOL64="otool64"
6791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6801 if test -n "$ac_ct_OTOOL64"; then
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6803 $as_echo "$ac_ct_OTOOL64" >&6; }
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 $as_echo "no" >&6; }
6809 if test "x$ac_ct_OTOOL64" = x; then
6812 case $cross_compiling:$ac_tool_warned in
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6816 ac_tool_warned=yes ;;
6818 OTOOL64=$ac_ct_OTOOL64
6821 OTOOL64="$ac_cv_prog_OTOOL64"
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6851 $as_echo_n "checking for -single_module linker flag... " >&6; }
6852 if ${lt_cv_apple_cc_single_mod+:} false; then :
6853 $as_echo_n "(cached) " >&6
6855 lt_cv_apple_cc_single_mod=no
6856 if test -z "${LT_MULTI_MODULE}"; then
6857 # By default we will add the -single_module flag. You can override
6858 # by either setting the environment variable LT_MULTI_MODULE
6859 # non-empty at configure time, or by adding -multi_module to the
6861 rm -rf libconftest.dylib*
6862 echo "int foo(void){return 1;}" > conftest.c
6863 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6864 -dynamiclib -Wl,-single_module conftest.c" >&5
6865 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6866 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6868 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6869 lt_cv_apple_cc_single_mod=yes
6871 cat conftest.err >&5
6873 rm -rf libconftest.dylib*
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6878 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6880 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6881 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6882 $as_echo_n "(cached) " >&6
6884 lt_cv_ld_exported_symbols_list=no
6885 save_LDFLAGS=$LDFLAGS
6886 echo "_main" > conftest.sym
6887 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6899 if ac_fn_c_try_link "$LINENO"; then :
6900 lt_cv_ld_exported_symbols_list=yes
6902 lt_cv_ld_exported_symbols_list=no
6904 rm -f core conftest.err conftest.$ac_objext \
6905 conftest$ac_exeext conftest.$ac_ext
6906 LDFLAGS="$save_LDFLAGS"
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6910 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6912 $as_echo_n "checking for -force_load linker flag... " >&6; }
6913 if ${lt_cv_ld_force_load+:} false; then :
6914 $as_echo_n "(cached) " >&6
6916 lt_cv_ld_force_load=no
6917 cat > conftest.c << _LT_EOF
6918 int forced_loaded() { return 2;}
6920 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6921 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6922 echo "$AR cru libconftest.a conftest.o" >&5
6923 $AR cru libconftest.a conftest.o 2>&5
6924 echo "$RANLIB libconftest.a" >&5
6925 $RANLIB libconftest.a 2>&5
6926 cat > conftest.c << _LT_EOF
6927 int main() { return 0;}
6929 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6930 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6932 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6933 lt_cv_ld_force_load=yes
6935 cat conftest.err >&5
6937 rm -f conftest.err libconftest.a conftest conftest.c
6938 rm -rf conftest.dSYM
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6942 $as_echo "$lt_cv_ld_force_load" >&6; }
6944 rhapsody* | darwin1.[012])
6945 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6947 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6948 darwin*) # darwin 5.x on
6949 # if running on 10.5 or later, the deployment target defaults
6950 # to the OS version, if on x86, and 10.4, the deployment
6951 # target defaults to 10.4. Don't you love it?
6952 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6953 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6954 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6956 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6958 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6962 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6963 _lt_dar_single_mod='$single_module'
6965 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6966 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6968 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6970 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6971 _lt_dsymutil='~$DSYMUTIL $lib || :'
6979 ac_cpp='$CPP $CPPFLAGS'
6980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6984 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6985 # On Suns, sometimes $CPP names a directory.
6986 if test -n "$CPP" && test -d "$CPP"; then
6989 if test -z "$CPP"; then
6990 if ${ac_cv_prog_CPP+:} false; then :
6991 $as_echo_n "(cached) " >&6
6993 # Double quotes because CPP needs to be expanded
6994 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6997 for ac_c_preproc_warn_flag in '' yes
6999 # Use a header file that comes with gcc, so configuring glibc
7000 # with a fresh cross-compiler works.
7001 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7002 # <limits.h> exists even on freestanding compilers.
7003 # On the NeXT, cc -E runs the code through the compiler's parser,
7004 # not just through cpp. "Syntax error" is here to catch this case.
7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h. */
7008 # include <limits.h>
7010 # include <assert.h>
7014 if ac_fn_c_try_cpp "$LINENO"; then :
7017 # Broken: fails on valid input.
7020 rm -f conftest.err conftest.i conftest.$ac_ext
7022 # OK, works on sane cases. Now check whether nonexistent headers
7023 # can be detected and how.
7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025 /* end confdefs.h. */
7026 #include <ac_nonexistent.h>
7028 if ac_fn_c_try_cpp "$LINENO"; then :
7029 # Broken: success on invalid input.
7032 # Passes both tests.
7036 rm -f conftest.err conftest.i conftest.$ac_ext
7039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7040 rm -f conftest.i conftest.err conftest.$ac_ext
7041 if $ac_preproc_ok; then :
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7054 $as_echo "$CPP" >&6; }
7056 for ac_c_preproc_warn_flag in '' yes
7058 # Use a header file that comes with gcc, so configuring glibc
7059 # with a fresh cross-compiler works.
7060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7061 # <limits.h> exists even on freestanding compilers.
7062 # On the NeXT, cc -E runs the code through the compiler's parser,
7063 # not just through cpp. "Syntax error" is here to catch this case.
7064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065 /* end confdefs.h. */
7067 # include <limits.h>
7069 # include <assert.h>
7073 if ac_fn_c_try_cpp "$LINENO"; then :
7076 # Broken: fails on valid input.
7079 rm -f conftest.err conftest.i conftest.$ac_ext
7081 # OK, works on sane cases. Now check whether nonexistent headers
7082 # can be detected and how.
7083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084 /* end confdefs.h. */
7085 #include <ac_nonexistent.h>
7087 if ac_fn_c_try_cpp "$LINENO"; then :
7088 # Broken: success on invalid input.
7091 # Passes both tests.
7095 rm -f conftest.err conftest.i conftest.$ac_ext
7098 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7099 rm -f conftest.i conftest.err conftest.$ac_ext
7100 if $ac_preproc_ok; then :
7103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7105 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7106 See \`config.log' for more details" "$LINENO" 5; }
7110 ac_cpp='$CPP $CPPFLAGS'
7111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7117 $as_echo_n "checking for ANSI C header files... " >&6; }
7118 if ${ac_cv_header_stdc+:} false; then :
7119 $as_echo_n "(cached) " >&6
7121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122 /* end confdefs.h. */
7136 if ac_fn_c_try_compile "$LINENO"; then :
7137 ac_cv_header_stdc=yes
7139 ac_cv_header_stdc=no
7141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7143 if test $ac_cv_header_stdc = yes; then
7144 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7146 /* end confdefs.h. */
7150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7151 $EGREP "memchr" >/dev/null 2>&1; then :
7154 ac_cv_header_stdc=no
7160 if test $ac_cv_header_stdc = yes; then
7161 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163 /* end confdefs.h. */
7167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7168 $EGREP "free" >/dev/null 2>&1; then :
7171 ac_cv_header_stdc=no
7177 if test $ac_cv_header_stdc = yes; then
7178 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7179 if test "$cross_compiling" = yes; then :
7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183 /* end confdefs.h. */
7186 #if ((' ' & 0x0FF) == 0x020)
7187 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7188 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7190 # define ISLOWER(c) \
7191 (('a' <= (c) && (c) <= 'i') \
7192 || ('j' <= (c) && (c) <= 'r') \
7193 || ('s' <= (c) && (c) <= 'z'))
7194 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7197 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7202 for (i = 0; i < 256; i++)
7203 if (XOR (islower (i), ISLOWER (i))
7204 || toupper (i) != TOUPPER (i))
7209 if ac_fn_c_try_run "$LINENO"; then :
7212 ac_cv_header_stdc=no
7214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7215 conftest.$ac_objext conftest.beam conftest.$ac_ext
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7221 $as_echo "$ac_cv_header_stdc" >&6; }
7222 if test $ac_cv_header_stdc = yes; then
7224 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7228 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7229 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7230 inttypes.h stdint.h unistd.h
7232 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7233 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7235 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7236 cat >>confdefs.h <<_ACEOF
7237 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7245 for ac_header in dlfcn.h
7247 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7249 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7250 cat >>confdefs.h <<_ACEOF
7251 #define HAVE_DLFCN_H 1
7272 # Check whether --enable-shared was given.
7273 if test "${enable_shared+set}" = set; then :
7274 enableval=$enable_shared; p=${PACKAGE-default}
7276 yes) enable_shared=yes ;;
7277 no) enable_shared=no ;;
7280 # Look at the argument we got. We use all the common list separators.
7281 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7282 for pkg in $enableval; do
7284 if test "X$pkg" = "X$p"; then
7303 # Check whether --enable-static was given.
7304 if test "${enable_static+set}" = set; then :
7305 enableval=$enable_static; p=${PACKAGE-default}
7307 yes) enable_static=yes ;;
7308 no) enable_static=no ;;
7311 # Look at the argument we got. We use all the common list separators.
7312 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7313 for pkg in $enableval; do
7315 if test "X$pkg" = "X$p"; then
7335 # Check whether --with-pic was given.
7336 if test "${with_pic+set}" = set; then :
7337 withval=$with_pic; pic_mode="$withval"
7343 test -z "$pic_mode" && pic_mode=default
7351 # Check whether --enable-fast-install was given.
7352 if test "${enable_fast_install+set}" = set; then :
7353 enableval=$enable_fast_install; p=${PACKAGE-default}
7355 yes) enable_fast_install=yes ;;
7356 no) enable_fast_install=no ;;
7358 enable_fast_install=no
7359 # Look at the argument we got. We use all the common list separators.
7360 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7361 for pkg in $enableval; do
7363 if test "X$pkg" = "X$p"; then
7364 enable_fast_install=yes
7371 enable_fast_install=yes
7384 # This can be used to rebuild libtool when needed
7385 LIBTOOL_DEPS="$ltmain"
7387 # Always use our own libtool.
7388 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7415 test -z "$LN_S" && LN_S="ln -s"
7430 if test -n "${ZSH_VERSION+set}" ; then
7431 setopt NO_GLOB_SUBST
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7435 $as_echo_n "checking for objdir... " >&6; }
7436 if ${lt_cv_objdir+:} false; then :
7437 $as_echo_n "(cached) " >&6
7439 rm -f .libs 2>/dev/null
7440 mkdir .libs 2>/dev/null
7441 if test -d .libs; then
7444 # MS-DOS does not allow filenames that begin with a dot.
7447 rmdir .libs 2>/dev/null
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7450 $as_echo "$lt_cv_objdir" >&6; }
7451 objdir=$lt_cv_objdir
7457 cat >>confdefs.h <<_ACEOF
7458 #define LT_OBJDIR "$lt_cv_objdir/"
7466 # AIX sometimes has problems with the GCC collect2 program. For some
7467 # reason, if we set the COLLECT_NAMES environment variable, the problems
7468 # vanish in a puff of smoke.
7469 if test "X${COLLECT_NAMES+set}" != Xset; then
7471 export COLLECT_NAMES
7478 can_build_shared=yes
7480 # All known linkers require a `.a' archive for static linking (except MSVC,
7481 # which needs '.lib').
7484 with_gnu_ld="$lt_cv_prog_gnu_ld"
7487 old_CFLAGS="$CFLAGS"
7489 # Set sane defaults for various variables
7490 test -z "$CC" && CC=cc
7491 test -z "$LTCC" && LTCC=$CC
7492 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7493 test -z "$LD" && LD=ld
7494 test -z "$ac_objext" && ac_objext=o
7496 for cc_temp in $compiler""; do
7498 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7499 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7504 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7507 # Only perform the check for file, if the check method requires it
7508 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7509 case $deplibs_check_method in
7511 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7513 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7514 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7515 $as_echo_n "(cached) " >&6
7519 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7522 lt_save_MAGIC_CMD="$MAGIC_CMD"
7523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7524 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7525 for ac_dir in $ac_dummy; do
7527 test -z "$ac_dir" && ac_dir=.
7528 if test -f $ac_dir/${ac_tool_prefix}file; then
7529 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7530 if test -n "$file_magic_test_file"; then
7531 case $deplibs_check_method in
7533 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7534 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7535 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7536 $EGREP "$file_magic_regex" > /dev/null; then
7541 *** Warning: the command libtool uses to detect shared libraries,
7542 *** $file_magic_cmd, produces output that libtool cannot recognize.
7543 *** The result is that libtool may fail to recognize shared libraries
7544 *** as such. This will affect the creation of libtool libraries that
7545 *** depend on shared libraries, but programs linked with such libtool
7546 *** libraries will work regardless of this problem. Nevertheless, you
7547 *** may want to report the problem to your system manager and/or to
7548 *** bug-libtool@gnu.org
7558 MAGIC_CMD="$lt_save_MAGIC_CMD"
7563 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7564 if test -n "$MAGIC_CMD"; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7566 $as_echo "$MAGIC_CMD" >&6; }
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569 $as_echo "no" >&6; }
7576 if test -z "$lt_cv_path_MAGIC_CMD"; then
7577 if test -n "$ac_tool_prefix"; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7579 $as_echo_n "checking for file... " >&6; }
7580 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7581 $as_echo_n "(cached) " >&6
7585 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7588 lt_save_MAGIC_CMD="$MAGIC_CMD"
7589 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7590 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7591 for ac_dir in $ac_dummy; do
7593 test -z "$ac_dir" && ac_dir=.
7594 if test -f $ac_dir/file; then
7595 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7596 if test -n "$file_magic_test_file"; then
7597 case $deplibs_check_method in
7599 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7600 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7601 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7602 $EGREP "$file_magic_regex" > /dev/null; then
7607 *** Warning: the command libtool uses to detect shared libraries,
7608 *** $file_magic_cmd, produces output that libtool cannot recognize.
7609 *** The result is that libtool may fail to recognize shared libraries
7610 *** as such. This will affect the creation of libtool libraries that
7611 *** depend on shared libraries, but programs linked with such libtool
7612 *** libraries will work regardless of this problem. Nevertheless, you
7613 *** may want to report the problem to your system manager and/or to
7614 *** bug-libtool@gnu.org
7624 MAGIC_CMD="$lt_save_MAGIC_CMD"
7629 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7630 if test -n "$MAGIC_CMD"; then
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7632 $as_echo "$MAGIC_CMD" >&6; }
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635 $as_echo "no" >&6; }
7648 # Use C for the default configuration in the libtool script
7652 ac_cpp='$CPP $CPPFLAGS'
7653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7658 # Source file extension for C test sources.
7661 # Object file extension for compiled C test sources.
7665 # Code to be used in simple compile tests
7666 lt_simple_compile_test_code="int some_variable = 0;"
7668 # Code to be used in simple link tests
7669 lt_simple_link_test_code='int main(){return(0);}'
7677 # If no C compiler was specified, use CC.
7680 # If no C compiler flags were specified, use CFLAGS.
7681 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7683 # Allow CC to be a program name with arguments.
7686 # Save the default compiler, since it gets overwritten when the other
7687 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7688 compiler_DEFAULT=$CC
7690 # save warnings/boilerplate of simple test code
7691 ac_outfile=conftest.$ac_objext
7692 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7693 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7694 _lt_compiler_boilerplate=`cat conftest.err`
7697 ac_outfile=conftest.$ac_objext
7698 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7699 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7700 _lt_linker_boilerplate=`cat conftest.err`
7704 if test -n "$compiler"; then
7706 lt_prog_compiler_no_builtin_flag=
7708 if test "$GCC" = yes; then
7709 case $cc_basename in
7711 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7713 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7717 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7718 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7719 $as_echo_n "(cached) " >&6
7721 lt_cv_prog_compiler_rtti_exceptions=no
7722 ac_outfile=conftest.$ac_objext
7723 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7724 lt_compiler_flag="-fno-rtti -fno-exceptions"
7725 # Insert the option either (1) after the last *FLAGS variable, or
7726 # (2) before a word containing "conftest.", or (3) at the end.
7727 # Note that $ac_compile itself does not contain backslashes and begins
7728 # with a dollar sign (not a hyphen), so the echo should work correctly.
7729 # The option is referenced via a variable to avoid confusing sed.
7730 lt_compile=`echo "$ac_compile" | $SED \
7731 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7733 -e 's:$: $lt_compiler_flag:'`
7734 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7735 (eval "$lt_compile" 2>conftest.err)
7737 cat conftest.err >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 if (exit $ac_status) && test -s "$ac_outfile"; then
7740 # The compiler can only warn and ignore the option if not recognized
7741 # So say no if there are warnings other than the usual output.
7742 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7743 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7744 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7745 lt_cv_prog_compiler_rtti_exceptions=yes
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7752 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7754 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7755 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7767 lt_prog_compiler_wl=
7768 lt_prog_compiler_pic=
7769 lt_prog_compiler_static=
7772 if test "$GCC" = yes; then
7773 lt_prog_compiler_wl='-Wl,'
7774 lt_prog_compiler_static='-static'
7778 # All AIX code is PIC.
7779 if test "$host_cpu" = ia64; then
7780 # AIX 5 now supports IA64 processor
7781 lt_prog_compiler_static='-Bstatic'
7788 # see comment about AmigaOS4 .so support
7789 lt_prog_compiler_pic='-fPIC'
7792 # FIXME: we need at least 68020 code to build shared libraries, but
7793 # adding the `-m68020' flag to GCC prevents building anything better,
7795 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7800 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7801 # PIC is the default for these OSes.
7804 mingw* | cygwin* | pw32* | os2* | cegcc*)
7805 # This hack is so that the source file can tell whether it is being
7806 # built for inclusion in a dll (and should export symbols for example).
7807 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7808 # (--disable-auto-import) libraries
7809 lt_prog_compiler_pic='-DDLL_EXPORT'
7812 darwin* | rhapsody*)
7813 # PIC is the default on this platform
7814 # Common symbols not allowed in MH_DYLIB files
7815 lt_prog_compiler_pic='-fno-common'
7819 # PIC is the default for Haiku.
7820 # The "-static" flag exists, but is broken.
7821 lt_prog_compiler_static=
7825 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7826 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7827 # sets the default TLS model and affects inlining.
7833 lt_prog_compiler_pic='-fPIC'
7839 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7840 # Instead, we relocate shared libraries at runtime.
7844 # Just because we use GCC doesn't mean we suddenly get shared libraries
7845 # on systems that don't support them.
7846 lt_prog_compiler_can_build_shared=no
7851 # QNX uses GNU C++, but need to define -shared option too, otherwise
7853 lt_prog_compiler_pic='-fPIC -shared'
7857 if test -d /usr/nec; then
7858 lt_prog_compiler_pic=-Kconform_pic
7863 lt_prog_compiler_pic='-fPIC'
7867 case $cc_basename in
7868 nvcc*) # Cuda Compiler Driver 2.2
7869 lt_prog_compiler_wl='-Xlinker '
7870 lt_prog_compiler_pic='-Xcompiler -fPIC'
7874 # PORTME Check for flag to pass linker flags through the system compiler.
7877 lt_prog_compiler_wl='-Wl,'
7878 if test "$host_cpu" = ia64; then
7879 # AIX 5 now supports IA64 processor
7880 lt_prog_compiler_static='-Bstatic'
7882 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7886 mingw* | cygwin* | pw32* | os2* | cegcc*)
7887 # This hack is so that the source file can tell whether it is being
7888 # built for inclusion in a dll (and should export symbols for example).
7889 lt_prog_compiler_pic='-DDLL_EXPORT'
7892 hpux9* | hpux10* | hpux11*)
7893 lt_prog_compiler_wl='-Wl,'
7894 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7901 lt_prog_compiler_pic='+Z'
7904 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7905 lt_prog_compiler_static='${wl}-a ${wl}archive'
7908 irix5* | irix6* | nonstopux*)
7909 lt_prog_compiler_wl='-Wl,'
7910 # PIC (with -KPIC) is the default.
7911 lt_prog_compiler_static='-non_shared'
7914 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7915 case $cc_basename in
7916 # old Intel for x86_64 which still supported -KPIC.
7918 lt_prog_compiler_wl='-Wl,'
7919 lt_prog_compiler_pic='-KPIC'
7920 lt_prog_compiler_static='-static'
7922 # icc used to be incompatible with GCC.
7923 # ICC 10 doesn't accept -KPIC any more.
7925 lt_prog_compiler_wl='-Wl,'
7926 lt_prog_compiler_pic='-fPIC'
7927 lt_prog_compiler_static='-static'
7929 # Lahey Fortran 8.1.
7931 lt_prog_compiler_wl='-Wl,'
7932 lt_prog_compiler_pic='--shared'
7933 lt_prog_compiler_static='--static'
7936 # NAG Fortran compiler
7937 lt_prog_compiler_wl='-Wl,-Wl,,'
7938 lt_prog_compiler_pic='-PIC'
7939 lt_prog_compiler_static='-Bstatic'
7941 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7942 # Portland Group compilers (*not* the Pentium gcc compiler,
7943 # which looks to be a dead project)
7944 lt_prog_compiler_wl='-Wl,'
7945 lt_prog_compiler_pic='-fpic'
7946 lt_prog_compiler_static='-Bstatic'
7949 lt_prog_compiler_wl='-Wl,'
7950 # All Alpha code is PIC.
7951 lt_prog_compiler_static='-non_shared'
7953 xl* | bgxl* | bgf* | mpixl*)
7954 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7955 lt_prog_compiler_wl='-Wl,'
7956 lt_prog_compiler_pic='-qpic'
7957 lt_prog_compiler_static='-qstaticlink'
7960 case `$CC -V 2>&1 | sed 5q` in
7961 *Sun\ F* | *Sun*Fortran*)
7962 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7963 lt_prog_compiler_pic='-KPIC'
7964 lt_prog_compiler_static='-Bstatic'
7965 lt_prog_compiler_wl=''
7969 lt_prog_compiler_pic='-KPIC'
7970 lt_prog_compiler_static='-Bstatic'
7971 lt_prog_compiler_wl='-Wl,'
7979 lt_prog_compiler_pic='-KPIC'
7980 lt_prog_compiler_static='-Bstatic'
7984 # QNX uses GNU C++, but need to define -shared option too, otherwise
7986 lt_prog_compiler_pic='-fPIC -shared'
7989 osf3* | osf4* | osf5*)
7990 lt_prog_compiler_wl='-Wl,'
7991 # All OSF/1 code is PIC.
7992 lt_prog_compiler_static='-non_shared'
7996 lt_prog_compiler_static='-non_shared'
8000 lt_prog_compiler_pic='-KPIC'
8001 lt_prog_compiler_static='-Bstatic'
8002 case $cc_basename in
8003 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8004 lt_prog_compiler_wl='-Qoption ld ';;
8006 lt_prog_compiler_wl='-Wl,';;
8011 lt_prog_compiler_wl='-Qoption ld '
8012 lt_prog_compiler_pic='-PIC'
8013 lt_prog_compiler_static='-Bstatic'
8016 sysv4 | sysv4.2uw2* | sysv4.3*)
8017 lt_prog_compiler_wl='-Wl,'
8018 lt_prog_compiler_pic='-KPIC'
8019 lt_prog_compiler_static='-Bstatic'
8023 if test -d /usr/nec ;then
8024 lt_prog_compiler_pic='-Kconform_pic'
8025 lt_prog_compiler_static='-Bstatic'
8029 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8030 lt_prog_compiler_wl='-Wl,'
8031 lt_prog_compiler_pic='-KPIC'
8032 lt_prog_compiler_static='-Bstatic'
8036 lt_prog_compiler_wl='-Wl,'
8037 lt_prog_compiler_can_build_shared=no
8041 lt_prog_compiler_pic='-pic'
8042 lt_prog_compiler_static='-Bstatic'
8046 lt_prog_compiler_can_build_shared=no
8052 # For platforms which do not support PIC, -DPIC is meaningless:
8054 lt_prog_compiler_pic=
8057 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8062 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8063 if ${lt_cv_prog_compiler_pic+:} false; then :
8064 $as_echo_n "(cached) " >&6
8066 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8069 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8070 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8073 # Check to make sure the PIC flag actually works.
8075 if test -n "$lt_prog_compiler_pic"; then
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8077 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8078 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8079 $as_echo_n "(cached) " >&6
8081 lt_cv_prog_compiler_pic_works=no
8082 ac_outfile=conftest.$ac_objext
8083 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8084 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8085 # Insert the option either (1) after the last *FLAGS variable, or
8086 # (2) before a word containing "conftest.", or (3) at the end.
8087 # Note that $ac_compile itself does not contain backslashes and begins
8088 # with a dollar sign (not a hyphen), so the echo should work correctly.
8089 # The option is referenced via a variable to avoid confusing sed.
8090 lt_compile=`echo "$ac_compile" | $SED \
8091 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8092 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8093 -e 's:$: $lt_compiler_flag:'`
8094 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8095 (eval "$lt_compile" 2>conftest.err)
8097 cat conftest.err >&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 if (exit $ac_status) && test -s "$ac_outfile"; then
8100 # The compiler can only warn and ignore the option if not recognized
8101 # So say no if there are warnings other than the usual output.
8102 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8103 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8104 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8105 lt_cv_prog_compiler_pic_works=yes
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8112 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8114 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8115 case $lt_prog_compiler_pic in
8117 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8120 lt_prog_compiler_pic=
8121 lt_prog_compiler_can_build_shared=no
8137 # Check to make sure the static flag actually works.
8139 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8141 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8142 if ${lt_cv_prog_compiler_static_works+:} false; then :
8143 $as_echo_n "(cached) " >&6
8145 lt_cv_prog_compiler_static_works=no
8146 save_LDFLAGS="$LDFLAGS"
8147 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8148 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8149 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8150 # The linker can only warn and ignore the option if not recognized
8151 # So say no if there are warnings
8152 if test -s conftest.err; then
8153 # Append any errors to the config.log.
8154 cat conftest.err 1>&5
8155 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8156 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8157 if diff conftest.exp conftest.er2 >/dev/null; then
8158 lt_cv_prog_compiler_static_works=yes
8161 lt_cv_prog_compiler_static_works=yes
8165 LDFLAGS="$save_LDFLAGS"
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8169 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8171 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8174 lt_prog_compiler_static=
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8184 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8185 if ${lt_cv_prog_compiler_c_o+:} false; then :
8186 $as_echo_n "(cached) " >&6
8188 lt_cv_prog_compiler_c_o=no
8189 $RM -r conftest 2>/dev/null
8193 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8195 lt_compiler_flag="-o out/conftest2.$ac_objext"
8196 # Insert the option either (1) after the last *FLAGS variable, or
8197 # (2) before a word containing "conftest.", or (3) at the end.
8198 # Note that $ac_compile itself does not contain backslashes and begins
8199 # with a dollar sign (not a hyphen), so the echo should work correctly.
8200 lt_compile=`echo "$ac_compile" | $SED \
8201 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8203 -e 's:$: $lt_compiler_flag:'`
8204 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8205 (eval "$lt_compile" 2>out/conftest.err)
8207 cat out/conftest.err >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8211 # The compiler can only warn and ignore the option if not recognized
8212 # So say no if there are warnings
8213 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8214 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8215 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8216 lt_cv_prog_compiler_c_o=yes
8221 # SGI C++ compiler will create directory out/ii_files/ for
8222 # template instantiation
8223 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8224 $RM out/* && rmdir out
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8231 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8239 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8240 if ${lt_cv_prog_compiler_c_o+:} false; then :
8241 $as_echo_n "(cached) " >&6
8243 lt_cv_prog_compiler_c_o=no
8244 $RM -r conftest 2>/dev/null
8248 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8250 lt_compiler_flag="-o out/conftest2.$ac_objext"
8251 # Insert the option either (1) after the last *FLAGS variable, or
8252 # (2) before a word containing "conftest.", or (3) at the end.
8253 # Note that $ac_compile itself does not contain backslashes and begins
8254 # with a dollar sign (not a hyphen), so the echo should work correctly.
8255 lt_compile=`echo "$ac_compile" | $SED \
8256 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8257 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8258 -e 's:$: $lt_compiler_flag:'`
8259 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8260 (eval "$lt_compile" 2>out/conftest.err)
8262 cat out/conftest.err >&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8266 # The compiler can only warn and ignore the option if not recognized
8267 # So say no if there are warnings
8268 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8269 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8270 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8271 lt_cv_prog_compiler_c_o=yes
8276 # SGI C++ compiler will create directory out/ii_files/ for
8277 # template instantiation
8278 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8279 $RM out/* && rmdir out
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8286 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8291 hard_links="nottested"
8292 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8293 # do not overwrite the value of need_locks provided by the user
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8295 $as_echo_n "checking if we can lock with hard links... " >&6; }
8298 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8300 ln conftest.a conftest.b 2>&5 || hard_links=no
8301 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8303 $as_echo "$hard_links" >&6; }
8304 if test "$hard_links" = no; then
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8306 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8319 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8322 allow_undefined_flag=
8323 always_export_symbols=no
8325 archive_expsym_cmds=
8326 compiler_needs_object=no
8327 enable_shared_with_static_runtimes=no
8328 export_dynamic_flag_spec=
8329 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8330 hardcode_automatic=no
8332 hardcode_direct_absolute=no
8333 hardcode_libdir_flag_spec=
8334 hardcode_libdir_flag_spec_ld=
8335 hardcode_libdir_separator=
8337 hardcode_shlibpath_var=unsupported
8339 link_all_deplibs=unknown
8342 old_archive_from_new_cmds=
8343 old_archive_from_expsyms_cmds=
8344 thread_safe_flag_spec=
8345 whole_archive_flag_spec=
8346 # include_expsyms should be a list of space-separated symbols to be *always*
8347 # included in the symbol list
8349 # exclude_expsyms can be an extended regexp of symbols to exclude
8350 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8351 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8352 # as well as any symbol that contains `d'.
8353 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8354 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8355 # platforms (ab)use it in PIC code, but their linkers get confused if
8356 # the symbol is explicitly referenced. Since portable code cannot
8357 # rely on this symbol name, it's probably fine to never include it in
8358 # preloaded symbol tables.
8359 # Exclude shared library initialization/finalization symbols.
8360 extract_expsyms_cmds=
8363 cygwin* | mingw* | pw32* | cegcc*)
8364 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8365 # When not using gcc, we currently assume that we are using
8366 # Microsoft Visual C++.
8367 if test "$GCC" != yes; then
8372 # we just hope/assume this is gcc and not c89 (= MSVC++)
8382 # On some targets, GNU ld is compatible enough with the native linker
8383 # that we're better off using the native interface for both.
8384 lt_use_gnu_ld_interface=no
8385 if test "$with_gnu_ld" = yes; then
8388 # The AIX port of GNU ld has always aspired to compatibility
8389 # with the native linker. However, as the warning in the GNU ld
8390 # block says, versions before 2.19.5* couldn't really create working
8391 # shared libraries, regardless of the interface used.
8392 case `$LD -v 2>&1` in
8393 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8394 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8395 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8397 lt_use_gnu_ld_interface=yes
8402 lt_use_gnu_ld_interface=yes
8407 if test "$lt_use_gnu_ld_interface" = yes; then
8408 # If archive_cmds runs LD, not CC, wlarc should be empty
8411 # Set some defaults for GNU ld with shared library support. These
8412 # are reset later if shared libraries are not supported. Putting them
8413 # here allows them to be overridden if necessary.
8414 runpath_var=LD_RUN_PATH
8415 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8416 export_dynamic_flag_spec='${wl}--export-dynamic'
8417 # ancient GNU ld didn't support --whole-archive et. al.
8418 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8419 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8421 whole_archive_flag_spec=
8423 supports_anon_versioning=no
8424 case `$LD -v 2>&1` in
8425 *GNU\ gold*) supports_anon_versioning=yes ;;
8426 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8427 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8428 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8429 *\ 2.11.*) ;; # other 2.11 versions
8430 *) supports_anon_versioning=yes ;;
8433 # See if GNU ld supports shared libraries.
8436 # On AIX/PPC, the GNU linker is very broken
8437 if test "$host_cpu" != ia64; then
8441 *** Warning: the GNU linker, at least up to release 2.19, is reported
8442 *** to be unable to reliably create shared libraries on AIX.
8443 *** Therefore, libtool is disabling shared libraries support. If you
8444 *** really care for shared libraries, you may want to install binutils
8445 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8446 *** You will then need to restart the configuration process.
8455 # see comment about AmigaOS4 .so support
8456 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8457 archive_expsym_cmds=''
8460 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)'
8461 hardcode_libdir_flag_spec='-L$libdir'
8462 hardcode_minus_L=yes
8468 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8469 allow_undefined_flag=unsupported
8470 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8471 # support --undefined. This deserves some investigation. FIXME
8472 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8478 cygwin* | mingw* | pw32* | cegcc*)
8479 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8480 # as there is no search path for DLLs.
8481 hardcode_libdir_flag_spec='-L$libdir'
8482 export_dynamic_flag_spec='${wl}--export-all-symbols'
8483 allow_undefined_flag=unsupported
8484 always_export_symbols=no
8485 enable_shared_with_static_runtimes=yes
8486 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'
8487 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8489 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8490 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8491 # If the export-symbols file already is a .def file (1st line
8492 # is EXPORTS), use it as is; otherwise, prepend...
8493 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8494 cp $export_symbols $output_objdir/$soname.def;
8496 echo EXPORTS > $output_objdir/$soname.def;
8497 cat $export_symbols >> $output_objdir/$soname.def;
8499 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8506 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8507 link_all_deplibs=yes
8512 hardcode_shlibpath_var=no
8513 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8514 export_dynamic_flag_spec='${wl}-E'
8515 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8516 # Instead, shared libraries are loaded at an image base (0x10000000 by
8517 # default) and relocated if they conflict, which is a slow very memory
8518 # consuming and fragmenting process. To avoid this, we pick a random,
8519 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8520 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8521 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8522 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'
8525 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8527 if test "$host_os" = linux-dietlibc; then
8528 case $cc_basename in
8529 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8532 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8533 && test "$tmp_diet" = no
8535 tmp_addflag=' $pic_flag'
8536 tmp_sharedflag='-shared'
8537 case $cc_basename,$host_cpu in
8538 pgcc*) # Portland Group C compiler
8539 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'
8540 tmp_addflag=' $pic_flag'
8542 pgf77* | pgf90* | pgf95* | pgfortran*)
8543 # Portland Group f77 and f90 compilers
8544 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'
8545 tmp_addflag=' $pic_flag -Mnomain' ;;
8546 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8547 tmp_addflag=' -i_dynamic' ;;
8548 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8549 tmp_addflag=' -i_dynamic -nofor_main' ;;
8550 ifc* | ifort*) # Intel Fortran compiler
8551 tmp_addflag=' -nofor_main' ;;
8552 lf95*) # Lahey Fortran 8.1
8553 whole_archive_flag_spec=
8554 tmp_sharedflag='--shared' ;;
8555 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8556 tmp_sharedflag='-qmkshrobj'
8558 nvcc*) # Cuda Compiler Driver 2.2
8559 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'
8560 compiler_needs_object=yes
8563 case `$CC -V 2>&1 | sed 5q` in
8564 *Sun\ C*) # Sun C 5.9
8565 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'
8566 compiler_needs_object=yes
8567 tmp_sharedflag='-G' ;;
8568 *Sun\ F*) # Sun Fortran 8.3
8569 tmp_sharedflag='-G' ;;
8571 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8573 if test "x$supports_anon_versioning" = xyes; then
8574 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8575 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8576 echo "local: *; };" >> $output_objdir/$libname.ver~
8577 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8580 case $cc_basename in
8581 xlf* | bgf* | bgxlf* | mpixlf*)
8582 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8583 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8584 hardcode_libdir_flag_spec=
8585 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8586 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8587 if test "x$supports_anon_versioning" = xyes; then
8588 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8589 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8590 echo "local: *; };" >> $output_objdir/$libname.ver~
8591 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8601 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8602 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8605 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8606 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8611 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8615 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8616 *** create shared libraries on Solaris systems. Therefore, libtool
8617 *** is disabling shared libraries support. We urge you to upgrade GNU
8618 *** binutils to release 2.9.1 or newer. Another option is to modify
8619 *** your PATH or compiler configuration so that the native linker is
8620 *** used, and then restart.
8623 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8624 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8625 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8631 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8632 case `$LD -v 2>&1` in
8633 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8637 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8638 *** reliably create shared libraries on SCO systems. Therefore, libtool
8639 *** is disabling shared libraries support. We urge you to upgrade GNU
8640 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8641 *** your PATH or compiler configuration so that the native linker is
8642 *** used, and then restart.
8647 # For security reasons, it is highly recommended that you always
8648 # use absolute paths for naming shared libraries, and exclude the
8649 # DT_RUNPATH tag from executables and libraries. But doing so
8650 # requires that you compile everything twice, which is a pain.
8651 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8652 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8654 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8663 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8666 hardcode_shlibpath_var=no
8670 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8671 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8672 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8679 if test "$ld_shlibs" = no; then
8681 hardcode_libdir_flag_spec=
8682 export_dynamic_flag_spec=
8683 whole_archive_flag_spec=
8686 # PORTME fill in a description of your system's linker (not GNU ld)
8689 allow_undefined_flag=unsupported
8690 always_export_symbols=yes
8691 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'
8692 # Note: this linker hardcodes the directories in LIBPATH if there
8693 # are no directories specified by -L.
8694 hardcode_minus_L=yes
8695 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8696 # Neither direct hardcoding nor static linking is supported with a
8698 hardcode_direct=unsupported
8703 if test "$host_cpu" = ia64; then
8704 # On IA64, the linker does run time linking by default, so we don't
8705 # have to do anything special.
8706 aix_use_runtimelinking=no
8707 exp_sym_flag='-Bexport'
8710 # If we're using GNU nm, then we don't want the "-C" option.
8711 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8712 # Also, AIX nm treats weak defined symbols like other global
8713 # defined symbols, whereas GNU nm marks them as "W".
8714 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8715 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'
8717 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'
8719 aix_use_runtimelinking=no
8721 # Test if we are trying to use run time linking or normal
8722 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8723 # need to do runtime linking.
8724 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8725 for ld_flag in $LDFLAGS; do
8726 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8727 aix_use_runtimelinking=yes
8734 exp_sym_flag='-bexport'
8735 no_entry_flag='-bnoentry'
8738 # When large executables or shared objects are built, AIX ld can
8739 # have problems creating the table of contents. If linking a library
8740 # or program results in "error TOC overflow" add -mminimal-toc to
8741 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8742 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8746 hardcode_direct_absolute=yes
8747 hardcode_libdir_separator=':'
8748 link_all_deplibs=yes
8749 file_list_spec='${wl}-f,'
8751 if test "$GCC" = yes; then
8752 case $host_os in aix4.[012]|aix4.[012].*)
8753 # We only want to do this on AIX 4.2 and lower, the check
8754 # below for broken collect2 doesn't work under 4.3+
8755 collect2name=`${CC} -print-prog-name=collect2`
8756 if test -f "$collect2name" &&
8757 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8759 # We have reworked collect2
8762 # We have old collect2
8763 hardcode_direct=unsupported
8764 # It fails to find uninstalled libraries when the uninstalled
8765 # path is not listed in the libpath. Setting hardcode_minus_L
8766 # to unsupported forces relinking
8767 hardcode_minus_L=yes
8768 hardcode_libdir_flag_spec='-L$libdir'
8769 hardcode_libdir_separator=
8773 shared_flag='-shared'
8774 if test "$aix_use_runtimelinking" = yes; then
8775 shared_flag="$shared_flag "'${wl}-G'
8779 if test "$host_cpu" = ia64; then
8780 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8781 # chokes on -Wl,-G. The following line is correct:
8784 if test "$aix_use_runtimelinking" = yes; then
8785 shared_flag='${wl}-G'
8787 shared_flag='${wl}-bM:SRE'
8792 export_dynamic_flag_spec='${wl}-bexpall'
8793 # It seems that -bexpall does not export symbols beginning with
8794 # underscore (_), so it is better to generate a list of symbols to export.
8795 always_export_symbols=yes
8796 if test "$aix_use_runtimelinking" = yes; then
8797 # Warning - without using the other runtime loading flags (-brtl),
8798 # -berok will link without error, but may produce a broken library.
8799 allow_undefined_flag='-berok'
8800 # Determine the default libpath from the value encoded in an
8802 if test "${lt_cv_aix_libpath+set}" = set; then
8803 aix_libpath=$lt_cv_aix_libpath
8805 if ${lt_cv_aix_libpath_+:} false; then :
8806 $as_echo_n "(cached) " >&6
8808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8809 /* end confdefs.h. */
8819 if ac_fn_c_try_link "$LINENO"; then :
8821 lt_aix_libpath_sed='
8822 /Import File Strings/,/^$/ {
8824 s/^0 *\([^ ]*\) *$/\1/
8828 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8829 # Check for a 64-bit object if we didn't find anything.
8830 if test -z "$lt_cv_aix_libpath_"; then
8831 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8834 rm -f core conftest.err conftest.$ac_objext \
8835 conftest$ac_exeext conftest.$ac_ext
8836 if test -z "$lt_cv_aix_libpath_"; then
8837 lt_cv_aix_libpath_="/usr/lib:/lib"
8842 aix_libpath=$lt_cv_aix_libpath_
8845 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8846 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"
8848 if test "$host_cpu" = ia64; then
8849 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8850 allow_undefined_flag="-z nodefs"
8851 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"
8853 # Determine the default libpath from the value encoded in an
8855 if test "${lt_cv_aix_libpath+set}" = set; then
8856 aix_libpath=$lt_cv_aix_libpath
8858 if ${lt_cv_aix_libpath_+:} false; then :
8859 $as_echo_n "(cached) " >&6
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8872 if ac_fn_c_try_link "$LINENO"; then :
8874 lt_aix_libpath_sed='
8875 /Import File Strings/,/^$/ {
8877 s/^0 *\([^ ]*\) *$/\1/
8881 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8882 # Check for a 64-bit object if we didn't find anything.
8883 if test -z "$lt_cv_aix_libpath_"; then
8884 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8887 rm -f core conftest.err conftest.$ac_objext \
8888 conftest$ac_exeext conftest.$ac_ext
8889 if test -z "$lt_cv_aix_libpath_"; then
8890 lt_cv_aix_libpath_="/usr/lib:/lib"
8895 aix_libpath=$lt_cv_aix_libpath_
8898 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8899 # Warning - without using the other run time loading flags,
8900 # -berok will link without error, but may produce a broken library.
8901 no_undefined_flag=' ${wl}-bernotok'
8902 allow_undefined_flag=' ${wl}-berok'
8903 if test "$with_gnu_ld" = yes; then
8904 # We only use this code for GNU lds that support --whole-archive.
8905 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8907 # Exported symbols can be pulled into shared objects from archives
8908 whole_archive_flag_spec='$convenience'
8910 archive_cmds_need_lc=yes
8911 # This is similar to how AIX traditionally builds its shared libraries.
8912 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'
8920 # see comment about AmigaOS4 .so support
8921 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8922 archive_expsym_cmds=''
8925 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)'
8926 hardcode_libdir_flag_spec='-L$libdir'
8927 hardcode_minus_L=yes
8933 export_dynamic_flag_spec=-rdynamic
8936 cygwin* | mingw* | pw32* | cegcc*)
8937 # When not using gcc, we currently assume that we are using
8938 # Microsoft Visual C++.
8939 # hardcode_libdir_flag_spec is actually meaningless, as there is
8940 # no search path for DLLs.
8941 case $cc_basename in
8944 hardcode_libdir_flag_spec=' '
8945 allow_undefined_flag=unsupported
8946 always_export_symbols=yes
8948 # Tell ltmain to make .lib files, not .a files.
8950 # Tell ltmain to make .dll files, not .so files.
8952 # FIXME: Setting linknames here is a bad hack.
8953 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8954 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8955 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8957 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8959 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8961 # The linker will not automatically build a static lib if we build a DLL.
8962 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8963 enable_shared_with_static_runtimes=yes
8964 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8966 old_postinstall_cmds='chmod 644 $oldlib'
8967 postlink_cmds='lt_outputfile="@OUTPUT@"~
8968 lt_tool_outputfile="@TOOL_OUTPUT@"~
8969 case $lt_outputfile in
8972 lt_outputfile="$lt_outputfile.exe"
8973 lt_tool_outputfile="$lt_tool_outputfile.exe"
8976 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8977 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8978 $RM "$lt_outputfile.manifest";
8982 # Assume MSVC wrapper
8983 hardcode_libdir_flag_spec=' '
8984 allow_undefined_flag=unsupported
8985 # Tell ltmain to make .lib files, not .a files.
8987 # Tell ltmain to make .dll files, not .so files.
8989 # FIXME: Setting linknames here is a bad hack.
8990 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8991 # The linker will automatically build a .lib file if we build a DLL.
8992 old_archive_from_new_cmds='true'
8993 # FIXME: Should let the user specify the lib program.
8994 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8995 enable_shared_with_static_runtimes=yes
9000 darwin* | rhapsody*)
9003 archive_cmds_need_lc=no
9005 hardcode_automatic=yes
9006 hardcode_shlibpath_var=unsupported
9007 if test "$lt_cv_ld_force_load" = "yes"; then
9008 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\"`'
9010 whole_archive_flag_spec=''
9012 link_all_deplibs=yes
9013 allow_undefined_flag="$_lt_dar_allow_undefined"
9014 case $cc_basename in
9015 ifort*) _lt_dar_can_shared=yes ;;
9016 *) _lt_dar_can_shared=$GCC ;;
9018 if test "$_lt_dar_can_shared" = "yes"; then
9019 output_verbose_link_cmd=func_echo_all
9020 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9021 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9022 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}"
9023 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}"
9032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9033 hardcode_libdir_flag_spec='-L$libdir'
9034 hardcode_shlibpath_var=no
9041 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9042 # support. Future versions do this automatically, but an explicit c++rt0.o
9043 # does not break anything, and helps significantly (at the cost of a little
9046 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9047 hardcode_libdir_flag_spec='-R$libdir'
9049 hardcode_shlibpath_var=no
9052 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9054 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9056 hardcode_minus_L=yes
9057 hardcode_shlibpath_var=no
9060 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9061 freebsd* | dragonfly*)
9062 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9063 hardcode_libdir_flag_spec='-R$libdir'
9065 hardcode_shlibpath_var=no
9069 if test "$GCC" = yes; then
9070 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'
9072 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'
9074 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9075 hardcode_libdir_separator=:
9078 # hardcode_minus_L: Not really in the search PATH,
9079 # but as the default location of the library.
9080 hardcode_minus_L=yes
9081 export_dynamic_flag_spec='${wl}-E'
9085 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9086 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9088 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9090 if test "$with_gnu_ld" = no; then
9091 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9092 hardcode_libdir_flag_spec_ld='+b $libdir'
9093 hardcode_libdir_separator=:
9095 hardcode_direct_absolute=yes
9096 export_dynamic_flag_spec='${wl}-E'
9097 # hardcode_minus_L: Not really in the search PATH,
9098 # but as the default location of the library.
9099 hardcode_minus_L=yes
9104 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9107 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9110 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9113 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9119 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9122 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9126 # Older versions of the 11.00 compiler do not understand -b yet
9127 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9129 $as_echo_n "checking if $CC understands -b... " >&6; }
9130 if ${lt_cv_prog_compiler__b+:} false; then :
9131 $as_echo_n "(cached) " >&6
9133 lt_cv_prog_compiler__b=no
9134 save_LDFLAGS="$LDFLAGS"
9135 LDFLAGS="$LDFLAGS -b"
9136 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9137 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9138 # The linker can only warn and ignore the option if not recognized
9139 # So say no if there are warnings
9140 if test -s conftest.err; then
9141 # Append any errors to the config.log.
9142 cat conftest.err 1>&5
9143 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9145 if diff conftest.exp conftest.er2 >/dev/null; then
9146 lt_cv_prog_compiler__b=yes
9149 lt_cv_prog_compiler__b=yes
9153 LDFLAGS="$save_LDFLAGS"
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9157 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9159 if test x"$lt_cv_prog_compiler__b" = xyes; then
9160 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9162 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9168 if test "$with_gnu_ld" = no; then
9169 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9170 hardcode_libdir_separator=:
9175 hardcode_shlibpath_var=no
9179 hardcode_direct_absolute=yes
9180 export_dynamic_flag_spec='${wl}-E'
9182 # hardcode_minus_L: Not really in the search PATH,
9183 # but as the default location of the library.
9184 hardcode_minus_L=yes
9190 irix5* | irix6* | nonstopux*)
9191 if test "$GCC" = yes; then
9192 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'
9193 # Try to use the -exported_symbol ld option, if it does not
9194 # work, assume that -exports_file does not work either and
9195 # implicitly export all symbols.
9196 # This should be the same for all languages, so no per-tag cache variable.
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9198 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9199 if ${lt_cv_irix_exported_symbol+:} false; then :
9200 $as_echo_n "(cached) " >&6
9202 save_LDFLAGS="$LDFLAGS"
9203 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205 /* end confdefs.h. */
9206 int foo (void) { return 0; }
9208 if ac_fn_c_try_link "$LINENO"; then :
9209 lt_cv_irix_exported_symbol=yes
9211 lt_cv_irix_exported_symbol=no
9213 rm -f core conftest.err conftest.$ac_objext \
9214 conftest$ac_exeext conftest.$ac_ext
9215 LDFLAGS="$save_LDFLAGS"
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9218 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9219 if test "$lt_cv_irix_exported_symbol" = yes; then
9220 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'
9223 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'
9224 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'
9226 archive_cmds_need_lc='no'
9227 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9228 hardcode_libdir_separator=:
9230 link_all_deplibs=yes
9234 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9235 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9237 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9239 hardcode_libdir_flag_spec='-R$libdir'
9241 hardcode_shlibpath_var=no
9245 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9247 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9248 hardcode_libdir_separator=:
9249 hardcode_shlibpath_var=no
9256 if test -f /usr/libexec/ld.so; then
9258 hardcode_shlibpath_var=no
9259 hardcode_direct_absolute=yes
9260 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9261 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9262 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9263 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9264 export_dynamic_flag_spec='${wl}-E'
9267 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9268 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9269 hardcode_libdir_flag_spec='-R$libdir'
9272 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9273 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9283 hardcode_libdir_flag_spec='-L$libdir'
9284 hardcode_minus_L=yes
9285 allow_undefined_flag=unsupported
9286 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'
9287 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9291 if test "$GCC" = yes; then
9292 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9293 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'
9295 allow_undefined_flag=' -expect_unresolved \*'
9296 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'
9298 archive_cmds_need_lc='no'
9299 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9300 hardcode_libdir_separator=:
9303 osf4* | osf5*) # as osf3* with the addition of -msym flag
9304 if test "$GCC" = yes; then
9305 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9306 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'
9307 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9309 allow_undefined_flag=' -expect_unresolved \*'
9310 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'
9311 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~
9312 $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'
9314 # Both c and cxx compiler support -rpath directly
9315 hardcode_libdir_flag_spec='-rpath $libdir'
9317 archive_cmds_need_lc='no'
9318 hardcode_libdir_separator=:
9322 no_undefined_flag=' -z defs'
9323 if test "$GCC" = yes; then
9325 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9326 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9327 $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'
9329 case `$CC -V 2>&1` in
9332 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9333 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9334 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9338 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9339 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9340 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9344 hardcode_libdir_flag_spec='-R$libdir'
9345 hardcode_shlibpath_var=no
9347 solaris2.[0-5] | solaris2.[0-5].*) ;;
9349 # The compiler driver will combine and reorder linker options,
9350 # but understands `-z linker_flag'. GCC discards it without `$wl',
9351 # but is careful enough not to reorder.
9352 # Supported since Solaris 2.6 (maybe 2.5.1?)
9353 if test "$GCC" = yes; then
9354 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9356 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9360 link_all_deplibs=yes
9364 if test "x$host_vendor" = xsequent; then
9365 # Use $CC to link under sequent, because it throws in some extra .o
9366 # files that make .init and .fini sections work.
9367 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9369 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9371 hardcode_libdir_flag_spec='-L$libdir'
9373 hardcode_minus_L=yes
9374 hardcode_shlibpath_var=no
9378 case $host_vendor in
9380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9381 hardcode_direct=yes # is this really true???
9384 ## LD is ld it makes a PLAMLIB
9385 ## CC just makes a GrossModule.
9386 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9387 reload_cmds='$CC -r -o $output$reload_objs'
9391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9392 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9395 runpath_var='LD_RUN_PATH'
9396 hardcode_shlibpath_var=no
9400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9401 hardcode_shlibpath_var=no
9402 export_dynamic_flag_spec='-Bexport'
9406 if test -d /usr/nec; then
9407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9408 hardcode_shlibpath_var=no
9409 runpath_var=LD_RUN_PATH
9410 hardcode_runpath_var=yes
9415 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9416 no_undefined_flag='${wl}-z,text'
9417 archive_cmds_need_lc=no
9418 hardcode_shlibpath_var=no
9419 runpath_var='LD_RUN_PATH'
9421 if test "$GCC" = yes; then
9422 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9423 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9425 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9426 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9430 sysv5* | sco3.2v5* | sco5v6*)
9431 # Note: We can NOT use -z defs as we might desire, because we do not
9432 # link with -lc, and that would cause any symbols used from libc to
9433 # always be unresolved, which means just about no library would
9434 # ever link correctly. If we're not using GNU ld we use -z text
9435 # though, which does catch some bad symbols but isn't as heavy-handed
9437 no_undefined_flag='${wl}-z,text'
9438 allow_undefined_flag='${wl}-z,nodefs'
9439 archive_cmds_need_lc=no
9440 hardcode_shlibpath_var=no
9441 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9442 hardcode_libdir_separator=':'
9443 link_all_deplibs=yes
9444 export_dynamic_flag_spec='${wl}-Bexport'
9445 runpath_var='LD_RUN_PATH'
9447 if test "$GCC" = yes; then
9448 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9449 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9451 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9452 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9458 hardcode_libdir_flag_spec='-L$libdir'
9459 hardcode_shlibpath_var=no
9467 if test x$host_vendor = xsni; then
9469 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9470 export_dynamic_flag_spec='${wl}-Blargedynsym'
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9477 $as_echo "$ld_shlibs" >&6; }
9478 test "$ld_shlibs" = no && can_build_shared=no
9480 with_gnu_ld=$with_gnu_ld
9497 # Do we need to explicitly link libc?
9499 case "x$archive_cmds_need_lc" in
9501 # Assume -lc should be added
9502 archive_cmds_need_lc=yes
9504 if test "$enable_shared" = yes && test "$GCC" = yes; then
9505 case $archive_cmds in
9507 # FIXME: we may have to deal with multi-command sequences.
9510 # Test whether the compiler implicitly links with -lc since on some
9511 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9512 # to ld, don't add -lc before -lgcc.
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9514 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9515 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9516 $as_echo_n "(cached) " >&6
9519 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9522 (eval $ac_compile) 2>&5
9524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9525 test $ac_status = 0; } 2>conftest.err; then
9528 libobjs=conftest.$ac_objext
9530 wl=$lt_prog_compiler_wl
9531 pic_flag=$lt_prog_compiler_pic
9537 lt_save_allow_undefined_flag=$allow_undefined_flag
9538 allow_undefined_flag=
9539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9540 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9543 test $ac_status = 0; }
9545 lt_cv_archive_cmds_need_lc=no
9547 lt_cv_archive_cmds_need_lc=yes
9549 allow_undefined_flag=$lt_save_allow_undefined_flag
9551 cat conftest.err 1>&5
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9557 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9558 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9722 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9724 if test "$GCC" = yes; then
9726 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9727 *) lt_awk_arg="/^libraries:/" ;;
9730 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9731 *) lt_sed_strip_eq="s,=/,/,g" ;;
9733 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9734 case $lt_search_path_spec in
9736 # if the path contains ";" then we assume it to be the separator
9737 # otherwise default to the standard path separator (i.e. ":") - it is
9738 # assumed that no part of a normal pathname contains ";" but that should
9739 # okay in the real world where ";" in dirpaths is itself problematic.
9740 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9743 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9746 # Ok, now we have the path, separated by spaces, we can step through it
9747 # and add multilib dir if necessary.
9748 lt_tmp_lt_search_path_spec=
9749 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9750 for lt_sys_path in $lt_search_path_spec; do
9751 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9752 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9754 test -d "$lt_sys_path" && \
9755 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9758 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9759 BEGIN {RS=" "; FS="/|\n";} {
9762 for (lt_i = NF; lt_i > 0; lt_i--) {
9763 if ($lt_i != "" && $lt_i != ".") {
9764 if ($lt_i == "..") {
9767 if (lt_count == 0) {
9768 lt_foo="/" $lt_i lt_foo;
9775 if (lt_foo != "") { lt_freq[lt_foo]++; }
9776 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9778 # AWK program above erroneously prepends '/' to C:/dos/paths
9781 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9782 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9784 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9786 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9789 libname_spec='lib$name'
9797 shlibpath_overrides_runpath=unknown
9799 dynamic_linker="$host_os ld.so"
9800 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9801 need_lib_prefix=unknown
9802 hardcode_into_libs=no
9804 # when you set need_version to no, make sure it does not cause -set_version
9805 # flags to be left without arguments
9806 need_version=unknown
9811 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9812 shlibpath_var=LIBPATH
9814 # AIX 3 has no versioning support, so we append a major version to the name.
9815 soname_spec='${libname}${release}${shared_ext}$major'
9822 hardcode_into_libs=yes
9823 if test "$host_cpu" = ia64; then
9824 # AIX 5 supports IA64
9825 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9826 shlibpath_var=LD_LIBRARY_PATH
9828 # With GCC up to 2.95.x, collect2 would create an import file
9829 # for dependence libraries. The import file would start with
9830 # the line `#! .'. This would cause the generated library to
9831 # depend on `.', always an invalid library. This was fixed in
9832 # development snapshots of GCC prior to 3.0.
9834 aix4 | aix4.[01] | aix4.[01].*)
9835 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9837 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9844 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9845 # soname into executable. Probably we can add versioning support to
9846 # collect2, so additional links can be useful in future.
9847 if test "$aix_use_runtimelinking" = yes; then
9848 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9849 # instead of lib<name>.a to let people know that these are not
9850 # typical AIX shared libraries.
9851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9853 # We preserve .a as extension for shared libraries through AIX4.2
9854 # and later when we are not doing run time linking.
9855 library_names_spec='${libname}${release}.a $libname.a'
9856 soname_spec='${libname}${release}${shared_ext}$major'
9858 shlibpath_var=LIBPATH
9865 # Since July 2007 AmigaOS4 officially supports .so libraries.
9866 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9870 library_names_spec='$libname.ixlibrary $libname.a'
9871 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9872 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'
9878 library_names_spec='${libname}${shared_ext}'
9879 dynamic_linker="$host_os ld.so"
9880 shlibpath_var=LIBRARY_PATH
9886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9887 soname_spec='${libname}${release}${shared_ext}$major'
9888 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9889 shlibpath_var=LD_LIBRARY_PATH
9890 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9891 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9892 # the default ld.so.conf also contains /usr/contrib/lib and
9893 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9894 # libtool to hard-code these into programs
9897 cygwin* | mingw* | pw32* | cegcc*)
9898 version_type=windows
9903 case $GCC,$cc_basename in
9906 library_names_spec='$libname.dll.a'
9907 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9908 postinstall_cmds='base_file=`basename \${file}`~
9909 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9910 dldir=$destdir/`dirname \$dlpath`~
9911 test -d \$dldir || mkdir -p \$dldir~
9912 $install_prog $dir/$dlname \$dldir/$dlname~
9913 chmod a+x \$dldir/$dlname~
9914 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9915 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9917 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9918 dlpath=$dir/\$dldll~
9920 shlibpath_overrides_runpath=yes
9924 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9925 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9927 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9930 # MinGW DLLs use traditional 'lib' prefix
9931 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9934 # pw32 DLLs use 'pw' prefix rather than 'lib'
9935 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9938 dynamic_linker='Win32 ld.exe'
9943 libname_spec='$name'
9944 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9945 library_names_spec='${libname}.dll.lib'
9949 sys_lib_search_path_spec=
9955 # Let DOS variable expansion print the short 8.3 style file name.
9956 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9957 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9960 # Convert to MSYS style.
9961 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9964 # Convert to unix form, then to dos form, then back to unix form
9965 # but this time dos style (no spaces!) so that the unix form looks
9966 # like /cygdrive/c/PROGRA~1:/cygdr...
9967 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9968 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9969 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9972 sys_lib_search_path_spec="$LIB"
9973 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9974 # It is most probably a Windows format PATH.
9975 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9977 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9979 # FIXME: find the short name or the path components, as spaces are
9980 # common. (e.g. "Program Files" -> "PROGRA~1")
9984 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9985 postinstall_cmds='base_file=`basename \${file}`~
9986 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9987 dldir=$destdir/`dirname \$dlpath`~
9988 test -d \$dldir || mkdir -p \$dldir~
9989 $install_prog $dir/$dlname \$dldir/$dlname'
9990 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9991 dlpath=$dir/\$dldll~
9993 shlibpath_overrides_runpath=yes
9994 dynamic_linker='Win32 link.exe'
9998 # Assume MSVC wrapper
9999 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10000 dynamic_linker='Win32 ld.exe'
10003 # FIXME: first we should search . and the directory the executable is in
10007 darwin* | rhapsody*)
10008 dynamic_linker="$host_os dyld"
10009 version_type=darwin
10012 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10013 soname_spec='${libname}${release}${major}$shared_ext'
10014 shlibpath_overrides_runpath=yes
10015 shlibpath_var=DYLD_LIBRARY_PATH
10016 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10018 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10019 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10027 soname_spec='${libname}${release}${shared_ext}$major'
10028 shlibpath_var=LD_LIBRARY_PATH
10035 freebsd* | dragonfly*)
10036 # DragonFly does not have aout. When/if they implement a new
10037 # versioning mechanism, adjust this.
10038 if test -x /usr/bin/objformat; then
10039 objformat=`/usr/bin/objformat`
10042 freebsd[123]*) objformat=aout ;;
10043 *) objformat=elf ;;
10046 version_type=freebsd-$objformat
10047 case $version_type in
10049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10054 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10058 shlibpath_var=LD_LIBRARY_PATH
10061 shlibpath_overrides_runpath=yes
10063 freebsd3.[01]* | freebsdelf3.[01]*)
10064 shlibpath_overrides_runpath=yes
10065 hardcode_into_libs=yes
10067 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10068 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10069 shlibpath_overrides_runpath=no
10070 hardcode_into_libs=yes
10072 *) # from 4.6 on, and DragonFly
10073 shlibpath_overrides_runpath=yes
10074 hardcode_into_libs=yes
10083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10084 soname_spec='${libname}${release}${shared_ext}$major'
10085 shlibpath_var=LD_LIBRARY_PATH
10086 hardcode_into_libs=yes
10093 dynamic_linker="$host_os runtime_loader"
10094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10095 soname_spec='${libname}${release}${shared_ext}$major'
10096 shlibpath_var=LIBRARY_PATH
10097 shlibpath_overrides_runpath=yes
10098 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10099 hardcode_into_libs=yes
10102 hpux9* | hpux10* | hpux11*)
10103 # Give a soname corresponding to the major version so that dld.sl refuses to
10104 # link against other versions.
10111 hardcode_into_libs=yes
10112 dynamic_linker="$host_os dld.so"
10113 shlibpath_var=LD_LIBRARY_PATH
10114 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10116 soname_spec='${libname}${release}${shared_ext}$major'
10117 if test "X$HPUX_IA64_MODE" = X32; then
10118 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10120 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10122 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10126 hardcode_into_libs=yes
10127 dynamic_linker="$host_os dld.sl"
10128 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10129 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131 soname_spec='${libname}${release}${shared_ext}$major'
10132 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10133 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10137 dynamic_linker="$host_os dld.sl"
10138 shlibpath_var=SHLIB_PATH
10139 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10141 soname_spec='${libname}${release}${shared_ext}$major'
10144 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10145 postinstall_cmds='chmod 555 $lib'
10146 # or fails outright, so override atomically:
10147 install_override_mode=555
10154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10155 soname_spec='${libname}${release}${shared_ext}$major'
10156 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10157 shlibpath_var=LD_LIBRARY_PATH
10158 shlibpath_overrides_runpath=no
10159 hardcode_into_libs=yes
10162 irix5* | irix6* | nonstopux*)
10164 nonstopux*) version_type=nonstopux ;;
10166 if test "$lt_cv_prog_gnu_ld" = yes; then
10174 soname_spec='${libname}${release}${shared_ext}$major'
10175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10177 irix5* | nonstopux*)
10178 libsuff= shlibsuff=
10181 case $LD in # libtool.m4 will add one of these switches to LD
10182 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10183 libsuff= shlibsuff= libmagic=32-bit;;
10184 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10185 libsuff=32 shlibsuff=N32 libmagic=N32;;
10186 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10187 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10188 *) libsuff= shlibsuff= libmagic=never-match;;
10192 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10193 shlibpath_overrides_runpath=no
10194 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10195 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10196 hardcode_into_libs=yes
10199 # No shared lib support for Linux oldld, aout, or coff.
10200 linux*oldld* | linux*aout* | linux*coff*)
10204 # This must be Linux ELF.
10205 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10210 soname_spec='${libname}${release}${shared_ext}$major'
10211 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10212 shlibpath_var=LD_LIBRARY_PATH
10213 shlibpath_overrides_runpath=no
10215 # Some binutils ld are patched to set DT_RUNPATH
10216 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10217 $as_echo_n "(cached) " >&6
10219 lt_cv_shlibpath_overrides_runpath=no
10220 save_LDFLAGS=$LDFLAGS
10221 save_libdir=$libdir
10222 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10223 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10225 /* end confdefs.h. */
10235 if ac_fn_c_try_link "$LINENO"; then :
10236 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10237 lt_cv_shlibpath_overrides_runpath=yes
10240 rm -f core conftest.err conftest.$ac_objext \
10241 conftest$ac_exeext conftest.$ac_ext
10242 LDFLAGS=$save_LDFLAGS
10243 libdir=$save_libdir
10247 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10249 # This implies no fast_install, which is unacceptable.
10250 # Some rework will be needed to allow for fast_install
10251 # before this can be enabled.
10252 hardcode_into_libs=yes
10254 # Append ld.so.conf contents to the search path
10255 if test -f /etc/ld.so.conf; then
10256 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' ' '`
10257 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10260 # We used to test for /lib/ld.so.1 and disable shared libraries on
10261 # powerpc, because MkLinux only supported shared libraries with the
10262 # GNU dynamic linker. Since this was broken with cross compilers,
10263 # most powerpc-linux boxes support dynamic linking these days and
10264 # people can always --disable-shared, the test was removed, and we
10265 # assume the GNU/Linux dynamic linker is in use.
10266 dynamic_linker='GNU/Linux ld.so'
10273 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10275 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10276 dynamic_linker='NetBSD (a.out) ld.so'
10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10279 soname_spec='${libname}${release}${shared_ext}$major'
10280 dynamic_linker='NetBSD ld.elf_so'
10282 shlibpath_var=LD_LIBRARY_PATH
10283 shlibpath_overrides_runpath=yes
10284 hardcode_into_libs=yes
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10290 shlibpath_var=LD_LIBRARY_PATH
10291 shlibpath_overrides_runpath=yes
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299 soname_spec='${libname}${release}${shared_ext}$major'
10300 shlibpath_var=LD_LIBRARY_PATH
10301 shlibpath_overrides_runpath=no
10302 hardcode_into_libs=yes
10303 dynamic_linker='ldqnx.so'
10308 sys_lib_dlsearch_path_spec="/usr/lib"
10310 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10312 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10313 *) need_version=no ;;
10315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10317 shlibpath_var=LD_LIBRARY_PATH
10318 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10320 openbsd2.[89] | openbsd2.[89].*)
10321 shlibpath_overrides_runpath=no
10324 shlibpath_overrides_runpath=yes
10328 shlibpath_overrides_runpath=yes
10333 libname_spec='$name'
10336 library_names_spec='$libname${shared_ext} $libname.a'
10337 dynamic_linker='OS/2 ld.exe'
10338 shlibpath_var=LIBPATH
10341 osf3* | osf4* | osf5*)
10345 soname_spec='${libname}${release}${shared_ext}$major'
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10347 shlibpath_var=LD_LIBRARY_PATH
10348 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10349 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361 soname_spec='${libname}${release}${shared_ext}$major'
10362 shlibpath_var=LD_LIBRARY_PATH
10363 shlibpath_overrides_runpath=yes
10364 hardcode_into_libs=yes
10365 # ldd complains unless libraries are executable
10366 postinstall_cmds='chmod +x $lib'
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10372 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10373 shlibpath_var=LD_LIBRARY_PATH
10374 shlibpath_overrides_runpath=yes
10375 if test "$with_gnu_ld" = yes; then
10383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10384 soname_spec='${libname}${release}${shared_ext}$major'
10385 shlibpath_var=LD_LIBRARY_PATH
10386 case $host_vendor in
10388 shlibpath_overrides_runpath=no
10390 runpath_var=LD_RUN_PATH
10398 shlibpath_overrides_runpath=no
10399 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10405 if test -d /usr/nec ;then
10407 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10408 soname_spec='$libname${shared_ext}.$major'
10409 shlibpath_var=LD_LIBRARY_PATH
10413 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10414 version_type=freebsd-elf
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10418 soname_spec='${libname}${release}${shared_ext}$major'
10419 shlibpath_var=LD_LIBRARY_PATH
10420 shlibpath_overrides_runpath=yes
10421 hardcode_into_libs=yes
10422 if test "$with_gnu_ld" = yes; then
10423 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10425 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10428 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10432 sys_lib_dlsearch_path_spec='/usr/lib'
10436 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441 shlibpath_var=LD_LIBRARY_PATH
10442 shlibpath_overrides_runpath=no
10443 hardcode_into_libs=yes
10448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10449 soname_spec='${libname}${release}${shared_ext}$major'
10450 shlibpath_var=LD_LIBRARY_PATH
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10458 $as_echo "$dynamic_linker" >&6; }
10459 test "$dynamic_linker" = no && can_build_shared=no
10461 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10462 if test "$GCC" = yes; then
10463 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10466 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10467 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10469 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10470 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10565 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10567 if test -n "$hardcode_libdir_flag_spec" ||
10568 test -n "$runpath_var" ||
10569 test "X$hardcode_automatic" = "Xyes" ; then
10571 # We can hardcode non-existent directories.
10572 if test "$hardcode_direct" != no &&
10573 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10574 # have to relink, otherwise we might link with an installed library
10575 # when we should be linking with a yet-to-be-installed one
10576 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10577 test "$hardcode_minus_L" != no; then
10578 # Linking always hardcodes the temporary library directory.
10579 hardcode_action=relink
10581 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10582 hardcode_action=immediate
10585 # We cannot hardcode anything, or else we can only hardcode existing
10587 hardcode_action=unsupported
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10590 $as_echo "$hardcode_action" >&6; }
10592 if test "$hardcode_action" = relink ||
10593 test "$inherit_rpath" = yes; then
10594 # Fast installation is not supported
10595 enable_fast_install=no
10596 elif test "$shlibpath_overrides_runpath" = yes ||
10597 test "$enable_shared" = no; then
10598 # Fast installation is not necessary
10599 enable_fast_install=needless
10607 if test "x$enable_dlopen" != xyes; then
10608 enable_dlopen=unknown
10609 enable_dlopen_self=unknown
10610 enable_dlopen_self_static=unknown
10617 lt_cv_dlopen="load_add_on"
10619 lt_cv_dlopen_self=yes
10622 mingw* | pw32* | cegcc*)
10623 lt_cv_dlopen="LoadLibrary"
10628 lt_cv_dlopen="dlopen"
10633 # if libdl is installed we need to link against it
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10635 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10636 if ${ac_cv_lib_dl_dlopen+:} false; then :
10637 $as_echo_n "(cached) " >&6
10639 ac_check_lib_save_LIBS=$LIBS
10641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h. */
10644 /* Override any GCC internal prototype to avoid an error.
10645 Use char because int might match the return type of a GCC
10646 builtin and then its argument prototype would still apply. */
10659 if ac_fn_c_try_link "$LINENO"; then :
10660 ac_cv_lib_dl_dlopen=yes
10662 ac_cv_lib_dl_dlopen=no
10664 rm -f core conftest.err conftest.$ac_objext \
10665 conftest$ac_exeext conftest.$ac_ext
10666 LIBS=$ac_check_lib_save_LIBS
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10669 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10670 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10671 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10674 lt_cv_dlopen="dyld"
10676 lt_cv_dlopen_self=yes
10683 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10684 if test "x$ac_cv_func_shl_load" = xyes; then :
10685 lt_cv_dlopen="shl_load"
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10688 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10689 if ${ac_cv_lib_dld_shl_load+:} false; then :
10690 $as_echo_n "(cached) " >&6
10692 ac_check_lib_save_LIBS=$LIBS
10694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10695 /* end confdefs.h. */
10697 /* Override any GCC internal prototype to avoid an error.
10698 Use char because int might match the return type of a GCC
10699 builtin and then its argument prototype would still apply. */
10707 return shl_load ();
10712 if ac_fn_c_try_link "$LINENO"; then :
10713 ac_cv_lib_dld_shl_load=yes
10715 ac_cv_lib_dld_shl_load=no
10717 rm -f core conftest.err conftest.$ac_objext \
10718 conftest$ac_exeext conftest.$ac_ext
10719 LIBS=$ac_check_lib_save_LIBS
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10722 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10723 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10724 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10726 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10727 if test "x$ac_cv_func_dlopen" = xyes; then :
10728 lt_cv_dlopen="dlopen"
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10731 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10732 if ${ac_cv_lib_dl_dlopen+:} false; then :
10733 $as_echo_n "(cached) " >&6
10735 ac_check_lib_save_LIBS=$LIBS
10737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h. */
10740 /* Override any GCC internal prototype to avoid an error.
10741 Use char because int might match the return type of a GCC
10742 builtin and then its argument prototype would still apply. */
10755 if ac_fn_c_try_link "$LINENO"; then :
10756 ac_cv_lib_dl_dlopen=yes
10758 ac_cv_lib_dl_dlopen=no
10760 rm -f core conftest.err conftest.$ac_objext \
10761 conftest$ac_exeext conftest.$ac_ext
10762 LIBS=$ac_check_lib_save_LIBS
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10765 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10766 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10767 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10770 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10771 if ${ac_cv_lib_svld_dlopen+:} false; then :
10772 $as_echo_n "(cached) " >&6
10774 ac_check_lib_save_LIBS=$LIBS
10775 LIBS="-lsvld $LIBS"
10776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10779 /* Override any GCC internal prototype to avoid an error.
10780 Use char because int might match the return type of a GCC
10781 builtin and then its argument prototype would still apply. */
10794 if ac_fn_c_try_link "$LINENO"; then :
10795 ac_cv_lib_svld_dlopen=yes
10797 ac_cv_lib_svld_dlopen=no
10799 rm -f core conftest.err conftest.$ac_objext \
10800 conftest$ac_exeext conftest.$ac_ext
10801 LIBS=$ac_check_lib_save_LIBS
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10804 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10805 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10806 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10809 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10810 if ${ac_cv_lib_dld_dld_link+:} false; then :
10811 $as_echo_n "(cached) " >&6
10813 ac_check_lib_save_LIBS=$LIBS
10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h. */
10818 /* Override any GCC internal prototype to avoid an error.
10819 Use char because int might match the return type of a GCC
10820 builtin and then its argument prototype would still apply. */
10828 return dld_link ();
10833 if ac_fn_c_try_link "$LINENO"; then :
10834 ac_cv_lib_dld_dld_link=yes
10836 ac_cv_lib_dld_dld_link=no
10838 rm -f core conftest.err conftest.$ac_objext \
10839 conftest$ac_exeext conftest.$ac_ext
10840 LIBS=$ac_check_lib_save_LIBS
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10843 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10844 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10845 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10866 if test "x$lt_cv_dlopen" != xno; then
10872 case $lt_cv_dlopen in
10874 save_CPPFLAGS="$CPPFLAGS"
10875 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10877 save_LDFLAGS="$LDFLAGS"
10878 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10881 LIBS="$lt_cv_dlopen_libs $LIBS"
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10884 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10885 if ${lt_cv_dlopen_self+:} false; then :
10886 $as_echo_n "(cached) " >&6
10888 if test "$cross_compiling" = yes; then :
10889 lt_cv_dlopen_self=cross
10891 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10892 lt_status=$lt_dlunknown
10893 cat > conftest.$ac_ext <<_LT_EOF
10894 #line $LINENO "configure"
10895 #include "confdefs.h"
10904 # define LT_DLGLOBAL RTLD_GLOBAL
10907 # define LT_DLGLOBAL DL_GLOBAL
10909 # define LT_DLGLOBAL 0
10913 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10914 find out it does not work in some platform. */
10915 #ifndef LT_DLLAZY_OR_NOW
10917 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10920 # define LT_DLLAZY_OR_NOW DL_LAZY
10923 # define LT_DLLAZY_OR_NOW RTLD_NOW
10926 # define LT_DLLAZY_OR_NOW DL_NOW
10928 # define LT_DLLAZY_OR_NOW 0
10935 /* When -fvisbility=hidden is used, assume the code has been annotated
10936 correspondingly for the symbols needed. */
10937 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10938 int fnord () __attribute__((visibility("default")));
10941 int fnord () { return 42; }
10944 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10945 int status = $lt_dlunknown;
10949 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10952 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10953 else puts (dlerror ());
10955 /* dlclose (self); */
10963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10964 (eval $ac_link) 2>&5
10966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10967 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10968 (./conftest; exit; ) >&5 2>/dev/null
10970 case x$lt_status in
10971 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10972 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10973 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10976 # compilation failed
10977 lt_cv_dlopen_self=no
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10985 $as_echo "$lt_cv_dlopen_self" >&6; }
10987 if test "x$lt_cv_dlopen_self" = xyes; then
10988 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10990 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10991 if ${lt_cv_dlopen_self_static+:} false; then :
10992 $as_echo_n "(cached) " >&6
10994 if test "$cross_compiling" = yes; then :
10995 lt_cv_dlopen_self_static=cross
10997 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10998 lt_status=$lt_dlunknown
10999 cat > conftest.$ac_ext <<_LT_EOF
11000 #line $LINENO "configure"
11001 #include "confdefs.h"
11010 # define LT_DLGLOBAL RTLD_GLOBAL
11013 # define LT_DLGLOBAL DL_GLOBAL
11015 # define LT_DLGLOBAL 0
11019 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11020 find out it does not work in some platform. */
11021 #ifndef LT_DLLAZY_OR_NOW
11023 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11026 # define LT_DLLAZY_OR_NOW DL_LAZY
11029 # define LT_DLLAZY_OR_NOW RTLD_NOW
11032 # define LT_DLLAZY_OR_NOW DL_NOW
11034 # define LT_DLLAZY_OR_NOW 0
11041 /* When -fvisbility=hidden is used, assume the code has been annotated
11042 correspondingly for the symbols needed. */
11043 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11044 int fnord () __attribute__((visibility("default")));
11047 int fnord () { return 42; }
11050 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11051 int status = $lt_dlunknown;
11055 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11058 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11059 else puts (dlerror ());
11061 /* dlclose (self); */
11069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11070 (eval $ac_link) 2>&5
11072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11073 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11074 (./conftest; exit; ) >&5 2>/dev/null
11076 case x$lt_status in
11077 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11078 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11079 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11082 # compilation failed
11083 lt_cv_dlopen_self_static=no
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11091 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11094 CPPFLAGS="$save_CPPFLAGS"
11095 LDFLAGS="$save_LDFLAGS"
11100 case $lt_cv_dlopen_self in
11101 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11102 *) enable_dlopen_self=unknown ;;
11105 case $lt_cv_dlopen_self_static in
11106 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11107 *) enable_dlopen_self_static=unknown ;;
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11130 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11131 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11132 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11133 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11135 $as_echo "yes" >&6; }
11137 # FIXME - insert some real tests, host_os isn't really good enough
11140 if test -n "$STRIP" ; then
11141 striplib="$STRIP -x"
11142 old_striplib="$STRIP -S"
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11144 $as_echo "yes" >&6; }
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11147 $as_echo "no" >&6; }
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11152 $as_echo "no" >&6; }
11168 # Report which library types will actually be built
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11170 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11172 $as_echo "$can_build_shared" >&6; }
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11175 $as_echo_n "checking whether to build shared libraries... " >&6; }
11176 test "$can_build_shared" = "no" && enable_shared=no
11178 # On AIX, shared libraries and static libraries use the same namespace, and
11179 # are all built from PIC.
11182 test "$enable_shared" = yes && enable_static=no
11183 if test -n "$RANLIB"; then
11184 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11185 postinstall_cmds='$RANLIB $lib'
11190 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11191 test "$enable_shared" = yes && enable_static=no
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11196 $as_echo "$enable_shared" >&6; }
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11199 $as_echo_n "checking whether to build static libraries... " >&6; }
11200 # Make sure either enable_shared or enable_static is yes.
11201 test "$enable_shared" = yes || enable_static=yes
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11203 $as_echo "$enable_static" >&6; }
11210 ac_cpp='$CPP $CPPFLAGS'
11211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11229 ac_config_commands="$ac_config_commands libtool"
11234 # Only expand once:
11238 # Require X.Org macros 1.8 or later for AC_PROG_INSTALL
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11251 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11252 if ${ac_cv_prog_cc_c99+:} false; then :
11253 $as_echo_n "(cached) " >&6
11255 ac_cv_prog_cc_c99=no
11257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11258 /* end confdefs.h. */
11259 #include <stdarg.h>
11260 #include <stdbool.h>
11261 #include <stdlib.h>
11265 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11266 #define debug(...) fprintf (stderr, __VA_ARGS__)
11267 #define showlist(...) puts (#__VA_ARGS__)
11268 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11270 test_varargs_macros (void)
11275 debug ("X = %d\n", x);
11276 showlist (The first, second, and third items.);
11277 report (x>y, "x is %d but y is %d", x, y);
11280 // Check long long types.
11281 #define BIG64 18446744073709551615ull
11282 #define BIG32 4294967295ul
11283 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11285 your preprocessor is broken;
11289 your preprocessor is broken;
11291 static long long int bignum = -9223372036854775807LL;
11292 static unsigned long long int ubignum = BIG64;
11294 struct incomplete_array
11300 struct named_init {
11302 const wchar_t *name;
11306 typedef const char *ccp;
11309 test_restrict (ccp restrict text)
11311 // See if C++-style comments work.
11312 // Iterate through items via the restricted pointer.
11313 // Also check for declarations in for loops.
11314 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11319 // Check varargs and va_copy.
11321 test_varargs (const char *format, ...)
11324 va_start (args, format);
11326 va_copy (args_copy, args);
11336 case 's': // string
11337 str = va_arg (args_copy, const char *);
11340 number = va_arg (args_copy, int);
11343 fnumber = va_arg (args_copy, double);
11349 va_end (args_copy);
11358 _Bool success = false;
11361 if (test_restrict ("String literal") == 0)
11363 char *restrict newvar = "Another string";
11366 test_varargs ("s, d' f .", "string", 65, 34.234);
11367 test_varargs_macros ();
11369 // Check flexible array members.
11370 struct incomplete_array *ia =
11371 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11373 for (int i = 0; i < ia->datasize; ++i)
11374 ia->data[i] = i * 1.234;
11376 // Check named initializers.
11377 struct named_init ni = {
11379 .name = L"Test wide string",
11380 .average = 543.34343,
11385 int dynamic_array[ni.number];
11386 dynamic_array[ni.number - 1] = 543;
11388 // work around unused variable warnings
11389 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11390 || dynamic_array[ni.number - 1] != 543);
11396 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11398 CC="$ac_save_CC $ac_arg"
11399 if ac_fn_c_try_compile "$LINENO"; then :
11400 ac_cv_prog_cc_c99=$ac_arg
11402 rm -f core conftest.err conftest.$ac_objext
11403 test "x$ac_cv_prog_cc_c99" != "xno" && break
11405 rm -f conftest.$ac_ext
11410 case "x$ac_cv_prog_cc_c99" in
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11413 $as_echo "none needed" >&6; } ;;
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11416 $as_echo "unsupported" >&6; } ;;
11418 CC="$CC $ac_cv_prog_cc_c99"
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11420 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11422 if test "x$ac_cv_prog_cc_c99" != xno; then :
11431 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11432 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11438 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11439 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11445 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11446 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11455 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11456 if test -n "$ac_tool_prefix"; then
11457 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11458 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11460 $as_echo_n "checking for $ac_word... " >&6; }
11461 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11462 $as_echo_n "(cached) " >&6
11464 case $PKG_CONFIG in
11466 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11470 for as_dir in $PATH
11473 test -z "$as_dir" && as_dir=.
11474 for ac_exec_ext in '' $ac_executable_extensions; do
11475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11476 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11487 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11488 if test -n "$PKG_CONFIG"; then
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11490 $as_echo "$PKG_CONFIG" >&6; }
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11493 $as_echo "no" >&6; }
11498 if test -z "$ac_cv_path_PKG_CONFIG"; then
11499 ac_pt_PKG_CONFIG=$PKG_CONFIG
11500 # Extract the first word of "pkg-config", so it can be a program name with args.
11501 set dummy pkg-config; ac_word=$2
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11503 $as_echo_n "checking for $ac_word... " >&6; }
11504 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11505 $as_echo_n "(cached) " >&6
11507 case $ac_pt_PKG_CONFIG in
11509 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513 for as_dir in $PATH
11516 test -z "$as_dir" && as_dir=.
11517 for ac_exec_ext in '' $ac_executable_extensions; do
11518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11519 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11530 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11531 if test -n "$ac_pt_PKG_CONFIG"; then
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11533 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536 $as_echo "no" >&6; }
11539 if test "x$ac_pt_PKG_CONFIG" = x; then
11542 case $cross_compiling:$ac_tool_warned in
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11546 ac_tool_warned=yes ;;
11548 PKG_CONFIG=$ac_pt_PKG_CONFIG
11551 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11555 if test -n "$PKG_CONFIG"; then
11556 _pkg_min_version=0.9.0
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11558 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11559 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11561 $as_echo "yes" >&6; }
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11564 $as_echo "no" >&6; }
11574 # Check whether --enable-selective-werror was given.
11575 if test "${enable_selective_werror+set}" = set; then :
11576 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11578 SELECTIVE_WERROR=yes
11585 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11586 if test "x$SUNCC" = "xyes"; then
11592 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11604 xorg_testset_save_CFLAGS="$CFLAGS"
11606 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11609 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11610 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11611 $as_echo_n "(cached) " >&6
11613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11614 /* end confdefs.h. */
11617 if ac_fn_c_try_compile "$LINENO"; then :
11618 xorg_cv_compiler_flag_unknown_warning_option=yes
11620 xorg_cv_compiler_flag_unknown_warning_option=no
11622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11625 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11626 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11627 CFLAGS="$xorg_testset_save_CFLAGS"
11630 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11631 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11636 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11637 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11638 $as_echo_n "(cached) " >&6
11640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11641 /* end confdefs.h. */
11644 if ac_fn_c_try_compile "$LINENO"; then :
11645 xorg_cv_compiler_flag_unused_command_line_argument=yes
11647 xorg_cv_compiler_flag_unused_command_line_argument=no
11649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11652 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11653 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11654 CFLAGS="$xorg_testset_save_CFLAGS"
11659 if test $found = "no" ; then
11660 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11664 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11668 CFLAGS="$CFLAGS -Wall"
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11671 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11672 cacheid=`$as_echo xorg_cv_cc_flag_-Wall`
11673 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11674 $as_echo_n "(cached) " >&6
11676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11677 /* end confdefs.h. */
11687 if ac_fn_c_try_link "$LINENO"; then :
11688 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11690 eval `$as_echo "$cacheid" | $as_tr_sh`=no
11692 rm -f core conftest.err conftest.$ac_objext \
11693 conftest$ac_exeext conftest.$ac_ext
11697 CFLAGS="$xorg_testset_save_CFLAGS"
11699 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11701 $as_echo "$supported" >&6; }
11702 if test "$supported" = "yes" ; then
11703 BASE_CFLAGS="$BASE_CFLAGS -Wall"
11720 xorg_testset_save_CFLAGS="$CFLAGS"
11722 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11725 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11726 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11727 $as_echo_n "(cached) " >&6
11729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11730 /* end confdefs.h. */
11733 if ac_fn_c_try_compile "$LINENO"; then :
11734 xorg_cv_compiler_flag_unknown_warning_option=yes
11736 xorg_cv_compiler_flag_unknown_warning_option=no
11738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11741 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11742 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11743 CFLAGS="$xorg_testset_save_CFLAGS"
11746 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11747 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11752 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11753 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11754 $as_echo_n "(cached) " >&6
11756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11757 /* end confdefs.h. */
11760 if ac_fn_c_try_compile "$LINENO"; then :
11761 xorg_cv_compiler_flag_unused_command_line_argument=yes
11763 xorg_cv_compiler_flag_unused_command_line_argument=no
11765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11768 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11769 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11770 CFLAGS="$xorg_testset_save_CFLAGS"
11775 if test $found = "no" ; then
11776 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11780 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11784 CFLAGS="$CFLAGS -Wpointer-arith"
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
11787 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
11788 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith`
11789 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11790 $as_echo_n "(cached) " >&6
11792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793 /* end confdefs.h. */
11803 if ac_fn_c_try_link "$LINENO"; then :
11804 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11806 eval `$as_echo "$cacheid" | $as_tr_sh`=no
11808 rm -f core conftest.err conftest.$ac_objext \
11809 conftest$ac_exeext conftest.$ac_ext
11813 CFLAGS="$xorg_testset_save_CFLAGS"
11815 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11817 $as_echo "$supported" >&6; }
11818 if test "$supported" = "yes" ; then
11819 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
11836 xorg_testset_save_CFLAGS="$CFLAGS"
11838 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11841 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11842 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11843 $as_echo_n "(cached) " >&6
11845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11846 /* end confdefs.h. */
11849 if ac_fn_c_try_compile "$LINENO"; then :
11850 xorg_cv_compiler_flag_unknown_warning_option=yes
11852 xorg_cv_compiler_flag_unknown_warning_option=no
11854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11857 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11858 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11859 CFLAGS="$xorg_testset_save_CFLAGS"
11862 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11863 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11868 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11869 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11870 $as_echo_n "(cached) " >&6
11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873 /* end confdefs.h. */
11876 if ac_fn_c_try_compile "$LINENO"; then :
11877 xorg_cv_compiler_flag_unused_command_line_argument=yes
11879 xorg_cv_compiler_flag_unused_command_line_argument=no
11881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11884 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11885 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11886 CFLAGS="$xorg_testset_save_CFLAGS"
11891 if test $found = "no" ; then
11892 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11896 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11900 CFLAGS="$CFLAGS -Wmissing-declarations"
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
11903 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
11904 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations`
11905 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11906 $as_echo_n "(cached) " >&6
11908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11909 /* end confdefs.h. */
11919 if ac_fn_c_try_link "$LINENO"; then :
11920 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11922 eval `$as_echo "$cacheid" | $as_tr_sh`=no
11924 rm -f core conftest.err conftest.$ac_objext \
11925 conftest$ac_exeext conftest.$ac_ext
11929 CFLAGS="$xorg_testset_save_CFLAGS"
11931 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11933 $as_echo "$supported" >&6; }
11934 if test "$supported" = "yes" ; then
11935 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
11952 xorg_testset_save_CFLAGS="$CFLAGS"
11954 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11957 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11958 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11959 $as_echo_n "(cached) " >&6
11961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962 /* end confdefs.h. */
11965 if ac_fn_c_try_compile "$LINENO"; then :
11966 xorg_cv_compiler_flag_unknown_warning_option=yes
11968 xorg_cv_compiler_flag_unknown_warning_option=no
11970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11973 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11974 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11975 CFLAGS="$xorg_testset_save_CFLAGS"
11978 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11979 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11984 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11985 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11986 $as_echo_n "(cached) " >&6
11988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11989 /* end confdefs.h. */
11992 if ac_fn_c_try_compile "$LINENO"; then :
11993 xorg_cv_compiler_flag_unused_command_line_argument=yes
11995 xorg_cv_compiler_flag_unused_command_line_argument=no
11997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12000 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12001 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12002 CFLAGS="$xorg_testset_save_CFLAGS"
12007 if test $found = "no" ; then
12008 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12012 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12016 CFLAGS="$CFLAGS -Wformat=2"
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12019 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12020 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2`
12021 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12022 $as_echo_n "(cached) " >&6
12024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025 /* end confdefs.h. */
12035 if ac_fn_c_try_link "$LINENO"; then :
12036 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12038 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12040 rm -f core conftest.err conftest.$ac_objext \
12041 conftest$ac_exeext conftest.$ac_ext
12045 CFLAGS="$xorg_testset_save_CFLAGS"
12047 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12049 $as_echo "$supported" >&6; }
12050 if test "$supported" = "yes" ; then
12051 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12056 if test $found = "no" ; then
12057 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12061 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12065 CFLAGS="$CFLAGS -Wformat"
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12068 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12069 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat`
12070 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12071 $as_echo_n "(cached) " >&6
12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h. */
12084 if ac_fn_c_try_link "$LINENO"; then :
12085 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12087 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12089 rm -f core conftest.err conftest.$ac_objext \
12090 conftest$ac_exeext conftest.$ac_ext
12094 CFLAGS="$xorg_testset_save_CFLAGS"
12096 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12098 $as_echo "$supported" >&6; }
12099 if test "$supported" = "yes" ; then
12100 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12119 xorg_testset_save_CFLAGS="$CFLAGS"
12121 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12124 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12125 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12126 $as_echo_n "(cached) " >&6
12128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129 /* end confdefs.h. */
12132 if ac_fn_c_try_compile "$LINENO"; then :
12133 xorg_cv_compiler_flag_unknown_warning_option=yes
12135 xorg_cv_compiler_flag_unknown_warning_option=no
12137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12140 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12141 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12142 CFLAGS="$xorg_testset_save_CFLAGS"
12145 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12146 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12151 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12152 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12153 $as_echo_n "(cached) " >&6
12155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12156 /* end confdefs.h. */
12159 if ac_fn_c_try_compile "$LINENO"; then :
12160 xorg_cv_compiler_flag_unused_command_line_argument=yes
12162 xorg_cv_compiler_flag_unused_command_line_argument=no
12164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12167 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12168 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12169 CFLAGS="$xorg_testset_save_CFLAGS"
12174 if test $found = "no" ; then
12175 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12179 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12183 CFLAGS="$CFLAGS -Wstrict-prototypes"
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12186 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12187 cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes`
12188 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12189 $as_echo_n "(cached) " >&6
12191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12192 /* end confdefs.h. */
12202 if ac_fn_c_try_link "$LINENO"; then :
12203 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12205 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12207 rm -f core conftest.err conftest.$ac_objext \
12208 conftest$ac_exeext conftest.$ac_ext
12212 CFLAGS="$xorg_testset_save_CFLAGS"
12214 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12216 $as_echo "$supported" >&6; }
12217 if test "$supported" = "yes" ; then
12218 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12235 xorg_testset_save_CFLAGS="$CFLAGS"
12237 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12240 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12241 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12242 $as_echo_n "(cached) " >&6
12244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245 /* end confdefs.h. */
12248 if ac_fn_c_try_compile "$LINENO"; then :
12249 xorg_cv_compiler_flag_unknown_warning_option=yes
12251 xorg_cv_compiler_flag_unknown_warning_option=no
12253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12256 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12257 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12258 CFLAGS="$xorg_testset_save_CFLAGS"
12261 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12262 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12267 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12268 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12269 $as_echo_n "(cached) " >&6
12271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272 /* end confdefs.h. */
12275 if ac_fn_c_try_compile "$LINENO"; then :
12276 xorg_cv_compiler_flag_unused_command_line_argument=yes
12278 xorg_cv_compiler_flag_unused_command_line_argument=no
12280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12283 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12284 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12285 CFLAGS="$xorg_testset_save_CFLAGS"
12290 if test $found = "no" ; then
12291 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12295 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12299 CFLAGS="$CFLAGS -Wmissing-prototypes"
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12302 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12303 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes`
12304 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12305 $as_echo_n "(cached) " >&6
12307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12308 /* end confdefs.h. */
12318 if ac_fn_c_try_link "$LINENO"; then :
12319 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12321 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12323 rm -f core conftest.err conftest.$ac_objext \
12324 conftest$ac_exeext conftest.$ac_ext
12328 CFLAGS="$xorg_testset_save_CFLAGS"
12330 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12332 $as_echo "$supported" >&6; }
12333 if test "$supported" = "yes" ; then
12334 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12351 xorg_testset_save_CFLAGS="$CFLAGS"
12353 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12356 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12357 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12358 $as_echo_n "(cached) " >&6
12360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12361 /* end confdefs.h. */
12364 if ac_fn_c_try_compile "$LINENO"; then :
12365 xorg_cv_compiler_flag_unknown_warning_option=yes
12367 xorg_cv_compiler_flag_unknown_warning_option=no
12369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12372 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12373 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12374 CFLAGS="$xorg_testset_save_CFLAGS"
12377 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12378 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12383 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12384 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12385 $as_echo_n "(cached) " >&6
12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388 /* end confdefs.h. */
12391 if ac_fn_c_try_compile "$LINENO"; then :
12392 xorg_cv_compiler_flag_unused_command_line_argument=yes
12394 xorg_cv_compiler_flag_unused_command_line_argument=no
12396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12399 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12400 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12401 CFLAGS="$xorg_testset_save_CFLAGS"
12406 if test $found = "no" ; then
12407 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12411 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12415 CFLAGS="$CFLAGS -Wnested-externs"
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12418 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12419 cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs`
12420 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12421 $as_echo_n "(cached) " >&6
12423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12424 /* end confdefs.h. */
12434 if ac_fn_c_try_link "$LINENO"; then :
12435 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12437 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12439 rm -f core conftest.err conftest.$ac_objext \
12440 conftest$ac_exeext conftest.$ac_ext
12444 CFLAGS="$xorg_testset_save_CFLAGS"
12446 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12448 $as_echo "$supported" >&6; }
12449 if test "$supported" = "yes" ; then
12450 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12467 xorg_testset_save_CFLAGS="$CFLAGS"
12469 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12472 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12473 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12474 $as_echo_n "(cached) " >&6
12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477 /* end confdefs.h. */
12480 if ac_fn_c_try_compile "$LINENO"; then :
12481 xorg_cv_compiler_flag_unknown_warning_option=yes
12483 xorg_cv_compiler_flag_unknown_warning_option=no
12485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12488 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12489 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12490 CFLAGS="$xorg_testset_save_CFLAGS"
12493 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12494 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12499 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12500 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12501 $as_echo_n "(cached) " >&6
12503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12504 /* end confdefs.h. */
12507 if ac_fn_c_try_compile "$LINENO"; then :
12508 xorg_cv_compiler_flag_unused_command_line_argument=yes
12510 xorg_cv_compiler_flag_unused_command_line_argument=no
12512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12515 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12516 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12517 CFLAGS="$xorg_testset_save_CFLAGS"
12522 if test $found = "no" ; then
12523 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12527 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12531 CFLAGS="$CFLAGS -Wbad-function-cast"
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12534 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12535 cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast`
12536 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12537 $as_echo_n "(cached) " >&6
12539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540 /* end confdefs.h. */
12550 if ac_fn_c_try_link "$LINENO"; then :
12551 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12553 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12555 rm -f core conftest.err conftest.$ac_objext \
12556 conftest$ac_exeext conftest.$ac_ext
12560 CFLAGS="$xorg_testset_save_CFLAGS"
12562 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12564 $as_echo "$supported" >&6; }
12565 if test "$supported" = "yes" ; then
12566 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12583 xorg_testset_save_CFLAGS="$CFLAGS"
12585 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12588 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12589 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12590 $as_echo_n "(cached) " >&6
12592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12593 /* end confdefs.h. */
12596 if ac_fn_c_try_compile "$LINENO"; then :
12597 xorg_cv_compiler_flag_unknown_warning_option=yes
12599 xorg_cv_compiler_flag_unknown_warning_option=no
12601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12604 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12605 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12606 CFLAGS="$xorg_testset_save_CFLAGS"
12609 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12610 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12615 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12616 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12617 $as_echo_n "(cached) " >&6
12619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12623 if ac_fn_c_try_compile "$LINENO"; then :
12624 xorg_cv_compiler_flag_unused_command_line_argument=yes
12626 xorg_cv_compiler_flag_unused_command_line_argument=no
12628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12631 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12632 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12633 CFLAGS="$xorg_testset_save_CFLAGS"
12638 if test $found = "no" ; then
12639 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12643 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12647 CFLAGS="$CFLAGS -Wold-style-definition"
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12650 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12651 cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition`
12652 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12653 $as_echo_n "(cached) " >&6
12655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12656 /* end confdefs.h. */
12666 if ac_fn_c_try_link "$LINENO"; then :
12667 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12669 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12671 rm -f core conftest.err conftest.$ac_objext \
12672 conftest$ac_exeext conftest.$ac_ext
12676 CFLAGS="$xorg_testset_save_CFLAGS"
12678 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12680 $as_echo "$supported" >&6; }
12681 if test "$supported" = "yes" ; then
12682 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12699 xorg_testset_save_CFLAGS="$CFLAGS"
12701 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12704 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12705 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12706 $as_echo_n "(cached) " >&6
12708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12709 /* end confdefs.h. */
12712 if ac_fn_c_try_compile "$LINENO"; then :
12713 xorg_cv_compiler_flag_unknown_warning_option=yes
12715 xorg_cv_compiler_flag_unknown_warning_option=no
12717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12720 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12721 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12722 CFLAGS="$xorg_testset_save_CFLAGS"
12725 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12726 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12731 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12732 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12733 $as_echo_n "(cached) " >&6
12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12739 if ac_fn_c_try_compile "$LINENO"; then :
12740 xorg_cv_compiler_flag_unused_command_line_argument=yes
12742 xorg_cv_compiler_flag_unused_command_line_argument=no
12744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12747 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12748 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12749 CFLAGS="$xorg_testset_save_CFLAGS"
12754 if test $found = "no" ; then
12755 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12759 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12763 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12766 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12767 cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement`
12768 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12769 $as_echo_n "(cached) " >&6
12771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12772 /* end confdefs.h. */
12782 if ac_fn_c_try_link "$LINENO"; then :
12783 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12785 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12787 rm -f core conftest.err conftest.$ac_objext \
12788 conftest$ac_exeext conftest.$ac_ext
12792 CFLAGS="$xorg_testset_save_CFLAGS"
12794 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12796 $as_echo "$supported" >&6; }
12797 if test "$supported" = "yes" ; then
12798 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12807 # This chunk adds additional warnings that could catch undesired effects.
12819 xorg_testset_save_CFLAGS="$CFLAGS"
12821 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12824 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12825 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12826 $as_echo_n "(cached) " >&6
12828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12829 /* end confdefs.h. */
12832 if ac_fn_c_try_compile "$LINENO"; then :
12833 xorg_cv_compiler_flag_unknown_warning_option=yes
12835 xorg_cv_compiler_flag_unknown_warning_option=no
12837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12840 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12841 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12842 CFLAGS="$xorg_testset_save_CFLAGS"
12845 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12846 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12851 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12852 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12853 $as_echo_n "(cached) " >&6
12855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12856 /* end confdefs.h. */
12859 if ac_fn_c_try_compile "$LINENO"; then :
12860 xorg_cv_compiler_flag_unused_command_line_argument=yes
12862 xorg_cv_compiler_flag_unused_command_line_argument=no
12864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12867 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12868 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12869 CFLAGS="$xorg_testset_save_CFLAGS"
12874 if test $found = "no" ; then
12875 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12879 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12883 CFLAGS="$CFLAGS -Wunused"
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
12886 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
12887 cacheid=`$as_echo xorg_cv_cc_flag_-Wunused`
12888 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12889 $as_echo_n "(cached) " >&6
12891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12892 /* end confdefs.h. */
12902 if ac_fn_c_try_link "$LINENO"; then :
12903 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12905 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12907 rm -f core conftest.err conftest.$ac_objext \
12908 conftest$ac_exeext conftest.$ac_ext
12912 CFLAGS="$xorg_testset_save_CFLAGS"
12914 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12916 $as_echo "$supported" >&6; }
12917 if test "$supported" = "yes" ; then
12918 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
12935 xorg_testset_save_CFLAGS="$CFLAGS"
12937 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12940 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12941 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12942 $as_echo_n "(cached) " >&6
12944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12945 /* end confdefs.h. */
12948 if ac_fn_c_try_compile "$LINENO"; then :
12949 xorg_cv_compiler_flag_unknown_warning_option=yes
12951 xorg_cv_compiler_flag_unknown_warning_option=no
12953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12956 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12957 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12958 CFLAGS="$xorg_testset_save_CFLAGS"
12961 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12962 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12967 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12968 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12969 $as_echo_n "(cached) " >&6
12971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12972 /* end confdefs.h. */
12975 if ac_fn_c_try_compile "$LINENO"; then :
12976 xorg_cv_compiler_flag_unused_command_line_argument=yes
12978 xorg_cv_compiler_flag_unused_command_line_argument=no
12980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12983 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12984 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12985 CFLAGS="$xorg_testset_save_CFLAGS"
12990 if test $found = "no" ; then
12991 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12995 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12999 CFLAGS="$CFLAGS -Wuninitialized"
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13002 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13003 cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized`
13004 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13005 $as_echo_n "(cached) " >&6
13007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13008 /* end confdefs.h. */
13018 if ac_fn_c_try_link "$LINENO"; then :
13019 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13021 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13023 rm -f core conftest.err conftest.$ac_objext \
13024 conftest$ac_exeext conftest.$ac_ext
13028 CFLAGS="$xorg_testset_save_CFLAGS"
13030 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13032 $as_echo "$supported" >&6; }
13033 if test "$supported" = "yes" ; then
13034 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13051 xorg_testset_save_CFLAGS="$CFLAGS"
13053 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13056 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13057 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13058 $as_echo_n "(cached) " >&6
13060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13061 /* end confdefs.h. */
13064 if ac_fn_c_try_compile "$LINENO"; then :
13065 xorg_cv_compiler_flag_unknown_warning_option=yes
13067 xorg_cv_compiler_flag_unknown_warning_option=no
13069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13072 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13073 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13074 CFLAGS="$xorg_testset_save_CFLAGS"
13077 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13078 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13083 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13084 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13085 $as_echo_n "(cached) " >&6
13087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h. */
13091 if ac_fn_c_try_compile "$LINENO"; then :
13092 xorg_cv_compiler_flag_unused_command_line_argument=yes
13094 xorg_cv_compiler_flag_unused_command_line_argument=no
13096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13099 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13100 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13101 CFLAGS="$xorg_testset_save_CFLAGS"
13106 if test $found = "no" ; then
13107 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13111 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13115 CFLAGS="$CFLAGS -Wshadow"
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13118 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13119 cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow`
13120 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13121 $as_echo_n "(cached) " >&6
13123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13124 /* end confdefs.h. */
13134 if ac_fn_c_try_link "$LINENO"; then :
13135 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13137 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13139 rm -f core conftest.err conftest.$ac_objext \
13140 conftest$ac_exeext conftest.$ac_ext
13144 CFLAGS="$xorg_testset_save_CFLAGS"
13146 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13148 $as_echo "$supported" >&6; }
13149 if test "$supported" = "yes" ; then
13150 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13167 xorg_testset_save_CFLAGS="$CFLAGS"
13169 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13172 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13173 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13174 $as_echo_n "(cached) " >&6
13176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13177 /* end confdefs.h. */
13180 if ac_fn_c_try_compile "$LINENO"; then :
13181 xorg_cv_compiler_flag_unknown_warning_option=yes
13183 xorg_cv_compiler_flag_unknown_warning_option=no
13185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13188 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13189 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13190 CFLAGS="$xorg_testset_save_CFLAGS"
13193 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13194 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13199 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13200 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13201 $as_echo_n "(cached) " >&6
13203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13204 /* end confdefs.h. */
13207 if ac_fn_c_try_compile "$LINENO"; then :
13208 xorg_cv_compiler_flag_unused_command_line_argument=yes
13210 xorg_cv_compiler_flag_unused_command_line_argument=no
13212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13215 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13216 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13217 CFLAGS="$xorg_testset_save_CFLAGS"
13222 if test $found = "no" ; then
13223 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13227 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13231 CFLAGS="$CFLAGS -Wcast-qual"
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13234 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13235 cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual`
13236 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13237 $as_echo_n "(cached) " >&6
13239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13240 /* end confdefs.h. */
13250 if ac_fn_c_try_link "$LINENO"; then :
13251 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13253 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13255 rm -f core conftest.err conftest.$ac_objext \
13256 conftest$ac_exeext conftest.$ac_ext
13260 CFLAGS="$xorg_testset_save_CFLAGS"
13262 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13264 $as_echo "$supported" >&6; }
13265 if test "$supported" = "yes" ; then
13266 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13283 xorg_testset_save_CFLAGS="$CFLAGS"
13285 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13288 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13289 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13290 $as_echo_n "(cached) " >&6
13292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293 /* end confdefs.h. */
13296 if ac_fn_c_try_compile "$LINENO"; then :
13297 xorg_cv_compiler_flag_unknown_warning_option=yes
13299 xorg_cv_compiler_flag_unknown_warning_option=no
13301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13304 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13305 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13306 CFLAGS="$xorg_testset_save_CFLAGS"
13309 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13310 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13315 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13316 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13317 $as_echo_n "(cached) " >&6
13319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h. */
13323 if ac_fn_c_try_compile "$LINENO"; then :
13324 xorg_cv_compiler_flag_unused_command_line_argument=yes
13326 xorg_cv_compiler_flag_unused_command_line_argument=no
13328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13331 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13332 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13333 CFLAGS="$xorg_testset_save_CFLAGS"
13338 if test $found = "no" ; then
13339 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13343 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13347 CFLAGS="$CFLAGS -Wmissing-noreturn"
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13350 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13351 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn`
13352 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13353 $as_echo_n "(cached) " >&6
13355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356 /* end confdefs.h. */
13366 if ac_fn_c_try_link "$LINENO"; then :
13367 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13369 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13371 rm -f core conftest.err conftest.$ac_objext \
13372 conftest$ac_exeext conftest.$ac_ext
13376 CFLAGS="$xorg_testset_save_CFLAGS"
13378 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13380 $as_echo "$supported" >&6; }
13381 if test "$supported" = "yes" ; then
13382 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13399 xorg_testset_save_CFLAGS="$CFLAGS"
13401 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13404 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13405 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13406 $as_echo_n "(cached) " >&6
13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h. */
13412 if ac_fn_c_try_compile "$LINENO"; then :
13413 xorg_cv_compiler_flag_unknown_warning_option=yes
13415 xorg_cv_compiler_flag_unknown_warning_option=no
13417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13420 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13421 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13422 CFLAGS="$xorg_testset_save_CFLAGS"
13425 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13426 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13431 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13432 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13433 $as_echo_n "(cached) " >&6
13435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436 /* end confdefs.h. */
13439 if ac_fn_c_try_compile "$LINENO"; then :
13440 xorg_cv_compiler_flag_unused_command_line_argument=yes
13442 xorg_cv_compiler_flag_unused_command_line_argument=no
13444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13447 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13448 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13449 CFLAGS="$xorg_testset_save_CFLAGS"
13454 if test $found = "no" ; then
13455 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13459 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13463 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13466 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13467 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute`
13468 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13469 $as_echo_n "(cached) " >&6
13471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13472 /* end confdefs.h. */
13482 if ac_fn_c_try_link "$LINENO"; then :
13483 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13485 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13487 rm -f core conftest.err conftest.$ac_objext \
13488 conftest$ac_exeext conftest.$ac_ext
13492 CFLAGS="$xorg_testset_save_CFLAGS"
13494 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13496 $as_echo "$supported" >&6; }
13497 if test "$supported" = "yes" ; then
13498 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13515 xorg_testset_save_CFLAGS="$CFLAGS"
13517 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13520 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13521 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13522 $as_echo_n "(cached) " >&6
13524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13525 /* end confdefs.h. */
13528 if ac_fn_c_try_compile "$LINENO"; then :
13529 xorg_cv_compiler_flag_unknown_warning_option=yes
13531 xorg_cv_compiler_flag_unknown_warning_option=no
13533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13536 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13537 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13538 CFLAGS="$xorg_testset_save_CFLAGS"
13541 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13542 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13547 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13548 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13549 $as_echo_n "(cached) " >&6
13551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552 /* end confdefs.h. */
13555 if ac_fn_c_try_compile "$LINENO"; then :
13556 xorg_cv_compiler_flag_unused_command_line_argument=yes
13558 xorg_cv_compiler_flag_unused_command_line_argument=no
13560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13563 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13564 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13565 CFLAGS="$xorg_testset_save_CFLAGS"
13570 if test $found = "no" ; then
13571 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13575 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13579 CFLAGS="$CFLAGS -Wredundant-decls"
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13582 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13583 cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls`
13584 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13585 $as_echo_n "(cached) " >&6
13587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13588 /* end confdefs.h. */
13598 if ac_fn_c_try_link "$LINENO"; then :
13599 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13601 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13603 rm -f core conftest.err conftest.$ac_objext \
13604 conftest$ac_exeext conftest.$ac_ext
13608 CFLAGS="$xorg_testset_save_CFLAGS"
13610 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13612 $as_echo "$supported" >&6; }
13613 if test "$supported" = "yes" ; then
13614 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13621 # These are currently disabled because they are noisy. They will be enabled
13622 # in the future once the codebase is sufficiently modernized to silence
13623 # them. For now, I don't want them to drown out the other warnings.
13624 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13625 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13626 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13628 # Turn some warnings into errors, so we don't accidently get successful builds
13629 # when there are problems that should be fixed.
13631 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13643 xorg_testset_save_CFLAGS="$CFLAGS"
13645 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13648 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13649 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13650 $as_echo_n "(cached) " >&6
13652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13653 /* end confdefs.h. */
13656 if ac_fn_c_try_compile "$LINENO"; then :
13657 xorg_cv_compiler_flag_unknown_warning_option=yes
13659 xorg_cv_compiler_flag_unknown_warning_option=no
13661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13664 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13665 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13666 CFLAGS="$xorg_testset_save_CFLAGS"
13669 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13670 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13675 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13676 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13677 $as_echo_n "(cached) " >&6
13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680 /* end confdefs.h. */
13683 if ac_fn_c_try_compile "$LINENO"; then :
13684 xorg_cv_compiler_flag_unused_command_line_argument=yes
13686 xorg_cv_compiler_flag_unused_command_line_argument=no
13688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13691 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13692 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13693 CFLAGS="$xorg_testset_save_CFLAGS"
13698 if test $found = "no" ; then
13699 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13703 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13707 CFLAGS="$CFLAGS -Werror=implicit"
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13710 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13711 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit`
13712 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13713 $as_echo_n "(cached) " >&6
13715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13716 /* end confdefs.h. */
13726 if ac_fn_c_try_link "$LINENO"; then :
13727 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13729 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13731 rm -f core conftest.err conftest.$ac_objext \
13732 conftest$ac_exeext conftest.$ac_ext
13736 CFLAGS="$xorg_testset_save_CFLAGS"
13738 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13740 $as_echo "$supported" >&6; }
13741 if test "$supported" = "yes" ; then
13742 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13747 if test $found = "no" ; then
13748 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13752 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13756 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13759 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13760 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
13761 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13762 $as_echo_n "(cached) " >&6
13764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13765 /* end confdefs.h. */
13775 if ac_fn_c_try_link "$LINENO"; then :
13776 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13778 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13780 rm -f core conftest.err conftest.$ac_objext \
13781 conftest$ac_exeext conftest.$ac_ext
13785 CFLAGS="$xorg_testset_save_CFLAGS"
13787 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13789 $as_echo "$supported" >&6; }
13790 if test "$supported" = "yes" ; then
13791 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13808 xorg_testset_save_CFLAGS="$CFLAGS"
13810 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13813 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13814 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13815 $as_echo_n "(cached) " >&6
13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13818 /* end confdefs.h. */
13821 if ac_fn_c_try_compile "$LINENO"; then :
13822 xorg_cv_compiler_flag_unknown_warning_option=yes
13824 xorg_cv_compiler_flag_unknown_warning_option=no
13826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13829 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13830 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13831 CFLAGS="$xorg_testset_save_CFLAGS"
13834 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13835 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13840 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13841 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13842 $as_echo_n "(cached) " >&6
13844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845 /* end confdefs.h. */
13848 if ac_fn_c_try_compile "$LINENO"; then :
13849 xorg_cv_compiler_flag_unused_command_line_argument=yes
13851 xorg_cv_compiler_flag_unused_command_line_argument=no
13853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13856 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13857 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13858 CFLAGS="$xorg_testset_save_CFLAGS"
13863 if test $found = "no" ; then
13864 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13868 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13872 CFLAGS="$CFLAGS -Werror=nonnull"
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
13875 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
13876 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull`
13877 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13878 $as_echo_n "(cached) " >&6
13880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13881 /* end confdefs.h. */
13891 if ac_fn_c_try_link "$LINENO"; then :
13892 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13894 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13896 rm -f core conftest.err conftest.$ac_objext \
13897 conftest$ac_exeext conftest.$ac_ext
13901 CFLAGS="$xorg_testset_save_CFLAGS"
13903 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13905 $as_echo "$supported" >&6; }
13906 if test "$supported" = "yes" ; then
13907 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
13924 xorg_testset_save_CFLAGS="$CFLAGS"
13926 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13929 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13930 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13931 $as_echo_n "(cached) " >&6
13933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13934 /* end confdefs.h. */
13937 if ac_fn_c_try_compile "$LINENO"; then :
13938 xorg_cv_compiler_flag_unknown_warning_option=yes
13940 xorg_cv_compiler_flag_unknown_warning_option=no
13942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13945 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13946 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13947 CFLAGS="$xorg_testset_save_CFLAGS"
13950 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13951 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13956 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13957 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13958 $as_echo_n "(cached) " >&6
13960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13961 /* end confdefs.h. */
13964 if ac_fn_c_try_compile "$LINENO"; then :
13965 xorg_cv_compiler_flag_unused_command_line_argument=yes
13967 xorg_cv_compiler_flag_unused_command_line_argument=no
13969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13972 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13973 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13974 CFLAGS="$xorg_testset_save_CFLAGS"
13979 if test $found = "no" ; then
13980 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13984 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13988 CFLAGS="$CFLAGS -Werror=init-self"
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
13991 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
13992 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self`
13993 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13994 $as_echo_n "(cached) " >&6
13996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h. */
14007 if ac_fn_c_try_link "$LINENO"; then :
14008 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14010 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14012 rm -f core conftest.err conftest.$ac_objext \
14013 conftest$ac_exeext conftest.$ac_ext
14017 CFLAGS="$xorg_testset_save_CFLAGS"
14019 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14021 $as_echo "$supported" >&6; }
14022 if test "$supported" = "yes" ; then
14023 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14040 xorg_testset_save_CFLAGS="$CFLAGS"
14042 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14045 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14046 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14047 $as_echo_n "(cached) " >&6
14049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14050 /* end confdefs.h. */
14053 if ac_fn_c_try_compile "$LINENO"; then :
14054 xorg_cv_compiler_flag_unknown_warning_option=yes
14056 xorg_cv_compiler_flag_unknown_warning_option=no
14058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14061 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14062 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14063 CFLAGS="$xorg_testset_save_CFLAGS"
14066 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14067 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14072 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14073 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14074 $as_echo_n "(cached) " >&6
14076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14077 /* end confdefs.h. */
14080 if ac_fn_c_try_compile "$LINENO"; then :
14081 xorg_cv_compiler_flag_unused_command_line_argument=yes
14083 xorg_cv_compiler_flag_unused_command_line_argument=no
14085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14088 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14089 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14090 CFLAGS="$xorg_testset_save_CFLAGS"
14095 if test $found = "no" ; then
14096 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14100 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14104 CFLAGS="$CFLAGS -Werror=main"
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14107 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14108 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main`
14109 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14110 $as_echo_n "(cached) " >&6
14112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14113 /* end confdefs.h. */
14123 if ac_fn_c_try_link "$LINENO"; then :
14124 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14126 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14128 rm -f core conftest.err conftest.$ac_objext \
14129 conftest$ac_exeext conftest.$ac_ext
14133 CFLAGS="$xorg_testset_save_CFLAGS"
14135 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14137 $as_echo "$supported" >&6; }
14138 if test "$supported" = "yes" ; then
14139 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14156 xorg_testset_save_CFLAGS="$CFLAGS"
14158 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14161 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14162 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14163 $as_echo_n "(cached) " >&6
14165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14166 /* end confdefs.h. */
14169 if ac_fn_c_try_compile "$LINENO"; then :
14170 xorg_cv_compiler_flag_unknown_warning_option=yes
14172 xorg_cv_compiler_flag_unknown_warning_option=no
14174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14177 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14178 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14179 CFLAGS="$xorg_testset_save_CFLAGS"
14182 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14183 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14188 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14189 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14190 $as_echo_n "(cached) " >&6
14192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14193 /* end confdefs.h. */
14196 if ac_fn_c_try_compile "$LINENO"; then :
14197 xorg_cv_compiler_flag_unused_command_line_argument=yes
14199 xorg_cv_compiler_flag_unused_command_line_argument=no
14201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14204 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14205 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14206 CFLAGS="$xorg_testset_save_CFLAGS"
14211 if test $found = "no" ; then
14212 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14216 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14220 CFLAGS="$CFLAGS -Werror=missing-braces"
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14223 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14224 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces`
14225 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14226 $as_echo_n "(cached) " >&6
14228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14229 /* end confdefs.h. */
14239 if ac_fn_c_try_link "$LINENO"; then :
14240 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14242 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14244 rm -f core conftest.err conftest.$ac_objext \
14245 conftest$ac_exeext conftest.$ac_ext
14249 CFLAGS="$xorg_testset_save_CFLAGS"
14251 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14253 $as_echo "$supported" >&6; }
14254 if test "$supported" = "yes" ; then
14255 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14272 xorg_testset_save_CFLAGS="$CFLAGS"
14274 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14277 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14278 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14279 $as_echo_n "(cached) " >&6
14281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14282 /* end confdefs.h. */
14285 if ac_fn_c_try_compile "$LINENO"; then :
14286 xorg_cv_compiler_flag_unknown_warning_option=yes
14288 xorg_cv_compiler_flag_unknown_warning_option=no
14290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14293 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14294 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14295 CFLAGS="$xorg_testset_save_CFLAGS"
14298 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14299 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14304 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14305 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14306 $as_echo_n "(cached) " >&6
14308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14309 /* end confdefs.h. */
14312 if ac_fn_c_try_compile "$LINENO"; then :
14313 xorg_cv_compiler_flag_unused_command_line_argument=yes
14315 xorg_cv_compiler_flag_unused_command_line_argument=no
14317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14320 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14321 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14322 CFLAGS="$xorg_testset_save_CFLAGS"
14327 if test $found = "no" ; then
14328 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14332 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14336 CFLAGS="$CFLAGS -Werror=sequence-point"
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14339 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14340 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point`
14341 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14342 $as_echo_n "(cached) " >&6
14344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14345 /* end confdefs.h. */
14355 if ac_fn_c_try_link "$LINENO"; then :
14356 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14358 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14360 rm -f core conftest.err conftest.$ac_objext \
14361 conftest$ac_exeext conftest.$ac_ext
14365 CFLAGS="$xorg_testset_save_CFLAGS"
14367 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14369 $as_echo "$supported" >&6; }
14370 if test "$supported" = "yes" ; then
14371 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14388 xorg_testset_save_CFLAGS="$CFLAGS"
14390 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14393 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14394 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14395 $as_echo_n "(cached) " >&6
14397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398 /* end confdefs.h. */
14401 if ac_fn_c_try_compile "$LINENO"; then :
14402 xorg_cv_compiler_flag_unknown_warning_option=yes
14404 xorg_cv_compiler_flag_unknown_warning_option=no
14406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14409 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14410 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14411 CFLAGS="$xorg_testset_save_CFLAGS"
14414 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14415 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14420 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14421 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14422 $as_echo_n "(cached) " >&6
14424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h. */
14428 if ac_fn_c_try_compile "$LINENO"; then :
14429 xorg_cv_compiler_flag_unused_command_line_argument=yes
14431 xorg_cv_compiler_flag_unused_command_line_argument=no
14433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14436 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14437 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14438 CFLAGS="$xorg_testset_save_CFLAGS"
14443 if test $found = "no" ; then
14444 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14448 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14452 CFLAGS="$CFLAGS -Werror=return-type"
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14455 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14456 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type`
14457 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14458 $as_echo_n "(cached) " >&6
14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h. */
14471 if ac_fn_c_try_link "$LINENO"; then :
14472 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14474 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14476 rm -f core conftest.err conftest.$ac_objext \
14477 conftest$ac_exeext conftest.$ac_ext
14481 CFLAGS="$xorg_testset_save_CFLAGS"
14483 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14485 $as_echo "$supported" >&6; }
14486 if test "$supported" = "yes" ; then
14487 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14492 if test $found = "no" ; then
14493 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14497 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14501 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14504 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14505 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
14506 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14507 $as_echo_n "(cached) " >&6
14509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14510 /* end confdefs.h. */
14520 if ac_fn_c_try_link "$LINENO"; then :
14521 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14523 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14525 rm -f core conftest.err conftest.$ac_objext \
14526 conftest$ac_exeext conftest.$ac_ext
14530 CFLAGS="$xorg_testset_save_CFLAGS"
14532 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14534 $as_echo "$supported" >&6; }
14535 if test "$supported" = "yes" ; then
14536 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14553 xorg_testset_save_CFLAGS="$CFLAGS"
14555 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14558 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14559 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14560 $as_echo_n "(cached) " >&6
14562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14563 /* end confdefs.h. */
14566 if ac_fn_c_try_compile "$LINENO"; then :
14567 xorg_cv_compiler_flag_unknown_warning_option=yes
14569 xorg_cv_compiler_flag_unknown_warning_option=no
14571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14574 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14575 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14576 CFLAGS="$xorg_testset_save_CFLAGS"
14579 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14580 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14585 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14586 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14587 $as_echo_n "(cached) " >&6
14589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14590 /* end confdefs.h. */
14593 if ac_fn_c_try_compile "$LINENO"; then :
14594 xorg_cv_compiler_flag_unused_command_line_argument=yes
14596 xorg_cv_compiler_flag_unused_command_line_argument=no
14598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14601 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14602 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14603 CFLAGS="$xorg_testset_save_CFLAGS"
14608 if test $found = "no" ; then
14609 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14613 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14617 CFLAGS="$CFLAGS -Werror=trigraphs"
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14620 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14621 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs`
14622 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14623 $as_echo_n "(cached) " >&6
14625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14626 /* end confdefs.h. */
14636 if ac_fn_c_try_link "$LINENO"; then :
14637 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14639 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14641 rm -f core conftest.err conftest.$ac_objext \
14642 conftest$ac_exeext conftest.$ac_ext
14646 CFLAGS="$xorg_testset_save_CFLAGS"
14648 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14650 $as_echo "$supported" >&6; }
14651 if test "$supported" = "yes" ; then
14652 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14669 xorg_testset_save_CFLAGS="$CFLAGS"
14671 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14674 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14675 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14676 $as_echo_n "(cached) " >&6
14678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14679 /* end confdefs.h. */
14682 if ac_fn_c_try_compile "$LINENO"; then :
14683 xorg_cv_compiler_flag_unknown_warning_option=yes
14685 xorg_cv_compiler_flag_unknown_warning_option=no
14687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14690 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14691 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14692 CFLAGS="$xorg_testset_save_CFLAGS"
14695 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14696 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14701 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14702 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14703 $as_echo_n "(cached) " >&6
14705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14706 /* end confdefs.h. */
14709 if ac_fn_c_try_compile "$LINENO"; then :
14710 xorg_cv_compiler_flag_unused_command_line_argument=yes
14712 xorg_cv_compiler_flag_unused_command_line_argument=no
14714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14717 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14718 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14719 CFLAGS="$xorg_testset_save_CFLAGS"
14724 if test $found = "no" ; then
14725 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14729 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14733 CFLAGS="$CFLAGS -Werror=array-bounds"
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14736 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14737 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds`
14738 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14739 $as_echo_n "(cached) " >&6
14741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14742 /* end confdefs.h. */
14752 if ac_fn_c_try_link "$LINENO"; then :
14753 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14755 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14757 rm -f core conftest.err conftest.$ac_objext \
14758 conftest$ac_exeext conftest.$ac_ext
14762 CFLAGS="$xorg_testset_save_CFLAGS"
14764 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14766 $as_echo "$supported" >&6; }
14767 if test "$supported" = "yes" ; then
14768 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14785 xorg_testset_save_CFLAGS="$CFLAGS"
14787 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14790 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14791 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14792 $as_echo_n "(cached) " >&6
14794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14795 /* end confdefs.h. */
14798 if ac_fn_c_try_compile "$LINENO"; then :
14799 xorg_cv_compiler_flag_unknown_warning_option=yes
14801 xorg_cv_compiler_flag_unknown_warning_option=no
14803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14806 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14807 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14808 CFLAGS="$xorg_testset_save_CFLAGS"
14811 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14812 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14817 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14818 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14819 $as_echo_n "(cached) " >&6
14821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14822 /* end confdefs.h. */
14825 if ac_fn_c_try_compile "$LINENO"; then :
14826 xorg_cv_compiler_flag_unused_command_line_argument=yes
14828 xorg_cv_compiler_flag_unused_command_line_argument=no
14830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14833 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14834 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14835 CFLAGS="$xorg_testset_save_CFLAGS"
14840 if test $found = "no" ; then
14841 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14845 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14849 CFLAGS="$CFLAGS -Werror=write-strings"
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
14852 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
14853 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings`
14854 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14855 $as_echo_n "(cached) " >&6
14857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858 /* end confdefs.h. */
14868 if ac_fn_c_try_link "$LINENO"; then :
14869 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14871 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14873 rm -f core conftest.err conftest.$ac_objext \
14874 conftest$ac_exeext conftest.$ac_ext
14878 CFLAGS="$xorg_testset_save_CFLAGS"
14880 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14882 $as_echo "$supported" >&6; }
14883 if test "$supported" = "yes" ; then
14884 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
14901 xorg_testset_save_CFLAGS="$CFLAGS"
14903 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14906 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14907 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14908 $as_echo_n "(cached) " >&6
14910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14911 /* end confdefs.h. */
14914 if ac_fn_c_try_compile "$LINENO"; then :
14915 xorg_cv_compiler_flag_unknown_warning_option=yes
14917 xorg_cv_compiler_flag_unknown_warning_option=no
14919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14922 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14923 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14924 CFLAGS="$xorg_testset_save_CFLAGS"
14927 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14928 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14933 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14934 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14935 $as_echo_n "(cached) " >&6
14937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14938 /* end confdefs.h. */
14941 if ac_fn_c_try_compile "$LINENO"; then :
14942 xorg_cv_compiler_flag_unused_command_line_argument=yes
14944 xorg_cv_compiler_flag_unused_command_line_argument=no
14946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14949 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14950 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14951 CFLAGS="$xorg_testset_save_CFLAGS"
14956 if test $found = "no" ; then
14957 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14961 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14965 CFLAGS="$CFLAGS -Werror=address"
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
14968 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
14969 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address`
14970 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14971 $as_echo_n "(cached) " >&6
14973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14974 /* end confdefs.h. */
14984 if ac_fn_c_try_link "$LINENO"; then :
14985 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14987 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14989 rm -f core conftest.err conftest.$ac_objext \
14990 conftest$ac_exeext conftest.$ac_ext
14994 CFLAGS="$xorg_testset_save_CFLAGS"
14996 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14998 $as_echo "$supported" >&6; }
14999 if test "$supported" = "yes" ; then
15000 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15017 xorg_testset_save_CFLAGS="$CFLAGS"
15019 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15022 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15023 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15024 $as_echo_n "(cached) " >&6
15026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027 /* end confdefs.h. */
15030 if ac_fn_c_try_compile "$LINENO"; then :
15031 xorg_cv_compiler_flag_unknown_warning_option=yes
15033 xorg_cv_compiler_flag_unknown_warning_option=no
15035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15038 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15039 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15040 CFLAGS="$xorg_testset_save_CFLAGS"
15043 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15044 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15049 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15050 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15051 $as_echo_n "(cached) " >&6
15053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15054 /* end confdefs.h. */
15057 if ac_fn_c_try_compile "$LINENO"; then :
15058 xorg_cv_compiler_flag_unused_command_line_argument=yes
15060 xorg_cv_compiler_flag_unused_command_line_argument=no
15062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15065 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15066 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15067 CFLAGS="$xorg_testset_save_CFLAGS"
15072 if test $found = "no" ; then
15073 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15077 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15081 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15084 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15085 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
15086 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15087 $as_echo_n "(cached) " >&6
15089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15090 /* end confdefs.h. */
15100 if ac_fn_c_try_link "$LINENO"; then :
15101 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15103 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15105 rm -f core conftest.err conftest.$ac_objext \
15106 conftest$ac_exeext conftest.$ac_ext
15110 CFLAGS="$xorg_testset_save_CFLAGS"
15112 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15114 $as_echo "$supported" >&6; }
15115 if test "$supported" = "yes" ; then
15116 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15121 if test $found = "no" ; then
15122 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15126 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15130 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15133 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15134 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
15135 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15136 $as_echo_n "(cached) " >&6
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15149 if ac_fn_c_try_link "$LINENO"; then :
15150 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15152 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15154 rm -f core conftest.err conftest.$ac_objext \
15155 conftest$ac_exeext conftest.$ac_ext
15159 CFLAGS="$xorg_testset_save_CFLAGS"
15161 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15163 $as_echo "$supported" >&6; }
15164 if test "$supported" = "yes" ; then
15165 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15182 xorg_testset_save_CFLAGS="$CFLAGS"
15184 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15187 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15188 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15189 $as_echo_n "(cached) " >&6
15191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15192 /* end confdefs.h. */
15195 if ac_fn_c_try_compile "$LINENO"; then :
15196 xorg_cv_compiler_flag_unknown_warning_option=yes
15198 xorg_cv_compiler_flag_unknown_warning_option=no
15200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15203 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15204 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15205 CFLAGS="$xorg_testset_save_CFLAGS"
15208 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15209 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15214 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15215 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15216 $as_echo_n "(cached) " >&6
15218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15219 /* end confdefs.h. */
15222 if ac_fn_c_try_compile "$LINENO"; then :
15223 xorg_cv_compiler_flag_unused_command_line_argument=yes
15225 xorg_cv_compiler_flag_unused_command_line_argument=no
15227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15230 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15231 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15232 CFLAGS="$xorg_testset_save_CFLAGS"
15237 if test $found = "no" ; then
15238 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15242 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15246 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15249 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15250 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
15251 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15252 $as_echo_n "(cached) " >&6
15254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15255 /* end confdefs.h. */
15265 if ac_fn_c_try_link "$LINENO"; then :
15266 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15268 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15270 rm -f core conftest.err conftest.$ac_objext \
15271 conftest$ac_exeext conftest.$ac_ext
15275 CFLAGS="$xorg_testset_save_CFLAGS"
15277 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15279 $as_echo "$supported" >&6; }
15280 if test "$supported" = "yes" ; then
15281 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15286 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15288 { $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
15289 $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;}
15301 xorg_testset_save_CFLAGS="$CFLAGS"
15303 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15306 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15307 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15308 $as_echo_n "(cached) " >&6
15310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15311 /* end confdefs.h. */
15314 if ac_fn_c_try_compile "$LINENO"; then :
15315 xorg_cv_compiler_flag_unknown_warning_option=yes
15317 xorg_cv_compiler_flag_unknown_warning_option=no
15319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15322 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15323 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15324 CFLAGS="$xorg_testset_save_CFLAGS"
15327 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15328 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15333 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15334 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15335 $as_echo_n "(cached) " >&6
15337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338 /* end confdefs.h. */
15341 if ac_fn_c_try_compile "$LINENO"; then :
15342 xorg_cv_compiler_flag_unused_command_line_argument=yes
15344 xorg_cv_compiler_flag_unused_command_line_argument=no
15346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15349 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15350 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15351 CFLAGS="$xorg_testset_save_CFLAGS"
15356 if test $found = "no" ; then
15357 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15361 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15365 CFLAGS="$CFLAGS -Wimplicit"
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15368 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15369 cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit`
15370 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15371 $as_echo_n "(cached) " >&6
15373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15374 /* end confdefs.h. */
15384 if ac_fn_c_try_link "$LINENO"; then :
15385 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15387 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15389 rm -f core conftest.err conftest.$ac_objext \
15390 conftest$ac_exeext conftest.$ac_ext
15394 CFLAGS="$xorg_testset_save_CFLAGS"
15396 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15398 $as_echo "$supported" >&6; }
15399 if test "$supported" = "yes" ; then
15400 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15417 xorg_testset_save_CFLAGS="$CFLAGS"
15419 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15422 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15423 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15424 $as_echo_n "(cached) " >&6
15426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15427 /* end confdefs.h. */
15430 if ac_fn_c_try_compile "$LINENO"; then :
15431 xorg_cv_compiler_flag_unknown_warning_option=yes
15433 xorg_cv_compiler_flag_unknown_warning_option=no
15435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15438 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15439 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15440 CFLAGS="$xorg_testset_save_CFLAGS"
15443 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15444 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15449 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15450 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15451 $as_echo_n "(cached) " >&6
15453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15454 /* end confdefs.h. */
15457 if ac_fn_c_try_compile "$LINENO"; then :
15458 xorg_cv_compiler_flag_unused_command_line_argument=yes
15460 xorg_cv_compiler_flag_unused_command_line_argument=no
15462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15465 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15466 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15467 CFLAGS="$xorg_testset_save_CFLAGS"
15472 if test $found = "no" ; then
15473 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15477 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15481 CFLAGS="$CFLAGS -Wnonnull"
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15484 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15485 cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull`
15486 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15487 $as_echo_n "(cached) " >&6
15489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15490 /* end confdefs.h. */
15500 if ac_fn_c_try_link "$LINENO"; then :
15501 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15503 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15505 rm -f core conftest.err conftest.$ac_objext \
15506 conftest$ac_exeext conftest.$ac_ext
15510 CFLAGS="$xorg_testset_save_CFLAGS"
15512 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15514 $as_echo "$supported" >&6; }
15515 if test "$supported" = "yes" ; then
15516 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15533 xorg_testset_save_CFLAGS="$CFLAGS"
15535 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15538 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15539 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15540 $as_echo_n "(cached) " >&6
15542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15543 /* end confdefs.h. */
15546 if ac_fn_c_try_compile "$LINENO"; then :
15547 xorg_cv_compiler_flag_unknown_warning_option=yes
15549 xorg_cv_compiler_flag_unknown_warning_option=no
15551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15554 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15555 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15556 CFLAGS="$xorg_testset_save_CFLAGS"
15559 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15560 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15565 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15566 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15567 $as_echo_n "(cached) " >&6
15569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15570 /* end confdefs.h. */
15573 if ac_fn_c_try_compile "$LINENO"; then :
15574 xorg_cv_compiler_flag_unused_command_line_argument=yes
15576 xorg_cv_compiler_flag_unused_command_line_argument=no
15578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15581 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15582 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15583 CFLAGS="$xorg_testset_save_CFLAGS"
15588 if test $found = "no" ; then
15589 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15593 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15597 CFLAGS="$CFLAGS -Winit-self"
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15600 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15601 cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self`
15602 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15603 $as_echo_n "(cached) " >&6
15605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15606 /* end confdefs.h. */
15616 if ac_fn_c_try_link "$LINENO"; then :
15617 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15619 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15621 rm -f core conftest.err conftest.$ac_objext \
15622 conftest$ac_exeext conftest.$ac_ext
15626 CFLAGS="$xorg_testset_save_CFLAGS"
15628 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15630 $as_echo "$supported" >&6; }
15631 if test "$supported" = "yes" ; then
15632 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15649 xorg_testset_save_CFLAGS="$CFLAGS"
15651 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15654 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15655 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15656 $as_echo_n "(cached) " >&6
15658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15659 /* end confdefs.h. */
15662 if ac_fn_c_try_compile "$LINENO"; then :
15663 xorg_cv_compiler_flag_unknown_warning_option=yes
15665 xorg_cv_compiler_flag_unknown_warning_option=no
15667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15670 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15671 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15672 CFLAGS="$xorg_testset_save_CFLAGS"
15675 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15676 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15681 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15682 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15683 $as_echo_n "(cached) " >&6
15685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15686 /* end confdefs.h. */
15689 if ac_fn_c_try_compile "$LINENO"; then :
15690 xorg_cv_compiler_flag_unused_command_line_argument=yes
15692 xorg_cv_compiler_flag_unused_command_line_argument=no
15694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15697 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15698 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15699 CFLAGS="$xorg_testset_save_CFLAGS"
15704 if test $found = "no" ; then
15705 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15709 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15713 CFLAGS="$CFLAGS -Wmain"
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15716 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
15717 cacheid=`$as_echo xorg_cv_cc_flag_-Wmain`
15718 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15719 $as_echo_n "(cached) " >&6
15721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15722 /* end confdefs.h. */
15732 if ac_fn_c_try_link "$LINENO"; then :
15733 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15735 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15737 rm -f core conftest.err conftest.$ac_objext \
15738 conftest$ac_exeext conftest.$ac_ext
15742 CFLAGS="$xorg_testset_save_CFLAGS"
15744 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15746 $as_echo "$supported" >&6; }
15747 if test "$supported" = "yes" ; then
15748 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15765 xorg_testset_save_CFLAGS="$CFLAGS"
15767 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15770 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15771 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15772 $as_echo_n "(cached) " >&6
15774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15775 /* end confdefs.h. */
15778 if ac_fn_c_try_compile "$LINENO"; then :
15779 xorg_cv_compiler_flag_unknown_warning_option=yes
15781 xorg_cv_compiler_flag_unknown_warning_option=no
15783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15786 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15787 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15788 CFLAGS="$xorg_testset_save_CFLAGS"
15791 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15792 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15797 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15798 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15799 $as_echo_n "(cached) " >&6
15801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15802 /* end confdefs.h. */
15805 if ac_fn_c_try_compile "$LINENO"; then :
15806 xorg_cv_compiler_flag_unused_command_line_argument=yes
15808 xorg_cv_compiler_flag_unused_command_line_argument=no
15810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15813 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15814 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15815 CFLAGS="$xorg_testset_save_CFLAGS"
15820 if test $found = "no" ; then
15821 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15825 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15829 CFLAGS="$CFLAGS -Wmissing-braces"
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
15832 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
15833 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces`
15834 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15835 $as_echo_n "(cached) " >&6
15837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15838 /* end confdefs.h. */
15848 if ac_fn_c_try_link "$LINENO"; then :
15849 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15851 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15853 rm -f core conftest.err conftest.$ac_objext \
15854 conftest$ac_exeext conftest.$ac_ext
15858 CFLAGS="$xorg_testset_save_CFLAGS"
15860 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15862 $as_echo "$supported" >&6; }
15863 if test "$supported" = "yes" ; then
15864 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
15881 xorg_testset_save_CFLAGS="$CFLAGS"
15883 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15886 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15887 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15888 $as_echo_n "(cached) " >&6
15890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15891 /* end confdefs.h. */
15894 if ac_fn_c_try_compile "$LINENO"; then :
15895 xorg_cv_compiler_flag_unknown_warning_option=yes
15897 xorg_cv_compiler_flag_unknown_warning_option=no
15899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15902 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15903 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15904 CFLAGS="$xorg_testset_save_CFLAGS"
15907 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15908 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15913 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15914 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15915 $as_echo_n "(cached) " >&6
15917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918 /* end confdefs.h. */
15921 if ac_fn_c_try_compile "$LINENO"; then :
15922 xorg_cv_compiler_flag_unused_command_line_argument=yes
15924 xorg_cv_compiler_flag_unused_command_line_argument=no
15926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15929 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15930 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15931 CFLAGS="$xorg_testset_save_CFLAGS"
15936 if test $found = "no" ; then
15937 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15941 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15945 CFLAGS="$CFLAGS -Wsequence-point"
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
15948 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
15949 cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point`
15950 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15951 $as_echo_n "(cached) " >&6
15953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15954 /* end confdefs.h. */
15964 if ac_fn_c_try_link "$LINENO"; then :
15965 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15967 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15969 rm -f core conftest.err conftest.$ac_objext \
15970 conftest$ac_exeext conftest.$ac_ext
15974 CFLAGS="$xorg_testset_save_CFLAGS"
15976 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15978 $as_echo "$supported" >&6; }
15979 if test "$supported" = "yes" ; then
15980 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
15997 xorg_testset_save_CFLAGS="$CFLAGS"
15999 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16000 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16002 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16003 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16004 $as_echo_n "(cached) " >&6
16006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16007 /* end confdefs.h. */
16010 if ac_fn_c_try_compile "$LINENO"; then :
16011 xorg_cv_compiler_flag_unknown_warning_option=yes
16013 xorg_cv_compiler_flag_unknown_warning_option=no
16015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16018 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16019 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16020 CFLAGS="$xorg_testset_save_CFLAGS"
16023 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16024 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16029 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16030 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16031 $as_echo_n "(cached) " >&6
16033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16034 /* end confdefs.h. */
16037 if ac_fn_c_try_compile "$LINENO"; then :
16038 xorg_cv_compiler_flag_unused_command_line_argument=yes
16040 xorg_cv_compiler_flag_unused_command_line_argument=no
16042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16045 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16046 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16047 CFLAGS="$xorg_testset_save_CFLAGS"
16052 if test $found = "no" ; then
16053 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16057 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16061 CFLAGS="$CFLAGS -Wreturn-type"
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16064 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16065 cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type`
16066 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16067 $as_echo_n "(cached) " >&6
16069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16070 /* end confdefs.h. */
16080 if ac_fn_c_try_link "$LINENO"; then :
16081 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16083 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16085 rm -f core conftest.err conftest.$ac_objext \
16086 conftest$ac_exeext conftest.$ac_ext
16090 CFLAGS="$xorg_testset_save_CFLAGS"
16092 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16094 $as_echo "$supported" >&6; }
16095 if test "$supported" = "yes" ; then
16096 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16113 xorg_testset_save_CFLAGS="$CFLAGS"
16115 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16118 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16119 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16120 $as_echo_n "(cached) " >&6
16122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16123 /* end confdefs.h. */
16126 if ac_fn_c_try_compile "$LINENO"; then :
16127 xorg_cv_compiler_flag_unknown_warning_option=yes
16129 xorg_cv_compiler_flag_unknown_warning_option=no
16131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16134 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16135 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16136 CFLAGS="$xorg_testset_save_CFLAGS"
16139 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16140 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16145 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16146 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16147 $as_echo_n "(cached) " >&6
16149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16150 /* end confdefs.h. */
16153 if ac_fn_c_try_compile "$LINENO"; then :
16154 xorg_cv_compiler_flag_unused_command_line_argument=yes
16156 xorg_cv_compiler_flag_unused_command_line_argument=no
16158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16161 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16162 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16163 CFLAGS="$xorg_testset_save_CFLAGS"
16168 if test $found = "no" ; then
16169 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16173 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16177 CFLAGS="$CFLAGS -Wtrigraphs"
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16180 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16181 cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs`
16182 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16183 $as_echo_n "(cached) " >&6
16185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16186 /* end confdefs.h. */
16196 if ac_fn_c_try_link "$LINENO"; then :
16197 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16199 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16201 rm -f core conftest.err conftest.$ac_objext \
16202 conftest$ac_exeext conftest.$ac_ext
16206 CFLAGS="$xorg_testset_save_CFLAGS"
16208 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16210 $as_echo "$supported" >&6; }
16211 if test "$supported" = "yes" ; then
16212 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16229 xorg_testset_save_CFLAGS="$CFLAGS"
16231 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16234 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16235 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16236 $as_echo_n "(cached) " >&6
16238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16239 /* end confdefs.h. */
16242 if ac_fn_c_try_compile "$LINENO"; then :
16243 xorg_cv_compiler_flag_unknown_warning_option=yes
16245 xorg_cv_compiler_flag_unknown_warning_option=no
16247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16250 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16251 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16252 CFLAGS="$xorg_testset_save_CFLAGS"
16255 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16256 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16261 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16262 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16263 $as_echo_n "(cached) " >&6
16265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16266 /* end confdefs.h. */
16269 if ac_fn_c_try_compile "$LINENO"; then :
16270 xorg_cv_compiler_flag_unused_command_line_argument=yes
16272 xorg_cv_compiler_flag_unused_command_line_argument=no
16274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16277 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16278 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16279 CFLAGS="$xorg_testset_save_CFLAGS"
16284 if test $found = "no" ; then
16285 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16289 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16293 CFLAGS="$CFLAGS -Warray-bounds"
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16296 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16297 cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds`
16298 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16299 $as_echo_n "(cached) " >&6
16301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16302 /* end confdefs.h. */
16312 if ac_fn_c_try_link "$LINENO"; then :
16313 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16315 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16317 rm -f core conftest.err conftest.$ac_objext \
16318 conftest$ac_exeext conftest.$ac_ext
16322 CFLAGS="$xorg_testset_save_CFLAGS"
16324 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16326 $as_echo "$supported" >&6; }
16327 if test "$supported" = "yes" ; then
16328 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16345 xorg_testset_save_CFLAGS="$CFLAGS"
16347 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16350 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16351 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16352 $as_echo_n "(cached) " >&6
16354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16355 /* end confdefs.h. */
16358 if ac_fn_c_try_compile "$LINENO"; then :
16359 xorg_cv_compiler_flag_unknown_warning_option=yes
16361 xorg_cv_compiler_flag_unknown_warning_option=no
16363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16366 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16367 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16368 CFLAGS="$xorg_testset_save_CFLAGS"
16371 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16372 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16377 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16378 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16379 $as_echo_n "(cached) " >&6
16381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16382 /* end confdefs.h. */
16385 if ac_fn_c_try_compile "$LINENO"; then :
16386 xorg_cv_compiler_flag_unused_command_line_argument=yes
16388 xorg_cv_compiler_flag_unused_command_line_argument=no
16390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16393 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16394 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16395 CFLAGS="$xorg_testset_save_CFLAGS"
16400 if test $found = "no" ; then
16401 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16405 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16409 CFLAGS="$CFLAGS -Wwrite-strings"
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16412 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16413 cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings`
16414 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16415 $as_echo_n "(cached) " >&6
16417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16418 /* end confdefs.h. */
16428 if ac_fn_c_try_link "$LINENO"; then :
16429 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16431 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16433 rm -f core conftest.err conftest.$ac_objext \
16434 conftest$ac_exeext conftest.$ac_ext
16438 CFLAGS="$xorg_testset_save_CFLAGS"
16440 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16442 $as_echo "$supported" >&6; }
16443 if test "$supported" = "yes" ; then
16444 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16461 xorg_testset_save_CFLAGS="$CFLAGS"
16463 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16466 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16467 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16468 $as_echo_n "(cached) " >&6
16470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471 /* end confdefs.h. */
16474 if ac_fn_c_try_compile "$LINENO"; then :
16475 xorg_cv_compiler_flag_unknown_warning_option=yes
16477 xorg_cv_compiler_flag_unknown_warning_option=no
16479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16482 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16483 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16484 CFLAGS="$xorg_testset_save_CFLAGS"
16487 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16488 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16493 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16494 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16495 $as_echo_n "(cached) " >&6
16497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16498 /* end confdefs.h. */
16501 if ac_fn_c_try_compile "$LINENO"; then :
16502 xorg_cv_compiler_flag_unused_command_line_argument=yes
16504 xorg_cv_compiler_flag_unused_command_line_argument=no
16506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16509 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16510 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16511 CFLAGS="$xorg_testset_save_CFLAGS"
16516 if test $found = "no" ; then
16517 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16521 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16525 CFLAGS="$CFLAGS -Waddress"
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16528 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16529 cacheid=`$as_echo xorg_cv_cc_flag_-Waddress`
16530 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16531 $as_echo_n "(cached) " >&6
16533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16534 /* end confdefs.h. */
16544 if ac_fn_c_try_link "$LINENO"; then :
16545 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16547 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16549 rm -f core conftest.err conftest.$ac_objext \
16550 conftest$ac_exeext conftest.$ac_ext
16554 CFLAGS="$xorg_testset_save_CFLAGS"
16556 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16558 $as_echo "$supported" >&6; }
16559 if test "$supported" = "yes" ; then
16560 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16577 xorg_testset_save_CFLAGS="$CFLAGS"
16579 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16582 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16583 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16584 $as_echo_n "(cached) " >&6
16586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16587 /* end confdefs.h. */
16590 if ac_fn_c_try_compile "$LINENO"; then :
16591 xorg_cv_compiler_flag_unknown_warning_option=yes
16593 xorg_cv_compiler_flag_unknown_warning_option=no
16595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16598 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16599 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16600 CFLAGS="$xorg_testset_save_CFLAGS"
16603 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16604 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16609 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16610 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16611 $as_echo_n "(cached) " >&6
16613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16614 /* end confdefs.h. */
16617 if ac_fn_c_try_compile "$LINENO"; then :
16618 xorg_cv_compiler_flag_unused_command_line_argument=yes
16620 xorg_cv_compiler_flag_unused_command_line_argument=no
16622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16625 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16626 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16627 CFLAGS="$xorg_testset_save_CFLAGS"
16632 if test $found = "no" ; then
16633 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16637 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16641 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16644 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16645 cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast`
16646 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16647 $as_echo_n "(cached) " >&6
16649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16650 /* end confdefs.h. */
16660 if ac_fn_c_try_link "$LINENO"; then :
16661 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16663 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16665 rm -f core conftest.err conftest.$ac_objext \
16666 conftest$ac_exeext conftest.$ac_ext
16670 CFLAGS="$xorg_testset_save_CFLAGS"
16672 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16674 $as_echo "$supported" >&6; }
16675 if test "$supported" = "yes" ; then
16676 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16693 xorg_testset_save_CFLAGS="$CFLAGS"
16695 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16698 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16699 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16700 $as_echo_n "(cached) " >&6
16702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16703 /* end confdefs.h. */
16706 if ac_fn_c_try_compile "$LINENO"; then :
16707 xorg_cv_compiler_flag_unknown_warning_option=yes
16709 xorg_cv_compiler_flag_unknown_warning_option=no
16711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16714 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16715 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16716 CFLAGS="$xorg_testset_save_CFLAGS"
16719 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16720 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16725 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16726 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16727 $as_echo_n "(cached) " >&6
16729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16730 /* end confdefs.h. */
16733 if ac_fn_c_try_compile "$LINENO"; then :
16734 xorg_cv_compiler_flag_unused_command_line_argument=yes
16736 xorg_cv_compiler_flag_unused_command_line_argument=no
16738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16741 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16742 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16743 CFLAGS="$xorg_testset_save_CFLAGS"
16748 if test $found = "no" ; then
16749 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16753 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16757 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16760 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16761 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast`
16762 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16763 $as_echo_n "(cached) " >&6
16765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16766 /* end confdefs.h. */
16776 if ac_fn_c_try_link "$LINENO"; then :
16777 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16779 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16781 rm -f core conftest.err conftest.$ac_objext \
16782 conftest$ac_exeext conftest.$ac_ext
16786 CFLAGS="$xorg_testset_save_CFLAGS"
16788 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16790 $as_echo "$supported" >&6; }
16791 if test "$supported" = "yes" ; then
16792 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
16806 CWARNFLAGS="$BASE_CFLAGS"
16807 if test "x$GCC" = xyes ; then
16808 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
16818 # Check whether --enable-strict-compilation was given.
16819 if test "${enable_strict_compilation+set}" = set; then :
16820 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
16842 xorg_testset_save_CFLAGS="$CFLAGS"
16844 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16847 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16848 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16849 $as_echo_n "(cached) " >&6
16851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16852 /* end confdefs.h. */
16855 if ac_fn_c_try_compile "$LINENO"; then :
16856 xorg_cv_compiler_flag_unknown_warning_option=yes
16858 xorg_cv_compiler_flag_unknown_warning_option=no
16860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16863 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16864 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16865 CFLAGS="$xorg_testset_save_CFLAGS"
16868 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16869 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16874 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16875 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16876 $as_echo_n "(cached) " >&6
16878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16879 /* end confdefs.h. */
16882 if ac_fn_c_try_compile "$LINENO"; then :
16883 xorg_cv_compiler_flag_unused_command_line_argument=yes
16885 xorg_cv_compiler_flag_unused_command_line_argument=no
16887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16890 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16891 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16892 CFLAGS="$xorg_testset_save_CFLAGS"
16897 if test $found = "no" ; then
16898 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16902 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16906 CFLAGS="$CFLAGS -pedantic"
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
16909 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
16910 cacheid=`$as_echo xorg_cv_cc_flag_-pedantic`
16911 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16912 $as_echo_n "(cached) " >&6
16914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16915 /* end confdefs.h. */
16925 if ac_fn_c_try_link "$LINENO"; then :
16926 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16928 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16930 rm -f core conftest.err conftest.$ac_objext \
16931 conftest$ac_exeext conftest.$ac_ext
16935 CFLAGS="$xorg_testset_save_CFLAGS"
16937 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16939 $as_echo "$supported" >&6; }
16940 if test "$supported" = "yes" ; then
16941 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
16958 xorg_testset_save_CFLAGS="$CFLAGS"
16960 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16963 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16964 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16965 $as_echo_n "(cached) " >&6
16967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16968 /* end confdefs.h. */
16971 if ac_fn_c_try_compile "$LINENO"; then :
16972 xorg_cv_compiler_flag_unknown_warning_option=yes
16974 xorg_cv_compiler_flag_unknown_warning_option=no
16976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16979 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16980 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16981 CFLAGS="$xorg_testset_save_CFLAGS"
16984 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16985 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16990 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16991 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16992 $as_echo_n "(cached) " >&6
16994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16995 /* end confdefs.h. */
16998 if ac_fn_c_try_compile "$LINENO"; then :
16999 xorg_cv_compiler_flag_unused_command_line_argument=yes
17001 xorg_cv_compiler_flag_unused_command_line_argument=no
17003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17006 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17007 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17008 CFLAGS="$xorg_testset_save_CFLAGS"
17013 if test $found = "no" ; then
17014 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17018 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17022 CFLAGS="$CFLAGS -Werror"
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17025 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17026 cacheid=`$as_echo xorg_cv_cc_flag_-Werror`
17027 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17028 $as_echo_n "(cached) " >&6
17030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17031 /* end confdefs.h. */
17041 if ac_fn_c_try_link "$LINENO"; then :
17042 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17044 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17046 rm -f core conftest.err conftest.$ac_objext \
17047 conftest$ac_exeext conftest.$ac_ext
17051 CFLAGS="$xorg_testset_save_CFLAGS"
17053 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17055 $as_echo "$supported" >&6; }
17056 if test "$supported" = "yes" ; then
17057 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17062 if test $found = "no" ; then
17063 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17067 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17071 CFLAGS="$CFLAGS -errwarn"
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17074 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17075 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn`
17076 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17077 $as_echo_n "(cached) " >&6
17079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17080 /* end confdefs.h. */
17090 if ac_fn_c_try_link "$LINENO"; then :
17091 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17093 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17095 rm -f core conftest.err conftest.$ac_objext \
17096 conftest$ac_exeext conftest.$ac_ext
17100 CFLAGS="$xorg_testset_save_CFLAGS"
17102 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17104 $as_echo "$supported" >&6; }
17105 if test "$supported" = "yes" ; then
17106 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17113 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17114 # activate it with -Werror, so we add it here explicitly.
17126 xorg_testset_save_CFLAGS="$CFLAGS"
17128 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
17129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
17131 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
17132 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
17133 $as_echo_n "(cached) " >&6
17135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17136 /* end confdefs.h. */
17139 if ac_fn_c_try_compile "$LINENO"; then :
17140 xorg_cv_compiler_flag_unknown_warning_option=yes
17142 xorg_cv_compiler_flag_unknown_warning_option=no
17144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
17147 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
17148 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
17149 CFLAGS="$xorg_testset_save_CFLAGS"
17152 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
17153 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
17158 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
17159 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
17160 $as_echo_n "(cached) " >&6
17162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17163 /* end confdefs.h. */
17166 if ac_fn_c_try_compile "$LINENO"; then :
17167 xorg_cv_compiler_flag_unused_command_line_argument=yes
17169 xorg_cv_compiler_flag_unused_command_line_argument=no
17171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17174 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17175 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17176 CFLAGS="$xorg_testset_save_CFLAGS"
17181 if test $found = "no" ; then
17182 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17186 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17190 CFLAGS="$CFLAGS -Werror=attributes"
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17193 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17194 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes`
17195 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17196 $as_echo_n "(cached) " >&6
17198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17199 /* end confdefs.h. */
17209 if ac_fn_c_try_link "$LINENO"; then :
17210 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17212 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17214 rm -f core conftest.err conftest.$ac_objext \
17215 conftest$ac_exeext conftest.$ac_ext
17219 CFLAGS="$xorg_testset_save_CFLAGS"
17221 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17223 $as_echo "$supported" >&6; }
17224 if test "$supported" = "yes" ; then
17225 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17232 if test "x$STRICT_COMPILE" = "xyes"; then
17233 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17234 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17242 cat >>confdefs.h <<_ACEOF
17243 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17246 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17247 if test "x$PVM" = "x"; then
17251 cat >>confdefs.h <<_ACEOF
17252 #define PACKAGE_VERSION_MINOR $PVM
17255 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17256 if test "x$PVP" = "x"; then
17260 cat >>confdefs.h <<_ACEOF
17261 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17266 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17267 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17268 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17269 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17274 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17275 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17276 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17277 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17278 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17285 if test x$APP_MAN_SUFFIX = x ; then
17288 if test x$APP_MAN_DIR = x ; then
17289 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17292 if test x$LIB_MAN_SUFFIX = x ; then
17295 if test x$LIB_MAN_DIR = x ; then
17296 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17299 if test x$FILE_MAN_SUFFIX = x ; then
17301 solaris*) FILE_MAN_SUFFIX=4 ;;
17302 *) FILE_MAN_SUFFIX=5 ;;
17305 if test x$FILE_MAN_DIR = x ; then
17306 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17309 if test x$MISC_MAN_SUFFIX = x ; then
17311 solaris*) MISC_MAN_SUFFIX=5 ;;
17312 *) MISC_MAN_SUFFIX=7 ;;
17315 if test x$MISC_MAN_DIR = x ; then
17316 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17319 if test x$DRIVER_MAN_SUFFIX = x ; then
17321 solaris*) DRIVER_MAN_SUFFIX=7 ;;
17322 *) DRIVER_MAN_SUFFIX=4 ;;
17325 if test x$DRIVER_MAN_DIR = x ; then
17326 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17329 if test x$ADMIN_MAN_SUFFIX = x ; then
17331 solaris*) ADMIN_MAN_SUFFIX=1m ;;
17332 *) ADMIN_MAN_SUFFIX=8 ;;
17335 if test x$ADMIN_MAN_DIR = x ; then
17336 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17353 XORG_MAN_PAGE="X Version 11"
17356 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17357 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17358 -e 's|__xservername__|Xorg|g' \
17359 -e 's|__xconfigfile__|xorg.conf|g' \
17360 -e 's|__projectroot__|\$(prefix)|g' \
17361 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17362 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17363 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17364 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17365 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17366 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17367 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17371 # Check whether --enable-silent-rules was given.
17372 if test "${enable_silent_rules+set}" = set; then :
17373 enableval=$enable_silent_rules;
17376 case $enable_silent_rules in
17377 yes) AM_DEFAULT_VERBOSITY=0;;
17378 no) AM_DEFAULT_VERBOSITY=1;;
17379 *) AM_DEFAULT_VERBOSITY=0;;
17385 # Check whether --enable-malloc0returnsnull was given.
17386 if test "${enable_malloc0returnsnull+set}" = set; then :
17387 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
17389 MALLOC_ZERO_RETURNS_NULL=auto
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
17394 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
17395 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
17396 if test "$cross_compiling" = yes; then :
17397 MALLOC_ZERO_RETURNS_NULL=yes
17399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17400 /* end confdefs.h. */
17402 #include <stdlib.h>
17408 char *m0, *r0, *c0, *p;
17413 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
17419 if ac_fn_c_try_run "$LINENO"; then :
17420 MALLOC_ZERO_RETURNS_NULL=yes
17422 MALLOC_ZERO_RETURNS_NULL=no
17424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17425 conftest.$ac_objext conftest.beam conftest.$ac_ext
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
17430 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
17432 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
17433 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
17434 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
17435 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
17437 MALLOC_ZERO_CFLAGS=""
17438 XMALLOC_ZERO_CFLAGS=""
17439 XTMALLOC_ZERO_CFLAGS=""
17447 # Obtain compiler/linker options for depedencies
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVMC" >&5
17451 $as_echo_n "checking for XVMC... " >&6; }
17453 if test -n "$XVMC_CFLAGS"; then
17454 pkg_cv_XVMC_CFLAGS="$XVMC_CFLAGS"
17455 elif test -n "$PKG_CONFIG"; then
17456 if test -n "$PKG_CONFIG" && \
17457 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xv xextproto videoproto\""; } >&5
17458 ($PKG_CONFIG --exists --print-errors "x11 xext xv xextproto videoproto") 2>&5
17460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17461 test $ac_status = 0; }; then
17462 pkg_cv_XVMC_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xv xextproto videoproto" 2>/dev/null`
17469 if test -n "$XVMC_LIBS"; then
17470 pkg_cv_XVMC_LIBS="$XVMC_LIBS"
17471 elif test -n "$PKG_CONFIG"; then
17472 if test -n "$PKG_CONFIG" && \
17473 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xv xextproto videoproto\""; } >&5
17474 ($PKG_CONFIG --exists --print-errors "x11 xext xv xextproto videoproto") 2>&5
17476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17477 test $ac_status = 0; }; then
17478 pkg_cv_XVMC_LIBS=`$PKG_CONFIG --libs "x11 xext xv xextproto videoproto" 2>/dev/null`
17488 if test $pkg_failed = yes; then
17490 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17491 _pkg_short_errors_supported=yes
17493 _pkg_short_errors_supported=no
17495 if test $_pkg_short_errors_supported = yes; then
17496 XVMC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xv xextproto videoproto" 2>&1`
17498 XVMC_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xv xextproto videoproto" 2>&1`
17500 # Put the nasty error message in config.log where it belongs
17501 echo "$XVMC_PKG_ERRORS" >&5
17503 as_fn_error $? "Package requirements (x11 xext xv xextproto videoproto) were not met:
17507 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17508 installed software in a non-standard prefix.
17510 Alternatively, you may set the environment variables XVMC_CFLAGS
17511 and XVMC_LIBS to avoid the need to call pkg-config.
17512 See the pkg-config man page for more details.
17514 elif test $pkg_failed = untried; then
17515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17517 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17518 is in your PATH or set the PKG_CONFIG environment variable to the full
17519 path to pkg-config.
17521 Alternatively, you may set the environment variables XVMC_CFLAGS
17522 and XVMC_LIBS to avoid the need to call pkg-config.
17523 See the pkg-config man page for more details.
17525 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17526 See \`config.log' for more details" "$LINENO" 5; }
17528 XVMC_CFLAGS=$pkg_cv_XVMC_CFLAGS
17529 XVMC_LIBS=$pkg_cv_XVMC_LIBS
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17531 $as_echo "yes" >&6; }
17535 # Checks for library functions.
17536 for ac_func in shmat
17538 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
17539 if test "x$ac_cv_func_shmat" = xyes; then :
17540 cat >>confdefs.h <<_ACEOF
17541 #define HAVE_SHMAT 1
17548 # Allow checking code with lint, sparse, etc.
17554 # Check whether --with-lint was given.
17555 if test "${with_lint+set}" = set; then :
17556 withval=$with_lint; use_lint=$withval
17562 # Obtain platform specific info like program name and options
17563 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
17565 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
17567 lint_options="-badflag"
17569 *freebsd* | *netbsd*)
17571 lint_options="-u -b"
17575 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
17579 # Test for the presence of the program (either guessed by the code or spelled out by the user)
17580 if test "x$use_lint" = x"yes" ; then
17581 # Extract the first word of "$lint_name", so it can be a program name with args.
17582 set dummy $lint_name; ac_word=$2
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17584 $as_echo_n "checking for $ac_word... " >&6; }
17585 if ${ac_cv_path_LINT+:} false; then :
17586 $as_echo_n "(cached) " >&6
17590 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
17593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17594 for as_dir in $PATH
17597 test -z "$as_dir" && as_dir=.
17598 for ac_exec_ext in '' $ac_executable_extensions; do
17599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17600 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
17601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17611 LINT=$ac_cv_path_LINT
17612 if test -n "$LINT"; then
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
17614 $as_echo "$LINT" >&6; }
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17617 $as_echo "no" >&6; }
17621 if test "x$LINT" = "x"; then
17622 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
17624 elif test "x$use_lint" = x"no" ; then
17625 if test "x$LINT" != "x"; then
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
17627 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
17630 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
17633 # User supplied flags override default flags
17634 if test "x$LINT_FLAGS" != "x"; then
17635 lint_options=$LINT_FLAGS
17638 LINT_FLAGS=$lint_options
17640 if test "x$LINT" != x; then
17650 LINT_FLAGS="${LINT_FLAGS} ${XVMC_CFLAGS}"
17652 ac_config_files="$ac_config_files Makefile include/Makefile include/X11/Makefile include/X11/extensions/Makefile src/Makefile wrapper/Makefile xvmc.pc"
17654 cat >confcache <<\_ACEOF
17655 # This file is a shell script that caches the results of configure
17656 # tests run on this system so they can be shared between configure
17657 # scripts and configure runs, see configure's option --config-cache.
17658 # It is not useful on other systems. If it contains results you don't
17659 # want to keep, you may remove or edit it.
17661 # config.status only pays attention to the cache file if you give it
17662 # the --recheck option to rerun configure.
17664 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17665 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17666 # following values.
17670 # The following way of writing the cache mishandles newlines in values,
17671 # but we know of no workaround that is simple, portable, and efficient.
17672 # So, we kill variables containing newlines.
17673 # Ultrix sh set writes to stderr and can't be redirected directly,
17674 # and sets the high bit in the cache file unless we assign to the vars.
17676 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17677 eval ac_val=\$$ac_var
17681 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17682 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17685 _ | IFS | as_nl) ;; #(
17686 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17687 *) { eval $ac_var=; unset $ac_var;} ;;
17693 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17694 *${as_nl}ac_space=\ *)
17695 # `set' does not quote correctly, so add quotes: double-quote
17696 # substitution turns \\\\ into \\, and sed turns \\ into \.
17699 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17702 # `set' quotes correctly as required by POSIX, so do not add quotes.
17703 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17712 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17714 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17716 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17717 if test -w "$cache_file"; then
17718 if test "x$cache_file" != "x/dev/null"; then
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17720 $as_echo "$as_me: updating cache $cache_file" >&6;}
17721 if test ! -f "$cache_file" || test -h "$cache_file"; then
17722 cat confcache >"$cache_file"
17724 case $cache_file in #(
17726 mv -f confcache "$cache_file"$$ &&
17727 mv -f "$cache_file"$$ "$cache_file" ;; #(
17729 mv -f confcache "$cache_file" ;;
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17735 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17740 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17741 # Let make expand exec_prefix.
17742 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17744 DEFS=-DHAVE_CONFIG_H
17749 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17750 # 1. Remove the extension, and $U if already installed.
17751 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17752 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17753 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17754 # will be set to the directory where LIBOBJS objects are built.
17755 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17756 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17758 LIBOBJS=$ac_libobjs
17760 LTLIBOBJS=$ac_ltlibobjs
17763 if test -n "$EXEEXT"; then
17765 am__EXEEXT_FALSE='#'
17767 am__EXEEXT_TRUE='#'
17771 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17772 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17775 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17776 as_fn_error $? "conditional \"AMDEP\" was never defined.
17777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17779 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17780 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17783 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
17784 as_fn_error $? "conditional \"LINT\" was never defined.
17785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17788 : "${CONFIG_STATUS=./config.status}"
17790 ac_clean_files_save=$ac_clean_files
17791 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17793 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17795 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17797 # Generated by $as_me.
17798 # Run this file to recreate the current configuration.
17799 # Compiler output produced by configure, useful for debugging
17800 # configure, is in config.log if it exists.
17803 ac_cs_recheck=false
17806 SHELL=\${CONFIG_SHELL-$SHELL}
17809 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17810 ## -------------------- ##
17811 ## M4sh Initialization. ##
17812 ## -------------------- ##
17814 # Be more Bourne compatible
17815 DUALCASE=1; export DUALCASE # for MKS sh
17816 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17819 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17820 # is contrary to our usage. Disable this feature.
17821 alias -g '${1+"$@"}'='"$@"'
17822 setopt NO_GLOB_SUBST
17824 case `(set -o) 2>/dev/null` in #(
17836 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17837 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17838 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17839 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17840 # Prefer a ksh shell builtin over an external printf program on Solaris,
17841 # but without wasting forks for bash or zsh.
17842 if test -z "$BASH_VERSION$ZSH_VERSION" \
17843 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17844 as_echo='print -r --'
17845 as_echo_n='print -rn --'
17846 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17847 as_echo='printf %s\n'
17848 as_echo_n='printf %s'
17850 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17851 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17852 as_echo_n='/usr/ucb/echo -n'
17854 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17855 as_echo_n_body='eval
17859 expr "X$arg" : "X\\(.*\\)$as_nl";
17860 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17862 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17864 export as_echo_n_body
17865 as_echo_n='sh -c $as_echo_n_body as_echo'
17867 export as_echo_body
17868 as_echo='sh -c $as_echo_body as_echo'
17871 # The user is always right.
17872 if test "${PATH_SEPARATOR+set}" != set; then
17874 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17875 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17882 # We need space, tab and new line, in precisely that order. Quoting is
17883 # there to prevent editors from complaining about space-tab.
17884 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17885 # splitting by setting IFS to empty value.)
17888 # Find who we are. Look in the path if we contain no directory separator.
17891 *[\\/]* ) as_myself=$0 ;;
17892 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17893 for as_dir in $PATH
17896 test -z "$as_dir" && as_dir=.
17897 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17903 # We did not find ourselves, most probably we were run as `sh COMMAND'
17904 # in which case we are not to be found in the path.
17905 if test "x$as_myself" = x; then
17908 if test ! -f "$as_myself"; then
17909 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17913 # Unset variables that we do not need and which cause bugs (e.g. in
17914 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17915 # suppresses any "Segmentation fault" message there. '((' could
17916 # trigger a bug in pdksh 5.2.14.
17917 for as_var in BASH_ENV ENV MAIL MAILPATH
17918 do eval test x\${$as_var+set} = xset \
17919 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17932 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17935 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17936 # ----------------------------------------
17937 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17938 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17939 # script with STATUS, using 1 if that was 0.
17942 as_status=$1; test $as_status -eq 0 && as_status=1
17944 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17945 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17947 $as_echo "$as_me: error: $2" >&2
17948 as_fn_exit $as_status
17952 # as_fn_set_status STATUS
17953 # -----------------------
17954 # Set $? to STATUS, without forking.
17955 as_fn_set_status ()
17958 } # as_fn_set_status
17960 # as_fn_exit STATUS
17961 # -----------------
17962 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17966 as_fn_set_status $1
17972 # Portably unset VAR.
17975 { eval $1=; unset $1;}
17977 as_unset=as_fn_unset
17978 # as_fn_append VAR VALUE
17979 # ----------------------
17980 # Append the text in VALUE to the end of the definition contained in VAR. Take
17981 # advantage of any shell optimizations that allow amortized linear growth over
17982 # repeated appends, instead of the typical quadratic growth present in naive
17984 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17985 eval 'as_fn_append ()
17996 # as_fn_arith ARG...
17997 # ------------------
17998 # Perform arithmetic evaluation on the ARGs, and store the result in the
17999 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18000 # must be portable across $(()) and expr.
18001 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18002 eval 'as_fn_arith ()
18009 as_val=`expr "$@" || test $? -eq 1`
18014 if expr a : '\(a\)' >/dev/null 2>&1 &&
18015 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18021 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18022 as_basename=basename
18027 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18033 as_me=`$as_basename -- "$0" ||
18034 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18035 X"$0" : 'X\(//\)$' \| \
18036 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18038 sed '/^.*\/\([^/][^/]*\)\/*$/{
18052 # Avoid depending upon Character Ranges.
18053 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18054 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18055 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18056 as_cr_digits='0123456789'
18057 as_cr_alnum=$as_cr_Letters$as_cr_digits
18059 ECHO_C= ECHO_N= ECHO_T=
18060 case `echo -n x` in #(((((
18062 case `echo 'xy\c'` in
18063 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18065 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18072 rm -f conf$$ conf$$.exe conf$$.file
18073 if test -d conf$$.dir; then
18074 rm -f conf$$.dir/conf$$.file
18077 mkdir conf$$.dir 2>/dev/null
18079 if (echo >conf$$.file) 2>/dev/null; then
18080 if ln -s conf$$.file conf$$ 2>/dev/null; then
18082 # ... but there are two gotchas:
18083 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18084 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18085 # In both cases, we have to default to `cp -p'.
18086 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18088 elif ln conf$$.file conf$$ 2>/dev/null; then
18096 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18097 rmdir conf$$.dir 2>/dev/null
18102 # Create "$as_dir" as a directory, including parents if necessary.
18107 -*) as_dir=./$as_dir;;
18109 test -d "$as_dir" || eval $as_mkdir_p || {
18113 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18114 *) as_qdir=$as_dir;;
18116 as_dirs="'$as_qdir' $as_dirs"
18117 as_dir=`$as_dirname -- "$as_dir" ||
18118 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18119 X"$as_dir" : 'X\(//\)[^/]' \| \
18120 X"$as_dir" : 'X\(//\)$' \| \
18121 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18122 $as_echo X"$as_dir" |
18123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18127 /^X\(\/\/\)[^/].*/{
18140 test -d "$as_dir" && break
18142 test -z "$as_dirs" || eval "mkdir $as_dirs"
18143 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18147 if mkdir -p . 2>/dev/null; then
18148 as_mkdir_p='mkdir -p "$as_dir"'
18150 test -d ./-p && rmdir ./-p
18154 if test -x / >/dev/null 2>&1; then
18155 as_test_x='test -x'
18157 if ls -dL / >/dev/null 2>&1; then
18164 if test -d "$1"; then
18170 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18171 ???[sx]*):;;*)false;;esac;fi
18175 as_executable_p=$as_test_x
18177 # Sed expression to map a string onto a valid CPP name.
18178 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18180 # Sed expression to map a string onto a valid variable name.
18181 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18185 ## ----------------------------------- ##
18186 ## Main body of $CONFIG_STATUS script. ##
18187 ## ----------------------------------- ##
18189 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18192 # Save the log message, to keep $0 and so on meaningful, and to
18193 # report actual input values of CONFIG_FILES etc. instead of their
18194 # values after options handling.
18196 This file was extended by libXvMC $as_me 1.0.7, which was
18197 generated by GNU Autoconf 2.68. Invocation command line was
18199 CONFIG_FILES = $CONFIG_FILES
18200 CONFIG_HEADERS = $CONFIG_HEADERS
18201 CONFIG_LINKS = $CONFIG_LINKS
18202 CONFIG_COMMANDS = $CONFIG_COMMANDS
18205 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18210 case $ac_config_files in *"
18211 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18214 case $ac_config_headers in *"
18215 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18220 # Files that config.status was made for.
18221 config_files="$ac_config_files"
18222 config_headers="$ac_config_headers"
18223 config_commands="$ac_config_commands"
18227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18229 \`$as_me' instantiates files and other configuration actions
18230 from templates according to the current configuration. Unless the files
18231 and actions are specified as TAGs, all are instantiated by default.
18233 Usage: $0 [OPTION]... [TAG]...
18235 -h, --help print this help, then exit
18236 -V, --version print version number and configuration settings, then exit
18237 --config print configuration, then exit
18238 -q, --quiet, --silent
18239 do not print progress messages
18240 -d, --debug don't remove temporary files
18241 --recheck update $as_me by reconfiguring in the same conditions
18242 --file=FILE[:TEMPLATE]
18243 instantiate the configuration file FILE
18244 --header=FILE[:TEMPLATE]
18245 instantiate the configuration header FILE
18247 Configuration files:
18250 Configuration headers:
18253 Configuration commands:
18256 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18260 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18262 libXvMC config.status 1.0.7
18263 configured by $0, generated by GNU Autoconf 2.68,
18264 with options \\"\$ac_cs_config\\"
18266 Copyright (C) 2010 Free Software Foundation, Inc.
18267 This config.status script is free software; the Free Software Foundation
18268 gives unlimited permission to copy, distribute and modify it."
18275 test -n "\$AWK" || AWK=awk
18278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18279 # The default lists apply if the user does not specify any file.
18285 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18286 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18290 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18302 # Handling of the options.
18303 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18305 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18306 $as_echo "$ac_cs_version"; exit ;;
18307 --config | --confi | --conf | --con | --co | --c )
18308 $as_echo "$ac_cs_config"; exit ;;
18309 --debug | --debu | --deb | --de | --d | -d )
18311 --file | --fil | --fi | --f )
18314 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18315 '') as_fn_error $? "missing file argument" ;;
18317 as_fn_append CONFIG_FILES " '$ac_optarg'"
18318 ac_need_defaults=false;;
18319 --header | --heade | --head | --hea )
18322 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18324 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18325 ac_need_defaults=false;;
18327 # Conflict between --help and --header
18328 as_fn_error $? "ambiguous option: \`$1'
18329 Try \`$0 --help' for more information.";;
18330 --help | --hel | -h )
18331 $as_echo "$ac_cs_usage"; exit ;;
18332 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18333 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18336 # This is an error.
18337 -*) as_fn_error $? "unrecognized option: \`$1'
18338 Try \`$0 --help' for more information." ;;
18340 *) as_fn_append ac_config_targets " $1"
18341 ac_need_defaults=false ;;
18347 ac_configure_extra_args=
18349 if $ac_cs_silent; then
18351 ac_configure_extra_args="$ac_configure_extra_args --silent"
18355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18356 if \$ac_cs_recheck; then
18357 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18359 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18360 CONFIG_SHELL='$SHELL'
18361 export CONFIG_SHELL
18366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18370 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18371 ## Running $as_me. ##
18377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18381 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18384 # The HP-UX ksh and POSIX shell print the target directory to stdout
18385 # if CDPATH is set.
18386 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18388 sed_quote_subst='$sed_quote_subst'
18389 double_quote_subst='$double_quote_subst'
18390 delay_variable_subst='$delay_variable_subst'
18391 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18392 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18393 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18394 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18395 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18396 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18397 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18398 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18399 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18400 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18401 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18402 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18403 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18404 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18405 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18406 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18407 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18408 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18409 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18410 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18411 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18412 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18413 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18414 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18415 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18416 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18417 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18418 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18419 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18420 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18421 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18422 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18423 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18424 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18425 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18426 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18427 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18428 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18429 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18430 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18431 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18432 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18433 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18434 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18435 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18436 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18437 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18438 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18439 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18440 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18441 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18442 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18443 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18444 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18445 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18446 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"`'
18447 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18448 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18449 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18450 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18451 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18452 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18453 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18454 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18455 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18456 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18457 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18458 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18459 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18460 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18461 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18462 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18463 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18464 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18465 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18466 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18467 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18468 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18469 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18470 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18471 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18472 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18473 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18474 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18475 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18476 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18477 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18478 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18479 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18480 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18481 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18482 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18483 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18484 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18485 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18486 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18487 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18488 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18489 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18490 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18491 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18492 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18493 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18494 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18495 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18496 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18497 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18498 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18499 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18500 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18501 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18502 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18503 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18504 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18505 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18506 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18507 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18508 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18509 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18510 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18511 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18512 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18513 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18514 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18515 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18516 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18517 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18518 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18519 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18520 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18523 LTCFLAGS='$LTCFLAGS'
18524 compiler='$compiler_DEFAULT'
18526 # A function that is used when there is no print builtin or printf.
18527 func_fallback_echo ()
18529 eval 'cat <<_LTECHO_EOF
18534 # Quote evaled strings.
18548 deplibs_check_method \
18553 sharedlib_from_linklib_cmd \
18556 archiver_list_spec \
18562 lt_cv_sys_global_symbol_pipe \
18563 lt_cv_sys_global_symbol_to_cdecl \
18564 lt_cv_sys_global_symbol_to_c_name_address \
18565 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18566 nm_file_list_spec \
18567 lt_prog_compiler_no_builtin_flag \
18568 lt_prog_compiler_pic \
18569 lt_prog_compiler_wl \
18570 lt_prog_compiler_static \
18571 lt_cv_prog_compiler_c_o \
18580 export_dynamic_flag_spec \
18581 whole_archive_flag_spec \
18582 compiler_needs_object \
18584 allow_undefined_flag \
18585 no_undefined_flag \
18586 hardcode_libdir_flag_spec \
18587 hardcode_libdir_flag_spec_ld \
18588 hardcode_libdir_separator \
18592 variables_saved_for_relink \
18594 library_names_spec \
18596 install_override_mode \
18600 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18601 *[\\\\\\\`\\"\\\$]*)
18602 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18605 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18610 # Double-quote double-evaled strings.
18611 for var in reload_cmds \
18612 old_postinstall_cmds \
18613 old_postuninstall_cmds \
18615 extract_expsyms_cmds \
18616 old_archive_from_new_cmds \
18617 old_archive_from_expsyms_cmds \
18619 archive_expsym_cmds \
18621 module_expsym_cmds \
18622 export_symbols_cmds \
18626 postuninstall_cmds \
18628 sys_lib_search_path_spec \
18629 sys_lib_dlsearch_path_spec; do
18630 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18631 *[\\\\\\\`\\"\\\$]*)
18632 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18635 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18640 ac_aux_dir='$ac_aux_dir'
18641 xsi_shell='$xsi_shell'
18642 lt_shell_append='$lt_shell_append'
18644 # See if we are running on zsh, and set the options which allow our
18645 # commands through without removal of \ escapes INIT.
18646 if test -n "\${ZSH_VERSION+set}" ; then
18647 setopt NO_GLOB_SUBST
18653 TIMESTAMP='$TIMESTAMP'
18662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18664 # Handling of arguments.
18665 for ac_config_target in $ac_config_targets
18667 case $ac_config_target in
18668 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18669 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18670 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18671 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18672 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18673 "include/X11/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/Makefile" ;;
18674 "include/X11/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/extensions/Makefile" ;;
18675 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18676 "wrapper/Makefile") CONFIG_FILES="$CONFIG_FILES wrapper/Makefile" ;;
18677 "xvmc.pc") CONFIG_FILES="$CONFIG_FILES xvmc.pc" ;;
18679 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18684 # If the user did not use the arguments to specify the items to instantiate,
18685 # then the envvar interface is used. Set only those that are not.
18686 # We use the long form for the default assignment because of an extremely
18687 # bizarre bug on SunOS 4.1.3.
18688 if $ac_need_defaults; then
18689 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18690 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18691 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18694 # Have a temporary directory for convenience. Make it in the build tree
18695 # simply because there is no reason against having it here, and in addition,
18696 # creating and moving files from /tmp can sometimes cause problems.
18697 # Hook for its removal unless debugging.
18698 # Note that there is a small window in which the directory will not be cleaned:
18699 # after its creation but before its name has been assigned to `$tmp'.
18703 trap 'exit_status=$?
18704 : "${ac_tmp:=$tmp}"
18705 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18707 trap 'as_fn_exit 1' 1 2 13 15
18709 # Create a (secure) tmp directory for tmp files.
18712 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18716 tmp=./conf$$-$RANDOM
18717 (umask 077 && mkdir "$tmp")
18718 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18721 # Set up the scripts for CONFIG_FILES section.
18722 # No need to generate them if there are no CONFIG_FILES.
18723 # This happens for instance with `./config.status config.h'.
18724 if test -n "$CONFIG_FILES"; then
18727 ac_cr=`echo X | tr X '\015'`
18728 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18729 # But we know of no other shell where ac_cr would be empty at this
18730 # point, so we can use a bashism as a fallback.
18731 if test "x$ac_cr" = x; then
18732 eval ac_cr=\$\'\\r\'
18734 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18735 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18738 ac_cs_awk_cr=$ac_cr
18741 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18746 echo "cat >conf$$subs.awk <<_ACEOF" &&
18747 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18749 } >conf$$subs.sh ||
18750 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18751 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18753 for ac_last_try in false false false false false :; do
18754 . ./conf$$subs.sh ||
18755 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18757 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18758 if test $ac_delim_n = $ac_delim_num; then
18760 elif $ac_last_try; then
18761 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18763 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18766 rm -f conf$$subs.sh
18768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18769 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18773 s/^/S["/; s/!.*/"]=/
18783 s/\(.\{148\}\)..*/\1/
18785 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18790 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18797 s/\(.\{148\}\)..*/\1/
18799 s/["\\]/\\&/g; s/^/"/; s/$/"/
18803 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18808 ' <conf$$subs.awk | sed '
18813 ' >>$CONFIG_STATUS || ac_write_fail=1
18814 rm -f conf$$subs.awk
18815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18817 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18818 for (key in S) S_is_set[key] = 1
18824 nfields = split(line, field, "@")
18826 len = length(field[1])
18827 for (i = 2; i < nfields; i++) {
18829 keylen = length(key)
18830 if (S_is_set[key]) {
18832 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18833 len += length(value) + length(field[++i])
18844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18845 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18846 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18849 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18850 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18853 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18854 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18855 # trailing colons and then remove the whole line if VPATH becomes empty
18856 # (actually we leave an empty line to preserve line numbers).
18857 if test "x$srcdir" = x.; then
18858 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18877 fi # test -n "$CONFIG_FILES"
18879 # Set up the scripts for CONFIG_HEADERS section.
18880 # No need to generate them if there are no CONFIG_HEADERS.
18881 # This happens for instance with `./config.status Makefile'.
18882 if test -n "$CONFIG_HEADERS"; then
18883 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18887 # Transform confdefs.h into an awk script `defines.awk', embedded as
18888 # here-document in config.status, that substitutes the proper values into
18889 # config.h.in to produce config.h.
18891 # Create a delimiter string that does not exist in confdefs.h, to ease
18892 # handling of long lines.
18894 for ac_last_try in false false :; do
18895 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18896 if test -z "$ac_tt"; then
18898 elif $ac_last_try; then
18899 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18901 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18905 # For the awk script, D is an array of macro values keyed by name,
18906 # likewise P contains macro parameters if any. Preserve backslash
18907 # newline sequences.
18909 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18911 s/.\{148\}/&'"$ac_delim"'/g
18914 s/^[ ]*#[ ]*define[ ][ ]*/ /
18921 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18923 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18927 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18928 D["\1"]=" \3\\\\\\n"\\/p
18930 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18935 s/.\{148\}/&'"$ac_delim"'/g
18940 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18943 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18945 ' <confdefs.h | sed '
18946 s/'"$ac_delim"'/"\\\
18947 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18950 for (key in D) D_is_set[key] = 1
18953 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18955 split(line, arg, " ")
18956 if (arg[1] == "#") {
18960 defundef = substr(arg[1], 2)
18963 split(mac1, mac2, "(") #)
18965 prefix = substr(line, 1, index(line, defundef) - 1)
18966 if (D_is_set[macro]) {
18967 # Preserve the white space surrounding the "#".
18968 print prefix "define", macro P[macro] D[macro]
18971 # Replace #undef with comments. This is necessary, for example,
18972 # in the case of _POSIX_SOURCE, which is predefined and required
18973 # on some systems where configure will not decide to define it.
18974 if (defundef == "undef") {
18975 print "/*", prefix defundef, macro, "*/"
18983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18984 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18985 fi # test -n "$CONFIG_HEADERS"
18988 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18993 :[FHLC]) ac_mode=$ac_tag; continue;;
18995 case $ac_mode$ac_tag in
18997 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18998 :[FH]-) ac_tag=-:-;;
18999 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19016 -) ac_f="$ac_tmp/stdin";;
19017 *) # Look for the file first in the build tree, then in the source tree
19018 # (if the path is not absolute). The absolute path cannot be DOS-style,
19019 # because $ac_f cannot contain `:'.
19023 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19025 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19027 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19028 as_fn_append ac_file_inputs " '$ac_f'"
19031 # Let's still pretend it is `configure' which instantiates (i.e., don't
19032 # use $as_me), people would be surprised to read:
19033 # /* config.h. Generated by config.status. */
19034 configure_input='Generated from '`
19035 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19037 if test x"$ac_file" != x-; then
19038 configure_input="$ac_file. $configure_input"
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19040 $as_echo "$as_me: creating $ac_file" >&6;}
19042 # Neutralize special characters interpreted by sed in replacement strings.
19043 case $configure_input in #(
19044 *\&* | *\|* | *\\* )
19045 ac_sed_conf_input=`$as_echo "$configure_input" |
19046 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19047 *) ac_sed_conf_input=$configure_input;;
19051 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19052 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19057 ac_dir=`$as_dirname -- "$ac_file" ||
19058 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19059 X"$ac_file" : 'X\(//\)[^/]' \| \
19060 X"$ac_file" : 'X\(//\)$' \| \
19061 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19062 $as_echo X"$ac_file" |
19063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19067 /^X\(\/\/\)[^/].*/{
19080 as_dir="$ac_dir"; as_fn_mkdir_p
19084 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19086 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19087 # A ".." for each directory in $ac_dir_suffix.
19088 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19089 case $ac_top_builddir_sub in
19090 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19091 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19094 ac_abs_top_builddir=$ac_pwd
19095 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19096 # for backward compatibility:
19097 ac_top_builddir=$ac_top_build_prefix
19100 .) # We are building in place.
19102 ac_top_srcdir=$ac_top_builddir_sub
19103 ac_abs_top_srcdir=$ac_pwd ;;
19104 [\\/]* | ?:[\\/]* ) # Absolute name.
19105 ac_srcdir=$srcdir$ac_dir_suffix;
19106 ac_top_srcdir=$srcdir
19107 ac_abs_top_srcdir=$srcdir ;;
19108 *) # Relative name.
19109 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19110 ac_top_srcdir=$ac_top_build_prefix$srcdir
19111 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19113 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19123 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19124 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19126 ac_MKDIR_P=$MKDIR_P
19128 [\\/$]* | ?:[\\/]* ) ;;
19129 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19134 # If the template does not know about datarootdir, expand it.
19135 # FIXME: This hack should be removed a few years after 2.60.
19136 ac_datarootdir_hack=; ac_datarootdir_seen=
19147 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19148 *datarootdir*) ac_datarootdir_seen=yes;;
19149 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19151 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19154 ac_datarootdir_hack='
19155 s&@datadir@&$datadir&g
19156 s&@docdir@&$docdir&g
19157 s&@infodir@&$infodir&g
19158 s&@localedir@&$localedir&g
19159 s&@mandir@&$mandir&g
19160 s&\\\${datarootdir}&$datarootdir&g' ;;
19164 # Neutralize VPATH when `$srcdir' = `.'.
19165 # Shell code in configure.ac might set extrasub.
19166 # FIXME: do we really want to maintain this feature?
19167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19168 ac_sed_extra="$ac_vpsub
19171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19174 s|@configure_input@|$ac_sed_conf_input|;t t
19175 s&@top_builddir@&$ac_top_builddir_sub&;t t
19176 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19177 s&@srcdir@&$ac_srcdir&;t t
19178 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19179 s&@top_srcdir@&$ac_top_srcdir&;t t
19180 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19181 s&@builddir@&$ac_builddir&;t t
19182 s&@abs_builddir@&$ac_abs_builddir&;t t
19183 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19184 s&@INSTALL@&$ac_INSTALL&;t t
19185 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19186 $ac_datarootdir_hack
19188 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19189 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19191 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19192 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19193 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19194 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19196 which seems to be undefined. Please make sure it is defined" >&5
19197 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19198 which seems to be undefined. Please make sure it is defined" >&2;}
19200 rm -f "$ac_tmp/stdin"
19202 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19203 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19205 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19211 if test x"$ac_file" != x-; then
19213 $as_echo "/* $configure_input */" \
19214 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19215 } >"$ac_tmp/config.h" \
19216 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19217 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19219 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19222 mv "$ac_tmp/config.h" "$ac_file" \
19223 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19226 $as_echo "/* $configure_input */" \
19227 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19228 || as_fn_error $? "could not create -" "$LINENO" 5
19230 # Compute "$ac_file"'s index in $config_headers.
19233 for _am_header in $config_headers :; do
19234 case $_am_header in
19235 $_am_arg | $_am_arg:* )
19238 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19241 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19242 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19243 X"$_am_arg" : 'X\(//\)[^/]' \| \
19244 X"$_am_arg" : 'X\(//\)$' \| \
19245 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19246 $as_echo X"$_am_arg" |
19247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19251 /^X\(\/\/\)[^/].*/{
19263 s/.*/./; q'`/stamp-h$_am_stamp_count
19266 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19267 $as_echo "$as_me: executing $ac_file commands" >&6;}
19272 case $ac_file$ac_mode in
19273 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19274 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19275 # are listed without --file. Let's play safe and only enable the eval
19276 # if we detect the quoting.
19277 case $CONFIG_FILES in
19278 *\'*) eval set x "$CONFIG_FILES" ;;
19279 *) set x $CONFIG_FILES ;;
19284 # Strip MF so we end up with the name of the file.
19285 mf=`echo "$mf" | sed -e 's/:.*$//'`
19286 # Check whether this is an Automake generated Makefile or not.
19287 # We used to match only the files named `Makefile.in', but
19288 # some people rename them; so instead we look at the file content.
19289 # Grep'ing the first line is not enough: some people post-process
19290 # each Makefile.in and add a new line on top of each file to say so.
19291 # Grep'ing the whole file is not good either: AIX grep has a line
19292 # limit of 2048, but all sed's we know have understand at least 4000.
19293 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19294 dirpart=`$as_dirname -- "$mf" ||
19295 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19296 X"$mf" : 'X\(//\)[^/]' \| \
19297 X"$mf" : 'X\(//\)$' \| \
19298 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19304 /^X\(\/\/\)[^/].*/{
19320 # Extract the definition of DEPDIR, am__include, and am__quote
19321 # from the Makefile without running `make'.
19322 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19323 test -z "$DEPDIR" && continue
19324 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19325 test -z "am__include" && continue
19326 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19327 # When using ansi2knr, U may be empty or an underscore; expand it
19328 U=`sed -n 's/^U = //p' < "$mf"`
19329 # Find all dependency output files, they are included files with
19330 # $(DEPDIR) in their names. We invoke sed twice because it is the
19331 # simplest approach to changing $(DEPDIR) to its actual value in the
19333 for file in `sed -n "
19334 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19335 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19336 # Make sure the directory exists.
19337 test -f "$dirpart/$file" && continue
19338 fdir=`$as_dirname -- "$file" ||
19339 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19340 X"$file" : 'X\(//\)[^/]' \| \
19341 X"$file" : 'X\(//\)$' \| \
19342 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19343 $as_echo X"$file" |
19344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19348 /^X\(\/\/\)[^/].*/{
19361 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19362 # echo "creating $dirpart/$file"
19363 echo '# dummy' > "$dirpart/$file"
19370 # See if we are running on zsh, and set the options which allow our
19371 # commands through without removal of \ escapes.
19372 if test -n "${ZSH_VERSION+set}" ; then
19373 setopt NO_GLOB_SUBST
19376 cfgfile="${ofile}T"
19377 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19380 cat <<_LT_EOF >> "$cfgfile"
19383 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19384 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19385 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19386 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19388 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19389 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19391 # Written by Gordon Matzigkeit, 1996
19393 # This file is part of GNU Libtool.
19395 # GNU Libtool is free software; you can redistribute it and/or
19396 # modify it under the terms of the GNU General Public License as
19397 # published by the Free Software Foundation; either version 2 of
19398 # the License, or (at your option) any later version.
19400 # As a special exception to the GNU General Public License,
19401 # if you distribute this file as part of a program or library that
19402 # is built using GNU Libtool, you may include this file under the
19403 # same distribution terms that you use for the rest of that program.
19405 # GNU Libtool is distributed in the hope that it will be useful,
19406 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19407 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19408 # GNU General Public License for more details.
19410 # You should have received a copy of the GNU General Public License
19411 # along with GNU Libtool; see the file COPYING. If not, a copy
19412 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19413 # obtained by writing to the Free Software Foundation, Inc.,
19414 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19417 # The names of the tagged configurations supported by this script.
19420 # ### BEGIN LIBTOOL CONFIG
19422 # Which release of libtool.m4 was used?
19423 macro_version=$macro_version
19424 macro_revision=$macro_revision
19426 # Whether or not to build shared libraries.
19427 build_libtool_libs=$enable_shared
19429 # Whether or not to build static libraries.
19430 build_old_libs=$enable_static
19432 # What type of objects to build.
19435 # Whether or not to optimize for fast installation.
19436 fast_install=$enable_fast_install
19438 # Shell to use when invoking shell scripts.
19441 # An echo program that protects backslashes.
19445 host_alias=$host_alias
19449 # The build system.
19450 build_alias=$build_alias
19454 # A sed program that does not truncate output.
19457 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19458 Xsed="\$SED -e 1s/^X//"
19460 # A grep program that handles long lines.
19466 # A literal string matcher.
19469 # A BSD- or MS-compatible name lister.
19472 # Whether we need soft or hard links.
19475 # What is the maximum length of a command?
19476 max_cmd_len=$max_cmd_len
19478 # Object file suffix (normally "o").
19481 # Executable file suffix (normally "").
19484 # whether the shell understands "unset".
19487 # turn spaces into newlines.
19490 # turn newlines into spaces.
19493 # convert \$build file names to \$host format.
19494 to_host_file_cmd=$lt_cv_to_host_file_cmd
19496 # convert \$build files to toolchain format.
19497 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19499 # An object symbol dumper.
19500 OBJDUMP=$lt_OBJDUMP
19502 # Method to check whether dependent libraries are shared objects.
19503 deplibs_check_method=$lt_deplibs_check_method
19505 # Command to use when deplibs_check_method = "file_magic".
19506 file_magic_cmd=$lt_file_magic_cmd
19508 # How to find potential files when deplibs_check_method = "file_magic".
19509 file_magic_glob=$lt_file_magic_glob
19511 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19512 want_nocaseglob=$lt_want_nocaseglob
19514 # DLL creation program.
19515 DLLTOOL=$lt_DLLTOOL
19517 # Command to associate shared and link libraries.
19518 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19523 # Flags to create an archive.
19524 AR_FLAGS=$lt_AR_FLAGS
19526 # How to feed a file listing to the archiver.
19527 archiver_list_spec=$lt_archiver_list_spec
19529 # A symbol stripping program.
19532 # Commands used to install an old-style archive.
19534 old_postinstall_cmds=$lt_old_postinstall_cmds
19535 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19537 # Whether to use a lock for old archive extraction.
19538 lock_old_archive_extraction=$lock_old_archive_extraction
19543 # LTCC compiler flags.
19544 LTCFLAGS=$lt_CFLAGS
19546 # Take the output of nm and produce a listing of raw symbols and C names.
19547 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19549 # Transform the output of nm in a proper C declaration.
19550 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19552 # Transform the output of nm in a C name address pair.
19553 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19555 # Transform the output of nm in a C name address pair when lib prefix is needed.
19556 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19558 # Specify filename containing input files for \$NM.
19559 nm_file_list_spec=$lt_nm_file_list_spec
19561 # The root where to search for dependent libraries,and in which our libraries should be installed.
19562 lt_sysroot=$lt_sysroot
19564 # The name of the directory that contains temporary libtool files.
19567 # Used to examine libraries when file_magic_cmd begins with "file".
19568 MAGIC_CMD=$MAGIC_CMD
19570 # Must we lock files when doing compilation?
19571 need_locks=$lt_need_locks
19574 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19576 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19577 DSYMUTIL=$lt_DSYMUTIL
19579 # Tool to change global to local symbols on Mac OS X.
19582 # Tool to manipulate fat objects and archives on Mac OS X.
19585 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19588 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19589 OTOOL64=$lt_OTOOL64
19591 # Old archive suffix (normally "a").
19594 # Shared library suffix (normally ".so").
19595 shrext_cmds=$lt_shrext_cmds
19597 # The commands to extract the exported symbol list from a shared archive.
19598 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19600 # Variables whose values should be saved in libtool wrapper scripts and
19601 # restored at link time.
19602 variables_saved_for_relink=$lt_variables_saved_for_relink
19604 # Do we need the "lib" prefix for modules?
19605 need_lib_prefix=$need_lib_prefix
19607 # Do we need a version for libraries?
19608 need_version=$need_version
19610 # Library versioning type.
19611 version_type=$version_type
19613 # Shared library runtime path variable.
19614 runpath_var=$runpath_var
19616 # Shared library path variable.
19617 shlibpath_var=$shlibpath_var
19619 # Is shlibpath searched before the hard-coded library search path?
19620 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19622 # Format of library name prefix.
19623 libname_spec=$lt_libname_spec
19625 # List of archive names. First name is the real one, the rest are links.
19626 # The last name is the one that the linker finds with -lNAME
19627 library_names_spec=$lt_library_names_spec
19629 # The coded name of the library, if different from the real name.
19630 soname_spec=$lt_soname_spec
19632 # Permission mode override for installation of shared libraries.
19633 install_override_mode=$lt_install_override_mode
19635 # Command to use after installation of a shared archive.
19636 postinstall_cmds=$lt_postinstall_cmds
19638 # Command to use after uninstallation of a shared archive.
19639 postuninstall_cmds=$lt_postuninstall_cmds
19641 # Commands used to finish a libtool library installation in a directory.
19642 finish_cmds=$lt_finish_cmds
19644 # As "finish_cmds", except a single script fragment to be evaled but
19646 finish_eval=$lt_finish_eval
19648 # Whether we should hardcode library paths into libraries.
19649 hardcode_into_libs=$hardcode_into_libs
19651 # Compile-time system search path for libraries.
19652 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19654 # Run-time system search path for libraries.
19655 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19657 # Whether dlopen is supported.
19658 dlopen_support=$enable_dlopen
19660 # Whether dlopen of programs is supported.
19661 dlopen_self=$enable_dlopen_self
19663 # Whether dlopen of statically linked programs is supported.
19664 dlopen_self_static=$enable_dlopen_self_static
19666 # Commands to strip libraries.
19667 old_striplib=$lt_old_striplib
19668 striplib=$lt_striplib
19671 # The linker used to build libraries.
19674 # How to create reloadable object files.
19675 reload_flag=$lt_reload_flag
19676 reload_cmds=$lt_reload_cmds
19678 # Commands used to build an old-style archive.
19679 old_archive_cmds=$lt_old_archive_cmds
19681 # A language specific compiler.
19684 # Is the compiler the GNU compiler?
19687 # Compiler flag to turn off builtin functions.
19688 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19690 # Additional compiler flags for building library objects.
19691 pic_flag=$lt_lt_prog_compiler_pic
19693 # How to pass a linker flag through the compiler.
19694 wl=$lt_lt_prog_compiler_wl
19696 # Compiler flag to prevent dynamic linking.
19697 link_static_flag=$lt_lt_prog_compiler_static
19699 # Does compiler simultaneously support -c and -o options?
19700 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19702 # Whether or not to add -lc for building shared libraries.
19703 build_libtool_need_lc=$archive_cmds_need_lc
19705 # Whether or not to disallow shared libs when runtime libs are static.
19706 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19708 # Compiler flag to allow reflexive dlopens.
19709 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19711 # Compiler flag to generate shared objects directly from archives.
19712 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19714 # Whether the compiler copes with passing no objects directly.
19715 compiler_needs_object=$lt_compiler_needs_object
19717 # Create an old-style archive from a shared archive.
19718 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19720 # Create a temporary old-style archive to link instead of a shared archive.
19721 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19723 # Commands used to build a shared archive.
19724 archive_cmds=$lt_archive_cmds
19725 archive_expsym_cmds=$lt_archive_expsym_cmds
19727 # Commands used to build a loadable module if different from building
19728 # a shared archive.
19729 module_cmds=$lt_module_cmds
19730 module_expsym_cmds=$lt_module_expsym_cmds
19732 # Whether we are building with GNU ld or not.
19733 with_gnu_ld=$lt_with_gnu_ld
19735 # Flag that allows shared libraries with undefined symbols to be built.
19736 allow_undefined_flag=$lt_allow_undefined_flag
19738 # Flag that enforces no undefined symbols.
19739 no_undefined_flag=$lt_no_undefined_flag
19741 # Flag to hardcode \$libdir into a binary during linking.
19742 # This must work even if \$libdir does not exist
19743 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19745 # If ld is used when linking, flag to hardcode \$libdir into a binary
19746 # during linking. This must work even if \$libdir does not exist.
19747 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19749 # Whether we need a single "-rpath" flag with a separated argument.
19750 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19752 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19753 # DIR into the resulting binary.
19754 hardcode_direct=$hardcode_direct
19756 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19757 # DIR into the resulting binary and the resulting library dependency is
19758 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19759 # library is relocated.
19760 hardcode_direct_absolute=$hardcode_direct_absolute
19762 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19763 # into the resulting binary.
19764 hardcode_minus_L=$hardcode_minus_L
19766 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19767 # into the resulting binary.
19768 hardcode_shlibpath_var=$hardcode_shlibpath_var
19770 # Set to "yes" if building a shared library automatically hardcodes DIR
19771 # into the library and all subsequent libraries and executables linked
19773 hardcode_automatic=$hardcode_automatic
19775 # Set to yes if linker adds runtime paths of dependent libraries
19776 # to runtime path list.
19777 inherit_rpath=$inherit_rpath
19779 # Whether libtool must link a program against all its dependency libraries.
19780 link_all_deplibs=$link_all_deplibs
19782 # Set to "yes" if exported symbols are required.
19783 always_export_symbols=$always_export_symbols
19785 # The commands to list exported symbols.
19786 export_symbols_cmds=$lt_export_symbols_cmds
19788 # Symbols that should not be listed in the preloaded symbols.
19789 exclude_expsyms=$lt_exclude_expsyms
19791 # Symbols that must always be exported.
19792 include_expsyms=$lt_include_expsyms
19794 # Commands necessary for linking programs (against libraries) with templates.
19795 prelink_cmds=$lt_prelink_cmds
19797 # Commands necessary for finishing linking programs.
19798 postlink_cmds=$lt_postlink_cmds
19800 # Specify filename containing input files.
19801 file_list_spec=$lt_file_list_spec
19803 # How to hardcode a shared library path into an executable.
19804 hardcode_action=$hardcode_action
19806 # ### END LIBTOOL CONFIG
19812 cat <<\_LT_EOF >> "$cfgfile"
19813 # AIX sometimes has problems with the GCC collect2 program. For some
19814 # reason, if we set the COLLECT_NAMES environment variable, the problems
19815 # vanish in a puff of smoke.
19816 if test "X${COLLECT_NAMES+set}" != Xset; then
19818 export COLLECT_NAMES
19825 ltmain="$ac_aux_dir/ltmain.sh"
19828 # We use sed instead of cat because bash on DJGPP gets confused if
19829 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19830 # text mode, it properly converts lines to CR/LF. This bash problem
19831 # is reportedly fixed, but why not run on old versions too?
19832 sed '$q' "$ltmain" >> "$cfgfile" \
19833 || (rm -f "$cfgfile"; exit 1)
19835 if test x"$xsi_shell" = xyes; then
19836 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19840 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19841 \ * ) func_dirname_result="${3}" ;;\
19843 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19844 && mv -f "$cfgfile.tmp" "$cfgfile" \
19845 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19846 test 0 -eq $? || _lt_function_replace_fail=:
19849 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19852 \ func_basename_result="${1##*/}"\
19853 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19854 && mv -f "$cfgfile.tmp" "$cfgfile" \
19855 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19856 test 0 -eq $? || _lt_function_replace_fail=:
19859 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19860 func_dirname_and_basename ()\
19863 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19864 \ * ) func_dirname_result="${3}" ;;\
19866 \ func_basename_result="${1##*/}"\
19867 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19868 && mv -f "$cfgfile.tmp" "$cfgfile" \
19869 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19870 test 0 -eq $? || _lt_function_replace_fail=:
19873 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19876 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19877 \ # positional parameters, so assign one to ordinary parameter first.\
19878 \ func_stripname_result=${3}\
19879 \ func_stripname_result=${func_stripname_result#"${1}"}\
19880 \ func_stripname_result=${func_stripname_result%"${2}"}\
19881 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19882 && mv -f "$cfgfile.tmp" "$cfgfile" \
19883 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19884 test 0 -eq $? || _lt_function_replace_fail=:
19887 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19888 func_split_long_opt ()\
19890 \ func_split_long_opt_name=${1%%=*}\
19891 \ func_split_long_opt_arg=${1#*=}\
19892 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19893 && mv -f "$cfgfile.tmp" "$cfgfile" \
19894 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19895 test 0 -eq $? || _lt_function_replace_fail=:
19898 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19899 func_split_short_opt ()\
19901 \ func_split_short_opt_arg=${1#??}\
19902 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19903 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19904 && mv -f "$cfgfile.tmp" "$cfgfile" \
19905 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19906 test 0 -eq $? || _lt_function_replace_fail=:
19909 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19913 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19914 \ *) func_lo2o_result=${1} ;;\
19916 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19917 && mv -f "$cfgfile.tmp" "$cfgfile" \
19918 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19919 test 0 -eq $? || _lt_function_replace_fail=:
19922 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19925 func_xform_result=${1%.*}.lo\
19926 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19927 && mv -f "$cfgfile.tmp" "$cfgfile" \
19928 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19929 test 0 -eq $? || _lt_function_replace_fail=:
19932 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19935 func_arith_result=$(( $* ))\
19936 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19937 && mv -f "$cfgfile.tmp" "$cfgfile" \
19938 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19939 test 0 -eq $? || _lt_function_replace_fail=:
19942 sed -e '/^func_len ()$/,/^} # func_len /c\
19945 func_len_result=${#1}\
19946 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19947 && mv -f "$cfgfile.tmp" "$cfgfile" \
19948 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19949 test 0 -eq $? || _lt_function_replace_fail=:
19953 if test x"$lt_shell_append" = xyes; then
19954 sed -e '/^func_append ()$/,/^} # func_append /c\
19957 eval "${1}+=\\${2}"\
19958 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19959 && mv -f "$cfgfile.tmp" "$cfgfile" \
19960 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19961 test 0 -eq $? || _lt_function_replace_fail=:
19964 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19965 func_append_quoted ()\
19967 \ func_quote_for_eval "${2}"\
19968 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19969 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19970 && mv -f "$cfgfile.tmp" "$cfgfile" \
19971 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19972 test 0 -eq $? || _lt_function_replace_fail=:
19975 # Save a `func_append' function call where possible by direct use of '+='
19976 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19977 && mv -f "$cfgfile.tmp" "$cfgfile" \
19978 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19979 test 0 -eq $? || _lt_function_replace_fail=:
19981 # Save a `func_append' function call even when '+=' is not available
19982 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19983 && mv -f "$cfgfile.tmp" "$cfgfile" \
19984 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19985 test 0 -eq $? || _lt_function_replace_fail=:
19988 if test x"$_lt_function_replace_fail" = x":"; then
19989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19990 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19994 mv -f "$cfgfile" "$ofile" ||
19995 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20006 ac_clean_files=$ac_clean_files_save
20008 test $ac_write_fail = 0 ||
20009 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20012 # configure is writing to config.log, and then calls config.status.
20013 # config.status does its own redirection, appending to config.log.
20014 # Unfortunately, on DOS this fails, as config.log is still kept open
20015 # by configure, so config.status won't be able to write to it; its
20016 # output is simply discarded. So we exec the FD to /dev/null,
20017 # effectively closing config.log, so it can be properly (re)opened and
20018 # appended to by config.status. When coming back to configure, we
20019 # need to make the FD available again.
20020 if test "$no_create" != yes; then
20022 ac_config_status_args=
20023 test "$silent" = yes &&
20024 ac_config_status_args="$ac_config_status_args --quiet"
20026 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20028 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20029 # would make configure fail if this is the last instruction.
20030 $ac_cs_success || as_fn_exit 1
20032 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20034 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}