2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXmu 1.1.1.
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
271 # Portably unset VAR.
274 { eval $1=; unset $1;}
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
298 # Create "$as_dir" as a directory, including parents if necessary.
303 -*) as_dir=./$as_dir;;
305 test -d "$as_dir" || eval $as_mkdir_p || {
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 test -d "$as_dir" && break
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
374 as_val=`expr "$@" || test $? -eq 1`
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
386 as_status=$1; test $as_status -eq 0 && as_status=1
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
468 # Exit status is that of the last command.
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
490 mkdir conf$$.dir 2>/dev/null
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
515 test -d ./-p && rmdir ./-p
519 if test -x / >/dev/null 2>&1; then
522 if ls -dL / >/dev/null 2>&1; then
529 if test -d "$1"; then
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
540 as_executable_p=$as_test_x
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548 SHELL=${CONFIG_SHELL-/bin/sh}
551 # Use only awk features that work with 7th edition Unix awk (1978).
552 # My, what an old awk you have, Mr. Solaris!
554 while (length(v1) && length(v2)) {
555 # Set d1 to be the next thing to compare from v1, and likewise for d2.
556 # Normally this is a single character, but if v1 and v2 contain digits,
557 # compare them as integers and fractions as strverscmp does.
558 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
559 # Split v1 and v2 into their leading digit string components d1 and d2,
560 # and advance v1 and v2 past the leading digit strings.
561 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
562 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
563 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
564 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
567 # Compare two fractions.
568 while (d1 ~ /^0/ && d2 ~ /^0/) {
569 d1 = substr(d1, 2); len1--
570 d2 = substr(d2, 2); len2--
572 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
573 # The two components differ in length, and the common prefix
574 # contains only leading zeros. Consider the longer to be less.
578 # Otherwise, compare as strings.
583 # A fraction is less than an integer.
588 # An integer is greater than a fraction.
591 # Compare two integers.
597 # The normal case, without worrying about digits.
598 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
599 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
604 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
605 # which mishandles some comparisons of empty strings to integers.
606 if (length(v2)) exit 1
607 if (length(v1)) exit 2
611 test -n "$DJDIR" || exec 7<&0 </dev/null
615 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
616 # so uname gets run too.
617 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
622 ac_default_prefix=/usr/local
624 ac_config_libobj_dir=.
631 # Identity of this package.
632 PACKAGE_NAME='libXmu'
633 PACKAGE_TARNAME='libXmu'
634 PACKAGE_VERSION='1.1.1'
635 PACKAGE_STRING='libXmu 1.1.1'
636 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
639 ac_unique_file="Makefile.am"
640 # Factoring default headers for most tests.
641 ac_includes_default="\
643 #ifdef HAVE_SYS_TYPES_H
644 # include <sys/types.h>
646 #ifdef HAVE_SYS_STAT_H
647 # include <sys/stat.h>
653 # ifdef HAVE_STDLIB_H
658 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
663 #ifdef HAVE_STRINGS_H
664 # include <strings.h>
666 #ifdef HAVE_INTTYPES_H
667 # include <inttypes.h>
676 ac_subst_vars='am__EXEEXT_FALSE
692 HAVE_STYLESHEETS_FALSE
693 HAVE_STYLESHEETS_TRUE
705 HAVE_XMLTO_TEXT_FALSE
779 MAINTAINER_MODE_FALSE
789 INSTALL_STRIP_PROGRAM
831 program_transform_name
844 enable_option_checking
845 enable_maintainer_mode
850 enable_dependency_tracking
854 enable_selective_werror
855 enable_strict_compilation
861 enable_unix_transport
864 enable_local_transport
868 ac_precious_vars='build_alias
889 # Initialize some variables set by options.
891 ac_init_version=false
892 ac_unrecognized_opts=
894 # The variables have the same names as the options, with
895 # dashes changed to underlines.
903 program_transform_name=s,x,x,
911 # Installation directory options.
912 # These are left unexpanded so users can "make install exec_prefix=/foo"
913 # and all the variables that are supposed to be based on exec_prefix
914 # by default will actually change.
915 # Use braces instead of parens because sh, perl, etc. also accept them.
916 # (The list follows the same order as the GNU Coding Standards.)
917 bindir='${exec_prefix}/bin'
918 sbindir='${exec_prefix}/sbin'
919 libexecdir='${exec_prefix}/libexec'
920 datarootdir='${prefix}/share'
921 datadir='${datarootdir}'
922 sysconfdir='${prefix}/etc'
923 sharedstatedir='${prefix}/com'
924 localstatedir='${prefix}/var'
925 includedir='${prefix}/include'
926 oldincludedir='/usr/include'
927 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
928 infodir='${datarootdir}/info'
933 libdir='${exec_prefix}/lib'
934 localedir='${datarootdir}/locale'
935 mandir='${datarootdir}/man'
941 # If the previous option needs an argument, assign it.
942 if test -n "$ac_prev"; then
943 eval $ac_prev=\$ac_option
949 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
954 # Accept the important Cygnus configure options, so we can diagnose typos.
956 case $ac_dashdash$ac_option in
960 -bindir | --bindir | --bindi | --bind | --bin | --bi)
962 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
965 -build | --build | --buil | --bui | --bu)
966 ac_prev=build_alias ;;
967 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
968 build_alias=$ac_optarg ;;
970 -cache-file | --cache-file | --cache-fil | --cache-fi \
971 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972 ac_prev=cache_file ;;
973 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
975 cache_file=$ac_optarg ;;
978 cache_file=config.cache ;;
980 -datadir | --datadir | --datadi | --datad)
982 -datadir=* | --datadir=* | --datadi=* | --datad=*)
983 datadir=$ac_optarg ;;
985 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986 | --dataroo | --dataro | --datar)
987 ac_prev=datarootdir ;;
988 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990 datarootdir=$ac_optarg ;;
992 -disable-* | --disable-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 as_fn_error $? "invalid feature name: $ac_useropt"
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1001 "enable_$ac_useropt"
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1006 eval enable_$ac_useropt=no ;;
1008 -docdir | --docdir | --docdi | --doc | --do)
1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011 docdir=$ac_optarg ;;
1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016 dvidir=$ac_optarg ;;
1018 -enable-* | --enable-*)
1019 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022 as_fn_error $? "invalid feature name: $ac_useropt"
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1027 "enable_$ac_useropt"
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
1032 eval enable_$ac_useropt=\$ac_optarg ;;
1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036 | --exec | --exe | --ex)
1037 ac_prev=exec_prefix ;;
1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040 | --exec=* | --exe=* | --ex=*)
1041 exec_prefix=$ac_optarg ;;
1043 -gas | --gas | --ga | --g)
1044 # Obsolete; use --with-gas.
1047 -help | --help | --hel | --he | -h)
1048 ac_init_help=long ;;
1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050 ac_init_help=recursive ;;
1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052 ac_init_help=short ;;
1054 -host | --host | --hos | --ho)
1055 ac_prev=host_alias ;;
1056 -host=* | --host=* | --hos=* | --ho=*)
1057 host_alias=$ac_optarg ;;
1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1063 htmldir=$ac_optarg ;;
1065 -includedir | --includedir | --includedi | --included | --include \
1066 | --includ | --inclu | --incl | --inc)
1067 ac_prev=includedir ;;
1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069 | --includ=* | --inclu=* | --incl=* | --inc=*)
1070 includedir=$ac_optarg ;;
1072 -infodir | --infodir | --infodi | --infod | --info | --inf)
1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075 infodir=$ac_optarg ;;
1077 -libdir | --libdir | --libdi | --libd)
1079 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1080 libdir=$ac_optarg ;;
1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083 | --libexe | --libex | --libe)
1084 ac_prev=libexecdir ;;
1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086 | --libexe=* | --libex=* | --libe=*)
1087 libexecdir=$ac_optarg ;;
1089 -localedir | --localedir | --localedi | --localed | --locale)
1090 ac_prev=localedir ;;
1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092 localedir=$ac_optarg ;;
1094 -localstatedir | --localstatedir | --localstatedi | --localstated \
1095 | --localstate | --localstat | --localsta | --localst | --locals)
1096 ac_prev=localstatedir ;;
1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1099 localstatedir=$ac_optarg ;;
1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104 mandir=$ac_optarg ;;
1106 -nfp | --nfp | --nf)
1107 # Obsolete; use --without-fp.
1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111 | --no-cr | --no-c | -n)
1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120 | --oldin | --oldi | --old | --ol | --o)
1121 ac_prev=oldincludedir ;;
1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125 oldincludedir=$ac_optarg ;;
1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130 prefix=$ac_optarg ;;
1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133 | --program-pre | --program-pr | --program-p)
1134 ac_prev=program_prefix ;;
1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137 program_prefix=$ac_optarg ;;
1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140 | --program-suf | --program-su | --program-s)
1141 ac_prev=program_suffix ;;
1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144 program_suffix=$ac_optarg ;;
1146 -program-transform-name | --program-transform-name \
1147 | --program-transform-nam | --program-transform-na \
1148 | --program-transform-n | --program-transform- \
1149 | --program-transform | --program-transfor \
1150 | --program-transfo | --program-transf \
1151 | --program-trans | --program-tran \
1152 | --progr-tra | --program-tr | --program-t)
1153 ac_prev=program_transform_name ;;
1154 -program-transform-name=* | --program-transform-name=* \
1155 | --program-transform-nam=* | --program-transform-na=* \
1156 | --program-transform-n=* | --program-transform-=* \
1157 | --program-transform=* | --program-transfor=* \
1158 | --program-transfo=* | --program-transf=* \
1159 | --program-trans=* | --program-tran=* \
1160 | --progr-tra=* | --program-tr=* | --program-t=*)
1161 program_transform_name=$ac_optarg ;;
1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166 pdfdir=$ac_optarg ;;
1168 -psdir | --psdir | --psdi | --psd | --ps)
1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174 | -silent | --silent | --silen | --sile | --sil)
1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1181 sbindir=$ac_optarg ;;
1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185 | --sharedst | --shareds | --shared | --share | --shar \
1187 ac_prev=sharedstatedir ;;
1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1192 sharedstatedir=$ac_optarg ;;
1194 -site | --site | --sit)
1196 -site=* | --site=* | --sit=*)
1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1202 srcdir=$ac_optarg ;;
1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205 | --syscon | --sysco | --sysc | --sys | --sy)
1206 ac_prev=sysconfdir ;;
1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1209 sysconfdir=$ac_optarg ;;
1211 -target | --target | --targe | --targ | --tar | --ta | --t)
1212 ac_prev=target_alias ;;
1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1214 target_alias=$ac_optarg ;;
1216 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1219 -version | --version | --versio | --versi | --vers | -V)
1220 ac_init_version=: ;;
1223 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 as_fn_error $? "invalid package name: $ac_useropt"
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1236 eval with_$ac_useropt=\$ac_optarg ;;
1238 -without-* | --without-*)
1239 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242 as_fn_error $? "invalid package name: $ac_useropt"
1243 ac_useropt_orig=$ac_useropt
1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1252 eval with_$ac_useropt=no ;;
1255 # Obsolete; use --with-x.
1258 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1259 | --x-incl | --x-inc | --x-in | --x-i)
1260 ac_prev=x_includes ;;
1261 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1262 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1263 x_includes=$ac_optarg ;;
1265 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1266 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1267 ac_prev=x_libraries ;;
1268 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1269 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1270 x_libraries=$ac_optarg ;;
1272 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1273 Try \`$0 --help' for more information"
1277 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1278 # Reject names that are not valid shell variable names.
1279 case $ac_envvar in #(
1280 '' | [0-9]* | *[!_$as_cr_alnum]* )
1281 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1283 eval $ac_envvar=\$ac_optarg
1284 export $ac_envvar ;;
1287 # FIXME: should be removed in autoconf 3.0.
1288 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1289 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1290 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1291 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1297 if test -n "$ac_prev"; then
1298 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1299 as_fn_error $? "missing argument to $ac_option"
1302 if test -n "$ac_unrecognized_opts"; then
1303 case $enable_option_checking in
1305 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1306 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1310 # Check all directory arguments for consistency.
1311 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1312 datadir sysconfdir sharedstatedir localstatedir includedir \
1313 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1314 libdir localedir mandir
1316 eval ac_val=\$$ac_var
1317 # Remove trailing slashes.
1320 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1321 eval $ac_var=\$ac_val;;
1323 # Be sure to have absolute directory names.
1325 [\\/$]* | ?:[\\/]* ) continue;;
1326 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1328 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1331 # There might be people who depend on the old broken behavior: `$host'
1332 # used to hold the argument of --host etc.
1333 # FIXME: To remove some day.
1336 target=$target_alias
1338 # FIXME: To remove some day.
1339 if test "x$host_alias" != x; then
1340 if test "x$build_alias" = x; then
1341 cross_compiling=maybe
1342 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1343 If a cross compiler is detected then cross compile mode will be used" >&2
1344 elif test "x$build_alias" != "x$host_alias"; then
1350 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1352 test "$silent" = yes && exec 6>/dev/null
1355 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1356 ac_ls_di=`ls -di .` &&
1357 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1358 as_fn_error $? "working directory cannot be determined"
1359 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1360 as_fn_error $? "pwd does not report name of working directory"
1363 # Find the source files, if location was not specified.
1364 if test -z "$srcdir"; then
1365 ac_srcdir_defaulted=yes
1366 # Try the directory containing this script, then the parent directory.
1367 ac_confdir=`$as_dirname -- "$as_myself" ||
1368 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1369 X"$as_myself" : 'X\(//\)[^/]' \| \
1370 X"$as_myself" : 'X\(//\)$' \| \
1371 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1372 $as_echo X"$as_myself" |
1373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1391 if test ! -r "$srcdir/$ac_unique_file"; then
1395 ac_srcdir_defaulted=no
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1398 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1399 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1401 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1403 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1405 # When building in place, set srcdir=.
1406 if test "$ac_abs_confdir" = "$ac_pwd"; then
1409 # Remove unnecessary trailing slashes from srcdir.
1410 # Double slashes in file names in object file debugging info
1411 # mess up M-x gdb in Emacs.
1413 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1415 for ac_var in $ac_precious_vars; do
1416 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_env_${ac_var}_value=\$${ac_var}
1418 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1419 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423 # Report the --help message.
1425 if test "$ac_init_help" = "long"; then
1426 # Omit some internal or obsolete options to make the list less imposing.
1427 # This message is too long to be a string in the A/UX 3.1 sh.
1429 \`configure' configures libXmu 1.1.1 to adapt to many kinds of systems.
1431 Usage: $0 [OPTION]... [VAR=VALUE]...
1433 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1434 VAR=VALUE. See below for descriptions of some of the useful variables.
1436 Defaults for the options are specified in brackets.
1439 -h, --help display this help and exit
1440 --help=short display options specific to this package
1441 --help=recursive display the short help of all the included packages
1442 -V, --version display version information and exit
1443 -q, --quiet, --silent do not print \`checking ...' messages
1444 --cache-file=FILE cache test results in FILE [disabled]
1445 -C, --config-cache alias for \`--cache-file=config.cache'
1446 -n, --no-create do not create output files
1447 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1449 Installation directories:
1450 --prefix=PREFIX install architecture-independent files in PREFIX
1451 [$ac_default_prefix]
1452 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1455 By default, \`make install' will install all the files in
1456 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1457 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1458 for instance \`--prefix=\$HOME'.
1460 For better control, use the options below.
1462 Fine tuning of the installation directories:
1463 --bindir=DIR user executables [EPREFIX/bin]
1464 --sbindir=DIR system admin executables [EPREFIX/sbin]
1465 --libexecdir=DIR program executables [EPREFIX/libexec]
1466 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1467 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1468 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1469 --libdir=DIR object code libraries [EPREFIX/lib]
1470 --includedir=DIR C header files [PREFIX/include]
1471 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1472 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1473 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1474 --infodir=DIR info documentation [DATAROOTDIR/info]
1475 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1476 --mandir=DIR man documentation [DATAROOTDIR/man]
1477 --docdir=DIR documentation root [DATAROOTDIR/doc/libXmu]
1478 --htmldir=DIR html documentation [DOCDIR]
1479 --dvidir=DIR dvi documentation [DOCDIR]
1480 --pdfdir=DIR pdf documentation [DOCDIR]
1481 --psdir=DIR ps documentation [DOCDIR]
1487 --program-prefix=PREFIX prepend PREFIX to installed program names
1488 --program-suffix=SUFFIX append SUFFIX to installed program names
1489 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1492 --build=BUILD configure for building on BUILD [guessed]
1493 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1497 if test -n "$ac_init_help"; then
1498 case $ac_init_help in
1499 short | recursive ) echo "Configuration of libXmu 1.1.1:";;
1504 --disable-option-checking ignore unrecognized --enable/--with options
1505 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1506 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1507 --enable-maintainer-mode enable make rules and dependencies not useful
1508 (and sometimes confusing) to the casual installer
1509 --enable-shared[=PKGS] build shared libraries [default=yes]
1510 --enable-static[=PKGS] build static libraries [default=yes]
1511 --enable-fast-install[=PKGS]
1512 optimize for fast installation [default=yes]
1513 --disable-dependency-tracking speeds up one-time build
1514 --enable-dependency-tracking do not reject slow dependency extractors
1515 --disable-libtool-lock avoid locking (might break parallel builds)
1516 --disable-selective-werror
1517 Turn off selective compiler errors. (default:
1519 --enable-strict-compilation
1520 Enable all warnings from compiler and make them
1521 errors (default: disabled)
1522 --enable-silent-rules less verbose build output (undo: `make V=1')
1523 --disable-silent-rules verbose build output (undo: `make V=0')
1524 --enable-docs Enable building the documentation (default: yes)
1525 --enable-unix-transport Enable UNIX domain socket transport
1526 --enable-tcp-transport Enable TCP socket transport
1527 --enable-ipv6 Enable IPv6 support
1528 --enable-local-transport
1529 Enable os-specific local transport
1530 --enable-lint-library Create lint library (default: disabled)
1533 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1534 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1535 --with-pic try to use only PIC/non-PIC objects [default=use
1537 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1538 --with-sysroot=DIR Search for dependent libraries within DIR
1539 (or the compiler's sysroot if not specified).
1540 --with-xmlto Use xmlto to regenerate documentation (default:
1542 --with-fop Use fop to regenerate documentation (default: auto)
1543 --with-xsltproc Use xsltproc for the transformation of XML documents
1545 --with-lint Use a lint-style source code checker (default:
1548 Some influential environment variables:
1549 CC C compiler command
1550 CFLAGS C compiler flags
1551 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1552 nonstandard directory <lib dir>
1553 LIBS libraries to pass to the linker, e.g. -l<library>
1554 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1555 you have headers in a nonstandard directory <include dir>
1557 PKG_CONFIG path to pkg-config utility
1558 XMLTO Path to xmlto command
1559 FOP Path to fop command
1560 XSLTPROC Path to xsltproc command
1561 XMU_CFLAGS C compiler flags for XMU, overriding pkg-config
1562 XMU_LIBS linker flags for XMU, overriding pkg-config
1563 XMUU_CFLAGS C compiler flags for XMUU, overriding pkg-config
1564 XMUU_LIBS linker flags for XMUU, overriding pkg-config
1565 LINT Path to a lint-style command
1566 LINT_FLAGS Flags for the lint-style command
1568 Use these variables to override the choices made by `configure' or to help
1569 it to find libraries and programs with nonstandard names/locations.
1571 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1576 if test "$ac_init_help" = "recursive"; then
1577 # If there are subdirs, report their specific --help.
1578 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579 test -d "$ac_dir" ||
1580 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1585 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1588 # A ".." for each directory in $ac_dir_suffix.
1589 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1590 case $ac_top_builddir_sub in
1591 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595 ac_abs_top_builddir=$ac_pwd
1596 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1597 # for backward compatibility:
1598 ac_top_builddir=$ac_top_build_prefix
1601 .) # We are building in place.
1603 ac_top_srcdir=$ac_top_builddir_sub
1604 ac_abs_top_srcdir=$ac_pwd ;;
1605 [\\/]* | ?:[\\/]* ) # Absolute name.
1606 ac_srcdir=$srcdir$ac_dir_suffix;
1607 ac_top_srcdir=$srcdir
1608 ac_abs_top_srcdir=$srcdir ;;
1610 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1611 ac_top_srcdir=$ac_top_build_prefix$srcdir
1612 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1614 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1616 cd "$ac_dir" || { ac_status=$?; continue; }
1617 # Check for guested configure.
1618 if test -f "$ac_srcdir/configure.gnu"; then
1620 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1621 elif test -f "$ac_srcdir/configure"; then
1623 $SHELL "$ac_srcdir/configure" --help=recursive
1625 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1627 cd "$ac_pwd" || { ac_status=$?; break; }
1631 test -n "$ac_init_help" && exit $ac_status
1632 if $ac_init_version; then
1634 libXmu configure 1.1.1
1635 generated by GNU Autoconf 2.68
1637 Copyright (C) 2010 Free Software Foundation, Inc.
1638 This configure script is free software; the Free Software Foundation
1639 gives unlimited permission to copy, distribute and modify it.
1644 ## ------------------------ ##
1645 ## Autoconf initialization. ##
1646 ## ------------------------ ##
1648 # ac_fn_c_try_compile LINENO
1649 # --------------------------
1650 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1651 ac_fn_c_try_compile ()
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 rm -f conftest.$ac_objext
1655 if { { ac_try="$ac_compile"
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_compile") 2>conftest.err
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } && {
1671 test -z "$ac_c_werror_flag" ||
1672 test ! -s conftest.err
1673 } && test -s conftest.$ac_objext; then :
1676 $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 as_fn_set_status $ac_retval
1684 } # ac_fn_c_try_compile
1686 # ac_fn_c_try_link LINENO
1687 # -----------------------
1688 # Try to link conftest.$ac_ext, and return whether this succeeded.
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 rm -f conftest.$ac_objext conftest$ac_exeext
1693 if { { ac_try="$ac_link"
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_link") 2>conftest.err
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && {
1709 test -z "$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 } && test -s conftest$ac_exeext && {
1712 test "$cross_compiling" = yes ||
1713 $as_test_x conftest$ac_exeext
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1722 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1723 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1724 # interfere with the next link command; also delete a directory that is
1725 # left behind by Apple's compiler. We do this before executing the actions.
1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 as_fn_set_status $ac_retval
1730 } # ac_fn_c_try_link
1732 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1733 # -------------------------------------------------------
1734 # Tests whether HEADER exists and can be compiled using the include files in
1735 # INCLUDES, setting the cache variable VAR accordingly.
1736 ac_fn_c_check_header_compile ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if eval \${$3+:} false; then :
1742 $as_echo_n "(cached) " >&6
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1749 if ac_fn_c_try_compile "$LINENO"; then :
1754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 $as_echo "$ac_res" >&6; }
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 } # ac_fn_c_check_header_compile
1763 # ac_fn_c_try_cpp LINENO
1764 # ----------------------
1765 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if { { ac_try="$ac_cpp conftest.$ac_ext"
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } > conftest.i && {
1785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 as_fn_set_status $ac_retval
1800 # ac_fn_c_try_run LINENO
1801 # ----------------------
1802 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1803 # that executables *can* be run.
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 if { { ac_try="$ac_link"
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_link") 2>&5
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1818 { { case "(($ac_try" in
1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820 *) ac_try_echo=$ac_try;;
1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823 $as_echo "$ac_try_echo"; } >&5
1824 (eval "$ac_try") 2>&5
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; }; }; then :
1830 $as_echo "$as_me: program exited with status $ac_status" >&5
1831 $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1834 ac_retval=$ac_status
1836 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 as_fn_set_status $ac_retval
1842 # ac_fn_c_check_func LINENO FUNC VAR
1843 # ----------------------------------
1844 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1845 ac_fn_c_check_func ()
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849 $as_echo_n "checking for $2... " >&6; }
1850 if eval \${$3+:} false; then :
1851 $as_echo_n "(cached) " >&6
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1855 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1857 #define $2 innocuous_$2
1859 /* System header to define __stub macros and hopefully few prototypes,
1860 which can conflict with char $2 (); below.
1861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1862 <limits.h> exists even on freestanding compilers. */
1865 # include <limits.h>
1867 # include <assert.h>
1872 /* Override any GCC internal prototype to avoid an error.
1873 Use char because int might match the return type of a GCC
1874 builtin and then its argument prototype would still apply. */
1879 /* The GNU C library defines this for functions which it implements
1880 to always fail with ENOSYS. Some functions are actually named
1881 something starting with __ and the normal name is an alias. */
1882 #if defined __stub_$2 || defined __stub___$2
1894 if ac_fn_c_try_link "$LINENO"; then :
1899 rm -f core conftest.err conftest.$ac_objext \
1900 conftest$ac_exeext conftest.$ac_ext
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907 } # ac_fn_c_check_func
1909 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1910 # ---------------------------------------------
1911 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1913 ac_fn_c_check_decl ()
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 as_decl_name=`echo $2|sed 's/ *(.*//'`
1917 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1919 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1920 if eval \${$3+:} false; then :
1921 $as_echo_n "(cached) " >&6
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1929 #ifndef $as_decl_name
1931 (void) $as_decl_use;
1933 (void) $as_decl_name;
1941 if ac_fn_c_try_compile "$LINENO"; then :
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953 } # ac_fn_c_check_decl
1955 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1956 # ----------------------------------------------------
1957 # Tries to find if the field MEMBER exists in type AGGR, after including
1958 # INCLUDES, setting cache variable VAR accordingly.
1959 ac_fn_c_check_member ()
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1963 $as_echo_n "checking for $2.$3... " >&6; }
1964 if eval \${$4+:} false; then :
1965 $as_echo_n "(cached) " >&6
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1980 if ac_fn_c_try_compile "$LINENO"; then :
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1990 if (sizeof ac_aggr.$3)
1996 if ac_fn_c_try_compile "$LINENO"; then :
2001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010 } # ac_fn_c_check_member
2012 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2013 # -------------------------------------------
2014 # Tests whether TYPE exists after having included INCLUDES, setting cache
2015 # variable VAR accordingly.
2016 ac_fn_c_check_type ()
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2050 if ac_fn_c_try_compile "$LINENO"; then :
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064 } # ac_fn_c_check_type
2065 cat >config.log <<_ACEOF
2066 This file contains any messages produced by compilers while
2067 running configure, to aid debugging if configure makes a mistake.
2069 It was created by libXmu $as_me 1.1.1, which was
2070 generated by GNU Autoconf 2.68. Invocation command line was
2082 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2083 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2084 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2085 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2086 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2088 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2089 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2091 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2092 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2093 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2094 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2095 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2096 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2097 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 test -z "$as_dir" && as_dir=.
2106 $as_echo "PATH: $as_dir"
2122 # Keep a trace of the command line.
2123 # Strip out --no-create and --no-recursion so they do not pile up.
2124 # Strip out --silent because we don't want to record it for future runs.
2125 # Also quote any args containing shell meta-characters.
2126 # Make two passes to allow for proper duplicate-argument suppression.
2130 ac_must_keep_next=false
2136 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2138 | -silent | --silent | --silen | --sile | --sil)
2141 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2144 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2146 as_fn_append ac_configure_args1 " '$ac_arg'"
2147 if test $ac_must_keep_next = true; then
2148 ac_must_keep_next=false # Got value, back to normal.
2151 *=* | --config-cache | -C | -disable-* | --disable-* \
2152 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2153 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2154 | -with-* | --with-* | -without-* | --without-* | --x)
2155 case "$ac_configure_args0 " in
2156 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2159 -* ) ac_must_keep_next=true ;;
2162 as_fn_append ac_configure_args " '$ac_arg'"
2167 { ac_configure_args0=; unset ac_configure_args0;}
2168 { ac_configure_args1=; unset ac_configure_args1;}
2170 # When interrupted or exit'd, cleanup temporary files, and complete
2171 # config.log. We remove comments because anyway the quotes in there
2172 # would cause problems or look ugly.
2173 # WARNING: Use '\'' to represent an apostrophe within the trap.
2174 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2175 trap 'exit_status=$?
2176 # Save into config.log some information that might help in debugging.
2180 $as_echo "## ---------------- ##
2181 ## Cache variables. ##
2182 ## ---------------- ##"
2184 # The following way of writing the cache mishandles newlines in values,
2186 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2187 eval ac_val=\$$ac_var
2191 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2192 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2195 _ | IFS | as_nl) ;; #(
2196 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2197 *) { eval $ac_var=; unset $ac_var;} ;;
2202 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2203 *${as_nl}ac_space=\ *)
2205 "s/'\''/'\''\\\\'\'''\''/g;
2206 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2216 $as_echo "## ----------------- ##
2217 ## Output variables. ##
2218 ## ----------------- ##"
2220 for ac_var in $ac_subst_vars
2222 eval ac_val=\$$ac_var
2224 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2226 $as_echo "$ac_var='\''$ac_val'\''"
2230 if test -n "$ac_subst_files"; then
2231 $as_echo "## ------------------- ##
2232 ## File substitutions. ##
2233 ## ------------------- ##"
2235 for ac_var in $ac_subst_files
2237 eval ac_val=\$$ac_var
2239 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2241 $as_echo "$ac_var='\''$ac_val'\''"
2246 if test -s confdefs.h; then
2247 $as_echo "## ----------- ##
2254 test "$ac_signal" != 0 &&
2255 $as_echo "$as_me: caught signal $ac_signal"
2256 $as_echo "$as_me: exit $exit_status"
2258 rm -f core *.core core.conftest.* &&
2259 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2262 for ac_signal in 1 2 13 15; do
2263 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2267 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2268 rm -f -r conftest* confdefs.h
2270 $as_echo "/* confdefs.h */" > confdefs.h
2272 # Predefined preprocessor variables.
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_NAME "$PACKAGE_NAME"
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_STRING "$PACKAGE_STRING"
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_URL "$PACKAGE_URL"
2299 # Let the site file select an alternate cache file if it wants to.
2300 # Prefer an explicitly selected file to automatically selected ones.
2303 if test -n "$CONFIG_SITE"; then
2304 # We do not want a PATH search for config.site.
2305 case $CONFIG_SITE in #((
2306 -*) ac_site_file1=./$CONFIG_SITE;;
2307 */*) ac_site_file1=$CONFIG_SITE;;
2308 *) ac_site_file1=./$CONFIG_SITE;;
2310 elif test "x$prefix" != xNONE; then
2311 ac_site_file1=$prefix/share/config.site
2312 ac_site_file2=$prefix/etc/config.site
2314 ac_site_file1=$ac_default_prefix/share/config.site
2315 ac_site_file2=$ac_default_prefix/etc/config.site
2317 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2319 test "x$ac_site_file" = xNONE && continue
2320 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2322 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2323 sed 's/^/| /' "$ac_site_file" >&5
2325 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2327 as_fn_error $? "failed to load site script $ac_site_file
2328 See \`config.log' for more details" "$LINENO" 5; }
2332 if test -r "$cache_file"; then
2333 # Some versions of bash will fail to source /dev/null (special files
2334 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2335 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2337 $as_echo "$as_me: loading cache $cache_file" >&6;}
2339 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2340 *) . "./$cache_file";;
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2345 $as_echo "$as_me: creating cache $cache_file" >&6;}
2349 # Check that the precious variables saved in the cache have kept the same
2351 ac_cache_corrupted=false
2352 for ac_var in $ac_precious_vars; do
2353 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2354 eval ac_new_set=\$ac_env_${ac_var}_set
2355 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2356 eval ac_new_val=\$ac_env_${ac_var}_value
2357 case $ac_old_set,$ac_new_set in
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2360 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2361 ac_cache_corrupted=: ;;
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2364 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2365 ac_cache_corrupted=: ;;
2368 if test "x$ac_old_val" != "x$ac_new_val"; then
2369 # differences in whitespace do not lead to failure.
2370 ac_old_val_w=`echo x $ac_old_val`
2371 ac_new_val_w=`echo x $ac_new_val`
2372 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2374 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2375 ac_cache_corrupted=:
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2378 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2379 eval $ac_var=\$ac_old_val
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2382 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2384 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2387 # Pass precious variables to config.status.
2388 if test "$ac_new_set" = set; then
2390 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2391 *) ac_arg=$ac_var=$ac_new_val ;;
2393 case " $ac_configure_args " in
2394 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2395 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2399 if $ac_cache_corrupted; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2403 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2404 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2406 ## -------------------- ##
2407 ## Main body of script. ##
2408 ## -------------------- ##
2411 ac_cpp='$CPP $CPPFLAGS'
2412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2418 ac_config_headers="$ac_config_headers config.h"
2421 # Initialize Automake
2422 am__api_version='1.11'
2425 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2426 if test -f "$ac_dir/install-sh"; then
2428 ac_install_sh="$ac_aux_dir/install-sh -c"
2430 elif test -f "$ac_dir/install.sh"; then
2432 ac_install_sh="$ac_aux_dir/install.sh -c"
2434 elif test -f "$ac_dir/shtool"; then
2436 ac_install_sh="$ac_aux_dir/shtool install -c"
2440 if test -z "$ac_aux_dir"; then
2441 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2444 # These three variables are undocumented and unsupported,
2445 # and are intended to be withdrawn in a future Autoconf release.
2446 # They can cause serious problems if a builder's source tree is in a directory
2447 # whose full name contains unusual characters.
2448 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2449 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2450 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2453 # Find a good install program. We prefer a C program (faster),
2454 # so one script is as good as another. But avoid the broken or
2455 # incompatible versions:
2456 # SysV /etc/install, /usr/sbin/install
2457 # SunOS /usr/etc/install
2458 # IRIX /sbin/install
2460 # AmigaOS /C/install, which installs bootblocks on floppy discs
2461 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2462 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2463 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2464 # OS/2's system install, which has a completely different semantic
2465 # ./install, which can be erroneously created by make from ./install.sh.
2466 # Reject install programs that cannot install multiple files.
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2468 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2469 if test -z "$INSTALL"; then
2470 if ${ac_cv_path_install+:} false; then :
2471 $as_echo_n "(cached) " >&6
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 test -z "$as_dir" && as_dir=.
2478 # Account for people who put trailing slashes in PATH elements.
2479 case $as_dir/ in #((
2480 ./ | .// | /[cC]/* | \
2481 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2482 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2485 # OSF1 and SCO ODT 3.0 have their own names for install.
2486 # Don't use installbsd from OSF since it installs stuff as root
2488 for ac_prog in ginstall scoinst install; do
2489 for ac_exec_ext in '' $ac_executable_extensions; do
2490 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2491 if test $ac_prog = install &&
2492 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2493 # AIX install. It has an incompatible calling convention.
2495 elif test $ac_prog = install &&
2496 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2497 # program-specific install script used by HP pwplus--don't use.
2500 rm -rf conftest.one conftest.two conftest.dir
2501 echo one > conftest.one
2502 echo two > conftest.two
2504 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2505 test -s conftest.one && test -s conftest.two &&
2506 test -s conftest.dir/conftest.one &&
2507 test -s conftest.dir/conftest.two
2509 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2522 rm -rf conftest.one conftest.two conftest.dir
2525 if test "${ac_cv_path_install+set}" = set; then
2526 INSTALL=$ac_cv_path_install
2528 # As a last resort, use the slow shell script. Don't cache a
2529 # value for INSTALL within a source directory, because that will
2530 # break other packages using the cache if that directory is
2531 # removed, or if the value is a relative name.
2532 INSTALL=$ac_install_sh
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2536 $as_echo "$INSTALL" >&6; }
2538 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2539 # It thinks the first close brace ends the variable substitution.
2540 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2542 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2544 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2547 $as_echo_n "checking whether build environment is sane... " >&6; }
2550 echo timestamp > conftest.file
2551 # Reject unsafe characters in $srcdir or the absolute working directory
2552 # name. Accept space and tab only in the latter.
2556 *[\\\"\#\$\&\'\`$am_lf]*)
2557 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2560 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2561 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2564 # Do `set' in a subshell so we don't clobber the current shell's
2565 # arguments. Must try -L first in case configure is actually a
2566 # symlink; some systems play weird games with the mod time of symlinks
2567 # (eg FreeBSD returns the mod time of the symlink's containing
2570 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2571 if test "$*" = "X"; then
2573 set X `ls -t "$srcdir/configure" conftest.file`
2576 if test "$*" != "X $srcdir/configure conftest.file" \
2577 && test "$*" != "X conftest.file $srcdir/configure"; then
2579 # If neither matched, then we have a broken ls. This can happen
2580 # if, for instance, CONFIG_SHELL is bash and it inherits a
2581 # broken ls alias from the environment. This has actually
2582 # happened. Such a system could not be considered "sane".
2583 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2584 alias in your environment" "$LINENO" 5
2587 test "$2" = conftest.file
2593 as_fn_error $? "newly created file is older than distributed files!
2594 Check your system clock" "$LINENO" 5
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2597 $as_echo "yes" >&6; }
2598 test "$program_prefix" != NONE &&
2599 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2600 # Use a double $ so make ignores it.
2601 test "$program_suffix" != NONE &&
2602 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2603 # Double any \ or $.
2604 # By default was `s,x,x', remove it if useless.
2605 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2606 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2608 # expand $ac_aux_dir to an absolute path
2609 am_aux_dir=`cd $ac_aux_dir && pwd`
2611 if test x"${MISSING+set}" != xset; then
2614 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2616 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2619 # Use eval to expand $SHELL
2620 if eval "$MISSING --run true"; then
2621 am_missing_run="$MISSING --run "
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2625 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2628 if test x"${install_sh}" != xset; then
2631 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2633 install_sh="\${SHELL} $am_aux_dir/install-sh"
2637 # Installed binaries are usually stripped using `strip' when the user
2638 # run `make install-strip'. However `strip' might not be the right
2639 # tool to use in cross-compilation environments, therefore Automake
2640 # will honor the `STRIP' environment variable to overrule this program.
2641 if test "$cross_compiling" != no; then
2642 if test -n "$ac_tool_prefix"; then
2643 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2644 set dummy ${ac_tool_prefix}strip; ac_word=$2
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if ${ac_cv_prog_STRIP+:} false; then :
2648 $as_echo_n "(cached) " >&6
2650 if test -n "$STRIP"; then
2651 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 STRIP=$ac_cv_prog_STRIP
2671 if test -n "$STRIP"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2673 $as_echo "$STRIP" >&6; }
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2681 if test -z "$ac_cv_prog_STRIP"; then
2683 # Extract the first word of "strip", so it can be a program name with args.
2684 set dummy strip; ac_word=$2
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2686 $as_echo_n "checking for $ac_word... " >&6; }
2687 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2688 $as_echo_n "(cached) " >&6
2690 if test -n "$ac_ct_STRIP"; then
2691 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 test -z "$as_dir" && as_dir=.
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2700 ac_cv_prog_ac_ct_STRIP="strip"
2701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2711 if test -n "$ac_ct_STRIP"; then
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2713 $as_echo "$ac_ct_STRIP" >&6; }
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2719 if test "x$ac_ct_STRIP" = x; then
2722 case $cross_compiling:$ac_tool_warned in
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2726 ac_tool_warned=yes ;;
2731 STRIP="$ac_cv_prog_STRIP"
2735 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2738 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2739 if test -z "$MKDIR_P"; then
2740 if ${ac_cv_path_mkdir+:} false; then :
2741 $as_echo_n "(cached) " >&6
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2747 test -z "$as_dir" && as_dir=.
2748 for ac_prog in mkdir gmkdir; do
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2751 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2752 'mkdir (GNU coreutils) '* | \
2753 'mkdir (coreutils) '* | \
2754 'mkdir (fileutils) '4.1*)
2755 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2765 test -d ./--version && rmdir ./--version
2766 if test "${ac_cv_path_mkdir+set}" = set; then
2767 MKDIR_P="$ac_cv_path_mkdir -p"
2769 # As a last resort, use the slow shell script. Don't cache a
2770 # value for MKDIR_P within a source directory, because that will
2771 # break other packages using the cache if that directory is
2772 # removed, or if the value is a relative name.
2773 MKDIR_P="$ac_install_sh -d"
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2777 $as_echo "$MKDIR_P" >&6; }
2781 [\\/$]* | ?:[\\/]*) ;;
2782 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2785 for ac_prog in gawk mawk nawk awk
2787 # Extract the first word of "$ac_prog", so it can be a program name with args.
2788 set dummy $ac_prog; ac_word=$2
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790 $as_echo_n "checking for $ac_word... " >&6; }
2791 if ${ac_cv_prog_AWK+:} false; then :
2792 $as_echo_n "(cached) " >&6
2794 if test -n "$AWK"; then
2795 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2804 ac_cv_prog_AWK="$ac_prog"
2805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2815 if test -n "$AWK"; then
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2817 $as_echo "$AWK" >&6; }
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820 $as_echo "no" >&6; }
2824 test -n "$AWK" && break
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2828 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2830 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2831 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2832 $as_echo_n "(cached) " >&6
2834 cat >conftest.make <<\_ACEOF
2837 @echo '@@@%%%=$(MAKE)=@@@%%%'
2839 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2840 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2842 eval ac_cv_prog_make_${ac_make}_set=yes;;
2844 eval ac_cv_prog_make_${ac_make}_set=no;;
2848 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2850 $as_echo "yes" >&6; }
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2855 SET_MAKE="MAKE=${MAKE-make}"
2858 rm -rf .tst 2>/dev/null
2859 mkdir .tst 2>/dev/null
2860 if test -d .tst; then
2865 rmdir .tst 2>/dev/null
2867 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2868 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2869 # is not polluted with repeated "-I."
2870 am__isrc=' -I$(srcdir)'
2871 # test to see if srcdir already configured
2872 if test -f $srcdir/config.status; then
2873 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2877 # test whether we have cygpath
2878 if test -z "$CYGPATH_W"; then
2879 if (cygpath --version) >/dev/null 2>/dev/null; then
2880 CYGPATH_W='cygpath -w'
2887 # Define the identity of the package.
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE "$PACKAGE"
2897 cat >>confdefs.h <<_ACEOF
2898 #define VERSION "$VERSION"
2901 # Some tools Automake needs.
2903 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2906 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2909 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2912 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2915 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2917 # We need awk for the "check" target. The system "awk" is bad on
2919 # Always define AMTAR for backward compatibility.
2921 AMTAR=${AMTAR-"${am_missing_run}tar"}
2923 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2931 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2932 # Check whether --enable-maintainer-mode was given.
2933 if test "${enable_maintainer_mode+set}" = set; then :
2934 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2936 USE_MAINTAINER_MODE=no
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2940 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2941 if test $USE_MAINTAINER_MODE = yes; then
2942 MAINTAINER_MODE_TRUE=
2943 MAINTAINER_MODE_FALSE='#'
2945 MAINTAINER_MODE_TRUE='#'
2946 MAINTAINER_MODE_FALSE=
2949 MAINT=$MAINTAINER_MODE_TRUE
2953 # Initialize libtool
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2957 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2963 macro_revision='1.3293'
2977 ltmain="$ac_aux_dir/ltmain.sh"
2979 # Make sure we can run config.sub.
2980 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2981 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2984 $as_echo_n "checking build system type... " >&6; }
2985 if ${ac_cv_build+:} false; then :
2986 $as_echo_n "(cached) " >&6
2988 ac_build_alias=$build_alias
2989 test "x$ac_build_alias" = x &&
2990 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2991 test "x$ac_build_alias" = x &&
2992 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2993 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2994 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2998 $as_echo "$ac_cv_build" >&6; }
2999 case $ac_cv_build in
3001 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3004 ac_save_IFS=$IFS; IFS='-'
3010 # Remember, the first character of IFS is used to create $*,
3011 # except with old shells:
3014 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3018 $as_echo_n "checking host system type... " >&6; }
3019 if ${ac_cv_host+:} false; then :
3020 $as_echo_n "(cached) " >&6
3022 if test "x$host_alias" = x; then
3023 ac_cv_host=$ac_cv_build
3025 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3026 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3031 $as_echo "$ac_cv_host" >&6; }
3034 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3037 ac_save_IFS=$IFS; IFS='-'
3043 # Remember, the first character of IFS is used to create $*,
3044 # except with old shells:
3047 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3050 # Backslashify metacharacters that are still active within
3051 # double-quoted strings.
3052 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3054 # Same as above, but do not quote variable references.
3055 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3057 # Sed substitution to delay expansion of an escaped shell variable in a
3058 # double_quote_subst'ed string.
3059 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3061 # Sed substitution to delay expansion of an escaped single quote.
3062 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3064 # Sed substitution to avoid accidental globbing in evaled expressions
3065 no_glob_subst='s/\*/\\\*/g'
3067 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3068 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3069 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3072 $as_echo_n "checking how to print strings... " >&6; }
3073 # Test print first, because it will be a builtin if present.
3074 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3075 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3077 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3080 # Use this function as a fallback that always works.
3081 func_fallback_echo ()
3083 eval 'cat <<_LTECHO_EOF
3087 ECHO='func_fallback_echo'
3090 # func_echo_all arg...
3091 # Invoke $ECHO with all args, space-separated.
3098 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3099 $as_echo "printf" >&6; } ;;
3100 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3101 $as_echo "print -r" >&6; } ;;
3102 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3103 $as_echo "cat" >&6; } ;;
3119 DEPDIR="${am__leading_dot}deps"
3121 ac_config_commands="$ac_config_commands depfiles"
3124 am_make=${MAKE-make}
3125 cat > confinc << 'END'
3127 @echo this is the am__doit target
3130 # If we don't find an include directive, just comment out the code.
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3132 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3136 # First try GNU make style include.
3137 echo "include confinc" > confmf
3138 # Ignore all kinds of additional output from `make'.
3139 case `$am_make -s -f confmf 2> /dev/null` in #(
3140 *the\ am__doit\ target*)
3146 # Now try BSD make style include.
3147 if test "$am__include" = "#"; then
3148 echo '.include "confinc"' > confmf
3149 case `$am_make -s -f confmf 2> /dev/null` in #(
3150 *the\ am__doit\ target*)
3151 am__include=.include
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3160 $as_echo "$_am_result" >&6; }
3161 rm -f confinc confmf
3163 # Check whether --enable-dependency-tracking was given.
3164 if test "${enable_dependency_tracking+set}" = set; then :
3165 enableval=$enable_dependency_tracking;
3168 if test "x$enable_dependency_tracking" != xno; then
3169 am_depcomp="$ac_aux_dir/depcomp"
3172 if test "x$enable_dependency_tracking" != xno; then
3182 ac_cpp='$CPP $CPPFLAGS'
3183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3186 if test -n "$ac_tool_prefix"; then
3187 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3188 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 $as_echo_n "checking for $ac_word... " >&6; }
3191 if ${ac_cv_prog_CC+:} false; then :
3192 $as_echo_n "(cached) " >&6
3194 if test -n "$CC"; then
3195 ac_cv_prog_CC="$CC" # Let the user override the test.
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3204 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 if test -n "$CC"; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3217 $as_echo "$CC" >&6; }
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3225 if test -z "$ac_cv_prog_CC"; then
3227 # Extract the first word of "gcc", so it can be a program name with args.
3228 set dummy gcc; ac_word=$2
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3230 $as_echo_n "checking for $ac_word... " >&6; }
3231 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3232 $as_echo_n "(cached) " >&6
3234 if test -n "$ac_ct_CC"; then
3235 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 test -z "$as_dir" && as_dir=.
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3244 ac_cv_prog_ac_ct_CC="gcc"
3245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3255 if test -n "$ac_ct_CC"; then
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3257 $as_echo "$ac_ct_CC" >&6; }
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 $as_echo "no" >&6; }
3263 if test "x$ac_ct_CC" = x; then
3266 case $cross_compiling:$ac_tool_warned in
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3270 ac_tool_warned=yes ;;
3278 if test -z "$CC"; then
3279 if test -n "$ac_tool_prefix"; then
3280 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3281 set dummy ${ac_tool_prefix}cc; ac_word=$2
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283 $as_echo_n "checking for $ac_word... " >&6; }
3284 if ${ac_cv_prog_CC+:} false; then :
3285 $as_echo_n "(cached) " >&6
3287 if test -n "$CC"; then
3288 ac_cv_prog_CC="$CC" # Let the user override the test.
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297 ac_cv_prog_CC="${ac_tool_prefix}cc"
3298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 if test -n "$CC"; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3310 $as_echo "$CC" >&6; }
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3319 if test -z "$CC"; then
3320 # Extract the first word of "cc", so it can be a program name with args.
3321 set dummy cc; ac_word=$2
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 $as_echo_n "checking for $ac_word... " >&6; }
3324 if ${ac_cv_prog_CC+:} false; then :
3325 $as_echo_n "(cached) " >&6
3327 if test -n "$CC"; then
3328 ac_cv_prog_CC="$CC" # Let the user override the test.
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 test -z "$as_dir" && as_dir=.
3336 for ac_exec_ext in '' $ac_executable_extensions; do
3337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3339 ac_prog_rejected=yes
3343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 if test $ac_prog_rejected = yes; then
3351 # We found a bogon in the path, so make sure we never use it.
3352 set dummy $ac_cv_prog_CC
3354 if test $# != 0; then
3355 # We chose a different compiler from the bogus one.
3356 # However, it has the same basename, so the bogon will be chosen
3357 # first if we set CC to just the basename; use the full file name.
3359 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3365 if test -n "$CC"; then
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3367 $as_echo "$CC" >&6; }
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3375 if test -z "$CC"; then
3376 if test -n "$ac_tool_prefix"; then
3377 for ac_prog in cl.exe
3379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3382 $as_echo_n "checking for $ac_word... " >&6; }
3383 if ${ac_cv_prog_CC+:} false; then :
3384 $as_echo_n "(cached) " >&6
3386 if test -n "$CC"; then
3387 ac_cv_prog_CC="$CC" # Let the user override the test.
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3396 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 if test -n "$CC"; then
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3409 $as_echo "$CC" >&6; }
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412 $as_echo "no" >&6; }
3416 test -n "$CC" && break
3419 if test -z "$CC"; then
3421 for ac_prog in cl.exe
3423 # Extract the first word of "$ac_prog", so it can be a program name with args.
3424 set dummy $ac_prog; ac_word=$2
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426 $as_echo_n "checking for $ac_word... " >&6; }
3427 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3428 $as_echo_n "(cached) " >&6
3430 if test -n "$ac_ct_CC"; then
3431 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 test -z "$as_dir" && as_dir=.
3438 for ac_exec_ext in '' $ac_executable_extensions; do
3439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3440 ac_cv_prog_ac_ct_CC="$ac_prog"
3441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3451 if test -n "$ac_ct_CC"; then
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3453 $as_echo "$ac_ct_CC" >&6; }
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3456 $as_echo "no" >&6; }
3460 test -n "$ac_ct_CC" && break
3463 if test "x$ac_ct_CC" = x; then
3466 case $cross_compiling:$ac_tool_warned in
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3470 ac_tool_warned=yes ;;
3479 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481 as_fn_error $? "no acceptable C compiler found in \$PATH
3482 See \`config.log' for more details" "$LINENO" 5; }
3484 # Provide some information about the compiler.
3485 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3488 for ac_option in --version -v -V -qversion; do
3489 { { ac_try="$ac_compiler $ac_option >&5"
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3495 $as_echo "$ac_try_echo"; } >&5
3496 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3498 if test -s conftest.err; then
3500 ... rest of stderr output deleted ...
3501 10q' conftest.err >conftest.er1
3502 cat conftest.er1 >&5
3504 rm -f conftest.er1 conftest.err
3505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506 test $ac_status = 0; }
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3520 ac_clean_files_save=$ac_clean_files
3521 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3522 # Try to create an executable without -o first, disregard a.out.
3523 # It will help us diagnose broken compilers, and finding out an intuition
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3526 $as_echo_n "checking whether the C compiler works... " >&6; }
3527 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3529 # The possible output files:
3530 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3533 for ac_file in $ac_files
3536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3537 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3542 if { { ac_try="$ac_link_default"
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3548 $as_echo "$ac_try_echo"; } >&5
3549 (eval "$ac_link_default") 2>&5
3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552 test $ac_status = 0; }; then :
3553 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3554 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3555 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3556 # so that the user can short-circuit this test for compilers unknown to
3558 for ac_file in $ac_files ''
3560 test -f "$ac_file" || continue
3562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3565 # We found the default executable, but exeext='' is most
3569 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3571 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3573 # We set ac_cv_exeext here because the later test for it is not
3574 # safe: cross compilers may not add the suffix if given an `-o'
3575 # argument, so we may need to know it at that point already.
3576 # Even if this section looks crufty: it has the advantage of
3583 test "$ac_cv_exeext" = no && ac_cv_exeext=
3588 if test -z "$ac_file"; then :
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590 $as_echo "no" >&6; }
3591 $as_echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596 as_fn_error 77 "C compiler cannot create executables
3597 See \`config.log' for more details" "$LINENO" 5; }
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3600 $as_echo "yes" >&6; }
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3603 $as_echo_n "checking for C compiler default output file name... " >&6; }
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3605 $as_echo "$ac_file" >&6; }
3606 ac_exeext=$ac_cv_exeext
3608 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3609 ac_clean_files=$ac_clean_files_save
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3611 $as_echo_n "checking for suffix of executables... " >&6; }
3612 if { { ac_try="$ac_link"
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618 $as_echo "$ac_try_echo"; } >&5
3619 (eval "$ac_link") 2>&5
3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622 test $ac_status = 0; }; then :
3623 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3624 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3625 # work properly (i.e., refer to `conftest.exe'), while it won't with
3627 for ac_file in conftest.exe conftest conftest.*; do
3628 test -f "$ac_file" || continue
3630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3631 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3639 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3640 See \`config.log' for more details" "$LINENO" 5; }
3642 rm -f conftest conftest$ac_cv_exeext
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3644 $as_echo "$ac_cv_exeext" >&6; }
3646 rm -f conftest.$ac_ext
3647 EXEEXT=$ac_cv_exeext
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3655 FILE *f = fopen ("conftest.out", "w");
3656 return ferror (f) || fclose (f) != 0;
3662 ac_clean_files="$ac_clean_files conftest.out"
3663 # Check that the compiler produces executables we can run. If not, either
3664 # the compiler is broken, or we cross compile.
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3666 $as_echo_n "checking whether we are cross compiling... " >&6; }
3667 if test "$cross_compiling" != yes; then
3668 { { ac_try="$ac_link"
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3674 $as_echo "$ac_try_echo"; } >&5
3675 (eval "$ac_link") 2>&5
3677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3678 test $ac_status = 0; }
3679 if { ac_try='./conftest$ac_cv_exeext'
3680 { { case "(($ac_try" in
3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3685 $as_echo "$ac_try_echo"; } >&5
3686 (eval "$ac_try") 2>&5
3688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3689 test $ac_status = 0; }; }; then
3692 if test "$cross_compiling" = maybe; then
3695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3697 as_fn_error $? "cannot run C compiled programs.
3698 If you meant to cross compile, use \`--host'.
3699 See \`config.log' for more details" "$LINENO" 5; }
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3704 $as_echo "$cross_compiling" >&6; }
3706 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3707 ac_clean_files=$ac_clean_files_save
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3709 $as_echo_n "checking for suffix of object files... " >&6; }
3710 if ${ac_cv_objext+:} false; then :
3711 $as_echo_n "(cached) " >&6
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3724 rm -f conftest.o conftest.obj
3725 if { { ac_try="$ac_compile"
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3731 $as_echo "$ac_try_echo"; } >&5
3732 (eval "$ac_compile") 2>&5
3734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3735 test $ac_status = 0; }; then :
3736 for ac_file in conftest.o conftest.obj conftest.*; do
3737 test -f "$ac_file" || continue;
3739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3740 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3745 $as_echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3750 as_fn_error $? "cannot compute suffix of object files: cannot compile
3751 See \`config.log' for more details" "$LINENO" 5; }
3753 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3756 $as_echo "$ac_cv_objext" >&6; }
3757 OBJEXT=$ac_cv_objext
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3760 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3761 if ${ac_cv_c_compiler_gnu+:} false; then :
3762 $as_echo_n "(cached) " >&6
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3778 if ac_fn_c_try_compile "$LINENO"; then :
3783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3788 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3789 if test $ac_compiler_gnu = yes; then
3794 ac_test_CFLAGS=${CFLAGS+set}
3795 ac_save_CFLAGS=$CFLAGS
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3797 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3798 if ${ac_cv_prog_cc_g+:} false; then :
3799 $as_echo_n "(cached) " >&6
3801 ac_save_c_werror_flag=$ac_c_werror_flag
3802 ac_c_werror_flag=yes
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3816 if ac_fn_c_try_compile "$LINENO"; then :
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3831 if ac_fn_c_try_compile "$LINENO"; then :
3834 ac_c_werror_flag=$ac_save_c_werror_flag
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3847 if ac_fn_c_try_compile "$LINENO"; then :
3850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855 ac_c_werror_flag=$ac_save_c_werror_flag
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3858 $as_echo "$ac_cv_prog_cc_g" >&6; }
3859 if test "$ac_test_CFLAGS" = set; then
3860 CFLAGS=$ac_save_CFLAGS
3861 elif test $ac_cv_prog_cc_g = yes; then
3862 if test "$GCC" = yes; then
3868 if test "$GCC" = yes; then
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3875 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3876 if ${ac_cv_prog_cc_c89+:} false; then :
3877 $as_echo_n "(cached) " >&6
3879 ac_cv_prog_cc_c89=no
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3885 #include <sys/types.h>
3886 #include <sys/stat.h>
3887 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3888 struct buf { int x; };
3889 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3890 static char *e (p, i)
3896 static char *f (char * (*g) (char **, int), char **p, ...)
3901 s = g (p, va_arg (v,int));
3906 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3907 function prototypes and stuff, but not '\xHH' hex character constants.
3908 These don't provoke an error unfortunately, instead are silently treated
3909 as 'x'. The following induces an error, until -std is added to get
3910 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3911 array size at least. It's necessary to write '\x00'==0 to get something
3912 that's true only with -std. */
3913 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3915 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3916 inside strings and character constants. */
3918 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3920 int test (int i, double x);
3921 struct s1 {int (*f) (int a);};
3922 struct s2 {int (*f) (double a);};
3923 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3929 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3934 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3935 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3937 CC="$ac_save_CC $ac_arg"
3938 if ac_fn_c_try_compile "$LINENO"; then :
3939 ac_cv_prog_cc_c89=$ac_arg
3941 rm -f core conftest.err conftest.$ac_objext
3942 test "x$ac_cv_prog_cc_c89" != "xno" && break
3944 rm -f conftest.$ac_ext
3949 case "x$ac_cv_prog_cc_c89" in
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3952 $as_echo "none needed" >&6; } ;;
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3955 $as_echo "unsupported" >&6; } ;;
3957 CC="$CC $ac_cv_prog_cc_c89"
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3959 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3961 if test "x$ac_cv_prog_cc_c89" != xno; then :
3966 ac_cpp='$CPP $CPPFLAGS'
3967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3971 depcc="$CC" am_compiler_list=
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3974 $as_echo_n "checking dependency style of $depcc... " >&6; }
3975 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3976 $as_echo_n "(cached) " >&6
3978 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3979 # We make a subdir and do the tests there. Otherwise we can end up
3980 # making bogus files that we don't know about and never remove. For
3981 # instance it was reported that on HP-UX the gcc test will end up
3982 # making a dummy file named `D' -- because `-MD' means `put the output
3985 # Copy depcomp to subdir because otherwise we won't find it if we're
3986 # using a relative directory.
3987 cp "$am_depcomp" conftest.dir
3989 # We will build objects and dependencies in a subdirectory because
3990 # it helps to detect inapplicable dependency modes. For instance
3991 # both Tru64's cc and ICC support -MD to output dependencies as a
3992 # side effect of compilation, but ICC will put the dependencies in
3993 # the current directory while Tru64 will put them in the object
3997 am_cv_CC_dependencies_compiler_type=none
3998 if test "$am_compiler_list" = ""; then
3999 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4002 case " $depcc " in #(
4003 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4006 for depmode in $am_compiler_list; do
4007 # Setup a source with many dependencies, because some compilers
4008 # like to wrap large dependency lists on column 80 (with \), and
4009 # we should not choose a depcomp mode which is confused by this.
4011 # We need to recreate these files for each test, as the compiler may
4012 # overwrite some of them when testing with obscure command lines.
4013 # This happens at least with the AIX C compiler.
4015 for i in 1 2 3 4 5 6; do
4016 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4017 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4018 # Solaris 8's {/usr,}/bin/sh.
4019 touch sub/conftst$i.h
4021 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4023 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4024 # mode. It turns out that the SunPro C++ compiler does not properly
4025 # handle `-M -o', and we need to detect this. Also, some Intel
4026 # versions had trouble with output in subdirs
4027 am__obj=sub/conftest.${OBJEXT-o}
4028 am__minus_obj="-o $am__obj"
4031 # This depmode causes a compiler race in universal mode.
4032 test "$am__universal" = false || continue
4035 # after this tag, mechanisms are not by side-effect, so they'll
4036 # only be used when explicitly requested
4037 if test "x$enable_dependency_tracking" = xyes; then
4043 msvisualcpp | msvcmsys)
4044 # This compiler won't grok `-c -o', but also, the minuso test has
4045 # not run yet. These depmodes are late enough in the game, and
4046 # so weak that their functioning should not be impacted.
4047 am__obj=conftest.${OBJEXT-o}
4052 if depmode=$depmode \
4053 source=sub/conftest.c object=$am__obj \
4054 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4055 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4056 >/dev/null 2>conftest.err &&
4057 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4058 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4059 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4060 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4061 # icc doesn't choke on unknown options, it will just issue warnings
4062 # or remarks (even with -Werror). So we grep stderr for any message
4063 # that says an option was ignored or not supported.
4064 # When given -MP, icc 7.0 and 7.1 complain thusly:
4065 # icc: Command line warning: ignoring option '-M'; no argument required
4066 # The diagnosis changed in icc 8.0:
4067 # icc: Command line remark: option '-MP' not supported
4068 if (grep 'ignoring option' conftest.err ||
4069 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4070 am_cv_CC_dependencies_compiler_type=$depmode
4079 am_cv_CC_dependencies_compiler_type=none
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4084 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4085 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4088 test "x$enable_dependency_tracking" != xno \
4089 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4091 am__fastdepCC_FALSE='#'
4093 am__fastdepCC_TRUE='#'
4094 am__fastdepCC_FALSE=
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4099 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4100 if ${ac_cv_path_SED+:} false; then :
4101 $as_echo_n "(cached) " >&6
4103 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4104 for ac_i in 1 2 3 4 5 6 7; do
4105 ac_script="$ac_script$as_nl$ac_script"
4107 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4108 { ac_script=; unset ac_script;}
4109 if test -z "$SED"; then
4110 ac_path_SED_found=false
4111 # Loop through the user's path and test for each of PROGNAME-LIST
4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 test -z "$as_dir" && as_dir=.
4117 for ac_prog in sed gsed; do
4118 for ac_exec_ext in '' $ac_executable_extensions; do
4119 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4120 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4121 # Check for GNU ac_path_SED and select it if it is found.
4122 # Check for GNU $ac_path_SED
4123 case `"$ac_path_SED" --version 2>&1` in
4125 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4128 $as_echo_n 0123456789 >"conftest.in"
4131 cat "conftest.in" "conftest.in" >"conftest.tmp"
4132 mv "conftest.tmp" "conftest.in"
4133 cp "conftest.in" "conftest.nl"
4134 $as_echo '' >> "conftest.nl"
4135 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4136 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4137 as_fn_arith $ac_count + 1 && ac_count=$as_val
4138 if test $ac_count -gt ${ac_path_SED_max-0}; then
4139 # Best one so far, save it but keep looking for a better one
4140 ac_cv_path_SED="$ac_path_SED"
4141 ac_path_SED_max=$ac_count
4143 # 10*(2^10) chars as input seems more than enough
4144 test $ac_count -gt 10 && break
4146 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4149 $ac_path_SED_found && break 3
4154 if test -z "$ac_cv_path_SED"; then
4155 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4163 $as_echo "$ac_cv_path_SED" >&6; }
4164 SED="$ac_cv_path_SED"
4167 test -z "$SED" && SED=sed
4168 Xsed="$SED -e 1s/^X//"
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4181 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4182 if ${ac_cv_path_GREP+:} false; then :
4183 $as_echo_n "(cached) " >&6
4185 if test -z "$GREP"; then
4186 ac_path_GREP_found=false
4187 # Loop through the user's path and test for each of PROGNAME-LIST
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4192 test -z "$as_dir" && as_dir=.
4193 for ac_prog in grep ggrep; do
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4196 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4197 # Check for GNU ac_path_GREP and select it if it is found.
4198 # Check for GNU $ac_path_GREP
4199 case `"$ac_path_GREP" --version 2>&1` in
4201 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4204 $as_echo_n 0123456789 >"conftest.in"
4207 cat "conftest.in" "conftest.in" >"conftest.tmp"
4208 mv "conftest.tmp" "conftest.in"
4209 cp "conftest.in" "conftest.nl"
4210 $as_echo 'GREP' >> "conftest.nl"
4211 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4212 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4213 as_fn_arith $ac_count + 1 && ac_count=$as_val
4214 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4215 # Best one so far, save it but keep looking for a better one
4216 ac_cv_path_GREP="$ac_path_GREP"
4217 ac_path_GREP_max=$ac_count
4219 # 10*(2^10) chars as input seems more than enough
4220 test $ac_count -gt 10 && break
4222 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4225 $ac_path_GREP_found && break 3
4230 if test -z "$ac_cv_path_GREP"; then
4231 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4234 ac_cv_path_GREP=$GREP
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4239 $as_echo "$ac_cv_path_GREP" >&6; }
4240 GREP="$ac_cv_path_GREP"
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4244 $as_echo_n "checking for egrep... " >&6; }
4245 if ${ac_cv_path_EGREP+:} false; then :
4246 $as_echo_n "(cached) " >&6
4248 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4249 then ac_cv_path_EGREP="$GREP -E"
4251 if test -z "$EGREP"; then
4252 ac_path_EGREP_found=false
4253 # Loop through the user's path and test for each of PROGNAME-LIST
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4258 test -z "$as_dir" && as_dir=.
4259 for ac_prog in egrep; do
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4262 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4263 # Check for GNU ac_path_EGREP and select it if it is found.
4264 # Check for GNU $ac_path_EGREP
4265 case `"$ac_path_EGREP" --version 2>&1` in
4267 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4270 $as_echo_n 0123456789 >"conftest.in"
4273 cat "conftest.in" "conftest.in" >"conftest.tmp"
4274 mv "conftest.tmp" "conftest.in"
4275 cp "conftest.in" "conftest.nl"
4276 $as_echo 'EGREP' >> "conftest.nl"
4277 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4278 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4279 as_fn_arith $ac_count + 1 && ac_count=$as_val
4280 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4281 # Best one so far, save it but keep looking for a better one
4282 ac_cv_path_EGREP="$ac_path_EGREP"
4283 ac_path_EGREP_max=$ac_count
4285 # 10*(2^10) chars as input seems more than enough
4286 test $ac_count -gt 10 && break
4288 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4291 $ac_path_EGREP_found && break 3
4296 if test -z "$ac_cv_path_EGREP"; then
4297 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4300 ac_cv_path_EGREP=$EGREP
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4306 $as_echo "$ac_cv_path_EGREP" >&6; }
4307 EGREP="$ac_cv_path_EGREP"
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4311 $as_echo_n "checking for fgrep... " >&6; }
4312 if ${ac_cv_path_FGREP+:} false; then :
4313 $as_echo_n "(cached) " >&6
4315 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4316 then ac_cv_path_FGREP="$GREP -F"
4318 if test -z "$FGREP"; then
4319 ac_path_FGREP_found=false
4320 # Loop through the user's path and test for each of PROGNAME-LIST
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4325 test -z "$as_dir" && as_dir=.
4326 for ac_prog in fgrep; do
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4329 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4330 # Check for GNU ac_path_FGREP and select it if it is found.
4331 # Check for GNU $ac_path_FGREP
4332 case `"$ac_path_FGREP" --version 2>&1` in
4334 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4337 $as_echo_n 0123456789 >"conftest.in"
4340 cat "conftest.in" "conftest.in" >"conftest.tmp"
4341 mv "conftest.tmp" "conftest.in"
4342 cp "conftest.in" "conftest.nl"
4343 $as_echo 'FGREP' >> "conftest.nl"
4344 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4345 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4346 as_fn_arith $ac_count + 1 && ac_count=$as_val
4347 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4348 # Best one so far, save it but keep looking for a better one
4349 ac_cv_path_FGREP="$ac_path_FGREP"
4350 ac_path_FGREP_max=$ac_count
4352 # 10*(2^10) chars as input seems more than enough
4353 test $ac_count -gt 10 && break
4355 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4358 $ac_path_FGREP_found && break 3
4363 if test -z "$ac_cv_path_FGREP"; then
4364 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4367 ac_cv_path_FGREP=$FGREP
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4373 $as_echo "$ac_cv_path_FGREP" >&6; }
4374 FGREP="$ac_cv_path_FGREP"
4377 test -z "$GREP" && GREP=grep
4397 # Check whether --with-gnu-ld was given.
4398 if test "${with_gnu_ld+set}" = set; then :
4399 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4405 if test "$GCC" = yes; then
4406 # Check if gcc -print-prog-name=ld gives a path.
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4408 $as_echo_n "checking for ld used by $CC... " >&6; }
4411 # gcc leaves a trailing carriage return which upsets mingw
4412 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4414 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4417 # Accept absolute paths.
4419 re_direlt='/[^/][^/]*/\.\./'
4420 # Canonicalize the pathname of ld
4421 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4422 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4423 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4425 test -z "$LD" && LD="$ac_prog"
4428 # If it fails, then pretend we aren't using GCC.
4432 # If it is relative, then search for the first ld in PATH.
4436 elif test "$with_gnu_ld" = yes; then
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4438 $as_echo_n "checking for GNU ld... " >&6; }
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4441 $as_echo_n "checking for non-GNU ld... " >&6; }
4443 if ${lt_cv_path_LD+:} false; then :
4444 $as_echo_n "(cached) " >&6
4446 if test -z "$LD"; then
4447 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4448 for ac_dir in $PATH; do
4450 test -z "$ac_dir" && ac_dir=.
4451 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4452 lt_cv_path_LD="$ac_dir/$ac_prog"
4453 # Check to see if the program is GNU ld. I'd rather use --version,
4454 # but apparently some variants of GNU ld only accept -v.
4455 # Break only if it was the GNU/non-GNU ld that we prefer.
4456 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4457 *GNU* | *'with BFD'*)
4458 test "$with_gnu_ld" != no && break
4461 test "$with_gnu_ld" != yes && break
4468 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4473 if test -n "$LD"; then
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4475 $as_echo "$LD" >&6; }
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4478 $as_echo "no" >&6; }
4480 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4482 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4483 if ${lt_cv_prog_gnu_ld+:} false; then :
4484 $as_echo_n "(cached) " >&6
4486 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4487 case `$LD -v 2>&1 </dev/null` in
4488 *GNU* | *'with BFD'*)
4489 lt_cv_prog_gnu_ld=yes
4492 lt_cv_prog_gnu_ld=no
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4497 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4498 with_gnu_ld=$lt_cv_prog_gnu_ld
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4509 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4510 if ${lt_cv_path_NM+:} false; then :
4511 $as_echo_n "(cached) " >&6
4513 if test -n "$NM"; then
4514 # Let the user override the test.
4517 lt_nm_to_check="${ac_tool_prefix}nm"
4518 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4519 lt_nm_to_check="$lt_nm_to_check nm"
4521 for lt_tmp_nm in $lt_nm_to_check; do
4522 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4523 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4525 test -z "$ac_dir" && ac_dir=.
4526 tmp_nm="$ac_dir/$lt_tmp_nm"
4527 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4528 # Check to see if the nm accepts a BSD-compat flag.
4529 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4530 # nm: unknown option "B" ignored
4531 # Tru64's nm complains that /dev/null is an invalid object file
4532 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4533 */dev/null* | *'Invalid file or object type'*)
4534 lt_cv_path_NM="$tmp_nm -B"
4538 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4540 lt_cv_path_NM="$tmp_nm -p"
4544 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4545 continue # so that we can try to find one that supports BSD flags
4554 : ${lt_cv_path_NM=no}
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4558 $as_echo "$lt_cv_path_NM" >&6; }
4559 if test "$lt_cv_path_NM" != "no"; then
4562 # Didn't find any BSD compatible name lister, look for dumpbin.
4563 if test -n "$DUMPBIN"; then :
4564 # Let the user override the test.
4566 if test -n "$ac_tool_prefix"; then
4567 for ac_prog in dumpbin "link -dump"
4569 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4570 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572 $as_echo_n "checking for $ac_word... " >&6; }
4573 if ${ac_cv_prog_DUMPBIN+:} false; then :
4574 $as_echo_n "(cached) " >&6
4576 if test -n "$DUMPBIN"; then
4577 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4586 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4596 DUMPBIN=$ac_cv_prog_DUMPBIN
4597 if test -n "$DUMPBIN"; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4599 $as_echo "$DUMPBIN" >&6; }
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602 $as_echo "no" >&6; }
4606 test -n "$DUMPBIN" && break
4609 if test -z "$DUMPBIN"; then
4610 ac_ct_DUMPBIN=$DUMPBIN
4611 for ac_prog in dumpbin "link -dump"
4613 # Extract the first word of "$ac_prog", so it can be a program name with args.
4614 set dummy $ac_prog; ac_word=$2
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616 $as_echo_n "checking for $ac_word... " >&6; }
4617 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4618 $as_echo_n "(cached) " >&6
4620 if test -n "$ac_ct_DUMPBIN"; then
4621 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4641 if test -n "$ac_ct_DUMPBIN"; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4643 $as_echo "$ac_ct_DUMPBIN" >&6; }
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646 $as_echo "no" >&6; }
4650 test -n "$ac_ct_DUMPBIN" && break
4653 if test "x$ac_ct_DUMPBIN" = x; then
4656 case $cross_compiling:$ac_tool_warned in
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4660 ac_tool_warned=yes ;;
4662 DUMPBIN=$ac_ct_DUMPBIN
4666 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4668 DUMPBIN="$DUMPBIN -symbols"
4676 if test "$DUMPBIN" != ":"; then
4680 test -z "$NM" && NM=nm
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4688 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4689 if ${lt_cv_nm_interface+:} false; then :
4690 $as_echo_n "(cached) " >&6
4692 lt_cv_nm_interface="BSD nm"
4693 echo "int some_variable = 0;" > conftest.$ac_ext
4694 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4695 (eval "$ac_compile" 2>conftest.err)
4696 cat conftest.err >&5
4697 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4698 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4699 cat conftest.err >&5
4700 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4701 cat conftest.out >&5
4702 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4703 lt_cv_nm_interface="MS dumpbin"
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4708 $as_echo "$lt_cv_nm_interface" >&6; }
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4711 $as_echo_n "checking whether ln -s works... " >&6; }
4713 if test "$LN_S" = "ln -s"; then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4715 $as_echo "yes" >&6; }
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4718 $as_echo "no, using $LN_S" >&6; }
4721 # find the maximum length of command line arguments
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4723 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4724 if ${lt_cv_sys_max_cmd_len+:} false; then :
4725 $as_echo_n "(cached) " >&6
4732 # On DJGPP, this test can blow up pretty badly due to problems in libc
4733 # (any single argument exceeding 2000 bytes causes a buffer overrun
4734 # during glob expansion). Even if it were fixed, the result of this
4735 # check would be larger than it should be.
4736 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4740 # Under GNU Hurd, this test is not required because there is
4741 # no limit to the length of command line arguments.
4742 # Libtool will interpret -1 as no limit whatsoever
4743 lt_cv_sys_max_cmd_len=-1;
4746 cygwin* | mingw* | cegcc*)
4747 # On Win9x/ME, this test blows up -- it succeeds, but takes
4748 # about 5 minutes as the teststring grows exponentially.
4749 # Worse, since 9x/ME are not pre-emptively multitasking,
4750 # you end up with a "frozen" computer, even though with patience
4751 # the test eventually succeeds (with a max line length of 256k).
4752 # Instead, let's just punt: use the minimum linelength reported by
4753 # all of the supported platforms: 8192 (on NT/2K/XP).
4754 lt_cv_sys_max_cmd_len=8192;
4758 # On MiNT this can take a long time and run out of memory.
4759 lt_cv_sys_max_cmd_len=8192;
4763 # On AmigaOS with pdksh, this test takes hours, literally.
4764 # So we just punt and use a minimum line length of 8192.
4765 lt_cv_sys_max_cmd_len=8192;
4768 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4769 # This has been around since 386BSD, at least. Likely further.
4770 if test -x /sbin/sysctl; then
4771 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4772 elif test -x /usr/sbin/sysctl; then
4773 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4775 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4777 # And add a safety zone
4778 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4779 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4783 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4784 lt_cv_sys_max_cmd_len=196608
4788 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4789 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4790 # nice to cause kernel panics so lets avoid the loop below.
4791 # First set a reasonable default.
4792 lt_cv_sys_max_cmd_len=16384
4794 if test -x /sbin/sysconfig; then
4795 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4796 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4801 lt_cv_sys_max_cmd_len=102400
4803 sysv5* | sco5v6* | sysv4.2uw2*)
4804 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4805 if test -n "$kargmax"; then
4806 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4808 lt_cv_sys_max_cmd_len=32768
4812 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4813 if test -n "$lt_cv_sys_max_cmd_len"; then
4814 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4817 # Make teststring a little bigger before we do anything with it.
4818 # a 1K string should be a reasonable start.
4819 for i in 1 2 3 4 5 6 7 8 ; do
4820 teststring=$teststring$teststring
4822 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4823 # If test is not a shell built-in, we'll probably end up computing a
4824 # maximum length that is only half of the actual maximum length, but
4826 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4827 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4828 test $i != 17 # 1/2 MB should be enough
4831 teststring=$teststring$teststring
4833 # Only check the string length outside the loop.
4834 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4836 # Add a significant safety factor because C++ compilers can tack on
4837 # massive amounts of additional arguments before passing them to the
4838 # linker. It appears as though 1/2 is a usable value.
4839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4846 if test -n $lt_cv_sys_max_cmd_len ; then
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4848 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4851 $as_echo "none" >&6; }
4853 max_cmd_len=$lt_cv_sys_max_cmd_len
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4865 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4866 # Try some XSI features
4869 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4871 && eval 'test $(( 1 + 1 )) -eq 2 \
4872 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4875 $as_echo "$xsi_shell" >&6; }
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4879 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4881 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4883 && lt_shell_append=yes
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4885 $as_echo "$lt_shell_append" >&6; }
4888 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4898 # test EBCDIC or ASCII
4899 case `echo X|tr X '\101'` in
4900 A) # ASCII based system
4901 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4902 lt_SP2NL='tr \040 \012'
4903 lt_NL2SP='tr \015\012 \040\040'
4905 *) # EBCDIC based system
4906 lt_SP2NL='tr \100 \n'
4907 lt_NL2SP='tr \r\n \100\100'
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4920 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4921 if ${lt_cv_to_host_file_cmd+:} false; then :
4922 $as_echo_n "(cached) " >&6
4927 *-*-mingw* ) # actually msys
4928 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4931 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4933 * ) # otherwise, assume *nix
4934 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4940 *-*-mingw* ) # actually msys
4941 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4944 lt_cv_to_host_file_cmd=func_convert_file_noop
4946 * ) # otherwise, assume *nix
4947 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4951 * ) # unhandled hosts (and "normal" native builds)
4952 lt_cv_to_host_file_cmd=func_convert_file_noop
4958 to_host_file_cmd=$lt_cv_to_host_file_cmd
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4960 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4967 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4968 if ${lt_cv_to_tool_file_cmd+:} false; then :
4969 $as_echo_n "(cached) " >&6
4971 #assume ordinary cross tools, or native build.
4972 lt_cv_to_tool_file_cmd=func_convert_file_noop
4976 *-*-mingw* ) # actually msys
4977 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4985 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4987 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4994 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4995 if ${lt_cv_ld_reload_flag+:} false; then :
4996 $as_echo_n "(cached) " >&6
4998 lt_cv_ld_reload_flag='-r'
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5001 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5002 reload_flag=$lt_cv_ld_reload_flag
5003 case $reload_flag in
5005 *) reload_flag=" $reload_flag" ;;
5007 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5009 cygwin* | mingw* | pw32* | cegcc*)
5010 if test "$GCC" != yes; then
5015 if test "$GCC" = yes; then
5016 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5018 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5031 if test -n "$ac_tool_prefix"; then
5032 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5033 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5035 $as_echo_n "checking for $ac_word... " >&6; }
5036 if ${ac_cv_prog_OBJDUMP+:} false; then :
5037 $as_echo_n "(cached) " >&6
5039 if test -n "$OBJDUMP"; then
5040 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5049 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 OBJDUMP=$ac_cv_prog_OBJDUMP
5060 if test -n "$OBJDUMP"; then
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5062 $as_echo "$OBJDUMP" >&6; }
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065 $as_echo "no" >&6; }
5070 if test -z "$ac_cv_prog_OBJDUMP"; then
5071 ac_ct_OBJDUMP=$OBJDUMP
5072 # Extract the first word of "objdump", so it can be a program name with args.
5073 set dummy objdump; ac_word=$2
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075 $as_echo_n "checking for $ac_word... " >&6; }
5076 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5077 $as_echo_n "(cached) " >&6
5079 if test -n "$ac_ct_OBJDUMP"; then
5080 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5100 if test -n "$ac_ct_OBJDUMP"; then
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5102 $as_echo "$ac_ct_OBJDUMP" >&6; }
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105 $as_echo "no" >&6; }
5108 if test "x$ac_ct_OBJDUMP" = x; then
5111 case $cross_compiling:$ac_tool_warned in
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5115 ac_tool_warned=yes ;;
5117 OBJDUMP=$ac_ct_OBJDUMP
5120 OBJDUMP="$ac_cv_prog_OBJDUMP"
5123 test -z "$OBJDUMP" && OBJDUMP=objdump
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5134 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5135 if ${lt_cv_deplibs_check_method+:} false; then :
5136 $as_echo_n "(cached) " >&6
5138 lt_cv_file_magic_cmd='$MAGIC_CMD'
5139 lt_cv_file_magic_test_file=
5140 lt_cv_deplibs_check_method='unknown'
5141 # Need to set the preceding variable on all platforms that support
5142 # interlibrary dependencies.
5143 # 'none' -- dependencies not supported.
5144 # `unknown' -- same as none, but documents that we really don't know.
5145 # 'pass_all' -- all dependencies passed with no checks.
5146 # 'test_compile' -- check by making test program.
5147 # 'file_magic [[regex]]' -- check by looking for files in library path
5148 # which responds to the $file_magic_cmd with a given extended regex.
5149 # If you have `file' or equivalent on your system and you're not sure
5150 # whether `pass_all' will *always* work, you probably want this one.
5154 lt_cv_deplibs_check_method=pass_all
5158 lt_cv_deplibs_check_method=pass_all
5162 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5163 lt_cv_file_magic_cmd='/usr/bin/file -L'
5164 lt_cv_file_magic_test_file=/shlib/libc.so
5168 # func_win32_libid is a shell function defined in ltmain.sh
5169 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5170 lt_cv_file_magic_cmd='func_win32_libid'
5174 # Base MSYS/MinGW do not provide the 'file' command needed by
5175 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5176 # unless we find 'file', for example because we are cross-compiling.
5177 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5178 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5179 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5180 lt_cv_file_magic_cmd='func_win32_libid'
5182 # Keep this pattern in sync with the one in func_win32_libid.
5183 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5184 lt_cv_file_magic_cmd='$OBJDUMP -f'
5189 # use the weaker test based on 'objdump'. See mingw*.
5190 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5191 lt_cv_file_magic_cmd='$OBJDUMP -f'
5194 darwin* | rhapsody*)
5195 lt_cv_deplibs_check_method=pass_all
5198 freebsd* | dragonfly*)
5199 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5202 # Not sure whether the presence of OpenBSD here was a mistake.
5203 # Let's accept both of them until this is cleared up.
5204 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5205 lt_cv_file_magic_cmd=/usr/bin/file
5206 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5210 lt_cv_deplibs_check_method=pass_all
5215 lt_cv_deplibs_check_method=pass_all
5219 lt_cv_deplibs_check_method=pass_all
5222 hpux10.20* | hpux11*)
5223 lt_cv_file_magic_cmd=/usr/bin/file
5226 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5227 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5230 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]'
5231 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5234 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5235 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5241 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5242 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5245 irix5* | irix6* | nonstopux*)
5247 *-32|*"-32 ") libmagic=32-bit;;
5248 *-n32|*"-n32 ") libmagic=N32;;
5249 *-64|*"-64 ") libmagic=64-bit;;
5250 *) libmagic=never-match;;
5252 lt_cv_deplibs_check_method=pass_all
5255 # This must be Linux ELF.
5256 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5257 lt_cv_deplibs_check_method=pass_all
5261 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5262 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5269 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5270 lt_cv_file_magic_cmd=/usr/bin/file
5271 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5275 lt_cv_deplibs_check_method=pass_all
5279 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5280 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5286 osf3* | osf4* | osf5*)
5287 lt_cv_deplibs_check_method=pass_all
5291 lt_cv_deplibs_check_method=pass_all
5295 lt_cv_deplibs_check_method=pass_all
5298 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5299 lt_cv_deplibs_check_method=pass_all
5303 case $host_vendor in
5305 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]'
5306 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5309 lt_cv_deplibs_check_method=pass_all
5312 lt_cv_file_magic_cmd='/bin/file'
5313 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5316 lt_cv_file_magic_cmd='/bin/file'
5317 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5318 lt_cv_file_magic_test_file=/lib/libc.so
5321 lt_cv_deplibs_check_method=pass_all
5324 lt_cv_deplibs_check_method=pass_all
5330 lt_cv_deplibs_check_method=pass_all
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5336 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5340 if test "$build" = "$host"; then
5343 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5346 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5352 file_magic_cmd=$lt_cv_file_magic_cmd
5353 deplibs_check_method=$lt_cv_deplibs_check_method
5354 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5377 if test -n "$ac_tool_prefix"; then
5378 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5379 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5381 $as_echo_n "checking for $ac_word... " >&6; }
5382 if ${ac_cv_prog_DLLTOOL+:} false; then :
5383 $as_echo_n "(cached) " >&6
5385 if test -n "$DLLTOOL"; then
5386 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 test -z "$as_dir" && as_dir=.
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5395 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405 DLLTOOL=$ac_cv_prog_DLLTOOL
5406 if test -n "$DLLTOOL"; then
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5408 $as_echo "$DLLTOOL" >&6; }
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 $as_echo "no" >&6; }
5416 if test -z "$ac_cv_prog_DLLTOOL"; then
5417 ac_ct_DLLTOOL=$DLLTOOL
5418 # Extract the first word of "dlltool", so it can be a program name with args.
5419 set dummy dlltool; ac_word=$2
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5421 $as_echo_n "checking for $ac_word... " >&6; }
5422 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5423 $as_echo_n "(cached) " >&6
5425 if test -n "$ac_ct_DLLTOOL"; then
5426 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 test -z "$as_dir" && as_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5435 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5445 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5446 if test -n "$ac_ct_DLLTOOL"; then
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5448 $as_echo "$ac_ct_DLLTOOL" >&6; }
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451 $as_echo "no" >&6; }
5454 if test "x$ac_ct_DLLTOOL" = x; then
5457 case $cross_compiling:$ac_tool_warned in
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5461 ac_tool_warned=yes ;;
5463 DLLTOOL=$ac_ct_DLLTOOL
5466 DLLTOOL="$ac_cv_prog_DLLTOOL"
5469 test -z "$DLLTOOL" && DLLTOOL=dlltool
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5481 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5482 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5483 $as_echo_n "(cached) " >&6
5485 lt_cv_sharedlib_from_linklib_cmd='unknown'
5488 cygwin* | mingw* | pw32* | cegcc*)
5489 # two different shell functions defined in ltmain.sh
5490 # decide which to use based on capabilities of $DLLTOOL
5491 case `$DLLTOOL --help 2>&1` in
5492 *--identify-strict*)
5493 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5496 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5501 # fallback: assume linklib IS sharedlib
5502 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5508 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5509 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5510 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5519 if test -n "$ac_tool_prefix"; then
5522 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5523 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5525 $as_echo_n "checking for $ac_word... " >&6; }
5526 if ${ac_cv_prog_AR+:} false; then :
5527 $as_echo_n "(cached) " >&6
5529 if test -n "$AR"; then
5530 ac_cv_prog_AR="$AR" # Let the user override the test.
5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 test -z "$as_dir" && as_dir=.
5537 for ac_exec_ext in '' $ac_executable_extensions; do
5538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5539 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 if test -n "$AR"; then
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5552 $as_echo "$AR" >&6; }
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 $as_echo "no" >&6; }
5559 test -n "$AR" && break
5562 if test -z "$AR"; then
5566 # Extract the first word of "$ac_prog", so it can be a program name with args.
5567 set dummy $ac_prog; ac_word=$2
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5569 $as_echo_n "checking for $ac_word... " >&6; }
5570 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5571 $as_echo_n "(cached) " >&6
5573 if test -n "$ac_ct_AR"; then
5574 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 test -z "$as_dir" && as_dir=.
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5583 ac_cv_prog_ac_ct_AR="$ac_prog"
5584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5594 if test -n "$ac_ct_AR"; then
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5596 $as_echo "$ac_ct_AR" >&6; }
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5603 test -n "$ac_ct_AR" && break
5606 if test "x$ac_ct_AR" = x; then
5609 case $cross_compiling:$ac_tool_warned in
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5613 ac_tool_warned=yes ;;
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5633 $as_echo_n "checking for archiver @FILE support... " >&6; }
5634 if ${lt_cv_ar_at_file+:} false; then :
5635 $as_echo_n "(cached) " >&6
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5649 if ac_fn_c_try_compile "$LINENO"; then :
5650 echo conftest.$ac_objext > conftest.lst
5651 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5653 (eval $lt_ar_try) 2>&5
5655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5656 test $ac_status = 0; }
5657 if test "$ac_status" -eq 0; then
5658 # Ensure the archiver fails upon bogus file names.
5659 rm -f conftest.$ac_objext libconftest.a
5660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5661 (eval $lt_ar_try) 2>&5
5663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5664 test $ac_status = 0; }
5665 if test "$ac_status" -ne 0; then
5669 rm -f conftest.* libconftest.a
5672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5676 $as_echo "$lt_cv_ar_at_file" >&6; }
5678 if test "x$lt_cv_ar_at_file" = xno; then
5681 archiver_list_spec=$lt_cv_ar_at_file
5690 if test -n "$ac_tool_prefix"; then
5691 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5692 set dummy ${ac_tool_prefix}strip; ac_word=$2
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5694 $as_echo_n "checking for $ac_word... " >&6; }
5695 if ${ac_cv_prog_STRIP+:} false; then :
5696 $as_echo_n "(cached) " >&6
5698 if test -n "$STRIP"; then
5699 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 test -z "$as_dir" && as_dir=.
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5718 STRIP=$ac_cv_prog_STRIP
5719 if test -n "$STRIP"; then
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5721 $as_echo "$STRIP" >&6; }
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 $as_echo "no" >&6; }
5729 if test -z "$ac_cv_prog_STRIP"; then
5731 # Extract the first word of "strip", so it can be a program name with args.
5732 set dummy strip; ac_word=$2
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5734 $as_echo_n "checking for $ac_word... " >&6; }
5735 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5736 $as_echo_n "(cached) " >&6
5738 if test -n "$ac_ct_STRIP"; then
5739 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 test -z "$as_dir" && as_dir=.
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5748 ac_cv_prog_ac_ct_STRIP="strip"
5749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5759 if test -n "$ac_ct_STRIP"; then
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5761 $as_echo "$ac_ct_STRIP" >&6; }
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764 $as_echo "no" >&6; }
5767 if test "x$ac_ct_STRIP" = x; then
5770 case $cross_compiling:$ac_tool_warned in
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5774 ac_tool_warned=yes ;;
5779 STRIP="$ac_cv_prog_STRIP"
5782 test -z "$STRIP" && STRIP=:
5789 if test -n "$ac_tool_prefix"; then
5790 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5791 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793 $as_echo_n "checking for $ac_word... " >&6; }
5794 if ${ac_cv_prog_RANLIB+:} false; then :
5795 $as_echo_n "(cached) " >&6
5797 if test -n "$RANLIB"; then
5798 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 test -z "$as_dir" && as_dir=.
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5807 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5817 RANLIB=$ac_cv_prog_RANLIB
5818 if test -n "$RANLIB"; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5820 $as_echo "$RANLIB" >&6; }
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823 $as_echo "no" >&6; }
5828 if test -z "$ac_cv_prog_RANLIB"; then
5829 ac_ct_RANLIB=$RANLIB
5830 # Extract the first word of "ranlib", so it can be a program name with args.
5831 set dummy ranlib; ac_word=$2
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5833 $as_echo_n "checking for $ac_word... " >&6; }
5834 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5835 $as_echo_n "(cached) " >&6
5837 if test -n "$ac_ct_RANLIB"; then
5838 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5847 ac_cv_prog_ac_ct_RANLIB="ranlib"
5848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5857 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5858 if test -n "$ac_ct_RANLIB"; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5860 $as_echo "$ac_ct_RANLIB" >&6; }
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863 $as_echo "no" >&6; }
5866 if test "x$ac_ct_RANLIB" = x; then
5869 case $cross_compiling:$ac_tool_warned in
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5873 ac_tool_warned=yes ;;
5875 RANLIB=$ac_ct_RANLIB
5878 RANLIB="$ac_cv_prog_RANLIB"
5881 test -z "$RANLIB" && RANLIB=:
5888 # Determine commands to create old-style static archives.
5889 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5890 old_postinstall_cmds='chmod 644 $oldlib'
5891 old_postuninstall_cmds=
5893 if test -n "$RANLIB"; then
5896 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5899 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5902 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5907 lock_old_archive_extraction=yes ;;
5909 lock_old_archive_extraction=no ;;
5950 # If no C compiler was specified, use CC.
5953 # If no C compiler flags were specified, use CFLAGS.
5954 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5956 # Allow CC to be a program name with arguments.
5960 # Check for command to grab the raw symbol name followed by C symbol from nm.
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5962 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5963 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5964 $as_echo_n "(cached) " >&6
5967 # These are sane defaults that work on at least a few old systems.
5968 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5970 # Character class describing NM global symbol codes.
5971 symcode='[BCDEGRST]'
5973 # Regexp to match symbols that can be accessed directly from C.
5974 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5976 # Define system-specific variables.
5981 cygwin* | mingw* | pw32* | cegcc*)
5982 symcode='[ABCDGISTW]'
5985 if test "$host_cpu" = ia64; then
5986 symcode='[ABCDEGRST]'
5990 symcode='[BCDEGRST]'
5993 symcode='[BCDEGQRST]'
6004 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6012 # If we're using GNU nm, then use its standard symbol codes.
6013 case `$NM -V 2>&1` in
6014 *GNU* | *'with BFD'*)
6015 symcode='[ABCDGIRSTW]' ;;
6018 # Transform an extracted symbol line into a proper C declaration.
6019 # Some systems (esp. on ia64) link data and code symbols differently,
6020 # so use this general approach.
6021 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6023 # Transform an extracted symbol line into symbol name and symbol address
6024 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6025 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'"
6027 # Handle CRLF in mingw tool chain
6031 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6035 # Try without a prefix underscore, then with it.
6036 for ac_symprfx in "" "_"; do
6038 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6039 symxfrm="\\1 $ac_symprfx\\2 \\2"
6041 # Write the raw and C identifiers.
6042 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6043 # Fake it for dumpbin and say T for any non-static function
6044 # and D for any global variable.
6045 # Also find C++ and __fastcall symbols from MSVC++,
6046 # which start with @ or ?.
6047 lt_cv_sys_global_symbol_pipe="$AWK '"\
6048 " {last_section=section; section=\$ 3};"\
6049 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6050 " \$ 0!~/External *\|/{next};"\
6051 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6052 " {if(hide[section]) next};"\
6053 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6054 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6055 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6056 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6057 " ' prfx=^$ac_symprfx"
6059 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6061 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6063 # Check to see that the pipe works correctly.
6067 cat > conftest.$ac_ext <<_LT_EOF
6072 void nm_test_func(void);
6073 void nm_test_func(void){}
6077 int main(){nm_test_var='a';nm_test_func();return(0);}
6080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6081 (eval $ac_compile) 2>&5
6083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6084 test $ac_status = 0; }; then
6085 # Now try to grab the symbols.
6087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6088 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6091 test $ac_status = 0; } && test -s "$nlist"; then
6092 # Try sorting and uniquifying the output.
6093 if sort "$nlist" | uniq > "$nlist"T; then
6094 mv -f "$nlist"T "$nlist"
6099 # Make sure that we snagged all the symbols we need.
6100 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6101 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6102 cat <<_LT_EOF > conftest.$ac_ext
6103 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6104 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6105 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6106 relocations are performed -- see ld's documentation on pseudo-relocs. */
6107 # define LT_DLSYM_CONST
6108 #elif defined(__osf__)
6109 /* This system does not cope well with relocations in const data. */
6110 # define LT_DLSYM_CONST
6112 # define LT_DLSYM_CONST const
6120 # Now generate the symbol file.
6121 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6123 cat <<_LT_EOF >> conftest.$ac_ext
6125 /* The mapping between symbol names and symbols. */
6126 LT_DLSYM_CONST struct {
6130 lt__PROGRAM__LTX_preloaded_symbols[] =
6132 { "@PROGRAM@", (void *) 0 },
6134 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6135 cat <<\_LT_EOF >> conftest.$ac_ext
6139 /* This works around a problem in FreeBSD linker */
6140 #ifdef FREEBSD_WORKAROUND
6141 static const void *lt_preloaded_setup() {
6142 return lt__PROGRAM__LTX_preloaded_symbols;
6150 # Now try linking the two files.
6151 mv conftest.$ac_objext conftstm.$ac_objext
6152 lt_globsym_save_LIBS=$LIBS
6153 lt_globsym_save_CFLAGS=$CFLAGS
6154 LIBS="conftstm.$ac_objext"
6155 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6157 (eval $ac_link) 2>&5
6159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6160 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6163 LIBS=$lt_globsym_save_LIBS
6164 CFLAGS=$lt_globsym_save_CFLAGS
6166 echo "cannot find nm_test_func in $nlist" >&5
6169 echo "cannot find nm_test_var in $nlist" >&5
6172 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6175 echo "$progname: failed program was:" >&5
6176 cat conftest.$ac_ext >&5
6178 rm -rf conftest* conftst*
6180 # Do not use the global_symbol_pipe unless it works.
6181 if test "$pipe_works" = yes; then
6184 lt_cv_sys_global_symbol_pipe=
6190 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6191 lt_cv_sys_global_symbol_to_cdecl=
6193 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6195 $as_echo "failed" >&6; }
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6198 $as_echo "ok" >&6; }
6201 # Response file support.
6202 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6203 nm_file_list_spec='@'
6204 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6205 nm_file_list_spec='@'
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6235 $as_echo_n "checking for sysroot... " >&6; }
6237 # Check whether --with-sysroot was given.
6238 if test "${with_sysroot+set}" = set; then :
6239 withval=$with_sysroot;
6246 case ${with_sysroot} in #(
6248 if test "$GCC" = yes; then
6249 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6253 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6259 $as_echo "${with_sysroot}" >&6; }
6260 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6265 $as_echo "${lt_sysroot:-no}" >&6; }
6271 # Check whether --enable-libtool-lock was given.
6272 if test "${enable_libtool_lock+set}" = set; then :
6273 enableval=$enable_libtool_lock;
6276 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6278 # Some flags need to be propagated to the compiler or linker for good
6282 # Find out which ABI we are using.
6283 echo 'int i;' > conftest.$ac_ext
6284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6285 (eval $ac_compile) 2>&5
6287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6288 test $ac_status = 0; }; then
6289 case `/usr/bin/file conftest.$ac_objext` in
6301 # Find out which ABI we are using.
6302 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6304 (eval $ac_compile) 2>&5
6306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6307 test $ac_status = 0; }; then
6308 if test "$lt_cv_prog_gnu_ld" = yes; then
6309 case `/usr/bin/file conftest.$ac_objext` in
6311 LD="${LD-ld} -melf32bsmip"
6314 LD="${LD-ld} -melf32bmipn32"
6317 LD="${LD-ld} -melf64bmip"
6321 case `/usr/bin/file conftest.$ac_objext` in
6337 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6338 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6339 # Find out which ABI we are using.
6340 echo 'int i;' > conftest.$ac_ext
6341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6342 (eval $ac_compile) 2>&5
6344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6345 test $ac_status = 0; }; then
6346 case `/usr/bin/file conftest.o` in
6349 x86_64-*kfreebsd*-gnu)
6350 LD="${LD-ld} -m elf_i386_fbsd"
6353 LD="${LD-ld} -m elf_i386"
6355 ppc64-*linux*|powerpc64-*linux*)
6356 LD="${LD-ld} -m elf32ppclinux"
6359 LD="${LD-ld} -m elf_s390"
6362 LD="${LD-ld} -m elf32_sparc"
6368 x86_64-*kfreebsd*-gnu)
6369 LD="${LD-ld} -m elf_x86_64_fbsd"
6372 LD="${LD-ld} -m elf_x86_64"
6374 ppc*-*linux*|powerpc*-*linux*)
6375 LD="${LD-ld} -m elf64ppc"
6377 s390*-*linux*|s390*-*tpf*)
6378 LD="${LD-ld} -m elf64_s390"
6381 LD="${LD-ld} -m elf64_sparc"
6391 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6392 SAVE_CFLAGS="$CFLAGS"
6393 CFLAGS="$CFLAGS -belf"
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6395 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6396 if ${lt_cv_cc_needs_belf+:} false; then :
6397 $as_echo_n "(cached) " >&6
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
6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h. */
6416 if ac_fn_c_try_link "$LINENO"; then :
6417 lt_cv_cc_needs_belf=yes
6419 lt_cv_cc_needs_belf=no
6421 rm -f core conftest.err conftest.$ac_objext \
6422 conftest$ac_exeext conftest.$ac_ext
6424 ac_cpp='$CPP $CPPFLAGS'
6425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6431 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6432 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6433 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6434 CFLAGS="$SAVE_CFLAGS"
6438 # Find out which ABI we are using.
6439 echo 'int i;' > conftest.$ac_ext
6440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6441 (eval $ac_compile) 2>&5
6443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6444 test $ac_status = 0; }; then
6445 case `/usr/bin/file conftest.o` in
6447 case $lt_cv_prog_gnu_ld in
6448 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6450 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6462 need_locks="$enable_libtool_lock"
6464 if test -n "$ac_tool_prefix"; then
6465 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6466 set dummy ${ac_tool_prefix}mt; ac_word=$2
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6468 $as_echo_n "checking for $ac_word... " >&6; }
6469 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6470 $as_echo_n "(cached) " >&6
6472 if test -n "$MANIFEST_TOOL"; then
6473 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 test -z "$as_dir" && as_dir=.
6480 for ac_exec_ext in '' $ac_executable_extensions; do
6481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6482 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6492 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6493 if test -n "$MANIFEST_TOOL"; then
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6495 $as_echo "$MANIFEST_TOOL" >&6; }
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498 $as_echo "no" >&6; }
6503 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6504 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6505 # Extract the first word of "mt", so it can be a program name with args.
6506 set dummy mt; ac_word=$2
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508 $as_echo_n "checking for $ac_word... " >&6; }
6509 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6510 $as_echo_n "(cached) " >&6
6512 if test -n "$ac_ct_MANIFEST_TOOL"; then
6513 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519 test -z "$as_dir" && as_dir=.
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6522 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6532 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6533 if test -n "$ac_ct_MANIFEST_TOOL"; then
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6535 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538 $as_echo "no" >&6; }
6541 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6544 case $cross_compiling:$ac_tool_warned in
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6548 ac_tool_warned=yes ;;
6550 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6553 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6556 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6558 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6559 if ${lt_cv_path_mainfest_tool+:} false; then :
6560 $as_echo_n "(cached) " >&6
6562 lt_cv_path_mainfest_tool=no
6563 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6564 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6565 cat conftest.err >&5
6566 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6567 lt_cv_path_mainfest_tool=yes
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6572 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6573 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6583 rhapsody* | darwin*)
6584 if test -n "$ac_tool_prefix"; then
6585 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6586 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588 $as_echo_n "checking for $ac_word... " >&6; }
6589 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6590 $as_echo_n "(cached) " >&6
6592 if test -n "$DSYMUTIL"; then
6593 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6613 if test -n "$DSYMUTIL"; then
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6615 $as_echo "$DSYMUTIL" >&6; }
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618 $as_echo "no" >&6; }
6623 if test -z "$ac_cv_prog_DSYMUTIL"; then
6624 ac_ct_DSYMUTIL=$DSYMUTIL
6625 # Extract the first word of "dsymutil", so it can be a program name with args.
6626 set dummy dsymutil; ac_word=$2
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6630 $as_echo_n "(cached) " >&6
6632 if test -n "$ac_ct_DSYMUTIL"; then
6633 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6653 if test -n "$ac_ct_DSYMUTIL"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6655 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6661 if test "x$ac_ct_DSYMUTIL" = x; then
6664 case $cross_compiling:$ac_tool_warned in
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6668 ac_tool_warned=yes ;;
6670 DSYMUTIL=$ac_ct_DSYMUTIL
6673 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6676 if test -n "$ac_tool_prefix"; then
6677 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6678 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6680 $as_echo_n "checking for $ac_word... " >&6; }
6681 if ${ac_cv_prog_NMEDIT+:} false; then :
6682 $as_echo_n "(cached) " >&6
6684 if test -n "$NMEDIT"; then
6685 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6694 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 NMEDIT=$ac_cv_prog_NMEDIT
6705 if test -n "$NMEDIT"; then
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6707 $as_echo "$NMEDIT" >&6; }
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710 $as_echo "no" >&6; }
6715 if test -z "$ac_cv_prog_NMEDIT"; then
6716 ac_ct_NMEDIT=$NMEDIT
6717 # Extract the first word of "nmedit", so it can be a program name with args.
6718 set dummy nmedit; ac_word=$2
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720 $as_echo_n "checking for $ac_word... " >&6; }
6721 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6722 $as_echo_n "(cached) " >&6
6724 if test -n "$ac_ct_NMEDIT"; then
6725 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6745 if test -n "$ac_ct_NMEDIT"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6747 $as_echo "$ac_ct_NMEDIT" >&6; }
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750 $as_echo "no" >&6; }
6753 if test "x$ac_ct_NMEDIT" = x; then
6756 case $cross_compiling:$ac_tool_warned in
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6760 ac_tool_warned=yes ;;
6762 NMEDIT=$ac_ct_NMEDIT
6765 NMEDIT="$ac_cv_prog_NMEDIT"
6768 if test -n "$ac_tool_prefix"; then
6769 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6770 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6772 $as_echo_n "checking for $ac_word... " >&6; }
6773 if ${ac_cv_prog_LIPO+:} false; then :
6774 $as_echo_n "(cached) " >&6
6776 if test -n "$LIPO"; then
6777 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6786 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 LIPO=$ac_cv_prog_LIPO
6797 if test -n "$LIPO"; then
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6799 $as_echo "$LIPO" >&6; }
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802 $as_echo "no" >&6; }
6807 if test -z "$ac_cv_prog_LIPO"; then
6809 # Extract the first word of "lipo", so it can be a program name with args.
6810 set dummy lipo; ac_word=$2
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812 $as_echo_n "checking for $ac_word... " >&6; }
6813 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6814 $as_echo_n "(cached) " >&6
6816 if test -n "$ac_ct_LIPO"; then
6817 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_prog_ac_ct_LIPO="lipo"
6827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6837 if test -n "$ac_ct_LIPO"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6839 $as_echo "$ac_ct_LIPO" >&6; }
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842 $as_echo "no" >&6; }
6845 if test "x$ac_ct_LIPO" = x; then
6848 case $cross_compiling:$ac_tool_warned in
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6852 ac_tool_warned=yes ;;
6857 LIPO="$ac_cv_prog_LIPO"
6860 if test -n "$ac_tool_prefix"; then
6861 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6862 set dummy ${ac_tool_prefix}otool; ac_word=$2
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864 $as_echo_n "checking for $ac_word... " >&6; }
6865 if ${ac_cv_prog_OTOOL+:} false; then :
6866 $as_echo_n "(cached) " >&6
6868 if test -n "$OTOOL"; then
6869 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6878 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 OTOOL=$ac_cv_prog_OTOOL
6889 if test -n "$OTOOL"; then
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6891 $as_echo "$OTOOL" >&6; }
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894 $as_echo "no" >&6; }
6899 if test -z "$ac_cv_prog_OTOOL"; then
6901 # Extract the first word of "otool", so it can be a program name with args.
6902 set dummy otool; ac_word=$2
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904 $as_echo_n "checking for $ac_word... " >&6; }
6905 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6906 $as_echo_n "(cached) " >&6
6908 if test -n "$ac_ct_OTOOL"; then
6909 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6918 ac_cv_prog_ac_ct_OTOOL="otool"
6919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6929 if test -n "$ac_ct_OTOOL"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6931 $as_echo "$ac_ct_OTOOL" >&6; }
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934 $as_echo "no" >&6; }
6937 if test "x$ac_ct_OTOOL" = x; then
6940 case $cross_compiling:$ac_tool_warned in
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6944 ac_tool_warned=yes ;;
6949 OTOOL="$ac_cv_prog_OTOOL"
6952 if test -n "$ac_tool_prefix"; then
6953 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6954 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956 $as_echo_n "checking for $ac_word... " >&6; }
6957 if ${ac_cv_prog_OTOOL64+:} false; then :
6958 $as_echo_n "(cached) " >&6
6960 if test -n "$OTOOL64"; then
6961 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 test -z "$as_dir" && as_dir=.
6968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6970 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 OTOOL64=$ac_cv_prog_OTOOL64
6981 if test -n "$OTOOL64"; then
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6983 $as_echo "$OTOOL64" >&6; }
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986 $as_echo "no" >&6; }
6991 if test -z "$ac_cv_prog_OTOOL64"; then
6992 ac_ct_OTOOL64=$OTOOL64
6993 # Extract the first word of "otool64", so it can be a program name with args.
6994 set dummy otool64; ac_word=$2
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996 $as_echo_n "checking for $ac_word... " >&6; }
6997 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6998 $as_echo_n "(cached) " >&6
7000 if test -n "$ac_ct_OTOOL64"; then
7001 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 test -z "$as_dir" && as_dir=.
7008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7010 ac_cv_prog_ac_ct_OTOOL64="otool64"
7011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7021 if test -n "$ac_ct_OTOOL64"; then
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7023 $as_echo "$ac_ct_OTOOL64" >&6; }
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026 $as_echo "no" >&6; }
7029 if test "x$ac_ct_OTOOL64" = x; then
7032 case $cross_compiling:$ac_tool_warned in
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7036 ac_tool_warned=yes ;;
7038 OTOOL64=$ac_ct_OTOOL64
7041 OTOOL64="$ac_cv_prog_OTOOL64"
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7071 $as_echo_n "checking for -single_module linker flag... " >&6; }
7072 if ${lt_cv_apple_cc_single_mod+:} false; then :
7073 $as_echo_n "(cached) " >&6
7075 lt_cv_apple_cc_single_mod=no
7076 if test -z "${LT_MULTI_MODULE}"; then
7077 # By default we will add the -single_module flag. You can override
7078 # by either setting the environment variable LT_MULTI_MODULE
7079 # non-empty at configure time, or by adding -multi_module to the
7081 rm -rf libconftest.dylib*
7082 echo "int foo(void){return 1;}" > conftest.c
7083 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7084 -dynamiclib -Wl,-single_module conftest.c" >&5
7085 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7086 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7088 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7089 lt_cv_apple_cc_single_mod=yes
7091 cat conftest.err >&5
7093 rm -rf libconftest.dylib*
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7098 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7100 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7101 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7102 $as_echo_n "(cached) " >&6
7104 lt_cv_ld_exported_symbols_list=no
7105 save_LDFLAGS=$LDFLAGS
7106 echo "_main" > conftest.sym
7107 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7109 /* end confdefs.h. */
7119 if ac_fn_c_try_link "$LINENO"; then :
7120 lt_cv_ld_exported_symbols_list=yes
7122 lt_cv_ld_exported_symbols_list=no
7124 rm -f core conftest.err conftest.$ac_objext \
7125 conftest$ac_exeext conftest.$ac_ext
7126 LDFLAGS="$save_LDFLAGS"
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7130 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7132 $as_echo_n "checking for -force_load linker flag... " >&6; }
7133 if ${lt_cv_ld_force_load+:} false; then :
7134 $as_echo_n "(cached) " >&6
7136 lt_cv_ld_force_load=no
7137 cat > conftest.c << _LT_EOF
7138 int forced_loaded() { return 2;}
7140 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7141 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7142 echo "$AR cru libconftest.a conftest.o" >&5
7143 $AR cru libconftest.a conftest.o 2>&5
7144 echo "$RANLIB libconftest.a" >&5
7145 $RANLIB libconftest.a 2>&5
7146 cat > conftest.c << _LT_EOF
7147 int main() { return 0;}
7149 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7150 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7152 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7153 lt_cv_ld_force_load=yes
7155 cat conftest.err >&5
7157 rm -f conftest.err libconftest.a conftest conftest.c
7158 rm -rf conftest.dSYM
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7162 $as_echo "$lt_cv_ld_force_load" >&6; }
7164 rhapsody* | darwin1.[012])
7165 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7167 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7168 darwin*) # darwin 5.x on
7169 # if running on 10.5 or later, the deployment target defaults
7170 # to the OS version, if on x86, and 10.4, the deployment
7171 # target defaults to 10.4. Don't you love it?
7172 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7173 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7174 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7176 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7178 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7182 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7183 _lt_dar_single_mod='$single_module'
7185 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7186 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7188 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7190 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7191 _lt_dsymutil='~$DSYMUTIL $lib || :'
7199 ac_cpp='$CPP $CPPFLAGS'
7200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7204 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7205 # On Suns, sometimes $CPP names a directory.
7206 if test -n "$CPP" && test -d "$CPP"; then
7209 if test -z "$CPP"; then
7210 if ${ac_cv_prog_CPP+:} false; then :
7211 $as_echo_n "(cached) " >&6
7213 # Double quotes because CPP needs to be expanded
7214 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7217 for ac_c_preproc_warn_flag in '' yes
7219 # Use a header file that comes with gcc, so configuring glibc
7220 # with a fresh cross-compiler works.
7221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7222 # <limits.h> exists even on freestanding compilers.
7223 # On the NeXT, cc -E runs the code through the compiler's parser,
7224 # not just through cpp. "Syntax error" is here to catch this case.
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7228 # include <limits.h>
7230 # include <assert.h>
7234 if ac_fn_c_try_cpp "$LINENO"; then :
7237 # Broken: fails on valid input.
7240 rm -f conftest.err conftest.i conftest.$ac_ext
7242 # OK, works on sane cases. Now check whether nonexistent headers
7243 # can be detected and how.
7244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7245 /* end confdefs.h. */
7246 #include <ac_nonexistent.h>
7248 if ac_fn_c_try_cpp "$LINENO"; then :
7249 # Broken: success on invalid input.
7252 # Passes both tests.
7256 rm -f conftest.err conftest.i conftest.$ac_ext
7259 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7260 rm -f conftest.i conftest.err conftest.$ac_ext
7261 if $ac_preproc_ok; then :
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7274 $as_echo "$CPP" >&6; }
7276 for ac_c_preproc_warn_flag in '' yes
7278 # Use a header file that comes with gcc, so configuring glibc
7279 # with a fresh cross-compiler works.
7280 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7281 # <limits.h> exists even on freestanding compilers.
7282 # On the NeXT, cc -E runs the code through the compiler's parser,
7283 # not just through cpp. "Syntax error" is here to catch this case.
7284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h. */
7287 # include <limits.h>
7289 # include <assert.h>
7293 if ac_fn_c_try_cpp "$LINENO"; then :
7296 # Broken: fails on valid input.
7299 rm -f conftest.err conftest.i conftest.$ac_ext
7301 # OK, works on sane cases. Now check whether nonexistent headers
7302 # can be detected and how.
7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h. */
7305 #include <ac_nonexistent.h>
7307 if ac_fn_c_try_cpp "$LINENO"; then :
7308 # Broken: success on invalid input.
7311 # Passes both tests.
7315 rm -f conftest.err conftest.i conftest.$ac_ext
7318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7319 rm -f conftest.i conftest.err conftest.$ac_ext
7320 if $ac_preproc_ok; then :
7323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7325 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7326 See \`config.log' for more details" "$LINENO" 5; }
7330 ac_cpp='$CPP $CPPFLAGS'
7331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7337 $as_echo_n "checking for ANSI C header files... " >&6; }
7338 if ${ac_cv_header_stdc+:} false; then :
7339 $as_echo_n "(cached) " >&6
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7356 if ac_fn_c_try_compile "$LINENO"; then :
7357 ac_cv_header_stdc=yes
7359 ac_cv_header_stdc=no
7361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7363 if test $ac_cv_header_stdc = yes; then
7364 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366 /* end confdefs.h. */
7370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7371 $EGREP "memchr" >/dev/null 2>&1; then :
7374 ac_cv_header_stdc=no
7380 if test $ac_cv_header_stdc = yes; then
7381 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383 /* end confdefs.h. */
7387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7388 $EGREP "free" >/dev/null 2>&1; then :
7391 ac_cv_header_stdc=no
7397 if test $ac_cv_header_stdc = yes; then
7398 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7399 if test "$cross_compiling" = yes; then :
7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403 /* end confdefs.h. */
7406 #if ((' ' & 0x0FF) == 0x020)
7407 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7408 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7410 # define ISLOWER(c) \
7411 (('a' <= (c) && (c) <= 'i') \
7412 || ('j' <= (c) && (c) <= 'r') \
7413 || ('s' <= (c) && (c) <= 'z'))
7414 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7417 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7422 for (i = 0; i < 256; i++)
7423 if (XOR (islower (i), ISLOWER (i))
7424 || toupper (i) != TOUPPER (i))
7429 if ac_fn_c_try_run "$LINENO"; then :
7432 ac_cv_header_stdc=no
7434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7435 conftest.$ac_objext conftest.beam conftest.$ac_ext
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7441 $as_echo "$ac_cv_header_stdc" >&6; }
7442 if test $ac_cv_header_stdc = yes; then
7444 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7448 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7449 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7450 inttypes.h stdint.h unistd.h
7452 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7453 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7455 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7456 cat >>confdefs.h <<_ACEOF
7457 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7465 for ac_header in dlfcn.h
7467 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7469 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7470 cat >>confdefs.h <<_ACEOF
7471 #define HAVE_DLFCN_H 1
7492 # Check whether --enable-shared was given.
7493 if test "${enable_shared+set}" = set; then :
7494 enableval=$enable_shared; p=${PACKAGE-default}
7496 yes) enable_shared=yes ;;
7497 no) enable_shared=no ;;
7500 # Look at the argument we got. We use all the common list separators.
7501 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7502 for pkg in $enableval; do
7504 if test "X$pkg" = "X$p"; then
7523 # Check whether --enable-static was given.
7524 if test "${enable_static+set}" = set; then :
7525 enableval=$enable_static; p=${PACKAGE-default}
7527 yes) enable_static=yes ;;
7528 no) enable_static=no ;;
7531 # Look at the argument we got. We use all the common list separators.
7532 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7533 for pkg in $enableval; do
7535 if test "X$pkg" = "X$p"; then
7555 # Check whether --with-pic was given.
7556 if test "${with_pic+set}" = set; then :
7557 withval=$with_pic; pic_mode="$withval"
7563 test -z "$pic_mode" && pic_mode=default
7571 # Check whether --enable-fast-install was given.
7572 if test "${enable_fast_install+set}" = set; then :
7573 enableval=$enable_fast_install; p=${PACKAGE-default}
7575 yes) enable_fast_install=yes ;;
7576 no) enable_fast_install=no ;;
7578 enable_fast_install=no
7579 # Look at the argument we got. We use all the common list separators.
7580 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7581 for pkg in $enableval; do
7583 if test "X$pkg" = "X$p"; then
7584 enable_fast_install=yes
7591 enable_fast_install=yes
7604 # This can be used to rebuild libtool when needed
7605 LIBTOOL_DEPS="$ltmain"
7607 # Always use our own libtool.
7608 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7635 test -z "$LN_S" && LN_S="ln -s"
7650 if test -n "${ZSH_VERSION+set}" ; then
7651 setopt NO_GLOB_SUBST
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7655 $as_echo_n "checking for objdir... " >&6; }
7656 if ${lt_cv_objdir+:} false; then :
7657 $as_echo_n "(cached) " >&6
7659 rm -f .libs 2>/dev/null
7660 mkdir .libs 2>/dev/null
7661 if test -d .libs; then
7664 # MS-DOS does not allow filenames that begin with a dot.
7667 rmdir .libs 2>/dev/null
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7670 $as_echo "$lt_cv_objdir" >&6; }
7671 objdir=$lt_cv_objdir
7677 cat >>confdefs.h <<_ACEOF
7678 #define LT_OBJDIR "$lt_cv_objdir/"
7686 # AIX sometimes has problems with the GCC collect2 program. For some
7687 # reason, if we set the COLLECT_NAMES environment variable, the problems
7688 # vanish in a puff of smoke.
7689 if test "X${COLLECT_NAMES+set}" != Xset; then
7691 export COLLECT_NAMES
7698 can_build_shared=yes
7700 # All known linkers require a `.a' archive for static linking (except MSVC,
7701 # which needs '.lib').
7704 with_gnu_ld="$lt_cv_prog_gnu_ld"
7707 old_CFLAGS="$CFLAGS"
7709 # Set sane defaults for various variables
7710 test -z "$CC" && CC=cc
7711 test -z "$LTCC" && LTCC=$CC
7712 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7713 test -z "$LD" && LD=ld
7714 test -z "$ac_objext" && ac_objext=o
7716 for cc_temp in $compiler""; do
7718 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7719 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7724 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7727 # Only perform the check for file, if the check method requires it
7728 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7729 case $deplibs_check_method in
7731 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7733 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7734 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7735 $as_echo_n "(cached) " >&6
7739 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7742 lt_save_MAGIC_CMD="$MAGIC_CMD"
7743 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7744 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7745 for ac_dir in $ac_dummy; do
7747 test -z "$ac_dir" && ac_dir=.
7748 if test -f $ac_dir/${ac_tool_prefix}file; then
7749 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7750 if test -n "$file_magic_test_file"; then
7751 case $deplibs_check_method in
7753 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7754 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7755 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7756 $EGREP "$file_magic_regex" > /dev/null; then
7761 *** Warning: the command libtool uses to detect shared libraries,
7762 *** $file_magic_cmd, produces output that libtool cannot recognize.
7763 *** The result is that libtool may fail to recognize shared libraries
7764 *** as such. This will affect the creation of libtool libraries that
7765 *** depend on shared libraries, but programs linked with such libtool
7766 *** libraries will work regardless of this problem. Nevertheless, you
7767 *** may want to report the problem to your system manager and/or to
7768 *** bug-libtool@gnu.org
7778 MAGIC_CMD="$lt_save_MAGIC_CMD"
7783 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7784 if test -n "$MAGIC_CMD"; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7786 $as_echo "$MAGIC_CMD" >&6; }
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7796 if test -z "$lt_cv_path_MAGIC_CMD"; then
7797 if test -n "$ac_tool_prefix"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7799 $as_echo_n "checking for file... " >&6; }
7800 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7801 $as_echo_n "(cached) " >&6
7805 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7808 lt_save_MAGIC_CMD="$MAGIC_CMD"
7809 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7810 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7811 for ac_dir in $ac_dummy; do
7813 test -z "$ac_dir" && ac_dir=.
7814 if test -f $ac_dir/file; then
7815 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7816 if test -n "$file_magic_test_file"; then
7817 case $deplibs_check_method in
7819 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7820 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7821 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7822 $EGREP "$file_magic_regex" > /dev/null; then
7827 *** Warning: the command libtool uses to detect shared libraries,
7828 *** $file_magic_cmd, produces output that libtool cannot recognize.
7829 *** The result is that libtool may fail to recognize shared libraries
7830 *** as such. This will affect the creation of libtool libraries that
7831 *** depend on shared libraries, but programs linked with such libtool
7832 *** libraries will work regardless of this problem. Nevertheless, you
7833 *** may want to report the problem to your system manager and/or to
7834 *** bug-libtool@gnu.org
7844 MAGIC_CMD="$lt_save_MAGIC_CMD"
7849 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7850 if test -n "$MAGIC_CMD"; then
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7852 $as_echo "$MAGIC_CMD" >&6; }
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855 $as_echo "no" >&6; }
7868 # Use C for the default configuration in the libtool script
7872 ac_cpp='$CPP $CPPFLAGS'
7873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7878 # Source file extension for C test sources.
7881 # Object file extension for compiled C test sources.
7885 # Code to be used in simple compile tests
7886 lt_simple_compile_test_code="int some_variable = 0;"
7888 # Code to be used in simple link tests
7889 lt_simple_link_test_code='int main(){return(0);}'
7897 # If no C compiler was specified, use CC.
7900 # If no C compiler flags were specified, use CFLAGS.
7901 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7903 # Allow CC to be a program name with arguments.
7906 # Save the default compiler, since it gets overwritten when the other
7907 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7908 compiler_DEFAULT=$CC
7910 # save warnings/boilerplate of simple test code
7911 ac_outfile=conftest.$ac_objext
7912 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7913 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7914 _lt_compiler_boilerplate=`cat conftest.err`
7917 ac_outfile=conftest.$ac_objext
7918 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7919 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7920 _lt_linker_boilerplate=`cat conftest.err`
7924 if test -n "$compiler"; then
7926 lt_prog_compiler_no_builtin_flag=
7928 if test "$GCC" = yes; then
7929 case $cc_basename in
7931 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7933 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7937 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7938 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7939 $as_echo_n "(cached) " >&6
7941 lt_cv_prog_compiler_rtti_exceptions=no
7942 ac_outfile=conftest.$ac_objext
7943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7944 lt_compiler_flag="-fno-rtti -fno-exceptions"
7945 # Insert the option either (1) after the last *FLAGS variable, or
7946 # (2) before a word containing "conftest.", or (3) at the end.
7947 # Note that $ac_compile itself does not contain backslashes and begins
7948 # with a dollar sign (not a hyphen), so the echo should work correctly.
7949 # The option is referenced via a variable to avoid confusing sed.
7950 lt_compile=`echo "$ac_compile" | $SED \
7951 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7952 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7953 -e 's:$: $lt_compiler_flag:'`
7954 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7955 (eval "$lt_compile" 2>conftest.err)
7957 cat conftest.err >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 if (exit $ac_status) && test -s "$ac_outfile"; then
7960 # The compiler can only warn and ignore the option if not recognized
7961 # So say no if there are warnings other than the usual output.
7962 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7963 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7964 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7965 lt_cv_prog_compiler_rtti_exceptions=yes
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7972 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7974 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7975 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7987 lt_prog_compiler_wl=
7988 lt_prog_compiler_pic=
7989 lt_prog_compiler_static=
7992 if test "$GCC" = yes; then
7993 lt_prog_compiler_wl='-Wl,'
7994 lt_prog_compiler_static='-static'
7998 # All AIX code is PIC.
7999 if test "$host_cpu" = ia64; then
8000 # AIX 5 now supports IA64 processor
8001 lt_prog_compiler_static='-Bstatic'
8008 # see comment about AmigaOS4 .so support
8009 lt_prog_compiler_pic='-fPIC'
8012 # FIXME: we need at least 68020 code to build shared libraries, but
8013 # adding the `-m68020' flag to GCC prevents building anything better,
8015 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8020 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8021 # PIC is the default for these OSes.
8024 mingw* | cygwin* | pw32* | os2* | cegcc*)
8025 # This hack is so that the source file can tell whether it is being
8026 # built for inclusion in a dll (and should export symbols for example).
8027 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8028 # (--disable-auto-import) libraries
8029 lt_prog_compiler_pic='-DDLL_EXPORT'
8032 darwin* | rhapsody*)
8033 # PIC is the default on this platform
8034 # Common symbols not allowed in MH_DYLIB files
8035 lt_prog_compiler_pic='-fno-common'
8039 # PIC is the default for Haiku.
8040 # The "-static" flag exists, but is broken.
8041 lt_prog_compiler_static=
8045 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8046 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8047 # sets the default TLS model and affects inlining.
8053 lt_prog_compiler_pic='-fPIC'
8059 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8060 # Instead, we relocate shared libraries at runtime.
8064 # Just because we use GCC doesn't mean we suddenly get shared libraries
8065 # on systems that don't support them.
8066 lt_prog_compiler_can_build_shared=no
8071 # QNX uses GNU C++, but need to define -shared option too, otherwise
8073 lt_prog_compiler_pic='-fPIC -shared'
8077 if test -d /usr/nec; then
8078 lt_prog_compiler_pic=-Kconform_pic
8083 lt_prog_compiler_pic='-fPIC'
8087 case $cc_basename in
8088 nvcc*) # Cuda Compiler Driver 2.2
8089 lt_prog_compiler_wl='-Xlinker '
8090 lt_prog_compiler_pic='-Xcompiler -fPIC'
8094 # PORTME Check for flag to pass linker flags through the system compiler.
8097 lt_prog_compiler_wl='-Wl,'
8098 if test "$host_cpu" = ia64; then
8099 # AIX 5 now supports IA64 processor
8100 lt_prog_compiler_static='-Bstatic'
8102 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8106 mingw* | cygwin* | pw32* | os2* | cegcc*)
8107 # This hack is so that the source file can tell whether it is being
8108 # built for inclusion in a dll (and should export symbols for example).
8109 lt_prog_compiler_pic='-DDLL_EXPORT'
8112 hpux9* | hpux10* | hpux11*)
8113 lt_prog_compiler_wl='-Wl,'
8114 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8121 lt_prog_compiler_pic='+Z'
8124 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8125 lt_prog_compiler_static='${wl}-a ${wl}archive'
8128 irix5* | irix6* | nonstopux*)
8129 lt_prog_compiler_wl='-Wl,'
8130 # PIC (with -KPIC) is the default.
8131 lt_prog_compiler_static='-non_shared'
8134 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8135 case $cc_basename in
8136 # old Intel for x86_64 which still supported -KPIC.
8138 lt_prog_compiler_wl='-Wl,'
8139 lt_prog_compiler_pic='-KPIC'
8140 lt_prog_compiler_static='-static'
8142 # icc used to be incompatible with GCC.
8143 # ICC 10 doesn't accept -KPIC any more.
8145 lt_prog_compiler_wl='-Wl,'
8146 lt_prog_compiler_pic='-fPIC'
8147 lt_prog_compiler_static='-static'
8149 # Lahey Fortran 8.1.
8151 lt_prog_compiler_wl='-Wl,'
8152 lt_prog_compiler_pic='--shared'
8153 lt_prog_compiler_static='--static'
8156 # NAG Fortran compiler
8157 lt_prog_compiler_wl='-Wl,-Wl,,'
8158 lt_prog_compiler_pic='-PIC'
8159 lt_prog_compiler_static='-Bstatic'
8161 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8162 # Portland Group compilers (*not* the Pentium gcc compiler,
8163 # which looks to be a dead project)
8164 lt_prog_compiler_wl='-Wl,'
8165 lt_prog_compiler_pic='-fpic'
8166 lt_prog_compiler_static='-Bstatic'
8169 lt_prog_compiler_wl='-Wl,'
8170 # All Alpha code is PIC.
8171 lt_prog_compiler_static='-non_shared'
8173 xl* | bgxl* | bgf* | mpixl*)
8174 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8175 lt_prog_compiler_wl='-Wl,'
8176 lt_prog_compiler_pic='-qpic'
8177 lt_prog_compiler_static='-qstaticlink'
8180 case `$CC -V 2>&1 | sed 5q` in
8181 *Sun\ F* | *Sun*Fortran*)
8182 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8183 lt_prog_compiler_pic='-KPIC'
8184 lt_prog_compiler_static='-Bstatic'
8185 lt_prog_compiler_wl=''
8189 lt_prog_compiler_pic='-KPIC'
8190 lt_prog_compiler_static='-Bstatic'
8191 lt_prog_compiler_wl='-Wl,'
8199 lt_prog_compiler_pic='-KPIC'
8200 lt_prog_compiler_static='-Bstatic'
8204 # QNX uses GNU C++, but need to define -shared option too, otherwise
8206 lt_prog_compiler_pic='-fPIC -shared'
8209 osf3* | osf4* | osf5*)
8210 lt_prog_compiler_wl='-Wl,'
8211 # All OSF/1 code is PIC.
8212 lt_prog_compiler_static='-non_shared'
8216 lt_prog_compiler_static='-non_shared'
8220 lt_prog_compiler_pic='-KPIC'
8221 lt_prog_compiler_static='-Bstatic'
8222 case $cc_basename in
8223 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8224 lt_prog_compiler_wl='-Qoption ld ';;
8226 lt_prog_compiler_wl='-Wl,';;
8231 lt_prog_compiler_wl='-Qoption ld '
8232 lt_prog_compiler_pic='-PIC'
8233 lt_prog_compiler_static='-Bstatic'
8236 sysv4 | sysv4.2uw2* | sysv4.3*)
8237 lt_prog_compiler_wl='-Wl,'
8238 lt_prog_compiler_pic='-KPIC'
8239 lt_prog_compiler_static='-Bstatic'
8243 if test -d /usr/nec ;then
8244 lt_prog_compiler_pic='-Kconform_pic'
8245 lt_prog_compiler_static='-Bstatic'
8249 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8250 lt_prog_compiler_wl='-Wl,'
8251 lt_prog_compiler_pic='-KPIC'
8252 lt_prog_compiler_static='-Bstatic'
8256 lt_prog_compiler_wl='-Wl,'
8257 lt_prog_compiler_can_build_shared=no
8261 lt_prog_compiler_pic='-pic'
8262 lt_prog_compiler_static='-Bstatic'
8266 lt_prog_compiler_can_build_shared=no
8272 # For platforms which do not support PIC, -DPIC is meaningless:
8274 lt_prog_compiler_pic=
8277 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8282 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8283 if ${lt_cv_prog_compiler_pic+:} false; then :
8284 $as_echo_n "(cached) " >&6
8286 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8289 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8290 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8293 # Check to make sure the PIC flag actually works.
8295 if test -n "$lt_prog_compiler_pic"; then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8297 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8298 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8299 $as_echo_n "(cached) " >&6
8301 lt_cv_prog_compiler_pic_works=no
8302 ac_outfile=conftest.$ac_objext
8303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8304 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8305 # Insert the option either (1) after the last *FLAGS variable, or
8306 # (2) before a word containing "conftest.", or (3) at the end.
8307 # Note that $ac_compile itself does not contain backslashes and begins
8308 # with a dollar sign (not a hyphen), so the echo should work correctly.
8309 # The option is referenced via a variable to avoid confusing sed.
8310 lt_compile=`echo "$ac_compile" | $SED \
8311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8313 -e 's:$: $lt_compiler_flag:'`
8314 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8315 (eval "$lt_compile" 2>conftest.err)
8317 cat conftest.err >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 if (exit $ac_status) && test -s "$ac_outfile"; then
8320 # The compiler can only warn and ignore the option if not recognized
8321 # So say no if there are warnings other than the usual output.
8322 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8323 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8324 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8325 lt_cv_prog_compiler_pic_works=yes
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8332 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8334 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8335 case $lt_prog_compiler_pic in
8337 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8340 lt_prog_compiler_pic=
8341 lt_prog_compiler_can_build_shared=no
8357 # Check to make sure the static flag actually works.
8359 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8361 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8362 if ${lt_cv_prog_compiler_static_works+:} false; then :
8363 $as_echo_n "(cached) " >&6
8365 lt_cv_prog_compiler_static_works=no
8366 save_LDFLAGS="$LDFLAGS"
8367 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8368 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8369 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8370 # The linker can only warn and ignore the option if not recognized
8371 # So say no if there are warnings
8372 if test -s conftest.err; then
8373 # Append any errors to the config.log.
8374 cat conftest.err 1>&5
8375 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8376 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8377 if diff conftest.exp conftest.er2 >/dev/null; then
8378 lt_cv_prog_compiler_static_works=yes
8381 lt_cv_prog_compiler_static_works=yes
8385 LDFLAGS="$save_LDFLAGS"
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8389 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8391 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8394 lt_prog_compiler_static=
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8404 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8405 if ${lt_cv_prog_compiler_c_o+:} false; then :
8406 $as_echo_n "(cached) " >&6
8408 lt_cv_prog_compiler_c_o=no
8409 $RM -r conftest 2>/dev/null
8413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8415 lt_compiler_flag="-o out/conftest2.$ac_objext"
8416 # Insert the option either (1) after the last *FLAGS variable, or
8417 # (2) before a word containing "conftest.", or (3) at the end.
8418 # Note that $ac_compile itself does not contain backslashes and begins
8419 # with a dollar sign (not a hyphen), so the echo should work correctly.
8420 lt_compile=`echo "$ac_compile" | $SED \
8421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8423 -e 's:$: $lt_compiler_flag:'`
8424 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8425 (eval "$lt_compile" 2>out/conftest.err)
8427 cat out/conftest.err >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8431 # The compiler can only warn and ignore the option if not recognized
8432 # So say no if there are warnings
8433 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8434 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8435 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8436 lt_cv_prog_compiler_c_o=yes
8441 # SGI C++ compiler will create directory out/ii_files/ for
8442 # template instantiation
8443 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8444 $RM out/* && rmdir out
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8451 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8459 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8460 if ${lt_cv_prog_compiler_c_o+:} false; then :
8461 $as_echo_n "(cached) " >&6
8463 lt_cv_prog_compiler_c_o=no
8464 $RM -r conftest 2>/dev/null
8468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8470 lt_compiler_flag="-o out/conftest2.$ac_objext"
8471 # Insert the option either (1) after the last *FLAGS variable, or
8472 # (2) before a word containing "conftest.", or (3) at the end.
8473 # Note that $ac_compile itself does not contain backslashes and begins
8474 # with a dollar sign (not a hyphen), so the echo should work correctly.
8475 lt_compile=`echo "$ac_compile" | $SED \
8476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8478 -e 's:$: $lt_compiler_flag:'`
8479 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8480 (eval "$lt_compile" 2>out/conftest.err)
8482 cat out/conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8486 # The compiler can only warn and ignore the option if not recognized
8487 # So say no if there are warnings
8488 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8489 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8490 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8491 lt_cv_prog_compiler_c_o=yes
8496 # SGI C++ compiler will create directory out/ii_files/ for
8497 # template instantiation
8498 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8499 $RM out/* && rmdir out
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8506 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8511 hard_links="nottested"
8512 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8513 # do not overwrite the value of need_locks provided by the user
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8515 $as_echo_n "checking if we can lock with hard links... " >&6; }
8518 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8520 ln conftest.a conftest.b 2>&5 || hard_links=no
8521 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8523 $as_echo "$hard_links" >&6; }
8524 if test "$hard_links" = no; then
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8526 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8539 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8542 allow_undefined_flag=
8543 always_export_symbols=no
8545 archive_expsym_cmds=
8546 compiler_needs_object=no
8547 enable_shared_with_static_runtimes=no
8548 export_dynamic_flag_spec=
8549 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8550 hardcode_automatic=no
8552 hardcode_direct_absolute=no
8553 hardcode_libdir_flag_spec=
8554 hardcode_libdir_flag_spec_ld=
8555 hardcode_libdir_separator=
8557 hardcode_shlibpath_var=unsupported
8559 link_all_deplibs=unknown
8562 old_archive_from_new_cmds=
8563 old_archive_from_expsyms_cmds=
8564 thread_safe_flag_spec=
8565 whole_archive_flag_spec=
8566 # include_expsyms should be a list of space-separated symbols to be *always*
8567 # included in the symbol list
8569 # exclude_expsyms can be an extended regexp of symbols to exclude
8570 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8571 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8572 # as well as any symbol that contains `d'.
8573 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8574 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8575 # platforms (ab)use it in PIC code, but their linkers get confused if
8576 # the symbol is explicitly referenced. Since portable code cannot
8577 # rely on this symbol name, it's probably fine to never include it in
8578 # preloaded symbol tables.
8579 # Exclude shared library initialization/finalization symbols.
8580 extract_expsyms_cmds=
8583 cygwin* | mingw* | pw32* | cegcc*)
8584 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8585 # When not using gcc, we currently assume that we are using
8586 # Microsoft Visual C++.
8587 if test "$GCC" != yes; then
8592 # we just hope/assume this is gcc and not c89 (= MSVC++)
8602 # On some targets, GNU ld is compatible enough with the native linker
8603 # that we're better off using the native interface for both.
8604 lt_use_gnu_ld_interface=no
8605 if test "$with_gnu_ld" = yes; then
8608 # The AIX port of GNU ld has always aspired to compatibility
8609 # with the native linker. However, as the warning in the GNU ld
8610 # block says, versions before 2.19.5* couldn't really create working
8611 # shared libraries, regardless of the interface used.
8612 case `$LD -v 2>&1` in
8613 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8614 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8615 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8617 lt_use_gnu_ld_interface=yes
8622 lt_use_gnu_ld_interface=yes
8627 if test "$lt_use_gnu_ld_interface" = yes; then
8628 # If archive_cmds runs LD, not CC, wlarc should be empty
8631 # Set some defaults for GNU ld with shared library support. These
8632 # are reset later if shared libraries are not supported. Putting them
8633 # here allows them to be overridden if necessary.
8634 runpath_var=LD_RUN_PATH
8635 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8636 export_dynamic_flag_spec='${wl}--export-dynamic'
8637 # ancient GNU ld didn't support --whole-archive et. al.
8638 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8639 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8641 whole_archive_flag_spec=
8643 supports_anon_versioning=no
8644 case `$LD -v 2>&1` in
8645 *GNU\ gold*) supports_anon_versioning=yes ;;
8646 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8647 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8648 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8649 *\ 2.11.*) ;; # other 2.11 versions
8650 *) supports_anon_versioning=yes ;;
8653 # See if GNU ld supports shared libraries.
8656 # On AIX/PPC, the GNU linker is very broken
8657 if test "$host_cpu" != ia64; then
8661 *** Warning: the GNU linker, at least up to release 2.19, is reported
8662 *** to be unable to reliably create shared libraries on AIX.
8663 *** Therefore, libtool is disabling shared libraries support. If you
8664 *** really care for shared libraries, you may want to install binutils
8665 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8666 *** You will then need to restart the configuration process.
8675 # see comment about AmigaOS4 .so support
8676 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8677 archive_expsym_cmds=''
8680 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)'
8681 hardcode_libdir_flag_spec='-L$libdir'
8682 hardcode_minus_L=yes
8688 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8689 allow_undefined_flag=unsupported
8690 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8691 # support --undefined. This deserves some investigation. FIXME
8692 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8698 cygwin* | mingw* | pw32* | cegcc*)
8699 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8700 # as there is no search path for DLLs.
8701 hardcode_libdir_flag_spec='-L$libdir'
8702 export_dynamic_flag_spec='${wl}--export-all-symbols'
8703 allow_undefined_flag=unsupported
8704 always_export_symbols=no
8705 enable_shared_with_static_runtimes=yes
8706 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'
8707 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8709 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8710 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8711 # If the export-symbols file already is a .def file (1st line
8712 # is EXPORTS), use it as is; otherwise, prepend...
8713 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8714 cp $export_symbols $output_objdir/$soname.def;
8716 echo EXPORTS > $output_objdir/$soname.def;
8717 cat $export_symbols >> $output_objdir/$soname.def;
8719 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8727 link_all_deplibs=yes
8732 hardcode_shlibpath_var=no
8733 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8734 export_dynamic_flag_spec='${wl}-E'
8735 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8736 # Instead, shared libraries are loaded at an image base (0x10000000 by
8737 # default) and relocated if they conflict, which is a slow very memory
8738 # consuming and fragmenting process. To avoid this, we pick a random,
8739 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8740 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8741 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8742 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'
8745 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8747 if test "$host_os" = linux-dietlibc; then
8748 case $cc_basename in
8749 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8752 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8753 && test "$tmp_diet" = no
8755 tmp_addflag=' $pic_flag'
8756 tmp_sharedflag='-shared'
8757 case $cc_basename,$host_cpu in
8758 pgcc*) # Portland Group C compiler
8759 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'
8760 tmp_addflag=' $pic_flag'
8762 pgf77* | pgf90* | pgf95* | pgfortran*)
8763 # Portland Group f77 and f90 compilers
8764 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'
8765 tmp_addflag=' $pic_flag -Mnomain' ;;
8766 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8767 tmp_addflag=' -i_dynamic' ;;
8768 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8769 tmp_addflag=' -i_dynamic -nofor_main' ;;
8770 ifc* | ifort*) # Intel Fortran compiler
8771 tmp_addflag=' -nofor_main' ;;
8772 lf95*) # Lahey Fortran 8.1
8773 whole_archive_flag_spec=
8774 tmp_sharedflag='--shared' ;;
8775 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8776 tmp_sharedflag='-qmkshrobj'
8778 nvcc*) # Cuda Compiler Driver 2.2
8779 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'
8780 compiler_needs_object=yes
8783 case `$CC -V 2>&1 | sed 5q` in
8784 *Sun\ C*) # Sun C 5.9
8785 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'
8786 compiler_needs_object=yes
8787 tmp_sharedflag='-G' ;;
8788 *Sun\ F*) # Sun Fortran 8.3
8789 tmp_sharedflag='-G' ;;
8791 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8793 if test "x$supports_anon_versioning" = xyes; then
8794 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8795 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8796 echo "local: *; };" >> $output_objdir/$libname.ver~
8797 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8800 case $cc_basename in
8801 xlf* | bgf* | bgxlf* | mpixlf*)
8802 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8803 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8804 hardcode_libdir_flag_spec=
8805 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8806 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8807 if test "x$supports_anon_versioning" = xyes; then
8808 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8809 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8810 echo "local: *; };" >> $output_objdir/$libname.ver~
8811 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8821 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8822 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8825 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8826 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8831 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8835 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8836 *** create shared libraries on Solaris systems. Therefore, libtool
8837 *** is disabling shared libraries support. We urge you to upgrade GNU
8838 *** binutils to release 2.9.1 or newer. Another option is to modify
8839 *** your PATH or compiler configuration so that the native linker is
8840 *** used, and then restart.
8843 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8844 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8845 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8851 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8852 case `$LD -v 2>&1` in
8853 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8857 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8858 *** reliably create shared libraries on SCO systems. Therefore, libtool
8859 *** is disabling shared libraries support. We urge you to upgrade GNU
8860 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8861 *** your PATH or compiler configuration so that the native linker is
8862 *** used, and then restart.
8867 # For security reasons, it is highly recommended that you always
8868 # use absolute paths for naming shared libraries, and exclude the
8869 # DT_RUNPATH tag from executables and libraries. But doing so
8870 # requires that you compile everything twice, which is a pain.
8871 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8872 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8873 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8874 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8883 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8886 hardcode_shlibpath_var=no
8890 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8891 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8892 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8899 if test "$ld_shlibs" = no; then
8901 hardcode_libdir_flag_spec=
8902 export_dynamic_flag_spec=
8903 whole_archive_flag_spec=
8906 # PORTME fill in a description of your system's linker (not GNU ld)
8909 allow_undefined_flag=unsupported
8910 always_export_symbols=yes
8911 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'
8912 # Note: this linker hardcodes the directories in LIBPATH if there
8913 # are no directories specified by -L.
8914 hardcode_minus_L=yes
8915 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8916 # Neither direct hardcoding nor static linking is supported with a
8918 hardcode_direct=unsupported
8923 if test "$host_cpu" = ia64; then
8924 # On IA64, the linker does run time linking by default, so we don't
8925 # have to do anything special.
8926 aix_use_runtimelinking=no
8927 exp_sym_flag='-Bexport'
8930 # If we're using GNU nm, then we don't want the "-C" option.
8931 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8932 # Also, AIX nm treats weak defined symbols like other global
8933 # defined symbols, whereas GNU nm marks them as "W".
8934 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8935 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'
8937 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'
8939 aix_use_runtimelinking=no
8941 # Test if we are trying to use run time linking or normal
8942 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8943 # need to do runtime linking.
8944 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8945 for ld_flag in $LDFLAGS; do
8946 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8947 aix_use_runtimelinking=yes
8954 exp_sym_flag='-bexport'
8955 no_entry_flag='-bnoentry'
8958 # When large executables or shared objects are built, AIX ld can
8959 # have problems creating the table of contents. If linking a library
8960 # or program results in "error TOC overflow" add -mminimal-toc to
8961 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8962 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8966 hardcode_direct_absolute=yes
8967 hardcode_libdir_separator=':'
8968 link_all_deplibs=yes
8969 file_list_spec='${wl}-f,'
8971 if test "$GCC" = yes; then
8972 case $host_os in aix4.[012]|aix4.[012].*)
8973 # We only want to do this on AIX 4.2 and lower, the check
8974 # below for broken collect2 doesn't work under 4.3+
8975 collect2name=`${CC} -print-prog-name=collect2`
8976 if test -f "$collect2name" &&
8977 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8979 # We have reworked collect2
8982 # We have old collect2
8983 hardcode_direct=unsupported
8984 # It fails to find uninstalled libraries when the uninstalled
8985 # path is not listed in the libpath. Setting hardcode_minus_L
8986 # to unsupported forces relinking
8987 hardcode_minus_L=yes
8988 hardcode_libdir_flag_spec='-L$libdir'
8989 hardcode_libdir_separator=
8993 shared_flag='-shared'
8994 if test "$aix_use_runtimelinking" = yes; then
8995 shared_flag="$shared_flag "'${wl}-G'
8999 if test "$host_cpu" = ia64; then
9000 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9001 # chokes on -Wl,-G. The following line is correct:
9004 if test "$aix_use_runtimelinking" = yes; then
9005 shared_flag='${wl}-G'
9007 shared_flag='${wl}-bM:SRE'
9012 export_dynamic_flag_spec='${wl}-bexpall'
9013 # It seems that -bexpall does not export symbols beginning with
9014 # underscore (_), so it is better to generate a list of symbols to export.
9015 always_export_symbols=yes
9016 if test "$aix_use_runtimelinking" = yes; then
9017 # Warning - without using the other runtime loading flags (-brtl),
9018 # -berok will link without error, but may produce a broken library.
9019 allow_undefined_flag='-berok'
9020 # Determine the default libpath from the value encoded in an
9022 if test "${lt_cv_aix_libpath+set}" = set; then
9023 aix_libpath=$lt_cv_aix_libpath
9025 if ${lt_cv_aix_libpath_+:} false; then :
9026 $as_echo_n "(cached) " >&6
9028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9039 if ac_fn_c_try_link "$LINENO"; then :
9041 lt_aix_libpath_sed='
9042 /Import File Strings/,/^$/ {
9044 s/^0 *\([^ ]*\) *$/\1/
9048 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9049 # Check for a 64-bit object if we didn't find anything.
9050 if test -z "$lt_cv_aix_libpath_"; then
9051 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9054 rm -f core conftest.err conftest.$ac_objext \
9055 conftest$ac_exeext conftest.$ac_ext
9056 if test -z "$lt_cv_aix_libpath_"; then
9057 lt_cv_aix_libpath_="/usr/lib:/lib"
9062 aix_libpath=$lt_cv_aix_libpath_
9065 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9066 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"
9068 if test "$host_cpu" = ia64; then
9069 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9070 allow_undefined_flag="-z nodefs"
9071 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"
9073 # Determine the default libpath from the value encoded in an
9075 if test "${lt_cv_aix_libpath+set}" = set; then
9076 aix_libpath=$lt_cv_aix_libpath
9078 if ${lt_cv_aix_libpath_+:} false; then :
9079 $as_echo_n "(cached) " >&6
9081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082 /* end confdefs.h. */
9092 if ac_fn_c_try_link "$LINENO"; then :
9094 lt_aix_libpath_sed='
9095 /Import File Strings/,/^$/ {
9097 s/^0 *\([^ ]*\) *$/\1/
9101 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9102 # Check for a 64-bit object if we didn't find anything.
9103 if test -z "$lt_cv_aix_libpath_"; then
9104 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9107 rm -f core conftest.err conftest.$ac_objext \
9108 conftest$ac_exeext conftest.$ac_ext
9109 if test -z "$lt_cv_aix_libpath_"; then
9110 lt_cv_aix_libpath_="/usr/lib:/lib"
9115 aix_libpath=$lt_cv_aix_libpath_
9118 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9119 # Warning - without using the other run time loading flags,
9120 # -berok will link without error, but may produce a broken library.
9121 no_undefined_flag=' ${wl}-bernotok'
9122 allow_undefined_flag=' ${wl}-berok'
9123 if test "$with_gnu_ld" = yes; then
9124 # We only use this code for GNU lds that support --whole-archive.
9125 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9127 # Exported symbols can be pulled into shared objects from archives
9128 whole_archive_flag_spec='$convenience'
9130 archive_cmds_need_lc=yes
9131 # This is similar to how AIX traditionally builds its shared libraries.
9132 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'
9140 # see comment about AmigaOS4 .so support
9141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9142 archive_expsym_cmds=''
9145 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)'
9146 hardcode_libdir_flag_spec='-L$libdir'
9147 hardcode_minus_L=yes
9153 export_dynamic_flag_spec=-rdynamic
9156 cygwin* | mingw* | pw32* | cegcc*)
9157 # When not using gcc, we currently assume that we are using
9158 # Microsoft Visual C++.
9159 # hardcode_libdir_flag_spec is actually meaningless, as there is
9160 # no search path for DLLs.
9161 case $cc_basename in
9164 hardcode_libdir_flag_spec=' '
9165 allow_undefined_flag=unsupported
9166 always_export_symbols=yes
9168 # Tell ltmain to make .lib files, not .a files.
9170 # Tell ltmain to make .dll files, not .so files.
9172 # FIXME: Setting linknames here is a bad hack.
9173 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9174 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9175 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9177 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9179 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9181 # The linker will not automatically build a static lib if we build a DLL.
9182 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9183 enable_shared_with_static_runtimes=yes
9184 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9186 old_postinstall_cmds='chmod 644 $oldlib'
9187 postlink_cmds='lt_outputfile="@OUTPUT@"~
9188 lt_tool_outputfile="@TOOL_OUTPUT@"~
9189 case $lt_outputfile in
9192 lt_outputfile="$lt_outputfile.exe"
9193 lt_tool_outputfile="$lt_tool_outputfile.exe"
9196 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9197 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9198 $RM "$lt_outputfile.manifest";
9202 # Assume MSVC wrapper
9203 hardcode_libdir_flag_spec=' '
9204 allow_undefined_flag=unsupported
9205 # Tell ltmain to make .lib files, not .a files.
9207 # Tell ltmain to make .dll files, not .so files.
9209 # FIXME: Setting linknames here is a bad hack.
9210 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9211 # The linker will automatically build a .lib file if we build a DLL.
9212 old_archive_from_new_cmds='true'
9213 # FIXME: Should let the user specify the lib program.
9214 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9215 enable_shared_with_static_runtimes=yes
9220 darwin* | rhapsody*)
9223 archive_cmds_need_lc=no
9225 hardcode_automatic=yes
9226 hardcode_shlibpath_var=unsupported
9227 if test "$lt_cv_ld_force_load" = "yes"; then
9228 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\"`'
9230 whole_archive_flag_spec=''
9232 link_all_deplibs=yes
9233 allow_undefined_flag="$_lt_dar_allow_undefined"
9234 case $cc_basename in
9235 ifort*) _lt_dar_can_shared=yes ;;
9236 *) _lt_dar_can_shared=$GCC ;;
9238 if test "$_lt_dar_can_shared" = "yes"; then
9239 output_verbose_link_cmd=func_echo_all
9240 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9241 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9242 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}"
9243 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}"
9252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9253 hardcode_libdir_flag_spec='-L$libdir'
9254 hardcode_shlibpath_var=no
9261 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9262 # support. Future versions do this automatically, but an explicit c++rt0.o
9263 # does not break anything, and helps significantly (at the cost of a little
9266 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9267 hardcode_libdir_flag_spec='-R$libdir'
9269 hardcode_shlibpath_var=no
9272 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9274 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9276 hardcode_minus_L=yes
9277 hardcode_shlibpath_var=no
9280 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9281 freebsd* | dragonfly*)
9282 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9283 hardcode_libdir_flag_spec='-R$libdir'
9285 hardcode_shlibpath_var=no
9289 if test "$GCC" = yes; then
9290 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'
9292 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'
9294 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9295 hardcode_libdir_separator=:
9298 # hardcode_minus_L: Not really in the search PATH,
9299 # but as the default location of the library.
9300 hardcode_minus_L=yes
9301 export_dynamic_flag_spec='${wl}-E'
9305 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9306 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9308 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9310 if test "$with_gnu_ld" = no; then
9311 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9312 hardcode_libdir_flag_spec_ld='+b $libdir'
9313 hardcode_libdir_separator=:
9315 hardcode_direct_absolute=yes
9316 export_dynamic_flag_spec='${wl}-E'
9317 # hardcode_minus_L: Not really in the search PATH,
9318 # but as the default location of the library.
9319 hardcode_minus_L=yes
9324 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9327 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9330 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9333 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9339 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9342 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9346 # Older versions of the 11.00 compiler do not understand -b yet
9347 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9349 $as_echo_n "checking if $CC understands -b... " >&6; }
9350 if ${lt_cv_prog_compiler__b+:} false; then :
9351 $as_echo_n "(cached) " >&6
9353 lt_cv_prog_compiler__b=no
9354 save_LDFLAGS="$LDFLAGS"
9355 LDFLAGS="$LDFLAGS -b"
9356 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9357 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9358 # The linker can only warn and ignore the option if not recognized
9359 # So say no if there are warnings
9360 if test -s conftest.err; then
9361 # Append any errors to the config.log.
9362 cat conftest.err 1>&5
9363 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9364 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9365 if diff conftest.exp conftest.er2 >/dev/null; then
9366 lt_cv_prog_compiler__b=yes
9369 lt_cv_prog_compiler__b=yes
9373 LDFLAGS="$save_LDFLAGS"
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9377 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9379 if test x"$lt_cv_prog_compiler__b" = xyes; then
9380 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9382 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9388 if test "$with_gnu_ld" = no; then
9389 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9390 hardcode_libdir_separator=:
9395 hardcode_shlibpath_var=no
9399 hardcode_direct_absolute=yes
9400 export_dynamic_flag_spec='${wl}-E'
9402 # hardcode_minus_L: Not really in the search PATH,
9403 # but as the default location of the library.
9404 hardcode_minus_L=yes
9410 irix5* | irix6* | nonstopux*)
9411 if test "$GCC" = yes; then
9412 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'
9413 # Try to use the -exported_symbol ld option, if it does not
9414 # work, assume that -exports_file does not work either and
9415 # implicitly export all symbols.
9416 # This should be the same for all languages, so no per-tag cache variable.
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9418 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9419 if ${lt_cv_irix_exported_symbol+:} false; then :
9420 $as_echo_n "(cached) " >&6
9422 save_LDFLAGS="$LDFLAGS"
9423 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */
9426 int foo (void) { return 0; }
9428 if ac_fn_c_try_link "$LINENO"; then :
9429 lt_cv_irix_exported_symbol=yes
9431 lt_cv_irix_exported_symbol=no
9433 rm -f core conftest.err conftest.$ac_objext \
9434 conftest$ac_exeext conftest.$ac_ext
9435 LDFLAGS="$save_LDFLAGS"
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9438 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9439 if test "$lt_cv_irix_exported_symbol" = yes; then
9440 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'
9443 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'
9444 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'
9446 archive_cmds_need_lc='no'
9447 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9448 hardcode_libdir_separator=:
9450 link_all_deplibs=yes
9454 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9455 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9457 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9459 hardcode_libdir_flag_spec='-R$libdir'
9461 hardcode_shlibpath_var=no
9465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9467 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9468 hardcode_libdir_separator=:
9469 hardcode_shlibpath_var=no
9476 if test -f /usr/libexec/ld.so; then
9478 hardcode_shlibpath_var=no
9479 hardcode_direct_absolute=yes
9480 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9481 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9482 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9483 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9484 export_dynamic_flag_spec='${wl}-E'
9487 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9488 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9489 hardcode_libdir_flag_spec='-R$libdir'
9492 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9493 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9503 hardcode_libdir_flag_spec='-L$libdir'
9504 hardcode_minus_L=yes
9505 allow_undefined_flag=unsupported
9506 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'
9507 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9511 if test "$GCC" = yes; then
9512 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9513 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'
9515 allow_undefined_flag=' -expect_unresolved \*'
9516 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'
9518 archive_cmds_need_lc='no'
9519 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9520 hardcode_libdir_separator=:
9523 osf4* | osf5*) # as osf3* with the addition of -msym flag
9524 if test "$GCC" = yes; then
9525 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9526 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'
9527 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9529 allow_undefined_flag=' -expect_unresolved \*'
9530 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'
9531 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~
9532 $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'
9534 # Both c and cxx compiler support -rpath directly
9535 hardcode_libdir_flag_spec='-rpath $libdir'
9537 archive_cmds_need_lc='no'
9538 hardcode_libdir_separator=:
9542 no_undefined_flag=' -z defs'
9543 if test "$GCC" = yes; then
9545 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9546 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9547 $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'
9549 case `$CC -V 2>&1` in
9552 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9553 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9554 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9558 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9559 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9560 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9564 hardcode_libdir_flag_spec='-R$libdir'
9565 hardcode_shlibpath_var=no
9567 solaris2.[0-5] | solaris2.[0-5].*) ;;
9569 # The compiler driver will combine and reorder linker options,
9570 # but understands `-z linker_flag'. GCC discards it without `$wl',
9571 # but is careful enough not to reorder.
9572 # Supported since Solaris 2.6 (maybe 2.5.1?)
9573 if test "$GCC" = yes; then
9574 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9576 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9580 link_all_deplibs=yes
9584 if test "x$host_vendor" = xsequent; then
9585 # Use $CC to link under sequent, because it throws in some extra .o
9586 # files that make .init and .fini sections work.
9587 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9589 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9591 hardcode_libdir_flag_spec='-L$libdir'
9593 hardcode_minus_L=yes
9594 hardcode_shlibpath_var=no
9598 case $host_vendor in
9600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9601 hardcode_direct=yes # is this really true???
9604 ## LD is ld it makes a PLAMLIB
9605 ## CC just makes a GrossModule.
9606 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9607 reload_cmds='$CC -r -o $output$reload_objs'
9611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9612 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9615 runpath_var='LD_RUN_PATH'
9616 hardcode_shlibpath_var=no
9620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9621 hardcode_shlibpath_var=no
9622 export_dynamic_flag_spec='-Bexport'
9626 if test -d /usr/nec; then
9627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9628 hardcode_shlibpath_var=no
9629 runpath_var=LD_RUN_PATH
9630 hardcode_runpath_var=yes
9635 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9636 no_undefined_flag='${wl}-z,text'
9637 archive_cmds_need_lc=no
9638 hardcode_shlibpath_var=no
9639 runpath_var='LD_RUN_PATH'
9641 if test "$GCC" = yes; then
9642 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9643 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9645 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9646 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9650 sysv5* | sco3.2v5* | sco5v6*)
9651 # Note: We can NOT use -z defs as we might desire, because we do not
9652 # link with -lc, and that would cause any symbols used from libc to
9653 # always be unresolved, which means just about no library would
9654 # ever link correctly. If we're not using GNU ld we use -z text
9655 # though, which does catch some bad symbols but isn't as heavy-handed
9657 no_undefined_flag='${wl}-z,text'
9658 allow_undefined_flag='${wl}-z,nodefs'
9659 archive_cmds_need_lc=no
9660 hardcode_shlibpath_var=no
9661 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9662 hardcode_libdir_separator=':'
9663 link_all_deplibs=yes
9664 export_dynamic_flag_spec='${wl}-Bexport'
9665 runpath_var='LD_RUN_PATH'
9667 if test "$GCC" = yes; then
9668 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9669 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9671 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9672 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9678 hardcode_libdir_flag_spec='-L$libdir'
9679 hardcode_shlibpath_var=no
9687 if test x$host_vendor = xsni; then
9689 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9690 export_dynamic_flag_spec='${wl}-Blargedynsym'
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9697 $as_echo "$ld_shlibs" >&6; }
9698 test "$ld_shlibs" = no && can_build_shared=no
9700 with_gnu_ld=$with_gnu_ld
9717 # Do we need to explicitly link libc?
9719 case "x$archive_cmds_need_lc" in
9721 # Assume -lc should be added
9722 archive_cmds_need_lc=yes
9724 if test "$enable_shared" = yes && test "$GCC" = yes; then
9725 case $archive_cmds in
9727 # FIXME: we may have to deal with multi-command sequences.
9730 # Test whether the compiler implicitly links with -lc since on some
9731 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9732 # to ld, don't add -lc before -lgcc.
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9734 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9735 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9736 $as_echo_n "(cached) " >&6
9739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9742 (eval $ac_compile) 2>&5
9744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9745 test $ac_status = 0; } 2>conftest.err; then
9748 libobjs=conftest.$ac_objext
9750 wl=$lt_prog_compiler_wl
9751 pic_flag=$lt_prog_compiler_pic
9757 lt_save_allow_undefined_flag=$allow_undefined_flag
9758 allow_undefined_flag=
9759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9760 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9763 test $ac_status = 0; }
9765 lt_cv_archive_cmds_need_lc=no
9767 lt_cv_archive_cmds_need_lc=yes
9769 allow_undefined_flag=$lt_save_allow_undefined_flag
9771 cat conftest.err 1>&5
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9777 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9778 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9942 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9944 if test "$GCC" = yes; then
9946 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9947 *) lt_awk_arg="/^libraries:/" ;;
9950 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9951 *) lt_sed_strip_eq="s,=/,/,g" ;;
9953 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9954 case $lt_search_path_spec in
9956 # if the path contains ";" then we assume it to be the separator
9957 # otherwise default to the standard path separator (i.e. ":") - it is
9958 # assumed that no part of a normal pathname contains ";" but that should
9959 # okay in the real world where ";" in dirpaths is itself problematic.
9960 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9963 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9966 # Ok, now we have the path, separated by spaces, we can step through it
9967 # and add multilib dir if necessary.
9968 lt_tmp_lt_search_path_spec=
9969 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9970 for lt_sys_path in $lt_search_path_spec; do
9971 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9972 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9974 test -d "$lt_sys_path" && \
9975 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9978 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9979 BEGIN {RS=" "; FS="/|\n";} {
9982 for (lt_i = NF; lt_i > 0; lt_i--) {
9983 if ($lt_i != "" && $lt_i != ".") {
9984 if ($lt_i == "..") {
9987 if (lt_count == 0) {
9988 lt_foo="/" $lt_i lt_foo;
9995 if (lt_foo != "") { lt_freq[lt_foo]++; }
9996 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9998 # AWK program above erroneously prepends '/' to C:/dos/paths
10001 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10002 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10004 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10006 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10008 library_names_spec=
10009 libname_spec='lib$name'
10013 postuninstall_cmds=
10017 shlibpath_overrides_runpath=unknown
10019 dynamic_linker="$host_os ld.so"
10020 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10021 need_lib_prefix=unknown
10022 hardcode_into_libs=no
10024 # when you set need_version to no, make sure it does not cause -set_version
10025 # flags to be left without arguments
10026 need_version=unknown
10031 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10032 shlibpath_var=LIBPATH
10034 # AIX 3 has no versioning support, so we append a major version to the name.
10035 soname_spec='${libname}${release}${shared_ext}$major'
10042 hardcode_into_libs=yes
10043 if test "$host_cpu" = ia64; then
10044 # AIX 5 supports IA64
10045 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10046 shlibpath_var=LD_LIBRARY_PATH
10048 # With GCC up to 2.95.x, collect2 would create an import file
10049 # for dependence libraries. The import file would start with
10050 # the line `#! .'. This would cause the generated library to
10051 # depend on `.', always an invalid library. This was fixed in
10052 # development snapshots of GCC prior to 3.0.
10054 aix4 | aix4.[01] | aix4.[01].*)
10055 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10057 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10060 can_build_shared=no
10064 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10065 # soname into executable. Probably we can add versioning support to
10066 # collect2, so additional links can be useful in future.
10067 if test "$aix_use_runtimelinking" = yes; then
10068 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10069 # instead of lib<name>.a to let people know that these are not
10070 # typical AIX shared libraries.
10071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10073 # We preserve .a as extension for shared libraries through AIX4.2
10074 # and later when we are not doing run time linking.
10075 library_names_spec='${libname}${release}.a $libname.a'
10076 soname_spec='${libname}${release}${shared_ext}$major'
10078 shlibpath_var=LIBPATH
10085 # Since July 2007 AmigaOS4 officially supports .so libraries.
10086 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10090 library_names_spec='$libname.ixlibrary $libname.a'
10091 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10092 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'
10098 library_names_spec='${libname}${shared_ext}'
10099 dynamic_linker="$host_os ld.so"
10100 shlibpath_var=LIBRARY_PATH
10106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10107 soname_spec='${libname}${release}${shared_ext}$major'
10108 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10109 shlibpath_var=LD_LIBRARY_PATH
10110 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10111 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10112 # the default ld.so.conf also contains /usr/contrib/lib and
10113 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10114 # libtool to hard-code these into programs
10117 cygwin* | mingw* | pw32* | cegcc*)
10118 version_type=windows
10123 case $GCC,$cc_basename in
10126 library_names_spec='$libname.dll.a'
10127 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10128 postinstall_cmds='base_file=`basename \${file}`~
10129 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10130 dldir=$destdir/`dirname \$dlpath`~
10131 test -d \$dldir || mkdir -p \$dldir~
10132 $install_prog $dir/$dlname \$dldir/$dlname~
10133 chmod a+x \$dldir/$dlname~
10134 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10135 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10137 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10138 dlpath=$dir/\$dldll~
10140 shlibpath_overrides_runpath=yes
10144 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10145 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10147 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10150 # MinGW DLLs use traditional 'lib' prefix
10151 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10154 # pw32 DLLs use 'pw' prefix rather than 'lib'
10155 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10158 dynamic_linker='Win32 ld.exe'
10163 libname_spec='$name'
10164 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10165 library_names_spec='${libname}.dll.lib'
10169 sys_lib_search_path_spec=
10172 for lt_path in $LIB
10175 # Let DOS variable expansion print the short 8.3 style file name.
10176 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10177 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10180 # Convert to MSYS style.
10181 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10184 # Convert to unix form, then to dos form, then back to unix form
10185 # but this time dos style (no spaces!) so that the unix form looks
10186 # like /cygdrive/c/PROGRA~1:/cygdr...
10187 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10188 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10189 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10192 sys_lib_search_path_spec="$LIB"
10193 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10194 # It is most probably a Windows format PATH.
10195 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10197 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10199 # FIXME: find the short name or the path components, as spaces are
10200 # common. (e.g. "Program Files" -> "PROGRA~1")
10204 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10205 postinstall_cmds='base_file=`basename \${file}`~
10206 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10207 dldir=$destdir/`dirname \$dlpath`~
10208 test -d \$dldir || mkdir -p \$dldir~
10209 $install_prog $dir/$dlname \$dldir/$dlname'
10210 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10211 dlpath=$dir/\$dldll~
10213 shlibpath_overrides_runpath=yes
10214 dynamic_linker='Win32 link.exe'
10218 # Assume MSVC wrapper
10219 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10220 dynamic_linker='Win32 ld.exe'
10223 # FIXME: first we should search . and the directory the executable is in
10227 darwin* | rhapsody*)
10228 dynamic_linker="$host_os dyld"
10229 version_type=darwin
10232 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10233 soname_spec='${libname}${release}${major}$shared_ext'
10234 shlibpath_overrides_runpath=yes
10235 shlibpath_var=DYLD_LIBRARY_PATH
10236 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10238 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10239 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10247 soname_spec='${libname}${release}${shared_ext}$major'
10248 shlibpath_var=LD_LIBRARY_PATH
10255 freebsd* | dragonfly*)
10256 # DragonFly does not have aout. When/if they implement a new
10257 # versioning mechanism, adjust this.
10258 if test -x /usr/bin/objformat; then
10259 objformat=`/usr/bin/objformat`
10262 freebsd[123]*) objformat=aout ;;
10263 *) objformat=elf ;;
10266 version_type=freebsd-$objformat
10267 case $version_type in
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10278 shlibpath_var=LD_LIBRARY_PATH
10281 shlibpath_overrides_runpath=yes
10283 freebsd3.[01]* | freebsdelf3.[01]*)
10284 shlibpath_overrides_runpath=yes
10285 hardcode_into_libs=yes
10287 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10288 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10289 shlibpath_overrides_runpath=no
10290 hardcode_into_libs=yes
10292 *) # from 4.6 on, and DragonFly
10293 shlibpath_overrides_runpath=yes
10294 hardcode_into_libs=yes
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10304 soname_spec='${libname}${release}${shared_ext}$major'
10305 shlibpath_var=LD_LIBRARY_PATH
10306 hardcode_into_libs=yes
10313 dynamic_linker="$host_os runtime_loader"
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10315 soname_spec='${libname}${release}${shared_ext}$major'
10316 shlibpath_var=LIBRARY_PATH
10317 shlibpath_overrides_runpath=yes
10318 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10319 hardcode_into_libs=yes
10322 hpux9* | hpux10* | hpux11*)
10323 # Give a soname corresponding to the major version so that dld.sl refuses to
10324 # link against other versions.
10331 hardcode_into_libs=yes
10332 dynamic_linker="$host_os dld.so"
10333 shlibpath_var=LD_LIBRARY_PATH
10334 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10336 soname_spec='${libname}${release}${shared_ext}$major'
10337 if test "X$HPUX_IA64_MODE" = X32; then
10338 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10340 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10346 hardcode_into_libs=yes
10347 dynamic_linker="$host_os dld.sl"
10348 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10349 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10351 soname_spec='${libname}${release}${shared_ext}$major'
10352 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10357 dynamic_linker="$host_os dld.sl"
10358 shlibpath_var=SHLIB_PATH
10359 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361 soname_spec='${libname}${release}${shared_ext}$major'
10364 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10365 postinstall_cmds='chmod 555 $lib'
10366 # or fails outright, so override atomically:
10367 install_override_mode=555
10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10375 soname_spec='${libname}${release}${shared_ext}$major'
10376 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10377 shlibpath_var=LD_LIBRARY_PATH
10378 shlibpath_overrides_runpath=no
10379 hardcode_into_libs=yes
10382 irix5* | irix6* | nonstopux*)
10384 nonstopux*) version_type=nonstopux ;;
10386 if test "$lt_cv_prog_gnu_ld" = yes; then
10394 soname_spec='${libname}${release}${shared_ext}$major'
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10397 irix5* | nonstopux*)
10398 libsuff= shlibsuff=
10401 case $LD in # libtool.m4 will add one of these switches to LD
10402 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10403 libsuff= shlibsuff= libmagic=32-bit;;
10404 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10405 libsuff=32 shlibsuff=N32 libmagic=N32;;
10406 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10407 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10408 *) libsuff= shlibsuff= libmagic=never-match;;
10412 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10413 shlibpath_overrides_runpath=no
10414 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10415 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10416 hardcode_into_libs=yes
10419 # No shared lib support for Linux oldld, aout, or coff.
10420 linux*oldld* | linux*aout* | linux*coff*)
10424 # This must be Linux ELF.
10425 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10430 soname_spec='${libname}${release}${shared_ext}$major'
10431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10432 shlibpath_var=LD_LIBRARY_PATH
10433 shlibpath_overrides_runpath=no
10435 # Some binutils ld are patched to set DT_RUNPATH
10436 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10437 $as_echo_n "(cached) " >&6
10439 lt_cv_shlibpath_overrides_runpath=no
10440 save_LDFLAGS=$LDFLAGS
10441 save_libdir=$libdir
10442 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10443 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10445 /* end confdefs.h. */
10455 if ac_fn_c_try_link "$LINENO"; then :
10456 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10457 lt_cv_shlibpath_overrides_runpath=yes
10460 rm -f core conftest.err conftest.$ac_objext \
10461 conftest$ac_exeext conftest.$ac_ext
10462 LDFLAGS=$save_LDFLAGS
10463 libdir=$save_libdir
10467 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10469 # This implies no fast_install, which is unacceptable.
10470 # Some rework will be needed to allow for fast_install
10471 # before this can be enabled.
10472 hardcode_into_libs=yes
10474 # Append ld.so.conf contents to the search path
10475 if test -f /etc/ld.so.conf; then
10476 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' ' '`
10477 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10480 # We used to test for /lib/ld.so.1 and disable shared libraries on
10481 # powerpc, because MkLinux only supported shared libraries with the
10482 # GNU dynamic linker. Since this was broken with cross compilers,
10483 # most powerpc-linux boxes support dynamic linking these days and
10484 # people can always --disable-shared, the test was removed, and we
10485 # assume the GNU/Linux dynamic linker is in use.
10486 dynamic_linker='GNU/Linux ld.so'
10493 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10496 dynamic_linker='NetBSD (a.out) ld.so'
10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10499 soname_spec='${libname}${release}${shared_ext}$major'
10500 dynamic_linker='NetBSD ld.elf_so'
10502 shlibpath_var=LD_LIBRARY_PATH
10503 shlibpath_overrides_runpath=yes
10504 hardcode_into_libs=yes
10509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10510 shlibpath_var=LD_LIBRARY_PATH
10511 shlibpath_overrides_runpath=yes
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519 soname_spec='${libname}${release}${shared_ext}$major'
10520 shlibpath_var=LD_LIBRARY_PATH
10521 shlibpath_overrides_runpath=no
10522 hardcode_into_libs=yes
10523 dynamic_linker='ldqnx.so'
10528 sys_lib_dlsearch_path_spec="/usr/lib"
10530 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10532 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10533 *) need_version=no ;;
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10537 shlibpath_var=LD_LIBRARY_PATH
10538 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10540 openbsd2.[89] | openbsd2.[89].*)
10541 shlibpath_overrides_runpath=no
10544 shlibpath_overrides_runpath=yes
10548 shlibpath_overrides_runpath=yes
10553 libname_spec='$name'
10556 library_names_spec='$libname${shared_ext} $libname.a'
10557 dynamic_linker='OS/2 ld.exe'
10558 shlibpath_var=LIBPATH
10561 osf3* | osf4* | osf5*)
10565 soname_spec='${libname}${release}${shared_ext}$major'
10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10567 shlibpath_var=LD_LIBRARY_PATH
10568 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10569 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10581 soname_spec='${libname}${release}${shared_ext}$major'
10582 shlibpath_var=LD_LIBRARY_PATH
10583 shlibpath_overrides_runpath=yes
10584 hardcode_into_libs=yes
10585 # ldd complains unless libraries are executable
10586 postinstall_cmds='chmod +x $lib'
10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10592 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10593 shlibpath_var=LD_LIBRARY_PATH
10594 shlibpath_overrides_runpath=yes
10595 if test "$with_gnu_ld" = yes; then
10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10604 soname_spec='${libname}${release}${shared_ext}$major'
10605 shlibpath_var=LD_LIBRARY_PATH
10606 case $host_vendor in
10608 shlibpath_overrides_runpath=no
10610 runpath_var=LD_RUN_PATH
10618 shlibpath_overrides_runpath=no
10619 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10625 if test -d /usr/nec ;then
10627 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10628 soname_spec='$libname${shared_ext}.$major'
10629 shlibpath_var=LD_LIBRARY_PATH
10633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10634 version_type=freebsd-elf
10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10638 soname_spec='${libname}${release}${shared_ext}$major'
10639 shlibpath_var=LD_LIBRARY_PATH
10640 shlibpath_overrides_runpath=yes
10641 hardcode_into_libs=yes
10642 if test "$with_gnu_ld" = yes; then
10643 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10645 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10648 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10652 sys_lib_dlsearch_path_spec='/usr/lib'
10656 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661 shlibpath_var=LD_LIBRARY_PATH
10662 shlibpath_overrides_runpath=no
10663 hardcode_into_libs=yes
10668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10669 soname_spec='${libname}${release}${shared_ext}$major'
10670 shlibpath_var=LD_LIBRARY_PATH
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10678 $as_echo "$dynamic_linker" >&6; }
10679 test "$dynamic_linker" = no && can_build_shared=no
10681 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10682 if test "$GCC" = yes; then
10683 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10686 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10687 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10689 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10690 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10785 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10787 if test -n "$hardcode_libdir_flag_spec" ||
10788 test -n "$runpath_var" ||
10789 test "X$hardcode_automatic" = "Xyes" ; then
10791 # We can hardcode non-existent directories.
10792 if test "$hardcode_direct" != no &&
10793 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10794 # have to relink, otherwise we might link with an installed library
10795 # when we should be linking with a yet-to-be-installed one
10796 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10797 test "$hardcode_minus_L" != no; then
10798 # Linking always hardcodes the temporary library directory.
10799 hardcode_action=relink
10801 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10802 hardcode_action=immediate
10805 # We cannot hardcode anything, or else we can only hardcode existing
10807 hardcode_action=unsupported
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10810 $as_echo "$hardcode_action" >&6; }
10812 if test "$hardcode_action" = relink ||
10813 test "$inherit_rpath" = yes; then
10814 # Fast installation is not supported
10815 enable_fast_install=no
10816 elif test "$shlibpath_overrides_runpath" = yes ||
10817 test "$enable_shared" = no; then
10818 # Fast installation is not necessary
10819 enable_fast_install=needless
10827 if test "x$enable_dlopen" != xyes; then
10828 enable_dlopen=unknown
10829 enable_dlopen_self=unknown
10830 enable_dlopen_self_static=unknown
10837 lt_cv_dlopen="load_add_on"
10839 lt_cv_dlopen_self=yes
10842 mingw* | pw32* | cegcc*)
10843 lt_cv_dlopen="LoadLibrary"
10848 lt_cv_dlopen="dlopen"
10853 # if libdl is installed we need to link against it
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10855 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10856 if ${ac_cv_lib_dl_dlopen+:} false; then :
10857 $as_echo_n "(cached) " >&6
10859 ac_check_lib_save_LIBS=$LIBS
10861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10862 /* end confdefs.h. */
10864 /* Override any GCC internal prototype to avoid an error.
10865 Use char because int might match the return type of a GCC
10866 builtin and then its argument prototype would still apply. */
10879 if ac_fn_c_try_link "$LINENO"; then :
10880 ac_cv_lib_dl_dlopen=yes
10882 ac_cv_lib_dl_dlopen=no
10884 rm -f core conftest.err conftest.$ac_objext \
10885 conftest$ac_exeext conftest.$ac_ext
10886 LIBS=$ac_check_lib_save_LIBS
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10889 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10890 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10891 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10894 lt_cv_dlopen="dyld"
10896 lt_cv_dlopen_self=yes
10903 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10904 if test "x$ac_cv_func_shl_load" = xyes; then :
10905 lt_cv_dlopen="shl_load"
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10908 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10909 if ${ac_cv_lib_dld_shl_load+:} false; then :
10910 $as_echo_n "(cached) " >&6
10912 ac_check_lib_save_LIBS=$LIBS
10914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10915 /* end confdefs.h. */
10917 /* Override any GCC internal prototype to avoid an error.
10918 Use char because int might match the return type of a GCC
10919 builtin and then its argument prototype would still apply. */
10927 return shl_load ();
10932 if ac_fn_c_try_link "$LINENO"; then :
10933 ac_cv_lib_dld_shl_load=yes
10935 ac_cv_lib_dld_shl_load=no
10937 rm -f core conftest.err conftest.$ac_objext \
10938 conftest$ac_exeext conftest.$ac_ext
10939 LIBS=$ac_check_lib_save_LIBS
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10942 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10943 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10944 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10946 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10947 if test "x$ac_cv_func_dlopen" = xyes; then :
10948 lt_cv_dlopen="dlopen"
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10951 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10952 if ${ac_cv_lib_dl_dlopen+:} false; then :
10953 $as_echo_n "(cached) " >&6
10955 ac_check_lib_save_LIBS=$LIBS
10957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958 /* end confdefs.h. */
10960 /* Override any GCC internal prototype to avoid an error.
10961 Use char because int might match the return type of a GCC
10962 builtin and then its argument prototype would still apply. */
10975 if ac_fn_c_try_link "$LINENO"; then :
10976 ac_cv_lib_dl_dlopen=yes
10978 ac_cv_lib_dl_dlopen=no
10980 rm -f core conftest.err conftest.$ac_objext \
10981 conftest$ac_exeext conftest.$ac_ext
10982 LIBS=$ac_check_lib_save_LIBS
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10985 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10986 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10987 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10990 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10991 if ${ac_cv_lib_svld_dlopen+:} false; then :
10992 $as_echo_n "(cached) " >&6
10994 ac_check_lib_save_LIBS=$LIBS
10995 LIBS="-lsvld $LIBS"
10996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h. */
10999 /* Override any GCC internal prototype to avoid an error.
11000 Use char because int might match the return type of a GCC
11001 builtin and then its argument prototype would still apply. */
11014 if ac_fn_c_try_link "$LINENO"; then :
11015 ac_cv_lib_svld_dlopen=yes
11017 ac_cv_lib_svld_dlopen=no
11019 rm -f core conftest.err conftest.$ac_objext \
11020 conftest$ac_exeext conftest.$ac_ext
11021 LIBS=$ac_check_lib_save_LIBS
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11024 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11025 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11026 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11029 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11030 if ${ac_cv_lib_dld_dld_link+:} false; then :
11031 $as_echo_n "(cached) " >&6
11033 ac_check_lib_save_LIBS=$LIBS
11035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h. */
11038 /* Override any GCC internal prototype to avoid an error.
11039 Use char because int might match the return type of a GCC
11040 builtin and then its argument prototype would still apply. */
11048 return dld_link ();
11053 if ac_fn_c_try_link "$LINENO"; then :
11054 ac_cv_lib_dld_dld_link=yes
11056 ac_cv_lib_dld_dld_link=no
11058 rm -f core conftest.err conftest.$ac_objext \
11059 conftest$ac_exeext conftest.$ac_ext
11060 LIBS=$ac_check_lib_save_LIBS
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11063 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11064 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11065 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11086 if test "x$lt_cv_dlopen" != xno; then
11092 case $lt_cv_dlopen in
11094 save_CPPFLAGS="$CPPFLAGS"
11095 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11097 save_LDFLAGS="$LDFLAGS"
11098 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11101 LIBS="$lt_cv_dlopen_libs $LIBS"
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11104 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11105 if ${lt_cv_dlopen_self+:} false; then :
11106 $as_echo_n "(cached) " >&6
11108 if test "$cross_compiling" = yes; then :
11109 lt_cv_dlopen_self=cross
11111 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11112 lt_status=$lt_dlunknown
11113 cat > conftest.$ac_ext <<_LT_EOF
11114 #line $LINENO "configure"
11115 #include "confdefs.h"
11124 # define LT_DLGLOBAL RTLD_GLOBAL
11127 # define LT_DLGLOBAL DL_GLOBAL
11129 # define LT_DLGLOBAL 0
11133 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11134 find out it does not work in some platform. */
11135 #ifndef LT_DLLAZY_OR_NOW
11137 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11140 # define LT_DLLAZY_OR_NOW DL_LAZY
11143 # define LT_DLLAZY_OR_NOW RTLD_NOW
11146 # define LT_DLLAZY_OR_NOW DL_NOW
11148 # define LT_DLLAZY_OR_NOW 0
11155 /* When -fvisbility=hidden is used, assume the code has been annotated
11156 correspondingly for the symbols needed. */
11157 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11158 int fnord () __attribute__((visibility("default")));
11161 int fnord () { return 42; }
11164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11165 int status = $lt_dlunknown;
11169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11172 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11173 else puts (dlerror ());
11175 /* dlclose (self); */
11183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11184 (eval $ac_link) 2>&5
11186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11187 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11188 (./conftest; exit; ) >&5 2>/dev/null
11190 case x$lt_status in
11191 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11192 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11193 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11196 # compilation failed
11197 lt_cv_dlopen_self=no
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11205 $as_echo "$lt_cv_dlopen_self" >&6; }
11207 if test "x$lt_cv_dlopen_self" = xyes; then
11208 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11210 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11211 if ${lt_cv_dlopen_self_static+:} false; then :
11212 $as_echo_n "(cached) " >&6
11214 if test "$cross_compiling" = yes; then :
11215 lt_cv_dlopen_self_static=cross
11217 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11218 lt_status=$lt_dlunknown
11219 cat > conftest.$ac_ext <<_LT_EOF
11220 #line $LINENO "configure"
11221 #include "confdefs.h"
11230 # define LT_DLGLOBAL RTLD_GLOBAL
11233 # define LT_DLGLOBAL DL_GLOBAL
11235 # define LT_DLGLOBAL 0
11239 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11240 find out it does not work in some platform. */
11241 #ifndef LT_DLLAZY_OR_NOW
11243 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11246 # define LT_DLLAZY_OR_NOW DL_LAZY
11249 # define LT_DLLAZY_OR_NOW RTLD_NOW
11252 # define LT_DLLAZY_OR_NOW DL_NOW
11254 # define LT_DLLAZY_OR_NOW 0
11261 /* When -fvisbility=hidden is used, assume the code has been annotated
11262 correspondingly for the symbols needed. */
11263 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11264 int fnord () __attribute__((visibility("default")));
11267 int fnord () { return 42; }
11270 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11271 int status = $lt_dlunknown;
11275 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11278 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11279 else puts (dlerror ());
11281 /* dlclose (self); */
11289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11290 (eval $ac_link) 2>&5
11292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11293 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11294 (./conftest; exit; ) >&5 2>/dev/null
11296 case x$lt_status in
11297 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11298 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11299 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11302 # compilation failed
11303 lt_cv_dlopen_self_static=no
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11311 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11314 CPPFLAGS="$save_CPPFLAGS"
11315 LDFLAGS="$save_LDFLAGS"
11320 case $lt_cv_dlopen_self in
11321 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11322 *) enable_dlopen_self=unknown ;;
11325 case $lt_cv_dlopen_self_static in
11326 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11327 *) enable_dlopen_self_static=unknown ;;
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11350 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11351 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11352 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11353 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11355 $as_echo "yes" >&6; }
11357 # FIXME - insert some real tests, host_os isn't really good enough
11360 if test -n "$STRIP" ; then
11361 striplib="$STRIP -x"
11362 old_striplib="$STRIP -S"
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11364 $as_echo "yes" >&6; }
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11367 $as_echo "no" >&6; }
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372 $as_echo "no" >&6; }
11388 # Report which library types will actually be built
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11390 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11392 $as_echo "$can_build_shared" >&6; }
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11395 $as_echo_n "checking whether to build shared libraries... " >&6; }
11396 test "$can_build_shared" = "no" && enable_shared=no
11398 # On AIX, shared libraries and static libraries use the same namespace, and
11399 # are all built from PIC.
11402 test "$enable_shared" = yes && enable_static=no
11403 if test -n "$RANLIB"; then
11404 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11405 postinstall_cmds='$RANLIB $lib'
11410 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11411 test "$enable_shared" = yes && enable_static=no
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11416 $as_echo "$enable_shared" >&6; }
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11419 $as_echo_n "checking whether to build static libraries... " >&6; }
11420 # Make sure either enable_shared or enable_static is yes.
11421 test "$enable_shared" = yes || enable_static=yes
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11423 $as_echo "$enable_static" >&6; }
11430 ac_cpp='$CPP $CPPFLAGS'
11431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11449 ac_config_commands="$ac_config_commands libtool"
11454 # Only expand once:
11458 # Require xorg-macros minimum of 1.12 for DocBook external references
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11471 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11472 if ${ac_cv_prog_cc_c99+:} false; then :
11473 $as_echo_n "(cached) " >&6
11475 ac_cv_prog_cc_c99=no
11477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478 /* end confdefs.h. */
11479 #include <stdarg.h>
11480 #include <stdbool.h>
11481 #include <stdlib.h>
11485 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11486 #define debug(...) fprintf (stderr, __VA_ARGS__)
11487 #define showlist(...) puts (#__VA_ARGS__)
11488 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11490 test_varargs_macros (void)
11495 debug ("X = %d\n", x);
11496 showlist (The first, second, and third items.);
11497 report (x>y, "x is %d but y is %d", x, y);
11500 // Check long long types.
11501 #define BIG64 18446744073709551615ull
11502 #define BIG32 4294967295ul
11503 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11505 your preprocessor is broken;
11509 your preprocessor is broken;
11511 static long long int bignum = -9223372036854775807LL;
11512 static unsigned long long int ubignum = BIG64;
11514 struct incomplete_array
11520 struct named_init {
11522 const wchar_t *name;
11526 typedef const char *ccp;
11529 test_restrict (ccp restrict text)
11531 // See if C++-style comments work.
11532 // Iterate through items via the restricted pointer.
11533 // Also check for declarations in for loops.
11534 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11539 // Check varargs and va_copy.
11541 test_varargs (const char *format, ...)
11544 va_start (args, format);
11546 va_copy (args_copy, args);
11556 case 's': // string
11557 str = va_arg (args_copy, const char *);
11560 number = va_arg (args_copy, int);
11563 fnumber = va_arg (args_copy, double);
11569 va_end (args_copy);
11578 _Bool success = false;
11581 if (test_restrict ("String literal") == 0)
11583 char *restrict newvar = "Another string";
11586 test_varargs ("s, d' f .", "string", 65, 34.234);
11587 test_varargs_macros ();
11589 // Check flexible array members.
11590 struct incomplete_array *ia =
11591 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11593 for (int i = 0; i < ia->datasize; ++i)
11594 ia->data[i] = i * 1.234;
11596 // Check named initializers.
11597 struct named_init ni = {
11599 .name = L"Test wide string",
11600 .average = 543.34343,
11605 int dynamic_array[ni.number];
11606 dynamic_array[ni.number - 1] = 543;
11608 // work around unused variable warnings
11609 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11610 || dynamic_array[ni.number - 1] != 543);
11616 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11618 CC="$ac_save_CC $ac_arg"
11619 if ac_fn_c_try_compile "$LINENO"; then :
11620 ac_cv_prog_cc_c99=$ac_arg
11622 rm -f core conftest.err conftest.$ac_objext
11623 test "x$ac_cv_prog_cc_c99" != "xno" && break
11625 rm -f conftest.$ac_ext
11630 case "x$ac_cv_prog_cc_c99" in
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11633 $as_echo "none needed" >&6; } ;;
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11636 $as_echo "unsupported" >&6; } ;;
11638 CC="$CC $ac_cv_prog_cc_c99"
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11640 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11642 if test "x$ac_cv_prog_cc_c99" != xno; then :
11651 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11652 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11658 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11659 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11665 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11666 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11675 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11676 if test -n "$ac_tool_prefix"; then
11677 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11678 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11680 $as_echo_n "checking for $ac_word... " >&6; }
11681 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11682 $as_echo_n "(cached) " >&6
11684 case $PKG_CONFIG in
11686 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690 for as_dir in $PATH
11693 test -z "$as_dir" && as_dir=.
11694 for ac_exec_ext in '' $ac_executable_extensions; do
11695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11696 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11707 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11708 if test -n "$PKG_CONFIG"; then
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11710 $as_echo "$PKG_CONFIG" >&6; }
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11713 $as_echo "no" >&6; }
11718 if test -z "$ac_cv_path_PKG_CONFIG"; then
11719 ac_pt_PKG_CONFIG=$PKG_CONFIG
11720 # Extract the first word of "pkg-config", so it can be a program name with args.
11721 set dummy pkg-config; ac_word=$2
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11723 $as_echo_n "checking for $ac_word... " >&6; }
11724 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11725 $as_echo_n "(cached) " >&6
11727 case $ac_pt_PKG_CONFIG in
11729 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11733 for as_dir in $PATH
11736 test -z "$as_dir" && as_dir=.
11737 for ac_exec_ext in '' $ac_executable_extensions; do
11738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11739 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11750 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11751 if test -n "$ac_pt_PKG_CONFIG"; then
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11753 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11756 $as_echo "no" >&6; }
11759 if test "x$ac_pt_PKG_CONFIG" = x; then
11762 case $cross_compiling:$ac_tool_warned in
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11766 ac_tool_warned=yes ;;
11768 PKG_CONFIG=$ac_pt_PKG_CONFIG
11771 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11775 if test -n "$PKG_CONFIG"; then
11776 _pkg_min_version=0.9.0
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11778 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11779 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11781 $as_echo "yes" >&6; }
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11784 $as_echo "no" >&6; }
11794 # Check whether --enable-selective-werror was given.
11795 if test "${enable_selective_werror+set}" = set; then :
11796 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11798 SELECTIVE_WERROR=yes
11805 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11806 if test "x$SUNCC" = "xyes"; then
11812 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11824 xorg_testset_save_CFLAGS="$CFLAGS"
11826 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11829 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11830 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11831 $as_echo_n "(cached) " >&6
11833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h. */
11837 if ac_fn_c_try_compile "$LINENO"; then :
11838 xorg_cv_compiler_flag_unknown_warning_option=yes
11840 xorg_cv_compiler_flag_unknown_warning_option=no
11842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11845 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11846 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11847 CFLAGS="$xorg_testset_save_CFLAGS"
11850 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11851 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11856 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11857 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11858 $as_echo_n "(cached) " >&6
11860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11861 /* end confdefs.h. */
11864 if ac_fn_c_try_compile "$LINENO"; then :
11865 xorg_cv_compiler_flag_unused_command_line_argument=yes
11867 xorg_cv_compiler_flag_unused_command_line_argument=no
11869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11872 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11873 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11874 CFLAGS="$xorg_testset_save_CFLAGS"
11879 if test $found = "no" ; then
11880 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11884 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11888 CFLAGS="$CFLAGS -Wall"
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11891 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11892 cacheid=`$as_echo xorg_cv_cc_flag_-Wall`
11893 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11894 $as_echo_n "(cached) " >&6
11896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11897 /* end confdefs.h. */
11907 if ac_fn_c_try_link "$LINENO"; then :
11908 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11910 eval `$as_echo "$cacheid" | $as_tr_sh`=no
11912 rm -f core conftest.err conftest.$ac_objext \
11913 conftest$ac_exeext conftest.$ac_ext
11917 CFLAGS="$xorg_testset_save_CFLAGS"
11919 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11921 $as_echo "$supported" >&6; }
11922 if test "$supported" = "yes" ; then
11923 BASE_CFLAGS="$BASE_CFLAGS -Wall"
11940 xorg_testset_save_CFLAGS="$CFLAGS"
11942 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11945 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11946 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11947 $as_echo_n "(cached) " >&6
11949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11950 /* end confdefs.h. */
11953 if ac_fn_c_try_compile "$LINENO"; then :
11954 xorg_cv_compiler_flag_unknown_warning_option=yes
11956 xorg_cv_compiler_flag_unknown_warning_option=no
11958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11961 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11962 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11963 CFLAGS="$xorg_testset_save_CFLAGS"
11966 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11967 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11972 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11973 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11974 $as_echo_n "(cached) " >&6
11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11977 /* end confdefs.h. */
11980 if ac_fn_c_try_compile "$LINENO"; then :
11981 xorg_cv_compiler_flag_unused_command_line_argument=yes
11983 xorg_cv_compiler_flag_unused_command_line_argument=no
11985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11988 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11989 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11990 CFLAGS="$xorg_testset_save_CFLAGS"
11995 if test $found = "no" ; then
11996 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12000 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12004 CFLAGS="$CFLAGS -Wpointer-arith"
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12007 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12008 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith`
12009 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12010 $as_echo_n "(cached) " >&6
12012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h. */
12023 if ac_fn_c_try_link "$LINENO"; then :
12024 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12026 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12028 rm -f core conftest.err conftest.$ac_objext \
12029 conftest$ac_exeext conftest.$ac_ext
12033 CFLAGS="$xorg_testset_save_CFLAGS"
12035 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12037 $as_echo "$supported" >&6; }
12038 if test "$supported" = "yes" ; then
12039 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12056 xorg_testset_save_CFLAGS="$CFLAGS"
12058 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12061 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12062 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12063 $as_echo_n "(cached) " >&6
12065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066 /* end confdefs.h. */
12069 if ac_fn_c_try_compile "$LINENO"; then :
12070 xorg_cv_compiler_flag_unknown_warning_option=yes
12072 xorg_cv_compiler_flag_unknown_warning_option=no
12074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12077 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12078 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12079 CFLAGS="$xorg_testset_save_CFLAGS"
12082 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12083 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12088 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12089 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12090 $as_echo_n "(cached) " >&6
12092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093 /* end confdefs.h. */
12096 if ac_fn_c_try_compile "$LINENO"; then :
12097 xorg_cv_compiler_flag_unused_command_line_argument=yes
12099 xorg_cv_compiler_flag_unused_command_line_argument=no
12101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12104 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12105 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12106 CFLAGS="$xorg_testset_save_CFLAGS"
12111 if test $found = "no" ; then
12112 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12116 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12120 CFLAGS="$CFLAGS -Wmissing-declarations"
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12123 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12124 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations`
12125 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12126 $as_echo_n "(cached) " >&6
12128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129 /* end confdefs.h. */
12139 if ac_fn_c_try_link "$LINENO"; then :
12140 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12142 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12144 rm -f core conftest.err conftest.$ac_objext \
12145 conftest$ac_exeext conftest.$ac_ext
12149 CFLAGS="$xorg_testset_save_CFLAGS"
12151 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12153 $as_echo "$supported" >&6; }
12154 if test "$supported" = "yes" ; then
12155 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12172 xorg_testset_save_CFLAGS="$CFLAGS"
12174 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12177 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12178 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12179 $as_echo_n "(cached) " >&6
12181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h. */
12185 if ac_fn_c_try_compile "$LINENO"; then :
12186 xorg_cv_compiler_flag_unknown_warning_option=yes
12188 xorg_cv_compiler_flag_unknown_warning_option=no
12190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12193 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12194 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12195 CFLAGS="$xorg_testset_save_CFLAGS"
12198 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12199 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12204 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12205 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12206 $as_echo_n "(cached) " >&6
12208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12209 /* end confdefs.h. */
12212 if ac_fn_c_try_compile "$LINENO"; then :
12213 xorg_cv_compiler_flag_unused_command_line_argument=yes
12215 xorg_cv_compiler_flag_unused_command_line_argument=no
12217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12220 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12221 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12222 CFLAGS="$xorg_testset_save_CFLAGS"
12227 if test $found = "no" ; then
12228 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12232 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12236 CFLAGS="$CFLAGS -Wformat=2"
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12239 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12240 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2`
12241 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12242 $as_echo_n "(cached) " >&6
12244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245 /* end confdefs.h. */
12255 if ac_fn_c_try_link "$LINENO"; then :
12256 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12258 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12260 rm -f core conftest.err conftest.$ac_objext \
12261 conftest$ac_exeext conftest.$ac_ext
12265 CFLAGS="$xorg_testset_save_CFLAGS"
12267 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12269 $as_echo "$supported" >&6; }
12270 if test "$supported" = "yes" ; then
12271 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12276 if test $found = "no" ; then
12277 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12281 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12285 CFLAGS="$CFLAGS -Wformat"
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12288 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12289 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat`
12290 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12291 $as_echo_n "(cached) " >&6
12293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12294 /* end confdefs.h. */
12304 if ac_fn_c_try_link "$LINENO"; then :
12305 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12307 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12309 rm -f core conftest.err conftest.$ac_objext \
12310 conftest$ac_exeext conftest.$ac_ext
12314 CFLAGS="$xorg_testset_save_CFLAGS"
12316 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12318 $as_echo "$supported" >&6; }
12319 if test "$supported" = "yes" ; then
12320 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12339 xorg_testset_save_CFLAGS="$CFLAGS"
12341 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12344 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12345 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12346 $as_echo_n "(cached) " >&6
12348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12349 /* end confdefs.h. */
12352 if ac_fn_c_try_compile "$LINENO"; then :
12353 xorg_cv_compiler_flag_unknown_warning_option=yes
12355 xorg_cv_compiler_flag_unknown_warning_option=no
12357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12360 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12361 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12362 CFLAGS="$xorg_testset_save_CFLAGS"
12365 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12366 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12371 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12372 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12373 $as_echo_n "(cached) " >&6
12375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12376 /* end confdefs.h. */
12379 if ac_fn_c_try_compile "$LINENO"; then :
12380 xorg_cv_compiler_flag_unused_command_line_argument=yes
12382 xorg_cv_compiler_flag_unused_command_line_argument=no
12384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12387 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12388 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12389 CFLAGS="$xorg_testset_save_CFLAGS"
12394 if test $found = "no" ; then
12395 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12399 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12403 CFLAGS="$CFLAGS -Wstrict-prototypes"
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12406 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12407 cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes`
12408 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12409 $as_echo_n "(cached) " >&6
12411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12412 /* end confdefs.h. */
12422 if ac_fn_c_try_link "$LINENO"; then :
12423 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12425 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12427 rm -f core conftest.err conftest.$ac_objext \
12428 conftest$ac_exeext conftest.$ac_ext
12432 CFLAGS="$xorg_testset_save_CFLAGS"
12434 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12436 $as_echo "$supported" >&6; }
12437 if test "$supported" = "yes" ; then
12438 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12455 xorg_testset_save_CFLAGS="$CFLAGS"
12457 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12460 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12461 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12462 $as_echo_n "(cached) " >&6
12464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12465 /* end confdefs.h. */
12468 if ac_fn_c_try_compile "$LINENO"; then :
12469 xorg_cv_compiler_flag_unknown_warning_option=yes
12471 xorg_cv_compiler_flag_unknown_warning_option=no
12473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12476 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12477 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12478 CFLAGS="$xorg_testset_save_CFLAGS"
12481 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12482 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12487 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12488 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12489 $as_echo_n "(cached) " >&6
12491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12492 /* end confdefs.h. */
12495 if ac_fn_c_try_compile "$LINENO"; then :
12496 xorg_cv_compiler_flag_unused_command_line_argument=yes
12498 xorg_cv_compiler_flag_unused_command_line_argument=no
12500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12503 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12504 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12505 CFLAGS="$xorg_testset_save_CFLAGS"
12510 if test $found = "no" ; then
12511 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12515 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12519 CFLAGS="$CFLAGS -Wmissing-prototypes"
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12522 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12523 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes`
12524 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12525 $as_echo_n "(cached) " >&6
12527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12528 /* end confdefs.h. */
12538 if ac_fn_c_try_link "$LINENO"; then :
12539 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12541 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12543 rm -f core conftest.err conftest.$ac_objext \
12544 conftest$ac_exeext conftest.$ac_ext
12548 CFLAGS="$xorg_testset_save_CFLAGS"
12550 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12552 $as_echo "$supported" >&6; }
12553 if test "$supported" = "yes" ; then
12554 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12571 xorg_testset_save_CFLAGS="$CFLAGS"
12573 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12576 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12577 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12578 $as_echo_n "(cached) " >&6
12580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581 /* end confdefs.h. */
12584 if ac_fn_c_try_compile "$LINENO"; then :
12585 xorg_cv_compiler_flag_unknown_warning_option=yes
12587 xorg_cv_compiler_flag_unknown_warning_option=no
12589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12592 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12593 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12594 CFLAGS="$xorg_testset_save_CFLAGS"
12597 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12598 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12603 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12604 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12605 $as_echo_n "(cached) " >&6
12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h. */
12611 if ac_fn_c_try_compile "$LINENO"; then :
12612 xorg_cv_compiler_flag_unused_command_line_argument=yes
12614 xorg_cv_compiler_flag_unused_command_line_argument=no
12616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12619 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12620 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12621 CFLAGS="$xorg_testset_save_CFLAGS"
12626 if test $found = "no" ; then
12627 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12631 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12635 CFLAGS="$CFLAGS -Wnested-externs"
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12638 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12639 cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs`
12640 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12641 $as_echo_n "(cached) " >&6
12643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644 /* end confdefs.h. */
12654 if ac_fn_c_try_link "$LINENO"; then :
12655 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12657 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12659 rm -f core conftest.err conftest.$ac_objext \
12660 conftest$ac_exeext conftest.$ac_ext
12664 CFLAGS="$xorg_testset_save_CFLAGS"
12666 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12668 $as_echo "$supported" >&6; }
12669 if test "$supported" = "yes" ; then
12670 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12687 xorg_testset_save_CFLAGS="$CFLAGS"
12689 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12692 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12693 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12694 $as_echo_n "(cached) " >&6
12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697 /* end confdefs.h. */
12700 if ac_fn_c_try_compile "$LINENO"; then :
12701 xorg_cv_compiler_flag_unknown_warning_option=yes
12703 xorg_cv_compiler_flag_unknown_warning_option=no
12705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12708 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12709 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12710 CFLAGS="$xorg_testset_save_CFLAGS"
12713 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12714 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12719 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12720 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12721 $as_echo_n "(cached) " >&6
12723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724 /* end confdefs.h. */
12727 if ac_fn_c_try_compile "$LINENO"; then :
12728 xorg_cv_compiler_flag_unused_command_line_argument=yes
12730 xorg_cv_compiler_flag_unused_command_line_argument=no
12732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12735 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12736 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12737 CFLAGS="$xorg_testset_save_CFLAGS"
12742 if test $found = "no" ; then
12743 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12747 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12751 CFLAGS="$CFLAGS -Wbad-function-cast"
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12754 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12755 cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast`
12756 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12757 $as_echo_n "(cached) " >&6
12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h. */
12770 if ac_fn_c_try_link "$LINENO"; then :
12771 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12773 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12775 rm -f core conftest.err conftest.$ac_objext \
12776 conftest$ac_exeext conftest.$ac_ext
12780 CFLAGS="$xorg_testset_save_CFLAGS"
12782 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12784 $as_echo "$supported" >&6; }
12785 if test "$supported" = "yes" ; then
12786 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12803 xorg_testset_save_CFLAGS="$CFLAGS"
12805 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12808 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12809 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12810 $as_echo_n "(cached) " >&6
12812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12813 /* end confdefs.h. */
12816 if ac_fn_c_try_compile "$LINENO"; then :
12817 xorg_cv_compiler_flag_unknown_warning_option=yes
12819 xorg_cv_compiler_flag_unknown_warning_option=no
12821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12824 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12825 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12826 CFLAGS="$xorg_testset_save_CFLAGS"
12829 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12830 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12835 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12836 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12837 $as_echo_n "(cached) " >&6
12839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12840 /* end confdefs.h. */
12843 if ac_fn_c_try_compile "$LINENO"; then :
12844 xorg_cv_compiler_flag_unused_command_line_argument=yes
12846 xorg_cv_compiler_flag_unused_command_line_argument=no
12848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12851 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12852 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12853 CFLAGS="$xorg_testset_save_CFLAGS"
12858 if test $found = "no" ; then
12859 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12863 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12867 CFLAGS="$CFLAGS -Wold-style-definition"
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12870 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12871 cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition`
12872 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12873 $as_echo_n "(cached) " >&6
12875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876 /* end confdefs.h. */
12886 if ac_fn_c_try_link "$LINENO"; then :
12887 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12889 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12891 rm -f core conftest.err conftest.$ac_objext \
12892 conftest$ac_exeext conftest.$ac_ext
12896 CFLAGS="$xorg_testset_save_CFLAGS"
12898 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12900 $as_echo "$supported" >&6; }
12901 if test "$supported" = "yes" ; then
12902 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12919 xorg_testset_save_CFLAGS="$CFLAGS"
12921 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12924 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12925 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12926 $as_echo_n "(cached) " >&6
12928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12929 /* end confdefs.h. */
12932 if ac_fn_c_try_compile "$LINENO"; then :
12933 xorg_cv_compiler_flag_unknown_warning_option=yes
12935 xorg_cv_compiler_flag_unknown_warning_option=no
12937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12940 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12941 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12942 CFLAGS="$xorg_testset_save_CFLAGS"
12945 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12946 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12951 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12952 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12953 $as_echo_n "(cached) " >&6
12955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h. */
12959 if ac_fn_c_try_compile "$LINENO"; then :
12960 xorg_cv_compiler_flag_unused_command_line_argument=yes
12962 xorg_cv_compiler_flag_unused_command_line_argument=no
12964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12967 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12968 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12969 CFLAGS="$xorg_testset_save_CFLAGS"
12974 if test $found = "no" ; then
12975 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12979 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12983 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12986 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12987 cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement`
12988 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12989 $as_echo_n "(cached) " >&6
12991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12992 /* end confdefs.h. */
13002 if ac_fn_c_try_link "$LINENO"; then :
13003 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13005 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13007 rm -f core conftest.err conftest.$ac_objext \
13008 conftest$ac_exeext conftest.$ac_ext
13012 CFLAGS="$xorg_testset_save_CFLAGS"
13014 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13016 $as_echo "$supported" >&6; }
13017 if test "$supported" = "yes" ; then
13018 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13027 # This chunk adds additional warnings that could catch undesired effects.
13039 xorg_testset_save_CFLAGS="$CFLAGS"
13041 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13044 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13045 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13046 $as_echo_n "(cached) " >&6
13048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13049 /* end confdefs.h. */
13052 if ac_fn_c_try_compile "$LINENO"; then :
13053 xorg_cv_compiler_flag_unknown_warning_option=yes
13055 xorg_cv_compiler_flag_unknown_warning_option=no
13057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13060 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13061 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13062 CFLAGS="$xorg_testset_save_CFLAGS"
13065 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13066 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13071 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13072 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13073 $as_echo_n "(cached) " >&6
13075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13076 /* end confdefs.h. */
13079 if ac_fn_c_try_compile "$LINENO"; then :
13080 xorg_cv_compiler_flag_unused_command_line_argument=yes
13082 xorg_cv_compiler_flag_unused_command_line_argument=no
13084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13087 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13088 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13089 CFLAGS="$xorg_testset_save_CFLAGS"
13094 if test $found = "no" ; then
13095 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13099 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13103 CFLAGS="$CFLAGS -Wunused"
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13106 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13107 cacheid=`$as_echo xorg_cv_cc_flag_-Wunused`
13108 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13109 $as_echo_n "(cached) " >&6
13111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13112 /* end confdefs.h. */
13122 if ac_fn_c_try_link "$LINENO"; then :
13123 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13125 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13127 rm -f core conftest.err conftest.$ac_objext \
13128 conftest$ac_exeext conftest.$ac_ext
13132 CFLAGS="$xorg_testset_save_CFLAGS"
13134 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13136 $as_echo "$supported" >&6; }
13137 if test "$supported" = "yes" ; then
13138 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13155 xorg_testset_save_CFLAGS="$CFLAGS"
13157 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13160 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13161 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13162 $as_echo_n "(cached) " >&6
13164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13165 /* end confdefs.h. */
13168 if ac_fn_c_try_compile "$LINENO"; then :
13169 xorg_cv_compiler_flag_unknown_warning_option=yes
13171 xorg_cv_compiler_flag_unknown_warning_option=no
13173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13176 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13177 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13178 CFLAGS="$xorg_testset_save_CFLAGS"
13181 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13182 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13187 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13188 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13189 $as_echo_n "(cached) " >&6
13191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192 /* end confdefs.h. */
13195 if ac_fn_c_try_compile "$LINENO"; then :
13196 xorg_cv_compiler_flag_unused_command_line_argument=yes
13198 xorg_cv_compiler_flag_unused_command_line_argument=no
13200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13203 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13204 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13205 CFLAGS="$xorg_testset_save_CFLAGS"
13210 if test $found = "no" ; then
13211 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13215 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13219 CFLAGS="$CFLAGS -Wuninitialized"
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13222 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13223 cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized`
13224 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13225 $as_echo_n "(cached) " >&6
13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h. */
13238 if ac_fn_c_try_link "$LINENO"; then :
13239 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13241 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13243 rm -f core conftest.err conftest.$ac_objext \
13244 conftest$ac_exeext conftest.$ac_ext
13248 CFLAGS="$xorg_testset_save_CFLAGS"
13250 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13252 $as_echo "$supported" >&6; }
13253 if test "$supported" = "yes" ; then
13254 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13271 xorg_testset_save_CFLAGS="$CFLAGS"
13273 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13276 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13277 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13278 $as_echo_n "(cached) " >&6
13280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281 /* end confdefs.h. */
13284 if ac_fn_c_try_compile "$LINENO"; then :
13285 xorg_cv_compiler_flag_unknown_warning_option=yes
13287 xorg_cv_compiler_flag_unknown_warning_option=no
13289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13292 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13293 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13294 CFLAGS="$xorg_testset_save_CFLAGS"
13297 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13298 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13303 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13304 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13305 $as_echo_n "(cached) " >&6
13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h. */
13311 if ac_fn_c_try_compile "$LINENO"; then :
13312 xorg_cv_compiler_flag_unused_command_line_argument=yes
13314 xorg_cv_compiler_flag_unused_command_line_argument=no
13316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13319 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13320 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13321 CFLAGS="$xorg_testset_save_CFLAGS"
13326 if test $found = "no" ; then
13327 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13331 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13335 CFLAGS="$CFLAGS -Wshadow"
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13338 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13339 cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow`
13340 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13341 $as_echo_n "(cached) " >&6
13343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344 /* end confdefs.h. */
13354 if ac_fn_c_try_link "$LINENO"; then :
13355 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13357 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13359 rm -f core conftest.err conftest.$ac_objext \
13360 conftest$ac_exeext conftest.$ac_ext
13364 CFLAGS="$xorg_testset_save_CFLAGS"
13366 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13368 $as_echo "$supported" >&6; }
13369 if test "$supported" = "yes" ; then
13370 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13387 xorg_testset_save_CFLAGS="$CFLAGS"
13389 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13392 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13393 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13394 $as_echo_n "(cached) " >&6
13396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13397 /* end confdefs.h. */
13400 if ac_fn_c_try_compile "$LINENO"; then :
13401 xorg_cv_compiler_flag_unknown_warning_option=yes
13403 xorg_cv_compiler_flag_unknown_warning_option=no
13405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13408 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13409 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13410 CFLAGS="$xorg_testset_save_CFLAGS"
13413 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13414 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13419 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13420 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13421 $as_echo_n "(cached) " >&6
13423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424 /* end confdefs.h. */
13427 if ac_fn_c_try_compile "$LINENO"; then :
13428 xorg_cv_compiler_flag_unused_command_line_argument=yes
13430 xorg_cv_compiler_flag_unused_command_line_argument=no
13432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13435 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13436 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13437 CFLAGS="$xorg_testset_save_CFLAGS"
13442 if test $found = "no" ; then
13443 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13447 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13451 CFLAGS="$CFLAGS -Wcast-qual"
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13454 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13455 cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual`
13456 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13457 $as_echo_n "(cached) " >&6
13459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13460 /* end confdefs.h. */
13470 if ac_fn_c_try_link "$LINENO"; then :
13471 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13473 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13475 rm -f core conftest.err conftest.$ac_objext \
13476 conftest$ac_exeext conftest.$ac_ext
13480 CFLAGS="$xorg_testset_save_CFLAGS"
13482 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13484 $as_echo "$supported" >&6; }
13485 if test "$supported" = "yes" ; then
13486 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13503 xorg_testset_save_CFLAGS="$CFLAGS"
13505 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13508 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13509 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13510 $as_echo_n "(cached) " >&6
13512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513 /* end confdefs.h. */
13516 if ac_fn_c_try_compile "$LINENO"; then :
13517 xorg_cv_compiler_flag_unknown_warning_option=yes
13519 xorg_cv_compiler_flag_unknown_warning_option=no
13521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13524 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13525 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13526 CFLAGS="$xorg_testset_save_CFLAGS"
13529 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13530 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13535 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13536 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13537 $as_echo_n "(cached) " >&6
13539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540 /* end confdefs.h. */
13543 if ac_fn_c_try_compile "$LINENO"; then :
13544 xorg_cv_compiler_flag_unused_command_line_argument=yes
13546 xorg_cv_compiler_flag_unused_command_line_argument=no
13548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13551 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13552 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13553 CFLAGS="$xorg_testset_save_CFLAGS"
13558 if test $found = "no" ; then
13559 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13563 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13567 CFLAGS="$CFLAGS -Wmissing-noreturn"
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13570 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13571 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn`
13572 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13573 $as_echo_n "(cached) " >&6
13575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h. */
13586 if ac_fn_c_try_link "$LINENO"; then :
13587 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13589 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13591 rm -f core conftest.err conftest.$ac_objext \
13592 conftest$ac_exeext conftest.$ac_ext
13596 CFLAGS="$xorg_testset_save_CFLAGS"
13598 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13600 $as_echo "$supported" >&6; }
13601 if test "$supported" = "yes" ; then
13602 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13619 xorg_testset_save_CFLAGS="$CFLAGS"
13621 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13624 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13625 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13626 $as_echo_n "(cached) " >&6
13628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629 /* end confdefs.h. */
13632 if ac_fn_c_try_compile "$LINENO"; then :
13633 xorg_cv_compiler_flag_unknown_warning_option=yes
13635 xorg_cv_compiler_flag_unknown_warning_option=no
13637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13640 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13641 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13642 CFLAGS="$xorg_testset_save_CFLAGS"
13645 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13646 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13651 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13652 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13653 $as_echo_n "(cached) " >&6
13655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13656 /* end confdefs.h. */
13659 if ac_fn_c_try_compile "$LINENO"; then :
13660 xorg_cv_compiler_flag_unused_command_line_argument=yes
13662 xorg_cv_compiler_flag_unused_command_line_argument=no
13664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13667 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13668 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13669 CFLAGS="$xorg_testset_save_CFLAGS"
13674 if test $found = "no" ; then
13675 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13679 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13683 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13686 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13687 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute`
13688 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13689 $as_echo_n "(cached) " >&6
13691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13692 /* end confdefs.h. */
13702 if ac_fn_c_try_link "$LINENO"; then :
13703 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13705 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13707 rm -f core conftest.err conftest.$ac_objext \
13708 conftest$ac_exeext conftest.$ac_ext
13712 CFLAGS="$xorg_testset_save_CFLAGS"
13714 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13716 $as_echo "$supported" >&6; }
13717 if test "$supported" = "yes" ; then
13718 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13735 xorg_testset_save_CFLAGS="$CFLAGS"
13737 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13740 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13741 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13742 $as_echo_n "(cached) " >&6
13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745 /* end confdefs.h. */
13748 if ac_fn_c_try_compile "$LINENO"; then :
13749 xorg_cv_compiler_flag_unknown_warning_option=yes
13751 xorg_cv_compiler_flag_unknown_warning_option=no
13753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13756 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13757 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13758 CFLAGS="$xorg_testset_save_CFLAGS"
13761 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13762 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13767 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13768 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13769 $as_echo_n "(cached) " >&6
13771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13772 /* end confdefs.h. */
13775 if ac_fn_c_try_compile "$LINENO"; then :
13776 xorg_cv_compiler_flag_unused_command_line_argument=yes
13778 xorg_cv_compiler_flag_unused_command_line_argument=no
13780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13783 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13784 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13785 CFLAGS="$xorg_testset_save_CFLAGS"
13790 if test $found = "no" ; then
13791 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13795 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13799 CFLAGS="$CFLAGS -Wredundant-decls"
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13802 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13803 cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls`
13804 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13805 $as_echo_n "(cached) " >&6
13807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808 /* end confdefs.h. */
13818 if ac_fn_c_try_link "$LINENO"; then :
13819 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13821 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13823 rm -f core conftest.err conftest.$ac_objext \
13824 conftest$ac_exeext conftest.$ac_ext
13828 CFLAGS="$xorg_testset_save_CFLAGS"
13830 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13832 $as_echo "$supported" >&6; }
13833 if test "$supported" = "yes" ; then
13834 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13841 # These are currently disabled because they are noisy. They will be enabled
13842 # in the future once the codebase is sufficiently modernized to silence
13843 # them. For now, I don't want them to drown out the other warnings.
13844 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13845 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13846 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13848 # Turn some warnings into errors, so we don't accidently get successful builds
13849 # when there are problems that should be fixed.
13851 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13863 xorg_testset_save_CFLAGS="$CFLAGS"
13865 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13868 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13869 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13870 $as_echo_n "(cached) " >&6
13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873 /* end confdefs.h. */
13876 if ac_fn_c_try_compile "$LINENO"; then :
13877 xorg_cv_compiler_flag_unknown_warning_option=yes
13879 xorg_cv_compiler_flag_unknown_warning_option=no
13881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13884 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13885 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13886 CFLAGS="$xorg_testset_save_CFLAGS"
13889 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13890 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13895 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13896 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13897 $as_echo_n "(cached) " >&6
13899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13900 /* end confdefs.h. */
13903 if ac_fn_c_try_compile "$LINENO"; then :
13904 xorg_cv_compiler_flag_unused_command_line_argument=yes
13906 xorg_cv_compiler_flag_unused_command_line_argument=no
13908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13911 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13912 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13913 CFLAGS="$xorg_testset_save_CFLAGS"
13918 if test $found = "no" ; then
13919 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13923 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13927 CFLAGS="$CFLAGS -Werror=implicit"
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13930 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13931 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit`
13932 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13933 $as_echo_n "(cached) " >&6
13935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13936 /* end confdefs.h. */
13946 if ac_fn_c_try_link "$LINENO"; then :
13947 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13949 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13951 rm -f core conftest.err conftest.$ac_objext \
13952 conftest$ac_exeext conftest.$ac_ext
13956 CFLAGS="$xorg_testset_save_CFLAGS"
13958 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13960 $as_echo "$supported" >&6; }
13961 if test "$supported" = "yes" ; then
13962 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13967 if test $found = "no" ; then
13968 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13972 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13976 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13979 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13980 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
13981 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13982 $as_echo_n "(cached) " >&6
13984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13985 /* end confdefs.h. */
13995 if ac_fn_c_try_link "$LINENO"; then :
13996 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13998 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14000 rm -f core conftest.err conftest.$ac_objext \
14001 conftest$ac_exeext conftest.$ac_ext
14005 CFLAGS="$xorg_testset_save_CFLAGS"
14007 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14009 $as_echo "$supported" >&6; }
14010 if test "$supported" = "yes" ; then
14011 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14028 xorg_testset_save_CFLAGS="$CFLAGS"
14030 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14033 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14034 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14035 $as_echo_n "(cached) " >&6
14037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14038 /* end confdefs.h. */
14041 if ac_fn_c_try_compile "$LINENO"; then :
14042 xorg_cv_compiler_flag_unknown_warning_option=yes
14044 xorg_cv_compiler_flag_unknown_warning_option=no
14046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14049 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14050 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14051 CFLAGS="$xorg_testset_save_CFLAGS"
14054 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14055 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14060 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14061 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14062 $as_echo_n "(cached) " >&6
14064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14065 /* end confdefs.h. */
14068 if ac_fn_c_try_compile "$LINENO"; then :
14069 xorg_cv_compiler_flag_unused_command_line_argument=yes
14071 xorg_cv_compiler_flag_unused_command_line_argument=no
14073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14076 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14077 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14078 CFLAGS="$xorg_testset_save_CFLAGS"
14083 if test $found = "no" ; then
14084 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14088 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14092 CFLAGS="$CFLAGS -Werror=nonnull"
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14095 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14096 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull`
14097 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14098 $as_echo_n "(cached) " >&6
14100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101 /* end confdefs.h. */
14111 if ac_fn_c_try_link "$LINENO"; then :
14112 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14114 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14116 rm -f core conftest.err conftest.$ac_objext \
14117 conftest$ac_exeext conftest.$ac_ext
14121 CFLAGS="$xorg_testset_save_CFLAGS"
14123 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14125 $as_echo "$supported" >&6; }
14126 if test "$supported" = "yes" ; then
14127 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14144 xorg_testset_save_CFLAGS="$CFLAGS"
14146 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14149 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14150 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14151 $as_echo_n "(cached) " >&6
14153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14154 /* end confdefs.h. */
14157 if ac_fn_c_try_compile "$LINENO"; then :
14158 xorg_cv_compiler_flag_unknown_warning_option=yes
14160 xorg_cv_compiler_flag_unknown_warning_option=no
14162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14165 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14166 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14167 CFLAGS="$xorg_testset_save_CFLAGS"
14170 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14171 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14176 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14177 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14178 $as_echo_n "(cached) " >&6
14180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h. */
14184 if ac_fn_c_try_compile "$LINENO"; then :
14185 xorg_cv_compiler_flag_unused_command_line_argument=yes
14187 xorg_cv_compiler_flag_unused_command_line_argument=no
14189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14192 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14193 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14194 CFLAGS="$xorg_testset_save_CFLAGS"
14199 if test $found = "no" ; then
14200 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14204 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14208 CFLAGS="$CFLAGS -Werror=init-self"
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14211 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14212 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self`
14213 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14214 $as_echo_n "(cached) " >&6
14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h. */
14227 if ac_fn_c_try_link "$LINENO"; then :
14228 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14230 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14232 rm -f core conftest.err conftest.$ac_objext \
14233 conftest$ac_exeext conftest.$ac_ext
14237 CFLAGS="$xorg_testset_save_CFLAGS"
14239 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14241 $as_echo "$supported" >&6; }
14242 if test "$supported" = "yes" ; then
14243 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14260 xorg_testset_save_CFLAGS="$CFLAGS"
14262 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14265 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14266 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14267 $as_echo_n "(cached) " >&6
14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h. */
14273 if ac_fn_c_try_compile "$LINENO"; then :
14274 xorg_cv_compiler_flag_unknown_warning_option=yes
14276 xorg_cv_compiler_flag_unknown_warning_option=no
14278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14281 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14282 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14283 CFLAGS="$xorg_testset_save_CFLAGS"
14286 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14287 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14292 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14293 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14294 $as_echo_n "(cached) " >&6
14296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14297 /* end confdefs.h. */
14300 if ac_fn_c_try_compile "$LINENO"; then :
14301 xorg_cv_compiler_flag_unused_command_line_argument=yes
14303 xorg_cv_compiler_flag_unused_command_line_argument=no
14305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14308 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14309 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14310 CFLAGS="$xorg_testset_save_CFLAGS"
14315 if test $found = "no" ; then
14316 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14320 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14324 CFLAGS="$CFLAGS -Werror=main"
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14327 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14328 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main`
14329 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14330 $as_echo_n "(cached) " >&6
14332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14333 /* end confdefs.h. */
14343 if ac_fn_c_try_link "$LINENO"; then :
14344 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14346 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14348 rm -f core conftest.err conftest.$ac_objext \
14349 conftest$ac_exeext conftest.$ac_ext
14353 CFLAGS="$xorg_testset_save_CFLAGS"
14355 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14357 $as_echo "$supported" >&6; }
14358 if test "$supported" = "yes" ; then
14359 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14376 xorg_testset_save_CFLAGS="$CFLAGS"
14378 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14381 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14382 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14383 $as_echo_n "(cached) " >&6
14385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14386 /* end confdefs.h. */
14389 if ac_fn_c_try_compile "$LINENO"; then :
14390 xorg_cv_compiler_flag_unknown_warning_option=yes
14392 xorg_cv_compiler_flag_unknown_warning_option=no
14394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14397 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14398 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14399 CFLAGS="$xorg_testset_save_CFLAGS"
14402 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14403 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14408 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14409 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14410 $as_echo_n "(cached) " >&6
14412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14413 /* end confdefs.h. */
14416 if ac_fn_c_try_compile "$LINENO"; then :
14417 xorg_cv_compiler_flag_unused_command_line_argument=yes
14419 xorg_cv_compiler_flag_unused_command_line_argument=no
14421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14424 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14425 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14426 CFLAGS="$xorg_testset_save_CFLAGS"
14431 if test $found = "no" ; then
14432 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14436 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14440 CFLAGS="$CFLAGS -Werror=missing-braces"
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14443 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14444 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces`
14445 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14446 $as_echo_n "(cached) " >&6
14448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14449 /* end confdefs.h. */
14459 if ac_fn_c_try_link "$LINENO"; then :
14460 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14462 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14464 rm -f core conftest.err conftest.$ac_objext \
14465 conftest$ac_exeext conftest.$ac_ext
14469 CFLAGS="$xorg_testset_save_CFLAGS"
14471 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14473 $as_echo "$supported" >&6; }
14474 if test "$supported" = "yes" ; then
14475 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14492 xorg_testset_save_CFLAGS="$CFLAGS"
14494 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14497 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14498 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14499 $as_echo_n "(cached) " >&6
14501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502 /* end confdefs.h. */
14505 if ac_fn_c_try_compile "$LINENO"; then :
14506 xorg_cv_compiler_flag_unknown_warning_option=yes
14508 xorg_cv_compiler_flag_unknown_warning_option=no
14510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14513 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14514 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14515 CFLAGS="$xorg_testset_save_CFLAGS"
14518 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14519 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14524 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14525 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14526 $as_echo_n "(cached) " >&6
14528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529 /* end confdefs.h. */
14532 if ac_fn_c_try_compile "$LINENO"; then :
14533 xorg_cv_compiler_flag_unused_command_line_argument=yes
14535 xorg_cv_compiler_flag_unused_command_line_argument=no
14537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14540 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14541 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14542 CFLAGS="$xorg_testset_save_CFLAGS"
14547 if test $found = "no" ; then
14548 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14552 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14556 CFLAGS="$CFLAGS -Werror=sequence-point"
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14559 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14560 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point`
14561 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14562 $as_echo_n "(cached) " >&6
14564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h. */
14575 if ac_fn_c_try_link "$LINENO"; then :
14576 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14578 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14580 rm -f core conftest.err conftest.$ac_objext \
14581 conftest$ac_exeext conftest.$ac_ext
14585 CFLAGS="$xorg_testset_save_CFLAGS"
14587 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14589 $as_echo "$supported" >&6; }
14590 if test "$supported" = "yes" ; then
14591 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14608 xorg_testset_save_CFLAGS="$CFLAGS"
14610 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14613 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14614 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14615 $as_echo_n "(cached) " >&6
14617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14618 /* end confdefs.h. */
14621 if ac_fn_c_try_compile "$LINENO"; then :
14622 xorg_cv_compiler_flag_unknown_warning_option=yes
14624 xorg_cv_compiler_flag_unknown_warning_option=no
14626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14629 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14630 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14631 CFLAGS="$xorg_testset_save_CFLAGS"
14634 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14635 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14640 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14641 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14642 $as_echo_n "(cached) " >&6
14644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14645 /* end confdefs.h. */
14648 if ac_fn_c_try_compile "$LINENO"; then :
14649 xorg_cv_compiler_flag_unused_command_line_argument=yes
14651 xorg_cv_compiler_flag_unused_command_line_argument=no
14653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14656 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14657 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14658 CFLAGS="$xorg_testset_save_CFLAGS"
14663 if test $found = "no" ; then
14664 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14668 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14672 CFLAGS="$CFLAGS -Werror=return-type"
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14675 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14676 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type`
14677 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14678 $as_echo_n "(cached) " >&6
14680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14681 /* end confdefs.h. */
14691 if ac_fn_c_try_link "$LINENO"; then :
14692 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14694 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14696 rm -f core conftest.err conftest.$ac_objext \
14697 conftest$ac_exeext conftest.$ac_ext
14701 CFLAGS="$xorg_testset_save_CFLAGS"
14703 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14705 $as_echo "$supported" >&6; }
14706 if test "$supported" = "yes" ; then
14707 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14712 if test $found = "no" ; then
14713 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14717 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14721 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14724 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14725 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
14726 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14727 $as_echo_n "(cached) " >&6
14729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14730 /* end confdefs.h. */
14740 if ac_fn_c_try_link "$LINENO"; then :
14741 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14743 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14745 rm -f core conftest.err conftest.$ac_objext \
14746 conftest$ac_exeext conftest.$ac_ext
14750 CFLAGS="$xorg_testset_save_CFLAGS"
14752 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14754 $as_echo "$supported" >&6; }
14755 if test "$supported" = "yes" ; then
14756 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14773 xorg_testset_save_CFLAGS="$CFLAGS"
14775 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14778 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14779 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14780 $as_echo_n "(cached) " >&6
14782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14783 /* end confdefs.h. */
14786 if ac_fn_c_try_compile "$LINENO"; then :
14787 xorg_cv_compiler_flag_unknown_warning_option=yes
14789 xorg_cv_compiler_flag_unknown_warning_option=no
14791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14794 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14795 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14796 CFLAGS="$xorg_testset_save_CFLAGS"
14799 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14800 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14805 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14806 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14807 $as_echo_n "(cached) " >&6
14809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14810 /* end confdefs.h. */
14813 if ac_fn_c_try_compile "$LINENO"; then :
14814 xorg_cv_compiler_flag_unused_command_line_argument=yes
14816 xorg_cv_compiler_flag_unused_command_line_argument=no
14818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14821 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14822 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14823 CFLAGS="$xorg_testset_save_CFLAGS"
14828 if test $found = "no" ; then
14829 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14833 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14837 CFLAGS="$CFLAGS -Werror=trigraphs"
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14840 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14841 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs`
14842 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14843 $as_echo_n "(cached) " >&6
14845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14846 /* end confdefs.h. */
14856 if ac_fn_c_try_link "$LINENO"; then :
14857 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14859 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14861 rm -f core conftest.err conftest.$ac_objext \
14862 conftest$ac_exeext conftest.$ac_ext
14866 CFLAGS="$xorg_testset_save_CFLAGS"
14868 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14870 $as_echo "$supported" >&6; }
14871 if test "$supported" = "yes" ; then
14872 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14889 xorg_testset_save_CFLAGS="$CFLAGS"
14891 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14894 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14895 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14896 $as_echo_n "(cached) " >&6
14898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14899 /* end confdefs.h. */
14902 if ac_fn_c_try_compile "$LINENO"; then :
14903 xorg_cv_compiler_flag_unknown_warning_option=yes
14905 xorg_cv_compiler_flag_unknown_warning_option=no
14907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14910 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14911 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14912 CFLAGS="$xorg_testset_save_CFLAGS"
14915 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14916 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14921 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14922 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14923 $as_echo_n "(cached) " >&6
14925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h. */
14929 if ac_fn_c_try_compile "$LINENO"; then :
14930 xorg_cv_compiler_flag_unused_command_line_argument=yes
14932 xorg_cv_compiler_flag_unused_command_line_argument=no
14934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14937 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14938 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14939 CFLAGS="$xorg_testset_save_CFLAGS"
14944 if test $found = "no" ; then
14945 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14949 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14953 CFLAGS="$CFLAGS -Werror=array-bounds"
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14956 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14957 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds`
14958 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14959 $as_echo_n "(cached) " >&6
14961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962 /* end confdefs.h. */
14972 if ac_fn_c_try_link "$LINENO"; then :
14973 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14975 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14977 rm -f core conftest.err conftest.$ac_objext \
14978 conftest$ac_exeext conftest.$ac_ext
14982 CFLAGS="$xorg_testset_save_CFLAGS"
14984 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14986 $as_echo "$supported" >&6; }
14987 if test "$supported" = "yes" ; then
14988 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15005 xorg_testset_save_CFLAGS="$CFLAGS"
15007 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15010 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15011 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15012 $as_echo_n "(cached) " >&6
15014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15015 /* end confdefs.h. */
15018 if ac_fn_c_try_compile "$LINENO"; then :
15019 xorg_cv_compiler_flag_unknown_warning_option=yes
15021 xorg_cv_compiler_flag_unknown_warning_option=no
15023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15026 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15027 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15028 CFLAGS="$xorg_testset_save_CFLAGS"
15031 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15032 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15033 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15037 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15038 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15039 $as_echo_n "(cached) " >&6
15041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15042 /* end confdefs.h. */
15045 if ac_fn_c_try_compile "$LINENO"; then :
15046 xorg_cv_compiler_flag_unused_command_line_argument=yes
15048 xorg_cv_compiler_flag_unused_command_line_argument=no
15050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15053 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15054 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15055 CFLAGS="$xorg_testset_save_CFLAGS"
15060 if test $found = "no" ; then
15061 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15065 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15069 CFLAGS="$CFLAGS -Werror=write-strings"
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15072 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15073 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings`
15074 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15075 $as_echo_n "(cached) " >&6
15077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15078 /* end confdefs.h. */
15088 if ac_fn_c_try_link "$LINENO"; then :
15089 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15091 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15093 rm -f core conftest.err conftest.$ac_objext \
15094 conftest$ac_exeext conftest.$ac_ext
15098 CFLAGS="$xorg_testset_save_CFLAGS"
15100 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15102 $as_echo "$supported" >&6; }
15103 if test "$supported" = "yes" ; then
15104 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15121 xorg_testset_save_CFLAGS="$CFLAGS"
15123 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15126 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15127 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15128 $as_echo_n "(cached) " >&6
15130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15131 /* end confdefs.h. */
15134 if ac_fn_c_try_compile "$LINENO"; then :
15135 xorg_cv_compiler_flag_unknown_warning_option=yes
15137 xorg_cv_compiler_flag_unknown_warning_option=no
15139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15142 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15143 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15144 CFLAGS="$xorg_testset_save_CFLAGS"
15147 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15148 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15153 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15154 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15155 $as_echo_n "(cached) " >&6
15157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15158 /* end confdefs.h. */
15161 if ac_fn_c_try_compile "$LINENO"; then :
15162 xorg_cv_compiler_flag_unused_command_line_argument=yes
15164 xorg_cv_compiler_flag_unused_command_line_argument=no
15166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15169 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15170 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15171 CFLAGS="$xorg_testset_save_CFLAGS"
15176 if test $found = "no" ; then
15177 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15181 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15185 CFLAGS="$CFLAGS -Werror=address"
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15188 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15189 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address`
15190 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15191 $as_echo_n "(cached) " >&6
15193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15194 /* end confdefs.h. */
15204 if ac_fn_c_try_link "$LINENO"; then :
15205 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15207 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15209 rm -f core conftest.err conftest.$ac_objext \
15210 conftest$ac_exeext conftest.$ac_ext
15214 CFLAGS="$xorg_testset_save_CFLAGS"
15216 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15218 $as_echo "$supported" >&6; }
15219 if test "$supported" = "yes" ; then
15220 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15237 xorg_testset_save_CFLAGS="$CFLAGS"
15239 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15242 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15243 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15244 $as_echo_n "(cached) " >&6
15246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15247 /* end confdefs.h. */
15250 if ac_fn_c_try_compile "$LINENO"; then :
15251 xorg_cv_compiler_flag_unknown_warning_option=yes
15253 xorg_cv_compiler_flag_unknown_warning_option=no
15255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15258 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15259 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15260 CFLAGS="$xorg_testset_save_CFLAGS"
15263 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15264 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15269 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15270 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15271 $as_echo_n "(cached) " >&6
15273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15274 /* end confdefs.h. */
15277 if ac_fn_c_try_compile "$LINENO"; then :
15278 xorg_cv_compiler_flag_unused_command_line_argument=yes
15280 xorg_cv_compiler_flag_unused_command_line_argument=no
15282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15285 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15286 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15287 CFLAGS="$xorg_testset_save_CFLAGS"
15292 if test $found = "no" ; then
15293 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15297 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15301 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15304 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15305 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
15306 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15307 $as_echo_n "(cached) " >&6
15309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15310 /* end confdefs.h. */
15320 if ac_fn_c_try_link "$LINENO"; then :
15321 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15323 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15325 rm -f core conftest.err conftest.$ac_objext \
15326 conftest$ac_exeext conftest.$ac_ext
15330 CFLAGS="$xorg_testset_save_CFLAGS"
15332 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15334 $as_echo "$supported" >&6; }
15335 if test "$supported" = "yes" ; then
15336 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15341 if test $found = "no" ; then
15342 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15346 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15350 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15353 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15354 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
15355 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15356 $as_echo_n "(cached) " >&6
15358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15359 /* end confdefs.h. */
15369 if ac_fn_c_try_link "$LINENO"; then :
15370 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15372 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15374 rm -f core conftest.err conftest.$ac_objext \
15375 conftest$ac_exeext conftest.$ac_ext
15379 CFLAGS="$xorg_testset_save_CFLAGS"
15381 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15383 $as_echo "$supported" >&6; }
15384 if test "$supported" = "yes" ; then
15385 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15402 xorg_testset_save_CFLAGS="$CFLAGS"
15404 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15407 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15408 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15409 $as_echo_n "(cached) " >&6
15411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15412 /* end confdefs.h. */
15415 if ac_fn_c_try_compile "$LINENO"; then :
15416 xorg_cv_compiler_flag_unknown_warning_option=yes
15418 xorg_cv_compiler_flag_unknown_warning_option=no
15420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15423 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15424 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15425 CFLAGS="$xorg_testset_save_CFLAGS"
15428 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15429 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15434 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15435 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15436 $as_echo_n "(cached) " >&6
15438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15439 /* end confdefs.h. */
15442 if ac_fn_c_try_compile "$LINENO"; then :
15443 xorg_cv_compiler_flag_unused_command_line_argument=yes
15445 xorg_cv_compiler_flag_unused_command_line_argument=no
15447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15450 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15451 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15452 CFLAGS="$xorg_testset_save_CFLAGS"
15457 if test $found = "no" ; then
15458 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15462 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15466 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15469 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15470 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
15471 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15472 $as_echo_n "(cached) " >&6
15474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15475 /* end confdefs.h. */
15485 if ac_fn_c_try_link "$LINENO"; then :
15486 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15488 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15490 rm -f core conftest.err conftest.$ac_objext \
15491 conftest$ac_exeext conftest.$ac_ext
15495 CFLAGS="$xorg_testset_save_CFLAGS"
15497 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15499 $as_echo "$supported" >&6; }
15500 if test "$supported" = "yes" ; then
15501 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15506 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15508 { $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
15509 $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;}
15521 xorg_testset_save_CFLAGS="$CFLAGS"
15523 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15526 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15527 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15528 $as_echo_n "(cached) " >&6
15530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15531 /* end confdefs.h. */
15534 if ac_fn_c_try_compile "$LINENO"; then :
15535 xorg_cv_compiler_flag_unknown_warning_option=yes
15537 xorg_cv_compiler_flag_unknown_warning_option=no
15539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15542 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15543 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15544 CFLAGS="$xorg_testset_save_CFLAGS"
15547 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15548 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15553 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15554 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15555 $as_echo_n "(cached) " >&6
15557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15558 /* end confdefs.h. */
15561 if ac_fn_c_try_compile "$LINENO"; then :
15562 xorg_cv_compiler_flag_unused_command_line_argument=yes
15564 xorg_cv_compiler_flag_unused_command_line_argument=no
15566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15569 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15570 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15571 CFLAGS="$xorg_testset_save_CFLAGS"
15576 if test $found = "no" ; then
15577 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15581 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15585 CFLAGS="$CFLAGS -Wimplicit"
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15588 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15589 cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit`
15590 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15591 $as_echo_n "(cached) " >&6
15593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15594 /* end confdefs.h. */
15604 if ac_fn_c_try_link "$LINENO"; then :
15605 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15607 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15609 rm -f core conftest.err conftest.$ac_objext \
15610 conftest$ac_exeext conftest.$ac_ext
15614 CFLAGS="$xorg_testset_save_CFLAGS"
15616 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15618 $as_echo "$supported" >&6; }
15619 if test "$supported" = "yes" ; then
15620 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15637 xorg_testset_save_CFLAGS="$CFLAGS"
15639 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15642 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15643 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15644 $as_echo_n "(cached) " >&6
15646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15647 /* end confdefs.h. */
15650 if ac_fn_c_try_compile "$LINENO"; then :
15651 xorg_cv_compiler_flag_unknown_warning_option=yes
15653 xorg_cv_compiler_flag_unknown_warning_option=no
15655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15658 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15659 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15660 CFLAGS="$xorg_testset_save_CFLAGS"
15663 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15664 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15669 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15670 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15671 $as_echo_n "(cached) " >&6
15673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15674 /* end confdefs.h. */
15677 if ac_fn_c_try_compile "$LINENO"; then :
15678 xorg_cv_compiler_flag_unused_command_line_argument=yes
15680 xorg_cv_compiler_flag_unused_command_line_argument=no
15682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15685 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15686 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15687 CFLAGS="$xorg_testset_save_CFLAGS"
15692 if test $found = "no" ; then
15693 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15697 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15701 CFLAGS="$CFLAGS -Wnonnull"
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15704 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15705 cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull`
15706 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15707 $as_echo_n "(cached) " >&6
15709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15710 /* end confdefs.h. */
15720 if ac_fn_c_try_link "$LINENO"; then :
15721 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15723 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15725 rm -f core conftest.err conftest.$ac_objext \
15726 conftest$ac_exeext conftest.$ac_ext
15730 CFLAGS="$xorg_testset_save_CFLAGS"
15732 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15734 $as_echo "$supported" >&6; }
15735 if test "$supported" = "yes" ; then
15736 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15753 xorg_testset_save_CFLAGS="$CFLAGS"
15755 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15758 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15759 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15760 $as_echo_n "(cached) " >&6
15762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15763 /* end confdefs.h. */
15766 if ac_fn_c_try_compile "$LINENO"; then :
15767 xorg_cv_compiler_flag_unknown_warning_option=yes
15769 xorg_cv_compiler_flag_unknown_warning_option=no
15771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15774 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15775 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15776 CFLAGS="$xorg_testset_save_CFLAGS"
15779 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15780 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15785 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15786 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15787 $as_echo_n "(cached) " >&6
15789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15790 /* end confdefs.h. */
15793 if ac_fn_c_try_compile "$LINENO"; then :
15794 xorg_cv_compiler_flag_unused_command_line_argument=yes
15796 xorg_cv_compiler_flag_unused_command_line_argument=no
15798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15801 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15802 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15803 CFLAGS="$xorg_testset_save_CFLAGS"
15808 if test $found = "no" ; then
15809 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15813 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15817 CFLAGS="$CFLAGS -Winit-self"
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15820 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15821 cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self`
15822 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15823 $as_echo_n "(cached) " >&6
15825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15826 /* end confdefs.h. */
15836 if ac_fn_c_try_link "$LINENO"; then :
15837 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15839 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15841 rm -f core conftest.err conftest.$ac_objext \
15842 conftest$ac_exeext conftest.$ac_ext
15846 CFLAGS="$xorg_testset_save_CFLAGS"
15848 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15850 $as_echo "$supported" >&6; }
15851 if test "$supported" = "yes" ; then
15852 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15869 xorg_testset_save_CFLAGS="$CFLAGS"
15871 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15874 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15875 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15876 $as_echo_n "(cached) " >&6
15878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h. */
15882 if ac_fn_c_try_compile "$LINENO"; then :
15883 xorg_cv_compiler_flag_unknown_warning_option=yes
15885 xorg_cv_compiler_flag_unknown_warning_option=no
15887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15890 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15891 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15892 CFLAGS="$xorg_testset_save_CFLAGS"
15895 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15896 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15901 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15902 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15903 $as_echo_n "(cached) " >&6
15905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15906 /* end confdefs.h. */
15909 if ac_fn_c_try_compile "$LINENO"; then :
15910 xorg_cv_compiler_flag_unused_command_line_argument=yes
15912 xorg_cv_compiler_flag_unused_command_line_argument=no
15914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15917 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15918 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15919 CFLAGS="$xorg_testset_save_CFLAGS"
15924 if test $found = "no" ; then
15925 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15929 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15933 CFLAGS="$CFLAGS -Wmain"
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15936 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
15937 cacheid=`$as_echo xorg_cv_cc_flag_-Wmain`
15938 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15939 $as_echo_n "(cached) " >&6
15941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15942 /* end confdefs.h. */
15952 if ac_fn_c_try_link "$LINENO"; then :
15953 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15955 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15957 rm -f core conftest.err conftest.$ac_objext \
15958 conftest$ac_exeext conftest.$ac_ext
15962 CFLAGS="$xorg_testset_save_CFLAGS"
15964 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15966 $as_echo "$supported" >&6; }
15967 if test "$supported" = "yes" ; then
15968 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15985 xorg_testset_save_CFLAGS="$CFLAGS"
15987 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15990 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15991 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15992 $as_echo_n "(cached) " >&6
15994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15995 /* end confdefs.h. */
15998 if ac_fn_c_try_compile "$LINENO"; then :
15999 xorg_cv_compiler_flag_unknown_warning_option=yes
16001 xorg_cv_compiler_flag_unknown_warning_option=no
16003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16006 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16007 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16008 CFLAGS="$xorg_testset_save_CFLAGS"
16011 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16012 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16017 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16018 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16019 $as_echo_n "(cached) " >&6
16021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16022 /* end confdefs.h. */
16025 if ac_fn_c_try_compile "$LINENO"; then :
16026 xorg_cv_compiler_flag_unused_command_line_argument=yes
16028 xorg_cv_compiler_flag_unused_command_line_argument=no
16030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16033 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16034 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16035 CFLAGS="$xorg_testset_save_CFLAGS"
16040 if test $found = "no" ; then
16041 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16045 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16049 CFLAGS="$CFLAGS -Wmissing-braces"
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16052 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16053 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces`
16054 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16055 $as_echo_n "(cached) " >&6
16057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16058 /* end confdefs.h. */
16068 if ac_fn_c_try_link "$LINENO"; then :
16069 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16071 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16073 rm -f core conftest.err conftest.$ac_objext \
16074 conftest$ac_exeext conftest.$ac_ext
16078 CFLAGS="$xorg_testset_save_CFLAGS"
16080 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16082 $as_echo "$supported" >&6; }
16083 if test "$supported" = "yes" ; then
16084 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16101 xorg_testset_save_CFLAGS="$CFLAGS"
16103 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16106 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16107 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16108 $as_echo_n "(cached) " >&6
16110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16111 /* end confdefs.h. */
16114 if ac_fn_c_try_compile "$LINENO"; then :
16115 xorg_cv_compiler_flag_unknown_warning_option=yes
16117 xorg_cv_compiler_flag_unknown_warning_option=no
16119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16122 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16123 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16124 CFLAGS="$xorg_testset_save_CFLAGS"
16127 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16128 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16133 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16134 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16135 $as_echo_n "(cached) " >&6
16137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16138 /* end confdefs.h. */
16141 if ac_fn_c_try_compile "$LINENO"; then :
16142 xorg_cv_compiler_flag_unused_command_line_argument=yes
16144 xorg_cv_compiler_flag_unused_command_line_argument=no
16146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16149 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16150 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16151 CFLAGS="$xorg_testset_save_CFLAGS"
16156 if test $found = "no" ; then
16157 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16161 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16165 CFLAGS="$CFLAGS -Wsequence-point"
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16168 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16169 cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point`
16170 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16171 $as_echo_n "(cached) " >&6
16173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16174 /* end confdefs.h. */
16184 if ac_fn_c_try_link "$LINENO"; then :
16185 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16187 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16189 rm -f core conftest.err conftest.$ac_objext \
16190 conftest$ac_exeext conftest.$ac_ext
16194 CFLAGS="$xorg_testset_save_CFLAGS"
16196 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16198 $as_echo "$supported" >&6; }
16199 if test "$supported" = "yes" ; then
16200 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16217 xorg_testset_save_CFLAGS="$CFLAGS"
16219 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16222 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16223 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16224 $as_echo_n "(cached) " >&6
16226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16227 /* end confdefs.h. */
16230 if ac_fn_c_try_compile "$LINENO"; then :
16231 xorg_cv_compiler_flag_unknown_warning_option=yes
16233 xorg_cv_compiler_flag_unknown_warning_option=no
16235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16238 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16239 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16240 CFLAGS="$xorg_testset_save_CFLAGS"
16243 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16244 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16249 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16250 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16251 $as_echo_n "(cached) " >&6
16253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16254 /* end confdefs.h. */
16257 if ac_fn_c_try_compile "$LINENO"; then :
16258 xorg_cv_compiler_flag_unused_command_line_argument=yes
16260 xorg_cv_compiler_flag_unused_command_line_argument=no
16262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16265 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16266 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16267 CFLAGS="$xorg_testset_save_CFLAGS"
16272 if test $found = "no" ; then
16273 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16277 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16281 CFLAGS="$CFLAGS -Wreturn-type"
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16284 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16285 cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type`
16286 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16287 $as_echo_n "(cached) " >&6
16289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16290 /* end confdefs.h. */
16300 if ac_fn_c_try_link "$LINENO"; then :
16301 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16303 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16305 rm -f core conftest.err conftest.$ac_objext \
16306 conftest$ac_exeext conftest.$ac_ext
16310 CFLAGS="$xorg_testset_save_CFLAGS"
16312 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16314 $as_echo "$supported" >&6; }
16315 if test "$supported" = "yes" ; then
16316 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16333 xorg_testset_save_CFLAGS="$CFLAGS"
16335 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16338 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16339 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16340 $as_echo_n "(cached) " >&6
16342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16343 /* end confdefs.h. */
16346 if ac_fn_c_try_compile "$LINENO"; then :
16347 xorg_cv_compiler_flag_unknown_warning_option=yes
16349 xorg_cv_compiler_flag_unknown_warning_option=no
16351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16354 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16355 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16356 CFLAGS="$xorg_testset_save_CFLAGS"
16359 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16360 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16365 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16366 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16367 $as_echo_n "(cached) " >&6
16369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16370 /* end confdefs.h. */
16373 if ac_fn_c_try_compile "$LINENO"; then :
16374 xorg_cv_compiler_flag_unused_command_line_argument=yes
16376 xorg_cv_compiler_flag_unused_command_line_argument=no
16378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16381 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16382 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16383 CFLAGS="$xorg_testset_save_CFLAGS"
16388 if test $found = "no" ; then
16389 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16393 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16397 CFLAGS="$CFLAGS -Wtrigraphs"
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16400 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16401 cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs`
16402 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16403 $as_echo_n "(cached) " >&6
16405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16406 /* end confdefs.h. */
16416 if ac_fn_c_try_link "$LINENO"; then :
16417 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16419 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16421 rm -f core conftest.err conftest.$ac_objext \
16422 conftest$ac_exeext conftest.$ac_ext
16426 CFLAGS="$xorg_testset_save_CFLAGS"
16428 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16430 $as_echo "$supported" >&6; }
16431 if test "$supported" = "yes" ; then
16432 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16449 xorg_testset_save_CFLAGS="$CFLAGS"
16451 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16454 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16455 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16456 $as_echo_n "(cached) " >&6
16458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16459 /* end confdefs.h. */
16462 if ac_fn_c_try_compile "$LINENO"; then :
16463 xorg_cv_compiler_flag_unknown_warning_option=yes
16465 xorg_cv_compiler_flag_unknown_warning_option=no
16467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16470 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16471 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16472 CFLAGS="$xorg_testset_save_CFLAGS"
16475 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16476 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16477 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16481 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16482 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16483 $as_echo_n "(cached) " >&6
16485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16486 /* end confdefs.h. */
16489 if ac_fn_c_try_compile "$LINENO"; then :
16490 xorg_cv_compiler_flag_unused_command_line_argument=yes
16492 xorg_cv_compiler_flag_unused_command_line_argument=no
16494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16497 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16498 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16499 CFLAGS="$xorg_testset_save_CFLAGS"
16504 if test $found = "no" ; then
16505 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16509 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16513 CFLAGS="$CFLAGS -Warray-bounds"
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16516 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16517 cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds`
16518 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16519 $as_echo_n "(cached) " >&6
16521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16522 /* end confdefs.h. */
16532 if ac_fn_c_try_link "$LINENO"; then :
16533 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16535 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16537 rm -f core conftest.err conftest.$ac_objext \
16538 conftest$ac_exeext conftest.$ac_ext
16542 CFLAGS="$xorg_testset_save_CFLAGS"
16544 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16546 $as_echo "$supported" >&6; }
16547 if test "$supported" = "yes" ; then
16548 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16565 xorg_testset_save_CFLAGS="$CFLAGS"
16567 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16570 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16571 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16572 $as_echo_n "(cached) " >&6
16574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16575 /* end confdefs.h. */
16578 if ac_fn_c_try_compile "$LINENO"; then :
16579 xorg_cv_compiler_flag_unknown_warning_option=yes
16581 xorg_cv_compiler_flag_unknown_warning_option=no
16583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16586 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16587 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16588 CFLAGS="$xorg_testset_save_CFLAGS"
16591 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16592 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16597 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16598 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16599 $as_echo_n "(cached) " >&6
16601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16602 /* end confdefs.h. */
16605 if ac_fn_c_try_compile "$LINENO"; then :
16606 xorg_cv_compiler_flag_unused_command_line_argument=yes
16608 xorg_cv_compiler_flag_unused_command_line_argument=no
16610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16613 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16614 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16615 CFLAGS="$xorg_testset_save_CFLAGS"
16620 if test $found = "no" ; then
16621 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16625 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16629 CFLAGS="$CFLAGS -Wwrite-strings"
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16632 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16633 cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings`
16634 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16635 $as_echo_n "(cached) " >&6
16637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16638 /* end confdefs.h. */
16648 if ac_fn_c_try_link "$LINENO"; then :
16649 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16651 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16653 rm -f core conftest.err conftest.$ac_objext \
16654 conftest$ac_exeext conftest.$ac_ext
16658 CFLAGS="$xorg_testset_save_CFLAGS"
16660 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16662 $as_echo "$supported" >&6; }
16663 if test "$supported" = "yes" ; then
16664 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16681 xorg_testset_save_CFLAGS="$CFLAGS"
16683 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16686 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16687 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16688 $as_echo_n "(cached) " >&6
16690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16691 /* end confdefs.h. */
16694 if ac_fn_c_try_compile "$LINENO"; then :
16695 xorg_cv_compiler_flag_unknown_warning_option=yes
16697 xorg_cv_compiler_flag_unknown_warning_option=no
16699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16702 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16703 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16704 CFLAGS="$xorg_testset_save_CFLAGS"
16707 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16708 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16713 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16714 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16715 $as_echo_n "(cached) " >&6
16717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16718 /* end confdefs.h. */
16721 if ac_fn_c_try_compile "$LINENO"; then :
16722 xorg_cv_compiler_flag_unused_command_line_argument=yes
16724 xorg_cv_compiler_flag_unused_command_line_argument=no
16726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16729 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16730 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16731 CFLAGS="$xorg_testset_save_CFLAGS"
16736 if test $found = "no" ; then
16737 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16741 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16745 CFLAGS="$CFLAGS -Waddress"
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16748 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16749 cacheid=`$as_echo xorg_cv_cc_flag_-Waddress`
16750 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16751 $as_echo_n "(cached) " >&6
16753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16754 /* end confdefs.h. */
16764 if ac_fn_c_try_link "$LINENO"; then :
16765 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16767 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16769 rm -f core conftest.err conftest.$ac_objext \
16770 conftest$ac_exeext conftest.$ac_ext
16774 CFLAGS="$xorg_testset_save_CFLAGS"
16776 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16778 $as_echo "$supported" >&6; }
16779 if test "$supported" = "yes" ; then
16780 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16797 xorg_testset_save_CFLAGS="$CFLAGS"
16799 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16802 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16803 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16804 $as_echo_n "(cached) " >&6
16806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16807 /* end confdefs.h. */
16810 if ac_fn_c_try_compile "$LINENO"; then :
16811 xorg_cv_compiler_flag_unknown_warning_option=yes
16813 xorg_cv_compiler_flag_unknown_warning_option=no
16815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16818 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16819 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16820 CFLAGS="$xorg_testset_save_CFLAGS"
16823 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16824 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16829 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16830 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16831 $as_echo_n "(cached) " >&6
16833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16834 /* end confdefs.h. */
16837 if ac_fn_c_try_compile "$LINENO"; then :
16838 xorg_cv_compiler_flag_unused_command_line_argument=yes
16840 xorg_cv_compiler_flag_unused_command_line_argument=no
16842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16845 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16846 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16847 CFLAGS="$xorg_testset_save_CFLAGS"
16852 if test $found = "no" ; then
16853 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16857 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16861 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16864 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16865 cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast`
16866 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16867 $as_echo_n "(cached) " >&6
16869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16870 /* end confdefs.h. */
16880 if ac_fn_c_try_link "$LINENO"; then :
16881 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16883 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16885 rm -f core conftest.err conftest.$ac_objext \
16886 conftest$ac_exeext conftest.$ac_ext
16890 CFLAGS="$xorg_testset_save_CFLAGS"
16892 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16894 $as_echo "$supported" >&6; }
16895 if test "$supported" = "yes" ; then
16896 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16913 xorg_testset_save_CFLAGS="$CFLAGS"
16915 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16918 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16919 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16920 $as_echo_n "(cached) " >&6
16922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16923 /* end confdefs.h. */
16926 if ac_fn_c_try_compile "$LINENO"; then :
16927 xorg_cv_compiler_flag_unknown_warning_option=yes
16929 xorg_cv_compiler_flag_unknown_warning_option=no
16931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16934 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16935 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16936 CFLAGS="$xorg_testset_save_CFLAGS"
16939 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16940 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16945 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16946 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16947 $as_echo_n "(cached) " >&6
16949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16950 /* end confdefs.h. */
16953 if ac_fn_c_try_compile "$LINENO"; then :
16954 xorg_cv_compiler_flag_unused_command_line_argument=yes
16956 xorg_cv_compiler_flag_unused_command_line_argument=no
16958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16961 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16962 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16963 CFLAGS="$xorg_testset_save_CFLAGS"
16968 if test $found = "no" ; then
16969 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16973 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16977 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16980 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16981 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast`
16982 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16983 $as_echo_n "(cached) " >&6
16985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16986 /* end confdefs.h. */
16996 if ac_fn_c_try_link "$LINENO"; then :
16997 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16999 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17001 rm -f core conftest.err conftest.$ac_objext \
17002 conftest$ac_exeext conftest.$ac_ext
17006 CFLAGS="$xorg_testset_save_CFLAGS"
17008 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17010 $as_echo "$supported" >&6; }
17011 if test "$supported" = "yes" ; then
17012 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17026 CWARNFLAGS="$BASE_CFLAGS"
17027 if test "x$GCC" = xyes ; then
17028 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17038 # Check whether --enable-strict-compilation was given.
17039 if test "${enable_strict_compilation+set}" = set; then :
17040 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17062 xorg_testset_save_CFLAGS="$CFLAGS"
17064 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
17065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
17067 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
17068 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
17069 $as_echo_n "(cached) " >&6
17071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17072 /* end confdefs.h. */
17075 if ac_fn_c_try_compile "$LINENO"; then :
17076 xorg_cv_compiler_flag_unknown_warning_option=yes
17078 xorg_cv_compiler_flag_unknown_warning_option=no
17080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
17083 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
17084 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
17085 CFLAGS="$xorg_testset_save_CFLAGS"
17088 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
17089 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
17094 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
17095 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
17096 $as_echo_n "(cached) " >&6
17098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17099 /* end confdefs.h. */
17102 if ac_fn_c_try_compile "$LINENO"; then :
17103 xorg_cv_compiler_flag_unused_command_line_argument=yes
17105 xorg_cv_compiler_flag_unused_command_line_argument=no
17107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17110 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17111 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17112 CFLAGS="$xorg_testset_save_CFLAGS"
17117 if test $found = "no" ; then
17118 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17122 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17126 CFLAGS="$CFLAGS -pedantic"
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17129 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17130 cacheid=`$as_echo xorg_cv_cc_flag_-pedantic`
17131 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17132 $as_echo_n "(cached) " >&6
17134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17135 /* end confdefs.h. */
17145 if ac_fn_c_try_link "$LINENO"; then :
17146 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17148 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17150 rm -f core conftest.err conftest.$ac_objext \
17151 conftest$ac_exeext conftest.$ac_ext
17155 CFLAGS="$xorg_testset_save_CFLAGS"
17157 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17159 $as_echo "$supported" >&6; }
17160 if test "$supported" = "yes" ; then
17161 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17178 xorg_testset_save_CFLAGS="$CFLAGS"
17180 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
17181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
17183 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
17184 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
17185 $as_echo_n "(cached) " >&6
17187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17188 /* end confdefs.h. */
17191 if ac_fn_c_try_compile "$LINENO"; then :
17192 xorg_cv_compiler_flag_unknown_warning_option=yes
17194 xorg_cv_compiler_flag_unknown_warning_option=no
17196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
17199 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
17200 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
17201 CFLAGS="$xorg_testset_save_CFLAGS"
17204 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
17205 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
17210 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
17211 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
17212 $as_echo_n "(cached) " >&6
17214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17215 /* end confdefs.h. */
17218 if ac_fn_c_try_compile "$LINENO"; then :
17219 xorg_cv_compiler_flag_unused_command_line_argument=yes
17221 xorg_cv_compiler_flag_unused_command_line_argument=no
17223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17226 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17227 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17228 CFLAGS="$xorg_testset_save_CFLAGS"
17233 if test $found = "no" ; then
17234 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17238 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17242 CFLAGS="$CFLAGS -Werror"
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17245 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17246 cacheid=`$as_echo xorg_cv_cc_flag_-Werror`
17247 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17248 $as_echo_n "(cached) " >&6
17250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17251 /* end confdefs.h. */
17261 if ac_fn_c_try_link "$LINENO"; then :
17262 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17264 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17266 rm -f core conftest.err conftest.$ac_objext \
17267 conftest$ac_exeext conftest.$ac_ext
17271 CFLAGS="$xorg_testset_save_CFLAGS"
17273 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17275 $as_echo "$supported" >&6; }
17276 if test "$supported" = "yes" ; then
17277 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17282 if test $found = "no" ; then
17283 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17284 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17287 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17291 CFLAGS="$CFLAGS -errwarn"
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17294 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17295 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn`
17296 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17297 $as_echo_n "(cached) " >&6
17299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17300 /* end confdefs.h. */
17310 if ac_fn_c_try_link "$LINENO"; then :
17311 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17313 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17315 rm -f core conftest.err conftest.$ac_objext \
17316 conftest$ac_exeext conftest.$ac_ext
17320 CFLAGS="$xorg_testset_save_CFLAGS"
17322 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17324 $as_echo "$supported" >&6; }
17325 if test "$supported" = "yes" ; then
17326 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17333 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17334 # activate it with -Werror, so we add it here explicitly.
17346 xorg_testset_save_CFLAGS="$CFLAGS"
17348 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
17349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
17351 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
17352 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
17353 $as_echo_n "(cached) " >&6
17355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17356 /* end confdefs.h. */
17359 if ac_fn_c_try_compile "$LINENO"; then :
17360 xorg_cv_compiler_flag_unknown_warning_option=yes
17362 xorg_cv_compiler_flag_unknown_warning_option=no
17364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
17367 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
17368 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
17369 CFLAGS="$xorg_testset_save_CFLAGS"
17372 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
17373 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
17378 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
17379 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
17380 $as_echo_n "(cached) " >&6
17382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17383 /* end confdefs.h. */
17386 if ac_fn_c_try_compile "$LINENO"; then :
17387 xorg_cv_compiler_flag_unused_command_line_argument=yes
17389 xorg_cv_compiler_flag_unused_command_line_argument=no
17391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17394 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17395 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17396 CFLAGS="$xorg_testset_save_CFLAGS"
17401 if test $found = "no" ; then
17402 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17406 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17410 CFLAGS="$CFLAGS -Werror=attributes"
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17413 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17414 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes`
17415 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17416 $as_echo_n "(cached) " >&6
17418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17419 /* end confdefs.h. */
17429 if ac_fn_c_try_link "$LINENO"; then :
17430 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17432 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17434 rm -f core conftest.err conftest.$ac_objext \
17435 conftest$ac_exeext conftest.$ac_ext
17439 CFLAGS="$xorg_testset_save_CFLAGS"
17441 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17443 $as_echo "$supported" >&6; }
17444 if test "$supported" = "yes" ; then
17445 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17452 if test "x$STRICT_COMPILE" = "xyes"; then
17453 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17454 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17462 cat >>confdefs.h <<_ACEOF
17463 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17466 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17467 if test "x$PVM" = "x"; then
17471 cat >>confdefs.h <<_ACEOF
17472 #define PACKAGE_VERSION_MINOR $PVM
17475 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17476 if test "x$PVP" = "x"; then
17480 cat >>confdefs.h <<_ACEOF
17481 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17486 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17487 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17488 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17489 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17494 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17495 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17496 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17497 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17498 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17505 if test x$APP_MAN_SUFFIX = x ; then
17508 if test x$APP_MAN_DIR = x ; then
17509 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17512 if test x$LIB_MAN_SUFFIX = x ; then
17515 if test x$LIB_MAN_DIR = x ; then
17516 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17519 if test x$FILE_MAN_SUFFIX = x ; then
17521 solaris*) FILE_MAN_SUFFIX=4 ;;
17522 *) FILE_MAN_SUFFIX=5 ;;
17525 if test x$FILE_MAN_DIR = x ; then
17526 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17529 if test x$MISC_MAN_SUFFIX = x ; then
17531 solaris*) MISC_MAN_SUFFIX=5 ;;
17532 *) MISC_MAN_SUFFIX=7 ;;
17535 if test x$MISC_MAN_DIR = x ; then
17536 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17539 if test x$DRIVER_MAN_SUFFIX = x ; then
17541 solaris*) DRIVER_MAN_SUFFIX=7 ;;
17542 *) DRIVER_MAN_SUFFIX=4 ;;
17545 if test x$DRIVER_MAN_DIR = x ; then
17546 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17549 if test x$ADMIN_MAN_SUFFIX = x ; then
17551 solaris*) ADMIN_MAN_SUFFIX=1m ;;
17552 *) ADMIN_MAN_SUFFIX=8 ;;
17555 if test x$ADMIN_MAN_DIR = x ; then
17556 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17573 XORG_MAN_PAGE="X Version 11"
17576 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17577 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17578 -e 's|__xservername__|Xorg|g' \
17579 -e 's|__xconfigfile__|xorg.conf|g' \
17580 -e 's|__projectroot__|\$(prefix)|g' \
17581 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17582 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17583 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17584 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17585 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17586 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17587 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17591 # Check whether --enable-silent-rules was given.
17592 if test "${enable_silent_rules+set}" = set; then :
17593 enableval=$enable_silent_rules;
17596 case $enable_silent_rules in
17597 yes) AM_DEFAULT_VERBOSITY=0;;
17598 no) AM_DEFAULT_VERBOSITY=1;;
17599 *) AM_DEFAULT_VERBOSITY=0;;
17606 # Check whether --enable-docs was given.
17607 if test "${enable_docs+set}" = set; then :
17608 enableval=$enable_docs; build_docs=$enableval
17614 if test x$build_docs = xyes; then
17616 ENABLE_DOCS_FALSE='#'
17618 ENABLE_DOCS_TRUE='#'
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
17623 $as_echo_n "checking whether to build documentation... " >&6; }
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
17625 $as_echo "$build_docs" >&6; }
17631 # Check whether --with-xmlto was given.
17632 if test "${with_xmlto+set}" = set; then :
17633 withval=$with_xmlto; use_xmlto=$withval
17640 if test "x$use_xmlto" = x"auto"; then
17641 # Extract the first word of "xmlto", so it can be a program name with args.
17642 set dummy xmlto; ac_word=$2
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17644 $as_echo_n "checking for $ac_word... " >&6; }
17645 if ${ac_cv_path_XMLTO+:} false; then :
17646 $as_echo_n "(cached) " >&6
17650 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
17653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17654 for as_dir in $PATH
17657 test -z "$as_dir" && as_dir=.
17658 for ac_exec_ext in '' $ac_executable_extensions; do
17659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17660 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
17661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17671 XMLTO=$ac_cv_path_XMLTO
17672 if test -n "$XMLTO"; then
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
17674 $as_echo "$XMLTO" >&6; }
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17677 $as_echo "no" >&6; }
17681 if test "x$XMLTO" = "x"; then
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
17683 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
17688 elif test "x$use_xmlto" = x"yes" ; then
17689 # Extract the first word of "xmlto", so it can be a program name with args.
17690 set dummy xmlto; ac_word=$2
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17692 $as_echo_n "checking for $ac_word... " >&6; }
17693 if ${ac_cv_path_XMLTO+:} false; then :
17694 $as_echo_n "(cached) " >&6
17698 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
17701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17702 for as_dir in $PATH
17705 test -z "$as_dir" && as_dir=.
17706 for ac_exec_ext in '' $ac_executable_extensions; do
17707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17708 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
17709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17719 XMLTO=$ac_cv_path_XMLTO
17720 if test -n "$XMLTO"; then
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
17722 $as_echo "$XMLTO" >&6; }
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17725 $as_echo "no" >&6; }
17729 if test "x$XMLTO" = "x"; then
17730 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
17733 elif test "x$use_xmlto" = x"no" ; then
17734 if test "x$XMLTO" != "x"; then
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
17736 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
17740 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
17743 # Test for a minimum version of xmlto, if provided.
17744 if test "$have_xmlto" = yes; then
17745 # scrape the xmlto version
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
17747 $as_echo_n "checking the xmlto version... " >&6; }
17748 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
17750 $as_echo "$xmlto_version" >&6; }
17751 as_arg_v1=$xmlto_version
17753 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17756 if test "x$use_xmlto" = xauto; then
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
17758 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
17761 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
17772 # Test for the ability of xmlto to generate a text target
17774 cat > conftest.xml << "EOF"
17776 if test "$have_xmlto" = yes; then :
17777 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
17778 have_xmlto_text=yes
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
17781 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
17785 if test $have_xmlto_text = yes; then
17786 HAVE_XMLTO_TEXT_TRUE=
17787 HAVE_XMLTO_TEXT_FALSE='#'
17789 HAVE_XMLTO_TEXT_TRUE='#'
17790 HAVE_XMLTO_TEXT_FALSE=
17793 if test "$have_xmlto" = yes; then
17795 HAVE_XMLTO_FALSE='#'
17797 HAVE_XMLTO_TRUE='#'
17806 # Check whether --with-fop was given.
17807 if test "${with_fop+set}" = set; then :
17808 withval=$with_fop; use_fop=$withval
17815 if test "x$use_fop" = x"auto"; then
17816 # Extract the first word of "fop", so it can be a program name with args.
17817 set dummy fop; ac_word=$2
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17819 $as_echo_n "checking for $ac_word... " >&6; }
17820 if ${ac_cv_path_FOP+:} false; then :
17821 $as_echo_n "(cached) " >&6
17825 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
17828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17829 for as_dir in $PATH
17832 test -z "$as_dir" && as_dir=.
17833 for ac_exec_ext in '' $ac_executable_extensions; do
17834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17835 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
17836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17846 FOP=$ac_cv_path_FOP
17847 if test -n "$FOP"; then
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
17849 $as_echo "$FOP" >&6; }
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17852 $as_echo "no" >&6; }
17856 if test "x$FOP" = "x"; then
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
17858 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
17863 elif test "x$use_fop" = x"yes" ; then
17864 # Extract the first word of "fop", so it can be a program name with args.
17865 set dummy fop; ac_word=$2
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17867 $as_echo_n "checking for $ac_word... " >&6; }
17868 if ${ac_cv_path_FOP+:} false; then :
17869 $as_echo_n "(cached) " >&6
17873 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
17876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17877 for as_dir in $PATH
17880 test -z "$as_dir" && as_dir=.
17881 for ac_exec_ext in '' $ac_executable_extensions; do
17882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17883 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
17884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17894 FOP=$ac_cv_path_FOP
17895 if test -n "$FOP"; then
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
17897 $as_echo "$FOP" >&6; }
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17900 $as_echo "no" >&6; }
17904 if test "x$FOP" = "x"; then
17905 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
17908 elif test "x$use_fop" = x"no" ; then
17909 if test "x$FOP" != "x"; then
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
17911 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
17915 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
17918 # Test for a minimum version of fop, if provided.
17920 if test "$have_fop" = yes; then
17931 # Preserves the interface, should it be implemented later
17935 # Check whether --with-xsltproc was given.
17936 if test "${with_xsltproc+set}" = set; then :
17937 withval=$with_xsltproc; use_xsltproc=$withval
17944 if test "x$use_xsltproc" = x"auto"; then
17945 # Extract the first word of "xsltproc", so it can be a program name with args.
17946 set dummy xsltproc; ac_word=$2
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17948 $as_echo_n "checking for $ac_word... " >&6; }
17949 if ${ac_cv_path_XSLTPROC+:} false; then :
17950 $as_echo_n "(cached) " >&6
17954 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
17957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17958 for as_dir in $PATH
17961 test -z "$as_dir" && as_dir=.
17962 for ac_exec_ext in '' $ac_executable_extensions; do
17963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17964 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
17965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17975 XSLTPROC=$ac_cv_path_XSLTPROC
17976 if test -n "$XSLTPROC"; then
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
17978 $as_echo "$XSLTPROC" >&6; }
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17981 $as_echo "no" >&6; }
17985 if test "x$XSLTPROC" = "x"; then
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
17987 $as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
17992 elif test "x$use_xsltproc" = x"yes" ; then
17993 # Extract the first word of "xsltproc", so it can be a program name with args.
17994 set dummy xsltproc; ac_word=$2
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17996 $as_echo_n "checking for $ac_word... " >&6; }
17997 if ${ac_cv_path_XSLTPROC+:} false; then :
17998 $as_echo_n "(cached) " >&6
18002 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18006 for as_dir in $PATH
18009 test -z "$as_dir" && as_dir=.
18010 for ac_exec_ext in '' $ac_executable_extensions; do
18011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18012 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18023 XSLTPROC=$ac_cv_path_XSLTPROC
18024 if test -n "$XSLTPROC"; then
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18026 $as_echo "$XSLTPROC" >&6; }
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18029 $as_echo "no" >&6; }
18033 if test "x$XSLTPROC" = "x"; then
18034 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
18037 elif test "x$use_xsltproc" = x"no" ; then
18038 if test "x$XSLTPROC" != "x"; then
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
18040 $as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
18044 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
18047 if test "$have_xsltproc" = yes; then
18048 HAVE_XSLTPROC_TRUE=
18049 HAVE_XSLTPROC_FALSE='#'
18051 HAVE_XSLTPROC_TRUE='#'
18052 HAVE_XSLTPROC_FALSE=
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
18058 $as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
18060 if test -n "$PKG_CONFIG" && \
18061 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
18062 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
18064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18065 test $ac_status = 0; }; then
18066 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
18072 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
18073 # the path and the name of the doc stylesheet
18074 if test "x$XORG_SGML_PATH" != "x" ; then
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
18076 $as_echo "$XORG_SGML_PATH" >&6; }
18077 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
18078 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18081 $as_echo "no" >&6; }
18087 if test "x$XSL_STYLESHEET" != "x"; then
18088 HAVE_STYLESHEETS_TRUE=
18089 HAVE_STYLESHEETS_FALSE='#'
18091 HAVE_STYLESHEETS_TRUE='#'
18092 HAVE_STYLESHEETS_FALSE=
18097 # Obtain compiler/linker options for depedencies
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMU" >&5
18101 $as_echo_n "checking for XMU... " >&6; }
18103 if test -n "$XMU_CFLAGS"; then
18104 pkg_cv_XMU_CFLAGS="$XMU_CFLAGS"
18105 elif test -n "$PKG_CONFIG"; then
18106 if test -n "$PKG_CONFIG" && \
18107 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt xext x11 xextproto\""; } >&5
18108 ($PKG_CONFIG --exists --print-errors "xt xext x11 xextproto") 2>&5
18110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18111 test $ac_status = 0; }; then
18112 pkg_cv_XMU_CFLAGS=`$PKG_CONFIG --cflags "xt xext x11 xextproto" 2>/dev/null`
18119 if test -n "$XMU_LIBS"; then
18120 pkg_cv_XMU_LIBS="$XMU_LIBS"
18121 elif test -n "$PKG_CONFIG"; then
18122 if test -n "$PKG_CONFIG" && \
18123 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt xext x11 xextproto\""; } >&5
18124 ($PKG_CONFIG --exists --print-errors "xt xext x11 xextproto") 2>&5
18126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18127 test $ac_status = 0; }; then
18128 pkg_cv_XMU_LIBS=`$PKG_CONFIG --libs "xt xext x11 xextproto" 2>/dev/null`
18138 if test $pkg_failed = yes; then
18140 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18141 _pkg_short_errors_supported=yes
18143 _pkg_short_errors_supported=no
18145 if test $_pkg_short_errors_supported = yes; then
18146 XMU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt xext x11 xextproto" 2>&1`
18148 XMU_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt xext x11 xextproto" 2>&1`
18150 # Put the nasty error message in config.log where it belongs
18151 echo "$XMU_PKG_ERRORS" >&5
18153 as_fn_error $? "Package requirements (xt xext x11 xextproto) were not met:
18157 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18158 installed software in a non-standard prefix.
18160 Alternatively, you may set the environment variables XMU_CFLAGS
18161 and XMU_LIBS to avoid the need to call pkg-config.
18162 See the pkg-config man page for more details.
18164 elif test $pkg_failed = untried; then
18165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18167 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18168 is in your PATH or set the PKG_CONFIG environment variable to the full
18169 path to pkg-config.
18171 Alternatively, you may set the environment variables XMU_CFLAGS
18172 and XMU_LIBS to avoid the need to call pkg-config.
18173 See the pkg-config man page for more details.
18175 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18176 See \`config.log' for more details" "$LINENO" 5; }
18178 XMU_CFLAGS=$pkg_cv_XMU_CFLAGS
18179 XMU_LIBS=$pkg_cv_XMU_LIBS
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18181 $as_echo "yes" >&6; }
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMUU" >&5
18187 $as_echo_n "checking for XMUU... " >&6; }
18189 if test -n "$XMUU_CFLAGS"; then
18190 pkg_cv_XMUU_CFLAGS="$XMUU_CFLAGS"
18191 elif test -n "$PKG_CONFIG"; then
18192 if test -n "$PKG_CONFIG" && \
18193 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
18194 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
18196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18197 test $ac_status = 0; }; then
18198 pkg_cv_XMUU_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
18205 if test -n "$XMUU_LIBS"; then
18206 pkg_cv_XMUU_LIBS="$XMUU_LIBS"
18207 elif test -n "$PKG_CONFIG"; then
18208 if test -n "$PKG_CONFIG" && \
18209 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
18210 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
18212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18213 test $ac_status = 0; }; then
18214 pkg_cv_XMUU_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
18224 if test $pkg_failed = yes; then
18226 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18227 _pkg_short_errors_supported=yes
18229 _pkg_short_errors_supported=no
18231 if test $_pkg_short_errors_supported = yes; then
18232 XMUU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
18234 XMUU_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
18236 # Put the nasty error message in config.log where it belongs
18237 echo "$XMUU_PKG_ERRORS" >&5
18239 as_fn_error $? "Package requirements (x11) were not met:
18243 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18244 installed software in a non-standard prefix.
18246 Alternatively, you may set the environment variables XMUU_CFLAGS
18247 and XMUU_LIBS to avoid the need to call pkg-config.
18248 See the pkg-config man page for more details.
18250 elif test $pkg_failed = untried; then
18251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18253 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18254 is in your PATH or set the PKG_CONFIG environment variable to the full
18255 path to pkg-config.
18257 Alternatively, you may set the environment variables XMUU_CFLAGS
18258 and XMUU_LIBS to avoid the need to call pkg-config.
18259 See the pkg-config man page for more details.
18261 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18262 See \`config.log' for more details" "$LINENO" 5; }
18264 XMUU_CFLAGS=$pkg_cv_XMUU_CFLAGS
18265 XMUU_LIBS=$pkg_cv_XMUU_LIBS
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18267 $as_echo "yes" >&6; }
18271 # CvtStdSel.c needs to know which network transports to build hostname
18272 # conversion routines for
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
18274 $as_echo_n "checking return type of signal handlers... " >&6; }
18275 if ${ac_cv_type_signal+:} false; then :
18276 $as_echo_n "(cached) " >&6
18278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18279 /* end confdefs.h. */
18280 #include <sys/types.h>
18281 #include <signal.h>
18286 return *(signal (0, 0)) (0) == 1;
18291 if ac_fn_c_try_compile "$LINENO"; then :
18292 ac_cv_type_signal=int
18294 ac_cv_type_signal=void
18296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
18299 $as_echo "$ac_cv_type_signal" >&6; }
18301 cat >>confdefs.h <<_ACEOF
18302 #define RETSIGTYPE $ac_cv_type_signal
18310 mingw*) unixdef="no" ;;
18311 *) unixdef="yes" ;;
18313 # Check whether --enable-unix-transport was given.
18314 if test "${enable_unix_transport+set}" = set; then :
18315 enableval=$enable_unix_transport; UNIXCONN=$enableval
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
18321 $as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
18322 if test "$UNIXCONN" = "yes"; then
18324 $as_echo "#define UNIXCONN 1" >>confdefs.h
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
18328 $as_echo "$UNIXCONN" >&6; }
18329 # Check whether --enable-tcp-transport was given.
18330 if test "${enable_tcp_transport+set}" = set; then :
18331 enableval=$enable_tcp_transport; TCPCONN=$enableval
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
18337 $as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
18339 $as_echo "$TCPCONN" >&6; }
18340 if test "$TCPCONN" = "yes"; then
18342 $as_echo "#define TCPCONN 1" >>confdefs.h
18345 # SVR4 hides these in libraries other than libc
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
18347 $as_echo_n "checking for library containing socket... " >&6; }
18348 if ${ac_cv_search_socket+:} false; then :
18349 $as_echo_n "(cached) " >&6
18351 ac_func_search_save_LIBS=$LIBS
18352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18353 /* end confdefs.h. */
18355 /* Override any GCC internal prototype to avoid an error.
18356 Use char because int might match the return type of a GCC
18357 builtin and then its argument prototype would still apply. */
18370 for ac_lib in '' socket; do
18371 if test -z "$ac_lib"; then
18372 ac_res="none required"
18375 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18377 if ac_fn_c_try_link "$LINENO"; then :
18378 ac_cv_search_socket=$ac_res
18380 rm -f core conftest.err conftest.$ac_objext \
18382 if ${ac_cv_search_socket+:} false; then :
18386 if ${ac_cv_search_socket+:} false; then :
18389 ac_cv_search_socket=no
18391 rm conftest.$ac_ext
18392 LIBS=$ac_func_search_save_LIBS
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
18395 $as_echo "$ac_cv_search_socket" >&6; }
18396 ac_res=$ac_cv_search_socket
18397 if test "$ac_res" != no; then :
18398 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
18403 $as_echo_n "checking for library containing gethostbyname... " >&6; }
18404 if ${ac_cv_search_gethostbyname+:} false; then :
18405 $as_echo_n "(cached) " >&6
18407 ac_func_search_save_LIBS=$LIBS
18408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18409 /* end confdefs.h. */
18411 /* Override any GCC internal prototype to avoid an error.
18412 Use char because int might match the return type of a GCC
18413 builtin and then its argument prototype would still apply. */
18417 char gethostbyname ();
18421 return gethostbyname ();
18426 for ac_lib in '' nsl; do
18427 if test -z "$ac_lib"; then
18428 ac_res="none required"
18431 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18433 if ac_fn_c_try_link "$LINENO"; then :
18434 ac_cv_search_gethostbyname=$ac_res
18436 rm -f core conftest.err conftest.$ac_objext \
18438 if ${ac_cv_search_gethostbyname+:} false; then :
18442 if ${ac_cv_search_gethostbyname+:} false; then :
18445 ac_cv_search_gethostbyname=no
18447 rm conftest.$ac_ext
18448 LIBS=$ac_func_search_save_LIBS
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
18451 $as_echo "$ac_cv_search_gethostbyname" >&6; }
18452 ac_res=$ac_cv_search_gethostbyname
18453 if test "$ac_res" != no; then :
18454 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18458 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
18460 $as_echo_n "checking for main in -lws2_32... " >&6; }
18461 if ${ac_cv_lib_ws2_32_main+:} false; then :
18462 $as_echo_n "(cached) " >&6
18464 ac_check_lib_save_LIBS=$LIBS
18465 LIBS="-lws2_32 $LIBS"
18466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18467 /* end confdefs.h. */
18478 if ac_fn_c_try_link "$LINENO"; then :
18479 ac_cv_lib_ws2_32_main=yes
18481 ac_cv_lib_ws2_32_main=no
18483 rm -f core conftest.err conftest.$ac_objext \
18484 conftest$ac_exeext conftest.$ac_ext
18485 LIBS=$ac_check_lib_save_LIBS
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
18488 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
18489 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
18490 cat >>confdefs.h <<_ACEOF
18491 #define HAVE_LIBWS2_32 1
18494 LIBS="-lws2_32 $LIBS"
18497 ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
18501 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
18502 # Check whether --enable-ipv6 was given.
18503 if test "${enable_ipv6+set}" = set; then :
18504 enableval=$enable_ipv6; IPV6CONN=$enableval
18506 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
18507 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
18516 $as_echo_n "checking if IPv6 support should be built... " >&6; }
18517 if test "$IPV6CONN" = "yes"; then
18519 $as_echo "#define IPv6 1" >>confdefs.h
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
18523 $as_echo "$IPV6CONN" >&6; }
18525 # 4.3BSD-Reno added a new member to struct sockaddr_in
18526 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
18527 #include <sys/types.h>
18528 #include <sys/socket.h>
18529 #include <netinet/in.h>
18532 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
18534 $as_echo "#define BSD44SOCKETS 1" >>confdefs.h
18539 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
18540 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
18541 $ac_includes_default
18542 #include <sys/socket.h>
18544 if test "x$ac_cv_type_socklen_t" = xyes; then :
18546 cat >>confdefs.h <<_ACEOF
18547 #define HAVE_SOCKLEN_T 1
18557 solaris*|sco*|sysv4*) localdef="yes" ;;
18558 *) localdef="no" ;;
18560 # Check whether --enable-local-transport was given.
18561 if test "${enable_local_transport+set}" = set; then :
18562 enableval=$enable_local_transport; LOCALCONN=$enableval
18564 LOCALCONN=$localdef
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
18568 $as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
18570 $as_echo "$LOCALCONN" >&6; }
18571 if test "$LOCALCONN" = "yes"; then
18573 $as_echo "#define LOCALCONN 1" >>confdefs.h
18579 # Allow checking code with lint, sparse, etc.
18585 # Check whether --with-lint was given.
18586 if test "${with_lint+set}" = set; then :
18587 withval=$with_lint; use_lint=$withval
18593 # Obtain platform specific info like program name and options
18594 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
18596 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
18598 lint_options="-badflag"
18600 *freebsd* | *netbsd*)
18602 lint_options="-u -b"
18606 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
18610 # Test for the presence of the program (either guessed by the code or spelled out by the user)
18611 if test "x$use_lint" = x"yes" ; then
18612 # Extract the first word of "$lint_name", so it can be a program name with args.
18613 set dummy $lint_name; ac_word=$2
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18615 $as_echo_n "checking for $ac_word... " >&6; }
18616 if ${ac_cv_path_LINT+:} false; then :
18617 $as_echo_n "(cached) " >&6
18621 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
18624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18625 for as_dir in $PATH
18628 test -z "$as_dir" && as_dir=.
18629 for ac_exec_ext in '' $ac_executable_extensions; do
18630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18631 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
18632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18642 LINT=$ac_cv_path_LINT
18643 if test -n "$LINT"; then
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
18645 $as_echo "$LINT" >&6; }
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18648 $as_echo "no" >&6; }
18652 if test "x$LINT" = "x"; then
18653 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
18655 elif test "x$use_lint" = x"no" ; then
18656 if test "x$LINT" != "x"; then
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
18658 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
18661 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
18664 # User supplied flags override default flags
18665 if test "x$LINT_FLAGS" != "x"; then
18666 lint_options=$LINT_FLAGS
18669 LINT_FLAGS=$lint_options
18671 if test "x$LINT" != x; then
18683 # Check whether --enable-lint-library was given.
18684 if test "${enable_lint_library+set}" = set; then :
18685 enableval=$enable_lint_library; make_lint_lib=$enableval
18691 if test "x$make_lint_lib" = x"yes" ; then
18692 LINTLIB=llib-lXmu.ln
18693 if test "x$LINT" = "x"; then
18694 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
18696 elif test "x$make_lint_lib" != x"no" ; then
18697 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
18701 if test x$make_lint_lib != xno; then
18702 MAKE_LINT_LIB_TRUE=
18703 MAKE_LINT_LIB_FALSE='#'
18705 MAKE_LINT_LIB_TRUE='#'
18706 MAKE_LINT_LIB_FALSE=
18711 LINTLIBUU=`echo $LINTLIB | sed s/Xmu/Xmuu/`
18714 ac_config_files="$ac_config_files Makefile doc/Makefile include/Makefile src/Makefile xmu.pc xmuu.pc"
18716 cat >confcache <<\_ACEOF
18717 # This file is a shell script that caches the results of configure
18718 # tests run on this system so they can be shared between configure
18719 # scripts and configure runs, see configure's option --config-cache.
18720 # It is not useful on other systems. If it contains results you don't
18721 # want to keep, you may remove or edit it.
18723 # config.status only pays attention to the cache file if you give it
18724 # the --recheck option to rerun configure.
18726 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18727 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18728 # following values.
18732 # The following way of writing the cache mishandles newlines in values,
18733 # but we know of no workaround that is simple, portable, and efficient.
18734 # So, we kill variables containing newlines.
18735 # Ultrix sh set writes to stderr and can't be redirected directly,
18736 # and sets the high bit in the cache file unless we assign to the vars.
18738 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18739 eval ac_val=\$$ac_var
18743 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18744 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18747 _ | IFS | as_nl) ;; #(
18748 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18749 *) { eval $ac_var=; unset $ac_var;} ;;
18755 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18756 *${as_nl}ac_space=\ *)
18757 # `set' does not quote correctly, so add quotes: double-quote
18758 # substitution turns \\\\ into \\, and sed turns \\ into \.
18761 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18764 # `set' quotes correctly as required by POSIX, so do not add quotes.
18765 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18774 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18776 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18778 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18779 if test -w "$cache_file"; then
18780 if test "x$cache_file" != "x/dev/null"; then
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18782 $as_echo "$as_me: updating cache $cache_file" >&6;}
18783 if test ! -f "$cache_file" || test -h "$cache_file"; then
18784 cat confcache >"$cache_file"
18786 case $cache_file in #(
18788 mv -f confcache "$cache_file"$$ &&
18789 mv -f "$cache_file"$$ "$cache_file" ;; #(
18791 mv -f confcache "$cache_file" ;;
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18797 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18802 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18803 # Let make expand exec_prefix.
18804 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18806 DEFS=-DHAVE_CONFIG_H
18811 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18812 # 1. Remove the extension, and $U if already installed.
18813 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18814 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18815 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18816 # will be set to the directory where LIBOBJS objects are built.
18817 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18818 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18820 LIBOBJS=$ac_libobjs
18822 LTLIBOBJS=$ac_ltlibobjs
18825 if test -n "$EXEEXT"; then
18827 am__EXEEXT_FALSE='#'
18829 am__EXEEXT_TRUE='#'
18833 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18834 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18837 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18838 as_fn_error $? "conditional \"AMDEP\" was never defined.
18839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18841 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18842 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18845 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
18846 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
18847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18849 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
18850 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
18851 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18853 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
18854 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
18855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18857 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
18858 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
18859 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18861 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
18862 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
18863 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18865 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
18866 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
18867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18869 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
18870 as_fn_error $? "conditional \"LINT\" was never defined.
18871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18873 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
18874 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
18875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18878 : "${CONFIG_STATUS=./config.status}"
18880 ac_clean_files_save=$ac_clean_files
18881 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18883 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18885 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18887 # Generated by $as_me.
18888 # Run this file to recreate the current configuration.
18889 # Compiler output produced by configure, useful for debugging
18890 # configure, is in config.log if it exists.
18893 ac_cs_recheck=false
18896 SHELL=\${CONFIG_SHELL-$SHELL}
18899 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18900 ## -------------------- ##
18901 ## M4sh Initialization. ##
18902 ## -------------------- ##
18904 # Be more Bourne compatible
18905 DUALCASE=1; export DUALCASE # for MKS sh
18906 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18909 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18910 # is contrary to our usage. Disable this feature.
18911 alias -g '${1+"$@"}'='"$@"'
18912 setopt NO_GLOB_SUBST
18914 case `(set -o) 2>/dev/null` in #(
18926 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18927 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18928 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18929 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18930 # Prefer a ksh shell builtin over an external printf program on Solaris,
18931 # but without wasting forks for bash or zsh.
18932 if test -z "$BASH_VERSION$ZSH_VERSION" \
18933 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18934 as_echo='print -r --'
18935 as_echo_n='print -rn --'
18936 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18937 as_echo='printf %s\n'
18938 as_echo_n='printf %s'
18940 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18941 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18942 as_echo_n='/usr/ucb/echo -n'
18944 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18945 as_echo_n_body='eval
18949 expr "X$arg" : "X\\(.*\\)$as_nl";
18950 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18952 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18954 export as_echo_n_body
18955 as_echo_n='sh -c $as_echo_n_body as_echo'
18957 export as_echo_body
18958 as_echo='sh -c $as_echo_body as_echo'
18961 # The user is always right.
18962 if test "${PATH_SEPARATOR+set}" != set; then
18964 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18965 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18972 # We need space, tab and new line, in precisely that order. Quoting is
18973 # there to prevent editors from complaining about space-tab.
18974 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18975 # splitting by setting IFS to empty value.)
18978 # Find who we are. Look in the path if we contain no directory separator.
18981 *[\\/]* ) as_myself=$0 ;;
18982 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18983 for as_dir in $PATH
18986 test -z "$as_dir" && as_dir=.
18987 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18993 # We did not find ourselves, most probably we were run as `sh COMMAND'
18994 # in which case we are not to be found in the path.
18995 if test "x$as_myself" = x; then
18998 if test ! -f "$as_myself"; then
18999 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19003 # Unset variables that we do not need and which cause bugs (e.g. in
19004 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19005 # suppresses any "Segmentation fault" message there. '((' could
19006 # trigger a bug in pdksh 5.2.14.
19007 for as_var in BASH_ENV ENV MAIL MAILPATH
19008 do eval test x\${$as_var+set} = xset \
19009 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19022 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19025 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19026 # ----------------------------------------
19027 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19028 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19029 # script with STATUS, using 1 if that was 0.
19032 as_status=$1; test $as_status -eq 0 && as_status=1
19034 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19035 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19037 $as_echo "$as_me: error: $2" >&2
19038 as_fn_exit $as_status
19042 # as_fn_set_status STATUS
19043 # -----------------------
19044 # Set $? to STATUS, without forking.
19045 as_fn_set_status ()
19048 } # as_fn_set_status
19050 # as_fn_exit STATUS
19051 # -----------------
19052 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19056 as_fn_set_status $1
19062 # Portably unset VAR.
19065 { eval $1=; unset $1;}
19067 as_unset=as_fn_unset
19068 # as_fn_append VAR VALUE
19069 # ----------------------
19070 # Append the text in VALUE to the end of the definition contained in VAR. Take
19071 # advantage of any shell optimizations that allow amortized linear growth over
19072 # repeated appends, instead of the typical quadratic growth present in naive
19074 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19075 eval 'as_fn_append ()
19086 # as_fn_arith ARG...
19087 # ------------------
19088 # Perform arithmetic evaluation on the ARGs, and store the result in the
19089 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19090 # must be portable across $(()) and expr.
19091 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19092 eval 'as_fn_arith ()
19099 as_val=`expr "$@" || test $? -eq 1`
19104 if expr a : '\(a\)' >/dev/null 2>&1 &&
19105 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19111 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19112 as_basename=basename
19117 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19123 as_me=`$as_basename -- "$0" ||
19124 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19125 X"$0" : 'X\(//\)$' \| \
19126 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19128 sed '/^.*\/\([^/][^/]*\)\/*$/{
19142 # Avoid depending upon Character Ranges.
19143 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19144 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19145 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19146 as_cr_digits='0123456789'
19147 as_cr_alnum=$as_cr_Letters$as_cr_digits
19149 ECHO_C= ECHO_N= ECHO_T=
19150 case `echo -n x` in #(((((
19152 case `echo 'xy\c'` in
19153 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19155 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19162 rm -f conf$$ conf$$.exe conf$$.file
19163 if test -d conf$$.dir; then
19164 rm -f conf$$.dir/conf$$.file
19167 mkdir conf$$.dir 2>/dev/null
19169 if (echo >conf$$.file) 2>/dev/null; then
19170 if ln -s conf$$.file conf$$ 2>/dev/null; then
19172 # ... but there are two gotchas:
19173 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19174 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19175 # In both cases, we have to default to `cp -p'.
19176 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19178 elif ln conf$$.file conf$$ 2>/dev/null; then
19186 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19187 rmdir conf$$.dir 2>/dev/null
19192 # Create "$as_dir" as a directory, including parents if necessary.
19197 -*) as_dir=./$as_dir;;
19199 test -d "$as_dir" || eval $as_mkdir_p || {
19203 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19204 *) as_qdir=$as_dir;;
19206 as_dirs="'$as_qdir' $as_dirs"
19207 as_dir=`$as_dirname -- "$as_dir" ||
19208 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19209 X"$as_dir" : 'X\(//\)[^/]' \| \
19210 X"$as_dir" : 'X\(//\)$' \| \
19211 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19212 $as_echo X"$as_dir" |
19213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19217 /^X\(\/\/\)[^/].*/{
19230 test -d "$as_dir" && break
19232 test -z "$as_dirs" || eval "mkdir $as_dirs"
19233 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19237 if mkdir -p . 2>/dev/null; then
19238 as_mkdir_p='mkdir -p "$as_dir"'
19240 test -d ./-p && rmdir ./-p
19244 if test -x / >/dev/null 2>&1; then
19245 as_test_x='test -x'
19247 if ls -dL / >/dev/null 2>&1; then
19254 if test -d "$1"; then
19260 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19261 ???[sx]*):;;*)false;;esac;fi
19265 as_executable_p=$as_test_x
19267 # Sed expression to map a string onto a valid CPP name.
19268 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19270 # Sed expression to map a string onto a valid variable name.
19271 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19275 ## ----------------------------------- ##
19276 ## Main body of $CONFIG_STATUS script. ##
19277 ## ----------------------------------- ##
19279 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19282 # Save the log message, to keep $0 and so on meaningful, and to
19283 # report actual input values of CONFIG_FILES etc. instead of their
19284 # values after options handling.
19286 This file was extended by libXmu $as_me 1.1.1, which was
19287 generated by GNU Autoconf 2.68. Invocation command line was
19289 CONFIG_FILES = $CONFIG_FILES
19290 CONFIG_HEADERS = $CONFIG_HEADERS
19291 CONFIG_LINKS = $CONFIG_LINKS
19292 CONFIG_COMMANDS = $CONFIG_COMMANDS
19295 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19300 case $ac_config_files in *"
19301 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19304 case $ac_config_headers in *"
19305 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19310 # Files that config.status was made for.
19311 config_files="$ac_config_files"
19312 config_headers="$ac_config_headers"
19313 config_commands="$ac_config_commands"
19317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19319 \`$as_me' instantiates files and other configuration actions
19320 from templates according to the current configuration. Unless the files
19321 and actions are specified as TAGs, all are instantiated by default.
19323 Usage: $0 [OPTION]... [TAG]...
19325 -h, --help print this help, then exit
19326 -V, --version print version number and configuration settings, then exit
19327 --config print configuration, then exit
19328 -q, --quiet, --silent
19329 do not print progress messages
19330 -d, --debug don't remove temporary files
19331 --recheck update $as_me by reconfiguring in the same conditions
19332 --file=FILE[:TEMPLATE]
19333 instantiate the configuration file FILE
19334 --header=FILE[:TEMPLATE]
19335 instantiate the configuration header FILE
19337 Configuration files:
19340 Configuration headers:
19343 Configuration commands:
19346 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19350 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19352 libXmu config.status 1.1.1
19353 configured by $0, generated by GNU Autoconf 2.68,
19354 with options \\"\$ac_cs_config\\"
19356 Copyright (C) 2010 Free Software Foundation, Inc.
19357 This config.status script is free software; the Free Software Foundation
19358 gives unlimited permission to copy, distribute and modify it."
19365 test -n "\$AWK" || AWK=awk
19368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19369 # The default lists apply if the user does not specify any file.
19375 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19376 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19380 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19392 # Handling of the options.
19393 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19395 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19396 $as_echo "$ac_cs_version"; exit ;;
19397 --config | --confi | --conf | --con | --co | --c )
19398 $as_echo "$ac_cs_config"; exit ;;
19399 --debug | --debu | --deb | --de | --d | -d )
19401 --file | --fil | --fi | --f )
19404 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19405 '') as_fn_error $? "missing file argument" ;;
19407 as_fn_append CONFIG_FILES " '$ac_optarg'"
19408 ac_need_defaults=false;;
19409 --header | --heade | --head | --hea )
19412 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19414 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19415 ac_need_defaults=false;;
19417 # Conflict between --help and --header
19418 as_fn_error $? "ambiguous option: \`$1'
19419 Try \`$0 --help' for more information.";;
19420 --help | --hel | -h )
19421 $as_echo "$ac_cs_usage"; exit ;;
19422 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19423 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19426 # This is an error.
19427 -*) as_fn_error $? "unrecognized option: \`$1'
19428 Try \`$0 --help' for more information." ;;
19430 *) as_fn_append ac_config_targets " $1"
19431 ac_need_defaults=false ;;
19437 ac_configure_extra_args=
19439 if $ac_cs_silent; then
19441 ac_configure_extra_args="$ac_configure_extra_args --silent"
19445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19446 if \$ac_cs_recheck; then
19447 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19449 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19450 CONFIG_SHELL='$SHELL'
19451 export CONFIG_SHELL
19456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19460 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19461 ## Running $as_me. ##
19467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19471 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19474 # The HP-UX ksh and POSIX shell print the target directory to stdout
19475 # if CDPATH is set.
19476 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19478 sed_quote_subst='$sed_quote_subst'
19479 double_quote_subst='$double_quote_subst'
19480 delay_variable_subst='$delay_variable_subst'
19481 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19482 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19483 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19484 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19485 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19486 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19487 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19488 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19489 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19490 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19491 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19492 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19493 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19494 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19495 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19496 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19497 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19498 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19499 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19500 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19501 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19502 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19503 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19504 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19505 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19506 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19507 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19508 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19509 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19510 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19511 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19512 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19513 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19514 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19515 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19516 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19517 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19518 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19519 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19520 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19521 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19522 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19523 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19524 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19525 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19526 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19527 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19528 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19529 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19530 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19531 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19532 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19533 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19534 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19535 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19536 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"`'
19537 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19538 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19539 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19540 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19541 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19542 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19543 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19544 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19545 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19546 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19547 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19548 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19549 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19550 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19551 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19552 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19553 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19554 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19555 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19556 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19557 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19558 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19559 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19560 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19561 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19562 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19563 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19564 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19565 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19566 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19567 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19568 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19569 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19570 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19571 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
19572 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19573 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19574 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19575 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19576 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19577 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19578 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19579 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19580 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19581 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19582 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19583 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19584 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19585 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19586 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19587 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19588 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19589 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19590 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19591 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19592 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19593 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19594 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19595 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19596 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19597 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19598 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19599 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19600 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19601 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19602 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19603 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19604 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19605 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19606 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19607 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19608 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19609 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19610 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19613 LTCFLAGS='$LTCFLAGS'
19614 compiler='$compiler_DEFAULT'
19616 # A function that is used when there is no print builtin or printf.
19617 func_fallback_echo ()
19619 eval 'cat <<_LTECHO_EOF
19624 # Quote evaled strings.
19638 deplibs_check_method \
19643 sharedlib_from_linklib_cmd \
19646 archiver_list_spec \
19652 lt_cv_sys_global_symbol_pipe \
19653 lt_cv_sys_global_symbol_to_cdecl \
19654 lt_cv_sys_global_symbol_to_c_name_address \
19655 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19656 nm_file_list_spec \
19657 lt_prog_compiler_no_builtin_flag \
19658 lt_prog_compiler_pic \
19659 lt_prog_compiler_wl \
19660 lt_prog_compiler_static \
19661 lt_cv_prog_compiler_c_o \
19670 export_dynamic_flag_spec \
19671 whole_archive_flag_spec \
19672 compiler_needs_object \
19674 allow_undefined_flag \
19675 no_undefined_flag \
19676 hardcode_libdir_flag_spec \
19677 hardcode_libdir_flag_spec_ld \
19678 hardcode_libdir_separator \
19682 variables_saved_for_relink \
19684 library_names_spec \
19686 install_override_mode \
19690 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19691 *[\\\\\\\`\\"\\\$]*)
19692 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19695 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19700 # Double-quote double-evaled strings.
19701 for var in reload_cmds \
19702 old_postinstall_cmds \
19703 old_postuninstall_cmds \
19705 extract_expsyms_cmds \
19706 old_archive_from_new_cmds \
19707 old_archive_from_expsyms_cmds \
19709 archive_expsym_cmds \
19711 module_expsym_cmds \
19712 export_symbols_cmds \
19716 postuninstall_cmds \
19718 sys_lib_search_path_spec \
19719 sys_lib_dlsearch_path_spec; do
19720 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19721 *[\\\\\\\`\\"\\\$]*)
19722 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19725 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19730 ac_aux_dir='$ac_aux_dir'
19731 xsi_shell='$xsi_shell'
19732 lt_shell_append='$lt_shell_append'
19734 # See if we are running on zsh, and set the options which allow our
19735 # commands through without removal of \ escapes INIT.
19736 if test -n "\${ZSH_VERSION+set}" ; then
19737 setopt NO_GLOB_SUBST
19743 TIMESTAMP='$TIMESTAMP'
19752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19754 # Handling of arguments.
19755 for ac_config_target in $ac_config_targets
19757 case $ac_config_target in
19758 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19759 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19760 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19761 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19762 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19763 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19764 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19765 "xmu.pc") CONFIG_FILES="$CONFIG_FILES xmu.pc" ;;
19766 "xmuu.pc") CONFIG_FILES="$CONFIG_FILES xmuu.pc" ;;
19768 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19773 # If the user did not use the arguments to specify the items to instantiate,
19774 # then the envvar interface is used. Set only those that are not.
19775 # We use the long form for the default assignment because of an extremely
19776 # bizarre bug on SunOS 4.1.3.
19777 if $ac_need_defaults; then
19778 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19779 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19780 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19783 # Have a temporary directory for convenience. Make it in the build tree
19784 # simply because there is no reason against having it here, and in addition,
19785 # creating and moving files from /tmp can sometimes cause problems.
19786 # Hook for its removal unless debugging.
19787 # Note that there is a small window in which the directory will not be cleaned:
19788 # after its creation but before its name has been assigned to `$tmp'.
19792 trap 'exit_status=$?
19793 : "${ac_tmp:=$tmp}"
19794 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19796 trap 'as_fn_exit 1' 1 2 13 15
19798 # Create a (secure) tmp directory for tmp files.
19801 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19805 tmp=./conf$$-$RANDOM
19806 (umask 077 && mkdir "$tmp")
19807 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19810 # Set up the scripts for CONFIG_FILES section.
19811 # No need to generate them if there are no CONFIG_FILES.
19812 # This happens for instance with `./config.status config.h'.
19813 if test -n "$CONFIG_FILES"; then
19816 ac_cr=`echo X | tr X '\015'`
19817 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19818 # But we know of no other shell where ac_cr would be empty at this
19819 # point, so we can use a bashism as a fallback.
19820 if test "x$ac_cr" = x; then
19821 eval ac_cr=\$\'\\r\'
19823 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19824 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19827 ac_cs_awk_cr=$ac_cr
19830 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19835 echo "cat >conf$$subs.awk <<_ACEOF" &&
19836 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19838 } >conf$$subs.sh ||
19839 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19840 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19842 for ac_last_try in false false false false false :; do
19843 . ./conf$$subs.sh ||
19844 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19846 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19847 if test $ac_delim_n = $ac_delim_num; then
19849 elif $ac_last_try; then
19850 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19852 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19855 rm -f conf$$subs.sh
19857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19858 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19862 s/^/S["/; s/!.*/"]=/
19872 s/\(.\{148\}\)..*/\1/
19874 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19879 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19886 s/\(.\{148\}\)..*/\1/
19888 s/["\\]/\\&/g; s/^/"/; s/$/"/
19892 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19897 ' <conf$$subs.awk | sed '
19902 ' >>$CONFIG_STATUS || ac_write_fail=1
19903 rm -f conf$$subs.awk
19904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19906 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19907 for (key in S) S_is_set[key] = 1
19913 nfields = split(line, field, "@")
19915 len = length(field[1])
19916 for (i = 2; i < nfields; i++) {
19918 keylen = length(key)
19919 if (S_is_set[key]) {
19921 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19922 len += length(value) + length(field[++i])
19933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19934 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19935 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19938 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19939 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19942 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19943 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19944 # trailing colons and then remove the whole line if VPATH becomes empty
19945 # (actually we leave an empty line to preserve line numbers).
19946 if test "x$srcdir" = x.; then
19947 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19966 fi # test -n "$CONFIG_FILES"
19968 # Set up the scripts for CONFIG_HEADERS section.
19969 # No need to generate them if there are no CONFIG_HEADERS.
19970 # This happens for instance with `./config.status Makefile'.
19971 if test -n "$CONFIG_HEADERS"; then
19972 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19976 # Transform confdefs.h into an awk script `defines.awk', embedded as
19977 # here-document in config.status, that substitutes the proper values into
19978 # config.h.in to produce config.h.
19980 # Create a delimiter string that does not exist in confdefs.h, to ease
19981 # handling of long lines.
19983 for ac_last_try in false false :; do
19984 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19985 if test -z "$ac_tt"; then
19987 elif $ac_last_try; then
19988 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19990 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19994 # For the awk script, D is an array of macro values keyed by name,
19995 # likewise P contains macro parameters if any. Preserve backslash
19996 # newline sequences.
19998 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20000 s/.\{148\}/&'"$ac_delim"'/g
20003 s/^[ ]*#[ ]*define[ ][ ]*/ /
20010 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20012 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20016 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20017 D["\1"]=" \3\\\\\\n"\\/p
20019 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20024 s/.\{148\}/&'"$ac_delim"'/g
20029 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20032 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20034 ' <confdefs.h | sed '
20035 s/'"$ac_delim"'/"\\\
20036 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20039 for (key in D) D_is_set[key] = 1
20042 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20044 split(line, arg, " ")
20045 if (arg[1] == "#") {
20049 defundef = substr(arg[1], 2)
20052 split(mac1, mac2, "(") #)
20054 prefix = substr(line, 1, index(line, defundef) - 1)
20055 if (D_is_set[macro]) {
20056 # Preserve the white space surrounding the "#".
20057 print prefix "define", macro P[macro] D[macro]
20060 # Replace #undef with comments. This is necessary, for example,
20061 # in the case of _POSIX_SOURCE, which is predefined and required
20062 # on some systems where configure will not decide to define it.
20063 if (defundef == "undef") {
20064 print "/*", prefix defundef, macro, "*/"
20072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20073 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20074 fi # test -n "$CONFIG_HEADERS"
20077 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20082 :[FHLC]) ac_mode=$ac_tag; continue;;
20084 case $ac_mode$ac_tag in
20086 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20087 :[FH]-) ac_tag=-:-;;
20088 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20105 -) ac_f="$ac_tmp/stdin";;
20106 *) # Look for the file first in the build tree, then in the source tree
20107 # (if the path is not absolute). The absolute path cannot be DOS-style,
20108 # because $ac_f cannot contain `:'.
20112 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20114 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20116 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20117 as_fn_append ac_file_inputs " '$ac_f'"
20120 # Let's still pretend it is `configure' which instantiates (i.e., don't
20121 # use $as_me), people would be surprised to read:
20122 # /* config.h. Generated by config.status. */
20123 configure_input='Generated from '`
20124 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20126 if test x"$ac_file" != x-; then
20127 configure_input="$ac_file. $configure_input"
20128 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20129 $as_echo "$as_me: creating $ac_file" >&6;}
20131 # Neutralize special characters interpreted by sed in replacement strings.
20132 case $configure_input in #(
20133 *\&* | *\|* | *\\* )
20134 ac_sed_conf_input=`$as_echo "$configure_input" |
20135 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20136 *) ac_sed_conf_input=$configure_input;;
20140 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20141 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20146 ac_dir=`$as_dirname -- "$ac_file" ||
20147 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20148 X"$ac_file" : 'X\(//\)[^/]' \| \
20149 X"$ac_file" : 'X\(//\)$' \| \
20150 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20151 $as_echo X"$ac_file" |
20152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20156 /^X\(\/\/\)[^/].*/{
20169 as_dir="$ac_dir"; as_fn_mkdir_p
20173 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20175 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20176 # A ".." for each directory in $ac_dir_suffix.
20177 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20178 case $ac_top_builddir_sub in
20179 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20180 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20183 ac_abs_top_builddir=$ac_pwd
20184 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20185 # for backward compatibility:
20186 ac_top_builddir=$ac_top_build_prefix
20189 .) # We are building in place.
20191 ac_top_srcdir=$ac_top_builddir_sub
20192 ac_abs_top_srcdir=$ac_pwd ;;
20193 [\\/]* | ?:[\\/]* ) # Absolute name.
20194 ac_srcdir=$srcdir$ac_dir_suffix;
20195 ac_top_srcdir=$srcdir
20196 ac_abs_top_srcdir=$srcdir ;;
20197 *) # Relative name.
20198 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20199 ac_top_srcdir=$ac_top_build_prefix$srcdir
20200 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20202 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20212 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20213 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20215 ac_MKDIR_P=$MKDIR_P
20217 [\\/$]* | ?:[\\/]* ) ;;
20218 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20223 # If the template does not know about datarootdir, expand it.
20224 # FIXME: This hack should be removed a few years after 2.60.
20225 ac_datarootdir_hack=; ac_datarootdir_seen=
20236 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20237 *datarootdir*) ac_datarootdir_seen=yes;;
20238 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20240 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20243 ac_datarootdir_hack='
20244 s&@datadir@&$datadir&g
20245 s&@docdir@&$docdir&g
20246 s&@infodir@&$infodir&g
20247 s&@localedir@&$localedir&g
20248 s&@mandir@&$mandir&g
20249 s&\\\${datarootdir}&$datarootdir&g' ;;
20253 # Neutralize VPATH when `$srcdir' = `.'.
20254 # Shell code in configure.ac might set extrasub.
20255 # FIXME: do we really want to maintain this feature?
20256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20257 ac_sed_extra="$ac_vpsub
20260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20262 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20263 s|@configure_input@|$ac_sed_conf_input|;t t
20264 s&@top_builddir@&$ac_top_builddir_sub&;t t
20265 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20266 s&@srcdir@&$ac_srcdir&;t t
20267 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20268 s&@top_srcdir@&$ac_top_srcdir&;t t
20269 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20270 s&@builddir@&$ac_builddir&;t t
20271 s&@abs_builddir@&$ac_abs_builddir&;t t
20272 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20273 s&@INSTALL@&$ac_INSTALL&;t t
20274 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20275 $ac_datarootdir_hack
20277 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20278 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20280 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20281 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20282 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20283 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20285 which seems to be undefined. Please make sure it is defined" >&5
20286 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20287 which seems to be undefined. Please make sure it is defined" >&2;}
20289 rm -f "$ac_tmp/stdin"
20291 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20292 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20294 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20300 if test x"$ac_file" != x-; then
20302 $as_echo "/* $configure_input */" \
20303 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20304 } >"$ac_tmp/config.h" \
20305 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20306 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20307 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20308 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20311 mv "$ac_tmp/config.h" "$ac_file" \
20312 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20315 $as_echo "/* $configure_input */" \
20316 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20317 || as_fn_error $? "could not create -" "$LINENO" 5
20319 # Compute "$ac_file"'s index in $config_headers.
20322 for _am_header in $config_headers :; do
20323 case $_am_header in
20324 $_am_arg | $_am_arg:* )
20327 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20330 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20331 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20332 X"$_am_arg" : 'X\(//\)[^/]' \| \
20333 X"$_am_arg" : 'X\(//\)$' \| \
20334 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20335 $as_echo X"$_am_arg" |
20336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20340 /^X\(\/\/\)[^/].*/{
20352 s/.*/./; q'`/stamp-h$_am_stamp_count
20355 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20356 $as_echo "$as_me: executing $ac_file commands" >&6;}
20361 case $ac_file$ac_mode in
20362 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20363 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20364 # are listed without --file. Let's play safe and only enable the eval
20365 # if we detect the quoting.
20366 case $CONFIG_FILES in
20367 *\'*) eval set x "$CONFIG_FILES" ;;
20368 *) set x $CONFIG_FILES ;;
20373 # Strip MF so we end up with the name of the file.
20374 mf=`echo "$mf" | sed -e 's/:.*$//'`
20375 # Check whether this is an Automake generated Makefile or not.
20376 # We used to match only the files named `Makefile.in', but
20377 # some people rename them; so instead we look at the file content.
20378 # Grep'ing the first line is not enough: some people post-process
20379 # each Makefile.in and add a new line on top of each file to say so.
20380 # Grep'ing the whole file is not good either: AIX grep has a line
20381 # limit of 2048, but all sed's we know have understand at least 4000.
20382 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20383 dirpart=`$as_dirname -- "$mf" ||
20384 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20385 X"$mf" : 'X\(//\)[^/]' \| \
20386 X"$mf" : 'X\(//\)$' \| \
20387 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20393 /^X\(\/\/\)[^/].*/{
20409 # Extract the definition of DEPDIR, am__include, and am__quote
20410 # from the Makefile without running `make'.
20411 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20412 test -z "$DEPDIR" && continue
20413 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20414 test -z "am__include" && continue
20415 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20416 # When using ansi2knr, U may be empty or an underscore; expand it
20417 U=`sed -n 's/^U = //p' < "$mf"`
20418 # Find all dependency output files, they are included files with
20419 # $(DEPDIR) in their names. We invoke sed twice because it is the
20420 # simplest approach to changing $(DEPDIR) to its actual value in the
20422 for file in `sed -n "
20423 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20424 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20425 # Make sure the directory exists.
20426 test -f "$dirpart/$file" && continue
20427 fdir=`$as_dirname -- "$file" ||
20428 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20429 X"$file" : 'X\(//\)[^/]' \| \
20430 X"$file" : 'X\(//\)$' \| \
20431 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20432 $as_echo X"$file" |
20433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20437 /^X\(\/\/\)[^/].*/{
20450 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20451 # echo "creating $dirpart/$file"
20452 echo '# dummy' > "$dirpart/$file"
20459 # See if we are running on zsh, and set the options which allow our
20460 # commands through without removal of \ escapes.
20461 if test -n "${ZSH_VERSION+set}" ; then
20462 setopt NO_GLOB_SUBST
20465 cfgfile="${ofile}T"
20466 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20469 cat <<_LT_EOF >> "$cfgfile"
20472 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20473 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20474 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20475 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20477 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20478 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
20480 # Written by Gordon Matzigkeit, 1996
20482 # This file is part of GNU Libtool.
20484 # GNU Libtool is free software; you can redistribute it and/or
20485 # modify it under the terms of the GNU General Public License as
20486 # published by the Free Software Foundation; either version 2 of
20487 # the License, or (at your option) any later version.
20489 # As a special exception to the GNU General Public License,
20490 # if you distribute this file as part of a program or library that
20491 # is built using GNU Libtool, you may include this file under the
20492 # same distribution terms that you use for the rest of that program.
20494 # GNU Libtool is distributed in the hope that it will be useful,
20495 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20496 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20497 # GNU General Public License for more details.
20499 # You should have received a copy of the GNU General Public License
20500 # along with GNU Libtool; see the file COPYING. If not, a copy
20501 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20502 # obtained by writing to the Free Software Foundation, Inc.,
20503 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20506 # The names of the tagged configurations supported by this script.
20509 # ### BEGIN LIBTOOL CONFIG
20511 # Which release of libtool.m4 was used?
20512 macro_version=$macro_version
20513 macro_revision=$macro_revision
20515 # Whether or not to build shared libraries.
20516 build_libtool_libs=$enable_shared
20518 # Whether or not to build static libraries.
20519 build_old_libs=$enable_static
20521 # What type of objects to build.
20524 # Whether or not to optimize for fast installation.
20525 fast_install=$enable_fast_install
20527 # Shell to use when invoking shell scripts.
20530 # An echo program that protects backslashes.
20534 host_alias=$host_alias
20538 # The build system.
20539 build_alias=$build_alias
20543 # A sed program that does not truncate output.
20546 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20547 Xsed="\$SED -e 1s/^X//"
20549 # A grep program that handles long lines.
20555 # A literal string matcher.
20558 # A BSD- or MS-compatible name lister.
20561 # Whether we need soft or hard links.
20564 # What is the maximum length of a command?
20565 max_cmd_len=$max_cmd_len
20567 # Object file suffix (normally "o").
20570 # Executable file suffix (normally "").
20573 # whether the shell understands "unset".
20576 # turn spaces into newlines.
20579 # turn newlines into spaces.
20582 # convert \$build file names to \$host format.
20583 to_host_file_cmd=$lt_cv_to_host_file_cmd
20585 # convert \$build files to toolchain format.
20586 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20588 # An object symbol dumper.
20589 OBJDUMP=$lt_OBJDUMP
20591 # Method to check whether dependent libraries are shared objects.
20592 deplibs_check_method=$lt_deplibs_check_method
20594 # Command to use when deplibs_check_method = "file_magic".
20595 file_magic_cmd=$lt_file_magic_cmd
20597 # How to find potential files when deplibs_check_method = "file_magic".
20598 file_magic_glob=$lt_file_magic_glob
20600 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20601 want_nocaseglob=$lt_want_nocaseglob
20603 # DLL creation program.
20604 DLLTOOL=$lt_DLLTOOL
20606 # Command to associate shared and link libraries.
20607 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20612 # Flags to create an archive.
20613 AR_FLAGS=$lt_AR_FLAGS
20615 # How to feed a file listing to the archiver.
20616 archiver_list_spec=$lt_archiver_list_spec
20618 # A symbol stripping program.
20621 # Commands used to install an old-style archive.
20623 old_postinstall_cmds=$lt_old_postinstall_cmds
20624 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20626 # Whether to use a lock for old archive extraction.
20627 lock_old_archive_extraction=$lock_old_archive_extraction
20632 # LTCC compiler flags.
20633 LTCFLAGS=$lt_CFLAGS
20635 # Take the output of nm and produce a listing of raw symbols and C names.
20636 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20638 # Transform the output of nm in a proper C declaration.
20639 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20641 # Transform the output of nm in a C name address pair.
20642 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20644 # Transform the output of nm in a C name address pair when lib prefix is needed.
20645 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20647 # Specify filename containing input files for \$NM.
20648 nm_file_list_spec=$lt_nm_file_list_spec
20650 # The root where to search for dependent libraries,and in which our libraries should be installed.
20651 lt_sysroot=$lt_sysroot
20653 # The name of the directory that contains temporary libtool files.
20656 # Used to examine libraries when file_magic_cmd begins with "file".
20657 MAGIC_CMD=$MAGIC_CMD
20659 # Must we lock files when doing compilation?
20660 need_locks=$lt_need_locks
20663 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20665 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20666 DSYMUTIL=$lt_DSYMUTIL
20668 # Tool to change global to local symbols on Mac OS X.
20671 # Tool to manipulate fat objects and archives on Mac OS X.
20674 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20677 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20678 OTOOL64=$lt_OTOOL64
20680 # Old archive suffix (normally "a").
20683 # Shared library suffix (normally ".so").
20684 shrext_cmds=$lt_shrext_cmds
20686 # The commands to extract the exported symbol list from a shared archive.
20687 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20689 # Variables whose values should be saved in libtool wrapper scripts and
20690 # restored at link time.
20691 variables_saved_for_relink=$lt_variables_saved_for_relink
20693 # Do we need the "lib" prefix for modules?
20694 need_lib_prefix=$need_lib_prefix
20696 # Do we need a version for libraries?
20697 need_version=$need_version
20699 # Library versioning type.
20700 version_type=$version_type
20702 # Shared library runtime path variable.
20703 runpath_var=$runpath_var
20705 # Shared library path variable.
20706 shlibpath_var=$shlibpath_var
20708 # Is shlibpath searched before the hard-coded library search path?
20709 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20711 # Format of library name prefix.
20712 libname_spec=$lt_libname_spec
20714 # List of archive names. First name is the real one, the rest are links.
20715 # The last name is the one that the linker finds with -lNAME
20716 library_names_spec=$lt_library_names_spec
20718 # The coded name of the library, if different from the real name.
20719 soname_spec=$lt_soname_spec
20721 # Permission mode override for installation of shared libraries.
20722 install_override_mode=$lt_install_override_mode
20724 # Command to use after installation of a shared archive.
20725 postinstall_cmds=$lt_postinstall_cmds
20727 # Command to use after uninstallation of a shared archive.
20728 postuninstall_cmds=$lt_postuninstall_cmds
20730 # Commands used to finish a libtool library installation in a directory.
20731 finish_cmds=$lt_finish_cmds
20733 # As "finish_cmds", except a single script fragment to be evaled but
20735 finish_eval=$lt_finish_eval
20737 # Whether we should hardcode library paths into libraries.
20738 hardcode_into_libs=$hardcode_into_libs
20740 # Compile-time system search path for libraries.
20741 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20743 # Run-time system search path for libraries.
20744 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20746 # Whether dlopen is supported.
20747 dlopen_support=$enable_dlopen
20749 # Whether dlopen of programs is supported.
20750 dlopen_self=$enable_dlopen_self
20752 # Whether dlopen of statically linked programs is supported.
20753 dlopen_self_static=$enable_dlopen_self_static
20755 # Commands to strip libraries.
20756 old_striplib=$lt_old_striplib
20757 striplib=$lt_striplib
20760 # The linker used to build libraries.
20763 # How to create reloadable object files.
20764 reload_flag=$lt_reload_flag
20765 reload_cmds=$lt_reload_cmds
20767 # Commands used to build an old-style archive.
20768 old_archive_cmds=$lt_old_archive_cmds
20770 # A language specific compiler.
20773 # Is the compiler the GNU compiler?
20776 # Compiler flag to turn off builtin functions.
20777 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20779 # Additional compiler flags for building library objects.
20780 pic_flag=$lt_lt_prog_compiler_pic
20782 # How to pass a linker flag through the compiler.
20783 wl=$lt_lt_prog_compiler_wl
20785 # Compiler flag to prevent dynamic linking.
20786 link_static_flag=$lt_lt_prog_compiler_static
20788 # Does compiler simultaneously support -c and -o options?
20789 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20791 # Whether or not to add -lc for building shared libraries.
20792 build_libtool_need_lc=$archive_cmds_need_lc
20794 # Whether or not to disallow shared libs when runtime libs are static.
20795 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20797 # Compiler flag to allow reflexive dlopens.
20798 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20800 # Compiler flag to generate shared objects directly from archives.
20801 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20803 # Whether the compiler copes with passing no objects directly.
20804 compiler_needs_object=$lt_compiler_needs_object
20806 # Create an old-style archive from a shared archive.
20807 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20809 # Create a temporary old-style archive to link instead of a shared archive.
20810 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20812 # Commands used to build a shared archive.
20813 archive_cmds=$lt_archive_cmds
20814 archive_expsym_cmds=$lt_archive_expsym_cmds
20816 # Commands used to build a loadable module if different from building
20817 # a shared archive.
20818 module_cmds=$lt_module_cmds
20819 module_expsym_cmds=$lt_module_expsym_cmds
20821 # Whether we are building with GNU ld or not.
20822 with_gnu_ld=$lt_with_gnu_ld
20824 # Flag that allows shared libraries with undefined symbols to be built.
20825 allow_undefined_flag=$lt_allow_undefined_flag
20827 # Flag that enforces no undefined symbols.
20828 no_undefined_flag=$lt_no_undefined_flag
20830 # Flag to hardcode \$libdir into a binary during linking.
20831 # This must work even if \$libdir does not exist
20832 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20834 # If ld is used when linking, flag to hardcode \$libdir into a binary
20835 # during linking. This must work even if \$libdir does not exist.
20836 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20838 # Whether we need a single "-rpath" flag with a separated argument.
20839 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20841 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20842 # DIR into the resulting binary.
20843 hardcode_direct=$hardcode_direct
20845 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20846 # DIR into the resulting binary and the resulting library dependency is
20847 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20848 # library is relocated.
20849 hardcode_direct_absolute=$hardcode_direct_absolute
20851 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20852 # into the resulting binary.
20853 hardcode_minus_L=$hardcode_minus_L
20855 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20856 # into the resulting binary.
20857 hardcode_shlibpath_var=$hardcode_shlibpath_var
20859 # Set to "yes" if building a shared library automatically hardcodes DIR
20860 # into the library and all subsequent libraries and executables linked
20862 hardcode_automatic=$hardcode_automatic
20864 # Set to yes if linker adds runtime paths of dependent libraries
20865 # to runtime path list.
20866 inherit_rpath=$inherit_rpath
20868 # Whether libtool must link a program against all its dependency libraries.
20869 link_all_deplibs=$link_all_deplibs
20871 # Set to "yes" if exported symbols are required.
20872 always_export_symbols=$always_export_symbols
20874 # The commands to list exported symbols.
20875 export_symbols_cmds=$lt_export_symbols_cmds
20877 # Symbols that should not be listed in the preloaded symbols.
20878 exclude_expsyms=$lt_exclude_expsyms
20880 # Symbols that must always be exported.
20881 include_expsyms=$lt_include_expsyms
20883 # Commands necessary for linking programs (against libraries) with templates.
20884 prelink_cmds=$lt_prelink_cmds
20886 # Commands necessary for finishing linking programs.
20887 postlink_cmds=$lt_postlink_cmds
20889 # Specify filename containing input files.
20890 file_list_spec=$lt_file_list_spec
20892 # How to hardcode a shared library path into an executable.
20893 hardcode_action=$hardcode_action
20895 # ### END LIBTOOL CONFIG
20901 cat <<\_LT_EOF >> "$cfgfile"
20902 # AIX sometimes has problems with the GCC collect2 program. For some
20903 # reason, if we set the COLLECT_NAMES environment variable, the problems
20904 # vanish in a puff of smoke.
20905 if test "X${COLLECT_NAMES+set}" != Xset; then
20907 export COLLECT_NAMES
20914 ltmain="$ac_aux_dir/ltmain.sh"
20917 # We use sed instead of cat because bash on DJGPP gets confused if
20918 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20919 # text mode, it properly converts lines to CR/LF. This bash problem
20920 # is reportedly fixed, but why not run on old versions too?
20921 sed '$q' "$ltmain" >> "$cfgfile" \
20922 || (rm -f "$cfgfile"; exit 1)
20924 if test x"$xsi_shell" = xyes; then
20925 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20929 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20930 \ * ) func_dirname_result="${3}" ;;\
20932 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20933 && mv -f "$cfgfile.tmp" "$cfgfile" \
20934 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20935 test 0 -eq $? || _lt_function_replace_fail=:
20938 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20941 \ func_basename_result="${1##*/}"\
20942 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20943 && mv -f "$cfgfile.tmp" "$cfgfile" \
20944 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20945 test 0 -eq $? || _lt_function_replace_fail=:
20948 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20949 func_dirname_and_basename ()\
20952 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20953 \ * ) func_dirname_result="${3}" ;;\
20955 \ func_basename_result="${1##*/}"\
20956 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20957 && mv -f "$cfgfile.tmp" "$cfgfile" \
20958 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20959 test 0 -eq $? || _lt_function_replace_fail=:
20962 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20965 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20966 \ # positional parameters, so assign one to ordinary parameter first.\
20967 \ func_stripname_result=${3}\
20968 \ func_stripname_result=${func_stripname_result#"${1}"}\
20969 \ func_stripname_result=${func_stripname_result%"${2}"}\
20970 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20971 && mv -f "$cfgfile.tmp" "$cfgfile" \
20972 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20973 test 0 -eq $? || _lt_function_replace_fail=:
20976 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20977 func_split_long_opt ()\
20979 \ func_split_long_opt_name=${1%%=*}\
20980 \ func_split_long_opt_arg=${1#*=}\
20981 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20982 && mv -f "$cfgfile.tmp" "$cfgfile" \
20983 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20984 test 0 -eq $? || _lt_function_replace_fail=:
20987 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20988 func_split_short_opt ()\
20990 \ func_split_short_opt_arg=${1#??}\
20991 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20992 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20993 && mv -f "$cfgfile.tmp" "$cfgfile" \
20994 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20995 test 0 -eq $? || _lt_function_replace_fail=:
20998 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21002 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21003 \ *) func_lo2o_result=${1} ;;\
21005 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21006 && mv -f "$cfgfile.tmp" "$cfgfile" \
21007 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21008 test 0 -eq $? || _lt_function_replace_fail=:
21011 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21014 func_xform_result=${1%.*}.lo\
21015 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21016 && mv -f "$cfgfile.tmp" "$cfgfile" \
21017 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21018 test 0 -eq $? || _lt_function_replace_fail=:
21021 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21024 func_arith_result=$(( $* ))\
21025 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21026 && mv -f "$cfgfile.tmp" "$cfgfile" \
21027 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21028 test 0 -eq $? || _lt_function_replace_fail=:
21031 sed -e '/^func_len ()$/,/^} # func_len /c\
21034 func_len_result=${#1}\
21035 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21036 && mv -f "$cfgfile.tmp" "$cfgfile" \
21037 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21038 test 0 -eq $? || _lt_function_replace_fail=:
21042 if test x"$lt_shell_append" = xyes; then
21043 sed -e '/^func_append ()$/,/^} # func_append /c\
21046 eval "${1}+=\\${2}"\
21047 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21048 && mv -f "$cfgfile.tmp" "$cfgfile" \
21049 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21050 test 0 -eq $? || _lt_function_replace_fail=:
21053 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21054 func_append_quoted ()\
21056 \ func_quote_for_eval "${2}"\
21057 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21058 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21059 && mv -f "$cfgfile.tmp" "$cfgfile" \
21060 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21061 test 0 -eq $? || _lt_function_replace_fail=:
21064 # Save a `func_append' function call where possible by direct use of '+='
21065 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21066 && mv -f "$cfgfile.tmp" "$cfgfile" \
21067 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21068 test 0 -eq $? || _lt_function_replace_fail=:
21070 # Save a `func_append' function call even when '+=' is not available
21071 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21072 && mv -f "$cfgfile.tmp" "$cfgfile" \
21073 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21074 test 0 -eq $? || _lt_function_replace_fail=:
21077 if test x"$_lt_function_replace_fail" = x":"; then
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21079 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21083 mv -f "$cfgfile" "$ofile" ||
21084 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21095 ac_clean_files=$ac_clean_files_save
21097 test $ac_write_fail = 0 ||
21098 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21101 # configure is writing to config.log, and then calls config.status.
21102 # config.status does its own redirection, appending to config.log.
21103 # Unfortunately, on DOS this fails, as config.log is still kept open
21104 # by configure, so config.status won't be able to write to it; its
21105 # output is simply discarded. So we exec the FD to /dev/null,
21106 # effectively closing config.log, so it can be properly (re)opened and
21107 # appended to by config.status. When coming back to configure, we
21108 # need to make the FD available again.
21109 if test "$no_create" != yes; then
21111 ac_config_status_args=
21112 test "$silent" = yes &&
21113 ac_config_status_args="$ac_config_status_args --quiet"
21115 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21117 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21118 # would make configure fail if this is the last instruction.
21119 $ac_cs_success || as_fn_exit 1
21121 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21123 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}