2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXaw 1.0.11.
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
271 # Portably unset VAR.
274 { eval $1=; unset $1;}
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
298 # Create "$as_dir" as a directory, including parents if necessary.
303 -*) as_dir=./$as_dir;;
305 test -d "$as_dir" || eval $as_mkdir_p || {
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 test -d "$as_dir" && break
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
374 as_val=`expr "$@" || test $? -eq 1`
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
386 as_status=$1; test $as_status -eq 0 && as_status=1
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
468 # Exit status is that of the last command.
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
490 mkdir conf$$.dir 2>/dev/null
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
515 test -d ./-p && rmdir ./-p
519 if test -x / >/dev/null 2>&1; then
522 if ls -dL / >/dev/null 2>&1; then
529 if test -d "$1"; then
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
540 as_executable_p=$as_test_x
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548 SHELL=${CONFIG_SHELL-/bin/sh}
551 # Use only awk features that work with 7th edition Unix awk (1978).
552 # My, what an old awk you have, Mr. Solaris!
554 while (length(v1) && length(v2)) {
555 # Set d1 to be the next thing to compare from v1, and likewise for d2.
556 # Normally this is a single character, but if v1 and v2 contain digits,
557 # compare them as integers and fractions as strverscmp does.
558 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
559 # Split v1 and v2 into their leading digit string components d1 and d2,
560 # and advance v1 and v2 past the leading digit strings.
561 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
562 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
563 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
564 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
567 # Compare two fractions.
568 while (d1 ~ /^0/ && d2 ~ /^0/) {
569 d1 = substr(d1, 2); len1--
570 d2 = substr(d2, 2); len2--
572 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
573 # The two components differ in length, and the common prefix
574 # contains only leading zeros. Consider the longer to be less.
578 # Otherwise, compare as strings.
583 # A fraction is less than an integer.
588 # An integer is greater than a fraction.
591 # Compare two integers.
597 # The normal case, without worrying about digits.
598 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
599 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
604 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
605 # which mishandles some comparisons of empty strings to integers.
606 if (length(v2)) exit 1
607 if (length(v1)) exit 2
611 test -n "$DJDIR" || exec 7<&0 </dev/null
615 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
616 # so uname gets run too.
617 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
622 ac_default_prefix=/usr/local
624 ac_config_libobj_dir=.
631 # Identity of this package.
632 PACKAGE_NAME='libXaw'
633 PACKAGE_TARNAME='libXaw'
634 PACKAGE_VERSION='1.0.11'
635 PACKAGE_STRING='libXaw 1.0.11'
636 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
639 ac_unique_file="Makefile.am"
640 # Factoring default headers for most tests.
641 ac_includes_default="\
643 #ifdef HAVE_SYS_TYPES_H
644 # include <sys/types.h>
646 #ifdef HAVE_SYS_STAT_H
647 # include <sys/stat.h>
653 # ifdef HAVE_STDLIB_H
658 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
663 #ifdef HAVE_STRINGS_H
664 # include <strings.h>
666 #ifdef HAVE_INTTYPES_H
667 # include <inttypes.h>
676 ac_subst_vars='am__EXEEXT_FALSE
688 PLATFORM_DARWIN_FALSE
693 HAVE_STYLESHEETS_FALSE
694 HAVE_STYLESHEETS_TRUE
706 HAVE_XMLTO_TEXT_FALSE
781 MAINTAINER_MODE_FALSE
791 INSTALL_STRIP_PROGRAM
833 program_transform_name
846 enable_option_checking
847 enable_maintainer_mode
852 enable_dependency_tracking
856 enable_selective_werror
857 enable_strict_compilation
866 ac_precious_vars='build_alias
885 # Initialize some variables set by options.
887 ac_init_version=false
888 ac_unrecognized_opts=
890 # The variables have the same names as the options, with
891 # dashes changed to underlines.
899 program_transform_name=s,x,x,
907 # Installation directory options.
908 # These are left unexpanded so users can "make install exec_prefix=/foo"
909 # and all the variables that are supposed to be based on exec_prefix
910 # by default will actually change.
911 # Use braces instead of parens because sh, perl, etc. also accept them.
912 # (The list follows the same order as the GNU Coding Standards.)
913 bindir='${exec_prefix}/bin'
914 sbindir='${exec_prefix}/sbin'
915 libexecdir='${exec_prefix}/libexec'
916 datarootdir='${prefix}/share'
917 datadir='${datarootdir}'
918 sysconfdir='${prefix}/etc'
919 sharedstatedir='${prefix}/com'
920 localstatedir='${prefix}/var'
921 includedir='${prefix}/include'
922 oldincludedir='/usr/include'
923 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
924 infodir='${datarootdir}/info'
929 libdir='${exec_prefix}/lib'
930 localedir='${datarootdir}/locale'
931 mandir='${datarootdir}/man'
937 # If the previous option needs an argument, assign it.
938 if test -n "$ac_prev"; then
939 eval $ac_prev=\$ac_option
945 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950 # Accept the important Cygnus configure options, so we can diagnose typos.
952 case $ac_dashdash$ac_option in
956 -bindir | --bindir | --bindi | --bind | --bin | --bi)
958 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
961 -build | --build | --buil | --bui | --bu)
962 ac_prev=build_alias ;;
963 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
964 build_alias=$ac_optarg ;;
966 -cache-file | --cache-file | --cache-fil | --cache-fi \
967 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
968 ac_prev=cache_file ;;
969 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
970 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
971 cache_file=$ac_optarg ;;
974 cache_file=config.cache ;;
976 -datadir | --datadir | --datadi | --datad)
978 -datadir=* | --datadir=* | --datadi=* | --datad=*)
979 datadir=$ac_optarg ;;
981 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
982 | --dataroo | --dataro | --datar)
983 ac_prev=datarootdir ;;
984 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
985 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
986 datarootdir=$ac_optarg ;;
988 -disable-* | --disable-*)
989 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992 as_fn_error $? "invalid feature name: $ac_useropt"
993 ac_useropt_orig=$ac_useropt
994 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995 case $ac_user_opts in
999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1000 ac_unrecognized_sep=', ';;
1002 eval enable_$ac_useropt=no ;;
1004 -docdir | --docdir | --docdi | --doc | --do)
1006 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007 docdir=$ac_optarg ;;
1009 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012 dvidir=$ac_optarg ;;
1014 -enable-* | --enable-*)
1015 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018 as_fn_error $? "invalid feature name: $ac_useropt"
1019 ac_useropt_orig=$ac_useropt
1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1023 "enable_$ac_useropt"
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
1028 eval enable_$ac_useropt=\$ac_optarg ;;
1030 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032 | --exec | --exe | --ex)
1033 ac_prev=exec_prefix ;;
1034 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036 | --exec=* | --exe=* | --ex=*)
1037 exec_prefix=$ac_optarg ;;
1039 -gas | --gas | --ga | --g)
1040 # Obsolete; use --with-gas.
1043 -help | --help | --hel | --he | -h)
1044 ac_init_help=long ;;
1045 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046 ac_init_help=recursive ;;
1047 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048 ac_init_help=short ;;
1050 -host | --host | --hos | --ho)
1051 ac_prev=host_alias ;;
1052 -host=* | --host=* | --hos=* | --ho=*)
1053 host_alias=$ac_optarg ;;
1055 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059 htmldir=$ac_optarg ;;
1061 -includedir | --includedir | --includedi | --included | --include \
1062 | --includ | --inclu | --incl | --inc)
1063 ac_prev=includedir ;;
1064 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065 | --includ=* | --inclu=* | --incl=* | --inc=*)
1066 includedir=$ac_optarg ;;
1068 -infodir | --infodir | --infodi | --infod | --info | --inf)
1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071 infodir=$ac_optarg ;;
1073 -libdir | --libdir | --libdi | --libd)
1075 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076 libdir=$ac_optarg ;;
1078 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079 | --libexe | --libex | --libe)
1080 ac_prev=libexecdir ;;
1081 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082 | --libexe=* | --libex=* | --libe=*)
1083 libexecdir=$ac_optarg ;;
1085 -localedir | --localedir | --localedi | --localed | --locale)
1086 ac_prev=localedir ;;
1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088 localedir=$ac_optarg ;;
1090 -localstatedir | --localstatedir | --localstatedi | --localstated \
1091 | --localstate | --localstat | --localsta | --localst | --locals)
1092 ac_prev=localstatedir ;;
1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095 localstatedir=$ac_optarg ;;
1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100 mandir=$ac_optarg ;;
1102 -nfp | --nfp | --nf)
1103 # Obsolete; use --without-fp.
1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107 | --no-cr | --no-c | -n)
1110 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116 | --oldin | --oldi | --old | --ol | --o)
1117 ac_prev=oldincludedir ;;
1118 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121 oldincludedir=$ac_optarg ;;
1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126 prefix=$ac_optarg ;;
1128 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129 | --program-pre | --program-pr | --program-p)
1130 ac_prev=program_prefix ;;
1131 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133 program_prefix=$ac_optarg ;;
1135 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136 | --program-suf | --program-su | --program-s)
1137 ac_prev=program_suffix ;;
1138 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140 program_suffix=$ac_optarg ;;
1142 -program-transform-name | --program-transform-name \
1143 | --program-transform-nam | --program-transform-na \
1144 | --program-transform-n | --program-transform- \
1145 | --program-transform | --program-transfor \
1146 | --program-transfo | --program-transf \
1147 | --program-trans | --program-tran \
1148 | --progr-tra | --program-tr | --program-t)
1149 ac_prev=program_transform_name ;;
1150 -program-transform-name=* | --program-transform-name=* \
1151 | --program-transform-nam=* | --program-transform-na=* \
1152 | --program-transform-n=* | --program-transform-=* \
1153 | --program-transform=* | --program-transfor=* \
1154 | --program-transfo=* | --program-transf=* \
1155 | --program-trans=* | --program-tran=* \
1156 | --progr-tra=* | --program-tr=* | --program-t=*)
1157 program_transform_name=$ac_optarg ;;
1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162 pdfdir=$ac_optarg ;;
1164 -psdir | --psdir | --psdi | --psd | --ps)
1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170 | -silent | --silent | --silen | --sile | --sil)
1173 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177 sbindir=$ac_optarg ;;
1179 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181 | --sharedst | --shareds | --shared | --share | --shar \
1183 ac_prev=sharedstatedir ;;
1184 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188 sharedstatedir=$ac_optarg ;;
1190 -site | --site | --sit)
1192 -site=* | --site=* | --sit=*)
1195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198 srcdir=$ac_optarg ;;
1200 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201 | --syscon | --sysco | --sysc | --sys | --sy)
1202 ac_prev=sysconfdir ;;
1203 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205 sysconfdir=$ac_optarg ;;
1207 -target | --target | --targe | --targ | --tar | --ta | --t)
1208 ac_prev=target_alias ;;
1209 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210 target_alias=$ac_optarg ;;
1212 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215 -version | --version | --versio | --versi | --vers | -V)
1216 ac_init_version=: ;;
1219 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222 as_fn_error $? "invalid package name: $ac_useropt"
1223 ac_useropt_orig=$ac_useropt
1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1230 ac_unrecognized_sep=', ';;
1232 eval with_$ac_useropt=\$ac_optarg ;;
1234 -without-* | --without-*)
1235 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 as_fn_error $? "invalid package name: $ac_useropt"
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1248 eval with_$ac_useropt=no ;;
1251 # Obsolete; use --with-x.
1254 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255 | --x-incl | --x-inc | --x-in | --x-i)
1256 ac_prev=x_includes ;;
1257 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1259 x_includes=$ac_optarg ;;
1261 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1262 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263 ac_prev=x_libraries ;;
1264 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1266 x_libraries=$ac_optarg ;;
1268 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1269 Try \`$0 --help' for more information"
1273 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274 # Reject names that are not valid shell variable names.
1275 case $ac_envvar in #(
1276 '' | [0-9]* | *[!_$as_cr_alnum]* )
1277 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1279 eval $ac_envvar=\$ac_optarg
1280 export $ac_envvar ;;
1283 # FIXME: should be removed in autoconf 3.0.
1284 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1285 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1287 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1293 if test -n "$ac_prev"; then
1294 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1295 as_fn_error $? "missing argument to $ac_option"
1298 if test -n "$ac_unrecognized_opts"; then
1299 case $enable_option_checking in
1301 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1302 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1306 # Check all directory arguments for consistency.
1307 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1308 datadir sysconfdir sharedstatedir localstatedir includedir \
1309 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1310 libdir localedir mandir
1312 eval ac_val=\$$ac_var
1313 # Remove trailing slashes.
1316 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1317 eval $ac_var=\$ac_val;;
1319 # Be sure to have absolute directory names.
1321 [\\/$]* | ?:[\\/]* ) continue;;
1322 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1324 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1327 # There might be people who depend on the old broken behavior: `$host'
1328 # used to hold the argument of --host etc.
1329 # FIXME: To remove some day.
1332 target=$target_alias
1334 # FIXME: To remove some day.
1335 if test "x$host_alias" != x; then
1336 if test "x$build_alias" = x; then
1337 cross_compiling=maybe
1338 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1339 If a cross compiler is detected then cross compile mode will be used" >&2
1340 elif test "x$build_alias" != "x$host_alias"; then
1346 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1348 test "$silent" = yes && exec 6>/dev/null
1351 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352 ac_ls_di=`ls -di .` &&
1353 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1354 as_fn_error $? "working directory cannot be determined"
1355 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1356 as_fn_error $? "pwd does not report name of working directory"
1359 # Find the source files, if location was not specified.
1360 if test -z "$srcdir"; then
1361 ac_srcdir_defaulted=yes
1362 # Try the directory containing this script, then the parent directory.
1363 ac_confdir=`$as_dirname -- "$as_myself" ||
1364 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1365 X"$as_myself" : 'X\(//\)[^/]' \| \
1366 X"$as_myself" : 'X\(//\)$' \| \
1367 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1368 $as_echo X"$as_myself" |
1369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1391 ac_srcdir_defaulted=no
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1394 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1395 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1397 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1399 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1401 # When building in place, set srcdir=.
1402 if test "$ac_abs_confdir" = "$ac_pwd"; then
1405 # Remove unnecessary trailing slashes from srcdir.
1406 # Double slashes in file names in object file debugging info
1407 # mess up M-x gdb in Emacs.
1409 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1411 for ac_var in $ac_precious_vars; do
1412 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_env_${ac_var}_value=\$${ac_var}
1414 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1419 # Report the --help message.
1421 if test "$ac_init_help" = "long"; then
1422 # Omit some internal or obsolete options to make the list less imposing.
1423 # This message is too long to be a string in the A/UX 3.1 sh.
1425 \`configure' configures libXaw 1.0.11 to adapt to many kinds of systems.
1427 Usage: $0 [OPTION]... [VAR=VALUE]...
1429 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1430 VAR=VALUE. See below for descriptions of some of the useful variables.
1432 Defaults for the options are specified in brackets.
1435 -h, --help display this help and exit
1436 --help=short display options specific to this package
1437 --help=recursive display the short help of all the included packages
1438 -V, --version display version information and exit
1439 -q, --quiet, --silent do not print \`checking ...' messages
1440 --cache-file=FILE cache test results in FILE [disabled]
1441 -C, --config-cache alias for \`--cache-file=config.cache'
1442 -n, --no-create do not create output files
1443 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1445 Installation directories:
1446 --prefix=PREFIX install architecture-independent files in PREFIX
1447 [$ac_default_prefix]
1448 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1451 By default, \`make install' will install all the files in
1452 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1453 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1454 for instance \`--prefix=\$HOME'.
1456 For better control, use the options below.
1458 Fine tuning of the installation directories:
1459 --bindir=DIR user executables [EPREFIX/bin]
1460 --sbindir=DIR system admin executables [EPREFIX/sbin]
1461 --libexecdir=DIR program executables [EPREFIX/libexec]
1462 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1463 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1464 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1465 --libdir=DIR object code libraries [EPREFIX/lib]
1466 --includedir=DIR C header files [PREFIX/include]
1467 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1468 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1469 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1470 --infodir=DIR info documentation [DATAROOTDIR/info]
1471 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1472 --mandir=DIR man documentation [DATAROOTDIR/man]
1473 --docdir=DIR documentation root [DATAROOTDIR/doc/libXaw]
1474 --htmldir=DIR html documentation [DOCDIR]
1475 --dvidir=DIR dvi documentation [DOCDIR]
1476 --pdfdir=DIR pdf documentation [DOCDIR]
1477 --psdir=DIR ps documentation [DOCDIR]
1483 --program-prefix=PREFIX prepend PREFIX to installed program names
1484 --program-suffix=SUFFIX append SUFFIX to installed program names
1485 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1488 --build=BUILD configure for building on BUILD [guessed]
1489 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1493 if test -n "$ac_init_help"; then
1494 case $ac_init_help in
1495 short | recursive ) echo "Configuration of libXaw 1.0.11:";;
1500 --disable-option-checking ignore unrecognized --enable/--with options
1501 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1502 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1503 --enable-maintainer-mode enable make rules and dependencies not useful
1504 (and sometimes confusing) to the casual installer
1505 --enable-shared[=PKGS] build shared libraries [default=yes]
1506 --enable-static[=PKGS] build static libraries [default=yes]
1507 --enable-fast-install[=PKGS]
1508 optimize for fast installation [default=yes]
1509 --disable-dependency-tracking speeds up one-time build
1510 --enable-dependency-tracking do not reject slow dependency extractors
1511 --disable-libtool-lock avoid locking (might break parallel builds)
1512 --disable-selective-werror
1513 Turn off selective compiler errors. (default:
1515 --enable-strict-compilation
1516 Enable all warnings from compiler and make them
1517 errors (default: disabled)
1518 --enable-silent-rules less verbose build output (undo: `make V=1')
1519 --disable-silent-rules verbose build output (undo: `make V=0')
1520 --enable-specs Enable building the specs (default: yes)
1521 --disable-xaw6 Disable building of libXaw.so.6
1522 --disable-xaw7 Disable building of libXaw.so.7
1525 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1526 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1527 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1529 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1530 --with-sysroot=DIR Search for dependent libraries within DIR
1531 (or the compiler's sysroot if not specified).
1532 --with-xmlto Use xmlto to regenerate documentation (default:
1534 --with-fop Use fop to regenerate documentation (default: auto)
1535 --with-xsltproc Use xsltproc for the transformation of XML documents
1538 Some influential environment variables:
1539 CC C compiler command
1540 CFLAGS C compiler flags
1541 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1542 nonstandard directory <lib dir>
1543 LIBS libraries to pass to the linker, e.g. -l<library>
1544 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1545 you have headers in a nonstandard directory <include dir>
1547 PKG_CONFIG path to pkg-config utility
1548 XMLTO Path to xmlto command
1549 FOP Path to fop command
1550 XSLTPROC Path to xsltproc command
1551 XAW6_CFLAGS C compiler flags for XAW6, overriding pkg-config
1552 XAW6_LIBS linker flags for XAW6, overriding pkg-config
1553 XAW7_CFLAGS C compiler flags for XAW7, overriding pkg-config
1554 XAW7_LIBS linker flags for XAW7, overriding pkg-config
1556 Use these variables to override the choices made by `configure' or to help
1557 it to find libraries and programs with nonstandard names/locations.
1559 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1564 if test "$ac_init_help" = "recursive"; then
1565 # If there are subdirs, report their specific --help.
1566 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1567 test -d "$ac_dir" ||
1568 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1573 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1576 # A ".." for each directory in $ac_dir_suffix.
1577 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1578 case $ac_top_builddir_sub in
1579 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583 ac_abs_top_builddir=$ac_pwd
1584 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585 # for backward compatibility:
1586 ac_top_builddir=$ac_top_build_prefix
1589 .) # We are building in place.
1591 ac_top_srcdir=$ac_top_builddir_sub
1592 ac_abs_top_srcdir=$ac_pwd ;;
1593 [\\/]* | ?:[\\/]* ) # Absolute name.
1594 ac_srcdir=$srcdir$ac_dir_suffix;
1595 ac_top_srcdir=$srcdir
1596 ac_abs_top_srcdir=$srcdir ;;
1598 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599 ac_top_srcdir=$ac_top_build_prefix$srcdir
1600 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1602 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1604 cd "$ac_dir" || { ac_status=$?; continue; }
1605 # Check for guested configure.
1606 if test -f "$ac_srcdir/configure.gnu"; then
1608 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1609 elif test -f "$ac_srcdir/configure"; then
1611 $SHELL "$ac_srcdir/configure" --help=recursive
1613 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1615 cd "$ac_pwd" || { ac_status=$?; break; }
1619 test -n "$ac_init_help" && exit $ac_status
1620 if $ac_init_version; then
1622 libXaw configure 1.0.11
1623 generated by GNU Autoconf 2.68
1625 Copyright (C) 2010 Free Software Foundation, Inc.
1626 This configure script is free software; the Free Software Foundation
1627 gives unlimited permission to copy, distribute and modify it.
1632 ## ------------------------ ##
1633 ## Autoconf initialization. ##
1634 ## ------------------------ ##
1636 # ac_fn_c_try_compile LINENO
1637 # --------------------------
1638 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_compile ()
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 rm -f conftest.$ac_objext
1643 if { { ac_try="$ac_compile"
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_compile") 2>conftest.err
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } && {
1659 test -z "$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1661 } && test -s conftest.$ac_objext; then :
1664 $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 as_fn_set_status $ac_retval
1672 } # ac_fn_c_try_compile
1674 # ac_fn_c_try_link LINENO
1675 # -----------------------
1676 # Try to link conftest.$ac_ext, and return whether this succeeded.
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 rm -f conftest.$ac_objext conftest$ac_exeext
1681 if { { ac_try="$ac_link"
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_link") 2>conftest.err
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && {
1697 test -z "$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 } && test -s conftest$ac_exeext && {
1700 test "$cross_compiling" = yes ||
1701 $as_test_x conftest$ac_exeext
1705 $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1710 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1711 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1712 # interfere with the next link command; also delete a directory that is
1713 # left behind by Apple's compiler. We do this before executing the actions.
1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1718 } # ac_fn_c_try_link
1720 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1721 # -------------------------------------------------------
1722 # Tests whether HEADER exists and can be compiled using the include files in
1723 # INCLUDES, setting the cache variable VAR accordingly.
1724 ac_fn_c_check_header_compile ()
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728 $as_echo_n "checking for $2... " >&6; }
1729 if eval \${$3+:} false; then :
1730 $as_echo_n "(cached) " >&6
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h. */
1737 if ac_fn_c_try_compile "$LINENO"; then :
1742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746 $as_echo "$ac_res" >&6; }
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749 } # ac_fn_c_check_header_compile
1751 # ac_fn_c_try_cpp LINENO
1752 # ----------------------
1753 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 if { { ac_try="$ac_cpp conftest.$ac_ext"
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } > conftest.i && {
1773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1774 test ! -s conftest.err
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status $ac_retval
1788 # ac_fn_c_try_run LINENO
1789 # ----------------------
1790 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1791 # that executables *can* be run.
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 if { { ac_try="$ac_link"
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_link") 2>&5
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1806 { { case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_try") 2>&5
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; }; }; then :
1818 $as_echo "$as_me: program exited with status $ac_status" >&5
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1822 ac_retval=$ac_status
1824 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1830 # ac_fn_c_check_func LINENO FUNC VAR
1831 # ----------------------------------
1832 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1833 ac_fn_c_check_func ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if eval \${$3+:} false; then :
1839 $as_echo_n "(cached) " >&6
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1843 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1845 #define $2 innocuous_$2
1847 /* System header to define __stub macros and hopefully few prototypes,
1848 which can conflict with char $2 (); below.
1849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1850 <limits.h> exists even on freestanding compilers. */
1853 # include <limits.h>
1855 # include <assert.h>
1860 /* Override any GCC internal prototype to avoid an error.
1861 Use char because int might match the return type of a GCC
1862 builtin and then its argument prototype would still apply. */
1867 /* The GNU C library defines this for functions which it implements
1868 to always fail with ENOSYS. Some functions are actually named
1869 something starting with __ and the normal name is an alias. */
1870 #if defined __stub_$2 || defined __stub___$2
1882 if ac_fn_c_try_link "$LINENO"; then :
1887 rm -f core conftest.err conftest.$ac_objext \
1888 conftest$ac_exeext conftest.$ac_ext
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892 $as_echo "$ac_res" >&6; }
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 } # ac_fn_c_check_func
1897 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1898 # ---------------------------------------------
1899 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1901 ac_fn_c_check_decl ()
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 as_decl_name=`echo $2|sed 's/ *(.*//'`
1905 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1907 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1908 if eval \${$3+:} false; then :
1909 $as_echo_n "(cached) " >&6
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1917 #ifndef $as_decl_name
1919 (void) $as_decl_use;
1921 (void) $as_decl_name;
1929 if ac_fn_c_try_compile "$LINENO"; then :
1934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938 $as_echo "$ac_res" >&6; }
1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 } # ac_fn_c_check_decl
1943 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1944 # -------------------------------------------------------
1945 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1946 # the include files in INCLUDES and setting the cache variable VAR
1948 ac_fn_c_check_header_mongrel ()
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 if eval \${$3+:} false; then :
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953 $as_echo_n "checking for $2... " >&6; }
1954 if eval \${$3+:} false; then :
1955 $as_echo_n "(cached) " >&6
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1961 # Is the header compilable?
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1963 $as_echo_n "checking $2 usability... " >&6; }
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970 ac_header_compiler=yes
1972 ac_header_compiler=no
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1976 $as_echo "$ac_header_compiler" >&6; }
1978 # Is the header present?
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1980 $as_echo_n "checking $2 presence... " >&6; }
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1985 if ac_fn_c_try_cpp "$LINENO"; then :
1986 ac_header_preproc=yes
1988 ac_header_preproc=no
1990 rm -f conftest.err conftest.i conftest.$ac_ext
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1992 $as_echo "$ac_header_preproc" >&6; }
1994 # So? What about this header?
1995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1998 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2000 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2004 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2006 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2008 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2010 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2012 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2013 ( $as_echo "## ---------------------------------------------------------------------- ##
2014 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
2015 ## ---------------------------------------------------------------------- ##"
2016 ) | sed "s/^/$as_me: WARNING: /" >&2
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020 $as_echo_n "checking for $2... " >&6; }
2021 if eval \${$3+:} false; then :
2022 $as_echo_n "(cached) " >&6
2024 eval "$3=\$ac_header_compiler"
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032 } # ac_fn_c_check_header_mongrel
2033 cat >config.log <<_ACEOF
2034 This file contains any messages produced by compilers while
2035 running configure, to aid debugging if configure makes a mistake.
2037 It was created by libXaw $as_me 1.0.11, which was
2038 generated by GNU Autoconf 2.68. Invocation command line was
2050 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2051 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2052 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2053 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2054 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2056 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2057 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2059 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2060 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2061 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2062 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2063 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2064 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2065 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073 test -z "$as_dir" && as_dir=.
2074 $as_echo "PATH: $as_dir"
2090 # Keep a trace of the command line.
2091 # Strip out --no-create and --no-recursion so they do not pile up.
2092 # Strip out --silent because we don't want to record it for future runs.
2093 # Also quote any args containing shell meta-characters.
2094 # Make two passes to allow for proper duplicate-argument suppression.
2098 ac_must_keep_next=false
2104 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2106 | -silent | --silent | --silen | --sile | --sil)
2109 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2112 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2114 as_fn_append ac_configure_args1 " '$ac_arg'"
2115 if test $ac_must_keep_next = true; then
2116 ac_must_keep_next=false # Got value, back to normal.
2119 *=* | --config-cache | -C | -disable-* | --disable-* \
2120 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2121 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2122 | -with-* | --with-* | -without-* | --without-* | --x)
2123 case "$ac_configure_args0 " in
2124 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2127 -* ) ac_must_keep_next=true ;;
2130 as_fn_append ac_configure_args " '$ac_arg'"
2135 { ac_configure_args0=; unset ac_configure_args0;}
2136 { ac_configure_args1=; unset ac_configure_args1;}
2138 # When interrupted or exit'd, cleanup temporary files, and complete
2139 # config.log. We remove comments because anyway the quotes in there
2140 # would cause problems or look ugly.
2141 # WARNING: Use '\'' to represent an apostrophe within the trap.
2142 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2143 trap 'exit_status=$?
2144 # Save into config.log some information that might help in debugging.
2148 $as_echo "## ---------------- ##
2149 ## Cache variables. ##
2150 ## ---------------- ##"
2152 # The following way of writing the cache mishandles newlines in values,
2154 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2155 eval ac_val=\$$ac_var
2159 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2160 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2163 _ | IFS | as_nl) ;; #(
2164 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2165 *) { eval $ac_var=; unset $ac_var;} ;;
2170 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2171 *${as_nl}ac_space=\ *)
2173 "s/'\''/'\''\\\\'\'''\''/g;
2174 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2177 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2184 $as_echo "## ----------------- ##
2185 ## Output variables. ##
2186 ## ----------------- ##"
2188 for ac_var in $ac_subst_vars
2190 eval ac_val=\$$ac_var
2192 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2194 $as_echo "$ac_var='\''$ac_val'\''"
2198 if test -n "$ac_subst_files"; then
2199 $as_echo "## ------------------- ##
2200 ## File substitutions. ##
2201 ## ------------------- ##"
2203 for ac_var in $ac_subst_files
2205 eval ac_val=\$$ac_var
2207 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2209 $as_echo "$ac_var='\''$ac_val'\''"
2214 if test -s confdefs.h; then
2215 $as_echo "## ----------- ##
2222 test "$ac_signal" != 0 &&
2223 $as_echo "$as_me: caught signal $ac_signal"
2224 $as_echo "$as_me: exit $exit_status"
2226 rm -f core *.core core.conftest.* &&
2227 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2230 for ac_signal in 1 2 13 15; do
2231 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2235 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2236 rm -f -r conftest* confdefs.h
2238 $as_echo "/* confdefs.h */" > confdefs.h
2240 # Predefined preprocessor variables.
2242 cat >>confdefs.h <<_ACEOF
2243 #define PACKAGE_NAME "$PACKAGE_NAME"
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_STRING "$PACKAGE_STRING"
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_URL "$PACKAGE_URL"
2267 # Let the site file select an alternate cache file if it wants to.
2268 # Prefer an explicitly selected file to automatically selected ones.
2271 if test -n "$CONFIG_SITE"; then
2272 # We do not want a PATH search for config.site.
2273 case $CONFIG_SITE in #((
2274 -*) ac_site_file1=./$CONFIG_SITE;;
2275 */*) ac_site_file1=$CONFIG_SITE;;
2276 *) ac_site_file1=./$CONFIG_SITE;;
2278 elif test "x$prefix" != xNONE; then
2279 ac_site_file1=$prefix/share/config.site
2280 ac_site_file2=$prefix/etc/config.site
2282 ac_site_file1=$ac_default_prefix/share/config.site
2283 ac_site_file2=$ac_default_prefix/etc/config.site
2285 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2287 test "x$ac_site_file" = xNONE && continue
2288 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2290 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2291 sed 's/^/| /' "$ac_site_file" >&5
2293 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2295 as_fn_error $? "failed to load site script $ac_site_file
2296 See \`config.log' for more details" "$LINENO" 5; }
2300 if test -r "$cache_file"; then
2301 # Some versions of bash will fail to source /dev/null (special files
2302 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2303 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2305 $as_echo "$as_me: loading cache $cache_file" >&6;}
2307 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2308 *) . "./$cache_file";;
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2313 $as_echo "$as_me: creating cache $cache_file" >&6;}
2317 # Check that the precious variables saved in the cache have kept the same
2319 ac_cache_corrupted=false
2320 for ac_var in $ac_precious_vars; do
2321 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2322 eval ac_new_set=\$ac_env_${ac_var}_set
2323 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2324 eval ac_new_val=\$ac_env_${ac_var}_value
2325 case $ac_old_set,$ac_new_set in
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2328 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2329 ac_cache_corrupted=: ;;
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2332 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2333 ac_cache_corrupted=: ;;
2336 if test "x$ac_old_val" != "x$ac_new_val"; then
2337 # differences in whitespace do not lead to failure.
2338 ac_old_val_w=`echo x $ac_old_val`
2339 ac_new_val_w=`echo x $ac_new_val`
2340 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2342 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2343 ac_cache_corrupted=:
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2346 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2347 eval $ac_var=\$ac_old_val
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2350 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2352 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2355 # Pass precious variables to config.status.
2356 if test "$ac_new_set" = set; then
2358 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2359 *) ac_arg=$ac_var=$ac_new_val ;;
2361 case " $ac_configure_args " in
2362 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2363 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2367 if $ac_cache_corrupted; then
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2371 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2372 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2374 ## -------------------- ##
2375 ## Main body of script. ##
2376 ## -------------------- ##
2379 ac_cpp='$CPP $CPPFLAGS'
2380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2386 ac_config_headers="$ac_config_headers config.h"
2389 # Initialize Automake
2390 am__api_version='1.11'
2393 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2394 if test -f "$ac_dir/install-sh"; then
2396 ac_install_sh="$ac_aux_dir/install-sh -c"
2398 elif test -f "$ac_dir/install.sh"; then
2400 ac_install_sh="$ac_aux_dir/install.sh -c"
2402 elif test -f "$ac_dir/shtool"; then
2404 ac_install_sh="$ac_aux_dir/shtool install -c"
2408 if test -z "$ac_aux_dir"; then
2409 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2412 # These three variables are undocumented and unsupported,
2413 # and are intended to be withdrawn in a future Autoconf release.
2414 # They can cause serious problems if a builder's source tree is in a directory
2415 # whose full name contains unusual characters.
2416 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2417 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2418 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2421 # Find a good install program. We prefer a C program (faster),
2422 # so one script is as good as another. But avoid the broken or
2423 # incompatible versions:
2424 # SysV /etc/install, /usr/sbin/install
2425 # SunOS /usr/etc/install
2426 # IRIX /sbin/install
2428 # AmigaOS /C/install, which installs bootblocks on floppy discs
2429 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2430 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2431 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2432 # OS/2's system install, which has a completely different semantic
2433 # ./install, which can be erroneously created by make from ./install.sh.
2434 # Reject install programs that cannot install multiple files.
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2436 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2437 if test -z "$INSTALL"; then
2438 if ${ac_cv_path_install+:} false; then :
2439 $as_echo_n "(cached) " >&6
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 test -z "$as_dir" && as_dir=.
2446 # Account for people who put trailing slashes in PATH elements.
2447 case $as_dir/ in #((
2448 ./ | .// | /[cC]/* | \
2449 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2450 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2453 # OSF1 and SCO ODT 3.0 have their own names for install.
2454 # Don't use installbsd from OSF since it installs stuff as root
2456 for ac_prog in ginstall scoinst install; do
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2459 if test $ac_prog = install &&
2460 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2461 # AIX install. It has an incompatible calling convention.
2463 elif test $ac_prog = install &&
2464 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2465 # program-specific install script used by HP pwplus--don't use.
2468 rm -rf conftest.one conftest.two conftest.dir
2469 echo one > conftest.one
2470 echo two > conftest.two
2472 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2473 test -s conftest.one && test -s conftest.two &&
2474 test -s conftest.dir/conftest.one &&
2475 test -s conftest.dir/conftest.two
2477 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2490 rm -rf conftest.one conftest.two conftest.dir
2493 if test "${ac_cv_path_install+set}" = set; then
2494 INSTALL=$ac_cv_path_install
2496 # As a last resort, use the slow shell script. Don't cache a
2497 # value for INSTALL within a source directory, because that will
2498 # break other packages using the cache if that directory is
2499 # removed, or if the value is a relative name.
2500 INSTALL=$ac_install_sh
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2504 $as_echo "$INSTALL" >&6; }
2506 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2507 # It thinks the first close brace ends the variable substitution.
2508 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2510 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2512 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2515 $as_echo_n "checking whether build environment is sane... " >&6; }
2518 echo timestamp > conftest.file
2519 # Reject unsafe characters in $srcdir or the absolute working directory
2520 # name. Accept space and tab only in the latter.
2524 *[\\\"\#\$\&\'\`$am_lf]*)
2525 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2528 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2529 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2532 # Do `set' in a subshell so we don't clobber the current shell's
2533 # arguments. Must try -L first in case configure is actually a
2534 # symlink; some systems play weird games with the mod time of symlinks
2535 # (eg FreeBSD returns the mod time of the symlink's containing
2538 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2539 if test "$*" = "X"; then
2541 set X `ls -t "$srcdir/configure" conftest.file`
2544 if test "$*" != "X $srcdir/configure conftest.file" \
2545 && test "$*" != "X conftest.file $srcdir/configure"; then
2547 # If neither matched, then we have a broken ls. This can happen
2548 # if, for instance, CONFIG_SHELL is bash and it inherits a
2549 # broken ls alias from the environment. This has actually
2550 # happened. Such a system could not be considered "sane".
2551 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2552 alias in your environment" "$LINENO" 5
2555 test "$2" = conftest.file
2561 as_fn_error $? "newly created file is older than distributed files!
2562 Check your system clock" "$LINENO" 5
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2565 $as_echo "yes" >&6; }
2566 test "$program_prefix" != NONE &&
2567 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2568 # Use a double $ so make ignores it.
2569 test "$program_suffix" != NONE &&
2570 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2571 # Double any \ or $.
2572 # By default was `s,x,x', remove it if useless.
2573 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2574 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2576 # expand $ac_aux_dir to an absolute path
2577 am_aux_dir=`cd $ac_aux_dir && pwd`
2579 if test x"${MISSING+set}" != xset; then
2582 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2584 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2587 # Use eval to expand $SHELL
2588 if eval "$MISSING --run true"; then
2589 am_missing_run="$MISSING --run "
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2593 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2596 if test x"${install_sh}" != xset; then
2599 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2601 install_sh="\${SHELL} $am_aux_dir/install-sh"
2605 # Installed binaries are usually stripped using `strip' when the user
2606 # run `make install-strip'. However `strip' might not be the right
2607 # tool to use in cross-compilation environments, therefore Automake
2608 # will honor the `STRIP' environment variable to overrule this program.
2609 if test "$cross_compiling" != no; then
2610 if test -n "$ac_tool_prefix"; then
2611 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2612 set dummy ${ac_tool_prefix}strip; ac_word=$2
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614 $as_echo_n "checking for $ac_word... " >&6; }
2615 if ${ac_cv_prog_STRIP+:} false; then :
2616 $as_echo_n "(cached) " >&6
2618 if test -n "$STRIP"; then
2619 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2628 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 STRIP=$ac_cv_prog_STRIP
2639 if test -n "$STRIP"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2641 $as_echo "$STRIP" >&6; }
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644 $as_echo "no" >&6; }
2649 if test -z "$ac_cv_prog_STRIP"; then
2651 # Extract the first word of "strip", so it can be a program name with args.
2652 set dummy strip; ac_word=$2
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2656 $as_echo_n "(cached) " >&6
2658 if test -n "$ac_ct_STRIP"; then
2659 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2668 ac_cv_prog_ac_ct_STRIP="strip"
2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2679 if test -n "$ac_ct_STRIP"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2681 $as_echo "$ac_ct_STRIP" >&6; }
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684 $as_echo "no" >&6; }
2687 if test "x$ac_ct_STRIP" = x; then
2690 case $cross_compiling:$ac_tool_warned in
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2694 ac_tool_warned=yes ;;
2699 STRIP="$ac_cv_prog_STRIP"
2703 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2706 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2707 if test -z "$MKDIR_P"; then
2708 if ${ac_cv_path_mkdir+:} false; then :
2709 $as_echo_n "(cached) " >&6
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2715 test -z "$as_dir" && as_dir=.
2716 for ac_prog in mkdir gmkdir; do
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2719 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2720 'mkdir (GNU coreutils) '* | \
2721 'mkdir (coreutils) '* | \
2722 'mkdir (fileutils) '4.1*)
2723 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2733 test -d ./--version && rmdir ./--version
2734 if test "${ac_cv_path_mkdir+set}" = set; then
2735 MKDIR_P="$ac_cv_path_mkdir -p"
2737 # As a last resort, use the slow shell script. Don't cache a
2738 # value for MKDIR_P within a source directory, because that will
2739 # break other packages using the cache if that directory is
2740 # removed, or if the value is a relative name.
2741 MKDIR_P="$ac_install_sh -d"
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2745 $as_echo "$MKDIR_P" >&6; }
2749 [\\/$]* | ?:[\\/]*) ;;
2750 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2753 for ac_prog in gawk mawk nawk awk
2755 # Extract the first word of "$ac_prog", so it can be a program name with args.
2756 set dummy $ac_prog; ac_word=$2
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758 $as_echo_n "checking for $ac_word... " >&6; }
2759 if ${ac_cv_prog_AWK+:} false; then :
2760 $as_echo_n "(cached) " >&6
2762 if test -n "$AWK"; then
2763 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2772 ac_cv_prog_AWK="$ac_prog"
2773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 if test -n "$AWK"; then
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2785 $as_echo "$AWK" >&6; }
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788 $as_echo "no" >&6; }
2792 test -n "$AWK" && break
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2796 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2798 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2799 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2800 $as_echo_n "(cached) " >&6
2802 cat >conftest.make <<\_ACEOF
2805 @echo '@@@%%%=$(MAKE)=@@@%%%'
2807 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2808 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2810 eval ac_cv_prog_make_${ac_make}_set=yes;;
2812 eval ac_cv_prog_make_${ac_make}_set=no;;
2816 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2818 $as_echo "yes" >&6; }
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2823 SET_MAKE="MAKE=${MAKE-make}"
2826 rm -rf .tst 2>/dev/null
2827 mkdir .tst 2>/dev/null
2828 if test -d .tst; then
2833 rmdir .tst 2>/dev/null
2835 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2836 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2837 # is not polluted with repeated "-I."
2838 am__isrc=' -I$(srcdir)'
2839 # test to see if srcdir already configured
2840 if test -f $srcdir/config.status; then
2841 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2845 # test whether we have cygpath
2846 if test -z "$CYGPATH_W"; then
2847 if (cygpath --version) >/dev/null 2>/dev/null; then
2848 CYGPATH_W='cygpath -w'
2855 # Define the identity of the package.
2860 cat >>confdefs.h <<_ACEOF
2861 #define PACKAGE "$PACKAGE"
2865 cat >>confdefs.h <<_ACEOF
2866 #define VERSION "$VERSION"
2869 # Some tools Automake needs.
2871 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2874 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2877 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2880 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2883 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2885 # We need awk for the "check" target. The system "awk" is bad on
2887 # Always define AMTAR for backward compatibility.
2889 AMTAR=${AMTAR-"${am_missing_run}tar"}
2891 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2899 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2900 # Check whether --enable-maintainer-mode was given.
2901 if test "${enable_maintainer_mode+set}" = set; then :
2902 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2904 USE_MAINTAINER_MODE=no
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2908 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2909 if test $USE_MAINTAINER_MODE = yes; then
2910 MAINTAINER_MODE_TRUE=
2911 MAINTAINER_MODE_FALSE='#'
2913 MAINTAINER_MODE_TRUE='#'
2914 MAINTAINER_MODE_FALSE=
2917 MAINT=$MAINTAINER_MODE_TRUE
2921 # Initialize libtool
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2925 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2930 macro_version='2.4.2'
2931 macro_revision='1.3337'
2945 ltmain="$ac_aux_dir/ltmain.sh"
2947 # Make sure we can run config.sub.
2948 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2949 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2952 $as_echo_n "checking build system type... " >&6; }
2953 if ${ac_cv_build+:} false; then :
2954 $as_echo_n "(cached) " >&6
2956 ac_build_alias=$build_alias
2957 test "x$ac_build_alias" = x &&
2958 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2959 test "x$ac_build_alias" = x &&
2960 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2961 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2962 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2966 $as_echo "$ac_cv_build" >&6; }
2967 case $ac_cv_build in
2969 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2972 ac_save_IFS=$IFS; IFS='-'
2978 # Remember, the first character of IFS is used to create $*,
2979 # except with old shells:
2982 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2986 $as_echo_n "checking host system type... " >&6; }
2987 if ${ac_cv_host+:} false; then :
2988 $as_echo_n "(cached) " >&6
2990 if test "x$host_alias" = x; then
2991 ac_cv_host=$ac_cv_build
2993 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2994 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2999 $as_echo "$ac_cv_host" >&6; }
3002 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3005 ac_save_IFS=$IFS; IFS='-'
3011 # Remember, the first character of IFS is used to create $*,
3012 # except with old shells:
3015 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3018 # Backslashify metacharacters that are still active within
3019 # double-quoted strings.
3020 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3022 # Same as above, but do not quote variable references.
3023 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3025 # Sed substitution to delay expansion of an escaped shell variable in a
3026 # double_quote_subst'ed string.
3027 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3029 # Sed substitution to delay expansion of an escaped single quote.
3030 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3032 # Sed substitution to avoid accidental globbing in evaled expressions
3033 no_glob_subst='s/\*/\\\*/g'
3035 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3036 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3037 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3040 $as_echo_n "checking how to print strings... " >&6; }
3041 # Test print first, because it will be a builtin if present.
3042 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3043 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3045 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3048 # Use this function as a fallback that always works.
3049 func_fallback_echo ()
3051 eval 'cat <<_LTECHO_EOF
3055 ECHO='func_fallback_echo'
3058 # func_echo_all arg...
3059 # Invoke $ECHO with all args, space-separated.
3066 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3067 $as_echo "printf" >&6; } ;;
3068 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3069 $as_echo "print -r" >&6; } ;;
3070 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3071 $as_echo "cat" >&6; } ;;
3087 DEPDIR="${am__leading_dot}deps"
3089 ac_config_commands="$ac_config_commands depfiles"
3092 am_make=${MAKE-make}
3093 cat > confinc << 'END'
3095 @echo this is the am__doit target
3098 # If we don't find an include directive, just comment out the code.
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3100 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3104 # First try GNU make style include.
3105 echo "include confinc" > confmf
3106 # Ignore all kinds of additional output from `make'.
3107 case `$am_make -s -f confmf 2> /dev/null` in #(
3108 *the\ am__doit\ target*)
3114 # Now try BSD make style include.
3115 if test "$am__include" = "#"; then
3116 echo '.include "confinc"' > confmf
3117 case `$am_make -s -f confmf 2> /dev/null` in #(
3118 *the\ am__doit\ target*)
3119 am__include=.include
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3128 $as_echo "$_am_result" >&6; }
3129 rm -f confinc confmf
3131 # Check whether --enable-dependency-tracking was given.
3132 if test "${enable_dependency_tracking+set}" = set; then :
3133 enableval=$enable_dependency_tracking;
3136 if test "x$enable_dependency_tracking" != xno; then
3137 am_depcomp="$ac_aux_dir/depcomp"
3141 if test "x$enable_dependency_tracking" != xno; then
3151 ac_cpp='$CPP $CPPFLAGS'
3152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3155 if test -n "$ac_tool_prefix"; then
3156 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3157 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 $as_echo_n "checking for $ac_word... " >&6; }
3160 if ${ac_cv_prog_CC+:} false; then :
3161 $as_echo_n "(cached) " >&6
3163 if test -n "$CC"; then
3164 ac_cv_prog_CC="$CC" # Let the user override the test.
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 test -z "$as_dir" && as_dir=.
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 if test -n "$CC"; then
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3186 $as_echo "$CC" >&6; }
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3194 if test -z "$ac_cv_prog_CC"; then
3196 # Extract the first word of "gcc", so it can be a program name with args.
3197 set dummy gcc; ac_word=$2
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199 $as_echo_n "checking for $ac_word... " >&6; }
3200 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3201 $as_echo_n "(cached) " >&6
3203 if test -n "$ac_ct_CC"; then
3204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3213 ac_cv_prog_ac_ct_CC="gcc"
3214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3223 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3224 if test -n "$ac_ct_CC"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3226 $as_echo "$ac_ct_CC" >&6; }
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3232 if test "x$ac_ct_CC" = x; then
3235 case $cross_compiling:$ac_tool_warned in
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3239 ac_tool_warned=yes ;;
3247 if test -z "$CC"; then
3248 if test -n "$ac_tool_prefix"; then
3249 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3250 set dummy ${ac_tool_prefix}cc; ac_word=$2
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252 $as_echo_n "checking for $ac_word... " >&6; }
3253 if ${ac_cv_prog_CC+:} false; then :
3254 $as_echo_n "(cached) " >&6
3256 if test -n "$CC"; then
3257 ac_cv_prog_CC="$CC" # Let the user override the test.
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3266 ac_cv_prog_CC="${ac_tool_prefix}cc"
3267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 if test -n "$CC"; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3279 $as_echo "$CC" >&6; }
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3288 if test -z "$CC"; then
3289 # Extract the first word of "cc", so it can be a program name with args.
3290 set dummy cc; ac_word=$2
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292 $as_echo_n "checking for $ac_word... " >&6; }
3293 if ${ac_cv_prog_CC+:} false; then :
3294 $as_echo_n "(cached) " >&6
3296 if test -n "$CC"; then
3297 ac_cv_prog_CC="$CC" # Let the user override the test.
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 test -z "$as_dir" && as_dir=.
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3307 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3308 ac_prog_rejected=yes
3312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3319 if test $ac_prog_rejected = yes; then
3320 # We found a bogon in the path, so make sure we never use it.
3321 set dummy $ac_cv_prog_CC
3323 if test $# != 0; then
3324 # We chose a different compiler from the bogus one.
3325 # However, it has the same basename, so the bogon will be chosen
3326 # first if we set CC to just the basename; use the full file name.
3328 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3334 if test -n "$CC"; then
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3336 $as_echo "$CC" >&6; }
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3344 if test -z "$CC"; then
3345 if test -n "$ac_tool_prefix"; then
3346 for ac_prog in cl.exe
3348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351 $as_echo_n "checking for $ac_word... " >&6; }
3352 if ${ac_cv_prog_CC+:} false; then :
3353 $as_echo_n "(cached) " >&6
3355 if test -n "$CC"; then
3356 ac_cv_prog_CC="$CC" # Let the user override the test.
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 test -z "$as_dir" && as_dir=.
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3365 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 if test -n "$CC"; then
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3378 $as_echo "$CC" >&6; }
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 $as_echo "no" >&6; }
3385 test -n "$CC" && break
3388 if test -z "$CC"; then
3390 for ac_prog in cl.exe
3392 # Extract the first word of "$ac_prog", so it can be a program name with args.
3393 set dummy $ac_prog; ac_word=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3397 $as_echo_n "(cached) " >&6
3399 if test -n "$ac_ct_CC"; then
3400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3409 ac_cv_prog_ac_ct_CC="$ac_prog"
3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3420 if test -n "$ac_ct_CC"; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3422 $as_echo "$ac_ct_CC" >&6; }
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3429 test -n "$ac_ct_CC" && break
3432 if test "x$ac_ct_CC" = x; then
3435 case $cross_compiling:$ac_tool_warned in
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3439 ac_tool_warned=yes ;;
3448 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450 as_fn_error $? "no acceptable C compiler found in \$PATH
3451 See \`config.log' for more details" "$LINENO" 5; }
3453 # Provide some information about the compiler.
3454 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3457 for ac_option in --version -v -V -qversion; do
3458 { { ac_try="$ac_compiler $ac_option >&5"
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464 $as_echo "$ac_try_echo"; } >&5
3465 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3467 if test -s conftest.err; then
3469 ... rest of stderr output deleted ...
3470 10q' conftest.err >conftest.er1
3471 cat conftest.er1 >&5
3473 rm -f conftest.er1 conftest.err
3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475 test $ac_status = 0; }
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3489 ac_clean_files_save=$ac_clean_files
3490 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3491 # Try to create an executable without -o first, disregard a.out.
3492 # It will help us diagnose broken compilers, and finding out an intuition
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3495 $as_echo_n "checking whether the C compiler works... " >&6; }
3496 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3498 # The possible output files:
3499 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3502 for ac_file in $ac_files
3505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3506 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3511 if { { ac_try="$ac_link_default"
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3517 $as_echo "$ac_try_echo"; } >&5
3518 (eval "$ac_link_default") 2>&5
3520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3521 test $ac_status = 0; }; then :
3522 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3523 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3524 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3525 # so that the user can short-circuit this test for compilers unknown to
3527 for ac_file in $ac_files ''
3529 test -f "$ac_file" || continue
3531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3534 # We found the default executable, but exeext='' is most
3538 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3540 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3542 # We set ac_cv_exeext here because the later test for it is not
3543 # safe: cross compilers may not add the suffix if given an `-o'
3544 # argument, so we may need to know it at that point already.
3545 # Even if this section looks crufty: it has the advantage of
3552 test "$ac_cv_exeext" = no && ac_cv_exeext=
3557 if test -z "$ac_file"; then :
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3560 $as_echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3565 as_fn_error 77 "C compiler cannot create executables
3566 See \`config.log' for more details" "$LINENO" 5; }
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3569 $as_echo "yes" >&6; }
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3572 $as_echo_n "checking for C compiler default output file name... " >&6; }
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3574 $as_echo "$ac_file" >&6; }
3575 ac_exeext=$ac_cv_exeext
3577 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3578 ac_clean_files=$ac_clean_files_save
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3580 $as_echo_n "checking for suffix of executables... " >&6; }
3581 if { { ac_try="$ac_link"
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3587 $as_echo "$ac_try_echo"; } >&5
3588 (eval "$ac_link") 2>&5
3590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591 test $ac_status = 0; }; then :
3592 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3593 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3594 # work properly (i.e., refer to `conftest.exe'), while it won't with
3596 for ac_file in conftest.exe conftest conftest.*; do
3597 test -f "$ac_file" || continue
3599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3600 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3608 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3609 See \`config.log' for more details" "$LINENO" 5; }
3611 rm -f conftest conftest$ac_cv_exeext
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3613 $as_echo "$ac_cv_exeext" >&6; }
3615 rm -f conftest.$ac_ext
3616 EXEEXT=$ac_cv_exeext
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3624 FILE *f = fopen ("conftest.out", "w");
3625 return ferror (f) || fclose (f) != 0;
3631 ac_clean_files="$ac_clean_files conftest.out"
3632 # Check that the compiler produces executables we can run. If not, either
3633 # the compiler is broken, or we cross compile.
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3635 $as_echo_n "checking whether we are cross compiling... " >&6; }
3636 if test "$cross_compiling" != yes; then
3637 { { ac_try="$ac_link"
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3643 $as_echo "$ac_try_echo"; } >&5
3644 (eval "$ac_link") 2>&5
3646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647 test $ac_status = 0; }
3648 if { ac_try='./conftest$ac_cv_exeext'
3649 { { case "(($ac_try" in
3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651 *) ac_try_echo=$ac_try;;
3653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3654 $as_echo "$ac_try_echo"; } >&5
3655 (eval "$ac_try") 2>&5
3657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3658 test $ac_status = 0; }; }; then
3661 if test "$cross_compiling" = maybe; then
3664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666 as_fn_error $? "cannot run C compiled programs.
3667 If you meant to cross compile, use \`--host'.
3668 See \`config.log' for more details" "$LINENO" 5; }
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3673 $as_echo "$cross_compiling" >&6; }
3675 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3676 ac_clean_files=$ac_clean_files_save
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3678 $as_echo_n "checking for suffix of object files... " >&6; }
3679 if ${ac_cv_objext+:} false; then :
3680 $as_echo_n "(cached) " >&6
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3693 rm -f conftest.o conftest.obj
3694 if { { ac_try="$ac_compile"
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3700 $as_echo "$ac_try_echo"; } >&5
3701 (eval "$ac_compile") 2>&5
3703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3704 test $ac_status = 0; }; then :
3705 for ac_file in conftest.o conftest.obj conftest.*; do
3706 test -f "$ac_file" || continue;
3708 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3709 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3714 $as_echo "$as_me: failed program was:" >&5
3715 sed 's/^/| /' conftest.$ac_ext >&5
3717 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3719 as_fn_error $? "cannot compute suffix of object files: cannot compile
3720 See \`config.log' for more details" "$LINENO" 5; }
3722 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3725 $as_echo "$ac_cv_objext" >&6; }
3726 OBJEXT=$ac_cv_objext
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3729 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3730 if ${ac_cv_c_compiler_gnu+:} false; then :
3731 $as_echo_n "(cached) " >&6
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3747 if ac_fn_c_try_compile "$LINENO"; then :
3752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3753 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3757 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3758 if test $ac_compiler_gnu = yes; then
3763 ac_test_CFLAGS=${CFLAGS+set}
3764 ac_save_CFLAGS=$CFLAGS
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3766 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3767 if ${ac_cv_prog_cc_g+:} false; then :
3768 $as_echo_n "(cached) " >&6
3770 ac_save_c_werror_flag=$ac_c_werror_flag
3771 ac_c_werror_flag=yes
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3785 if ac_fn_c_try_compile "$LINENO"; then :
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3800 if ac_fn_c_try_compile "$LINENO"; then :
3803 ac_c_werror_flag=$ac_save_c_werror_flag
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3816 if ac_fn_c_try_compile "$LINENO"; then :
3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 ac_c_werror_flag=$ac_save_c_werror_flag
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3827 $as_echo "$ac_cv_prog_cc_g" >&6; }
3828 if test "$ac_test_CFLAGS" = set; then
3829 CFLAGS=$ac_save_CFLAGS
3830 elif test $ac_cv_prog_cc_g = yes; then
3831 if test "$GCC" = yes; then
3837 if test "$GCC" = yes; then
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3844 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3845 if ${ac_cv_prog_cc_c89+:} false; then :
3846 $as_echo_n "(cached) " >&6
3848 ac_cv_prog_cc_c89=no
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3854 #include <sys/types.h>
3855 #include <sys/stat.h>
3856 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3857 struct buf { int x; };
3858 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3859 static char *e (p, i)
3865 static char *f (char * (*g) (char **, int), char **p, ...)
3870 s = g (p, va_arg (v,int));
3875 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3876 function prototypes and stuff, but not '\xHH' hex character constants.
3877 These don't provoke an error unfortunately, instead are silently treated
3878 as 'x'. The following induces an error, until -std is added to get
3879 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3880 array size at least. It's necessary to write '\x00'==0 to get something
3881 that's true only with -std. */
3882 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3884 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3885 inside strings and character constants. */
3887 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3889 int test (int i, double x);
3890 struct s1 {int (*f) (int a);};
3891 struct s2 {int (*f) (double a);};
3892 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3898 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3903 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3904 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3906 CC="$ac_save_CC $ac_arg"
3907 if ac_fn_c_try_compile "$LINENO"; then :
3908 ac_cv_prog_cc_c89=$ac_arg
3910 rm -f core conftest.err conftest.$ac_objext
3911 test "x$ac_cv_prog_cc_c89" != "xno" && break
3913 rm -f conftest.$ac_ext
3918 case "x$ac_cv_prog_cc_c89" in
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3921 $as_echo "none needed" >&6; } ;;
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3924 $as_echo "unsupported" >&6; } ;;
3926 CC="$CC $ac_cv_prog_cc_c89"
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3928 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3930 if test "x$ac_cv_prog_cc_c89" != xno; then :
3935 ac_cpp='$CPP $CPPFLAGS'
3936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3940 depcc="$CC" am_compiler_list=
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3943 $as_echo_n "checking dependency style of $depcc... " >&6; }
3944 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3945 $as_echo_n "(cached) " >&6
3947 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3948 # We make a subdir and do the tests there. Otherwise we can end up
3949 # making bogus files that we don't know about and never remove. For
3950 # instance it was reported that on HP-UX the gcc test will end up
3951 # making a dummy file named `D' -- because `-MD' means `put the output
3955 # Copy depcomp to subdir because otherwise we won't find it if we're
3956 # using a relative directory.
3957 cp "$am_depcomp" conftest.dir
3959 # We will build objects and dependencies in a subdirectory because
3960 # it helps to detect inapplicable dependency modes. For instance
3961 # both Tru64's cc and ICC support -MD to output dependencies as a
3962 # side effect of compilation, but ICC will put the dependencies in
3963 # the current directory while Tru64 will put them in the object
3967 am_cv_CC_dependencies_compiler_type=none
3968 if test "$am_compiler_list" = ""; then
3969 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3972 case " $depcc " in #(
3973 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3976 for depmode in $am_compiler_list; do
3977 # Setup a source with many dependencies, because some compilers
3978 # like to wrap large dependency lists on column 80 (with \), and
3979 # we should not choose a depcomp mode which is confused by this.
3981 # We need to recreate these files for each test, as the compiler may
3982 # overwrite some of them when testing with obscure command lines.
3983 # This happens at least with the AIX C compiler.
3985 for i in 1 2 3 4 5 6; do
3986 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3987 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3988 # Solaris 8's {/usr,}/bin/sh.
3989 touch sub/conftst$i.h
3991 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3993 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3994 # mode. It turns out that the SunPro C++ compiler does not properly
3995 # handle `-M -o', and we need to detect this. Also, some Intel
3996 # versions had trouble with output in subdirs
3997 am__obj=sub/conftest.${OBJEXT-o}
3998 am__minus_obj="-o $am__obj"
4001 # This depmode causes a compiler race in universal mode.
4002 test "$am__universal" = false || continue
4005 # after this tag, mechanisms are not by side-effect, so they'll
4006 # only be used when explicitly requested
4007 if test "x$enable_dependency_tracking" = xyes; then
4013 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4014 # This compiler won't grok `-c -o', but also, the minuso test has
4015 # not run yet. These depmodes are late enough in the game, and
4016 # so weak that their functioning should not be impacted.
4017 am__obj=conftest.${OBJEXT-o}
4022 if depmode=$depmode \
4023 source=sub/conftest.c object=$am__obj \
4024 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4025 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4026 >/dev/null 2>conftest.err &&
4027 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4028 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4029 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4030 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4031 # icc doesn't choke on unknown options, it will just issue warnings
4032 # or remarks (even with -Werror). So we grep stderr for any message
4033 # that says an option was ignored or not supported.
4034 # When given -MP, icc 7.0 and 7.1 complain thusly:
4035 # icc: Command line warning: ignoring option '-M'; no argument required
4036 # The diagnosis changed in icc 8.0:
4037 # icc: Command line remark: option '-MP' not supported
4038 if (grep 'ignoring option' conftest.err ||
4039 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4040 am_cv_CC_dependencies_compiler_type=$depmode
4049 am_cv_CC_dependencies_compiler_type=none
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4054 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4055 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4058 test "x$enable_dependency_tracking" != xno \
4059 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4061 am__fastdepCC_FALSE='#'
4063 am__fastdepCC_TRUE='#'
4064 am__fastdepCC_FALSE=
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4069 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4070 if ${ac_cv_path_SED+:} false; then :
4071 $as_echo_n "(cached) " >&6
4073 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4074 for ac_i in 1 2 3 4 5 6 7; do
4075 ac_script="$ac_script$as_nl$ac_script"
4077 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4078 { ac_script=; unset ac_script;}
4079 if test -z "$SED"; then
4080 ac_path_SED_found=false
4081 # Loop through the user's path and test for each of PROGNAME-LIST
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 test -z "$as_dir" && as_dir=.
4087 for ac_prog in sed gsed; do
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4090 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4091 # Check for GNU ac_path_SED and select it if it is found.
4092 # Check for GNU $ac_path_SED
4093 case `"$ac_path_SED" --version 2>&1` in
4095 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4098 $as_echo_n 0123456789 >"conftest.in"
4101 cat "conftest.in" "conftest.in" >"conftest.tmp"
4102 mv "conftest.tmp" "conftest.in"
4103 cp "conftest.in" "conftest.nl"
4104 $as_echo '' >> "conftest.nl"
4105 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4106 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4107 as_fn_arith $ac_count + 1 && ac_count=$as_val
4108 if test $ac_count -gt ${ac_path_SED_max-0}; then
4109 # Best one so far, save it but keep looking for a better one
4110 ac_cv_path_SED="$ac_path_SED"
4111 ac_path_SED_max=$ac_count
4113 # 10*(2^10) chars as input seems more than enough
4114 test $ac_count -gt 10 && break
4116 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4119 $ac_path_SED_found && break 3
4124 if test -z "$ac_cv_path_SED"; then
4125 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4133 $as_echo "$ac_cv_path_SED" >&6; }
4134 SED="$ac_cv_path_SED"
4137 test -z "$SED" && SED=sed
4138 Xsed="$SED -e 1s/^X//"
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4151 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4152 if ${ac_cv_path_GREP+:} false; then :
4153 $as_echo_n "(cached) " >&6
4155 if test -z "$GREP"; then
4156 ac_path_GREP_found=false
4157 # Loop through the user's path and test for each of PROGNAME-LIST
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4162 test -z "$as_dir" && as_dir=.
4163 for ac_prog in grep ggrep; do
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4166 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4167 # Check for GNU ac_path_GREP and select it if it is found.
4168 # Check for GNU $ac_path_GREP
4169 case `"$ac_path_GREP" --version 2>&1` in
4171 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4174 $as_echo_n 0123456789 >"conftest.in"
4177 cat "conftest.in" "conftest.in" >"conftest.tmp"
4178 mv "conftest.tmp" "conftest.in"
4179 cp "conftest.in" "conftest.nl"
4180 $as_echo 'GREP' >> "conftest.nl"
4181 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4182 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4183 as_fn_arith $ac_count + 1 && ac_count=$as_val
4184 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4185 # Best one so far, save it but keep looking for a better one
4186 ac_cv_path_GREP="$ac_path_GREP"
4187 ac_path_GREP_max=$ac_count
4189 # 10*(2^10) chars as input seems more than enough
4190 test $ac_count -gt 10 && break
4192 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4195 $ac_path_GREP_found && break 3
4200 if test -z "$ac_cv_path_GREP"; then
4201 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4204 ac_cv_path_GREP=$GREP
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4209 $as_echo "$ac_cv_path_GREP" >&6; }
4210 GREP="$ac_cv_path_GREP"
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4214 $as_echo_n "checking for egrep... " >&6; }
4215 if ${ac_cv_path_EGREP+:} false; then :
4216 $as_echo_n "(cached) " >&6
4218 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4219 then ac_cv_path_EGREP="$GREP -E"
4221 if test -z "$EGREP"; then
4222 ac_path_EGREP_found=false
4223 # Loop through the user's path and test for each of PROGNAME-LIST
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4228 test -z "$as_dir" && as_dir=.
4229 for ac_prog in egrep; do
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4232 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4233 # Check for GNU ac_path_EGREP and select it if it is found.
4234 # Check for GNU $ac_path_EGREP
4235 case `"$ac_path_EGREP" --version 2>&1` in
4237 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4240 $as_echo_n 0123456789 >"conftest.in"
4243 cat "conftest.in" "conftest.in" >"conftest.tmp"
4244 mv "conftest.tmp" "conftest.in"
4245 cp "conftest.in" "conftest.nl"
4246 $as_echo 'EGREP' >> "conftest.nl"
4247 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4248 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4249 as_fn_arith $ac_count + 1 && ac_count=$as_val
4250 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4251 # Best one so far, save it but keep looking for a better one
4252 ac_cv_path_EGREP="$ac_path_EGREP"
4253 ac_path_EGREP_max=$ac_count
4255 # 10*(2^10) chars as input seems more than enough
4256 test $ac_count -gt 10 && break
4258 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4261 $ac_path_EGREP_found && break 3
4266 if test -z "$ac_cv_path_EGREP"; then
4267 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4270 ac_cv_path_EGREP=$EGREP
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4276 $as_echo "$ac_cv_path_EGREP" >&6; }
4277 EGREP="$ac_cv_path_EGREP"
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4281 $as_echo_n "checking for fgrep... " >&6; }
4282 if ${ac_cv_path_FGREP+:} false; then :
4283 $as_echo_n "(cached) " >&6
4285 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4286 then ac_cv_path_FGREP="$GREP -F"
4288 if test -z "$FGREP"; then
4289 ac_path_FGREP_found=false
4290 # Loop through the user's path and test for each of PROGNAME-LIST
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4295 test -z "$as_dir" && as_dir=.
4296 for ac_prog in fgrep; do
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4299 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4300 # Check for GNU ac_path_FGREP and select it if it is found.
4301 # Check for GNU $ac_path_FGREP
4302 case `"$ac_path_FGREP" --version 2>&1` in
4304 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4307 $as_echo_n 0123456789 >"conftest.in"
4310 cat "conftest.in" "conftest.in" >"conftest.tmp"
4311 mv "conftest.tmp" "conftest.in"
4312 cp "conftest.in" "conftest.nl"
4313 $as_echo 'FGREP' >> "conftest.nl"
4314 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4315 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4316 as_fn_arith $ac_count + 1 && ac_count=$as_val
4317 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4318 # Best one so far, save it but keep looking for a better one
4319 ac_cv_path_FGREP="$ac_path_FGREP"
4320 ac_path_FGREP_max=$ac_count
4322 # 10*(2^10) chars as input seems more than enough
4323 test $ac_count -gt 10 && break
4325 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4328 $ac_path_FGREP_found && break 3
4333 if test -z "$ac_cv_path_FGREP"; then
4334 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4337 ac_cv_path_FGREP=$FGREP
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4343 $as_echo "$ac_cv_path_FGREP" >&6; }
4344 FGREP="$ac_cv_path_FGREP"
4347 test -z "$GREP" && GREP=grep
4367 # Check whether --with-gnu-ld was given.
4368 if test "${with_gnu_ld+set}" = set; then :
4369 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4375 if test "$GCC" = yes; then
4376 # Check if gcc -print-prog-name=ld gives a path.
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4378 $as_echo_n "checking for ld used by $CC... " >&6; }
4381 # gcc leaves a trailing carriage return which upsets mingw
4382 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4384 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4387 # Accept absolute paths.
4389 re_direlt='/[^/][^/]*/\.\./'
4390 # Canonicalize the pathname of ld
4391 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4392 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4393 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4395 test -z "$LD" && LD="$ac_prog"
4398 # If it fails, then pretend we aren't using GCC.
4402 # If it is relative, then search for the first ld in PATH.
4406 elif test "$with_gnu_ld" = yes; then
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4408 $as_echo_n "checking for GNU ld... " >&6; }
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4411 $as_echo_n "checking for non-GNU ld... " >&6; }
4413 if ${lt_cv_path_LD+:} false; then :
4414 $as_echo_n "(cached) " >&6
4416 if test -z "$LD"; then
4417 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4418 for ac_dir in $PATH; do
4420 test -z "$ac_dir" && ac_dir=.
4421 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4422 lt_cv_path_LD="$ac_dir/$ac_prog"
4423 # Check to see if the program is GNU ld. I'd rather use --version,
4424 # but apparently some variants of GNU ld only accept -v.
4425 # Break only if it was the GNU/non-GNU ld that we prefer.
4426 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4427 *GNU* | *'with BFD'*)
4428 test "$with_gnu_ld" != no && break
4431 test "$with_gnu_ld" != yes && break
4438 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4443 if test -n "$LD"; then
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4445 $as_echo "$LD" >&6; }
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448 $as_echo "no" >&6; }
4450 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4452 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4453 if ${lt_cv_prog_gnu_ld+:} false; then :
4454 $as_echo_n "(cached) " >&6
4456 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4457 case `$LD -v 2>&1 </dev/null` in
4458 *GNU* | *'with BFD'*)
4459 lt_cv_prog_gnu_ld=yes
4462 lt_cv_prog_gnu_ld=no
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4467 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4468 with_gnu_ld=$lt_cv_prog_gnu_ld
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4479 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4480 if ${lt_cv_path_NM+:} false; then :
4481 $as_echo_n "(cached) " >&6
4483 if test -n "$NM"; then
4484 # Let the user override the test.
4487 lt_nm_to_check="${ac_tool_prefix}nm"
4488 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4489 lt_nm_to_check="$lt_nm_to_check nm"
4491 for lt_tmp_nm in $lt_nm_to_check; do
4492 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4493 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4495 test -z "$ac_dir" && ac_dir=.
4496 tmp_nm="$ac_dir/$lt_tmp_nm"
4497 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4498 # Check to see if the nm accepts a BSD-compat flag.
4499 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4500 # nm: unknown option "B" ignored
4501 # Tru64's nm complains that /dev/null is an invalid object file
4502 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4503 */dev/null* | *'Invalid file or object type'*)
4504 lt_cv_path_NM="$tmp_nm -B"
4508 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4510 lt_cv_path_NM="$tmp_nm -p"
4514 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4515 continue # so that we can try to find one that supports BSD flags
4524 : ${lt_cv_path_NM=no}
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4528 $as_echo "$lt_cv_path_NM" >&6; }
4529 if test "$lt_cv_path_NM" != "no"; then
4532 # Didn't find any BSD compatible name lister, look for dumpbin.
4533 if test -n "$DUMPBIN"; then :
4534 # Let the user override the test.
4536 if test -n "$ac_tool_prefix"; then
4537 for ac_prog in dumpbin "link -dump"
4539 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4540 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4542 $as_echo_n "checking for $ac_word... " >&6; }
4543 if ${ac_cv_prog_DUMPBIN+:} false; then :
4544 $as_echo_n "(cached) " >&6
4546 if test -n "$DUMPBIN"; then
4547 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 test -z "$as_dir" && as_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4556 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 DUMPBIN=$ac_cv_prog_DUMPBIN
4567 if test -n "$DUMPBIN"; then
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4569 $as_echo "$DUMPBIN" >&6; }
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 $as_echo "no" >&6; }
4576 test -n "$DUMPBIN" && break
4579 if test -z "$DUMPBIN"; then
4580 ac_ct_DUMPBIN=$DUMPBIN
4581 for ac_prog in dumpbin "link -dump"
4583 # Extract the first word of "$ac_prog", so it can be a program name with args.
4584 set dummy $ac_prog; ac_word=$2
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4586 $as_echo_n "checking for $ac_word... " >&6; }
4587 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4588 $as_echo_n "(cached) " >&6
4590 if test -n "$ac_ct_DUMPBIN"; then
4591 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4600 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4611 if test -n "$ac_ct_DUMPBIN"; then
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4613 $as_echo "$ac_ct_DUMPBIN" >&6; }
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4616 $as_echo "no" >&6; }
4620 test -n "$ac_ct_DUMPBIN" && break
4623 if test "x$ac_ct_DUMPBIN" = x; then
4626 case $cross_compiling:$ac_tool_warned in
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4630 ac_tool_warned=yes ;;
4632 DUMPBIN=$ac_ct_DUMPBIN
4636 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4638 DUMPBIN="$DUMPBIN -symbols"
4646 if test "$DUMPBIN" != ":"; then
4650 test -z "$NM" && NM=nm
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4658 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4659 if ${lt_cv_nm_interface+:} false; then :
4660 $as_echo_n "(cached) " >&6
4662 lt_cv_nm_interface="BSD nm"
4663 echo "int some_variable = 0;" > conftest.$ac_ext
4664 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4665 (eval "$ac_compile" 2>conftest.err)
4666 cat conftest.err >&5
4667 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4668 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4669 cat conftest.err >&5
4670 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4671 cat conftest.out >&5
4672 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4673 lt_cv_nm_interface="MS dumpbin"
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4678 $as_echo "$lt_cv_nm_interface" >&6; }
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4681 $as_echo_n "checking whether ln -s works... " >&6; }
4683 if test "$LN_S" = "ln -s"; then
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4685 $as_echo "yes" >&6; }
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4688 $as_echo "no, using $LN_S" >&6; }
4691 # find the maximum length of command line arguments
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4693 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4694 if ${lt_cv_sys_max_cmd_len+:} false; then :
4695 $as_echo_n "(cached) " >&6
4702 # On DJGPP, this test can blow up pretty badly due to problems in libc
4703 # (any single argument exceeding 2000 bytes causes a buffer overrun
4704 # during glob expansion). Even if it were fixed, the result of this
4705 # check would be larger than it should be.
4706 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4710 # Under GNU Hurd, this test is not required because there is
4711 # no limit to the length of command line arguments.
4712 # Libtool will interpret -1 as no limit whatsoever
4713 lt_cv_sys_max_cmd_len=-1;
4716 cygwin* | mingw* | cegcc*)
4717 # On Win9x/ME, this test blows up -- it succeeds, but takes
4718 # about 5 minutes as the teststring grows exponentially.
4719 # Worse, since 9x/ME are not pre-emptively multitasking,
4720 # you end up with a "frozen" computer, even though with patience
4721 # the test eventually succeeds (with a max line length of 256k).
4722 # Instead, let's just punt: use the minimum linelength reported by
4723 # all of the supported platforms: 8192 (on NT/2K/XP).
4724 lt_cv_sys_max_cmd_len=8192;
4728 # On MiNT this can take a long time and run out of memory.
4729 lt_cv_sys_max_cmd_len=8192;
4733 # On AmigaOS with pdksh, this test takes hours, literally.
4734 # So we just punt and use a minimum line length of 8192.
4735 lt_cv_sys_max_cmd_len=8192;
4738 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4739 # This has been around since 386BSD, at least. Likely further.
4740 if test -x /sbin/sysctl; then
4741 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4742 elif test -x /usr/sbin/sysctl; then
4743 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4745 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4747 # And add a safety zone
4748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4753 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4754 lt_cv_sys_max_cmd_len=196608
4758 # The test takes a long time on OS/2.
4759 lt_cv_sys_max_cmd_len=8192
4763 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4764 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4765 # nice to cause kernel panics so lets avoid the loop below.
4766 # First set a reasonable default.
4767 lt_cv_sys_max_cmd_len=16384
4769 if test -x /sbin/sysconfig; then
4770 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4771 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4776 lt_cv_sys_max_cmd_len=102400
4778 sysv5* | sco5v6* | sysv4.2uw2*)
4779 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4780 if test -n "$kargmax"; then
4781 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4783 lt_cv_sys_max_cmd_len=32768
4787 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4788 if test -n "$lt_cv_sys_max_cmd_len"; then
4789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4792 # Make teststring a little bigger before we do anything with it.
4793 # a 1K string should be a reasonable start.
4794 for i in 1 2 3 4 5 6 7 8 ; do
4795 teststring=$teststring$teststring
4797 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4798 # If test is not a shell built-in, we'll probably end up computing a
4799 # maximum length that is only half of the actual maximum length, but
4801 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4802 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4803 test $i != 17 # 1/2 MB should be enough
4806 teststring=$teststring$teststring
4808 # Only check the string length outside the loop.
4809 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4811 # Add a significant safety factor because C++ compilers can tack on
4812 # massive amounts of additional arguments before passing them to the
4813 # linker. It appears as though 1/2 is a usable value.
4814 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4821 if test -n $lt_cv_sys_max_cmd_len ; then
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4823 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4826 $as_echo "none" >&6; }
4828 max_cmd_len=$lt_cv_sys_max_cmd_len
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4840 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4841 # Try some XSI features
4844 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4846 && eval 'test $(( 1 + 1 )) -eq 2 \
4847 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4850 $as_echo "$xsi_shell" >&6; }
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4854 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4856 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4858 && lt_shell_append=yes
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4860 $as_echo "$lt_shell_append" >&6; }
4863 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4873 # test EBCDIC or ASCII
4874 case `echo X|tr X '\101'` in
4875 A) # ASCII based system
4876 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4877 lt_SP2NL='tr \040 \012'
4878 lt_NL2SP='tr \015\012 \040\040'
4880 *) # EBCDIC based system
4881 lt_SP2NL='tr \100 \n'
4882 lt_NL2SP='tr \r\n \100\100'
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4895 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4896 if ${lt_cv_to_host_file_cmd+:} false; then :
4897 $as_echo_n "(cached) " >&6
4902 *-*-mingw* ) # actually msys
4903 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4906 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4908 * ) # otherwise, assume *nix
4909 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4915 *-*-mingw* ) # actually msys
4916 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4919 lt_cv_to_host_file_cmd=func_convert_file_noop
4921 * ) # otherwise, assume *nix
4922 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4926 * ) # unhandled hosts (and "normal" native builds)
4927 lt_cv_to_host_file_cmd=func_convert_file_noop
4933 to_host_file_cmd=$lt_cv_to_host_file_cmd
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4935 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4942 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4943 if ${lt_cv_to_tool_file_cmd+:} false; then :
4944 $as_echo_n "(cached) " >&6
4946 #assume ordinary cross tools, or native build.
4947 lt_cv_to_tool_file_cmd=func_convert_file_noop
4951 *-*-mingw* ) # actually msys
4952 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4960 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4962 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4969 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4970 if ${lt_cv_ld_reload_flag+:} false; then :
4971 $as_echo_n "(cached) " >&6
4973 lt_cv_ld_reload_flag='-r'
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4976 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4977 reload_flag=$lt_cv_ld_reload_flag
4978 case $reload_flag in
4980 *) reload_flag=" $reload_flag" ;;
4982 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4984 cygwin* | mingw* | pw32* | cegcc*)
4985 if test "$GCC" != yes; then
4990 if test "$GCC" = yes; then
4991 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4993 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5006 if test -n "$ac_tool_prefix"; then
5007 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5008 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010 $as_echo_n "checking for $ac_word... " >&6; }
5011 if ${ac_cv_prog_OBJDUMP+:} false; then :
5012 $as_echo_n "(cached) " >&6
5014 if test -n "$OBJDUMP"; then
5015 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 test -z "$as_dir" && as_dir=.
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5024 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 OBJDUMP=$ac_cv_prog_OBJDUMP
5035 if test -n "$OBJDUMP"; then
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5037 $as_echo "$OBJDUMP" >&6; }
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040 $as_echo "no" >&6; }
5045 if test -z "$ac_cv_prog_OBJDUMP"; then
5046 ac_ct_OBJDUMP=$OBJDUMP
5047 # Extract the first word of "objdump", so it can be a program name with args.
5048 set dummy objdump; ac_word=$2
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050 $as_echo_n "checking for $ac_word... " >&6; }
5051 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5052 $as_echo_n "(cached) " >&6
5054 if test -n "$ac_ct_OBJDUMP"; then
5055 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5064 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5075 if test -n "$ac_ct_OBJDUMP"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5077 $as_echo "$ac_ct_OBJDUMP" >&6; }
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5083 if test "x$ac_ct_OBJDUMP" = x; then
5086 case $cross_compiling:$ac_tool_warned in
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5090 ac_tool_warned=yes ;;
5092 OBJDUMP=$ac_ct_OBJDUMP
5095 OBJDUMP="$ac_cv_prog_OBJDUMP"
5098 test -z "$OBJDUMP" && OBJDUMP=objdump
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5109 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5110 if ${lt_cv_deplibs_check_method+:} false; then :
5111 $as_echo_n "(cached) " >&6
5113 lt_cv_file_magic_cmd='$MAGIC_CMD'
5114 lt_cv_file_magic_test_file=
5115 lt_cv_deplibs_check_method='unknown'
5116 # Need to set the preceding variable on all platforms that support
5117 # interlibrary dependencies.
5118 # 'none' -- dependencies not supported.
5119 # `unknown' -- same as none, but documents that we really don't know.
5120 # 'pass_all' -- all dependencies passed with no checks.
5121 # 'test_compile' -- check by making test program.
5122 # 'file_magic [[regex]]' -- check by looking for files in library path
5123 # which responds to the $file_magic_cmd with a given extended regex.
5124 # If you have `file' or equivalent on your system and you're not sure
5125 # whether `pass_all' will *always* work, you probably want this one.
5129 lt_cv_deplibs_check_method=pass_all
5133 lt_cv_deplibs_check_method=pass_all
5137 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5138 lt_cv_file_magic_cmd='/usr/bin/file -L'
5139 lt_cv_file_magic_test_file=/shlib/libc.so
5143 # func_win32_libid is a shell function defined in ltmain.sh
5144 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5145 lt_cv_file_magic_cmd='func_win32_libid'
5149 # Base MSYS/MinGW do not provide the 'file' command needed by
5150 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5151 # unless we find 'file', for example because we are cross-compiling.
5152 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5153 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5154 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5155 lt_cv_file_magic_cmd='func_win32_libid'
5157 # Keep this pattern in sync with the one in func_win32_libid.
5158 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5159 lt_cv_file_magic_cmd='$OBJDUMP -f'
5164 # use the weaker test based on 'objdump'. See mingw*.
5165 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5166 lt_cv_file_magic_cmd='$OBJDUMP -f'
5169 darwin* | rhapsody*)
5170 lt_cv_deplibs_check_method=pass_all
5173 freebsd* | dragonfly*)
5174 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5177 # Not sure whether the presence of OpenBSD here was a mistake.
5178 # Let's accept both of them until this is cleared up.
5179 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5180 lt_cv_file_magic_cmd=/usr/bin/file
5181 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5185 lt_cv_deplibs_check_method=pass_all
5190 lt_cv_deplibs_check_method=pass_all
5194 lt_cv_deplibs_check_method=pass_all
5197 hpux10.20* | hpux11*)
5198 lt_cv_file_magic_cmd=/usr/bin/file
5201 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5202 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5205 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]'
5206 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5209 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5210 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5216 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5220 irix5* | irix6* | nonstopux*)
5222 *-32|*"-32 ") libmagic=32-bit;;
5223 *-n32|*"-n32 ") libmagic=N32;;
5224 *-64|*"-64 ") libmagic=64-bit;;
5225 *) libmagic=never-match;;
5227 lt_cv_deplibs_check_method=pass_all
5230 # This must be glibc/ELF.
5231 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5232 lt_cv_deplibs_check_method=pass_all
5236 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5237 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5239 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5244 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5245 lt_cv_file_magic_cmd=/usr/bin/file
5246 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5250 lt_cv_deplibs_check_method=pass_all
5254 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5255 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5257 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5261 osf3* | osf4* | osf5*)
5262 lt_cv_deplibs_check_method=pass_all
5266 lt_cv_deplibs_check_method=pass_all
5270 lt_cv_deplibs_check_method=pass_all
5273 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5274 lt_cv_deplibs_check_method=pass_all
5278 case $host_vendor in
5280 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]'
5281 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5284 lt_cv_deplibs_check_method=pass_all
5287 lt_cv_file_magic_cmd='/bin/file'
5288 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5291 lt_cv_file_magic_cmd='/bin/file'
5292 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5293 lt_cv_file_magic_test_file=/lib/libc.so
5296 lt_cv_deplibs_check_method=pass_all
5299 lt_cv_deplibs_check_method=pass_all
5305 lt_cv_deplibs_check_method=pass_all
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5311 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5315 if test "$build" = "$host"; then
5318 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5321 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5327 file_magic_cmd=$lt_cv_file_magic_cmd
5328 deplibs_check_method=$lt_cv_deplibs_check_method
5329 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5352 if test -n "$ac_tool_prefix"; then
5353 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5354 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if ${ac_cv_prog_DLLTOOL+:} false; then :
5358 $as_echo_n "(cached) " >&6
5360 if test -n "$DLLTOOL"; then
5361 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5370 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 DLLTOOL=$ac_cv_prog_DLLTOOL
5381 if test -n "$DLLTOOL"; then
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5383 $as_echo "$DLLTOOL" >&6; }
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; }
5391 if test -z "$ac_cv_prog_DLLTOOL"; then
5392 ac_ct_DLLTOOL=$DLLTOOL
5393 # Extract the first word of "dlltool", so it can be a program name with args.
5394 set dummy dlltool; ac_word=$2
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5398 $as_echo_n "(cached) " >&6
5400 if test -n "$ac_ct_DLLTOOL"; then
5401 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5410 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5421 if test -n "$ac_ct_DLLTOOL"; then
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5423 $as_echo "$ac_ct_DLLTOOL" >&6; }
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5429 if test "x$ac_ct_DLLTOOL" = x; then
5432 case $cross_compiling:$ac_tool_warned in
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5436 ac_tool_warned=yes ;;
5438 DLLTOOL=$ac_ct_DLLTOOL
5441 DLLTOOL="$ac_cv_prog_DLLTOOL"
5444 test -z "$DLLTOOL" && DLLTOOL=dlltool
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5456 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5457 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5458 $as_echo_n "(cached) " >&6
5460 lt_cv_sharedlib_from_linklib_cmd='unknown'
5463 cygwin* | mingw* | pw32* | cegcc*)
5464 # two different shell functions defined in ltmain.sh
5465 # decide which to use based on capabilities of $DLLTOOL
5466 case `$DLLTOOL --help 2>&1` in
5467 *--identify-strict*)
5468 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5471 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5476 # fallback: assume linklib IS sharedlib
5477 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5483 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5484 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5485 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5494 if test -n "$ac_tool_prefix"; then
5497 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5498 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500 $as_echo_n "checking for $ac_word... " >&6; }
5501 if ${ac_cv_prog_AR+:} false; then :
5502 $as_echo_n "(cached) " >&6
5504 if test -n "$AR"; then
5505 ac_cv_prog_AR="$AR" # Let the user override the test.
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5514 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 if test -n "$AR"; then
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5527 $as_echo "$AR" >&6; }
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530 $as_echo "no" >&6; }
5534 test -n "$AR" && break
5537 if test -z "$AR"; then
5541 # Extract the first word of "$ac_prog", so it can be a program name with args.
5542 set dummy $ac_prog; ac_word=$2
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544 $as_echo_n "checking for $ac_word... " >&6; }
5545 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5546 $as_echo_n "(cached) " >&6
5548 if test -n "$ac_ct_AR"; then
5549 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 test -z "$as_dir" && as_dir=.
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5558 ac_cv_prog_ac_ct_AR="$ac_prog"
5559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5568 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5569 if test -n "$ac_ct_AR"; then
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5571 $as_echo "$ac_ct_AR" >&6; }
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574 $as_echo "no" >&6; }
5578 test -n "$ac_ct_AR" && break
5581 if test "x$ac_ct_AR" = x; then
5584 case $cross_compiling:$ac_tool_warned in
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5588 ac_tool_warned=yes ;;
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5608 $as_echo_n "checking for archiver @FILE support... " >&6; }
5609 if ${lt_cv_ar_at_file+:} false; then :
5610 $as_echo_n "(cached) " >&6
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5624 if ac_fn_c_try_compile "$LINENO"; then :
5625 echo conftest.$ac_objext > conftest.lst
5626 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5628 (eval $lt_ar_try) 2>&5
5630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5631 test $ac_status = 0; }
5632 if test "$ac_status" -eq 0; then
5633 # Ensure the archiver fails upon bogus file names.
5634 rm -f conftest.$ac_objext libconftest.a
5635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5636 (eval $lt_ar_try) 2>&5
5638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5639 test $ac_status = 0; }
5640 if test "$ac_status" -ne 0; then
5644 rm -f conftest.* libconftest.a
5647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5651 $as_echo "$lt_cv_ar_at_file" >&6; }
5653 if test "x$lt_cv_ar_at_file" = xno; then
5656 archiver_list_spec=$lt_cv_ar_at_file
5665 if test -n "$ac_tool_prefix"; then
5666 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5667 set dummy ${ac_tool_prefix}strip; ac_word=$2
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5669 $as_echo_n "checking for $ac_word... " >&6; }
5670 if ${ac_cv_prog_STRIP+:} false; then :
5671 $as_echo_n "(cached) " >&6
5673 if test -n "$STRIP"; then
5674 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 test -z "$as_dir" && as_dir=.
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5683 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 STRIP=$ac_cv_prog_STRIP
5694 if test -n "$STRIP"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5696 $as_echo "$STRIP" >&6; }
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }
5704 if test -z "$ac_cv_prog_STRIP"; then
5706 # Extract the first word of "strip", so it can be a program name with args.
5707 set dummy strip; ac_word=$2
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709 $as_echo_n "checking for $ac_word... " >&6; }
5710 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5711 $as_echo_n "(cached) " >&6
5713 if test -n "$ac_ct_STRIP"; then
5714 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 test -z "$as_dir" && as_dir=.
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5723 ac_cv_prog_ac_ct_STRIP="strip"
5724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5733 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5734 if test -n "$ac_ct_STRIP"; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5736 $as_echo "$ac_ct_STRIP" >&6; }
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739 $as_echo "no" >&6; }
5742 if test "x$ac_ct_STRIP" = x; then
5745 case $cross_compiling:$ac_tool_warned in
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5749 ac_tool_warned=yes ;;
5754 STRIP="$ac_cv_prog_STRIP"
5757 test -z "$STRIP" && STRIP=:
5764 if test -n "$ac_tool_prefix"; then
5765 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5766 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5768 $as_echo_n "checking for $ac_word... " >&6; }
5769 if ${ac_cv_prog_RANLIB+:} false; then :
5770 $as_echo_n "(cached) " >&6
5772 if test -n "$RANLIB"; then
5773 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5782 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5792 RANLIB=$ac_cv_prog_RANLIB
5793 if test -n "$RANLIB"; then
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5795 $as_echo "$RANLIB" >&6; }
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798 $as_echo "no" >&6; }
5803 if test -z "$ac_cv_prog_RANLIB"; then
5804 ac_ct_RANLIB=$RANLIB
5805 # Extract the first word of "ranlib", so it can be a program name with args.
5806 set dummy ranlib; ac_word=$2
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5808 $as_echo_n "checking for $ac_word... " >&6; }
5809 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5810 $as_echo_n "(cached) " >&6
5812 if test -n "$ac_ct_RANLIB"; then
5813 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 test -z "$as_dir" && as_dir=.
5820 for ac_exec_ext in '' $ac_executable_extensions; do
5821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5822 ac_cv_prog_ac_ct_RANLIB="ranlib"
5823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5833 if test -n "$ac_ct_RANLIB"; then
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5835 $as_echo "$ac_ct_RANLIB" >&6; }
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5838 $as_echo "no" >&6; }
5841 if test "x$ac_ct_RANLIB" = x; then
5844 case $cross_compiling:$ac_tool_warned in
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5848 ac_tool_warned=yes ;;
5850 RANLIB=$ac_ct_RANLIB
5853 RANLIB="$ac_cv_prog_RANLIB"
5856 test -z "$RANLIB" && RANLIB=:
5863 # Determine commands to create old-style static archives.
5864 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5865 old_postinstall_cmds='chmod 644 $oldlib'
5866 old_postuninstall_cmds=
5868 if test -n "$RANLIB"; then
5871 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5874 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5877 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5882 lock_old_archive_extraction=yes ;;
5884 lock_old_archive_extraction=no ;;
5925 # If no C compiler was specified, use CC.
5928 # If no C compiler flags were specified, use CFLAGS.
5929 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5931 # Allow CC to be a program name with arguments.
5935 # Check for command to grab the raw symbol name followed by C symbol from nm.
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5937 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5938 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5939 $as_echo_n "(cached) " >&6
5942 # These are sane defaults that work on at least a few old systems.
5943 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5945 # Character class describing NM global symbol codes.
5946 symcode='[BCDEGRST]'
5948 # Regexp to match symbols that can be accessed directly from C.
5949 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5951 # Define system-specific variables.
5956 cygwin* | mingw* | pw32* | cegcc*)
5957 symcode='[ABCDGISTW]'
5960 if test "$host_cpu" = ia64; then
5961 symcode='[ABCDEGRST]'
5965 symcode='[BCDEGRST]'
5968 symcode='[BCDEGQRST]'
5979 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5987 # If we're using GNU nm, then use its standard symbol codes.
5988 case `$NM -V 2>&1` in
5989 *GNU* | *'with BFD'*)
5990 symcode='[ABCDGIRSTW]' ;;
5993 # Transform an extracted symbol line into a proper C declaration.
5994 # Some systems (esp. on ia64) link data and code symbols differently,
5995 # so use this general approach.
5996 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5998 # Transform an extracted symbol line into symbol name and symbol address
5999 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6000 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'"
6002 # Handle CRLF in mingw tool chain
6006 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6010 # Try without a prefix underscore, then with it.
6011 for ac_symprfx in "" "_"; do
6013 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6014 symxfrm="\\1 $ac_symprfx\\2 \\2"
6016 # Write the raw and C identifiers.
6017 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6018 # Fake it for dumpbin and say T for any non-static function
6019 # and D for any global variable.
6020 # Also find C++ and __fastcall symbols from MSVC++,
6021 # which start with @ or ?.
6022 lt_cv_sys_global_symbol_pipe="$AWK '"\
6023 " {last_section=section; section=\$ 3};"\
6024 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6025 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6026 " \$ 0!~/External *\|/{next};"\
6027 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6028 " {if(hide[section]) next};"\
6029 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6030 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6031 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6032 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6033 " ' prfx=^$ac_symprfx"
6035 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6037 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6039 # Check to see that the pipe works correctly.
6043 cat > conftest.$ac_ext <<_LT_EOF
6048 void nm_test_func(void);
6049 void nm_test_func(void){}
6053 int main(){nm_test_var='a';nm_test_func();return(0);}
6056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6057 (eval $ac_compile) 2>&5
6059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6060 test $ac_status = 0; }; then
6061 # Now try to grab the symbols.
6063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6064 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6067 test $ac_status = 0; } && test -s "$nlist"; then
6068 # Try sorting and uniquifying the output.
6069 if sort "$nlist" | uniq > "$nlist"T; then
6070 mv -f "$nlist"T "$nlist"
6075 # Make sure that we snagged all the symbols we need.
6076 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6077 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6078 cat <<_LT_EOF > conftest.$ac_ext
6079 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6080 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6081 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6082 relocations are performed -- see ld's documentation on pseudo-relocs. */
6083 # define LT_DLSYM_CONST
6084 #elif defined(__osf__)
6085 /* This system does not cope well with relocations in const data. */
6086 # define LT_DLSYM_CONST
6088 # define LT_DLSYM_CONST const
6096 # Now generate the symbol file.
6097 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6099 cat <<_LT_EOF >> conftest.$ac_ext
6101 /* The mapping between symbol names and symbols. */
6102 LT_DLSYM_CONST struct {
6106 lt__PROGRAM__LTX_preloaded_symbols[] =
6108 { "@PROGRAM@", (void *) 0 },
6110 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6111 cat <<\_LT_EOF >> conftest.$ac_ext
6115 /* This works around a problem in FreeBSD linker */
6116 #ifdef FREEBSD_WORKAROUND
6117 static const void *lt_preloaded_setup() {
6118 return lt__PROGRAM__LTX_preloaded_symbols;
6126 # Now try linking the two files.
6127 mv conftest.$ac_objext conftstm.$ac_objext
6128 lt_globsym_save_LIBS=$LIBS
6129 lt_globsym_save_CFLAGS=$CFLAGS
6130 LIBS="conftstm.$ac_objext"
6131 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6133 (eval $ac_link) 2>&5
6135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6136 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6139 LIBS=$lt_globsym_save_LIBS
6140 CFLAGS=$lt_globsym_save_CFLAGS
6142 echo "cannot find nm_test_func in $nlist" >&5
6145 echo "cannot find nm_test_var in $nlist" >&5
6148 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6151 echo "$progname: failed program was:" >&5
6152 cat conftest.$ac_ext >&5
6154 rm -rf conftest* conftst*
6156 # Do not use the global_symbol_pipe unless it works.
6157 if test "$pipe_works" = yes; then
6160 lt_cv_sys_global_symbol_pipe=
6166 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6167 lt_cv_sys_global_symbol_to_cdecl=
6169 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6171 $as_echo "failed" >&6; }
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6174 $as_echo "ok" >&6; }
6177 # Response file support.
6178 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6179 nm_file_list_spec='@'
6180 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6181 nm_file_list_spec='@'
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6211 $as_echo_n "checking for sysroot... " >&6; }
6213 # Check whether --with-sysroot was given.
6214 if test "${with_sysroot+set}" = set; then :
6215 withval=$with_sysroot;
6222 case ${with_sysroot} in #(
6224 if test "$GCC" = yes; then
6225 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6229 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6235 $as_echo "${with_sysroot}" >&6; }
6236 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6241 $as_echo "${lt_sysroot:-no}" >&6; }
6247 # Check whether --enable-libtool-lock was given.
6248 if test "${enable_libtool_lock+set}" = set; then :
6249 enableval=$enable_libtool_lock;
6252 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6254 # Some flags need to be propagated to the compiler or linker for good
6258 # Find out which ABI we are using.
6259 echo 'int i;' > conftest.$ac_ext
6260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6261 (eval $ac_compile) 2>&5
6263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6264 test $ac_status = 0; }; then
6265 case `/usr/bin/file conftest.$ac_objext` in
6277 # Find out which ABI we are using.
6278 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6280 (eval $ac_compile) 2>&5
6282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6283 test $ac_status = 0; }; then
6284 if test "$lt_cv_prog_gnu_ld" = yes; then
6285 case `/usr/bin/file conftest.$ac_objext` in
6287 LD="${LD-ld} -melf32bsmip"
6290 LD="${LD-ld} -melf32bmipn32"
6293 LD="${LD-ld} -melf64bmip"
6297 case `/usr/bin/file conftest.$ac_objext` in
6313 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6314 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6315 # Find out which ABI we are using.
6316 echo 'int i;' > conftest.$ac_ext
6317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6318 (eval $ac_compile) 2>&5
6320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6321 test $ac_status = 0; }; then
6322 case `/usr/bin/file conftest.o` in
6325 x86_64-*kfreebsd*-gnu)
6326 LD="${LD-ld} -m elf_i386_fbsd"
6329 LD="${LD-ld} -m elf_i386"
6331 ppc64-*linux*|powerpc64-*linux*)
6332 LD="${LD-ld} -m elf32ppclinux"
6335 LD="${LD-ld} -m elf_s390"
6338 LD="${LD-ld} -m elf32_sparc"
6344 x86_64-*kfreebsd*-gnu)
6345 LD="${LD-ld} -m elf_x86_64_fbsd"
6348 LD="${LD-ld} -m elf_x86_64"
6350 ppc*-*linux*|powerpc*-*linux*)
6351 LD="${LD-ld} -m elf64ppc"
6353 s390*-*linux*|s390*-*tpf*)
6354 LD="${LD-ld} -m elf64_s390"
6357 LD="${LD-ld} -m elf64_sparc"
6367 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6368 SAVE_CFLAGS="$CFLAGS"
6369 CFLAGS="$CFLAGS -belf"
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6371 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6372 if ${lt_cv_cc_needs_belf+:} false; then :
6373 $as_echo_n "(cached) " >&6
6376 ac_cpp='$CPP $CPPFLAGS'
6377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h. */
6392 if ac_fn_c_try_link "$LINENO"; then :
6393 lt_cv_cc_needs_belf=yes
6395 lt_cv_cc_needs_belf=no
6397 rm -f core conftest.err conftest.$ac_objext \
6398 conftest$ac_exeext conftest.$ac_ext
6400 ac_cpp='$CPP $CPPFLAGS'
6401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6407 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6408 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6409 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6410 CFLAGS="$SAVE_CFLAGS"
6414 # Find out which ABI we are using.
6415 echo 'int i;' > conftest.$ac_ext
6416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6417 (eval $ac_compile) 2>&5
6419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6420 test $ac_status = 0; }; then
6421 case `/usr/bin/file conftest.o` in
6423 case $lt_cv_prog_gnu_ld in
6427 LD="${LD-ld} -m elf_x86_64"
6430 LD="${LD-ld} -m elf64_sparc"
6433 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6434 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6439 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6451 need_locks="$enable_libtool_lock"
6453 if test -n "$ac_tool_prefix"; then
6454 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6455 set dummy ${ac_tool_prefix}mt; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6459 $as_echo_n "(cached) " >&6
6461 if test -n "$MANIFEST_TOOL"; then
6462 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6482 if test -n "$MANIFEST_TOOL"; then
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6484 $as_echo "$MANIFEST_TOOL" >&6; }
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 $as_echo "no" >&6; }
6492 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6493 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6494 # Extract the first word of "mt", so it can be a program name with args.
6495 set dummy mt; ac_word=$2
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497 $as_echo_n "checking for $ac_word... " >&6; }
6498 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6499 $as_echo_n "(cached) " >&6
6501 if test -n "$ac_ct_MANIFEST_TOOL"; then
6502 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 test -z "$as_dir" && as_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6511 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6521 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6522 if test -n "$ac_ct_MANIFEST_TOOL"; then
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6524 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527 $as_echo "no" >&6; }
6530 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6533 case $cross_compiling:$ac_tool_warned in
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6537 ac_tool_warned=yes ;;
6539 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6542 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6545 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6547 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6548 if ${lt_cv_path_mainfest_tool+:} false; then :
6549 $as_echo_n "(cached) " >&6
6551 lt_cv_path_mainfest_tool=no
6552 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6553 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6554 cat conftest.err >&5
6555 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6556 lt_cv_path_mainfest_tool=yes
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6561 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6562 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6572 rhapsody* | darwin*)
6573 if test -n "$ac_tool_prefix"; then
6574 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6575 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577 $as_echo_n "checking for $ac_word... " >&6; }
6578 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6579 $as_echo_n "(cached) " >&6
6581 if test -n "$DSYMUTIL"; then
6582 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 test -z "$as_dir" && as_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6591 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6602 if test -n "$DSYMUTIL"; then
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6604 $as_echo "$DSYMUTIL" >&6; }
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; }
6612 if test -z "$ac_cv_prog_DSYMUTIL"; then
6613 ac_ct_DSYMUTIL=$DSYMUTIL
6614 # Extract the first word of "dsymutil", so it can be a program name with args.
6615 set dummy dsymutil; ac_word=$2
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6617 $as_echo_n "checking for $ac_word... " >&6; }
6618 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6619 $as_echo_n "(cached) " >&6
6621 if test -n "$ac_ct_DSYMUTIL"; then
6622 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6631 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6642 if test -n "$ac_ct_DSYMUTIL"; then
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6644 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647 $as_echo "no" >&6; }
6650 if test "x$ac_ct_DSYMUTIL" = x; then
6653 case $cross_compiling:$ac_tool_warned in
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6657 ac_tool_warned=yes ;;
6659 DSYMUTIL=$ac_ct_DSYMUTIL
6662 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6665 if test -n "$ac_tool_prefix"; then
6666 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6667 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669 $as_echo_n "checking for $ac_word... " >&6; }
6670 if ${ac_cv_prog_NMEDIT+:} false; then :
6671 $as_echo_n "(cached) " >&6
6673 if test -n "$NMEDIT"; then
6674 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 NMEDIT=$ac_cv_prog_NMEDIT
6694 if test -n "$NMEDIT"; then
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6696 $as_echo "$NMEDIT" >&6; }
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 $as_echo "no" >&6; }
6704 if test -z "$ac_cv_prog_NMEDIT"; then
6705 ac_ct_NMEDIT=$NMEDIT
6706 # Extract the first word of "nmedit", so it can be a program name with args.
6707 set dummy nmedit; ac_word=$2
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709 $as_echo_n "checking for $ac_word... " >&6; }
6710 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6711 $as_echo_n "(cached) " >&6
6713 if test -n "$ac_ct_NMEDIT"; then
6714 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6723 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6734 if test -n "$ac_ct_NMEDIT"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6736 $as_echo "$ac_ct_NMEDIT" >&6; }
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6742 if test "x$ac_ct_NMEDIT" = x; then
6745 case $cross_compiling:$ac_tool_warned in
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6749 ac_tool_warned=yes ;;
6751 NMEDIT=$ac_ct_NMEDIT
6754 NMEDIT="$ac_cv_prog_NMEDIT"
6757 if test -n "$ac_tool_prefix"; then
6758 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6759 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761 $as_echo_n "checking for $ac_word... " >&6; }
6762 if ${ac_cv_prog_LIPO+:} false; then :
6763 $as_echo_n "(cached) " >&6
6765 if test -n "$LIPO"; then
6766 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 LIPO=$ac_cv_prog_LIPO
6786 if test -n "$LIPO"; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6788 $as_echo "$LIPO" >&6; }
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6796 if test -z "$ac_cv_prog_LIPO"; then
6798 # Extract the first word of "lipo", so it can be a program name with args.
6799 set dummy lipo; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6803 $as_echo_n "(cached) " >&6
6805 if test -n "$ac_ct_LIPO"; then
6806 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_prog_ac_ct_LIPO="lipo"
6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6826 if test -n "$ac_ct_LIPO"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6828 $as_echo "$ac_ct_LIPO" >&6; }
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6834 if test "x$ac_ct_LIPO" = x; then
6837 case $cross_compiling:$ac_tool_warned in
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6841 ac_tool_warned=yes ;;
6846 LIPO="$ac_cv_prog_LIPO"
6849 if test -n "$ac_tool_prefix"; then
6850 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6851 set dummy ${ac_tool_prefix}otool; ac_word=$2
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6853 $as_echo_n "checking for $ac_word... " >&6; }
6854 if ${ac_cv_prog_OTOOL+:} false; then :
6855 $as_echo_n "(cached) " >&6
6857 if test -n "$OTOOL"; then
6858 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6867 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 OTOOL=$ac_cv_prog_OTOOL
6878 if test -n "$OTOOL"; then
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6880 $as_echo "$OTOOL" >&6; }
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883 $as_echo "no" >&6; }
6888 if test -z "$ac_cv_prog_OTOOL"; then
6890 # Extract the first word of "otool", so it can be a program name with args.
6891 set dummy otool; ac_word=$2
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893 $as_echo_n "checking for $ac_word... " >&6; }
6894 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6895 $as_echo_n "(cached) " >&6
6897 if test -n "$ac_ct_OTOOL"; then
6898 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6907 ac_cv_prog_ac_ct_OTOOL="otool"
6908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6918 if test -n "$ac_ct_OTOOL"; then
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6920 $as_echo "$ac_ct_OTOOL" >&6; }
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923 $as_echo "no" >&6; }
6926 if test "x$ac_ct_OTOOL" = x; then
6929 case $cross_compiling:$ac_tool_warned in
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6933 ac_tool_warned=yes ;;
6938 OTOOL="$ac_cv_prog_OTOOL"
6941 if test -n "$ac_tool_prefix"; then
6942 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6943 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945 $as_echo_n "checking for $ac_word... " >&6; }
6946 if ${ac_cv_prog_OTOOL64+:} false; then :
6947 $as_echo_n "(cached) " >&6
6949 if test -n "$OTOOL64"; then
6950 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6959 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 OTOOL64=$ac_cv_prog_OTOOL64
6970 if test -n "$OTOOL64"; then
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6972 $as_echo "$OTOOL64" >&6; }
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975 $as_echo "no" >&6; }
6980 if test -z "$ac_cv_prog_OTOOL64"; then
6981 ac_ct_OTOOL64=$OTOOL64
6982 # Extract the first word of "otool64", so it can be a program name with args.
6983 set dummy otool64; ac_word=$2
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985 $as_echo_n "checking for $ac_word... " >&6; }
6986 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6987 $as_echo_n "(cached) " >&6
6989 if test -n "$ac_ct_OTOOL64"; then
6990 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6999 ac_cv_prog_ac_ct_OTOOL64="otool64"
7000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7010 if test -n "$ac_ct_OTOOL64"; then
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7012 $as_echo "$ac_ct_OTOOL64" >&6; }
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7018 if test "x$ac_ct_OTOOL64" = x; then
7021 case $cross_compiling:$ac_tool_warned in
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7025 ac_tool_warned=yes ;;
7027 OTOOL64=$ac_ct_OTOOL64
7030 OTOOL64="$ac_cv_prog_OTOOL64"
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7060 $as_echo_n "checking for -single_module linker flag... " >&6; }
7061 if ${lt_cv_apple_cc_single_mod+:} false; then :
7062 $as_echo_n "(cached) " >&6
7064 lt_cv_apple_cc_single_mod=no
7065 if test -z "${LT_MULTI_MODULE}"; then
7066 # By default we will add the -single_module flag. You can override
7067 # by either setting the environment variable LT_MULTI_MODULE
7068 # non-empty at configure time, or by adding -multi_module to the
7070 rm -rf libconftest.dylib*
7071 echo "int foo(void){return 1;}" > conftest.c
7072 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7073 -dynamiclib -Wl,-single_module conftest.c" >&5
7074 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7075 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7077 # If there is a non-empty error log, and "single_module"
7078 # appears in it, assume the flag caused a linker warning
7079 if test -s conftest.err && $GREP single_module conftest.err; then
7080 cat conftest.err >&5
7081 # Otherwise, if the output was created with a 0 exit code from
7082 # the compiler, it worked.
7083 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7084 lt_cv_apple_cc_single_mod=yes
7086 cat conftest.err >&5
7088 rm -rf libconftest.dylib*
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7093 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7096 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7097 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7098 $as_echo_n "(cached) " >&6
7100 lt_cv_ld_exported_symbols_list=no
7101 save_LDFLAGS=$LDFLAGS
7102 echo "_main" > conftest.sym
7103 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105 /* end confdefs.h. */
7115 if ac_fn_c_try_link "$LINENO"; then :
7116 lt_cv_ld_exported_symbols_list=yes
7118 lt_cv_ld_exported_symbols_list=no
7120 rm -f core conftest.err conftest.$ac_objext \
7121 conftest$ac_exeext conftest.$ac_ext
7122 LDFLAGS="$save_LDFLAGS"
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7126 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7129 $as_echo_n "checking for -force_load linker flag... " >&6; }
7130 if ${lt_cv_ld_force_load+:} false; then :
7131 $as_echo_n "(cached) " >&6
7133 lt_cv_ld_force_load=no
7134 cat > conftest.c << _LT_EOF
7135 int forced_loaded() { return 2;}
7137 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7138 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7139 echo "$AR cru libconftest.a conftest.o" >&5
7140 $AR cru libconftest.a conftest.o 2>&5
7141 echo "$RANLIB libconftest.a" >&5
7142 $RANLIB libconftest.a 2>&5
7143 cat > conftest.c << _LT_EOF
7144 int main() { return 0;}
7146 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7147 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7149 if test -s conftest.err && $GREP force_load conftest.err; then
7150 cat conftest.err >&5
7151 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7152 lt_cv_ld_force_load=yes
7154 cat conftest.err >&5
7156 rm -f conftest.err libconftest.a conftest conftest.c
7157 rm -rf conftest.dSYM
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7161 $as_echo "$lt_cv_ld_force_load" >&6; }
7163 rhapsody* | darwin1.[012])
7164 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7166 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7167 darwin*) # darwin 5.x on
7168 # if running on 10.5 or later, the deployment target defaults
7169 # to the OS version, if on x86, and 10.4, the deployment
7170 # target defaults to 10.4. Don't you love it?
7171 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7172 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7173 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7175 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7177 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7181 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7182 _lt_dar_single_mod='$single_module'
7184 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7185 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7187 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7189 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7190 _lt_dsymutil='~$DSYMUTIL $lib || :'
7198 ac_cpp='$CPP $CPPFLAGS'
7199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7203 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7204 # On Suns, sometimes $CPP names a directory.
7205 if test -n "$CPP" && test -d "$CPP"; then
7208 if test -z "$CPP"; then
7209 if ${ac_cv_prog_CPP+:} false; then :
7210 $as_echo_n "(cached) " >&6
7212 # Double quotes because CPP needs to be expanded
7213 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7216 for ac_c_preproc_warn_flag in '' yes
7218 # Use a header file that comes with gcc, so configuring glibc
7219 # with a fresh cross-compiler works.
7220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7221 # <limits.h> exists even on freestanding compilers.
7222 # On the NeXT, cc -E runs the code through the compiler's parser,
7223 # not just through cpp. "Syntax error" is here to catch this case.
7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h. */
7227 # include <limits.h>
7229 # include <assert.h>
7233 if ac_fn_c_try_cpp "$LINENO"; then :
7236 # Broken: fails on valid input.
7239 rm -f conftest.err conftest.i conftest.$ac_ext
7241 # OK, works on sane cases. Now check whether nonexistent headers
7242 # can be detected and how.
7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h. */
7245 #include <ac_nonexistent.h>
7247 if ac_fn_c_try_cpp "$LINENO"; then :
7248 # Broken: success on invalid input.
7251 # Passes both tests.
7255 rm -f conftest.err conftest.i conftest.$ac_ext
7258 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7259 rm -f conftest.i conftest.err conftest.$ac_ext
7260 if $ac_preproc_ok; then :
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7273 $as_echo "$CPP" >&6; }
7275 for ac_c_preproc_warn_flag in '' yes
7277 # Use a header file that comes with gcc, so configuring glibc
7278 # with a fresh cross-compiler works.
7279 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7280 # <limits.h> exists even on freestanding compilers.
7281 # On the NeXT, cc -E runs the code through the compiler's parser,
7282 # not just through cpp. "Syntax error" is here to catch this case.
7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7286 # include <limits.h>
7288 # include <assert.h>
7292 if ac_fn_c_try_cpp "$LINENO"; then :
7295 # Broken: fails on valid input.
7298 rm -f conftest.err conftest.i conftest.$ac_ext
7300 # OK, works on sane cases. Now check whether nonexistent headers
7301 # can be detected and how.
7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h. */
7304 #include <ac_nonexistent.h>
7306 if ac_fn_c_try_cpp "$LINENO"; then :
7307 # Broken: success on invalid input.
7310 # Passes both tests.
7314 rm -f conftest.err conftest.i conftest.$ac_ext
7317 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7318 rm -f conftest.i conftest.err conftest.$ac_ext
7319 if $ac_preproc_ok; then :
7322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7324 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7325 See \`config.log' for more details" "$LINENO" 5; }
7329 ac_cpp='$CPP $CPPFLAGS'
7330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7336 $as_echo_n "checking for ANSI C header files... " >&6; }
7337 if ${ac_cv_header_stdc+:} false; then :
7338 $as_echo_n "(cached) " >&6
7340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341 /* end confdefs.h. */
7355 if ac_fn_c_try_compile "$LINENO"; then :
7356 ac_cv_header_stdc=yes
7358 ac_cv_header_stdc=no
7360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7362 if test $ac_cv_header_stdc = yes; then
7363 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365 /* end confdefs.h. */
7369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7370 $EGREP "memchr" >/dev/null 2>&1; then :
7373 ac_cv_header_stdc=no
7379 if test $ac_cv_header_stdc = yes; then
7380 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7382 /* end confdefs.h. */
7386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7387 $EGREP "free" >/dev/null 2>&1; then :
7390 ac_cv_header_stdc=no
7396 if test $ac_cv_header_stdc = yes; then
7397 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7398 if test "$cross_compiling" = yes; then :
7401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402 /* end confdefs.h. */
7405 #if ((' ' & 0x0FF) == 0x020)
7406 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7407 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7409 # define ISLOWER(c) \
7410 (('a' <= (c) && (c) <= 'i') \
7411 || ('j' <= (c) && (c) <= 'r') \
7412 || ('s' <= (c) && (c) <= 'z'))
7413 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7416 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7421 for (i = 0; i < 256; i++)
7422 if (XOR (islower (i), ISLOWER (i))
7423 || toupper (i) != TOUPPER (i))
7428 if ac_fn_c_try_run "$LINENO"; then :
7431 ac_cv_header_stdc=no
7433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7434 conftest.$ac_objext conftest.beam conftest.$ac_ext
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7440 $as_echo "$ac_cv_header_stdc" >&6; }
7441 if test $ac_cv_header_stdc = yes; then
7443 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7447 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7448 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7449 inttypes.h stdint.h unistd.h
7451 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7452 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7454 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7455 cat >>confdefs.h <<_ACEOF
7456 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7464 for ac_header in dlfcn.h
7466 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7468 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7469 cat >>confdefs.h <<_ACEOF
7470 #define HAVE_DLFCN_H 1
7491 # Check whether --enable-shared was given.
7492 if test "${enable_shared+set}" = set; then :
7493 enableval=$enable_shared; p=${PACKAGE-default}
7495 yes) enable_shared=yes ;;
7496 no) enable_shared=no ;;
7499 # Look at the argument we got. We use all the common list separators.
7500 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7501 for pkg in $enableval; do
7503 if test "X$pkg" = "X$p"; then
7522 # Check whether --enable-static was given.
7523 if test "${enable_static+set}" = set; then :
7524 enableval=$enable_static; p=${PACKAGE-default}
7526 yes) enable_static=yes ;;
7527 no) enable_static=no ;;
7530 # Look at the argument we got. We use all the common list separators.
7531 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7532 for pkg in $enableval; do
7534 if test "X$pkg" = "X$p"; then
7554 # Check whether --with-pic was given.
7555 if test "${with_pic+set}" = set; then :
7556 withval=$with_pic; lt_p=${PACKAGE-default}
7558 yes|no) pic_mode=$withval ;;
7561 # Look at the argument we got. We use all the common list separators.
7562 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7563 for lt_pkg in $withval; do
7565 if test "X$lt_pkg" = "X$lt_p"; then
7577 test -z "$pic_mode" && pic_mode=default
7585 # Check whether --enable-fast-install was given.
7586 if test "${enable_fast_install+set}" = set; then :
7587 enableval=$enable_fast_install; p=${PACKAGE-default}
7589 yes) enable_fast_install=yes ;;
7590 no) enable_fast_install=no ;;
7592 enable_fast_install=no
7593 # Look at the argument we got. We use all the common list separators.
7594 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7595 for pkg in $enableval; do
7597 if test "X$pkg" = "X$p"; then
7598 enable_fast_install=yes
7605 enable_fast_install=yes
7618 # This can be used to rebuild libtool when needed
7619 LIBTOOL_DEPS="$ltmain"
7621 # Always use our own libtool.
7622 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7653 test -z "$LN_S" && LN_S="ln -s"
7668 if test -n "${ZSH_VERSION+set}" ; then
7669 setopt NO_GLOB_SUBST
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7673 $as_echo_n "checking for objdir... " >&6; }
7674 if ${lt_cv_objdir+:} false; then :
7675 $as_echo_n "(cached) " >&6
7677 rm -f .libs 2>/dev/null
7678 mkdir .libs 2>/dev/null
7679 if test -d .libs; then
7682 # MS-DOS does not allow filenames that begin with a dot.
7685 rmdir .libs 2>/dev/null
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7688 $as_echo "$lt_cv_objdir" >&6; }
7689 objdir=$lt_cv_objdir
7695 cat >>confdefs.h <<_ACEOF
7696 #define LT_OBJDIR "$lt_cv_objdir/"
7704 # AIX sometimes has problems with the GCC collect2 program. For some
7705 # reason, if we set the COLLECT_NAMES environment variable, the problems
7706 # vanish in a puff of smoke.
7707 if test "X${COLLECT_NAMES+set}" != Xset; then
7709 export COLLECT_NAMES
7716 can_build_shared=yes
7718 # All known linkers require a `.a' archive for static linking (except MSVC,
7719 # which needs '.lib').
7722 with_gnu_ld="$lt_cv_prog_gnu_ld"
7725 old_CFLAGS="$CFLAGS"
7727 # Set sane defaults for various variables
7728 test -z "$CC" && CC=cc
7729 test -z "$LTCC" && LTCC=$CC
7730 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7731 test -z "$LD" && LD=ld
7732 test -z "$ac_objext" && ac_objext=o
7734 for cc_temp in $compiler""; do
7736 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7737 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7742 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7745 # Only perform the check for file, if the check method requires it
7746 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7747 case $deplibs_check_method in
7749 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7751 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7752 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7753 $as_echo_n "(cached) " >&6
7757 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7760 lt_save_MAGIC_CMD="$MAGIC_CMD"
7761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7762 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7763 for ac_dir in $ac_dummy; do
7765 test -z "$ac_dir" && ac_dir=.
7766 if test -f $ac_dir/${ac_tool_prefix}file; then
7767 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7768 if test -n "$file_magic_test_file"; then
7769 case $deplibs_check_method in
7771 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7772 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7773 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7774 $EGREP "$file_magic_regex" > /dev/null; then
7779 *** Warning: the command libtool uses to detect shared libraries,
7780 *** $file_magic_cmd, produces output that libtool cannot recognize.
7781 *** The result is that libtool may fail to recognize shared libraries
7782 *** as such. This will affect the creation of libtool libraries that
7783 *** depend on shared libraries, but programs linked with such libtool
7784 *** libraries will work regardless of this problem. Nevertheless, you
7785 *** may want to report the problem to your system manager and/or to
7786 *** bug-libtool@gnu.org
7796 MAGIC_CMD="$lt_save_MAGIC_CMD"
7801 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7802 if test -n "$MAGIC_CMD"; then
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7804 $as_echo "$MAGIC_CMD" >&6; }
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807 $as_echo "no" >&6; }
7814 if test -z "$lt_cv_path_MAGIC_CMD"; then
7815 if test -n "$ac_tool_prefix"; then
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7817 $as_echo_n "checking for file... " >&6; }
7818 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7819 $as_echo_n "(cached) " >&6
7823 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7826 lt_save_MAGIC_CMD="$MAGIC_CMD"
7827 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7828 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7829 for ac_dir in $ac_dummy; do
7831 test -z "$ac_dir" && ac_dir=.
7832 if test -f $ac_dir/file; then
7833 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7834 if test -n "$file_magic_test_file"; then
7835 case $deplibs_check_method in
7837 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7838 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7839 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7840 $EGREP "$file_magic_regex" > /dev/null; then
7845 *** Warning: the command libtool uses to detect shared libraries,
7846 *** $file_magic_cmd, produces output that libtool cannot recognize.
7847 *** The result is that libtool may fail to recognize shared libraries
7848 *** as such. This will affect the creation of libtool libraries that
7849 *** depend on shared libraries, but programs linked with such libtool
7850 *** libraries will work regardless of this problem. Nevertheless, you
7851 *** may want to report the problem to your system manager and/or to
7852 *** bug-libtool@gnu.org
7862 MAGIC_CMD="$lt_save_MAGIC_CMD"
7867 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7868 if test -n "$MAGIC_CMD"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7870 $as_echo "$MAGIC_CMD" >&6; }
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7886 # Use C for the default configuration in the libtool script
7890 ac_cpp='$CPP $CPPFLAGS'
7891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7896 # Source file extension for C test sources.
7899 # Object file extension for compiled C test sources.
7903 # Code to be used in simple compile tests
7904 lt_simple_compile_test_code="int some_variable = 0;"
7906 # Code to be used in simple link tests
7907 lt_simple_link_test_code='int main(){return(0);}'
7915 # If no C compiler was specified, use CC.
7918 # If no C compiler flags were specified, use CFLAGS.
7919 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7921 # Allow CC to be a program name with arguments.
7924 # Save the default compiler, since it gets overwritten when the other
7925 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7926 compiler_DEFAULT=$CC
7928 # save warnings/boilerplate of simple test code
7929 ac_outfile=conftest.$ac_objext
7930 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7931 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7932 _lt_compiler_boilerplate=`cat conftest.err`
7935 ac_outfile=conftest.$ac_objext
7936 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7937 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7938 _lt_linker_boilerplate=`cat conftest.err`
7942 if test -n "$compiler"; then
7944 lt_prog_compiler_no_builtin_flag=
7946 if test "$GCC" = yes; then
7947 case $cc_basename in
7949 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7951 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7955 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7956 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7957 $as_echo_n "(cached) " >&6
7959 lt_cv_prog_compiler_rtti_exceptions=no
7960 ac_outfile=conftest.$ac_objext
7961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7962 lt_compiler_flag="-fno-rtti -fno-exceptions"
7963 # Insert the option either (1) after the last *FLAGS variable, or
7964 # (2) before a word containing "conftest.", or (3) at the end.
7965 # Note that $ac_compile itself does not contain backslashes and begins
7966 # with a dollar sign (not a hyphen), so the echo should work correctly.
7967 # The option is referenced via a variable to avoid confusing sed.
7968 lt_compile=`echo "$ac_compile" | $SED \
7969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7971 -e 's:$: $lt_compiler_flag:'`
7972 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7973 (eval "$lt_compile" 2>conftest.err)
7975 cat conftest.err >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 if (exit $ac_status) && test -s "$ac_outfile"; then
7978 # The compiler can only warn and ignore the option if not recognized
7979 # So say no if there are warnings other than the usual output.
7980 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7981 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7982 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7983 lt_cv_prog_compiler_rtti_exceptions=yes
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7990 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7992 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7993 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8005 lt_prog_compiler_wl=
8006 lt_prog_compiler_pic=
8007 lt_prog_compiler_static=
8010 if test "$GCC" = yes; then
8011 lt_prog_compiler_wl='-Wl,'
8012 lt_prog_compiler_static='-static'
8016 # All AIX code is PIC.
8017 if test "$host_cpu" = ia64; then
8018 # AIX 5 now supports IA64 processor
8019 lt_prog_compiler_static='-Bstatic'
8026 # see comment about AmigaOS4 .so support
8027 lt_prog_compiler_pic='-fPIC'
8030 # FIXME: we need at least 68020 code to build shared libraries, but
8031 # adding the `-m68020' flag to GCC prevents building anything better,
8033 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8038 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8039 # PIC is the default for these OSes.
8042 mingw* | cygwin* | pw32* | os2* | cegcc*)
8043 # This hack is so that the source file can tell whether it is being
8044 # built for inclusion in a dll (and should export symbols for example).
8045 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8046 # (--disable-auto-import) libraries
8047 lt_prog_compiler_pic='-DDLL_EXPORT'
8050 darwin* | rhapsody*)
8051 # PIC is the default on this platform
8052 # Common symbols not allowed in MH_DYLIB files
8053 lt_prog_compiler_pic='-fno-common'
8057 # PIC is the default for Haiku.
8058 # The "-static" flag exists, but is broken.
8059 lt_prog_compiler_static=
8063 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8064 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8065 # sets the default TLS model and affects inlining.
8071 lt_prog_compiler_pic='-fPIC'
8077 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8078 # Instead, we relocate shared libraries at runtime.
8082 # Just because we use GCC doesn't mean we suddenly get shared libraries
8083 # on systems that don't support them.
8084 lt_prog_compiler_can_build_shared=no
8089 # QNX uses GNU C++, but need to define -shared option too, otherwise
8091 lt_prog_compiler_pic='-fPIC -shared'
8095 if test -d /usr/nec; then
8096 lt_prog_compiler_pic=-Kconform_pic
8101 lt_prog_compiler_pic='-fPIC'
8105 case $cc_basename in
8106 nvcc*) # Cuda Compiler Driver 2.2
8107 lt_prog_compiler_wl='-Xlinker '
8108 if test -n "$lt_prog_compiler_pic"; then
8109 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8114 # PORTME Check for flag to pass linker flags through the system compiler.
8117 lt_prog_compiler_wl='-Wl,'
8118 if test "$host_cpu" = ia64; then
8119 # AIX 5 now supports IA64 processor
8120 lt_prog_compiler_static='-Bstatic'
8122 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8126 mingw* | cygwin* | pw32* | os2* | cegcc*)
8127 # This hack is so that the source file can tell whether it is being
8128 # built for inclusion in a dll (and should export symbols for example).
8129 lt_prog_compiler_pic='-DDLL_EXPORT'
8132 hpux9* | hpux10* | hpux11*)
8133 lt_prog_compiler_wl='-Wl,'
8134 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8141 lt_prog_compiler_pic='+Z'
8144 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8145 lt_prog_compiler_static='${wl}-a ${wl}archive'
8148 irix5* | irix6* | nonstopux*)
8149 lt_prog_compiler_wl='-Wl,'
8150 # PIC (with -KPIC) is the default.
8151 lt_prog_compiler_static='-non_shared'
8154 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8155 case $cc_basename in
8156 # old Intel for x86_64 which still supported -KPIC.
8158 lt_prog_compiler_wl='-Wl,'
8159 lt_prog_compiler_pic='-KPIC'
8160 lt_prog_compiler_static='-static'
8162 # icc used to be incompatible with GCC.
8163 # ICC 10 doesn't accept -KPIC any more.
8165 lt_prog_compiler_wl='-Wl,'
8166 lt_prog_compiler_pic='-fPIC'
8167 lt_prog_compiler_static='-static'
8169 # Lahey Fortran 8.1.
8171 lt_prog_compiler_wl='-Wl,'
8172 lt_prog_compiler_pic='--shared'
8173 lt_prog_compiler_static='--static'
8176 # NAG Fortran compiler
8177 lt_prog_compiler_wl='-Wl,-Wl,,'
8178 lt_prog_compiler_pic='-PIC'
8179 lt_prog_compiler_static='-Bstatic'
8181 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8182 # Portland Group compilers (*not* the Pentium gcc compiler,
8183 # which looks to be a dead project)
8184 lt_prog_compiler_wl='-Wl,'
8185 lt_prog_compiler_pic='-fpic'
8186 lt_prog_compiler_static='-Bstatic'
8189 lt_prog_compiler_wl='-Wl,'
8190 # All Alpha code is PIC.
8191 lt_prog_compiler_static='-non_shared'
8193 xl* | bgxl* | bgf* | mpixl*)
8194 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8195 lt_prog_compiler_wl='-Wl,'
8196 lt_prog_compiler_pic='-qpic'
8197 lt_prog_compiler_static='-qstaticlink'
8200 case `$CC -V 2>&1 | sed 5q` in
8201 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8202 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8203 lt_prog_compiler_pic='-KPIC'
8204 lt_prog_compiler_static='-Bstatic'
8205 lt_prog_compiler_wl=''
8207 *Sun\ F* | *Sun*Fortran*)
8208 lt_prog_compiler_pic='-KPIC'
8209 lt_prog_compiler_static='-Bstatic'
8210 lt_prog_compiler_wl='-Qoption ld '
8214 lt_prog_compiler_pic='-KPIC'
8215 lt_prog_compiler_static='-Bstatic'
8216 lt_prog_compiler_wl='-Wl,'
8218 *Intel*\ [CF]*Compiler*)
8219 lt_prog_compiler_wl='-Wl,'
8220 lt_prog_compiler_pic='-fPIC'
8221 lt_prog_compiler_static='-static'
8224 lt_prog_compiler_wl='-Wl,'
8225 lt_prog_compiler_pic='-fpic'
8226 lt_prog_compiler_static='-Bstatic'
8234 lt_prog_compiler_pic='-KPIC'
8235 lt_prog_compiler_static='-Bstatic'
8239 # QNX uses GNU C++, but need to define -shared option too, otherwise
8241 lt_prog_compiler_pic='-fPIC -shared'
8244 osf3* | osf4* | osf5*)
8245 lt_prog_compiler_wl='-Wl,'
8246 # All OSF/1 code is PIC.
8247 lt_prog_compiler_static='-non_shared'
8251 lt_prog_compiler_static='-non_shared'
8255 lt_prog_compiler_pic='-KPIC'
8256 lt_prog_compiler_static='-Bstatic'
8257 case $cc_basename in
8258 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8259 lt_prog_compiler_wl='-Qoption ld ';;
8261 lt_prog_compiler_wl='-Wl,';;
8266 lt_prog_compiler_wl='-Qoption ld '
8267 lt_prog_compiler_pic='-PIC'
8268 lt_prog_compiler_static='-Bstatic'
8271 sysv4 | sysv4.2uw2* | sysv4.3*)
8272 lt_prog_compiler_wl='-Wl,'
8273 lt_prog_compiler_pic='-KPIC'
8274 lt_prog_compiler_static='-Bstatic'
8278 if test -d /usr/nec ;then
8279 lt_prog_compiler_pic='-Kconform_pic'
8280 lt_prog_compiler_static='-Bstatic'
8284 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8285 lt_prog_compiler_wl='-Wl,'
8286 lt_prog_compiler_pic='-KPIC'
8287 lt_prog_compiler_static='-Bstatic'
8291 lt_prog_compiler_wl='-Wl,'
8292 lt_prog_compiler_can_build_shared=no
8296 lt_prog_compiler_pic='-pic'
8297 lt_prog_compiler_static='-Bstatic'
8301 lt_prog_compiler_can_build_shared=no
8307 # For platforms which do not support PIC, -DPIC is meaningless:
8309 lt_prog_compiler_pic=
8312 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8317 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8318 if ${lt_cv_prog_compiler_pic+:} false; then :
8319 $as_echo_n "(cached) " >&6
8321 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8324 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8325 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8328 # Check to make sure the PIC flag actually works.
8330 if test -n "$lt_prog_compiler_pic"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8332 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8333 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8334 $as_echo_n "(cached) " >&6
8336 lt_cv_prog_compiler_pic_works=no
8337 ac_outfile=conftest.$ac_objext
8338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8339 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8340 # Insert the option either (1) after the last *FLAGS variable, or
8341 # (2) before a word containing "conftest.", or (3) at the end.
8342 # Note that $ac_compile itself does not contain backslashes and begins
8343 # with a dollar sign (not a hyphen), so the echo should work correctly.
8344 # The option is referenced via a variable to avoid confusing sed.
8345 lt_compile=`echo "$ac_compile" | $SED \
8346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8348 -e 's:$: $lt_compiler_flag:'`
8349 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8350 (eval "$lt_compile" 2>conftest.err)
8352 cat conftest.err >&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 if (exit $ac_status) && test -s "$ac_outfile"; then
8355 # The compiler can only warn and ignore the option if not recognized
8356 # So say no if there are warnings other than the usual output.
8357 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8359 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8360 lt_cv_prog_compiler_pic_works=yes
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8367 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8369 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8370 case $lt_prog_compiler_pic in
8372 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8375 lt_prog_compiler_pic=
8376 lt_prog_compiler_can_build_shared=no
8392 # Check to make sure the static flag actually works.
8394 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8396 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8397 if ${lt_cv_prog_compiler_static_works+:} false; then :
8398 $as_echo_n "(cached) " >&6
8400 lt_cv_prog_compiler_static_works=no
8401 save_LDFLAGS="$LDFLAGS"
8402 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8403 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8404 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8405 # The linker can only warn and ignore the option if not recognized
8406 # So say no if there are warnings
8407 if test -s conftest.err; then
8408 # Append any errors to the config.log.
8409 cat conftest.err 1>&5
8410 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8411 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8412 if diff conftest.exp conftest.er2 >/dev/null; then
8413 lt_cv_prog_compiler_static_works=yes
8416 lt_cv_prog_compiler_static_works=yes
8420 LDFLAGS="$save_LDFLAGS"
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8424 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8426 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8429 lt_prog_compiler_static=
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8439 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8440 if ${lt_cv_prog_compiler_c_o+:} false; then :
8441 $as_echo_n "(cached) " >&6
8443 lt_cv_prog_compiler_c_o=no
8444 $RM -r conftest 2>/dev/null
8448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8450 lt_compiler_flag="-o out/conftest2.$ac_objext"
8451 # Insert the option either (1) after the last *FLAGS variable, or
8452 # (2) before a word containing "conftest.", or (3) at the end.
8453 # Note that $ac_compile itself does not contain backslashes and begins
8454 # with a dollar sign (not a hyphen), so the echo should work correctly.
8455 lt_compile=`echo "$ac_compile" | $SED \
8456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8458 -e 's:$: $lt_compiler_flag:'`
8459 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8460 (eval "$lt_compile" 2>out/conftest.err)
8462 cat out/conftest.err >&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8466 # The compiler can only warn and ignore the option if not recognized
8467 # So say no if there are warnings
8468 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8469 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8470 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8471 lt_cv_prog_compiler_c_o=yes
8476 # SGI C++ compiler will create directory out/ii_files/ for
8477 # template instantiation
8478 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8479 $RM out/* && rmdir out
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8486 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8494 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8495 if ${lt_cv_prog_compiler_c_o+:} false; then :
8496 $as_echo_n "(cached) " >&6
8498 lt_cv_prog_compiler_c_o=no
8499 $RM -r conftest 2>/dev/null
8503 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8505 lt_compiler_flag="-o out/conftest2.$ac_objext"
8506 # Insert the option either (1) after the last *FLAGS variable, or
8507 # (2) before a word containing "conftest.", or (3) at the end.
8508 # Note that $ac_compile itself does not contain backslashes and begins
8509 # with a dollar sign (not a hyphen), so the echo should work correctly.
8510 lt_compile=`echo "$ac_compile" | $SED \
8511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8513 -e 's:$: $lt_compiler_flag:'`
8514 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8515 (eval "$lt_compile" 2>out/conftest.err)
8517 cat out/conftest.err >&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8521 # The compiler can only warn and ignore the option if not recognized
8522 # So say no if there are warnings
8523 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8524 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8525 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8526 lt_cv_prog_compiler_c_o=yes
8531 # SGI C++ compiler will create directory out/ii_files/ for
8532 # template instantiation
8533 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8534 $RM out/* && rmdir out
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8541 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8546 hard_links="nottested"
8547 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8548 # do not overwrite the value of need_locks provided by the user
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8550 $as_echo_n "checking if we can lock with hard links... " >&6; }
8553 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8555 ln conftest.a conftest.b 2>&5 || hard_links=no
8556 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8558 $as_echo "$hard_links" >&6; }
8559 if test "$hard_links" = no; then
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8561 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8574 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8577 allow_undefined_flag=
8578 always_export_symbols=no
8580 archive_expsym_cmds=
8581 compiler_needs_object=no
8582 enable_shared_with_static_runtimes=no
8583 export_dynamic_flag_spec=
8584 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8585 hardcode_automatic=no
8587 hardcode_direct_absolute=no
8588 hardcode_libdir_flag_spec=
8589 hardcode_libdir_separator=
8591 hardcode_shlibpath_var=unsupported
8593 link_all_deplibs=unknown
8596 old_archive_from_new_cmds=
8597 old_archive_from_expsyms_cmds=
8598 thread_safe_flag_spec=
8599 whole_archive_flag_spec=
8600 # include_expsyms should be a list of space-separated symbols to be *always*
8601 # included in the symbol list
8603 # exclude_expsyms can be an extended regexp of symbols to exclude
8604 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8605 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8606 # as well as any symbol that contains `d'.
8607 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8608 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8609 # platforms (ab)use it in PIC code, but their linkers get confused if
8610 # the symbol is explicitly referenced. Since portable code cannot
8611 # rely on this symbol name, it's probably fine to never include it in
8612 # preloaded symbol tables.
8613 # Exclude shared library initialization/finalization symbols.
8614 extract_expsyms_cmds=
8617 cygwin* | mingw* | pw32* | cegcc*)
8618 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8619 # When not using gcc, we currently assume that we are using
8620 # Microsoft Visual C++.
8621 if test "$GCC" != yes; then
8626 # we just hope/assume this is gcc and not c89 (= MSVC++)
8636 # On some targets, GNU ld is compatible enough with the native linker
8637 # that we're better off using the native interface for both.
8638 lt_use_gnu_ld_interface=no
8639 if test "$with_gnu_ld" = yes; then
8642 # The AIX port of GNU ld has always aspired to compatibility
8643 # with the native linker. However, as the warning in the GNU ld
8644 # block says, versions before 2.19.5* couldn't really create working
8645 # shared libraries, regardless of the interface used.
8646 case `$LD -v 2>&1` in
8647 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8648 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8649 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8651 lt_use_gnu_ld_interface=yes
8656 lt_use_gnu_ld_interface=yes
8661 if test "$lt_use_gnu_ld_interface" = yes; then
8662 # If archive_cmds runs LD, not CC, wlarc should be empty
8665 # Set some defaults for GNU ld with shared library support. These
8666 # are reset later if shared libraries are not supported. Putting them
8667 # here allows them to be overridden if necessary.
8668 runpath_var=LD_RUN_PATH
8669 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8670 export_dynamic_flag_spec='${wl}--export-dynamic'
8671 # ancient GNU ld didn't support --whole-archive et. al.
8672 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8673 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8675 whole_archive_flag_spec=
8677 supports_anon_versioning=no
8678 case `$LD -v 2>&1` in
8679 *GNU\ gold*) supports_anon_versioning=yes ;;
8680 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8681 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8682 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8683 *\ 2.11.*) ;; # other 2.11 versions
8684 *) supports_anon_versioning=yes ;;
8687 # See if GNU ld supports shared libraries.
8690 # On AIX/PPC, the GNU linker is very broken
8691 if test "$host_cpu" != ia64; then
8695 *** Warning: the GNU linker, at least up to release 2.19, is reported
8696 *** to be unable to reliably create shared libraries on AIX.
8697 *** Therefore, libtool is disabling shared libraries support. If you
8698 *** really care for shared libraries, you may want to install binutils
8699 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8700 *** You will then need to restart the configuration process.
8709 # see comment about AmigaOS4 .so support
8710 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8711 archive_expsym_cmds=''
8714 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)'
8715 hardcode_libdir_flag_spec='-L$libdir'
8716 hardcode_minus_L=yes
8722 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8723 allow_undefined_flag=unsupported
8724 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8725 # support --undefined. This deserves some investigation. FIXME
8726 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8732 cygwin* | mingw* | pw32* | cegcc*)
8733 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8734 # as there is no search path for DLLs.
8735 hardcode_libdir_flag_spec='-L$libdir'
8736 export_dynamic_flag_spec='${wl}--export-all-symbols'
8737 allow_undefined_flag=unsupported
8738 always_export_symbols=no
8739 enable_shared_with_static_runtimes=yes
8740 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'
8741 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8743 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8744 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8745 # If the export-symbols file already is a .def file (1st line
8746 # is EXPORTS), use it as is; otherwise, prepend...
8747 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8748 cp $export_symbols $output_objdir/$soname.def;
8750 echo EXPORTS > $output_objdir/$soname.def;
8751 cat $export_symbols >> $output_objdir/$soname.def;
8753 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8761 link_all_deplibs=yes
8766 hardcode_shlibpath_var=no
8767 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8768 export_dynamic_flag_spec='${wl}-E'
8769 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8770 # Instead, shared libraries are loaded at an image base (0x10000000 by
8771 # default) and relocated if they conflict, which is a slow very memory
8772 # consuming and fragmenting process. To avoid this, we pick a random,
8773 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8774 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8775 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8776 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'
8779 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8781 if test "$host_os" = linux-dietlibc; then
8782 case $cc_basename in
8783 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8786 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8787 && test "$tmp_diet" = no
8789 tmp_addflag=' $pic_flag'
8790 tmp_sharedflag='-shared'
8791 case $cc_basename,$host_cpu in
8792 pgcc*) # Portland Group C compiler
8793 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'
8794 tmp_addflag=' $pic_flag'
8796 pgf77* | pgf90* | pgf95* | pgfortran*)
8797 # Portland Group f77 and f90 compilers
8798 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'
8799 tmp_addflag=' $pic_flag -Mnomain' ;;
8800 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8801 tmp_addflag=' -i_dynamic' ;;
8802 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8803 tmp_addflag=' -i_dynamic -nofor_main' ;;
8804 ifc* | ifort*) # Intel Fortran compiler
8805 tmp_addflag=' -nofor_main' ;;
8806 lf95*) # Lahey Fortran 8.1
8807 whole_archive_flag_spec=
8808 tmp_sharedflag='--shared' ;;
8809 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8810 tmp_sharedflag='-qmkshrobj'
8812 nvcc*) # Cuda Compiler Driver 2.2
8813 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'
8814 compiler_needs_object=yes
8817 case `$CC -V 2>&1 | sed 5q` in
8818 *Sun\ C*) # Sun C 5.9
8819 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'
8820 compiler_needs_object=yes
8821 tmp_sharedflag='-G' ;;
8822 *Sun\ F*) # Sun Fortran 8.3
8823 tmp_sharedflag='-G' ;;
8825 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8827 if test "x$supports_anon_versioning" = xyes; then
8828 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8829 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8830 echo "local: *; };" >> $output_objdir/$libname.ver~
8831 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8834 case $cc_basename in
8835 xlf* | bgf* | bgxlf* | mpixlf*)
8836 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8837 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8838 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8839 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8840 if test "x$supports_anon_versioning" = xyes; then
8841 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8842 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8843 echo "local: *; };" >> $output_objdir/$libname.ver~
8844 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8854 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8855 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8858 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8859 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8864 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8868 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8869 *** create shared libraries on Solaris systems. Therefore, libtool
8870 *** is disabling shared libraries support. We urge you to upgrade GNU
8871 *** binutils to release 2.9.1 or newer. Another option is to modify
8872 *** your PATH or compiler configuration so that the native linker is
8873 *** used, and then restart.
8876 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8877 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8878 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8884 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8885 case `$LD -v 2>&1` in
8886 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8890 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8891 *** reliably create shared libraries on SCO systems. Therefore, libtool
8892 *** is disabling shared libraries support. We urge you to upgrade GNU
8893 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8894 *** your PATH or compiler configuration so that the native linker is
8895 *** used, and then restart.
8900 # For security reasons, it is highly recommended that you always
8901 # use absolute paths for naming shared libraries, and exclude the
8902 # DT_RUNPATH tag from executables and libraries. But doing so
8903 # requires that you compile everything twice, which is a pain.
8904 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8905 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8906 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8907 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8916 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8919 hardcode_shlibpath_var=no
8923 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8924 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8925 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8932 if test "$ld_shlibs" = no; then
8934 hardcode_libdir_flag_spec=
8935 export_dynamic_flag_spec=
8936 whole_archive_flag_spec=
8939 # PORTME fill in a description of your system's linker (not GNU ld)
8942 allow_undefined_flag=unsupported
8943 always_export_symbols=yes
8944 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'
8945 # Note: this linker hardcodes the directories in LIBPATH if there
8946 # are no directories specified by -L.
8947 hardcode_minus_L=yes
8948 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8949 # Neither direct hardcoding nor static linking is supported with a
8951 hardcode_direct=unsupported
8956 if test "$host_cpu" = ia64; then
8957 # On IA64, the linker does run time linking by default, so we don't
8958 # have to do anything special.
8959 aix_use_runtimelinking=no
8960 exp_sym_flag='-Bexport'
8963 # If we're using GNU nm, then we don't want the "-C" option.
8964 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8965 # Also, AIX nm treats weak defined symbols like other global
8966 # defined symbols, whereas GNU nm marks them as "W".
8967 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8968 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'
8970 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'
8972 aix_use_runtimelinking=no
8974 # Test if we are trying to use run time linking or normal
8975 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8976 # need to do runtime linking.
8977 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8978 for ld_flag in $LDFLAGS; do
8979 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8980 aix_use_runtimelinking=yes
8987 exp_sym_flag='-bexport'
8988 no_entry_flag='-bnoentry'
8991 # When large executables or shared objects are built, AIX ld can
8992 # have problems creating the table of contents. If linking a library
8993 # or program results in "error TOC overflow" add -mminimal-toc to
8994 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8995 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8999 hardcode_direct_absolute=yes
9000 hardcode_libdir_separator=':'
9001 link_all_deplibs=yes
9002 file_list_spec='${wl}-f,'
9004 if test "$GCC" = yes; then
9005 case $host_os in aix4.[012]|aix4.[012].*)
9006 # We only want to do this on AIX 4.2 and lower, the check
9007 # below for broken collect2 doesn't work under 4.3+
9008 collect2name=`${CC} -print-prog-name=collect2`
9009 if test -f "$collect2name" &&
9010 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9012 # We have reworked collect2
9015 # We have old collect2
9016 hardcode_direct=unsupported
9017 # It fails to find uninstalled libraries when the uninstalled
9018 # path is not listed in the libpath. Setting hardcode_minus_L
9019 # to unsupported forces relinking
9020 hardcode_minus_L=yes
9021 hardcode_libdir_flag_spec='-L$libdir'
9022 hardcode_libdir_separator=
9026 shared_flag='-shared'
9027 if test "$aix_use_runtimelinking" = yes; then
9028 shared_flag="$shared_flag "'${wl}-G'
9032 if test "$host_cpu" = ia64; then
9033 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9034 # chokes on -Wl,-G. The following line is correct:
9037 if test "$aix_use_runtimelinking" = yes; then
9038 shared_flag='${wl}-G'
9040 shared_flag='${wl}-bM:SRE'
9045 export_dynamic_flag_spec='${wl}-bexpall'
9046 # It seems that -bexpall does not export symbols beginning with
9047 # underscore (_), so it is better to generate a list of symbols to export.
9048 always_export_symbols=yes
9049 if test "$aix_use_runtimelinking" = yes; then
9050 # Warning - without using the other runtime loading flags (-brtl),
9051 # -berok will link without error, but may produce a broken library.
9052 allow_undefined_flag='-berok'
9053 # Determine the default libpath from the value encoded in an
9055 if test "${lt_cv_aix_libpath+set}" = set; then
9056 aix_libpath=$lt_cv_aix_libpath
9058 if ${lt_cv_aix_libpath_+:} false; then :
9059 $as_echo_n "(cached) " >&6
9061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9062 /* end confdefs.h. */
9072 if ac_fn_c_try_link "$LINENO"; then :
9074 lt_aix_libpath_sed='
9075 /Import File Strings/,/^$/ {
9077 s/^0 *\([^ ]*\) *$/\1/
9081 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9082 # Check for a 64-bit object if we didn't find anything.
9083 if test -z "$lt_cv_aix_libpath_"; then
9084 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9087 rm -f core conftest.err conftest.$ac_objext \
9088 conftest$ac_exeext conftest.$ac_ext
9089 if test -z "$lt_cv_aix_libpath_"; then
9090 lt_cv_aix_libpath_="/usr/lib:/lib"
9095 aix_libpath=$lt_cv_aix_libpath_
9098 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9099 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"
9101 if test "$host_cpu" = ia64; then
9102 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9103 allow_undefined_flag="-z nodefs"
9104 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"
9106 # Determine the default libpath from the value encoded in an
9108 if test "${lt_cv_aix_libpath+set}" = set; then
9109 aix_libpath=$lt_cv_aix_libpath
9111 if ${lt_cv_aix_libpath_+:} false; then :
9112 $as_echo_n "(cached) " >&6
9114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9115 /* end confdefs.h. */
9125 if ac_fn_c_try_link "$LINENO"; then :
9127 lt_aix_libpath_sed='
9128 /Import File Strings/,/^$/ {
9130 s/^0 *\([^ ]*\) *$/\1/
9134 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9135 # Check for a 64-bit object if we didn't find anything.
9136 if test -z "$lt_cv_aix_libpath_"; then
9137 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9140 rm -f core conftest.err conftest.$ac_objext \
9141 conftest$ac_exeext conftest.$ac_ext
9142 if test -z "$lt_cv_aix_libpath_"; then
9143 lt_cv_aix_libpath_="/usr/lib:/lib"
9148 aix_libpath=$lt_cv_aix_libpath_
9151 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9152 # Warning - without using the other run time loading flags,
9153 # -berok will link without error, but may produce a broken library.
9154 no_undefined_flag=' ${wl}-bernotok'
9155 allow_undefined_flag=' ${wl}-berok'
9156 if test "$with_gnu_ld" = yes; then
9157 # We only use this code for GNU lds that support --whole-archive.
9158 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9160 # Exported symbols can be pulled into shared objects from archives
9161 whole_archive_flag_spec='$convenience'
9163 archive_cmds_need_lc=yes
9164 # This is similar to how AIX traditionally builds its shared libraries.
9165 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'
9173 # see comment about AmigaOS4 .so support
9174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9175 archive_expsym_cmds=''
9178 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)'
9179 hardcode_libdir_flag_spec='-L$libdir'
9180 hardcode_minus_L=yes
9186 export_dynamic_flag_spec=-rdynamic
9189 cygwin* | mingw* | pw32* | cegcc*)
9190 # When not using gcc, we currently assume that we are using
9191 # Microsoft Visual C++.
9192 # hardcode_libdir_flag_spec is actually meaningless, as there is
9193 # no search path for DLLs.
9194 case $cc_basename in
9197 hardcode_libdir_flag_spec=' '
9198 allow_undefined_flag=unsupported
9199 always_export_symbols=yes
9201 # Tell ltmain to make .lib files, not .a files.
9203 # Tell ltmain to make .dll files, not .so files.
9205 # FIXME: Setting linknames here is a bad hack.
9206 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9207 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9208 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9210 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9212 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9214 # The linker will not automatically build a static lib if we build a DLL.
9215 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9216 enable_shared_with_static_runtimes=yes
9217 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9218 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9220 old_postinstall_cmds='chmod 644 $oldlib'
9221 postlink_cmds='lt_outputfile="@OUTPUT@"~
9222 lt_tool_outputfile="@TOOL_OUTPUT@"~
9223 case $lt_outputfile in
9226 lt_outputfile="$lt_outputfile.exe"
9227 lt_tool_outputfile="$lt_tool_outputfile.exe"
9230 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9231 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9232 $RM "$lt_outputfile.manifest";
9236 # Assume MSVC wrapper
9237 hardcode_libdir_flag_spec=' '
9238 allow_undefined_flag=unsupported
9239 # Tell ltmain to make .lib files, not .a files.
9241 # Tell ltmain to make .dll files, not .so files.
9243 # FIXME: Setting linknames here is a bad hack.
9244 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9245 # The linker will automatically build a .lib file if we build a DLL.
9246 old_archive_from_new_cmds='true'
9247 # FIXME: Should let the user specify the lib program.
9248 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9249 enable_shared_with_static_runtimes=yes
9254 darwin* | rhapsody*)
9257 archive_cmds_need_lc=no
9259 hardcode_automatic=yes
9260 hardcode_shlibpath_var=unsupported
9261 if test "$lt_cv_ld_force_load" = "yes"; then
9262 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\"`'
9265 whole_archive_flag_spec=''
9267 link_all_deplibs=yes
9268 allow_undefined_flag="$_lt_dar_allow_undefined"
9269 case $cc_basename in
9270 ifort*) _lt_dar_can_shared=yes ;;
9271 *) _lt_dar_can_shared=$GCC ;;
9273 if test "$_lt_dar_can_shared" = "yes"; then
9274 output_verbose_link_cmd=func_echo_all
9275 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9276 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9277 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}"
9278 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}"
9287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9288 hardcode_libdir_flag_spec='-L$libdir'
9289 hardcode_shlibpath_var=no
9292 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9293 # support. Future versions do this automatically, but an explicit c++rt0.o
9294 # does not break anything, and helps significantly (at the cost of a little
9297 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9298 hardcode_libdir_flag_spec='-R$libdir'
9300 hardcode_shlibpath_var=no
9303 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9305 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9307 hardcode_minus_L=yes
9308 hardcode_shlibpath_var=no
9311 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9312 freebsd* | dragonfly*)
9313 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9314 hardcode_libdir_flag_spec='-R$libdir'
9316 hardcode_shlibpath_var=no
9320 if test "$GCC" = yes; then
9321 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'
9323 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'
9325 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9326 hardcode_libdir_separator=:
9329 # hardcode_minus_L: Not really in the search PATH,
9330 # but as the default location of the library.
9331 hardcode_minus_L=yes
9332 export_dynamic_flag_spec='${wl}-E'
9336 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9337 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9339 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9341 if test "$with_gnu_ld" = no; then
9342 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9343 hardcode_libdir_separator=:
9345 hardcode_direct_absolute=yes
9346 export_dynamic_flag_spec='${wl}-E'
9347 # hardcode_minus_L: Not really in the search PATH,
9348 # but as the default location of the library.
9349 hardcode_minus_L=yes
9354 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9357 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9360 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9363 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9369 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9372 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9376 # Older versions of the 11.00 compiler do not understand -b yet
9377 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9379 $as_echo_n "checking if $CC understands -b... " >&6; }
9380 if ${lt_cv_prog_compiler__b+:} false; then :
9381 $as_echo_n "(cached) " >&6
9383 lt_cv_prog_compiler__b=no
9384 save_LDFLAGS="$LDFLAGS"
9385 LDFLAGS="$LDFLAGS -b"
9386 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9387 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9388 # The linker can only warn and ignore the option if not recognized
9389 # So say no if there are warnings
9390 if test -s conftest.err; then
9391 # Append any errors to the config.log.
9392 cat conftest.err 1>&5
9393 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9394 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9395 if diff conftest.exp conftest.er2 >/dev/null; then
9396 lt_cv_prog_compiler__b=yes
9399 lt_cv_prog_compiler__b=yes
9403 LDFLAGS="$save_LDFLAGS"
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9407 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9409 if test x"$lt_cv_prog_compiler__b" = xyes; then
9410 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9412 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9418 if test "$with_gnu_ld" = no; then
9419 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9420 hardcode_libdir_separator=:
9425 hardcode_shlibpath_var=no
9429 hardcode_direct_absolute=yes
9430 export_dynamic_flag_spec='${wl}-E'
9432 # hardcode_minus_L: Not really in the search PATH,
9433 # but as the default location of the library.
9434 hardcode_minus_L=yes
9440 irix5* | irix6* | nonstopux*)
9441 if test "$GCC" = yes; then
9442 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'
9443 # Try to use the -exported_symbol ld option, if it does not
9444 # work, assume that -exports_file does not work either and
9445 # implicitly export all symbols.
9446 # This should be the same for all languages, so no per-tag cache variable.
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9448 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9449 if ${lt_cv_irix_exported_symbol+:} false; then :
9450 $as_echo_n "(cached) " >&6
9452 save_LDFLAGS="$LDFLAGS"
9453 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455 /* end confdefs.h. */
9456 int foo (void) { return 0; }
9458 if ac_fn_c_try_link "$LINENO"; then :
9459 lt_cv_irix_exported_symbol=yes
9461 lt_cv_irix_exported_symbol=no
9463 rm -f core conftest.err conftest.$ac_objext \
9464 conftest$ac_exeext conftest.$ac_ext
9465 LDFLAGS="$save_LDFLAGS"
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9468 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9469 if test "$lt_cv_irix_exported_symbol" = yes; then
9470 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'
9473 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'
9474 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'
9476 archive_cmds_need_lc='no'
9477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9478 hardcode_libdir_separator=:
9480 link_all_deplibs=yes
9484 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9487 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9489 hardcode_libdir_flag_spec='-R$libdir'
9491 hardcode_shlibpath_var=no
9495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9497 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9498 hardcode_libdir_separator=:
9499 hardcode_shlibpath_var=no
9506 if test -f /usr/libexec/ld.so; then
9508 hardcode_shlibpath_var=no
9509 hardcode_direct_absolute=yes
9510 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9511 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9512 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9513 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9514 export_dynamic_flag_spec='${wl}-E'
9517 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9518 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9519 hardcode_libdir_flag_spec='-R$libdir'
9522 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9523 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9533 hardcode_libdir_flag_spec='-L$libdir'
9534 hardcode_minus_L=yes
9535 allow_undefined_flag=unsupported
9536 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'
9537 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9541 if test "$GCC" = yes; then
9542 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9543 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'
9545 allow_undefined_flag=' -expect_unresolved \*'
9546 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'
9548 archive_cmds_need_lc='no'
9549 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9550 hardcode_libdir_separator=:
9553 osf4* | osf5*) # as osf3* with the addition of -msym flag
9554 if test "$GCC" = yes; then
9555 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9556 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'
9557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9559 allow_undefined_flag=' -expect_unresolved \*'
9560 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'
9561 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~
9562 $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'
9564 # Both c and cxx compiler support -rpath directly
9565 hardcode_libdir_flag_spec='-rpath $libdir'
9567 archive_cmds_need_lc='no'
9568 hardcode_libdir_separator=:
9572 no_undefined_flag=' -z defs'
9573 if test "$GCC" = yes; then
9575 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9576 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9577 $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'
9579 case `$CC -V 2>&1` in
9582 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9583 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9584 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9588 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9589 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9590 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9594 hardcode_libdir_flag_spec='-R$libdir'
9595 hardcode_shlibpath_var=no
9597 solaris2.[0-5] | solaris2.[0-5].*) ;;
9599 # The compiler driver will combine and reorder linker options,
9600 # but understands `-z linker_flag'. GCC discards it without `$wl',
9601 # but is careful enough not to reorder.
9602 # Supported since Solaris 2.6 (maybe 2.5.1?)
9603 if test "$GCC" = yes; then
9604 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9606 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9610 link_all_deplibs=yes
9614 if test "x$host_vendor" = xsequent; then
9615 # Use $CC to link under sequent, because it throws in some extra .o
9616 # files that make .init and .fini sections work.
9617 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9619 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9621 hardcode_libdir_flag_spec='-L$libdir'
9623 hardcode_minus_L=yes
9624 hardcode_shlibpath_var=no
9628 case $host_vendor in
9630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9631 hardcode_direct=yes # is this really true???
9634 ## LD is ld it makes a PLAMLIB
9635 ## CC just makes a GrossModule.
9636 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9637 reload_cmds='$CC -r -o $output$reload_objs'
9641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9642 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9645 runpath_var='LD_RUN_PATH'
9646 hardcode_shlibpath_var=no
9650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9651 hardcode_shlibpath_var=no
9652 export_dynamic_flag_spec='-Bexport'
9656 if test -d /usr/nec; then
9657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9658 hardcode_shlibpath_var=no
9659 runpath_var=LD_RUN_PATH
9660 hardcode_runpath_var=yes
9665 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9666 no_undefined_flag='${wl}-z,text'
9667 archive_cmds_need_lc=no
9668 hardcode_shlibpath_var=no
9669 runpath_var='LD_RUN_PATH'
9671 if test "$GCC" = yes; then
9672 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9673 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9675 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9676 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9680 sysv5* | sco3.2v5* | sco5v6*)
9681 # Note: We can NOT use -z defs as we might desire, because we do not
9682 # link with -lc, and that would cause any symbols used from libc to
9683 # always be unresolved, which means just about no library would
9684 # ever link correctly. If we're not using GNU ld we use -z text
9685 # though, which does catch some bad symbols but isn't as heavy-handed
9687 no_undefined_flag='${wl}-z,text'
9688 allow_undefined_flag='${wl}-z,nodefs'
9689 archive_cmds_need_lc=no
9690 hardcode_shlibpath_var=no
9691 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9692 hardcode_libdir_separator=':'
9693 link_all_deplibs=yes
9694 export_dynamic_flag_spec='${wl}-Bexport'
9695 runpath_var='LD_RUN_PATH'
9697 if test "$GCC" = yes; then
9698 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9699 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9701 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9702 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9708 hardcode_libdir_flag_spec='-L$libdir'
9709 hardcode_shlibpath_var=no
9717 if test x$host_vendor = xsni; then
9719 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9720 export_dynamic_flag_spec='${wl}-Blargedynsym'
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9727 $as_echo "$ld_shlibs" >&6; }
9728 test "$ld_shlibs" = no && can_build_shared=no
9730 with_gnu_ld=$with_gnu_ld
9747 # Do we need to explicitly link libc?
9749 case "x$archive_cmds_need_lc" in
9751 # Assume -lc should be added
9752 archive_cmds_need_lc=yes
9754 if test "$enable_shared" = yes && test "$GCC" = yes; then
9755 case $archive_cmds in
9757 # FIXME: we may have to deal with multi-command sequences.
9760 # Test whether the compiler implicitly links with -lc since on some
9761 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9762 # to ld, don't add -lc before -lgcc.
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9764 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9765 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9766 $as_echo_n "(cached) " >&6
9769 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9772 (eval $ac_compile) 2>&5
9774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9775 test $ac_status = 0; } 2>conftest.err; then
9778 libobjs=conftest.$ac_objext
9780 wl=$lt_prog_compiler_wl
9781 pic_flag=$lt_prog_compiler_pic
9787 lt_save_allow_undefined_flag=$allow_undefined_flag
9788 allow_undefined_flag=
9789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9790 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9793 test $ac_status = 0; }
9795 lt_cv_archive_cmds_need_lc=no
9797 lt_cv_archive_cmds_need_lc=yes
9799 allow_undefined_flag=$lt_save_allow_undefined_flag
9801 cat conftest.err 1>&5
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9807 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9808 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9967 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9969 if test "$GCC" = yes; then
9971 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9972 *) lt_awk_arg="/^libraries:/" ;;
9975 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9976 *) lt_sed_strip_eq="s,=/,/,g" ;;
9978 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9979 case $lt_search_path_spec in
9981 # if the path contains ";" then we assume it to be the separator
9982 # otherwise default to the standard path separator (i.e. ":") - it is
9983 # assumed that no part of a normal pathname contains ";" but that should
9984 # okay in the real world where ";" in dirpaths is itself problematic.
9985 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9988 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9991 # Ok, now we have the path, separated by spaces, we can step through it
9992 # and add multilib dir if necessary.
9993 lt_tmp_lt_search_path_spec=
9994 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9995 for lt_sys_path in $lt_search_path_spec; do
9996 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9997 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9999 test -d "$lt_sys_path" && \
10000 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10003 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10004 BEGIN {RS=" "; FS="/|\n";} {
10007 for (lt_i = NF; lt_i > 0; lt_i--) {
10008 if ($lt_i != "" && $lt_i != ".") {
10009 if ($lt_i == "..") {
10012 if (lt_count == 0) {
10013 lt_foo="/" $lt_i lt_foo;
10020 if (lt_foo != "") { lt_freq[lt_foo]++; }
10021 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10023 # AWK program above erroneously prepends '/' to C:/dos/paths
10026 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10027 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10029 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10031 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10033 library_names_spec=
10034 libname_spec='lib$name'
10038 postuninstall_cmds=
10042 shlibpath_overrides_runpath=unknown
10044 dynamic_linker="$host_os ld.so"
10045 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10046 need_lib_prefix=unknown
10047 hardcode_into_libs=no
10049 # when you set need_version to no, make sure it does not cause -set_version
10050 # flags to be left without arguments
10051 need_version=unknown
10055 version_type=linux # correct to gnu/linux during the next big refactor
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10057 shlibpath_var=LIBPATH
10059 # AIX 3 has no versioning support, so we append a major version to the name.
10060 soname_spec='${libname}${release}${shared_ext}$major'
10064 version_type=linux # correct to gnu/linux during the next big refactor
10067 hardcode_into_libs=yes
10068 if test "$host_cpu" = ia64; then
10069 # AIX 5 supports IA64
10070 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10071 shlibpath_var=LD_LIBRARY_PATH
10073 # With GCC up to 2.95.x, collect2 would create an import file
10074 # for dependence libraries. The import file would start with
10075 # the line `#! .'. This would cause the generated library to
10076 # depend on `.', always an invalid library. This was fixed in
10077 # development snapshots of GCC prior to 3.0.
10079 aix4 | aix4.[01] | aix4.[01].*)
10080 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10082 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10085 can_build_shared=no
10089 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10090 # soname into executable. Probably we can add versioning support to
10091 # collect2, so additional links can be useful in future.
10092 if test "$aix_use_runtimelinking" = yes; then
10093 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10094 # instead of lib<name>.a to let people know that these are not
10095 # typical AIX shared libraries.
10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10098 # We preserve .a as extension for shared libraries through AIX4.2
10099 # and later when we are not doing run time linking.
10100 library_names_spec='${libname}${release}.a $libname.a'
10101 soname_spec='${libname}${release}${shared_ext}$major'
10103 shlibpath_var=LIBPATH
10110 # Since July 2007 AmigaOS4 officially supports .so libraries.
10111 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10115 library_names_spec='$libname.ixlibrary $libname.a'
10116 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10117 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'
10123 library_names_spec='${libname}${shared_ext}'
10124 dynamic_linker="$host_os ld.so"
10125 shlibpath_var=LIBRARY_PATH
10129 version_type=linux # correct to gnu/linux during the next big refactor
10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132 soname_spec='${libname}${release}${shared_ext}$major'
10133 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10134 shlibpath_var=LD_LIBRARY_PATH
10135 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10136 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10137 # the default ld.so.conf also contains /usr/contrib/lib and
10138 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10139 # libtool to hard-code these into programs
10142 cygwin* | mingw* | pw32* | cegcc*)
10143 version_type=windows
10148 case $GCC,$cc_basename in
10151 library_names_spec='$libname.dll.a'
10152 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10153 postinstall_cmds='base_file=`basename \${file}`~
10154 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10155 dldir=$destdir/`dirname \$dlpath`~
10156 test -d \$dldir || mkdir -p \$dldir~
10157 $install_prog $dir/$dlname \$dldir/$dlname~
10158 chmod a+x \$dldir/$dlname~
10159 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10160 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10162 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10163 dlpath=$dir/\$dldll~
10165 shlibpath_overrides_runpath=yes
10169 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10170 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10172 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10175 # MinGW DLLs use traditional 'lib' prefix
10176 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10179 # pw32 DLLs use 'pw' prefix rather than 'lib'
10180 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10183 dynamic_linker='Win32 ld.exe'
10188 libname_spec='$name'
10189 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10190 library_names_spec='${libname}.dll.lib'
10194 sys_lib_search_path_spec=
10197 for lt_path in $LIB
10200 # Let DOS variable expansion print the short 8.3 style file name.
10201 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10202 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10205 # Convert to MSYS style.
10206 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10209 # Convert to unix form, then to dos form, then back to unix form
10210 # but this time dos style (no spaces!) so that the unix form looks
10211 # like /cygdrive/c/PROGRA~1:/cygdr...
10212 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10213 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10214 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10217 sys_lib_search_path_spec="$LIB"
10218 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10219 # It is most probably a Windows format PATH.
10220 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10222 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10224 # FIXME: find the short name or the path components, as spaces are
10225 # common. (e.g. "Program Files" -> "PROGRA~1")
10229 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10230 postinstall_cmds='base_file=`basename \${file}`~
10231 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10232 dldir=$destdir/`dirname \$dlpath`~
10233 test -d \$dldir || mkdir -p \$dldir~
10234 $install_prog $dir/$dlname \$dldir/$dlname'
10235 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10236 dlpath=$dir/\$dldll~
10238 shlibpath_overrides_runpath=yes
10239 dynamic_linker='Win32 link.exe'
10243 # Assume MSVC wrapper
10244 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10245 dynamic_linker='Win32 ld.exe'
10248 # FIXME: first we should search . and the directory the executable is in
10252 darwin* | rhapsody*)
10253 dynamic_linker="$host_os dyld"
10254 version_type=darwin
10257 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10258 soname_spec='${libname}${release}${major}$shared_ext'
10259 shlibpath_overrides_runpath=yes
10260 shlibpath_var=DYLD_LIBRARY_PATH
10261 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10263 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10264 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10268 version_type=linux # correct to gnu/linux during the next big refactor
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10272 soname_spec='${libname}${release}${shared_ext}$major'
10273 shlibpath_var=LD_LIBRARY_PATH
10276 freebsd* | dragonfly*)
10277 # DragonFly does not have aout. When/if they implement a new
10278 # versioning mechanism, adjust this.
10279 if test -x /usr/bin/objformat; then
10280 objformat=`/usr/bin/objformat`
10283 freebsd[23].*) objformat=aout ;;
10284 *) objformat=elf ;;
10287 version_type=freebsd-$objformat
10288 case $version_type in
10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10299 shlibpath_var=LD_LIBRARY_PATH
10302 shlibpath_overrides_runpath=yes
10304 freebsd3.[01]* | freebsdelf3.[01]*)
10305 shlibpath_overrides_runpath=yes
10306 hardcode_into_libs=yes
10308 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10309 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10310 shlibpath_overrides_runpath=no
10311 hardcode_into_libs=yes
10313 *) # from 4.6 on, and DragonFly
10314 shlibpath_overrides_runpath=yes
10315 hardcode_into_libs=yes
10321 version_type=linux # correct to gnu/linux during the next big refactor
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10325 soname_spec='${libname}${release}${shared_ext}$major'
10326 shlibpath_var=LD_LIBRARY_PATH
10327 shlibpath_overrides_runpath=no
10328 hardcode_into_libs=yes
10332 version_type=linux # correct to gnu/linux during the next big refactor
10335 dynamic_linker="$host_os runtime_loader"
10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10337 soname_spec='${libname}${release}${shared_ext}$major'
10338 shlibpath_var=LIBRARY_PATH
10339 shlibpath_overrides_runpath=yes
10340 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10341 hardcode_into_libs=yes
10344 hpux9* | hpux10* | hpux11*)
10345 # Give a soname corresponding to the major version so that dld.sl refuses to
10346 # link against other versions.
10353 hardcode_into_libs=yes
10354 dynamic_linker="$host_os dld.so"
10355 shlibpath_var=LD_LIBRARY_PATH
10356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10359 if test "X$HPUX_IA64_MODE" = X32; then
10360 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10362 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10364 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10368 hardcode_into_libs=yes
10369 dynamic_linker="$host_os dld.sl"
10370 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10371 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373 soname_spec='${libname}${release}${shared_ext}$major'
10374 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10379 dynamic_linker="$host_os dld.sl"
10380 shlibpath_var=SHLIB_PATH
10381 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10383 soname_spec='${libname}${release}${shared_ext}$major'
10386 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10387 postinstall_cmds='chmod 555 $lib'
10388 # or fails outright, so override atomically:
10389 install_override_mode=555
10393 version_type=linux # correct to gnu/linux during the next big refactor
10396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10397 soname_spec='${libname}${release}${shared_ext}$major'
10398 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10399 shlibpath_var=LD_LIBRARY_PATH
10400 shlibpath_overrides_runpath=no
10401 hardcode_into_libs=yes
10404 irix5* | irix6* | nonstopux*)
10406 nonstopux*) version_type=nonstopux ;;
10408 if test "$lt_cv_prog_gnu_ld" = yes; then
10409 version_type=linux # correct to gnu/linux during the next big refactor
10416 soname_spec='${libname}${release}${shared_ext}$major'
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10419 irix5* | nonstopux*)
10420 libsuff= shlibsuff=
10423 case $LD in # libtool.m4 will add one of these switches to LD
10424 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10425 libsuff= shlibsuff= libmagic=32-bit;;
10426 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10427 libsuff=32 shlibsuff=N32 libmagic=N32;;
10428 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10429 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10430 *) libsuff= shlibsuff= libmagic=never-match;;
10434 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10435 shlibpath_overrides_runpath=no
10436 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10437 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10438 hardcode_into_libs=yes
10441 # No shared lib support for Linux oldld, aout, or coff.
10442 linux*oldld* | linux*aout* | linux*coff*)
10446 # This must be glibc/ELF.
10447 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10448 version_type=linux # correct to gnu/linux during the next big refactor
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10452 soname_spec='${libname}${release}${shared_ext}$major'
10453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10454 shlibpath_var=LD_LIBRARY_PATH
10455 shlibpath_overrides_runpath=no
10457 # Some binutils ld are patched to set DT_RUNPATH
10458 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10459 $as_echo_n "(cached) " >&6
10461 lt_cv_shlibpath_overrides_runpath=no
10462 save_LDFLAGS=$LDFLAGS
10463 save_libdir=$libdir
10464 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10465 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10467 /* end confdefs.h. */
10477 if ac_fn_c_try_link "$LINENO"; then :
10478 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10479 lt_cv_shlibpath_overrides_runpath=yes
10482 rm -f core conftest.err conftest.$ac_objext \
10483 conftest$ac_exeext conftest.$ac_ext
10484 LDFLAGS=$save_LDFLAGS
10485 libdir=$save_libdir
10489 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10491 # This implies no fast_install, which is unacceptable.
10492 # Some rework will be needed to allow for fast_install
10493 # before this can be enabled.
10494 hardcode_into_libs=yes
10496 # Append ld.so.conf contents to the search path
10497 if test -f /etc/ld.so.conf; then
10498 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' ' '`
10499 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10502 # We used to test for /lib/ld.so.1 and disable shared libraries on
10503 # powerpc, because MkLinux only supported shared libraries with the
10504 # GNU dynamic linker. Since this was broken with cross compilers,
10505 # most powerpc-linux boxes support dynamic linking these days and
10506 # people can always --disable-shared, the test was removed, and we
10507 # assume the GNU/Linux dynamic linker is in use.
10508 dynamic_linker='GNU/Linux ld.so'
10515 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10517 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10518 dynamic_linker='NetBSD (a.out) ld.so'
10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10521 soname_spec='${libname}${release}${shared_ext}$major'
10522 dynamic_linker='NetBSD ld.elf_so'
10524 shlibpath_var=LD_LIBRARY_PATH
10525 shlibpath_overrides_runpath=yes
10526 hardcode_into_libs=yes
10530 version_type=linux # correct to gnu/linux during the next big refactor
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10532 shlibpath_var=LD_LIBRARY_PATH
10533 shlibpath_overrides_runpath=yes
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10541 soname_spec='${libname}${release}${shared_ext}$major'
10542 shlibpath_var=LD_LIBRARY_PATH
10543 shlibpath_overrides_runpath=no
10544 hardcode_into_libs=yes
10545 dynamic_linker='ldqnx.so'
10550 sys_lib_dlsearch_path_spec="/usr/lib"
10552 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10554 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10555 *) need_version=no ;;
10557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10559 shlibpath_var=LD_LIBRARY_PATH
10560 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10562 openbsd2.[89] | openbsd2.[89].*)
10563 shlibpath_overrides_runpath=no
10566 shlibpath_overrides_runpath=yes
10570 shlibpath_overrides_runpath=yes
10575 libname_spec='$name'
10578 library_names_spec='$libname${shared_ext} $libname.a'
10579 dynamic_linker='OS/2 ld.exe'
10580 shlibpath_var=LIBPATH
10583 osf3* | osf4* | osf5*)
10587 soname_spec='${libname}${release}${shared_ext}$major'
10588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10589 shlibpath_var=LD_LIBRARY_PATH
10590 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10591 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10599 version_type=linux # correct to gnu/linux during the next big refactor
10602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10603 soname_spec='${libname}${release}${shared_ext}$major'
10604 shlibpath_var=LD_LIBRARY_PATH
10605 shlibpath_overrides_runpath=yes
10606 hardcode_into_libs=yes
10607 # ldd complains unless libraries are executable
10608 postinstall_cmds='chmod +x $lib'
10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10614 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10615 shlibpath_var=LD_LIBRARY_PATH
10616 shlibpath_overrides_runpath=yes
10617 if test "$with_gnu_ld" = yes; then
10624 version_type=linux # correct to gnu/linux during the next big refactor
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10626 soname_spec='${libname}${release}${shared_ext}$major'
10627 shlibpath_var=LD_LIBRARY_PATH
10628 case $host_vendor in
10630 shlibpath_overrides_runpath=no
10632 runpath_var=LD_RUN_PATH
10640 shlibpath_overrides_runpath=no
10641 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10647 if test -d /usr/nec ;then
10648 version_type=linux # correct to gnu/linux during the next big refactor
10649 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10650 soname_spec='$libname${shared_ext}.$major'
10651 shlibpath_var=LD_LIBRARY_PATH
10655 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10656 version_type=freebsd-elf
10659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10660 soname_spec='${libname}${release}${shared_ext}$major'
10661 shlibpath_var=LD_LIBRARY_PATH
10662 shlibpath_overrides_runpath=yes
10663 hardcode_into_libs=yes
10664 if test "$with_gnu_ld" = yes; then
10665 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10667 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10670 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10674 sys_lib_dlsearch_path_spec='/usr/lib'
10678 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10679 version_type=linux # correct to gnu/linux during the next big refactor
10682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10683 shlibpath_var=LD_LIBRARY_PATH
10684 shlibpath_overrides_runpath=no
10685 hardcode_into_libs=yes
10689 version_type=linux # correct to gnu/linux during the next big refactor
10690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10691 soname_spec='${libname}${release}${shared_ext}$major'
10692 shlibpath_var=LD_LIBRARY_PATH
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10700 $as_echo "$dynamic_linker" >&6; }
10701 test "$dynamic_linker" = no && can_build_shared=no
10703 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10704 if test "$GCC" = yes; then
10705 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10708 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10709 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10711 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10712 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10807 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10809 if test -n "$hardcode_libdir_flag_spec" ||
10810 test -n "$runpath_var" ||
10811 test "X$hardcode_automatic" = "Xyes" ; then
10813 # We can hardcode non-existent directories.
10814 if test "$hardcode_direct" != no &&
10815 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10816 # have to relink, otherwise we might link with an installed library
10817 # when we should be linking with a yet-to-be-installed one
10818 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10819 test "$hardcode_minus_L" != no; then
10820 # Linking always hardcodes the temporary library directory.
10821 hardcode_action=relink
10823 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10824 hardcode_action=immediate
10827 # We cannot hardcode anything, or else we can only hardcode existing
10829 hardcode_action=unsupported
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10832 $as_echo "$hardcode_action" >&6; }
10834 if test "$hardcode_action" = relink ||
10835 test "$inherit_rpath" = yes; then
10836 # Fast installation is not supported
10837 enable_fast_install=no
10838 elif test "$shlibpath_overrides_runpath" = yes ||
10839 test "$enable_shared" = no; then
10840 # Fast installation is not necessary
10841 enable_fast_install=needless
10849 if test "x$enable_dlopen" != xyes; then
10850 enable_dlopen=unknown
10851 enable_dlopen_self=unknown
10852 enable_dlopen_self_static=unknown
10859 lt_cv_dlopen="load_add_on"
10861 lt_cv_dlopen_self=yes
10864 mingw* | pw32* | cegcc*)
10865 lt_cv_dlopen="LoadLibrary"
10870 lt_cv_dlopen="dlopen"
10875 # if libdl is installed we need to link against it
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10877 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10878 if ${ac_cv_lib_dl_dlopen+:} false; then :
10879 $as_echo_n "(cached) " >&6
10881 ac_check_lib_save_LIBS=$LIBS
10883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10884 /* end confdefs.h. */
10886 /* Override any GCC internal prototype to avoid an error.
10887 Use char because int might match the return type of a GCC
10888 builtin and then its argument prototype would still apply. */
10901 if ac_fn_c_try_link "$LINENO"; then :
10902 ac_cv_lib_dl_dlopen=yes
10904 ac_cv_lib_dl_dlopen=no
10906 rm -f core conftest.err conftest.$ac_objext \
10907 conftest$ac_exeext conftest.$ac_ext
10908 LIBS=$ac_check_lib_save_LIBS
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10911 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10912 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10913 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10916 lt_cv_dlopen="dyld"
10918 lt_cv_dlopen_self=yes
10925 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10926 if test "x$ac_cv_func_shl_load" = xyes; then :
10927 lt_cv_dlopen="shl_load"
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10930 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10931 if ${ac_cv_lib_dld_shl_load+:} false; then :
10932 $as_echo_n "(cached) " >&6
10934 ac_check_lib_save_LIBS=$LIBS
10936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10937 /* end confdefs.h. */
10939 /* Override any GCC internal prototype to avoid an error.
10940 Use char because int might match the return type of a GCC
10941 builtin and then its argument prototype would still apply. */
10949 return shl_load ();
10954 if ac_fn_c_try_link "$LINENO"; then :
10955 ac_cv_lib_dld_shl_load=yes
10957 ac_cv_lib_dld_shl_load=no
10959 rm -f core conftest.err conftest.$ac_objext \
10960 conftest$ac_exeext conftest.$ac_ext
10961 LIBS=$ac_check_lib_save_LIBS
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10964 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10965 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10966 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10968 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10969 if test "x$ac_cv_func_dlopen" = xyes; then :
10970 lt_cv_dlopen="dlopen"
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10973 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10974 if ${ac_cv_lib_dl_dlopen+:} false; then :
10975 $as_echo_n "(cached) " >&6
10977 ac_check_lib_save_LIBS=$LIBS
10979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10980 /* end confdefs.h. */
10982 /* Override any GCC internal prototype to avoid an error.
10983 Use char because int might match the return type of a GCC
10984 builtin and then its argument prototype would still apply. */
10997 if ac_fn_c_try_link "$LINENO"; then :
10998 ac_cv_lib_dl_dlopen=yes
11000 ac_cv_lib_dl_dlopen=no
11002 rm -f core conftest.err conftest.$ac_objext \
11003 conftest$ac_exeext conftest.$ac_ext
11004 LIBS=$ac_check_lib_save_LIBS
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11007 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11008 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11009 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11012 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11013 if ${ac_cv_lib_svld_dlopen+:} false; then :
11014 $as_echo_n "(cached) " >&6
11016 ac_check_lib_save_LIBS=$LIBS
11017 LIBS="-lsvld $LIBS"
11018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019 /* end confdefs.h. */
11021 /* Override any GCC internal prototype to avoid an error.
11022 Use char because int might match the return type of a GCC
11023 builtin and then its argument prototype would still apply. */
11036 if ac_fn_c_try_link "$LINENO"; then :
11037 ac_cv_lib_svld_dlopen=yes
11039 ac_cv_lib_svld_dlopen=no
11041 rm -f core conftest.err conftest.$ac_objext \
11042 conftest$ac_exeext conftest.$ac_ext
11043 LIBS=$ac_check_lib_save_LIBS
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11046 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11047 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11048 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11051 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11052 if ${ac_cv_lib_dld_dld_link+:} false; then :
11053 $as_echo_n "(cached) " >&6
11055 ac_check_lib_save_LIBS=$LIBS
11057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11058 /* end confdefs.h. */
11060 /* Override any GCC internal prototype to avoid an error.
11061 Use char because int might match the return type of a GCC
11062 builtin and then its argument prototype would still apply. */
11070 return dld_link ();
11075 if ac_fn_c_try_link "$LINENO"; then :
11076 ac_cv_lib_dld_dld_link=yes
11078 ac_cv_lib_dld_dld_link=no
11080 rm -f core conftest.err conftest.$ac_objext \
11081 conftest$ac_exeext conftest.$ac_ext
11082 LIBS=$ac_check_lib_save_LIBS
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11085 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11086 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11087 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11108 if test "x$lt_cv_dlopen" != xno; then
11114 case $lt_cv_dlopen in
11116 save_CPPFLAGS="$CPPFLAGS"
11117 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11119 save_LDFLAGS="$LDFLAGS"
11120 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11123 LIBS="$lt_cv_dlopen_libs $LIBS"
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11126 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11127 if ${lt_cv_dlopen_self+:} false; then :
11128 $as_echo_n "(cached) " >&6
11130 if test "$cross_compiling" = yes; then :
11131 lt_cv_dlopen_self=cross
11133 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11134 lt_status=$lt_dlunknown
11135 cat > conftest.$ac_ext <<_LT_EOF
11136 #line $LINENO "configure"
11137 #include "confdefs.h"
11146 # define LT_DLGLOBAL RTLD_GLOBAL
11149 # define LT_DLGLOBAL DL_GLOBAL
11151 # define LT_DLGLOBAL 0
11155 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11156 find out it does not work in some platform. */
11157 #ifndef LT_DLLAZY_OR_NOW
11159 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11162 # define LT_DLLAZY_OR_NOW DL_LAZY
11165 # define LT_DLLAZY_OR_NOW RTLD_NOW
11168 # define LT_DLLAZY_OR_NOW DL_NOW
11170 # define LT_DLLAZY_OR_NOW 0
11177 /* When -fvisbility=hidden is used, assume the code has been annotated
11178 correspondingly for the symbols needed. */
11179 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11180 int fnord () __attribute__((visibility("default")));
11183 int fnord () { return 42; }
11186 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11187 int status = $lt_dlunknown;
11191 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11194 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11195 else puts (dlerror ());
11197 /* dlclose (self); */
11205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11206 (eval $ac_link) 2>&5
11208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11209 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11210 (./conftest; exit; ) >&5 2>/dev/null
11212 case x$lt_status in
11213 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11214 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11215 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11218 # compilation failed
11219 lt_cv_dlopen_self=no
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11227 $as_echo "$lt_cv_dlopen_self" >&6; }
11229 if test "x$lt_cv_dlopen_self" = xyes; then
11230 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11232 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11233 if ${lt_cv_dlopen_self_static+:} false; then :
11234 $as_echo_n "(cached) " >&6
11236 if test "$cross_compiling" = yes; then :
11237 lt_cv_dlopen_self_static=cross
11239 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11240 lt_status=$lt_dlunknown
11241 cat > conftest.$ac_ext <<_LT_EOF
11242 #line $LINENO "configure"
11243 #include "confdefs.h"
11252 # define LT_DLGLOBAL RTLD_GLOBAL
11255 # define LT_DLGLOBAL DL_GLOBAL
11257 # define LT_DLGLOBAL 0
11261 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11262 find out it does not work in some platform. */
11263 #ifndef LT_DLLAZY_OR_NOW
11265 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11268 # define LT_DLLAZY_OR_NOW DL_LAZY
11271 # define LT_DLLAZY_OR_NOW RTLD_NOW
11274 # define LT_DLLAZY_OR_NOW DL_NOW
11276 # define LT_DLLAZY_OR_NOW 0
11283 /* When -fvisbility=hidden is used, assume the code has been annotated
11284 correspondingly for the symbols needed. */
11285 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11286 int fnord () __attribute__((visibility("default")));
11289 int fnord () { return 42; }
11292 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11293 int status = $lt_dlunknown;
11297 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11300 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11301 else puts (dlerror ());
11303 /* dlclose (self); */
11311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11312 (eval $ac_link) 2>&5
11314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11315 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11316 (./conftest; exit; ) >&5 2>/dev/null
11318 case x$lt_status in
11319 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11320 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11321 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11324 # compilation failed
11325 lt_cv_dlopen_self_static=no
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11333 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11336 CPPFLAGS="$save_CPPFLAGS"
11337 LDFLAGS="$save_LDFLAGS"
11342 case $lt_cv_dlopen_self in
11343 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11344 *) enable_dlopen_self=unknown ;;
11347 case $lt_cv_dlopen_self_static in
11348 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11349 *) enable_dlopen_self_static=unknown ;;
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11372 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11373 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11374 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11375 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11377 $as_echo "yes" >&6; }
11379 # FIXME - insert some real tests, host_os isn't really good enough
11382 if test -n "$STRIP" ; then
11383 striplib="$STRIP -x"
11384 old_striplib="$STRIP -S"
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11386 $as_echo "yes" >&6; }
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11389 $as_echo "no" >&6; }
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11394 $as_echo "no" >&6; }
11410 # Report which library types will actually be built
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11412 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11414 $as_echo "$can_build_shared" >&6; }
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11417 $as_echo_n "checking whether to build shared libraries... " >&6; }
11418 test "$can_build_shared" = "no" && enable_shared=no
11420 # On AIX, shared libraries and static libraries use the same namespace, and
11421 # are all built from PIC.
11424 test "$enable_shared" = yes && enable_static=no
11425 if test -n "$RANLIB"; then
11426 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11427 postinstall_cmds='$RANLIB $lib'
11432 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11433 test "$enable_shared" = yes && enable_static=no
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11438 $as_echo "$enable_shared" >&6; }
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11441 $as_echo_n "checking whether to build static libraries... " >&6; }
11442 # Make sure either enable_shared or enable_static is yes.
11443 test "$enable_shared" = yes || enable_static=yes
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11445 $as_echo "$enable_static" >&6; }
11452 ac_cpp='$CPP $CPPFLAGS'
11453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11473 ac_config_commands="$ac_config_commands libtool"
11478 # Only expand once:
11482 # Require xorg-macros minimum of 1.12 for DocBook external references
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11495 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11496 if ${ac_cv_prog_cc_c99+:} false; then :
11497 $as_echo_n "(cached) " >&6
11499 ac_cv_prog_cc_c99=no
11501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502 /* end confdefs.h. */
11503 #include <stdarg.h>
11504 #include <stdbool.h>
11505 #include <stdlib.h>
11509 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11510 #define debug(...) fprintf (stderr, __VA_ARGS__)
11511 #define showlist(...) puts (#__VA_ARGS__)
11512 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11514 test_varargs_macros (void)
11519 debug ("X = %d\n", x);
11520 showlist (The first, second, and third items.);
11521 report (x>y, "x is %d but y is %d", x, y);
11524 // Check long long types.
11525 #define BIG64 18446744073709551615ull
11526 #define BIG32 4294967295ul
11527 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11529 your preprocessor is broken;
11533 your preprocessor is broken;
11535 static long long int bignum = -9223372036854775807LL;
11536 static unsigned long long int ubignum = BIG64;
11538 struct incomplete_array
11544 struct named_init {
11546 const wchar_t *name;
11550 typedef const char *ccp;
11553 test_restrict (ccp restrict text)
11555 // See if C++-style comments work.
11556 // Iterate through items via the restricted pointer.
11557 // Also check for declarations in for loops.
11558 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11563 // Check varargs and va_copy.
11565 test_varargs (const char *format, ...)
11568 va_start (args, format);
11570 va_copy (args_copy, args);
11580 case 's': // string
11581 str = va_arg (args_copy, const char *);
11584 number = va_arg (args_copy, int);
11587 fnumber = va_arg (args_copy, double);
11593 va_end (args_copy);
11602 _Bool success = false;
11605 if (test_restrict ("String literal") == 0)
11607 char *restrict newvar = "Another string";
11610 test_varargs ("s, d' f .", "string", 65, 34.234);
11611 test_varargs_macros ();
11613 // Check flexible array members.
11614 struct incomplete_array *ia =
11615 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11617 for (int i = 0; i < ia->datasize; ++i)
11618 ia->data[i] = i * 1.234;
11620 // Check named initializers.
11621 struct named_init ni = {
11623 .name = L"Test wide string",
11624 .average = 543.34343,
11629 int dynamic_array[ni.number];
11630 dynamic_array[ni.number - 1] = 543;
11632 // work around unused variable warnings
11633 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11634 || dynamic_array[ni.number - 1] != 543);
11640 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11642 CC="$ac_save_CC $ac_arg"
11643 if ac_fn_c_try_compile "$LINENO"; then :
11644 ac_cv_prog_cc_c99=$ac_arg
11646 rm -f core conftest.err conftest.$ac_objext
11647 test "x$ac_cv_prog_cc_c99" != "xno" && break
11649 rm -f conftest.$ac_ext
11654 case "x$ac_cv_prog_cc_c99" in
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11657 $as_echo "none needed" >&6; } ;;
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11660 $as_echo "unsupported" >&6; } ;;
11662 CC="$CC $ac_cv_prog_cc_c99"
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11664 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11666 if test "x$ac_cv_prog_cc_c99" != xno; then :
11675 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11676 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11682 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11683 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11689 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11690 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11699 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11700 if test -n "$ac_tool_prefix"; then
11701 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11702 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11704 $as_echo_n "checking for $ac_word... " >&6; }
11705 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11706 $as_echo_n "(cached) " >&6
11708 case $PKG_CONFIG in
11710 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11714 for as_dir in $PATH
11717 test -z "$as_dir" && as_dir=.
11718 for ac_exec_ext in '' $ac_executable_extensions; do
11719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11720 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11731 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11732 if test -n "$PKG_CONFIG"; then
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11734 $as_echo "$PKG_CONFIG" >&6; }
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737 $as_echo "no" >&6; }
11742 if test -z "$ac_cv_path_PKG_CONFIG"; then
11743 ac_pt_PKG_CONFIG=$PKG_CONFIG
11744 # Extract the first word of "pkg-config", so it can be a program name with args.
11745 set dummy pkg-config; ac_word=$2
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11747 $as_echo_n "checking for $ac_word... " >&6; }
11748 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11749 $as_echo_n "(cached) " >&6
11751 case $ac_pt_PKG_CONFIG in
11753 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11757 for as_dir in $PATH
11760 test -z "$as_dir" && as_dir=.
11761 for ac_exec_ext in '' $ac_executable_extensions; do
11762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11763 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11774 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11775 if test -n "$ac_pt_PKG_CONFIG"; then
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11777 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780 $as_echo "no" >&6; }
11783 if test "x$ac_pt_PKG_CONFIG" = x; then
11786 case $cross_compiling:$ac_tool_warned in
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11790 ac_tool_warned=yes ;;
11792 PKG_CONFIG=$ac_pt_PKG_CONFIG
11795 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11799 if test -n "$PKG_CONFIG"; then
11800 _pkg_min_version=0.9.0
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11802 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11803 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11805 $as_echo "yes" >&6; }
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11818 # Check whether --enable-selective-werror was given.
11819 if test "${enable_selective_werror+set}" = set; then :
11820 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11822 SELECTIVE_WERROR=yes
11829 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11830 if test "x$SUNCC" = "xyes"; then
11836 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11850 xorg_testset_save_CFLAGS="$CFLAGS"
11852 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11855 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11856 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11857 $as_echo_n "(cached) " >&6
11859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11860 /* end confdefs.h. */
11863 if ac_fn_c_try_compile "$LINENO"; then :
11864 xorg_cv_cc_flag_unknown_warning_option=yes
11866 xorg_cv_cc_flag_unknown_warning_option=no
11868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11871 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11872 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11873 CFLAGS="$xorg_testset_save_CFLAGS"
11876 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11882 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11883 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11884 $as_echo_n "(cached) " >&6
11886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11887 /* end confdefs.h. */
11890 if ac_fn_c_try_compile "$LINENO"; then :
11891 xorg_cv_cc_flag_unused_command_line_argument=yes
11893 xorg_cv_cc_flag_unused_command_line_argument=no
11895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11898 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11899 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11900 CFLAGS="$xorg_testset_save_CFLAGS"
11905 if test $found = "no" ; then
11906 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11910 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11914 CFLAGS="$CFLAGS -Wall"
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11917 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11918 cacheid=xorg_cv_cc_flag__Wall
11919 if eval \${$cacheid+:} false; then :
11920 $as_echo_n "(cached) " >&6
11922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923 /* end confdefs.h. */
11933 if ac_fn_c_try_link "$LINENO"; then :
11938 rm -f core conftest.err conftest.$ac_objext \
11939 conftest$ac_exeext conftest.$ac_ext
11943 CFLAGS="$xorg_testset_save_CFLAGS"
11945 eval supported=\$$cacheid
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11947 $as_echo "$supported" >&6; }
11948 if test "$supported" = "yes" ; then
11949 BASE_CFLAGS="$BASE_CFLAGS -Wall"
11968 xorg_testset_save_CFLAGS="$CFLAGS"
11970 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11973 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11974 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11975 $as_echo_n "(cached) " >&6
11977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11978 /* end confdefs.h. */
11981 if ac_fn_c_try_compile "$LINENO"; then :
11982 xorg_cv_cc_flag_unknown_warning_option=yes
11984 xorg_cv_cc_flag_unknown_warning_option=no
11986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11989 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11991 CFLAGS="$xorg_testset_save_CFLAGS"
11994 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12000 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12001 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12002 $as_echo_n "(cached) " >&6
12004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12005 /* end confdefs.h. */
12008 if ac_fn_c_try_compile "$LINENO"; then :
12009 xorg_cv_cc_flag_unused_command_line_argument=yes
12011 xorg_cv_cc_flag_unused_command_line_argument=no
12013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12016 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12018 CFLAGS="$xorg_testset_save_CFLAGS"
12023 if test $found = "no" ; then
12024 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12028 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12032 CFLAGS="$CFLAGS -Wpointer-arith"
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12035 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12036 cacheid=xorg_cv_cc_flag__Wpointer_arith
12037 if eval \${$cacheid+:} false; then :
12038 $as_echo_n "(cached) " >&6
12040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12041 /* end confdefs.h. */
12051 if ac_fn_c_try_link "$LINENO"; then :
12056 rm -f core conftest.err conftest.$ac_objext \
12057 conftest$ac_exeext conftest.$ac_ext
12061 CFLAGS="$xorg_testset_save_CFLAGS"
12063 eval supported=\$$cacheid
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12065 $as_echo "$supported" >&6; }
12066 if test "$supported" = "yes" ; then
12067 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12086 xorg_testset_save_CFLAGS="$CFLAGS"
12088 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12091 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12092 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12093 $as_echo_n "(cached) " >&6
12095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12096 /* end confdefs.h. */
12099 if ac_fn_c_try_compile "$LINENO"; then :
12100 xorg_cv_cc_flag_unknown_warning_option=yes
12102 xorg_cv_cc_flag_unknown_warning_option=no
12104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12107 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12108 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12109 CFLAGS="$xorg_testset_save_CFLAGS"
12112 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12118 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12119 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12120 $as_echo_n "(cached) " >&6
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h. */
12126 if ac_fn_c_try_compile "$LINENO"; then :
12127 xorg_cv_cc_flag_unused_command_line_argument=yes
12129 xorg_cv_cc_flag_unused_command_line_argument=no
12131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12134 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12135 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12136 CFLAGS="$xorg_testset_save_CFLAGS"
12141 if test $found = "no" ; then
12142 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12146 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12150 CFLAGS="$CFLAGS -Wmissing-declarations"
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12153 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12154 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12155 if eval \${$cacheid+:} false; then :
12156 $as_echo_n "(cached) " >&6
12158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12159 /* end confdefs.h. */
12169 if ac_fn_c_try_link "$LINENO"; then :
12174 rm -f core conftest.err conftest.$ac_objext \
12175 conftest$ac_exeext conftest.$ac_ext
12179 CFLAGS="$xorg_testset_save_CFLAGS"
12181 eval supported=\$$cacheid
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12183 $as_echo "$supported" >&6; }
12184 if test "$supported" = "yes" ; then
12185 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12204 xorg_testset_save_CFLAGS="$CFLAGS"
12206 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12209 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12210 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12211 $as_echo_n "(cached) " >&6
12213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12214 /* end confdefs.h. */
12217 if ac_fn_c_try_compile "$LINENO"; then :
12218 xorg_cv_cc_flag_unknown_warning_option=yes
12220 xorg_cv_cc_flag_unknown_warning_option=no
12222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12225 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12226 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12227 CFLAGS="$xorg_testset_save_CFLAGS"
12230 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12236 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12237 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12238 $as_echo_n "(cached) " >&6
12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12241 /* end confdefs.h. */
12244 if ac_fn_c_try_compile "$LINENO"; then :
12245 xorg_cv_cc_flag_unused_command_line_argument=yes
12247 xorg_cv_cc_flag_unused_command_line_argument=no
12249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12252 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12253 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12254 CFLAGS="$xorg_testset_save_CFLAGS"
12259 if test $found = "no" ; then
12260 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12264 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12268 CFLAGS="$CFLAGS -Wformat=2"
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12271 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12272 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
12273 if eval \${$cacheid+:} false; then :
12274 $as_echo_n "(cached) " >&6
12276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h. */
12287 if ac_fn_c_try_link "$LINENO"; then :
12292 rm -f core conftest.err conftest.$ac_objext \
12293 conftest$ac_exeext conftest.$ac_ext
12297 CFLAGS="$xorg_testset_save_CFLAGS"
12299 eval supported=\$$cacheid
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12301 $as_echo "$supported" >&6; }
12302 if test "$supported" = "yes" ; then
12303 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12308 if test $found = "no" ; then
12309 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12313 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12317 CFLAGS="$CFLAGS -Wformat"
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12320 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12321 cacheid=xorg_cv_cc_flag__Wformat
12322 if eval \${$cacheid+:} false; then :
12323 $as_echo_n "(cached) " >&6
12325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12326 /* end confdefs.h. */
12336 if ac_fn_c_try_link "$LINENO"; then :
12341 rm -f core conftest.err conftest.$ac_objext \
12342 conftest$ac_exeext conftest.$ac_ext
12346 CFLAGS="$xorg_testset_save_CFLAGS"
12348 eval supported=\$$cacheid
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12350 $as_echo "$supported" >&6; }
12351 if test "$supported" = "yes" ; then
12352 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12373 xorg_testset_save_CFLAGS="$CFLAGS"
12375 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12378 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12379 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12380 $as_echo_n "(cached) " >&6
12382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12383 /* end confdefs.h. */
12386 if ac_fn_c_try_compile "$LINENO"; then :
12387 xorg_cv_cc_flag_unknown_warning_option=yes
12389 xorg_cv_cc_flag_unknown_warning_option=no
12391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12394 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12395 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12396 CFLAGS="$xorg_testset_save_CFLAGS"
12399 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12405 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12406 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12407 $as_echo_n "(cached) " >&6
12409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12410 /* end confdefs.h. */
12413 if ac_fn_c_try_compile "$LINENO"; then :
12414 xorg_cv_cc_flag_unused_command_line_argument=yes
12416 xorg_cv_cc_flag_unused_command_line_argument=no
12418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12421 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12422 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12423 CFLAGS="$xorg_testset_save_CFLAGS"
12428 if test $found = "no" ; then
12429 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12433 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12437 CFLAGS="$CFLAGS -Wstrict-prototypes"
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12440 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12441 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12442 if eval \${$cacheid+:} false; then :
12443 $as_echo_n "(cached) " >&6
12445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446 /* end confdefs.h. */
12456 if ac_fn_c_try_link "$LINENO"; then :
12461 rm -f core conftest.err conftest.$ac_objext \
12462 conftest$ac_exeext conftest.$ac_ext
12466 CFLAGS="$xorg_testset_save_CFLAGS"
12468 eval supported=\$$cacheid
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12470 $as_echo "$supported" >&6; }
12471 if test "$supported" = "yes" ; then
12472 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12491 xorg_testset_save_CFLAGS="$CFLAGS"
12493 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12496 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12497 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12498 $as_echo_n "(cached) " >&6
12500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12501 /* end confdefs.h. */
12504 if ac_fn_c_try_compile "$LINENO"; then :
12505 xorg_cv_cc_flag_unknown_warning_option=yes
12507 xorg_cv_cc_flag_unknown_warning_option=no
12509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12512 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12513 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12514 CFLAGS="$xorg_testset_save_CFLAGS"
12517 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12523 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12524 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12525 $as_echo_n "(cached) " >&6
12527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12528 /* end confdefs.h. */
12531 if ac_fn_c_try_compile "$LINENO"; then :
12532 xorg_cv_cc_flag_unused_command_line_argument=yes
12534 xorg_cv_cc_flag_unused_command_line_argument=no
12536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12539 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12540 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12541 CFLAGS="$xorg_testset_save_CFLAGS"
12546 if test $found = "no" ; then
12547 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12551 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12555 CFLAGS="$CFLAGS -Wmissing-prototypes"
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12558 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12559 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12560 if eval \${$cacheid+:} false; then :
12561 $as_echo_n "(cached) " >&6
12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564 /* end confdefs.h. */
12574 if ac_fn_c_try_link "$LINENO"; then :
12579 rm -f core conftest.err conftest.$ac_objext \
12580 conftest$ac_exeext conftest.$ac_ext
12584 CFLAGS="$xorg_testset_save_CFLAGS"
12586 eval supported=\$$cacheid
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12588 $as_echo "$supported" >&6; }
12589 if test "$supported" = "yes" ; then
12590 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12609 xorg_testset_save_CFLAGS="$CFLAGS"
12611 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12614 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12615 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12616 $as_echo_n "(cached) " >&6
12618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12619 /* end confdefs.h. */
12622 if ac_fn_c_try_compile "$LINENO"; then :
12623 xorg_cv_cc_flag_unknown_warning_option=yes
12625 xorg_cv_cc_flag_unknown_warning_option=no
12627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12630 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12631 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12632 CFLAGS="$xorg_testset_save_CFLAGS"
12635 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12641 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12642 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12643 $as_echo_n "(cached) " >&6
12645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h. */
12649 if ac_fn_c_try_compile "$LINENO"; then :
12650 xorg_cv_cc_flag_unused_command_line_argument=yes
12652 xorg_cv_cc_flag_unused_command_line_argument=no
12654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12657 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12658 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12659 CFLAGS="$xorg_testset_save_CFLAGS"
12664 if test $found = "no" ; then
12665 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12669 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12673 CFLAGS="$CFLAGS -Wnested-externs"
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12676 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12677 cacheid=xorg_cv_cc_flag__Wnested_externs
12678 if eval \${$cacheid+:} false; then :
12679 $as_echo_n "(cached) " >&6
12681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h. */
12692 if ac_fn_c_try_link "$LINENO"; then :
12697 rm -f core conftest.err conftest.$ac_objext \
12698 conftest$ac_exeext conftest.$ac_ext
12702 CFLAGS="$xorg_testset_save_CFLAGS"
12704 eval supported=\$$cacheid
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12706 $as_echo "$supported" >&6; }
12707 if test "$supported" = "yes" ; then
12708 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12727 xorg_testset_save_CFLAGS="$CFLAGS"
12729 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12732 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12733 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12734 $as_echo_n "(cached) " >&6
12736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12737 /* end confdefs.h. */
12740 if ac_fn_c_try_compile "$LINENO"; then :
12741 xorg_cv_cc_flag_unknown_warning_option=yes
12743 xorg_cv_cc_flag_unknown_warning_option=no
12745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12748 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12749 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12750 CFLAGS="$xorg_testset_save_CFLAGS"
12753 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12759 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12760 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12761 $as_echo_n "(cached) " >&6
12763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12764 /* end confdefs.h. */
12767 if ac_fn_c_try_compile "$LINENO"; then :
12768 xorg_cv_cc_flag_unused_command_line_argument=yes
12770 xorg_cv_cc_flag_unused_command_line_argument=no
12772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12775 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12776 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12777 CFLAGS="$xorg_testset_save_CFLAGS"
12782 if test $found = "no" ; then
12783 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12787 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12791 CFLAGS="$CFLAGS -Wbad-function-cast"
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12794 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12795 cacheid=xorg_cv_cc_flag__Wbad_function_cast
12796 if eval \${$cacheid+:} false; then :
12797 $as_echo_n "(cached) " >&6
12799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12800 /* end confdefs.h. */
12810 if ac_fn_c_try_link "$LINENO"; then :
12815 rm -f core conftest.err conftest.$ac_objext \
12816 conftest$ac_exeext conftest.$ac_ext
12820 CFLAGS="$xorg_testset_save_CFLAGS"
12822 eval supported=\$$cacheid
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12824 $as_echo "$supported" >&6; }
12825 if test "$supported" = "yes" ; then
12826 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12845 xorg_testset_save_CFLAGS="$CFLAGS"
12847 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12850 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12851 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12852 $as_echo_n "(cached) " >&6
12854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12855 /* end confdefs.h. */
12858 if ac_fn_c_try_compile "$LINENO"; then :
12859 xorg_cv_cc_flag_unknown_warning_option=yes
12861 xorg_cv_cc_flag_unknown_warning_option=no
12863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12866 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12867 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12868 CFLAGS="$xorg_testset_save_CFLAGS"
12871 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12877 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12878 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12879 $as_echo_n "(cached) " >&6
12881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12882 /* end confdefs.h. */
12885 if ac_fn_c_try_compile "$LINENO"; then :
12886 xorg_cv_cc_flag_unused_command_line_argument=yes
12888 xorg_cv_cc_flag_unused_command_line_argument=no
12890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12893 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12894 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12895 CFLAGS="$xorg_testset_save_CFLAGS"
12900 if test $found = "no" ; then
12901 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12905 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12909 CFLAGS="$CFLAGS -Wold-style-definition"
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12912 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12913 cacheid=xorg_cv_cc_flag__Wold_style_definition
12914 if eval \${$cacheid+:} false; then :
12915 $as_echo_n "(cached) " >&6
12917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12918 /* end confdefs.h. */
12928 if ac_fn_c_try_link "$LINENO"; then :
12933 rm -f core conftest.err conftest.$ac_objext \
12934 conftest$ac_exeext conftest.$ac_ext
12938 CFLAGS="$xorg_testset_save_CFLAGS"
12940 eval supported=\$$cacheid
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12942 $as_echo "$supported" >&6; }
12943 if test "$supported" = "yes" ; then
12944 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12963 xorg_testset_save_CFLAGS="$CFLAGS"
12965 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12968 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12969 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12970 $as_echo_n "(cached) " >&6
12972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12973 /* end confdefs.h. */
12976 if ac_fn_c_try_compile "$LINENO"; then :
12977 xorg_cv_cc_flag_unknown_warning_option=yes
12979 xorg_cv_cc_flag_unknown_warning_option=no
12981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12984 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12985 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12986 CFLAGS="$xorg_testset_save_CFLAGS"
12989 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12995 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12996 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12997 $as_echo_n "(cached) " >&6
12999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000 /* end confdefs.h. */
13003 if ac_fn_c_try_compile "$LINENO"; then :
13004 xorg_cv_cc_flag_unused_command_line_argument=yes
13006 xorg_cv_cc_flag_unused_command_line_argument=no
13008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13011 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13013 CFLAGS="$xorg_testset_save_CFLAGS"
13018 if test $found = "no" ; then
13019 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13023 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13027 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13030 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13031 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13032 if eval \${$cacheid+:} false; then :
13033 $as_echo_n "(cached) " >&6
13035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13036 /* end confdefs.h. */
13046 if ac_fn_c_try_link "$LINENO"; then :
13051 rm -f core conftest.err conftest.$ac_objext \
13052 conftest$ac_exeext conftest.$ac_ext
13056 CFLAGS="$xorg_testset_save_CFLAGS"
13058 eval supported=\$$cacheid
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13060 $as_echo "$supported" >&6; }
13061 if test "$supported" = "yes" ; then
13062 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13071 # This chunk adds additional warnings that could catch undesired effects.
13085 xorg_testset_save_CFLAGS="$CFLAGS"
13087 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13090 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13091 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13092 $as_echo_n "(cached) " >&6
13094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13095 /* end confdefs.h. */
13098 if ac_fn_c_try_compile "$LINENO"; then :
13099 xorg_cv_cc_flag_unknown_warning_option=yes
13101 xorg_cv_cc_flag_unknown_warning_option=no
13103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13106 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13107 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13108 CFLAGS="$xorg_testset_save_CFLAGS"
13111 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13117 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13118 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13119 $as_echo_n "(cached) " >&6
13121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13122 /* end confdefs.h. */
13125 if ac_fn_c_try_compile "$LINENO"; then :
13126 xorg_cv_cc_flag_unused_command_line_argument=yes
13128 xorg_cv_cc_flag_unused_command_line_argument=no
13130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13133 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13134 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13135 CFLAGS="$xorg_testset_save_CFLAGS"
13140 if test $found = "no" ; then
13141 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13145 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13149 CFLAGS="$CFLAGS -Wunused"
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13152 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13153 cacheid=xorg_cv_cc_flag__Wunused
13154 if eval \${$cacheid+:} false; then :
13155 $as_echo_n "(cached) " >&6
13157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13158 /* end confdefs.h. */
13168 if ac_fn_c_try_link "$LINENO"; then :
13173 rm -f core conftest.err conftest.$ac_objext \
13174 conftest$ac_exeext conftest.$ac_ext
13178 CFLAGS="$xorg_testset_save_CFLAGS"
13180 eval supported=\$$cacheid
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13182 $as_echo "$supported" >&6; }
13183 if test "$supported" = "yes" ; then
13184 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13203 xorg_testset_save_CFLAGS="$CFLAGS"
13205 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13208 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13209 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13210 $as_echo_n "(cached) " >&6
13212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213 /* end confdefs.h. */
13216 if ac_fn_c_try_compile "$LINENO"; then :
13217 xorg_cv_cc_flag_unknown_warning_option=yes
13219 xorg_cv_cc_flag_unknown_warning_option=no
13221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13224 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13225 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13226 CFLAGS="$xorg_testset_save_CFLAGS"
13229 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13235 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13236 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13237 $as_echo_n "(cached) " >&6
13239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13240 /* end confdefs.h. */
13243 if ac_fn_c_try_compile "$LINENO"; then :
13244 xorg_cv_cc_flag_unused_command_line_argument=yes
13246 xorg_cv_cc_flag_unused_command_line_argument=no
13248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13251 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13252 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13253 CFLAGS="$xorg_testset_save_CFLAGS"
13258 if test $found = "no" ; then
13259 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13263 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13267 CFLAGS="$CFLAGS -Wuninitialized"
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13270 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13271 cacheid=xorg_cv_cc_flag__Wuninitialized
13272 if eval \${$cacheid+:} false; then :
13273 $as_echo_n "(cached) " >&6
13275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13276 /* end confdefs.h. */
13286 if ac_fn_c_try_link "$LINENO"; then :
13291 rm -f core conftest.err conftest.$ac_objext \
13292 conftest$ac_exeext conftest.$ac_ext
13296 CFLAGS="$xorg_testset_save_CFLAGS"
13298 eval supported=\$$cacheid
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13300 $as_echo "$supported" >&6; }
13301 if test "$supported" = "yes" ; then
13302 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13321 xorg_testset_save_CFLAGS="$CFLAGS"
13323 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13326 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13327 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13328 $as_echo_n "(cached) " >&6
13330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13331 /* end confdefs.h. */
13334 if ac_fn_c_try_compile "$LINENO"; then :
13335 xorg_cv_cc_flag_unknown_warning_option=yes
13337 xorg_cv_cc_flag_unknown_warning_option=no
13339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13342 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13343 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13344 CFLAGS="$xorg_testset_save_CFLAGS"
13347 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13353 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13354 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13355 $as_echo_n "(cached) " >&6
13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h. */
13361 if ac_fn_c_try_compile "$LINENO"; then :
13362 xorg_cv_cc_flag_unused_command_line_argument=yes
13364 xorg_cv_cc_flag_unused_command_line_argument=no
13366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13369 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13370 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13371 CFLAGS="$xorg_testset_save_CFLAGS"
13376 if test $found = "no" ; then
13377 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13381 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13385 CFLAGS="$CFLAGS -Wshadow"
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13388 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13389 cacheid=xorg_cv_cc_flag__Wshadow
13390 if eval \${$cacheid+:} false; then :
13391 $as_echo_n "(cached) " >&6
13393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394 /* end confdefs.h. */
13404 if ac_fn_c_try_link "$LINENO"; then :
13409 rm -f core conftest.err conftest.$ac_objext \
13410 conftest$ac_exeext conftest.$ac_ext
13414 CFLAGS="$xorg_testset_save_CFLAGS"
13416 eval supported=\$$cacheid
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13418 $as_echo "$supported" >&6; }
13419 if test "$supported" = "yes" ; then
13420 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13439 xorg_testset_save_CFLAGS="$CFLAGS"
13441 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13444 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13445 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13446 $as_echo_n "(cached) " >&6
13448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13449 /* end confdefs.h. */
13452 if ac_fn_c_try_compile "$LINENO"; then :
13453 xorg_cv_cc_flag_unknown_warning_option=yes
13455 xorg_cv_cc_flag_unknown_warning_option=no
13457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13460 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13462 CFLAGS="$xorg_testset_save_CFLAGS"
13465 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13471 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13472 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13473 $as_echo_n "(cached) " >&6
13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h. */
13479 if ac_fn_c_try_compile "$LINENO"; then :
13480 xorg_cv_cc_flag_unused_command_line_argument=yes
13482 xorg_cv_cc_flag_unused_command_line_argument=no
13484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13487 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13489 CFLAGS="$xorg_testset_save_CFLAGS"
13494 if test $found = "no" ; then
13495 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13499 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13503 CFLAGS="$CFLAGS -Wcast-qual"
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13506 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13507 cacheid=xorg_cv_cc_flag__Wcast_qual
13508 if eval \${$cacheid+:} false; then :
13509 $as_echo_n "(cached) " >&6
13511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13512 /* end confdefs.h. */
13522 if ac_fn_c_try_link "$LINENO"; then :
13527 rm -f core conftest.err conftest.$ac_objext \
13528 conftest$ac_exeext conftest.$ac_ext
13532 CFLAGS="$xorg_testset_save_CFLAGS"
13534 eval supported=\$$cacheid
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13536 $as_echo "$supported" >&6; }
13537 if test "$supported" = "yes" ; then
13538 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13557 xorg_testset_save_CFLAGS="$CFLAGS"
13559 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13562 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13563 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13564 $as_echo_n "(cached) " >&6
13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h. */
13570 if ac_fn_c_try_compile "$LINENO"; then :
13571 xorg_cv_cc_flag_unknown_warning_option=yes
13573 xorg_cv_cc_flag_unknown_warning_option=no
13575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13578 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13580 CFLAGS="$xorg_testset_save_CFLAGS"
13583 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13589 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13590 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13591 $as_echo_n "(cached) " >&6
13593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13594 /* end confdefs.h. */
13597 if ac_fn_c_try_compile "$LINENO"; then :
13598 xorg_cv_cc_flag_unused_command_line_argument=yes
13600 xorg_cv_cc_flag_unused_command_line_argument=no
13602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13605 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13607 CFLAGS="$xorg_testset_save_CFLAGS"
13612 if test $found = "no" ; then
13613 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13617 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13621 CFLAGS="$CFLAGS -Wmissing-noreturn"
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13624 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13625 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13626 if eval \${$cacheid+:} false; then :
13627 $as_echo_n "(cached) " >&6
13629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630 /* end confdefs.h. */
13640 if ac_fn_c_try_link "$LINENO"; then :
13645 rm -f core conftest.err conftest.$ac_objext \
13646 conftest$ac_exeext conftest.$ac_ext
13650 CFLAGS="$xorg_testset_save_CFLAGS"
13652 eval supported=\$$cacheid
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13654 $as_echo "$supported" >&6; }
13655 if test "$supported" = "yes" ; then
13656 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13675 xorg_testset_save_CFLAGS="$CFLAGS"
13677 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13680 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13681 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13682 $as_echo_n "(cached) " >&6
13684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13685 /* end confdefs.h. */
13688 if ac_fn_c_try_compile "$LINENO"; then :
13689 xorg_cv_cc_flag_unknown_warning_option=yes
13691 xorg_cv_cc_flag_unknown_warning_option=no
13693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13696 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13698 CFLAGS="$xorg_testset_save_CFLAGS"
13701 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13707 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13708 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13709 $as_echo_n "(cached) " >&6
13711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13712 /* end confdefs.h. */
13715 if ac_fn_c_try_compile "$LINENO"; then :
13716 xorg_cv_cc_flag_unused_command_line_argument=yes
13718 xorg_cv_cc_flag_unused_command_line_argument=no
13720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13723 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13725 CFLAGS="$xorg_testset_save_CFLAGS"
13730 if test $found = "no" ; then
13731 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13735 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13739 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13742 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13743 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13744 if eval \${$cacheid+:} false; then :
13745 $as_echo_n "(cached) " >&6
13747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13748 /* end confdefs.h. */
13758 if ac_fn_c_try_link "$LINENO"; then :
13763 rm -f core conftest.err conftest.$ac_objext \
13764 conftest$ac_exeext conftest.$ac_ext
13768 CFLAGS="$xorg_testset_save_CFLAGS"
13770 eval supported=\$$cacheid
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13772 $as_echo "$supported" >&6; }
13773 if test "$supported" = "yes" ; then
13774 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13793 xorg_testset_save_CFLAGS="$CFLAGS"
13795 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13798 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13799 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13800 $as_echo_n "(cached) " >&6
13802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h. */
13806 if ac_fn_c_try_compile "$LINENO"; then :
13807 xorg_cv_cc_flag_unknown_warning_option=yes
13809 xorg_cv_cc_flag_unknown_warning_option=no
13811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13814 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13816 CFLAGS="$xorg_testset_save_CFLAGS"
13819 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13825 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13826 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13827 $as_echo_n "(cached) " >&6
13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h. */
13833 if ac_fn_c_try_compile "$LINENO"; then :
13834 xorg_cv_cc_flag_unused_command_line_argument=yes
13836 xorg_cv_cc_flag_unused_command_line_argument=no
13838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13841 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13842 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13843 CFLAGS="$xorg_testset_save_CFLAGS"
13848 if test $found = "no" ; then
13849 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13853 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13857 CFLAGS="$CFLAGS -Wredundant-decls"
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13860 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13861 cacheid=xorg_cv_cc_flag__Wredundant_decls
13862 if eval \${$cacheid+:} false; then :
13863 $as_echo_n "(cached) " >&6
13865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13866 /* end confdefs.h. */
13876 if ac_fn_c_try_link "$LINENO"; then :
13881 rm -f core conftest.err conftest.$ac_objext \
13882 conftest$ac_exeext conftest.$ac_ext
13886 CFLAGS="$xorg_testset_save_CFLAGS"
13888 eval supported=\$$cacheid
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13890 $as_echo "$supported" >&6; }
13891 if test "$supported" = "yes" ; then
13892 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13899 # These are currently disabled because they are noisy. They will be enabled
13900 # in the future once the codebase is sufficiently modernized to silence
13901 # them. For now, I don't want them to drown out the other warnings.
13902 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13903 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13904 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13906 # Turn some warnings into errors, so we don't accidently get successful builds
13907 # when there are problems that should be fixed.
13909 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13923 xorg_testset_save_CFLAGS="$CFLAGS"
13925 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13928 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13929 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13930 $as_echo_n "(cached) " >&6
13932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933 /* end confdefs.h. */
13936 if ac_fn_c_try_compile "$LINENO"; then :
13937 xorg_cv_cc_flag_unknown_warning_option=yes
13939 xorg_cv_cc_flag_unknown_warning_option=no
13941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13944 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13945 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13946 CFLAGS="$xorg_testset_save_CFLAGS"
13949 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13955 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13956 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13957 $as_echo_n "(cached) " >&6
13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960 /* end confdefs.h. */
13963 if ac_fn_c_try_compile "$LINENO"; then :
13964 xorg_cv_cc_flag_unused_command_line_argument=yes
13966 xorg_cv_cc_flag_unused_command_line_argument=no
13968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13971 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13973 CFLAGS="$xorg_testset_save_CFLAGS"
13978 if test $found = "no" ; then
13979 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13983 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13987 CFLAGS="$CFLAGS -Werror=implicit"
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13990 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13991 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
13992 if eval \${$cacheid+:} false; then :
13993 $as_echo_n "(cached) " >&6
13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996 /* end confdefs.h. */
14006 if ac_fn_c_try_link "$LINENO"; then :
14011 rm -f core conftest.err conftest.$ac_objext \
14012 conftest$ac_exeext conftest.$ac_ext
14016 CFLAGS="$xorg_testset_save_CFLAGS"
14018 eval supported=\$$cacheid
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14020 $as_echo "$supported" >&6; }
14021 if test "$supported" = "yes" ; then
14022 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14027 if test $found = "no" ; then
14028 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14032 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14036 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14039 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14040 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
14041 if eval \${$cacheid+:} false; then :
14042 $as_echo_n "(cached) " >&6
14044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14045 /* end confdefs.h. */
14055 if ac_fn_c_try_link "$LINENO"; then :
14060 rm -f core conftest.err conftest.$ac_objext \
14061 conftest$ac_exeext conftest.$ac_ext
14065 CFLAGS="$xorg_testset_save_CFLAGS"
14067 eval supported=\$$cacheid
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14069 $as_echo "$supported" >&6; }
14070 if test "$supported" = "yes" ; then
14071 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14090 xorg_testset_save_CFLAGS="$CFLAGS"
14092 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14095 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14096 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14097 $as_echo_n "(cached) " >&6
14099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14100 /* end confdefs.h. */
14103 if ac_fn_c_try_compile "$LINENO"; then :
14104 xorg_cv_cc_flag_unknown_warning_option=yes
14106 xorg_cv_cc_flag_unknown_warning_option=no
14108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14111 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14113 CFLAGS="$xorg_testset_save_CFLAGS"
14116 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14122 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14123 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14124 $as_echo_n "(cached) " >&6
14126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14127 /* end confdefs.h. */
14130 if ac_fn_c_try_compile "$LINENO"; then :
14131 xorg_cv_cc_flag_unused_command_line_argument=yes
14133 xorg_cv_cc_flag_unused_command_line_argument=no
14135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14138 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14140 CFLAGS="$xorg_testset_save_CFLAGS"
14145 if test $found = "no" ; then
14146 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14150 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14154 CFLAGS="$CFLAGS -Werror=nonnull"
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14157 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14158 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
14159 if eval \${$cacheid+:} false; then :
14160 $as_echo_n "(cached) " >&6
14162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14163 /* end confdefs.h. */
14173 if ac_fn_c_try_link "$LINENO"; then :
14178 rm -f core conftest.err conftest.$ac_objext \
14179 conftest$ac_exeext conftest.$ac_ext
14183 CFLAGS="$xorg_testset_save_CFLAGS"
14185 eval supported=\$$cacheid
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14187 $as_echo "$supported" >&6; }
14188 if test "$supported" = "yes" ; then
14189 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14208 xorg_testset_save_CFLAGS="$CFLAGS"
14210 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14213 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14214 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14215 $as_echo_n "(cached) " >&6
14217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14218 /* end confdefs.h. */
14221 if ac_fn_c_try_compile "$LINENO"; then :
14222 xorg_cv_cc_flag_unknown_warning_option=yes
14224 xorg_cv_cc_flag_unknown_warning_option=no
14226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14229 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14230 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14231 CFLAGS="$xorg_testset_save_CFLAGS"
14234 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14240 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14241 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14242 $as_echo_n "(cached) " >&6
14244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14245 /* end confdefs.h. */
14248 if ac_fn_c_try_compile "$LINENO"; then :
14249 xorg_cv_cc_flag_unused_command_line_argument=yes
14251 xorg_cv_cc_flag_unused_command_line_argument=no
14253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14256 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14257 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14258 CFLAGS="$xorg_testset_save_CFLAGS"
14263 if test $found = "no" ; then
14264 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14268 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14272 CFLAGS="$CFLAGS -Werror=init-self"
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14275 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14276 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
14277 if eval \${$cacheid+:} false; then :
14278 $as_echo_n "(cached) " >&6
14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h. */
14291 if ac_fn_c_try_link "$LINENO"; then :
14296 rm -f core conftest.err conftest.$ac_objext \
14297 conftest$ac_exeext conftest.$ac_ext
14301 CFLAGS="$xorg_testset_save_CFLAGS"
14303 eval supported=\$$cacheid
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14305 $as_echo "$supported" >&6; }
14306 if test "$supported" = "yes" ; then
14307 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14326 xorg_testset_save_CFLAGS="$CFLAGS"
14328 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14331 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14332 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14333 $as_echo_n "(cached) " >&6
14335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14336 /* end confdefs.h. */
14339 if ac_fn_c_try_compile "$LINENO"; then :
14340 xorg_cv_cc_flag_unknown_warning_option=yes
14342 xorg_cv_cc_flag_unknown_warning_option=no
14344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14347 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14348 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14349 CFLAGS="$xorg_testset_save_CFLAGS"
14352 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14358 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14359 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14360 $as_echo_n "(cached) " >&6
14362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14363 /* end confdefs.h. */
14366 if ac_fn_c_try_compile "$LINENO"; then :
14367 xorg_cv_cc_flag_unused_command_line_argument=yes
14369 xorg_cv_cc_flag_unused_command_line_argument=no
14371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14374 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14376 CFLAGS="$xorg_testset_save_CFLAGS"
14381 if test $found = "no" ; then
14382 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14386 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14390 CFLAGS="$CFLAGS -Werror=main"
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14393 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14394 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
14395 if eval \${$cacheid+:} false; then :
14396 $as_echo_n "(cached) " >&6
14398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14399 /* end confdefs.h. */
14409 if ac_fn_c_try_link "$LINENO"; then :
14414 rm -f core conftest.err conftest.$ac_objext \
14415 conftest$ac_exeext conftest.$ac_ext
14419 CFLAGS="$xorg_testset_save_CFLAGS"
14421 eval supported=\$$cacheid
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14423 $as_echo "$supported" >&6; }
14424 if test "$supported" = "yes" ; then
14425 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14444 xorg_testset_save_CFLAGS="$CFLAGS"
14446 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14449 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14450 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14451 $as_echo_n "(cached) " >&6
14453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454 /* end confdefs.h. */
14457 if ac_fn_c_try_compile "$LINENO"; then :
14458 xorg_cv_cc_flag_unknown_warning_option=yes
14460 xorg_cv_cc_flag_unknown_warning_option=no
14462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14465 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14467 CFLAGS="$xorg_testset_save_CFLAGS"
14470 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14476 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14477 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14478 $as_echo_n "(cached) " >&6
14480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14481 /* end confdefs.h. */
14484 if ac_fn_c_try_compile "$LINENO"; then :
14485 xorg_cv_cc_flag_unused_command_line_argument=yes
14487 xorg_cv_cc_flag_unused_command_line_argument=no
14489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14492 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14494 CFLAGS="$xorg_testset_save_CFLAGS"
14499 if test $found = "no" ; then
14500 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14504 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14508 CFLAGS="$CFLAGS -Werror=missing-braces"
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14511 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14512 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
14513 if eval \${$cacheid+:} false; then :
14514 $as_echo_n "(cached) " >&6
14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517 /* end confdefs.h. */
14527 if ac_fn_c_try_link "$LINENO"; then :
14532 rm -f core conftest.err conftest.$ac_objext \
14533 conftest$ac_exeext conftest.$ac_ext
14537 CFLAGS="$xorg_testset_save_CFLAGS"
14539 eval supported=\$$cacheid
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14541 $as_echo "$supported" >&6; }
14542 if test "$supported" = "yes" ; then
14543 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14562 xorg_testset_save_CFLAGS="$CFLAGS"
14564 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14567 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14568 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14569 $as_echo_n "(cached) " >&6
14571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14572 /* end confdefs.h. */
14575 if ac_fn_c_try_compile "$LINENO"; then :
14576 xorg_cv_cc_flag_unknown_warning_option=yes
14578 xorg_cv_cc_flag_unknown_warning_option=no
14580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14583 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14585 CFLAGS="$xorg_testset_save_CFLAGS"
14588 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14594 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14595 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14596 $as_echo_n "(cached) " >&6
14598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14599 /* end confdefs.h. */
14602 if ac_fn_c_try_compile "$LINENO"; then :
14603 xorg_cv_cc_flag_unused_command_line_argument=yes
14605 xorg_cv_cc_flag_unused_command_line_argument=no
14607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14610 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14612 CFLAGS="$xorg_testset_save_CFLAGS"
14617 if test $found = "no" ; then
14618 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14622 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14626 CFLAGS="$CFLAGS -Werror=sequence-point"
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14629 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14630 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
14631 if eval \${$cacheid+:} false; then :
14632 $as_echo_n "(cached) " >&6
14634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14635 /* end confdefs.h. */
14645 if ac_fn_c_try_link "$LINENO"; then :
14650 rm -f core conftest.err conftest.$ac_objext \
14651 conftest$ac_exeext conftest.$ac_ext
14655 CFLAGS="$xorg_testset_save_CFLAGS"
14657 eval supported=\$$cacheid
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14659 $as_echo "$supported" >&6; }
14660 if test "$supported" = "yes" ; then
14661 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14680 xorg_testset_save_CFLAGS="$CFLAGS"
14682 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14685 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14686 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14687 $as_echo_n "(cached) " >&6
14689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14690 /* end confdefs.h. */
14693 if ac_fn_c_try_compile "$LINENO"; then :
14694 xorg_cv_cc_flag_unknown_warning_option=yes
14696 xorg_cv_cc_flag_unknown_warning_option=no
14698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14701 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14703 CFLAGS="$xorg_testset_save_CFLAGS"
14706 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14712 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14713 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14714 $as_echo_n "(cached) " >&6
14716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717 /* end confdefs.h. */
14720 if ac_fn_c_try_compile "$LINENO"; then :
14721 xorg_cv_cc_flag_unused_command_line_argument=yes
14723 xorg_cv_cc_flag_unused_command_line_argument=no
14725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14728 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14730 CFLAGS="$xorg_testset_save_CFLAGS"
14735 if test $found = "no" ; then
14736 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14740 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14744 CFLAGS="$CFLAGS -Werror=return-type"
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14747 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14748 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
14749 if eval \${$cacheid+:} false; then :
14750 $as_echo_n "(cached) " >&6
14752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14753 /* end confdefs.h. */
14763 if ac_fn_c_try_link "$LINENO"; then :
14768 rm -f core conftest.err conftest.$ac_objext \
14769 conftest$ac_exeext conftest.$ac_ext
14773 CFLAGS="$xorg_testset_save_CFLAGS"
14775 eval supported=\$$cacheid
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14777 $as_echo "$supported" >&6; }
14778 if test "$supported" = "yes" ; then
14779 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14784 if test $found = "no" ; then
14785 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14789 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14793 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14796 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14797 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
14798 if eval \${$cacheid+:} false; then :
14799 $as_echo_n "(cached) " >&6
14801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14802 /* end confdefs.h. */
14812 if ac_fn_c_try_link "$LINENO"; then :
14817 rm -f core conftest.err conftest.$ac_objext \
14818 conftest$ac_exeext conftest.$ac_ext
14822 CFLAGS="$xorg_testset_save_CFLAGS"
14824 eval supported=\$$cacheid
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14826 $as_echo "$supported" >&6; }
14827 if test "$supported" = "yes" ; then
14828 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14847 xorg_testset_save_CFLAGS="$CFLAGS"
14849 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14852 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14853 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14854 $as_echo_n "(cached) " >&6
14856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14857 /* end confdefs.h. */
14860 if ac_fn_c_try_compile "$LINENO"; then :
14861 xorg_cv_cc_flag_unknown_warning_option=yes
14863 xorg_cv_cc_flag_unknown_warning_option=no
14865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14868 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14870 CFLAGS="$xorg_testset_save_CFLAGS"
14873 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14879 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14880 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14881 $as_echo_n "(cached) " >&6
14883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14884 /* end confdefs.h. */
14887 if ac_fn_c_try_compile "$LINENO"; then :
14888 xorg_cv_cc_flag_unused_command_line_argument=yes
14890 xorg_cv_cc_flag_unused_command_line_argument=no
14892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14895 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14897 CFLAGS="$xorg_testset_save_CFLAGS"
14902 if test $found = "no" ; then
14903 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14907 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14911 CFLAGS="$CFLAGS -Werror=trigraphs"
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14914 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14915 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
14916 if eval \${$cacheid+:} false; then :
14917 $as_echo_n "(cached) " >&6
14919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14920 /* end confdefs.h. */
14930 if ac_fn_c_try_link "$LINENO"; then :
14935 rm -f core conftest.err conftest.$ac_objext \
14936 conftest$ac_exeext conftest.$ac_ext
14940 CFLAGS="$xorg_testset_save_CFLAGS"
14942 eval supported=\$$cacheid
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14944 $as_echo "$supported" >&6; }
14945 if test "$supported" = "yes" ; then
14946 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14965 xorg_testset_save_CFLAGS="$CFLAGS"
14967 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14970 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14971 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14972 $as_echo_n "(cached) " >&6
14974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14975 /* end confdefs.h. */
14978 if ac_fn_c_try_compile "$LINENO"; then :
14979 xorg_cv_cc_flag_unknown_warning_option=yes
14981 xorg_cv_cc_flag_unknown_warning_option=no
14983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14986 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14988 CFLAGS="$xorg_testset_save_CFLAGS"
14991 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14997 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14998 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14999 $as_echo_n "(cached) " >&6
15001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15002 /* end confdefs.h. */
15005 if ac_fn_c_try_compile "$LINENO"; then :
15006 xorg_cv_cc_flag_unused_command_line_argument=yes
15008 xorg_cv_cc_flag_unused_command_line_argument=no
15010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15013 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15015 CFLAGS="$xorg_testset_save_CFLAGS"
15020 if test $found = "no" ; then
15021 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15025 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15029 CFLAGS="$CFLAGS -Werror=array-bounds"
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15032 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15033 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
15034 if eval \${$cacheid+:} false; then :
15035 $as_echo_n "(cached) " >&6
15037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15038 /* end confdefs.h. */
15048 if ac_fn_c_try_link "$LINENO"; then :
15053 rm -f core conftest.err conftest.$ac_objext \
15054 conftest$ac_exeext conftest.$ac_ext
15058 CFLAGS="$xorg_testset_save_CFLAGS"
15060 eval supported=\$$cacheid
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15062 $as_echo "$supported" >&6; }
15063 if test "$supported" = "yes" ; then
15064 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15083 xorg_testset_save_CFLAGS="$CFLAGS"
15085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15088 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15089 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15090 $as_echo_n "(cached) " >&6
15092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15093 /* end confdefs.h. */
15096 if ac_fn_c_try_compile "$LINENO"; then :
15097 xorg_cv_cc_flag_unknown_warning_option=yes
15099 xorg_cv_cc_flag_unknown_warning_option=no
15101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15104 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15106 CFLAGS="$xorg_testset_save_CFLAGS"
15109 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15115 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15116 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15117 $as_echo_n "(cached) " >&6
15119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15120 /* end confdefs.h. */
15123 if ac_fn_c_try_compile "$LINENO"; then :
15124 xorg_cv_cc_flag_unused_command_line_argument=yes
15126 xorg_cv_cc_flag_unused_command_line_argument=no
15128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15131 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15133 CFLAGS="$xorg_testset_save_CFLAGS"
15138 if test $found = "no" ; then
15139 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15143 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15147 CFLAGS="$CFLAGS -Werror=write-strings"
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15150 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15151 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
15152 if eval \${$cacheid+:} false; then :
15153 $as_echo_n "(cached) " >&6
15155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15156 /* end confdefs.h. */
15166 if ac_fn_c_try_link "$LINENO"; then :
15171 rm -f core conftest.err conftest.$ac_objext \
15172 conftest$ac_exeext conftest.$ac_ext
15176 CFLAGS="$xorg_testset_save_CFLAGS"
15178 eval supported=\$$cacheid
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15180 $as_echo "$supported" >&6; }
15181 if test "$supported" = "yes" ; then
15182 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15201 xorg_testset_save_CFLAGS="$CFLAGS"
15203 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15206 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15207 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15208 $as_echo_n "(cached) " >&6
15210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15211 /* end confdefs.h. */
15214 if ac_fn_c_try_compile "$LINENO"; then :
15215 xorg_cv_cc_flag_unknown_warning_option=yes
15217 xorg_cv_cc_flag_unknown_warning_option=no
15219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15222 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15224 CFLAGS="$xorg_testset_save_CFLAGS"
15227 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15233 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15234 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15235 $as_echo_n "(cached) " >&6
15237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15238 /* end confdefs.h. */
15241 if ac_fn_c_try_compile "$LINENO"; then :
15242 xorg_cv_cc_flag_unused_command_line_argument=yes
15244 xorg_cv_cc_flag_unused_command_line_argument=no
15246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15249 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15251 CFLAGS="$xorg_testset_save_CFLAGS"
15256 if test $found = "no" ; then
15257 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15261 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15265 CFLAGS="$CFLAGS -Werror=address"
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15268 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15269 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
15270 if eval \${$cacheid+:} false; then :
15271 $as_echo_n "(cached) " >&6
15273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15274 /* end confdefs.h. */
15284 if ac_fn_c_try_link "$LINENO"; then :
15289 rm -f core conftest.err conftest.$ac_objext \
15290 conftest$ac_exeext conftest.$ac_ext
15294 CFLAGS="$xorg_testset_save_CFLAGS"
15296 eval supported=\$$cacheid
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15298 $as_echo "$supported" >&6; }
15299 if test "$supported" = "yes" ; then
15300 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15319 xorg_testset_save_CFLAGS="$CFLAGS"
15321 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15324 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15325 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15326 $as_echo_n "(cached) " >&6
15328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15329 /* end confdefs.h. */
15332 if ac_fn_c_try_compile "$LINENO"; then :
15333 xorg_cv_cc_flag_unknown_warning_option=yes
15335 xorg_cv_cc_flag_unknown_warning_option=no
15337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15340 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15342 CFLAGS="$xorg_testset_save_CFLAGS"
15345 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15351 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15352 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15353 $as_echo_n "(cached) " >&6
15355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15356 /* end confdefs.h. */
15359 if ac_fn_c_try_compile "$LINENO"; then :
15360 xorg_cv_cc_flag_unused_command_line_argument=yes
15362 xorg_cv_cc_flag_unused_command_line_argument=no
15364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15367 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15369 CFLAGS="$xorg_testset_save_CFLAGS"
15374 if test $found = "no" ; then
15375 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15379 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15383 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15386 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15387 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
15388 if eval \${$cacheid+:} false; then :
15389 $as_echo_n "(cached) " >&6
15391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15392 /* end confdefs.h. */
15402 if ac_fn_c_try_link "$LINENO"; then :
15407 rm -f core conftest.err conftest.$ac_objext \
15408 conftest$ac_exeext conftest.$ac_ext
15412 CFLAGS="$xorg_testset_save_CFLAGS"
15414 eval supported=\$$cacheid
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15416 $as_echo "$supported" >&6; }
15417 if test "$supported" = "yes" ; then
15418 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15423 if test $found = "no" ; then
15424 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15428 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15432 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15435 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15436 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
15437 if eval \${$cacheid+:} false; then :
15438 $as_echo_n "(cached) " >&6
15440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15441 /* end confdefs.h. */
15451 if ac_fn_c_try_link "$LINENO"; then :
15456 rm -f core conftest.err conftest.$ac_objext \
15457 conftest$ac_exeext conftest.$ac_ext
15461 CFLAGS="$xorg_testset_save_CFLAGS"
15463 eval supported=\$$cacheid
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15465 $as_echo "$supported" >&6; }
15466 if test "$supported" = "yes" ; then
15467 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15486 xorg_testset_save_CFLAGS="$CFLAGS"
15488 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15491 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15492 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15493 $as_echo_n "(cached) " >&6
15495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15496 /* end confdefs.h. */
15499 if ac_fn_c_try_compile "$LINENO"; then :
15500 xorg_cv_cc_flag_unknown_warning_option=yes
15502 xorg_cv_cc_flag_unknown_warning_option=no
15504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15507 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15509 CFLAGS="$xorg_testset_save_CFLAGS"
15512 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15518 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15519 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15520 $as_echo_n "(cached) " >&6
15522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15523 /* end confdefs.h. */
15526 if ac_fn_c_try_compile "$LINENO"; then :
15527 xorg_cv_cc_flag_unused_command_line_argument=yes
15529 xorg_cv_cc_flag_unused_command_line_argument=no
15531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15534 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15536 CFLAGS="$xorg_testset_save_CFLAGS"
15541 if test $found = "no" ; then
15542 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15546 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15550 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15553 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15554 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
15555 if eval \${$cacheid+:} false; then :
15556 $as_echo_n "(cached) " >&6
15558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15559 /* end confdefs.h. */
15569 if ac_fn_c_try_link "$LINENO"; then :
15574 rm -f core conftest.err conftest.$ac_objext \
15575 conftest$ac_exeext conftest.$ac_ext
15579 CFLAGS="$xorg_testset_save_CFLAGS"
15581 eval supported=\$$cacheid
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15583 $as_echo "$supported" >&6; }
15584 if test "$supported" = "yes" ; then
15585 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15590 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15592 { $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
15593 $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;}
15607 xorg_testset_save_CFLAGS="$CFLAGS"
15609 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15612 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15613 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15614 $as_echo_n "(cached) " >&6
15616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15617 /* end confdefs.h. */
15620 if ac_fn_c_try_compile "$LINENO"; then :
15621 xorg_cv_cc_flag_unknown_warning_option=yes
15623 xorg_cv_cc_flag_unknown_warning_option=no
15625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15628 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15629 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15630 CFLAGS="$xorg_testset_save_CFLAGS"
15633 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15639 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15640 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15641 $as_echo_n "(cached) " >&6
15643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15644 /* end confdefs.h. */
15647 if ac_fn_c_try_compile "$LINENO"; then :
15648 xorg_cv_cc_flag_unused_command_line_argument=yes
15650 xorg_cv_cc_flag_unused_command_line_argument=no
15652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15655 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15656 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15657 CFLAGS="$xorg_testset_save_CFLAGS"
15662 if test $found = "no" ; then
15663 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15667 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15671 CFLAGS="$CFLAGS -Wimplicit"
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15674 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15675 cacheid=xorg_cv_cc_flag__Wimplicit
15676 if eval \${$cacheid+:} false; then :
15677 $as_echo_n "(cached) " >&6
15679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15680 /* end confdefs.h. */
15690 if ac_fn_c_try_link "$LINENO"; then :
15695 rm -f core conftest.err conftest.$ac_objext \
15696 conftest$ac_exeext conftest.$ac_ext
15700 CFLAGS="$xorg_testset_save_CFLAGS"
15702 eval supported=\$$cacheid
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15704 $as_echo "$supported" >&6; }
15705 if test "$supported" = "yes" ; then
15706 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15725 xorg_testset_save_CFLAGS="$CFLAGS"
15727 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15730 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15731 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15732 $as_echo_n "(cached) " >&6
15734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15735 /* end confdefs.h. */
15738 if ac_fn_c_try_compile "$LINENO"; then :
15739 xorg_cv_cc_flag_unknown_warning_option=yes
15741 xorg_cv_cc_flag_unknown_warning_option=no
15743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15746 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15748 CFLAGS="$xorg_testset_save_CFLAGS"
15751 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15757 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15758 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15759 $as_echo_n "(cached) " >&6
15761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15762 /* end confdefs.h. */
15765 if ac_fn_c_try_compile "$LINENO"; then :
15766 xorg_cv_cc_flag_unused_command_line_argument=yes
15768 xorg_cv_cc_flag_unused_command_line_argument=no
15770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15773 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15775 CFLAGS="$xorg_testset_save_CFLAGS"
15780 if test $found = "no" ; then
15781 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15785 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15789 CFLAGS="$CFLAGS -Wnonnull"
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15792 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15793 cacheid=xorg_cv_cc_flag__Wnonnull
15794 if eval \${$cacheid+:} false; then :
15795 $as_echo_n "(cached) " >&6
15797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15798 /* end confdefs.h. */
15808 if ac_fn_c_try_link "$LINENO"; then :
15813 rm -f core conftest.err conftest.$ac_objext \
15814 conftest$ac_exeext conftest.$ac_ext
15818 CFLAGS="$xorg_testset_save_CFLAGS"
15820 eval supported=\$$cacheid
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15822 $as_echo "$supported" >&6; }
15823 if test "$supported" = "yes" ; then
15824 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15843 xorg_testset_save_CFLAGS="$CFLAGS"
15845 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15848 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15849 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15850 $as_echo_n "(cached) " >&6
15852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15853 /* end confdefs.h. */
15856 if ac_fn_c_try_compile "$LINENO"; then :
15857 xorg_cv_cc_flag_unknown_warning_option=yes
15859 xorg_cv_cc_flag_unknown_warning_option=no
15861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15864 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15866 CFLAGS="$xorg_testset_save_CFLAGS"
15869 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15875 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15876 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15877 $as_echo_n "(cached) " >&6
15879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15880 /* end confdefs.h. */
15883 if ac_fn_c_try_compile "$LINENO"; then :
15884 xorg_cv_cc_flag_unused_command_line_argument=yes
15886 xorg_cv_cc_flag_unused_command_line_argument=no
15888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15891 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15893 CFLAGS="$xorg_testset_save_CFLAGS"
15898 if test $found = "no" ; then
15899 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15903 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15907 CFLAGS="$CFLAGS -Winit-self"
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15910 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15911 cacheid=xorg_cv_cc_flag__Winit_self
15912 if eval \${$cacheid+:} false; then :
15913 $as_echo_n "(cached) " >&6
15915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15916 /* end confdefs.h. */
15926 if ac_fn_c_try_link "$LINENO"; then :
15931 rm -f core conftest.err conftest.$ac_objext \
15932 conftest$ac_exeext conftest.$ac_ext
15936 CFLAGS="$xorg_testset_save_CFLAGS"
15938 eval supported=\$$cacheid
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15940 $as_echo "$supported" >&6; }
15941 if test "$supported" = "yes" ; then
15942 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15961 xorg_testset_save_CFLAGS="$CFLAGS"
15963 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15966 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15967 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15968 $as_echo_n "(cached) " >&6
15970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15971 /* end confdefs.h. */
15974 if ac_fn_c_try_compile "$LINENO"; then :
15975 xorg_cv_cc_flag_unknown_warning_option=yes
15977 xorg_cv_cc_flag_unknown_warning_option=no
15979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15982 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15984 CFLAGS="$xorg_testset_save_CFLAGS"
15987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15993 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15994 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15995 $as_echo_n "(cached) " >&6
15997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15998 /* end confdefs.h. */
16001 if ac_fn_c_try_compile "$LINENO"; then :
16002 xorg_cv_cc_flag_unused_command_line_argument=yes
16004 xorg_cv_cc_flag_unused_command_line_argument=no
16006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16009 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16011 CFLAGS="$xorg_testset_save_CFLAGS"
16016 if test $found = "no" ; then
16017 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16021 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16025 CFLAGS="$CFLAGS -Wmain"
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16028 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16029 cacheid=xorg_cv_cc_flag__Wmain
16030 if eval \${$cacheid+:} false; then :
16031 $as_echo_n "(cached) " >&6
16033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16034 /* end confdefs.h. */
16044 if ac_fn_c_try_link "$LINENO"; then :
16049 rm -f core conftest.err conftest.$ac_objext \
16050 conftest$ac_exeext conftest.$ac_ext
16054 CFLAGS="$xorg_testset_save_CFLAGS"
16056 eval supported=\$$cacheid
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16058 $as_echo "$supported" >&6; }
16059 if test "$supported" = "yes" ; then
16060 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16079 xorg_testset_save_CFLAGS="$CFLAGS"
16081 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16084 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16085 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16086 $as_echo_n "(cached) " >&6
16088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16089 /* end confdefs.h. */
16092 if ac_fn_c_try_compile "$LINENO"; then :
16093 xorg_cv_cc_flag_unknown_warning_option=yes
16095 xorg_cv_cc_flag_unknown_warning_option=no
16097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16100 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16102 CFLAGS="$xorg_testset_save_CFLAGS"
16105 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16111 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16112 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16113 $as_echo_n "(cached) " >&6
16115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16116 /* end confdefs.h. */
16119 if ac_fn_c_try_compile "$LINENO"; then :
16120 xorg_cv_cc_flag_unused_command_line_argument=yes
16122 xorg_cv_cc_flag_unused_command_line_argument=no
16124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16127 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16129 CFLAGS="$xorg_testset_save_CFLAGS"
16134 if test $found = "no" ; then
16135 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16139 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16143 CFLAGS="$CFLAGS -Wmissing-braces"
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16146 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16147 cacheid=xorg_cv_cc_flag__Wmissing_braces
16148 if eval \${$cacheid+:} false; then :
16149 $as_echo_n "(cached) " >&6
16151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16152 /* end confdefs.h. */
16162 if ac_fn_c_try_link "$LINENO"; then :
16167 rm -f core conftest.err conftest.$ac_objext \
16168 conftest$ac_exeext conftest.$ac_ext
16172 CFLAGS="$xorg_testset_save_CFLAGS"
16174 eval supported=\$$cacheid
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16176 $as_echo "$supported" >&6; }
16177 if test "$supported" = "yes" ; then
16178 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16197 xorg_testset_save_CFLAGS="$CFLAGS"
16199 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16202 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16203 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16204 $as_echo_n "(cached) " >&6
16206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16207 /* end confdefs.h. */
16210 if ac_fn_c_try_compile "$LINENO"; then :
16211 xorg_cv_cc_flag_unknown_warning_option=yes
16213 xorg_cv_cc_flag_unknown_warning_option=no
16215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16218 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16220 CFLAGS="$xorg_testset_save_CFLAGS"
16223 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16229 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16230 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16231 $as_echo_n "(cached) " >&6
16233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16234 /* end confdefs.h. */
16237 if ac_fn_c_try_compile "$LINENO"; then :
16238 xorg_cv_cc_flag_unused_command_line_argument=yes
16240 xorg_cv_cc_flag_unused_command_line_argument=no
16242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16245 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16247 CFLAGS="$xorg_testset_save_CFLAGS"
16252 if test $found = "no" ; then
16253 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16257 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16261 CFLAGS="$CFLAGS -Wsequence-point"
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16264 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16265 cacheid=xorg_cv_cc_flag__Wsequence_point
16266 if eval \${$cacheid+:} false; then :
16267 $as_echo_n "(cached) " >&6
16269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16270 /* end confdefs.h. */
16280 if ac_fn_c_try_link "$LINENO"; then :
16285 rm -f core conftest.err conftest.$ac_objext \
16286 conftest$ac_exeext conftest.$ac_ext
16290 CFLAGS="$xorg_testset_save_CFLAGS"
16292 eval supported=\$$cacheid
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16294 $as_echo "$supported" >&6; }
16295 if test "$supported" = "yes" ; then
16296 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16315 xorg_testset_save_CFLAGS="$CFLAGS"
16317 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16320 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16321 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16322 $as_echo_n "(cached) " >&6
16324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16325 /* end confdefs.h. */
16328 if ac_fn_c_try_compile "$LINENO"; then :
16329 xorg_cv_cc_flag_unknown_warning_option=yes
16331 xorg_cv_cc_flag_unknown_warning_option=no
16333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16336 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16338 CFLAGS="$xorg_testset_save_CFLAGS"
16341 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16347 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16348 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16349 $as_echo_n "(cached) " >&6
16351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16352 /* end confdefs.h. */
16355 if ac_fn_c_try_compile "$LINENO"; then :
16356 xorg_cv_cc_flag_unused_command_line_argument=yes
16358 xorg_cv_cc_flag_unused_command_line_argument=no
16360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16363 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16365 CFLAGS="$xorg_testset_save_CFLAGS"
16370 if test $found = "no" ; then
16371 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16375 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16379 CFLAGS="$CFLAGS -Wreturn-type"
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16382 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16383 cacheid=xorg_cv_cc_flag__Wreturn_type
16384 if eval \${$cacheid+:} false; then :
16385 $as_echo_n "(cached) " >&6
16387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16388 /* end confdefs.h. */
16398 if ac_fn_c_try_link "$LINENO"; then :
16403 rm -f core conftest.err conftest.$ac_objext \
16404 conftest$ac_exeext conftest.$ac_ext
16408 CFLAGS="$xorg_testset_save_CFLAGS"
16410 eval supported=\$$cacheid
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16412 $as_echo "$supported" >&6; }
16413 if test "$supported" = "yes" ; then
16414 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16433 xorg_testset_save_CFLAGS="$CFLAGS"
16435 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16438 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16439 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16440 $as_echo_n "(cached) " >&6
16442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16443 /* end confdefs.h. */
16446 if ac_fn_c_try_compile "$LINENO"; then :
16447 xorg_cv_cc_flag_unknown_warning_option=yes
16449 xorg_cv_cc_flag_unknown_warning_option=no
16451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16454 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16456 CFLAGS="$xorg_testset_save_CFLAGS"
16459 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16465 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16466 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16467 $as_echo_n "(cached) " >&6
16469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16470 /* end confdefs.h. */
16473 if ac_fn_c_try_compile "$LINENO"; then :
16474 xorg_cv_cc_flag_unused_command_line_argument=yes
16476 xorg_cv_cc_flag_unused_command_line_argument=no
16478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16481 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16483 CFLAGS="$xorg_testset_save_CFLAGS"
16488 if test $found = "no" ; then
16489 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16493 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16497 CFLAGS="$CFLAGS -Wtrigraphs"
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16500 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16501 cacheid=xorg_cv_cc_flag__Wtrigraphs
16502 if eval \${$cacheid+:} false; then :
16503 $as_echo_n "(cached) " >&6
16505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16506 /* end confdefs.h. */
16516 if ac_fn_c_try_link "$LINENO"; then :
16521 rm -f core conftest.err conftest.$ac_objext \
16522 conftest$ac_exeext conftest.$ac_ext
16526 CFLAGS="$xorg_testset_save_CFLAGS"
16528 eval supported=\$$cacheid
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16530 $as_echo "$supported" >&6; }
16531 if test "$supported" = "yes" ; then
16532 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16551 xorg_testset_save_CFLAGS="$CFLAGS"
16553 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16556 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16557 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16558 $as_echo_n "(cached) " >&6
16560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16561 /* end confdefs.h. */
16564 if ac_fn_c_try_compile "$LINENO"; then :
16565 xorg_cv_cc_flag_unknown_warning_option=yes
16567 xorg_cv_cc_flag_unknown_warning_option=no
16569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16572 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16574 CFLAGS="$xorg_testset_save_CFLAGS"
16577 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16583 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16584 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16585 $as_echo_n "(cached) " >&6
16587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588 /* end confdefs.h. */
16591 if ac_fn_c_try_compile "$LINENO"; then :
16592 xorg_cv_cc_flag_unused_command_line_argument=yes
16594 xorg_cv_cc_flag_unused_command_line_argument=no
16596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16599 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16601 CFLAGS="$xorg_testset_save_CFLAGS"
16606 if test $found = "no" ; then
16607 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16611 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16615 CFLAGS="$CFLAGS -Warray-bounds"
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16618 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16619 cacheid=xorg_cv_cc_flag__Warray_bounds
16620 if eval \${$cacheid+:} false; then :
16621 $as_echo_n "(cached) " >&6
16623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16624 /* end confdefs.h. */
16634 if ac_fn_c_try_link "$LINENO"; then :
16639 rm -f core conftest.err conftest.$ac_objext \
16640 conftest$ac_exeext conftest.$ac_ext
16644 CFLAGS="$xorg_testset_save_CFLAGS"
16646 eval supported=\$$cacheid
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16648 $as_echo "$supported" >&6; }
16649 if test "$supported" = "yes" ; then
16650 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16669 xorg_testset_save_CFLAGS="$CFLAGS"
16671 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16674 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16675 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16676 $as_echo_n "(cached) " >&6
16678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16679 /* end confdefs.h. */
16682 if ac_fn_c_try_compile "$LINENO"; then :
16683 xorg_cv_cc_flag_unknown_warning_option=yes
16685 xorg_cv_cc_flag_unknown_warning_option=no
16687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16690 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16692 CFLAGS="$xorg_testset_save_CFLAGS"
16695 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16701 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16702 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16703 $as_echo_n "(cached) " >&6
16705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16706 /* end confdefs.h. */
16709 if ac_fn_c_try_compile "$LINENO"; then :
16710 xorg_cv_cc_flag_unused_command_line_argument=yes
16712 xorg_cv_cc_flag_unused_command_line_argument=no
16714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16717 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16719 CFLAGS="$xorg_testset_save_CFLAGS"
16724 if test $found = "no" ; then
16725 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16729 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16733 CFLAGS="$CFLAGS -Wwrite-strings"
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16736 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16737 cacheid=xorg_cv_cc_flag__Wwrite_strings
16738 if eval \${$cacheid+:} false; then :
16739 $as_echo_n "(cached) " >&6
16741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742 /* end confdefs.h. */
16752 if ac_fn_c_try_link "$LINENO"; then :
16757 rm -f core conftest.err conftest.$ac_objext \
16758 conftest$ac_exeext conftest.$ac_ext
16762 CFLAGS="$xorg_testset_save_CFLAGS"
16764 eval supported=\$$cacheid
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16766 $as_echo "$supported" >&6; }
16767 if test "$supported" = "yes" ; then
16768 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16787 xorg_testset_save_CFLAGS="$CFLAGS"
16789 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16792 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16793 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16794 $as_echo_n "(cached) " >&6
16796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16797 /* end confdefs.h. */
16800 if ac_fn_c_try_compile "$LINENO"; then :
16801 xorg_cv_cc_flag_unknown_warning_option=yes
16803 xorg_cv_cc_flag_unknown_warning_option=no
16805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16808 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16810 CFLAGS="$xorg_testset_save_CFLAGS"
16813 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16819 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16820 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16821 $as_echo_n "(cached) " >&6
16823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16824 /* end confdefs.h. */
16827 if ac_fn_c_try_compile "$LINENO"; then :
16828 xorg_cv_cc_flag_unused_command_line_argument=yes
16830 xorg_cv_cc_flag_unused_command_line_argument=no
16832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16835 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16837 CFLAGS="$xorg_testset_save_CFLAGS"
16842 if test $found = "no" ; then
16843 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16847 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16851 CFLAGS="$CFLAGS -Waddress"
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16854 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16855 cacheid=xorg_cv_cc_flag__Waddress
16856 if eval \${$cacheid+:} false; then :
16857 $as_echo_n "(cached) " >&6
16859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16860 /* end confdefs.h. */
16870 if ac_fn_c_try_link "$LINENO"; then :
16875 rm -f core conftest.err conftest.$ac_objext \
16876 conftest$ac_exeext conftest.$ac_ext
16880 CFLAGS="$xorg_testset_save_CFLAGS"
16882 eval supported=\$$cacheid
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16884 $as_echo "$supported" >&6; }
16885 if test "$supported" = "yes" ; then
16886 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16905 xorg_testset_save_CFLAGS="$CFLAGS"
16907 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16910 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16911 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16912 $as_echo_n "(cached) " >&6
16914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16915 /* end confdefs.h. */
16918 if ac_fn_c_try_compile "$LINENO"; then :
16919 xorg_cv_cc_flag_unknown_warning_option=yes
16921 xorg_cv_cc_flag_unknown_warning_option=no
16923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16926 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16928 CFLAGS="$xorg_testset_save_CFLAGS"
16931 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16937 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16938 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16939 $as_echo_n "(cached) " >&6
16941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16942 /* end confdefs.h. */
16945 if ac_fn_c_try_compile "$LINENO"; then :
16946 xorg_cv_cc_flag_unused_command_line_argument=yes
16948 xorg_cv_cc_flag_unused_command_line_argument=no
16950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16953 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16954 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16955 CFLAGS="$xorg_testset_save_CFLAGS"
16960 if test $found = "no" ; then
16961 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16965 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16969 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16972 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16973 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
16974 if eval \${$cacheid+:} false; then :
16975 $as_echo_n "(cached) " >&6
16977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16978 /* end confdefs.h. */
16988 if ac_fn_c_try_link "$LINENO"; then :
16993 rm -f core conftest.err conftest.$ac_objext \
16994 conftest$ac_exeext conftest.$ac_ext
16998 CFLAGS="$xorg_testset_save_CFLAGS"
17000 eval supported=\$$cacheid
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17002 $as_echo "$supported" >&6; }
17003 if test "$supported" = "yes" ; then
17004 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17023 xorg_testset_save_CFLAGS="$CFLAGS"
17025 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17028 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17029 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17030 $as_echo_n "(cached) " >&6
17032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033 /* end confdefs.h. */
17036 if ac_fn_c_try_compile "$LINENO"; then :
17037 xorg_cv_cc_flag_unknown_warning_option=yes
17039 xorg_cv_cc_flag_unknown_warning_option=no
17041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17044 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17046 CFLAGS="$xorg_testset_save_CFLAGS"
17049 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17055 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17056 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17057 $as_echo_n "(cached) " >&6
17059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17060 /* end confdefs.h. */
17063 if ac_fn_c_try_compile "$LINENO"; then :
17064 xorg_cv_cc_flag_unused_command_line_argument=yes
17066 xorg_cv_cc_flag_unused_command_line_argument=no
17068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17071 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17072 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17073 CFLAGS="$xorg_testset_save_CFLAGS"
17078 if test $found = "no" ; then
17079 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17083 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17087 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17090 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17091 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17092 if eval \${$cacheid+:} false; then :
17093 $as_echo_n "(cached) " >&6
17095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17096 /* end confdefs.h. */
17106 if ac_fn_c_try_link "$LINENO"; then :
17111 rm -f core conftest.err conftest.$ac_objext \
17112 conftest$ac_exeext conftest.$ac_ext
17116 CFLAGS="$xorg_testset_save_CFLAGS"
17118 eval supported=\$$cacheid
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17120 $as_echo "$supported" >&6; }
17121 if test "$supported" = "yes" ; then
17122 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17136 CWARNFLAGS="$BASE_CFLAGS"
17137 if test "x$GCC" = xyes ; then
17138 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17148 # Check whether --enable-strict-compilation was given.
17149 if test "${enable_strict_compilation+set}" = set; then :
17150 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17174 xorg_testset_save_CFLAGS="$CFLAGS"
17176 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17179 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17180 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17181 $as_echo_n "(cached) " >&6
17183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17184 /* end confdefs.h. */
17187 if ac_fn_c_try_compile "$LINENO"; then :
17188 xorg_cv_cc_flag_unknown_warning_option=yes
17190 xorg_cv_cc_flag_unknown_warning_option=no
17192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17195 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17197 CFLAGS="$xorg_testset_save_CFLAGS"
17200 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17206 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17207 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17208 $as_echo_n "(cached) " >&6
17210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17211 /* end confdefs.h. */
17214 if ac_fn_c_try_compile "$LINENO"; then :
17215 xorg_cv_cc_flag_unused_command_line_argument=yes
17217 xorg_cv_cc_flag_unused_command_line_argument=no
17219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17222 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17224 CFLAGS="$xorg_testset_save_CFLAGS"
17229 if test $found = "no" ; then
17230 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17234 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17238 CFLAGS="$CFLAGS -pedantic"
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17241 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17242 cacheid=xorg_cv_cc_flag__pedantic
17243 if eval \${$cacheid+:} false; then :
17244 $as_echo_n "(cached) " >&6
17246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17247 /* end confdefs.h. */
17257 if ac_fn_c_try_link "$LINENO"; then :
17262 rm -f core conftest.err conftest.$ac_objext \
17263 conftest$ac_exeext conftest.$ac_ext
17267 CFLAGS="$xorg_testset_save_CFLAGS"
17269 eval supported=\$$cacheid
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17271 $as_echo "$supported" >&6; }
17272 if test "$supported" = "yes" ; then
17273 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17292 xorg_testset_save_CFLAGS="$CFLAGS"
17294 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17297 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17298 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17299 $as_echo_n "(cached) " >&6
17301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17302 /* end confdefs.h. */
17305 if ac_fn_c_try_compile "$LINENO"; then :
17306 xorg_cv_cc_flag_unknown_warning_option=yes
17308 xorg_cv_cc_flag_unknown_warning_option=no
17310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17313 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17315 CFLAGS="$xorg_testset_save_CFLAGS"
17318 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17324 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17325 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17326 $as_echo_n "(cached) " >&6
17328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17329 /* end confdefs.h. */
17332 if ac_fn_c_try_compile "$LINENO"; then :
17333 xorg_cv_cc_flag_unused_command_line_argument=yes
17335 xorg_cv_cc_flag_unused_command_line_argument=no
17337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17340 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17342 CFLAGS="$xorg_testset_save_CFLAGS"
17347 if test $found = "no" ; then
17348 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17352 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17356 CFLAGS="$CFLAGS -Werror"
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17359 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17360 cacheid=xorg_cv_cc_flag__Werror
17361 if eval \${$cacheid+:} false; then :
17362 $as_echo_n "(cached) " >&6
17364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17365 /* end confdefs.h. */
17375 if ac_fn_c_try_link "$LINENO"; then :
17380 rm -f core conftest.err conftest.$ac_objext \
17381 conftest$ac_exeext conftest.$ac_ext
17385 CFLAGS="$xorg_testset_save_CFLAGS"
17387 eval supported=\$$cacheid
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17389 $as_echo "$supported" >&6; }
17390 if test "$supported" = "yes" ; then
17391 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17396 if test $found = "no" ; then
17397 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17401 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17405 CFLAGS="$CFLAGS -errwarn"
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17408 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17409 cacheid=xorg_cv_cc_flag__errwarn
17410 if eval \${$cacheid+:} false; then :
17411 $as_echo_n "(cached) " >&6
17413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17414 /* end confdefs.h. */
17424 if ac_fn_c_try_link "$LINENO"; then :
17429 rm -f core conftest.err conftest.$ac_objext \
17430 conftest$ac_exeext conftest.$ac_ext
17434 CFLAGS="$xorg_testset_save_CFLAGS"
17436 eval supported=\$$cacheid
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17438 $as_echo "$supported" >&6; }
17439 if test "$supported" = "yes" ; then
17440 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17447 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17448 # activate it with -Werror, so we add it here explicitly.
17462 xorg_testset_save_CFLAGS="$CFLAGS"
17464 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17467 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17468 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17469 $as_echo_n "(cached) " >&6
17471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17472 /* end confdefs.h. */
17475 if ac_fn_c_try_compile "$LINENO"; then :
17476 xorg_cv_cc_flag_unknown_warning_option=yes
17478 xorg_cv_cc_flag_unknown_warning_option=no
17480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17483 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17484 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17485 CFLAGS="$xorg_testset_save_CFLAGS"
17488 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17494 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17495 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17496 $as_echo_n "(cached) " >&6
17498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17499 /* end confdefs.h. */
17502 if ac_fn_c_try_compile "$LINENO"; then :
17503 xorg_cv_cc_flag_unused_command_line_argument=yes
17505 xorg_cv_cc_flag_unused_command_line_argument=no
17507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17510 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17511 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17512 CFLAGS="$xorg_testset_save_CFLAGS"
17517 if test $found = "no" ; then
17518 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17522 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17526 CFLAGS="$CFLAGS -Werror=attributes"
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17529 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17530 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
17531 if eval \${$cacheid+:} false; then :
17532 $as_echo_n "(cached) " >&6
17534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17535 /* end confdefs.h. */
17545 if ac_fn_c_try_link "$LINENO"; then :
17550 rm -f core conftest.err conftest.$ac_objext \
17551 conftest$ac_exeext conftest.$ac_ext
17555 CFLAGS="$xorg_testset_save_CFLAGS"
17557 eval supported=\$$cacheid
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17559 $as_echo "$supported" >&6; }
17560 if test "$supported" = "yes" ; then
17561 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17568 if test "x$STRICT_COMPILE" = "xyes"; then
17569 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17570 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17578 cat >>confdefs.h <<_ACEOF
17579 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17582 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17583 if test "x$PVM" = "x"; then
17587 cat >>confdefs.h <<_ACEOF
17588 #define PACKAGE_VERSION_MINOR $PVM
17591 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17592 if test "x$PVP" = "x"; then
17596 cat >>confdefs.h <<_ACEOF
17597 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17602 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17603 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17604 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17605 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17610 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17611 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17612 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17613 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17614 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17621 if test x$APP_MAN_SUFFIX = x ; then
17624 if test x$APP_MAN_DIR = x ; then
17625 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17628 if test x$LIB_MAN_SUFFIX = x ; then
17631 if test x$LIB_MAN_DIR = x ; then
17632 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17635 if test x$FILE_MAN_SUFFIX = x ; then
17637 solaris*) FILE_MAN_SUFFIX=4 ;;
17638 *) FILE_MAN_SUFFIX=5 ;;
17641 if test x$FILE_MAN_DIR = x ; then
17642 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17645 if test x$MISC_MAN_SUFFIX = x ; then
17647 solaris*) MISC_MAN_SUFFIX=5 ;;
17648 *) MISC_MAN_SUFFIX=7 ;;
17651 if test x$MISC_MAN_DIR = x ; then
17652 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17655 if test x$DRIVER_MAN_SUFFIX = x ; then
17657 solaris*) DRIVER_MAN_SUFFIX=7 ;;
17658 *) DRIVER_MAN_SUFFIX=4 ;;
17661 if test x$DRIVER_MAN_DIR = x ; then
17662 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17665 if test x$ADMIN_MAN_SUFFIX = x ; then
17667 solaris*) ADMIN_MAN_SUFFIX=1m ;;
17668 *) ADMIN_MAN_SUFFIX=8 ;;
17671 if test x$ADMIN_MAN_DIR = x ; then
17672 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17689 XORG_MAN_PAGE="X Version 11"
17692 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17693 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17694 -e 's|__xservername__|Xorg|g' \
17695 -e 's|__xconfigfile__|xorg.conf|g' \
17696 -e 's|__projectroot__|\$(prefix)|g' \
17697 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17698 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17699 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17700 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17701 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17702 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17703 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17707 # Check whether --enable-silent-rules was given.
17708 if test "${enable_silent_rules+set}" = set; then :
17709 enableval=$enable_silent_rules;
17712 case $enable_silent_rules in
17713 yes) AM_DEFAULT_VERBOSITY=0;;
17714 no) AM_DEFAULT_VERBOSITY=1;;
17715 *) AM_DEFAULT_VERBOSITY=0;;
17722 # Check whether --enable-specs was given.
17723 if test "${enable_specs+set}" = set; then :
17724 enableval=$enable_specs; build_specs=$enableval
17730 if test x$build_specs = xyes; then
17732 ENABLE_SPECS_FALSE='#'
17734 ENABLE_SPECS_TRUE='#'
17735 ENABLE_SPECS_FALSE=
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
17739 $as_echo_n "checking whether to build functional specifications... " >&6; }
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
17741 $as_echo "$build_specs" >&6; }
17747 # Check whether --with-xmlto was given.
17748 if test "${with_xmlto+set}" = set; then :
17749 withval=$with_xmlto; use_xmlto=$withval
17756 if test "x$use_xmlto" = x"auto"; then
17757 # Extract the first word of "xmlto", so it can be a program name with args.
17758 set dummy xmlto; ac_word=$2
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17760 $as_echo_n "checking for $ac_word... " >&6; }
17761 if ${ac_cv_path_XMLTO+:} false; then :
17762 $as_echo_n "(cached) " >&6
17766 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
17769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17770 for as_dir in $PATH
17773 test -z "$as_dir" && as_dir=.
17774 for ac_exec_ext in '' $ac_executable_extensions; do
17775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17776 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
17777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17787 XMLTO=$ac_cv_path_XMLTO
17788 if test -n "$XMLTO"; then
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
17790 $as_echo "$XMLTO" >&6; }
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17793 $as_echo "no" >&6; }
17797 if test "x$XMLTO" = "x"; then
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
17799 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
17804 elif test "x$use_xmlto" = x"yes" ; then
17805 # Extract the first word of "xmlto", so it can be a program name with args.
17806 set dummy xmlto; ac_word=$2
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17808 $as_echo_n "checking for $ac_word... " >&6; }
17809 if ${ac_cv_path_XMLTO+:} false; then :
17810 $as_echo_n "(cached) " >&6
17814 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
17817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17818 for as_dir in $PATH
17821 test -z "$as_dir" && as_dir=.
17822 for ac_exec_ext in '' $ac_executable_extensions; do
17823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17824 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
17825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17835 XMLTO=$ac_cv_path_XMLTO
17836 if test -n "$XMLTO"; then
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
17838 $as_echo "$XMLTO" >&6; }
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17841 $as_echo "no" >&6; }
17845 if test "x$XMLTO" = "x"; then
17846 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
17849 elif test "x$use_xmlto" = x"no" ; then
17850 if test "x$XMLTO" != "x"; then
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
17852 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
17856 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
17859 # Test for a minimum version of xmlto, if provided.
17860 if test "$have_xmlto" = yes; then
17861 # scrape the xmlto version
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
17863 $as_echo_n "checking the xmlto version... " >&6; }
17864 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
17866 $as_echo "$xmlto_version" >&6; }
17867 as_arg_v1=$xmlto_version
17869 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17872 if test "x$use_xmlto" = xauto; then
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
17874 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
17877 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
17888 # Test for the ability of xmlto to generate a text target
17890 cat > conftest.xml << "EOF"
17892 if test "$have_xmlto" = yes; then :
17893 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
17894 have_xmlto_text=yes
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
17897 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
17901 if test $have_xmlto_text = yes; then
17902 HAVE_XMLTO_TEXT_TRUE=
17903 HAVE_XMLTO_TEXT_FALSE='#'
17905 HAVE_XMLTO_TEXT_TRUE='#'
17906 HAVE_XMLTO_TEXT_FALSE=
17909 if test "$have_xmlto" = yes; then
17911 HAVE_XMLTO_FALSE='#'
17913 HAVE_XMLTO_TRUE='#'
17922 # Check whether --with-fop was given.
17923 if test "${with_fop+set}" = set; then :
17924 withval=$with_fop; use_fop=$withval
17931 if test "x$use_fop" = x"auto"; then
17932 # Extract the first word of "fop", so it can be a program name with args.
17933 set dummy fop; ac_word=$2
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17935 $as_echo_n "checking for $ac_word... " >&6; }
17936 if ${ac_cv_path_FOP+:} false; then :
17937 $as_echo_n "(cached) " >&6
17941 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
17944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17945 for as_dir in $PATH
17948 test -z "$as_dir" && as_dir=.
17949 for ac_exec_ext in '' $ac_executable_extensions; do
17950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17951 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
17952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17962 FOP=$ac_cv_path_FOP
17963 if test -n "$FOP"; then
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
17965 $as_echo "$FOP" >&6; }
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17968 $as_echo "no" >&6; }
17972 if test "x$FOP" = "x"; then
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
17974 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
17979 elif test "x$use_fop" = x"yes" ; then
17980 # Extract the first word of "fop", so it can be a program name with args.
17981 set dummy fop; ac_word=$2
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17983 $as_echo_n "checking for $ac_word... " >&6; }
17984 if ${ac_cv_path_FOP+:} false; then :
17985 $as_echo_n "(cached) " >&6
17989 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
17992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17993 for as_dir in $PATH
17996 test -z "$as_dir" && as_dir=.
17997 for ac_exec_ext in '' $ac_executable_extensions; do
17998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17999 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18010 FOP=$ac_cv_path_FOP
18011 if test -n "$FOP"; then
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18013 $as_echo "$FOP" >&6; }
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18016 $as_echo "no" >&6; }
18020 if test "x$FOP" = "x"; then
18021 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
18024 elif test "x$use_fop" = x"no" ; then
18025 if test "x$FOP" != "x"; then
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
18027 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
18031 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
18034 # Test for a minimum version of fop, if provided.
18036 if test "$have_fop" = yes; then
18047 # Preserves the interface, should it be implemented later
18051 # Check whether --with-xsltproc was given.
18052 if test "${with_xsltproc+set}" = set; then :
18053 withval=$with_xsltproc; use_xsltproc=$withval
18060 if test "x$use_xsltproc" = x"auto"; then
18061 # Extract the first word of "xsltproc", so it can be a program name with args.
18062 set dummy xsltproc; ac_word=$2
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18064 $as_echo_n "checking for $ac_word... " >&6; }
18065 if ${ac_cv_path_XSLTPROC+:} false; then :
18066 $as_echo_n "(cached) " >&6
18070 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18074 for as_dir in $PATH
18077 test -z "$as_dir" && as_dir=.
18078 for ac_exec_ext in '' $ac_executable_extensions; do
18079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18080 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18091 XSLTPROC=$ac_cv_path_XSLTPROC
18092 if test -n "$XSLTPROC"; then
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18094 $as_echo "$XSLTPROC" >&6; }
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18097 $as_echo "no" >&6; }
18101 if test "x$XSLTPROC" = "x"; then
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
18103 $as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
18108 elif test "x$use_xsltproc" = x"yes" ; then
18109 # Extract the first word of "xsltproc", so it can be a program name with args.
18110 set dummy xsltproc; ac_word=$2
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18112 $as_echo_n "checking for $ac_word... " >&6; }
18113 if ${ac_cv_path_XSLTPROC+:} false; then :
18114 $as_echo_n "(cached) " >&6
18118 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18122 for as_dir in $PATH
18125 test -z "$as_dir" && as_dir=.
18126 for ac_exec_ext in '' $ac_executable_extensions; do
18127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18128 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18139 XSLTPROC=$ac_cv_path_XSLTPROC
18140 if test -n "$XSLTPROC"; then
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18142 $as_echo "$XSLTPROC" >&6; }
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18145 $as_echo "no" >&6; }
18149 if test "x$XSLTPROC" = "x"; then
18150 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
18153 elif test "x$use_xsltproc" = x"no" ; then
18154 if test "x$XSLTPROC" != "x"; then
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
18156 $as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
18160 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
18163 if test "$have_xsltproc" = yes; then
18164 HAVE_XSLTPROC_TRUE=
18165 HAVE_XSLTPROC_FALSE='#'
18167 HAVE_XSLTPROC_TRUE='#'
18168 HAVE_XSLTPROC_FALSE=
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
18174 $as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
18176 if test -n "$PKG_CONFIG" && \
18177 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
18178 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
18180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18181 test $ac_status = 0; }; then
18182 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
18188 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
18189 # the path and the name of the doc stylesheet
18190 if test "x$XORG_SGML_PATH" != "x" ; then
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
18192 $as_echo "$XORG_SGML_PATH" >&6; }
18193 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
18194 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18197 $as_echo "no" >&6; }
18203 if test "x$XSL_STYLESHEET" != "x"; then
18204 HAVE_STYLESHEETS_TRUE=
18205 HAVE_STYLESHEETS_FALSE='#'
18207 HAVE_STYLESHEETS_TRUE='#'
18208 HAVE_STYLESHEETS_FALSE=
18213 # Some compilers do not support per target -c and -o flags
18214 if test "x$CC" != xcc; then
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
18216 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
18219 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
18221 set dummy $CC; ac_cc=`$as_echo "$2" |
18222 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18223 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
18224 $as_echo_n "(cached) " >&6
18226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18227 /* end confdefs.h. */
18237 # Make sure it works both with $CC and with simple cc.
18238 # We do the test twice because some compilers refuse to overwrite an
18239 # existing .o file with -o, though they will create one.
18240 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18242 if { { case "(($ac_try" in
18243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244 *) ac_try_echo=$ac_try;;
18246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18247 $as_echo "$ac_try_echo"; } >&5
18248 (eval "$ac_try") 2>&5
18250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18251 test $ac_status = 0; } &&
18252 test -f conftest2.$ac_objext && { { case "(($ac_try" in
18253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254 *) ac_try_echo=$ac_try;;
18256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18257 $as_echo "$ac_try_echo"; } >&5
18258 (eval "$ac_try") 2>&5
18260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18261 test $ac_status = 0; };
18263 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18264 if test "x$CC" != xcc; then
18265 # Test first that cc exists at all.
18266 if { ac_try='cc -c conftest.$ac_ext >&5'
18267 { { case "(($ac_try" in
18268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269 *) ac_try_echo=$ac_try;;
18271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18272 $as_echo "$ac_try_echo"; } >&5
18273 (eval "$ac_try") 2>&5
18275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18276 test $ac_status = 0; }; }; then
18277 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18279 if { { case "(($ac_try" in
18280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18281 *) ac_try_echo=$ac_try;;
18283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18284 $as_echo "$ac_try_echo"; } >&5
18285 (eval "$ac_try") 2>&5
18287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18288 test $ac_status = 0; } &&
18289 test -f conftest2.$ac_objext && { { case "(($ac_try" in
18290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18291 *) ac_try_echo=$ac_try;;
18293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18294 $as_echo "$ac_try_echo"; } >&5
18295 (eval "$ac_try") 2>&5
18297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18298 test $ac_status = 0; };
18303 # cc exists but doesn't like -o.
18304 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18309 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18311 rm -f core conftest*
18314 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18316 $as_echo "yes" >&6; }
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18319 $as_echo "no" >&6; }
18321 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
18325 # FIXME: we rely on the cache variable name because
18326 # there is no other way.
18328 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18329 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
18330 if test "$am_t" != yes; then
18331 # Losing compiler, so override with the script.
18332 # FIXME: It is wrong to rewrite CC.
18333 # But if we don't then we get into trouble of one sort or another.
18334 # A longer-term fix would be to have automake use am__CC in this case,
18335 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18336 CC="$am_aux_dir/compile $CC"
18341 # Checks for programs.
18342 for ac_prog in gawk mawk nawk awk
18344 # Extract the first word of "$ac_prog", so it can be a program name with args.
18345 set dummy $ac_prog; ac_word=$2
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18347 $as_echo_n "checking for $ac_word... " >&6; }
18348 if ${ac_cv_prog_AWK+:} false; then :
18349 $as_echo_n "(cached) " >&6
18351 if test -n "$AWK"; then
18352 ac_cv_prog_AWK="$AWK" # Let the user override the test.
18354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18355 for as_dir in $PATH
18358 test -z "$as_dir" && as_dir=.
18359 for ac_exec_ext in '' $ac_executable_extensions; do
18360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18361 ac_cv_prog_AWK="$ac_prog"
18362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18371 AWK=$ac_cv_prog_AWK
18372 if test -n "$AWK"; then
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
18374 $as_echo "$AWK" >&6; }
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18377 $as_echo "no" >&6; }
18381 test -n "$AWK" && break
18385 # Need to call this explicitly since the first call to PKG_CHECK_MODULES
18386 # is in an if statement, and later calls would break if it's skipped.
18389 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18390 if test -n "$ac_tool_prefix"; then
18391 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18392 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18394 $as_echo_n "checking for $ac_word... " >&6; }
18395 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18396 $as_echo_n "(cached) " >&6
18398 case $PKG_CONFIG in
18400 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18404 for as_dir in $PATH
18407 test -z "$as_dir" && as_dir=.
18408 for ac_exec_ext in '' $ac_executable_extensions; do
18409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18410 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18421 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18422 if test -n "$PKG_CONFIG"; then
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18424 $as_echo "$PKG_CONFIG" >&6; }
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18427 $as_echo "no" >&6; }
18432 if test -z "$ac_cv_path_PKG_CONFIG"; then
18433 ac_pt_PKG_CONFIG=$PKG_CONFIG
18434 # Extract the first word of "pkg-config", so it can be a program name with args.
18435 set dummy pkg-config; ac_word=$2
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18437 $as_echo_n "checking for $ac_word... " >&6; }
18438 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18439 $as_echo_n "(cached) " >&6
18441 case $ac_pt_PKG_CONFIG in
18443 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18447 for as_dir in $PATH
18450 test -z "$as_dir" && as_dir=.
18451 for ac_exec_ext in '' $ac_executable_extensions; do
18452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18453 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18464 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18465 if test -n "$ac_pt_PKG_CONFIG"; then
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18467 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18470 $as_echo "no" >&6; }
18473 if test "x$ac_pt_PKG_CONFIG" = x; then
18476 case $cross_compiling:$ac_tool_warned in
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18480 ac_tool_warned=yes ;;
18482 PKG_CONFIG=$ac_pt_PKG_CONFIG
18485 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18489 if test -n "$PKG_CONFIG"; then
18490 _pkg_min_version=0.9.0
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18492 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18493 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18495 $as_echo "yes" >&6; }
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18498 $as_echo "no" >&6; }
18505 # fix libtool to set SONAME to libXaw.so.$major
18507 ac_config_commands="$ac_config_commands libtool_hack"
18510 # OSX/Win32 rules are different.
18521 platform_darwin=yes
18525 if test "x$platform_win32" = "xyes"; then
18526 PLATFORM_WIN32_TRUE=
18527 PLATFORM_WIN32_FALSE='#'
18529 PLATFORM_WIN32_TRUE='#'
18530 PLATFORM_WIN32_FALSE=
18533 if test "x$platform_darwin" = "xyes"; then
18534 PLATFORM_DARWIN_TRUE=
18535 PLATFORM_DARWIN_FALSE='#'
18537 PLATFORM_DARWIN_TRUE='#'
18538 PLATFORM_DARWIN_FALSE=
18542 # Whether to build Xaw6
18544 # Check whether --enable-xaw6 was given.
18545 if test "${enable_xaw6+set}" = set; then :
18546 enableval=$enable_xaw6; build_v6=$enableval
18552 if test "x$build_v6" = xyes; then
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAW6" >&5
18556 $as_echo_n "checking for XAW6... " >&6; }
18558 if test -n "$XAW6_CFLAGS"; then
18559 pkg_cv_XAW6_CFLAGS="$XAW6_CFLAGS"
18560 elif test -n "$PKG_CONFIG"; then
18561 if test -n "$PKG_CONFIG" && \
18562 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu\""; } >&5
18563 ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu") 2>&5
18565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18566 test $ac_status = 0; }; then
18567 pkg_cv_XAW6_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xext xextproto xt xmu" 2>/dev/null`
18574 if test -n "$XAW6_LIBS"; then
18575 pkg_cv_XAW6_LIBS="$XAW6_LIBS"
18576 elif test -n "$PKG_CONFIG"; then
18577 if test -n "$PKG_CONFIG" && \
18578 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu\""; } >&5
18579 ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu") 2>&5
18581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18582 test $ac_status = 0; }; then
18583 pkg_cv_XAW6_LIBS=`$PKG_CONFIG --libs "xproto x11 xext xextproto xt xmu" 2>/dev/null`
18593 if test $pkg_failed = yes; then
18595 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18596 _pkg_short_errors_supported=yes
18598 _pkg_short_errors_supported=no
18600 if test $_pkg_short_errors_supported = yes; then
18601 XAW6_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto x11 xext xextproto xt xmu" 2>&1`
18603 XAW6_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto x11 xext xextproto xt xmu" 2>&1`
18605 # Put the nasty error message in config.log where it belongs
18606 echo "$XAW6_PKG_ERRORS" >&5
18608 as_fn_error $? "Package requirements (xproto x11 xext xextproto xt xmu) were not met:
18612 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18613 installed software in a non-standard prefix.
18615 Alternatively, you may set the environment variables XAW6_CFLAGS
18616 and XAW6_LIBS to avoid the need to call pkg-config.
18617 See the pkg-config man page for more details.
18619 elif test $pkg_failed = untried; then
18620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18622 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18623 is in your PATH or set the PKG_CONFIG environment variable to the full
18624 path to pkg-config.
18626 Alternatively, you may set the environment variables XAW6_CFLAGS
18627 and XAW6_LIBS to avoid the need to call pkg-config.
18628 See the pkg-config man page for more details.
18630 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18631 See \`config.log' for more details" "$LINENO" 5; }
18633 XAW6_CFLAGS=$pkg_cv_XAW6_CFLAGS
18634 XAW6_LIBS=$pkg_cv_XAW6_LIBS
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18636 $as_echo "yes" >&6; }
18642 # Whether to build Xaw7
18644 # Check whether --enable-xaw7 was given.
18645 if test "${enable_xaw7+set}" = set; then :
18646 enableval=$enable_xaw7; build_v7=$enableval
18652 if test "x$build_v7" = xyes; then
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAW7" >&5
18656 $as_echo_n "checking for XAW7... " >&6; }
18658 if test -n "$XAW7_CFLAGS"; then
18659 pkg_cv_XAW7_CFLAGS="$XAW7_CFLAGS"
18660 elif test -n "$PKG_CONFIG"; then
18661 if test -n "$PKG_CONFIG" && \
18662 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu xpm\""; } >&5
18663 ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu xpm") 2>&5
18665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18666 test $ac_status = 0; }; then
18667 pkg_cv_XAW7_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xext xextproto xt xmu xpm" 2>/dev/null`
18674 if test -n "$XAW7_LIBS"; then
18675 pkg_cv_XAW7_LIBS="$XAW7_LIBS"
18676 elif test -n "$PKG_CONFIG"; then
18677 if test -n "$PKG_CONFIG" && \
18678 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu xpm\""; } >&5
18679 ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu xpm") 2>&5
18681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18682 test $ac_status = 0; }; then
18683 pkg_cv_XAW7_LIBS=`$PKG_CONFIG --libs "xproto x11 xext xextproto xt xmu xpm" 2>/dev/null`
18693 if test $pkg_failed = yes; then
18695 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18696 _pkg_short_errors_supported=yes
18698 _pkg_short_errors_supported=no
18700 if test $_pkg_short_errors_supported = yes; then
18701 XAW7_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto x11 xext xextproto xt xmu xpm" 2>&1`
18703 XAW7_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto x11 xext xextproto xt xmu xpm" 2>&1`
18705 # Put the nasty error message in config.log where it belongs
18706 echo "$XAW7_PKG_ERRORS" >&5
18708 as_fn_error $? "Package requirements (xproto x11 xext xextproto xt xmu xpm) were not met:
18712 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18713 installed software in a non-standard prefix.
18715 Alternatively, you may set the environment variables XAW7_CFLAGS
18716 and XAW7_LIBS to avoid the need to call pkg-config.
18717 See the pkg-config man page for more details.
18719 elif test $pkg_failed = untried; then
18720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18722 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18723 is in your PATH or set the PKG_CONFIG environment variable to the full
18724 path to pkg-config.
18726 Alternatively, you may set the environment variables XAW7_CFLAGS
18727 and XAW7_LIBS to avoid the need to call pkg-config.
18728 See the pkg-config man page for more details.
18730 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18731 See \`config.log' for more details" "$LINENO" 5; }
18733 XAW7_CFLAGS=$pkg_cv_XAW7_CFLAGS
18734 XAW7_LIBS=$pkg_cv_XAW7_LIBS
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18736 $as_echo "yes" >&6; }
18742 if test x$build_v6 = xyes; then
18744 BUILD_XAW6_FALSE='#'
18746 BUILD_XAW6_TRUE='#'
18750 if test x$build_v7 = xyes; then
18752 BUILD_XAW7_FALSE='#'
18754 BUILD_XAW7_TRUE='#'
18759 # Checks for header files.
18760 for ac_header in wctype.h wchar.h widec.h
18762 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18763 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18764 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18765 cat >>confdefs.h <<_ACEOF
18766 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18774 # Checks for functions
18775 for ac_func in iswalnum getpagesize
18777 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18778 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18779 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18780 cat >>confdefs.h <<_ACEOF
18781 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18788 ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile specs/Makefile src/Makefile"
18791 if test "x$build_v6" = xyes; then
18792 ac_config_files="$ac_config_files xaw6.pc"
18796 if test "x$build_v7" = xyes; then
18797 ac_config_files="$ac_config_files xaw7.pc"
18801 cat >confcache <<\_ACEOF
18802 # This file is a shell script that caches the results of configure
18803 # tests run on this system so they can be shared between configure
18804 # scripts and configure runs, see configure's option --config-cache.
18805 # It is not useful on other systems. If it contains results you don't
18806 # want to keep, you may remove or edit it.
18808 # config.status only pays attention to the cache file if you give it
18809 # the --recheck option to rerun configure.
18811 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18812 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18813 # following values.
18817 # The following way of writing the cache mishandles newlines in values,
18818 # but we know of no workaround that is simple, portable, and efficient.
18819 # So, we kill variables containing newlines.
18820 # Ultrix sh set writes to stderr and can't be redirected directly,
18821 # and sets the high bit in the cache file unless we assign to the vars.
18823 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18824 eval ac_val=\$$ac_var
18828 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18829 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18832 _ | IFS | as_nl) ;; #(
18833 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18834 *) { eval $ac_var=; unset $ac_var;} ;;
18840 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18841 *${as_nl}ac_space=\ *)
18842 # `set' does not quote correctly, so add quotes: double-quote
18843 # substitution turns \\\\ into \\, and sed turns \\ into \.
18846 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18849 # `set' quotes correctly as required by POSIX, so do not add quotes.
18850 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18859 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18861 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18863 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18864 if test -w "$cache_file"; then
18865 if test "x$cache_file" != "x/dev/null"; then
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18867 $as_echo "$as_me: updating cache $cache_file" >&6;}
18868 if test ! -f "$cache_file" || test -h "$cache_file"; then
18869 cat confcache >"$cache_file"
18871 case $cache_file in #(
18873 mv -f confcache "$cache_file"$$ &&
18874 mv -f "$cache_file"$$ "$cache_file" ;; #(
18876 mv -f confcache "$cache_file" ;;
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18882 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18887 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18888 # Let make expand exec_prefix.
18889 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18891 DEFS=-DHAVE_CONFIG_H
18896 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18897 # 1. Remove the extension, and $U if already installed.
18898 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18899 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18900 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18901 # will be set to the directory where LIBOBJS objects are built.
18902 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18903 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18905 LIBOBJS=$ac_libobjs
18907 LTLIBOBJS=$ac_ltlibobjs
18910 if test -n "$EXEEXT"; then
18912 am__EXEEXT_FALSE='#'
18914 am__EXEEXT_TRUE='#'
18918 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18919 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18922 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18923 as_fn_error $? "conditional \"AMDEP\" was never defined.
18924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18926 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18927 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18930 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
18931 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
18932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18934 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
18935 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
18936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18938 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
18939 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
18940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18942 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
18943 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
18944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18946 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
18947 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
18948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18950 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
18951 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
18952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18954 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
18955 as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
18956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18958 if test -z "${PLATFORM_DARWIN_TRUE}" && test -z "${PLATFORM_DARWIN_FALSE}"; then
18959 as_fn_error $? "conditional \"PLATFORM_DARWIN\" was never defined.
18960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18962 if test -z "${BUILD_XAW6_TRUE}" && test -z "${BUILD_XAW6_FALSE}"; then
18963 as_fn_error $? "conditional \"BUILD_XAW6\" was never defined.
18964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18966 if test -z "${BUILD_XAW7_TRUE}" && test -z "${BUILD_XAW7_FALSE}"; then
18967 as_fn_error $? "conditional \"BUILD_XAW7\" was never defined.
18968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18971 : "${CONFIG_STATUS=./config.status}"
18973 ac_clean_files_save=$ac_clean_files
18974 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18976 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18978 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18980 # Generated by $as_me.
18981 # Run this file to recreate the current configuration.
18982 # Compiler output produced by configure, useful for debugging
18983 # configure, is in config.log if it exists.
18986 ac_cs_recheck=false
18989 SHELL=\${CONFIG_SHELL-$SHELL}
18992 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18993 ## -------------------- ##
18994 ## M4sh Initialization. ##
18995 ## -------------------- ##
18997 # Be more Bourne compatible
18998 DUALCASE=1; export DUALCASE # for MKS sh
18999 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19002 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19003 # is contrary to our usage. Disable this feature.
19004 alias -g '${1+"$@"}'='"$@"'
19005 setopt NO_GLOB_SUBST
19007 case `(set -o) 2>/dev/null` in #(
19019 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19020 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19021 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19022 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19023 # Prefer a ksh shell builtin over an external printf program on Solaris,
19024 # but without wasting forks for bash or zsh.
19025 if test -z "$BASH_VERSION$ZSH_VERSION" \
19026 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19027 as_echo='print -r --'
19028 as_echo_n='print -rn --'
19029 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19030 as_echo='printf %s\n'
19031 as_echo_n='printf %s'
19033 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19034 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19035 as_echo_n='/usr/ucb/echo -n'
19037 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19038 as_echo_n_body='eval
19042 expr "X$arg" : "X\\(.*\\)$as_nl";
19043 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19045 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19047 export as_echo_n_body
19048 as_echo_n='sh -c $as_echo_n_body as_echo'
19050 export as_echo_body
19051 as_echo='sh -c $as_echo_body as_echo'
19054 # The user is always right.
19055 if test "${PATH_SEPARATOR+set}" != set; then
19057 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19058 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19065 # We need space, tab and new line, in precisely that order. Quoting is
19066 # there to prevent editors from complaining about space-tab.
19067 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19068 # splitting by setting IFS to empty value.)
19071 # Find who we are. Look in the path if we contain no directory separator.
19074 *[\\/]* ) as_myself=$0 ;;
19075 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19076 for as_dir in $PATH
19079 test -z "$as_dir" && as_dir=.
19080 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19086 # We did not find ourselves, most probably we were run as `sh COMMAND'
19087 # in which case we are not to be found in the path.
19088 if test "x$as_myself" = x; then
19091 if test ! -f "$as_myself"; then
19092 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19096 # Unset variables that we do not need and which cause bugs (e.g. in
19097 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19098 # suppresses any "Segmentation fault" message there. '((' could
19099 # trigger a bug in pdksh 5.2.14.
19100 for as_var in BASH_ENV ENV MAIL MAILPATH
19101 do eval test x\${$as_var+set} = xset \
19102 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19115 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19118 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19119 # ----------------------------------------
19120 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19121 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19122 # script with STATUS, using 1 if that was 0.
19125 as_status=$1; test $as_status -eq 0 && as_status=1
19127 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19128 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19130 $as_echo "$as_me: error: $2" >&2
19131 as_fn_exit $as_status
19135 # as_fn_set_status STATUS
19136 # -----------------------
19137 # Set $? to STATUS, without forking.
19138 as_fn_set_status ()
19141 } # as_fn_set_status
19143 # as_fn_exit STATUS
19144 # -----------------
19145 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19149 as_fn_set_status $1
19155 # Portably unset VAR.
19158 { eval $1=; unset $1;}
19160 as_unset=as_fn_unset
19161 # as_fn_append VAR VALUE
19162 # ----------------------
19163 # Append the text in VALUE to the end of the definition contained in VAR. Take
19164 # advantage of any shell optimizations that allow amortized linear growth over
19165 # repeated appends, instead of the typical quadratic growth present in naive
19167 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19168 eval 'as_fn_append ()
19179 # as_fn_arith ARG...
19180 # ------------------
19181 # Perform arithmetic evaluation on the ARGs, and store the result in the
19182 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19183 # must be portable across $(()) and expr.
19184 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19185 eval 'as_fn_arith ()
19192 as_val=`expr "$@" || test $? -eq 1`
19197 if expr a : '\(a\)' >/dev/null 2>&1 &&
19198 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19204 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19205 as_basename=basename
19210 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19216 as_me=`$as_basename -- "$0" ||
19217 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19218 X"$0" : 'X\(//\)$' \| \
19219 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19221 sed '/^.*\/\([^/][^/]*\)\/*$/{
19235 # Avoid depending upon Character Ranges.
19236 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19237 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19238 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19239 as_cr_digits='0123456789'
19240 as_cr_alnum=$as_cr_Letters$as_cr_digits
19242 ECHO_C= ECHO_N= ECHO_T=
19243 case `echo -n x` in #(((((
19245 case `echo 'xy\c'` in
19246 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19248 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19255 rm -f conf$$ conf$$.exe conf$$.file
19256 if test -d conf$$.dir; then
19257 rm -f conf$$.dir/conf$$.file
19260 mkdir conf$$.dir 2>/dev/null
19262 if (echo >conf$$.file) 2>/dev/null; then
19263 if ln -s conf$$.file conf$$ 2>/dev/null; then
19265 # ... but there are two gotchas:
19266 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19267 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19268 # In both cases, we have to default to `cp -p'.
19269 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19271 elif ln conf$$.file conf$$ 2>/dev/null; then
19279 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19280 rmdir conf$$.dir 2>/dev/null
19285 # Create "$as_dir" as a directory, including parents if necessary.
19290 -*) as_dir=./$as_dir;;
19292 test -d "$as_dir" || eval $as_mkdir_p || {
19296 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19297 *) as_qdir=$as_dir;;
19299 as_dirs="'$as_qdir' $as_dirs"
19300 as_dir=`$as_dirname -- "$as_dir" ||
19301 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19302 X"$as_dir" : 'X\(//\)[^/]' \| \
19303 X"$as_dir" : 'X\(//\)$' \| \
19304 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19305 $as_echo X"$as_dir" |
19306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19310 /^X\(\/\/\)[^/].*/{
19323 test -d "$as_dir" && break
19325 test -z "$as_dirs" || eval "mkdir $as_dirs"
19326 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19330 if mkdir -p . 2>/dev/null; then
19331 as_mkdir_p='mkdir -p "$as_dir"'
19333 test -d ./-p && rmdir ./-p
19337 if test -x / >/dev/null 2>&1; then
19338 as_test_x='test -x'
19340 if ls -dL / >/dev/null 2>&1; then
19347 if test -d "$1"; then
19353 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19354 ???[sx]*):;;*)false;;esac;fi
19358 as_executable_p=$as_test_x
19360 # Sed expression to map a string onto a valid CPP name.
19361 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19363 # Sed expression to map a string onto a valid variable name.
19364 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19368 ## ----------------------------------- ##
19369 ## Main body of $CONFIG_STATUS script. ##
19370 ## ----------------------------------- ##
19372 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19375 # Save the log message, to keep $0 and so on meaningful, and to
19376 # report actual input values of CONFIG_FILES etc. instead of their
19377 # values after options handling.
19379 This file was extended by libXaw $as_me 1.0.11, which was
19380 generated by GNU Autoconf 2.68. Invocation command line was
19382 CONFIG_FILES = $CONFIG_FILES
19383 CONFIG_HEADERS = $CONFIG_HEADERS
19384 CONFIG_LINKS = $CONFIG_LINKS
19385 CONFIG_COMMANDS = $CONFIG_COMMANDS
19388 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19393 case $ac_config_files in *"
19394 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19397 case $ac_config_headers in *"
19398 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19403 # Files that config.status was made for.
19404 config_files="$ac_config_files"
19405 config_headers="$ac_config_headers"
19406 config_commands="$ac_config_commands"
19410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19412 \`$as_me' instantiates files and other configuration actions
19413 from templates according to the current configuration. Unless the files
19414 and actions are specified as TAGs, all are instantiated by default.
19416 Usage: $0 [OPTION]... [TAG]...
19418 -h, --help print this help, then exit
19419 -V, --version print version number and configuration settings, then exit
19420 --config print configuration, then exit
19421 -q, --quiet, --silent
19422 do not print progress messages
19423 -d, --debug don't remove temporary files
19424 --recheck update $as_me by reconfiguring in the same conditions
19425 --file=FILE[:TEMPLATE]
19426 instantiate the configuration file FILE
19427 --header=FILE[:TEMPLATE]
19428 instantiate the configuration header FILE
19430 Configuration files:
19433 Configuration headers:
19436 Configuration commands:
19439 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19443 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19445 libXaw config.status 1.0.11
19446 configured by $0, generated by GNU Autoconf 2.68,
19447 with options \\"\$ac_cs_config\\"
19449 Copyright (C) 2010 Free Software Foundation, Inc.
19450 This config.status script is free software; the Free Software Foundation
19451 gives unlimited permission to copy, distribute and modify it."
19458 test -n "\$AWK" || AWK=awk
19461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19462 # The default lists apply if the user does not specify any file.
19468 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19469 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19473 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19485 # Handling of the options.
19486 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19488 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19489 $as_echo "$ac_cs_version"; exit ;;
19490 --config | --confi | --conf | --con | --co | --c )
19491 $as_echo "$ac_cs_config"; exit ;;
19492 --debug | --debu | --deb | --de | --d | -d )
19494 --file | --fil | --fi | --f )
19497 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19498 '') as_fn_error $? "missing file argument" ;;
19500 as_fn_append CONFIG_FILES " '$ac_optarg'"
19501 ac_need_defaults=false;;
19502 --header | --heade | --head | --hea )
19505 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19507 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19508 ac_need_defaults=false;;
19510 # Conflict between --help and --header
19511 as_fn_error $? "ambiguous option: \`$1'
19512 Try \`$0 --help' for more information.";;
19513 --help | --hel | -h )
19514 $as_echo "$ac_cs_usage"; exit ;;
19515 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19516 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19519 # This is an error.
19520 -*) as_fn_error $? "unrecognized option: \`$1'
19521 Try \`$0 --help' for more information." ;;
19523 *) as_fn_append ac_config_targets " $1"
19524 ac_need_defaults=false ;;
19530 ac_configure_extra_args=
19532 if $ac_cs_silent; then
19534 ac_configure_extra_args="$ac_configure_extra_args --silent"
19538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19539 if \$ac_cs_recheck; then
19540 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19542 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19543 CONFIG_SHELL='$SHELL'
19544 export CONFIG_SHELL
19549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19553 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19554 ## Running $as_me. ##
19560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19564 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19567 # The HP-UX ksh and POSIX shell print the target directory to stdout
19568 # if CDPATH is set.
19569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19571 sed_quote_subst='$sed_quote_subst'
19572 double_quote_subst='$double_quote_subst'
19573 delay_variable_subst='$delay_variable_subst'
19574 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19575 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19576 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19577 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19578 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19579 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19580 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19581 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19582 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19583 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19584 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19585 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19586 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19587 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19588 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19589 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19590 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19591 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19592 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19593 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19594 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19595 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19596 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19597 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19598 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19599 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19600 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19601 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19602 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19603 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19604 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19605 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19606 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19607 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19608 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19609 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19610 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19611 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19612 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19613 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19614 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19615 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19616 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19617 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19618 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19619 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19620 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19621 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19622 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19623 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19624 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19625 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19626 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19627 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19628 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19629 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19630 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"`'
19631 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19632 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19633 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19634 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19635 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19636 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19637 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19638 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19639 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19640 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19641 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19642 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19643 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19644 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19645 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19646 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19647 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19648 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19649 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19650 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19651 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19652 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19653 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19654 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19655 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19656 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19657 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19658 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19659 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19660 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19661 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19662 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19663 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19664 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19665 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19666 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19667 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19668 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19669 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19670 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19671 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19672 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19673 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19674 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19675 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19676 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19677 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19678 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19679 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19680 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19681 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19682 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19683 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19684 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19685 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19686 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19687 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19688 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19689 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19690 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19691 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19692 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19693 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19694 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19695 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19696 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19697 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19698 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19699 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19700 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19701 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19702 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19703 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19706 LTCFLAGS='$LTCFLAGS'
19707 compiler='$compiler_DEFAULT'
19709 # A function that is used when there is no print builtin or printf.
19710 func_fallback_echo ()
19712 eval 'cat <<_LTECHO_EOF
19717 # Quote evaled strings.
19732 deplibs_check_method \
19737 sharedlib_from_linklib_cmd \
19740 archiver_list_spec \
19746 lt_cv_sys_global_symbol_pipe \
19747 lt_cv_sys_global_symbol_to_cdecl \
19748 lt_cv_sys_global_symbol_to_c_name_address \
19749 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19750 nm_file_list_spec \
19751 lt_prog_compiler_no_builtin_flag \
19752 lt_prog_compiler_pic \
19753 lt_prog_compiler_wl \
19754 lt_prog_compiler_static \
19755 lt_cv_prog_compiler_c_o \
19764 export_dynamic_flag_spec \
19765 whole_archive_flag_spec \
19766 compiler_needs_object \
19768 allow_undefined_flag \
19769 no_undefined_flag \
19770 hardcode_libdir_flag_spec \
19771 hardcode_libdir_separator \
19775 variables_saved_for_relink \
19777 library_names_spec \
19779 install_override_mode \
19783 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19784 *[\\\\\\\`\\"\\\$]*)
19785 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19788 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19793 # Double-quote double-evaled strings.
19794 for var in reload_cmds \
19795 old_postinstall_cmds \
19796 old_postuninstall_cmds \
19798 extract_expsyms_cmds \
19799 old_archive_from_new_cmds \
19800 old_archive_from_expsyms_cmds \
19802 archive_expsym_cmds \
19804 module_expsym_cmds \
19805 export_symbols_cmds \
19809 postuninstall_cmds \
19811 sys_lib_search_path_spec \
19812 sys_lib_dlsearch_path_spec; do
19813 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19814 *[\\\\\\\`\\"\\\$]*)
19815 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19818 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19823 ac_aux_dir='$ac_aux_dir'
19824 xsi_shell='$xsi_shell'
19825 lt_shell_append='$lt_shell_append'
19827 # See if we are running on zsh, and set the options which allow our
19828 # commands through without removal of \ escapes INIT.
19829 if test -n "\${ZSH_VERSION+set}" ; then
19830 setopt NO_GLOB_SUBST
19836 TIMESTAMP='$TIMESTAMP'
19845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19847 # Handling of arguments.
19848 for ac_config_target in $ac_config_targets
19850 case $ac_config_target in
19851 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19852 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19853 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19854 "libtool_hack") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool_hack" ;;
19855 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19856 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19857 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19858 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
19859 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19860 "xaw6.pc") CONFIG_FILES="$CONFIG_FILES xaw6.pc" ;;
19861 "xaw7.pc") CONFIG_FILES="$CONFIG_FILES xaw7.pc" ;;
19863 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19868 # If the user did not use the arguments to specify the items to instantiate,
19869 # then the envvar interface is used. Set only those that are not.
19870 # We use the long form for the default assignment because of an extremely
19871 # bizarre bug on SunOS 4.1.3.
19872 if $ac_need_defaults; then
19873 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19874 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19875 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19878 # Have a temporary directory for convenience. Make it in the build tree
19879 # simply because there is no reason against having it here, and in addition,
19880 # creating and moving files from /tmp can sometimes cause problems.
19881 # Hook for its removal unless debugging.
19882 # Note that there is a small window in which the directory will not be cleaned:
19883 # after its creation but before its name has been assigned to `$tmp'.
19887 trap 'exit_status=$?
19888 : "${ac_tmp:=$tmp}"
19889 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19891 trap 'as_fn_exit 1' 1 2 13 15
19893 # Create a (secure) tmp directory for tmp files.
19896 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19900 tmp=./conf$$-$RANDOM
19901 (umask 077 && mkdir "$tmp")
19902 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19905 # Set up the scripts for CONFIG_FILES section.
19906 # No need to generate them if there are no CONFIG_FILES.
19907 # This happens for instance with `./config.status config.h'.
19908 if test -n "$CONFIG_FILES"; then
19911 ac_cr=`echo X | tr X '\015'`
19912 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19913 # But we know of no other shell where ac_cr would be empty at this
19914 # point, so we can use a bashism as a fallback.
19915 if test "x$ac_cr" = x; then
19916 eval ac_cr=\$\'\\r\'
19918 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19919 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19922 ac_cs_awk_cr=$ac_cr
19925 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19930 echo "cat >conf$$subs.awk <<_ACEOF" &&
19931 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19933 } >conf$$subs.sh ||
19934 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19935 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19937 for ac_last_try in false false false false false :; do
19938 . ./conf$$subs.sh ||
19939 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19941 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19942 if test $ac_delim_n = $ac_delim_num; then
19944 elif $ac_last_try; then
19945 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19947 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19950 rm -f conf$$subs.sh
19952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19953 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19957 s/^/S["/; s/!.*/"]=/
19967 s/\(.\{148\}\)..*/\1/
19969 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19974 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19981 s/\(.\{148\}\)..*/\1/
19983 s/["\\]/\\&/g; s/^/"/; s/$/"/
19987 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19992 ' <conf$$subs.awk | sed '
19997 ' >>$CONFIG_STATUS || ac_write_fail=1
19998 rm -f conf$$subs.awk
19999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20001 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20002 for (key in S) S_is_set[key] = 1
20008 nfields = split(line, field, "@")
20010 len = length(field[1])
20011 for (i = 2; i < nfields; i++) {
20013 keylen = length(key)
20014 if (S_is_set[key]) {
20016 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20017 len += length(value) + length(field[++i])
20028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20029 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20030 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20033 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20034 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20037 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20038 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20039 # trailing colons and then remove the whole line if VPATH becomes empty
20040 # (actually we leave an empty line to preserve line numbers).
20041 if test "x$srcdir" = x.; then
20042 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20061 fi # test -n "$CONFIG_FILES"
20063 # Set up the scripts for CONFIG_HEADERS section.
20064 # No need to generate them if there are no CONFIG_HEADERS.
20065 # This happens for instance with `./config.status Makefile'.
20066 if test -n "$CONFIG_HEADERS"; then
20067 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20071 # Transform confdefs.h into an awk script `defines.awk', embedded as
20072 # here-document in config.status, that substitutes the proper values into
20073 # config.h.in to produce config.h.
20075 # Create a delimiter string that does not exist in confdefs.h, to ease
20076 # handling of long lines.
20078 for ac_last_try in false false :; do
20079 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20080 if test -z "$ac_tt"; then
20082 elif $ac_last_try; then
20083 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20085 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20089 # For the awk script, D is an array of macro values keyed by name,
20090 # likewise P contains macro parameters if any. Preserve backslash
20091 # newline sequences.
20093 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20095 s/.\{148\}/&'"$ac_delim"'/g
20098 s/^[ ]*#[ ]*define[ ][ ]*/ /
20105 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20107 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20111 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20112 D["\1"]=" \3\\\\\\n"\\/p
20114 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20119 s/.\{148\}/&'"$ac_delim"'/g
20124 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20127 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20129 ' <confdefs.h | sed '
20130 s/'"$ac_delim"'/"\\\
20131 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20134 for (key in D) D_is_set[key] = 1
20137 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20139 split(line, arg, " ")
20140 if (arg[1] == "#") {
20144 defundef = substr(arg[1], 2)
20147 split(mac1, mac2, "(") #)
20149 prefix = substr(line, 1, index(line, defundef) - 1)
20150 if (D_is_set[macro]) {
20151 # Preserve the white space surrounding the "#".
20152 print prefix "define", macro P[macro] D[macro]
20155 # Replace #undef with comments. This is necessary, for example,
20156 # in the case of _POSIX_SOURCE, which is predefined and required
20157 # on some systems where configure will not decide to define it.
20158 if (defundef == "undef") {
20159 print "/*", prefix defundef, macro, "*/"
20167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20168 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20169 fi # test -n "$CONFIG_HEADERS"
20172 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20177 :[FHLC]) ac_mode=$ac_tag; continue;;
20179 case $ac_mode$ac_tag in
20181 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20182 :[FH]-) ac_tag=-:-;;
20183 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20200 -) ac_f="$ac_tmp/stdin";;
20201 *) # Look for the file first in the build tree, then in the source tree
20202 # (if the path is not absolute). The absolute path cannot be DOS-style,
20203 # because $ac_f cannot contain `:'.
20207 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20209 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20211 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20212 as_fn_append ac_file_inputs " '$ac_f'"
20215 # Let's still pretend it is `configure' which instantiates (i.e., don't
20216 # use $as_me), people would be surprised to read:
20217 # /* config.h. Generated by config.status. */
20218 configure_input='Generated from '`
20219 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20221 if test x"$ac_file" != x-; then
20222 configure_input="$ac_file. $configure_input"
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20224 $as_echo "$as_me: creating $ac_file" >&6;}
20226 # Neutralize special characters interpreted by sed in replacement strings.
20227 case $configure_input in #(
20228 *\&* | *\|* | *\\* )
20229 ac_sed_conf_input=`$as_echo "$configure_input" |
20230 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20231 *) ac_sed_conf_input=$configure_input;;
20235 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20236 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20241 ac_dir=`$as_dirname -- "$ac_file" ||
20242 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20243 X"$ac_file" : 'X\(//\)[^/]' \| \
20244 X"$ac_file" : 'X\(//\)$' \| \
20245 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20246 $as_echo X"$ac_file" |
20247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20251 /^X\(\/\/\)[^/].*/{
20264 as_dir="$ac_dir"; as_fn_mkdir_p
20268 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20270 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20271 # A ".." for each directory in $ac_dir_suffix.
20272 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20273 case $ac_top_builddir_sub in
20274 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20275 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20278 ac_abs_top_builddir=$ac_pwd
20279 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20280 # for backward compatibility:
20281 ac_top_builddir=$ac_top_build_prefix
20284 .) # We are building in place.
20286 ac_top_srcdir=$ac_top_builddir_sub
20287 ac_abs_top_srcdir=$ac_pwd ;;
20288 [\\/]* | ?:[\\/]* ) # Absolute name.
20289 ac_srcdir=$srcdir$ac_dir_suffix;
20290 ac_top_srcdir=$srcdir
20291 ac_abs_top_srcdir=$srcdir ;;
20292 *) # Relative name.
20293 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20294 ac_top_srcdir=$ac_top_build_prefix$srcdir
20295 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20297 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20307 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20308 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20310 ac_MKDIR_P=$MKDIR_P
20312 [\\/$]* | ?:[\\/]* ) ;;
20313 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20318 # If the template does not know about datarootdir, expand it.
20319 # FIXME: This hack should be removed a few years after 2.60.
20320 ac_datarootdir_hack=; ac_datarootdir_seen=
20331 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20332 *datarootdir*) ac_datarootdir_seen=yes;;
20333 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20335 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20338 ac_datarootdir_hack='
20339 s&@datadir@&$datadir&g
20340 s&@docdir@&$docdir&g
20341 s&@infodir@&$infodir&g
20342 s&@localedir@&$localedir&g
20343 s&@mandir@&$mandir&g
20344 s&\\\${datarootdir}&$datarootdir&g' ;;
20348 # Neutralize VPATH when `$srcdir' = `.'.
20349 # Shell code in configure.ac might set extrasub.
20350 # FIXME: do we really want to maintain this feature?
20351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20352 ac_sed_extra="$ac_vpsub
20355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20357 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20358 s|@configure_input@|$ac_sed_conf_input|;t t
20359 s&@top_builddir@&$ac_top_builddir_sub&;t t
20360 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20361 s&@srcdir@&$ac_srcdir&;t t
20362 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20363 s&@top_srcdir@&$ac_top_srcdir&;t t
20364 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20365 s&@builddir@&$ac_builddir&;t t
20366 s&@abs_builddir@&$ac_abs_builddir&;t t
20367 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20368 s&@INSTALL@&$ac_INSTALL&;t t
20369 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20370 $ac_datarootdir_hack
20372 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20373 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20375 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20376 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20377 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20378 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20380 which seems to be undefined. Please make sure it is defined" >&5
20381 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20382 which seems to be undefined. Please make sure it is defined" >&2;}
20384 rm -f "$ac_tmp/stdin"
20386 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20387 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20389 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20395 if test x"$ac_file" != x-; then
20397 $as_echo "/* $configure_input */" \
20398 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20399 } >"$ac_tmp/config.h" \
20400 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20401 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20402 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20403 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20406 mv "$ac_tmp/config.h" "$ac_file" \
20407 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20410 $as_echo "/* $configure_input */" \
20411 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20412 || as_fn_error $? "could not create -" "$LINENO" 5
20414 # Compute "$ac_file"'s index in $config_headers.
20417 for _am_header in $config_headers :; do
20418 case $_am_header in
20419 $_am_arg | $_am_arg:* )
20422 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20425 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20426 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20427 X"$_am_arg" : 'X\(//\)[^/]' \| \
20428 X"$_am_arg" : 'X\(//\)$' \| \
20429 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20430 $as_echo X"$_am_arg" |
20431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20435 /^X\(\/\/\)[^/].*/{
20447 s/.*/./; q'`/stamp-h$_am_stamp_count
20450 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20451 $as_echo "$as_me: executing $ac_file commands" >&6;}
20456 case $ac_file$ac_mode in
20457 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20458 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20459 # are listed without --file. Let's play safe and only enable the eval
20460 # if we detect the quoting.
20461 case $CONFIG_FILES in
20462 *\'*) eval set x "$CONFIG_FILES" ;;
20463 *) set x $CONFIG_FILES ;;
20468 # Strip MF so we end up with the name of the file.
20469 mf=`echo "$mf" | sed -e 's/:.*$//'`
20470 # Check whether this is an Automake generated Makefile or not.
20471 # We used to match only the files named `Makefile.in', but
20472 # some people rename them; so instead we look at the file content.
20473 # Grep'ing the first line is not enough: some people post-process
20474 # each Makefile.in and add a new line on top of each file to say so.
20475 # Grep'ing the whole file is not good either: AIX grep has a line
20476 # limit of 2048, but all sed's we know have understand at least 4000.
20477 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20478 dirpart=`$as_dirname -- "$mf" ||
20479 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20480 X"$mf" : 'X\(//\)[^/]' \| \
20481 X"$mf" : 'X\(//\)$' \| \
20482 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20488 /^X\(\/\/\)[^/].*/{
20504 # Extract the definition of DEPDIR, am__include, and am__quote
20505 # from the Makefile without running `make'.
20506 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20507 test -z "$DEPDIR" && continue
20508 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20509 test -z "am__include" && continue
20510 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20511 # When using ansi2knr, U may be empty or an underscore; expand it
20512 U=`sed -n 's/^U = //p' < "$mf"`
20513 # Find all dependency output files, they are included files with
20514 # $(DEPDIR) in their names. We invoke sed twice because it is the
20515 # simplest approach to changing $(DEPDIR) to its actual value in the
20517 for file in `sed -n "
20518 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20519 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20520 # Make sure the directory exists.
20521 test -f "$dirpart/$file" && continue
20522 fdir=`$as_dirname -- "$file" ||
20523 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20524 X"$file" : 'X\(//\)[^/]' \| \
20525 X"$file" : 'X\(//\)$' \| \
20526 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20527 $as_echo X"$file" |
20528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20532 /^X\(\/\/\)[^/].*/{
20545 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20546 # echo "creating $dirpart/$file"
20547 echo '# dummy' > "$dirpart/$file"
20554 # See if we are running on zsh, and set the options which allow our
20555 # commands through without removal of \ escapes.
20556 if test -n "${ZSH_VERSION+set}" ; then
20557 setopt NO_GLOB_SUBST
20560 cfgfile="${ofile}T"
20561 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20564 cat <<_LT_EOF >> "$cfgfile"
20567 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20568 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20569 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20570 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20572 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20573 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20575 # Written by Gordon Matzigkeit, 1996
20577 # This file is part of GNU Libtool.
20579 # GNU Libtool is free software; you can redistribute it and/or
20580 # modify it under the terms of the GNU General Public License as
20581 # published by the Free Software Foundation; either version 2 of
20582 # the License, or (at your option) any later version.
20584 # As a special exception to the GNU General Public License,
20585 # if you distribute this file as part of a program or library that
20586 # is built using GNU Libtool, you may include this file under the
20587 # same distribution terms that you use for the rest of that program.
20589 # GNU Libtool is distributed in the hope that it will be useful,
20590 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20591 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20592 # GNU General Public License for more details.
20594 # You should have received a copy of the GNU General Public License
20595 # along with GNU Libtool; see the file COPYING. If not, a copy
20596 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20597 # obtained by writing to the Free Software Foundation, Inc.,
20598 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20601 # The names of the tagged configurations supported by this script.
20604 # ### BEGIN LIBTOOL CONFIG
20606 # Which release of libtool.m4 was used?
20607 macro_version=$macro_version
20608 macro_revision=$macro_revision
20610 # Whether or not to build shared libraries.
20611 build_libtool_libs=$enable_shared
20613 # Whether or not to build static libraries.
20614 build_old_libs=$enable_static
20616 # What type of objects to build.
20619 # Whether or not to optimize for fast installation.
20620 fast_install=$enable_fast_install
20622 # Shell to use when invoking shell scripts.
20625 # An echo program that protects backslashes.
20628 # The PATH separator for the build system.
20629 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20632 host_alias=$host_alias
20636 # The build system.
20637 build_alias=$build_alias
20641 # A sed program that does not truncate output.
20644 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20645 Xsed="\$SED -e 1s/^X//"
20647 # A grep program that handles long lines.
20653 # A literal string matcher.
20656 # A BSD- or MS-compatible name lister.
20659 # Whether we need soft or hard links.
20662 # What is the maximum length of a command?
20663 max_cmd_len=$max_cmd_len
20665 # Object file suffix (normally "o").
20668 # Executable file suffix (normally "").
20671 # whether the shell understands "unset".
20674 # turn spaces into newlines.
20677 # turn newlines into spaces.
20680 # convert \$build file names to \$host format.
20681 to_host_file_cmd=$lt_cv_to_host_file_cmd
20683 # convert \$build files to toolchain format.
20684 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20686 # An object symbol dumper.
20687 OBJDUMP=$lt_OBJDUMP
20689 # Method to check whether dependent libraries are shared objects.
20690 deplibs_check_method=$lt_deplibs_check_method
20692 # Command to use when deplibs_check_method = "file_magic".
20693 file_magic_cmd=$lt_file_magic_cmd
20695 # How to find potential files when deplibs_check_method = "file_magic".
20696 file_magic_glob=$lt_file_magic_glob
20698 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20699 want_nocaseglob=$lt_want_nocaseglob
20701 # DLL creation program.
20702 DLLTOOL=$lt_DLLTOOL
20704 # Command to associate shared and link libraries.
20705 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20710 # Flags to create an archive.
20711 AR_FLAGS=$lt_AR_FLAGS
20713 # How to feed a file listing to the archiver.
20714 archiver_list_spec=$lt_archiver_list_spec
20716 # A symbol stripping program.
20719 # Commands used to install an old-style archive.
20721 old_postinstall_cmds=$lt_old_postinstall_cmds
20722 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20724 # Whether to use a lock for old archive extraction.
20725 lock_old_archive_extraction=$lock_old_archive_extraction
20730 # LTCC compiler flags.
20731 LTCFLAGS=$lt_CFLAGS
20733 # Take the output of nm and produce a listing of raw symbols and C names.
20734 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20736 # Transform the output of nm in a proper C declaration.
20737 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20739 # Transform the output of nm in a C name address pair.
20740 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20742 # Transform the output of nm in a C name address pair when lib prefix is needed.
20743 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20745 # Specify filename containing input files for \$NM.
20746 nm_file_list_spec=$lt_nm_file_list_spec
20748 # The root where to search for dependent libraries,and in which our libraries should be installed.
20749 lt_sysroot=$lt_sysroot
20751 # The name of the directory that contains temporary libtool files.
20754 # Used to examine libraries when file_magic_cmd begins with "file".
20755 MAGIC_CMD=$MAGIC_CMD
20757 # Must we lock files when doing compilation?
20758 need_locks=$lt_need_locks
20761 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20763 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20764 DSYMUTIL=$lt_DSYMUTIL
20766 # Tool to change global to local symbols on Mac OS X.
20769 # Tool to manipulate fat objects and archives on Mac OS X.
20772 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20775 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20776 OTOOL64=$lt_OTOOL64
20778 # Old archive suffix (normally "a").
20781 # Shared library suffix (normally ".so").
20782 shrext_cmds=$lt_shrext_cmds
20784 # The commands to extract the exported symbol list from a shared archive.
20785 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20787 # Variables whose values should be saved in libtool wrapper scripts and
20788 # restored at link time.
20789 variables_saved_for_relink=$lt_variables_saved_for_relink
20791 # Do we need the "lib" prefix for modules?
20792 need_lib_prefix=$need_lib_prefix
20794 # Do we need a version for libraries?
20795 need_version=$need_version
20797 # Library versioning type.
20798 version_type=$version_type
20800 # Shared library runtime path variable.
20801 runpath_var=$runpath_var
20803 # Shared library path variable.
20804 shlibpath_var=$shlibpath_var
20806 # Is shlibpath searched before the hard-coded library search path?
20807 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20809 # Format of library name prefix.
20810 libname_spec=$lt_libname_spec
20812 # List of archive names. First name is the real one, the rest are links.
20813 # The last name is the one that the linker finds with -lNAME
20814 library_names_spec=$lt_library_names_spec
20816 # The coded name of the library, if different from the real name.
20817 soname_spec=$lt_soname_spec
20819 # Permission mode override for installation of shared libraries.
20820 install_override_mode=$lt_install_override_mode
20822 # Command to use after installation of a shared archive.
20823 postinstall_cmds=$lt_postinstall_cmds
20825 # Command to use after uninstallation of a shared archive.
20826 postuninstall_cmds=$lt_postuninstall_cmds
20828 # Commands used to finish a libtool library installation in a directory.
20829 finish_cmds=$lt_finish_cmds
20831 # As "finish_cmds", except a single script fragment to be evaled but
20833 finish_eval=$lt_finish_eval
20835 # Whether we should hardcode library paths into libraries.
20836 hardcode_into_libs=$hardcode_into_libs
20838 # Compile-time system search path for libraries.
20839 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20841 # Run-time system search path for libraries.
20842 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20844 # Whether dlopen is supported.
20845 dlopen_support=$enable_dlopen
20847 # Whether dlopen of programs is supported.
20848 dlopen_self=$enable_dlopen_self
20850 # Whether dlopen of statically linked programs is supported.
20851 dlopen_self_static=$enable_dlopen_self_static
20853 # Commands to strip libraries.
20854 old_striplib=$lt_old_striplib
20855 striplib=$lt_striplib
20858 # The linker used to build libraries.
20861 # How to create reloadable object files.
20862 reload_flag=$lt_reload_flag
20863 reload_cmds=$lt_reload_cmds
20865 # Commands used to build an old-style archive.
20866 old_archive_cmds=$lt_old_archive_cmds
20868 # A language specific compiler.
20871 # Is the compiler the GNU compiler?
20874 # Compiler flag to turn off builtin functions.
20875 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20877 # Additional compiler flags for building library objects.
20878 pic_flag=$lt_lt_prog_compiler_pic
20880 # How to pass a linker flag through the compiler.
20881 wl=$lt_lt_prog_compiler_wl
20883 # Compiler flag to prevent dynamic linking.
20884 link_static_flag=$lt_lt_prog_compiler_static
20886 # Does compiler simultaneously support -c and -o options?
20887 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20889 # Whether or not to add -lc for building shared libraries.
20890 build_libtool_need_lc=$archive_cmds_need_lc
20892 # Whether or not to disallow shared libs when runtime libs are static.
20893 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20895 # Compiler flag to allow reflexive dlopens.
20896 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20898 # Compiler flag to generate shared objects directly from archives.
20899 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20901 # Whether the compiler copes with passing no objects directly.
20902 compiler_needs_object=$lt_compiler_needs_object
20904 # Create an old-style archive from a shared archive.
20905 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20907 # Create a temporary old-style archive to link instead of a shared archive.
20908 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20910 # Commands used to build a shared archive.
20911 archive_cmds=$lt_archive_cmds
20912 archive_expsym_cmds=$lt_archive_expsym_cmds
20914 # Commands used to build a loadable module if different from building
20915 # a shared archive.
20916 module_cmds=$lt_module_cmds
20917 module_expsym_cmds=$lt_module_expsym_cmds
20919 # Whether we are building with GNU ld or not.
20920 with_gnu_ld=$lt_with_gnu_ld
20922 # Flag that allows shared libraries with undefined symbols to be built.
20923 allow_undefined_flag=$lt_allow_undefined_flag
20925 # Flag that enforces no undefined symbols.
20926 no_undefined_flag=$lt_no_undefined_flag
20928 # Flag to hardcode \$libdir into a binary during linking.
20929 # This must work even if \$libdir does not exist
20930 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20932 # Whether we need a single "-rpath" flag with a separated argument.
20933 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20935 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20936 # DIR into the resulting binary.
20937 hardcode_direct=$hardcode_direct
20939 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20940 # DIR into the resulting binary and the resulting library dependency is
20941 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20942 # library is relocated.
20943 hardcode_direct_absolute=$hardcode_direct_absolute
20945 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20946 # into the resulting binary.
20947 hardcode_minus_L=$hardcode_minus_L
20949 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20950 # into the resulting binary.
20951 hardcode_shlibpath_var=$hardcode_shlibpath_var
20953 # Set to "yes" if building a shared library automatically hardcodes DIR
20954 # into the library and all subsequent libraries and executables linked
20956 hardcode_automatic=$hardcode_automatic
20958 # Set to yes if linker adds runtime paths of dependent libraries
20959 # to runtime path list.
20960 inherit_rpath=$inherit_rpath
20962 # Whether libtool must link a program against all its dependency libraries.
20963 link_all_deplibs=$link_all_deplibs
20965 # Set to "yes" if exported symbols are required.
20966 always_export_symbols=$always_export_symbols
20968 # The commands to list exported symbols.
20969 export_symbols_cmds=$lt_export_symbols_cmds
20971 # Symbols that should not be listed in the preloaded symbols.
20972 exclude_expsyms=$lt_exclude_expsyms
20974 # Symbols that must always be exported.
20975 include_expsyms=$lt_include_expsyms
20977 # Commands necessary for linking programs (against libraries) with templates.
20978 prelink_cmds=$lt_prelink_cmds
20980 # Commands necessary for finishing linking programs.
20981 postlink_cmds=$lt_postlink_cmds
20983 # Specify filename containing input files.
20984 file_list_spec=$lt_file_list_spec
20986 # How to hardcode a shared library path into an executable.
20987 hardcode_action=$hardcode_action
20989 # ### END LIBTOOL CONFIG
20995 cat <<\_LT_EOF >> "$cfgfile"
20996 # AIX sometimes has problems with the GCC collect2 program. For some
20997 # reason, if we set the COLLECT_NAMES environment variable, the problems
20998 # vanish in a puff of smoke.
20999 if test "X${COLLECT_NAMES+set}" != Xset; then
21001 export COLLECT_NAMES
21008 ltmain="$ac_aux_dir/ltmain.sh"
21011 # We use sed instead of cat because bash on DJGPP gets confused if
21012 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21013 # text mode, it properly converts lines to CR/LF. This bash problem
21014 # is reportedly fixed, but why not run on old versions too?
21015 sed '$q' "$ltmain" >> "$cfgfile" \
21016 || (rm -f "$cfgfile"; exit 1)
21018 if test x"$xsi_shell" = xyes; then
21019 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21023 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21024 \ * ) func_dirname_result="${3}" ;;\
21026 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21027 && mv -f "$cfgfile.tmp" "$cfgfile" \
21028 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21029 test 0 -eq $? || _lt_function_replace_fail=:
21032 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21035 \ func_basename_result="${1##*/}"\
21036 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21037 && mv -f "$cfgfile.tmp" "$cfgfile" \
21038 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21039 test 0 -eq $? || _lt_function_replace_fail=:
21042 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21043 func_dirname_and_basename ()\
21046 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21047 \ * ) func_dirname_result="${3}" ;;\
21049 \ func_basename_result="${1##*/}"\
21050 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21051 && mv -f "$cfgfile.tmp" "$cfgfile" \
21052 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21053 test 0 -eq $? || _lt_function_replace_fail=:
21056 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21059 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21060 \ # positional parameters, so assign one to ordinary parameter first.\
21061 \ func_stripname_result=${3}\
21062 \ func_stripname_result=${func_stripname_result#"${1}"}\
21063 \ func_stripname_result=${func_stripname_result%"${2}"}\
21064 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21065 && mv -f "$cfgfile.tmp" "$cfgfile" \
21066 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21067 test 0 -eq $? || _lt_function_replace_fail=:
21070 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21071 func_split_long_opt ()\
21073 \ func_split_long_opt_name=${1%%=*}\
21074 \ func_split_long_opt_arg=${1#*=}\
21075 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21076 && mv -f "$cfgfile.tmp" "$cfgfile" \
21077 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21078 test 0 -eq $? || _lt_function_replace_fail=:
21081 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21082 func_split_short_opt ()\
21084 \ func_split_short_opt_arg=${1#??}\
21085 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21086 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21087 && mv -f "$cfgfile.tmp" "$cfgfile" \
21088 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21089 test 0 -eq $? || _lt_function_replace_fail=:
21092 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21096 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21097 \ *) func_lo2o_result=${1} ;;\
21099 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21100 && mv -f "$cfgfile.tmp" "$cfgfile" \
21101 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21102 test 0 -eq $? || _lt_function_replace_fail=:
21105 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21108 func_xform_result=${1%.*}.lo\
21109 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21110 && mv -f "$cfgfile.tmp" "$cfgfile" \
21111 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21112 test 0 -eq $? || _lt_function_replace_fail=:
21115 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21118 func_arith_result=$(( $* ))\
21119 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21120 && mv -f "$cfgfile.tmp" "$cfgfile" \
21121 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21122 test 0 -eq $? || _lt_function_replace_fail=:
21125 sed -e '/^func_len ()$/,/^} # func_len /c\
21128 func_len_result=${#1}\
21129 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21130 && mv -f "$cfgfile.tmp" "$cfgfile" \
21131 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21132 test 0 -eq $? || _lt_function_replace_fail=:
21136 if test x"$lt_shell_append" = xyes; then
21137 sed -e '/^func_append ()$/,/^} # func_append /c\
21140 eval "${1}+=\\${2}"\
21141 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21142 && mv -f "$cfgfile.tmp" "$cfgfile" \
21143 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21144 test 0 -eq $? || _lt_function_replace_fail=:
21147 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21148 func_append_quoted ()\
21150 \ func_quote_for_eval "${2}"\
21151 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21152 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21153 && mv -f "$cfgfile.tmp" "$cfgfile" \
21154 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21155 test 0 -eq $? || _lt_function_replace_fail=:
21158 # Save a `func_append' function call where possible by direct use of '+='
21159 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21160 && mv -f "$cfgfile.tmp" "$cfgfile" \
21161 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21162 test 0 -eq $? || _lt_function_replace_fail=:
21164 # Save a `func_append' function call even when '+=' is not available
21165 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21166 && mv -f "$cfgfile.tmp" "$cfgfile" \
21167 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21168 test 0 -eq $? || _lt_function_replace_fail=:
21171 if test x"$_lt_function_replace_fail" = x":"; then
21172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21173 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21177 mv -f "$cfgfile" "$ofile" ||
21178 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21183 cp -f libtool libtool_
21184 test -z "$SED" && SED=sed
21185 $SED '1,/^soname_spec/{
21187 # X.Org hack to match monolithic Xaw SONAME\
21188 xorglibxawname="libXaw"
21189 /^soname_spec/s/libname/xorglibxawname/
21190 }' libtool_ > libtool
21200 ac_clean_files=$ac_clean_files_save
21202 test $ac_write_fail = 0 ||
21203 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21206 # configure is writing to config.log, and then calls config.status.
21207 # config.status does its own redirection, appending to config.log.
21208 # Unfortunately, on DOS this fails, as config.log is still kept open
21209 # by configure, so config.status won't be able to write to it; its
21210 # output is simply discarded. So we exec the FD to /dev/null,
21211 # effectively closing config.log, so it can be properly (re)opened and
21212 # appended to by config.status. When coming back to configure, we
21213 # need to make the FD available again.
21214 if test "$no_create" != yes; then
21216 ac_config_status_args=
21217 test "$silent" = yes &&
21218 ac_config_status_args="$ac_config_status_args --quiet"
21220 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21222 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21223 # would make configure fail if this is the last instruction.
21224 $ac_cs_success || as_fn_exit 1
21226 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21228 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}