]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/xserver.git/blob - configure
Updated version to 2:1.11.4-0ubuntu8+ti1.1
[glsdk/xserver.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for xorg-server 1.11.4.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
29 fi
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
152 # CDPATH.
153 $as_unset CDPATH
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
167 as_func_success () {
168   as_func_return 0
170 as_func_failure () {
171   as_func_return 1
173 as_func_ret_success () {
174   return 0
176 as_func_ret_failure () {
177   return 1
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
212 test \$exitcode = 0) || { (exit 1); exit 1; }
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
222     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
223     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
224     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
225     PATH=/empty FPATH=/empty; export PATH FPATH
226     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
227       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" )) || { (exit 1); exit 1; }
228 ") 2> /dev/null; then
229   :
230 else
231   as_candidate_shells=
232     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
233 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
234 do
235   IFS=$as_save_IFS
236   test -z "$as_dir" && as_dir=.
237   case $as_dir in
238          /*)
239            for as_base in sh bash ksh sh5; do
240              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
241            done;;
242        esac
243 done
244 IFS=$as_save_IFS
247       for as_shell in $as_candidate_shells $SHELL; do
248          # Try only shells that exist, to save several forks.
249          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
250                 { ("$as_shell") 2> /dev/null <<\_ASEOF
251 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
252   emulate sh
253   NULLCMD=:
254   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
255   # is contrary to our usage.  Disable this feature.
256   alias -g '${1+"$@"}'='"$@"'
257   setopt NO_GLOB_SUBST
258 else
259   case `(set -o) 2>/dev/null` in
260   *posix*) set -o posix ;;
261 esac
263 fi
267 _ASEOF
268 }; then
269   CONFIG_SHELL=$as_shell
270                as_have_required=yes
271                if { "$as_shell" 2> /dev/null <<\_ASEOF
272 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
273   emulate sh
274   NULLCMD=:
275   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
276   # is contrary to our usage.  Disable this feature.
277   alias -g '${1+"$@"}'='"$@"'
278   setopt NO_GLOB_SUBST
279 else
280   case `(set -o) 2>/dev/null` in
281   *posix*) set -o posix ;;
282 esac
284 fi
288 (as_func_return () {
289   (exit $1)
291 as_func_success () {
292   as_func_return 0
294 as_func_failure () {
295   as_func_return 1
297 as_func_ret_success () {
298   return 0
300 as_func_ret_failure () {
301   return 1
304 exitcode=0
305 if as_func_success; then
306   :
307 else
308   exitcode=1
309   echo as_func_success failed.
310 fi
312 if as_func_failure; then
313   exitcode=1
314   echo as_func_failure succeeded.
315 fi
317 if as_func_ret_success; then
318   :
319 else
320   exitcode=1
321   echo as_func_ret_success failed.
322 fi
324 if as_func_ret_failure; then
325   exitcode=1
326   echo as_func_ret_failure succeeded.
327 fi
329 if ( set x; as_func_ret_success y && test x = "$1" ); then
330   :
331 else
332   exitcode=1
333   echo positional parameters were not saved.
334 fi
336 test $exitcode = 0) || { (exit 1); exit 1; }
339   as_lineno_1=$LINENO
340   as_lineno_2=$LINENO
341   test "x$as_lineno_1" != "x$as_lineno_2" &&
342   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
345   test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
346     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
347     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
348     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
349     PATH=/empty FPATH=/empty; export PATH FPATH
350     test "X`printf %s $ECHO`" = "X$ECHO" \
351       || test "X`print -r -- $ECHO`" = "X$ECHO" )) || { (exit 1); exit 1; }
353 _ASEOF
354 }; then
355   break
356 fi
358 fi
360       done
362       if test "x$CONFIG_SHELL" != x; then
363   for as_var in BASH_ENV ENV
364         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
365         done
366         export CONFIG_SHELL
367         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
368 fi
371     if test $as_have_required = no; then
372   echo This script requires a shell more modern than all the
373       echo shells that I found on your system.  Please install a
374       echo modern shell, or manually run the script under such a
375       echo shell if you do have one.
376       { (exit 1); exit 1; }
377 fi
380 fi
382 fi
386 (eval "as_func_return () {
387   (exit \$1)
389 as_func_success () {
390   as_func_return 0
392 as_func_failure () {
393   as_func_return 1
395 as_func_ret_success () {
396   return 0
398 as_func_ret_failure () {
399   return 1
402 exitcode=0
403 if as_func_success; then
404   :
405 else
406   exitcode=1
407   echo as_func_success failed.
408 fi
410 if as_func_failure; then
411   exitcode=1
412   echo as_func_failure succeeded.
413 fi
415 if as_func_ret_success; then
416   :
417 else
418   exitcode=1
419   echo as_func_ret_success failed.
420 fi
422 if as_func_ret_failure; then
423   exitcode=1
424   echo as_func_ret_failure succeeded.
425 fi
427 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428   :
429 else
430   exitcode=1
431   echo positional parameters were not saved.
432 fi
434 test \$exitcode = 0") || {
435   echo No shell found that supports shell functions.
436   echo Please tell autoconf@gnu.org about your system,
437   echo including any error possibly output before this
438   echo message
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
503 if expr a : '\(a\)' >/dev/null 2>&1 &&
504    test "X`expr 00001 : '.*\(...\)'`" = X001; then
505   as_expr=expr
506 else
507   as_expr=false
508 fi
510 rm -f conf$$ conf$$.exe conf$$.file
511 if test -d conf$$.dir; then
512   rm -f conf$$.dir/conf$$.file
513 else
514   rm -f conf$$.dir
515   mkdir conf$$.dir
516 fi
517 echo >conf$$.file
518 if ln -s conf$$.file conf$$ 2>/dev/null; then
519   as_ln_s='ln -s'
520   # ... but there are two gotchas:
521   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
522   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
523   # In both cases, we have to default to `cp -p'.
524   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525     as_ln_s='cp -p'
526 elif ln conf$$.file conf$$ 2>/dev/null; then
527   as_ln_s=ln
528 else
529   as_ln_s='cp -p'
530 fi
531 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
532 rmdir conf$$.dir 2>/dev/null
534 if mkdir -p . 2>/dev/null; then
535   as_mkdir_p=:
536 else
537   test -d ./-p && rmdir ./-p
538   as_mkdir_p=false
539 fi
541 if test -x / >/dev/null 2>&1; then
542   as_test_x='test -x'
543 else
544   if ls -dL / >/dev/null 2>&1; then
545     as_ls_L_option=L
546   else
547     as_ls_L_option=
548   fi
549   as_test_x='
550     eval sh -c '\''
551       if test -d "$1"; then
552         test -d "$1/.";
553       else
554         case $1 in
555         -*)set "./$1";;
556         esac;
557         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
558         ???[sx]*):;;*)false;;esac;fi
559     '\'' sh
560   '
561 fi
562 as_executable_p=$as_test_x
564 # Sed expression to map a string onto a valid CPP name.
565 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
567 # Sed expression to map a string onto a valid variable name.
568 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571 as_awk_strverscmp='
572   # Use only awk features that work with 7th edition Unix awk (1978).
573   # My, what an old awk you have, Mr. Solaris!
574   END {
575     while (length(v1) && length(v2)) {
576       # Set d1 to be the next thing to compare from v1, and likewise for d2.
577       # Normally this is a single character, but if v1 and v2 contain digits,
578       # compare them as integers and fractions as strverscmp does.
579       if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
580         # Split v1 and v2 into their leading digit string components d1 and d2,
581         # and advance v1 and v2 past the leading digit strings.
582         for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
583         for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
584         d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
585         d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
586         if (d1 ~ /^0/) {
587           if (d2 ~ /^0/) {
588             # Compare two fractions.
589             while (d1 ~ /^0/ && d2 ~ /^0/) {
590               d1 = substr(d1, 2); len1--
591               d2 = substr(d2, 2); len2--
592             }
593             if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
594               # The two components differ in length, and the common prefix
595               # contains only leading zeros.  Consider the longer to be less.
596               d1 = -len1
597               d2 = -len2
598             } else {
599               # Otherwise, compare as strings.
600               d1 = "x" d1
601               d2 = "x" d2
602             }
603           } else {
604             # A fraction is less than an integer.
605             exit 1
606           }
607         } else {
608           if (d2 ~ /^0/) {
609             # An integer is greater than a fraction.
610             exit 2
611           } else {
612             # Compare two integers.
613             d1 += 0
614             d2 += 0
615           }
616         }
617       } else {
618         # The normal case, without worrying about digits.
619         d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
620         d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
621       }
622       if (d1 < d2) exit 1
623       if (d1 > d2) exit 2
624     }
625     # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
626     # which mishandles some comparisons of empty strings to integers.
627     if (length(v2)) exit 1
628     if (length(v1)) exit 2
629   }
631 SHELL=${CONFIG_SHELL-/bin/sh}
634 exec 7<&0 </dev/null 6>&1
636 # Name of the host.
637 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
638 # so uname gets run too.
639 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
642 # Initializations.
644 ac_default_prefix=/usr/local
645 ac_clean_files=
646 ac_config_libobj_dir=.
647 LIBOBJS=
648 cross_compiling=no
649 subdirs=
650 MFLAGS=
651 MAKEFLAGS=
652 SHELL=${CONFIG_SHELL-/bin/sh}
654 # Identity of this package.
655 PACKAGE_NAME='xorg-server'
656 PACKAGE_TARNAME='xorg-server'
657 PACKAGE_VERSION='1.11.4'
658 PACKAGE_STRING='xorg-server 1.11.4'
659 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
661 ac_unique_file="Makefile.am"
662 # Factoring default headers for most tests.
663 ac_includes_default="\
664 #include <stdio.h>
665 #ifdef HAVE_SYS_TYPES_H
666 # include <sys/types.h>
667 #endif
668 #ifdef HAVE_SYS_STAT_H
669 # include <sys/stat.h>
670 #endif
671 #ifdef STDC_HEADERS
672 # include <stdlib.h>
673 # include <stddef.h>
674 #else
675 # ifdef HAVE_STDLIB_H
676 #  include <stdlib.h>
677 # endif
678 #endif
679 #ifdef HAVE_STRING_H
680 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
681 #  include <memory.h>
682 # endif
683 # include <string.h>
684 #endif
685 #ifdef HAVE_STRINGS_H
686 # include <strings.h>
687 #endif
688 #ifdef HAVE_INTTYPES_H
689 # include <inttypes.h>
690 #endif
691 #ifdef HAVE_STDINT_H
692 # include <stdint.h>
693 #endif
694 #ifdef HAVE_UNISTD_H
695 # include <unistd.h>
696 #endif"
698 ac_subst_vars='SHELL
699 PATH_SEPARATOR
700 PACKAGE_NAME
701 PACKAGE_TARNAME
702 PACKAGE_VERSION
703 PACKAGE_STRING
704 PACKAGE_BUGREPORT
705 exec_prefix
706 prefix
707 program_transform_name
708 bindir
709 sbindir
710 libexecdir
711 datarootdir
712 datadir
713 sysconfdir
714 sharedstatedir
715 localstatedir
716 includedir
717 oldincludedir
718 docdir
719 infodir
720 htmldir
721 dvidir
722 pdfdir
723 psdir
724 libdir
725 localedir
726 mandir
727 DEFS
728 ECHO_C
729 ECHO_N
730 ECHO_T
731 LIBS
732 build_alias
733 host_alias
734 target_alias
735 INSTALL_PROGRAM
736 INSTALL_SCRIPT
737 INSTALL_DATA
738 am__isrc
739 CYGPATH_W
740 PACKAGE
741 VERSION
742 ACLOCAL
743 AUTOCONF
744 AUTOMAKE
745 AUTOHEADER
746 MAKEINFO
747 install_sh
748 STRIP
749 INSTALL_STRIP_PROGRAM
750 mkdir_p
751 AWK
752 SET_MAKE
753 am__leading_dot
754 AMTAR
755 am__tar
756 am__untar
757 MAINTAINER_MODE_TRUE
758 MAINTAINER_MODE_FALSE
759 MAINT
760 CC
761 CFLAGS
762 LDFLAGS
763 CPPFLAGS
764 ac_ct_CC
765 EXEEXT
766 OBJEXT
767 DEPDIR
768 am__include
769 am__quote
770 AMDEP_TRUE
771 AMDEP_FALSE
772 AMDEPBACKSLASH
773 CCDEPMODE
774 am__fastdepCC_TRUE
775 am__fastdepCC_FALSE
776 CPP
777 GREP
778 EGREP
779 BASE_CFLAGS
780 CWARNFLAGS
781 STRICT_CFLAGS
782 CHANGELOG_CMD
783 PKG_CONFIG
784 PKG_CONFIG_PATH
785 PKG_CONFIG_LIBDIR
786 INSTALL_CMD
787 build
788 build_cpu
789 build_vendor
790 build_os
791 host
792 host_cpu
793 host_vendor
794 host_os
795 SED
796 APP_MAN_SUFFIX
797 LIB_MAN_SUFFIX
798 FILE_MAN_SUFFIX
799 MISC_MAN_SUFFIX
800 DRIVER_MAN_SUFFIX
801 ADMIN_MAN_SUFFIX
802 APP_MAN_DIR
803 LIB_MAN_DIR
804 FILE_MAN_DIR
805 MISC_MAN_DIR
806 DRIVER_MAN_DIR
807 ADMIN_MAN_DIR
808 XORG_MAN_PAGE
809 MAN_SUBSTS
810 AM_DEFAULT_VERBOSITY
811 DOXYGEN
812 HAVE_DOXYGEN_TRUE
813 HAVE_DOXYGEN_FALSE
814 XORG_SGML_PATH
815 STYLESHEET_SRCDIR
816 XSL_STYLESHEET
817 HAVE_STYLESHEETS_TRUE
818 HAVE_STYLESHEETS_FALSE
819 ENABLE_DOCS_TRUE
820 ENABLE_DOCS_FALSE
821 ENABLE_DEVEL_DOCS_TRUE
822 ENABLE_DEVEL_DOCS_FALSE
823 XMLTO
824 HAVE_XMLTO_TEXT_TRUE
825 HAVE_XMLTO_TEXT_FALSE
826 HAVE_XMLTO_TRUE
827 HAVE_XMLTO_FALSE
828 FOP
829 HAVE_FOP_TRUE
830 HAVE_FOP_FALSE
831 XSLTPROC
832 HAVE_XSLTPROC_TRUE
833 HAVE_XSLTPROC_FALSE
834 XORG_MALLOC_DEBUG_ENV
835 ENABLE_UNIT_TESTS_TRUE
836 ENABLE_UNIT_TESTS_FALSE
837 HAVE_LD_WRAP_TRUE
838 HAVE_LD_WRAP_FALSE
839 CCAS
840 CCASFLAGS
841 CCASDEPMODE
842 am__fastdepCCAS_TRUE
843 am__fastdepCCAS_FALSE
844 LN_S
845 AS
846 DLLTOOL
847 OBJDUMP
848 LIBTOOL
849 FGREP
850 LD
851 DUMPBIN
852 ac_ct_DUMPBIN
853 NM
854 AR
855 RANLIB
856 DSYMUTIL
857 NMEDIT
858 LIPO
859 OTOOL
860 OTOOL64
861 LEX
862 LEX_OUTPUT_ROOT
863 LEXLIB
864 YACC
865 YFLAGS
866 RAWCPP
867 RAWCPPFLAGS
868 DTRACE
869 XSERVER_DTRACE_TRUE
870 XSERVER_DTRACE_FALSE
871 SPECIAL_DTRACE_OBJECTS_TRUE
872 SPECIAL_DTRACE_OBJECTS_FALSE
873 DLOPEN_LIBS
874 ALLOCA
875 NEED_STRLCAT_TRUE
876 NEED_STRLCAT_FALSE
877 NEED_VSNPRINTF_TRUE
878 NEED_VSNPRINTF_FALSE
879 AGP_TRUE
880 AGP_FALSE
881 LNXAPM_TRUE
882 LNXAPM_FALSE
883 FBDEVHW_TRUE
884 FBDEVHW_FALSE
885 FREEBSD_KLDLOAD_TRUE
886 FREEBSD_KLDLOAD_FALSE
887 BSD_APM_TRUE
888 BSD_APM_FALSE
889 BSD_KQUEUE_APM_TRUE
890 BSD_KQUEUE_APM_FALSE
891 GLX_ARCH_DEFINES
892 ALPHA_VIDEO_TRUE
893 ALPHA_VIDEO_FALSE
894 ARM_VIDEO_TRUE
895 ARM_VIDEO_FALSE
896 I386_VIDEO_TRUE
897 I386_VIDEO_FALSE
898 PPC_VIDEO_TRUE
899 PPC_VIDEO_FALSE
900 SPARC64_VIDEO_TRUE
901 SPARC64_VIDEO_FALSE
902 FONTROOTDIR
903 FONTMISCDIR
904 FONTOTFDIR
905 FONTTTFDIR
906 FONTTYPE1DIR
907 FONT75DPIDIR
908 FONT100DPIDIR
909 APPLE_APPLICATIONS_DIR
910 APPLE_APPLICATION_NAME
911 BUNDLE_ID_PREFIX
912 XQUARTZ_SPARKLE
913 GLX_TLS
914 INSTALL_SETUID_TRUE
915 INSTALL_SETUID_FALSE
916 SECURE_RPC_TRUE
917 SECURE_RPC_FALSE
918 INT10_VM86_TRUE
919 INT10_VM86_FALSE
920 INT10_X86EMU_TRUE
921 INT10_X86EMU_FALSE
922 INT10_STUB_TRUE
923 INT10_STUB_FALSE
924 INSTALL_LIBXF86CONFIG_TRUE
925 INSTALL_LIBXF86CONFIG_FALSE
926 SDK_REQUIRED_MODULES
927 PIXMAN_CFLAGS
928 PIXMAN_LIBS
929 UDEV_CFLAGS
930 UDEV_LIBS
931 CONFIG_UDEV_TRUE
932 CONFIG_UDEV_FALSE
933 DBUS_CFLAGS
934 DBUS_LIBS
935 HAVE_DBUS_TRUE
936 HAVE_DBUS_FALSE
937 CONFIG_DBUS_API_TRUE
938 CONFIG_DBUS_API_FALSE
939 HAL_CFLAGS
940 HAL_LIBS
941 CONFIG_HAL_TRUE
942 CONFIG_HAL_FALSE
943 CONFIG_NEED_DBUS_TRUE
944 CONFIG_NEED_DBUS_FALSE
945 XV_TRUE
946 XV_FALSE
947 XVMC_TRUE
948 XVMC_FALSE
949 XREGISTRY_TRUE
950 XREGISTRY_FALSE
951 COMPOSITE_TRUE
952 COMPOSITE_FALSE
953 MITSHM_TRUE
954 MITSHM_FALSE
955 RECORD_TRUE
956 RECORD_FALSE
957 SCREENSAVER_TRUE
958 SCREENSAVER_FALSE
959 RES_TRUE
960 RES_FALSE
961 CLIENTIDS_TRUE
962 CLIENTIDS_FALSE
963 XLIB_CFLAGS
964 XLIB_LIBS
965 GL_CFLAGS
966 GL_LIBS
967 GLX_TRUE
968 GLX_FALSE
969 AIGLX_DRI_LOADER_TRUE
970 AIGLX_DRI_LOADER_FALSE
971 GLX_DEFINES
972 DRI_TRUE
973 DRI_FALSE
974 DRIPROTO_CFLAGS
975 DRIPROTO_LIBS
976 DRI_CFLAGS
977 DRI_LIBS
978 DRI2PROTO_CFLAGS
979 DRI2PROTO_LIBS
980 DRI2_TRUE
981 DRI2_FALSE
982 LIBDRM_CFLAGS
983 LIBDRM_LIBS
984 DRI2_AIGLX_TRUE
985 DRI2_AIGLX_FALSE
986 XINERAMA_TRUE
987 XINERAMA_FALSE
988 XACE_TRUE
989 XACE_FALSE
990 XSELINUX_TRUE
991 XSELINUX_FALSE
992 SELINUX_CFLAGS
993 SELINUX_LIBS
994 XCSECURITY_TRUE
995 XCSECURITY_FALSE
996 DBE_TRUE
997 DBE_FALSE
998 XF86BIGFONT_TRUE
999 XF86BIGFONT_FALSE
1000 DPMSExtension_TRUE
1001 DPMSExtension_FALSE
1002 XF86UTILS_TRUE
1003 XF86UTILS_FALSE
1004 XAA_TRUE
1005 XAA_FALSE
1006 VGAHW_TRUE
1007 VGAHW_FALSE
1008 VBE_TRUE
1009 VBE_FALSE
1010 INT10MODULE_TRUE
1011 INT10MODULE_FALSE
1012 XKB_BASE_DIRECTORY
1013 XKB_BIN_DIRECTORY
1014 XKM_OUTPUT_DIR
1015 XKB_COMPILED_DIR
1016 XKB_DFLT_RULES
1017 XKB_DFLT_MODEL
1018 XKB_DFLT_LAYOUT
1019 XKB_DFLT_VARIANT
1020 XKB_DFLT_OPTIONS
1021 XDMCP_CFLAGS
1022 XDMCP_LIBS
1023 XDMCP_TRUE
1024 XDMCP_FALSE
1025 XDMAUTH_TRUE
1026 XDMAUTH_FALSE
1027 COMPILEDDEFAULTFONTPATH
1028 PCI_TXT_IDS_PATH
1029 SERVER_MISC_CONFIG_PATH
1030 BASE_FONT_PATH
1031 DRI_DRIVER_PATH
1032 VENDOR_NAME_SHORT
1033 DEBUG_TRUE
1034 DEBUG_FALSE
1035 DIX_LIB
1036 OS_LIB
1037 MAIN_LIB
1038 LIBSHA1_CFLAGS
1039 LIBSHA1_LIBS
1040 OPENSSL_CFLAGS
1041 OPENSSL_LIBS
1042 SHA1_LIBS
1043 SHA1_CFLAGS
1044 XSERVERCFLAGS_CFLAGS
1045 XSERVERCFLAGS_LIBS
1046 XSERVERLIBS_CFLAGS
1047 XSERVERLIBS_LIBS
1048 XSERVER_LIBS
1049 XSERVER_SYS_LIBS
1050 UTILS_SYS_LIBS
1051 LD_EXPORT_SYMBOLS_FLAG
1052 XVFB_TRUE
1053 XVFB_FALSE
1054 XVFB_LIBS
1055 XVFB_SYS_LIBS
1056 XNESTMODULES_CFLAGS
1057 XNESTMODULES_LIBS
1058 XNEST_TRUE
1059 XNEST_FALSE
1060 XNEST_LIBS
1061 XNEST_SYS_LIBS
1062 symbol_visibility
1063 PCIACCESS_CFLAGS
1064 PCIACCESS_LIBS
1065 SOLARIS_INOUT_ARCH
1066 SOLARIS_ASM_CFLAGS
1067 DGA_CFLAGS
1068 DGA_LIBS
1069 XF86VIDMODE_CFLAGS
1070 XF86VIDMODE_LIBS
1071 XORG_MODULES_CFLAGS
1072 XORG_MODULES_LIBS
1073 XORG_LIBS
1074 XORG_SYS_LIBS
1075 XORG_INCS
1076 XORG_OS
1077 XORG_OS_SUBDIR
1078 XORG_CFLAGS
1079 XF86CONFIGDIR
1080 __XCONFIGFILE__
1081 XF86CONFIGFILE
1082 __XCONFIGDIR__
1083 DEFAULT_MODULE_PATH
1084 DEFAULT_LIBRARY_PATH
1085 DEFAULT_LOGPREFIX
1086 moduledir
1087 driverdir
1088 sdkdir
1089 extdir
1090 sysconfigdir
1091 logdir
1092 abi_ansic
1093 abi_videodrv
1094 abi_xinput
1095 abi_extension
1096 XORG_TRUE
1097 XORG_FALSE
1098 XORG_BUS_LINUXPCI_TRUE
1099 XORG_BUS_LINUXPCI_FALSE
1100 XORG_BUS_BSDPCI_TRUE
1101 XORG_BUS_BSDPCI_FALSE
1102 XORG_BUS_SPARC_TRUE
1103 XORG_BUS_SPARC_FALSE
1104 LINUX_IA64_TRUE
1105 LINUX_IA64_FALSE
1106 LINUX_ALPHA_TRUE
1107 LINUX_ALPHA_FALSE
1108 LNXACPI_TRUE
1109 LNXACPI_FALSE
1110 SOLARIS_ASM_INLINE_TRUE
1111 SOLARIS_ASM_INLINE_FALSE
1112 SOLARIS_VT_TRUE
1113 SOLARIS_VT_FALSE
1114 DGA_TRUE
1115 DGA_FALSE
1116 XF86VIDMODE_TRUE
1117 XF86VIDMODE_FALSE
1118 SYSCONFDIR
1119 DEFAULT_LOGDIR
1120 WINDRES
1121 XWINMODULES_CFLAGS
1122 XWINMODULES_LIBS
1123 WINDOWSWM_CFLAGS
1124 WINDOWSWM_LIBS
1125 XWIN_LIBS
1126 XWIN_SERVER_NAME
1127 XWIN_SYS_LIBS
1128 KHRONOS_OPENGL_REGISTRY_CFLAGS
1129 KHRONOS_OPENGL_REGISTRY_LIBS
1130 KHRONOS_SPEC_DIR
1131 XWIN_TRUE
1132 XWIN_FALSE
1133 XWIN_MULTIWINDOW_TRUE
1134 XWIN_MULTIWINDOW_FALSE
1135 XWIN_MULTIWINDOWEXTWM_TRUE
1136 XWIN_MULTIWINDOWEXTWM_FALSE
1137 XWIN_CLIPBOARD_TRUE
1138 XWIN_CLIPBOARD_FALSE
1139 XWIN_GLX_WINDOWS_TRUE
1140 XWIN_GLX_WINDOWS_FALSE
1141 XWIN_NATIVEGDI_TRUE
1142 XWIN_NATIVEGDI_FALSE
1143 XWIN_PRIMARYFB_TRUE
1144 XWIN_PRIMARYFB_FALSE
1145 XWIN_RANDR_TRUE
1146 XWIN_RANDR_FALSE
1147 XWIN_XV_TRUE
1148 XWIN_XV_FALSE
1149 XQUARTZ_LIBS
1150 XPBPROXY_CFLAGS
1151 XPBPROXY_LIBS
1152 OBJC
1153 OBJCCLD
1154 OBJCLINK
1155 OBJCFLAGS
1156 OBJCDEPMODE
1157 am__fastdepOBJC_TRUE
1158 am__fastdepOBJC_FALSE
1159 XQUARTZ_TRUE
1160 XQUARTZ_FALSE
1161 XQUARTZ_SPARKLE_TRUE
1162 XQUARTZ_SPARKLE_FALSE
1163 STANDALONE_XPBPROXY_TRUE
1164 STANDALONE_XPBPROXY_FALSE
1165 DMXMODULES_CFLAGS
1166 DMXMODULES_LIBS
1167 XDMXCONFIG_DEP_CFLAGS
1168 XDMXCONFIG_DEP_LIBS
1169 DMX_TRUE
1170 DMX_FALSE
1171 XDMX_CFLAGS
1172 XDMX_LIBS
1173 XDMX_SYS_LIBS
1174 DMXEXAMPLES_DEP_CFLAGS
1175 DMXEXAMPLES_DEP_LIBS
1176 DMXXMUEXAMPLES_DEP_CFLAGS
1177 DMXXMUEXAMPLES_DEP_LIBS
1178 DMXXIEXAMPLES_DEP_CFLAGS
1179 DMXXIEXAMPLES_DEP_LIBS
1180 XTSTEXAMPLES_DEP_CFLAGS
1181 XTSTEXAMPLES_DEP_LIBS
1182 XRESEXAMPLES_DEP_CFLAGS
1183 XRESEXAMPLES_DEP_LIBS
1184 X11EXAMPLES_DEP_CFLAGS
1185 X11EXAMPLES_DEP_LIBS
1186 DMX_BUILD_LNX_TRUE
1187 DMX_BUILD_LNX_FALSE
1188 DMX_BUILD_USB_TRUE
1189 DMX_BUILD_USB_FALSE
1190 KDRIVE_TRUE
1191 KDRIVE_FALSE
1192 TSLIB_CFLAGS
1193 TSLIB_LIBS
1194 XEPHYR_CFLAGS
1195 XEPHYR_LIBS
1196 XEPHYR_INCS
1197 KDRIVE_INCS
1198 KDRIVE_PURE_INCS
1199 KDRIVE_CFLAGS
1200 KDRIVE_PURE_LIBS
1201 KDRIVE_LOCAL_LIBS
1202 KDRIVE_LIBS
1203 KDRIVELINUX_TRUE
1204 KDRIVELINUX_FALSE
1205 KDRIVE_EVDEV_TRUE
1206 KDRIVE_EVDEV_FALSE
1207 KDRIVE_KBD_TRUE
1208 KDRIVE_KBD_FALSE
1209 KDRIVE_MOUSE_TRUE
1210 KDRIVE_MOUSE_FALSE
1211 TSLIB_TRUE
1212 TSLIB_FALSE
1213 KDRIVEFBDEV_TRUE
1214 KDRIVEFBDEV_FALSE
1215 XEPHYR_TRUE
1216 XEPHYR_FALSE
1217 BUILD_KDRIVEFBDEVLIB_TRUE
1218 BUILD_KDRIVEFBDEVLIB_FALSE
1219 XFAKESERVER_TRUE
1220 XFAKESERVER_FALSE
1221 PROJECTROOT
1222 RELEASE_DATE
1223 BUILD_DATE
1224 BUILD_TIME
1225 DIX_CFLAGS
1226 LIBOBJS
1227 LTLIBOBJS'
1228 ac_subst_files=''
1229       ac_precious_vars='build_alias
1230 host_alias
1231 target_alias
1232 CC
1233 CFLAGS
1234 LDFLAGS
1235 LIBS
1236 CPPFLAGS
1237 CPP
1238 PKG_CONFIG
1239 PKG_CONFIG_PATH
1240 PKG_CONFIG_LIBDIR
1241 DOXYGEN
1242 XMLTO
1243 FOP
1244 XSLTPROC
1245 XORG_MALLOC_DEBUG_ENV
1246 CCAS
1247 CCASFLAGS
1248 YACC
1249 YFLAGS
1250 PIXMAN_CFLAGS
1251 PIXMAN_LIBS
1252 UDEV_CFLAGS
1253 UDEV_LIBS
1254 DBUS_CFLAGS
1255 DBUS_LIBS
1256 HAL_CFLAGS
1257 HAL_LIBS
1258 XLIB_CFLAGS
1259 XLIB_LIBS
1260 GL_CFLAGS
1261 GL_LIBS
1262 DRIPROTO_CFLAGS
1263 DRIPROTO_LIBS
1264 DRI_CFLAGS
1265 DRI_LIBS
1266 DRI2PROTO_CFLAGS
1267 DRI2PROTO_LIBS
1268 LIBDRM_CFLAGS
1269 LIBDRM_LIBS
1270 SELINUX_CFLAGS
1271 SELINUX_LIBS
1272 XDMCP_CFLAGS
1273 XDMCP_LIBS
1274 LIBSHA1_CFLAGS
1275 LIBSHA1_LIBS
1276 OPENSSL_CFLAGS
1277 OPENSSL_LIBS
1278 XSERVERCFLAGS_CFLAGS
1279 XSERVERCFLAGS_LIBS
1280 XSERVERLIBS_CFLAGS
1281 XSERVERLIBS_LIBS
1282 XNESTMODULES_CFLAGS
1283 XNESTMODULES_LIBS
1284 PCIACCESS_CFLAGS
1285 PCIACCESS_LIBS
1286 DGA_CFLAGS
1287 DGA_LIBS
1288 XF86VIDMODE_CFLAGS
1289 XF86VIDMODE_LIBS
1290 XORG_MODULES_CFLAGS
1291 XORG_MODULES_LIBS
1292 XWINMODULES_CFLAGS
1293 XWINMODULES_LIBS
1294 WINDOWSWM_CFLAGS
1295 WINDOWSWM_LIBS
1296 KHRONOS_OPENGL_REGISTRY_CFLAGS
1297 KHRONOS_OPENGL_REGISTRY_LIBS
1298 XPBPROXY_CFLAGS
1299 XPBPROXY_LIBS
1300 DMXMODULES_CFLAGS
1301 DMXMODULES_LIBS
1302 XDMXCONFIG_DEP_CFLAGS
1303 XDMXCONFIG_DEP_LIBS
1304 DMXEXAMPLES_DEP_CFLAGS
1305 DMXEXAMPLES_DEP_LIBS
1306 DMXXMUEXAMPLES_DEP_CFLAGS
1307 DMXXMUEXAMPLES_DEP_LIBS
1308 DMXXIEXAMPLES_DEP_CFLAGS
1309 DMXXIEXAMPLES_DEP_LIBS
1310 XTSTEXAMPLES_DEP_CFLAGS
1311 XTSTEXAMPLES_DEP_LIBS
1312 XRESEXAMPLES_DEP_CFLAGS
1313 XRESEXAMPLES_DEP_LIBS
1314 X11EXAMPLES_DEP_CFLAGS
1315 X11EXAMPLES_DEP_LIBS
1316 TSLIB_CFLAGS
1317 TSLIB_LIBS
1318 XEPHYR_CFLAGS
1319 XEPHYR_LIBS'
1322 # Initialize some variables set by options.
1323 ac_init_help=
1324 ac_init_version=false
1325 # The variables have the same names as the options, with
1326 # dashes changed to underlines.
1327 cache_file=/dev/null
1328 exec_prefix=NONE
1329 no_create=
1330 no_recursion=
1331 prefix=NONE
1332 program_prefix=NONE
1333 program_suffix=NONE
1334 program_transform_name=s,x,x,
1335 silent=
1336 site=
1337 srcdir=
1338 verbose=
1339 x_includes=NONE
1340 x_libraries=NONE
1342 # Installation directory options.
1343 # These are left unexpanded so users can "make install exec_prefix=/foo"
1344 # and all the variables that are supposed to be based on exec_prefix
1345 # by default will actually change.
1346 # Use braces instead of parens because sh, perl, etc. also accept them.
1347 # (The list follows the same order as the GNU Coding Standards.)
1348 bindir='${exec_prefix}/bin'
1349 sbindir='${exec_prefix}/sbin'
1350 libexecdir='${exec_prefix}/libexec'
1351 datarootdir='${prefix}/share'
1352 datadir='${datarootdir}'
1353 sysconfdir='${prefix}/etc'
1354 sharedstatedir='${prefix}/com'
1355 localstatedir='${prefix}/var'
1356 includedir='${prefix}/include'
1357 oldincludedir='/usr/include'
1358 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1359 infodir='${datarootdir}/info'
1360 htmldir='${docdir}'
1361 dvidir='${docdir}'
1362 pdfdir='${docdir}'
1363 psdir='${docdir}'
1364 libdir='${exec_prefix}/lib'
1365 localedir='${datarootdir}/locale'
1366 mandir='${datarootdir}/man'
1368 ac_prev=
1369 ac_dashdash=
1370 for ac_option
1371 do
1372   # If the previous option needs an argument, assign it.
1373   if test -n "$ac_prev"; then
1374     eval $ac_prev=\$ac_option
1375     ac_prev=
1376     continue
1377   fi
1379   case $ac_option in
1380   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1381   *)    ac_optarg=yes ;;
1382   esac
1384   # Accept the important Cygnus configure options, so we can diagnose typos.
1386   case $ac_dashdash$ac_option in
1387   --)
1388     ac_dashdash=yes ;;
1390   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1391     ac_prev=bindir ;;
1392   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1393     bindir=$ac_optarg ;;
1395   -build | --build | --buil | --bui | --bu)
1396     ac_prev=build_alias ;;
1397   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1398     build_alias=$ac_optarg ;;
1400   -cache-file | --cache-file | --cache-fil | --cache-fi \
1401   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1402     ac_prev=cache_file ;;
1403   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1404   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1405     cache_file=$ac_optarg ;;
1407   --config-cache | -C)
1408     cache_file=config.cache ;;
1410   -datadir | --datadir | --datadi | --datad)
1411     ac_prev=datadir ;;
1412   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1413     datadir=$ac_optarg ;;
1415   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1416   | --dataroo | --dataro | --datar)
1417     ac_prev=datarootdir ;;
1418   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1419   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1420     datarootdir=$ac_optarg ;;
1422   -disable-* | --disable-*)
1423     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1424     # Reject names that are not valid shell variable names.
1425     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1426       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1427    { (exit 1); exit 1; }; }
1428     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1429     eval enable_$ac_feature=no ;;
1431   -docdir | --docdir | --docdi | --doc | --do)
1432     ac_prev=docdir ;;
1433   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1434     docdir=$ac_optarg ;;
1436   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1437     ac_prev=dvidir ;;
1438   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1439     dvidir=$ac_optarg ;;
1441   -enable-* | --enable-*)
1442     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1443     # Reject names that are not valid shell variable names.
1444     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1445       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1446    { (exit 1); exit 1; }; }
1447     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1448     eval enable_$ac_feature=\$ac_optarg ;;
1450   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1451   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1452   | --exec | --exe | --ex)
1453     ac_prev=exec_prefix ;;
1454   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1455   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1456   | --exec=* | --exe=* | --ex=*)
1457     exec_prefix=$ac_optarg ;;
1459   -gas | --gas | --ga | --g)
1460     # Obsolete; use --with-gas.
1461     with_gas=yes ;;
1463   -help | --help | --hel | --he | -h)
1464     ac_init_help=long ;;
1465   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1466     ac_init_help=recursive ;;
1467   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1468     ac_init_help=short ;;
1470   -host | --host | --hos | --ho)
1471     ac_prev=host_alias ;;
1472   -host=* | --host=* | --hos=* | --ho=*)
1473     host_alias=$ac_optarg ;;
1475   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1476     ac_prev=htmldir ;;
1477   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1478   | --ht=*)
1479     htmldir=$ac_optarg ;;
1481   -includedir | --includedir | --includedi | --included | --include \
1482   | --includ | --inclu | --incl | --inc)
1483     ac_prev=includedir ;;
1484   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1485   | --includ=* | --inclu=* | --incl=* | --inc=*)
1486     includedir=$ac_optarg ;;
1488   -infodir | --infodir | --infodi | --infod | --info | --inf)
1489     ac_prev=infodir ;;
1490   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1491     infodir=$ac_optarg ;;
1493   -libdir | --libdir | --libdi | --libd)
1494     ac_prev=libdir ;;
1495   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1496     libdir=$ac_optarg ;;
1498   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1499   | --libexe | --libex | --libe)
1500     ac_prev=libexecdir ;;
1501   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1502   | --libexe=* | --libex=* | --libe=*)
1503     libexecdir=$ac_optarg ;;
1505   -localedir | --localedir | --localedi | --localed | --locale)
1506     ac_prev=localedir ;;
1507   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1508     localedir=$ac_optarg ;;
1510   -localstatedir | --localstatedir | --localstatedi | --localstated \
1511   | --localstate | --localstat | --localsta | --localst | --locals)
1512     ac_prev=localstatedir ;;
1513   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1514   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1515     localstatedir=$ac_optarg ;;
1517   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1518     ac_prev=mandir ;;
1519   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1520     mandir=$ac_optarg ;;
1522   -nfp | --nfp | --nf)
1523     # Obsolete; use --without-fp.
1524     with_fp=no ;;
1526   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1527   | --no-cr | --no-c | -n)
1528     no_create=yes ;;
1530   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1531   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1532     no_recursion=yes ;;
1534   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1535   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1536   | --oldin | --oldi | --old | --ol | --o)
1537     ac_prev=oldincludedir ;;
1538   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1539   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1540   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1541     oldincludedir=$ac_optarg ;;
1543   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1544     ac_prev=prefix ;;
1545   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1546     prefix=$ac_optarg ;;
1548   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1549   | --program-pre | --program-pr | --program-p)
1550     ac_prev=program_prefix ;;
1551   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1552   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1553     program_prefix=$ac_optarg ;;
1555   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1556   | --program-suf | --program-su | --program-s)
1557     ac_prev=program_suffix ;;
1558   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1559   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1560     program_suffix=$ac_optarg ;;
1562   -program-transform-name | --program-transform-name \
1563   | --program-transform-nam | --program-transform-na \
1564   | --program-transform-n | --program-transform- \
1565   | --program-transform | --program-transfor \
1566   | --program-transfo | --program-transf \
1567   | --program-trans | --program-tran \
1568   | --progr-tra | --program-tr | --program-t)
1569     ac_prev=program_transform_name ;;
1570   -program-transform-name=* | --program-transform-name=* \
1571   | --program-transform-nam=* | --program-transform-na=* \
1572   | --program-transform-n=* | --program-transform-=* \
1573   | --program-transform=* | --program-transfor=* \
1574   | --program-transfo=* | --program-transf=* \
1575   | --program-trans=* | --program-tran=* \
1576   | --progr-tra=* | --program-tr=* | --program-t=*)
1577     program_transform_name=$ac_optarg ;;
1579   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1580     ac_prev=pdfdir ;;
1581   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1582     pdfdir=$ac_optarg ;;
1584   -psdir | --psdir | --psdi | --psd | --ps)
1585     ac_prev=psdir ;;
1586   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1587     psdir=$ac_optarg ;;
1589   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1590   | -silent | --silent | --silen | --sile | --sil)
1591     silent=yes ;;
1593   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1594     ac_prev=sbindir ;;
1595   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1596   | --sbi=* | --sb=*)
1597     sbindir=$ac_optarg ;;
1599   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1600   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1601   | --sharedst | --shareds | --shared | --share | --shar \
1602   | --sha | --sh)
1603     ac_prev=sharedstatedir ;;
1604   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1605   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1606   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1607   | --sha=* | --sh=*)
1608     sharedstatedir=$ac_optarg ;;
1610   -site | --site | --sit)
1611     ac_prev=site ;;
1612   -site=* | --site=* | --sit=*)
1613     site=$ac_optarg ;;
1615   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1616     ac_prev=srcdir ;;
1617   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1618     srcdir=$ac_optarg ;;
1620   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1621   | --syscon | --sysco | --sysc | --sys | --sy)
1622     ac_prev=sysconfdir ;;
1623   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1624   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1625     sysconfdir=$ac_optarg ;;
1627   -target | --target | --targe | --targ | --tar | --ta | --t)
1628     ac_prev=target_alias ;;
1629   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1630     target_alias=$ac_optarg ;;
1632   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1633     verbose=yes ;;
1635   -version | --version | --versio | --versi | --vers | -V)
1636     ac_init_version=: ;;
1638   -with-* | --with-*)
1639     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1640     # Reject names that are not valid shell variable names.
1641     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1642       { echo "$as_me: error: invalid package name: $ac_package" >&2
1643    { (exit 1); exit 1; }; }
1644     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1645     eval with_$ac_package=\$ac_optarg ;;
1647   -without-* | --without-*)
1648     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1649     # Reject names that are not valid shell variable names.
1650     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1651       { echo "$as_me: error: invalid package name: $ac_package" >&2
1652    { (exit 1); exit 1; }; }
1653     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1654     eval with_$ac_package=no ;;
1656   --x)
1657     # Obsolete; use --with-x.
1658     with_x=yes ;;
1660   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1661   | --x-incl | --x-inc | --x-in | --x-i)
1662     ac_prev=x_includes ;;
1663   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1664   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1665     x_includes=$ac_optarg ;;
1667   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1668   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1669     ac_prev=x_libraries ;;
1670   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1671   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1672     x_libraries=$ac_optarg ;;
1674   -*) { echo "$as_me: error: unrecognized option: $ac_option
1675 Try \`$0 --help' for more information." >&2
1676    { (exit 1); exit 1; }; }
1677     ;;
1679   *=*)
1680     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1681     # Reject names that are not valid shell variable names.
1682     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1683       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1684    { (exit 1); exit 1; }; }
1685     eval $ac_envvar=\$ac_optarg
1686     export $ac_envvar ;;
1688   *)
1689     # FIXME: should be removed in autoconf 3.0.
1690     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1691     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1692       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1693     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1694     ;;
1696   esac
1697 done
1699 if test -n "$ac_prev"; then
1700   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1701   { echo "$as_me: error: missing argument to $ac_option" >&2
1702    { (exit 1); exit 1; }; }
1703 fi
1705 # Be sure to have absolute directory names.
1706 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1707                 datadir sysconfdir sharedstatedir localstatedir includedir \
1708                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1709                 libdir localedir mandir
1710 do
1711   eval ac_val=\$$ac_var
1712   case $ac_val in
1713     [\\/$]* | ?:[\\/]* )  continue;;
1714     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1715   esac
1716   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1717    { (exit 1); exit 1; }; }
1718 done
1720 # There might be people who depend on the old broken behavior: `$host'
1721 # used to hold the argument of --host etc.
1722 # FIXME: To remove some day.
1723 build=$build_alias
1724 host=$host_alias
1725 target=$target_alias
1727 # FIXME: To remove some day.
1728 if test "x$host_alias" != x; then
1729   if test "x$build_alias" = x; then
1730     cross_compiling=maybe
1731     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1732     If a cross compiler is detected then cross compile mode will be used." >&2
1733   elif test "x$build_alias" != "x$host_alias"; then
1734     cross_compiling=yes
1735   fi
1736 fi
1738 ac_tool_prefix=
1739 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1741 test "$silent" = yes && exec 6>/dev/null
1744 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1745 ac_ls_di=`ls -di .` &&
1746 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1747   { echo "$as_me: error: Working directory cannot be determined" >&2
1748    { (exit 1); exit 1; }; }
1749 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1750   { echo "$as_me: error: pwd does not report name of working directory" >&2
1751    { (exit 1); exit 1; }; }
1754 # Find the source files, if location was not specified.
1755 if test -z "$srcdir"; then
1756   ac_srcdir_defaulted=yes
1757   # Try the directory containing this script, then the parent directory.
1758   ac_confdir=`$as_dirname -- "$0" ||
1759 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1760          X"$0" : 'X\(//\)[^/]' \| \
1761          X"$0" : 'X\(//\)$' \| \
1762          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1763 echo X"$0" |
1764     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1765             s//\1/
1766             q
1767           }
1768           /^X\(\/\/\)[^/].*/{
1769             s//\1/
1770             q
1771           }
1772           /^X\(\/\/\)$/{
1773             s//\1/
1774             q
1775           }
1776           /^X\(\/\).*/{
1777             s//\1/
1778             q
1779           }
1780           s/.*/./; q'`
1781   srcdir=$ac_confdir
1782   if test ! -r "$srcdir/$ac_unique_file"; then
1783     srcdir=..
1784   fi
1785 else
1786   ac_srcdir_defaulted=no
1787 fi
1788 if test ! -r "$srcdir/$ac_unique_file"; then
1789   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1790   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1791    { (exit 1); exit 1; }; }
1792 fi
1793 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1794 ac_abs_confdir=`(
1795         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1796    { (exit 1); exit 1; }; }
1797         pwd)`
1798 # When building in place, set srcdir=.
1799 if test "$ac_abs_confdir" = "$ac_pwd"; then
1800   srcdir=.
1801 fi
1802 # Remove unnecessary trailing slashes from srcdir.
1803 # Double slashes in file names in object file debugging info
1804 # mess up M-x gdb in Emacs.
1805 case $srcdir in
1806 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1807 esac
1808 for ac_var in $ac_precious_vars; do
1809   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1810   eval ac_env_${ac_var}_value=\$${ac_var}
1811   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1812   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1813 done
1816 # Report the --help message.
1818 if test "$ac_init_help" = "long"; then
1819   # Omit some internal or obsolete options to make the list less imposing.
1820   # This message is too long to be a string in the A/UX 3.1 sh.
1821   cat <<_ACEOF
1822 \`configure' configures xorg-server 1.11.4 to adapt to many kinds of systems.
1824 Usage: $0 [OPTION]... [VAR=VALUE]...
1826 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1827 VAR=VALUE.  See below for descriptions of some of the useful variables.
1829 Defaults for the options are specified in brackets.
1831 Configuration:
1832   -h, --help              display this help and exit
1833       --help=short        display options specific to this package
1834       --help=recursive    display the short help of all the included packages
1835   -V, --version           display version information and exit
1836   -q, --quiet, --silent   do not print \`checking...' messages
1837       --cache-file=FILE   cache test results in FILE [disabled]
1838   -C, --config-cache      alias for \`--cache-file=config.cache'
1839   -n, --no-create         do not create output files
1840       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1842 Installation directories:
1843   --prefix=PREFIX         install architecture-independent files in PREFIX
1844                           [$ac_default_prefix]
1845   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1846                           [PREFIX]
1848 By default, \`make install' will install all the files in
1849 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1850 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1851 for instance \`--prefix=\$HOME'.
1853 For better control, use the options below.
1855 Fine tuning of the installation directories:
1856   --bindir=DIR           user executables [EPREFIX/bin]
1857   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1858   --libexecdir=DIR       program executables [EPREFIX/libexec]
1859   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1860   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1861   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1862   --libdir=DIR           object code libraries [EPREFIX/lib]
1863   --includedir=DIR       C header files [PREFIX/include]
1864   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1865   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1866   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1867   --infodir=DIR          info documentation [DATAROOTDIR/info]
1868   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1869   --mandir=DIR           man documentation [DATAROOTDIR/man]
1870   --docdir=DIR           documentation root [DATAROOTDIR/doc/xorg-server]
1871   --htmldir=DIR          html documentation [DOCDIR]
1872   --dvidir=DIR           dvi documentation [DOCDIR]
1873   --pdfdir=DIR           pdf documentation [DOCDIR]
1874   --psdir=DIR            ps documentation [DOCDIR]
1875 _ACEOF
1877   cat <<\_ACEOF
1879 Program names:
1880   --program-prefix=PREFIX            prepend PREFIX to installed program names
1881   --program-suffix=SUFFIX            append SUFFIX to installed program names
1882   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1884 System types:
1885   --build=BUILD     configure for building on BUILD [guessed]
1886   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1887 _ACEOF
1888 fi
1890 if test -n "$ac_init_help"; then
1891   case $ac_init_help in
1892      short | recursive ) echo "Configuration of xorg-server 1.11.4:";;
1893    esac
1894   cat <<\_ACEOF
1896 Optional Features:
1897   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1898   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1899   --enable-maintainer-mode  enable make rules and dependencies not useful
1900                           (and sometimes confusing) to the casual installer
1901   --disable-dependency-tracking  speeds up one-time build
1902   --enable-dependency-tracking   do not reject slow dependency extractors
1903   --disable-selective-werror
1904                           Turn off selective compiler errors. (default:
1905                           enabled)
1906   --enable-strict-compilation
1907                           Enable all warnings from compiler and make them
1908                           errors (default: disabled)
1909   --enable-docs           Enable building the documentation (default: yes)
1910   --enable-devel-docs     Enable building the developer documentation
1911                           (default: yes)
1912   --enable-unit-tests     Enable building unit test cases (default: auto)
1913   --enable-static[=PKGS]  build static libraries [default=no]
1914   --enable-shared[=PKGS]  build shared libraries [default=yes]
1915   --enable-fast-install[=PKGS]
1916                           optimize for fast installation [default=yes]
1917   --disable-libtool-lock  avoid locking (might break parallel builds)
1918   --disable-largefile     omit support for large files
1919   --enable-werror         Obsolete - use --enable-strict-compilation instead
1920   --enable-debug          Enable debugging (default: disabled)
1921   --enable-use-sigio-by-default
1922   Enable SIGIO input handlers by default (default: $USE_SIGIO_BY_DEFAULT)
1924   --enable-sparkle        Enable updating of X11.app using the Sparkle
1925                           Framework (default: disabled)
1926   --enable-install-libxf86config
1927                           Install libxf86config (default: disabled)
1928   --enable-visibility     Enable symbol visibility (default: auto)
1929   --enable-pc98           Enable PC98 support in Xorg (default: auto)
1930   --enable-aiglx          Build accelerated indirect GLX (default: enabled)
1931   --enable-glx-tls        Build GLX with TLS support (default: auto)
1932   --disable-registry      Build string registry module (default: enabled)
1933   --disable-composite     Build Composite extension (default: enabled)
1934   --disable-shm           Build SHM extension (default: enabled)
1935   --disable-xres          Build XRes extension (default: enabled)
1936   --disable-record        Build Record extension (default: enabled)
1937   --disable-xv            Build Xv extension (default: enabled)
1938   --disable-xvmc          Build XvMC extension (default: enabled)
1939   --disable-dga           Build DGA extension (default: auto)
1940   --disable-screensaver   Build ScreenSaver extension (default: enabled)
1941   --disable-xdmcp         Build XDMCP extension (default: auto)
1942   --disable-xdm-auth-1    Build XDM-Auth-1 extension (default: auto)
1943   --disable-glx           Build GLX extension (default: enabled)
1944   --enable-dri            Build DRI extension (default: auto)
1945   --enable-dri2           Build DRI2 extension (default: auto)
1946   --disable-xinerama      Build Xinerama extension (default: enabled)
1947   --disable-xf86vidmode   Build XF86VidMode extension (default: auto)
1948   --disable-xace          Build X-ACE extension (default: enabled)
1949   --enable-xselinux       Build SELinux extension (default: disabled)
1950   --enable-xcsecurity     Build Security extension (default: disabled)
1951   --enable-tslib          Build kdrive tslib touchscreen support (default:
1952                           disabled)
1953   --disable-dbe           Build DBE extension (default: enabled)
1954   --enable-xf86bigfont    Build XF86 Big Font extension (default: disabled)
1955   --disable-dpms          Build DPMS extension (default: enabled)
1956   --enable-config-udev    Build udev support (default: auto)
1957   --enable-config-dbus    Build D-BUS API support (default: no)
1958   --disable-config-hal    Build HAL support (default: auto)
1959   --enable-xfree86-utils  Build xfree86 DDX utilities (default: enabled)
1960   --enable-xaa            Build XAA (default: enabled)
1961   --enable-vgahw          Build Xorg with vga access (default: enabled)
1962   --enable-vbe            Build Xorg with VBE module (default: enabled)
1963   --enable-int10-module   Build Xorg with int10 module (default: enabled)
1964   --enable-windowswm      Build XWin with WindowsWM extension (default: no)
1965   --enable-libdrm         Build Xorg with libdrm support (default: enabled)
1966   --disable-clientids     Build Xorg with client ID tracking (default:
1967                           enabled)
1968   --enable-xorg           Build Xorg server (default: auto)
1969   --enable-dmx            Build DMX server (default: auto)
1970   --enable-xvfb           Build Xvfb server (default: yes)
1971   --enable-xnest          Build Xnest server (default: auto)
1972   --enable-xquartz        Build Xquartz server for OS-X (default: auto)
1973   --enable-standalone-xpbproxy
1974                           Build a standalone xpbproxy (in addition to the one
1975                           integrated into Xquartz as a separate thread)
1976                           (default: no)
1977   --enable-xwin           Build XWin server (default: auto)
1978   --enable-kdrive         Build kdrive servers (default: no)
1979   --enable-xephyr         Build the kdrive Xephyr server (default: auto)
1980   --enable-xfake          Build the kdrive 'fake' server (default: auto)
1981   --enable-xfbdev         Build the kdrive framebuffer device server (default:
1982                           auto)
1983   --enable-kdrive-kbd     Build kbd driver for kdrive (default: auto)
1984   --enable-kdrive-mouse   Build mouse driver for kdrive (default: auto)
1985   --enable-kdrive-evdev   Build evdev driver for kdrive (default: auto)
1986   --enable-install-setuid Install Xorg server as owned by root with setuid bit
1987                           (default: auto)
1988   --enable-unix-transport Enable UNIX domain socket transport
1989   --enable-tcp-transport  Enable TCP socket transport
1990   --enable-ipv6           Enable IPv6 support
1991   --enable-local-transport
1992                           Enable os-specific local transport
1993   --enable-secure-rpc     Enable Secure RPC
1995 Optional Packages:
1996   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1997   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1998   --with-doxygen          Use doxygen to regenerate documentation (default:
1999                           auto)
2000   --with-xmlto            Use xmlto to regenerate documentation (default:
2001                           auto)
2002   --with-fop              Use fop to regenerate documentation (default: auto)
2003   --with-xsltproc         Use xsltproc for the transformation of XML documents
2004                           (default: auto)
2005   --with-pic              try to use only PIC/non-PIC objects [default=use
2006                           both]
2007   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2008   --with-dtrace=PATH      Enable dtrace probes (default: enabled if dtrace
2009                           found)
2010   --with-int10=BACKEND    int10 backend: vm86, x86emu or stub
2011   --with-vendor-name=VENDOR
2012                           Vendor string reported by the server
2013   --with-vendor-name-short=VENDOR
2014                           Short version of vendor string reported by the
2015                           server
2016   --with-vendor-web=URL   Vendor web address reported by the server
2017   --with-module-dir=DIR   Directory where modules are installed (default:
2018                           $libdir/xorg/modules)
2019   --with-log-dir=DIR      Directory where log files are kept (default:
2020                           $localstatedir/log)
2021   --with-builder-addr=ADDRESS
2022                           Builder address (default:
2023                           xorg@lists.freedesktop.org)
2024   --with-os-name=OSNAME   Name of OS (default: output of "uname -srm")
2025   --with-os-vendor=OSVENDOR
2026                           Name of OS vendor
2027   --with-builderstring=BUILDERSTRING
2028                           Additional builder string
2029   --with-fontrootdir=DIR  Path to root directory for font files
2030   --with-fontmiscdir=DIR  Path to misc files [FONTROOTDIR/misc]
2031   --with-fontotfdir=DIR   Path to OTF files [FONTROOTDIR/OTF]
2032   --with-fontttfdir=DIR   Path to TTF files [FONTROOTDIR/TTF]
2033   --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1]
2034   --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi]
2035   --with-font100dpidir=DIR
2036                           Path to 100dpi files [FONTROOTDIR/100dpi]
2037   --with-default-font-path=PATH
2038                           Comma separated list of font dirs
2039   --with-xkb-path=PATH    Path to XKB base dir (default: ${datadir}/X11/xkb)
2040   --with-xkb-output=PATH  Path to XKB output dir (default:
2041                           ${datadir}/X11/xkb/compiled)
2042   --with-default-xkb-rules=RULES
2043                           Keyboard ruleset (default: base/evdev)
2044   --with-default-xkb-model=MODEL
2045                           Keyboard model (default: pc105)
2046   --with-default-xkb-layout=LAYOUT
2047                           Keyboard layout (default: us)
2048   --with-default-xkb-variant=VARIANT
2049                           Keyboard variant (default: (none))
2050   --with-default-xkb-options=OPTIONS
2051                           Keyboard layout options (default: (none))
2052   --with-serverconfig-path=PATH
2053                           Directory where ancillary server config files are
2054                           installed (default: ${libdir}/xorg)
2055   --with-apple-applications-dir=PATH
2056                           Path to the Applications directory (default:
2057                           /Applications/Utilities)
2058   --with-apple-application-name=NAME
2059                           Name for the .app (default: X11)
2060   --with-launchd-id-prefix=PATH
2061                           Deprecated: Use --with-bundle-id-prefix.
2062   --with-bundle-id-prefix=PATH
2063                           Prefix to use for bundle identifiers (default:
2064                           org.x)
2065   --with-khronos-spec-dir=PATH
2066                           Path to Khronos OpenGL registry database files
2067                           (default: auto)
2068   --with-xkb-bin-directory=DIR
2069                           Directory containing xkbcomp program
2070   --with-sha1=libc|libmd|libgcrypt|libcrypto|libsha1|CommonCrypto
2071                           choose SHA1 implementation
2073 Some influential environment variables:
2074   CC          C compiler command
2075   CFLAGS      C compiler flags
2076   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2077               nonstandard directory <lib dir>
2078   LIBS        libraries to pass to the linker, e.g. -l<library>
2079   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2080               you have headers in a nonstandard directory <include dir>
2081   CPP         C preprocessor
2082   PKG_CONFIG  path to pkg-config utility
2083   PKG_CONFIG_PATH
2084               directories to add to pkg-config's search path
2085   PKG_CONFIG_LIBDIR
2086               path overriding pkg-config's built-in search path
2087   DOXYGEN     Path to doxygen command
2088   XMLTO       Path to xmlto command
2089   FOP         Path to fop command
2090   XSLTPROC    Path to xsltproc command
2091   XORG_MALLOC_DEBUG_ENV
2092               Environment variables to enable memory checking in tests
2093   CCAS        assembler compiler command (defaults to CC)
2094   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
2095   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
2096               the first program found out of: `bison -y', `byacc', `yacc'.
2097   YFLAGS      The list of arguments that will be passed by default to $YACC.
2098               This script will default YFLAGS to the empty string to avoid a
2099               default value of `-d' given by some make applications.
2100   PIXMAN_CFLAGS
2101               C compiler flags for PIXMAN, overriding pkg-config
2102   PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config
2103   UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
2104   UDEV_LIBS   linker flags for UDEV, overriding pkg-config
2105   DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
2106   DBUS_LIBS   linker flags for DBUS, overriding pkg-config
2107   HAL_CFLAGS  C compiler flags for HAL, overriding pkg-config
2108   HAL_LIBS    linker flags for HAL, overriding pkg-config
2109   XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config
2110   XLIB_LIBS   linker flags for XLIB, overriding pkg-config
2111   GL_CFLAGS   C compiler flags for GL, overriding pkg-config
2112   GL_LIBS     linker flags for GL, overriding pkg-config
2113   DRIPROTO_CFLAGS
2114               C compiler flags for DRIPROTO, overriding pkg-config
2115   DRIPROTO_LIBS
2116               linker flags for DRIPROTO, overriding pkg-config
2117   DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
2118   DRI_LIBS    linker flags for DRI, overriding pkg-config
2119   DRI2PROTO_CFLAGS
2120               C compiler flags for DRI2PROTO, overriding pkg-config
2121   DRI2PROTO_LIBS
2122               linker flags for DRI2PROTO, overriding pkg-config
2123   LIBDRM_CFLAGS
2124               C compiler flags for LIBDRM, overriding pkg-config
2125   LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
2126   SELINUX_CFLAGS
2127               C compiler flags for SELINUX, overriding pkg-config
2128   SELINUX_LIBS
2129               linker flags for SELINUX, overriding pkg-config
2130   XDMCP_CFLAGS
2131               C compiler flags for XDMCP, overriding pkg-config
2132   XDMCP_LIBS  linker flags for XDMCP, overriding pkg-config
2133   LIBSHA1_CFLAGS
2134               C compiler flags for LIBSHA1, overriding pkg-config
2135   LIBSHA1_LIBS
2136               linker flags for LIBSHA1, overriding pkg-config
2137   OPENSSL_CFLAGS
2138               C compiler flags for OPENSSL, overriding pkg-config
2139   OPENSSL_LIBS
2140               linker flags for OPENSSL, overriding pkg-config
2141   XSERVERCFLAGS_CFLAGS
2142               C compiler flags for XSERVERCFLAGS, overriding pkg-config
2143   XSERVERCFLAGS_LIBS
2144               linker flags for XSERVERCFLAGS, overriding pkg-config
2145   XSERVERLIBS_CFLAGS
2146               C compiler flags for XSERVERLIBS, overriding pkg-config
2147   XSERVERLIBS_LIBS
2148               linker flags for XSERVERLIBS, overriding pkg-config
2149   XNESTMODULES_CFLAGS
2150               C compiler flags for XNESTMODULES, overriding pkg-config
2151   XNESTMODULES_LIBS
2152               linker flags for XNESTMODULES, overriding pkg-config
2153   PCIACCESS_CFLAGS
2154               C compiler flags for PCIACCESS, overriding pkg-config
2155   PCIACCESS_LIBS
2156               linker flags for PCIACCESS, overriding pkg-config
2157   DGA_CFLAGS  C compiler flags for DGA, overriding pkg-config
2158   DGA_LIBS    linker flags for DGA, overriding pkg-config
2159   XF86VIDMODE_CFLAGS
2160               C compiler flags for XF86VIDMODE, overriding pkg-config
2161   XF86VIDMODE_LIBS
2162               linker flags for XF86VIDMODE, overriding pkg-config
2163   XORG_MODULES_CFLAGS
2164               C compiler flags for XORG_MODULES, overriding pkg-config
2165   XORG_MODULES_LIBS
2166               linker flags for XORG_MODULES, overriding pkg-config
2167   XWINMODULES_CFLAGS
2168               C compiler flags for XWINMODULES, overriding pkg-config
2169   XWINMODULES_LIBS
2170               linker flags for XWINMODULES, overriding pkg-config
2171   WINDOWSWM_CFLAGS
2172               C compiler flags for WINDOWSWM, overriding pkg-config
2173   WINDOWSWM_LIBS
2174               linker flags for WINDOWSWM, overriding pkg-config
2175   KHRONOS_OPENGL_REGISTRY_CFLAGS
2176               C compiler flags for KHRONOS_OPENGL_REGISTRY, overriding
2177               pkg-config
2178   KHRONOS_OPENGL_REGISTRY_LIBS
2179               linker flags for KHRONOS_OPENGL_REGISTRY, overriding pkg-config
2180   XPBPROXY_CFLAGS
2181               C compiler flags for XPBPROXY, overriding pkg-config
2182   XPBPROXY_LIBS
2183               linker flags for XPBPROXY, overriding pkg-config
2184   DMXMODULES_CFLAGS
2185               C compiler flags for DMXMODULES, overriding pkg-config
2186   DMXMODULES_LIBS
2187               linker flags for DMXMODULES, overriding pkg-config
2188   XDMXCONFIG_DEP_CFLAGS
2189               C compiler flags for XDMXCONFIG_DEP, overriding pkg-config
2190   XDMXCONFIG_DEP_LIBS
2191               linker flags for XDMXCONFIG_DEP, overriding pkg-config
2192   DMXEXAMPLES_DEP_CFLAGS
2193               C compiler flags for DMXEXAMPLES_DEP, overriding pkg-config
2194   DMXEXAMPLES_DEP_LIBS
2195               linker flags for DMXEXAMPLES_DEP, overriding pkg-config
2196   DMXXMUEXAMPLES_DEP_CFLAGS
2197               C compiler flags for DMXXMUEXAMPLES_DEP, overriding pkg-config
2198   DMXXMUEXAMPLES_DEP_LIBS
2199               linker flags for DMXXMUEXAMPLES_DEP, overriding pkg-config
2200   DMXXIEXAMPLES_DEP_CFLAGS
2201               C compiler flags for DMXXIEXAMPLES_DEP, overriding pkg-config
2202   DMXXIEXAMPLES_DEP_LIBS
2203               linker flags for DMXXIEXAMPLES_DEP, overriding pkg-config
2204   XTSTEXAMPLES_DEP_CFLAGS
2205               C compiler flags for XTSTEXAMPLES_DEP, overriding pkg-config
2206   XTSTEXAMPLES_DEP_LIBS
2207               linker flags for XTSTEXAMPLES_DEP, overriding pkg-config
2208   XRESEXAMPLES_DEP_CFLAGS
2209               C compiler flags for XRESEXAMPLES_DEP, overriding pkg-config
2210   XRESEXAMPLES_DEP_LIBS
2211               linker flags for XRESEXAMPLES_DEP, overriding pkg-config
2212   X11EXAMPLES_DEP_CFLAGS
2213               C compiler flags for X11EXAMPLES_DEP, overriding pkg-config
2214   X11EXAMPLES_DEP_LIBS
2215               linker flags for X11EXAMPLES_DEP, overriding pkg-config
2216   TSLIB_CFLAGS
2217               C compiler flags for TSLIB, overriding pkg-config
2218   TSLIB_LIBS  linker flags for TSLIB, overriding pkg-config
2219   XEPHYR_CFLAGS
2220               C compiler flags for XEPHYR, overriding pkg-config
2221   XEPHYR_LIBS linker flags for XEPHYR, overriding pkg-config
2223 Use these variables to override the choices made by `configure' or to help
2224 it to find libraries and programs with nonstandard names/locations.
2226 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
2227 _ACEOF
2228 ac_status=$?
2229 fi
2231 if test "$ac_init_help" = "recursive"; then
2232   # If there are subdirs, report their specific --help.
2233   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2234     test -d "$ac_dir" || continue
2235     ac_builddir=.
2237 case "$ac_dir" in
2238 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2239 *)
2240   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2241   # A ".." for each directory in $ac_dir_suffix.
2242   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2243   case $ac_top_builddir_sub in
2244   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2245   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2246   esac ;;
2247 esac
2248 ac_abs_top_builddir=$ac_pwd
2249 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2250 # for backward compatibility:
2251 ac_top_builddir=$ac_top_build_prefix
2253 case $srcdir in
2254   .)  # We are building in place.
2255     ac_srcdir=.
2256     ac_top_srcdir=$ac_top_builddir_sub
2257     ac_abs_top_srcdir=$ac_pwd ;;
2258   [\\/]* | ?:[\\/]* )  # Absolute name.
2259     ac_srcdir=$srcdir$ac_dir_suffix;
2260     ac_top_srcdir=$srcdir
2261     ac_abs_top_srcdir=$srcdir ;;
2262   *) # Relative name.
2263     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2264     ac_top_srcdir=$ac_top_build_prefix$srcdir
2265     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2266 esac
2267 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2269     cd "$ac_dir" || { ac_status=$?; continue; }
2270     # Check for guested configure.
2271     if test -f "$ac_srcdir/configure.gnu"; then
2272       echo &&
2273       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2274     elif test -f "$ac_srcdir/configure"; then
2275       echo &&
2276       $SHELL "$ac_srcdir/configure" --help=recursive
2277     else
2278       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2279     fi || ac_status=$?
2280     cd "$ac_pwd" || { ac_status=$?; break; }
2281   done
2282 fi
2284 test -n "$ac_init_help" && exit $ac_status
2285 if $ac_init_version; then
2286   cat <<\_ACEOF
2287 xorg-server configure 1.11.4
2288 generated by GNU Autoconf 2.61
2290 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2291 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2292 This configure script is free software; the Free Software Foundation
2293 gives unlimited permission to copy, distribute and modify it.
2294 _ACEOF
2295   exit
2296 fi
2297 cat >config.log <<_ACEOF
2298 This file contains any messages produced by compilers while
2299 running configure, to aid debugging if configure makes a mistake.
2301 It was created by xorg-server $as_me 1.11.4, which was
2302 generated by GNU Autoconf 2.61.  Invocation command line was
2304   $ $0 $@
2306 _ACEOF
2307 exec 5>>config.log
2309 cat <<_ASUNAME
2310 ## --------- ##
2311 ## Platform. ##
2312 ## --------- ##
2314 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2315 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2316 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2317 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2318 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2320 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2321 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2323 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2324 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2325 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2326 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2327 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2328 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2329 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2331 _ASUNAME
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336   IFS=$as_save_IFS
2337   test -z "$as_dir" && as_dir=.
2338   echo "PATH: $as_dir"
2339 done
2340 IFS=$as_save_IFS
2342 } >&5
2344 cat >&5 <<_ACEOF
2347 ## ----------- ##
2348 ## Core tests. ##
2349 ## ----------- ##
2351 _ACEOF
2354 # Keep a trace of the command line.
2355 # Strip out --no-create and --no-recursion so they do not pile up.
2356 # Strip out --silent because we don't want to record it for future runs.
2357 # Also quote any args containing shell meta-characters.
2358 # Make two passes to allow for proper duplicate-argument suppression.
2359 ac_configure_args=
2360 ac_configure_args0=
2361 ac_configure_args1=
2362 ac_must_keep_next=false
2363 for ac_pass in 1 2
2364 do
2365   for ac_arg
2366   do
2367     case $ac_arg in
2368     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2369     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2370     | -silent | --silent | --silen | --sile | --sil)
2371       continue ;;
2372     *\'*)
2373       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2374     esac
2375     case $ac_pass in
2376     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2377     2)
2378       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2379       if test $ac_must_keep_next = true; then
2380         ac_must_keep_next=false # Got value, back to normal.
2381       else
2382         case $ac_arg in
2383           *=* | --config-cache | -C | -disable-* | --disable-* \
2384           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2385           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2386           | -with-* | --with-* | -without-* | --without-* | --x)
2387             case "$ac_configure_args0 " in
2388               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2389             esac
2390             ;;
2391           -* ) ac_must_keep_next=true ;;
2392         esac
2393       fi
2394       ac_configure_args="$ac_configure_args '$ac_arg'"
2395       ;;
2396     esac
2397   done
2398 done
2399 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2400 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2402 # When interrupted or exit'd, cleanup temporary files, and complete
2403 # config.log.  We remove comments because anyway the quotes in there
2404 # would cause problems or look ugly.
2405 # WARNING: Use '\'' to represent an apostrophe within the trap.
2406 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2407 trap 'exit_status=$?
2408   # Save into config.log some information that might help in debugging.
2409   {
2410     echo
2412     cat <<\_ASBOX
2413 ## ---------------- ##
2414 ## Cache variables. ##
2415 ## ---------------- ##
2416 _ASBOX
2417     echo
2418     # The following way of writing the cache mishandles newlines in values,
2420   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2421     eval ac_val=\$$ac_var
2422     case $ac_val in #(
2423     *${as_nl}*)
2424       case $ac_var in #(
2425       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2426 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2427       esac
2428       case $ac_var in #(
2429       _ | IFS | as_nl) ;; #(
2430       *) $as_unset $ac_var ;;
2431       esac ;;
2432     esac
2433   done
2434   (set) 2>&1 |
2435     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2436     *${as_nl}ac_space=\ *)
2437       sed -n \
2438         "s/'\''/'\''\\\\'\'''\''/g;
2439           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2440       ;; #(
2441     *)
2442       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2443       ;;
2444     esac |
2445     sort
2447     echo
2449     cat <<\_ASBOX
2450 ## ----------------- ##
2451 ## Output variables. ##
2452 ## ----------------- ##
2453 _ASBOX
2454     echo
2455     for ac_var in $ac_subst_vars
2456     do
2457       eval ac_val=\$$ac_var
2458       case $ac_val in
2459       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2460       esac
2461       echo "$ac_var='\''$ac_val'\''"
2462     done | sort
2463     echo
2465     if test -n "$ac_subst_files"; then
2466       cat <<\_ASBOX
2467 ## ------------------- ##
2468 ## File substitutions. ##
2469 ## ------------------- ##
2470 _ASBOX
2471       echo
2472       for ac_var in $ac_subst_files
2473       do
2474         eval ac_val=\$$ac_var
2475         case $ac_val in
2476         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2477         esac
2478         echo "$ac_var='\''$ac_val'\''"
2479       done | sort
2480       echo
2481     fi
2483     if test -s confdefs.h; then
2484       cat <<\_ASBOX
2485 ## ----------- ##
2486 ## confdefs.h. ##
2487 ## ----------- ##
2488 _ASBOX
2489       echo
2490       cat confdefs.h
2491       echo
2492     fi
2493     test "$ac_signal" != 0 &&
2494       echo "$as_me: caught signal $ac_signal"
2495     echo "$as_me: exit $exit_status"
2496   } >&5
2497   rm -f core *.core core.conftest.* &&
2498     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2499     exit $exit_status
2500 ' 0
2501 for ac_signal in 1 2 13 15; do
2502   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2503 done
2504 ac_signal=0
2506 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2507 rm -f -r conftest* confdefs.h
2509 # Predefined preprocessor variables.
2511 cat >>confdefs.h <<_ACEOF
2512 #define PACKAGE_NAME "$PACKAGE_NAME"
2513 _ACEOF
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2518 _ACEOF
2521 cat >>confdefs.h <<_ACEOF
2522 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2523 _ACEOF
2526 cat >>confdefs.h <<_ACEOF
2527 #define PACKAGE_STRING "$PACKAGE_STRING"
2528 _ACEOF
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2533 _ACEOF
2536 # Let the site file select an alternate cache file if it wants to.
2537 # Prefer explicitly selected file to automatically selected ones.
2538 if test -n "$CONFIG_SITE"; then
2539   set x "$CONFIG_SITE"
2540 elif test "x$prefix" != xNONE; then
2541   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2542 else
2543   set x "$ac_default_prefix/share/config.site" \
2544         "$ac_default_prefix/etc/config.site"
2545 fi
2546 shift
2547 for ac_site_file
2548 do
2549   if test -r "$ac_site_file"; then
2550     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2551 echo "$as_me: loading site script $ac_site_file" >&6;}
2552     sed 's/^/| /' "$ac_site_file" >&5
2553     . "$ac_site_file"
2554   fi
2555 done
2557 if test -r "$cache_file"; then
2558   # Some versions of bash will fail to source /dev/null (special
2559   # files actually), so we avoid doing that.
2560   if test -f "$cache_file"; then
2561     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2562 echo "$as_me: loading cache $cache_file" >&6;}
2563     case $cache_file in
2564       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2565       *)                      . "./$cache_file";;
2566     esac
2567   fi
2568 else
2569   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2570 echo "$as_me: creating cache $cache_file" >&6;}
2571   >$cache_file
2572 fi
2574 # Check that the precious variables saved in the cache have kept the same
2575 # value.
2576 ac_cache_corrupted=false
2577 for ac_var in $ac_precious_vars; do
2578   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2579   eval ac_new_set=\$ac_env_${ac_var}_set
2580   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2581   eval ac_new_val=\$ac_env_${ac_var}_value
2582   case $ac_old_set,$ac_new_set in
2583     set,)
2584       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2585 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2586       ac_cache_corrupted=: ;;
2587     ,set)
2588       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2589 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2590       ac_cache_corrupted=: ;;
2591     ,);;
2592     *)
2593       if test "x$ac_old_val" != "x$ac_new_val"; then
2594         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2595 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2596         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2597 echo "$as_me:   former value:  $ac_old_val" >&2;}
2598         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2599 echo "$as_me:   current value: $ac_new_val" >&2;}
2600         ac_cache_corrupted=:
2601       fi;;
2602   esac
2603   # Pass precious variables to config.status.
2604   if test "$ac_new_set" = set; then
2605     case $ac_new_val in
2606     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2607     *) ac_arg=$ac_var=$ac_new_val ;;
2608     esac
2609     case " $ac_configure_args " in
2610       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2611       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2612     esac
2613   fi
2614 done
2615 if $ac_cache_corrupted; then
2616   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2617 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2618   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2619 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2620    { (exit 1); exit 1; }; }
2621 fi
2647 ac_ext=c
2648 ac_cpp='$CPP $CPPFLAGS'
2649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2654 RELEASE_DATE="2012-01-27"
2656 am__api_version='1.10'
2658 ac_aux_dir=
2659 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2660   if test -f "$ac_dir/install-sh"; then
2661     ac_aux_dir=$ac_dir
2662     ac_install_sh="$ac_aux_dir/install-sh -c"
2663     break
2664   elif test -f "$ac_dir/install.sh"; then
2665     ac_aux_dir=$ac_dir
2666     ac_install_sh="$ac_aux_dir/install.sh -c"
2667     break
2668   elif test -f "$ac_dir/shtool"; then
2669     ac_aux_dir=$ac_dir
2670     ac_install_sh="$ac_aux_dir/shtool install -c"
2671     break
2672   fi
2673 done
2674 if test -z "$ac_aux_dir"; then
2675   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2676 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2677    { (exit 1); exit 1; }; }
2678 fi
2680 # These three variables are undocumented and unsupported,
2681 # and are intended to be withdrawn in a future Autoconf release.
2682 # They can cause serious problems if a builder's source tree is in a directory
2683 # whose full name contains unusual characters.
2684 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2685 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2686 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2689 # Find a good install program.  We prefer a C program (faster),
2690 # so one script is as good as another.  But avoid the broken or
2691 # incompatible versions:
2692 # SysV /etc/install, /usr/sbin/install
2693 # SunOS /usr/etc/install
2694 # IRIX /sbin/install
2695 # AIX /bin/install
2696 # AmigaOS /C/install, which installs bootblocks on floppy discs
2697 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2698 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2699 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2700 # OS/2's system install, which has a completely different semantic
2701 # ./install, which can be erroneously created by make from ./install.sh.
2702 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2703 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2704 if test -z "$INSTALL"; then
2705 if test "${ac_cv_path_install+set}" = set; then
2706   echo $ECHO_N "(cached) $ECHO_C" >&6
2707 else
2708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH
2710 do
2711   IFS=$as_save_IFS
2712   test -z "$as_dir" && as_dir=.
2713   # Account for people who put trailing slashes in PATH elements.
2714 case $as_dir/ in
2715   ./ | .// | /cC/* | \
2716   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2717   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2718   /usr/ucb/* ) ;;
2719   *)
2720     # OSF1 and SCO ODT 3.0 have their own names for install.
2721     # Don't use installbsd from OSF since it installs stuff as root
2722     # by default.
2723     for ac_prog in ginstall scoinst install; do
2724       for ac_exec_ext in '' $ac_executable_extensions; do
2725         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2726           if test $ac_prog = install &&
2727             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2728             # AIX install.  It has an incompatible calling convention.
2729             :
2730           elif test $ac_prog = install &&
2731             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2732             # program-specific install script used by HP pwplus--don't use.
2733             :
2734           else
2735             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2736             break 3
2737           fi
2738         fi
2739       done
2740     done
2741     ;;
2742 esac
2743 done
2744 IFS=$as_save_IFS
2747 fi
2748   if test "${ac_cv_path_install+set}" = set; then
2749     INSTALL=$ac_cv_path_install
2750   else
2751     # As a last resort, use the slow shell script.  Don't cache a
2752     # value for INSTALL within a source directory, because that will
2753     # break other packages using the cache if that directory is
2754     # removed, or if the value is a relative name.
2755     INSTALL=$ac_install_sh
2756   fi
2757 fi
2758 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2759 echo "${ECHO_T}$INSTALL" >&6; }
2761 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2762 # It thinks the first close brace ends the variable substitution.
2763 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2765 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2767 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2769 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2770 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2771 # Just in case
2772 sleep 1
2773 echo timestamp > conftest.file
2774 # Do `set' in a subshell so we don't clobber the current shell's
2775 # arguments.  Must try -L first in case configure is actually a
2776 # symlink; some systems play weird games with the mod time of symlinks
2777 # (eg FreeBSD returns the mod time of the symlink's containing
2778 # directory).
2779 if (
2780    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2781    if test "$*" = "X"; then
2782       # -L didn't work.
2783       set X `ls -t $srcdir/configure conftest.file`
2784    fi
2785    rm -f conftest.file
2786    if test "$*" != "X $srcdir/configure conftest.file" \
2787       && test "$*" != "X conftest.file $srcdir/configure"; then
2789       # If neither matched, then we have a broken ls.  This can happen
2790       # if, for instance, CONFIG_SHELL is bash and it inherits a
2791       # broken ls alias from the environment.  This has actually
2792       # happened.  Such a system could not be considered "sane".
2793       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2794 alias in your environment" >&5
2795 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2796 alias in your environment" >&2;}
2797    { (exit 1); exit 1; }; }
2798    fi
2800    test "$2" = conftest.file
2801    )
2802 then
2803    # Ok.
2804    :
2805 else
2806    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2807 Check your system clock" >&5
2808 echo "$as_me: error: newly created file is older than distributed files!
2809 Check your system clock" >&2;}
2810    { (exit 1); exit 1; }; }
2811 fi
2812 { echo "$as_me:$LINENO: result: yes" >&5
2813 echo "${ECHO_T}yes" >&6; }
2814 test "$program_prefix" != NONE &&
2815   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2816 # Use a double $ so make ignores it.
2817 test "$program_suffix" != NONE &&
2818   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2819 # Double any \ or $.  echo might interpret backslashes.
2820 # By default was `s,x,x', remove it if useless.
2821 cat <<\_ACEOF >conftest.sed
2822 s/[\\$]/&&/g;s/;s,x,x,$//
2823 _ACEOF
2824 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2825 rm -f conftest.sed
2827 # expand $ac_aux_dir to an absolute path
2828 am_aux_dir=`cd $ac_aux_dir && pwd`
2830 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2831 # Use eval to expand $SHELL
2832 if eval "$MISSING --run true"; then
2833   am_missing_run="$MISSING --run "
2834 else
2835   am_missing_run=
2836   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2837 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2838 fi
2840 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2841 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2842 if test -z "$MKDIR_P"; then
2843   if test "${ac_cv_path_mkdir+set}" = set; then
2844   echo $ECHO_N "(cached) $ECHO_C" >&6
2845 else
2846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2848 do
2849   IFS=$as_save_IFS
2850   test -z "$as_dir" && as_dir=.
2851   for ac_prog in mkdir gmkdir; do
2852          for ac_exec_ext in '' $ac_executable_extensions; do
2853            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2854            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2855              'mkdir (GNU coreutils) '* | \
2856              'mkdir (coreutils) '* | \
2857              'mkdir (fileutils) '4.1*)
2858                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2859                break 3;;
2860            esac
2861          done
2862        done
2863 done
2864 IFS=$as_save_IFS
2866 fi
2868   if test "${ac_cv_path_mkdir+set}" = set; then
2869     MKDIR_P="$ac_cv_path_mkdir -p"
2870   else
2871     # As a last resort, use the slow shell script.  Don't cache a
2872     # value for MKDIR_P within a source directory, because that will
2873     # break other packages using the cache if that directory is
2874     # removed, or if the value is a relative name.
2875     test -d ./--version && rmdir ./--version
2876     MKDIR_P="$ac_install_sh -d"
2877   fi
2878 fi
2879 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2880 echo "${ECHO_T}$MKDIR_P" >&6; }
2882 mkdir_p="$MKDIR_P"
2883 case $mkdir_p in
2884   [\\/$]* | ?:[\\/]*) ;;
2885   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2886 esac
2888 for ac_prog in gawk mawk nawk awk
2889 do
2890   # Extract the first word of "$ac_prog", so it can be a program name with args.
2891 set dummy $ac_prog; ac_word=$2
2892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2894 if test "${ac_cv_prog_AWK+set}" = set; then
2895   echo $ECHO_N "(cached) $ECHO_C" >&6
2896 else
2897   if test -n "$AWK"; then
2898   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2899 else
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 for as_dir in $PATH
2902 do
2903   IFS=$as_save_IFS
2904   test -z "$as_dir" && as_dir=.
2905   for ac_exec_ext in '' $ac_executable_extensions; do
2906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2907     ac_cv_prog_AWK="$ac_prog"
2908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2909     break 2
2910   fi
2911 done
2912 done
2913 IFS=$as_save_IFS
2915 fi
2916 fi
2917 AWK=$ac_cv_prog_AWK
2918 if test -n "$AWK"; then
2919   { echo "$as_me:$LINENO: result: $AWK" >&5
2920 echo "${ECHO_T}$AWK" >&6; }
2921 else
2922   { echo "$as_me:$LINENO: result: no" >&5
2923 echo "${ECHO_T}no" >&6; }
2924 fi
2927   test -n "$AWK" && break
2928 done
2930 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2931 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2932 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2933 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2934   echo $ECHO_N "(cached) $ECHO_C" >&6
2935 else
2936   cat >conftest.make <<\_ACEOF
2937 SHELL = /bin/sh
2938 all:
2939         @echo '@@@%%%=$(MAKE)=@@@%%%'
2940 _ACEOF
2941 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2942 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2943   *@@@%%%=?*=@@@%%%*)
2944     eval ac_cv_prog_make_${ac_make}_set=yes;;
2945   *)
2946     eval ac_cv_prog_make_${ac_make}_set=no;;
2947 esac
2948 rm -f conftest.make
2949 fi
2950 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2951   { echo "$as_me:$LINENO: result: yes" >&5
2952 echo "${ECHO_T}yes" >&6; }
2953   SET_MAKE=
2954 else
2955   { echo "$as_me:$LINENO: result: no" >&5
2956 echo "${ECHO_T}no" >&6; }
2957   SET_MAKE="MAKE=${MAKE-make}"
2958 fi
2960 rm -rf .tst 2>/dev/null
2961 mkdir .tst 2>/dev/null
2962 if test -d .tst; then
2963   am__leading_dot=.
2964 else
2965   am__leading_dot=_
2966 fi
2967 rmdir .tst 2>/dev/null
2969 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2970   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2971   # is not polluted with repeated "-I."
2972   am__isrc=' -I$(srcdir)'
2973   # test to see if srcdir already configured
2974   if test -f $srcdir/config.status; then
2975     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2976 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2977    { (exit 1); exit 1; }; }
2978   fi
2979 fi
2981 # test whether we have cygpath
2982 if test -z "$CYGPATH_W"; then
2983   if (cygpath --version) >/dev/null 2>/dev/null; then
2984     CYGPATH_W='cygpath -w'
2985   else
2986     CYGPATH_W=echo
2987   fi
2988 fi
2991 # Define the identity of the package.
2992  PACKAGE='xorg-server'
2993  VERSION='1.11.4'
2996 cat >>confdefs.h <<_ACEOF
2997 #define PACKAGE "$PACKAGE"
2998 _ACEOF
3001 cat >>confdefs.h <<_ACEOF
3002 #define VERSION "$VERSION"
3003 _ACEOF
3005 # Some tools Automake needs.
3007 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3010 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3013 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3016 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3019 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3021 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
3023 # Installed binaries are usually stripped using `strip' when the user
3024 # run `make install-strip'.  However `strip' might not be the right
3025 # tool to use in cross-compilation environments, therefore Automake
3026 # will honor the `STRIP' environment variable to overrule this program.
3027 if test "$cross_compiling" != no; then
3028   if test -n "$ac_tool_prefix"; then
3029   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3030 set dummy ${ac_tool_prefix}strip; ac_word=$2
3031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3033 if test "${ac_cv_prog_STRIP+set}" = set; then
3034   echo $ECHO_N "(cached) $ECHO_C" >&6
3035 else
3036   if test -n "$STRIP"; then
3037   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3038 else
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH
3041 do
3042   IFS=$as_save_IFS
3043   test -z "$as_dir" && as_dir=.
3044   for ac_exec_ext in '' $ac_executable_extensions; do
3045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3046     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3048     break 2
3049   fi
3050 done
3051 done
3052 IFS=$as_save_IFS
3054 fi
3055 fi
3056 STRIP=$ac_cv_prog_STRIP
3057 if test -n "$STRIP"; then
3058   { echo "$as_me:$LINENO: result: $STRIP" >&5
3059 echo "${ECHO_T}$STRIP" >&6; }
3060 else
3061   { echo "$as_me:$LINENO: result: no" >&5
3062 echo "${ECHO_T}no" >&6; }
3063 fi
3066 fi
3067 if test -z "$ac_cv_prog_STRIP"; then
3068   ac_ct_STRIP=$STRIP
3069   # Extract the first word of "strip", so it can be a program name with args.
3070 set dummy strip; ac_word=$2
3071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3073 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3074   echo $ECHO_N "(cached) $ECHO_C" >&6
3075 else
3076   if test -n "$ac_ct_STRIP"; then
3077   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3078 else
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH
3081 do
3082   IFS=$as_save_IFS
3083   test -z "$as_dir" && as_dir=.
3084   for ac_exec_ext in '' $ac_executable_extensions; do
3085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3086     ac_cv_prog_ac_ct_STRIP="strip"
3087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3088     break 2
3089   fi
3090 done
3091 done
3092 IFS=$as_save_IFS
3094 fi
3095 fi
3096 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3097 if test -n "$ac_ct_STRIP"; then
3098   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3099 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
3100 else
3101   { echo "$as_me:$LINENO: result: no" >&5
3102 echo "${ECHO_T}no" >&6; }
3103 fi
3105   if test "x$ac_ct_STRIP" = x; then
3106     STRIP=":"
3107   else
3108     case $cross_compiling:$ac_tool_warned in
3109 yes:)
3110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3111 whose name does not start with the host triplet.  If you think this
3112 configuration is useful to you, please write to autoconf@gnu.org." >&5
3113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3114 whose name does not start with the host triplet.  If you think this
3115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3116 ac_tool_warned=yes ;;
3117 esac
3118     STRIP=$ac_ct_STRIP
3119   fi
3120 else
3121   STRIP="$ac_cv_prog_STRIP"
3122 fi
3124 fi
3125 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3127 # We need awk for the "check" target.  The system "awk" is bad on
3128 # some platforms.
3129 # Always define AMTAR for backward compatibility.
3131 AMTAR=${AMTAR-"${am_missing_run}tar"}
3133 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3139 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3140 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
3141     # Check whether --enable-maintainer-mode was given.
3142 if test "${enable_maintainer_mode+set}" = set; then
3143   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3144 else
3145   USE_MAINTAINER_MODE=no
3146 fi
3148   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3149 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
3150    if test $USE_MAINTAINER_MODE = yes; then
3151   MAINTAINER_MODE_TRUE=
3152   MAINTAINER_MODE_FALSE='#'
3153 else
3154   MAINTAINER_MODE_TRUE='#'
3155   MAINTAINER_MODE_FALSE=
3156 fi
3158   MAINT=$MAINTAINER_MODE_TRUE
3162 # Require xorg-macros minimum of 1.14 for XORG_COMPILER_BRAND in XORG_DEFAULT_OPTIONS
3174 DEPDIR="${am__leading_dot}deps"
3176 ac_config_commands="$ac_config_commands depfiles"
3179 am_make=${MAKE-make}
3180 cat > confinc << 'END'
3181 am__doit:
3182         @echo done
3183 .PHONY: am__doit
3184 END
3185 # If we don't find an include directive, just comment out the code.
3186 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3187 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3188 am__include="#"
3189 am__quote=
3190 _am_result=none
3191 # First try GNU make style include.
3192 echo "include confinc" > confmf
3193 # We grep out `Entering directory' and `Leaving directory'
3194 # messages which can occur if `w' ends up in MAKEFLAGS.
3195 # In particular we don't look at `^make:' because GNU make might
3196 # be invoked under some other name (usually "gmake"), in which
3197 # case it prints its new name instead of `make'.
3198 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3199    am__include=include
3200    am__quote=
3201    _am_result=GNU
3202 fi
3203 # Now try BSD make style include.
3204 if test "$am__include" = "#"; then
3205    echo '.include "confinc"' > confmf
3206    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3207       am__include=.include
3208       am__quote="\""
3209       _am_result=BSD
3210    fi
3211 fi
3214 { echo "$as_me:$LINENO: result: $_am_result" >&5
3215 echo "${ECHO_T}$_am_result" >&6; }
3216 rm -f confinc confmf
3218 # Check whether --enable-dependency-tracking was given.
3219 if test "${enable_dependency_tracking+set}" = set; then
3220   enableval=$enable_dependency_tracking;
3221 fi
3223 if test "x$enable_dependency_tracking" != xno; then
3224   am_depcomp="$ac_aux_dir/depcomp"
3225   AMDEPBACKSLASH='\'
3226 fi
3227  if test "x$enable_dependency_tracking" != xno; then
3228   AMDEP_TRUE=
3229   AMDEP_FALSE='#'
3230 else
3231   AMDEP_TRUE='#'
3232   AMDEP_FALSE=
3233 fi
3236 ac_ext=c
3237 ac_cpp='$CPP $CPPFLAGS'
3238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241 if test -n "$ac_tool_prefix"; then
3242   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3243 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3246 if test "${ac_cv_prog_CC+set}" = set; then
3247   echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3249   if test -n "$CC"; then
3250   ac_cv_prog_CC="$CC" # Let the user override the test.
3251 else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3254 do
3255   IFS=$as_save_IFS
3256   test -z "$as_dir" && as_dir=.
3257   for ac_exec_ext in '' $ac_executable_extensions; do
3258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3259     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3261     break 2
3262   fi
3263 done
3264 done
3265 IFS=$as_save_IFS
3267 fi
3268 fi
3269 CC=$ac_cv_prog_CC
3270 if test -n "$CC"; then
3271   { echo "$as_me:$LINENO: result: $CC" >&5
3272 echo "${ECHO_T}$CC" >&6; }
3273 else
3274   { echo "$as_me:$LINENO: result: no" >&5
3275 echo "${ECHO_T}no" >&6; }
3276 fi
3279 fi
3280 if test -z "$ac_cv_prog_CC"; then
3281   ac_ct_CC=$CC
3282   # Extract the first word of "gcc", so it can be a program name with args.
3283 set dummy gcc; ac_word=$2
3284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3286 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3287   echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289   if test -n "$ac_ct_CC"; then
3290   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3291 else
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3294 do
3295   IFS=$as_save_IFS
3296   test -z "$as_dir" && as_dir=.
3297   for ac_exec_ext in '' $ac_executable_extensions; do
3298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3299     ac_cv_prog_ac_ct_CC="gcc"
3300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3301     break 2
3302   fi
3303 done
3304 done
3305 IFS=$as_save_IFS
3307 fi
3308 fi
3309 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3310 if test -n "$ac_ct_CC"; then
3311   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3312 echo "${ECHO_T}$ac_ct_CC" >&6; }
3313 else
3314   { echo "$as_me:$LINENO: result: no" >&5
3315 echo "${ECHO_T}no" >&6; }
3316 fi
3318   if test "x$ac_ct_CC" = x; then
3319     CC=""
3320   else
3321     case $cross_compiling:$ac_tool_warned in
3322 yes:)
3323 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3324 whose name does not start with the host triplet.  If you think this
3325 configuration is useful to you, please write to autoconf@gnu.org." >&5
3326 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3327 whose name does not start with the host triplet.  If you think this
3328 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3329 ac_tool_warned=yes ;;
3330 esac
3331     CC=$ac_ct_CC
3332   fi
3333 else
3334   CC="$ac_cv_prog_CC"
3335 fi
3337 if test -z "$CC"; then
3338           if test -n "$ac_tool_prefix"; then
3339     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3340 set dummy ${ac_tool_prefix}cc; ac_word=$2
3341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3343 if test "${ac_cv_prog_CC+set}" = set; then
3344   echo $ECHO_N "(cached) $ECHO_C" >&6
3345 else
3346   if test -n "$CC"; then
3347   ac_cv_prog_CC="$CC" # Let the user override the test.
3348 else
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3351 do
3352   IFS=$as_save_IFS
3353   test -z "$as_dir" && as_dir=.
3354   for ac_exec_ext in '' $ac_executable_extensions; do
3355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3356     ac_cv_prog_CC="${ac_tool_prefix}cc"
3357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3358     break 2
3359   fi
3360 done
3361 done
3362 IFS=$as_save_IFS
3364 fi
3365 fi
3366 CC=$ac_cv_prog_CC
3367 if test -n "$CC"; then
3368   { echo "$as_me:$LINENO: result: $CC" >&5
3369 echo "${ECHO_T}$CC" >&6; }
3370 else
3371   { echo "$as_me:$LINENO: result: no" >&5
3372 echo "${ECHO_T}no" >&6; }
3373 fi
3376   fi
3377 fi
3378 if test -z "$CC"; then
3379   # Extract the first word of "cc", so it can be a program name with args.
3380 set dummy cc; ac_word=$2
3381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3383 if test "${ac_cv_prog_CC+set}" = set; then
3384   echo $ECHO_N "(cached) $ECHO_C" >&6
3385 else
3386   if test -n "$CC"; then
3387   ac_cv_prog_CC="$CC" # Let the user override the test.
3388 else
3389   ac_prog_rejected=no
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3392 do
3393   IFS=$as_save_IFS
3394   test -z "$as_dir" && as_dir=.
3395   for ac_exec_ext in '' $ac_executable_extensions; do
3396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3397     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3398        ac_prog_rejected=yes
3399        continue
3400      fi
3401     ac_cv_prog_CC="cc"
3402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3403     break 2
3404   fi
3405 done
3406 done
3407 IFS=$as_save_IFS
3409 if test $ac_prog_rejected = yes; then
3410   # We found a bogon in the path, so make sure we never use it.
3411   set dummy $ac_cv_prog_CC
3412   shift
3413   if test $# != 0; then
3414     # We chose a different compiler from the bogus one.
3415     # However, it has the same basename, so the bogon will be chosen
3416     # first if we set CC to just the basename; use the full file name.
3417     shift
3418     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3419   fi
3420 fi
3421 fi
3422 fi
3423 CC=$ac_cv_prog_CC
3424 if test -n "$CC"; then
3425   { echo "$as_me:$LINENO: result: $CC" >&5
3426 echo "${ECHO_T}$CC" >&6; }
3427 else
3428   { echo "$as_me:$LINENO: result: no" >&5
3429 echo "${ECHO_T}no" >&6; }
3430 fi
3433 fi
3434 if test -z "$CC"; then
3435   if test -n "$ac_tool_prefix"; then
3436   for ac_prog in cl.exe
3437   do
3438     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3439 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3442 if test "${ac_cv_prog_CC+set}" = set; then
3443   echo $ECHO_N "(cached) $ECHO_C" >&6
3444 else
3445   if test -n "$CC"; then
3446   ac_cv_prog_CC="$CC" # Let the user override the test.
3447 else
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH
3450 do
3451   IFS=$as_save_IFS
3452   test -z "$as_dir" && as_dir=.
3453   for ac_exec_ext in '' $ac_executable_extensions; do
3454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3457     break 2
3458   fi
3459 done
3460 done
3461 IFS=$as_save_IFS
3463 fi
3464 fi
3465 CC=$ac_cv_prog_CC
3466 if test -n "$CC"; then
3467   { echo "$as_me:$LINENO: result: $CC" >&5
3468 echo "${ECHO_T}$CC" >&6; }
3469 else
3470   { echo "$as_me:$LINENO: result: no" >&5
3471 echo "${ECHO_T}no" >&6; }
3472 fi
3475     test -n "$CC" && break
3476   done
3477 fi
3478 if test -z "$CC"; then
3479   ac_ct_CC=$CC
3480   for ac_prog in cl.exe
3481 do
3482   # Extract the first word of "$ac_prog", so it can be a program name with args.
3483 set dummy $ac_prog; ac_word=$2
3484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3486 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3487   echo $ECHO_N "(cached) $ECHO_C" >&6
3488 else
3489   if test -n "$ac_ct_CC"; then
3490   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3491 else
3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 for as_dir in $PATH
3494 do
3495   IFS=$as_save_IFS
3496   test -z "$as_dir" && as_dir=.
3497   for ac_exec_ext in '' $ac_executable_extensions; do
3498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3499     ac_cv_prog_ac_ct_CC="$ac_prog"
3500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3501     break 2
3502   fi
3503 done
3504 done
3505 IFS=$as_save_IFS
3507 fi
3508 fi
3509 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3510 if test -n "$ac_ct_CC"; then
3511   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3512 echo "${ECHO_T}$ac_ct_CC" >&6; }
3513 else
3514   { echo "$as_me:$LINENO: result: no" >&5
3515 echo "${ECHO_T}no" >&6; }
3516 fi
3519   test -n "$ac_ct_CC" && break
3520 done
3522   if test "x$ac_ct_CC" = x; then
3523     CC=""
3524   else
3525     case $cross_compiling:$ac_tool_warned in
3526 yes:)
3527 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3528 whose name does not start with the host triplet.  If you think this
3529 configuration is useful to you, please write to autoconf@gnu.org." >&5
3530 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3531 whose name does not start with the host triplet.  If you think this
3532 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3533 ac_tool_warned=yes ;;
3534 esac
3535     CC=$ac_ct_CC
3536   fi
3537 fi
3539 fi
3542 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3543 See \`config.log' for more details." >&5
3544 echo "$as_me: error: no acceptable C compiler found in \$PATH
3545 See \`config.log' for more details." >&2;}
3546    { (exit 1); exit 1; }; }
3548 # Provide some information about the compiler.
3549 echo "$as_me:$LINENO: checking for C compiler version" >&5
3550 ac_compiler=`set X $ac_compile; echo $2`
3551 { (ac_try="$ac_compiler --version >&5"
3552 case "(($ac_try" in
3553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554   *) ac_try_echo=$ac_try;;
3555 esac
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557   (eval "$ac_compiler --version >&5") 2>&5
3558   ac_status=$?
3559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560   (exit $ac_status); }
3561 { (ac_try="$ac_compiler -v >&5"
3562 case "(($ac_try" in
3563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564   *) ac_try_echo=$ac_try;;
3565 esac
3566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3567   (eval "$ac_compiler -v >&5") 2>&5
3568   ac_status=$?
3569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570   (exit $ac_status); }
3571 { (ac_try="$ac_compiler -V >&5"
3572 case "(($ac_try" in
3573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574   *) ac_try_echo=$ac_try;;
3575 esac
3576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3577   (eval "$ac_compiler -V >&5") 2>&5
3578   ac_status=$?
3579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580   (exit $ac_status); }
3582 cat >conftest.$ac_ext <<_ACEOF
3583 /* confdefs.h.  */
3584 _ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h.  */
3589 int
3590 main ()
3593   ;
3594   return 0;
3596 _ACEOF
3597 ac_clean_files_save=$ac_clean_files
3598 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3599 # Try to create an executable without -o first, disregard a.out.
3600 # It will help us diagnose broken compilers, and finding out an intuition
3601 # of exeext.
3602 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3603 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3604 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3606 # List of possible output files, starting from the most likely.
3607 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3608 # only as a last resort.  b.out is created by i960 compilers.
3609 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3611 # The IRIX 6 linker writes into existing files which may not be
3612 # executable, retaining their permissions.  Remove them first so a
3613 # subsequent execution test works.
3614 ac_rmfiles=
3615 for ac_file in $ac_files
3616 do
3617   case $ac_file in
3618     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3619     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3620   esac
3621 done
3622 rm -f $ac_rmfiles
3624 if { (ac_try="$ac_link_default"
3625 case "(($ac_try" in
3626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627   *) ac_try_echo=$ac_try;;
3628 esac
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630   (eval "$ac_link_default") 2>&5
3631   ac_status=$?
3632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633   (exit $ac_status); }; then
3634   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3635 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3636 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3637 # so that the user can short-circuit this test for compilers unknown to
3638 # Autoconf.
3639 for ac_file in $ac_files ''
3640 do
3641   test -f "$ac_file" || continue
3642   case $ac_file in
3643     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3644         ;;
3645     [ab].out )
3646         # We found the default executable, but exeext='' is most
3647         # certainly right.
3648         break;;
3649     *.* )
3650         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3651         then :; else
3652            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3653         fi
3654         # We set ac_cv_exeext here because the later test for it is not
3655         # safe: cross compilers may not add the suffix if given an `-o'
3656         # argument, so we may need to know it at that point already.
3657         # Even if this section looks crufty: it has the advantage of
3658         # actually working.
3659         break;;
3660     * )
3661         break;;
3662   esac
3663 done
3664 test "$ac_cv_exeext" = no && ac_cv_exeext=
3666 else
3667   ac_file=''
3668 fi
3670 { echo "$as_me:$LINENO: result: $ac_file" >&5
3671 echo "${ECHO_T}$ac_file" >&6; }
3672 if test -z "$ac_file"; then
3673   echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3676 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3677 See \`config.log' for more details." >&5
3678 echo "$as_me: error: C compiler cannot create executables
3679 See \`config.log' for more details." >&2;}
3680    { (exit 77); exit 77; }; }
3681 fi
3683 ac_exeext=$ac_cv_exeext
3685 # Check that the compiler produces executables we can run.  If not, either
3686 # the compiler is broken, or we cross compile.
3687 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3688 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3689 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3690 # If not cross compiling, check that we can run a simple program.
3691 if test "$cross_compiling" != yes; then
3692   if { ac_try='./$ac_file'
3693   { (case "(($ac_try" in
3694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695   *) ac_try_echo=$ac_try;;
3696 esac
3697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698   (eval "$ac_try") 2>&5
3699   ac_status=$?
3700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701   (exit $ac_status); }; }; then
3702     cross_compiling=no
3703   else
3704     if test "$cross_compiling" = maybe; then
3705         cross_compiling=yes
3706     else
3707         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3708 If you meant to cross compile, use \`--host'.
3709 See \`config.log' for more details." >&5
3710 echo "$as_me: error: cannot run C compiled programs.
3711 If you meant to cross compile, use \`--host'.
3712 See \`config.log' for more details." >&2;}
3713    { (exit 1); exit 1; }; }
3714     fi
3715   fi
3716 fi
3717 { echo "$as_me:$LINENO: result: yes" >&5
3718 echo "${ECHO_T}yes" >&6; }
3720 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3721 ac_clean_files=$ac_clean_files_save
3722 # Check that the compiler produces executables we can run.  If not, either
3723 # the compiler is broken, or we cross compile.
3724 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3725 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3726 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3727 echo "${ECHO_T}$cross_compiling" >&6; }
3729 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3730 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3731 if { (ac_try="$ac_link"
3732 case "(($ac_try" in
3733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3734   *) ac_try_echo=$ac_try;;
3735 esac
3736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3737   (eval "$ac_link") 2>&5
3738   ac_status=$?
3739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740   (exit $ac_status); }; then
3741   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3742 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3743 # work properly (i.e., refer to `conftest.exe'), while it won't with
3744 # `rm'.
3745 for ac_file in conftest.exe conftest conftest.*; do
3746   test -f "$ac_file" || continue
3747   case $ac_file in
3748     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3749     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3750           break;;
3751     * ) break;;
3752   esac
3753 done
3754 else
3755   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3756 See \`config.log' for more details." >&5
3757 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3758 See \`config.log' for more details." >&2;}
3759    { (exit 1); exit 1; }; }
3760 fi
3762 rm -f conftest$ac_cv_exeext
3763 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3764 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3766 rm -f conftest.$ac_ext
3767 EXEEXT=$ac_cv_exeext
3768 ac_exeext=$EXEEXT
3769 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3770 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3771 if test "${ac_cv_objext+set}" = set; then
3772   echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774   cat >conftest.$ac_ext <<_ACEOF
3775 /* confdefs.h.  */
3776 _ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h.  */
3781 int
3782 main ()
3785   ;
3786   return 0;
3788 _ACEOF
3789 rm -f conftest.o conftest.obj
3790 if { (ac_try="$ac_compile"
3791 case "(($ac_try" in
3792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793   *) ac_try_echo=$ac_try;;
3794 esac
3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796   (eval "$ac_compile") 2>&5
3797   ac_status=$?
3798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799   (exit $ac_status); }; then
3800   for ac_file in conftest.o conftest.obj conftest.*; do
3801   test -f "$ac_file" || continue;
3802   case $ac_file in
3803     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3804     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3805        break;;
3806   esac
3807 done
3808 else
3809   echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3812 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3813 See \`config.log' for more details." >&5
3814 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3815 See \`config.log' for more details." >&2;}
3816    { (exit 1); exit 1; }; }
3817 fi
3819 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3820 fi
3821 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3822 echo "${ECHO_T}$ac_cv_objext" >&6; }
3823 OBJEXT=$ac_cv_objext
3824 ac_objext=$OBJEXT
3825 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3826 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3827 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3828   echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830   cat >conftest.$ac_ext <<_ACEOF
3831 /* confdefs.h.  */
3832 _ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h.  */
3837 int
3838 main ()
3840 #ifndef __GNUC__
3841        choke me
3842 #endif
3844   ;
3845   return 0;
3847 _ACEOF
3848 rm -f conftest.$ac_objext
3849 if { (ac_try="$ac_compile"
3850 case "(($ac_try" in
3851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852   *) ac_try_echo=$ac_try;;
3853 esac
3854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3855   (eval "$ac_compile") 2>conftest.er1
3856   ac_status=$?
3857   grep -v '^ *+' conftest.er1 >conftest.err
3858   rm -f conftest.er1
3859   cat conftest.err >&5
3860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861   (exit $ac_status); } && {
3862          test -z "$ac_c_werror_flag" ||
3863          test ! -s conftest.err
3864        } && test -s conftest.$ac_objext; then
3865   ac_compiler_gnu=yes
3866 else
3867   echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870         ac_compiler_gnu=no
3871 fi
3873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3874 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3876 fi
3877 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3878 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3879 GCC=`test $ac_compiler_gnu = yes && echo yes`
3880 ac_test_CFLAGS=${CFLAGS+set}
3881 ac_save_CFLAGS=$CFLAGS
3882 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3883 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3884 if test "${ac_cv_prog_cc_g+set}" = set; then
3885   echo $ECHO_N "(cached) $ECHO_C" >&6
3886 else
3887   ac_save_c_werror_flag=$ac_c_werror_flag
3888    ac_c_werror_flag=yes
3889    ac_cv_prog_cc_g=no
3890    CFLAGS="-g"
3891    cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h.  */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h.  */
3898 int
3899 main ()
3902   ;
3903   return 0;
3905 _ACEOF
3906 rm -f conftest.$ac_objext
3907 if { (ac_try="$ac_compile"
3908 case "(($ac_try" in
3909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910   *) ac_try_echo=$ac_try;;
3911 esac
3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913   (eval "$ac_compile") 2>conftest.er1
3914   ac_status=$?
3915   grep -v '^ *+' conftest.er1 >conftest.err
3916   rm -f conftest.er1
3917   cat conftest.err >&5
3918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919   (exit $ac_status); } && {
3920          test -z "$ac_c_werror_flag" ||
3921          test ! -s conftest.err
3922        } && test -s conftest.$ac_objext; then
3923   ac_cv_prog_cc_g=yes
3924 else
3925   echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3928         CFLAGS=""
3929       cat >conftest.$ac_ext <<_ACEOF
3930 /* confdefs.h.  */
3931 _ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h.  */
3936 int
3937 main ()
3940   ;
3941   return 0;
3943 _ACEOF
3944 rm -f conftest.$ac_objext
3945 if { (ac_try="$ac_compile"
3946 case "(($ac_try" in
3947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948   *) ac_try_echo=$ac_try;;
3949 esac
3950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3951   (eval "$ac_compile") 2>conftest.er1
3952   ac_status=$?
3953   grep -v '^ *+' conftest.er1 >conftest.err
3954   rm -f conftest.er1
3955   cat conftest.err >&5
3956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957   (exit $ac_status); } && {
3958          test -z "$ac_c_werror_flag" ||
3959          test ! -s conftest.err
3960        } && test -s conftest.$ac_objext; then
3961   :
3962 else
3963   echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3966         ac_c_werror_flag=$ac_save_c_werror_flag
3967          CFLAGS="-g"
3968          cat >conftest.$ac_ext <<_ACEOF
3969 /* confdefs.h.  */
3970 _ACEOF
3971 cat confdefs.h >>conftest.$ac_ext
3972 cat >>conftest.$ac_ext <<_ACEOF
3973 /* end confdefs.h.  */
3975 int
3976 main ()
3979   ;
3980   return 0;
3982 _ACEOF
3983 rm -f conftest.$ac_objext
3984 if { (ac_try="$ac_compile"
3985 case "(($ac_try" in
3986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987   *) ac_try_echo=$ac_try;;
3988 esac
3989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3990   (eval "$ac_compile") 2>conftest.er1
3991   ac_status=$?
3992   grep -v '^ *+' conftest.er1 >conftest.err
3993   rm -f conftest.er1
3994   cat conftest.err >&5
3995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996   (exit $ac_status); } && {
3997          test -z "$ac_c_werror_flag" ||
3998          test ! -s conftest.err
3999        } && test -s conftest.$ac_objext; then
4000   ac_cv_prog_cc_g=yes
4001 else
4002   echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4006 fi
4008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009 fi
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012 fi
4014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4015    ac_c_werror_flag=$ac_save_c_werror_flag
4016 fi
4017 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4018 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4019 if test "$ac_test_CFLAGS" = set; then
4020   CFLAGS=$ac_save_CFLAGS
4021 elif test $ac_cv_prog_cc_g = yes; then
4022   if test "$GCC" = yes; then
4023     CFLAGS="-g -O2"
4024   else
4025     CFLAGS="-g"
4026   fi
4027 else
4028   if test "$GCC" = yes; then
4029     CFLAGS="-O2"
4030   else
4031     CFLAGS=
4032   fi
4033 fi
4034 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4035 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4036 if test "${ac_cv_prog_cc_c89+set}" = set; then
4037   echo $ECHO_N "(cached) $ECHO_C" >&6
4038 else
4039   ac_cv_prog_cc_c89=no
4040 ac_save_CC=$CC
4041 cat >conftest.$ac_ext <<_ACEOF
4042 /* confdefs.h.  */
4043 _ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h.  */
4047 #include <stdarg.h>
4048 #include <stdio.h>
4049 #include <sys/types.h>
4050 #include <sys/stat.h>
4051 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4052 struct buf { int x; };
4053 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4054 static char *e (p, i)
4055      char **p;
4056      int i;
4058   return p[i];
4060 static char *f (char * (*g) (char **, int), char **p, ...)
4062   char *s;
4063   va_list v;
4064   va_start (v,p);
4065   s = g (p, va_arg (v,int));
4066   va_end (v);
4067   return s;
4070 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4071    function prototypes and stuff, but not '\xHH' hex character constants.
4072    These don't provoke an error unfortunately, instead are silently treated
4073    as 'x'.  The following induces an error, until -std is added to get
4074    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4075    array size at least.  It's necessary to write '\x00'==0 to get something
4076    that's true only with -std.  */
4077 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4079 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4080    inside strings and character constants.  */
4081 #define FOO(x) 'x'
4082 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4084 int test (int i, double x);
4085 struct s1 {int (*f) (int a);};
4086 struct s2 {int (*f) (double a);};
4087 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4088 int argc;
4089 char **argv;
4090 int
4091 main ()
4093 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4094   ;
4095   return 0;
4097 _ACEOF
4098 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4099         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4100 do
4101   CC="$ac_save_CC $ac_arg"
4102   rm -f conftest.$ac_objext
4103 if { (ac_try="$ac_compile"
4104 case "(($ac_try" in
4105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106   *) ac_try_echo=$ac_try;;
4107 esac
4108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4109   (eval "$ac_compile") 2>conftest.er1
4110   ac_status=$?
4111   grep -v '^ *+' conftest.er1 >conftest.err
4112   rm -f conftest.er1
4113   cat conftest.err >&5
4114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115   (exit $ac_status); } && {
4116          test -z "$ac_c_werror_flag" ||
4117          test ! -s conftest.err
4118        } && test -s conftest.$ac_objext; then
4119   ac_cv_prog_cc_c89=$ac_arg
4120 else
4121   echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4125 fi
4127 rm -f core conftest.err conftest.$ac_objext
4128   test "x$ac_cv_prog_cc_c89" != "xno" && break
4129 done
4130 rm -f conftest.$ac_ext
4131 CC=$ac_save_CC
4133 fi
4134 # AC_CACHE_VAL
4135 case "x$ac_cv_prog_cc_c89" in
4136   x)
4137     { echo "$as_me:$LINENO: result: none needed" >&5
4138 echo "${ECHO_T}none needed" >&6; } ;;
4139   xno)
4140     { echo "$as_me:$LINENO: result: unsupported" >&5
4141 echo "${ECHO_T}unsupported" >&6; } ;;
4142   *)
4143     CC="$CC $ac_cv_prog_cc_c89"
4144     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4145 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4146 esac
4149 ac_ext=c
4150 ac_cpp='$CPP $CPPFLAGS'
4151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4155 depcc="$CC"   am_compiler_list=
4157 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4158 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4159 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4160   echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4163   # We make a subdir and do the tests there.  Otherwise we can end up
4164   # making bogus files that we don't know about and never remove.  For
4165   # instance it was reported that on HP-UX the gcc test will end up
4166   # making a dummy file named `D' -- because `-MD' means `put the output
4167   # in D'.
4168   mkdir conftest.dir
4169   # Copy depcomp to subdir because otherwise we won't find it if we're
4170   # using a relative directory.
4171   cp "$am_depcomp" conftest.dir
4172   cd conftest.dir
4173   # We will build objects and dependencies in a subdirectory because
4174   # it helps to detect inapplicable dependency modes.  For instance
4175   # both Tru64's cc and ICC support -MD to output dependencies as a
4176   # side effect of compilation, but ICC will put the dependencies in
4177   # the current directory while Tru64 will put them in the object
4178   # directory.
4179   mkdir sub
4181   am_cv_CC_dependencies_compiler_type=none
4182   if test "$am_compiler_list" = ""; then
4183      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4184   fi
4185   for depmode in $am_compiler_list; do
4186     # Setup a source with many dependencies, because some compilers
4187     # like to wrap large dependency lists on column 80 (with \), and
4188     # we should not choose a depcomp mode which is confused by this.
4189     #
4190     # We need to recreate these files for each test, as the compiler may
4191     # overwrite some of them when testing with obscure command lines.
4192     # This happens at least with the AIX C compiler.
4193     : > sub/conftest.c
4194     for i in 1 2 3 4 5 6; do
4195       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4196       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4197       # Solaris 8's {/usr,}/bin/sh.
4198       touch sub/conftst$i.h
4199     done
4200     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4202     case $depmode in
4203     nosideeffect)
4204       # after this tag, mechanisms are not by side-effect, so they'll
4205       # only be used when explicitly requested
4206       if test "x$enable_dependency_tracking" = xyes; then
4207         continue
4208       else
4209         break
4210       fi
4211       ;;
4212     none) break ;;
4213     esac
4214     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4215     # mode.  It turns out that the SunPro C++ compiler does not properly
4216     # handle `-M -o', and we need to detect this.
4217     if depmode=$depmode \
4218        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4219        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4220        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4221          >/dev/null 2>conftest.err &&
4222        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4223        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4224        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4225        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4226       # icc doesn't choke on unknown options, it will just issue warnings
4227       # or remarks (even with -Werror).  So we grep stderr for any message
4228       # that says an option was ignored or not supported.
4229       # When given -MP, icc 7.0 and 7.1 complain thusly:
4230       #   icc: Command line warning: ignoring option '-M'; no argument required
4231       # The diagnosis changed in icc 8.0:
4232       #   icc: Command line remark: option '-MP' not supported
4233       if (grep 'ignoring option' conftest.err ||
4234           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4235         am_cv_CC_dependencies_compiler_type=$depmode
4236         break
4237       fi
4238     fi
4239   done
4241   cd ..
4242   rm -rf conftest.dir
4243 else
4244   am_cv_CC_dependencies_compiler_type=none
4245 fi
4247 fi
4248 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4249 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4250 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4252  if
4253   test "x$enable_dependency_tracking" != xno \
4254   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4255   am__fastdepCC_TRUE=
4256   am__fastdepCC_FALSE='#'
4257 else
4258   am__fastdepCC_TRUE='#'
4259   am__fastdepCC_FALSE=
4260 fi
4263    { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4264 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
4265 if test "${ac_cv_prog_cc_c99+set}" = set; then
4266   echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268   ac_cv_prog_cc_c99=no
4269 ac_save_CC=$CC
4270 cat >conftest.$ac_ext <<_ACEOF
4271 /* confdefs.h.  */
4272 _ACEOF
4273 cat confdefs.h >>conftest.$ac_ext
4274 cat >>conftest.$ac_ext <<_ACEOF
4275 /* end confdefs.h.  */
4276 #include <stdarg.h>
4277 #include <stdbool.h>
4278 #include <stdlib.h>
4279 #include <wchar.h>
4280 #include <stdio.h>
4282 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
4283 #define debug(...) fprintf (stderr, __VA_ARGS__)
4284 #define showlist(...) puts (#__VA_ARGS__)
4285 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4286 static void
4287 test_varargs_macros (void)
4289   int x = 1234;
4290   int y = 5678;
4291   debug ("Flag");
4292   debug ("X = %d\n", x);
4293   showlist (The first, second, and third items.);
4294   report (x>y, "x is %d but y is %d", x, y);
4297 // Check long long types.
4298 #define BIG64 18446744073709551615ull
4299 #define BIG32 4294967295ul
4300 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4301 #if !BIG_OK
4302   your preprocessor is broken;
4303 #endif
4304 #if BIG_OK
4305 #else
4306   your preprocessor is broken;
4307 #endif
4308 static long long int bignum = -9223372036854775807LL;
4309 static unsigned long long int ubignum = BIG64;
4311 struct incomplete_array
4313   int datasize;
4314   double data[];
4315 };
4317 struct named_init {
4318   int number;
4319   const wchar_t *name;
4320   double average;
4321 };
4323 typedef const char *ccp;
4325 static inline int
4326 test_restrict (ccp restrict text)
4328   // See if C++-style comments work.
4329   // Iterate through items via the restricted pointer.
4330   // Also check for declarations in for loops.
4331   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4332     continue;
4333   return 0;
4336 // Check varargs and va_copy.
4337 static void
4338 test_varargs (const char *format, ...)
4340   va_list args;
4341   va_start (args, format);
4342   va_list args_copy;
4343   va_copy (args_copy, args);
4345   const char *str;
4346   int number;
4347   float fnumber;
4349   while (*format)
4350     {
4351       switch (*format++)
4352         {
4353         case 's': // string
4354           str = va_arg (args_copy, const char *);
4355           break;
4356         case 'd': // int
4357           number = va_arg (args_copy, int);
4358           break;
4359         case 'f': // float
4360           fnumber = va_arg (args_copy, double);
4361           break;
4362         default:
4363           break;
4364         }
4365     }
4366   va_end (args_copy);
4367   va_end (args);
4370 int
4371 main ()
4374   // Check bool.
4375   _Bool success = false;
4377   // Check restrict.
4378   if (test_restrict ("String literal") == 0)
4379     success = true;
4380   char *restrict newvar = "Another string";
4382   // Check varargs.
4383   test_varargs ("s, d' f .", "string", 65, 34.234);
4384   test_varargs_macros ();
4386   // Check flexible array members.
4387   struct incomplete_array *ia =
4388     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4389   ia->datasize = 10;
4390   for (int i = 0; i < ia->datasize; ++i)
4391     ia->data[i] = i * 1.234;
4393   // Check named initializers.
4394   struct named_init ni = {
4395     .number = 34,
4396     .name = L"Test wide string",
4397     .average = 543.34343,
4398   };
4400   ni.number = 58;
4402   int dynamic_array[ni.number];
4403   dynamic_array[ni.number - 1] = 543;
4405   // work around unused variable warnings
4406   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4407           || dynamic_array[ni.number - 1] != 543);
4409   ;
4410   return 0;
4412 _ACEOF
4413 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
4414 do
4415   CC="$ac_save_CC $ac_arg"
4416   rm -f conftest.$ac_objext
4417 if { (ac_try="$ac_compile"
4418 case "(($ac_try" in
4419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420   *) ac_try_echo=$ac_try;;
4421 esac
4422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4423   (eval "$ac_compile") 2>conftest.er1
4424   ac_status=$?
4425   grep -v '^ *+' conftest.er1 >conftest.err
4426   rm -f conftest.er1
4427   cat conftest.err >&5
4428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429   (exit $ac_status); } && {
4430          test -z "$ac_c_werror_flag" ||
4431          test ! -s conftest.err
4432        } && test -s conftest.$ac_objext; then
4433   ac_cv_prog_cc_c99=$ac_arg
4434 else
4435   echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4439 fi
4441 rm -f core conftest.err conftest.$ac_objext
4442   test "x$ac_cv_prog_cc_c99" != "xno" && break
4443 done
4444 rm -f conftest.$ac_ext
4445 CC=$ac_save_CC
4447 fi
4448 # AC_CACHE_VAL
4449 case "x$ac_cv_prog_cc_c99" in
4450   x)
4451     { echo "$as_me:$LINENO: result: none needed" >&5
4452 echo "${ECHO_T}none needed" >&6; } ;;
4453   xno)
4454     { echo "$as_me:$LINENO: result: unsupported" >&5
4455 echo "${ECHO_T}unsupported" >&6; } ;;
4456   *)
4457     CC="$CC $ac_cv_prog_cc_c99"
4458     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4459 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
4460 esac
4465 ac_ext=c
4466 ac_cpp='$CPP $CPPFLAGS'
4467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4470 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4471 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4472 # On Suns, sometimes $CPP names a directory.
4473 if test -n "$CPP" && test -d "$CPP"; then
4474   CPP=
4475 fi
4476 if test -z "$CPP"; then
4477   if test "${ac_cv_prog_CPP+set}" = set; then
4478   echo $ECHO_N "(cached) $ECHO_C" >&6
4479 else
4480       # Double quotes because CPP needs to be expanded
4481     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4482     do
4483       ac_preproc_ok=false
4484 for ac_c_preproc_warn_flag in '' yes
4485 do
4486   # Use a header file that comes with gcc, so configuring glibc
4487   # with a fresh cross-compiler works.
4488   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4489   # <limits.h> exists even on freestanding compilers.
4490   # On the NeXT, cc -E runs the code through the compiler's parser,
4491   # not just through cpp. "Syntax error" is here to catch this case.
4492   cat >conftest.$ac_ext <<_ACEOF
4493 /* confdefs.h.  */
4494 _ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h.  */
4498 #ifdef __STDC__
4499 # include <limits.h>
4500 #else
4501 # include <assert.h>
4502 #endif
4503                      Syntax error
4504 _ACEOF
4505 if { (ac_try="$ac_cpp conftest.$ac_ext"
4506 case "(($ac_try" in
4507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508   *) ac_try_echo=$ac_try;;
4509 esac
4510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4512   ac_status=$?
4513   grep -v '^ *+' conftest.er1 >conftest.err
4514   rm -f conftest.er1
4515   cat conftest.err >&5
4516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517   (exit $ac_status); } >/dev/null && {
4518          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4519          test ! -s conftest.err
4520        }; then
4521   :
4522 else
4523   echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4526   # Broken: fails on valid input.
4527 continue
4528 fi
4530 rm -f conftest.err conftest.$ac_ext
4532   # OK, works on sane cases.  Now check whether nonexistent headers
4533   # can be detected and how.
4534   cat >conftest.$ac_ext <<_ACEOF
4535 /* confdefs.h.  */
4536 _ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h.  */
4540 #include <ac_nonexistent.h>
4541 _ACEOF
4542 if { (ac_try="$ac_cpp conftest.$ac_ext"
4543 case "(($ac_try" in
4544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545   *) ac_try_echo=$ac_try;;
4546 esac
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4549   ac_status=$?
4550   grep -v '^ *+' conftest.er1 >conftest.err
4551   rm -f conftest.er1
4552   cat conftest.err >&5
4553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554   (exit $ac_status); } >/dev/null && {
4555          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4556          test ! -s conftest.err
4557        }; then
4558   # Broken: success on invalid input.
4559 continue
4560 else
4561   echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4564   # Passes both tests.
4565 ac_preproc_ok=:
4566 break
4567 fi
4569 rm -f conftest.err conftest.$ac_ext
4571 done
4572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4573 rm -f conftest.err conftest.$ac_ext
4574 if $ac_preproc_ok; then
4575   break
4576 fi
4578     done
4579     ac_cv_prog_CPP=$CPP
4581 fi
4582   CPP=$ac_cv_prog_CPP
4583 else
4584   ac_cv_prog_CPP=$CPP
4585 fi
4586 { echo "$as_me:$LINENO: result: $CPP" >&5
4587 echo "${ECHO_T}$CPP" >&6; }
4588 ac_preproc_ok=false
4589 for ac_c_preproc_warn_flag in '' yes
4590 do
4591   # Use a header file that comes with gcc, so configuring glibc
4592   # with a fresh cross-compiler works.
4593   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4594   # <limits.h> exists even on freestanding compilers.
4595   # On the NeXT, cc -E runs the code through the compiler's parser,
4596   # not just through cpp. "Syntax error" is here to catch this case.
4597   cat >conftest.$ac_ext <<_ACEOF
4598 /* confdefs.h.  */
4599 _ACEOF
4600 cat confdefs.h >>conftest.$ac_ext
4601 cat >>conftest.$ac_ext <<_ACEOF
4602 /* end confdefs.h.  */
4603 #ifdef __STDC__
4604 # include <limits.h>
4605 #else
4606 # include <assert.h>
4607 #endif
4608                      Syntax error
4609 _ACEOF
4610 if { (ac_try="$ac_cpp conftest.$ac_ext"
4611 case "(($ac_try" in
4612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613   *) ac_try_echo=$ac_try;;
4614 esac
4615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4617   ac_status=$?
4618   grep -v '^ *+' conftest.er1 >conftest.err
4619   rm -f conftest.er1
4620   cat conftest.err >&5
4621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622   (exit $ac_status); } >/dev/null && {
4623          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4624          test ! -s conftest.err
4625        }; then
4626   :
4627 else
4628   echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4631   # Broken: fails on valid input.
4632 continue
4633 fi
4635 rm -f conftest.err conftest.$ac_ext
4637   # OK, works on sane cases.  Now check whether nonexistent headers
4638   # can be detected and how.
4639   cat >conftest.$ac_ext <<_ACEOF
4640 /* confdefs.h.  */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h.  */
4645 #include <ac_nonexistent.h>
4646 _ACEOF
4647 if { (ac_try="$ac_cpp conftest.$ac_ext"
4648 case "(($ac_try" in
4649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650   *) ac_try_echo=$ac_try;;
4651 esac
4652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4653   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4654   ac_status=$?
4655   grep -v '^ *+' conftest.er1 >conftest.err
4656   rm -f conftest.er1
4657   cat conftest.err >&5
4658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659   (exit $ac_status); } >/dev/null && {
4660          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4661          test ! -s conftest.err
4662        }; then
4663   # Broken: success on invalid input.
4664 continue
4665 else
4666   echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4669   # Passes both tests.
4670 ac_preproc_ok=:
4671 break
4672 fi
4674 rm -f conftest.err conftest.$ac_ext
4676 done
4677 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4678 rm -f conftest.err conftest.$ac_ext
4679 if $ac_preproc_ok; then
4680   :
4681 else
4682   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4683 See \`config.log' for more details." >&5
4684 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4685 See \`config.log' for more details." >&2;}
4686    { (exit 1); exit 1; }; }
4687 fi
4689 ac_ext=c
4690 ac_cpp='$CPP $CPPFLAGS'
4691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4696 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4697 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4698 if test "${ac_cv_path_GREP+set}" = set; then
4699   echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701   # Extract the first word of "grep ggrep" to use in msg output
4702 if test -z "$GREP"; then
4703 set dummy grep ggrep; ac_prog_name=$2
4704 if test "${ac_cv_path_GREP+set}" = set; then
4705   echo $ECHO_N "(cached) $ECHO_C" >&6
4706 else
4707   ac_path_GREP_found=false
4708 # Loop through the user's path and test for each of PROGNAME-LIST
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4711 do
4712   IFS=$as_save_IFS
4713   test -z "$as_dir" && as_dir=.
4714   for ac_prog in grep ggrep; do
4715   for ac_exec_ext in '' $ac_executable_extensions; do
4716     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4717     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4718     # Check for GNU ac_path_GREP and select it if it is found.
4719   # Check for GNU $ac_path_GREP
4720 case `"$ac_path_GREP" --version 2>&1` in
4721 *GNU*)
4722   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4723 *)
4724   ac_count=0
4725   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4726   while :
4727   do
4728     cat "conftest.in" "conftest.in" >"conftest.tmp"
4729     mv "conftest.tmp" "conftest.in"
4730     cp "conftest.in" "conftest.nl"
4731     echo 'GREP' >> "conftest.nl"
4732     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4733     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4734     ac_count=`expr $ac_count + 1`
4735     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4736       # Best one so far, save it but keep looking for a better one
4737       ac_cv_path_GREP="$ac_path_GREP"
4738       ac_path_GREP_max=$ac_count
4739     fi
4740     # 10*(2^10) chars as input seems more than enough
4741     test $ac_count -gt 10 && break
4742   done
4743   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4744 esac
4747     $ac_path_GREP_found && break 3
4748   done
4749 done
4751 done
4752 IFS=$as_save_IFS
4755 fi
4757 GREP="$ac_cv_path_GREP"
4758 if test -z "$GREP"; then
4759   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4760 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4761    { (exit 1); exit 1; }; }
4762 fi
4764 else
4765   ac_cv_path_GREP=$GREP
4766 fi
4769 fi
4770 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4771 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4772  GREP="$ac_cv_path_GREP"
4775 { echo "$as_me:$LINENO: checking for egrep" >&5
4776 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4777 if test "${ac_cv_path_EGREP+set}" = set; then
4778   echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4781    then ac_cv_path_EGREP="$GREP -E"
4782    else
4783      # Extract the first word of "egrep" to use in msg output
4784 if test -z "$EGREP"; then
4785 set dummy egrep; ac_prog_name=$2
4786 if test "${ac_cv_path_EGREP+set}" = set; then
4787   echo $ECHO_N "(cached) $ECHO_C" >&6
4788 else
4789   ac_path_EGREP_found=false
4790 # Loop through the user's path and test for each of PROGNAME-LIST
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4793 do
4794   IFS=$as_save_IFS
4795   test -z "$as_dir" && as_dir=.
4796   for ac_prog in egrep; do
4797   for ac_exec_ext in '' $ac_executable_extensions; do
4798     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4799     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4800     # Check for GNU ac_path_EGREP and select it if it is found.
4801   # Check for GNU $ac_path_EGREP
4802 case `"$ac_path_EGREP" --version 2>&1` in
4803 *GNU*)
4804   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4805 *)
4806   ac_count=0
4807   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4808   while :
4809   do
4810     cat "conftest.in" "conftest.in" >"conftest.tmp"
4811     mv "conftest.tmp" "conftest.in"
4812     cp "conftest.in" "conftest.nl"
4813     echo 'EGREP' >> "conftest.nl"
4814     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4815     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4816     ac_count=`expr $ac_count + 1`
4817     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4818       # Best one so far, save it but keep looking for a better one
4819       ac_cv_path_EGREP="$ac_path_EGREP"
4820       ac_path_EGREP_max=$ac_count
4821     fi
4822     # 10*(2^10) chars as input seems more than enough
4823     test $ac_count -gt 10 && break
4824   done
4825   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4826 esac
4829     $ac_path_EGREP_found && break 3
4830   done
4831 done
4833 done
4834 IFS=$as_save_IFS
4837 fi
4839 EGREP="$ac_cv_path_EGREP"
4840 if test -z "$EGREP"; then
4841   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4842 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4843    { (exit 1); exit 1; }; }
4844 fi
4846 else
4847   ac_cv_path_EGREP=$EGREP
4848 fi
4851    fi
4852 fi
4853 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4854 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4855  EGREP="$ac_cv_path_EGREP"
4858 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4859 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4860 if test "${ac_cv_header_stdc+set}" = set; then
4861   echo $ECHO_N "(cached) $ECHO_C" >&6
4862 else
4863   cat >conftest.$ac_ext <<_ACEOF
4864 /* confdefs.h.  */
4865 _ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h.  */
4869 #include <stdlib.h>
4870 #include <stdarg.h>
4871 #include <string.h>
4872 #include <float.h>
4874 int
4875 main ()
4878   ;
4879   return 0;
4881 _ACEOF
4882 rm -f conftest.$ac_objext
4883 if { (ac_try="$ac_compile"
4884 case "(($ac_try" in
4885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886   *) ac_try_echo=$ac_try;;
4887 esac
4888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4889   (eval "$ac_compile") 2>conftest.er1
4890   ac_status=$?
4891   grep -v '^ *+' conftest.er1 >conftest.err
4892   rm -f conftest.er1
4893   cat conftest.err >&5
4894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895   (exit $ac_status); } && {
4896          test -z "$ac_c_werror_flag" ||
4897          test ! -s conftest.err
4898        } && test -s conftest.$ac_objext; then
4899   ac_cv_header_stdc=yes
4900 else
4901   echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.$ac_ext >&5
4904         ac_cv_header_stdc=no
4905 fi
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4909 if test $ac_cv_header_stdc = yes; then
4910   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4911   cat >conftest.$ac_ext <<_ACEOF
4912 /* confdefs.h.  */
4913 _ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h.  */
4917 #include <string.h>
4919 _ACEOF
4920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4921   $EGREP "memchr" >/dev/null 2>&1; then
4922   :
4923 else
4924   ac_cv_header_stdc=no
4925 fi
4926 rm -f -r conftest*
4928 fi
4930 if test $ac_cv_header_stdc = yes; then
4931   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4932   cat >conftest.$ac_ext <<_ACEOF
4933 /* confdefs.h.  */
4934 _ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h.  */
4938 #include <stdlib.h>
4940 _ACEOF
4941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4942   $EGREP "free" >/dev/null 2>&1; then
4943   :
4944 else
4945   ac_cv_header_stdc=no
4946 fi
4947 rm -f -r conftest*
4949 fi
4951 if test $ac_cv_header_stdc = yes; then
4952   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4953   if test "$cross_compiling" = yes; then
4954   :
4955 else
4956   cat >conftest.$ac_ext <<_ACEOF
4957 /* confdefs.h.  */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h.  */
4962 #include <ctype.h>
4963 #include <stdlib.h>
4964 #if ((' ' & 0x0FF) == 0x020)
4965 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4966 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4967 #else
4968 # define ISLOWER(c) \
4969                    (('a' <= (c) && (c) <= 'i') \
4970                      || ('j' <= (c) && (c) <= 'r') \
4971                      || ('s' <= (c) && (c) <= 'z'))
4972 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4973 #endif
4975 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4976 int
4977 main ()
4979   int i;
4980   for (i = 0; i < 256; i++)
4981     if (XOR (islower (i), ISLOWER (i))
4982         || toupper (i) != TOUPPER (i))
4983       return 2;
4984   return 0;
4986 _ACEOF
4987 rm -f conftest$ac_exeext
4988 if { (ac_try="$ac_link"
4989 case "(($ac_try" in
4990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991   *) ac_try_echo=$ac_try;;
4992 esac
4993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4994   (eval "$ac_link") 2>&5
4995   ac_status=$?
4996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4998   { (case "(($ac_try" in
4999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5000   *) ac_try_echo=$ac_try;;
5001 esac
5002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5003   (eval "$ac_try") 2>&5
5004   ac_status=$?
5005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006   (exit $ac_status); }; }; then
5007   :
5008 else
5009   echo "$as_me: program exited with status $ac_status" >&5
5010 echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5013 ( exit $ac_status )
5014 ac_cv_header_stdc=no
5015 fi
5016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5017 fi
5020 fi
5021 fi
5022 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5023 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5024 if test $ac_cv_header_stdc = yes; then
5026 cat >>confdefs.h <<\_ACEOF
5027 #define STDC_HEADERS 1
5028 _ACEOF
5030 fi
5032 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5042 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5043                   inttypes.h stdint.h unistd.h
5044 do
5045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5046 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5049   echo $ECHO_N "(cached) $ECHO_C" >&6
5050 else
5051   cat >conftest.$ac_ext <<_ACEOF
5052 /* confdefs.h.  */
5053 _ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h.  */
5057 $ac_includes_default
5059 #include <$ac_header>
5060 _ACEOF
5061 rm -f conftest.$ac_objext
5062 if { (ac_try="$ac_compile"
5063 case "(($ac_try" in
5064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5065   *) ac_try_echo=$ac_try;;
5066 esac
5067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5068   (eval "$ac_compile") 2>conftest.er1
5069   ac_status=$?
5070   grep -v '^ *+' conftest.er1 >conftest.err
5071   rm -f conftest.er1
5072   cat conftest.err >&5
5073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074   (exit $ac_status); } && {
5075          test -z "$ac_c_werror_flag" ||
5076          test ! -s conftest.err
5077        } && test -s conftest.$ac_objext; then
5078   eval "$as_ac_Header=yes"
5079 else
5080   echo "$as_me: failed program was:" >&5
5081 sed 's/^/| /' conftest.$ac_ext >&5
5083         eval "$as_ac_Header=no"
5084 fi
5086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5087 fi
5088 ac_res=`eval echo '${'$as_ac_Header'}'`
5089                { echo "$as_me:$LINENO: result: $ac_res" >&5
5090 echo "${ECHO_T}$ac_res" >&6; }
5091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5092   cat >>confdefs.h <<_ACEOF
5093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5094 _ACEOF
5096 fi
5098 done
5103 { echo "$as_me:$LINENO: checking whether __clang__ is declared" >&5
5104 echo $ECHO_N "checking whether __clang__ is declared... $ECHO_C" >&6; }
5105 if test "${ac_cv_have_decl___clang__+set}" = set; then
5106   echo $ECHO_N "(cached) $ECHO_C" >&6
5107 else
5108   cat >conftest.$ac_ext <<_ACEOF
5109 /* confdefs.h.  */
5110 _ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h.  */
5114 $ac_includes_default
5115 int
5116 main ()
5118 #ifndef __clang__
5119   (void) __clang__;
5120 #endif
5122   ;
5123   return 0;
5125 _ACEOF
5126 rm -f conftest.$ac_objext
5127 if { (ac_try="$ac_compile"
5128 case "(($ac_try" in
5129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130   *) ac_try_echo=$ac_try;;
5131 esac
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133   (eval "$ac_compile") 2>conftest.er1
5134   ac_status=$?
5135   grep -v '^ *+' conftest.er1 >conftest.err
5136   rm -f conftest.er1
5137   cat conftest.err >&5
5138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139   (exit $ac_status); } && {
5140          test -z "$ac_c_werror_flag" ||
5141          test ! -s conftest.err
5142        } && test -s conftest.$ac_objext; then
5143   ac_cv_have_decl___clang__=yes
5144 else
5145   echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5148         ac_cv_have_decl___clang__=no
5149 fi
5151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5152 fi
5153 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___clang__" >&5
5154 echo "${ECHO_T}$ac_cv_have_decl___clang__" >&6; }
5155 if test $ac_cv_have_decl___clang__ = yes; then
5156   CLANGCC="yes"
5157 else
5158   CLANGCC="no"
5159 fi
5161 { echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
5162 echo $ECHO_N "checking whether __INTEL_COMPILER is declared... $ECHO_C" >&6; }
5163 if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
5164   echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166   cat >conftest.$ac_ext <<_ACEOF
5167 /* confdefs.h.  */
5168 _ACEOF
5169 cat confdefs.h >>conftest.$ac_ext
5170 cat >>conftest.$ac_ext <<_ACEOF
5171 /* end confdefs.h.  */
5172 $ac_includes_default
5173 int
5174 main ()
5176 #ifndef __INTEL_COMPILER
5177   (void) __INTEL_COMPILER;
5178 #endif
5180   ;
5181   return 0;
5183 _ACEOF
5184 rm -f conftest.$ac_objext
5185 if { (ac_try="$ac_compile"
5186 case "(($ac_try" in
5187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188   *) ac_try_echo=$ac_try;;
5189 esac
5190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191   (eval "$ac_compile") 2>conftest.er1
5192   ac_status=$?
5193   grep -v '^ *+' conftest.er1 >conftest.err
5194   rm -f conftest.er1
5195   cat conftest.err >&5
5196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197   (exit $ac_status); } && {
5198          test -z "$ac_c_werror_flag" ||
5199          test ! -s conftest.err
5200        } && test -s conftest.$ac_objext; then
5201   ac_cv_have_decl___INTEL_COMPILER=yes
5202 else
5203   echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5206         ac_cv_have_decl___INTEL_COMPILER=no
5207 fi
5209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210 fi
5211 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
5212 echo "${ECHO_T}$ac_cv_have_decl___INTEL_COMPILER" >&6; }
5213 if test $ac_cv_have_decl___INTEL_COMPILER = yes; then
5214   INTELCC="yes"
5215 else
5216   INTELCC="no"
5217 fi
5219 { echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
5220 echo $ECHO_N "checking whether __SUNPRO_C is declared... $ECHO_C" >&6; }
5221 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
5222   echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224   cat >conftest.$ac_ext <<_ACEOF
5225 /* confdefs.h.  */
5226 _ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h.  */
5230 $ac_includes_default
5231 int
5232 main ()
5234 #ifndef __SUNPRO_C
5235   (void) __SUNPRO_C;
5236 #endif
5238   ;
5239   return 0;
5241 _ACEOF
5242 rm -f conftest.$ac_objext
5243 if { (ac_try="$ac_compile"
5244 case "(($ac_try" in
5245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246   *) ac_try_echo=$ac_try;;
5247 esac
5248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5249   (eval "$ac_compile") 2>conftest.er1
5250   ac_status=$?
5251   grep -v '^ *+' conftest.er1 >conftest.err
5252   rm -f conftest.er1
5253   cat conftest.err >&5
5254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255   (exit $ac_status); } && {
5256          test -z "$ac_c_werror_flag" ||
5257          test ! -s conftest.err
5258        } && test -s conftest.$ac_objext; then
5259   ac_cv_have_decl___SUNPRO_C=yes
5260 else
5261   echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.$ac_ext >&5
5264         ac_cv_have_decl___SUNPRO_C=no
5265 fi
5267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268 fi
5269 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
5270 echo "${ECHO_T}$ac_cv_have_decl___SUNPRO_C" >&6; }
5271 if test $ac_cv_have_decl___SUNPRO_C = yes; then
5272   SUNCC="yes"
5273 else
5274   SUNCC="no"
5275 fi
5284 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5285         if test -n "$ac_tool_prefix"; then
5286   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5287 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5290 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5291   echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293   case $PKG_CONFIG in
5294   [\\/]* | ?:[\\/]*)
5295   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5296   ;;
5297   *)
5298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH
5300 do
5301   IFS=$as_save_IFS
5302   test -z "$as_dir" && as_dir=.
5303   for ac_exec_ext in '' $ac_executable_extensions; do
5304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5305     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5307     break 2
5308   fi
5309 done
5310 done
5311 IFS=$as_save_IFS
5313   ;;
5314 esac
5315 fi
5316 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5317 if test -n "$PKG_CONFIG"; then
5318   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5319 echo "${ECHO_T}$PKG_CONFIG" >&6; }
5320 else
5321   { echo "$as_me:$LINENO: result: no" >&5
5322 echo "${ECHO_T}no" >&6; }
5323 fi
5326 fi
5327 if test -z "$ac_cv_path_PKG_CONFIG"; then
5328   ac_pt_PKG_CONFIG=$PKG_CONFIG
5329   # Extract the first word of "pkg-config", so it can be a program name with args.
5330 set dummy pkg-config; ac_word=$2
5331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5333 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5334   echo $ECHO_N "(cached) $ECHO_C" >&6
5335 else
5336   case $ac_pt_PKG_CONFIG in
5337   [\\/]* | ?:[\\/]*)
5338   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5339   ;;
5340   *)
5341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 for as_dir in $PATH
5343 do
5344   IFS=$as_save_IFS
5345   test -z "$as_dir" && as_dir=.
5346   for ac_exec_ext in '' $ac_executable_extensions; do
5347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5348     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5350     break 2
5351   fi
5352 done
5353 done
5354 IFS=$as_save_IFS
5356   ;;
5357 esac
5358 fi
5359 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5360 if test -n "$ac_pt_PKG_CONFIG"; then
5361   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5362 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
5363 else
5364   { echo "$as_me:$LINENO: result: no" >&5
5365 echo "${ECHO_T}no" >&6; }
5366 fi
5368   if test "x$ac_pt_PKG_CONFIG" = x; then
5369     PKG_CONFIG=""
5370   else
5371     case $cross_compiling:$ac_tool_warned in
5372 yes:)
5373 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5374 whose name does not start with the host triplet.  If you think this
5375 configuration is useful to you, please write to autoconf@gnu.org." >&5
5376 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5377 whose name does not start with the host triplet.  If you think this
5378 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5379 ac_tool_warned=yes ;;
5380 esac
5381     PKG_CONFIG=$ac_pt_PKG_CONFIG
5382   fi
5383 else
5384   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5385 fi
5387 fi
5388 if test -n "$PKG_CONFIG"; then
5389         _pkg_min_version=0.9.0
5390         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5391 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
5392         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5393                 { echo "$as_me:$LINENO: result: yes" >&5
5394 echo "${ECHO_T}yes" >&6; }
5395         else
5396                 { echo "$as_me:$LINENO: result: no" >&5
5397 echo "${ECHO_T}no" >&6; }
5398                 PKG_CONFIG=""
5399         fi
5400 fi
5401 # Make sure we can run config.sub.
5402 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5403   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5404 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5405    { (exit 1); exit 1; }; }
5407 { echo "$as_me:$LINENO: checking build system type" >&5
5408 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5409 if test "${ac_cv_build+set}" = set; then
5410   echo $ECHO_N "(cached) $ECHO_C" >&6
5411 else
5412   ac_build_alias=$build_alias
5413 test "x$ac_build_alias" = x &&
5414   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5415 test "x$ac_build_alias" = x &&
5416   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5417 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5418    { (exit 1); exit 1; }; }
5419 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5420   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5421 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5422    { (exit 1); exit 1; }; }
5424 fi
5425 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5426 echo "${ECHO_T}$ac_cv_build" >&6; }
5427 case $ac_cv_build in
5428 *-*-*) ;;
5429 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5430 echo "$as_me: error: invalid value of canonical build" >&2;}
5431    { (exit 1); exit 1; }; };;
5432 esac
5433 build=$ac_cv_build
5434 ac_save_IFS=$IFS; IFS='-'
5435 set x $ac_cv_build
5436 shift
5437 build_cpu=$1
5438 build_vendor=$2
5439 shift; shift
5440 # Remember, the first character of IFS is used to create $*,
5441 # except with old shells:
5442 build_os=$*
5443 IFS=$ac_save_IFS
5444 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5447 { echo "$as_me:$LINENO: checking host system type" >&5
5448 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5449 if test "${ac_cv_host+set}" = set; then
5450   echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452   if test "x$host_alias" = x; then
5453   ac_cv_host=$ac_cv_build
5454 else
5455   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5456     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5457 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5458    { (exit 1); exit 1; }; }
5459 fi
5461 fi
5462 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5463 echo "${ECHO_T}$ac_cv_host" >&6; }
5464 case $ac_cv_host in
5465 *-*-*) ;;
5466 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5467 echo "$as_me: error: invalid value of canonical host" >&2;}
5468    { (exit 1); exit 1; }; };;
5469 esac
5470 host=$ac_cv_host
5471 ac_save_IFS=$IFS; IFS='-'
5472 set x $ac_cv_host
5473 shift
5474 host_cpu=$1
5475 host_vendor=$2
5476 shift; shift
5477 # Remember, the first character of IFS is used to create $*,
5478 # except with old shells:
5479 host_os=$*
5480 IFS=$ac_save_IFS
5481 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5484 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5485 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5486 if test "${ac_cv_path_SED+set}" = set; then
5487   echo $ECHO_N "(cached) $ECHO_C" >&6
5488 else
5489             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5490      for ac_i in 1 2 3 4 5 6 7; do
5491        ac_script="$ac_script$as_nl$ac_script"
5492      done
5493      echo "$ac_script" | sed 99q >conftest.sed
5494      $as_unset ac_script || ac_script=
5495      # Extract the first word of "sed gsed" to use in msg output
5496 if test -z "$SED"; then
5497 set dummy sed gsed; ac_prog_name=$2
5498 if test "${ac_cv_path_SED+set}" = set; then
5499   echo $ECHO_N "(cached) $ECHO_C" >&6
5500 else
5501   ac_path_SED_found=false
5502 # Loop through the user's path and test for each of PROGNAME-LIST
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH
5505 do
5506   IFS=$as_save_IFS
5507   test -z "$as_dir" && as_dir=.
5508   for ac_prog in sed gsed; do
5509   for ac_exec_ext in '' $ac_executable_extensions; do
5510     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5511     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5512     # Check for GNU ac_path_SED and select it if it is found.
5513   # Check for GNU $ac_path_SED
5514 case `"$ac_path_SED" --version 2>&1` in
5515 *GNU*)
5516   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5517 *)
5518   ac_count=0
5519   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5520   while :
5521   do
5522     cat "conftest.in" "conftest.in" >"conftest.tmp"
5523     mv "conftest.tmp" "conftest.in"
5524     cp "conftest.in" "conftest.nl"
5525     echo '' >> "conftest.nl"
5526     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5527     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5528     ac_count=`expr $ac_count + 1`
5529     if test $ac_count -gt ${ac_path_SED_max-0}; then
5530       # Best one so far, save it but keep looking for a better one
5531       ac_cv_path_SED="$ac_path_SED"
5532       ac_path_SED_max=$ac_count
5533     fi
5534     # 10*(2^10) chars as input seems more than enough
5535     test $ac_count -gt 10 && break
5536   done
5537   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5538 esac
5541     $ac_path_SED_found && break 3
5542   done
5543 done
5545 done
5546 IFS=$as_save_IFS
5549 fi
5551 SED="$ac_cv_path_SED"
5552 if test -z "$SED"; then
5553   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5554 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5555    { (exit 1); exit 1; }; }
5556 fi
5558 else
5559   ac_cv_path_SED=$SED
5560 fi
5562 fi
5563 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5564 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5565  SED="$ac_cv_path_SED"
5566   rm -f conftest.sed
5573 # Check whether --enable-selective-werror was given.
5574 if test "${enable_selective_werror+set}" = set; then
5575   enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5576 else
5577   SELECTIVE_WERROR=yes
5578 fi
5581 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5582 if test "x$SUNCC" = "xyes"; then
5583     BASE_CFLAGS="-v"
5584 else
5585     BASE_CFLAGS=""
5586 fi
5588 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5594 xorg_testset_save_CFLAGS="$CFLAGS"
5596 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5597         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5598         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
5599 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
5600         cat >conftest.$ac_ext <<_ACEOF
5601 /* confdefs.h.  */
5602 _ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h.  */
5606 int i;
5607 _ACEOF
5608 rm -f conftest.$ac_objext
5609 if { (ac_try="$ac_compile"
5610 case "(($ac_try" in
5611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612   *) ac_try_echo=$ac_try;;
5613 esac
5614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5615   (eval "$ac_compile") 2>conftest.er1
5616   ac_status=$?
5617   grep -v '^ *+' conftest.er1 >conftest.err
5618   rm -f conftest.er1
5619   cat conftest.err >&5
5620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621   (exit $ac_status); } && {
5622          test -z "$ac_c_werror_flag" ||
5623          test ! -s conftest.err
5624        } && test -s conftest.$ac_objext; then
5625   xorg_testset_unknown_warning_option=yes
5626 else
5627   echo "$as_me: failed program was:" >&5
5628 sed 's/^/| /' conftest.$ac_ext >&5
5630         xorg_testset_unknown_warning_option=no
5631 fi
5633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
5635 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
5636         CFLAGS="$xorg_testset_save_CFLAGS"
5637 fi
5639 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5640         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5641                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5642         fi
5643         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5644         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
5645 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
5646         cat >conftest.$ac_ext <<_ACEOF
5647 /* confdefs.h.  */
5648 _ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h.  */
5652 int i;
5653 _ACEOF
5654 rm -f conftest.$ac_objext
5655 if { (ac_try="$ac_compile"
5656 case "(($ac_try" in
5657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658   *) ac_try_echo=$ac_try;;
5659 esac
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661   (eval "$ac_compile") 2>conftest.er1
5662   ac_status=$?
5663   grep -v '^ *+' conftest.er1 >conftest.err
5664   rm -f conftest.er1
5665   cat conftest.err >&5
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); } && {
5668          test -z "$ac_c_werror_flag" ||
5669          test ! -s conftest.err
5670        } && test -s conftest.$ac_objext; then
5671   xorg_testset_unused_command_line_argument=yes
5672 else
5673   echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5676         xorg_testset_unused_command_line_argument=no
5677 fi
5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
5681 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
5682         CFLAGS="$xorg_testset_save_CFLAGS"
5683 fi
5685 found="no"
5687         if test $found = "no" ; then
5688                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5689                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5690                 fi
5692                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5693                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5694                 fi
5696                 CFLAGS="$CFLAGS -Wall"
5698                 { echo "$as_me:$LINENO: checking if $CC supports -Wall" >&5
5699 echo $ECHO_N "checking if $CC supports -Wall... $ECHO_C" >&6; }
5700                 cat >conftest.$ac_ext <<_ACEOF
5701 /* confdefs.h.  */
5702 _ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h.  */
5706 int i;
5707 int
5708 main ()
5711   ;
5712   return 0;
5714 _ACEOF
5715 rm -f conftest.$ac_objext conftest$ac_exeext
5716 if { (ac_try="$ac_link"
5717 case "(($ac_try" in
5718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5719   *) ac_try_echo=$ac_try;;
5720 esac
5721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5722   (eval "$ac_link") 2>conftest.er1
5723   ac_status=$?
5724   grep -v '^ *+' conftest.er1 >conftest.err
5725   rm -f conftest.er1
5726   cat conftest.err >&5
5727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728   (exit $ac_status); } && {
5729          test -z "$ac_c_werror_flag" ||
5730          test ! -s conftest.err
5731        } && test -s conftest$ac_exeext &&
5732        $as_test_x conftest$ac_exeext; then
5733   supported=yes
5734 else
5735   echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5738         supported=no
5739 fi
5741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5742       conftest$ac_exeext conftest.$ac_ext
5743                 { echo "$as_me:$LINENO: result: $supported" >&5
5744 echo "${ECHO_T}$supported" >&6; }
5745                 CFLAGS="$xorg_testset_save_CFLAGS"
5747                 if test "$supported" = "yes" ; then
5748                         BASE_CFLAGS="$BASE_CFLAGS -Wall"
5749                         found="yes"
5750                 fi
5751         fi
5759 xorg_testset_save_CFLAGS="$CFLAGS"
5761 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5762         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5763         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
5764 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
5765         cat >conftest.$ac_ext <<_ACEOF
5766 /* confdefs.h.  */
5767 _ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h.  */
5771 int i;
5772 _ACEOF
5773 rm -f conftest.$ac_objext
5774 if { (ac_try="$ac_compile"
5775 case "(($ac_try" in
5776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5777   *) ac_try_echo=$ac_try;;
5778 esac
5779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780   (eval "$ac_compile") 2>conftest.er1
5781   ac_status=$?
5782   grep -v '^ *+' conftest.er1 >conftest.err
5783   rm -f conftest.er1
5784   cat conftest.err >&5
5785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786   (exit $ac_status); } && {
5787          test -z "$ac_c_werror_flag" ||
5788          test ! -s conftest.err
5789        } && test -s conftest.$ac_objext; then
5790   xorg_testset_unknown_warning_option=yes
5791 else
5792   echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5795         xorg_testset_unknown_warning_option=no
5796 fi
5798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
5800 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
5801         CFLAGS="$xorg_testset_save_CFLAGS"
5802 fi
5804 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5805         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5806                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5807         fi
5808         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5809         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
5810 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
5811         cat >conftest.$ac_ext <<_ACEOF
5812 /* confdefs.h.  */
5813 _ACEOF
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h.  */
5817 int i;
5818 _ACEOF
5819 rm -f conftest.$ac_objext
5820 if { (ac_try="$ac_compile"
5821 case "(($ac_try" in
5822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5823   *) ac_try_echo=$ac_try;;
5824 esac
5825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826   (eval "$ac_compile") 2>conftest.er1
5827   ac_status=$?
5828   grep -v '^ *+' conftest.er1 >conftest.err
5829   rm -f conftest.er1
5830   cat conftest.err >&5
5831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832   (exit $ac_status); } && {
5833          test -z "$ac_c_werror_flag" ||
5834          test ! -s conftest.err
5835        } && test -s conftest.$ac_objext; then
5836   xorg_testset_unused_command_line_argument=yes
5837 else
5838   echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5841         xorg_testset_unused_command_line_argument=no
5842 fi
5844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5845         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
5846 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
5847         CFLAGS="$xorg_testset_save_CFLAGS"
5848 fi
5850 found="no"
5852         if test $found = "no" ; then
5853                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5854                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5855                 fi
5857                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5858                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5859                 fi
5861                 CFLAGS="$CFLAGS -Wpointer-arith"
5863                 { echo "$as_me:$LINENO: checking if $CC supports -Wpointer-arith" >&5
5864 echo $ECHO_N "checking if $CC supports -Wpointer-arith... $ECHO_C" >&6; }
5865                 cat >conftest.$ac_ext <<_ACEOF
5866 /* confdefs.h.  */
5867 _ACEOF
5868 cat confdefs.h >>conftest.$ac_ext
5869 cat >>conftest.$ac_ext <<_ACEOF
5870 /* end confdefs.h.  */
5871 int i;
5872 int
5873 main ()
5876   ;
5877   return 0;
5879 _ACEOF
5880 rm -f conftest.$ac_objext conftest$ac_exeext
5881 if { (ac_try="$ac_link"
5882 case "(($ac_try" in
5883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5884   *) ac_try_echo=$ac_try;;
5885 esac
5886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5887   (eval "$ac_link") 2>conftest.er1
5888   ac_status=$?
5889   grep -v '^ *+' conftest.er1 >conftest.err
5890   rm -f conftest.er1
5891   cat conftest.err >&5
5892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893   (exit $ac_status); } && {
5894          test -z "$ac_c_werror_flag" ||
5895          test ! -s conftest.err
5896        } && test -s conftest$ac_exeext &&
5897        $as_test_x conftest$ac_exeext; then
5898   supported=yes
5899 else
5900   echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.$ac_ext >&5
5903         supported=no
5904 fi
5906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5907       conftest$ac_exeext conftest.$ac_ext
5908                 { echo "$as_me:$LINENO: result: $supported" >&5
5909 echo "${ECHO_T}$supported" >&6; }
5910                 CFLAGS="$xorg_testset_save_CFLAGS"
5912                 if test "$supported" = "yes" ; then
5913                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5914                         found="yes"
5915                 fi
5916         fi
5924 xorg_testset_save_CFLAGS="$CFLAGS"
5926 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5927         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5928         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
5929 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
5930         cat >conftest.$ac_ext <<_ACEOF
5931 /* confdefs.h.  */
5932 _ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h.  */
5936 int i;
5937 _ACEOF
5938 rm -f conftest.$ac_objext
5939 if { (ac_try="$ac_compile"
5940 case "(($ac_try" in
5941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942   *) ac_try_echo=$ac_try;;
5943 esac
5944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5945   (eval "$ac_compile") 2>conftest.er1
5946   ac_status=$?
5947   grep -v '^ *+' conftest.er1 >conftest.err
5948   rm -f conftest.er1
5949   cat conftest.err >&5
5950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951   (exit $ac_status); } && {
5952          test -z "$ac_c_werror_flag" ||
5953          test ! -s conftest.err
5954        } && test -s conftest.$ac_objext; then
5955   xorg_testset_unknown_warning_option=yes
5956 else
5957   echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5960         xorg_testset_unknown_warning_option=no
5961 fi
5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
5965 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
5966         CFLAGS="$xorg_testset_save_CFLAGS"
5967 fi
5969 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5970         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5971                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5972         fi
5973         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5974         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
5975 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
5976         cat >conftest.$ac_ext <<_ACEOF
5977 /* confdefs.h.  */
5978 _ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h.  */
5982 int i;
5983 _ACEOF
5984 rm -f conftest.$ac_objext
5985 if { (ac_try="$ac_compile"
5986 case "(($ac_try" in
5987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988   *) ac_try_echo=$ac_try;;
5989 esac
5990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991   (eval "$ac_compile") 2>conftest.er1
5992   ac_status=$?
5993   grep -v '^ *+' conftest.er1 >conftest.err
5994   rm -f conftest.er1
5995   cat conftest.err >&5
5996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997   (exit $ac_status); } && {
5998          test -z "$ac_c_werror_flag" ||
5999          test ! -s conftest.err
6000        } && test -s conftest.$ac_objext; then
6001   xorg_testset_unused_command_line_argument=yes
6002 else
6003   echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.$ac_ext >&5
6006         xorg_testset_unused_command_line_argument=no
6007 fi
6009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6011 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6012         CFLAGS="$xorg_testset_save_CFLAGS"
6013 fi
6015 found="no"
6017         if test $found = "no" ; then
6018                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6019                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6020                 fi
6022                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6023                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6024                 fi
6026                 CFLAGS="$CFLAGS -Wstrict-prototypes"
6028                 { echo "$as_me:$LINENO: checking if $CC supports -Wstrict-prototypes" >&5
6029 echo $ECHO_N "checking if $CC supports -Wstrict-prototypes... $ECHO_C" >&6; }
6030                 cat >conftest.$ac_ext <<_ACEOF
6031 /* confdefs.h.  */
6032 _ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h.  */
6036 int i;
6037 int
6038 main ()
6041   ;
6042   return 0;
6044 _ACEOF
6045 rm -f conftest.$ac_objext conftest$ac_exeext
6046 if { (ac_try="$ac_link"
6047 case "(($ac_try" in
6048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049   *) ac_try_echo=$ac_try;;
6050 esac
6051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052   (eval "$ac_link") 2>conftest.er1
6053   ac_status=$?
6054   grep -v '^ *+' conftest.er1 >conftest.err
6055   rm -f conftest.er1
6056   cat conftest.err >&5
6057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058   (exit $ac_status); } && {
6059          test -z "$ac_c_werror_flag" ||
6060          test ! -s conftest.err
6061        } && test -s conftest$ac_exeext &&
6062        $as_test_x conftest$ac_exeext; then
6063   supported=yes
6064 else
6065   echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6068         supported=no
6069 fi
6071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6072       conftest$ac_exeext conftest.$ac_ext
6073                 { echo "$as_me:$LINENO: result: $supported" >&5
6074 echo "${ECHO_T}$supported" >&6; }
6075                 CFLAGS="$xorg_testset_save_CFLAGS"
6077                 if test "$supported" = "yes" ; then
6078                         BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
6079                         found="yes"
6080                 fi
6081         fi
6089 xorg_testset_save_CFLAGS="$CFLAGS"
6091 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6092         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6093         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
6094 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
6095         cat >conftest.$ac_ext <<_ACEOF
6096 /* confdefs.h.  */
6097 _ACEOF
6098 cat confdefs.h >>conftest.$ac_ext
6099 cat >>conftest.$ac_ext <<_ACEOF
6100 /* end confdefs.h.  */
6101 int i;
6102 _ACEOF
6103 rm -f conftest.$ac_objext
6104 if { (ac_try="$ac_compile"
6105 case "(($ac_try" in
6106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6107   *) ac_try_echo=$ac_try;;
6108 esac
6109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110   (eval "$ac_compile") 2>conftest.er1
6111   ac_status=$?
6112   grep -v '^ *+' conftest.er1 >conftest.err
6113   rm -f conftest.er1
6114   cat conftest.err >&5
6115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116   (exit $ac_status); } && {
6117          test -z "$ac_c_werror_flag" ||
6118          test ! -s conftest.err
6119        } && test -s conftest.$ac_objext; then
6120   xorg_testset_unknown_warning_option=yes
6121 else
6122   echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6125         xorg_testset_unknown_warning_option=no
6126 fi
6128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
6130 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
6131         CFLAGS="$xorg_testset_save_CFLAGS"
6132 fi
6134 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6135         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6136                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6137         fi
6138         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6139         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
6140 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
6141         cat >conftest.$ac_ext <<_ACEOF
6142 /* confdefs.h.  */
6143 _ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h.  */
6147 int i;
6148 _ACEOF
6149 rm -f conftest.$ac_objext
6150 if { (ac_try="$ac_compile"
6151 case "(($ac_try" in
6152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153   *) ac_try_echo=$ac_try;;
6154 esac
6155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156   (eval "$ac_compile") 2>conftest.er1
6157   ac_status=$?
6158   grep -v '^ *+' conftest.er1 >conftest.err
6159   rm -f conftest.er1
6160   cat conftest.err >&5
6161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162   (exit $ac_status); } && {
6163          test -z "$ac_c_werror_flag" ||
6164          test ! -s conftest.err
6165        } && test -s conftest.$ac_objext; then
6166   xorg_testset_unused_command_line_argument=yes
6167 else
6168   echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6171         xorg_testset_unused_command_line_argument=no
6172 fi
6174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6176 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6177         CFLAGS="$xorg_testset_save_CFLAGS"
6178 fi
6180 found="no"
6182         if test $found = "no" ; then
6183                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6184                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6185                 fi
6187                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6188                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6189                 fi
6191                 CFLAGS="$CFLAGS -Wmissing-prototypes"
6193                 { echo "$as_me:$LINENO: checking if $CC supports -Wmissing-prototypes" >&5
6194 echo $ECHO_N "checking if $CC supports -Wmissing-prototypes... $ECHO_C" >&6; }
6195                 cat >conftest.$ac_ext <<_ACEOF
6196 /* confdefs.h.  */
6197 _ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h.  */
6201 int i;
6202 int
6203 main ()
6206   ;
6207   return 0;
6209 _ACEOF
6210 rm -f conftest.$ac_objext conftest$ac_exeext
6211 if { (ac_try="$ac_link"
6212 case "(($ac_try" in
6213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6214   *) ac_try_echo=$ac_try;;
6215 esac
6216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6217   (eval "$ac_link") 2>conftest.er1
6218   ac_status=$?
6219   grep -v '^ *+' conftest.er1 >conftest.err
6220   rm -f conftest.er1
6221   cat conftest.err >&5
6222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223   (exit $ac_status); } && {
6224          test -z "$ac_c_werror_flag" ||
6225          test ! -s conftest.err
6226        } && test -s conftest$ac_exeext &&
6227        $as_test_x conftest$ac_exeext; then
6228   supported=yes
6229 else
6230   echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.$ac_ext >&5
6233         supported=no
6234 fi
6236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6237       conftest$ac_exeext conftest.$ac_ext
6238                 { echo "$as_me:$LINENO: result: $supported" >&5
6239 echo "${ECHO_T}$supported" >&6; }
6240                 CFLAGS="$xorg_testset_save_CFLAGS"
6242                 if test "$supported" = "yes" ; then
6243                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
6244                         found="yes"
6245                 fi
6246         fi
6254 xorg_testset_save_CFLAGS="$CFLAGS"
6256 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6257         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6258         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
6259 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
6260         cat >conftest.$ac_ext <<_ACEOF
6261 /* confdefs.h.  */
6262 _ACEOF
6263 cat confdefs.h >>conftest.$ac_ext
6264 cat >>conftest.$ac_ext <<_ACEOF
6265 /* end confdefs.h.  */
6266 int i;
6267 _ACEOF
6268 rm -f conftest.$ac_objext
6269 if { (ac_try="$ac_compile"
6270 case "(($ac_try" in
6271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6272   *) ac_try_echo=$ac_try;;
6273 esac
6274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6275   (eval "$ac_compile") 2>conftest.er1
6276   ac_status=$?
6277   grep -v '^ *+' conftest.er1 >conftest.err
6278   rm -f conftest.er1
6279   cat conftest.err >&5
6280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281   (exit $ac_status); } && {
6282          test -z "$ac_c_werror_flag" ||
6283          test ! -s conftest.err
6284        } && test -s conftest.$ac_objext; then
6285   xorg_testset_unknown_warning_option=yes
6286 else
6287   echo "$as_me: failed program was:" >&5
6288 sed 's/^/| /' conftest.$ac_ext >&5
6290         xorg_testset_unknown_warning_option=no
6291 fi
6293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
6295 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
6296         CFLAGS="$xorg_testset_save_CFLAGS"
6297 fi
6299 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6300         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6301                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6302         fi
6303         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6304         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
6305 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
6306         cat >conftest.$ac_ext <<_ACEOF
6307 /* confdefs.h.  */
6308 _ACEOF
6309 cat confdefs.h >>conftest.$ac_ext
6310 cat >>conftest.$ac_ext <<_ACEOF
6311 /* end confdefs.h.  */
6312 int i;
6313 _ACEOF
6314 rm -f conftest.$ac_objext
6315 if { (ac_try="$ac_compile"
6316 case "(($ac_try" in
6317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6318   *) ac_try_echo=$ac_try;;
6319 esac
6320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6321   (eval "$ac_compile") 2>conftest.er1
6322   ac_status=$?
6323   grep -v '^ *+' conftest.er1 >conftest.err
6324   rm -f conftest.er1
6325   cat conftest.err >&5
6326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327   (exit $ac_status); } && {
6328          test -z "$ac_c_werror_flag" ||
6329          test ! -s conftest.err
6330        } && test -s conftest.$ac_objext; then
6331   xorg_testset_unused_command_line_argument=yes
6332 else
6333   echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6336         xorg_testset_unused_command_line_argument=no
6337 fi
6339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6340         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6341 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6342         CFLAGS="$xorg_testset_save_CFLAGS"
6343 fi
6345 found="no"
6347         if test $found = "no" ; then
6348                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6349                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6350                 fi
6352                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6353                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6354                 fi
6356                 CFLAGS="$CFLAGS -Wmissing-declarations"
6358                 { echo "$as_me:$LINENO: checking if $CC supports -Wmissing-declarations" >&5
6359 echo $ECHO_N "checking if $CC supports -Wmissing-declarations... $ECHO_C" >&6; }
6360                 cat >conftest.$ac_ext <<_ACEOF
6361 /* confdefs.h.  */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h.  */
6366 int i;
6367 int
6368 main ()
6371   ;
6372   return 0;
6374 _ACEOF
6375 rm -f conftest.$ac_objext conftest$ac_exeext
6376 if { (ac_try="$ac_link"
6377 case "(($ac_try" in
6378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379   *) ac_try_echo=$ac_try;;
6380 esac
6381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6382   (eval "$ac_link") 2>conftest.er1
6383   ac_status=$?
6384   grep -v '^ *+' conftest.er1 >conftest.err
6385   rm -f conftest.er1
6386   cat conftest.err >&5
6387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388   (exit $ac_status); } && {
6389          test -z "$ac_c_werror_flag" ||
6390          test ! -s conftest.err
6391        } && test -s conftest$ac_exeext &&
6392        $as_test_x conftest$ac_exeext; then
6393   supported=yes
6394 else
6395   echo "$as_me: failed program was:" >&5
6396 sed 's/^/| /' conftest.$ac_ext >&5
6398         supported=no
6399 fi
6401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6402       conftest$ac_exeext conftest.$ac_ext
6403                 { echo "$as_me:$LINENO: result: $supported" >&5
6404 echo "${ECHO_T}$supported" >&6; }
6405                 CFLAGS="$xorg_testset_save_CFLAGS"
6407                 if test "$supported" = "yes" ; then
6408                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
6409                         found="yes"
6410                 fi
6411         fi
6419 xorg_testset_save_CFLAGS="$CFLAGS"
6421 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6422         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6423         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
6424 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
6425         cat >conftest.$ac_ext <<_ACEOF
6426 /* confdefs.h.  */
6427 _ACEOF
6428 cat confdefs.h >>conftest.$ac_ext
6429 cat >>conftest.$ac_ext <<_ACEOF
6430 /* end confdefs.h.  */
6431 int i;
6432 _ACEOF
6433 rm -f conftest.$ac_objext
6434 if { (ac_try="$ac_compile"
6435 case "(($ac_try" in
6436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6437   *) ac_try_echo=$ac_try;;
6438 esac
6439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6440   (eval "$ac_compile") 2>conftest.er1
6441   ac_status=$?
6442   grep -v '^ *+' conftest.er1 >conftest.err
6443   rm -f conftest.er1
6444   cat conftest.err >&5
6445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446   (exit $ac_status); } && {
6447          test -z "$ac_c_werror_flag" ||
6448          test ! -s conftest.err
6449        } && test -s conftest.$ac_objext; then
6450   xorg_testset_unknown_warning_option=yes
6451 else
6452   echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6455         xorg_testset_unknown_warning_option=no
6456 fi
6458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6459         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
6460 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
6461         CFLAGS="$xorg_testset_save_CFLAGS"
6462 fi
6464 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6465         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6466                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6467         fi
6468         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6469         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
6470 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
6471         cat >conftest.$ac_ext <<_ACEOF
6472 /* confdefs.h.  */
6473 _ACEOF
6474 cat confdefs.h >>conftest.$ac_ext
6475 cat >>conftest.$ac_ext <<_ACEOF
6476 /* end confdefs.h.  */
6477 int i;
6478 _ACEOF
6479 rm -f conftest.$ac_objext
6480 if { (ac_try="$ac_compile"
6481 case "(($ac_try" in
6482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6483   *) ac_try_echo=$ac_try;;
6484 esac
6485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6486   (eval "$ac_compile") 2>conftest.er1
6487   ac_status=$?
6488   grep -v '^ *+' conftest.er1 >conftest.err
6489   rm -f conftest.er1
6490   cat conftest.err >&5
6491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492   (exit $ac_status); } && {
6493          test -z "$ac_c_werror_flag" ||
6494          test ! -s conftest.err
6495        } && test -s conftest.$ac_objext; then
6496   xorg_testset_unused_command_line_argument=yes
6497 else
6498   echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6501         xorg_testset_unused_command_line_argument=no
6502 fi
6504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6505         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6506 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6507         CFLAGS="$xorg_testset_save_CFLAGS"
6508 fi
6510 found="no"
6512         if test $found = "no" ; then
6513                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6514                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6515                 fi
6517                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6518                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6519                 fi
6521                 CFLAGS="$CFLAGS -Wnested-externs"
6523                 { echo "$as_me:$LINENO: checking if $CC supports -Wnested-externs" >&5
6524 echo $ECHO_N "checking if $CC supports -Wnested-externs... $ECHO_C" >&6; }
6525                 cat >conftest.$ac_ext <<_ACEOF
6526 /* confdefs.h.  */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h.  */
6531 int i;
6532 int
6533 main ()
6536   ;
6537   return 0;
6539 _ACEOF
6540 rm -f conftest.$ac_objext conftest$ac_exeext
6541 if { (ac_try="$ac_link"
6542 case "(($ac_try" in
6543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544   *) ac_try_echo=$ac_try;;
6545 esac
6546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547   (eval "$ac_link") 2>conftest.er1
6548   ac_status=$?
6549   grep -v '^ *+' conftest.er1 >conftest.err
6550   rm -f conftest.er1
6551   cat conftest.err >&5
6552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553   (exit $ac_status); } && {
6554          test -z "$ac_c_werror_flag" ||
6555          test ! -s conftest.err
6556        } && test -s conftest$ac_exeext &&
6557        $as_test_x conftest$ac_exeext; then
6558   supported=yes
6559 else
6560   echo "$as_me: failed program was:" >&5
6561 sed 's/^/| /' conftest.$ac_ext >&5
6563         supported=no
6564 fi
6566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6567       conftest$ac_exeext conftest.$ac_ext
6568                 { echo "$as_me:$LINENO: result: $supported" >&5
6569 echo "${ECHO_T}$supported" >&6; }
6570                 CFLAGS="$xorg_testset_save_CFLAGS"
6572                 if test "$supported" = "yes" ; then
6573                         BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6574                         found="yes"
6575                 fi
6576         fi
6584 xorg_testset_save_CFLAGS="$CFLAGS"
6586 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6587         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6588         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
6589 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
6590         cat >conftest.$ac_ext <<_ACEOF
6591 /* confdefs.h.  */
6592 _ACEOF
6593 cat confdefs.h >>conftest.$ac_ext
6594 cat >>conftest.$ac_ext <<_ACEOF
6595 /* end confdefs.h.  */
6596 int i;
6597 _ACEOF
6598 rm -f conftest.$ac_objext
6599 if { (ac_try="$ac_compile"
6600 case "(($ac_try" in
6601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6602   *) ac_try_echo=$ac_try;;
6603 esac
6604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6605   (eval "$ac_compile") 2>conftest.er1
6606   ac_status=$?
6607   grep -v '^ *+' conftest.er1 >conftest.err
6608   rm -f conftest.er1
6609   cat conftest.err >&5
6610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611   (exit $ac_status); } && {
6612          test -z "$ac_c_werror_flag" ||
6613          test ! -s conftest.err
6614        } && test -s conftest.$ac_objext; then
6615   xorg_testset_unknown_warning_option=yes
6616 else
6617   echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6620         xorg_testset_unknown_warning_option=no
6621 fi
6623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6624         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
6625 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
6626         CFLAGS="$xorg_testset_save_CFLAGS"
6627 fi
6629 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6630         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6631                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6632         fi
6633         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6634         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
6635 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
6636         cat >conftest.$ac_ext <<_ACEOF
6637 /* confdefs.h.  */
6638 _ACEOF
6639 cat confdefs.h >>conftest.$ac_ext
6640 cat >>conftest.$ac_ext <<_ACEOF
6641 /* end confdefs.h.  */
6642 int i;
6643 _ACEOF
6644 rm -f conftest.$ac_objext
6645 if { (ac_try="$ac_compile"
6646 case "(($ac_try" in
6647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6648   *) ac_try_echo=$ac_try;;
6649 esac
6650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6651   (eval "$ac_compile") 2>conftest.er1
6652   ac_status=$?
6653   grep -v '^ *+' conftest.er1 >conftest.err
6654   rm -f conftest.er1
6655   cat conftest.err >&5
6656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657   (exit $ac_status); } && {
6658          test -z "$ac_c_werror_flag" ||
6659          test ! -s conftest.err
6660        } && test -s conftest.$ac_objext; then
6661   xorg_testset_unused_command_line_argument=yes
6662 else
6663   echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6666         xorg_testset_unused_command_line_argument=no
6667 fi
6669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6670         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6671 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6672         CFLAGS="$xorg_testset_save_CFLAGS"
6673 fi
6675 found="no"
6677         if test $found = "no" ; then
6678                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6679                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6680                 fi
6682                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6683                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6684                 fi
6686                 CFLAGS="$CFLAGS -Wbad-function-cast"
6688                 { echo "$as_me:$LINENO: checking if $CC supports -Wbad-function-cast" >&5
6689 echo $ECHO_N "checking if $CC supports -Wbad-function-cast... $ECHO_C" >&6; }
6690                 cat >conftest.$ac_ext <<_ACEOF
6691 /* confdefs.h.  */
6692 _ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h.  */
6696 int i;
6697 int
6698 main ()
6701   ;
6702   return 0;
6704 _ACEOF
6705 rm -f conftest.$ac_objext conftest$ac_exeext
6706 if { (ac_try="$ac_link"
6707 case "(($ac_try" in
6708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6709   *) ac_try_echo=$ac_try;;
6710 esac
6711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6712   (eval "$ac_link") 2>conftest.er1
6713   ac_status=$?
6714   grep -v '^ *+' conftest.er1 >conftest.err
6715   rm -f conftest.er1
6716   cat conftest.err >&5
6717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718   (exit $ac_status); } && {
6719          test -z "$ac_c_werror_flag" ||
6720          test ! -s conftest.err
6721        } && test -s conftest$ac_exeext &&
6722        $as_test_x conftest$ac_exeext; then
6723   supported=yes
6724 else
6725   echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.$ac_ext >&5
6728         supported=no
6729 fi
6731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6732       conftest$ac_exeext conftest.$ac_ext
6733                 { echo "$as_me:$LINENO: result: $supported" >&5
6734 echo "${ECHO_T}$supported" >&6; }
6735                 CFLAGS="$xorg_testset_save_CFLAGS"
6737                 if test "$supported" = "yes" ; then
6738                         BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6739                         found="yes"
6740                 fi
6741         fi
6749 xorg_testset_save_CFLAGS="$CFLAGS"
6751 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6752         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6753         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
6754 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
6755         cat >conftest.$ac_ext <<_ACEOF
6756 /* confdefs.h.  */
6757 _ACEOF
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h.  */
6761 int i;
6762 _ACEOF
6763 rm -f conftest.$ac_objext
6764 if { (ac_try="$ac_compile"
6765 case "(($ac_try" in
6766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6767   *) ac_try_echo=$ac_try;;
6768 esac
6769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6770   (eval "$ac_compile") 2>conftest.er1
6771   ac_status=$?
6772   grep -v '^ *+' conftest.er1 >conftest.err
6773   rm -f conftest.er1
6774   cat conftest.err >&5
6775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776   (exit $ac_status); } && {
6777          test -z "$ac_c_werror_flag" ||
6778          test ! -s conftest.err
6779        } && test -s conftest.$ac_objext; then
6780   xorg_testset_unknown_warning_option=yes
6781 else
6782   echo "$as_me: failed program was:" >&5
6783 sed 's/^/| /' conftest.$ac_ext >&5
6785         xorg_testset_unknown_warning_option=no
6786 fi
6788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6789         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
6790 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
6791         CFLAGS="$xorg_testset_save_CFLAGS"
6792 fi
6794 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6795         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6796                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6797         fi
6798         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6799         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
6800 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
6801         cat >conftest.$ac_ext <<_ACEOF
6802 /* confdefs.h.  */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h.  */
6807 int i;
6808 _ACEOF
6809 rm -f conftest.$ac_objext
6810 if { (ac_try="$ac_compile"
6811 case "(($ac_try" in
6812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813   *) ac_try_echo=$ac_try;;
6814 esac
6815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6816   (eval "$ac_compile") 2>conftest.er1
6817   ac_status=$?
6818   grep -v '^ *+' conftest.er1 >conftest.err
6819   rm -f conftest.er1
6820   cat conftest.err >&5
6821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822   (exit $ac_status); } && {
6823          test -z "$ac_c_werror_flag" ||
6824          test ! -s conftest.err
6825        } && test -s conftest.$ac_objext; then
6826   xorg_testset_unused_command_line_argument=yes
6827 else
6828   echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6831         xorg_testset_unused_command_line_argument=no
6832 fi
6834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6835         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6836 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6837         CFLAGS="$xorg_testset_save_CFLAGS"
6838 fi
6840 found="no"
6842         if test $found = "no" ; then
6843                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6844                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6845                 fi
6847                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6848                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6849                 fi
6851                 CFLAGS="$CFLAGS -Wformat=2"
6853                 { echo "$as_me:$LINENO: checking if $CC supports -Wformat=2" >&5
6854 echo $ECHO_N "checking if $CC supports -Wformat=2... $ECHO_C" >&6; }
6855                 cat >conftest.$ac_ext <<_ACEOF
6856 /* confdefs.h.  */
6857 _ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h.  */
6861 int i;
6862 int
6863 main ()
6866   ;
6867   return 0;
6869 _ACEOF
6870 rm -f conftest.$ac_objext conftest$ac_exeext
6871 if { (ac_try="$ac_link"
6872 case "(($ac_try" in
6873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6874   *) ac_try_echo=$ac_try;;
6875 esac
6876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6877   (eval "$ac_link") 2>conftest.er1
6878   ac_status=$?
6879   grep -v '^ *+' conftest.er1 >conftest.err
6880   rm -f conftest.er1
6881   cat conftest.err >&5
6882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883   (exit $ac_status); } && {
6884          test -z "$ac_c_werror_flag" ||
6885          test ! -s conftest.err
6886        } && test -s conftest$ac_exeext &&
6887        $as_test_x conftest$ac_exeext; then
6888   supported=yes
6889 else
6890   echo "$as_me: failed program was:" >&5
6891 sed 's/^/| /' conftest.$ac_ext >&5
6893         supported=no
6894 fi
6896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6897       conftest$ac_exeext conftest.$ac_ext
6898                 { echo "$as_me:$LINENO: result: $supported" >&5
6899 echo "${ECHO_T}$supported" >&6; }
6900                 CFLAGS="$xorg_testset_save_CFLAGS"
6902                 if test "$supported" = "yes" ; then
6903                         BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
6904                         found="yes"
6905                 fi
6906         fi
6908         if test $found = "no" ; then
6909                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6910                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6911                 fi
6913                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6914                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6915                 fi
6917                 CFLAGS="$CFLAGS -Wformat"
6919                 { echo "$as_me:$LINENO: checking if $CC supports -Wformat" >&5
6920 echo $ECHO_N "checking if $CC supports -Wformat... $ECHO_C" >&6; }
6921                 cat >conftest.$ac_ext <<_ACEOF
6922 /* confdefs.h.  */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h.  */
6927 int i;
6928 int
6929 main ()
6932   ;
6933   return 0;
6935 _ACEOF
6936 rm -f conftest.$ac_objext conftest$ac_exeext
6937 if { (ac_try="$ac_link"
6938 case "(($ac_try" in
6939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6940   *) ac_try_echo=$ac_try;;
6941 esac
6942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6943   (eval "$ac_link") 2>conftest.er1
6944   ac_status=$?
6945   grep -v '^ *+' conftest.er1 >conftest.err
6946   rm -f conftest.er1
6947   cat conftest.err >&5
6948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949   (exit $ac_status); } && {
6950          test -z "$ac_c_werror_flag" ||
6951          test ! -s conftest.err
6952        } && test -s conftest$ac_exeext &&
6953        $as_test_x conftest$ac_exeext; then
6954   supported=yes
6955 else
6956   echo "$as_me: failed program was:" >&5
6957 sed 's/^/| /' conftest.$ac_ext >&5
6959         supported=no
6960 fi
6962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6963       conftest$ac_exeext conftest.$ac_ext
6964                 { echo "$as_me:$LINENO: result: $supported" >&5
6965 echo "${ECHO_T}$supported" >&6; }
6966                 CFLAGS="$xorg_testset_save_CFLAGS"
6968                 if test "$supported" = "yes" ; then
6969                         BASE_CFLAGS="$BASE_CFLAGS -Wformat"
6970                         found="yes"
6971                 fi
6972         fi
6980 xorg_testset_save_CFLAGS="$CFLAGS"
6982 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6983         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6984         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
6985 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
6986         cat >conftest.$ac_ext <<_ACEOF
6987 /* confdefs.h.  */
6988 _ACEOF
6989 cat confdefs.h >>conftest.$ac_ext
6990 cat >>conftest.$ac_ext <<_ACEOF
6991 /* end confdefs.h.  */
6992 int i;
6993 _ACEOF
6994 rm -f conftest.$ac_objext
6995 if { (ac_try="$ac_compile"
6996 case "(($ac_try" in
6997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6998   *) ac_try_echo=$ac_try;;
6999 esac
7000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7001   (eval "$ac_compile") 2>conftest.er1
7002   ac_status=$?
7003   grep -v '^ *+' conftest.er1 >conftest.err
7004   rm -f conftest.er1
7005   cat conftest.err >&5
7006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007   (exit $ac_status); } && {
7008          test -z "$ac_c_werror_flag" ||
7009          test ! -s conftest.err
7010        } && test -s conftest.$ac_objext; then
7011   xorg_testset_unknown_warning_option=yes
7012 else
7013   echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7016         xorg_testset_unknown_warning_option=no
7017 fi
7019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7020         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7021 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7022         CFLAGS="$xorg_testset_save_CFLAGS"
7023 fi
7025 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7026         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7027                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7028         fi
7029         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7030         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7031 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7032         cat >conftest.$ac_ext <<_ACEOF
7033 /* confdefs.h.  */
7034 _ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h.  */
7038 int i;
7039 _ACEOF
7040 rm -f conftest.$ac_objext
7041 if { (ac_try="$ac_compile"
7042 case "(($ac_try" in
7043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7044   *) ac_try_echo=$ac_try;;
7045 esac
7046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7047   (eval "$ac_compile") 2>conftest.er1
7048   ac_status=$?
7049   grep -v '^ *+' conftest.er1 >conftest.err
7050   rm -f conftest.er1
7051   cat conftest.err >&5
7052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053   (exit $ac_status); } && {
7054          test -z "$ac_c_werror_flag" ||
7055          test ! -s conftest.err
7056        } && test -s conftest.$ac_objext; then
7057   xorg_testset_unused_command_line_argument=yes
7058 else
7059   echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.$ac_ext >&5
7062         xorg_testset_unused_command_line_argument=no
7063 fi
7065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7066         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7067 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7068         CFLAGS="$xorg_testset_save_CFLAGS"
7069 fi
7071 found="no"
7073         if test $found = "no" ; then
7074                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7075                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7076                 fi
7078                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7079                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7080                 fi
7082                 CFLAGS="$CFLAGS -Wold-style-definition"
7084                 { echo "$as_me:$LINENO: checking if $CC supports -Wold-style-definition" >&5
7085 echo $ECHO_N "checking if $CC supports -Wold-style-definition... $ECHO_C" >&6; }
7086                 cat >conftest.$ac_ext <<_ACEOF
7087 /* confdefs.h.  */
7088 _ACEOF
7089 cat confdefs.h >>conftest.$ac_ext
7090 cat >>conftest.$ac_ext <<_ACEOF
7091 /* end confdefs.h.  */
7092 int i;
7093 int
7094 main ()
7097   ;
7098   return 0;
7100 _ACEOF
7101 rm -f conftest.$ac_objext conftest$ac_exeext
7102 if { (ac_try="$ac_link"
7103 case "(($ac_try" in
7104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7105   *) ac_try_echo=$ac_try;;
7106 esac
7107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7108   (eval "$ac_link") 2>conftest.er1
7109   ac_status=$?
7110   grep -v '^ *+' conftest.er1 >conftest.err
7111   rm -f conftest.er1
7112   cat conftest.err >&5
7113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114   (exit $ac_status); } && {
7115          test -z "$ac_c_werror_flag" ||
7116          test ! -s conftest.err
7117        } && test -s conftest$ac_exeext &&
7118        $as_test_x conftest$ac_exeext; then
7119   supported=yes
7120 else
7121   echo "$as_me: failed program was:" >&5
7122 sed 's/^/| /' conftest.$ac_ext >&5
7124         supported=no
7125 fi
7127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7128       conftest$ac_exeext conftest.$ac_ext
7129                 { echo "$as_me:$LINENO: result: $supported" >&5
7130 echo "${ECHO_T}$supported" >&6; }
7131                 CFLAGS="$xorg_testset_save_CFLAGS"
7133                 if test "$supported" = "yes" ; then
7134                         BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
7135                         found="yes"
7136                 fi
7137         fi
7145 xorg_testset_save_CFLAGS="$CFLAGS"
7147 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7148         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7149         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7150 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7151         cat >conftest.$ac_ext <<_ACEOF
7152 /* confdefs.h.  */
7153 _ACEOF
7154 cat confdefs.h >>conftest.$ac_ext
7155 cat >>conftest.$ac_ext <<_ACEOF
7156 /* end confdefs.h.  */
7157 int i;
7158 _ACEOF
7159 rm -f conftest.$ac_objext
7160 if { (ac_try="$ac_compile"
7161 case "(($ac_try" in
7162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7163   *) ac_try_echo=$ac_try;;
7164 esac
7165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7166   (eval "$ac_compile") 2>conftest.er1
7167   ac_status=$?
7168   grep -v '^ *+' conftest.er1 >conftest.err
7169   rm -f conftest.er1
7170   cat conftest.err >&5
7171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172   (exit $ac_status); } && {
7173          test -z "$ac_c_werror_flag" ||
7174          test ! -s conftest.err
7175        } && test -s conftest.$ac_objext; then
7176   xorg_testset_unknown_warning_option=yes
7177 else
7178   echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.$ac_ext >&5
7181         xorg_testset_unknown_warning_option=no
7182 fi
7184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7186 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7187         CFLAGS="$xorg_testset_save_CFLAGS"
7188 fi
7190 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7191         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7192                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7193         fi
7194         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7195         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7196 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7197         cat >conftest.$ac_ext <<_ACEOF
7198 /* confdefs.h.  */
7199 _ACEOF
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h.  */
7203 int i;
7204 _ACEOF
7205 rm -f conftest.$ac_objext
7206 if { (ac_try="$ac_compile"
7207 case "(($ac_try" in
7208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7209   *) ac_try_echo=$ac_try;;
7210 esac
7211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7212   (eval "$ac_compile") 2>conftest.er1
7213   ac_status=$?
7214   grep -v '^ *+' conftest.er1 >conftest.err
7215   rm -f conftest.er1
7216   cat conftest.err >&5
7217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218   (exit $ac_status); } && {
7219          test -z "$ac_c_werror_flag" ||
7220          test ! -s conftest.err
7221        } && test -s conftest.$ac_objext; then
7222   xorg_testset_unused_command_line_argument=yes
7223 else
7224   echo "$as_me: failed program was:" >&5
7225 sed 's/^/| /' conftest.$ac_ext >&5
7227         xorg_testset_unused_command_line_argument=no
7228 fi
7230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7231         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7232 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7233         CFLAGS="$xorg_testset_save_CFLAGS"
7234 fi
7236 found="no"
7238         if test $found = "no" ; then
7239                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7240                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7241                 fi
7243                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7244                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7245                 fi
7247                 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
7249                 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
7250 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
7251                 cat >conftest.$ac_ext <<_ACEOF
7252 /* confdefs.h.  */
7253 _ACEOF
7254 cat confdefs.h >>conftest.$ac_ext
7255 cat >>conftest.$ac_ext <<_ACEOF
7256 /* end confdefs.h.  */
7257 int i;
7258 int
7259 main ()
7262   ;
7263   return 0;
7265 _ACEOF
7266 rm -f conftest.$ac_objext conftest$ac_exeext
7267 if { (ac_try="$ac_link"
7268 case "(($ac_try" in
7269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7270   *) ac_try_echo=$ac_try;;
7271 esac
7272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7273   (eval "$ac_link") 2>conftest.er1
7274   ac_status=$?
7275   grep -v '^ *+' conftest.er1 >conftest.err
7276   rm -f conftest.er1
7277   cat conftest.err >&5
7278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279   (exit $ac_status); } && {
7280          test -z "$ac_c_werror_flag" ||
7281          test ! -s conftest.err
7282        } && test -s conftest$ac_exeext &&
7283        $as_test_x conftest$ac_exeext; then
7284   supported=yes
7285 else
7286   echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.$ac_ext >&5
7289         supported=no
7290 fi
7292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7293       conftest$ac_exeext conftest.$ac_ext
7294                 { echo "$as_me:$LINENO: result: $supported" >&5
7295 echo "${ECHO_T}$supported" >&6; }
7296                 CFLAGS="$xorg_testset_save_CFLAGS"
7298                 if test "$supported" = "yes" ; then
7299                         BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
7300                         found="yes"
7301                 fi
7302         fi
7306 # This chunk adds additional warnings that could catch undesired effects.
7312 xorg_testset_save_CFLAGS="$CFLAGS"
7314 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7315         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7316         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7317 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7318         cat >conftest.$ac_ext <<_ACEOF
7319 /* confdefs.h.  */
7320 _ACEOF
7321 cat confdefs.h >>conftest.$ac_ext
7322 cat >>conftest.$ac_ext <<_ACEOF
7323 /* end confdefs.h.  */
7324 int i;
7325 _ACEOF
7326 rm -f conftest.$ac_objext
7327 if { (ac_try="$ac_compile"
7328 case "(($ac_try" in
7329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7330   *) ac_try_echo=$ac_try;;
7331 esac
7332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7333   (eval "$ac_compile") 2>conftest.er1
7334   ac_status=$?
7335   grep -v '^ *+' conftest.er1 >conftest.err
7336   rm -f conftest.er1
7337   cat conftest.err >&5
7338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339   (exit $ac_status); } && {
7340          test -z "$ac_c_werror_flag" ||
7341          test ! -s conftest.err
7342        } && test -s conftest.$ac_objext; then
7343   xorg_testset_unknown_warning_option=yes
7344 else
7345   echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7348         xorg_testset_unknown_warning_option=no
7349 fi
7351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7352         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7353 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7354         CFLAGS="$xorg_testset_save_CFLAGS"
7355 fi
7357 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7358         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7359                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7360         fi
7361         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7362         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7363 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7364         cat >conftest.$ac_ext <<_ACEOF
7365 /* confdefs.h.  */
7366 _ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h.  */
7370 int i;
7371 _ACEOF
7372 rm -f conftest.$ac_objext
7373 if { (ac_try="$ac_compile"
7374 case "(($ac_try" in
7375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7376   *) ac_try_echo=$ac_try;;
7377 esac
7378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7379   (eval "$ac_compile") 2>conftest.er1
7380   ac_status=$?
7381   grep -v '^ *+' conftest.er1 >conftest.err
7382   rm -f conftest.er1
7383   cat conftest.err >&5
7384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385   (exit $ac_status); } && {
7386          test -z "$ac_c_werror_flag" ||
7387          test ! -s conftest.err
7388        } && test -s conftest.$ac_objext; then
7389   xorg_testset_unused_command_line_argument=yes
7390 else
7391   echo "$as_me: failed program was:" >&5
7392 sed 's/^/| /' conftest.$ac_ext >&5
7394         xorg_testset_unused_command_line_argument=no
7395 fi
7397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7398         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7399 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7400         CFLAGS="$xorg_testset_save_CFLAGS"
7401 fi
7403 found="no"
7405         if test $found = "no" ; then
7406                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7407                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7408                 fi
7410                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7411                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7412                 fi
7414                 CFLAGS="$CFLAGS -Wunused"
7416                 { echo "$as_me:$LINENO: checking if $CC supports -Wunused" >&5
7417 echo $ECHO_N "checking if $CC supports -Wunused... $ECHO_C" >&6; }
7418                 cat >conftest.$ac_ext <<_ACEOF
7419 /* confdefs.h.  */
7420 _ACEOF
7421 cat confdefs.h >>conftest.$ac_ext
7422 cat >>conftest.$ac_ext <<_ACEOF
7423 /* end confdefs.h.  */
7424 int i;
7425 int
7426 main ()
7429   ;
7430   return 0;
7432 _ACEOF
7433 rm -f conftest.$ac_objext conftest$ac_exeext
7434 if { (ac_try="$ac_link"
7435 case "(($ac_try" in
7436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7437   *) ac_try_echo=$ac_try;;
7438 esac
7439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7440   (eval "$ac_link") 2>conftest.er1
7441   ac_status=$?
7442   grep -v '^ *+' conftest.er1 >conftest.err
7443   rm -f conftest.er1
7444   cat conftest.err >&5
7445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446   (exit $ac_status); } && {
7447          test -z "$ac_c_werror_flag" ||
7448          test ! -s conftest.err
7449        } && test -s conftest$ac_exeext &&
7450        $as_test_x conftest$ac_exeext; then
7451   supported=yes
7452 else
7453   echo "$as_me: failed program was:" >&5
7454 sed 's/^/| /' conftest.$ac_ext >&5
7456         supported=no
7457 fi
7459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7460       conftest$ac_exeext conftest.$ac_ext
7461                 { echo "$as_me:$LINENO: result: $supported" >&5
7462 echo "${ECHO_T}$supported" >&6; }
7463                 CFLAGS="$xorg_testset_save_CFLAGS"
7465                 if test "$supported" = "yes" ; then
7466                         BASE_CFLAGS="$BASE_CFLAGS -Wunused"
7467                         found="yes"
7468                 fi
7469         fi
7477 xorg_testset_save_CFLAGS="$CFLAGS"
7479 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7480         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7481         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7482 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7483         cat >conftest.$ac_ext <<_ACEOF
7484 /* confdefs.h.  */
7485 _ACEOF
7486 cat confdefs.h >>conftest.$ac_ext
7487 cat >>conftest.$ac_ext <<_ACEOF
7488 /* end confdefs.h.  */
7489 int i;
7490 _ACEOF
7491 rm -f conftest.$ac_objext
7492 if { (ac_try="$ac_compile"
7493 case "(($ac_try" in
7494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7495   *) ac_try_echo=$ac_try;;
7496 esac
7497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7498   (eval "$ac_compile") 2>conftest.er1
7499   ac_status=$?
7500   grep -v '^ *+' conftest.er1 >conftest.err
7501   rm -f conftest.er1
7502   cat conftest.err >&5
7503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504   (exit $ac_status); } && {
7505          test -z "$ac_c_werror_flag" ||
7506          test ! -s conftest.err
7507        } && test -s conftest.$ac_objext; then
7508   xorg_testset_unknown_warning_option=yes
7509 else
7510   echo "$as_me: failed program was:" >&5
7511 sed 's/^/| /' conftest.$ac_ext >&5
7513         xorg_testset_unknown_warning_option=no
7514 fi
7516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7517         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7518 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7519         CFLAGS="$xorg_testset_save_CFLAGS"
7520 fi
7522 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7523         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7524                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7525         fi
7526         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7527         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7528 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7529         cat >conftest.$ac_ext <<_ACEOF
7530 /* confdefs.h.  */
7531 _ACEOF
7532 cat confdefs.h >>conftest.$ac_ext
7533 cat >>conftest.$ac_ext <<_ACEOF
7534 /* end confdefs.h.  */
7535 int i;
7536 _ACEOF
7537 rm -f conftest.$ac_objext
7538 if { (ac_try="$ac_compile"
7539 case "(($ac_try" in
7540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7541   *) ac_try_echo=$ac_try;;
7542 esac
7543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7544   (eval "$ac_compile") 2>conftest.er1
7545   ac_status=$?
7546   grep -v '^ *+' conftest.er1 >conftest.err
7547   rm -f conftest.er1
7548   cat conftest.err >&5
7549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550   (exit $ac_status); } && {
7551          test -z "$ac_c_werror_flag" ||
7552          test ! -s conftest.err
7553        } && test -s conftest.$ac_objext; then
7554   xorg_testset_unused_command_line_argument=yes
7555 else
7556   echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7559         xorg_testset_unused_command_line_argument=no
7560 fi
7562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7564 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7565         CFLAGS="$xorg_testset_save_CFLAGS"
7566 fi
7568 found="no"
7570         if test $found = "no" ; then
7571                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7572                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7573                 fi
7575                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7576                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7577                 fi
7579                 CFLAGS="$CFLAGS -Wuninitialized"
7581                 { echo "$as_me:$LINENO: checking if $CC supports -Wuninitialized" >&5
7582 echo $ECHO_N "checking if $CC supports -Wuninitialized... $ECHO_C" >&6; }
7583                 cat >conftest.$ac_ext <<_ACEOF
7584 /* confdefs.h.  */
7585 _ACEOF
7586 cat confdefs.h >>conftest.$ac_ext
7587 cat >>conftest.$ac_ext <<_ACEOF
7588 /* end confdefs.h.  */
7589 int i;
7590 int
7591 main ()
7594   ;
7595   return 0;
7597 _ACEOF
7598 rm -f conftest.$ac_objext conftest$ac_exeext
7599 if { (ac_try="$ac_link"
7600 case "(($ac_try" in
7601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7602   *) ac_try_echo=$ac_try;;
7603 esac
7604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7605   (eval "$ac_link") 2>conftest.er1
7606   ac_status=$?
7607   grep -v '^ *+' conftest.er1 >conftest.err
7608   rm -f conftest.er1
7609   cat conftest.err >&5
7610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611   (exit $ac_status); } && {
7612          test -z "$ac_c_werror_flag" ||
7613          test ! -s conftest.err
7614        } && test -s conftest$ac_exeext &&
7615        $as_test_x conftest$ac_exeext; then
7616   supported=yes
7617 else
7618   echo "$as_me: failed program was:" >&5
7619 sed 's/^/| /' conftest.$ac_ext >&5
7621         supported=no
7622 fi
7624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7625       conftest$ac_exeext conftest.$ac_ext
7626                 { echo "$as_me:$LINENO: result: $supported" >&5
7627 echo "${ECHO_T}$supported" >&6; }
7628                 CFLAGS="$xorg_testset_save_CFLAGS"
7630                 if test "$supported" = "yes" ; then
7631                         BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
7632                         found="yes"
7633                 fi
7634         fi
7642 xorg_testset_save_CFLAGS="$CFLAGS"
7644 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7645         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7646         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7647 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7648         cat >conftest.$ac_ext <<_ACEOF
7649 /* confdefs.h.  */
7650 _ACEOF
7651 cat confdefs.h >>conftest.$ac_ext
7652 cat >>conftest.$ac_ext <<_ACEOF
7653 /* end confdefs.h.  */
7654 int i;
7655 _ACEOF
7656 rm -f conftest.$ac_objext
7657 if { (ac_try="$ac_compile"
7658 case "(($ac_try" in
7659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7660   *) ac_try_echo=$ac_try;;
7661 esac
7662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7663   (eval "$ac_compile") 2>conftest.er1
7664   ac_status=$?
7665   grep -v '^ *+' conftest.er1 >conftest.err
7666   rm -f conftest.er1
7667   cat conftest.err >&5
7668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669   (exit $ac_status); } && {
7670          test -z "$ac_c_werror_flag" ||
7671          test ! -s conftest.err
7672        } && test -s conftest.$ac_objext; then
7673   xorg_testset_unknown_warning_option=yes
7674 else
7675   echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7678         xorg_testset_unknown_warning_option=no
7679 fi
7681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7682         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7683 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7684         CFLAGS="$xorg_testset_save_CFLAGS"
7685 fi
7687 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7688         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7689                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7690         fi
7691         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7692         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7693 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7694         cat >conftest.$ac_ext <<_ACEOF
7695 /* confdefs.h.  */
7696 _ACEOF
7697 cat confdefs.h >>conftest.$ac_ext
7698 cat >>conftest.$ac_ext <<_ACEOF
7699 /* end confdefs.h.  */
7700 int i;
7701 _ACEOF
7702 rm -f conftest.$ac_objext
7703 if { (ac_try="$ac_compile"
7704 case "(($ac_try" in
7705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706   *) ac_try_echo=$ac_try;;
7707 esac
7708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7709   (eval "$ac_compile") 2>conftest.er1
7710   ac_status=$?
7711   grep -v '^ *+' conftest.er1 >conftest.err
7712   rm -f conftest.er1
7713   cat conftest.err >&5
7714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715   (exit $ac_status); } && {
7716          test -z "$ac_c_werror_flag" ||
7717          test ! -s conftest.err
7718        } && test -s conftest.$ac_objext; then
7719   xorg_testset_unused_command_line_argument=yes
7720 else
7721   echo "$as_me: failed program was:" >&5
7722 sed 's/^/| /' conftest.$ac_ext >&5
7724         xorg_testset_unused_command_line_argument=no
7725 fi
7727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7728         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7729 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7730         CFLAGS="$xorg_testset_save_CFLAGS"
7731 fi
7733 found="no"
7735         if test $found = "no" ; then
7736                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7737                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7738                 fi
7740                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7741                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7742                 fi
7744                 CFLAGS="$CFLAGS -Wshadow"
7746                 { echo "$as_me:$LINENO: checking if $CC supports -Wshadow" >&5
7747 echo $ECHO_N "checking if $CC supports -Wshadow... $ECHO_C" >&6; }
7748                 cat >conftest.$ac_ext <<_ACEOF
7749 /* confdefs.h.  */
7750 _ACEOF
7751 cat confdefs.h >>conftest.$ac_ext
7752 cat >>conftest.$ac_ext <<_ACEOF
7753 /* end confdefs.h.  */
7754 int i;
7755 int
7756 main ()
7759   ;
7760   return 0;
7762 _ACEOF
7763 rm -f conftest.$ac_objext conftest$ac_exeext
7764 if { (ac_try="$ac_link"
7765 case "(($ac_try" in
7766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7767   *) ac_try_echo=$ac_try;;
7768 esac
7769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7770   (eval "$ac_link") 2>conftest.er1
7771   ac_status=$?
7772   grep -v '^ *+' conftest.er1 >conftest.err
7773   rm -f conftest.er1
7774   cat conftest.err >&5
7775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776   (exit $ac_status); } && {
7777          test -z "$ac_c_werror_flag" ||
7778          test ! -s conftest.err
7779        } && test -s conftest$ac_exeext &&
7780        $as_test_x conftest$ac_exeext; then
7781   supported=yes
7782 else
7783   echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7786         supported=no
7787 fi
7789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7790       conftest$ac_exeext conftest.$ac_ext
7791                 { echo "$as_me:$LINENO: result: $supported" >&5
7792 echo "${ECHO_T}$supported" >&6; }
7793                 CFLAGS="$xorg_testset_save_CFLAGS"
7795                 if test "$supported" = "yes" ; then
7796                         BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
7797                         found="yes"
7798                 fi
7799         fi
7807 xorg_testset_save_CFLAGS="$CFLAGS"
7809 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7810         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7811         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7812 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7813         cat >conftest.$ac_ext <<_ACEOF
7814 /* confdefs.h.  */
7815 _ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h.  */
7819 int i;
7820 _ACEOF
7821 rm -f conftest.$ac_objext
7822 if { (ac_try="$ac_compile"
7823 case "(($ac_try" in
7824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7825   *) ac_try_echo=$ac_try;;
7826 esac
7827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7828   (eval "$ac_compile") 2>conftest.er1
7829   ac_status=$?
7830   grep -v '^ *+' conftest.er1 >conftest.err
7831   rm -f conftest.er1
7832   cat conftest.err >&5
7833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834   (exit $ac_status); } && {
7835          test -z "$ac_c_werror_flag" ||
7836          test ! -s conftest.err
7837        } && test -s conftest.$ac_objext; then
7838   xorg_testset_unknown_warning_option=yes
7839 else
7840   echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7843         xorg_testset_unknown_warning_option=no
7844 fi
7846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7847         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7848 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7849         CFLAGS="$xorg_testset_save_CFLAGS"
7850 fi
7852 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7853         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7854                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7855         fi
7856         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7857         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7858 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7859         cat >conftest.$ac_ext <<_ACEOF
7860 /* confdefs.h.  */
7861 _ACEOF
7862 cat confdefs.h >>conftest.$ac_ext
7863 cat >>conftest.$ac_ext <<_ACEOF
7864 /* end confdefs.h.  */
7865 int i;
7866 _ACEOF
7867 rm -f conftest.$ac_objext
7868 if { (ac_try="$ac_compile"
7869 case "(($ac_try" in
7870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871   *) ac_try_echo=$ac_try;;
7872 esac
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874   (eval "$ac_compile") 2>conftest.er1
7875   ac_status=$?
7876   grep -v '^ *+' conftest.er1 >conftest.err
7877   rm -f conftest.er1
7878   cat conftest.err >&5
7879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880   (exit $ac_status); } && {
7881          test -z "$ac_c_werror_flag" ||
7882          test ! -s conftest.err
7883        } && test -s conftest.$ac_objext; then
7884   xorg_testset_unused_command_line_argument=yes
7885 else
7886   echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.$ac_ext >&5
7889         xorg_testset_unused_command_line_argument=no
7890 fi
7892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7893         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7894 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7895         CFLAGS="$xorg_testset_save_CFLAGS"
7896 fi
7898 found="no"
7900         if test $found = "no" ; then
7901                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7902                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7903                 fi
7905                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7906                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7907                 fi
7909                 CFLAGS="$CFLAGS -Wcast-qual"
7911                 { echo "$as_me:$LINENO: checking if $CC supports -Wcast-qual" >&5
7912 echo $ECHO_N "checking if $CC supports -Wcast-qual... $ECHO_C" >&6; }
7913                 cat >conftest.$ac_ext <<_ACEOF
7914 /* confdefs.h.  */
7915 _ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h.  */
7919 int i;
7920 int
7921 main ()
7924   ;
7925   return 0;
7927 _ACEOF
7928 rm -f conftest.$ac_objext conftest$ac_exeext
7929 if { (ac_try="$ac_link"
7930 case "(($ac_try" in
7931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932   *) ac_try_echo=$ac_try;;
7933 esac
7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935   (eval "$ac_link") 2>conftest.er1
7936   ac_status=$?
7937   grep -v '^ *+' conftest.er1 >conftest.err
7938   rm -f conftest.er1
7939   cat conftest.err >&5
7940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941   (exit $ac_status); } && {
7942          test -z "$ac_c_werror_flag" ||
7943          test ! -s conftest.err
7944        } && test -s conftest$ac_exeext &&
7945        $as_test_x conftest$ac_exeext; then
7946   supported=yes
7947 else
7948   echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7951         supported=no
7952 fi
7954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7955       conftest$ac_exeext conftest.$ac_ext
7956                 { echo "$as_me:$LINENO: result: $supported" >&5
7957 echo "${ECHO_T}$supported" >&6; }
7958                 CFLAGS="$xorg_testset_save_CFLAGS"
7960                 if test "$supported" = "yes" ; then
7961                         BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
7962                         found="yes"
7963                 fi
7964         fi
7972 xorg_testset_save_CFLAGS="$CFLAGS"
7974 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7975         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7976         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7977 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7978         cat >conftest.$ac_ext <<_ACEOF
7979 /* confdefs.h.  */
7980 _ACEOF
7981 cat confdefs.h >>conftest.$ac_ext
7982 cat >>conftest.$ac_ext <<_ACEOF
7983 /* end confdefs.h.  */
7984 int i;
7985 _ACEOF
7986 rm -f conftest.$ac_objext
7987 if { (ac_try="$ac_compile"
7988 case "(($ac_try" in
7989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990   *) ac_try_echo=$ac_try;;
7991 esac
7992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993   (eval "$ac_compile") 2>conftest.er1
7994   ac_status=$?
7995   grep -v '^ *+' conftest.er1 >conftest.err
7996   rm -f conftest.er1
7997   cat conftest.err >&5
7998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999   (exit $ac_status); } && {
8000          test -z "$ac_c_werror_flag" ||
8001          test ! -s conftest.err
8002        } && test -s conftest.$ac_objext; then
8003   xorg_testset_unknown_warning_option=yes
8004 else
8005   echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8008         xorg_testset_unknown_warning_option=no
8009 fi
8011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8012         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
8013 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
8014         CFLAGS="$xorg_testset_save_CFLAGS"
8015 fi
8017 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8018         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8019                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8020         fi
8021         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8022         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
8023 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
8024         cat >conftest.$ac_ext <<_ACEOF
8025 /* confdefs.h.  */
8026 _ACEOF
8027 cat confdefs.h >>conftest.$ac_ext
8028 cat >>conftest.$ac_ext <<_ACEOF
8029 /* end confdefs.h.  */
8030 int i;
8031 _ACEOF
8032 rm -f conftest.$ac_objext
8033 if { (ac_try="$ac_compile"
8034 case "(($ac_try" in
8035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8036   *) ac_try_echo=$ac_try;;
8037 esac
8038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8039   (eval "$ac_compile") 2>conftest.er1
8040   ac_status=$?
8041   grep -v '^ *+' conftest.er1 >conftest.err
8042   rm -f conftest.er1
8043   cat conftest.err >&5
8044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); } && {
8046          test -z "$ac_c_werror_flag" ||
8047          test ! -s conftest.err
8048        } && test -s conftest.$ac_objext; then
8049   xorg_testset_unused_command_line_argument=yes
8050 else
8051   echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8054         xorg_testset_unused_command_line_argument=no
8055 fi
8057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8058         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
8059 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
8060         CFLAGS="$xorg_testset_save_CFLAGS"
8061 fi
8063 found="no"
8065         if test $found = "no" ; then
8066                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8067                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8068                 fi
8070                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8071                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8072                 fi
8074                 CFLAGS="$CFLAGS -Wmissing-noreturn"
8076                 { echo "$as_me:$LINENO: checking if $CC supports -Wmissing-noreturn" >&5
8077 echo $ECHO_N "checking if $CC supports -Wmissing-noreturn... $ECHO_C" >&6; }
8078                 cat >conftest.$ac_ext <<_ACEOF
8079 /* confdefs.h.  */
8080 _ACEOF
8081 cat confdefs.h >>conftest.$ac_ext
8082 cat >>conftest.$ac_ext <<_ACEOF
8083 /* end confdefs.h.  */
8084 int i;
8085 int
8086 main ()
8089   ;
8090   return 0;
8092 _ACEOF
8093 rm -f conftest.$ac_objext conftest$ac_exeext
8094 if { (ac_try="$ac_link"
8095 case "(($ac_try" in
8096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097   *) ac_try_echo=$ac_try;;
8098 esac
8099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100   (eval "$ac_link") 2>conftest.er1
8101   ac_status=$?
8102   grep -v '^ *+' conftest.er1 >conftest.err
8103   rm -f conftest.er1
8104   cat conftest.err >&5
8105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106   (exit $ac_status); } && {
8107          test -z "$ac_c_werror_flag" ||
8108          test ! -s conftest.err
8109        } && test -s conftest$ac_exeext &&
8110        $as_test_x conftest$ac_exeext; then
8111   supported=yes
8112 else
8113   echo "$as_me: failed program was:" >&5
8114 sed 's/^/| /' conftest.$ac_ext >&5
8116         supported=no
8117 fi
8119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8120       conftest$ac_exeext conftest.$ac_ext
8121                 { echo "$as_me:$LINENO: result: $supported" >&5
8122 echo "${ECHO_T}$supported" >&6; }
8123                 CFLAGS="$xorg_testset_save_CFLAGS"
8125                 if test "$supported" = "yes" ; then
8126                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
8127                         found="yes"
8128                 fi
8129         fi
8137 xorg_testset_save_CFLAGS="$CFLAGS"
8139 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8140         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8141         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8142 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8143         cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h.  */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h.  */
8149 int i;
8150 _ACEOF
8151 rm -f conftest.$ac_objext
8152 if { (ac_try="$ac_compile"
8153 case "(($ac_try" in
8154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8155   *) ac_try_echo=$ac_try;;
8156 esac
8157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8158   (eval "$ac_compile") 2>conftest.er1
8159   ac_status=$?
8160   grep -v '^ *+' conftest.er1 >conftest.err
8161   rm -f conftest.er1
8162   cat conftest.err >&5
8163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164   (exit $ac_status); } && {
8165          test -z "$ac_c_werror_flag" ||
8166          test ! -s conftest.err
8167        } && test -s conftest.$ac_objext; then
8168   xorg_testset_unknown_warning_option=yes
8169 else
8170   echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8173         xorg_testset_unknown_warning_option=no
8174 fi
8176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8177         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
8178 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
8179         CFLAGS="$xorg_testset_save_CFLAGS"
8180 fi
8182 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8183         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8184                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8185         fi
8186         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8187         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
8188 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
8189         cat >conftest.$ac_ext <<_ACEOF
8190 /* confdefs.h.  */
8191 _ACEOF
8192 cat confdefs.h >>conftest.$ac_ext
8193 cat >>conftest.$ac_ext <<_ACEOF
8194 /* end confdefs.h.  */
8195 int i;
8196 _ACEOF
8197 rm -f conftest.$ac_objext
8198 if { (ac_try="$ac_compile"
8199 case "(($ac_try" in
8200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8201   *) ac_try_echo=$ac_try;;
8202 esac
8203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8204   (eval "$ac_compile") 2>conftest.er1
8205   ac_status=$?
8206   grep -v '^ *+' conftest.er1 >conftest.err
8207   rm -f conftest.er1
8208   cat conftest.err >&5
8209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210   (exit $ac_status); } && {
8211          test -z "$ac_c_werror_flag" ||
8212          test ! -s conftest.err
8213        } && test -s conftest.$ac_objext; then
8214   xorg_testset_unused_command_line_argument=yes
8215 else
8216   echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8219         xorg_testset_unused_command_line_argument=no
8220 fi
8222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
8224 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
8225         CFLAGS="$xorg_testset_save_CFLAGS"
8226 fi
8228 found="no"
8230         if test $found = "no" ; then
8231                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8232                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8233                 fi
8235                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8236                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8237                 fi
8239                 CFLAGS="$CFLAGS -Wmissing-format-attribute"
8241                 { echo "$as_me:$LINENO: checking if $CC supports -Wmissing-format-attribute" >&5
8242 echo $ECHO_N "checking if $CC supports -Wmissing-format-attribute... $ECHO_C" >&6; }
8243                 cat >conftest.$ac_ext <<_ACEOF
8244 /* confdefs.h.  */
8245 _ACEOF
8246 cat confdefs.h >>conftest.$ac_ext
8247 cat >>conftest.$ac_ext <<_ACEOF
8248 /* end confdefs.h.  */
8249 int i;
8250 int
8251 main ()
8254   ;
8255   return 0;
8257 _ACEOF
8258 rm -f conftest.$ac_objext conftest$ac_exeext
8259 if { (ac_try="$ac_link"
8260 case "(($ac_try" in
8261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8262   *) ac_try_echo=$ac_try;;
8263 esac
8264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8265   (eval "$ac_link") 2>conftest.er1
8266   ac_status=$?
8267   grep -v '^ *+' conftest.er1 >conftest.err
8268   rm -f conftest.er1
8269   cat conftest.err >&5
8270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271   (exit $ac_status); } && {
8272          test -z "$ac_c_werror_flag" ||
8273          test ! -s conftest.err
8274        } && test -s conftest$ac_exeext &&
8275        $as_test_x conftest$ac_exeext; then
8276   supported=yes
8277 else
8278   echo "$as_me: failed program was:" >&5
8279 sed 's/^/| /' conftest.$ac_ext >&5
8281         supported=no
8282 fi
8284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8285       conftest$ac_exeext conftest.$ac_ext
8286                 { echo "$as_me:$LINENO: result: $supported" >&5
8287 echo "${ECHO_T}$supported" >&6; }
8288                 CFLAGS="$xorg_testset_save_CFLAGS"
8290                 if test "$supported" = "yes" ; then
8291                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
8292                         found="yes"
8293                 fi
8294         fi
8302 xorg_testset_save_CFLAGS="$CFLAGS"
8304 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8305         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8306         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8307 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8308         cat >conftest.$ac_ext <<_ACEOF
8309 /* confdefs.h.  */
8310 _ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h.  */
8314 int i;
8315 _ACEOF
8316 rm -f conftest.$ac_objext
8317 if { (ac_try="$ac_compile"
8318 case "(($ac_try" in
8319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320   *) ac_try_echo=$ac_try;;
8321 esac
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323   (eval "$ac_compile") 2>conftest.er1
8324   ac_status=$?
8325   grep -v '^ *+' conftest.er1 >conftest.err
8326   rm -f conftest.er1
8327   cat conftest.err >&5
8328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329   (exit $ac_status); } && {
8330          test -z "$ac_c_werror_flag" ||
8331          test ! -s conftest.err
8332        } && test -s conftest.$ac_objext; then
8333   xorg_testset_unknown_warning_option=yes
8334 else
8335   echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.$ac_ext >&5
8338         xorg_testset_unknown_warning_option=no
8339 fi
8341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8342         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
8343 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
8344         CFLAGS="$xorg_testset_save_CFLAGS"
8345 fi
8347 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8348         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8349                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8350         fi
8351         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8352         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
8353 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
8354         cat >conftest.$ac_ext <<_ACEOF
8355 /* confdefs.h.  */
8356 _ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h.  */
8360 int i;
8361 _ACEOF
8362 rm -f conftest.$ac_objext
8363 if { (ac_try="$ac_compile"
8364 case "(($ac_try" in
8365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366   *) ac_try_echo=$ac_try;;
8367 esac
8368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369   (eval "$ac_compile") 2>conftest.er1
8370   ac_status=$?
8371   grep -v '^ *+' conftest.er1 >conftest.err
8372   rm -f conftest.er1
8373   cat conftest.err >&5
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); } && {
8376          test -z "$ac_c_werror_flag" ||
8377          test ! -s conftest.err
8378        } && test -s conftest.$ac_objext; then
8379   xorg_testset_unused_command_line_argument=yes
8380 else
8381   echo "$as_me: failed program was:" >&5
8382 sed 's/^/| /' conftest.$ac_ext >&5
8384         xorg_testset_unused_command_line_argument=no
8385 fi
8387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8388         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
8389 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
8390         CFLAGS="$xorg_testset_save_CFLAGS"
8391 fi
8393 found="no"
8395         if test $found = "no" ; then
8396                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8397                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8398                 fi
8400                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8401                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8402                 fi
8404                 CFLAGS="$CFLAGS -Wredundant-decls"
8406                 { echo "$as_me:$LINENO: checking if $CC supports -Wredundant-decls" >&5
8407 echo $ECHO_N "checking if $CC supports -Wredundant-decls... $ECHO_C" >&6; }
8408                 cat >conftest.$ac_ext <<_ACEOF
8409 /* confdefs.h.  */
8410 _ACEOF
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h.  */
8414 int i;
8415 int
8416 main ()
8419   ;
8420   return 0;
8422 _ACEOF
8423 rm -f conftest.$ac_objext conftest$ac_exeext
8424 if { (ac_try="$ac_link"
8425 case "(($ac_try" in
8426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427   *) ac_try_echo=$ac_try;;
8428 esac
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430   (eval "$ac_link") 2>conftest.er1
8431   ac_status=$?
8432   grep -v '^ *+' conftest.er1 >conftest.err
8433   rm -f conftest.er1
8434   cat conftest.err >&5
8435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436   (exit $ac_status); } && {
8437          test -z "$ac_c_werror_flag" ||
8438          test ! -s conftest.err
8439        } && test -s conftest$ac_exeext &&
8440        $as_test_x conftest$ac_exeext; then
8441   supported=yes
8442 else
8443   echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8446         supported=no
8447 fi
8449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8450       conftest$ac_exeext conftest.$ac_ext
8451                 { echo "$as_me:$LINENO: result: $supported" >&5
8452 echo "${ECHO_T}$supported" >&6; }
8453                 CFLAGS="$xorg_testset_save_CFLAGS"
8455                 if test "$supported" = "yes" ; then
8456                         BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
8457                         found="yes"
8458                 fi
8459         fi
8463 # These are currently disabled because they are noisy.  They will be enabled
8464 # in the future once the codebase is sufficiently modernized to silence
8465 # them.  For now, I don't want them to drown out the other warnings.
8466 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
8467 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
8468 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
8470 # Turn some warnings into errors, so we don't accidently get successful builds
8471 # when there are problems that should be fixed.
8473 if test "x$SELECTIVE_WERROR" = "xyes" ; then
8479 xorg_testset_save_CFLAGS="$CFLAGS"
8481 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8482         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8483         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8484 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8485         cat >conftest.$ac_ext <<_ACEOF
8486 /* confdefs.h.  */
8487 _ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h.  */
8491 int i;
8492 _ACEOF
8493 rm -f conftest.$ac_objext
8494 if { (ac_try="$ac_compile"
8495 case "(($ac_try" in
8496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497   *) ac_try_echo=$ac_try;;
8498 esac
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500   (eval "$ac_compile") 2>conftest.er1
8501   ac_status=$?
8502   grep -v '^ *+' conftest.er1 >conftest.err
8503   rm -f conftest.er1
8504   cat conftest.err >&5
8505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506   (exit $ac_status); } && {
8507          test -z "$ac_c_werror_flag" ||
8508          test ! -s conftest.err
8509        } && test -s conftest.$ac_objext; then
8510   xorg_testset_unknown_warning_option=yes
8511 else
8512   echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8515         xorg_testset_unknown_warning_option=no
8516 fi
8518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8519         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
8520 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
8521         CFLAGS="$xorg_testset_save_CFLAGS"
8522 fi
8524 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8525         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8526                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8527         fi
8528         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8529         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
8530 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
8531         cat >conftest.$ac_ext <<_ACEOF
8532 /* confdefs.h.  */
8533 _ACEOF
8534 cat confdefs.h >>conftest.$ac_ext
8535 cat >>conftest.$ac_ext <<_ACEOF
8536 /* end confdefs.h.  */
8537 int i;
8538 _ACEOF
8539 rm -f conftest.$ac_objext
8540 if { (ac_try="$ac_compile"
8541 case "(($ac_try" in
8542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543   *) ac_try_echo=$ac_try;;
8544 esac
8545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8546   (eval "$ac_compile") 2>conftest.er1
8547   ac_status=$?
8548   grep -v '^ *+' conftest.er1 >conftest.err
8549   rm -f conftest.er1
8550   cat conftest.err >&5
8551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552   (exit $ac_status); } && {
8553          test -z "$ac_c_werror_flag" ||
8554          test ! -s conftest.err
8555        } && test -s conftest.$ac_objext; then
8556   xorg_testset_unused_command_line_argument=yes
8557 else
8558   echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8561         xorg_testset_unused_command_line_argument=no
8562 fi
8564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8565         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
8566 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
8567         CFLAGS="$xorg_testset_save_CFLAGS"
8568 fi
8570 found="no"
8572         if test $found = "no" ; then
8573                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8574                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8575                 fi
8577                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8578                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8579                 fi
8581                 CFLAGS="$CFLAGS -Werror=implicit"
8583                 { echo "$as_me:$LINENO: checking if $CC supports -Werror=implicit" >&5
8584 echo $ECHO_N "checking if $CC supports -Werror=implicit... $ECHO_C" >&6; }
8585                 cat >conftest.$ac_ext <<_ACEOF
8586 /* confdefs.h.  */
8587 _ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h.  */
8591 int i;
8592 int
8593 main ()
8596   ;
8597   return 0;
8599 _ACEOF
8600 rm -f conftest.$ac_objext conftest$ac_exeext
8601 if { (ac_try="$ac_link"
8602 case "(($ac_try" in
8603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604   *) ac_try_echo=$ac_try;;
8605 esac
8606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607   (eval "$ac_link") 2>conftest.er1
8608   ac_status=$?
8609   grep -v '^ *+' conftest.er1 >conftest.err
8610   rm -f conftest.er1
8611   cat conftest.err >&5
8612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613   (exit $ac_status); } && {
8614          test -z "$ac_c_werror_flag" ||
8615          test ! -s conftest.err
8616        } && test -s conftest$ac_exeext &&
8617        $as_test_x conftest$ac_exeext; then
8618   supported=yes
8619 else
8620   echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8623         supported=no
8624 fi
8626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8627       conftest$ac_exeext conftest.$ac_ext
8628                 { echo "$as_me:$LINENO: result: $supported" >&5
8629 echo "${ECHO_T}$supported" >&6; }
8630                 CFLAGS="$xorg_testset_save_CFLAGS"
8632                 if test "$supported" = "yes" ; then
8633                         BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
8634                         found="yes"
8635                 fi
8636         fi
8638         if test $found = "no" ; then
8639                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8640                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8641                 fi
8643                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8644                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8645                 fi
8647                 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
8649                 { echo "$as_me:$LINENO: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
8650 echo $ECHO_N "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... $ECHO_C" >&6; }
8651                 cat >conftest.$ac_ext <<_ACEOF
8652 /* confdefs.h.  */
8653 _ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h.  */
8657 int i;
8658 int
8659 main ()
8662   ;
8663   return 0;
8665 _ACEOF
8666 rm -f conftest.$ac_objext conftest$ac_exeext
8667 if { (ac_try="$ac_link"
8668 case "(($ac_try" in
8669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8670   *) ac_try_echo=$ac_try;;
8671 esac
8672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8673   (eval "$ac_link") 2>conftest.er1
8674   ac_status=$?
8675   grep -v '^ *+' conftest.er1 >conftest.err
8676   rm -f conftest.er1
8677   cat conftest.err >&5
8678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679   (exit $ac_status); } && {
8680          test -z "$ac_c_werror_flag" ||
8681          test ! -s conftest.err
8682        } && test -s conftest$ac_exeext &&
8683        $as_test_x conftest$ac_exeext; then
8684   supported=yes
8685 else
8686   echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8689         supported=no
8690 fi
8692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8693       conftest$ac_exeext conftest.$ac_ext
8694                 { echo "$as_me:$LINENO: result: $supported" >&5
8695 echo "${ECHO_T}$supported" >&6; }
8696                 CFLAGS="$xorg_testset_save_CFLAGS"
8698                 if test "$supported" = "yes" ; then
8699                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
8700                         found="yes"
8701                 fi
8702         fi
8710 xorg_testset_save_CFLAGS="$CFLAGS"
8712 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8713         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8714         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8715 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8716         cat >conftest.$ac_ext <<_ACEOF
8717 /* confdefs.h.  */
8718 _ACEOF
8719 cat confdefs.h >>conftest.$ac_ext
8720 cat >>conftest.$ac_ext <<_ACEOF
8721 /* end confdefs.h.  */
8722 int i;
8723 _ACEOF
8724 rm -f conftest.$ac_objext
8725 if { (ac_try="$ac_compile"
8726 case "(($ac_try" in
8727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8728   *) ac_try_echo=$ac_try;;
8729 esac
8730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8731   (eval "$ac_compile") 2>conftest.er1
8732   ac_status=$?
8733   grep -v '^ *+' conftest.er1 >conftest.err
8734   rm -f conftest.er1
8735   cat conftest.err >&5
8736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737   (exit $ac_status); } && {
8738          test -z "$ac_c_werror_flag" ||
8739          test ! -s conftest.err
8740        } && test -s conftest.$ac_objext; then
8741   xorg_testset_unknown_warning_option=yes
8742 else
8743   echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8746         xorg_testset_unknown_warning_option=no
8747 fi
8749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
8751 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
8752         CFLAGS="$xorg_testset_save_CFLAGS"
8753 fi
8755 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8756         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8757                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8758         fi
8759         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8760         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
8761 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
8762         cat >conftest.$ac_ext <<_ACEOF
8763 /* confdefs.h.  */
8764 _ACEOF
8765 cat confdefs.h >>conftest.$ac_ext
8766 cat >>conftest.$ac_ext <<_ACEOF
8767 /* end confdefs.h.  */
8768 int i;
8769 _ACEOF
8770 rm -f conftest.$ac_objext
8771 if { (ac_try="$ac_compile"
8772 case "(($ac_try" in
8773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8774   *) ac_try_echo=$ac_try;;
8775 esac
8776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8777   (eval "$ac_compile") 2>conftest.er1
8778   ac_status=$?
8779   grep -v '^ *+' conftest.er1 >conftest.err
8780   rm -f conftest.er1
8781   cat conftest.err >&5
8782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783   (exit $ac_status); } && {
8784          test -z "$ac_c_werror_flag" ||
8785          test ! -s conftest.err
8786        } && test -s conftest.$ac_objext; then
8787   xorg_testset_unused_command_line_argument=yes
8788 else
8789   echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8792         xorg_testset_unused_command_line_argument=no
8793 fi
8795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8796         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
8797 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
8798         CFLAGS="$xorg_testset_save_CFLAGS"
8799 fi
8801 found="no"
8803         if test $found = "no" ; then
8804                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8805                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8806                 fi
8808                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8809                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8810                 fi
8812                 CFLAGS="$CFLAGS -Werror=nonnull"
8814                 { echo "$as_me:$LINENO: checking if $CC supports -Werror=nonnull" >&5
8815 echo $ECHO_N "checking if $CC supports -Werror=nonnull... $ECHO_C" >&6; }
8816                 cat >conftest.$ac_ext <<_ACEOF
8817 /* confdefs.h.  */
8818 _ACEOF
8819 cat confdefs.h >>conftest.$ac_ext
8820 cat >>conftest.$ac_ext <<_ACEOF
8821 /* end confdefs.h.  */
8822 int i;
8823 int
8824 main ()
8827   ;
8828   return 0;
8830 _ACEOF
8831 rm -f conftest.$ac_objext conftest$ac_exeext
8832 if { (ac_try="$ac_link"
8833 case "(($ac_try" in
8834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8835   *) ac_try_echo=$ac_try;;
8836 esac
8837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8838   (eval "$ac_link") 2>conftest.er1
8839   ac_status=$?
8840   grep -v '^ *+' conftest.er1 >conftest.err
8841   rm -f conftest.er1
8842   cat conftest.err >&5
8843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844   (exit $ac_status); } && {
8845          test -z "$ac_c_werror_flag" ||
8846          test ! -s conftest.err
8847        } && test -s conftest$ac_exeext &&
8848        $as_test_x conftest$ac_exeext; then
8849   supported=yes
8850 else
8851   echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8854         supported=no
8855 fi
8857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8858       conftest$ac_exeext conftest.$ac_ext
8859                 { echo "$as_me:$LINENO: result: $supported" >&5
8860 echo "${ECHO_T}$supported" >&6; }
8861                 CFLAGS="$xorg_testset_save_CFLAGS"
8863                 if test "$supported" = "yes" ; then
8864                         BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
8865                         found="yes"
8866                 fi
8867         fi
8875 xorg_testset_save_CFLAGS="$CFLAGS"
8877 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8878         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8879         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8880 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8881         cat >conftest.$ac_ext <<_ACEOF
8882 /* confdefs.h.  */
8883 _ACEOF
8884 cat confdefs.h >>conftest.$ac_ext
8885 cat >>conftest.$ac_ext <<_ACEOF
8886 /* end confdefs.h.  */
8887 int i;
8888 _ACEOF
8889 rm -f conftest.$ac_objext
8890 if { (ac_try="$ac_compile"
8891 case "(($ac_try" in
8892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8893   *) ac_try_echo=$ac_try;;
8894 esac
8895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8896   (eval "$ac_compile") 2>conftest.er1
8897   ac_status=$?
8898   grep -v '^ *+' conftest.er1 >conftest.err
8899   rm -f conftest.er1
8900   cat conftest.err >&5
8901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902   (exit $ac_status); } && {
8903          test -z "$ac_c_werror_flag" ||
8904          test ! -s conftest.err
8905        } && test -s conftest.$ac_objext; then
8906   xorg_testset_unknown_warning_option=yes
8907 else
8908   echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8911         xorg_testset_unknown_warning_option=no
8912 fi
8914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8915         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
8916 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
8917         CFLAGS="$xorg_testset_save_CFLAGS"
8918 fi
8920 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8921         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8922                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8923         fi
8924         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8925         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
8926 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
8927         cat >conftest.$ac_ext <<_ACEOF
8928 /* confdefs.h.  */
8929 _ACEOF
8930 cat confdefs.h >>conftest.$ac_ext
8931 cat >>conftest.$ac_ext <<_ACEOF
8932 /* end confdefs.h.  */
8933 int i;
8934 _ACEOF
8935 rm -f conftest.$ac_objext
8936 if { (ac_try="$ac_compile"
8937 case "(($ac_try" in
8938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939   *) ac_try_echo=$ac_try;;
8940 esac
8941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8942   (eval "$ac_compile") 2>conftest.er1
8943   ac_status=$?
8944   grep -v '^ *+' conftest.er1 >conftest.err
8945   rm -f conftest.er1
8946   cat conftest.err >&5
8947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948   (exit $ac_status); } && {
8949          test -z "$ac_c_werror_flag" ||
8950          test ! -s conftest.err
8951        } && test -s conftest.$ac_objext; then
8952   xorg_testset_unused_command_line_argument=yes
8953 else
8954   echo "$as_me: failed program was:" >&5
8955 sed 's/^/| /' conftest.$ac_ext >&5
8957         xorg_testset_unused_command_line_argument=no
8958 fi
8960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8961         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
8962 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
8963         CFLAGS="$xorg_testset_save_CFLAGS"
8964 fi
8966 found="no"
8968         if test $found = "no" ; then
8969                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8970                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8971                 fi
8973                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8974                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8975                 fi
8977                 CFLAGS="$CFLAGS -Werror=init-self"
8979                 { echo "$as_me:$LINENO: checking if $CC supports -Werror=init-self" >&5
8980 echo $ECHO_N "checking if $CC supports -Werror=init-self... $ECHO_C" >&6; }
8981                 cat >conftest.$ac_ext <<_ACEOF
8982 /* confdefs.h.  */
8983 _ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h.  */
8987 int i;
8988 int
8989 main ()
8992   ;
8993   return 0;
8995 _ACEOF
8996 rm -f conftest.$ac_objext conftest$ac_exeext
8997 if { (ac_try="$ac_link"
8998 case "(($ac_try" in
8999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9000   *) ac_try_echo=$ac_try;;
9001 esac
9002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9003   (eval "$ac_link") 2>conftest.er1
9004   ac_status=$?
9005   grep -v '^ *+' conftest.er1 >conftest.err
9006   rm -f conftest.er1
9007   cat conftest.err >&5
9008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009   (exit $ac_status); } && {
9010          test -z "$ac_c_werror_flag" ||
9011          test ! -s conftest.err
9012        } && test -s conftest$ac_exeext &&
9013        $as_test_x conftest$ac_exeext; then
9014   supported=yes
9015 else
9016   echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9019         supported=no
9020 fi
9022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9023       conftest$ac_exeext conftest.$ac_ext
9024                 { echo "$as_me:$LINENO: result: $supported" >&5
9025 echo "${ECHO_T}$supported" >&6; }
9026                 CFLAGS="$xorg_testset_save_CFLAGS"
9028                 if test "$supported" = "yes" ; then
9029                         BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
9030                         found="yes"
9031                 fi
9032         fi
9040 xorg_testset_save_CFLAGS="$CFLAGS"
9042 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9043         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9044         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
9045 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
9046         cat >conftest.$ac_ext <<_ACEOF
9047 /* confdefs.h.  */
9048 _ACEOF
9049 cat confdefs.h >>conftest.$ac_ext
9050 cat >>conftest.$ac_ext <<_ACEOF
9051 /* end confdefs.h.  */
9052 int i;
9053 _ACEOF
9054 rm -f conftest.$ac_objext
9055 if { (ac_try="$ac_compile"
9056 case "(($ac_try" in
9057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9058   *) ac_try_echo=$ac_try;;
9059 esac
9060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9061   (eval "$ac_compile") 2>conftest.er1
9062   ac_status=$?
9063   grep -v '^ *+' conftest.er1 >conftest.err
9064   rm -f conftest.er1
9065   cat conftest.err >&5
9066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067   (exit $ac_status); } && {
9068          test -z "$ac_c_werror_flag" ||
9069          test ! -s conftest.err
9070        } && test -s conftest.$ac_objext; then
9071   xorg_testset_unknown_warning_option=yes
9072 else
9073   echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.$ac_ext >&5
9076         xorg_testset_unknown_warning_option=no
9077 fi
9079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9080         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9081 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9082         CFLAGS="$xorg_testset_save_CFLAGS"
9083 fi
9085 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9086         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9087                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9088         fi
9089         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9090         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9091 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9092         cat >conftest.$ac_ext <<_ACEOF
9093 /* confdefs.h.  */
9094 _ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h.  */
9098 int i;
9099 _ACEOF
9100 rm -f conftest.$ac_objext
9101 if { (ac_try="$ac_compile"
9102 case "(($ac_try" in
9103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9104   *) ac_try_echo=$ac_try;;
9105 esac
9106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9107   (eval "$ac_compile") 2>conftest.er1
9108   ac_status=$?
9109   grep -v '^ *+' conftest.er1 >conftest.err
9110   rm -f conftest.er1
9111   cat conftest.err >&5
9112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113   (exit $ac_status); } && {
9114          test -z "$ac_c_werror_flag" ||
9115          test ! -s conftest.err
9116        } && test -s conftest.$ac_objext; then
9117   xorg_testset_unused_command_line_argument=yes
9118 else
9119   echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9122         xorg_testset_unused_command_line_argument=no
9123 fi
9125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9126         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9127 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9128         CFLAGS="$xorg_testset_save_CFLAGS"
9129 fi
9131 found="no"
9133         if test $found = "no" ; then
9134                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9135                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9136                 fi
9138                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9139                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9140                 fi
9142                 CFLAGS="$CFLAGS -Werror=main"
9144                 { echo "$as_me:$LINENO: checking if $CC supports -Werror=main" >&5
9145 echo $ECHO_N "checking if $CC supports -Werror=main... $ECHO_C" >&6; }
9146                 cat >conftest.$ac_ext <<_ACEOF
9147 /* confdefs.h.  */
9148 _ACEOF
9149 cat confdefs.h >>conftest.$ac_ext
9150 cat >>conftest.$ac_ext <<_ACEOF
9151 /* end confdefs.h.  */
9152 int i;
9153 int
9154 main ()
9157   ;
9158   return 0;
9160 _ACEOF
9161 rm -f conftest.$ac_objext conftest$ac_exeext
9162 if { (ac_try="$ac_link"
9163 case "(($ac_try" in
9164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165   *) ac_try_echo=$ac_try;;
9166 esac
9167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9168   (eval "$ac_link") 2>conftest.er1
9169   ac_status=$?
9170   grep -v '^ *+' conftest.er1 >conftest.err
9171   rm -f conftest.er1
9172   cat conftest.err >&5
9173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174   (exit $ac_status); } && {
9175          test -z "$ac_c_werror_flag" ||
9176          test ! -s conftest.err
9177        } && test -s conftest$ac_exeext &&
9178        $as_test_x conftest$ac_exeext; then
9179   supported=yes
9180 else
9181   echo "$as_me: failed program was:" >&5
9182 sed 's/^/| /' conftest.$ac_ext >&5
9184         supported=no
9185 fi
9187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9188       conftest$ac_exeext conftest.$ac_ext
9189                 { echo "$as_me:$LINENO: result: $supported" >&5
9190 echo "${ECHO_T}$supported" >&6; }
9191                 CFLAGS="$xorg_testset_save_CFLAGS"
9193                 if test "$supported" = "yes" ; then
9194                         BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
9195                         found="yes"
9196                 fi
9197         fi
9205 xorg_testset_save_CFLAGS="$CFLAGS"
9207 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9208         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9209         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
9210 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
9211         cat >conftest.$ac_ext <<_ACEOF
9212 /* confdefs.h.  */
9213 _ACEOF
9214 cat confdefs.h >>conftest.$ac_ext
9215 cat >>conftest.$ac_ext <<_ACEOF
9216 /* end confdefs.h.  */
9217 int i;
9218 _ACEOF
9219 rm -f conftest.$ac_objext
9220 if { (ac_try="$ac_compile"
9221 case "(($ac_try" in
9222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9223   *) ac_try_echo=$ac_try;;
9224 esac
9225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9226   (eval "$ac_compile") 2>conftest.er1
9227   ac_status=$?
9228   grep -v '^ *+' conftest.er1 >conftest.err
9229   rm -f conftest.er1
9230   cat conftest.err >&5
9231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232   (exit $ac_status); } && {
9233          test -z "$ac_c_werror_flag" ||
9234          test ! -s conftest.err
9235        } && test -s conftest.$ac_objext; then
9236   xorg_testset_unknown_warning_option=yes
9237 else
9238   echo "$as_me: failed program was:" >&5
9239 sed 's/^/| /' conftest.$ac_ext >&5
9241         xorg_testset_unknown_warning_option=no
9242 fi
9244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9245         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9246 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9247         CFLAGS="$xorg_testset_save_CFLAGS"
9248 fi
9250 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9251         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9252                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9253         fi
9254         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9255         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9256 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9257         cat >conftest.$ac_ext <<_ACEOF
9258 /* confdefs.h.  */
9259 _ACEOF
9260 cat confdefs.h >>conftest.$ac_ext
9261 cat >>conftest.$ac_ext <<_ACEOF
9262 /* end confdefs.h.  */
9263 int i;
9264 _ACEOF
9265 rm -f conftest.$ac_objext
9266 if { (ac_try="$ac_compile"
9267 case "(($ac_try" in
9268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9269   *) ac_try_echo=$ac_try;;
9270 esac
9271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9272   (eval "$ac_compile") 2>conftest.er1
9273   ac_status=$?
9274   grep -v '^ *+' conftest.er1 >conftest.err
9275   rm -f conftest.er1
9276   cat conftest.err >&5
9277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278   (exit $ac_status); } && {
9279          test -z "$ac_c_werror_flag" ||
9280          test ! -s conftest.err
9281        } && test -s conftest.$ac_objext; then
9282   xorg_testset_unused_command_line_argument=yes
9283 else
9284   echo "$as_me: failed program was:" >&5
9285 sed 's/^/| /' conftest.$ac_ext >&5
9287         xorg_testset_unused_command_line_argument=no
9288 fi
9290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9291         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9292 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9293         CFLAGS="$xorg_testset_save_CFLAGS"
9294 fi
9296 found="no"
9298         if test $found = "no" ; then
9299                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9300                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9301                 fi
9303                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9304                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9305                 fi
9307                 CFLAGS="$CFLAGS -Werror=missing-braces"
9309                 { echo "$as_me:$LINENO: checking if $CC supports -Werror=missing-braces" >&5
9310 echo $ECHO_N "checking if $CC supports -Werror=missing-braces... $ECHO_C" >&6; }
9311                 cat >conftest.$ac_ext <<_ACEOF
9312 /* confdefs.h.  */
9313 _ACEOF
9314 cat confdefs.h >>conftest.$ac_ext
9315 cat >>conftest.$ac_ext <<_ACEOF
9316 /* end confdefs.h.  */
9317 int i;
9318 int
9319 main ()
9322   ;
9323   return 0;
9325 _ACEOF
9326 rm -f conftest.$ac_objext conftest$ac_exeext
9327 if { (ac_try="$ac_link"
9328 case "(($ac_try" in
9329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9330   *) ac_try_echo=$ac_try;;
9331 esac
9332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9333   (eval "$ac_link") 2>conftest.er1
9334   ac_status=$?
9335   grep -v '^ *+' conftest.er1 >conftest.err
9336   rm -f conftest.er1
9337   cat conftest.err >&5
9338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339   (exit $ac_status); } && {
9340          test -z "$ac_c_werror_flag" ||
9341          test ! -s conftest.err
9342        } && test -s conftest$ac_exeext &&
9343        $as_test_x conftest$ac_exeext; then
9344   supported=yes
9345 else
9346   echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.$ac_ext >&5
9349         supported=no
9350 fi
9352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9353       conftest$ac_exeext conftest.$ac_ext
9354                 { echo "$as_me:$LINENO: result: $supported" >&5
9355 echo "${ECHO_T}$supported" >&6; }
9356                 CFLAGS="$xorg_testset_save_CFLAGS"
9358                 if test "$supported" = "yes" ; then
9359                         BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
9360                         found="yes"
9361                 fi
9362         fi
9370 xorg_testset_save_CFLAGS="$CFLAGS"
9372 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9373         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9374         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
9375 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
9376         cat >conftest.$ac_ext <<_ACEOF
9377 /* confdefs.h.  */
9378 _ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h.  */
9382 int i;
9383 _ACEOF
9384 rm -f conftest.$ac_objext
9385 if { (ac_try="$ac_compile"
9386 case "(($ac_try" in
9387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388   *) ac_try_echo=$ac_try;;
9389 esac
9390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391   (eval "$ac_compile") 2>conftest.er1
9392   ac_status=$?
9393   grep -v '^ *+' conftest.er1 >conftest.err
9394   rm -f conftest.er1
9395   cat conftest.err >&5
9396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397   (exit $ac_status); } && {
9398          test -z "$ac_c_werror_flag" ||
9399          test ! -s conftest.err
9400        } && test -s conftest.$ac_objext; then
9401   xorg_testset_unknown_warning_option=yes
9402 else
9403   echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9406         xorg_testset_unknown_warning_option=no
9407 fi
9409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9410         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9411 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9412         CFLAGS="$xorg_testset_save_CFLAGS"
9413 fi
9415 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9416         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9417                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9418         fi
9419         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9420         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9421 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9422         cat >conftest.$ac_ext <<_ACEOF
9423 /* confdefs.h.  */
9424 _ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h.  */
9428 int i;
9429 _ACEOF
9430 rm -f conftest.$ac_objext
9431 if { (ac_try="$ac_compile"
9432 case "(($ac_try" in
9433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9434   *) ac_try_echo=$ac_try;;
9435 esac
9436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9437   (eval "$ac_compile") 2>conftest.er1
9438   ac_status=$?
9439   grep -v '^ *+' conftest.er1 >conftest.err
9440   rm -f conftest.er1
9441   cat conftest.err >&5
9442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443   (exit $ac_status); } && {
9444          test -z "$ac_c_werror_flag" ||
9445          test ! -s conftest.err
9446        } && test -s conftest.$ac_objext; then
9447   xorg_testset_unused_command_line_argument=yes
9448 else
9449   echo "$as_me: failed program was:" >&5
9450 sed 's/^/| /' conftest.$ac_ext >&5
9452         xorg_testset_unused_command_line_argument=no
9453 fi
9455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9456         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9457 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9458         CFLAGS="$xorg_testset_save_CFLAGS"
9459 fi
9461 found="no"
9463         if test $found = "no" ; then
9464                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9465                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9466                 fi
9468                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9469                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9470                 fi
9472                 CFLAGS="$CFLAGS -Werror=sequence-point"
9474                 { echo "$as_me:$LINENO: checking if $CC supports -Werror=sequence-point" >&5
9475 echo $ECHO_N "checking if $CC supports -Werror=sequence-point... $ECHO_C" >&6; }
9476                 cat >conftest.$ac_ext <<_ACEOF
9477 /* confdefs.h.  */
9478 _ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h.  */
9482 int i;
9483 int
9484 main ()
9487   ;
9488   return 0;
9490 _ACEOF
9491 rm -f conftest.$ac_objext conftest$ac_exeext
9492 if { (ac_try="$ac_link"
9493 case "(($ac_try" in
9494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9495   *) ac_try_echo=$ac_try;;
9496 esac
9497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9498   (eval "$ac_link") 2>conftest.er1
9499   ac_status=$?
9500   grep -v '^ *+' conftest.er1 >conftest.err
9501   rm -f conftest.er1
9502   cat conftest.err >&5
9503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504   (exit $ac_status); } && {
9505          test -z "$ac_c_werror_flag" ||
9506          test ! -s conftest.err
9507        } && test -s conftest$ac_exeext &&
9508        $as_test_x conftest$ac_exeext; then
9509   supported=yes
9510 else
9511   echo "$as_me: failed program was:" >&5
9512 sed 's/^/| /' conftest.$ac_ext >&5
9514         supported=no
9515 fi
9517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9518       conftest$ac_exeext conftest.$ac_ext
9519                 { echo "$as_me:$LINENO: result: $supported" >&5
9520 echo "${ECHO_T}$supported" >&6; }
9521                 CFLAGS="$xorg_testset_save_CFLAGS"
9523                 if test "$supported" = "yes" ; then
9524                         BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
9525                         found="yes"
9526                 fi
9527         fi
9535 xorg_testset_save_CFLAGS="$CFLAGS"
9537 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9538         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9539         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
9540 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
9541         cat >conftest.$ac_ext <<_ACEOF
9542 /* confdefs.h.  */
9543 _ACEOF
9544 cat confdefs.h >>conftest.$ac_ext
9545 cat >>conftest.$ac_ext <<_ACEOF
9546 /* end confdefs.h.  */
9547 int i;
9548 _ACEOF
9549 rm -f conftest.$ac_objext
9550 if { (ac_try="$ac_compile"
9551 case "(($ac_try" in
9552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553   *) ac_try_echo=$ac_try;;
9554 esac
9555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9556   (eval "$ac_compile") 2>conftest.er1
9557   ac_status=$?
9558   grep -v '^ *+' conftest.er1 >conftest.err
9559   rm -f conftest.er1
9560   cat conftest.err >&5
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); } && {
9563          test -z "$ac_c_werror_flag" ||
9564          test ! -s conftest.err
9565        } && test -s conftest.$ac_objext; then
9566   xorg_testset_unknown_warning_option=yes
9567 else
9568   echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9571         xorg_testset_unknown_warning_option=no
9572 fi
9574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9575         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9576 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9577         CFLAGS="$xorg_testset_save_CFLAGS"
9578 fi
9580 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9581         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9582                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9583         fi
9584         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9585         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9586 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9587         cat >conftest.$ac_ext <<_ACEOF
9588 /* confdefs.h.  */
9589 _ACEOF
9590 cat confdefs.h >>conftest.$ac_ext
9591 cat >>conftest.$ac_ext <<_ACEOF
9592 /* end confdefs.h.  */
9593 int i;
9594 _ACEOF
9595 rm -f conftest.$ac_objext
9596 if { (ac_try="$ac_compile"
9597 case "(($ac_try" in
9598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599   *) ac_try_echo=$ac_try;;
9600 esac
9601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602   (eval "$ac_compile") 2>conftest.er1
9603   ac_status=$?
9604   grep -v '^ *+' conftest.er1 >conftest.err
9605   rm -f conftest.er1
9606   cat conftest.err >&5
9607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608   (exit $ac_status); } && {
9609          test -z "$ac_c_werror_flag" ||
9610          test ! -s conftest.err
9611        } && test -s conftest.$ac_objext; then
9612   xorg_testset_unused_command_line_argument=yes
9613 else
9614   echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9617         xorg_testset_unused_command_line_argument=no
9618 fi
9620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9621         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9622 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9623         CFLAGS="$xorg_testset_save_CFLAGS"
9624 fi
9626 found="no"
9628         if test $found = "no" ; then
9629                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9630                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9631                 fi
9633                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9634                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9635                 fi
9637                 CFLAGS="$CFLAGS -Werror=return-type"
9639                 { echo "$as_me:$LINENO: checking if $CC supports -Werror=return-type" >&5
9640 echo $ECHO_N "checking if $CC supports -Werror=return-type... $ECHO_C" >&6; }
9641                 cat >conftest.$ac_ext <<_ACEOF
9642 /* confdefs.h.  */
9643 _ACEOF
9644 cat confdefs.h >>conftest.$ac_ext
9645 cat >>conftest.$ac_ext <<_ACEOF
9646 /* end confdefs.h.  */
9647 int i;
9648 int
9649 main ()
9652   ;
9653   return 0;
9655 _ACEOF
9656 rm -f conftest.$ac_objext conftest$ac_exeext
9657 if { (ac_try="$ac_link"
9658 case "(($ac_try" in
9659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9660   *) ac_try_echo=$ac_try;;
9661 esac
9662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9663   (eval "$ac_link") 2>conftest.er1
9664   ac_status=$?
9665   grep -v '^ *+' conftest.er1 >conftest.err
9666   rm -f conftest.er1
9667   cat conftest.err >&5
9668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669   (exit $ac_status); } && {
9670          test -z "$ac_c_werror_flag" ||
9671          test ! -s conftest.err
9672        } && test -s conftest$ac_exeext &&
9673        $as_test_x conftest$ac_exeext; then
9674   supported=yes
9675 else
9676   echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9679         supported=no
9680 fi
9682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9683       conftest$ac_exeext conftest.$ac_ext
9684                 { echo "$as_me:$LINENO: result: $supported" >&5
9685 echo "${ECHO_T}$supported" >&6; }
9686                 CFLAGS="$xorg_testset_save_CFLAGS"
9688                 if test "$supported" = "yes" ; then
9689                         BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
9690                         found="yes"
9691                 fi
9692         fi
9694         if test $found = "no" ; then
9695                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9696                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9697                 fi
9699                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9700                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9701                 fi
9703                 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
9705                 { echo "$as_me:$LINENO: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
9706 echo $ECHO_N "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... $ECHO_C" >&6; }
9707                 cat >conftest.$ac_ext <<_ACEOF
9708 /* confdefs.h.  */
9709 _ACEOF
9710 cat confdefs.h >>conftest.$ac_ext
9711 cat >>conftest.$ac_ext <<_ACEOF
9712 /* end confdefs.h.  */
9713 int i;
9714 int
9715 main ()
9718   ;
9719   return 0;
9721 _ACEOF
9722 rm -f conftest.$ac_objext conftest$ac_exeext
9723 if { (ac_try="$ac_link"
9724 case "(($ac_try" in
9725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726   *) ac_try_echo=$ac_try;;
9727 esac
9728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729   (eval "$ac_link") 2>conftest.er1
9730   ac_status=$?
9731   grep -v '^ *+' conftest.er1 >conftest.err
9732   rm -f conftest.er1
9733   cat conftest.err >&5
9734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735   (exit $ac_status); } && {
9736          test -z "$ac_c_werror_flag" ||
9737          test ! -s conftest.err
9738        } && test -s conftest$ac_exeext &&
9739        $as_test_x conftest$ac_exeext; then
9740   supported=yes
9741 else
9742   echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9745         supported=no
9746 fi
9748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9749       conftest$ac_exeext conftest.$ac_ext
9750                 { echo "$as_me:$LINENO: result: $supported" >&5
9751 echo "${ECHO_T}$supported" >&6; }
9752                 CFLAGS="$xorg_testset_save_CFLAGS"
9754                 if test "$supported" = "yes" ; then
9755                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
9756                         found="yes"
9757                 fi
9758         fi
9766 xorg_testset_save_CFLAGS="$CFLAGS"
9768 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9769         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9770         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
9771 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
9772         cat >conftest.$ac_ext <<_ACEOF
9773 /* confdefs.h.  */
9774 _ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h.  */
9778 int i;
9779 _ACEOF
9780 rm -f conftest.$ac_objext
9781 if { (ac_try="$ac_compile"
9782 case "(($ac_try" in
9783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9784   *) ac_try_echo=$ac_try;;
9785 esac
9786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9787   (eval "$ac_compile") 2>conftest.er1
9788   ac_status=$?
9789   grep -v '^ *+' conftest.er1 >conftest.err
9790   rm -f conftest.er1
9791   cat conftest.err >&5
9792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793   (exit $ac_status); } && {
9794          test -z "$ac_c_werror_flag" ||
9795          test ! -s conftest.err
9796        } && test -s conftest.$ac_objext; then
9797   xorg_testset_unknown_warning_option=yes
9798 else
9799   echo "$as_me: failed program was:" >&5
9800 sed 's/^/| /' conftest.$ac_ext >&5
9802         xorg_testset_unknown_warning_option=no
9803 fi
9805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9806         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9807 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9808         CFLAGS="$xorg_testset_save_CFLAGS"
9809 fi
9811 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9812         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9813                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9814         fi
9815         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9816         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9817 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9818         cat >conftest.$ac_ext <<_ACEOF
9819 /* confdefs.h.  */
9820 _ACEOF
9821 cat confdefs.h >>conftest.$ac_ext
9822 cat >>conftest.$ac_ext <<_ACEOF
9823 /* end confdefs.h.  */
9824 int i;
9825 _ACEOF
9826 rm -f conftest.$ac_objext
9827 if { (ac_try="$ac_compile"
9828 case "(($ac_try" in
9829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830   *) ac_try_echo=$ac_try;;
9831 esac
9832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833   (eval "$ac_compile") 2>conftest.er1
9834   ac_status=$?
9835   grep -v '^ *+' conftest.er1 >conftest.err
9836   rm -f conftest.er1
9837   cat conftest.err >&5
9838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839   (exit $ac_status); } && {
9840          test -z "$ac_c_werror_flag" ||
9841          test ! -s conftest.err
9842        } && test -s conftest.$ac_objext; then
9843   xorg_testset_unused_command_line_argument=yes
9844 else
9845   echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9848         xorg_testset_unused_command_line_argument=no
9849 fi
9851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9852         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9853 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9854         CFLAGS="$xorg_testset_save_CFLAGS"
9855 fi
9857 found="no"
9859         if test $found = "no" ; then
9860                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9861                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9862                 fi
9864                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9865                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9866                 fi
9868                 CFLAGS="$CFLAGS -Werror=trigraphs"
9870                 { echo "$as_me:$LINENO: checking if $CC supports -Werror=trigraphs" >&5
9871 echo $ECHO_N "checking if $CC supports -Werror=trigraphs... $ECHO_C" >&6; }
9872                 cat >conftest.$ac_ext <<_ACEOF
9873 /* confdefs.h.  */
9874 _ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h.  */
9878 int i;
9879 int
9880 main ()
9883   ;
9884   return 0;
9886 _ACEOF
9887 rm -f conftest.$ac_objext conftest$ac_exeext
9888 if { (ac_try="$ac_link"
9889 case "(($ac_try" in
9890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891   *) ac_try_echo=$ac_try;;
9892 esac
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894   (eval "$ac_link") 2>conftest.er1
9895   ac_status=$?
9896   grep -v '^ *+' conftest.er1 >conftest.err
9897   rm -f conftest.er1
9898   cat conftest.err >&5
9899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900   (exit $ac_status); } && {
9901          test -z "$ac_c_werror_flag" ||
9902          test ! -s conftest.err
9903        } && test -s conftest$ac_exeext &&
9904        $as_test_x conftest$ac_exeext; then
9905   supported=yes
9906 else
9907   echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9910         supported=no
9911 fi
9913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9914       conftest$ac_exeext conftest.$ac_ext
9915                 { echo "$as_me:$LINENO: result: $supported" >&5
9916 echo "${ECHO_T}$supported" >&6; }
9917                 CFLAGS="$xorg_testset_save_CFLAGS"
9919                 if test "$supported" = "yes" ; then
9920                         BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
9921                         found="yes"
9922                 fi
9923         fi
9931 xorg_testset_save_CFLAGS="$CFLAGS"
9933 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9934         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9935         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
9936 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
9937         cat >conftest.$ac_ext <<_ACEOF
9938 /* confdefs.h.  */
9939 _ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h.  */
9943 int i;
9944 _ACEOF
9945 rm -f conftest.$ac_objext
9946 if { (ac_try="$ac_compile"
9947 case "(($ac_try" in
9948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949   *) ac_try_echo=$ac_try;;
9950 esac
9951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952   (eval "$ac_compile") 2>conftest.er1
9953   ac_status=$?
9954   grep -v '^ *+' conftest.er1 >conftest.err
9955   rm -f conftest.er1
9956   cat conftest.err >&5
9957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958   (exit $ac_status); } && {
9959          test -z "$ac_c_werror_flag" ||
9960          test ! -s conftest.err
9961        } && test -s conftest.$ac_objext; then
9962   xorg_testset_unknown_warning_option=yes
9963 else
9964   echo "$as_me: failed program was:" >&5
9965 sed 's/^/| /' conftest.$ac_ext >&5
9967         xorg_testset_unknown_warning_option=no
9968 fi
9970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9971         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9972 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9973         CFLAGS="$xorg_testset_save_CFLAGS"
9974 fi
9976 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9977         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9978                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9979         fi
9980         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9981         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9982 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9983         cat >conftest.$ac_ext <<_ACEOF
9984 /* confdefs.h.  */
9985 _ACEOF
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h.  */
9989 int i;
9990 _ACEOF
9991 rm -f conftest.$ac_objext
9992 if { (ac_try="$ac_compile"
9993 case "(($ac_try" in
9994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995   *) ac_try_echo=$ac_try;;
9996 esac
9997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998   (eval "$ac_compile") 2>conftest.er1
9999   ac_status=$?
10000   grep -v '^ *+' conftest.er1 >conftest.err
10001   rm -f conftest.er1
10002   cat conftest.err >&5
10003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004   (exit $ac_status); } && {
10005          test -z "$ac_c_werror_flag" ||
10006          test ! -s conftest.err
10007        } && test -s conftest.$ac_objext; then
10008   xorg_testset_unused_command_line_argument=yes
10009 else
10010   echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10013         xorg_testset_unused_command_line_argument=no
10016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10017         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10018 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10019         CFLAGS="$xorg_testset_save_CFLAGS"
10022 found="no"
10024         if test $found = "no" ; then
10025                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10026                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10027                 fi
10029                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10030                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10031                 fi
10033                 CFLAGS="$CFLAGS -Werror=array-bounds"
10035                 { echo "$as_me:$LINENO: checking if $CC supports -Werror=array-bounds" >&5
10036 echo $ECHO_N "checking if $CC supports -Werror=array-bounds... $ECHO_C" >&6; }
10037                 cat >conftest.$ac_ext <<_ACEOF
10038 /* confdefs.h.  */
10039 _ACEOF
10040 cat confdefs.h >>conftest.$ac_ext
10041 cat >>conftest.$ac_ext <<_ACEOF
10042 /* end confdefs.h.  */
10043 int i;
10044 int
10045 main ()
10048   ;
10049   return 0;
10051 _ACEOF
10052 rm -f conftest.$ac_objext conftest$ac_exeext
10053 if { (ac_try="$ac_link"
10054 case "(($ac_try" in
10055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056   *) ac_try_echo=$ac_try;;
10057 esac
10058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059   (eval "$ac_link") 2>conftest.er1
10060   ac_status=$?
10061   grep -v '^ *+' conftest.er1 >conftest.err
10062   rm -f conftest.er1
10063   cat conftest.err >&5
10064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065   (exit $ac_status); } && {
10066          test -z "$ac_c_werror_flag" ||
10067          test ! -s conftest.err
10068        } && test -s conftest$ac_exeext &&
10069        $as_test_x conftest$ac_exeext; then
10070   supported=yes
10071 else
10072   echo "$as_me: failed program was:" >&5
10073 sed 's/^/| /' conftest.$ac_ext >&5
10075         supported=no
10078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10079       conftest$ac_exeext conftest.$ac_ext
10080                 { echo "$as_me:$LINENO: result: $supported" >&5
10081 echo "${ECHO_T}$supported" >&6; }
10082                 CFLAGS="$xorg_testset_save_CFLAGS"
10084                 if test "$supported" = "yes" ; then
10085                         BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
10086                         found="yes"
10087                 fi
10088         fi
10096 xorg_testset_save_CFLAGS="$CFLAGS"
10098 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10099         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10100         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10101 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10102         cat >conftest.$ac_ext <<_ACEOF
10103 /* confdefs.h.  */
10104 _ACEOF
10105 cat confdefs.h >>conftest.$ac_ext
10106 cat >>conftest.$ac_ext <<_ACEOF
10107 /* end confdefs.h.  */
10108 int i;
10109 _ACEOF
10110 rm -f conftest.$ac_objext
10111 if { (ac_try="$ac_compile"
10112 case "(($ac_try" in
10113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114   *) ac_try_echo=$ac_try;;
10115 esac
10116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117   (eval "$ac_compile") 2>conftest.er1
10118   ac_status=$?
10119   grep -v '^ *+' conftest.er1 >conftest.err
10120   rm -f conftest.er1
10121   cat conftest.err >&5
10122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123   (exit $ac_status); } && {
10124          test -z "$ac_c_werror_flag" ||
10125          test ! -s conftest.err
10126        } && test -s conftest.$ac_objext; then
10127   xorg_testset_unknown_warning_option=yes
10128 else
10129   echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.$ac_ext >&5
10132         xorg_testset_unknown_warning_option=no
10135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10136         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10137 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10138         CFLAGS="$xorg_testset_save_CFLAGS"
10141 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10142         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10143                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10144         fi
10145         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10146         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10147 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10148         cat >conftest.$ac_ext <<_ACEOF
10149 /* confdefs.h.  */
10150 _ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h.  */
10154 int i;
10155 _ACEOF
10156 rm -f conftest.$ac_objext
10157 if { (ac_try="$ac_compile"
10158 case "(($ac_try" in
10159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160   *) ac_try_echo=$ac_try;;
10161 esac
10162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163   (eval "$ac_compile") 2>conftest.er1
10164   ac_status=$?
10165   grep -v '^ *+' conftest.er1 >conftest.err
10166   rm -f conftest.er1
10167   cat conftest.err >&5
10168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169   (exit $ac_status); } && {
10170          test -z "$ac_c_werror_flag" ||
10171          test ! -s conftest.err
10172        } && test -s conftest.$ac_objext; then
10173   xorg_testset_unused_command_line_argument=yes
10174 else
10175   echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10178         xorg_testset_unused_command_line_argument=no
10181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10182         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10183 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10184         CFLAGS="$xorg_testset_save_CFLAGS"
10187 found="no"
10189         if test $found = "no" ; then
10190                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10191                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10192                 fi
10194                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10195                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10196                 fi
10198                 CFLAGS="$CFLAGS -Werror=write-strings"
10200                 { echo "$as_me:$LINENO: checking if $CC supports -Werror=write-strings" >&5
10201 echo $ECHO_N "checking if $CC supports -Werror=write-strings... $ECHO_C" >&6; }
10202                 cat >conftest.$ac_ext <<_ACEOF
10203 /* confdefs.h.  */
10204 _ACEOF
10205 cat confdefs.h >>conftest.$ac_ext
10206 cat >>conftest.$ac_ext <<_ACEOF
10207 /* end confdefs.h.  */
10208 int i;
10209 int
10210 main ()
10213   ;
10214   return 0;
10216 _ACEOF
10217 rm -f conftest.$ac_objext conftest$ac_exeext
10218 if { (ac_try="$ac_link"
10219 case "(($ac_try" in
10220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221   *) ac_try_echo=$ac_try;;
10222 esac
10223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224   (eval "$ac_link") 2>conftest.er1
10225   ac_status=$?
10226   grep -v '^ *+' conftest.er1 >conftest.err
10227   rm -f conftest.er1
10228   cat conftest.err >&5
10229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230   (exit $ac_status); } && {
10231          test -z "$ac_c_werror_flag" ||
10232          test ! -s conftest.err
10233        } && test -s conftest$ac_exeext &&
10234        $as_test_x conftest$ac_exeext; then
10235   supported=yes
10236 else
10237   echo "$as_me: failed program was:" >&5
10238 sed 's/^/| /' conftest.$ac_ext >&5
10240         supported=no
10243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10244       conftest$ac_exeext conftest.$ac_ext
10245                 { echo "$as_me:$LINENO: result: $supported" >&5
10246 echo "${ECHO_T}$supported" >&6; }
10247                 CFLAGS="$xorg_testset_save_CFLAGS"
10249                 if test "$supported" = "yes" ; then
10250                         BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
10251                         found="yes"
10252                 fi
10253         fi
10261 xorg_testset_save_CFLAGS="$CFLAGS"
10263 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10264         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10265         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10266 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10267         cat >conftest.$ac_ext <<_ACEOF
10268 /* confdefs.h.  */
10269 _ACEOF
10270 cat confdefs.h >>conftest.$ac_ext
10271 cat >>conftest.$ac_ext <<_ACEOF
10272 /* end confdefs.h.  */
10273 int i;
10274 _ACEOF
10275 rm -f conftest.$ac_objext
10276 if { (ac_try="$ac_compile"
10277 case "(($ac_try" in
10278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10279   *) ac_try_echo=$ac_try;;
10280 esac
10281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10282   (eval "$ac_compile") 2>conftest.er1
10283   ac_status=$?
10284   grep -v '^ *+' conftest.er1 >conftest.err
10285   rm -f conftest.er1
10286   cat conftest.err >&5
10287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288   (exit $ac_status); } && {
10289          test -z "$ac_c_werror_flag" ||
10290          test ! -s conftest.err
10291        } && test -s conftest.$ac_objext; then
10292   xorg_testset_unknown_warning_option=yes
10293 else
10294   echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10297         xorg_testset_unknown_warning_option=no
10300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10301         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10302 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10303         CFLAGS="$xorg_testset_save_CFLAGS"
10306 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10307         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10308                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10309         fi
10310         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10311         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10312 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10313         cat >conftest.$ac_ext <<_ACEOF
10314 /* confdefs.h.  */
10315 _ACEOF
10316 cat confdefs.h >>conftest.$ac_ext
10317 cat >>conftest.$ac_ext <<_ACEOF
10318 /* end confdefs.h.  */
10319 int i;
10320 _ACEOF
10321 rm -f conftest.$ac_objext
10322 if { (ac_try="$ac_compile"
10323 case "(($ac_try" in
10324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10325   *) ac_try_echo=$ac_try;;
10326 esac
10327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10328   (eval "$ac_compile") 2>conftest.er1
10329   ac_status=$?
10330   grep -v '^ *+' conftest.er1 >conftest.err
10331   rm -f conftest.er1
10332   cat conftest.err >&5
10333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334   (exit $ac_status); } && {
10335          test -z "$ac_c_werror_flag" ||
10336          test ! -s conftest.err
10337        } && test -s conftest.$ac_objext; then
10338   xorg_testset_unused_command_line_argument=yes
10339 else
10340   echo "$as_me: failed program was:" >&5
10341 sed 's/^/| /' conftest.$ac_ext >&5
10343         xorg_testset_unused_command_line_argument=no
10346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10347         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10348 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10349         CFLAGS="$xorg_testset_save_CFLAGS"
10352 found="no"
10354         if test $found = "no" ; then
10355                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10356                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10357                 fi
10359                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10360                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10361                 fi
10363                 CFLAGS="$CFLAGS -Werror=address"
10365                 { echo "$as_me:$LINENO: checking if $CC supports -Werror=address" >&5
10366 echo $ECHO_N "checking if $CC supports -Werror=address... $ECHO_C" >&6; }
10367                 cat >conftest.$ac_ext <<_ACEOF
10368 /* confdefs.h.  */
10369 _ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h.  */
10373 int i;
10374 int
10375 main ()
10378   ;
10379   return 0;
10381 _ACEOF
10382 rm -f conftest.$ac_objext conftest$ac_exeext
10383 if { (ac_try="$ac_link"
10384 case "(($ac_try" in
10385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10386   *) ac_try_echo=$ac_try;;
10387 esac
10388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10389   (eval "$ac_link") 2>conftest.er1
10390   ac_status=$?
10391   grep -v '^ *+' conftest.er1 >conftest.err
10392   rm -f conftest.er1
10393   cat conftest.err >&5
10394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395   (exit $ac_status); } && {
10396          test -z "$ac_c_werror_flag" ||
10397          test ! -s conftest.err
10398        } && test -s conftest$ac_exeext &&
10399        $as_test_x conftest$ac_exeext; then
10400   supported=yes
10401 else
10402   echo "$as_me: failed program was:" >&5
10403 sed 's/^/| /' conftest.$ac_ext >&5
10405         supported=no
10408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10409       conftest$ac_exeext conftest.$ac_ext
10410                 { echo "$as_me:$LINENO: result: $supported" >&5
10411 echo "${ECHO_T}$supported" >&6; }
10412                 CFLAGS="$xorg_testset_save_CFLAGS"
10414                 if test "$supported" = "yes" ; then
10415                         BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
10416                         found="yes"
10417                 fi
10418         fi
10426 xorg_testset_save_CFLAGS="$CFLAGS"
10428 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10429         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10430         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10431 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10432         cat >conftest.$ac_ext <<_ACEOF
10433 /* confdefs.h.  */
10434 _ACEOF
10435 cat confdefs.h >>conftest.$ac_ext
10436 cat >>conftest.$ac_ext <<_ACEOF
10437 /* end confdefs.h.  */
10438 int i;
10439 _ACEOF
10440 rm -f conftest.$ac_objext
10441 if { (ac_try="$ac_compile"
10442 case "(($ac_try" in
10443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444   *) ac_try_echo=$ac_try;;
10445 esac
10446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10447   (eval "$ac_compile") 2>conftest.er1
10448   ac_status=$?
10449   grep -v '^ *+' conftest.er1 >conftest.err
10450   rm -f conftest.er1
10451   cat conftest.err >&5
10452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453   (exit $ac_status); } && {
10454          test -z "$ac_c_werror_flag" ||
10455          test ! -s conftest.err
10456        } && test -s conftest.$ac_objext; then
10457   xorg_testset_unknown_warning_option=yes
10458 else
10459   echo "$as_me: failed program was:" >&5
10460 sed 's/^/| /' conftest.$ac_ext >&5
10462         xorg_testset_unknown_warning_option=no
10465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10466         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10467 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10468         CFLAGS="$xorg_testset_save_CFLAGS"
10471 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10472         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10473                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10474         fi
10475         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10476         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10477 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10478         cat >conftest.$ac_ext <<_ACEOF
10479 /* confdefs.h.  */
10480 _ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h.  */
10484 int i;
10485 _ACEOF
10486 rm -f conftest.$ac_objext
10487 if { (ac_try="$ac_compile"
10488 case "(($ac_try" in
10489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10490   *) ac_try_echo=$ac_try;;
10491 esac
10492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10493   (eval "$ac_compile") 2>conftest.er1
10494   ac_status=$?
10495   grep -v '^ *+' conftest.er1 >conftest.err
10496   rm -f conftest.er1
10497   cat conftest.err >&5
10498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499   (exit $ac_status); } && {
10500          test -z "$ac_c_werror_flag" ||
10501          test ! -s conftest.err
10502        } && test -s conftest.$ac_objext; then
10503   xorg_testset_unused_command_line_argument=yes
10504 else
10505   echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10508         xorg_testset_unused_command_line_argument=no
10511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10512         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10513 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10514         CFLAGS="$xorg_testset_save_CFLAGS"
10517 found="no"
10519         if test $found = "no" ; then
10520                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10521                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10522                 fi
10524                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10525                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10526                 fi
10528                 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
10530                 { echo "$as_me:$LINENO: checking if $CC supports -Werror=int-to-pointer-cast" >&5
10531 echo $ECHO_N "checking if $CC supports -Werror=int-to-pointer-cast... $ECHO_C" >&6; }
10532                 cat >conftest.$ac_ext <<_ACEOF
10533 /* confdefs.h.  */
10534 _ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h.  */
10538 int i;
10539 int
10540 main ()
10543   ;
10544   return 0;
10546 _ACEOF
10547 rm -f conftest.$ac_objext conftest$ac_exeext
10548 if { (ac_try="$ac_link"
10549 case "(($ac_try" in
10550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551   *) ac_try_echo=$ac_try;;
10552 esac
10553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554   (eval "$ac_link") 2>conftest.er1
10555   ac_status=$?
10556   grep -v '^ *+' conftest.er1 >conftest.err
10557   rm -f conftest.er1
10558   cat conftest.err >&5
10559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560   (exit $ac_status); } && {
10561          test -z "$ac_c_werror_flag" ||
10562          test ! -s conftest.err
10563        } && test -s conftest$ac_exeext &&
10564        $as_test_x conftest$ac_exeext; then
10565   supported=yes
10566 else
10567   echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.$ac_ext >&5
10570         supported=no
10573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10574       conftest$ac_exeext conftest.$ac_ext
10575                 { echo "$as_me:$LINENO: result: $supported" >&5
10576 echo "${ECHO_T}$supported" >&6; }
10577                 CFLAGS="$xorg_testset_save_CFLAGS"
10579                 if test "$supported" = "yes" ; then
10580                         BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
10581                         found="yes"
10582                 fi
10583         fi
10585         if test $found = "no" ; then
10586                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10587                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10588                 fi
10590                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10591                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10592                 fi
10594                 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
10596                 { echo "$as_me:$LINENO: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
10597 echo $ECHO_N "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... $ECHO_C" >&6; }
10598                 cat >conftest.$ac_ext <<_ACEOF
10599 /* confdefs.h.  */
10600 _ACEOF
10601 cat confdefs.h >>conftest.$ac_ext
10602 cat >>conftest.$ac_ext <<_ACEOF
10603 /* end confdefs.h.  */
10604 int i;
10605 int
10606 main ()
10609   ;
10610   return 0;
10612 _ACEOF
10613 rm -f conftest.$ac_objext conftest$ac_exeext
10614 if { (ac_try="$ac_link"
10615 case "(($ac_try" in
10616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617   *) ac_try_echo=$ac_try;;
10618 esac
10619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620   (eval "$ac_link") 2>conftest.er1
10621   ac_status=$?
10622   grep -v '^ *+' conftest.er1 >conftest.err
10623   rm -f conftest.er1
10624   cat conftest.err >&5
10625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626   (exit $ac_status); } && {
10627          test -z "$ac_c_werror_flag" ||
10628          test ! -s conftest.err
10629        } && test -s conftest$ac_exeext &&
10630        $as_test_x conftest$ac_exeext; then
10631   supported=yes
10632 else
10633   echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10636         supported=no
10639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10640       conftest$ac_exeext conftest.$ac_ext
10641                 { echo "$as_me:$LINENO: result: $supported" >&5
10642 echo "${ECHO_T}$supported" >&6; }
10643                 CFLAGS="$xorg_testset_save_CFLAGS"
10645                 if test "$supported" = "yes" ; then
10646                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
10647                         found="yes"
10648                 fi
10649         fi
10657 xorg_testset_save_CFLAGS="$CFLAGS"
10659 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10660         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10661         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10662 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10663         cat >conftest.$ac_ext <<_ACEOF
10664 /* confdefs.h.  */
10665 _ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h.  */
10669 int i;
10670 _ACEOF
10671 rm -f conftest.$ac_objext
10672 if { (ac_try="$ac_compile"
10673 case "(($ac_try" in
10674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675   *) ac_try_echo=$ac_try;;
10676 esac
10677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10678   (eval "$ac_compile") 2>conftest.er1
10679   ac_status=$?
10680   grep -v '^ *+' conftest.er1 >conftest.err
10681   rm -f conftest.er1
10682   cat conftest.err >&5
10683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684   (exit $ac_status); } && {
10685          test -z "$ac_c_werror_flag" ||
10686          test ! -s conftest.err
10687        } && test -s conftest.$ac_objext; then
10688   xorg_testset_unknown_warning_option=yes
10689 else
10690   echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10693         xorg_testset_unknown_warning_option=no
10696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10697         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10698 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10699         CFLAGS="$xorg_testset_save_CFLAGS"
10702 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10703         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10704                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10705         fi
10706         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10707         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10708 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10709         cat >conftest.$ac_ext <<_ACEOF
10710 /* confdefs.h.  */
10711 _ACEOF
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h.  */
10715 int i;
10716 _ACEOF
10717 rm -f conftest.$ac_objext
10718 if { (ac_try="$ac_compile"
10719 case "(($ac_try" in
10720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721   *) ac_try_echo=$ac_try;;
10722 esac
10723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724   (eval "$ac_compile") 2>conftest.er1
10725   ac_status=$?
10726   grep -v '^ *+' conftest.er1 >conftest.err
10727   rm -f conftest.er1
10728   cat conftest.err >&5
10729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730   (exit $ac_status); } && {
10731          test -z "$ac_c_werror_flag" ||
10732          test ! -s conftest.err
10733        } && test -s conftest.$ac_objext; then
10734   xorg_testset_unused_command_line_argument=yes
10735 else
10736   echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10739         xorg_testset_unused_command_line_argument=no
10742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10743         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10744 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10745         CFLAGS="$xorg_testset_save_CFLAGS"
10748 found="no"
10750         if test $found = "no" ; then
10751                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10752                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10753                 fi
10755                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10756                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10757                 fi
10759                 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
10761                 { echo "$as_me:$LINENO: checking if $CC supports -Werror=pointer-to-int-cast" >&5
10762 echo $ECHO_N "checking if $CC supports -Werror=pointer-to-int-cast... $ECHO_C" >&6; }
10763                 cat >conftest.$ac_ext <<_ACEOF
10764 /* confdefs.h.  */
10765 _ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h.  */
10769 int i;
10770 int
10771 main ()
10774   ;
10775   return 0;
10777 _ACEOF
10778 rm -f conftest.$ac_objext conftest$ac_exeext
10779 if { (ac_try="$ac_link"
10780 case "(($ac_try" in
10781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10782   *) ac_try_echo=$ac_try;;
10783 esac
10784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10785   (eval "$ac_link") 2>conftest.er1
10786   ac_status=$?
10787   grep -v '^ *+' conftest.er1 >conftest.err
10788   rm -f conftest.er1
10789   cat conftest.err >&5
10790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791   (exit $ac_status); } && {
10792          test -z "$ac_c_werror_flag" ||
10793          test ! -s conftest.err
10794        } && test -s conftest$ac_exeext &&
10795        $as_test_x conftest$ac_exeext; then
10796   supported=yes
10797 else
10798   echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10801         supported=no
10804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10805       conftest$ac_exeext conftest.$ac_ext
10806                 { echo "$as_me:$LINENO: result: $supported" >&5
10807 echo "${ECHO_T}$supported" >&6; }
10808                 CFLAGS="$xorg_testset_save_CFLAGS"
10810                 if test "$supported" = "yes" ; then
10811                         BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
10812                         found="yes"
10813                 fi
10814         fi
10816  # Also -errwarn=E_BAD_PTR_INT_COMBINATION
10817 else
10818 { echo "$as_me:$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
10819 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;}
10825 xorg_testset_save_CFLAGS="$CFLAGS"
10827 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10828         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10829         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10830 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10831         cat >conftest.$ac_ext <<_ACEOF
10832 /* confdefs.h.  */
10833 _ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h.  */
10837 int i;
10838 _ACEOF
10839 rm -f conftest.$ac_objext
10840 if { (ac_try="$ac_compile"
10841 case "(($ac_try" in
10842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10843   *) ac_try_echo=$ac_try;;
10844 esac
10845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10846   (eval "$ac_compile") 2>conftest.er1
10847   ac_status=$?
10848   grep -v '^ *+' conftest.er1 >conftest.err
10849   rm -f conftest.er1
10850   cat conftest.err >&5
10851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852   (exit $ac_status); } && {
10853          test -z "$ac_c_werror_flag" ||
10854          test ! -s conftest.err
10855        } && test -s conftest.$ac_objext; then
10856   xorg_testset_unknown_warning_option=yes
10857 else
10858   echo "$as_me: failed program was:" >&5
10859 sed 's/^/| /' conftest.$ac_ext >&5
10861         xorg_testset_unknown_warning_option=no
10864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10865         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10866 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10867         CFLAGS="$xorg_testset_save_CFLAGS"
10870 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10871         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10872                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10873         fi
10874         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10875         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10876 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10877         cat >conftest.$ac_ext <<_ACEOF
10878 /* confdefs.h.  */
10879 _ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h.  */
10883 int i;
10884 _ACEOF
10885 rm -f conftest.$ac_objext
10886 if { (ac_try="$ac_compile"
10887 case "(($ac_try" in
10888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889   *) ac_try_echo=$ac_try;;
10890 esac
10891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892   (eval "$ac_compile") 2>conftest.er1
10893   ac_status=$?
10894   grep -v '^ *+' conftest.er1 >conftest.err
10895   rm -f conftest.er1
10896   cat conftest.err >&5
10897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898   (exit $ac_status); } && {
10899          test -z "$ac_c_werror_flag" ||
10900          test ! -s conftest.err
10901        } && test -s conftest.$ac_objext; then
10902   xorg_testset_unused_command_line_argument=yes
10903 else
10904   echo "$as_me: failed program was:" >&5
10905 sed 's/^/| /' conftest.$ac_ext >&5
10907         xorg_testset_unused_command_line_argument=no
10910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10911         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10912 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10913         CFLAGS="$xorg_testset_save_CFLAGS"
10916 found="no"
10918         if test $found = "no" ; then
10919                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10920                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10921                 fi
10923                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10924                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10925                 fi
10927                 CFLAGS="$CFLAGS -Wimplicit"
10929                 { echo "$as_me:$LINENO: checking if $CC supports -Wimplicit" >&5
10930 echo $ECHO_N "checking if $CC supports -Wimplicit... $ECHO_C" >&6; }
10931                 cat >conftest.$ac_ext <<_ACEOF
10932 /* confdefs.h.  */
10933 _ACEOF
10934 cat confdefs.h >>conftest.$ac_ext
10935 cat >>conftest.$ac_ext <<_ACEOF
10936 /* end confdefs.h.  */
10937 int i;
10938 int
10939 main ()
10942   ;
10943   return 0;
10945 _ACEOF
10946 rm -f conftest.$ac_objext conftest$ac_exeext
10947 if { (ac_try="$ac_link"
10948 case "(($ac_try" in
10949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950   *) ac_try_echo=$ac_try;;
10951 esac
10952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953   (eval "$ac_link") 2>conftest.er1
10954   ac_status=$?
10955   grep -v '^ *+' conftest.er1 >conftest.err
10956   rm -f conftest.er1
10957   cat conftest.err >&5
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); } && {
10960          test -z "$ac_c_werror_flag" ||
10961          test ! -s conftest.err
10962        } && test -s conftest$ac_exeext &&
10963        $as_test_x conftest$ac_exeext; then
10964   supported=yes
10965 else
10966   echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10969         supported=no
10972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10973       conftest$ac_exeext conftest.$ac_ext
10974                 { echo "$as_me:$LINENO: result: $supported" >&5
10975 echo "${ECHO_T}$supported" >&6; }
10976                 CFLAGS="$xorg_testset_save_CFLAGS"
10978                 if test "$supported" = "yes" ; then
10979                         BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
10980                         found="yes"
10981                 fi
10982         fi
10990 xorg_testset_save_CFLAGS="$CFLAGS"
10992 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10993         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10994         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10995 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10996         cat >conftest.$ac_ext <<_ACEOF
10997 /* confdefs.h.  */
10998 _ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h.  */
11002 int i;
11003 _ACEOF
11004 rm -f conftest.$ac_objext
11005 if { (ac_try="$ac_compile"
11006 case "(($ac_try" in
11007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11008   *) ac_try_echo=$ac_try;;
11009 esac
11010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11011   (eval "$ac_compile") 2>conftest.er1
11012   ac_status=$?
11013   grep -v '^ *+' conftest.er1 >conftest.err
11014   rm -f conftest.er1
11015   cat conftest.err >&5
11016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017   (exit $ac_status); } && {
11018          test -z "$ac_c_werror_flag" ||
11019          test ! -s conftest.err
11020        } && test -s conftest.$ac_objext; then
11021   xorg_testset_unknown_warning_option=yes
11022 else
11023   echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.$ac_ext >&5
11026         xorg_testset_unknown_warning_option=no
11029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11030         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11031 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11032         CFLAGS="$xorg_testset_save_CFLAGS"
11035 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11036         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11037                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11038         fi
11039         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11040         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11041 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11042         cat >conftest.$ac_ext <<_ACEOF
11043 /* confdefs.h.  */
11044 _ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h.  */
11048 int i;
11049 _ACEOF
11050 rm -f conftest.$ac_objext
11051 if { (ac_try="$ac_compile"
11052 case "(($ac_try" in
11053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054   *) ac_try_echo=$ac_try;;
11055 esac
11056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057   (eval "$ac_compile") 2>conftest.er1
11058   ac_status=$?
11059   grep -v '^ *+' conftest.er1 >conftest.err
11060   rm -f conftest.er1
11061   cat conftest.err >&5
11062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063   (exit $ac_status); } && {
11064          test -z "$ac_c_werror_flag" ||
11065          test ! -s conftest.err
11066        } && test -s conftest.$ac_objext; then
11067   xorg_testset_unused_command_line_argument=yes
11068 else
11069   echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11072         xorg_testset_unused_command_line_argument=no
11075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11076         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11077 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11078         CFLAGS="$xorg_testset_save_CFLAGS"
11081 found="no"
11083         if test $found = "no" ; then
11084                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11085                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11086                 fi
11088                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11089                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11090                 fi
11092                 CFLAGS="$CFLAGS -Wnonnull"
11094                 { echo "$as_me:$LINENO: checking if $CC supports -Wnonnull" >&5
11095 echo $ECHO_N "checking if $CC supports -Wnonnull... $ECHO_C" >&6; }
11096                 cat >conftest.$ac_ext <<_ACEOF
11097 /* confdefs.h.  */
11098 _ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h.  */
11102 int i;
11103 int
11104 main ()
11107   ;
11108   return 0;
11110 _ACEOF
11111 rm -f conftest.$ac_objext conftest$ac_exeext
11112 if { (ac_try="$ac_link"
11113 case "(($ac_try" in
11114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11115   *) ac_try_echo=$ac_try;;
11116 esac
11117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11118   (eval "$ac_link") 2>conftest.er1
11119   ac_status=$?
11120   grep -v '^ *+' conftest.er1 >conftest.err
11121   rm -f conftest.er1
11122   cat conftest.err >&5
11123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124   (exit $ac_status); } && {
11125          test -z "$ac_c_werror_flag" ||
11126          test ! -s conftest.err
11127        } && test -s conftest$ac_exeext &&
11128        $as_test_x conftest$ac_exeext; then
11129   supported=yes
11130 else
11131   echo "$as_me: failed program was:" >&5
11132 sed 's/^/| /' conftest.$ac_ext >&5
11134         supported=no
11137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11138       conftest$ac_exeext conftest.$ac_ext
11139                 { echo "$as_me:$LINENO: result: $supported" >&5
11140 echo "${ECHO_T}$supported" >&6; }
11141                 CFLAGS="$xorg_testset_save_CFLAGS"
11143                 if test "$supported" = "yes" ; then
11144                         BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
11145                         found="yes"
11146                 fi
11147         fi
11155 xorg_testset_save_CFLAGS="$CFLAGS"
11157 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11158         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11159         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11160 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11161         cat >conftest.$ac_ext <<_ACEOF
11162 /* confdefs.h.  */
11163 _ACEOF
11164 cat confdefs.h >>conftest.$ac_ext
11165 cat >>conftest.$ac_ext <<_ACEOF
11166 /* end confdefs.h.  */
11167 int i;
11168 _ACEOF
11169 rm -f conftest.$ac_objext
11170 if { (ac_try="$ac_compile"
11171 case "(($ac_try" in
11172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173   *) ac_try_echo=$ac_try;;
11174 esac
11175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176   (eval "$ac_compile") 2>conftest.er1
11177   ac_status=$?
11178   grep -v '^ *+' conftest.er1 >conftest.err
11179   rm -f conftest.er1
11180   cat conftest.err >&5
11181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182   (exit $ac_status); } && {
11183          test -z "$ac_c_werror_flag" ||
11184          test ! -s conftest.err
11185        } && test -s conftest.$ac_objext; then
11186   xorg_testset_unknown_warning_option=yes
11187 else
11188   echo "$as_me: failed program was:" >&5
11189 sed 's/^/| /' conftest.$ac_ext >&5
11191         xorg_testset_unknown_warning_option=no
11194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11195         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11196 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11197         CFLAGS="$xorg_testset_save_CFLAGS"
11200 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11201         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11202                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11203         fi
11204         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11205         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11206 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11207         cat >conftest.$ac_ext <<_ACEOF
11208 /* confdefs.h.  */
11209 _ACEOF
11210 cat confdefs.h >>conftest.$ac_ext
11211 cat >>conftest.$ac_ext <<_ACEOF
11212 /* end confdefs.h.  */
11213 int i;
11214 _ACEOF
11215 rm -f conftest.$ac_objext
11216 if { (ac_try="$ac_compile"
11217 case "(($ac_try" in
11218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11219   *) ac_try_echo=$ac_try;;
11220 esac
11221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11222   (eval "$ac_compile") 2>conftest.er1
11223   ac_status=$?
11224   grep -v '^ *+' conftest.er1 >conftest.err
11225   rm -f conftest.er1
11226   cat conftest.err >&5
11227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228   (exit $ac_status); } && {
11229          test -z "$ac_c_werror_flag" ||
11230          test ! -s conftest.err
11231        } && test -s conftest.$ac_objext; then
11232   xorg_testset_unused_command_line_argument=yes
11233 else
11234   echo "$as_me: failed program was:" >&5
11235 sed 's/^/| /' conftest.$ac_ext >&5
11237         xorg_testset_unused_command_line_argument=no
11240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11241         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11242 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11243         CFLAGS="$xorg_testset_save_CFLAGS"
11246 found="no"
11248         if test $found = "no" ; then
11249                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11250                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11251                 fi
11253                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11254                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11255                 fi
11257                 CFLAGS="$CFLAGS -Winit-self"
11259                 { echo "$as_me:$LINENO: checking if $CC supports -Winit-self" >&5
11260 echo $ECHO_N "checking if $CC supports -Winit-self... $ECHO_C" >&6; }
11261                 cat >conftest.$ac_ext <<_ACEOF
11262 /* confdefs.h.  */
11263 _ACEOF
11264 cat confdefs.h >>conftest.$ac_ext
11265 cat >>conftest.$ac_ext <<_ACEOF
11266 /* end confdefs.h.  */
11267 int i;
11268 int
11269 main ()
11272   ;
11273   return 0;
11275 _ACEOF
11276 rm -f conftest.$ac_objext conftest$ac_exeext
11277 if { (ac_try="$ac_link"
11278 case "(($ac_try" in
11279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280   *) ac_try_echo=$ac_try;;
11281 esac
11282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283   (eval "$ac_link") 2>conftest.er1
11284   ac_status=$?
11285   grep -v '^ *+' conftest.er1 >conftest.err
11286   rm -f conftest.er1
11287   cat conftest.err >&5
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); } && {
11290          test -z "$ac_c_werror_flag" ||
11291          test ! -s conftest.err
11292        } && test -s conftest$ac_exeext &&
11293        $as_test_x conftest$ac_exeext; then
11294   supported=yes
11295 else
11296   echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11299         supported=no
11302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11303       conftest$ac_exeext conftest.$ac_ext
11304                 { echo "$as_me:$LINENO: result: $supported" >&5
11305 echo "${ECHO_T}$supported" >&6; }
11306                 CFLAGS="$xorg_testset_save_CFLAGS"
11308                 if test "$supported" = "yes" ; then
11309                         BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
11310                         found="yes"
11311                 fi
11312         fi
11320 xorg_testset_save_CFLAGS="$CFLAGS"
11322 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11323         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11324         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11325 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11326         cat >conftest.$ac_ext <<_ACEOF
11327 /* confdefs.h.  */
11328 _ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h.  */
11332 int i;
11333 _ACEOF
11334 rm -f conftest.$ac_objext
11335 if { (ac_try="$ac_compile"
11336 case "(($ac_try" in
11337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338   *) ac_try_echo=$ac_try;;
11339 esac
11340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341   (eval "$ac_compile") 2>conftest.er1
11342   ac_status=$?
11343   grep -v '^ *+' conftest.er1 >conftest.err
11344   rm -f conftest.er1
11345   cat conftest.err >&5
11346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347   (exit $ac_status); } && {
11348          test -z "$ac_c_werror_flag" ||
11349          test ! -s conftest.err
11350        } && test -s conftest.$ac_objext; then
11351   xorg_testset_unknown_warning_option=yes
11352 else
11353   echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11356         xorg_testset_unknown_warning_option=no
11359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11360         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11361 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11362         CFLAGS="$xorg_testset_save_CFLAGS"
11365 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11366         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11367                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11368         fi
11369         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11370         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11371 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11372         cat >conftest.$ac_ext <<_ACEOF
11373 /* confdefs.h.  */
11374 _ACEOF
11375 cat confdefs.h >>conftest.$ac_ext
11376 cat >>conftest.$ac_ext <<_ACEOF
11377 /* end confdefs.h.  */
11378 int i;
11379 _ACEOF
11380 rm -f conftest.$ac_objext
11381 if { (ac_try="$ac_compile"
11382 case "(($ac_try" in
11383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11384   *) ac_try_echo=$ac_try;;
11385 esac
11386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11387   (eval "$ac_compile") 2>conftest.er1
11388   ac_status=$?
11389   grep -v '^ *+' conftest.er1 >conftest.err
11390   rm -f conftest.er1
11391   cat conftest.err >&5
11392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393   (exit $ac_status); } && {
11394          test -z "$ac_c_werror_flag" ||
11395          test ! -s conftest.err
11396        } && test -s conftest.$ac_objext; then
11397   xorg_testset_unused_command_line_argument=yes
11398 else
11399   echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11402         xorg_testset_unused_command_line_argument=no
11405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11406         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11407 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11408         CFLAGS="$xorg_testset_save_CFLAGS"
11411 found="no"
11413         if test $found = "no" ; then
11414                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11415                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11416                 fi
11418                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11419                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11420                 fi
11422                 CFLAGS="$CFLAGS -Wmain"
11424                 { echo "$as_me:$LINENO: checking if $CC supports -Wmain" >&5
11425 echo $ECHO_N "checking if $CC supports -Wmain... $ECHO_C" >&6; }
11426                 cat >conftest.$ac_ext <<_ACEOF
11427 /* confdefs.h.  */
11428 _ACEOF
11429 cat confdefs.h >>conftest.$ac_ext
11430 cat >>conftest.$ac_ext <<_ACEOF
11431 /* end confdefs.h.  */
11432 int i;
11433 int
11434 main ()
11437   ;
11438   return 0;
11440 _ACEOF
11441 rm -f conftest.$ac_objext conftest$ac_exeext
11442 if { (ac_try="$ac_link"
11443 case "(($ac_try" in
11444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445   *) ac_try_echo=$ac_try;;
11446 esac
11447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448   (eval "$ac_link") 2>conftest.er1
11449   ac_status=$?
11450   grep -v '^ *+' conftest.er1 >conftest.err
11451   rm -f conftest.er1
11452   cat conftest.err >&5
11453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454   (exit $ac_status); } && {
11455          test -z "$ac_c_werror_flag" ||
11456          test ! -s conftest.err
11457        } && test -s conftest$ac_exeext &&
11458        $as_test_x conftest$ac_exeext; then
11459   supported=yes
11460 else
11461   echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11464         supported=no
11467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11468       conftest$ac_exeext conftest.$ac_ext
11469                 { echo "$as_me:$LINENO: result: $supported" >&5
11470 echo "${ECHO_T}$supported" >&6; }
11471                 CFLAGS="$xorg_testset_save_CFLAGS"
11473                 if test "$supported" = "yes" ; then
11474                         BASE_CFLAGS="$BASE_CFLAGS -Wmain"
11475                         found="yes"
11476                 fi
11477         fi
11485 xorg_testset_save_CFLAGS="$CFLAGS"
11487 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11488         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11489         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11490 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11491         cat >conftest.$ac_ext <<_ACEOF
11492 /* confdefs.h.  */
11493 _ACEOF
11494 cat confdefs.h >>conftest.$ac_ext
11495 cat >>conftest.$ac_ext <<_ACEOF
11496 /* end confdefs.h.  */
11497 int i;
11498 _ACEOF
11499 rm -f conftest.$ac_objext
11500 if { (ac_try="$ac_compile"
11501 case "(($ac_try" in
11502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503   *) ac_try_echo=$ac_try;;
11504 esac
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506   (eval "$ac_compile") 2>conftest.er1
11507   ac_status=$?
11508   grep -v '^ *+' conftest.er1 >conftest.err
11509   rm -f conftest.er1
11510   cat conftest.err >&5
11511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512   (exit $ac_status); } && {
11513          test -z "$ac_c_werror_flag" ||
11514          test ! -s conftest.err
11515        } && test -s conftest.$ac_objext; then
11516   xorg_testset_unknown_warning_option=yes
11517 else
11518   echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11521         xorg_testset_unknown_warning_option=no
11524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11525         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11526 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11527         CFLAGS="$xorg_testset_save_CFLAGS"
11530 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11531         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11532                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11533         fi
11534         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11535         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11536 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11537         cat >conftest.$ac_ext <<_ACEOF
11538 /* confdefs.h.  */
11539 _ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h.  */
11543 int i;
11544 _ACEOF
11545 rm -f conftest.$ac_objext
11546 if { (ac_try="$ac_compile"
11547 case "(($ac_try" in
11548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11549   *) ac_try_echo=$ac_try;;
11550 esac
11551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11552   (eval "$ac_compile") 2>conftest.er1
11553   ac_status=$?
11554   grep -v '^ *+' conftest.er1 >conftest.err
11555   rm -f conftest.er1
11556   cat conftest.err >&5
11557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558   (exit $ac_status); } && {
11559          test -z "$ac_c_werror_flag" ||
11560          test ! -s conftest.err
11561        } && test -s conftest.$ac_objext; then
11562   xorg_testset_unused_command_line_argument=yes
11563 else
11564   echo "$as_me: failed program was:" >&5
11565 sed 's/^/| /' conftest.$ac_ext >&5
11567         xorg_testset_unused_command_line_argument=no
11570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11571         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11572 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11573         CFLAGS="$xorg_testset_save_CFLAGS"
11576 found="no"
11578         if test $found = "no" ; then
11579                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11580                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11581                 fi
11583                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11584                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11585                 fi
11587                 CFLAGS="$CFLAGS -Wmissing-braces"
11589                 { echo "$as_me:$LINENO: checking if $CC supports -Wmissing-braces" >&5
11590 echo $ECHO_N "checking if $CC supports -Wmissing-braces... $ECHO_C" >&6; }
11591                 cat >conftest.$ac_ext <<_ACEOF
11592 /* confdefs.h.  */
11593 _ACEOF
11594 cat confdefs.h >>conftest.$ac_ext
11595 cat >>conftest.$ac_ext <<_ACEOF
11596 /* end confdefs.h.  */
11597 int i;
11598 int
11599 main ()
11602   ;
11603   return 0;
11605 _ACEOF
11606 rm -f conftest.$ac_objext conftest$ac_exeext
11607 if { (ac_try="$ac_link"
11608 case "(($ac_try" in
11609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610   *) ac_try_echo=$ac_try;;
11611 esac
11612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11613   (eval "$ac_link") 2>conftest.er1
11614   ac_status=$?
11615   grep -v '^ *+' conftest.er1 >conftest.err
11616   rm -f conftest.er1
11617   cat conftest.err >&5
11618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619   (exit $ac_status); } && {
11620          test -z "$ac_c_werror_flag" ||
11621          test ! -s conftest.err
11622        } && test -s conftest$ac_exeext &&
11623        $as_test_x conftest$ac_exeext; then
11624   supported=yes
11625 else
11626   echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.$ac_ext >&5
11629         supported=no
11632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11633       conftest$ac_exeext conftest.$ac_ext
11634                 { echo "$as_me:$LINENO: result: $supported" >&5
11635 echo "${ECHO_T}$supported" >&6; }
11636                 CFLAGS="$xorg_testset_save_CFLAGS"
11638                 if test "$supported" = "yes" ; then
11639                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
11640                         found="yes"
11641                 fi
11642         fi
11650 xorg_testset_save_CFLAGS="$CFLAGS"
11652 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11653         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11654         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11655 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11656         cat >conftest.$ac_ext <<_ACEOF
11657 /* confdefs.h.  */
11658 _ACEOF
11659 cat confdefs.h >>conftest.$ac_ext
11660 cat >>conftest.$ac_ext <<_ACEOF
11661 /* end confdefs.h.  */
11662 int i;
11663 _ACEOF
11664 rm -f conftest.$ac_objext
11665 if { (ac_try="$ac_compile"
11666 case "(($ac_try" in
11667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668   *) ac_try_echo=$ac_try;;
11669 esac
11670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671   (eval "$ac_compile") 2>conftest.er1
11672   ac_status=$?
11673   grep -v '^ *+' conftest.er1 >conftest.err
11674   rm -f conftest.er1
11675   cat conftest.err >&5
11676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677   (exit $ac_status); } && {
11678          test -z "$ac_c_werror_flag" ||
11679          test ! -s conftest.err
11680        } && test -s conftest.$ac_objext; then
11681   xorg_testset_unknown_warning_option=yes
11682 else
11683   echo "$as_me: failed program was:" >&5
11684 sed 's/^/| /' conftest.$ac_ext >&5
11686         xorg_testset_unknown_warning_option=no
11689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11690         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11691 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11692         CFLAGS="$xorg_testset_save_CFLAGS"
11695 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11696         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11697                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11698         fi
11699         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11700         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11701 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11702         cat >conftest.$ac_ext <<_ACEOF
11703 /* confdefs.h.  */
11704 _ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h.  */
11708 int i;
11709 _ACEOF
11710 rm -f conftest.$ac_objext
11711 if { (ac_try="$ac_compile"
11712 case "(($ac_try" in
11713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714   *) ac_try_echo=$ac_try;;
11715 esac
11716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11717   (eval "$ac_compile") 2>conftest.er1
11718   ac_status=$?
11719   grep -v '^ *+' conftest.er1 >conftest.err
11720   rm -f conftest.er1
11721   cat conftest.err >&5
11722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723   (exit $ac_status); } && {
11724          test -z "$ac_c_werror_flag" ||
11725          test ! -s conftest.err
11726        } && test -s conftest.$ac_objext; then
11727   xorg_testset_unused_command_line_argument=yes
11728 else
11729   echo "$as_me: failed program was:" >&5
11730 sed 's/^/| /' conftest.$ac_ext >&5
11732         xorg_testset_unused_command_line_argument=no
11735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11736         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11737 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11738         CFLAGS="$xorg_testset_save_CFLAGS"
11741 found="no"
11743         if test $found = "no" ; then
11744                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11745                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11746                 fi
11748                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11749                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11750                 fi
11752                 CFLAGS="$CFLAGS -Wsequence-point"
11754                 { echo "$as_me:$LINENO: checking if $CC supports -Wsequence-point" >&5
11755 echo $ECHO_N "checking if $CC supports -Wsequence-point... $ECHO_C" >&6; }
11756                 cat >conftest.$ac_ext <<_ACEOF
11757 /* confdefs.h.  */
11758 _ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h.  */
11762 int i;
11763 int
11764 main ()
11767   ;
11768   return 0;
11770 _ACEOF
11771 rm -f conftest.$ac_objext conftest$ac_exeext
11772 if { (ac_try="$ac_link"
11773 case "(($ac_try" in
11774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775   *) ac_try_echo=$ac_try;;
11776 esac
11777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778   (eval "$ac_link") 2>conftest.er1
11779   ac_status=$?
11780   grep -v '^ *+' conftest.er1 >conftest.err
11781   rm -f conftest.er1
11782   cat conftest.err >&5
11783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784   (exit $ac_status); } && {
11785          test -z "$ac_c_werror_flag" ||
11786          test ! -s conftest.err
11787        } && test -s conftest$ac_exeext &&
11788        $as_test_x conftest$ac_exeext; then
11789   supported=yes
11790 else
11791   echo "$as_me: failed program was:" >&5
11792 sed 's/^/| /' conftest.$ac_ext >&5
11794         supported=no
11797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11798       conftest$ac_exeext conftest.$ac_ext
11799                 { echo "$as_me:$LINENO: result: $supported" >&5
11800 echo "${ECHO_T}$supported" >&6; }
11801                 CFLAGS="$xorg_testset_save_CFLAGS"
11803                 if test "$supported" = "yes" ; then
11804                         BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
11805                         found="yes"
11806                 fi
11807         fi
11815 xorg_testset_save_CFLAGS="$CFLAGS"
11817 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11818         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11819         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11820 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11821         cat >conftest.$ac_ext <<_ACEOF
11822 /* confdefs.h.  */
11823 _ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h.  */
11827 int i;
11828 _ACEOF
11829 rm -f conftest.$ac_objext
11830 if { (ac_try="$ac_compile"
11831 case "(($ac_try" in
11832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833   *) ac_try_echo=$ac_try;;
11834 esac
11835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836   (eval "$ac_compile") 2>conftest.er1
11837   ac_status=$?
11838   grep -v '^ *+' conftest.er1 >conftest.err
11839   rm -f conftest.er1
11840   cat conftest.err >&5
11841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842   (exit $ac_status); } && {
11843          test -z "$ac_c_werror_flag" ||
11844          test ! -s conftest.err
11845        } && test -s conftest.$ac_objext; then
11846   xorg_testset_unknown_warning_option=yes
11847 else
11848   echo "$as_me: failed program was:" >&5
11849 sed 's/^/| /' conftest.$ac_ext >&5
11851         xorg_testset_unknown_warning_option=no
11854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11855         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11856 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11857         CFLAGS="$xorg_testset_save_CFLAGS"
11860 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11861         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11862                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11863         fi
11864         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11865         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11866 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11867         cat >conftest.$ac_ext <<_ACEOF
11868 /* confdefs.h.  */
11869 _ACEOF
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h.  */
11873 int i;
11874 _ACEOF
11875 rm -f conftest.$ac_objext
11876 if { (ac_try="$ac_compile"
11877 case "(($ac_try" in
11878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11879   *) ac_try_echo=$ac_try;;
11880 esac
11881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11882   (eval "$ac_compile") 2>conftest.er1
11883   ac_status=$?
11884   grep -v '^ *+' conftest.er1 >conftest.err
11885   rm -f conftest.er1
11886   cat conftest.err >&5
11887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888   (exit $ac_status); } && {
11889          test -z "$ac_c_werror_flag" ||
11890          test ! -s conftest.err
11891        } && test -s conftest.$ac_objext; then
11892   xorg_testset_unused_command_line_argument=yes
11893 else
11894   echo "$as_me: failed program was:" >&5
11895 sed 's/^/| /' conftest.$ac_ext >&5
11897         xorg_testset_unused_command_line_argument=no
11900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11901         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11902 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11903         CFLAGS="$xorg_testset_save_CFLAGS"
11906 found="no"
11908         if test $found = "no" ; then
11909                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11910                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11911                 fi
11913                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11914                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11915                 fi
11917                 CFLAGS="$CFLAGS -Wreturn-type"
11919                 { echo "$as_me:$LINENO: checking if $CC supports -Wreturn-type" >&5
11920 echo $ECHO_N "checking if $CC supports -Wreturn-type... $ECHO_C" >&6; }
11921                 cat >conftest.$ac_ext <<_ACEOF
11922 /* confdefs.h.  */
11923 _ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h.  */
11927 int i;
11928 int
11929 main ()
11932   ;
11933   return 0;
11935 _ACEOF
11936 rm -f conftest.$ac_objext conftest$ac_exeext
11937 if { (ac_try="$ac_link"
11938 case "(($ac_try" in
11939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11940   *) ac_try_echo=$ac_try;;
11941 esac
11942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11943   (eval "$ac_link") 2>conftest.er1
11944   ac_status=$?
11945   grep -v '^ *+' conftest.er1 >conftest.err
11946   rm -f conftest.er1
11947   cat conftest.err >&5
11948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949   (exit $ac_status); } && {
11950          test -z "$ac_c_werror_flag" ||
11951          test ! -s conftest.err
11952        } && test -s conftest$ac_exeext &&
11953        $as_test_x conftest$ac_exeext; then
11954   supported=yes
11955 else
11956   echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.$ac_ext >&5
11959         supported=no
11962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11963       conftest$ac_exeext conftest.$ac_ext
11964                 { echo "$as_me:$LINENO: result: $supported" >&5
11965 echo "${ECHO_T}$supported" >&6; }
11966                 CFLAGS="$xorg_testset_save_CFLAGS"
11968                 if test "$supported" = "yes" ; then
11969                         BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
11970                         found="yes"
11971                 fi
11972         fi
11980 xorg_testset_save_CFLAGS="$CFLAGS"
11982 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11983         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11984         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11985 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11986         cat >conftest.$ac_ext <<_ACEOF
11987 /* confdefs.h.  */
11988 _ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h.  */
11992 int i;
11993 _ACEOF
11994 rm -f conftest.$ac_objext
11995 if { (ac_try="$ac_compile"
11996 case "(($ac_try" in
11997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11998   *) ac_try_echo=$ac_try;;
11999 esac
12000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12001   (eval "$ac_compile") 2>conftest.er1
12002   ac_status=$?
12003   grep -v '^ *+' conftest.er1 >conftest.err
12004   rm -f conftest.er1
12005   cat conftest.err >&5
12006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007   (exit $ac_status); } && {
12008          test -z "$ac_c_werror_flag" ||
12009          test ! -s conftest.err
12010        } && test -s conftest.$ac_objext; then
12011   xorg_testset_unknown_warning_option=yes
12012 else
12013   echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12016         xorg_testset_unknown_warning_option=no
12019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12020         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
12021 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
12022         CFLAGS="$xorg_testset_save_CFLAGS"
12025 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12026         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12027                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12028         fi
12029         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12030         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
12031 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
12032         cat >conftest.$ac_ext <<_ACEOF
12033 /* confdefs.h.  */
12034 _ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h.  */
12038 int i;
12039 _ACEOF
12040 rm -f conftest.$ac_objext
12041 if { (ac_try="$ac_compile"
12042 case "(($ac_try" in
12043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12044   *) ac_try_echo=$ac_try;;
12045 esac
12046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12047   (eval "$ac_compile") 2>conftest.er1
12048   ac_status=$?
12049   grep -v '^ *+' conftest.er1 >conftest.err
12050   rm -f conftest.er1
12051   cat conftest.err >&5
12052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053   (exit $ac_status); } && {
12054          test -z "$ac_c_werror_flag" ||
12055          test ! -s conftest.err
12056        } && test -s conftest.$ac_objext; then
12057   xorg_testset_unused_command_line_argument=yes
12058 else
12059   echo "$as_me: failed program was:" >&5
12060 sed 's/^/| /' conftest.$ac_ext >&5
12062         xorg_testset_unused_command_line_argument=no
12065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12066         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
12067 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
12068         CFLAGS="$xorg_testset_save_CFLAGS"
12071 found="no"
12073         if test $found = "no" ; then
12074                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12075                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12076                 fi
12078                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12079                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12080                 fi
12082                 CFLAGS="$CFLAGS -Wtrigraphs"
12084                 { echo "$as_me:$LINENO: checking if $CC supports -Wtrigraphs" >&5
12085 echo $ECHO_N "checking if $CC supports -Wtrigraphs... $ECHO_C" >&6; }
12086                 cat >conftest.$ac_ext <<_ACEOF
12087 /* confdefs.h.  */
12088 _ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h.  */
12092 int i;
12093 int
12094 main ()
12097   ;
12098   return 0;
12100 _ACEOF
12101 rm -f conftest.$ac_objext conftest$ac_exeext
12102 if { (ac_try="$ac_link"
12103 case "(($ac_try" in
12104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12105   *) ac_try_echo=$ac_try;;
12106 esac
12107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12108   (eval "$ac_link") 2>conftest.er1
12109   ac_status=$?
12110   grep -v '^ *+' conftest.er1 >conftest.err
12111   rm -f conftest.er1
12112   cat conftest.err >&5
12113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114   (exit $ac_status); } && {
12115          test -z "$ac_c_werror_flag" ||
12116          test ! -s conftest.err
12117        } && test -s conftest$ac_exeext &&
12118        $as_test_x conftest$ac_exeext; then
12119   supported=yes
12120 else
12121   echo "$as_me: failed program was:" >&5
12122 sed 's/^/| /' conftest.$ac_ext >&5
12124         supported=no
12127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12128       conftest$ac_exeext conftest.$ac_ext
12129                 { echo "$as_me:$LINENO: result: $supported" >&5
12130 echo "${ECHO_T}$supported" >&6; }
12131                 CFLAGS="$xorg_testset_save_CFLAGS"
12133                 if test "$supported" = "yes" ; then
12134                         BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
12135                         found="yes"
12136                 fi
12137         fi
12145 xorg_testset_save_CFLAGS="$CFLAGS"
12147 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12148         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12149         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
12150 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
12151         cat >conftest.$ac_ext <<_ACEOF
12152 /* confdefs.h.  */
12153 _ACEOF
12154 cat confdefs.h >>conftest.$ac_ext
12155 cat >>conftest.$ac_ext <<_ACEOF
12156 /* end confdefs.h.  */
12157 int i;
12158 _ACEOF
12159 rm -f conftest.$ac_objext
12160 if { (ac_try="$ac_compile"
12161 case "(($ac_try" in
12162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163   *) ac_try_echo=$ac_try;;
12164 esac
12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166   (eval "$ac_compile") 2>conftest.er1
12167   ac_status=$?
12168   grep -v '^ *+' conftest.er1 >conftest.err
12169   rm -f conftest.er1
12170   cat conftest.err >&5
12171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172   (exit $ac_status); } && {
12173          test -z "$ac_c_werror_flag" ||
12174          test ! -s conftest.err
12175        } && test -s conftest.$ac_objext; then
12176   xorg_testset_unknown_warning_option=yes
12177 else
12178   echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.$ac_ext >&5
12181         xorg_testset_unknown_warning_option=no
12184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12185         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
12186 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
12187         CFLAGS="$xorg_testset_save_CFLAGS"
12190 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12191         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12192                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12193         fi
12194         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12195         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
12196 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
12197         cat >conftest.$ac_ext <<_ACEOF
12198 /* confdefs.h.  */
12199 _ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h.  */
12203 int i;
12204 _ACEOF
12205 rm -f conftest.$ac_objext
12206 if { (ac_try="$ac_compile"
12207 case "(($ac_try" in
12208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209   *) ac_try_echo=$ac_try;;
12210 esac
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212   (eval "$ac_compile") 2>conftest.er1
12213   ac_status=$?
12214   grep -v '^ *+' conftest.er1 >conftest.err
12215   rm -f conftest.er1
12216   cat conftest.err >&5
12217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218   (exit $ac_status); } && {
12219          test -z "$ac_c_werror_flag" ||
12220          test ! -s conftest.err
12221        } && test -s conftest.$ac_objext; then
12222   xorg_testset_unused_command_line_argument=yes
12223 else
12224   echo "$as_me: failed program was:" >&5
12225 sed 's/^/| /' conftest.$ac_ext >&5
12227         xorg_testset_unused_command_line_argument=no
12230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12231         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
12232 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
12233         CFLAGS="$xorg_testset_save_CFLAGS"
12236 found="no"
12238         if test $found = "no" ; then
12239                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12240                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12241                 fi
12243                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12244                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12245                 fi
12247                 CFLAGS="$CFLAGS -Warray-bounds"
12249                 { echo "$as_me:$LINENO: checking if $CC supports -Warray-bounds" >&5
12250 echo $ECHO_N "checking if $CC supports -Warray-bounds... $ECHO_C" >&6; }
12251                 cat >conftest.$ac_ext <<_ACEOF
12252 /* confdefs.h.  */
12253 _ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h.  */
12257 int i;
12258 int
12259 main ()
12262   ;
12263   return 0;
12265 _ACEOF
12266 rm -f conftest.$ac_objext conftest$ac_exeext
12267 if { (ac_try="$ac_link"
12268 case "(($ac_try" in
12269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270   *) ac_try_echo=$ac_try;;
12271 esac
12272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273   (eval "$ac_link") 2>conftest.er1
12274   ac_status=$?
12275   grep -v '^ *+' conftest.er1 >conftest.err
12276   rm -f conftest.er1
12277   cat conftest.err >&5
12278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279   (exit $ac_status); } && {
12280          test -z "$ac_c_werror_flag" ||
12281          test ! -s conftest.err
12282        } && test -s conftest$ac_exeext &&
12283        $as_test_x conftest$ac_exeext; then
12284   supported=yes
12285 else
12286   echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.$ac_ext >&5
12289         supported=no
12292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12293       conftest$ac_exeext conftest.$ac_ext
12294                 { echo "$as_me:$LINENO: result: $supported" >&5
12295 echo "${ECHO_T}$supported" >&6; }
12296                 CFLAGS="$xorg_testset_save_CFLAGS"
12298                 if test "$supported" = "yes" ; then
12299                         BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
12300                         found="yes"
12301                 fi
12302         fi
12310 xorg_testset_save_CFLAGS="$CFLAGS"
12312 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12313         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12314         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
12315 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
12316         cat >conftest.$ac_ext <<_ACEOF
12317 /* confdefs.h.  */
12318 _ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h.  */
12322 int i;
12323 _ACEOF
12324 rm -f conftest.$ac_objext
12325 if { (ac_try="$ac_compile"
12326 case "(($ac_try" in
12327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12328   *) ac_try_echo=$ac_try;;
12329 esac
12330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12331   (eval "$ac_compile") 2>conftest.er1
12332   ac_status=$?
12333   grep -v '^ *+' conftest.er1 >conftest.err
12334   rm -f conftest.er1
12335   cat conftest.err >&5
12336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337   (exit $ac_status); } && {
12338          test -z "$ac_c_werror_flag" ||
12339          test ! -s conftest.err
12340        } && test -s conftest.$ac_objext; then
12341   xorg_testset_unknown_warning_option=yes
12342 else
12343   echo "$as_me: failed program was:" >&5
12344 sed 's/^/| /' conftest.$ac_ext >&5
12346         xorg_testset_unknown_warning_option=no
12349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12350         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
12351 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
12352         CFLAGS="$xorg_testset_save_CFLAGS"
12355 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12356         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12357                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12358         fi
12359         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12360         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
12361 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
12362         cat >conftest.$ac_ext <<_ACEOF
12363 /* confdefs.h.  */
12364 _ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h.  */
12368 int i;
12369 _ACEOF
12370 rm -f conftest.$ac_objext
12371 if { (ac_try="$ac_compile"
12372 case "(($ac_try" in
12373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12374   *) ac_try_echo=$ac_try;;
12375 esac
12376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12377   (eval "$ac_compile") 2>conftest.er1
12378   ac_status=$?
12379   grep -v '^ *+' conftest.er1 >conftest.err
12380   rm -f conftest.er1
12381   cat conftest.err >&5
12382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383   (exit $ac_status); } && {
12384          test -z "$ac_c_werror_flag" ||
12385          test ! -s conftest.err
12386        } && test -s conftest.$ac_objext; then
12387   xorg_testset_unused_command_line_argument=yes
12388 else
12389   echo "$as_me: failed program was:" >&5
12390 sed 's/^/| /' conftest.$ac_ext >&5
12392         xorg_testset_unused_command_line_argument=no
12395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12396         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
12397 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
12398         CFLAGS="$xorg_testset_save_CFLAGS"
12401 found="no"
12403         if test $found = "no" ; then
12404                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12405                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12406                 fi
12408                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12409                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12410                 fi
12412                 CFLAGS="$CFLAGS -Wwrite-strings"
12414                 { echo "$as_me:$LINENO: checking if $CC supports -Wwrite-strings" >&5
12415 echo $ECHO_N "checking if $CC supports -Wwrite-strings... $ECHO_C" >&6; }
12416                 cat >conftest.$ac_ext <<_ACEOF
12417 /* confdefs.h.  */
12418 _ACEOF
12419 cat confdefs.h >>conftest.$ac_ext
12420 cat >>conftest.$ac_ext <<_ACEOF
12421 /* end confdefs.h.  */
12422 int i;
12423 int
12424 main ()
12427   ;
12428   return 0;
12430 _ACEOF
12431 rm -f conftest.$ac_objext conftest$ac_exeext
12432 if { (ac_try="$ac_link"
12433 case "(($ac_try" in
12434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435   *) ac_try_echo=$ac_try;;
12436 esac
12437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12438   (eval "$ac_link") 2>conftest.er1
12439   ac_status=$?
12440   grep -v '^ *+' conftest.er1 >conftest.err
12441   rm -f conftest.er1
12442   cat conftest.err >&5
12443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444   (exit $ac_status); } && {
12445          test -z "$ac_c_werror_flag" ||
12446          test ! -s conftest.err
12447        } && test -s conftest$ac_exeext &&
12448        $as_test_x conftest$ac_exeext; then
12449   supported=yes
12450 else
12451   echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12454         supported=no
12457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12458       conftest$ac_exeext conftest.$ac_ext
12459                 { echo "$as_me:$LINENO: result: $supported" >&5
12460 echo "${ECHO_T}$supported" >&6; }
12461                 CFLAGS="$xorg_testset_save_CFLAGS"
12463                 if test "$supported" = "yes" ; then
12464                         BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
12465                         found="yes"
12466                 fi
12467         fi
12475 xorg_testset_save_CFLAGS="$CFLAGS"
12477 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12478         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12479         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
12480 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
12481         cat >conftest.$ac_ext <<_ACEOF
12482 /* confdefs.h.  */
12483 _ACEOF
12484 cat confdefs.h >>conftest.$ac_ext
12485 cat >>conftest.$ac_ext <<_ACEOF
12486 /* end confdefs.h.  */
12487 int i;
12488 _ACEOF
12489 rm -f conftest.$ac_objext
12490 if { (ac_try="$ac_compile"
12491 case "(($ac_try" in
12492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493   *) ac_try_echo=$ac_try;;
12494 esac
12495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496   (eval "$ac_compile") 2>conftest.er1
12497   ac_status=$?
12498   grep -v '^ *+' conftest.er1 >conftest.err
12499   rm -f conftest.er1
12500   cat conftest.err >&5
12501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502   (exit $ac_status); } && {
12503          test -z "$ac_c_werror_flag" ||
12504          test ! -s conftest.err
12505        } && test -s conftest.$ac_objext; then
12506   xorg_testset_unknown_warning_option=yes
12507 else
12508   echo "$as_me: failed program was:" >&5
12509 sed 's/^/| /' conftest.$ac_ext >&5
12511         xorg_testset_unknown_warning_option=no
12514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12515         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
12516 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
12517         CFLAGS="$xorg_testset_save_CFLAGS"
12520 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12521         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12522                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12523         fi
12524         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12525         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
12526 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
12527         cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h.  */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h.  */
12533 int i;
12534 _ACEOF
12535 rm -f conftest.$ac_objext
12536 if { (ac_try="$ac_compile"
12537 case "(($ac_try" in
12538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539   *) ac_try_echo=$ac_try;;
12540 esac
12541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542   (eval "$ac_compile") 2>conftest.er1
12543   ac_status=$?
12544   grep -v '^ *+' conftest.er1 >conftest.err
12545   rm -f conftest.er1
12546   cat conftest.err >&5
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); } && {
12549          test -z "$ac_c_werror_flag" ||
12550          test ! -s conftest.err
12551        } && test -s conftest.$ac_objext; then
12552   xorg_testset_unused_command_line_argument=yes
12553 else
12554   echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12557         xorg_testset_unused_command_line_argument=no
12560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12561         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
12562 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
12563         CFLAGS="$xorg_testset_save_CFLAGS"
12566 found="no"
12568         if test $found = "no" ; then
12569                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12570                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12571                 fi
12573                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12574                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12575                 fi
12577                 CFLAGS="$CFLAGS -Waddress"
12579                 { echo "$as_me:$LINENO: checking if $CC supports -Waddress" >&5
12580 echo $ECHO_N "checking if $CC supports -Waddress... $ECHO_C" >&6; }
12581                 cat >conftest.$ac_ext <<_ACEOF
12582 /* confdefs.h.  */
12583 _ACEOF
12584 cat confdefs.h >>conftest.$ac_ext
12585 cat >>conftest.$ac_ext <<_ACEOF
12586 /* end confdefs.h.  */
12587 int i;
12588 int
12589 main ()
12592   ;
12593   return 0;
12595 _ACEOF
12596 rm -f conftest.$ac_objext conftest$ac_exeext
12597 if { (ac_try="$ac_link"
12598 case "(($ac_try" in
12599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600   *) ac_try_echo=$ac_try;;
12601 esac
12602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12603   (eval "$ac_link") 2>conftest.er1
12604   ac_status=$?
12605   grep -v '^ *+' conftest.er1 >conftest.err
12606   rm -f conftest.er1
12607   cat conftest.err >&5
12608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609   (exit $ac_status); } && {
12610          test -z "$ac_c_werror_flag" ||
12611          test ! -s conftest.err
12612        } && test -s conftest$ac_exeext &&
12613        $as_test_x conftest$ac_exeext; then
12614   supported=yes
12615 else
12616   echo "$as_me: failed program was:" >&5
12617 sed 's/^/| /' conftest.$ac_ext >&5
12619         supported=no
12622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12623       conftest$ac_exeext conftest.$ac_ext
12624                 { echo "$as_me:$LINENO: result: $supported" >&5
12625 echo "${ECHO_T}$supported" >&6; }
12626                 CFLAGS="$xorg_testset_save_CFLAGS"
12628                 if test "$supported" = "yes" ; then
12629                         BASE_CFLAGS="$BASE_CFLAGS -Waddress"
12630                         found="yes"
12631                 fi
12632         fi
12640 xorg_testset_save_CFLAGS="$CFLAGS"
12642 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12643         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12644         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
12645 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
12646         cat >conftest.$ac_ext <<_ACEOF
12647 /* confdefs.h.  */
12648 _ACEOF
12649 cat confdefs.h >>conftest.$ac_ext
12650 cat >>conftest.$ac_ext <<_ACEOF
12651 /* end confdefs.h.  */
12652 int i;
12653 _ACEOF
12654 rm -f conftest.$ac_objext
12655 if { (ac_try="$ac_compile"
12656 case "(($ac_try" in
12657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658   *) ac_try_echo=$ac_try;;
12659 esac
12660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12661   (eval "$ac_compile") 2>conftest.er1
12662   ac_status=$?
12663   grep -v '^ *+' conftest.er1 >conftest.err
12664   rm -f conftest.er1
12665   cat conftest.err >&5
12666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667   (exit $ac_status); } && {
12668          test -z "$ac_c_werror_flag" ||
12669          test ! -s conftest.err
12670        } && test -s conftest.$ac_objext; then
12671   xorg_testset_unknown_warning_option=yes
12672 else
12673   echo "$as_me: failed program was:" >&5
12674 sed 's/^/| /' conftest.$ac_ext >&5
12676         xorg_testset_unknown_warning_option=no
12679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12680         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
12681 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
12682         CFLAGS="$xorg_testset_save_CFLAGS"
12685 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12686         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12687                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12688         fi
12689         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12690         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
12691 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
12692         cat >conftest.$ac_ext <<_ACEOF
12693 /* confdefs.h.  */
12694 _ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h.  */
12698 int i;
12699 _ACEOF
12700 rm -f conftest.$ac_objext
12701 if { (ac_try="$ac_compile"
12702 case "(($ac_try" in
12703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704   *) ac_try_echo=$ac_try;;
12705 esac
12706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12707   (eval "$ac_compile") 2>conftest.er1
12708   ac_status=$?
12709   grep -v '^ *+' conftest.er1 >conftest.err
12710   rm -f conftest.er1
12711   cat conftest.err >&5
12712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713   (exit $ac_status); } && {
12714          test -z "$ac_c_werror_flag" ||
12715          test ! -s conftest.err
12716        } && test -s conftest.$ac_objext; then
12717   xorg_testset_unused_command_line_argument=yes
12718 else
12719   echo "$as_me: failed program was:" >&5
12720 sed 's/^/| /' conftest.$ac_ext >&5
12722         xorg_testset_unused_command_line_argument=no
12725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12726         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
12727 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
12728         CFLAGS="$xorg_testset_save_CFLAGS"
12731 found="no"
12733         if test $found = "no" ; then
12734                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12735                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12736                 fi
12738                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12739                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12740                 fi
12742                 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
12744                 { echo "$as_me:$LINENO: checking if $CC supports -Wint-to-pointer-cast" >&5
12745 echo $ECHO_N "checking if $CC supports -Wint-to-pointer-cast... $ECHO_C" >&6; }
12746                 cat >conftest.$ac_ext <<_ACEOF
12747 /* confdefs.h.  */
12748 _ACEOF
12749 cat confdefs.h >>conftest.$ac_ext
12750 cat >>conftest.$ac_ext <<_ACEOF
12751 /* end confdefs.h.  */
12752 int i;
12753 int
12754 main ()
12757   ;
12758   return 0;
12760 _ACEOF
12761 rm -f conftest.$ac_objext conftest$ac_exeext
12762 if { (ac_try="$ac_link"
12763 case "(($ac_try" in
12764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765   *) ac_try_echo=$ac_try;;
12766 esac
12767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12768   (eval "$ac_link") 2>conftest.er1
12769   ac_status=$?
12770   grep -v '^ *+' conftest.er1 >conftest.err
12771   rm -f conftest.er1
12772   cat conftest.err >&5
12773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774   (exit $ac_status); } && {
12775          test -z "$ac_c_werror_flag" ||
12776          test ! -s conftest.err
12777        } && test -s conftest$ac_exeext &&
12778        $as_test_x conftest$ac_exeext; then
12779   supported=yes
12780 else
12781   echo "$as_me: failed program was:" >&5
12782 sed 's/^/| /' conftest.$ac_ext >&5
12784         supported=no
12787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12788       conftest$ac_exeext conftest.$ac_ext
12789                 { echo "$as_me:$LINENO: result: $supported" >&5
12790 echo "${ECHO_T}$supported" >&6; }
12791                 CFLAGS="$xorg_testset_save_CFLAGS"
12793                 if test "$supported" = "yes" ; then
12794                         BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
12795                         found="yes"
12796                 fi
12797         fi
12805 xorg_testset_save_CFLAGS="$CFLAGS"
12807 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12808         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12809         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
12810 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
12811         cat >conftest.$ac_ext <<_ACEOF
12812 /* confdefs.h.  */
12813 _ACEOF
12814 cat confdefs.h >>conftest.$ac_ext
12815 cat >>conftest.$ac_ext <<_ACEOF
12816 /* end confdefs.h.  */
12817 int i;
12818 _ACEOF
12819 rm -f conftest.$ac_objext
12820 if { (ac_try="$ac_compile"
12821 case "(($ac_try" in
12822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12823   *) ac_try_echo=$ac_try;;
12824 esac
12825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12826   (eval "$ac_compile") 2>conftest.er1
12827   ac_status=$?
12828   grep -v '^ *+' conftest.er1 >conftest.err
12829   rm -f conftest.er1
12830   cat conftest.err >&5
12831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832   (exit $ac_status); } && {
12833          test -z "$ac_c_werror_flag" ||
12834          test ! -s conftest.err
12835        } && test -s conftest.$ac_objext; then
12836   xorg_testset_unknown_warning_option=yes
12837 else
12838   echo "$as_me: failed program was:" >&5
12839 sed 's/^/| /' conftest.$ac_ext >&5
12841         xorg_testset_unknown_warning_option=no
12844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12845         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
12846 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
12847         CFLAGS="$xorg_testset_save_CFLAGS"
12850 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12851         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12852                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12853         fi
12854         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12855         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
12856 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
12857         cat >conftest.$ac_ext <<_ACEOF
12858 /* confdefs.h.  */
12859 _ACEOF
12860 cat confdefs.h >>conftest.$ac_ext
12861 cat >>conftest.$ac_ext <<_ACEOF
12862 /* end confdefs.h.  */
12863 int i;
12864 _ACEOF
12865 rm -f conftest.$ac_objext
12866 if { (ac_try="$ac_compile"
12867 case "(($ac_try" in
12868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869   *) ac_try_echo=$ac_try;;
12870 esac
12871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872   (eval "$ac_compile") 2>conftest.er1
12873   ac_status=$?
12874   grep -v '^ *+' conftest.er1 >conftest.err
12875   rm -f conftest.er1
12876   cat conftest.err >&5
12877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878   (exit $ac_status); } && {
12879          test -z "$ac_c_werror_flag" ||
12880          test ! -s conftest.err
12881        } && test -s conftest.$ac_objext; then
12882   xorg_testset_unused_command_line_argument=yes
12883 else
12884   echo "$as_me: failed program was:" >&5
12885 sed 's/^/| /' conftest.$ac_ext >&5
12887         xorg_testset_unused_command_line_argument=no
12890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12891         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
12892 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
12893         CFLAGS="$xorg_testset_save_CFLAGS"
12896 found="no"
12898         if test $found = "no" ; then
12899                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12900                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12901                 fi
12903                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12904                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12905                 fi
12907                 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
12909                 { echo "$as_me:$LINENO: checking if $CC supports -Wpointer-to-int-cast" >&5
12910 echo $ECHO_N "checking if $CC supports -Wpointer-to-int-cast... $ECHO_C" >&6; }
12911                 cat >conftest.$ac_ext <<_ACEOF
12912 /* confdefs.h.  */
12913 _ACEOF
12914 cat confdefs.h >>conftest.$ac_ext
12915 cat >>conftest.$ac_ext <<_ACEOF
12916 /* end confdefs.h.  */
12917 int i;
12918 int
12919 main ()
12922   ;
12923   return 0;
12925 _ACEOF
12926 rm -f conftest.$ac_objext conftest$ac_exeext
12927 if { (ac_try="$ac_link"
12928 case "(($ac_try" in
12929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930   *) ac_try_echo=$ac_try;;
12931 esac
12932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933   (eval "$ac_link") 2>conftest.er1
12934   ac_status=$?
12935   grep -v '^ *+' conftest.er1 >conftest.err
12936   rm -f conftest.er1
12937   cat conftest.err >&5
12938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939   (exit $ac_status); } && {
12940          test -z "$ac_c_werror_flag" ||
12941          test ! -s conftest.err
12942        } && test -s conftest$ac_exeext &&
12943        $as_test_x conftest$ac_exeext; then
12944   supported=yes
12945 else
12946   echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12949         supported=no
12952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12953       conftest$ac_exeext conftest.$ac_ext
12954                 { echo "$as_me:$LINENO: result: $supported" >&5
12955 echo "${ECHO_T}$supported" >&6; }
12956                 CFLAGS="$xorg_testset_save_CFLAGS"
12958                 if test "$supported" = "yes" ; then
12959                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
12960                         found="yes"
12961                 fi
12962         fi
12972 CWARNFLAGS="$BASE_CFLAGS"
12973 if  test "x$GCC" = xyes ; then
12974     CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
12982 # Check whether --enable-strict-compilation was given.
12983 if test "${enable_strict_compilation+set}" = set; then
12984   enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
12985 else
12986   STRICT_COMPILE=no
12990 STRICT_CFLAGS=""
12996 xorg_testset_save_CFLAGS="$CFLAGS"
12998 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12999         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13000         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
13001 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
13002         cat >conftest.$ac_ext <<_ACEOF
13003 /* confdefs.h.  */
13004 _ACEOF
13005 cat confdefs.h >>conftest.$ac_ext
13006 cat >>conftest.$ac_ext <<_ACEOF
13007 /* end confdefs.h.  */
13008 int i;
13009 _ACEOF
13010 rm -f conftest.$ac_objext
13011 if { (ac_try="$ac_compile"
13012 case "(($ac_try" in
13013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014   *) ac_try_echo=$ac_try;;
13015 esac
13016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13017   (eval "$ac_compile") 2>conftest.er1
13018   ac_status=$?
13019   grep -v '^ *+' conftest.er1 >conftest.err
13020   rm -f conftest.er1
13021   cat conftest.err >&5
13022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023   (exit $ac_status); } && {
13024          test -z "$ac_c_werror_flag" ||
13025          test ! -s conftest.err
13026        } && test -s conftest.$ac_objext; then
13027   xorg_testset_unknown_warning_option=yes
13028 else
13029   echo "$as_me: failed program was:" >&5
13030 sed 's/^/| /' conftest.$ac_ext >&5
13032         xorg_testset_unknown_warning_option=no
13035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13036         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
13037 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
13038         CFLAGS="$xorg_testset_save_CFLAGS"
13041 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13042         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13043                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13044         fi
13045         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13046         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
13047 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
13048         cat >conftest.$ac_ext <<_ACEOF
13049 /* confdefs.h.  */
13050 _ACEOF
13051 cat confdefs.h >>conftest.$ac_ext
13052 cat >>conftest.$ac_ext <<_ACEOF
13053 /* end confdefs.h.  */
13054 int i;
13055 _ACEOF
13056 rm -f conftest.$ac_objext
13057 if { (ac_try="$ac_compile"
13058 case "(($ac_try" in
13059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060   *) ac_try_echo=$ac_try;;
13061 esac
13062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063   (eval "$ac_compile") 2>conftest.er1
13064   ac_status=$?
13065   grep -v '^ *+' conftest.er1 >conftest.err
13066   rm -f conftest.er1
13067   cat conftest.err >&5
13068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069   (exit $ac_status); } && {
13070          test -z "$ac_c_werror_flag" ||
13071          test ! -s conftest.err
13072        } && test -s conftest.$ac_objext; then
13073   xorg_testset_unused_command_line_argument=yes
13074 else
13075   echo "$as_me: failed program was:" >&5
13076 sed 's/^/| /' conftest.$ac_ext >&5
13078         xorg_testset_unused_command_line_argument=no
13081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13082         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
13083 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
13084         CFLAGS="$xorg_testset_save_CFLAGS"
13087 found="no"
13089         if test $found = "no" ; then
13090                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13091                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13092                 fi
13094                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13095                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13096                 fi
13098                 CFLAGS="$CFLAGS -pedantic"
13100                 { echo "$as_me:$LINENO: checking if $CC supports -pedantic" >&5
13101 echo $ECHO_N "checking if $CC supports -pedantic... $ECHO_C" >&6; }
13102                 cat >conftest.$ac_ext <<_ACEOF
13103 /* confdefs.h.  */
13104 _ACEOF
13105 cat confdefs.h >>conftest.$ac_ext
13106 cat >>conftest.$ac_ext <<_ACEOF
13107 /* end confdefs.h.  */
13108 int i;
13109 int
13110 main ()
13113   ;
13114   return 0;
13116 _ACEOF
13117 rm -f conftest.$ac_objext conftest$ac_exeext
13118 if { (ac_try="$ac_link"
13119 case "(($ac_try" in
13120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121   *) ac_try_echo=$ac_try;;
13122 esac
13123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124   (eval "$ac_link") 2>conftest.er1
13125   ac_status=$?
13126   grep -v '^ *+' conftest.er1 >conftest.err
13127   rm -f conftest.er1
13128   cat conftest.err >&5
13129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130   (exit $ac_status); } && {
13131          test -z "$ac_c_werror_flag" ||
13132          test ! -s conftest.err
13133        } && test -s conftest$ac_exeext &&
13134        $as_test_x conftest$ac_exeext; then
13135   supported=yes
13136 else
13137   echo "$as_me: failed program was:" >&5
13138 sed 's/^/| /' conftest.$ac_ext >&5
13140         supported=no
13143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13144       conftest$ac_exeext conftest.$ac_ext
13145                 { echo "$as_me:$LINENO: result: $supported" >&5
13146 echo "${ECHO_T}$supported" >&6; }
13147                 CFLAGS="$xorg_testset_save_CFLAGS"
13149                 if test "$supported" = "yes" ; then
13150                         STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
13151                         found="yes"
13152                 fi
13153         fi
13161 xorg_testset_save_CFLAGS="$CFLAGS"
13163 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13164         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13165         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
13166 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
13167         cat >conftest.$ac_ext <<_ACEOF
13168 /* confdefs.h.  */
13169 _ACEOF
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h.  */
13173 int i;
13174 _ACEOF
13175 rm -f conftest.$ac_objext
13176 if { (ac_try="$ac_compile"
13177 case "(($ac_try" in
13178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179   *) ac_try_echo=$ac_try;;
13180 esac
13181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182   (eval "$ac_compile") 2>conftest.er1
13183   ac_status=$?
13184   grep -v '^ *+' conftest.er1 >conftest.err
13185   rm -f conftest.er1
13186   cat conftest.err >&5
13187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188   (exit $ac_status); } && {
13189          test -z "$ac_c_werror_flag" ||
13190          test ! -s conftest.err
13191        } && test -s conftest.$ac_objext; then
13192   xorg_testset_unknown_warning_option=yes
13193 else
13194   echo "$as_me: failed program was:" >&5
13195 sed 's/^/| /' conftest.$ac_ext >&5
13197         xorg_testset_unknown_warning_option=no
13200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13201         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
13202 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
13203         CFLAGS="$xorg_testset_save_CFLAGS"
13206 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13207         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13208                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13209         fi
13210         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13211         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
13212 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
13213         cat >conftest.$ac_ext <<_ACEOF
13214 /* confdefs.h.  */
13215 _ACEOF
13216 cat confdefs.h >>conftest.$ac_ext
13217 cat >>conftest.$ac_ext <<_ACEOF
13218 /* end confdefs.h.  */
13219 int i;
13220 _ACEOF
13221 rm -f conftest.$ac_objext
13222 if { (ac_try="$ac_compile"
13223 case "(($ac_try" in
13224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225   *) ac_try_echo=$ac_try;;
13226 esac
13227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13228   (eval "$ac_compile") 2>conftest.er1
13229   ac_status=$?
13230   grep -v '^ *+' conftest.er1 >conftest.err
13231   rm -f conftest.er1
13232   cat conftest.err >&5
13233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234   (exit $ac_status); } && {
13235          test -z "$ac_c_werror_flag" ||
13236          test ! -s conftest.err
13237        } && test -s conftest.$ac_objext; then
13238   xorg_testset_unused_command_line_argument=yes
13239 else
13240   echo "$as_me: failed program was:" >&5
13241 sed 's/^/| /' conftest.$ac_ext >&5
13243         xorg_testset_unused_command_line_argument=no
13246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13247         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
13248 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
13249         CFLAGS="$xorg_testset_save_CFLAGS"
13252 found="no"
13254         if test $found = "no" ; then
13255                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13256                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13257                 fi
13259                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13260                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13261                 fi
13263                 CFLAGS="$CFLAGS -Werror"
13265                 { echo "$as_me:$LINENO: checking if $CC supports -Werror" >&5
13266 echo $ECHO_N "checking if $CC supports -Werror... $ECHO_C" >&6; }
13267                 cat >conftest.$ac_ext <<_ACEOF
13268 /* confdefs.h.  */
13269 _ACEOF
13270 cat confdefs.h >>conftest.$ac_ext
13271 cat >>conftest.$ac_ext <<_ACEOF
13272 /* end confdefs.h.  */
13273 int i;
13274 int
13275 main ()
13278   ;
13279   return 0;
13281 _ACEOF
13282 rm -f conftest.$ac_objext conftest$ac_exeext
13283 if { (ac_try="$ac_link"
13284 case "(($ac_try" in
13285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13286   *) ac_try_echo=$ac_try;;
13287 esac
13288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13289   (eval "$ac_link") 2>conftest.er1
13290   ac_status=$?
13291   grep -v '^ *+' conftest.er1 >conftest.err
13292   rm -f conftest.er1
13293   cat conftest.err >&5
13294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295   (exit $ac_status); } && {
13296          test -z "$ac_c_werror_flag" ||
13297          test ! -s conftest.err
13298        } && test -s conftest$ac_exeext &&
13299        $as_test_x conftest$ac_exeext; then
13300   supported=yes
13301 else
13302   echo "$as_me: failed program was:" >&5
13303 sed 's/^/| /' conftest.$ac_ext >&5
13305         supported=no
13308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13309       conftest$ac_exeext conftest.$ac_ext
13310                 { echo "$as_me:$LINENO: result: $supported" >&5
13311 echo "${ECHO_T}$supported" >&6; }
13312                 CFLAGS="$xorg_testset_save_CFLAGS"
13314                 if test "$supported" = "yes" ; then
13315                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
13316                         found="yes"
13317                 fi
13318         fi
13320         if test $found = "no" ; then
13321                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13322                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13323                 fi
13325                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13326                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13327                 fi
13329                 CFLAGS="$CFLAGS -errwarn"
13331                 { echo "$as_me:$LINENO: checking if $CC supports -errwarn" >&5
13332 echo $ECHO_N "checking if $CC supports -errwarn... $ECHO_C" >&6; }
13333                 cat >conftest.$ac_ext <<_ACEOF
13334 /* confdefs.h.  */
13335 _ACEOF
13336 cat confdefs.h >>conftest.$ac_ext
13337 cat >>conftest.$ac_ext <<_ACEOF
13338 /* end confdefs.h.  */
13339 int i;
13340 int
13341 main ()
13344   ;
13345   return 0;
13347 _ACEOF
13348 rm -f conftest.$ac_objext conftest$ac_exeext
13349 if { (ac_try="$ac_link"
13350 case "(($ac_try" in
13351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352   *) ac_try_echo=$ac_try;;
13353 esac
13354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355   (eval "$ac_link") 2>conftest.er1
13356   ac_status=$?
13357   grep -v '^ *+' conftest.er1 >conftest.err
13358   rm -f conftest.er1
13359   cat conftest.err >&5
13360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361   (exit $ac_status); } && {
13362          test -z "$ac_c_werror_flag" ||
13363          test ! -s conftest.err
13364        } && test -s conftest$ac_exeext &&
13365        $as_test_x conftest$ac_exeext; then
13366   supported=yes
13367 else
13368   echo "$as_me: failed program was:" >&5
13369 sed 's/^/| /' conftest.$ac_ext >&5
13371         supported=no
13374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13375       conftest$ac_exeext conftest.$ac_ext
13376                 { echo "$as_me:$LINENO: result: $supported" >&5
13377 echo "${ECHO_T}$supported" >&6; }
13378                 CFLAGS="$xorg_testset_save_CFLAGS"
13380                 if test "$supported" = "yes" ; then
13381                         STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
13382                         found="yes"
13383                 fi
13384         fi
13388 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
13389 # activate it with -Werror, so we add it here explicitly.
13395 xorg_testset_save_CFLAGS="$CFLAGS"
13397 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13398         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13399         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
13400 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
13401         cat >conftest.$ac_ext <<_ACEOF
13402 /* confdefs.h.  */
13403 _ACEOF
13404 cat confdefs.h >>conftest.$ac_ext
13405 cat >>conftest.$ac_ext <<_ACEOF
13406 /* end confdefs.h.  */
13407 int i;
13408 _ACEOF
13409 rm -f conftest.$ac_objext
13410 if { (ac_try="$ac_compile"
13411 case "(($ac_try" in
13412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413   *) ac_try_echo=$ac_try;;
13414 esac
13415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13416   (eval "$ac_compile") 2>conftest.er1
13417   ac_status=$?
13418   grep -v '^ *+' conftest.er1 >conftest.err
13419   rm -f conftest.er1
13420   cat conftest.err >&5
13421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422   (exit $ac_status); } && {
13423          test -z "$ac_c_werror_flag" ||
13424          test ! -s conftest.err
13425        } && test -s conftest.$ac_objext; then
13426   xorg_testset_unknown_warning_option=yes
13427 else
13428   echo "$as_me: failed program was:" >&5
13429 sed 's/^/| /' conftest.$ac_ext >&5
13431         xorg_testset_unknown_warning_option=no
13434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13435         { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
13436 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
13437         CFLAGS="$xorg_testset_save_CFLAGS"
13440 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13441         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13442                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13443         fi
13444         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13445         { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
13446 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
13447         cat >conftest.$ac_ext <<_ACEOF
13448 /* confdefs.h.  */
13449 _ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h.  */
13453 int i;
13454 _ACEOF
13455 rm -f conftest.$ac_objext
13456 if { (ac_try="$ac_compile"
13457 case "(($ac_try" in
13458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13459   *) ac_try_echo=$ac_try;;
13460 esac
13461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13462   (eval "$ac_compile") 2>conftest.er1
13463   ac_status=$?
13464   grep -v '^ *+' conftest.er1 >conftest.err
13465   rm -f conftest.er1
13466   cat conftest.err >&5
13467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468   (exit $ac_status); } && {
13469          test -z "$ac_c_werror_flag" ||
13470          test ! -s conftest.err
13471        } && test -s conftest.$ac_objext; then
13472   xorg_testset_unused_command_line_argument=yes
13473 else
13474   echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13477         xorg_testset_unused_command_line_argument=no
13480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13481         { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
13482 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
13483         CFLAGS="$xorg_testset_save_CFLAGS"
13486 found="no"
13488         if test $found = "no" ; then
13489                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13490                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13491                 fi
13493                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13494                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13495                 fi
13497                 CFLAGS="$CFLAGS -Werror=attributes"
13499                 { echo "$as_me:$LINENO: checking if $CC supports -Werror=attributes" >&5
13500 echo $ECHO_N "checking if $CC supports -Werror=attributes... $ECHO_C" >&6; }
13501                 cat >conftest.$ac_ext <<_ACEOF
13502 /* confdefs.h.  */
13503 _ACEOF
13504 cat confdefs.h >>conftest.$ac_ext
13505 cat >>conftest.$ac_ext <<_ACEOF
13506 /* end confdefs.h.  */
13507 int i;
13508 int
13509 main ()
13512   ;
13513   return 0;
13515 _ACEOF
13516 rm -f conftest.$ac_objext conftest$ac_exeext
13517 if { (ac_try="$ac_link"
13518 case "(($ac_try" in
13519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520   *) ac_try_echo=$ac_try;;
13521 esac
13522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523   (eval "$ac_link") 2>conftest.er1
13524   ac_status=$?
13525   grep -v '^ *+' conftest.er1 >conftest.err
13526   rm -f conftest.er1
13527   cat conftest.err >&5
13528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529   (exit $ac_status); } && {
13530          test -z "$ac_c_werror_flag" ||
13531          test ! -s conftest.err
13532        } && test -s conftest$ac_exeext &&
13533        $as_test_x conftest$ac_exeext; then
13534   supported=yes
13535 else
13536   echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13539         supported=no
13542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13543       conftest$ac_exeext conftest.$ac_ext
13544                 { echo "$as_me:$LINENO: result: $supported" >&5
13545 echo "${ECHO_T}$supported" >&6; }
13546                 CFLAGS="$xorg_testset_save_CFLAGS"
13548                 if test "$supported" = "yes" ; then
13549                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
13550                         found="yes"
13551                 fi
13552         fi
13556 if test "x$STRICT_COMPILE" = "xyes"; then
13557     BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
13558     CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
13566 cat >>confdefs.h <<_ACEOF
13567 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
13568 _ACEOF
13570         PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
13571         if test "x$PVM" = "x"; then
13572                 PVM="0"
13573         fi
13575 cat >>confdefs.h <<_ACEOF
13576 #define PACKAGE_VERSION_MINOR $PVM
13577 _ACEOF
13579         PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
13580         if test "x$PVP" = "x"; then
13581                 PVP="0"
13582         fi
13584 cat >>confdefs.h <<_ACEOF
13585 #define PACKAGE_VERSION_PATCHLEVEL $PVP
13586 _ACEOF
13590 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
13591 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
13592 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
13593 echo 'git directory not found: installing possibly empty changelog.' >&2)"
13598 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
13599 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
13600 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
13601 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
13602 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
13609 if test x$APP_MAN_SUFFIX = x    ; then
13610     APP_MAN_SUFFIX=1
13612 if test x$APP_MAN_DIR = x    ; then
13613     APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
13616 if test x$LIB_MAN_SUFFIX = x    ; then
13617     LIB_MAN_SUFFIX=3
13619 if test x$LIB_MAN_DIR = x    ; then
13620     LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
13623 if test x$FILE_MAN_SUFFIX = x    ; then
13624     case $host_os in
13625         solaris*)       FILE_MAN_SUFFIX=4  ;;
13626         *)              FILE_MAN_SUFFIX=5  ;;
13627     esac
13629 if test x$FILE_MAN_DIR = x    ; then
13630     FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
13633 if test x$MISC_MAN_SUFFIX = x    ; then
13634     case $host_os in
13635         solaris*)       MISC_MAN_SUFFIX=5  ;;
13636         *)              MISC_MAN_SUFFIX=7  ;;
13637     esac
13639 if test x$MISC_MAN_DIR = x    ; then
13640     MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
13643 if test x$DRIVER_MAN_SUFFIX = x    ; then
13644     case $host_os in
13645         solaris*)       DRIVER_MAN_SUFFIX=7  ;;
13646         *)              DRIVER_MAN_SUFFIX=4  ;;
13647     esac
13649 if test x$DRIVER_MAN_DIR = x    ; then
13650     DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
13653 if test x$ADMIN_MAN_SUFFIX = x    ; then
13654     case $host_os in
13655         solaris*)       ADMIN_MAN_SUFFIX=1m ;;
13656         *)              ADMIN_MAN_SUFFIX=8  ;;
13657     esac
13659 if test x$ADMIN_MAN_DIR = x    ; then
13660     ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
13677 XORG_MAN_PAGE="X Version 11"
13679 MAN_SUBSTS="\
13680         -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
13681         -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
13682         -e 's|__xservername__|Xorg|g' \
13683         -e 's|__xconfigfile__|xorg.conf|g' \
13684         -e 's|__projectroot__|\$(prefix)|g' \
13685         -e 's|__apploaddir__|\$(appdefaultdir)|g' \
13686         -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
13687         -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
13688         -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
13689         -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
13690         -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
13691         -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
13695 AM_DEFAULT_VERBOSITY=1
13702 # Check whether --with-doxygen was given.
13703 if test "${with_doxygen+set}" = set; then
13704   withval=$with_doxygen; use_doxygen=$withval
13705 else
13706   use_doxygen=auto
13711 if test "x$use_doxygen" = x"auto"; then
13712    # Extract the first word of "doxygen", so it can be a program name with args.
13713 set dummy doxygen; ac_word=$2
13714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13716 if test "${ac_cv_path_DOXYGEN+set}" = set; then
13717   echo $ECHO_N "(cached) $ECHO_C" >&6
13718 else
13719   case $DOXYGEN in
13720   [\\/]* | ?:[\\/]*)
13721   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
13722   ;;
13723   *)
13724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13725 for as_dir in $PATH
13727   IFS=$as_save_IFS
13728   test -z "$as_dir" && as_dir=.
13729   for ac_exec_ext in '' $ac_executable_extensions; do
13730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13731     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
13732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13733     break 2
13734   fi
13735 done
13736 done
13737 IFS=$as_save_IFS
13739   ;;
13740 esac
13742 DOXYGEN=$ac_cv_path_DOXYGEN
13743 if test -n "$DOXYGEN"; then
13744   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
13745 echo "${ECHO_T}$DOXYGEN" >&6; }
13746 else
13747   { echo "$as_me:$LINENO: result: no" >&5
13748 echo "${ECHO_T}no" >&6; }
13752    if test "x$DOXYGEN" = "x"; then
13753         { echo "$as_me:$LINENO: WARNING: doxygen not found - documentation targets will be skipped" >&5
13754 echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;}
13755         have_doxygen=no
13756    else
13757         have_doxygen=yes
13758    fi
13759 elif test "x$use_doxygen" = x"yes" ; then
13760    # Extract the first word of "doxygen", so it can be a program name with args.
13761 set dummy doxygen; ac_word=$2
13762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13764 if test "${ac_cv_path_DOXYGEN+set}" = set; then
13765   echo $ECHO_N "(cached) $ECHO_C" >&6
13766 else
13767   case $DOXYGEN in
13768   [\\/]* | ?:[\\/]*)
13769   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
13770   ;;
13771   *)
13772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13773 for as_dir in $PATH
13775   IFS=$as_save_IFS
13776   test -z "$as_dir" && as_dir=.
13777   for ac_exec_ext in '' $ac_executable_extensions; do
13778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13779     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
13780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13781     break 2
13782   fi
13783 done
13784 done
13785 IFS=$as_save_IFS
13787   ;;
13788 esac
13790 DOXYGEN=$ac_cv_path_DOXYGEN
13791 if test -n "$DOXYGEN"; then
13792   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
13793 echo "${ECHO_T}$DOXYGEN" >&6; }
13794 else
13795   { echo "$as_me:$LINENO: result: no" >&5
13796 echo "${ECHO_T}no" >&6; }
13800    if test "x$DOXYGEN" = "x"; then
13801         { { echo "$as_me:$LINENO: error: --with-doxygen=yes specified but doxygen not found in PATH" >&5
13802 echo "$as_me: error: --with-doxygen=yes specified but doxygen not found in PATH" >&2;}
13803    { (exit 1); exit 1; }; }
13804    fi
13805    have_doxygen=yes
13806 elif test "x$use_doxygen" = x"no" ; then
13807    if test "x$DOXYGEN" != "x"; then
13808       { echo "$as_me:$LINENO: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5
13809 echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;}
13810    fi
13811    have_doxygen=no
13812 else
13813    { { echo "$as_me:$LINENO: error: --with-doxygen expects 'yes' or 'no'" >&5
13814 echo "$as_me: error: --with-doxygen expects 'yes' or 'no'" >&2;}
13815    { (exit 1); exit 1; }; }
13817 if test "$have_doxygen" = yes; then
13818     # scrape the doxygen version
13819     { echo "$as_me:$LINENO: checking the doxygen version" >&5
13820 echo $ECHO_N "checking the doxygen version... $ECHO_C" >&6; }
13821     doxygen_version=`$DOXYGEN --version 2>/dev/null`
13822     { echo "$as_me:$LINENO: result: $doxygen_version" >&5
13823 echo "${ECHO_T}$doxygen_version" >&6; }
13824     as_arg_v1=$doxygen_version
13825 as_arg_v2=1.6.1
13826 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
13827 case $? in
13828 1) if test "x$use_doxygen" = xauto; then
13829             { echo "$as_me:$LINENO: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&5
13830 echo "$as_me: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&2;}
13831             have_doxygen=no
13832         else
13833             { { echo "$as_me:$LINENO: error: doxygen version $doxygen_version found, but 1.6.1 needed" >&5
13834 echo "$as_me: error: doxygen version $doxygen_version found, but 1.6.1 needed" >&2;}
13835    { (exit 1); exit 1; }; }
13836         fi;;
13837 0) ;;
13838 2) ;;
13839 esac
13841  if test "$have_doxygen" = yes; then
13842   HAVE_DOXYGEN_TRUE=
13843   HAVE_DOXYGEN_FALSE='#'
13844 else
13845   HAVE_DOXYGEN_TRUE='#'
13846   HAVE_DOXYGEN_FALSE=
13851 { echo "$as_me:$LINENO: checking for X.Org SGML entities >= 1.8" >&5
13852 echo $ECHO_N "checking for X.Org SGML entities >= 1.8... $ECHO_C" >&6; }
13853 XORG_SGML_PATH=
13854 if test -n "$PKG_CONFIG" && \
13855     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\"") >&5
13856   ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
13857   ac_status=$?
13858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859   (exit $ac_status); }; then
13860   XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
13861 else
13862   :
13866 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
13867 # the path and the name of the doc stylesheet
13868 if test "x$XORG_SGML_PATH" != "x" ; then
13869    { echo "$as_me:$LINENO: result: $XORG_SGML_PATH" >&5
13870 echo "${ECHO_T}$XORG_SGML_PATH" >&6; }
13871    STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
13872    XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
13873 else
13874    { echo "$as_me:$LINENO: result: no" >&5
13875 echo "${ECHO_T}no" >&6; }
13881  if test "x$XSL_STYLESHEET" != "x"; then
13882   HAVE_STYLESHEETS_TRUE=
13883   HAVE_STYLESHEETS_FALSE='#'
13884 else
13885   HAVE_STYLESHEETS_TRUE='#'
13886   HAVE_STYLESHEETS_FALSE=
13892 # Check whether --enable-docs was given.
13893 if test "${enable_docs+set}" = set; then
13894   enableval=$enable_docs; build_docs=$enableval
13895 else
13896   build_docs=yes
13900  if test x$build_docs = xyes; then
13901   ENABLE_DOCS_TRUE=
13902   ENABLE_DOCS_FALSE='#'
13903 else
13904   ENABLE_DOCS_TRUE='#'
13905   ENABLE_DOCS_FALSE=
13908 { echo "$as_me:$LINENO: checking whether to build documentation" >&5
13909 echo $ECHO_N "checking whether to build documentation... $ECHO_C" >&6; }
13910 { echo "$as_me:$LINENO: result: $build_docs" >&5
13911 echo "${ECHO_T}$build_docs" >&6; }
13915 # Check whether --enable-devel-docs was given.
13916 if test "${enable_devel_docs+set}" = set; then
13917   enableval=$enable_devel_docs; build_devel_docs=$enableval
13918 else
13919   build_devel_docs=yes
13923  if test x$build_devel_docs = xyes; then
13924   ENABLE_DEVEL_DOCS_TRUE=
13925   ENABLE_DEVEL_DOCS_FALSE='#'
13926 else
13927   ENABLE_DEVEL_DOCS_TRUE='#'
13928   ENABLE_DEVEL_DOCS_FALSE=
13931 { echo "$as_me:$LINENO: checking whether to build developer documentation" >&5
13932 echo $ECHO_N "checking whether to build developer documentation... $ECHO_C" >&6; }
13933 { echo "$as_me:$LINENO: result: $build_devel_docs" >&5
13934 echo "${ECHO_T}$build_devel_docs" >&6; }
13940 # Check whether --with-xmlto was given.
13941 if test "${with_xmlto+set}" = set; then
13942   withval=$with_xmlto; use_xmlto=$withval
13943 else
13944   use_xmlto=auto
13949 if test "x$use_xmlto" = x"auto"; then
13950    # Extract the first word of "xmlto", so it can be a program name with args.
13951 set dummy xmlto; ac_word=$2
13952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13954 if test "${ac_cv_path_XMLTO+set}" = set; then
13955   echo $ECHO_N "(cached) $ECHO_C" >&6
13956 else
13957   case $XMLTO in
13958   [\\/]* | ?:[\\/]*)
13959   ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
13960   ;;
13961   *)
13962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13963 for as_dir in $PATH
13965   IFS=$as_save_IFS
13966   test -z "$as_dir" && as_dir=.
13967   for ac_exec_ext in '' $ac_executable_extensions; do
13968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13969     ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
13970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13971     break 2
13972   fi
13973 done
13974 done
13975 IFS=$as_save_IFS
13977   ;;
13978 esac
13980 XMLTO=$ac_cv_path_XMLTO
13981 if test -n "$XMLTO"; then
13982   { echo "$as_me:$LINENO: result: $XMLTO" >&5
13983 echo "${ECHO_T}$XMLTO" >&6; }
13984 else
13985   { echo "$as_me:$LINENO: result: no" >&5
13986 echo "${ECHO_T}no" >&6; }
13990    if test "x$XMLTO" = "x"; then
13991         { echo "$as_me:$LINENO: WARNING: xmlto not found - documentation targets will be skipped" >&5
13992 echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
13993         have_xmlto=no
13994    else
13995         have_xmlto=yes
13996    fi
13997 elif test "x$use_xmlto" = x"yes" ; then
13998    # Extract the first word of "xmlto", so it can be a program name with args.
13999 set dummy xmlto; ac_word=$2
14000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14002 if test "${ac_cv_path_XMLTO+set}" = set; then
14003   echo $ECHO_N "(cached) $ECHO_C" >&6
14004 else
14005   case $XMLTO in
14006   [\\/]* | ?:[\\/]*)
14007   ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
14008   ;;
14009   *)
14010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14011 for as_dir in $PATH
14013   IFS=$as_save_IFS
14014   test -z "$as_dir" && as_dir=.
14015   for ac_exec_ext in '' $ac_executable_extensions; do
14016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14017     ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
14018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14019     break 2
14020   fi
14021 done
14022 done
14023 IFS=$as_save_IFS
14025   ;;
14026 esac
14028 XMLTO=$ac_cv_path_XMLTO
14029 if test -n "$XMLTO"; then
14030   { echo "$as_me:$LINENO: result: $XMLTO" >&5
14031 echo "${ECHO_T}$XMLTO" >&6; }
14032 else
14033   { echo "$as_me:$LINENO: result: no" >&5
14034 echo "${ECHO_T}no" >&6; }
14038    if test "x$XMLTO" = "x"; then
14039         { { echo "$as_me:$LINENO: error: --with-xmlto=yes specified but xmlto not found in PATH" >&5
14040 echo "$as_me: error: --with-xmlto=yes specified but xmlto not found in PATH" >&2;}
14041    { (exit 1); exit 1; }; }
14042    fi
14043    have_xmlto=yes
14044 elif test "x$use_xmlto" = x"no" ; then
14045    if test "x$XMLTO" != "x"; then
14046       { echo "$as_me:$LINENO: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
14047 echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
14048    fi
14049    have_xmlto=no
14050 else
14051    { { echo "$as_me:$LINENO: error: --with-xmlto expects 'yes' or 'no'" >&5
14052 echo "$as_me: error: --with-xmlto expects 'yes' or 'no'" >&2;}
14053    { (exit 1); exit 1; }; }
14056 # Test for a minimum version of xmlto, if provided.
14057 if test "$have_xmlto" = yes; then
14058     # scrape the xmlto version
14059     { echo "$as_me:$LINENO: checking the xmlto version" >&5
14060 echo $ECHO_N "checking the xmlto version... $ECHO_C" >&6; }
14061     xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
14062     { echo "$as_me:$LINENO: result: $xmlto_version" >&5
14063 echo "${ECHO_T}$xmlto_version" >&6; }
14064     as_arg_v1=$xmlto_version
14065 as_arg_v2=0.0.20
14066 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
14067 case $? in
14068 1) if test "x$use_xmlto" = xauto; then
14069             { echo "$as_me:$LINENO: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
14070 echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
14071             have_xmlto=no
14072         else
14073             { { echo "$as_me:$LINENO: error: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
14074 echo "$as_me: error: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
14075    { (exit 1); exit 1; }; }
14076         fi;;
14077 0) ;;
14078 2) ;;
14079 esac
14082 # Test for the ability of xmlto to generate a text target
14083 have_xmlto_text=no
14084 cat > conftest.xml << "EOF"
14085 EOF
14086 if test "$have_xmlto" = yes; then
14087   if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then
14088   have_xmlto_text=yes
14089 else
14090   { echo "$as_me:$LINENO: WARNING: xmlto cannot generate text format, this format skipped" >&5
14091 echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
14096 rm -f conftest.xml
14097  if test $have_xmlto_text = yes; then
14098   HAVE_XMLTO_TEXT_TRUE=
14099   HAVE_XMLTO_TEXT_FALSE='#'
14100 else
14101   HAVE_XMLTO_TEXT_TRUE='#'
14102   HAVE_XMLTO_TEXT_FALSE=
14105  if test "$have_xmlto" = yes; then
14106   HAVE_XMLTO_TRUE=
14107   HAVE_XMLTO_FALSE='#'
14108 else
14109   HAVE_XMLTO_TRUE='#'
14110   HAVE_XMLTO_FALSE=
14118 # Check whether --with-fop was given.
14119 if test "${with_fop+set}" = set; then
14120   withval=$with_fop; use_fop=$withval
14121 else
14122   use_fop=auto
14127 if test "x$use_fop" = x"auto"; then
14128    # Extract the first word of "fop", so it can be a program name with args.
14129 set dummy fop; ac_word=$2
14130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14132 if test "${ac_cv_path_FOP+set}" = set; then
14133   echo $ECHO_N "(cached) $ECHO_C" >&6
14134 else
14135   case $FOP in
14136   [\\/]* | ?:[\\/]*)
14137   ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
14138   ;;
14139   *)
14140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14141 for as_dir in $PATH
14143   IFS=$as_save_IFS
14144   test -z "$as_dir" && as_dir=.
14145   for ac_exec_ext in '' $ac_executable_extensions; do
14146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14147     ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
14148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14149     break 2
14150   fi
14151 done
14152 done
14153 IFS=$as_save_IFS
14155   ;;
14156 esac
14158 FOP=$ac_cv_path_FOP
14159 if test -n "$FOP"; then
14160   { echo "$as_me:$LINENO: result: $FOP" >&5
14161 echo "${ECHO_T}$FOP" >&6; }
14162 else
14163   { echo "$as_me:$LINENO: result: no" >&5
14164 echo "${ECHO_T}no" >&6; }
14168    if test "x$FOP" = "x"; then
14169         { echo "$as_me:$LINENO: WARNING: fop not found - documentation targets will be skipped" >&5
14170 echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
14171         have_fop=no
14172    else
14173         have_fop=yes
14174    fi
14175 elif test "x$use_fop" = x"yes" ; then
14176    # Extract the first word of "fop", so it can be a program name with args.
14177 set dummy fop; ac_word=$2
14178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14180 if test "${ac_cv_path_FOP+set}" = set; then
14181   echo $ECHO_N "(cached) $ECHO_C" >&6
14182 else
14183   case $FOP in
14184   [\\/]* | ?:[\\/]*)
14185   ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
14186   ;;
14187   *)
14188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14189 for as_dir in $PATH
14191   IFS=$as_save_IFS
14192   test -z "$as_dir" && as_dir=.
14193   for ac_exec_ext in '' $ac_executable_extensions; do
14194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14195     ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
14196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14197     break 2
14198   fi
14199 done
14200 done
14201 IFS=$as_save_IFS
14203   ;;
14204 esac
14206 FOP=$ac_cv_path_FOP
14207 if test -n "$FOP"; then
14208   { echo "$as_me:$LINENO: result: $FOP" >&5
14209 echo "${ECHO_T}$FOP" >&6; }
14210 else
14211   { echo "$as_me:$LINENO: result: no" >&5
14212 echo "${ECHO_T}no" >&6; }
14216    if test "x$FOP" = "x"; then
14217         { { echo "$as_me:$LINENO: error: --with-fop=yes specified but fop not found in PATH" >&5
14218 echo "$as_me: error: --with-fop=yes specified but fop not found in PATH" >&2;}
14219    { (exit 1); exit 1; }; }
14220    fi
14221    have_fop=yes
14222 elif test "x$use_fop" = x"no" ; then
14223    if test "x$FOP" != "x"; then
14224       { echo "$as_me:$LINENO: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
14225 echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
14226    fi
14227    have_fop=no
14228 else
14229    { { echo "$as_me:$LINENO: error: --with-fop expects 'yes' or 'no'" >&5
14230 echo "$as_me: error: --with-fop expects 'yes' or 'no'" >&2;}
14231    { (exit 1); exit 1; }; }
14234 # Test for a minimum version of fop, if provided.
14236  if test "$have_fop" = yes; then
14237   HAVE_FOP_TRUE=
14238   HAVE_FOP_FALSE='#'
14239 else
14240   HAVE_FOP_TRUE='#'
14241   HAVE_FOP_FALSE=
14247 # Preserves the interface, should it be implemented later
14251 # Check whether --with-xsltproc was given.
14252 if test "${with_xsltproc+set}" = set; then
14253   withval=$with_xsltproc; use_xsltproc=$withval
14254 else
14255   use_xsltproc=auto
14260 if test "x$use_xsltproc" = x"auto"; then
14261    # Extract the first word of "xsltproc", so it can be a program name with args.
14262 set dummy xsltproc; ac_word=$2
14263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14265 if test "${ac_cv_path_XSLTPROC+set}" = set; then
14266   echo $ECHO_N "(cached) $ECHO_C" >&6
14267 else
14268   case $XSLTPROC in
14269   [\\/]* | ?:[\\/]*)
14270   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
14271   ;;
14272   *)
14273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14274 for as_dir in $PATH
14276   IFS=$as_save_IFS
14277   test -z "$as_dir" && as_dir=.
14278   for ac_exec_ext in '' $ac_executable_extensions; do
14279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14280     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
14281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14282     break 2
14283   fi
14284 done
14285 done
14286 IFS=$as_save_IFS
14288   ;;
14289 esac
14291 XSLTPROC=$ac_cv_path_XSLTPROC
14292 if test -n "$XSLTPROC"; then
14293   { echo "$as_me:$LINENO: result: $XSLTPROC" >&5
14294 echo "${ECHO_T}$XSLTPROC" >&6; }
14295 else
14296   { echo "$as_me:$LINENO: result: no" >&5
14297 echo "${ECHO_T}no" >&6; }
14301    if test "x$XSLTPROC" = "x"; then
14302         { echo "$as_me:$LINENO: WARNING: xsltproc not found - cannot transform XML documents" >&5
14303 echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
14304         have_xsltproc=no
14305    else
14306         have_xsltproc=yes
14307    fi
14308 elif test "x$use_xsltproc" = x"yes" ; then
14309    # Extract the first word of "xsltproc", so it can be a program name with args.
14310 set dummy xsltproc; ac_word=$2
14311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14313 if test "${ac_cv_path_XSLTPROC+set}" = set; then
14314   echo $ECHO_N "(cached) $ECHO_C" >&6
14315 else
14316   case $XSLTPROC in
14317   [\\/]* | ?:[\\/]*)
14318   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
14319   ;;
14320   *)
14321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14322 for as_dir in $PATH
14324   IFS=$as_save_IFS
14325   test -z "$as_dir" && as_dir=.
14326   for ac_exec_ext in '' $ac_executable_extensions; do
14327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14328     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
14329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14330     break 2
14331   fi
14332 done
14333 done
14334 IFS=$as_save_IFS
14336   ;;
14337 esac
14339 XSLTPROC=$ac_cv_path_XSLTPROC
14340 if test -n "$XSLTPROC"; then
14341   { echo "$as_me:$LINENO: result: $XSLTPROC" >&5
14342 echo "${ECHO_T}$XSLTPROC" >&6; }
14343 else
14344   { echo "$as_me:$LINENO: result: no" >&5
14345 echo "${ECHO_T}no" >&6; }
14349    if test "x$XSLTPROC" = "x"; then
14350         { { echo "$as_me:$LINENO: error: --with-xsltproc=yes specified but xsltproc not found in PATH" >&5
14351 echo "$as_me: error: --with-xsltproc=yes specified but xsltproc not found in PATH" >&2;}
14352    { (exit 1); exit 1; }; }
14353    fi
14354    have_xsltproc=yes
14355 elif test "x$use_xsltproc" = x"no" ; then
14356    if test "x$XSLTPROC" != "x"; then
14357       { echo "$as_me:$LINENO: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
14358 echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
14359    fi
14360    have_xsltproc=no
14361 else
14362    { { echo "$as_me:$LINENO: error: --with-xsltproc expects 'yes' or 'no'" >&5
14363 echo "$as_me: error: --with-xsltproc expects 'yes' or 'no'" >&2;}
14364    { (exit 1); exit 1; }; }
14367  if test "$have_xsltproc" = yes; then
14368   HAVE_XSLTPROC_TRUE=
14369   HAVE_XSLTPROC_FALSE='#'
14370 else
14371   HAVE_XSLTPROC_TRUE='#'
14372   HAVE_XSLTPROC_FALSE=
14381 # Check for different types of support on different platforms
14382 case $host_os in
14383     solaris*)
14384         { echo "$as_me:$LINENO: checking for umem_alloc in -lumem" >&5
14385 echo $ECHO_N "checking for umem_alloc in -lumem... $ECHO_C" >&6; }
14386 if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then
14387   echo $ECHO_N "(cached) $ECHO_C" >&6
14388 else
14389   ac_check_lib_save_LIBS=$LIBS
14390 LIBS="-lumem  $LIBS"
14391 cat >conftest.$ac_ext <<_ACEOF
14392 /* confdefs.h.  */
14393 _ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h.  */
14398 /* Override any GCC internal prototype to avoid an error.
14399    Use char because int might match the return type of a GCC
14400    builtin and then its argument prototype would still apply.  */
14401 #ifdef __cplusplus
14402 extern "C"
14403 #endif
14404 char umem_alloc ();
14405 int
14406 main ()
14408 return umem_alloc ();
14409   ;
14410   return 0;
14412 _ACEOF
14413 rm -f conftest.$ac_objext conftest$ac_exeext
14414 if { (ac_try="$ac_link"
14415 case "(($ac_try" in
14416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14417   *) ac_try_echo=$ac_try;;
14418 esac
14419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14420   (eval "$ac_link") 2>conftest.er1
14421   ac_status=$?
14422   grep -v '^ *+' conftest.er1 >conftest.err
14423   rm -f conftest.er1
14424   cat conftest.err >&5
14425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426   (exit $ac_status); } && {
14427          test -z "$ac_c_werror_flag" ||
14428          test ! -s conftest.err
14429        } && test -s conftest$ac_exeext &&
14430        $as_test_x conftest$ac_exeext; then
14431   ac_cv_lib_umem_umem_alloc=yes
14432 else
14433   echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14436         ac_cv_lib_umem_umem_alloc=no
14439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14440       conftest$ac_exeext conftest.$ac_ext
14441 LIBS=$ac_check_lib_save_LIBS
14443 { echo "$as_me:$LINENO: result: $ac_cv_lib_umem_umem_alloc" >&5
14444 echo "${ECHO_T}$ac_cv_lib_umem_umem_alloc" >&6; }
14445 if test $ac_cv_lib_umem_umem_alloc = yes; then
14446   malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default'
14449         ;;
14450     *-gnu*) # GNU libc - Value is used as a single byte bit pattern,
14451         # both directly and inverted, so should not be 0 or 255.
14452         malloc_debug_env='MALLOC_PERTURB_=15'
14453         ;;
14454     darwin*)
14455         malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib'
14456         ;;
14457     *bsd*)
14458         malloc_debug_env='MallocPreScribble=1 MallocScribble=1'
14459         ;;
14460 esac
14462 # User supplied flags override default flags
14463 if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then
14464     malloc_debug_env="$XORG_MALLOC_DEBUG_ENV"
14467 XORG_MALLOC_DEBUG_ENV=$malloc_debug_env
14475 # Check whether --enable-unit-tests was given.
14476 if test "${enable_unit_tests+set}" = set; then
14477   enableval=$enable_unit_tests; enable_unit_tests=$enableval
14478 else
14479   enable_unit_tests=auto
14483  if test "x$enable_unit_tests" != xno; then
14484   ENABLE_UNIT_TESTS_TRUE=
14485   ENABLE_UNIT_TESTS_FALSE='#'
14486 else
14487   ENABLE_UNIT_TESTS_TRUE='#'
14488   ENABLE_UNIT_TESTS_FALSE=
14491 { echo "$as_me:$LINENO: checking whether to build unit test cases" >&5
14492 echo $ECHO_N "checking whether to build unit test cases... $ECHO_C" >&6; }
14493 { echo "$as_me:$LINENO: result: $enable_unit_tests" >&5
14494 echo "${ECHO_T}$enable_unit_tests" >&6; }
14497 { echo "$as_me:$LINENO: checking whether the linker accepts -Wl,-wrap,exit" >&5
14498 echo $ECHO_N "checking whether the linker accepts -Wl,-wrap,exit... $ECHO_C" >&6; }
14499 if test "${xorg_cv_linker_flags__Wl__wrap_exit+set}" = set; then
14500   echo $ECHO_N "(cached) $ECHO_C" >&6
14501 else
14503       ax_save_FLAGS=$LDFLAGS
14504       LDFLAGS="-Wl,-wrap,exit"
14505       cat >conftest.$ac_ext <<_ACEOF
14506 /* confdefs.h.  */
14507 _ACEOF
14508 cat confdefs.h >>conftest.$ac_ext
14509 cat >>conftest.$ac_ext <<_ACEOF
14510 /* end confdefs.h.  */
14511 #include <stdlib.h>
14512                       void __wrap_exit(int status) { return; }
14513 int
14514 main ()
14516 exit(0);
14517   ;
14518   return 0;
14520 _ACEOF
14521 rm -f conftest.$ac_objext conftest$ac_exeext
14522 if { (ac_try="$ac_link"
14523 case "(($ac_try" in
14524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14525   *) ac_try_echo=$ac_try;;
14526 esac
14527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14528   (eval "$ac_link") 2>conftest.er1
14529   ac_status=$?
14530   grep -v '^ *+' conftest.er1 >conftest.err
14531   rm -f conftest.er1
14532   cat conftest.err >&5
14533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534   (exit $ac_status); } && {
14535          test -z "$ac_c_werror_flag" ||
14536          test ! -s conftest.err
14537        } && test -s conftest$ac_exeext &&
14538        $as_test_x conftest$ac_exeext; then
14539   xorg_cv_linker_flags__Wl__wrap_exit=yes
14540 else
14541   echo "$as_me: failed program was:" >&5
14542 sed 's/^/| /' conftest.$ac_ext >&5
14544         xorg_cv_linker_flags__Wl__wrap_exit=no
14547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14548       conftest$ac_exeext conftest.$ac_ext
14549       LDFLAGS=$ax_save_FLAGS
14552 eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__wrap_exit
14553 { echo "$as_me:$LINENO: result: $xorg_check_linker_flags" >&5
14554 echo "${ECHO_T}$xorg_check_linker_flags" >&6; }
14555 if test "x$xorg_check_linker_flags" = xyes; then
14556         have_ld_wrap=yes
14557 else
14558         have_ld_wrap=no
14561 # Not having ld wrap when unit testing has been explicitly requested is an error
14562 if test "x$enable_unit_tests" = x"yes" -a "x" != "xoptional"; then
14563   if test "x$have_ld_wrap" = x"no"; then
14564     { { echo "$as_me:$LINENO: error: --enable-unit-tests=yes specified but ld -wrap support is not available" >&5
14565 echo "$as_me: error: --enable-unit-tests=yes specified but ld -wrap support is not available" >&2;}
14566    { (exit 1); exit 1; }; }
14567   fi
14569  if test "$have_ld_wrap" = yes; then
14570   HAVE_LD_WRAP_TRUE=
14571   HAVE_LD_WRAP_FALSE='#'
14572 else
14573   HAVE_LD_WRAP_TRUE='#'
14574   HAVE_LD_WRAP_FALSE=
14592 ac_config_headers="$ac_config_headers include/do-not-use-config.h"
14594 ac_config_headers="$ac_config_headers include/xorg-server.h"
14596 ac_config_headers="$ac_config_headers include/dix-config.h"
14598 ac_config_headers="$ac_config_headers include/xorg-config.h"
14600 ac_config_headers="$ac_config_headers include/xkb-config.h"
14602 ac_config_headers="$ac_config_headers include/xwin-config.h"
14604 ac_config_headers="$ac_config_headers include/kdrive-config.h"
14606 ac_config_headers="$ac_config_headers include/version-config.h"
14609 # By default we simply use the C compiler to build assembly code.
14611 test "${CCAS+set}" = set || CCAS=$CC
14612 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
14616 depcc="$CCAS"   am_compiler_list=
14618 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
14619 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
14620 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
14621   echo $ECHO_N "(cached) $ECHO_C" >&6
14622 else
14623   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14624   # We make a subdir and do the tests there.  Otherwise we can end up
14625   # making bogus files that we don't know about and never remove.  For
14626   # instance it was reported that on HP-UX the gcc test will end up
14627   # making a dummy file named `D' -- because `-MD' means `put the output
14628   # in D'.
14629   mkdir conftest.dir
14630   # Copy depcomp to subdir because otherwise we won't find it if we're
14631   # using a relative directory.
14632   cp "$am_depcomp" conftest.dir
14633   cd conftest.dir
14634   # We will build objects and dependencies in a subdirectory because
14635   # it helps to detect inapplicable dependency modes.  For instance
14636   # both Tru64's cc and ICC support -MD to output dependencies as a
14637   # side effect of compilation, but ICC will put the dependencies in
14638   # the current directory while Tru64 will put them in the object
14639   # directory.
14640   mkdir sub
14642   am_cv_CCAS_dependencies_compiler_type=none
14643   if test "$am_compiler_list" = ""; then
14644      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14645   fi
14646   for depmode in $am_compiler_list; do
14647     # Setup a source with many dependencies, because some compilers
14648     # like to wrap large dependency lists on column 80 (with \), and
14649     # we should not choose a depcomp mode which is confused by this.
14650     #
14651     # We need to recreate these files for each test, as the compiler may
14652     # overwrite some of them when testing with obscure command lines.
14653     # This happens at least with the AIX C compiler.
14654     : > sub/conftest.c
14655     for i in 1 2 3 4 5 6; do
14656       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14657       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14658       # Solaris 8's {/usr,}/bin/sh.
14659       touch sub/conftst$i.h
14660     done
14661     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14663     case $depmode in
14664     nosideeffect)
14665       # after this tag, mechanisms are not by side-effect, so they'll
14666       # only be used when explicitly requested
14667       if test "x$enable_dependency_tracking" = xyes; then
14668         continue
14669       else
14670         break
14671       fi
14672       ;;
14673     none) break ;;
14674     esac
14675     # We check with `-c' and `-o' for the sake of the "dashmstdout"
14676     # mode.  It turns out that the SunPro C++ compiler does not properly
14677     # handle `-M -o', and we need to detect this.
14678     if depmode=$depmode \
14679        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
14680        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14681        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
14682          >/dev/null 2>conftest.err &&
14683        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14684        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14685        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
14686        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14687       # icc doesn't choke on unknown options, it will just issue warnings
14688       # or remarks (even with -Werror).  So we grep stderr for any message
14689       # that says an option was ignored or not supported.
14690       # When given -MP, icc 7.0 and 7.1 complain thusly:
14691       #   icc: Command line warning: ignoring option '-M'; no argument required
14692       # The diagnosis changed in icc 8.0:
14693       #   icc: Command line remark: option '-MP' not supported
14694       if (grep 'ignoring option' conftest.err ||
14695           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14696         am_cv_CCAS_dependencies_compiler_type=$depmode
14697         break
14698       fi
14699     fi
14700   done
14702   cd ..
14703   rm -rf conftest.dir
14704 else
14705   am_cv_CCAS_dependencies_compiler_type=none
14709 { echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
14710 echo "${ECHO_T}$am_cv_CCAS_dependencies_compiler_type" >&6; }
14711 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
14713  if
14714   test "x$enable_dependency_tracking" != xno \
14715   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
14716   am__fastdepCCAS_TRUE=
14717   am__fastdepCCAS_FALSE='#'
14718 else
14719   am__fastdepCCAS_TRUE='#'
14720   am__fastdepCCAS_FALSE=
14724 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
14725 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
14726 LN_S=$as_ln_s
14727 if test "$LN_S" = "ln -s"; then
14728   { echo "$as_me:$LINENO: result: yes" >&5
14729 echo "${ECHO_T}yes" >&6; }
14730 else
14731   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14732 echo "${ECHO_T}no, using $LN_S" >&6; }
14735 enable_win32_dll=yes
14737 case $host in
14738 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
14739   if test -n "$ac_tool_prefix"; then
14740   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
14741 set dummy ${ac_tool_prefix}as; ac_word=$2
14742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14744 if test "${ac_cv_prog_AS+set}" = set; then
14745   echo $ECHO_N "(cached) $ECHO_C" >&6
14746 else
14747   if test -n "$AS"; then
14748   ac_cv_prog_AS="$AS" # Let the user override the test.
14749 else
14750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14751 for as_dir in $PATH
14753   IFS=$as_save_IFS
14754   test -z "$as_dir" && as_dir=.
14755   for ac_exec_ext in '' $ac_executable_extensions; do
14756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14757     ac_cv_prog_AS="${ac_tool_prefix}as"
14758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14759     break 2
14760   fi
14761 done
14762 done
14763 IFS=$as_save_IFS
14767 AS=$ac_cv_prog_AS
14768 if test -n "$AS"; then
14769   { echo "$as_me:$LINENO: result: $AS" >&5
14770 echo "${ECHO_T}$AS" >&6; }
14771 else
14772   { echo "$as_me:$LINENO: result: no" >&5
14773 echo "${ECHO_T}no" >&6; }
14778 if test -z "$ac_cv_prog_AS"; then
14779   ac_ct_AS=$AS
14780   # Extract the first word of "as", so it can be a program name with args.
14781 set dummy as; ac_word=$2
14782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14784 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
14785   echo $ECHO_N "(cached) $ECHO_C" >&6
14786 else
14787   if test -n "$ac_ct_AS"; then
14788   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
14789 else
14790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14791 for as_dir in $PATH
14793   IFS=$as_save_IFS
14794   test -z "$as_dir" && as_dir=.
14795   for ac_exec_ext in '' $ac_executable_extensions; do
14796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14797     ac_cv_prog_ac_ct_AS="as"
14798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14799     break 2
14800   fi
14801 done
14802 done
14803 IFS=$as_save_IFS
14807 ac_ct_AS=$ac_cv_prog_ac_ct_AS
14808 if test -n "$ac_ct_AS"; then
14809   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
14810 echo "${ECHO_T}$ac_ct_AS" >&6; }
14811 else
14812   { echo "$as_me:$LINENO: result: no" >&5
14813 echo "${ECHO_T}no" >&6; }
14816   if test "x$ac_ct_AS" = x; then
14817     AS="false"
14818   else
14819     case $cross_compiling:$ac_tool_warned in
14820 yes:)
14821 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14822 whose name does not start with the host triplet.  If you think this
14823 configuration is useful to you, please write to autoconf@gnu.org." >&5
14824 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14825 whose name does not start with the host triplet.  If you think this
14826 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14827 ac_tool_warned=yes ;;
14828 esac
14829     AS=$ac_ct_AS
14830   fi
14831 else
14832   AS="$ac_cv_prog_AS"
14835   if test -n "$ac_tool_prefix"; then
14836   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14837 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14840 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14841   echo $ECHO_N "(cached) $ECHO_C" >&6
14842 else
14843   if test -n "$DLLTOOL"; then
14844   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14845 else
14846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14847 for as_dir in $PATH
14849   IFS=$as_save_IFS
14850   test -z "$as_dir" && as_dir=.
14851   for ac_exec_ext in '' $ac_executable_extensions; do
14852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14853     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14855     break 2
14856   fi
14857 done
14858 done
14859 IFS=$as_save_IFS
14863 DLLTOOL=$ac_cv_prog_DLLTOOL
14864 if test -n "$DLLTOOL"; then
14865   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14866 echo "${ECHO_T}$DLLTOOL" >&6; }
14867 else
14868   { echo "$as_me:$LINENO: result: no" >&5
14869 echo "${ECHO_T}no" >&6; }
14874 if test -z "$ac_cv_prog_DLLTOOL"; then
14875   ac_ct_DLLTOOL=$DLLTOOL
14876   # Extract the first word of "dlltool", so it can be a program name with args.
14877 set dummy dlltool; ac_word=$2
14878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14880 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
14881   echo $ECHO_N "(cached) $ECHO_C" >&6
14882 else
14883   if test -n "$ac_ct_DLLTOOL"; then
14884   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14885 else
14886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14887 for as_dir in $PATH
14889   IFS=$as_save_IFS
14890   test -z "$as_dir" && as_dir=.
14891   for ac_exec_ext in '' $ac_executable_extensions; do
14892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14893     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14895     break 2
14896   fi
14897 done
14898 done
14899 IFS=$as_save_IFS
14903 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14904 if test -n "$ac_ct_DLLTOOL"; then
14905   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
14906 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
14907 else
14908   { echo "$as_me:$LINENO: result: no" >&5
14909 echo "${ECHO_T}no" >&6; }
14912   if test "x$ac_ct_DLLTOOL" = x; then
14913     DLLTOOL="false"
14914   else
14915     case $cross_compiling:$ac_tool_warned in
14916 yes:)
14917 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14918 whose name does not start with the host triplet.  If you think this
14919 configuration is useful to you, please write to autoconf@gnu.org." >&5
14920 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14921 whose name does not start with the host triplet.  If you think this
14922 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14923 ac_tool_warned=yes ;;
14924 esac
14925     DLLTOOL=$ac_ct_DLLTOOL
14926   fi
14927 else
14928   DLLTOOL="$ac_cv_prog_DLLTOOL"
14931   if test -n "$ac_tool_prefix"; then
14932   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14933 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14936 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
14937   echo $ECHO_N "(cached) $ECHO_C" >&6
14938 else
14939   if test -n "$OBJDUMP"; then
14940   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14941 else
14942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14943 for as_dir in $PATH
14945   IFS=$as_save_IFS
14946   test -z "$as_dir" && as_dir=.
14947   for ac_exec_ext in '' $ac_executable_extensions; do
14948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14949     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14951     break 2
14952   fi
14953 done
14954 done
14955 IFS=$as_save_IFS
14959 OBJDUMP=$ac_cv_prog_OBJDUMP
14960 if test -n "$OBJDUMP"; then
14961   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
14962 echo "${ECHO_T}$OBJDUMP" >&6; }
14963 else
14964   { echo "$as_me:$LINENO: result: no" >&5
14965 echo "${ECHO_T}no" >&6; }
14970 if test -z "$ac_cv_prog_OBJDUMP"; then
14971   ac_ct_OBJDUMP=$OBJDUMP
14972   # Extract the first word of "objdump", so it can be a program name with args.
14973 set dummy objdump; ac_word=$2
14974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14976 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
14977   echo $ECHO_N "(cached) $ECHO_C" >&6
14978 else
14979   if test -n "$ac_ct_OBJDUMP"; then
14980   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14981 else
14982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14983 for as_dir in $PATH
14985   IFS=$as_save_IFS
14986   test -z "$as_dir" && as_dir=.
14987   for ac_exec_ext in '' $ac_executable_extensions; do
14988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14989     ac_cv_prog_ac_ct_OBJDUMP="objdump"
14990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14991     break 2
14992   fi
14993 done
14994 done
14995 IFS=$as_save_IFS
14999 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
15000 if test -n "$ac_ct_OBJDUMP"; then
15001   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
15002 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
15003 else
15004   { echo "$as_me:$LINENO: result: no" >&5
15005 echo "${ECHO_T}no" >&6; }
15008   if test "x$ac_ct_OBJDUMP" = x; then
15009     OBJDUMP="false"
15010   else
15011     case $cross_compiling:$ac_tool_warned in
15012 yes:)
15013 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15014 whose name does not start with the host triplet.  If you think this
15015 configuration is useful to you, please write to autoconf@gnu.org." >&5
15016 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15017 whose name does not start with the host triplet.  If you think this
15018 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15019 ac_tool_warned=yes ;;
15020 esac
15021     OBJDUMP=$ac_ct_OBJDUMP
15022   fi
15023 else
15024   OBJDUMP="$ac_cv_prog_OBJDUMP"
15027   ;;
15028 esac
15030 test -z "$AS" && AS=as
15036 test -z "$DLLTOOL" && DLLTOOL=dlltool
15042 test -z "$OBJDUMP" && OBJDUMP=objdump
15050 # Check whether --enable-static was given.
15051 if test "${enable_static+set}" = set; then
15052   enableval=$enable_static; p=${PACKAGE-default}
15053     case $enableval in
15054     yes) enable_static=yes ;;
15055     no) enable_static=no ;;
15056     *)
15057      enable_static=no
15058       # Look at the argument we got.  We use all the common list separators.
15059       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15060       for pkg in $enableval; do
15061         IFS="$lt_save_ifs"
15062         if test "X$pkg" = "X$p"; then
15063           enable_static=yes
15064         fi
15065       done
15066       IFS="$lt_save_ifs"
15067       ;;
15068     esac
15069 else
15070   enable_static=no
15081 case `pwd` in
15082   *\ * | *\     *)
15083     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
15084 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
15085 esac
15089 macro_version='2.2.10'
15090 macro_revision='1.3175'
15104 ltmain="$ac_aux_dir/ltmain.sh"
15106 # Backslashify metacharacters that are still active within
15107 # double-quoted strings.
15108 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
15110 # Same as above, but do not quote variable references.
15111 double_quote_subst='s/\(["`\\]\)/\\\1/g'
15113 # Sed substitution to delay expansion of an escaped shell variable in a
15114 # double_quote_subst'ed string.
15115 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
15117 # Sed substitution to delay expansion of an escaped single quote.
15118 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
15120 # Sed substitution to avoid accidental globbing in evaled expressions
15121 no_glob_subst='s/\*/\\\*/g'
15123 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15124 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
15125 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
15127 { echo "$as_me:$LINENO: checking how to print strings" >&5
15128 echo $ECHO_N "checking how to print strings... $ECHO_C" >&6; }
15129 # Test print first, because it will be a builtin if present.
15130 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
15131    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
15132   ECHO='print -r --'
15133 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
15134   ECHO='printf %s\n'
15135 else
15136   # Use this function as a fallback that always works.
15137   func_fallback_echo ()
15138   {
15139     eval 'cat <<_LTECHO_EOF
15141 _LTECHO_EOF'
15142   }
15143   ECHO='func_fallback_echo'
15146 # func_echo_all arg...
15147 # Invoke $ECHO with all args, space-separated.
15148 func_echo_all ()
15150     $ECHO ""
15153 case "$ECHO" in
15154   printf*) { echo "$as_me:$LINENO: result: printf" >&5
15155 echo "${ECHO_T}printf" >&6; } ;;
15156   print*) { echo "$as_me:$LINENO: result: print -r" >&5
15157 echo "${ECHO_T}print -r" >&6; } ;;
15158   *) { echo "$as_me:$LINENO: result: cat" >&5
15159 echo "${ECHO_T}cat" >&6; } ;;
15160 esac
15175 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
15176 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
15177 if test "${ac_cv_path_SED+set}" = set; then
15178   echo $ECHO_N "(cached) $ECHO_C" >&6
15179 else
15180             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
15181      for ac_i in 1 2 3 4 5 6 7; do
15182        ac_script="$ac_script$as_nl$ac_script"
15183      done
15184      echo "$ac_script" | sed 99q >conftest.sed
15185      $as_unset ac_script || ac_script=
15186      # Extract the first word of "sed gsed" to use in msg output
15187 if test -z "$SED"; then
15188 set dummy sed gsed; ac_prog_name=$2
15189 if test "${ac_cv_path_SED+set}" = set; then
15190   echo $ECHO_N "(cached) $ECHO_C" >&6
15191 else
15192   ac_path_SED_found=false
15193 # Loop through the user's path and test for each of PROGNAME-LIST
15194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15195 for as_dir in $PATH
15197   IFS=$as_save_IFS
15198   test -z "$as_dir" && as_dir=.
15199   for ac_prog in sed gsed; do
15200   for ac_exec_ext in '' $ac_executable_extensions; do
15201     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
15202     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
15203     # Check for GNU ac_path_SED and select it if it is found.
15204   # Check for GNU $ac_path_SED
15205 case `"$ac_path_SED" --version 2>&1` in
15206 *GNU*)
15207   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
15209   ac_count=0
15210   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
15211   while :
15212   do
15213     cat "conftest.in" "conftest.in" >"conftest.tmp"
15214     mv "conftest.tmp" "conftest.in"
15215     cp "conftest.in" "conftest.nl"
15216     echo '' >> "conftest.nl"
15217     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
15218     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15219     ac_count=`expr $ac_count + 1`
15220     if test $ac_count -gt ${ac_path_SED_max-0}; then
15221       # Best one so far, save it but keep looking for a better one
15222       ac_cv_path_SED="$ac_path_SED"
15223       ac_path_SED_max=$ac_count
15224     fi
15225     # 10*(2^10) chars as input seems more than enough
15226     test $ac_count -gt 10 && break
15227   done
15228   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15229 esac
15232     $ac_path_SED_found && break 3
15233   done
15234 done
15236 done
15237 IFS=$as_save_IFS
15242 SED="$ac_cv_path_SED"
15243 if test -z "$SED"; then
15244   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
15245 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
15246    { (exit 1); exit 1; }; }
15249 else
15250   ac_cv_path_SED=$SED
15254 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
15255 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
15256  SED="$ac_cv_path_SED"
15257   rm -f conftest.sed
15259 test -z "$SED" && SED=sed
15260 Xsed="$SED -e 1s/^X//"
15272 { echo "$as_me:$LINENO: checking for fgrep" >&5
15273 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
15274 if test "${ac_cv_path_FGREP+set}" = set; then
15275   echo $ECHO_N "(cached) $ECHO_C" >&6
15276 else
15277   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
15278    then ac_cv_path_FGREP="$GREP -F"
15279    else
15280      # Extract the first word of "fgrep" to use in msg output
15281 if test -z "$FGREP"; then
15282 set dummy fgrep; ac_prog_name=$2
15283 if test "${ac_cv_path_FGREP+set}" = set; then
15284   echo $ECHO_N "(cached) $ECHO_C" >&6
15285 else
15286   ac_path_FGREP_found=false
15287 # Loop through the user's path and test for each of PROGNAME-LIST
15288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15289 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15291   IFS=$as_save_IFS
15292   test -z "$as_dir" && as_dir=.
15293   for ac_prog in fgrep; do
15294   for ac_exec_ext in '' $ac_executable_extensions; do
15295     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
15296     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
15297     # Check for GNU ac_path_FGREP and select it if it is found.
15298   # Check for GNU $ac_path_FGREP
15299 case `"$ac_path_FGREP" --version 2>&1` in
15300 *GNU*)
15301   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
15303   ac_count=0
15304   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
15305   while :
15306   do
15307     cat "conftest.in" "conftest.in" >"conftest.tmp"
15308     mv "conftest.tmp" "conftest.in"
15309     cp "conftest.in" "conftest.nl"
15310     echo 'FGREP' >> "conftest.nl"
15311     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
15312     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15313     ac_count=`expr $ac_count + 1`
15314     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
15315       # Best one so far, save it but keep looking for a better one
15316       ac_cv_path_FGREP="$ac_path_FGREP"
15317       ac_path_FGREP_max=$ac_count
15318     fi
15319     # 10*(2^10) chars as input seems more than enough
15320     test $ac_count -gt 10 && break
15321   done
15322   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15323 esac
15326     $ac_path_FGREP_found && break 3
15327   done
15328 done
15330 done
15331 IFS=$as_save_IFS
15336 FGREP="$ac_cv_path_FGREP"
15337 if test -z "$FGREP"; then
15338   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
15339 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
15340    { (exit 1); exit 1; }; }
15343 else
15344   ac_cv_path_FGREP=$FGREP
15348    fi
15350 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
15351 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
15352  FGREP="$ac_cv_path_FGREP"
15355 test -z "$GREP" && GREP=grep
15375 # Check whether --with-gnu-ld was given.
15376 if test "${with_gnu_ld+set}" = set; then
15377   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15378 else
15379   with_gnu_ld=no
15382 ac_prog=ld
15383 if test "$GCC" = yes; then
15384   # Check if gcc -print-prog-name=ld gives a path.
15385   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15386 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
15387   case $host in
15388   *-*-mingw*)
15389     # gcc leaves a trailing carriage return which upsets mingw
15390     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15391   *)
15392     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15393   esac
15394   case $ac_prog in
15395     # Accept absolute paths.
15396     [\\/]* | ?:[\\/]*)
15397       re_direlt='/[^/][^/]*/\.\./'
15398       # Canonicalize the pathname of ld
15399       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15400       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15401         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15402       done
15403       test -z "$LD" && LD="$ac_prog"
15404       ;;
15405   "")
15406     # If it fails, then pretend we aren't using GCC.
15407     ac_prog=ld
15408     ;;
15409   *)
15410     # If it is relative, then search for the first ld in PATH.
15411     with_gnu_ld=unknown
15412     ;;
15413   esac
15414 elif test "$with_gnu_ld" = yes; then
15415   { echo "$as_me:$LINENO: checking for GNU ld" >&5
15416 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
15417 else
15418   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15419 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
15421 if test "${lt_cv_path_LD+set}" = set; then
15422   echo $ECHO_N "(cached) $ECHO_C" >&6
15423 else
15424   if test -z "$LD"; then
15425   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15426   for ac_dir in $PATH; do
15427     IFS="$lt_save_ifs"
15428     test -z "$ac_dir" && ac_dir=.
15429     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15430       lt_cv_path_LD="$ac_dir/$ac_prog"
15431       # Check to see if the program is GNU ld.  I'd rather use --version,
15432       # but apparently some variants of GNU ld only accept -v.
15433       # Break only if it was the GNU/non-GNU ld that we prefer.
15434       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15435       *GNU* | *'with BFD'*)
15436         test "$with_gnu_ld" != no && break
15437         ;;
15438       *)
15439         test "$with_gnu_ld" != yes && break
15440         ;;
15441       esac
15442     fi
15443   done
15444   IFS="$lt_save_ifs"
15445 else
15446   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15450 LD="$lt_cv_path_LD"
15451 if test -n "$LD"; then
15452   { echo "$as_me:$LINENO: result: $LD" >&5
15453 echo "${ECHO_T}$LD" >&6; }
15454 else
15455   { echo "$as_me:$LINENO: result: no" >&5
15456 echo "${ECHO_T}no" >&6; }
15458 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15459 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15460    { (exit 1); exit 1; }; }
15461 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15462 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
15463 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15464   echo $ECHO_N "(cached) $ECHO_C" >&6
15465 else
15466   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15467 case `$LD -v 2>&1 </dev/null` in
15468 *GNU* | *'with BFD'*)
15469   lt_cv_prog_gnu_ld=yes
15470   ;;
15472   lt_cv_prog_gnu_ld=no
15473   ;;
15474 esac
15476 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15477 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
15478 with_gnu_ld=$lt_cv_prog_gnu_ld
15488 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
15489 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
15490 if test "${lt_cv_path_NM+set}" = set; then
15491   echo $ECHO_N "(cached) $ECHO_C" >&6
15492 else
15493   if test -n "$NM"; then
15494   # Let the user override the test.
15495   lt_cv_path_NM="$NM"
15496 else
15497   lt_nm_to_check="${ac_tool_prefix}nm"
15498   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
15499     lt_nm_to_check="$lt_nm_to_check nm"
15500   fi
15501   for lt_tmp_nm in $lt_nm_to_check; do
15502     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15503     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
15504       IFS="$lt_save_ifs"
15505       test -z "$ac_dir" && ac_dir=.
15506       tmp_nm="$ac_dir/$lt_tmp_nm"
15507       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
15508         # Check to see if the nm accepts a BSD-compat flag.
15509         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
15510         #   nm: unknown option "B" ignored
15511         # Tru64's nm complains that /dev/null is an invalid object file
15512         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
15513         */dev/null* | *'Invalid file or object type'*)
15514           lt_cv_path_NM="$tmp_nm -B"
15515           break
15516           ;;
15517         *)
15518           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
15519           */dev/null*)
15520             lt_cv_path_NM="$tmp_nm -p"
15521             break
15522             ;;
15523           *)
15524             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
15525             continue # so that we can try to find one that supports BSD flags
15526             ;;
15527           esac
15528           ;;
15529         esac
15530       fi
15531     done
15532     IFS="$lt_save_ifs"
15533   done
15534   : ${lt_cv_path_NM=no}
15537 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
15538 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
15539 if test "$lt_cv_path_NM" != "no"; then
15540   NM="$lt_cv_path_NM"
15541 else
15542   # Didn't find any BSD compatible name lister, look for dumpbin.
15543   if test -n "$DUMPBIN"; then :
15544     # Let the user override the test.
15545   else
15546     if test -n "$ac_tool_prefix"; then
15547   for ac_prog in dumpbin "link -dump"
15548   do
15549     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15550 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15553 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
15554   echo $ECHO_N "(cached) $ECHO_C" >&6
15555 else
15556   if test -n "$DUMPBIN"; then
15557   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
15558 else
15559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15560 for as_dir in $PATH
15562   IFS=$as_save_IFS
15563   test -z "$as_dir" && as_dir=.
15564   for ac_exec_ext in '' $ac_executable_extensions; do
15565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15566     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
15567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15568     break 2
15569   fi
15570 done
15571 done
15572 IFS=$as_save_IFS
15576 DUMPBIN=$ac_cv_prog_DUMPBIN
15577 if test -n "$DUMPBIN"; then
15578   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
15579 echo "${ECHO_T}$DUMPBIN" >&6; }
15580 else
15581   { echo "$as_me:$LINENO: result: no" >&5
15582 echo "${ECHO_T}no" >&6; }
15586     test -n "$DUMPBIN" && break
15587   done
15589 if test -z "$DUMPBIN"; then
15590   ac_ct_DUMPBIN=$DUMPBIN
15591   for ac_prog in dumpbin "link -dump"
15593   # Extract the first word of "$ac_prog", so it can be a program name with args.
15594 set dummy $ac_prog; ac_word=$2
15595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15597 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
15598   echo $ECHO_N "(cached) $ECHO_C" >&6
15599 else
15600   if test -n "$ac_ct_DUMPBIN"; then
15601   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
15602 else
15603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15604 for as_dir in $PATH
15606   IFS=$as_save_IFS
15607   test -z "$as_dir" && as_dir=.
15608   for ac_exec_ext in '' $ac_executable_extensions; do
15609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15610     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
15611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15612     break 2
15613   fi
15614 done
15615 done
15616 IFS=$as_save_IFS
15620 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
15621 if test -n "$ac_ct_DUMPBIN"; then
15622   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
15623 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
15624 else
15625   { echo "$as_me:$LINENO: result: no" >&5
15626 echo "${ECHO_T}no" >&6; }
15630   test -n "$ac_ct_DUMPBIN" && break
15631 done
15633   if test "x$ac_ct_DUMPBIN" = x; then
15634     DUMPBIN=":"
15635   else
15636     case $cross_compiling:$ac_tool_warned in
15637 yes:)
15638 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15639 whose name does not start with the host triplet.  If you think this
15640 configuration is useful to you, please write to autoconf@gnu.org." >&5
15641 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15642 whose name does not start with the host triplet.  If you think this
15643 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15644 ac_tool_warned=yes ;;
15645 esac
15646     DUMPBIN=$ac_ct_DUMPBIN
15647   fi
15650     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
15651     *COFF*)
15652       DUMPBIN="$DUMPBIN -symbols"
15653       ;;
15654     *)
15655       DUMPBIN=:
15656       ;;
15657     esac
15658   fi
15660   if test "$DUMPBIN" != ":"; then
15661     NM="$DUMPBIN"
15662   fi
15664 test -z "$NM" && NM=nm
15671 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
15672 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
15673 if test "${lt_cv_nm_interface+set}" = set; then
15674   echo $ECHO_N "(cached) $ECHO_C" >&6
15675 else
15676   lt_cv_nm_interface="BSD nm"
15677   echo "int some_variable = 0;" > conftest.$ac_ext
15678   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
15679   (eval "$ac_compile" 2>conftest.err)
15680   cat conftest.err >&5
15681   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
15682   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
15683   cat conftest.err >&5
15684   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
15685   cat conftest.out >&5
15686   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
15687     lt_cv_nm_interface="MS dumpbin"
15688   fi
15689   rm -r -f conftest*
15691 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
15692 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
15694 # find the maximum length of command line arguments
15695 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
15696 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
15697 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
15698   echo $ECHO_N "(cached) $ECHO_C" >&6
15699 else
15700     i=0
15701   teststring="ABCD"
15703   case $build_os in
15704   msdosdjgpp*)
15705     # On DJGPP, this test can blow up pretty badly due to problems in libc
15706     # (any single argument exceeding 2000 bytes causes a buffer overrun
15707     # during glob expansion).  Even if it were fixed, the result of this
15708     # check would be larger than it should be.
15709     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
15710     ;;
15712   gnu*)
15713     # Under GNU Hurd, this test is not required because there is
15714     # no limit to the length of command line arguments.
15715     # Libtool will interpret -1 as no limit whatsoever
15716     lt_cv_sys_max_cmd_len=-1;
15717     ;;
15719   cygwin* | mingw* | cegcc*)
15720     # On Win9x/ME, this test blows up -- it succeeds, but takes
15721     # about 5 minutes as the teststring grows exponentially.
15722     # Worse, since 9x/ME are not pre-emptively multitasking,
15723     # you end up with a "frozen" computer, even though with patience
15724     # the test eventually succeeds (with a max line length of 256k).
15725     # Instead, let's just punt: use the minimum linelength reported by
15726     # all of the supported platforms: 8192 (on NT/2K/XP).
15727     lt_cv_sys_max_cmd_len=8192;
15728     ;;
15730   mint*)
15731     # On MiNT this can take a long time and run out of memory.
15732     lt_cv_sys_max_cmd_len=8192;
15733     ;;
15735   amigaos*)
15736     # On AmigaOS with pdksh, this test takes hours, literally.
15737     # So we just punt and use a minimum line length of 8192.
15738     lt_cv_sys_max_cmd_len=8192;
15739     ;;
15741   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
15742     # This has been around since 386BSD, at least.  Likely further.
15743     if test -x /sbin/sysctl; then
15744       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
15745     elif test -x /usr/sbin/sysctl; then
15746       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
15747     else
15748       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
15749     fi
15750     # And add a safety zone
15751     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15752     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15753     ;;
15755   interix*)
15756     # We know the value 262144 and hardcode it with a safety zone (like BSD)
15757     lt_cv_sys_max_cmd_len=196608
15758     ;;
15760   osf*)
15761     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
15762     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
15763     # nice to cause kernel panics so lets avoid the loop below.
15764     # First set a reasonable default.
15765     lt_cv_sys_max_cmd_len=16384
15766     #
15767     if test -x /sbin/sysconfig; then
15768       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
15769         *1*) lt_cv_sys_max_cmd_len=-1 ;;
15770       esac
15771     fi
15772     ;;
15773   sco3.2v5*)
15774     lt_cv_sys_max_cmd_len=102400
15775     ;;
15776   sysv5* | sco5v6* | sysv4.2uw2*)
15777     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
15778     if test -n "$kargmax"; then
15779       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
15780     else
15781       lt_cv_sys_max_cmd_len=32768
15782     fi
15783     ;;
15784   *)
15785     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
15786     if test -n "$lt_cv_sys_max_cmd_len"; then
15787       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15788       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15789     else
15790       # Make teststring a little bigger before we do anything with it.
15791       # a 1K string should be a reasonable start.
15792       for i in 1 2 3 4 5 6 7 8 ; do
15793         teststring=$teststring$teststring
15794       done
15795       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
15796       # If test is not a shell built-in, we'll probably end up computing a
15797       # maximum length that is only half of the actual maximum length, but
15798       # we can't tell.
15799       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
15800                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
15801               test $i != 17 # 1/2 MB should be enough
15802       do
15803         i=`expr $i + 1`
15804         teststring=$teststring$teststring
15805       done
15806       # Only check the string length outside the loop.
15807       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
15808       teststring=
15809       # Add a significant safety factor because C++ compilers can tack on
15810       # massive amounts of additional arguments before passing them to the
15811       # linker.  It appears as though 1/2 is a usable value.
15812       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
15813     fi
15814     ;;
15815   esac
15819 if test -n $lt_cv_sys_max_cmd_len ; then
15820   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
15821 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
15822 else
15823   { echo "$as_me:$LINENO: result: none" >&5
15824 echo "${ECHO_T}none" >&6; }
15826 max_cmd_len=$lt_cv_sys_max_cmd_len
15833 : ${CP="cp -f"}
15834 : ${MV="mv -f"}
15835 : ${RM="rm -f"}
15837 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
15838 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
15839 # Try some XSI features
15840 xsi_shell=no
15841 ( _lt_dummy="a/b/c"
15842   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
15843       = c,a/b,, \
15844     && eval 'test $(( 1 + 1 )) -eq 2 \
15845     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
15846   && xsi_shell=yes
15847 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
15848 echo "${ECHO_T}$xsi_shell" >&6; }
15851 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
15852 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
15853 lt_shell_append=no
15854 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
15855     >/dev/null 2>&1 \
15856   && lt_shell_append=yes
15857 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
15858 echo "${ECHO_T}$lt_shell_append" >&6; }
15861 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15862   lt_unset=unset
15863 else
15864   lt_unset=false
15871 # test EBCDIC or ASCII
15872 case `echo X|tr X '\101'` in
15873  A) # ASCII based system
15874     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
15875   lt_SP2NL='tr \040 \012'
15876   lt_NL2SP='tr \015\012 \040\040'
15877   ;;
15878  *) # EBCDIC based system
15879   lt_SP2NL='tr \100 \n'
15880   lt_NL2SP='tr \r\n \100\100'
15881   ;;
15882 esac
15892 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
15893 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
15894 if test "${lt_cv_ld_reload_flag+set}" = set; then
15895   echo $ECHO_N "(cached) $ECHO_C" >&6
15896 else
15897   lt_cv_ld_reload_flag='-r'
15899 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
15900 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
15901 reload_flag=$lt_cv_ld_reload_flag
15902 case $reload_flag in
15903 "" | " "*) ;;
15904 *) reload_flag=" $reload_flag" ;;
15905 esac
15906 reload_cmds='$LD$reload_flag -o $output$reload_objs'
15907 case $host_os in
15908   darwin*)
15909     if test "$GCC" = yes; then
15910       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
15911     else
15912       reload_cmds='$LD$reload_flag -o $output$reload_objs'
15913     fi
15914     ;;
15915 esac
15925 if test -n "$ac_tool_prefix"; then
15926   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
15927 set dummy ${ac_tool_prefix}objdump; ac_word=$2
15928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15930 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
15931   echo $ECHO_N "(cached) $ECHO_C" >&6
15932 else
15933   if test -n "$OBJDUMP"; then
15934   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
15935 else
15936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15937 for as_dir in $PATH
15939   IFS=$as_save_IFS
15940   test -z "$as_dir" && as_dir=.
15941   for ac_exec_ext in '' $ac_executable_extensions; do
15942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15943     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
15944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15945     break 2
15946   fi
15947 done
15948 done
15949 IFS=$as_save_IFS
15953 OBJDUMP=$ac_cv_prog_OBJDUMP
15954 if test -n "$OBJDUMP"; then
15955   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
15956 echo "${ECHO_T}$OBJDUMP" >&6; }
15957 else
15958   { echo "$as_me:$LINENO: result: no" >&5
15959 echo "${ECHO_T}no" >&6; }
15964 if test -z "$ac_cv_prog_OBJDUMP"; then
15965   ac_ct_OBJDUMP=$OBJDUMP
15966   # Extract the first word of "objdump", so it can be a program name with args.
15967 set dummy objdump; ac_word=$2
15968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15970 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
15971   echo $ECHO_N "(cached) $ECHO_C" >&6
15972 else
15973   if test -n "$ac_ct_OBJDUMP"; then
15974   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
15975 else
15976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15977 for as_dir in $PATH
15979   IFS=$as_save_IFS
15980   test -z "$as_dir" && as_dir=.
15981   for ac_exec_ext in '' $ac_executable_extensions; do
15982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15983     ac_cv_prog_ac_ct_OBJDUMP="objdump"
15984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15985     break 2
15986   fi
15987 done
15988 done
15989 IFS=$as_save_IFS
15993 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
15994 if test -n "$ac_ct_OBJDUMP"; then
15995   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
15996 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
15997 else
15998   { echo "$as_me:$LINENO: result: no" >&5
15999 echo "${ECHO_T}no" >&6; }
16002   if test "x$ac_ct_OBJDUMP" = x; then
16003     OBJDUMP="false"
16004   else
16005     case $cross_compiling:$ac_tool_warned in
16006 yes:)
16007 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16008 whose name does not start with the host triplet.  If you think this
16009 configuration is useful to you, please write to autoconf@gnu.org." >&5
16010 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16011 whose name does not start with the host triplet.  If you think this
16012 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16013 ac_tool_warned=yes ;;
16014 esac
16015     OBJDUMP=$ac_ct_OBJDUMP
16016   fi
16017 else
16018   OBJDUMP="$ac_cv_prog_OBJDUMP"
16021 test -z "$OBJDUMP" && OBJDUMP=objdump
16028 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
16029 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
16030 if test "${lt_cv_deplibs_check_method+set}" = set; then
16031   echo $ECHO_N "(cached) $ECHO_C" >&6
16032 else
16033   lt_cv_file_magic_cmd='$MAGIC_CMD'
16034 lt_cv_file_magic_test_file=
16035 lt_cv_deplibs_check_method='unknown'
16036 # Need to set the preceding variable on all platforms that support
16037 # interlibrary dependencies.
16038 # 'none' -- dependencies not supported.
16039 # `unknown' -- same as none, but documents that we really don't know.
16040 # 'pass_all' -- all dependencies passed with no checks.
16041 # 'test_compile' -- check by making test program.
16042 # 'file_magic [[regex]]' -- check by looking for files in library path
16043 # which responds to the $file_magic_cmd with a given extended regex.
16044 # If you have `file' or equivalent on your system and you're not sure
16045 # whether `pass_all' will *always* work, you probably want this one.
16047 case $host_os in
16048 aix[4-9]*)
16049   lt_cv_deplibs_check_method=pass_all
16050   ;;
16052 beos*)
16053   lt_cv_deplibs_check_method=pass_all
16054   ;;
16056 bsdi[45]*)
16057   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
16058   lt_cv_file_magic_cmd='/usr/bin/file -L'
16059   lt_cv_file_magic_test_file=/shlib/libc.so
16060   ;;
16062 cygwin*)
16063   # func_win32_libid is a shell function defined in ltmain.sh
16064   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16065   lt_cv_file_magic_cmd='func_win32_libid'
16066   ;;
16068 mingw* | pw32*)
16069   # Base MSYS/MinGW do not provide the 'file' command needed by
16070   # func_win32_libid shell function, so use a weaker test based on 'objdump',
16071   # unless we find 'file', for example because we are cross-compiling.
16072   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
16073   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
16074     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16075     lt_cv_file_magic_cmd='func_win32_libid'
16076   else
16077     # Keep this pattern in sync with the one in func_win32_libid.
16078     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
16079     lt_cv_file_magic_cmd='$OBJDUMP -f'
16080   fi
16081   ;;
16083 cegcc*)
16084   # use the weaker test based on 'objdump'. See mingw*.
16085   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
16086   lt_cv_file_magic_cmd='$OBJDUMP -f'
16087   ;;
16089 darwin* | rhapsody*)
16090   lt_cv_deplibs_check_method=pass_all
16091   ;;
16093 freebsd* | dragonfly*)
16094   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16095     case $host_cpu in
16096     i*86 )
16097       # Not sure whether the presence of OpenBSD here was a mistake.
16098       # Let's accept both of them until this is cleared up.
16099       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
16100       lt_cv_file_magic_cmd=/usr/bin/file
16101       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
16102       ;;
16103     esac
16104   else
16105     lt_cv_deplibs_check_method=pass_all
16106   fi
16107   ;;
16109 gnu*)
16110   lt_cv_deplibs_check_method=pass_all
16111   ;;
16113 haiku*)
16114   lt_cv_deplibs_check_method=pass_all
16115   ;;
16117 hpux10.20* | hpux11*)
16118   lt_cv_file_magic_cmd=/usr/bin/file
16119   case $host_cpu in
16120   ia64*)
16121     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
16122     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
16123     ;;
16124   hppa*64*)
16125     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]'
16126     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
16127     ;;
16128   *)
16129     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
16130     lt_cv_file_magic_test_file=/usr/lib/libc.sl
16131     ;;
16132   esac
16133   ;;
16135 interix[3-9]*)
16136   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
16137   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
16138   ;;
16140 irix5* | irix6* | nonstopux*)
16141   case $LD in
16142   *-32|*"-32 ") libmagic=32-bit;;
16143   *-n32|*"-n32 ") libmagic=N32;;
16144   *-64|*"-64 ") libmagic=64-bit;;
16145   *) libmagic=never-match;;
16146   esac
16147   lt_cv_deplibs_check_method=pass_all
16148   ;;
16150 # This must be Linux ELF.
16151 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16152   lt_cv_deplibs_check_method=pass_all
16153   ;;
16155 netbsd*)
16156   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16157     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16158   else
16159     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
16160   fi
16161   ;;
16163 newos6*)
16164   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
16165   lt_cv_file_magic_cmd=/usr/bin/file
16166   lt_cv_file_magic_test_file=/usr/lib/libnls.so
16167   ;;
16169 *nto* | *qnx*)
16170   lt_cv_deplibs_check_method=pass_all
16171   ;;
16173 openbsd*)
16174   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16175     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
16176   else
16177     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16178   fi
16179   ;;
16181 osf3* | osf4* | osf5*)
16182   lt_cv_deplibs_check_method=pass_all
16183   ;;
16185 rdos*)
16186   lt_cv_deplibs_check_method=pass_all
16187   ;;
16189 solaris*)
16190   lt_cv_deplibs_check_method=pass_all
16191   ;;
16193 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16194   lt_cv_deplibs_check_method=pass_all
16195   ;;
16197 sysv4 | sysv4.3*)
16198   case $host_vendor in
16199   motorola)
16200     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]'
16201     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
16202     ;;
16203   ncr)
16204     lt_cv_deplibs_check_method=pass_all
16205     ;;
16206   sequent)
16207     lt_cv_file_magic_cmd='/bin/file'
16208     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
16209     ;;
16210   sni)
16211     lt_cv_file_magic_cmd='/bin/file'
16212     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
16213     lt_cv_file_magic_test_file=/lib/libc.so
16214     ;;
16215   siemens)
16216     lt_cv_deplibs_check_method=pass_all
16217     ;;
16218   pc)
16219     lt_cv_deplibs_check_method=pass_all
16220     ;;
16221   esac
16222   ;;
16224 tpf*)
16225   lt_cv_deplibs_check_method=pass_all
16226   ;;
16227 esac
16230 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
16231 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
16232 file_magic_cmd=$lt_cv_file_magic_cmd
16233 deplibs_check_method=$lt_cv_deplibs_check_method
16234 test -z "$deplibs_check_method" && deplibs_check_method=unknown
16247 if test -n "$ac_tool_prefix"; then
16248   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16249 set dummy ${ac_tool_prefix}ar; ac_word=$2
16250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16252 if test "${ac_cv_prog_AR+set}" = set; then
16253   echo $ECHO_N "(cached) $ECHO_C" >&6
16254 else
16255   if test -n "$AR"; then
16256   ac_cv_prog_AR="$AR" # Let the user override the test.
16257 else
16258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16259 for as_dir in $PATH
16261   IFS=$as_save_IFS
16262   test -z "$as_dir" && as_dir=.
16263   for ac_exec_ext in '' $ac_executable_extensions; do
16264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16265     ac_cv_prog_AR="${ac_tool_prefix}ar"
16266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16267     break 2
16268   fi
16269 done
16270 done
16271 IFS=$as_save_IFS
16275 AR=$ac_cv_prog_AR
16276 if test -n "$AR"; then
16277   { echo "$as_me:$LINENO: result: $AR" >&5
16278 echo "${ECHO_T}$AR" >&6; }
16279 else
16280   { echo "$as_me:$LINENO: result: no" >&5
16281 echo "${ECHO_T}no" >&6; }
16286 if test -z "$ac_cv_prog_AR"; then
16287   ac_ct_AR=$AR
16288   # Extract the first word of "ar", so it can be a program name with args.
16289 set dummy ar; ac_word=$2
16290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16292 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
16293   echo $ECHO_N "(cached) $ECHO_C" >&6
16294 else
16295   if test -n "$ac_ct_AR"; then
16296   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16297 else
16298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16299 for as_dir in $PATH
16301   IFS=$as_save_IFS
16302   test -z "$as_dir" && as_dir=.
16303   for ac_exec_ext in '' $ac_executable_extensions; do
16304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16305     ac_cv_prog_ac_ct_AR="ar"
16306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16307     break 2
16308   fi
16309 done
16310 done
16311 IFS=$as_save_IFS
16315 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16316 if test -n "$ac_ct_AR"; then
16317   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
16318 echo "${ECHO_T}$ac_ct_AR" >&6; }
16319 else
16320   { echo "$as_me:$LINENO: result: no" >&5
16321 echo "${ECHO_T}no" >&6; }
16324   if test "x$ac_ct_AR" = x; then
16325     AR="false"
16326   else
16327     case $cross_compiling:$ac_tool_warned in
16328 yes:)
16329 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16330 whose name does not start with the host triplet.  If you think this
16331 configuration is useful to you, please write to autoconf@gnu.org." >&5
16332 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16333 whose name does not start with the host triplet.  If you think this
16334 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16335 ac_tool_warned=yes ;;
16336 esac
16337     AR=$ac_ct_AR
16338   fi
16339 else
16340   AR="$ac_cv_prog_AR"
16343 test -z "$AR" && AR=ar
16344 test -z "$AR_FLAGS" && AR_FLAGS=cru
16356 if test -n "$ac_tool_prefix"; then
16357   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16358 set dummy ${ac_tool_prefix}strip; ac_word=$2
16359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16361 if test "${ac_cv_prog_STRIP+set}" = set; then
16362   echo $ECHO_N "(cached) $ECHO_C" >&6
16363 else
16364   if test -n "$STRIP"; then
16365   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16366 else
16367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16368 for as_dir in $PATH
16370   IFS=$as_save_IFS
16371   test -z "$as_dir" && as_dir=.
16372   for ac_exec_ext in '' $ac_executable_extensions; do
16373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16374     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16376     break 2
16377   fi
16378 done
16379 done
16380 IFS=$as_save_IFS
16384 STRIP=$ac_cv_prog_STRIP
16385 if test -n "$STRIP"; then
16386   { echo "$as_me:$LINENO: result: $STRIP" >&5
16387 echo "${ECHO_T}$STRIP" >&6; }
16388 else
16389   { echo "$as_me:$LINENO: result: no" >&5
16390 echo "${ECHO_T}no" >&6; }
16395 if test -z "$ac_cv_prog_STRIP"; then
16396   ac_ct_STRIP=$STRIP
16397   # Extract the first word of "strip", so it can be a program name with args.
16398 set dummy strip; ac_word=$2
16399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16401 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
16402   echo $ECHO_N "(cached) $ECHO_C" >&6
16403 else
16404   if test -n "$ac_ct_STRIP"; then
16405   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16406 else
16407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16408 for as_dir in $PATH
16410   IFS=$as_save_IFS
16411   test -z "$as_dir" && as_dir=.
16412   for ac_exec_ext in '' $ac_executable_extensions; do
16413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16414     ac_cv_prog_ac_ct_STRIP="strip"
16415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16416     break 2
16417   fi
16418 done
16419 done
16420 IFS=$as_save_IFS
16424 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16425 if test -n "$ac_ct_STRIP"; then
16426   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
16427 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
16428 else
16429   { echo "$as_me:$LINENO: result: no" >&5
16430 echo "${ECHO_T}no" >&6; }
16433   if test "x$ac_ct_STRIP" = x; then
16434     STRIP=":"
16435   else
16436     case $cross_compiling:$ac_tool_warned in
16437 yes:)
16438 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16439 whose name does not start with the host triplet.  If you think this
16440 configuration is useful to you, please write to autoconf@gnu.org." >&5
16441 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16442 whose name does not start with the host triplet.  If you think this
16443 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16444 ac_tool_warned=yes ;;
16445 esac
16446     STRIP=$ac_ct_STRIP
16447   fi
16448 else
16449   STRIP="$ac_cv_prog_STRIP"
16452 test -z "$STRIP" && STRIP=:
16459 if test -n "$ac_tool_prefix"; then
16460   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16461 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16464 if test "${ac_cv_prog_RANLIB+set}" = set; then
16465   echo $ECHO_N "(cached) $ECHO_C" >&6
16466 else
16467   if test -n "$RANLIB"; then
16468   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16469 else
16470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16471 for as_dir in $PATH
16473   IFS=$as_save_IFS
16474   test -z "$as_dir" && as_dir=.
16475   for ac_exec_ext in '' $ac_executable_extensions; do
16476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16477     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16479     break 2
16480   fi
16481 done
16482 done
16483 IFS=$as_save_IFS
16487 RANLIB=$ac_cv_prog_RANLIB
16488 if test -n "$RANLIB"; then
16489   { echo "$as_me:$LINENO: result: $RANLIB" >&5
16490 echo "${ECHO_T}$RANLIB" >&6; }
16491 else
16492   { echo "$as_me:$LINENO: result: no" >&5
16493 echo "${ECHO_T}no" >&6; }
16498 if test -z "$ac_cv_prog_RANLIB"; then
16499   ac_ct_RANLIB=$RANLIB
16500   # Extract the first word of "ranlib", so it can be a program name with args.
16501 set dummy ranlib; ac_word=$2
16502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16504 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
16505   echo $ECHO_N "(cached) $ECHO_C" >&6
16506 else
16507   if test -n "$ac_ct_RANLIB"; then
16508   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16509 else
16510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16511 for as_dir in $PATH
16513   IFS=$as_save_IFS
16514   test -z "$as_dir" && as_dir=.
16515   for ac_exec_ext in '' $ac_executable_extensions; do
16516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16517     ac_cv_prog_ac_ct_RANLIB="ranlib"
16518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16519     break 2
16520   fi
16521 done
16522 done
16523 IFS=$as_save_IFS
16527 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16528 if test -n "$ac_ct_RANLIB"; then
16529   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
16530 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
16531 else
16532   { echo "$as_me:$LINENO: result: no" >&5
16533 echo "${ECHO_T}no" >&6; }
16536   if test "x$ac_ct_RANLIB" = x; then
16537     RANLIB=":"
16538   else
16539     case $cross_compiling:$ac_tool_warned in
16540 yes:)
16541 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16542 whose name does not start with the host triplet.  If you think this
16543 configuration is useful to you, please write to autoconf@gnu.org." >&5
16544 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16545 whose name does not start with the host triplet.  If you think this
16546 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16547 ac_tool_warned=yes ;;
16548 esac
16549     RANLIB=$ac_ct_RANLIB
16550   fi
16551 else
16552   RANLIB="$ac_cv_prog_RANLIB"
16555 test -z "$RANLIB" && RANLIB=:
16562 # Determine commands to create old-style static archives.
16563 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
16564 old_postinstall_cmds='chmod 644 $oldlib'
16565 old_postuninstall_cmds=
16567 if test -n "$RANLIB"; then
16568   case $host_os in
16569   openbsd*)
16570     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
16571     ;;
16572   *)
16573     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
16574     ;;
16575   esac
16576   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
16579 case $host_os in
16580   darwin*)
16581     lock_old_archive_extraction=yes ;;
16582   *)
16583     lock_old_archive_extraction=no ;;
16584 esac
16624 # If no C compiler was specified, use CC.
16625 LTCC=${LTCC-"$CC"}
16627 # If no C compiler flags were specified, use CFLAGS.
16628 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16630 # Allow CC to be a program name with arguments.
16631 compiler=$CC
16634 # Check for command to grab the raw symbol name followed by C symbol from nm.
16635 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
16636 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
16637 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
16638   echo $ECHO_N "(cached) $ECHO_C" >&6
16639 else
16641 # These are sane defaults that work on at least a few old systems.
16642 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
16644 # Character class describing NM global symbol codes.
16645 symcode='[BCDEGRST]'
16647 # Regexp to match symbols that can be accessed directly from C.
16648 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
16650 # Define system-specific variables.
16651 case $host_os in
16652 aix*)
16653   symcode='[BCDT]'
16654   ;;
16655 cygwin* | mingw* | pw32* | cegcc*)
16656   symcode='[ABCDGISTW]'
16657   ;;
16658 hpux*)
16659   if test "$host_cpu" = ia64; then
16660     symcode='[ABCDEGRST]'
16661   fi
16662   ;;
16663 irix* | nonstopux*)
16664   symcode='[BCDEGRST]'
16665   ;;
16666 osf*)
16667   symcode='[BCDEGQRST]'
16668   ;;
16669 solaris*)
16670   symcode='[BDRT]'
16671   ;;
16672 sco3.2v5*)
16673   symcode='[DT]'
16674   ;;
16675 sysv4.2uw2*)
16676   symcode='[DT]'
16677   ;;
16678 sysv5* | sco5v6* | unixware* | OpenUNIX*)
16679   symcode='[ABDT]'
16680   ;;
16681 sysv4)
16682   symcode='[DFNSTU]'
16683   ;;
16684 esac
16686 # If we're using GNU nm, then use its standard symbol codes.
16687 case `$NM -V 2>&1` in
16688 *GNU* | *'with BFD'*)
16689   symcode='[ABCDGIRSTW]' ;;
16690 esac
16692 # Transform an extracted symbol line into a proper C declaration.
16693 # Some systems (esp. on ia64) link data and code symbols differently,
16694 # so use this general approach.
16695 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16697 # Transform an extracted symbol line into symbol name and symbol address
16698 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
16699 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'"
16701 # Handle CRLF in mingw tool chain
16702 opt_cr=
16703 case $build_os in
16704 mingw*)
16705   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
16706   ;;
16707 esac
16709 # Try without a prefix underscore, then with it.
16710 for ac_symprfx in "" "_"; do
16712   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
16713   symxfrm="\\1 $ac_symprfx\\2 \\2"
16715   # Write the raw and C identifiers.
16716   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
16717     # Fake it for dumpbin and say T for any non-static function
16718     # and D for any global variable.
16719     # Also find C++ and __fastcall symbols from MSVC++,
16720     # which start with @ or ?.
16721     lt_cv_sys_global_symbol_pipe="$AWK '"\
16722 "     {last_section=section; section=\$ 3};"\
16723 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
16724 "     \$ 0!~/External *\|/{next};"\
16725 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
16726 "     {if(hide[section]) next};"\
16727 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
16728 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
16729 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
16730 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
16731 "     ' prfx=^$ac_symprfx"
16732   else
16733     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
16734   fi
16736   # Check to see that the pipe works correctly.
16737   pipe_works=no
16739   rm -r -f conftest*
16740   cat > conftest.$ac_ext <<_LT_EOF
16741 #ifdef __cplusplus
16742 extern "C" {
16743 #endif
16744 char nm_test_var;
16745 void nm_test_func(void);
16746 void nm_test_func(void){}
16747 #ifdef __cplusplus
16749 #endif
16750 int main(){nm_test_var='a';nm_test_func();return(0);}
16751 _LT_EOF
16753   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16754   (eval $ac_compile) 2>&5
16755   ac_status=$?
16756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757   (exit $ac_status); }; then
16758     # Now try to grab the symbols.
16759     nlist=conftest.nm
16760     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\"") >&5
16761   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
16762   ac_status=$?
16763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764   (exit $ac_status); } && test -s "$nlist"; then
16765       # Try sorting and uniquifying the output.
16766       if sort "$nlist" | uniq > "$nlist"T; then
16767         mv -f "$nlist"T "$nlist"
16768       else
16769         rm -f "$nlist"T
16770       fi
16772       # Make sure that we snagged all the symbols we need.
16773       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
16774         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
16775           cat <<_LT_EOF > conftest.$ac_ext
16776 #ifdef __cplusplus
16777 extern "C" {
16778 #endif
16780 _LT_EOF
16781           # Now generate the symbol file.
16782           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
16784           cat <<_LT_EOF >> conftest.$ac_ext
16786 /* The mapping between symbol names and symbols.  */
16787 const struct {
16788   const char *name;
16789   void       *address;
16791 lt__PROGRAM__LTX_preloaded_symbols[] =
16793   { "@PROGRAM@", (void *) 0 },
16794 _LT_EOF
16795           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
16796           cat <<\_LT_EOF >> conftest.$ac_ext
16797   {0, (void *) 0}
16800 /* This works around a problem in FreeBSD linker */
16801 #ifdef FREEBSD_WORKAROUND
16802 static const void *lt_preloaded_setup() {
16803   return lt__PROGRAM__LTX_preloaded_symbols;
16805 #endif
16807 #ifdef __cplusplus
16809 #endif
16810 _LT_EOF
16811           # Now try linking the two files.
16812           mv conftest.$ac_objext conftstm.$ac_objext
16813           lt_save_LIBS="$LIBS"
16814           lt_save_CFLAGS="$CFLAGS"
16815           LIBS="conftstm.$ac_objext"
16816           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
16817           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16818   (eval $ac_link) 2>&5
16819   ac_status=$?
16820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821   (exit $ac_status); } && test -s conftest${ac_exeext}; then
16822             pipe_works=yes
16823           fi
16824           LIBS="$lt_save_LIBS"
16825           CFLAGS="$lt_save_CFLAGS"
16826         else
16827           echo "cannot find nm_test_func in $nlist" >&5
16828         fi
16829       else
16830         echo "cannot find nm_test_var in $nlist" >&5
16831       fi
16832     else
16833       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
16834     fi
16835   else
16836     echo "$progname: failed program was:" >&5
16837     cat conftest.$ac_ext >&5
16838   fi
16839   rm -rf conftest* conftst*
16841   # Do not use the global_symbol_pipe unless it works.
16842   if test "$pipe_works" = yes; then
16843     break
16844   else
16845     lt_cv_sys_global_symbol_pipe=
16846   fi
16847 done
16851 if test -z "$lt_cv_sys_global_symbol_pipe"; then
16852   lt_cv_sys_global_symbol_to_cdecl=
16854 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
16855   { echo "$as_me:$LINENO: result: failed" >&5
16856 echo "${ECHO_T}failed" >&6; }
16857 else
16858   { echo "$as_me:$LINENO: result: ok" >&5
16859 echo "${ECHO_T}ok" >&6; }
16883 # Check whether --enable-libtool-lock was given.
16884 if test "${enable_libtool_lock+set}" = set; then
16885   enableval=$enable_libtool_lock;
16888 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
16890 # Some flags need to be propagated to the compiler or linker for good
16891 # libtool support.
16892 case $host in
16893 ia64-*-hpux*)
16894   # Find out which ABI we are using.
16895   echo 'int i;' > conftest.$ac_ext
16896   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16897   (eval $ac_compile) 2>&5
16898   ac_status=$?
16899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900   (exit $ac_status); }; then
16901     case `/usr/bin/file conftest.$ac_objext` in
16902       *ELF-32*)
16903         HPUX_IA64_MODE="32"
16904         ;;
16905       *ELF-64*)
16906         HPUX_IA64_MODE="64"
16907         ;;
16908     esac
16909   fi
16910   rm -rf conftest*
16911   ;;
16912 *-*-irix6*)
16913   # Find out which ABI we are using.
16914   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
16915   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16916   (eval $ac_compile) 2>&5
16917   ac_status=$?
16918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919   (exit $ac_status); }; then
16920     if test "$lt_cv_prog_gnu_ld" = yes; then
16921       case `/usr/bin/file conftest.$ac_objext` in
16922         *32-bit*)
16923           LD="${LD-ld} -melf32bsmip"
16924           ;;
16925         *N32*)
16926           LD="${LD-ld} -melf32bmipn32"
16927           ;;
16928         *64-bit*)
16929           LD="${LD-ld} -melf64bmip"
16930         ;;
16931       esac
16932     else
16933       case `/usr/bin/file conftest.$ac_objext` in
16934         *32-bit*)
16935           LD="${LD-ld} -32"
16936           ;;
16937         *N32*)
16938           LD="${LD-ld} -n32"
16939           ;;
16940         *64-bit*)
16941           LD="${LD-ld} -64"
16942           ;;
16943       esac
16944     fi
16945   fi
16946   rm -rf conftest*
16947   ;;
16949 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
16950 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
16951   # Find out which ABI we are using.
16952   echo 'int i;' > conftest.$ac_ext
16953   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16954   (eval $ac_compile) 2>&5
16955   ac_status=$?
16956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957   (exit $ac_status); }; then
16958     case `/usr/bin/file conftest.o` in
16959       *32-bit*)
16960         case $host in
16961           x86_64-*kfreebsd*-gnu)
16962             LD="${LD-ld} -m elf_i386_fbsd"
16963             ;;
16964           x86_64-*linux*)
16965             LD="${LD-ld} -m elf_i386"
16966             ;;
16967           ppc64-*linux*|powerpc64-*linux*)
16968             LD="${LD-ld} -m elf32ppclinux"
16969             ;;
16970           s390x-*linux*)
16971             LD="${LD-ld} -m elf_s390"
16972             ;;
16973           sparc64-*linux*)
16974             LD="${LD-ld} -m elf32_sparc"
16975             ;;
16976         esac
16977         ;;
16978       *64-bit*)
16979         case $host in
16980           x86_64-*kfreebsd*-gnu)
16981             LD="${LD-ld} -m elf_x86_64_fbsd"
16982             ;;
16983           x86_64-*linux*)
16984             LD="${LD-ld} -m elf_x86_64"
16985             ;;
16986           ppc*-*linux*|powerpc*-*linux*)
16987             LD="${LD-ld} -m elf64ppc"
16988             ;;
16989           s390*-*linux*|s390*-*tpf*)
16990             LD="${LD-ld} -m elf64_s390"
16991             ;;
16992           sparc*-*linux*)
16993             LD="${LD-ld} -m elf64_sparc"
16994             ;;
16995         esac
16996         ;;
16997     esac
16998   fi
16999   rm -rf conftest*
17000   ;;
17002 *-*-sco3.2v5*)
17003   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
17004   SAVE_CFLAGS="$CFLAGS"
17005   CFLAGS="$CFLAGS -belf"
17006   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
17007 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
17008 if test "${lt_cv_cc_needs_belf+set}" = set; then
17009   echo $ECHO_N "(cached) $ECHO_C" >&6
17010 else
17011   ac_ext=c
17012 ac_cpp='$CPP $CPPFLAGS'
17013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17017      cat >conftest.$ac_ext <<_ACEOF
17018 /* confdefs.h.  */
17019 _ACEOF
17020 cat confdefs.h >>conftest.$ac_ext
17021 cat >>conftest.$ac_ext <<_ACEOF
17022 /* end confdefs.h.  */
17024 int
17025 main ()
17028   ;
17029   return 0;
17031 _ACEOF
17032 rm -f conftest.$ac_objext conftest$ac_exeext
17033 if { (ac_try="$ac_link"
17034 case "(($ac_try" in
17035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17036   *) ac_try_echo=$ac_try;;
17037 esac
17038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17039   (eval "$ac_link") 2>conftest.er1
17040   ac_status=$?
17041   grep -v '^ *+' conftest.er1 >conftest.err
17042   rm -f conftest.er1
17043   cat conftest.err >&5
17044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045   (exit $ac_status); } && {
17046          test -z "$ac_c_werror_flag" ||
17047          test ! -s conftest.err
17048        } && test -s conftest$ac_exeext &&
17049        $as_test_x conftest$ac_exeext; then
17050   lt_cv_cc_needs_belf=yes
17051 else
17052   echo "$as_me: failed program was:" >&5
17053 sed 's/^/| /' conftest.$ac_ext >&5
17055         lt_cv_cc_needs_belf=no
17058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17059       conftest$ac_exeext conftest.$ac_ext
17060      ac_ext=c
17061 ac_cpp='$CPP $CPPFLAGS'
17062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17067 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
17068 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
17069   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
17070     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
17071     CFLAGS="$SAVE_CFLAGS"
17072   fi
17073   ;;
17074 sparc*-*solaris*)
17075   # Find out which ABI we are using.
17076   echo 'int i;' > conftest.$ac_ext
17077   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17078   (eval $ac_compile) 2>&5
17079   ac_status=$?
17080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081   (exit $ac_status); }; then
17082     case `/usr/bin/file conftest.o` in
17083     *64-bit*)
17084       case $lt_cv_prog_gnu_ld in
17085       yes*) LD="${LD-ld} -m elf64_sparc" ;;
17086       *)
17087         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
17088           LD="${LD-ld} -64"
17089         fi
17090         ;;
17091       esac
17092       ;;
17093     esac
17094   fi
17095   rm -rf conftest*
17096   ;;
17097 esac
17099 need_locks="$enable_libtool_lock"
17102   case $host_os in
17103     rhapsody* | darwin*)
17104     if test -n "$ac_tool_prefix"; then
17105   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
17106 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
17107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17109 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
17110   echo $ECHO_N "(cached) $ECHO_C" >&6
17111 else
17112   if test -n "$DSYMUTIL"; then
17113   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
17114 else
17115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17116 for as_dir in $PATH
17118   IFS=$as_save_IFS
17119   test -z "$as_dir" && as_dir=.
17120   for ac_exec_ext in '' $ac_executable_extensions; do
17121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17122     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
17123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17124     break 2
17125   fi
17126 done
17127 done
17128 IFS=$as_save_IFS
17132 DSYMUTIL=$ac_cv_prog_DSYMUTIL
17133 if test -n "$DSYMUTIL"; then
17134   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
17135 echo "${ECHO_T}$DSYMUTIL" >&6; }
17136 else
17137   { echo "$as_me:$LINENO: result: no" >&5
17138 echo "${ECHO_T}no" >&6; }
17143 if test -z "$ac_cv_prog_DSYMUTIL"; then
17144   ac_ct_DSYMUTIL=$DSYMUTIL
17145   # Extract the first word of "dsymutil", so it can be a program name with args.
17146 set dummy dsymutil; ac_word=$2
17147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17149 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
17150   echo $ECHO_N "(cached) $ECHO_C" >&6
17151 else
17152   if test -n "$ac_ct_DSYMUTIL"; then
17153   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
17154 else
17155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17156 for as_dir in $PATH
17158   IFS=$as_save_IFS
17159   test -z "$as_dir" && as_dir=.
17160   for ac_exec_ext in '' $ac_executable_extensions; do
17161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17162     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
17163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17164     break 2
17165   fi
17166 done
17167 done
17168 IFS=$as_save_IFS
17172 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
17173 if test -n "$ac_ct_DSYMUTIL"; then
17174   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
17175 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
17176 else
17177   { echo "$as_me:$LINENO: result: no" >&5
17178 echo "${ECHO_T}no" >&6; }
17181   if test "x$ac_ct_DSYMUTIL" = x; then
17182     DSYMUTIL=":"
17183   else
17184     case $cross_compiling:$ac_tool_warned in
17185 yes:)
17186 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17187 whose name does not start with the host triplet.  If you think this
17188 configuration is useful to you, please write to autoconf@gnu.org." >&5
17189 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17190 whose name does not start with the host triplet.  If you think this
17191 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17192 ac_tool_warned=yes ;;
17193 esac
17194     DSYMUTIL=$ac_ct_DSYMUTIL
17195   fi
17196 else
17197   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
17200     if test -n "$ac_tool_prefix"; then
17201   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
17202 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
17203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17205 if test "${ac_cv_prog_NMEDIT+set}" = set; then
17206   echo $ECHO_N "(cached) $ECHO_C" >&6
17207 else
17208   if test -n "$NMEDIT"; then
17209   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
17210 else
17211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17212 for as_dir in $PATH
17214   IFS=$as_save_IFS
17215   test -z "$as_dir" && as_dir=.
17216   for ac_exec_ext in '' $ac_executable_extensions; do
17217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17218     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
17219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17220     break 2
17221   fi
17222 done
17223 done
17224 IFS=$as_save_IFS
17228 NMEDIT=$ac_cv_prog_NMEDIT
17229 if test -n "$NMEDIT"; then
17230   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
17231 echo "${ECHO_T}$NMEDIT" >&6; }
17232 else
17233   { echo "$as_me:$LINENO: result: no" >&5
17234 echo "${ECHO_T}no" >&6; }
17239 if test -z "$ac_cv_prog_NMEDIT"; then
17240   ac_ct_NMEDIT=$NMEDIT
17241   # Extract the first word of "nmedit", so it can be a program name with args.
17242 set dummy nmedit; ac_word=$2
17243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17245 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
17246   echo $ECHO_N "(cached) $ECHO_C" >&6
17247 else
17248   if test -n "$ac_ct_NMEDIT"; then
17249   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
17250 else
17251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17252 for as_dir in $PATH
17254   IFS=$as_save_IFS
17255   test -z "$as_dir" && as_dir=.
17256   for ac_exec_ext in '' $ac_executable_extensions; do
17257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17258     ac_cv_prog_ac_ct_NMEDIT="nmedit"
17259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17260     break 2
17261   fi
17262 done
17263 done
17264 IFS=$as_save_IFS
17268 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
17269 if test -n "$ac_ct_NMEDIT"; then
17270   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
17271 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
17272 else
17273   { echo "$as_me:$LINENO: result: no" >&5
17274 echo "${ECHO_T}no" >&6; }
17277   if test "x$ac_ct_NMEDIT" = x; then
17278     NMEDIT=":"
17279   else
17280     case $cross_compiling:$ac_tool_warned in
17281 yes:)
17282 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17283 whose name does not start with the host triplet.  If you think this
17284 configuration is useful to you, please write to autoconf@gnu.org." >&5
17285 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17286 whose name does not start with the host triplet.  If you think this
17287 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17288 ac_tool_warned=yes ;;
17289 esac
17290     NMEDIT=$ac_ct_NMEDIT
17291   fi
17292 else
17293   NMEDIT="$ac_cv_prog_NMEDIT"
17296     if test -n "$ac_tool_prefix"; then
17297   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
17298 set dummy ${ac_tool_prefix}lipo; ac_word=$2
17299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17301 if test "${ac_cv_prog_LIPO+set}" = set; then
17302   echo $ECHO_N "(cached) $ECHO_C" >&6
17303 else
17304   if test -n "$LIPO"; then
17305   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
17306 else
17307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17308 for as_dir in $PATH
17310   IFS=$as_save_IFS
17311   test -z "$as_dir" && as_dir=.
17312   for ac_exec_ext in '' $ac_executable_extensions; do
17313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17314     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
17315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17316     break 2
17317   fi
17318 done
17319 done
17320 IFS=$as_save_IFS
17324 LIPO=$ac_cv_prog_LIPO
17325 if test -n "$LIPO"; then
17326   { echo "$as_me:$LINENO: result: $LIPO" >&5
17327 echo "${ECHO_T}$LIPO" >&6; }
17328 else
17329   { echo "$as_me:$LINENO: result: no" >&5
17330 echo "${ECHO_T}no" >&6; }
17335 if test -z "$ac_cv_prog_LIPO"; then
17336   ac_ct_LIPO=$LIPO
17337   # Extract the first word of "lipo", so it can be a program name with args.
17338 set dummy lipo; ac_word=$2
17339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17341 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
17342   echo $ECHO_N "(cached) $ECHO_C" >&6
17343 else
17344   if test -n "$ac_ct_LIPO"; then
17345   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
17346 else
17347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17348 for as_dir in $PATH
17350   IFS=$as_save_IFS
17351   test -z "$as_dir" && as_dir=.
17352   for ac_exec_ext in '' $ac_executable_extensions; do
17353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17354     ac_cv_prog_ac_ct_LIPO="lipo"
17355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17356     break 2
17357   fi
17358 done
17359 done
17360 IFS=$as_save_IFS
17364 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
17365 if test -n "$ac_ct_LIPO"; then
17366   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
17367 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
17368 else
17369   { echo "$as_me:$LINENO: result: no" >&5
17370 echo "${ECHO_T}no" >&6; }
17373   if test "x$ac_ct_LIPO" = x; then
17374     LIPO=":"
17375   else
17376     case $cross_compiling:$ac_tool_warned in
17377 yes:)
17378 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17379 whose name does not start with the host triplet.  If you think this
17380 configuration is useful to you, please write to autoconf@gnu.org." >&5
17381 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17382 whose name does not start with the host triplet.  If you think this
17383 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17384 ac_tool_warned=yes ;;
17385 esac
17386     LIPO=$ac_ct_LIPO
17387   fi
17388 else
17389   LIPO="$ac_cv_prog_LIPO"
17392     if test -n "$ac_tool_prefix"; then
17393   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
17394 set dummy ${ac_tool_prefix}otool; ac_word=$2
17395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17397 if test "${ac_cv_prog_OTOOL+set}" = set; then
17398   echo $ECHO_N "(cached) $ECHO_C" >&6
17399 else
17400   if test -n "$OTOOL"; then
17401   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
17402 else
17403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17404 for as_dir in $PATH
17406   IFS=$as_save_IFS
17407   test -z "$as_dir" && as_dir=.
17408   for ac_exec_ext in '' $ac_executable_extensions; do
17409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17410     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
17411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17412     break 2
17413   fi
17414 done
17415 done
17416 IFS=$as_save_IFS
17420 OTOOL=$ac_cv_prog_OTOOL
17421 if test -n "$OTOOL"; then
17422   { echo "$as_me:$LINENO: result: $OTOOL" >&5
17423 echo "${ECHO_T}$OTOOL" >&6; }
17424 else
17425   { echo "$as_me:$LINENO: result: no" >&5
17426 echo "${ECHO_T}no" >&6; }
17431 if test -z "$ac_cv_prog_OTOOL"; then
17432   ac_ct_OTOOL=$OTOOL
17433   # Extract the first word of "otool", so it can be a program name with args.
17434 set dummy otool; ac_word=$2
17435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17437 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
17438   echo $ECHO_N "(cached) $ECHO_C" >&6
17439 else
17440   if test -n "$ac_ct_OTOOL"; then
17441   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
17442 else
17443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17444 for as_dir in $PATH
17446   IFS=$as_save_IFS
17447   test -z "$as_dir" && as_dir=.
17448   for ac_exec_ext in '' $ac_executable_extensions; do
17449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17450     ac_cv_prog_ac_ct_OTOOL="otool"
17451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17452     break 2
17453   fi
17454 done
17455 done
17456 IFS=$as_save_IFS
17460 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
17461 if test -n "$ac_ct_OTOOL"; then
17462   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
17463 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
17464 else
17465   { echo "$as_me:$LINENO: result: no" >&5
17466 echo "${ECHO_T}no" >&6; }
17469   if test "x$ac_ct_OTOOL" = x; then
17470     OTOOL=":"
17471   else
17472     case $cross_compiling:$ac_tool_warned in
17473 yes:)
17474 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17475 whose name does not start with the host triplet.  If you think this
17476 configuration is useful to you, please write to autoconf@gnu.org." >&5
17477 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17478 whose name does not start with the host triplet.  If you think this
17479 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17480 ac_tool_warned=yes ;;
17481 esac
17482     OTOOL=$ac_ct_OTOOL
17483   fi
17484 else
17485   OTOOL="$ac_cv_prog_OTOOL"
17488     if test -n "$ac_tool_prefix"; then
17489   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
17490 set dummy ${ac_tool_prefix}otool64; ac_word=$2
17491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17493 if test "${ac_cv_prog_OTOOL64+set}" = set; then
17494   echo $ECHO_N "(cached) $ECHO_C" >&6
17495 else
17496   if test -n "$OTOOL64"; then
17497   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
17498 else
17499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17500 for as_dir in $PATH
17502   IFS=$as_save_IFS
17503   test -z "$as_dir" && as_dir=.
17504   for ac_exec_ext in '' $ac_executable_extensions; do
17505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17506     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
17507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17508     break 2
17509   fi
17510 done
17511 done
17512 IFS=$as_save_IFS
17516 OTOOL64=$ac_cv_prog_OTOOL64
17517 if test -n "$OTOOL64"; then
17518   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
17519 echo "${ECHO_T}$OTOOL64" >&6; }
17520 else
17521   { echo "$as_me:$LINENO: result: no" >&5
17522 echo "${ECHO_T}no" >&6; }
17527 if test -z "$ac_cv_prog_OTOOL64"; then
17528   ac_ct_OTOOL64=$OTOOL64
17529   # Extract the first word of "otool64", so it can be a program name with args.
17530 set dummy otool64; ac_word=$2
17531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17533 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
17534   echo $ECHO_N "(cached) $ECHO_C" >&6
17535 else
17536   if test -n "$ac_ct_OTOOL64"; then
17537   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
17538 else
17539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17540 for as_dir in $PATH
17542   IFS=$as_save_IFS
17543   test -z "$as_dir" && as_dir=.
17544   for ac_exec_ext in '' $ac_executable_extensions; do
17545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17546     ac_cv_prog_ac_ct_OTOOL64="otool64"
17547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17548     break 2
17549   fi
17550 done
17551 done
17552 IFS=$as_save_IFS
17556 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
17557 if test -n "$ac_ct_OTOOL64"; then
17558   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
17559 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
17560 else
17561   { echo "$as_me:$LINENO: result: no" >&5
17562 echo "${ECHO_T}no" >&6; }
17565   if test "x$ac_ct_OTOOL64" = x; then
17566     OTOOL64=":"
17567   else
17568     case $cross_compiling:$ac_tool_warned in
17569 yes:)
17570 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17571 whose name does not start with the host triplet.  If you think this
17572 configuration is useful to you, please write to autoconf@gnu.org." >&5
17573 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17574 whose name does not start with the host triplet.  If you think this
17575 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17576 ac_tool_warned=yes ;;
17577 esac
17578     OTOOL64=$ac_ct_OTOOL64
17579   fi
17580 else
17581   OTOOL64="$ac_cv_prog_OTOOL64"
17610     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
17611 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
17612 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
17613   echo $ECHO_N "(cached) $ECHO_C" >&6
17614 else
17615   lt_cv_apple_cc_single_mod=no
17616       if test -z "${LT_MULTI_MODULE}"; then
17617         # By default we will add the -single_module flag. You can override
17618         # by either setting the environment variable LT_MULTI_MODULE
17619         # non-empty at configure time, or by adding -multi_module to the
17620         # link flags.
17621         rm -rf libconftest.dylib*
17622         echo "int foo(void){return 1;}" > conftest.c
17623         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17624 -dynamiclib -Wl,-single_module conftest.c" >&5
17625         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17626           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
17627         _lt_result=$?
17628         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
17629           lt_cv_apple_cc_single_mod=yes
17630         else
17631           cat conftest.err >&5
17632         fi
17633         rm -rf libconftest.dylib*
17634         rm -f conftest.*
17635       fi
17637 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
17638 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
17639     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
17640 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
17641 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
17642   echo $ECHO_N "(cached) $ECHO_C" >&6
17643 else
17644   lt_cv_ld_exported_symbols_list=no
17645       save_LDFLAGS=$LDFLAGS
17646       echo "_main" > conftest.sym
17647       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
17648       cat >conftest.$ac_ext <<_ACEOF
17649 /* confdefs.h.  */
17650 _ACEOF
17651 cat confdefs.h >>conftest.$ac_ext
17652 cat >>conftest.$ac_ext <<_ACEOF
17653 /* end confdefs.h.  */
17655 int
17656 main ()
17659   ;
17660   return 0;
17662 _ACEOF
17663 rm -f conftest.$ac_objext conftest$ac_exeext
17664 if { (ac_try="$ac_link"
17665 case "(($ac_try" in
17666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667   *) ac_try_echo=$ac_try;;
17668 esac
17669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670   (eval "$ac_link") 2>conftest.er1
17671   ac_status=$?
17672   grep -v '^ *+' conftest.er1 >conftest.err
17673   rm -f conftest.er1
17674   cat conftest.err >&5
17675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676   (exit $ac_status); } && {
17677          test -z "$ac_c_werror_flag" ||
17678          test ! -s conftest.err
17679        } && test -s conftest$ac_exeext &&
17680        $as_test_x conftest$ac_exeext; then
17681   lt_cv_ld_exported_symbols_list=yes
17682 else
17683   echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.$ac_ext >&5
17686         lt_cv_ld_exported_symbols_list=no
17689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17690       conftest$ac_exeext conftest.$ac_ext
17691         LDFLAGS="$save_LDFLAGS"
17694 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
17695 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
17696     { echo "$as_me:$LINENO: checking for -force_load linker flag" >&5
17697 echo $ECHO_N "checking for -force_load linker flag... $ECHO_C" >&6; }
17698 if test "${lt_cv_ld_force_load+set}" = set; then
17699   echo $ECHO_N "(cached) $ECHO_C" >&6
17700 else
17701   lt_cv_ld_force_load=no
17702       cat > conftest.c << _LT_EOF
17703 int forced_loaded() { return 2;}
17704 _LT_EOF
17705       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
17706       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
17707       echo "$AR cru libconftest.a conftest.o" >&5
17708       $AR cru libconftest.a conftest.o 2>&5
17709       echo "$RANLIB libconftest.a" >&5
17710       $RANLIB libconftest.a 2>&5
17711       cat > conftest.c << _LT_EOF
17712 int main() { return 0;}
17713 _LT_EOF
17714       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
17715       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
17716       _lt_result=$?
17717       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
17718         lt_cv_ld_force_load=yes
17719       else
17720         cat conftest.err >&5
17721       fi
17722         rm -f conftest.err libconftest.a conftest conftest.c
17723         rm -rf conftest.dSYM
17726 { echo "$as_me:$LINENO: result: $lt_cv_ld_force_load" >&5
17727 echo "${ECHO_T}$lt_cv_ld_force_load" >&6; }
17728     case $host_os in
17729     rhapsody* | darwin1.[012])
17730       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
17731     darwin1.*)
17732       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
17733     darwin*) # darwin 5.x on
17734       # if running on 10.5 or later, the deployment target defaults
17735       # to the OS version, if on x86, and 10.4, the deployment
17736       # target defaults to 10.4. Don't you love it?
17737       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
17738         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
17739           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
17740         10.[012]*)
17741           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
17742         10.*)
17743           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
17744       esac
17745     ;;
17746   esac
17747     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
17748       _lt_dar_single_mod='$single_module'
17749     fi
17750     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
17751       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
17752     else
17753       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
17754     fi
17755     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
17756       _lt_dsymutil='~$DSYMUTIL $lib || :'
17757     else
17758       _lt_dsymutil=
17759     fi
17760     ;;
17761   esac
17764 for ac_header in dlfcn.h
17766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17770   echo $ECHO_N "(cached) $ECHO_C" >&6
17771 else
17772   cat >conftest.$ac_ext <<_ACEOF
17773 /* confdefs.h.  */
17774 _ACEOF
17775 cat confdefs.h >>conftest.$ac_ext
17776 cat >>conftest.$ac_ext <<_ACEOF
17777 /* end confdefs.h.  */
17778 $ac_includes_default
17780 #include <$ac_header>
17781 _ACEOF
17782 rm -f conftest.$ac_objext
17783 if { (ac_try="$ac_compile"
17784 case "(($ac_try" in
17785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17786   *) ac_try_echo=$ac_try;;
17787 esac
17788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17789   (eval "$ac_compile") 2>conftest.er1
17790   ac_status=$?
17791   grep -v '^ *+' conftest.er1 >conftest.err
17792   rm -f conftest.er1
17793   cat conftest.err >&5
17794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795   (exit $ac_status); } && {
17796          test -z "$ac_c_werror_flag" ||
17797          test ! -s conftest.err
17798        } && test -s conftest.$ac_objext; then
17799   eval "$as_ac_Header=yes"
17800 else
17801   echo "$as_me: failed program was:" >&5
17802 sed 's/^/| /' conftest.$ac_ext >&5
17804         eval "$as_ac_Header=no"
17807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17809 ac_res=`eval echo '${'$as_ac_Header'}'`
17810                { echo "$as_me:$LINENO: result: $ac_res" >&5
17811 echo "${ECHO_T}$ac_res" >&6; }
17812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17813   cat >>confdefs.h <<_ACEOF
17814 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17815 _ACEOF
17819 done
17825 # Set options
17829         enable_dlopen=no
17833             # Check whether --enable-shared was given.
17834 if test "${enable_shared+set}" = set; then
17835   enableval=$enable_shared; p=${PACKAGE-default}
17836     case $enableval in
17837     yes) enable_shared=yes ;;
17838     no) enable_shared=no ;;
17839     *)
17840       enable_shared=no
17841       # Look at the argument we got.  We use all the common list separators.
17842       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17843       for pkg in $enableval; do
17844         IFS="$lt_save_ifs"
17845         if test "X$pkg" = "X$p"; then
17846           enable_shared=yes
17847         fi
17848       done
17849       IFS="$lt_save_ifs"
17850       ;;
17851     esac
17852 else
17853   enable_shared=yes
17866 # Check whether --with-pic was given.
17867 if test "${with_pic+set}" = set; then
17868   withval=$with_pic; pic_mode="$withval"
17869 else
17870   pic_mode=default
17874 test -z "$pic_mode" && pic_mode=default
17882   # Check whether --enable-fast-install was given.
17883 if test "${enable_fast_install+set}" = set; then
17884   enableval=$enable_fast_install; p=${PACKAGE-default}
17885     case $enableval in
17886     yes) enable_fast_install=yes ;;
17887     no) enable_fast_install=no ;;
17888     *)
17889       enable_fast_install=no
17890       # Look at the argument we got.  We use all the common list separators.
17891       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17892       for pkg in $enableval; do
17893         IFS="$lt_save_ifs"
17894         if test "X$pkg" = "X$p"; then
17895           enable_fast_install=yes
17896         fi
17897       done
17898       IFS="$lt_save_ifs"
17899       ;;
17900     esac
17901 else
17902   enable_fast_install=yes
17915 # This can be used to rebuild libtool when needed
17916 LIBTOOL_DEPS="$ltmain"
17918 # Always use our own libtool.
17919 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
17946 test -z "$LN_S" && LN_S="ln -s"
17961 if test -n "${ZSH_VERSION+set}" ; then
17962    setopt NO_GLOB_SUBST
17965 { echo "$as_me:$LINENO: checking for objdir" >&5
17966 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
17967 if test "${lt_cv_objdir+set}" = set; then
17968   echo $ECHO_N "(cached) $ECHO_C" >&6
17969 else
17970   rm -f .libs 2>/dev/null
17971 mkdir .libs 2>/dev/null
17972 if test -d .libs; then
17973   lt_cv_objdir=.libs
17974 else
17975   # MS-DOS does not allow filenames that begin with a dot.
17976   lt_cv_objdir=_libs
17978 rmdir .libs 2>/dev/null
17980 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
17981 echo "${ECHO_T}$lt_cv_objdir" >&6; }
17982 objdir=$lt_cv_objdir
17988 cat >>confdefs.h <<_ACEOF
17989 #define LT_OBJDIR "$lt_cv_objdir/"
17990 _ACEOF
17995 case $host_os in
17996 aix3*)
17997   # AIX sometimes has problems with the GCC collect2 program.  For some
17998   # reason, if we set the COLLECT_NAMES environment variable, the problems
17999   # vanish in a puff of smoke.
18000   if test "X${COLLECT_NAMES+set}" != Xset; then
18001     COLLECT_NAMES=
18002     export COLLECT_NAMES
18003   fi
18004   ;;
18005 esac
18007 # Global variables:
18008 ofile=libtool
18009 can_build_shared=yes
18011 # All known linkers require a `.a' archive for static linking (except MSVC,
18012 # which needs '.lib').
18013 libext=a
18015 with_gnu_ld="$lt_cv_prog_gnu_ld"
18017 old_CC="$CC"
18018 old_CFLAGS="$CFLAGS"
18020 # Set sane defaults for various variables
18021 test -z "$CC" && CC=cc
18022 test -z "$LTCC" && LTCC=$CC
18023 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
18024 test -z "$LD" && LD=ld
18025 test -z "$ac_objext" && ac_objext=o
18027 for cc_temp in $compiler""; do
18028   case $cc_temp in
18029     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18030     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18031     \-*) ;;
18032     *) break;;
18033   esac
18034 done
18035 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18038 # Only perform the check for file, if the check method requires it
18039 test -z "$MAGIC_CMD" && MAGIC_CMD=file
18040 case $deplibs_check_method in
18041 file_magic*)
18042   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
18043     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
18044 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
18045 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
18046   echo $ECHO_N "(cached) $ECHO_C" >&6
18047 else
18048   case $MAGIC_CMD in
18049 [\\/*] |  ?:[\\/]*)
18050   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18051   ;;
18053   lt_save_MAGIC_CMD="$MAGIC_CMD"
18054   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18055   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18056   for ac_dir in $ac_dummy; do
18057     IFS="$lt_save_ifs"
18058     test -z "$ac_dir" && ac_dir=.
18059     if test -f $ac_dir/${ac_tool_prefix}file; then
18060       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
18061       if test -n "$file_magic_test_file"; then
18062         case $deplibs_check_method in
18063         "file_magic "*)
18064           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18065           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18066           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18067             $EGREP "$file_magic_regex" > /dev/null; then
18068             :
18069           else
18070             cat <<_LT_EOF 1>&2
18072 *** Warning: the command libtool uses to detect shared libraries,
18073 *** $file_magic_cmd, produces output that libtool cannot recognize.
18074 *** The result is that libtool may fail to recognize shared libraries
18075 *** as such.  This will affect the creation of libtool libraries that
18076 *** depend on shared libraries, but programs linked with such libtool
18077 *** libraries will work regardless of this problem.  Nevertheless, you
18078 *** may want to report the problem to your system manager and/or to
18079 *** bug-libtool@gnu.org
18081 _LT_EOF
18082           fi ;;
18083         esac
18084       fi
18085       break
18086     fi
18087   done
18088   IFS="$lt_save_ifs"
18089   MAGIC_CMD="$lt_save_MAGIC_CMD"
18090   ;;
18091 esac
18094 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18095 if test -n "$MAGIC_CMD"; then
18096   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
18097 echo "${ECHO_T}$MAGIC_CMD" >&6; }
18098 else
18099   { echo "$as_me:$LINENO: result: no" >&5
18100 echo "${ECHO_T}no" >&6; }
18107 if test -z "$lt_cv_path_MAGIC_CMD"; then
18108   if test -n "$ac_tool_prefix"; then
18109     { echo "$as_me:$LINENO: checking for file" >&5
18110 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
18111 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
18112   echo $ECHO_N "(cached) $ECHO_C" >&6
18113 else
18114   case $MAGIC_CMD in
18115 [\\/*] |  ?:[\\/]*)
18116   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18117   ;;
18119   lt_save_MAGIC_CMD="$MAGIC_CMD"
18120   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18121   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18122   for ac_dir in $ac_dummy; do
18123     IFS="$lt_save_ifs"
18124     test -z "$ac_dir" && ac_dir=.
18125     if test -f $ac_dir/file; then
18126       lt_cv_path_MAGIC_CMD="$ac_dir/file"
18127       if test -n "$file_magic_test_file"; then
18128         case $deplibs_check_method in
18129         "file_magic "*)
18130           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18131           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18132           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18133             $EGREP "$file_magic_regex" > /dev/null; then
18134             :
18135           else
18136             cat <<_LT_EOF 1>&2
18138 *** Warning: the command libtool uses to detect shared libraries,
18139 *** $file_magic_cmd, produces output that libtool cannot recognize.
18140 *** The result is that libtool may fail to recognize shared libraries
18141 *** as such.  This will affect the creation of libtool libraries that
18142 *** depend on shared libraries, but programs linked with such libtool
18143 *** libraries will work regardless of this problem.  Nevertheless, you
18144 *** may want to report the problem to your system manager and/or to
18145 *** bug-libtool@gnu.org
18147 _LT_EOF
18148           fi ;;
18149         esac
18150       fi
18151       break
18152     fi
18153   done
18154   IFS="$lt_save_ifs"
18155   MAGIC_CMD="$lt_save_MAGIC_CMD"
18156   ;;
18157 esac
18160 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18161 if test -n "$MAGIC_CMD"; then
18162   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
18163 echo "${ECHO_T}$MAGIC_CMD" >&6; }
18164 else
18165   { echo "$as_me:$LINENO: result: no" >&5
18166 echo "${ECHO_T}no" >&6; }
18170   else
18171     MAGIC_CMD=:
18172   fi
18175   fi
18176   ;;
18177 esac
18179 # Use C for the default configuration in the libtool script
18181 lt_save_CC="$CC"
18182 ac_ext=c
18183 ac_cpp='$CPP $CPPFLAGS'
18184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18189 # Source file extension for C test sources.
18190 ac_ext=c
18192 # Object file extension for compiled C test sources.
18193 objext=o
18194 objext=$objext
18196 # Code to be used in simple compile tests
18197 lt_simple_compile_test_code="int some_variable = 0;"
18199 # Code to be used in simple link tests
18200 lt_simple_link_test_code='int main(){return(0);}'
18208 # If no C compiler was specified, use CC.
18209 LTCC=${LTCC-"$CC"}
18211 # If no C compiler flags were specified, use CFLAGS.
18212 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18214 # Allow CC to be a program name with arguments.
18215 compiler=$CC
18217 # Save the default compiler, since it gets overwritten when the other
18218 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
18219 compiler_DEFAULT=$CC
18221 # save warnings/boilerplate of simple test code
18222 ac_outfile=conftest.$ac_objext
18223 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18224 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18225 _lt_compiler_boilerplate=`cat conftest.err`
18226 $RM -r conftest*
18228 ac_outfile=conftest.$ac_objext
18229 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18230 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18231 _lt_linker_boilerplate=`cat conftest.err`
18232 $RM -r conftest*
18235 ## CAVEAT EMPTOR:
18236 ## There is no encapsulation within the following macros, do not change
18237 ## the running order or otherwise move them around unless you know exactly
18238 ## what you are doing...
18239 if test -n "$compiler"; then
18241 lt_prog_compiler_no_builtin_flag=
18243 if test "$GCC" = yes; then
18244   case $cc_basename in
18245   nvcc*)
18246     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
18247   *)
18248     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
18249   esac
18251   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18252 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18253 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18254   echo $ECHO_N "(cached) $ECHO_C" >&6
18255 else
18256   lt_cv_prog_compiler_rtti_exceptions=no
18257    ac_outfile=conftest.$ac_objext
18258    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18259    lt_compiler_flag="-fno-rtti -fno-exceptions"
18260    # Insert the option either (1) after the last *FLAGS variable, or
18261    # (2) before a word containing "conftest.", or (3) at the end.
18262    # Note that $ac_compile itself does not contain backslashes and begins
18263    # with a dollar sign (not a hyphen), so the echo should work correctly.
18264    # The option is referenced via a variable to avoid confusing sed.
18265    lt_compile=`echo "$ac_compile" | $SED \
18266    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18267    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18268    -e 's:$: $lt_compiler_flag:'`
18269    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18270    (eval "$lt_compile" 2>conftest.err)
18271    ac_status=$?
18272    cat conftest.err >&5
18273    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274    if (exit $ac_status) && test -s "$ac_outfile"; then
18275      # The compiler can only warn and ignore the option if not recognized
18276      # So say no if there are warnings other than the usual output.
18277      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18278      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18279      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18280        lt_cv_prog_compiler_rtti_exceptions=yes
18281      fi
18282    fi
18283    $RM -r conftest*
18286 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18287 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18289 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18290     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
18291 else
18292     :
18302   lt_prog_compiler_wl=
18303 lt_prog_compiler_pic=
18304 lt_prog_compiler_static=
18306 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18307 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18309   if test "$GCC" = yes; then
18310     lt_prog_compiler_wl='-Wl,'
18311     lt_prog_compiler_static='-static'
18313     case $host_os in
18314       aix*)
18315       # All AIX code is PIC.
18316       if test "$host_cpu" = ia64; then
18317         # AIX 5 now supports IA64 processor
18318         lt_prog_compiler_static='-Bstatic'
18319       fi
18320       ;;
18322     amigaos*)
18323       case $host_cpu in
18324       powerpc)
18325             # see comment about AmigaOS4 .so support
18326             lt_prog_compiler_pic='-fPIC'
18327         ;;
18328       m68k)
18329             # FIXME: we need at least 68020 code to build shared libraries, but
18330             # adding the `-m68020' flag to GCC prevents building anything better,
18331             # like `-m68040'.
18332             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
18333         ;;
18334       esac
18335       ;;
18337     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18338       # PIC is the default for these OSes.
18339       ;;
18341     mingw* | cygwin* | pw32* | os2* | cegcc*)
18342       # This hack is so that the source file can tell whether it is being
18343       # built for inclusion in a dll (and should export symbols for example).
18344       # Although the cygwin gcc ignores -fPIC, still need this for old-style
18345       # (--disable-auto-import) libraries
18346       lt_prog_compiler_pic='-DDLL_EXPORT'
18347       ;;
18349     darwin* | rhapsody*)
18350       # PIC is the default on this platform
18351       # Common symbols not allowed in MH_DYLIB files
18352       lt_prog_compiler_pic='-fno-common'
18353       ;;
18355     haiku*)
18356       # PIC is the default for Haiku.
18357       # The "-static" flag exists, but is broken.
18358       lt_prog_compiler_static=
18359       ;;
18361     hpux*)
18362       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18363       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
18364       # sets the default TLS model and affects inlining.
18365       case $host_cpu in
18366       hppa*64*)
18367         # +Z the default
18368         ;;
18369       *)
18370         lt_prog_compiler_pic='-fPIC'
18371         ;;
18372       esac
18373       ;;
18375     interix[3-9]*)
18376       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18377       # Instead, we relocate shared libraries at runtime.
18378       ;;
18380     msdosdjgpp*)
18381       # Just because we use GCC doesn't mean we suddenly get shared libraries
18382       # on systems that don't support them.
18383       lt_prog_compiler_can_build_shared=no
18384       enable_shared=no
18385       ;;
18387     *nto* | *qnx*)
18388       # QNX uses GNU C++, but need to define -shared option too, otherwise
18389       # it will coredump.
18390       lt_prog_compiler_pic='-fPIC -shared'
18391       ;;
18393     sysv4*MP*)
18394       if test -d /usr/nec; then
18395         lt_prog_compiler_pic=-Kconform_pic
18396       fi
18397       ;;
18399     *)
18400       lt_prog_compiler_pic='-fPIC'
18401       ;;
18402     esac
18404     case $cc_basename in
18405     nvcc*) # Cuda Compiler Driver 2.2
18406       lt_prog_compiler_wl='-Xlinker '
18407       lt_prog_compiler_pic='-Xcompiler -fPIC'
18408       ;;
18409     esac
18410   else
18411     # PORTME Check for flag to pass linker flags through the system compiler.
18412     case $host_os in
18413     aix*)
18414       lt_prog_compiler_wl='-Wl,'
18415       if test "$host_cpu" = ia64; then
18416         # AIX 5 now supports IA64 processor
18417         lt_prog_compiler_static='-Bstatic'
18418       else
18419         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
18420       fi
18421       ;;
18423     mingw* | cygwin* | pw32* | os2* | cegcc*)
18424       # This hack is so that the source file can tell whether it is being
18425       # built for inclusion in a dll (and should export symbols for example).
18426       lt_prog_compiler_pic='-DDLL_EXPORT'
18427       ;;
18429     hpux9* | hpux10* | hpux11*)
18430       lt_prog_compiler_wl='-Wl,'
18431       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18432       # not for PA HP-UX.
18433       case $host_cpu in
18434       hppa*64*|ia64*)
18435         # +Z the default
18436         ;;
18437       *)
18438         lt_prog_compiler_pic='+Z'
18439         ;;
18440       esac
18441       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18442       lt_prog_compiler_static='${wl}-a ${wl}archive'
18443       ;;
18445     irix5* | irix6* | nonstopux*)
18446       lt_prog_compiler_wl='-Wl,'
18447       # PIC (with -KPIC) is the default.
18448       lt_prog_compiler_static='-non_shared'
18449       ;;
18451     linux* | k*bsd*-gnu | kopensolaris*-gnu)
18452       case $cc_basename in
18453       # old Intel for x86_64 which still supported -KPIC.
18454       ecc*)
18455         lt_prog_compiler_wl='-Wl,'
18456         lt_prog_compiler_pic='-KPIC'
18457         lt_prog_compiler_static='-static'
18458         ;;
18459       # icc used to be incompatible with GCC.
18460       # ICC 10 doesn't accept -KPIC any more.
18461       icc* | ifort*)
18462         lt_prog_compiler_wl='-Wl,'
18463         lt_prog_compiler_pic='-fPIC'
18464         lt_prog_compiler_static='-static'
18465         ;;
18466       # Lahey Fortran 8.1.
18467       lf95*)
18468         lt_prog_compiler_wl='-Wl,'
18469         lt_prog_compiler_pic='--shared'
18470         lt_prog_compiler_static='--static'
18471         ;;
18472       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
18473         # Portland Group compilers (*not* the Pentium gcc compiler,
18474         # which looks to be a dead project)
18475         lt_prog_compiler_wl='-Wl,'
18476         lt_prog_compiler_pic='-fpic'
18477         lt_prog_compiler_static='-Bstatic'
18478         ;;
18479       ccc*)
18480         lt_prog_compiler_wl='-Wl,'
18481         # All Alpha code is PIC.
18482         lt_prog_compiler_static='-non_shared'
18483         ;;
18484       xl* | bgxl* | bgf* | mpixl*)
18485         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
18486         lt_prog_compiler_wl='-Wl,'
18487         lt_prog_compiler_pic='-qpic'
18488         lt_prog_compiler_static='-qstaticlink'
18489         ;;
18490       *)
18491         case `$CC -V 2>&1 | sed 5q` in
18492         *Sun\ F* | *Sun*Fortran*)
18493           # Sun Fortran 8.3 passes all unrecognized flags to the linker
18494           lt_prog_compiler_pic='-KPIC'
18495           lt_prog_compiler_static='-Bstatic'
18496           lt_prog_compiler_wl=''
18497           ;;
18498         *Sun\ C*)
18499           # Sun C 5.9
18500           lt_prog_compiler_pic='-KPIC'
18501           lt_prog_compiler_static='-Bstatic'
18502           lt_prog_compiler_wl='-Wl,'
18503           ;;
18504         esac
18505         ;;
18506       esac
18507       ;;
18509     newsos6)
18510       lt_prog_compiler_pic='-KPIC'
18511       lt_prog_compiler_static='-Bstatic'
18512       ;;
18514     *nto* | *qnx*)
18515       # QNX uses GNU C++, but need to define -shared option too, otherwise
18516       # it will coredump.
18517       lt_prog_compiler_pic='-fPIC -shared'
18518       ;;
18520     osf3* | osf4* | osf5*)
18521       lt_prog_compiler_wl='-Wl,'
18522       # All OSF/1 code is PIC.
18523       lt_prog_compiler_static='-non_shared'
18524       ;;
18526     rdos*)
18527       lt_prog_compiler_static='-non_shared'
18528       ;;
18530     solaris*)
18531       lt_prog_compiler_pic='-KPIC'
18532       lt_prog_compiler_static='-Bstatic'
18533       case $cc_basename in
18534       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
18535         lt_prog_compiler_wl='-Qoption ld ';;
18536       *)
18537         lt_prog_compiler_wl='-Wl,';;
18538       esac
18539       ;;
18541     sunos4*)
18542       lt_prog_compiler_wl='-Qoption ld '
18543       lt_prog_compiler_pic='-PIC'
18544       lt_prog_compiler_static='-Bstatic'
18545       ;;
18547     sysv4 | sysv4.2uw2* | sysv4.3*)
18548       lt_prog_compiler_wl='-Wl,'
18549       lt_prog_compiler_pic='-KPIC'
18550       lt_prog_compiler_static='-Bstatic'
18551       ;;
18553     sysv4*MP*)
18554       if test -d /usr/nec ;then
18555         lt_prog_compiler_pic='-Kconform_pic'
18556         lt_prog_compiler_static='-Bstatic'
18557       fi
18558       ;;
18560     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18561       lt_prog_compiler_wl='-Wl,'
18562       lt_prog_compiler_pic='-KPIC'
18563       lt_prog_compiler_static='-Bstatic'
18564       ;;
18566     unicos*)
18567       lt_prog_compiler_wl='-Wl,'
18568       lt_prog_compiler_can_build_shared=no
18569       ;;
18571     uts4*)
18572       lt_prog_compiler_pic='-pic'
18573       lt_prog_compiler_static='-Bstatic'
18574       ;;
18576     *)
18577       lt_prog_compiler_can_build_shared=no
18578       ;;
18579     esac
18580   fi
18582 case $host_os in
18583   # For platforms which do not support PIC, -DPIC is meaningless:
18584   *djgpp*)
18585     lt_prog_compiler_pic=
18586     ;;
18587   *)
18588     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
18589     ;;
18590 esac
18591 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
18592 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
18600 # Check to make sure the PIC flag actually works.
18602 if test -n "$lt_prog_compiler_pic"; then
18603   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
18604 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
18605 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
18606   echo $ECHO_N "(cached) $ECHO_C" >&6
18607 else
18608   lt_cv_prog_compiler_pic_works=no
18609    ac_outfile=conftest.$ac_objext
18610    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18611    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
18612    # Insert the option either (1) after the last *FLAGS variable, or
18613    # (2) before a word containing "conftest.", or (3) at the end.
18614    # Note that $ac_compile itself does not contain backslashes and begins
18615    # with a dollar sign (not a hyphen), so the echo should work correctly.
18616    # The option is referenced via a variable to avoid confusing sed.
18617    lt_compile=`echo "$ac_compile" | $SED \
18618    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18619    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18620    -e 's:$: $lt_compiler_flag:'`
18621    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18622    (eval "$lt_compile" 2>conftest.err)
18623    ac_status=$?
18624    cat conftest.err >&5
18625    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626    if (exit $ac_status) && test -s "$ac_outfile"; then
18627      # The compiler can only warn and ignore the option if not recognized
18628      # So say no if there are warnings other than the usual output.
18629      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18630      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18631      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18632        lt_cv_prog_compiler_pic_works=yes
18633      fi
18634    fi
18635    $RM -r conftest*
18638 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
18639 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
18641 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
18642     case $lt_prog_compiler_pic in
18643      "" | " "*) ;;
18644      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
18645      esac
18646 else
18647     lt_prog_compiler_pic=
18648      lt_prog_compiler_can_build_shared=no
18659 # Check to make sure the static flag actually works.
18661 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
18662 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18663 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18664 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
18665   echo $ECHO_N "(cached) $ECHO_C" >&6
18666 else
18667   lt_cv_prog_compiler_static_works=no
18668    save_LDFLAGS="$LDFLAGS"
18669    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18670    echo "$lt_simple_link_test_code" > conftest.$ac_ext
18671    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18672      # The linker can only warn and ignore the option if not recognized
18673      # So say no if there are warnings
18674      if test -s conftest.err; then
18675        # Append any errors to the config.log.
18676        cat conftest.err 1>&5
18677        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18678        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18679        if diff conftest.exp conftest.er2 >/dev/null; then
18680          lt_cv_prog_compiler_static_works=yes
18681        fi
18682      else
18683        lt_cv_prog_compiler_static_works=yes
18684      fi
18685    fi
18686    $RM -r conftest*
18687    LDFLAGS="$save_LDFLAGS"
18690 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
18691 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
18693 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
18694     :
18695 else
18696     lt_prog_compiler_static=
18705   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18706 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18707 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
18708   echo $ECHO_N "(cached) $ECHO_C" >&6
18709 else
18710   lt_cv_prog_compiler_c_o=no
18711    $RM -r conftest 2>/dev/null
18712    mkdir conftest
18713    cd conftest
18714    mkdir out
18715    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18717    lt_compiler_flag="-o out/conftest2.$ac_objext"
18718    # Insert the option either (1) after the last *FLAGS variable, or
18719    # (2) before a word containing "conftest.", or (3) at the end.
18720    # Note that $ac_compile itself does not contain backslashes and begins
18721    # with a dollar sign (not a hyphen), so the echo should work correctly.
18722    lt_compile=`echo "$ac_compile" | $SED \
18723    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18724    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18725    -e 's:$: $lt_compiler_flag:'`
18726    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18727    (eval "$lt_compile" 2>out/conftest.err)
18728    ac_status=$?
18729    cat out/conftest.err >&5
18730    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18732    then
18733      # The compiler can only warn and ignore the option if not recognized
18734      # So say no if there are warnings
18735      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18736      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18737      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18738        lt_cv_prog_compiler_c_o=yes
18739      fi
18740    fi
18741    chmod u+w . 2>&5
18742    $RM -r conftest*
18743    # SGI C++ compiler will create directory out/ii_files/ for
18744    # template instantiation
18745    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18746    $RM out/* && rmdir out
18747    cd ..
18748    $RM -r conftest
18749    $RM -r conftest*
18752 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
18753 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
18760   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18761 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18762 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
18763   echo $ECHO_N "(cached) $ECHO_C" >&6
18764 else
18765   lt_cv_prog_compiler_c_o=no
18766    $RM -r conftest 2>/dev/null
18767    mkdir conftest
18768    cd conftest
18769    mkdir out
18770    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18772    lt_compiler_flag="-o out/conftest2.$ac_objext"
18773    # Insert the option either (1) after the last *FLAGS variable, or
18774    # (2) before a word containing "conftest.", or (3) at the end.
18775    # Note that $ac_compile itself does not contain backslashes and begins
18776    # with a dollar sign (not a hyphen), so the echo should work correctly.
18777    lt_compile=`echo "$ac_compile" | $SED \
18778    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18779    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18780    -e 's:$: $lt_compiler_flag:'`
18781    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18782    (eval "$lt_compile" 2>out/conftest.err)
18783    ac_status=$?
18784    cat out/conftest.err >&5
18785    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18787    then
18788      # The compiler can only warn and ignore the option if not recognized
18789      # So say no if there are warnings
18790      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18791      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18792      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18793        lt_cv_prog_compiler_c_o=yes
18794      fi
18795    fi
18796    chmod u+w . 2>&5
18797    $RM -r conftest*
18798    # SGI C++ compiler will create directory out/ii_files/ for
18799    # template instantiation
18800    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18801    $RM out/* && rmdir out
18802    cd ..
18803    $RM -r conftest
18804    $RM -r conftest*
18807 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
18808 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
18813 hard_links="nottested"
18814 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
18815   # do not overwrite the value of need_locks provided by the user
18816   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18817 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18818   hard_links=yes
18819   $RM -r conftest*
18820   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18821   touch conftest.a
18822   ln conftest.a conftest.b 2>&5 || hard_links=no
18823   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18824   { echo "$as_me:$LINENO: result: $hard_links" >&5
18825 echo "${ECHO_T}$hard_links" >&6; }
18826   if test "$hard_links" = no; then
18827     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18828 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18829     need_locks=warn
18830   fi
18831 else
18832   need_locks=no
18840   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18841 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18843   runpath_var=
18844   allow_undefined_flag=
18845   always_export_symbols=no
18846   archive_cmds=
18847   archive_expsym_cmds=
18848   compiler_needs_object=no
18849   enable_shared_with_static_runtimes=no
18850   export_dynamic_flag_spec=
18851   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18852   hardcode_automatic=no
18853   hardcode_direct=no
18854   hardcode_direct_absolute=no
18855   hardcode_libdir_flag_spec=
18856   hardcode_libdir_flag_spec_ld=
18857   hardcode_libdir_separator=
18858   hardcode_minus_L=no
18859   hardcode_shlibpath_var=unsupported
18860   inherit_rpath=no
18861   link_all_deplibs=unknown
18862   module_cmds=
18863   module_expsym_cmds=
18864   old_archive_from_new_cmds=
18865   old_archive_from_expsyms_cmds=
18866   thread_safe_flag_spec=
18867   whole_archive_flag_spec=
18868   # include_expsyms should be a list of space-separated symbols to be *always*
18869   # included in the symbol list
18870   include_expsyms=
18871   # exclude_expsyms can be an extended regexp of symbols to exclude
18872   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18873   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18874   # as well as any symbol that contains `d'.
18875   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18876   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18877   # platforms (ab)use it in PIC code, but their linkers get confused if
18878   # the symbol is explicitly referenced.  Since portable code cannot
18879   # rely on this symbol name, it's probably fine to never include it in
18880   # preloaded symbol tables.
18881   # Exclude shared library initialization/finalization symbols.
18882   extract_expsyms_cmds=
18884   case $host_os in
18885   cygwin* | mingw* | pw32* | cegcc*)
18886     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18887     # When not using gcc, we currently assume that we are using
18888     # Microsoft Visual C++.
18889     if test "$GCC" != yes; then
18890       with_gnu_ld=no
18891     fi
18892     ;;
18893   interix*)
18894     # we just hope/assume this is gcc and not c89 (= MSVC++)
18895     with_gnu_ld=yes
18896     ;;
18897   openbsd*)
18898     with_gnu_ld=no
18899     ;;
18900   esac
18902   ld_shlibs=yes
18904   # On some targets, GNU ld is compatible enough with the native linker
18905   # that we're better off using the native interface for both.
18906   lt_use_gnu_ld_interface=no
18907   if test "$with_gnu_ld" = yes; then
18908     case $host_os in
18909       aix*)
18910         # The AIX port of GNU ld has always aspired to compatibility
18911         # with the native linker.  However, as the warning in the GNU ld
18912         # block says, versions before 2.19.5* couldn't really create working
18913         # shared libraries, regardless of the interface used.
18914         case `$LD -v 2>&1` in
18915           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
18916           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
18917           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
18918           *)
18919             lt_use_gnu_ld_interface=yes
18920             ;;
18921         esac
18922         ;;
18923       *)
18924         lt_use_gnu_ld_interface=yes
18925         ;;
18926     esac
18927   fi
18929   if test "$lt_use_gnu_ld_interface" = yes; then
18930     # If archive_cmds runs LD, not CC, wlarc should be empty
18931     wlarc='${wl}'
18933     # Set some defaults for GNU ld with shared library support. These
18934     # are reset later if shared libraries are not supported. Putting them
18935     # here allows them to be overridden if necessary.
18936     runpath_var=LD_RUN_PATH
18937     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18938     export_dynamic_flag_spec='${wl}--export-dynamic'
18939     # ancient GNU ld didn't support --whole-archive et. al.
18940     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
18941       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18942     else
18943       whole_archive_flag_spec=
18944     fi
18945     supports_anon_versioning=no
18946     case `$LD -v 2>&1` in
18947       *GNU\ gold*) supports_anon_versioning=yes ;;
18948       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18949       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18950       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18951       *\ 2.11.*) ;; # other 2.11 versions
18952       *) supports_anon_versioning=yes ;;
18953     esac
18955     # See if GNU ld supports shared libraries.
18956     case $host_os in
18957     aix[3-9]*)
18958       # On AIX/PPC, the GNU linker is very broken
18959       if test "$host_cpu" != ia64; then
18960         ld_shlibs=no
18961         cat <<_LT_EOF 1>&2
18963 *** Warning: the GNU linker, at least up to release 2.19, is reported
18964 *** to be unable to reliably create shared libraries on AIX.
18965 *** Therefore, libtool is disabling shared libraries support.  If you
18966 *** really care for shared libraries, you may want to install binutils
18967 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
18968 *** You will then need to restart the configuration process.
18970 _LT_EOF
18971       fi
18972       ;;
18974     amigaos*)
18975       case $host_cpu in
18976       powerpc)
18977             # see comment about AmigaOS4 .so support
18978             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18979             archive_expsym_cmds=''
18980         ;;
18981       m68k)
18982             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)'
18983             hardcode_libdir_flag_spec='-L$libdir'
18984             hardcode_minus_L=yes
18985         ;;
18986       esac
18987       ;;
18989     beos*)
18990       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18991         allow_undefined_flag=unsupported
18992         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18993         # support --undefined.  This deserves some investigation.  FIXME
18994         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18995       else
18996         ld_shlibs=no
18997       fi
18998       ;;
19000     cygwin* | mingw* | pw32* | cegcc*)
19001       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
19002       # as there is no search path for DLLs.
19003       hardcode_libdir_flag_spec='-L$libdir'
19004       export_dynamic_flag_spec='${wl}--export-all-symbols'
19005       allow_undefined_flag=unsupported
19006       always_export_symbols=no
19007       enable_shared_with_static_runtimes=yes
19008       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19010       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19011         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19012         # If the export-symbols file already is a .def file (1st line
19013         # is EXPORTS), use it as is; otherwise, prepend...
19014         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19015           cp $export_symbols $output_objdir/$soname.def;
19016         else
19017           echo EXPORTS > $output_objdir/$soname.def;
19018           cat $export_symbols >> $output_objdir/$soname.def;
19019         fi~
19020         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19021       else
19022         ld_shlibs=no
19023       fi
19024       ;;
19026     haiku*)
19027       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19028       link_all_deplibs=yes
19029       ;;
19031     interix[3-9]*)
19032       hardcode_direct=no
19033       hardcode_shlibpath_var=no
19034       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19035       export_dynamic_flag_spec='${wl}-E'
19036       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19037       # Instead, shared libraries are loaded at an image base (0x10000000 by
19038       # default) and relocated if they conflict, which is a slow very memory
19039       # consuming and fragmenting process.  To avoid this, we pick a random,
19040       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19041       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19042       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19043       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'
19044       ;;
19046     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
19047       tmp_diet=no
19048       if test "$host_os" = linux-dietlibc; then
19049         case $cc_basename in
19050           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
19051         esac
19052       fi
19053       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
19054          && test "$tmp_diet" = no
19055       then
19056         tmp_addflag=
19057         tmp_sharedflag='-shared'
19058         case $cc_basename,$host_cpu in
19059         pgcc*)                          # Portland Group C compiler
19060           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'
19061           tmp_addflag=' $pic_flag'
19062           ;;
19063         pgf77* | pgf90* | pgf95* | pgfortran*)
19064                                         # Portland Group f77 and f90 compilers
19065           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'
19066           tmp_addflag=' $pic_flag -Mnomain' ;;
19067         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
19068           tmp_addflag=' -i_dynamic' ;;
19069         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
19070           tmp_addflag=' -i_dynamic -nofor_main' ;;
19071         ifc* | ifort*)                  # Intel Fortran compiler
19072           tmp_addflag=' -nofor_main' ;;
19073         lf95*)                          # Lahey Fortran 8.1
19074           whole_archive_flag_spec=
19075           tmp_sharedflag='--shared' ;;
19076         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
19077           tmp_sharedflag='-qmkshrobj'
19078           tmp_addflag= ;;
19079         nvcc*)  # Cuda Compiler Driver 2.2
19080           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'
19081           compiler_needs_object=yes
19082           ;;
19083         esac
19084         case `$CC -V 2>&1 | sed 5q` in
19085         *Sun\ C*)                       # Sun C 5.9
19086           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'
19087           compiler_needs_object=yes
19088           tmp_sharedflag='-G' ;;
19089         *Sun\ F*)                       # Sun Fortran 8.3
19090           tmp_sharedflag='-G' ;;
19091         esac
19092         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19094         if test "x$supports_anon_versioning" = xyes; then
19095           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19096             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19097             echo "local: *; };" >> $output_objdir/$libname.ver~
19098             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19099         fi
19101         case $cc_basename in
19102         xlf* | bgf* | bgxlf* | mpixlf*)
19103           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
19104           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
19105           hardcode_libdir_flag_spec=
19106           hardcode_libdir_flag_spec_ld='-rpath $libdir'
19107           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
19108           if test "x$supports_anon_versioning" = xyes; then
19109             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19110               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19111               echo "local: *; };" >> $output_objdir/$libname.ver~
19112               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
19113           fi
19114           ;;
19115         esac
19116       else
19117         ld_shlibs=no
19118       fi
19119       ;;
19121     netbsd*)
19122       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19123         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19124         wlarc=
19125       else
19126         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19127         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19128       fi
19129       ;;
19131     solaris*)
19132       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
19133         ld_shlibs=no
19134         cat <<_LT_EOF 1>&2
19136 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19137 *** create shared libraries on Solaris systems.  Therefore, libtool
19138 *** is disabling shared libraries support.  We urge you to upgrade GNU
19139 *** binutils to release 2.9.1 or newer.  Another option is to modify
19140 *** your PATH or compiler configuration so that the native linker is
19141 *** used, and then restart.
19143 _LT_EOF
19144       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19145         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19146         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19147       else
19148         ld_shlibs=no
19149       fi
19150       ;;
19152     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19153       case `$LD -v 2>&1` in
19154         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19155         ld_shlibs=no
19156         cat <<_LT_EOF 1>&2
19158 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19159 *** reliably create shared libraries on SCO systems.  Therefore, libtool
19160 *** is disabling shared libraries support.  We urge you to upgrade GNU
19161 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
19162 *** your PATH or compiler configuration so that the native linker is
19163 *** used, and then restart.
19165 _LT_EOF
19166         ;;
19167         *)
19168           # For security reasons, it is highly recommended that you always
19169           # use absolute paths for naming shared libraries, and exclude the
19170           # DT_RUNPATH tag from executables and libraries.  But doing so
19171           # requires that you compile everything twice, which is a pain.
19172           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19173             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19174             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19175             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19176           else
19177             ld_shlibs=no
19178           fi
19179         ;;
19180       esac
19181       ;;
19183     sunos4*)
19184       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19185       wlarc=
19186       hardcode_direct=yes
19187       hardcode_shlibpath_var=no
19188       ;;
19190     *)
19191       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19192         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19193         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19194       else
19195         ld_shlibs=no
19196       fi
19197       ;;
19198     esac
19200     if test "$ld_shlibs" = no; then
19201       runpath_var=
19202       hardcode_libdir_flag_spec=
19203       export_dynamic_flag_spec=
19204       whole_archive_flag_spec=
19205     fi
19206   else
19207     # PORTME fill in a description of your system's linker (not GNU ld)
19208     case $host_os in
19209     aix3*)
19210       allow_undefined_flag=unsupported
19211       always_export_symbols=yes
19212       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'
19213       # Note: this linker hardcodes the directories in LIBPATH if there
19214       # are no directories specified by -L.
19215       hardcode_minus_L=yes
19216       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19217         # Neither direct hardcoding nor static linking is supported with a
19218         # broken collect2.
19219         hardcode_direct=unsupported
19220       fi
19221       ;;
19223     aix[4-9]*)
19224       if test "$host_cpu" = ia64; then
19225         # On IA64, the linker does run time linking by default, so we don't
19226         # have to do anything special.
19227         aix_use_runtimelinking=no
19228         exp_sym_flag='-Bexport'
19229         no_entry_flag=""
19230       else
19231         # If we're using GNU nm, then we don't want the "-C" option.
19232         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19233         # Also, AIX nm treats weak defined symbols like other global
19234         # defined symbols, whereas GNU nm marks them as "W".
19235         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19236           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'
19237         else
19238           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'
19239         fi
19240         aix_use_runtimelinking=no
19242         # Test if we are trying to use run time linking or normal
19243         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19244         # need to do runtime linking.
19245         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19246           for ld_flag in $LDFLAGS; do
19247           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19248             aix_use_runtimelinking=yes
19249             break
19250           fi
19251           done
19252           ;;
19253         esac
19255         exp_sym_flag='-bexport'
19256         no_entry_flag='-bnoentry'
19257       fi
19259       # When large executables or shared objects are built, AIX ld can
19260       # have problems creating the table of contents.  If linking a library
19261       # or program results in "error TOC overflow" add -mminimal-toc to
19262       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19263       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19265       archive_cmds=''
19266       hardcode_direct=yes
19267       hardcode_direct_absolute=yes
19268       hardcode_libdir_separator=':'
19269       link_all_deplibs=yes
19270       file_list_spec='${wl}-f,'
19272       if test "$GCC" = yes; then
19273         case $host_os in aix4.[012]|aix4.[012].*)
19274         # We only want to do this on AIX 4.2 and lower, the check
19275         # below for broken collect2 doesn't work under 4.3+
19276           collect2name=`${CC} -print-prog-name=collect2`
19277           if test -f "$collect2name" &&
19278            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19279           then
19280           # We have reworked collect2
19281           :
19282           else
19283           # We have old collect2
19284           hardcode_direct=unsupported
19285           # It fails to find uninstalled libraries when the uninstalled
19286           # path is not listed in the libpath.  Setting hardcode_minus_L
19287           # to unsupported forces relinking
19288           hardcode_minus_L=yes
19289           hardcode_libdir_flag_spec='-L$libdir'
19290           hardcode_libdir_separator=
19291           fi
19292           ;;
19293         esac
19294         shared_flag='-shared'
19295         if test "$aix_use_runtimelinking" = yes; then
19296           shared_flag="$shared_flag "'${wl}-G'
19297         fi
19298       else
19299         # not using gcc
19300         if test "$host_cpu" = ia64; then
19301         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19302         # chokes on -Wl,-G. The following line is correct:
19303           shared_flag='-G'
19304         else
19305           if test "$aix_use_runtimelinking" = yes; then
19306             shared_flag='${wl}-G'
19307           else
19308             shared_flag='${wl}-bM:SRE'
19309           fi
19310         fi
19311       fi
19313       export_dynamic_flag_spec='${wl}-bexpall'
19314       # It seems that -bexpall does not export symbols beginning with
19315       # underscore (_), so it is better to generate a list of symbols to export.
19316       always_export_symbols=yes
19317       if test "$aix_use_runtimelinking" = yes; then
19318         # Warning - without using the other runtime loading flags (-brtl),
19319         # -berok will link without error, but may produce a broken library.
19320         allow_undefined_flag='-berok'
19321         # Determine the default libpath from the value encoded in an
19322         # empty executable.
19323         cat >conftest.$ac_ext <<_ACEOF
19324 /* confdefs.h.  */
19325 _ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h.  */
19330 int
19331 main ()
19334   ;
19335   return 0;
19337 _ACEOF
19338 rm -f conftest.$ac_objext conftest$ac_exeext
19339 if { (ac_try="$ac_link"
19340 case "(($ac_try" in
19341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19342   *) ac_try_echo=$ac_try;;
19343 esac
19344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19345   (eval "$ac_link") 2>conftest.er1
19346   ac_status=$?
19347   grep -v '^ *+' conftest.er1 >conftest.err
19348   rm -f conftest.er1
19349   cat conftest.err >&5
19350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351   (exit $ac_status); } && {
19352          test -z "$ac_c_werror_flag" ||
19353          test ! -s conftest.err
19354        } && test -s conftest$ac_exeext &&
19355        $as_test_x conftest$ac_exeext; then
19357 lt_aix_libpath_sed='
19358     /Import File Strings/,/^$/ {
19359         /^0/ {
19360             s/^0  *\(.*\)$/\1/
19361             p
19362         }
19363     }'
19364 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19365 # Check for a 64-bit object if we didn't find anything.
19366 if test -z "$aix_libpath"; then
19367   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19369 else
19370   echo "$as_me: failed program was:" >&5
19371 sed 's/^/| /' conftest.$ac_ext >&5
19376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19377       conftest$ac_exeext conftest.$ac_ext
19378 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19380         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19381         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"
19382       else
19383         if test "$host_cpu" = ia64; then
19384           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
19385           allow_undefined_flag="-z nodefs"
19386           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"
19387         else
19388          # Determine the default libpath from the value encoded in an
19389          # empty executable.
19390          cat >conftest.$ac_ext <<_ACEOF
19391 /* confdefs.h.  */
19392 _ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h.  */
19397 int
19398 main ()
19401   ;
19402   return 0;
19404 _ACEOF
19405 rm -f conftest.$ac_objext conftest$ac_exeext
19406 if { (ac_try="$ac_link"
19407 case "(($ac_try" in
19408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19409   *) ac_try_echo=$ac_try;;
19410 esac
19411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19412   (eval "$ac_link") 2>conftest.er1
19413   ac_status=$?
19414   grep -v '^ *+' conftest.er1 >conftest.err
19415   rm -f conftest.er1
19416   cat conftest.err >&5
19417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418   (exit $ac_status); } && {
19419          test -z "$ac_c_werror_flag" ||
19420          test ! -s conftest.err
19421        } && test -s conftest$ac_exeext &&
19422        $as_test_x conftest$ac_exeext; then
19424 lt_aix_libpath_sed='
19425     /Import File Strings/,/^$/ {
19426         /^0/ {
19427             s/^0  *\(.*\)$/\1/
19428             p
19429         }
19430     }'
19431 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19432 # Check for a 64-bit object if we didn't find anything.
19433 if test -z "$aix_libpath"; then
19434   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19436 else
19437   echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.$ac_ext >&5
19443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19444       conftest$ac_exeext conftest.$ac_ext
19445 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19447          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19448           # Warning - without using the other run time loading flags,
19449           # -berok will link without error, but may produce a broken library.
19450           no_undefined_flag=' ${wl}-bernotok'
19451           allow_undefined_flag=' ${wl}-berok'
19452           if test "$with_gnu_ld" = yes; then
19453             # We only use this code for GNU lds that support --whole-archive.
19454             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19455           else
19456             # Exported symbols can be pulled into shared objects from archives
19457             whole_archive_flag_spec='$convenience'
19458           fi
19459           archive_cmds_need_lc=yes
19460           # This is similar to how AIX traditionally builds its shared libraries.
19461           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'
19462         fi
19463       fi
19464       ;;
19466     amigaos*)
19467       case $host_cpu in
19468       powerpc)
19469             # see comment about AmigaOS4 .so support
19470             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19471             archive_expsym_cmds=''
19472         ;;
19473       m68k)
19474             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)'
19475             hardcode_libdir_flag_spec='-L$libdir'
19476             hardcode_minus_L=yes
19477         ;;
19478       esac
19479       ;;
19481     bsdi[45]*)
19482       export_dynamic_flag_spec=-rdynamic
19483       ;;
19485     cygwin* | mingw* | pw32* | cegcc*)
19486       # When not using gcc, we currently assume that we are using
19487       # Microsoft Visual C++.
19488       # hardcode_libdir_flag_spec is actually meaningless, as there is
19489       # no search path for DLLs.
19490       hardcode_libdir_flag_spec=' '
19491       allow_undefined_flag=unsupported
19492       # Tell ltmain to make .lib files, not .a files.
19493       libext=lib
19494       # Tell ltmain to make .dll files, not .so files.
19495       shrext_cmds=".dll"
19496       # FIXME: Setting linknames here is a bad hack.
19497       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
19498       # The linker will automatically build a .lib file if we build a DLL.
19499       old_archive_from_new_cmds='true'
19500       # FIXME: Should let the user specify the lib program.
19501       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
19502       fix_srcfile_path='`cygpath -w "$srcfile"`'
19503       enable_shared_with_static_runtimes=yes
19504       ;;
19506     darwin* | rhapsody*)
19509   archive_cmds_need_lc=no
19510   hardcode_direct=no
19511   hardcode_automatic=yes
19512   hardcode_shlibpath_var=unsupported
19513   if test "$lt_cv_ld_force_load" = "yes"; then
19514     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\"`'
19515   else
19516     whole_archive_flag_spec=''
19517   fi
19518   link_all_deplibs=yes
19519   allow_undefined_flag="$_lt_dar_allow_undefined"
19520   case $cc_basename in
19521      ifort*) _lt_dar_can_shared=yes ;;
19522      *) _lt_dar_can_shared=$GCC ;;
19523   esac
19524   if test "$_lt_dar_can_shared" = "yes"; then
19525     output_verbose_link_cmd=func_echo_all
19526     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19527     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19528     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}"
19529     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}"
19531   else
19532   ld_shlibs=no
19533   fi
19535       ;;
19537     dgux*)
19538       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19539       hardcode_libdir_flag_spec='-L$libdir'
19540       hardcode_shlibpath_var=no
19541       ;;
19543     freebsd1*)
19544       ld_shlibs=no
19545       ;;
19547     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19548     # support.  Future versions do this automatically, but an explicit c++rt0.o
19549     # does not break anything, and helps significantly (at the cost of a little
19550     # extra space).
19551     freebsd2.2*)
19552       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19553       hardcode_libdir_flag_spec='-R$libdir'
19554       hardcode_direct=yes
19555       hardcode_shlibpath_var=no
19556       ;;
19558     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19559     freebsd2*)
19560       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19561       hardcode_direct=yes
19562       hardcode_minus_L=yes
19563       hardcode_shlibpath_var=no
19564       ;;
19566     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19567     freebsd* | dragonfly*)
19568       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19569       hardcode_libdir_flag_spec='-R$libdir'
19570       hardcode_direct=yes
19571       hardcode_shlibpath_var=no
19572       ;;
19574     hpux9*)
19575       if test "$GCC" = yes; then
19576         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19577       else
19578         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'
19579       fi
19580       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19581       hardcode_libdir_separator=:
19582       hardcode_direct=yes
19584       # hardcode_minus_L: Not really in the search PATH,
19585       # but as the default location of the library.
19586       hardcode_minus_L=yes
19587       export_dynamic_flag_spec='${wl}-E'
19588       ;;
19590     hpux10*)
19591       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
19592         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19593       else
19594         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19595       fi
19596       if test "$with_gnu_ld" = no; then
19597         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19598         hardcode_libdir_flag_spec_ld='+b $libdir'
19599         hardcode_libdir_separator=:
19600         hardcode_direct=yes
19601         hardcode_direct_absolute=yes
19602         export_dynamic_flag_spec='${wl}-E'
19603         # hardcode_minus_L: Not really in the search PATH,
19604         # but as the default location of the library.
19605         hardcode_minus_L=yes
19606       fi
19607       ;;
19609     hpux11*)
19610       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
19611         case $host_cpu in
19612         hppa*64*)
19613           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19614           ;;
19615         ia64*)
19616           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19617           ;;
19618         *)
19619           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19620           ;;
19621         esac
19622       else
19623         case $host_cpu in
19624         hppa*64*)
19625           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19626           ;;
19627         ia64*)
19628           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19629           ;;
19630         *)
19632           # Older versions of the 11.00 compiler do not understand -b yet
19633           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
19634           { echo "$as_me:$LINENO: checking if $CC understands -b" >&5
19635 echo $ECHO_N "checking if $CC understands -b... $ECHO_C" >&6; }
19636 if test "${lt_cv_prog_compiler__b+set}" = set; then
19637   echo $ECHO_N "(cached) $ECHO_C" >&6
19638 else
19639   lt_cv_prog_compiler__b=no
19640    save_LDFLAGS="$LDFLAGS"
19641    LDFLAGS="$LDFLAGS -b"
19642    echo "$lt_simple_link_test_code" > conftest.$ac_ext
19643    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19644      # The linker can only warn and ignore the option if not recognized
19645      # So say no if there are warnings
19646      if test -s conftest.err; then
19647        # Append any errors to the config.log.
19648        cat conftest.err 1>&5
19649        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19650        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19651        if diff conftest.exp conftest.er2 >/dev/null; then
19652          lt_cv_prog_compiler__b=yes
19653        fi
19654      else
19655        lt_cv_prog_compiler__b=yes
19656      fi
19657    fi
19658    $RM -r conftest*
19659    LDFLAGS="$save_LDFLAGS"
19662 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler__b" >&5
19663 echo "${ECHO_T}$lt_cv_prog_compiler__b" >&6; }
19665 if test x"$lt_cv_prog_compiler__b" = xyes; then
19666     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19667 else
19668     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19671           ;;
19672         esac
19673       fi
19674       if test "$with_gnu_ld" = no; then
19675         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19676         hardcode_libdir_separator=:
19678         case $host_cpu in
19679         hppa*64*|ia64*)
19680           hardcode_direct=no
19681           hardcode_shlibpath_var=no
19682           ;;
19683         *)
19684           hardcode_direct=yes
19685           hardcode_direct_absolute=yes
19686           export_dynamic_flag_spec='${wl}-E'
19688           # hardcode_minus_L: Not really in the search PATH,
19689           # but as the default location of the library.
19690           hardcode_minus_L=yes
19691           ;;
19692         esac
19693       fi
19694       ;;
19696     irix5* | irix6* | nonstopux*)
19697       if test "$GCC" = yes; then
19698         archive_cmds='$CC -shared $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'
19699         # Try to use the -exported_symbol ld option, if it does not
19700         # work, assume that -exports_file does not work either and
19701         # implicitly export all symbols.
19702         save_LDFLAGS="$LDFLAGS"
19703         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
19704         cat >conftest.$ac_ext <<_ACEOF
19705 int foo(void) {}
19706 _ACEOF
19707 rm -f conftest.$ac_objext conftest$ac_exeext
19708 if { (ac_try="$ac_link"
19709 case "(($ac_try" in
19710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711   *) ac_try_echo=$ac_try;;
19712 esac
19713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714   (eval "$ac_link") 2>conftest.er1
19715   ac_status=$?
19716   grep -v '^ *+' conftest.er1 >conftest.err
19717   rm -f conftest.er1
19718   cat conftest.err >&5
19719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720   (exit $ac_status); } && {
19721          test -z "$ac_c_werror_flag" ||
19722          test ! -s conftest.err
19723        } && test -s conftest$ac_exeext &&
19724        $as_test_x conftest$ac_exeext; then
19725   archive_expsym_cmds='$CC -shared $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'
19727 else
19728   echo "$as_me: failed program was:" >&5
19729 sed 's/^/| /' conftest.$ac_ext >&5
19734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19735       conftest$ac_exeext conftest.$ac_ext
19736         LDFLAGS="$save_LDFLAGS"
19737       else
19738         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'
19739         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'
19740       fi
19741       archive_cmds_need_lc='no'
19742       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19743       hardcode_libdir_separator=:
19744       inherit_rpath=yes
19745       link_all_deplibs=yes
19746       ;;
19748     netbsd*)
19749       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19750         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19751       else
19752         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19753       fi
19754       hardcode_libdir_flag_spec='-R$libdir'
19755       hardcode_direct=yes
19756       hardcode_shlibpath_var=no
19757       ;;
19759     newsos6)
19760       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19761       hardcode_direct=yes
19762       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19763       hardcode_libdir_separator=:
19764       hardcode_shlibpath_var=no
19765       ;;
19767     *nto* | *qnx*)
19768       ;;
19770     openbsd*)
19771       if test -f /usr/libexec/ld.so; then
19772         hardcode_direct=yes
19773         hardcode_shlibpath_var=no
19774         hardcode_direct_absolute=yes
19775         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19776           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19777           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19778           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19779           export_dynamic_flag_spec='${wl}-E'
19780         else
19781           case $host_os in
19782            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19783              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19784              hardcode_libdir_flag_spec='-R$libdir'
19785              ;;
19786            *)
19787              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19788              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19789              ;;
19790           esac
19791         fi
19792       else
19793         ld_shlibs=no
19794       fi
19795       ;;
19797     os2*)
19798       hardcode_libdir_flag_spec='-L$libdir'
19799       hardcode_minus_L=yes
19800       allow_undefined_flag=unsupported
19801       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'
19802       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19803       ;;
19805     osf3*)
19806       if test "$GCC" = yes; then
19807         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
19808         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'
19809       else
19810         allow_undefined_flag=' -expect_unresolved \*'
19811         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'
19812       fi
19813       archive_cmds_need_lc='no'
19814       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19815       hardcode_libdir_separator=:
19816       ;;
19818     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19819       if test "$GCC" = yes; then
19820         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
19821         archive_cmds='$CC -shared${allow_undefined_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'
19822         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19823       else
19824         allow_undefined_flag=' -expect_unresolved \*'
19825         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'
19826         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~
19827         $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'
19829         # Both c and cxx compiler support -rpath directly
19830         hardcode_libdir_flag_spec='-rpath $libdir'
19831       fi
19832       archive_cmds_need_lc='no'
19833       hardcode_libdir_separator=:
19834       ;;
19836     solaris*)
19837       no_undefined_flag=' -z defs'
19838       if test "$GCC" = yes; then
19839         wlarc='${wl}'
19840         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19841         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19842           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19843       else
19844         case `$CC -V 2>&1` in
19845         *"Compilers 5.0"*)
19846           wlarc=''
19847           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19848           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19849           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
19850           ;;
19851         *)
19852           wlarc='${wl}'
19853           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
19854           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19855           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19856           ;;
19857         esac
19858       fi
19859       hardcode_libdir_flag_spec='-R$libdir'
19860       hardcode_shlibpath_var=no
19861       case $host_os in
19862       solaris2.[0-5] | solaris2.[0-5].*) ;;
19863       *)
19864         # The compiler driver will combine and reorder linker options,
19865         # but understands `-z linker_flag'.  GCC discards it without `$wl',
19866         # but is careful enough not to reorder.
19867         # Supported since Solaris 2.6 (maybe 2.5.1?)
19868         if test "$GCC" = yes; then
19869           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19870         else
19871           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
19872         fi
19873         ;;
19874       esac
19875       link_all_deplibs=yes
19876       ;;
19878     sunos4*)
19879       if test "x$host_vendor" = xsequent; then
19880         # Use $CC to link under sequent, because it throws in some extra .o
19881         # files that make .init and .fini sections work.
19882         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19883       else
19884         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19885       fi
19886       hardcode_libdir_flag_spec='-L$libdir'
19887       hardcode_direct=yes
19888       hardcode_minus_L=yes
19889       hardcode_shlibpath_var=no
19890       ;;
19892     sysv4)
19893       case $host_vendor in
19894         sni)
19895           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19896           hardcode_direct=yes # is this really true???
19897         ;;
19898         siemens)
19899           ## LD is ld it makes a PLAMLIB
19900           ## CC just makes a GrossModule.
19901           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19902           reload_cmds='$CC -r -o $output$reload_objs'
19903           hardcode_direct=no
19904         ;;
19905         motorola)
19906           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19907           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
19908         ;;
19909       esac
19910       runpath_var='LD_RUN_PATH'
19911       hardcode_shlibpath_var=no
19912       ;;
19914     sysv4.3*)
19915       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19916       hardcode_shlibpath_var=no
19917       export_dynamic_flag_spec='-Bexport'
19918       ;;
19920     sysv4*MP*)
19921       if test -d /usr/nec; then
19922         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19923         hardcode_shlibpath_var=no
19924         runpath_var=LD_RUN_PATH
19925         hardcode_runpath_var=yes
19926         ld_shlibs=yes
19927       fi
19928       ;;
19930     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19931       no_undefined_flag='${wl}-z,text'
19932       archive_cmds_need_lc=no
19933       hardcode_shlibpath_var=no
19934       runpath_var='LD_RUN_PATH'
19936       if test "$GCC" = yes; then
19937         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19938         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19939       else
19940         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19941         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19942       fi
19943       ;;
19945     sysv5* | sco3.2v5* | sco5v6*)
19946       # Note: We can NOT use -z defs as we might desire, because we do not
19947       # link with -lc, and that would cause any symbols used from libc to
19948       # always be unresolved, which means just about no library would
19949       # ever link correctly.  If we're not using GNU ld we use -z text
19950       # though, which does catch some bad symbols but isn't as heavy-handed
19951       # as -z defs.
19952       no_undefined_flag='${wl}-z,text'
19953       allow_undefined_flag='${wl}-z,nodefs'
19954       archive_cmds_need_lc=no
19955       hardcode_shlibpath_var=no
19956       hardcode_libdir_flag_spec='${wl}-R,$libdir'
19957       hardcode_libdir_separator=':'
19958       link_all_deplibs=yes
19959       export_dynamic_flag_spec='${wl}-Bexport'
19960       runpath_var='LD_RUN_PATH'
19962       if test "$GCC" = yes; then
19963         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19964         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19965       else
19966         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19967         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19968       fi
19969       ;;
19971     uts4*)
19972       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19973       hardcode_libdir_flag_spec='-L$libdir'
19974       hardcode_shlibpath_var=no
19975       ;;
19977     *)
19978       ld_shlibs=no
19979       ;;
19980     esac
19982     if test x$host_vendor = xsni; then
19983       case $host in
19984       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19985         export_dynamic_flag_spec='${wl}-Blargedynsym'
19986         ;;
19987       esac
19988     fi
19989   fi
19991 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
19992 echo "${ECHO_T}$ld_shlibs" >&6; }
19993 test "$ld_shlibs" = no && can_build_shared=no
19995 with_gnu_ld=$with_gnu_ld
20012 # Do we need to explicitly link libc?
20014 case "x$archive_cmds_need_lc" in
20015 x|xyes)
20016   # Assume -lc should be added
20017   archive_cmds_need_lc=yes
20019   if test "$enable_shared" = yes && test "$GCC" = yes; then
20020     case $archive_cmds in
20021     *'~'*)
20022       # FIXME: we may have to deal with multi-command sequences.
20023       ;;
20024     '$CC '*)
20025       # Test whether the compiler implicitly links with -lc since on some
20026       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20027       # to ld, don't add -lc before -lgcc.
20028       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20029 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20030 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
20031   echo $ECHO_N "(cached) $ECHO_C" >&6
20032 else
20033   $RM -r conftest*
20034         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20036         if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20037   (eval $ac_compile) 2>&5
20038   ac_status=$?
20039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040   (exit $ac_status); } 2>conftest.err; then
20041           soname=conftest
20042           lib=conftest
20043           libobjs=conftest.$ac_objext
20044           deplibs=
20045           wl=$lt_prog_compiler_wl
20046           pic_flag=$lt_prog_compiler_pic
20047           compiler_flags=-v
20048           linker_flags=-v
20049           verstring=
20050           output_objdir=.
20051           libname=conftest
20052           lt_save_allow_undefined_flag=$allow_undefined_flag
20053           allow_undefined_flag=
20054           if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
20055   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20056   ac_status=$?
20057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058   (exit $ac_status); }
20059           then
20060             lt_cv_archive_cmds_need_lc=no
20061           else
20062             lt_cv_archive_cmds_need_lc=yes
20063           fi
20064           allow_undefined_flag=$lt_save_allow_undefined_flag
20065         else
20066           cat conftest.err 1>&5
20067         fi
20068         $RM -r conftest*
20071 { echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
20072 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6; }
20073       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
20074       ;;
20075     esac
20076   fi
20077   ;;
20078 esac
20236   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20237 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20239 if test "$GCC" = yes; then
20240   case $host_os in
20241     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
20242     *) lt_awk_arg="/^libraries:/" ;;
20243   esac
20244   case $host_os in
20245     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
20246     *) lt_sed_strip_eq="s,=/,/,g" ;;
20247   esac
20248   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
20249   case $lt_search_path_spec in
20250   *\;*)
20251     # if the path contains ";" then we assume it to be the separator
20252     # otherwise default to the standard path separator (i.e. ":") - it is
20253     # assumed that no part of a normal pathname contains ";" but that should
20254     # okay in the real world where ";" in dirpaths is itself problematic.
20255     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
20256     ;;
20257   *)
20258     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
20259     ;;
20260   esac
20261   # Ok, now we have the path, separated by spaces, we can step through it
20262   # and add multilib dir if necessary.
20263   lt_tmp_lt_search_path_spec=
20264   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
20265   for lt_sys_path in $lt_search_path_spec; do
20266     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
20267       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
20268     else
20269       test -d "$lt_sys_path" && \
20270         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
20271     fi
20272   done
20273   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
20274 BEGIN {RS=" "; FS="/|\n";} {
20275   lt_foo="";
20276   lt_count=0;
20277   for (lt_i = NF; lt_i > 0; lt_i--) {
20278     if ($lt_i != "" && $lt_i != ".") {
20279       if ($lt_i == "..") {
20280         lt_count++;
20281       } else {
20282         if (lt_count == 0) {
20283           lt_foo="/" $lt_i lt_foo;
20284         } else {
20285           lt_count--;
20286         }
20287       }
20288     }
20289   }
20290   if (lt_foo != "") { lt_freq[lt_foo]++; }
20291   if (lt_freq[lt_foo] == 1) { print lt_foo; }
20292 }'`
20293   # AWK program above erroneously prepends '/' to C:/dos/paths
20294   # for these hosts.
20295   case $host_os in
20296     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
20297       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
20298   esac
20299   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
20300 else
20301   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20303 library_names_spec=
20304 libname_spec='lib$name'
20305 soname_spec=
20306 shrext_cmds=".so"
20307 postinstall_cmds=
20308 postuninstall_cmds=
20309 finish_cmds=
20310 finish_eval=
20311 shlibpath_var=
20312 shlibpath_overrides_runpath=unknown
20313 version_type=none
20314 dynamic_linker="$host_os ld.so"
20315 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20316 need_lib_prefix=unknown
20317 hardcode_into_libs=no
20319 # when you set need_version to no, make sure it does not cause -set_version
20320 # flags to be left without arguments
20321 need_version=unknown
20323 case $host_os in
20324 aix3*)
20325   version_type=linux
20326   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20327   shlibpath_var=LIBPATH
20329   # AIX 3 has no versioning support, so we append a major version to the name.
20330   soname_spec='${libname}${release}${shared_ext}$major'
20331   ;;
20333 aix[4-9]*)
20334   version_type=linux
20335   need_lib_prefix=no
20336   need_version=no
20337   hardcode_into_libs=yes
20338   if test "$host_cpu" = ia64; then
20339     # AIX 5 supports IA64
20340     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20341     shlibpath_var=LD_LIBRARY_PATH
20342   else
20343     # With GCC up to 2.95.x, collect2 would create an import file
20344     # for dependence libraries.  The import file would start with
20345     # the line `#! .'.  This would cause the generated library to
20346     # depend on `.', always an invalid library.  This was fixed in
20347     # development snapshots of GCC prior to 3.0.
20348     case $host_os in
20349       aix4 | aix4.[01] | aix4.[01].*)
20350       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20351            echo ' yes '
20352            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20353         :
20354       else
20355         can_build_shared=no
20356       fi
20357       ;;
20358     esac
20359     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20360     # soname into executable. Probably we can add versioning support to
20361     # collect2, so additional links can be useful in future.
20362     if test "$aix_use_runtimelinking" = yes; then
20363       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20364       # instead of lib<name>.a to let people know that these are not
20365       # typical AIX shared libraries.
20366       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20367     else
20368       # We preserve .a as extension for shared libraries through AIX4.2
20369       # and later when we are not doing run time linking.
20370       library_names_spec='${libname}${release}.a $libname.a'
20371       soname_spec='${libname}${release}${shared_ext}$major'
20372     fi
20373     shlibpath_var=LIBPATH
20374   fi
20375   ;;
20377 amigaos*)
20378   case $host_cpu in
20379   powerpc)
20380     # Since July 2007 AmigaOS4 officially supports .so libraries.
20381     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20382     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20383     ;;
20384   m68k)
20385     library_names_spec='$libname.ixlibrary $libname.a'
20386     # Create ${libname}_ixlibrary.a entries in /sys/libs.
20387     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'
20388     ;;
20389   esac
20390   ;;
20392 beos*)
20393   library_names_spec='${libname}${shared_ext}'
20394   dynamic_linker="$host_os ld.so"
20395   shlibpath_var=LIBRARY_PATH
20396   ;;
20398 bsdi[45]*)
20399   version_type=linux
20400   need_version=no
20401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20402   soname_spec='${libname}${release}${shared_ext}$major'
20403   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20404   shlibpath_var=LD_LIBRARY_PATH
20405   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20406   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20407   # the default ld.so.conf also contains /usr/contrib/lib and
20408   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20409   # libtool to hard-code these into programs
20410   ;;
20412 cygwin* | mingw* | pw32* | cegcc*)
20413   version_type=windows
20414   shrext_cmds=".dll"
20415   need_version=no
20416   need_lib_prefix=no
20418   case $GCC,$host_os in
20419   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20420     library_names_spec='$libname.dll.a'
20421     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20422     postinstall_cmds='base_file=`basename \${file}`~
20423       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20424       dldir=$destdir/`dirname \$dlpath`~
20425       test -d \$dldir || mkdir -p \$dldir~
20426       $install_prog $dir/$dlname \$dldir/$dlname~
20427       chmod a+x \$dldir/$dlname~
20428       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20429         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20430       fi'
20431     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20432       dlpath=$dir/\$dldll~
20433        $RM \$dlpath'
20434     shlibpath_overrides_runpath=yes
20436     case $host_os in
20437     cygwin*)
20438       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20439       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20441       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
20442       ;;
20443     mingw* | cegcc*)
20444       # MinGW DLLs use traditional 'lib' prefix
20445       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20446       ;;
20447     pw32*)
20448       # pw32 DLLs use 'pw' prefix rather than 'lib'
20449       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20450       ;;
20451     esac
20452     ;;
20454   *)
20455     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20456     ;;
20457   esac
20458   dynamic_linker='Win32 ld.exe'
20459   # FIXME: first we should search . and the directory the executable is in
20460   shlibpath_var=PATH
20461   ;;
20463 darwin* | rhapsody*)
20464   dynamic_linker="$host_os dyld"
20465   version_type=darwin
20466   need_lib_prefix=no
20467   need_version=no
20468   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
20469   soname_spec='${libname}${release}${major}$shared_ext'
20470   shlibpath_overrides_runpath=yes
20471   shlibpath_var=DYLD_LIBRARY_PATH
20472   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20474   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
20475   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20476   ;;
20478 dgux*)
20479   version_type=linux
20480   need_lib_prefix=no
20481   need_version=no
20482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20483   soname_spec='${libname}${release}${shared_ext}$major'
20484   shlibpath_var=LD_LIBRARY_PATH
20485   ;;
20487 freebsd1*)
20488   dynamic_linker=no
20489   ;;
20491 freebsd* | dragonfly*)
20492   # DragonFly does not have aout.  When/if they implement a new
20493   # versioning mechanism, adjust this.
20494   if test -x /usr/bin/objformat; then
20495     objformat=`/usr/bin/objformat`
20496   else
20497     case $host_os in
20498     freebsd[123]*) objformat=aout ;;
20499     *) objformat=elf ;;
20500     esac
20501   fi
20502   version_type=freebsd-$objformat
20503   case $version_type in
20504     freebsd-elf*)
20505       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20506       need_version=no
20507       need_lib_prefix=no
20508       ;;
20509     freebsd-*)
20510       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20511       need_version=yes
20512       ;;
20513   esac
20514   shlibpath_var=LD_LIBRARY_PATH
20515   case $host_os in
20516   freebsd2*)
20517     shlibpath_overrides_runpath=yes
20518     ;;
20519   freebsd3.[01]* | freebsdelf3.[01]*)
20520     shlibpath_overrides_runpath=yes
20521     hardcode_into_libs=yes
20522     ;;
20523   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20524   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20525     shlibpath_overrides_runpath=no
20526     hardcode_into_libs=yes
20527     ;;
20528   *) # from 4.6 on, and DragonFly
20529     shlibpath_overrides_runpath=yes
20530     hardcode_into_libs=yes
20531     ;;
20532   esac
20533   ;;
20535 gnu*)
20536   version_type=linux
20537   need_lib_prefix=no
20538   need_version=no
20539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20540   soname_spec='${libname}${release}${shared_ext}$major'
20541   shlibpath_var=LD_LIBRARY_PATH
20542   hardcode_into_libs=yes
20543   ;;
20545 haiku*)
20546   version_type=linux
20547   need_lib_prefix=no
20548   need_version=no
20549   dynamic_linker="$host_os runtime_loader"
20550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20551   soname_spec='${libname}${release}${shared_ext}$major'
20552   shlibpath_var=LIBRARY_PATH
20553   shlibpath_overrides_runpath=yes
20554   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20555   hardcode_into_libs=yes
20556   ;;
20558 hpux9* | hpux10* | hpux11*)
20559   # Give a soname corresponding to the major version so that dld.sl refuses to
20560   # link against other versions.
20561   version_type=sunos
20562   need_lib_prefix=no
20563   need_version=no
20564   case $host_cpu in
20565   ia64*)
20566     shrext_cmds='.so'
20567     hardcode_into_libs=yes
20568     dynamic_linker="$host_os dld.so"
20569     shlibpath_var=LD_LIBRARY_PATH
20570     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20571     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20572     soname_spec='${libname}${release}${shared_ext}$major'
20573     if test "X$HPUX_IA64_MODE" = X32; then
20574       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20575     else
20576       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20577     fi
20578     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20579     ;;
20580   hppa*64*)
20581     shrext_cmds='.sl'
20582     hardcode_into_libs=yes
20583     dynamic_linker="$host_os dld.sl"
20584     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20585     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20586     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20587     soname_spec='${libname}${release}${shared_ext}$major'
20588     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20589     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20590     ;;
20591   *)
20592     shrext_cmds='.sl'
20593     dynamic_linker="$host_os dld.sl"
20594     shlibpath_var=SHLIB_PATH
20595     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20596     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20597     soname_spec='${libname}${release}${shared_ext}$major'
20598     ;;
20599   esac
20600   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20601   postinstall_cmds='chmod 555 $lib'
20602   # or fails outright, so override atomically:
20603   install_override_mode=555
20604   ;;
20606 interix[3-9]*)
20607   version_type=linux
20608   need_lib_prefix=no
20609   need_version=no
20610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20611   soname_spec='${libname}${release}${shared_ext}$major'
20612   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20613   shlibpath_var=LD_LIBRARY_PATH
20614   shlibpath_overrides_runpath=no
20615   hardcode_into_libs=yes
20616   ;;
20618 irix5* | irix6* | nonstopux*)
20619   case $host_os in
20620     nonstopux*) version_type=nonstopux ;;
20621     *)
20622         if test "$lt_cv_prog_gnu_ld" = yes; then
20623                 version_type=linux
20624         else
20625                 version_type=irix
20626         fi ;;
20627   esac
20628   need_lib_prefix=no
20629   need_version=no
20630   soname_spec='${libname}${release}${shared_ext}$major'
20631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20632   case $host_os in
20633   irix5* | nonstopux*)
20634     libsuff= shlibsuff=
20635     ;;
20636   *)
20637     case $LD in # libtool.m4 will add one of these switches to LD
20638     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20639       libsuff= shlibsuff= libmagic=32-bit;;
20640     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20641       libsuff=32 shlibsuff=N32 libmagic=N32;;
20642     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20643       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20644     *) libsuff= shlibsuff= libmagic=never-match;;
20645     esac
20646     ;;
20647   esac
20648   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20649   shlibpath_overrides_runpath=no
20650   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20651   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20652   hardcode_into_libs=yes
20653   ;;
20655 # No shared lib support for Linux oldld, aout, or coff.
20656 linux*oldld* | linux*aout* | linux*coff*)
20657   dynamic_linker=no
20658   ;;
20660 # This must be Linux ELF.
20661 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20662   version_type=linux
20663   need_lib_prefix=no
20664   need_version=no
20665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20666   soname_spec='${libname}${release}${shared_ext}$major'
20667   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20668   shlibpath_var=LD_LIBRARY_PATH
20669   shlibpath_overrides_runpath=no
20671   # Some binutils ld are patched to set DT_RUNPATH
20672   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
20673   echo $ECHO_N "(cached) $ECHO_C" >&6
20674 else
20675   lt_cv_shlibpath_overrides_runpath=no
20676     save_LDFLAGS=$LDFLAGS
20677     save_libdir=$libdir
20678     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
20679          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
20680     cat >conftest.$ac_ext <<_ACEOF
20681 /* confdefs.h.  */
20682 _ACEOF
20683 cat confdefs.h >>conftest.$ac_ext
20684 cat >>conftest.$ac_ext <<_ACEOF
20685 /* end confdefs.h.  */
20687 int
20688 main ()
20691   ;
20692   return 0;
20694 _ACEOF
20695 rm -f conftest.$ac_objext conftest$ac_exeext
20696 if { (ac_try="$ac_link"
20697 case "(($ac_try" in
20698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20699   *) ac_try_echo=$ac_try;;
20700 esac
20701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20702   (eval "$ac_link") 2>conftest.er1
20703   ac_status=$?
20704   grep -v '^ *+' conftest.er1 >conftest.err
20705   rm -f conftest.er1
20706   cat conftest.err >&5
20707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708   (exit $ac_status); } && {
20709          test -z "$ac_c_werror_flag" ||
20710          test ! -s conftest.err
20711        } && test -s conftest$ac_exeext &&
20712        $as_test_x conftest$ac_exeext; then
20713   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
20714   lt_cv_shlibpath_overrides_runpath=yes
20717 else
20718   echo "$as_me: failed program was:" >&5
20719 sed 's/^/| /' conftest.$ac_ext >&5
20724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20725       conftest$ac_exeext conftest.$ac_ext
20726     LDFLAGS=$save_LDFLAGS
20727     libdir=$save_libdir
20731   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20733   # This implies no fast_install, which is unacceptable.
20734   # Some rework will be needed to allow for fast_install
20735   # before this can be enabled.
20736   hardcode_into_libs=yes
20738   # Append ld.so.conf contents to the search path
20739   if test -f /etc/ld.so.conf; then
20740     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' ' '`
20741     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20742   fi
20744   # We used to test for /lib/ld.so.1 and disable shared libraries on
20745   # powerpc, because MkLinux only supported shared libraries with the
20746   # GNU dynamic linker.  Since this was broken with cross compilers,
20747   # most powerpc-linux boxes support dynamic linking these days and
20748   # people can always --disable-shared, the test was removed, and we
20749   # assume the GNU/Linux dynamic linker is in use.
20750   dynamic_linker='GNU/Linux ld.so'
20751   ;;
20753 netbsd*)
20754   version_type=sunos
20755   need_lib_prefix=no
20756   need_version=no
20757   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20758     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20759     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20760     dynamic_linker='NetBSD (a.out) ld.so'
20761   else
20762     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20763     soname_spec='${libname}${release}${shared_ext}$major'
20764     dynamic_linker='NetBSD ld.elf_so'
20765   fi
20766   shlibpath_var=LD_LIBRARY_PATH
20767   shlibpath_overrides_runpath=yes
20768   hardcode_into_libs=yes
20769   ;;
20771 newsos6)
20772   version_type=linux
20773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20774   shlibpath_var=LD_LIBRARY_PATH
20775   shlibpath_overrides_runpath=yes
20776   ;;
20778 *nto* | *qnx*)
20779   version_type=qnx
20780   need_lib_prefix=no
20781   need_version=no
20782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20783   soname_spec='${libname}${release}${shared_ext}$major'
20784   shlibpath_var=LD_LIBRARY_PATH
20785   shlibpath_overrides_runpath=no
20786   hardcode_into_libs=yes
20787   dynamic_linker='ldqnx.so'
20788   ;;
20790 openbsd*)
20791   version_type=sunos
20792   sys_lib_dlsearch_path_spec="/usr/lib"
20793   need_lib_prefix=no
20794   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20795   case $host_os in
20796     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
20797     *)                          need_version=no  ;;
20798   esac
20799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20800   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20801   shlibpath_var=LD_LIBRARY_PATH
20802   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20803     case $host_os in
20804       openbsd2.[89] | openbsd2.[89].*)
20805         shlibpath_overrides_runpath=no
20806         ;;
20807       *)
20808         shlibpath_overrides_runpath=yes
20809         ;;
20810       esac
20811   else
20812     shlibpath_overrides_runpath=yes
20813   fi
20814   ;;
20816 os2*)
20817   libname_spec='$name'
20818   shrext_cmds=".dll"
20819   need_lib_prefix=no
20820   library_names_spec='$libname${shared_ext} $libname.a'
20821   dynamic_linker='OS/2 ld.exe'
20822   shlibpath_var=LIBPATH
20823   ;;
20825 osf3* | osf4* | osf5*)
20826   version_type=osf
20827   need_lib_prefix=no
20828   need_version=no
20829   soname_spec='${libname}${release}${shared_ext}$major'
20830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20831   shlibpath_var=LD_LIBRARY_PATH
20832   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20833   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20834   ;;
20836 rdos*)
20837   dynamic_linker=no
20838   ;;
20840 solaris*)
20841   version_type=linux
20842   need_lib_prefix=no
20843   need_version=no
20844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20845   soname_spec='${libname}${release}${shared_ext}$major'
20846   shlibpath_var=LD_LIBRARY_PATH
20847   shlibpath_overrides_runpath=yes
20848   hardcode_into_libs=yes
20849   # ldd complains unless libraries are executable
20850   postinstall_cmds='chmod +x $lib'
20851   ;;
20853 sunos4*)
20854   version_type=sunos
20855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20856   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20857   shlibpath_var=LD_LIBRARY_PATH
20858   shlibpath_overrides_runpath=yes
20859   if test "$with_gnu_ld" = yes; then
20860     need_lib_prefix=no
20861   fi
20862   need_version=yes
20863   ;;
20865 sysv4 | sysv4.3*)
20866   version_type=linux
20867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20868   soname_spec='${libname}${release}${shared_ext}$major'
20869   shlibpath_var=LD_LIBRARY_PATH
20870   case $host_vendor in
20871     sni)
20872       shlibpath_overrides_runpath=no
20873       need_lib_prefix=no
20874       runpath_var=LD_RUN_PATH
20875       ;;
20876     siemens)
20877       need_lib_prefix=no
20878       ;;
20879     motorola)
20880       need_lib_prefix=no
20881       need_version=no
20882       shlibpath_overrides_runpath=no
20883       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20884       ;;
20885   esac
20886   ;;
20888 sysv4*MP*)
20889   if test -d /usr/nec ;then
20890     version_type=linux
20891     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20892     soname_spec='$libname${shared_ext}.$major'
20893     shlibpath_var=LD_LIBRARY_PATH
20894   fi
20895   ;;
20897 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20898   version_type=freebsd-elf
20899   need_lib_prefix=no
20900   need_version=no
20901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20902   soname_spec='${libname}${release}${shared_ext}$major'
20903   shlibpath_var=LD_LIBRARY_PATH
20904   shlibpath_overrides_runpath=yes
20905   hardcode_into_libs=yes
20906   if test "$with_gnu_ld" = yes; then
20907     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20908   else
20909     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20910     case $host_os in
20911       sco3.2v5*)
20912         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20913         ;;
20914     esac
20915   fi
20916   sys_lib_dlsearch_path_spec='/usr/lib'
20917   ;;
20919 tpf*)
20920   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20921   version_type=linux
20922   need_lib_prefix=no
20923   need_version=no
20924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20925   shlibpath_var=LD_LIBRARY_PATH
20926   shlibpath_overrides_runpath=no
20927   hardcode_into_libs=yes
20928   ;;
20930 uts4*)
20931   version_type=linux
20932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20933   soname_spec='${libname}${release}${shared_ext}$major'
20934   shlibpath_var=LD_LIBRARY_PATH
20935   ;;
20938   dynamic_linker=no
20939   ;;
20940 esac
20941 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20942 echo "${ECHO_T}$dynamic_linker" >&6; }
20943 test "$dynamic_linker" = no && can_build_shared=no
20945 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20946 if test "$GCC" = yes; then
20947   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20950 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20951   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20953 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20954   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21048   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21049 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21050 hardcode_action=
21051 if test -n "$hardcode_libdir_flag_spec" ||
21052    test -n "$runpath_var" ||
21053    test "X$hardcode_automatic" = "Xyes" ; then
21055   # We can hardcode non-existent directories.
21056   if test "$hardcode_direct" != no &&
21057      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21058      # have to relink, otherwise we might link with an installed library
21059      # when we should be linking with a yet-to-be-installed one
21060      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
21061      test "$hardcode_minus_L" != no; then
21062     # Linking always hardcodes the temporary library directory.
21063     hardcode_action=relink
21064   else
21065     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21066     hardcode_action=immediate
21067   fi
21068 else
21069   # We cannot hardcode anything, or else we can only hardcode existing
21070   # directories.
21071   hardcode_action=unsupported
21073 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
21074 echo "${ECHO_T}$hardcode_action" >&6; }
21076 if test "$hardcode_action" = relink ||
21077    test "$inherit_rpath" = yes; then
21078   # Fast installation is not supported
21079   enable_fast_install=no
21080 elif test "$shlibpath_overrides_runpath" = yes ||
21081      test "$enable_shared" = no; then
21082   # Fast installation is not necessary
21083   enable_fast_install=needless
21091   if test "x$enable_dlopen" != xyes; then
21092   enable_dlopen=unknown
21093   enable_dlopen_self=unknown
21094   enable_dlopen_self_static=unknown
21095 else
21096   lt_cv_dlopen=no
21097   lt_cv_dlopen_libs=
21099   case $host_os in
21100   beos*)
21101     lt_cv_dlopen="load_add_on"
21102     lt_cv_dlopen_libs=
21103     lt_cv_dlopen_self=yes
21104     ;;
21106   mingw* | pw32* | cegcc*)
21107     lt_cv_dlopen="LoadLibrary"
21108     lt_cv_dlopen_libs=
21109     ;;
21111   cygwin*)
21112     lt_cv_dlopen="dlopen"
21113     lt_cv_dlopen_libs=
21114     ;;
21116   darwin*)
21117   # if libdl is installed we need to link against it
21118     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21119 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
21120 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21121   echo $ECHO_N "(cached) $ECHO_C" >&6
21122 else
21123   ac_check_lib_save_LIBS=$LIBS
21124 LIBS="-ldl  $LIBS"
21125 cat >conftest.$ac_ext <<_ACEOF
21126 /* confdefs.h.  */
21127 _ACEOF
21128 cat confdefs.h >>conftest.$ac_ext
21129 cat >>conftest.$ac_ext <<_ACEOF
21130 /* end confdefs.h.  */
21132 /* Override any GCC internal prototype to avoid an error.
21133    Use char because int might match the return type of a GCC
21134    builtin and then its argument prototype would still apply.  */
21135 #ifdef __cplusplus
21136 extern "C"
21137 #endif
21138 char dlopen ();
21139 int
21140 main ()
21142 return dlopen ();
21143   ;
21144   return 0;
21146 _ACEOF
21147 rm -f conftest.$ac_objext conftest$ac_exeext
21148 if { (ac_try="$ac_link"
21149 case "(($ac_try" in
21150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21151   *) ac_try_echo=$ac_try;;
21152 esac
21153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21154   (eval "$ac_link") 2>conftest.er1
21155   ac_status=$?
21156   grep -v '^ *+' conftest.er1 >conftest.err
21157   rm -f conftest.er1
21158   cat conftest.err >&5
21159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160   (exit $ac_status); } && {
21161          test -z "$ac_c_werror_flag" ||
21162          test ! -s conftest.err
21163        } && test -s conftest$ac_exeext &&
21164        $as_test_x conftest$ac_exeext; then
21165   ac_cv_lib_dl_dlopen=yes
21166 else
21167   echo "$as_me: failed program was:" >&5
21168 sed 's/^/| /' conftest.$ac_ext >&5
21170         ac_cv_lib_dl_dlopen=no
21173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21174       conftest$ac_exeext conftest.$ac_ext
21175 LIBS=$ac_check_lib_save_LIBS
21177 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21178 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
21179 if test $ac_cv_lib_dl_dlopen = yes; then
21180   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21181 else
21183     lt_cv_dlopen="dyld"
21184     lt_cv_dlopen_libs=
21185     lt_cv_dlopen_self=yes
21189     ;;
21191   *)
21192     { echo "$as_me:$LINENO: checking for shl_load" >&5
21193 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
21194 if test "${ac_cv_func_shl_load+set}" = set; then
21195   echo $ECHO_N "(cached) $ECHO_C" >&6
21196 else
21197   cat >conftest.$ac_ext <<_ACEOF
21198 /* confdefs.h.  */
21199 _ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h.  */
21203 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
21204    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21205 #define shl_load innocuous_shl_load
21207 /* System header to define __stub macros and hopefully few prototypes,
21208     which can conflict with char shl_load (); below.
21209     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21210     <limits.h> exists even on freestanding compilers.  */
21212 #ifdef __STDC__
21213 # include <limits.h>
21214 #else
21215 # include <assert.h>
21216 #endif
21218 #undef shl_load
21220 /* Override any GCC internal prototype to avoid an error.
21221    Use char because int might match the return type of a GCC
21222    builtin and then its argument prototype would still apply.  */
21223 #ifdef __cplusplus
21224 extern "C"
21225 #endif
21226 char shl_load ();
21227 /* The GNU C library defines this for functions which it implements
21228     to always fail with ENOSYS.  Some functions are actually named
21229     something starting with __ and the normal name is an alias.  */
21230 #if defined __stub_shl_load || defined __stub___shl_load
21231 choke me
21232 #endif
21234 int
21235 main ()
21237 return shl_load ();
21238   ;
21239   return 0;
21241 _ACEOF
21242 rm -f conftest.$ac_objext conftest$ac_exeext
21243 if { (ac_try="$ac_link"
21244 case "(($ac_try" in
21245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21246   *) ac_try_echo=$ac_try;;
21247 esac
21248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21249   (eval "$ac_link") 2>conftest.er1
21250   ac_status=$?
21251   grep -v '^ *+' conftest.er1 >conftest.err
21252   rm -f conftest.er1
21253   cat conftest.err >&5
21254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255   (exit $ac_status); } && {
21256          test -z "$ac_c_werror_flag" ||
21257          test ! -s conftest.err
21258        } && test -s conftest$ac_exeext &&
21259        $as_test_x conftest$ac_exeext; then
21260   ac_cv_func_shl_load=yes
21261 else
21262   echo "$as_me: failed program was:" >&5
21263 sed 's/^/| /' conftest.$ac_ext >&5
21265         ac_cv_func_shl_load=no
21268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21269       conftest$ac_exeext conftest.$ac_ext
21271 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
21272 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
21273 if test $ac_cv_func_shl_load = yes; then
21274   lt_cv_dlopen="shl_load"
21275 else
21276   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
21277 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
21278 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
21279   echo $ECHO_N "(cached) $ECHO_C" >&6
21280 else
21281   ac_check_lib_save_LIBS=$LIBS
21282 LIBS="-ldld  $LIBS"
21283 cat >conftest.$ac_ext <<_ACEOF
21284 /* confdefs.h.  */
21285 _ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h.  */
21290 /* Override any GCC internal prototype to avoid an error.
21291    Use char because int might match the return type of a GCC
21292    builtin and then its argument prototype would still apply.  */
21293 #ifdef __cplusplus
21294 extern "C"
21295 #endif
21296 char shl_load ();
21297 int
21298 main ()
21300 return shl_load ();
21301   ;
21302   return 0;
21304 _ACEOF
21305 rm -f conftest.$ac_objext conftest$ac_exeext
21306 if { (ac_try="$ac_link"
21307 case "(($ac_try" in
21308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21309   *) ac_try_echo=$ac_try;;
21310 esac
21311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21312   (eval "$ac_link") 2>conftest.er1
21313   ac_status=$?
21314   grep -v '^ *+' conftest.er1 >conftest.err
21315   rm -f conftest.er1
21316   cat conftest.err >&5
21317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318   (exit $ac_status); } && {
21319          test -z "$ac_c_werror_flag" ||
21320          test ! -s conftest.err
21321        } && test -s conftest$ac_exeext &&
21322        $as_test_x conftest$ac_exeext; then
21323   ac_cv_lib_dld_shl_load=yes
21324 else
21325   echo "$as_me: failed program was:" >&5
21326 sed 's/^/| /' conftest.$ac_ext >&5
21328         ac_cv_lib_dld_shl_load=no
21331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21332       conftest$ac_exeext conftest.$ac_ext
21333 LIBS=$ac_check_lib_save_LIBS
21335 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
21336 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
21337 if test $ac_cv_lib_dld_shl_load = yes; then
21338   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
21339 else
21340   { echo "$as_me:$LINENO: checking for dlopen" >&5
21341 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
21342 if test "${ac_cv_func_dlopen+set}" = set; then
21343   echo $ECHO_N "(cached) $ECHO_C" >&6
21344 else
21345   cat >conftest.$ac_ext <<_ACEOF
21346 /* confdefs.h.  */
21347 _ACEOF
21348 cat confdefs.h >>conftest.$ac_ext
21349 cat >>conftest.$ac_ext <<_ACEOF
21350 /* end confdefs.h.  */
21351 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
21352    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21353 #define dlopen innocuous_dlopen
21355 /* System header to define __stub macros and hopefully few prototypes,
21356     which can conflict with char dlopen (); below.
21357     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21358     <limits.h> exists even on freestanding compilers.  */
21360 #ifdef __STDC__
21361 # include <limits.h>
21362 #else
21363 # include <assert.h>
21364 #endif
21366 #undef dlopen
21368 /* Override any GCC internal prototype to avoid an error.
21369    Use char because int might match the return type of a GCC
21370    builtin and then its argument prototype would still apply.  */
21371 #ifdef __cplusplus
21372 extern "C"
21373 #endif
21374 char dlopen ();
21375 /* The GNU C library defines this for functions which it implements
21376     to always fail with ENOSYS.  Some functions are actually named
21377     something starting with __ and the normal name is an alias.  */
21378 #if defined __stub_dlopen || defined __stub___dlopen
21379 choke me
21380 #endif
21382 int
21383 main ()
21385 return dlopen ();
21386   ;
21387   return 0;
21389 _ACEOF
21390 rm -f conftest.$ac_objext conftest$ac_exeext
21391 if { (ac_try="$ac_link"
21392 case "(($ac_try" in
21393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21394   *) ac_try_echo=$ac_try;;
21395 esac
21396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21397   (eval "$ac_link") 2>conftest.er1
21398   ac_status=$?
21399   grep -v '^ *+' conftest.er1 >conftest.err
21400   rm -f conftest.er1
21401   cat conftest.err >&5
21402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403   (exit $ac_status); } && {
21404          test -z "$ac_c_werror_flag" ||
21405          test ! -s conftest.err
21406        } && test -s conftest$ac_exeext &&
21407        $as_test_x conftest$ac_exeext; then
21408   ac_cv_func_dlopen=yes
21409 else
21410   echo "$as_me: failed program was:" >&5
21411 sed 's/^/| /' conftest.$ac_ext >&5
21413         ac_cv_func_dlopen=no
21416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21417       conftest$ac_exeext conftest.$ac_ext
21419 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
21420 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
21421 if test $ac_cv_func_dlopen = yes; then
21422   lt_cv_dlopen="dlopen"
21423 else
21424   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21425 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
21426 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21427   echo $ECHO_N "(cached) $ECHO_C" >&6
21428 else
21429   ac_check_lib_save_LIBS=$LIBS
21430 LIBS="-ldl  $LIBS"
21431 cat >conftest.$ac_ext <<_ACEOF
21432 /* confdefs.h.  */
21433 _ACEOF
21434 cat confdefs.h >>conftest.$ac_ext
21435 cat >>conftest.$ac_ext <<_ACEOF
21436 /* end confdefs.h.  */
21438 /* Override any GCC internal prototype to avoid an error.
21439    Use char because int might match the return type of a GCC
21440    builtin and then its argument prototype would still apply.  */
21441 #ifdef __cplusplus
21442 extern "C"
21443 #endif
21444 char dlopen ();
21445 int
21446 main ()
21448 return dlopen ();
21449   ;
21450   return 0;
21452 _ACEOF
21453 rm -f conftest.$ac_objext conftest$ac_exeext
21454 if { (ac_try="$ac_link"
21455 case "(($ac_try" in
21456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21457   *) ac_try_echo=$ac_try;;
21458 esac
21459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21460   (eval "$ac_link") 2>conftest.er1
21461   ac_status=$?
21462   grep -v '^ *+' conftest.er1 >conftest.err
21463   rm -f conftest.er1
21464   cat conftest.err >&5
21465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466   (exit $ac_status); } && {
21467          test -z "$ac_c_werror_flag" ||
21468          test ! -s conftest.err
21469        } && test -s conftest$ac_exeext &&
21470        $as_test_x conftest$ac_exeext; then
21471   ac_cv_lib_dl_dlopen=yes
21472 else
21473   echo "$as_me: failed program was:" >&5
21474 sed 's/^/| /' conftest.$ac_ext >&5
21476         ac_cv_lib_dl_dlopen=no
21479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21480       conftest$ac_exeext conftest.$ac_ext
21481 LIBS=$ac_check_lib_save_LIBS
21483 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21484 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
21485 if test $ac_cv_lib_dl_dlopen = yes; then
21486   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21487 else
21488   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
21489 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
21490 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
21491   echo $ECHO_N "(cached) $ECHO_C" >&6
21492 else
21493   ac_check_lib_save_LIBS=$LIBS
21494 LIBS="-lsvld  $LIBS"
21495 cat >conftest.$ac_ext <<_ACEOF
21496 /* confdefs.h.  */
21497 _ACEOF
21498 cat confdefs.h >>conftest.$ac_ext
21499 cat >>conftest.$ac_ext <<_ACEOF
21500 /* end confdefs.h.  */
21502 /* Override any GCC internal prototype to avoid an error.
21503    Use char because int might match the return type of a GCC
21504    builtin and then its argument prototype would still apply.  */
21505 #ifdef __cplusplus
21506 extern "C"
21507 #endif
21508 char dlopen ();
21509 int
21510 main ()
21512 return dlopen ();
21513   ;
21514   return 0;
21516 _ACEOF
21517 rm -f conftest.$ac_objext conftest$ac_exeext
21518 if { (ac_try="$ac_link"
21519 case "(($ac_try" in
21520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21521   *) ac_try_echo=$ac_try;;
21522 esac
21523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21524   (eval "$ac_link") 2>conftest.er1
21525   ac_status=$?
21526   grep -v '^ *+' conftest.er1 >conftest.err
21527   rm -f conftest.er1
21528   cat conftest.err >&5
21529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530   (exit $ac_status); } && {
21531          test -z "$ac_c_werror_flag" ||
21532          test ! -s conftest.err
21533        } && test -s conftest$ac_exeext &&
21534        $as_test_x conftest$ac_exeext; then
21535   ac_cv_lib_svld_dlopen=yes
21536 else
21537   echo "$as_me: failed program was:" >&5
21538 sed 's/^/| /' conftest.$ac_ext >&5
21540         ac_cv_lib_svld_dlopen=no
21543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21544       conftest$ac_exeext conftest.$ac_ext
21545 LIBS=$ac_check_lib_save_LIBS
21547 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
21548 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
21549 if test $ac_cv_lib_svld_dlopen = yes; then
21550   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21551 else
21552   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
21553 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
21554 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
21555   echo $ECHO_N "(cached) $ECHO_C" >&6
21556 else
21557   ac_check_lib_save_LIBS=$LIBS
21558 LIBS="-ldld  $LIBS"
21559 cat >conftest.$ac_ext <<_ACEOF
21560 /* confdefs.h.  */
21561 _ACEOF
21562 cat confdefs.h >>conftest.$ac_ext
21563 cat >>conftest.$ac_ext <<_ACEOF
21564 /* end confdefs.h.  */
21566 /* Override any GCC internal prototype to avoid an error.
21567    Use char because int might match the return type of a GCC
21568    builtin and then its argument prototype would still apply.  */
21569 #ifdef __cplusplus
21570 extern "C"
21571 #endif
21572 char dld_link ();
21573 int
21574 main ()
21576 return dld_link ();
21577   ;
21578   return 0;
21580 _ACEOF
21581 rm -f conftest.$ac_objext conftest$ac_exeext
21582 if { (ac_try="$ac_link"
21583 case "(($ac_try" in
21584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21585   *) ac_try_echo=$ac_try;;
21586 esac
21587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21588   (eval "$ac_link") 2>conftest.er1
21589   ac_status=$?
21590   grep -v '^ *+' conftest.er1 >conftest.err
21591   rm -f conftest.er1
21592   cat conftest.err >&5
21593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594   (exit $ac_status); } && {
21595          test -z "$ac_c_werror_flag" ||
21596          test ! -s conftest.err
21597        } && test -s conftest$ac_exeext &&
21598        $as_test_x conftest$ac_exeext; then
21599   ac_cv_lib_dld_dld_link=yes
21600 else
21601   echo "$as_me: failed program was:" >&5
21602 sed 's/^/| /' conftest.$ac_ext >&5
21604         ac_cv_lib_dld_dld_link=no
21607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21608       conftest$ac_exeext conftest.$ac_ext
21609 LIBS=$ac_check_lib_save_LIBS
21611 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21612 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
21613 if test $ac_cv_lib_dld_dld_link = yes; then
21614   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
21632     ;;
21633   esac
21635   if test "x$lt_cv_dlopen" != xno; then
21636     enable_dlopen=yes
21637   else
21638     enable_dlopen=no
21639   fi
21641   case $lt_cv_dlopen in
21642   dlopen)
21643     save_CPPFLAGS="$CPPFLAGS"
21644     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21646     save_LDFLAGS="$LDFLAGS"
21647     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21649     save_LIBS="$LIBS"
21650     LIBS="$lt_cv_dlopen_libs $LIBS"
21652     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
21653 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
21654 if test "${lt_cv_dlopen_self+set}" = set; then
21655   echo $ECHO_N "(cached) $ECHO_C" >&6
21656 else
21657           if test "$cross_compiling" = yes; then :
21658   lt_cv_dlopen_self=cross
21659 else
21660   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21661   lt_status=$lt_dlunknown
21662   cat > conftest.$ac_ext <<_LT_EOF
21663 #line $LINENO "configure"
21664 #include "confdefs.h"
21666 #if HAVE_DLFCN_H
21667 #include <dlfcn.h>
21668 #endif
21670 #include <stdio.h>
21672 #ifdef RTLD_GLOBAL
21673 #  define LT_DLGLOBAL           RTLD_GLOBAL
21674 #else
21675 #  ifdef DL_GLOBAL
21676 #    define LT_DLGLOBAL         DL_GLOBAL
21677 #  else
21678 #    define LT_DLGLOBAL         0
21679 #  endif
21680 #endif
21682 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21683    find out it does not work in some platform. */
21684 #ifndef LT_DLLAZY_OR_NOW
21685 #  ifdef RTLD_LAZY
21686 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
21687 #  else
21688 #    ifdef DL_LAZY
21689 #      define LT_DLLAZY_OR_NOW          DL_LAZY
21690 #    else
21691 #      ifdef RTLD_NOW
21692 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
21693 #      else
21694 #        ifdef DL_NOW
21695 #          define LT_DLLAZY_OR_NOW      DL_NOW
21696 #        else
21697 #          define LT_DLLAZY_OR_NOW      0
21698 #        endif
21699 #      endif
21700 #    endif
21701 #  endif
21702 #endif
21704 /* When -fvisbility=hidden is used, assume the code has been annotated
21705    correspondingly for the symbols needed.  */
21706 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21707 void fnord () __attribute__((visibility("default")));
21708 #endif
21710 void fnord () { int i=42; }
21711 int main ()
21713   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21714   int status = $lt_dlunknown;
21716   if (self)
21717     {
21718       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21719       else
21720         {
21721           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
21722           else puts (dlerror ());
21723         }
21724       /* dlclose (self); */
21725     }
21726   else
21727     puts (dlerror ());
21729   return status;
21731 _LT_EOF
21732   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21733   (eval $ac_link) 2>&5
21734   ac_status=$?
21735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21737     (./conftest; exit; ) >&5 2>/dev/null
21738     lt_status=$?
21739     case x$lt_status in
21740       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21741       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21742       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
21743     esac
21744   else :
21745     # compilation failed
21746     lt_cv_dlopen_self=no
21747   fi
21749 rm -fr conftest*
21753 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
21754 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
21756     if test "x$lt_cv_dlopen_self" = xyes; then
21757       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
21758       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
21759 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
21760 if test "${lt_cv_dlopen_self_static+set}" = set; then
21761   echo $ECHO_N "(cached) $ECHO_C" >&6
21762 else
21763           if test "$cross_compiling" = yes; then :
21764   lt_cv_dlopen_self_static=cross
21765 else
21766   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21767   lt_status=$lt_dlunknown
21768   cat > conftest.$ac_ext <<_LT_EOF
21769 #line $LINENO "configure"
21770 #include "confdefs.h"
21772 #if HAVE_DLFCN_H
21773 #include <dlfcn.h>
21774 #endif
21776 #include <stdio.h>
21778 #ifdef RTLD_GLOBAL
21779 #  define LT_DLGLOBAL           RTLD_GLOBAL
21780 #else
21781 #  ifdef DL_GLOBAL
21782 #    define LT_DLGLOBAL         DL_GLOBAL
21783 #  else
21784 #    define LT_DLGLOBAL         0
21785 #  endif
21786 #endif
21788 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21789    find out it does not work in some platform. */
21790 #ifndef LT_DLLAZY_OR_NOW
21791 #  ifdef RTLD_LAZY
21792 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
21793 #  else
21794 #    ifdef DL_LAZY
21795 #      define LT_DLLAZY_OR_NOW          DL_LAZY
21796 #    else
21797 #      ifdef RTLD_NOW
21798 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
21799 #      else
21800 #        ifdef DL_NOW
21801 #          define LT_DLLAZY_OR_NOW      DL_NOW
21802 #        else
21803 #          define LT_DLLAZY_OR_NOW      0
21804 #        endif
21805 #      endif
21806 #    endif
21807 #  endif
21808 #endif
21810 /* When -fvisbility=hidden is used, assume the code has been annotated
21811    correspondingly for the symbols needed.  */
21812 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21813 void fnord () __attribute__((visibility("default")));
21814 #endif
21816 void fnord () { int i=42; }
21817 int main ()
21819   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21820   int status = $lt_dlunknown;
21822   if (self)
21823     {
21824       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21825       else
21826         {
21827           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
21828           else puts (dlerror ());
21829         }
21830       /* dlclose (self); */
21831     }
21832   else
21833     puts (dlerror ());
21835   return status;
21837 _LT_EOF
21838   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21839   (eval $ac_link) 2>&5
21840   ac_status=$?
21841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21843     (./conftest; exit; ) >&5 2>/dev/null
21844     lt_status=$?
21845     case x$lt_status in
21846       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21847       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21848       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
21849     esac
21850   else :
21851     # compilation failed
21852     lt_cv_dlopen_self_static=no
21853   fi
21855 rm -fr conftest*
21859 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
21860 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
21861     fi
21863     CPPFLAGS="$save_CPPFLAGS"
21864     LDFLAGS="$save_LDFLAGS"
21865     LIBS="$save_LIBS"
21866     ;;
21867   esac
21869   case $lt_cv_dlopen_self in
21870   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21871   *) enable_dlopen_self=unknown ;;
21872   esac
21874   case $lt_cv_dlopen_self_static in
21875   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21876   *) enable_dlopen_self_static=unknown ;;
21877   esac
21896 striplib=
21897 old_striplib=
21898 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21899 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
21900 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
21901   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21902   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21903   { echo "$as_me:$LINENO: result: yes" >&5
21904 echo "${ECHO_T}yes" >&6; }
21905 else
21906 # FIXME - insert some real tests, host_os isn't really good enough
21907   case $host_os in
21908   darwin*)
21909     if test -n "$STRIP" ; then
21910       striplib="$STRIP -x"
21911       old_striplib="$STRIP -S"
21912       { echo "$as_me:$LINENO: result: yes" >&5
21913 echo "${ECHO_T}yes" >&6; }
21914     else
21915       { echo "$as_me:$LINENO: result: no" >&5
21916 echo "${ECHO_T}no" >&6; }
21917     fi
21918     ;;
21919   *)
21920     { echo "$as_me:$LINENO: result: no" >&5
21921 echo "${ECHO_T}no" >&6; }
21922     ;;
21923   esac
21937   # Report which library types will actually be built
21938   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21939 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21940   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21941 echo "${ECHO_T}$can_build_shared" >&6; }
21943   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21944 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21945   test "$can_build_shared" = "no" && enable_shared=no
21947   # On AIX, shared libraries and static libraries use the same namespace, and
21948   # are all built from PIC.
21949   case $host_os in
21950   aix3*)
21951     test "$enable_shared" = yes && enable_static=no
21952     if test -n "$RANLIB"; then
21953       archive_cmds="$archive_cmds~\$RANLIB \$lib"
21954       postinstall_cmds='$RANLIB $lib'
21955     fi
21956     ;;
21958   aix[4-9]*)
21959     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21960       test "$enable_shared" = yes && enable_static=no
21961     fi
21962     ;;
21963   esac
21964   { echo "$as_me:$LINENO: result: $enable_shared" >&5
21965 echo "${ECHO_T}$enable_shared" >&6; }
21967   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21968 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21969   # Make sure either enable_shared or enable_static is yes.
21970   test "$enable_shared" = yes || enable_static=yes
21971   { echo "$as_me:$LINENO: result: $enable_static" >&5
21972 echo "${ECHO_T}$enable_static" >&6; }
21978 ac_ext=c
21979 ac_cpp='$CPP $CPPFLAGS'
21980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21984 CC="$lt_save_CC"
21998         ac_config_commands="$ac_config_commands libtool"
22003 # Only expand once:
22006 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
22007 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
22008 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22009 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
22010   echo $ECHO_N "(cached) $ECHO_C" >&6
22011 else
22012   cat >conftest.make <<\_ACEOF
22013 SHELL = /bin/sh
22014 all:
22015         @echo '@@@%%%=$(MAKE)=@@@%%%'
22016 _ACEOF
22017 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22018 case `${MAKE-make} -f conftest.make 2>/dev/null` in
22019   *@@@%%%=?*=@@@%%%*)
22020     eval ac_cv_prog_make_${ac_make}_set=yes;;
22021   *)
22022     eval ac_cv_prog_make_${ac_make}_set=no;;
22023 esac
22024 rm -f conftest.make
22026 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
22027   { echo "$as_me:$LINENO: result: yes" >&5
22028 echo "${ECHO_T}yes" >&6; }
22029   SET_MAKE=
22030 else
22031   { echo "$as_me:$LINENO: result: no" >&5
22032 echo "${ECHO_T}no" >&6; }
22033   SET_MAKE="MAKE=${MAKE-make}"
22042 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22043         if test -n "$ac_tool_prefix"; then
22044   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22045 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22048 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22049   echo $ECHO_N "(cached) $ECHO_C" >&6
22050 else
22051   case $PKG_CONFIG in
22052   [\\/]* | ?:[\\/]*)
22053   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22054   ;;
22055   *)
22056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22057 for as_dir in $PATH
22059   IFS=$as_save_IFS
22060   test -z "$as_dir" && as_dir=.
22061   for ac_exec_ext in '' $ac_executable_extensions; do
22062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22063     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22065     break 2
22066   fi
22067 done
22068 done
22069 IFS=$as_save_IFS
22071   ;;
22072 esac
22074 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22075 if test -n "$PKG_CONFIG"; then
22076   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22077 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22078 else
22079   { echo "$as_me:$LINENO: result: no" >&5
22080 echo "${ECHO_T}no" >&6; }
22085 if test -z "$ac_cv_path_PKG_CONFIG"; then
22086   ac_pt_PKG_CONFIG=$PKG_CONFIG
22087   # Extract the first word of "pkg-config", so it can be a program name with args.
22088 set dummy pkg-config; ac_word=$2
22089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22091 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22092   echo $ECHO_N "(cached) $ECHO_C" >&6
22093 else
22094   case $ac_pt_PKG_CONFIG in
22095   [\\/]* | ?:[\\/]*)
22096   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22097   ;;
22098   *)
22099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22100 for as_dir in $PATH
22102   IFS=$as_save_IFS
22103   test -z "$as_dir" && as_dir=.
22104   for ac_exec_ext in '' $ac_executable_extensions; do
22105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22106     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22108     break 2
22109   fi
22110 done
22111 done
22112 IFS=$as_save_IFS
22114   ;;
22115 esac
22117 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22118 if test -n "$ac_pt_PKG_CONFIG"; then
22119   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22120 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22121 else
22122   { echo "$as_me:$LINENO: result: no" >&5
22123 echo "${ECHO_T}no" >&6; }
22126   if test "x$ac_pt_PKG_CONFIG" = x; then
22127     PKG_CONFIG=""
22128   else
22129     case $cross_compiling:$ac_tool_warned in
22130 yes:)
22131 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22132 whose name does not start with the host triplet.  If you think this
22133 configuration is useful to you, please write to autoconf@gnu.org." >&5
22134 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22135 whose name does not start with the host triplet.  If you think this
22136 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22137 ac_tool_warned=yes ;;
22138 esac
22139     PKG_CONFIG=$ac_pt_PKG_CONFIG
22140   fi
22141 else
22142   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22146 if test -n "$PKG_CONFIG"; then
22147         _pkg_min_version=0.9.0
22148         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22149 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22150         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22151                 { echo "$as_me:$LINENO: result: yes" >&5
22152 echo "${ECHO_T}yes" >&6; }
22153         else
22154                 { echo "$as_me:$LINENO: result: no" >&5
22155 echo "${ECHO_T}no" >&6; }
22156                 PKG_CONFIG=""
22157         fi
22159 for ac_prog in flex lex
22161   # Extract the first word of "$ac_prog", so it can be a program name with args.
22162 set dummy $ac_prog; ac_word=$2
22163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22165 if test "${ac_cv_prog_LEX+set}" = set; then
22166   echo $ECHO_N "(cached) $ECHO_C" >&6
22167 else
22168   if test -n "$LEX"; then
22169   ac_cv_prog_LEX="$LEX" # Let the user override the test.
22170 else
22171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22172 for as_dir in $PATH
22174   IFS=$as_save_IFS
22175   test -z "$as_dir" && as_dir=.
22176   for ac_exec_ext in '' $ac_executable_extensions; do
22177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22178     ac_cv_prog_LEX="$ac_prog"
22179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22180     break 2
22181   fi
22182 done
22183 done
22184 IFS=$as_save_IFS
22188 LEX=$ac_cv_prog_LEX
22189 if test -n "$LEX"; then
22190   { echo "$as_me:$LINENO: result: $LEX" >&5
22191 echo "${ECHO_T}$LEX" >&6; }
22192 else
22193   { echo "$as_me:$LINENO: result: no" >&5
22194 echo "${ECHO_T}no" >&6; }
22198   test -n "$LEX" && break
22199 done
22200 test -n "$LEX" || LEX=":"
22202 if test "x$LEX" != "x:"; then
22203   cat >conftest.l <<_ACEOF
22205 a { ECHO; }
22206 b { REJECT; }
22207 c { yymore (); }
22208 d { yyless (1); }
22209 e { yyless (input () != 0); }
22210 f { unput (yytext[0]); }
22211 . { BEGIN INITIAL; }
22213 #ifdef YYTEXT_POINTER
22214 extern char *yytext;
22215 #endif
22216 int
22217 main (void)
22219   return ! yylex () + ! yywrap ();
22221 _ACEOF
22222 { (ac_try="$LEX conftest.l"
22223 case "(($ac_try" in
22224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22225   *) ac_try_echo=$ac_try;;
22226 esac
22227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22228   (eval "$LEX conftest.l") 2>&5
22229   ac_status=$?
22230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231   (exit $ac_status); }
22232 { echo "$as_me:$LINENO: checking lex output file root" >&5
22233 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
22234 if test "${ac_cv_prog_lex_root+set}" = set; then
22235   echo $ECHO_N "(cached) $ECHO_C" >&6
22236 else
22238 if test -f lex.yy.c; then
22239   ac_cv_prog_lex_root=lex.yy
22240 elif test -f lexyy.c; then
22241   ac_cv_prog_lex_root=lexyy
22242 else
22243   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
22244 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
22245    { (exit 1); exit 1; }; }
22248 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
22249 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
22250 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
22252 if test -z "${LEXLIB+set}"; then
22253   { echo "$as_me:$LINENO: checking lex library" >&5
22254 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
22255 if test "${ac_cv_lib_lex+set}" = set; then
22256   echo $ECHO_N "(cached) $ECHO_C" >&6
22257 else
22259     ac_save_LIBS=$LIBS
22260     ac_cv_lib_lex='none needed'
22261     for ac_lib in '' -lfl -ll; do
22262       LIBS="$ac_lib $ac_save_LIBS"
22263       cat >conftest.$ac_ext <<_ACEOF
22264 `cat $LEX_OUTPUT_ROOT.c`
22265 _ACEOF
22266 rm -f conftest.$ac_objext conftest$ac_exeext
22267 if { (ac_try="$ac_link"
22268 case "(($ac_try" in
22269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22270   *) ac_try_echo=$ac_try;;
22271 esac
22272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273   (eval "$ac_link") 2>conftest.er1
22274   ac_status=$?
22275   grep -v '^ *+' conftest.er1 >conftest.err
22276   rm -f conftest.er1
22277   cat conftest.err >&5
22278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279   (exit $ac_status); } && {
22280          test -z "$ac_c_werror_flag" ||
22281          test ! -s conftest.err
22282        } && test -s conftest$ac_exeext &&
22283        $as_test_x conftest$ac_exeext; then
22284   ac_cv_lib_lex=$ac_lib
22285 else
22286   echo "$as_me: failed program was:" >&5
22287 sed 's/^/| /' conftest.$ac_ext >&5
22292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22293       conftest$ac_exeext conftest.$ac_ext
22294       test "$ac_cv_lib_lex" != 'none needed' && break
22295     done
22296     LIBS=$ac_save_LIBS
22299 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
22300 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
22301   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
22305 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
22306 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
22307 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
22308   echo $ECHO_N "(cached) $ECHO_C" >&6
22309 else
22310   # POSIX says lex can declare yytext either as a pointer or an array; the
22311 # default is implementation-dependent.  Figure out which it is, since
22312 # not all implementations provide the %pointer and %array declarations.
22313 ac_cv_prog_lex_yytext_pointer=no
22314 ac_save_LIBS=$LIBS
22315 LIBS="$LEXLIB $ac_save_LIBS"
22316 cat >conftest.$ac_ext <<_ACEOF
22317 #define YYTEXT_POINTER 1
22318 `cat $LEX_OUTPUT_ROOT.c`
22319 _ACEOF
22320 rm -f conftest.$ac_objext conftest$ac_exeext
22321 if { (ac_try="$ac_link"
22322 case "(($ac_try" in
22323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22324   *) ac_try_echo=$ac_try;;
22325 esac
22326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22327   (eval "$ac_link") 2>conftest.er1
22328   ac_status=$?
22329   grep -v '^ *+' conftest.er1 >conftest.err
22330   rm -f conftest.er1
22331   cat conftest.err >&5
22332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333   (exit $ac_status); } && {
22334          test -z "$ac_c_werror_flag" ||
22335          test ! -s conftest.err
22336        } && test -s conftest$ac_exeext &&
22337        $as_test_x conftest$ac_exeext; then
22338   ac_cv_prog_lex_yytext_pointer=yes
22339 else
22340   echo "$as_me: failed program was:" >&5
22341 sed 's/^/| /' conftest.$ac_ext >&5
22346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22347       conftest$ac_exeext conftest.$ac_ext
22348 LIBS=$ac_save_LIBS
22351 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
22352 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
22353 if test $ac_cv_prog_lex_yytext_pointer = yes; then
22355 cat >>confdefs.h <<\_ACEOF
22356 #define YYTEXT_POINTER 1
22357 _ACEOF
22360 rm -f conftest.l $LEX_OUTPUT_ROOT.c
22363 for ac_prog in 'bison -y' byacc
22365   # Extract the first word of "$ac_prog", so it can be a program name with args.
22366 set dummy $ac_prog; ac_word=$2
22367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22369 if test "${ac_cv_prog_YACC+set}" = set; then
22370   echo $ECHO_N "(cached) $ECHO_C" >&6
22371 else
22372   if test -n "$YACC"; then
22373   ac_cv_prog_YACC="$YACC" # Let the user override the test.
22374 else
22375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22376 for as_dir in $PATH
22378   IFS=$as_save_IFS
22379   test -z "$as_dir" && as_dir=.
22380   for ac_exec_ext in '' $ac_executable_extensions; do
22381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22382     ac_cv_prog_YACC="$ac_prog"
22383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22384     break 2
22385   fi
22386 done
22387 done
22388 IFS=$as_save_IFS
22392 YACC=$ac_cv_prog_YACC
22393 if test -n "$YACC"; then
22394   { echo "$as_me:$LINENO: result: $YACC" >&5
22395 echo "${ECHO_T}$YACC" >&6; }
22396 else
22397   { echo "$as_me:$LINENO: result: no" >&5
22398 echo "${ECHO_T}no" >&6; }
22402   test -n "$YACC" && break
22403 done
22404 test -n "$YACC" || YACC="yacc"
22406 # Check whether --enable-largefile was given.
22407 if test "${enable_largefile+set}" = set; then
22408   enableval=$enable_largefile;
22411 if test "$enable_largefile" != no; then
22413   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
22414 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
22415 if test "${ac_cv_sys_largefile_CC+set}" = set; then
22416   echo $ECHO_N "(cached) $ECHO_C" >&6
22417 else
22418   ac_cv_sys_largefile_CC=no
22419      if test "$GCC" != yes; then
22420        ac_save_CC=$CC
22421        while :; do
22422          # IRIX 6.2 and later do not support large files by default,
22423          # so use the C compiler's -n32 option if that helps.
22424          cat >conftest.$ac_ext <<_ACEOF
22425 /* confdefs.h.  */
22426 _ACEOF
22427 cat confdefs.h >>conftest.$ac_ext
22428 cat >>conftest.$ac_ext <<_ACEOF
22429 /* end confdefs.h.  */
22430 #include <sys/types.h>
22431  /* Check that off_t can represent 2**63 - 1 correctly.
22432     We can't simply define LARGE_OFF_T to be 9223372036854775807,
22433     since some C++ compilers masquerading as C compilers
22434     incorrectly reject 9223372036854775807.  */
22435 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22436   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22437                        && LARGE_OFF_T % 2147483647 == 1)
22438                       ? 1 : -1];
22439 int
22440 main ()
22443   ;
22444   return 0;
22446 _ACEOF
22447          rm -f conftest.$ac_objext
22448 if { (ac_try="$ac_compile"
22449 case "(($ac_try" in
22450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22451   *) ac_try_echo=$ac_try;;
22452 esac
22453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22454   (eval "$ac_compile") 2>conftest.er1
22455   ac_status=$?
22456   grep -v '^ *+' conftest.er1 >conftest.err
22457   rm -f conftest.er1
22458   cat conftest.err >&5
22459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460   (exit $ac_status); } && {
22461          test -z "$ac_c_werror_flag" ||
22462          test ! -s conftest.err
22463        } && test -s conftest.$ac_objext; then
22464   break
22465 else
22466   echo "$as_me: failed program was:" >&5
22467 sed 's/^/| /' conftest.$ac_ext >&5
22472 rm -f core conftest.err conftest.$ac_objext
22473          CC="$CC -n32"
22474          rm -f conftest.$ac_objext
22475 if { (ac_try="$ac_compile"
22476 case "(($ac_try" in
22477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22478   *) ac_try_echo=$ac_try;;
22479 esac
22480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22481   (eval "$ac_compile") 2>conftest.er1
22482   ac_status=$?
22483   grep -v '^ *+' conftest.er1 >conftest.err
22484   rm -f conftest.er1
22485   cat conftest.err >&5
22486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487   (exit $ac_status); } && {
22488          test -z "$ac_c_werror_flag" ||
22489          test ! -s conftest.err
22490        } && test -s conftest.$ac_objext; then
22491   ac_cv_sys_largefile_CC=' -n32'; break
22492 else
22493   echo "$as_me: failed program was:" >&5
22494 sed 's/^/| /' conftest.$ac_ext >&5
22499 rm -f core conftest.err conftest.$ac_objext
22500          break
22501        done
22502        CC=$ac_save_CC
22503        rm -f conftest.$ac_ext
22504     fi
22506 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
22507 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
22508   if test "$ac_cv_sys_largefile_CC" != no; then
22509     CC=$CC$ac_cv_sys_largefile_CC
22510   fi
22512   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22513 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
22514 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22515   echo $ECHO_N "(cached) $ECHO_C" >&6
22516 else
22517   while :; do
22518   cat >conftest.$ac_ext <<_ACEOF
22519 /* confdefs.h.  */
22520 _ACEOF
22521 cat confdefs.h >>conftest.$ac_ext
22522 cat >>conftest.$ac_ext <<_ACEOF
22523 /* end confdefs.h.  */
22524 #include <sys/types.h>
22525  /* Check that off_t can represent 2**63 - 1 correctly.
22526     We can't simply define LARGE_OFF_T to be 9223372036854775807,
22527     since some C++ compilers masquerading as C compilers
22528     incorrectly reject 9223372036854775807.  */
22529 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22530   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22531                        && LARGE_OFF_T % 2147483647 == 1)
22532                       ? 1 : -1];
22533 int
22534 main ()
22537   ;
22538   return 0;
22540 _ACEOF
22541 rm -f conftest.$ac_objext
22542 if { (ac_try="$ac_compile"
22543 case "(($ac_try" in
22544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22545   *) ac_try_echo=$ac_try;;
22546 esac
22547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22548   (eval "$ac_compile") 2>conftest.er1
22549   ac_status=$?
22550   grep -v '^ *+' conftest.er1 >conftest.err
22551   rm -f conftest.er1
22552   cat conftest.err >&5
22553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554   (exit $ac_status); } && {
22555          test -z "$ac_c_werror_flag" ||
22556          test ! -s conftest.err
22557        } && test -s conftest.$ac_objext; then
22558   ac_cv_sys_file_offset_bits=no; break
22559 else
22560   echo "$as_me: failed program was:" >&5
22561 sed 's/^/| /' conftest.$ac_ext >&5
22566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22567   cat >conftest.$ac_ext <<_ACEOF
22568 /* confdefs.h.  */
22569 _ACEOF
22570 cat confdefs.h >>conftest.$ac_ext
22571 cat >>conftest.$ac_ext <<_ACEOF
22572 /* end confdefs.h.  */
22573 #define _FILE_OFFSET_BITS 64
22574 #include <sys/types.h>
22575  /* Check that off_t can represent 2**63 - 1 correctly.
22576     We can't simply define LARGE_OFF_T to be 9223372036854775807,
22577     since some C++ compilers masquerading as C compilers
22578     incorrectly reject 9223372036854775807.  */
22579 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22580   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22581                        && LARGE_OFF_T % 2147483647 == 1)
22582                       ? 1 : -1];
22583 int
22584 main ()
22587   ;
22588   return 0;
22590 _ACEOF
22591 rm -f conftest.$ac_objext
22592 if { (ac_try="$ac_compile"
22593 case "(($ac_try" in
22594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22595   *) ac_try_echo=$ac_try;;
22596 esac
22597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22598   (eval "$ac_compile") 2>conftest.er1
22599   ac_status=$?
22600   grep -v '^ *+' conftest.er1 >conftest.err
22601   rm -f conftest.er1
22602   cat conftest.err >&5
22603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604   (exit $ac_status); } && {
22605          test -z "$ac_c_werror_flag" ||
22606          test ! -s conftest.err
22607        } && test -s conftest.$ac_objext; then
22608   ac_cv_sys_file_offset_bits=64; break
22609 else
22610   echo "$as_me: failed program was:" >&5
22611 sed 's/^/| /' conftest.$ac_ext >&5
22616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22617   ac_cv_sys_file_offset_bits=unknown
22618   break
22619 done
22621 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22622 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
22623 case $ac_cv_sys_file_offset_bits in #(
22624   no | unknown) ;;
22625   *)
22626 cat >>confdefs.h <<_ACEOF
22627 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22628 _ACEOF
22630 esac
22631 rm -f -r conftest*
22632   if test $ac_cv_sys_file_offset_bits = unknown; then
22633     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22634 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
22635 if test "${ac_cv_sys_large_files+set}" = set; then
22636   echo $ECHO_N "(cached) $ECHO_C" >&6
22637 else
22638   while :; do
22639   cat >conftest.$ac_ext <<_ACEOF
22640 /* confdefs.h.  */
22641 _ACEOF
22642 cat confdefs.h >>conftest.$ac_ext
22643 cat >>conftest.$ac_ext <<_ACEOF
22644 /* end confdefs.h.  */
22645 #include <sys/types.h>
22646  /* Check that off_t can represent 2**63 - 1 correctly.
22647     We can't simply define LARGE_OFF_T to be 9223372036854775807,
22648     since some C++ compilers masquerading as C compilers
22649     incorrectly reject 9223372036854775807.  */
22650 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22651   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22652                        && LARGE_OFF_T % 2147483647 == 1)
22653                       ? 1 : -1];
22654 int
22655 main ()
22658   ;
22659   return 0;
22661 _ACEOF
22662 rm -f conftest.$ac_objext
22663 if { (ac_try="$ac_compile"
22664 case "(($ac_try" in
22665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22666   *) ac_try_echo=$ac_try;;
22667 esac
22668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22669   (eval "$ac_compile") 2>conftest.er1
22670   ac_status=$?
22671   grep -v '^ *+' conftest.er1 >conftest.err
22672   rm -f conftest.er1
22673   cat conftest.err >&5
22674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675   (exit $ac_status); } && {
22676          test -z "$ac_c_werror_flag" ||
22677          test ! -s conftest.err
22678        } && test -s conftest.$ac_objext; then
22679   ac_cv_sys_large_files=no; break
22680 else
22681   echo "$as_me: failed program was:" >&5
22682 sed 's/^/| /' conftest.$ac_ext >&5
22687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22688   cat >conftest.$ac_ext <<_ACEOF
22689 /* confdefs.h.  */
22690 _ACEOF
22691 cat confdefs.h >>conftest.$ac_ext
22692 cat >>conftest.$ac_ext <<_ACEOF
22693 /* end confdefs.h.  */
22694 #define _LARGE_FILES 1
22695 #include <sys/types.h>
22696  /* Check that off_t can represent 2**63 - 1 correctly.
22697     We can't simply define LARGE_OFF_T to be 9223372036854775807,
22698     since some C++ compilers masquerading as C compilers
22699     incorrectly reject 9223372036854775807.  */
22700 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22701   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22702                        && LARGE_OFF_T % 2147483647 == 1)
22703                       ? 1 : -1];
22704 int
22705 main ()
22708   ;
22709   return 0;
22711 _ACEOF
22712 rm -f conftest.$ac_objext
22713 if { (ac_try="$ac_compile"
22714 case "(($ac_try" in
22715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22716   *) ac_try_echo=$ac_try;;
22717 esac
22718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22719   (eval "$ac_compile") 2>conftest.er1
22720   ac_status=$?
22721   grep -v '^ *+' conftest.er1 >conftest.err
22722   rm -f conftest.er1
22723   cat conftest.err >&5
22724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725   (exit $ac_status); } && {
22726          test -z "$ac_c_werror_flag" ||
22727          test ! -s conftest.err
22728        } && test -s conftest.$ac_objext; then
22729   ac_cv_sys_large_files=1; break
22730 else
22731   echo "$as_me: failed program was:" >&5
22732 sed 's/^/| /' conftest.$ac_ext >&5
22737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22738   ac_cv_sys_large_files=unknown
22739   break
22740 done
22742 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22743 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
22744 case $ac_cv_sys_large_files in #(
22745   no | unknown) ;;
22746   *)
22747 cat >>confdefs.h <<_ACEOF
22748 #define _LARGE_FILES $ac_cv_sys_large_files
22749 _ACEOF
22751 esac
22752 rm -f -r conftest*
22753   fi
22758 for ac_prog in cpp
22760   # Extract the first word of "$ac_prog", so it can be a program name with args.
22761 set dummy $ac_prog; ac_word=$2
22762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22764 if test "${ac_cv_path_RAWCPP+set}" = set; then
22765   echo $ECHO_N "(cached) $ECHO_C" >&6
22766 else
22767   case $RAWCPP in
22768   [\\/]* | ?:[\\/]*)
22769   ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
22770   ;;
22771   *)
22772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22773 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
22774 for as_dir in $as_dummy
22776   IFS=$as_save_IFS
22777   test -z "$as_dir" && as_dir=.
22778   for ac_exec_ext in '' $ac_executable_extensions; do
22779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22780     ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
22781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22782     break 2
22783   fi
22784 done
22785 done
22786 IFS=$as_save_IFS
22788   ;;
22789 esac
22791 RAWCPP=$ac_cv_path_RAWCPP
22792 if test -n "$RAWCPP"; then
22793   { echo "$as_me:$LINENO: result: $RAWCPP" >&5
22794 echo "${ECHO_T}$RAWCPP" >&6; }
22795 else
22796   { echo "$as_me:$LINENO: result: no" >&5
22797 echo "${ECHO_T}no" >&6; }
22801   test -n "$RAWCPP" && break
22802 done
22803 test -n "$RAWCPP" || RAWCPP="${CPP}"
22806 # Check for flag to avoid builtin definitions - assumes unix is predefined,
22807 # which is not the best choice for supporting other OS'es, but covers most
22808 # of the ones we need for now.
22809 { echo "$as_me:$LINENO: checking if $RAWCPP requires -undef" >&5
22810 echo $ECHO_N "checking if $RAWCPP requires -undef... $ECHO_C" >&6; }
22811 cat >conftest.$ac_ext <<_ACEOF
22812 /* confdefs.h.  */
22813 _ACEOF
22814 cat confdefs.h >>conftest.$ac_ext
22815 cat >>conftest.$ac_ext <<_ACEOF
22816 /* end confdefs.h.  */
22817 Does cpp redefine unix ?
22818 _ACEOF
22819 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
22820         { echo "$as_me:$LINENO: result: no" >&5
22821 echo "${ECHO_T}no" >&6; }
22822 else
22823         if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
22824                 RAWCPPFLAGS=-undef
22825                 { echo "$as_me:$LINENO: result: yes" >&5
22826 echo "${ECHO_T}yes" >&6; }
22827         # under Cygwin unix is still defined even with -undef
22828         elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
22829                 RAWCPPFLAGS="-undef -ansi"
22830                 { echo "$as_me:$LINENO: result: yes, with -ansi" >&5
22831 echo "${ECHO_T}yes, with -ansi" >&6; }
22832         else
22833                 { { echo "$as_me:$LINENO: error: ${RAWCPP} defines unix with or without -undef.  I don't know what to do." >&5
22834 echo "$as_me: error: ${RAWCPP} defines unix with or without -undef.  I don't know what to do." >&2;}
22835    { (exit 1); exit 1; }; }
22836         fi
22838 rm -f conftest.$ac_ext
22840 { echo "$as_me:$LINENO: checking if $RAWCPP requires -traditional" >&5
22841 echo $ECHO_N "checking if $RAWCPP requires -traditional... $ECHO_C" >&6; }
22842 cat >conftest.$ac_ext <<_ACEOF
22843 /* confdefs.h.  */
22844 _ACEOF
22845 cat confdefs.h >>conftest.$ac_ext
22846 cat >>conftest.$ac_ext <<_ACEOF
22847 /* end confdefs.h.  */
22848 Does cpp preserve   "whitespace"?
22849 _ACEOF
22850 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
22851         { echo "$as_me:$LINENO: result: no" >&5
22852 echo "${ECHO_T}no" >&6; }
22853 else
22854         if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
22855                 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
22856                 { echo "$as_me:$LINENO: result: yes" >&5
22857 echo "${ECHO_T}yes" >&6; }
22858         else
22859                 { { echo "$as_me:$LINENO: error: ${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." >&5
22860 echo "$as_me: error: ${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." >&2;}
22861    { (exit 1); exit 1; }; }
22862         fi
22864 rm -f conftest.$ac_ext
22868 # Quoted so that make will expand $(CWARNFLAGS) in makefiles to allow
22869 # easier overrides at build time.
22870 XSERVER_CFLAGS='$(CWARNFLAGS)'
22873 # Check whether --with-dtrace was given.
22874 if test "${with_dtrace+set}" = set; then
22875   withval=$with_dtrace; WDTRACE=$withval
22876 else
22877   WDTRACE=auto
22880 if test "x$WDTRACE" = "xyes" -o "x$WDTRACE" = "xauto" ; then
22881         # Extract the first word of "dtrace", so it can be a program name with args.
22882 set dummy dtrace; ac_word=$2
22883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22885 if test "${ac_cv_path_DTRACE+set}" = set; then
22886   echo $ECHO_N "(cached) $ECHO_C" >&6
22887 else
22888   case $DTRACE in
22889   [\\/]* | ?:[\\/]*)
22890   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
22891   ;;
22892   *)
22893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22894 as_dummy="$PATH:/usr/sbin"
22895 for as_dir in $as_dummy
22897   IFS=$as_save_IFS
22898   test -z "$as_dir" && as_dir=.
22899   for ac_exec_ext in '' $ac_executable_extensions; do
22900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22901     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
22902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22903     break 2
22904   fi
22905 done
22906 done
22907 IFS=$as_save_IFS
22909   test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not_found"
22910   ;;
22911 esac
22913 DTRACE=$ac_cv_path_DTRACE
22914 if test -n "$DTRACE"; then
22915   { echo "$as_me:$LINENO: result: $DTRACE" >&5
22916 echo "${ECHO_T}$DTRACE" >&6; }
22917 else
22918   { echo "$as_me:$LINENO: result: no" >&5
22919 echo "${ECHO_T}no" >&6; }
22923         if test "x$DTRACE" = "xnot_found" ; then
22924                 if test "x$WDTRACE" = "xyes" ; then
22925                         { { echo "$as_me:$LINENO: error: dtrace requested but not found
22926 See \`config.log' for more details." >&5
22927 echo "$as_me: error: dtrace requested but not found
22928 See \`config.log' for more details." >&2;}
22929    { (exit 1); exit 1; }; }
22930                 fi
22931                 WDTRACE="no"
22932         else
22933                 if test "${ac_cv_header_sys_sdt_h+set}" = set; then
22934   { echo "$as_me:$LINENO: checking for sys/sdt.h" >&5
22935 echo $ECHO_N "checking for sys/sdt.h... $ECHO_C" >&6; }
22936 if test "${ac_cv_header_sys_sdt_h+set}" = set; then
22937   echo $ECHO_N "(cached) $ECHO_C" >&6
22939 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sdt_h" >&5
22940 echo "${ECHO_T}$ac_cv_header_sys_sdt_h" >&6; }
22941 else
22942   # Is the header compilable?
22943 { echo "$as_me:$LINENO: checking sys/sdt.h usability" >&5
22944 echo $ECHO_N "checking sys/sdt.h usability... $ECHO_C" >&6; }
22945 cat >conftest.$ac_ext <<_ACEOF
22946 /* confdefs.h.  */
22947 _ACEOF
22948 cat confdefs.h >>conftest.$ac_ext
22949 cat >>conftest.$ac_ext <<_ACEOF
22950 /* end confdefs.h.  */
22951 $ac_includes_default
22952 #include <sys/sdt.h>
22953 _ACEOF
22954 rm -f conftest.$ac_objext
22955 if { (ac_try="$ac_compile"
22956 case "(($ac_try" in
22957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22958   *) ac_try_echo=$ac_try;;
22959 esac
22960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22961   (eval "$ac_compile") 2>conftest.er1
22962   ac_status=$?
22963   grep -v '^ *+' conftest.er1 >conftest.err
22964   rm -f conftest.er1
22965   cat conftest.err >&5
22966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967   (exit $ac_status); } && {
22968          test -z "$ac_c_werror_flag" ||
22969          test ! -s conftest.err
22970        } && test -s conftest.$ac_objext; then
22971   ac_header_compiler=yes
22972 else
22973   echo "$as_me: failed program was:" >&5
22974 sed 's/^/| /' conftest.$ac_ext >&5
22976         ac_header_compiler=no
22979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22981 echo "${ECHO_T}$ac_header_compiler" >&6; }
22983 # Is the header present?
22984 { echo "$as_me:$LINENO: checking sys/sdt.h presence" >&5
22985 echo $ECHO_N "checking sys/sdt.h presence... $ECHO_C" >&6; }
22986 cat >conftest.$ac_ext <<_ACEOF
22987 /* confdefs.h.  */
22988 _ACEOF
22989 cat confdefs.h >>conftest.$ac_ext
22990 cat >>conftest.$ac_ext <<_ACEOF
22991 /* end confdefs.h.  */
22992 #include <sys/sdt.h>
22993 _ACEOF
22994 if { (ac_try="$ac_cpp conftest.$ac_ext"
22995 case "(($ac_try" in
22996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22997   *) ac_try_echo=$ac_try;;
22998 esac
22999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23000   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23001   ac_status=$?
23002   grep -v '^ *+' conftest.er1 >conftest.err
23003   rm -f conftest.er1
23004   cat conftest.err >&5
23005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006   (exit $ac_status); } >/dev/null && {
23007          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23008          test ! -s conftest.err
23009        }; then
23010   ac_header_preproc=yes
23011 else
23012   echo "$as_me: failed program was:" >&5
23013 sed 's/^/| /' conftest.$ac_ext >&5
23015   ac_header_preproc=no
23018 rm -f conftest.err conftest.$ac_ext
23019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23020 echo "${ECHO_T}$ac_header_preproc" >&6; }
23022 # So?  What about this header?
23023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23024   yes:no: )
23025     { echo "$as_me:$LINENO: WARNING: sys/sdt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23026 echo "$as_me: WARNING: sys/sdt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23027     { echo "$as_me:$LINENO: WARNING: sys/sdt.h: proceeding with the compiler's result" >&5
23028 echo "$as_me: WARNING: sys/sdt.h: proceeding with the compiler's result" >&2;}
23029     ac_header_preproc=yes
23030     ;;
23031   no:yes:* )
23032     { echo "$as_me:$LINENO: WARNING: sys/sdt.h: present but cannot be compiled" >&5
23033 echo "$as_me: WARNING: sys/sdt.h: present but cannot be compiled" >&2;}
23034     { echo "$as_me:$LINENO: WARNING: sys/sdt.h:     check for missing prerequisite headers?" >&5
23035 echo "$as_me: WARNING: sys/sdt.h:     check for missing prerequisite headers?" >&2;}
23036     { echo "$as_me:$LINENO: WARNING: sys/sdt.h: see the Autoconf documentation" >&5
23037 echo "$as_me: WARNING: sys/sdt.h: see the Autoconf documentation" >&2;}
23038     { echo "$as_me:$LINENO: WARNING: sys/sdt.h:     section \"Present But Cannot Be Compiled\"" >&5
23039 echo "$as_me: WARNING: sys/sdt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23040     { echo "$as_me:$LINENO: WARNING: sys/sdt.h: proceeding with the preprocessor's result" >&5
23041 echo "$as_me: WARNING: sys/sdt.h: proceeding with the preprocessor's result" >&2;}
23042     { echo "$as_me:$LINENO: WARNING: sys/sdt.h: in the future, the compiler will take precedence" >&5
23043 echo "$as_me: WARNING: sys/sdt.h: in the future, the compiler will take precedence" >&2;}
23044     ( cat <<\_ASBOX
23045 ## ---------------------------------------------------------------------- ##
23046 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
23047 ## ---------------------------------------------------------------------- ##
23048 _ASBOX
23049      ) | sed "s/^/$as_me: WARNING:     /" >&2
23050     ;;
23051 esac
23052 { echo "$as_me:$LINENO: checking for sys/sdt.h" >&5
23053 echo $ECHO_N "checking for sys/sdt.h... $ECHO_C" >&6; }
23054 if test "${ac_cv_header_sys_sdt_h+set}" = set; then
23055   echo $ECHO_N "(cached) $ECHO_C" >&6
23056 else
23057   ac_cv_header_sys_sdt_h=$ac_header_preproc
23059 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sdt_h" >&5
23060 echo "${ECHO_T}$ac_cv_header_sys_sdt_h" >&6; }
23063 if test $ac_cv_header_sys_sdt_h = yes; then
23064   HAS_SDT_H="yes"
23065 else
23066   HAS_SDT_H="no"
23070                 if test "x$WDTRACE" = "xauto" -a "x$HAS_SDT_H" = "xno" ; then
23071                         WDTRACE="no"
23072                 fi
23073         fi
23075 if test "x$WDTRACE" != "xno" ; then
23077 cat >>confdefs.h <<\_ACEOF
23078 #define XSERVER_DTRACE 1
23079 _ACEOF
23082 # Solaris/OpenSolaris require dtrace -G to build dtrace probe information into
23083 # object files, and require linking with those as relocatable objects, not .a
23084 # archives. MacOS X handles all this in the normal compiler toolchain, and on
23085 # some releases (like Tiger), will error out on dtrace -G.  For now, other
23086 # platforms with Dtrace ports are assumed to support -G (the FreeBSD and Linux
23087 # ports appear to, based on my web searches, but have not yet been tested).
23088         case $host_os in
23089                 darwin*)        SPECIAL_DTRACE_OBJECTS=no ;;
23090                 *)              SPECIAL_DTRACE_OBJECTS=yes ;;
23091         esac
23093  if test "x$WDTRACE" != "xno"; then
23094   XSERVER_DTRACE_TRUE=
23095   XSERVER_DTRACE_FALSE='#'
23096 else
23097   XSERVER_DTRACE_TRUE='#'
23098   XSERVER_DTRACE_FALSE=
23101  if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes"; then
23102   SPECIAL_DTRACE_OBJECTS_TRUE=
23103   SPECIAL_DTRACE_OBJECTS_FALSE='#'
23104 else
23105   SPECIAL_DTRACE_OBJECTS_TRUE='#'
23106   SPECIAL_DTRACE_OBJECTS_FALSE=
23115 ac_header_dirent=no
23116 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23117   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23118 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23119 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
23120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23121   echo $ECHO_N "(cached) $ECHO_C" >&6
23122 else
23123   cat >conftest.$ac_ext <<_ACEOF
23124 /* confdefs.h.  */
23125 _ACEOF
23126 cat confdefs.h >>conftest.$ac_ext
23127 cat >>conftest.$ac_ext <<_ACEOF
23128 /* end confdefs.h.  */
23129 #include <sys/types.h>
23130 #include <$ac_hdr>
23132 int
23133 main ()
23135 if ((DIR *) 0)
23136 return 0;
23137   ;
23138   return 0;
23140 _ACEOF
23141 rm -f conftest.$ac_objext
23142 if { (ac_try="$ac_compile"
23143 case "(($ac_try" in
23144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23145   *) ac_try_echo=$ac_try;;
23146 esac
23147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23148   (eval "$ac_compile") 2>conftest.er1
23149   ac_status=$?
23150   grep -v '^ *+' conftest.er1 >conftest.err
23151   rm -f conftest.er1
23152   cat conftest.err >&5
23153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154   (exit $ac_status); } && {
23155          test -z "$ac_c_werror_flag" ||
23156          test ! -s conftest.err
23157        } && test -s conftest.$ac_objext; then
23158   eval "$as_ac_Header=yes"
23159 else
23160   echo "$as_me: failed program was:" >&5
23161 sed 's/^/| /' conftest.$ac_ext >&5
23163         eval "$as_ac_Header=no"
23166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23168 ac_res=`eval echo '${'$as_ac_Header'}'`
23169                { echo "$as_me:$LINENO: result: $ac_res" >&5
23170 echo "${ECHO_T}$ac_res" >&6; }
23171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23172   cat >>confdefs.h <<_ACEOF
23173 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23174 _ACEOF
23176 ac_header_dirent=$ac_hdr; break
23179 done
23180 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23181 if test $ac_header_dirent = dirent.h; then
23182   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
23183 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
23184 if test "${ac_cv_search_opendir+set}" = set; then
23185   echo $ECHO_N "(cached) $ECHO_C" >&6
23186 else
23187   ac_func_search_save_LIBS=$LIBS
23188 cat >conftest.$ac_ext <<_ACEOF
23189 /* confdefs.h.  */
23190 _ACEOF
23191 cat confdefs.h >>conftest.$ac_ext
23192 cat >>conftest.$ac_ext <<_ACEOF
23193 /* end confdefs.h.  */
23195 /* Override any GCC internal prototype to avoid an error.
23196    Use char because int might match the return type of a GCC
23197    builtin and then its argument prototype would still apply.  */
23198 #ifdef __cplusplus
23199 extern "C"
23200 #endif
23201 char opendir ();
23202 int
23203 main ()
23205 return opendir ();
23206   ;
23207   return 0;
23209 _ACEOF
23210 for ac_lib in '' dir; do
23211   if test -z "$ac_lib"; then
23212     ac_res="none required"
23213   else
23214     ac_res=-l$ac_lib
23215     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23216   fi
23217   rm -f conftest.$ac_objext conftest$ac_exeext
23218 if { (ac_try="$ac_link"
23219 case "(($ac_try" in
23220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23221   *) ac_try_echo=$ac_try;;
23222 esac
23223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23224   (eval "$ac_link") 2>conftest.er1
23225   ac_status=$?
23226   grep -v '^ *+' conftest.er1 >conftest.err
23227   rm -f conftest.er1
23228   cat conftest.err >&5
23229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230   (exit $ac_status); } && {
23231          test -z "$ac_c_werror_flag" ||
23232          test ! -s conftest.err
23233        } && test -s conftest$ac_exeext &&
23234        $as_test_x conftest$ac_exeext; then
23235   ac_cv_search_opendir=$ac_res
23236 else
23237   echo "$as_me: failed program was:" >&5
23238 sed 's/^/| /' conftest.$ac_ext >&5
23243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23244       conftest$ac_exeext
23245   if test "${ac_cv_search_opendir+set}" = set; then
23246   break
23248 done
23249 if test "${ac_cv_search_opendir+set}" = set; then
23250   :
23251 else
23252   ac_cv_search_opendir=no
23254 rm conftest.$ac_ext
23255 LIBS=$ac_func_search_save_LIBS
23257 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23258 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
23259 ac_res=$ac_cv_search_opendir
23260 if test "$ac_res" != no; then
23261   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23265 else
23266   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
23267 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
23268 if test "${ac_cv_search_opendir+set}" = set; then
23269   echo $ECHO_N "(cached) $ECHO_C" >&6
23270 else
23271   ac_func_search_save_LIBS=$LIBS
23272 cat >conftest.$ac_ext <<_ACEOF
23273 /* confdefs.h.  */
23274 _ACEOF
23275 cat confdefs.h >>conftest.$ac_ext
23276 cat >>conftest.$ac_ext <<_ACEOF
23277 /* end confdefs.h.  */
23279 /* Override any GCC internal prototype to avoid an error.
23280    Use char because int might match the return type of a GCC
23281    builtin and then its argument prototype would still apply.  */
23282 #ifdef __cplusplus
23283 extern "C"
23284 #endif
23285 char opendir ();
23286 int
23287 main ()
23289 return opendir ();
23290   ;
23291   return 0;
23293 _ACEOF
23294 for ac_lib in '' x; do
23295   if test -z "$ac_lib"; then
23296     ac_res="none required"
23297   else
23298     ac_res=-l$ac_lib
23299     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23300   fi
23301   rm -f conftest.$ac_objext conftest$ac_exeext
23302 if { (ac_try="$ac_link"
23303 case "(($ac_try" in
23304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23305   *) ac_try_echo=$ac_try;;
23306 esac
23307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23308   (eval "$ac_link") 2>conftest.er1
23309   ac_status=$?
23310   grep -v '^ *+' conftest.er1 >conftest.err
23311   rm -f conftest.er1
23312   cat conftest.err >&5
23313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314   (exit $ac_status); } && {
23315          test -z "$ac_c_werror_flag" ||
23316          test ! -s conftest.err
23317        } && test -s conftest$ac_exeext &&
23318        $as_test_x conftest$ac_exeext; then
23319   ac_cv_search_opendir=$ac_res
23320 else
23321   echo "$as_me: failed program was:" >&5
23322 sed 's/^/| /' conftest.$ac_ext >&5
23327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23328       conftest$ac_exeext
23329   if test "${ac_cv_search_opendir+set}" = set; then
23330   break
23332 done
23333 if test "${ac_cv_search_opendir+set}" = set; then
23334   :
23335 else
23336   ac_cv_search_opendir=no
23338 rm conftest.$ac_ext
23339 LIBS=$ac_func_search_save_LIBS
23341 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23342 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
23343 ac_res=$ac_cv_search_opendir
23344 if test "$ac_res" != no; then
23345   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23351 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23352 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
23353 if test "${ac_cv_header_stdc+set}" = set; then
23354   echo $ECHO_N "(cached) $ECHO_C" >&6
23355 else
23356   cat >conftest.$ac_ext <<_ACEOF
23357 /* confdefs.h.  */
23358 _ACEOF
23359 cat confdefs.h >>conftest.$ac_ext
23360 cat >>conftest.$ac_ext <<_ACEOF
23361 /* end confdefs.h.  */
23362 #include <stdlib.h>
23363 #include <stdarg.h>
23364 #include <string.h>
23365 #include <float.h>
23367 int
23368 main ()
23371   ;
23372   return 0;
23374 _ACEOF
23375 rm -f conftest.$ac_objext
23376 if { (ac_try="$ac_compile"
23377 case "(($ac_try" in
23378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23379   *) ac_try_echo=$ac_try;;
23380 esac
23381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23382   (eval "$ac_compile") 2>conftest.er1
23383   ac_status=$?
23384   grep -v '^ *+' conftest.er1 >conftest.err
23385   rm -f conftest.er1
23386   cat conftest.err >&5
23387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388   (exit $ac_status); } && {
23389          test -z "$ac_c_werror_flag" ||
23390          test ! -s conftest.err
23391        } && test -s conftest.$ac_objext; then
23392   ac_cv_header_stdc=yes
23393 else
23394   echo "$as_me: failed program was:" >&5
23395 sed 's/^/| /' conftest.$ac_ext >&5
23397         ac_cv_header_stdc=no
23400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23402 if test $ac_cv_header_stdc = yes; then
23403   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23404   cat >conftest.$ac_ext <<_ACEOF
23405 /* confdefs.h.  */
23406 _ACEOF
23407 cat confdefs.h >>conftest.$ac_ext
23408 cat >>conftest.$ac_ext <<_ACEOF
23409 /* end confdefs.h.  */
23410 #include <string.h>
23412 _ACEOF
23413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23414   $EGREP "memchr" >/dev/null 2>&1; then
23415   :
23416 else
23417   ac_cv_header_stdc=no
23419 rm -f -r conftest*
23423 if test $ac_cv_header_stdc = yes; then
23424   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23425   cat >conftest.$ac_ext <<_ACEOF
23426 /* confdefs.h.  */
23427 _ACEOF
23428 cat confdefs.h >>conftest.$ac_ext
23429 cat >>conftest.$ac_ext <<_ACEOF
23430 /* end confdefs.h.  */
23431 #include <stdlib.h>
23433 _ACEOF
23434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23435   $EGREP "free" >/dev/null 2>&1; then
23436   :
23437 else
23438   ac_cv_header_stdc=no
23440 rm -f -r conftest*
23444 if test $ac_cv_header_stdc = yes; then
23445   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23446   if test "$cross_compiling" = yes; then
23447   :
23448 else
23449   cat >conftest.$ac_ext <<_ACEOF
23450 /* confdefs.h.  */
23451 _ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h.  */
23455 #include <ctype.h>
23456 #include <stdlib.h>
23457 #if ((' ' & 0x0FF) == 0x020)
23458 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23459 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23460 #else
23461 # define ISLOWER(c) \
23462                    (('a' <= (c) && (c) <= 'i') \
23463                      || ('j' <= (c) && (c) <= 'r') \
23464                      || ('s' <= (c) && (c) <= 'z'))
23465 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23466 #endif
23468 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23469 int
23470 main ()
23472   int i;
23473   for (i = 0; i < 256; i++)
23474     if (XOR (islower (i), ISLOWER (i))
23475         || toupper (i) != TOUPPER (i))
23476       return 2;
23477   return 0;
23479 _ACEOF
23480 rm -f conftest$ac_exeext
23481 if { (ac_try="$ac_link"
23482 case "(($ac_try" in
23483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23484   *) ac_try_echo=$ac_try;;
23485 esac
23486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23487   (eval "$ac_link") 2>&5
23488   ac_status=$?
23489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23490   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23491   { (case "(($ac_try" in
23492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23493   *) ac_try_echo=$ac_try;;
23494 esac
23495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23496   (eval "$ac_try") 2>&5
23497   ac_status=$?
23498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499   (exit $ac_status); }; }; then
23500   :
23501 else
23502   echo "$as_me: program exited with status $ac_status" >&5
23503 echo "$as_me: failed program was:" >&5
23504 sed 's/^/| /' conftest.$ac_ext >&5
23506 ( exit $ac_status )
23507 ac_cv_header_stdc=no
23509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23515 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
23516 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
23517 if test $ac_cv_header_stdc = yes; then
23519 cat >>confdefs.h <<\_ACEOF
23520 #define STDC_HEADERS 1
23521 _ACEOF
23533 for ac_header in fcntl.h stdlib.h string.h unistd.h dlfcn.h stropts.h fnmatch.h sys/utsname.h
23535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23537   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23540   echo $ECHO_N "(cached) $ECHO_C" >&6
23542 ac_res=`eval echo '${'$as_ac_Header'}'`
23543                { echo "$as_me:$LINENO: result: $ac_res" >&5
23544 echo "${ECHO_T}$ac_res" >&6; }
23545 else
23546   # Is the header compilable?
23547 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23549 cat >conftest.$ac_ext <<_ACEOF
23550 /* confdefs.h.  */
23551 _ACEOF
23552 cat confdefs.h >>conftest.$ac_ext
23553 cat >>conftest.$ac_ext <<_ACEOF
23554 /* end confdefs.h.  */
23555 $ac_includes_default
23556 #include <$ac_header>
23557 _ACEOF
23558 rm -f conftest.$ac_objext
23559 if { (ac_try="$ac_compile"
23560 case "(($ac_try" in
23561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23562   *) ac_try_echo=$ac_try;;
23563 esac
23564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23565   (eval "$ac_compile") 2>conftest.er1
23566   ac_status=$?
23567   grep -v '^ *+' conftest.er1 >conftest.err
23568   rm -f conftest.er1
23569   cat conftest.err >&5
23570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571   (exit $ac_status); } && {
23572          test -z "$ac_c_werror_flag" ||
23573          test ! -s conftest.err
23574        } && test -s conftest.$ac_objext; then
23575   ac_header_compiler=yes
23576 else
23577   echo "$as_me: failed program was:" >&5
23578 sed 's/^/| /' conftest.$ac_ext >&5
23580         ac_header_compiler=no
23583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23584 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23585 echo "${ECHO_T}$ac_header_compiler" >&6; }
23587 # Is the header present?
23588 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23590 cat >conftest.$ac_ext <<_ACEOF
23591 /* confdefs.h.  */
23592 _ACEOF
23593 cat confdefs.h >>conftest.$ac_ext
23594 cat >>conftest.$ac_ext <<_ACEOF
23595 /* end confdefs.h.  */
23596 #include <$ac_header>
23597 _ACEOF
23598 if { (ac_try="$ac_cpp conftest.$ac_ext"
23599 case "(($ac_try" in
23600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23601   *) ac_try_echo=$ac_try;;
23602 esac
23603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23604   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23605   ac_status=$?
23606   grep -v '^ *+' conftest.er1 >conftest.err
23607   rm -f conftest.er1
23608   cat conftest.err >&5
23609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610   (exit $ac_status); } >/dev/null && {
23611          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23612          test ! -s conftest.err
23613        }; then
23614   ac_header_preproc=yes
23615 else
23616   echo "$as_me: failed program was:" >&5
23617 sed 's/^/| /' conftest.$ac_ext >&5
23619   ac_header_preproc=no
23622 rm -f conftest.err conftest.$ac_ext
23623 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23624 echo "${ECHO_T}$ac_header_preproc" >&6; }
23626 # So?  What about this header?
23627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23628   yes:no: )
23629     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23631     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23632 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23633     ac_header_preproc=yes
23634     ;;
23635   no:yes:* )
23636     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23637 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23638     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23639 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23640     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23641 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23642     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23643 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23644     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23646     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23647 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23648     ( cat <<\_ASBOX
23649 ## ---------------------------------------------------------------------- ##
23650 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
23651 ## ---------------------------------------------------------------------- ##
23652 _ASBOX
23653      ) | sed "s/^/$as_me: WARNING:     /" >&2
23654     ;;
23655 esac
23656 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23659   echo $ECHO_N "(cached) $ECHO_C" >&6
23660 else
23661   eval "$as_ac_Header=\$ac_header_preproc"
23663 ac_res=`eval echo '${'$as_ac_Header'}'`
23664                { echo "$as_me:$LINENO: result: $ac_res" >&5
23665 echo "${ECHO_T}$ac_res" >&6; }
23668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23669   cat >>confdefs.h <<_ACEOF
23670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23671 _ACEOF
23675 done
23678 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23679 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23680 if test "${ac_cv_c_const+set}" = set; then
23681   echo $ECHO_N "(cached) $ECHO_C" >&6
23682 else
23683   cat >conftest.$ac_ext <<_ACEOF
23684 /* confdefs.h.  */
23685 _ACEOF
23686 cat confdefs.h >>conftest.$ac_ext
23687 cat >>conftest.$ac_ext <<_ACEOF
23688 /* end confdefs.h.  */
23690 int
23691 main ()
23693 /* FIXME: Include the comments suggested by Paul. */
23694 #ifndef __cplusplus
23695   /* Ultrix mips cc rejects this.  */
23696   typedef int charset[2];
23697   const charset cs;
23698   /* SunOS 4.1.1 cc rejects this.  */
23699   char const *const *pcpcc;
23700   char **ppc;
23701   /* NEC SVR4.0.2 mips cc rejects this.  */
23702   struct point {int x, y;};
23703   static struct point const zero = {0,0};
23704   /* AIX XL C 1.02.0.0 rejects this.
23705      It does not let you subtract one const X* pointer from another in
23706      an arm of an if-expression whose if-part is not a constant
23707      expression */
23708   const char *g = "string";
23709   pcpcc = &g + (g ? g-g : 0);
23710   /* HPUX 7.0 cc rejects these. */
23711   ++pcpcc;
23712   ppc = (char**) pcpcc;
23713   pcpcc = (char const *const *) ppc;
23714   { /* SCO 3.2v4 cc rejects this.  */
23715     char *t;
23716     char const *s = 0 ? (char *) 0 : (char const *) 0;
23718     *t++ = 0;
23719     if (s) return 0;
23720   }
23721   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23722     int x[] = {25, 17};
23723     const int *foo = &x[0];
23724     ++foo;
23725   }
23726   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23727     typedef const int *iptr;
23728     iptr p = 0;
23729     ++p;
23730   }
23731   { /* AIX XL C 1.02.0.0 rejects this saying
23732        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23733     struct s { int j; const int *ap[3]; };
23734     struct s *b; b->j = 5;
23735   }
23736   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23737     const int foo = 10;
23738     if (!foo) return 0;
23739   }
23740   return !cs[0] && !zero.x;
23741 #endif
23743   ;
23744   return 0;
23746 _ACEOF
23747 rm -f conftest.$ac_objext
23748 if { (ac_try="$ac_compile"
23749 case "(($ac_try" in
23750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23751   *) ac_try_echo=$ac_try;;
23752 esac
23753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23754   (eval "$ac_compile") 2>conftest.er1
23755   ac_status=$?
23756   grep -v '^ *+' conftest.er1 >conftest.err
23757   rm -f conftest.er1
23758   cat conftest.err >&5
23759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760   (exit $ac_status); } && {
23761          test -z "$ac_c_werror_flag" ||
23762          test ! -s conftest.err
23763        } && test -s conftest.$ac_objext; then
23764   ac_cv_c_const=yes
23765 else
23766   echo "$as_me: failed program was:" >&5
23767 sed 's/^/| /' conftest.$ac_ext >&5
23769         ac_cv_c_const=no
23772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23774 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23775 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23776 if test $ac_cv_c_const = no; then
23778 cat >>confdefs.h <<\_ACEOF
23779 #define const
23780 _ACEOF
23784 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23785 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23786 if test "${ac_cv_c_bigendian+set}" = set; then
23787   echo $ECHO_N "(cached) $ECHO_C" >&6
23788 else
23789   # See if sys/param.h defines the BYTE_ORDER macro.
23790 cat >conftest.$ac_ext <<_ACEOF
23791 /* confdefs.h.  */
23792 _ACEOF
23793 cat confdefs.h >>conftest.$ac_ext
23794 cat >>conftest.$ac_ext <<_ACEOF
23795 /* end confdefs.h.  */
23796 #include <sys/types.h>
23797 #include <sys/param.h>
23799 int
23800 main ()
23802 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23803         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23804  bogus endian macros
23805 #endif
23807   ;
23808   return 0;
23810 _ACEOF
23811 rm -f conftest.$ac_objext
23812 if { (ac_try="$ac_compile"
23813 case "(($ac_try" in
23814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23815   *) ac_try_echo=$ac_try;;
23816 esac
23817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23818   (eval "$ac_compile") 2>conftest.er1
23819   ac_status=$?
23820   grep -v '^ *+' conftest.er1 >conftest.err
23821   rm -f conftest.er1
23822   cat conftest.err >&5
23823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824   (exit $ac_status); } && {
23825          test -z "$ac_c_werror_flag" ||
23826          test ! -s conftest.err
23827        } && test -s conftest.$ac_objext; then
23828   # It does; now see whether it defined to BIG_ENDIAN or not.
23829 cat >conftest.$ac_ext <<_ACEOF
23830 /* confdefs.h.  */
23831 _ACEOF
23832 cat confdefs.h >>conftest.$ac_ext
23833 cat >>conftest.$ac_ext <<_ACEOF
23834 /* end confdefs.h.  */
23835 #include <sys/types.h>
23836 #include <sys/param.h>
23838 int
23839 main ()
23841 #if BYTE_ORDER != BIG_ENDIAN
23842  not big endian
23843 #endif
23845   ;
23846   return 0;
23848 _ACEOF
23849 rm -f conftest.$ac_objext
23850 if { (ac_try="$ac_compile"
23851 case "(($ac_try" in
23852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23853   *) ac_try_echo=$ac_try;;
23854 esac
23855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23856   (eval "$ac_compile") 2>conftest.er1
23857   ac_status=$?
23858   grep -v '^ *+' conftest.er1 >conftest.err
23859   rm -f conftest.er1
23860   cat conftest.err >&5
23861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862   (exit $ac_status); } && {
23863          test -z "$ac_c_werror_flag" ||
23864          test ! -s conftest.err
23865        } && test -s conftest.$ac_objext; then
23866   ac_cv_c_bigendian=yes
23867 else
23868   echo "$as_me: failed program was:" >&5
23869 sed 's/^/| /' conftest.$ac_ext >&5
23871         ac_cv_c_bigendian=no
23874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23875 else
23876   echo "$as_me: failed program was:" >&5
23877 sed 's/^/| /' conftest.$ac_ext >&5
23879         # It does not; compile a test program.
23880 if test "$cross_compiling" = yes; then
23881   # try to guess the endianness by grepping values into an object file
23882   ac_cv_c_bigendian=unknown
23883   cat >conftest.$ac_ext <<_ACEOF
23884 /* confdefs.h.  */
23885 _ACEOF
23886 cat confdefs.h >>conftest.$ac_ext
23887 cat >>conftest.$ac_ext <<_ACEOF
23888 /* end confdefs.h.  */
23889 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23890 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23891 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23892 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23893 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23894 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23895 int
23896 main ()
23898  _ascii (); _ebcdic ();
23899   ;
23900   return 0;
23902 _ACEOF
23903 rm -f conftest.$ac_objext
23904 if { (ac_try="$ac_compile"
23905 case "(($ac_try" in
23906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23907   *) ac_try_echo=$ac_try;;
23908 esac
23909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23910   (eval "$ac_compile") 2>conftest.er1
23911   ac_status=$?
23912   grep -v '^ *+' conftest.er1 >conftest.err
23913   rm -f conftest.er1
23914   cat conftest.err >&5
23915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916   (exit $ac_status); } && {
23917          test -z "$ac_c_werror_flag" ||
23918          test ! -s conftest.err
23919        } && test -s conftest.$ac_objext; then
23920   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23921   ac_cv_c_bigendian=yes
23923 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23924   if test "$ac_cv_c_bigendian" = unknown; then
23925     ac_cv_c_bigendian=no
23926   else
23927     # finding both strings is unlikely to happen, but who knows?
23928     ac_cv_c_bigendian=unknown
23929   fi
23931 else
23932   echo "$as_me: failed program was:" >&5
23933 sed 's/^/| /' conftest.$ac_ext >&5
23938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23939 else
23940   cat >conftest.$ac_ext <<_ACEOF
23941 /* confdefs.h.  */
23942 _ACEOF
23943 cat confdefs.h >>conftest.$ac_ext
23944 cat >>conftest.$ac_ext <<_ACEOF
23945 /* end confdefs.h.  */
23946 $ac_includes_default
23947 int
23948 main ()
23951   /* Are we little or big endian?  From Harbison&Steele.  */
23952   union
23953   {
23954     long int l;
23955     char c[sizeof (long int)];
23956   } u;
23957   u.l = 1;
23958   return u.c[sizeof (long int) - 1] == 1;
23960   ;
23961   return 0;
23963 _ACEOF
23964 rm -f conftest$ac_exeext
23965 if { (ac_try="$ac_link"
23966 case "(($ac_try" in
23967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23968   *) ac_try_echo=$ac_try;;
23969 esac
23970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23971   (eval "$ac_link") 2>&5
23972   ac_status=$?
23973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23975   { (case "(($ac_try" in
23976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23977   *) ac_try_echo=$ac_try;;
23978 esac
23979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23980   (eval "$ac_try") 2>&5
23981   ac_status=$?
23982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983   (exit $ac_status); }; }; then
23984   ac_cv_c_bigendian=no
23985 else
23986   echo "$as_me: program exited with status $ac_status" >&5
23987 echo "$as_me: failed program was:" >&5
23988 sed 's/^/| /' conftest.$ac_ext >&5
23990 ( exit $ac_status )
23991 ac_cv_c_bigendian=yes
23993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24001 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24002 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
24003 case $ac_cv_c_bigendian in
24004   yes)
24005     ENDIAN="X_BIG_ENDIAN" ;;
24006   no)
24007     ENDIAN="X_LITTLE_ENDIAN" ;;
24008   *)
24009     { { echo "$as_me:$LINENO: error: unknown endianness
24010 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
24011 echo "$as_me: error: unknown endianness
24012 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
24013    { (exit 1); exit 1; }; } ;;
24014 esac
24017 { echo "$as_me:$LINENO: checking for unsigned long" >&5
24018 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
24019 if test "${ac_cv_type_unsigned_long+set}" = set; then
24020   echo $ECHO_N "(cached) $ECHO_C" >&6
24021 else
24022   cat >conftest.$ac_ext <<_ACEOF
24023 /* confdefs.h.  */
24024 _ACEOF
24025 cat confdefs.h >>conftest.$ac_ext
24026 cat >>conftest.$ac_ext <<_ACEOF
24027 /* end confdefs.h.  */
24028 $ac_includes_default
24029 typedef unsigned long ac__type_new_;
24030 int
24031 main ()
24033 if ((ac__type_new_ *) 0)
24034   return 0;
24035 if (sizeof (ac__type_new_))
24036   return 0;
24037   ;
24038   return 0;
24040 _ACEOF
24041 rm -f conftest.$ac_objext
24042 if { (ac_try="$ac_compile"
24043 case "(($ac_try" in
24044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24045   *) ac_try_echo=$ac_try;;
24046 esac
24047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24048   (eval "$ac_compile") 2>conftest.er1
24049   ac_status=$?
24050   grep -v '^ *+' conftest.er1 >conftest.err
24051   rm -f conftest.er1
24052   cat conftest.err >&5
24053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054   (exit $ac_status); } && {
24055          test -z "$ac_c_werror_flag" ||
24056          test ! -s conftest.err
24057        } && test -s conftest.$ac_objext; then
24058   ac_cv_type_unsigned_long=yes
24059 else
24060   echo "$as_me: failed program was:" >&5
24061 sed 's/^/| /' conftest.$ac_ext >&5
24063         ac_cv_type_unsigned_long=no
24066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24068 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
24069 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
24071 # The cast to long int works around a bug in the HP C Compiler
24072 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24073 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24074 # This bug is HP SR number 8606223364.
24075 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
24076 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
24077 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
24078   echo $ECHO_N "(cached) $ECHO_C" >&6
24079 else
24080   if test "$cross_compiling" = yes; then
24081   # Depending upon the size, compute the lo and hi bounds.
24082 cat >conftest.$ac_ext <<_ACEOF
24083 /* confdefs.h.  */
24084 _ACEOF
24085 cat confdefs.h >>conftest.$ac_ext
24086 cat >>conftest.$ac_ext <<_ACEOF
24087 /* end confdefs.h.  */
24088 $ac_includes_default
24089    typedef unsigned long ac__type_sizeof_;
24090 int
24091 main ()
24093 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24094 test_array [0] = 0
24096   ;
24097   return 0;
24099 _ACEOF
24100 rm -f conftest.$ac_objext
24101 if { (ac_try="$ac_compile"
24102 case "(($ac_try" in
24103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24104   *) ac_try_echo=$ac_try;;
24105 esac
24106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24107   (eval "$ac_compile") 2>conftest.er1
24108   ac_status=$?
24109   grep -v '^ *+' conftest.er1 >conftest.err
24110   rm -f conftest.er1
24111   cat conftest.err >&5
24112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24113   (exit $ac_status); } && {
24114          test -z "$ac_c_werror_flag" ||
24115          test ! -s conftest.err
24116        } && test -s conftest.$ac_objext; then
24117   ac_lo=0 ac_mid=0
24118   while :; do
24119     cat >conftest.$ac_ext <<_ACEOF
24120 /* confdefs.h.  */
24121 _ACEOF
24122 cat confdefs.h >>conftest.$ac_ext
24123 cat >>conftest.$ac_ext <<_ACEOF
24124 /* end confdefs.h.  */
24125 $ac_includes_default
24126    typedef unsigned long ac__type_sizeof_;
24127 int
24128 main ()
24130 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24131 test_array [0] = 0
24133   ;
24134   return 0;
24136 _ACEOF
24137 rm -f conftest.$ac_objext
24138 if { (ac_try="$ac_compile"
24139 case "(($ac_try" in
24140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24141   *) ac_try_echo=$ac_try;;
24142 esac
24143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24144   (eval "$ac_compile") 2>conftest.er1
24145   ac_status=$?
24146   grep -v '^ *+' conftest.er1 >conftest.err
24147   rm -f conftest.er1
24148   cat conftest.err >&5
24149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150   (exit $ac_status); } && {
24151          test -z "$ac_c_werror_flag" ||
24152          test ! -s conftest.err
24153        } && test -s conftest.$ac_objext; then
24154   ac_hi=$ac_mid; break
24155 else
24156   echo "$as_me: failed program was:" >&5
24157 sed 's/^/| /' conftest.$ac_ext >&5
24159         ac_lo=`expr $ac_mid + 1`
24160                         if test $ac_lo -le $ac_mid; then
24161                           ac_lo= ac_hi=
24162                           break
24163                         fi
24164                         ac_mid=`expr 2 '*' $ac_mid + 1`
24167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24168   done
24169 else
24170   echo "$as_me: failed program was:" >&5
24171 sed 's/^/| /' conftest.$ac_ext >&5
24173         cat >conftest.$ac_ext <<_ACEOF
24174 /* confdefs.h.  */
24175 _ACEOF
24176 cat confdefs.h >>conftest.$ac_ext
24177 cat >>conftest.$ac_ext <<_ACEOF
24178 /* end confdefs.h.  */
24179 $ac_includes_default
24180    typedef unsigned long ac__type_sizeof_;
24181 int
24182 main ()
24184 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24185 test_array [0] = 0
24187   ;
24188   return 0;
24190 _ACEOF
24191 rm -f conftest.$ac_objext
24192 if { (ac_try="$ac_compile"
24193 case "(($ac_try" in
24194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24195   *) ac_try_echo=$ac_try;;
24196 esac
24197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24198   (eval "$ac_compile") 2>conftest.er1
24199   ac_status=$?
24200   grep -v '^ *+' conftest.er1 >conftest.err
24201   rm -f conftest.er1
24202   cat conftest.err >&5
24203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24204   (exit $ac_status); } && {
24205          test -z "$ac_c_werror_flag" ||
24206          test ! -s conftest.err
24207        } && test -s conftest.$ac_objext; then
24208   ac_hi=-1 ac_mid=-1
24209   while :; do
24210     cat >conftest.$ac_ext <<_ACEOF
24211 /* confdefs.h.  */
24212 _ACEOF
24213 cat confdefs.h >>conftest.$ac_ext
24214 cat >>conftest.$ac_ext <<_ACEOF
24215 /* end confdefs.h.  */
24216 $ac_includes_default
24217    typedef unsigned long ac__type_sizeof_;
24218 int
24219 main ()
24221 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24222 test_array [0] = 0
24224   ;
24225   return 0;
24227 _ACEOF
24228 rm -f conftest.$ac_objext
24229 if { (ac_try="$ac_compile"
24230 case "(($ac_try" in
24231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24232   *) ac_try_echo=$ac_try;;
24233 esac
24234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24235   (eval "$ac_compile") 2>conftest.er1
24236   ac_status=$?
24237   grep -v '^ *+' conftest.er1 >conftest.err
24238   rm -f conftest.er1
24239   cat conftest.err >&5
24240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241   (exit $ac_status); } && {
24242          test -z "$ac_c_werror_flag" ||
24243          test ! -s conftest.err
24244        } && test -s conftest.$ac_objext; then
24245   ac_lo=$ac_mid; break
24246 else
24247   echo "$as_me: failed program was:" >&5
24248 sed 's/^/| /' conftest.$ac_ext >&5
24250         ac_hi=`expr '(' $ac_mid ')' - 1`
24251                         if test $ac_mid -le $ac_hi; then
24252                           ac_lo= ac_hi=
24253                           break
24254                         fi
24255                         ac_mid=`expr 2 '*' $ac_mid`
24258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24259   done
24260 else
24261   echo "$as_me: failed program was:" >&5
24262 sed 's/^/| /' conftest.$ac_ext >&5
24264         ac_lo= ac_hi=
24267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24271 # Binary search between lo and hi bounds.
24272 while test "x$ac_lo" != "x$ac_hi"; do
24273   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24274   cat >conftest.$ac_ext <<_ACEOF
24275 /* confdefs.h.  */
24276 _ACEOF
24277 cat confdefs.h >>conftest.$ac_ext
24278 cat >>conftest.$ac_ext <<_ACEOF
24279 /* end confdefs.h.  */
24280 $ac_includes_default
24281    typedef unsigned long ac__type_sizeof_;
24282 int
24283 main ()
24285 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24286 test_array [0] = 0
24288   ;
24289   return 0;
24291 _ACEOF
24292 rm -f conftest.$ac_objext
24293 if { (ac_try="$ac_compile"
24294 case "(($ac_try" in
24295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24296   *) ac_try_echo=$ac_try;;
24297 esac
24298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24299   (eval "$ac_compile") 2>conftest.er1
24300   ac_status=$?
24301   grep -v '^ *+' conftest.er1 >conftest.err
24302   rm -f conftest.er1
24303   cat conftest.err >&5
24304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24305   (exit $ac_status); } && {
24306          test -z "$ac_c_werror_flag" ||
24307          test ! -s conftest.err
24308        } && test -s conftest.$ac_objext; then
24309   ac_hi=$ac_mid
24310 else
24311   echo "$as_me: failed program was:" >&5
24312 sed 's/^/| /' conftest.$ac_ext >&5
24314         ac_lo=`expr '(' $ac_mid ')' + 1`
24317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24318 done
24319 case $ac_lo in
24320 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
24321 '') if test "$ac_cv_type_unsigned_long" = yes; then
24322      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
24323 See \`config.log' for more details." >&5
24324 echo "$as_me: error: cannot compute sizeof (unsigned long)
24325 See \`config.log' for more details." >&2;}
24326    { (exit 77); exit 77; }; }
24327    else
24328      ac_cv_sizeof_unsigned_long=0
24329    fi ;;
24330 esac
24331 else
24332   cat >conftest.$ac_ext <<_ACEOF
24333 /* confdefs.h.  */
24334 _ACEOF
24335 cat confdefs.h >>conftest.$ac_ext
24336 cat >>conftest.$ac_ext <<_ACEOF
24337 /* end confdefs.h.  */
24338 $ac_includes_default
24339    typedef unsigned long ac__type_sizeof_;
24340 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24341 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24342 #include <stdio.h>
24343 #include <stdlib.h>
24344 int
24345 main ()
24348   FILE *f = fopen ("conftest.val", "w");
24349   if (! f)
24350     return 1;
24351   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24352     {
24353       long int i = longval ();
24354       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24355         return 1;
24356       fprintf (f, "%ld\n", i);
24357     }
24358   else
24359     {
24360       unsigned long int i = ulongval ();
24361       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24362         return 1;
24363       fprintf (f, "%lu\n", i);
24364     }
24365   return ferror (f) || fclose (f) != 0;
24367   ;
24368   return 0;
24370 _ACEOF
24371 rm -f conftest$ac_exeext
24372 if { (ac_try="$ac_link"
24373 case "(($ac_try" in
24374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24375   *) ac_try_echo=$ac_try;;
24376 esac
24377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24378   (eval "$ac_link") 2>&5
24379   ac_status=$?
24380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24381   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24382   { (case "(($ac_try" in
24383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24384   *) ac_try_echo=$ac_try;;
24385 esac
24386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24387   (eval "$ac_try") 2>&5
24388   ac_status=$?
24389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390   (exit $ac_status); }; }; then
24391   ac_cv_sizeof_unsigned_long=`cat conftest.val`
24392 else
24393   echo "$as_me: program exited with status $ac_status" >&5
24394 echo "$as_me: failed program was:" >&5
24395 sed 's/^/| /' conftest.$ac_ext >&5
24397 ( exit $ac_status )
24398 if test "$ac_cv_type_unsigned_long" = yes; then
24399      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
24400 See \`config.log' for more details." >&5
24401 echo "$as_me: error: cannot compute sizeof (unsigned long)
24402 See \`config.log' for more details." >&2;}
24403    { (exit 77); exit 77; }; }
24404    else
24405      ac_cv_sizeof_unsigned_long=0
24406    fi
24408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24410 rm -f conftest.val
24412 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
24413 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
24417 cat >>confdefs.h <<_ACEOF
24418 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24419 _ACEOF
24422 if test "$ac_cv_sizeof_unsigned_long" = 8; then
24424 cat >>confdefs.h <<\_ACEOF
24425 #define _XSERVER64 1
24426 _ACEOF
24430 { echo "$as_me:$LINENO: checking for pid_t" >&5
24431 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24432 if test "${ac_cv_type_pid_t+set}" = set; then
24433   echo $ECHO_N "(cached) $ECHO_C" >&6
24434 else
24435   cat >conftest.$ac_ext <<_ACEOF
24436 /* confdefs.h.  */
24437 _ACEOF
24438 cat confdefs.h >>conftest.$ac_ext
24439 cat >>conftest.$ac_ext <<_ACEOF
24440 /* end confdefs.h.  */
24441 $ac_includes_default
24442 typedef pid_t ac__type_new_;
24443 int
24444 main ()
24446 if ((ac__type_new_ *) 0)
24447   return 0;
24448 if (sizeof (ac__type_new_))
24449   return 0;
24450   ;
24451   return 0;
24453 _ACEOF
24454 rm -f conftest.$ac_objext
24455 if { (ac_try="$ac_compile"
24456 case "(($ac_try" in
24457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24458   *) ac_try_echo=$ac_try;;
24459 esac
24460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24461   (eval "$ac_compile") 2>conftest.er1
24462   ac_status=$?
24463   grep -v '^ *+' conftest.er1 >conftest.err
24464   rm -f conftest.er1
24465   cat conftest.err >&5
24466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467   (exit $ac_status); } && {
24468          test -z "$ac_c_werror_flag" ||
24469          test ! -s conftest.err
24470        } && test -s conftest.$ac_objext; then
24471   ac_cv_type_pid_t=yes
24472 else
24473   echo "$as_me: failed program was:" >&5
24474 sed 's/^/| /' conftest.$ac_ext >&5
24476         ac_cv_type_pid_t=no
24479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24481 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24482 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24483 if test $ac_cv_type_pid_t = yes; then
24484   :
24485 else
24487 cat >>confdefs.h <<_ACEOF
24488 #define pid_t int
24489 _ACEOF
24494 # Checks for headers/macros for byte swapping
24495 # Known variants:
24496 #       <byteswap.h> bswap_16, bswap_32, bswap_64  (glibc)
24497 #       <sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
24498 #       <sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
24499 #       and a fallback to local macros if none of the above are found
24501 # if <byteswap.h> is found, assume it's the correct version
24503 for ac_header in byteswap.h
24505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24507   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24510   echo $ECHO_N "(cached) $ECHO_C" >&6
24512 ac_res=`eval echo '${'$as_ac_Header'}'`
24513                { echo "$as_me:$LINENO: result: $ac_res" >&5
24514 echo "${ECHO_T}$ac_res" >&6; }
24515 else
24516   # Is the header compilable?
24517 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24518 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24519 cat >conftest.$ac_ext <<_ACEOF
24520 /* confdefs.h.  */
24521 _ACEOF
24522 cat confdefs.h >>conftest.$ac_ext
24523 cat >>conftest.$ac_ext <<_ACEOF
24524 /* end confdefs.h.  */
24525 $ac_includes_default
24526 #include <$ac_header>
24527 _ACEOF
24528 rm -f conftest.$ac_objext
24529 if { (ac_try="$ac_compile"
24530 case "(($ac_try" in
24531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24532   *) ac_try_echo=$ac_try;;
24533 esac
24534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24535   (eval "$ac_compile") 2>conftest.er1
24536   ac_status=$?
24537   grep -v '^ *+' conftest.er1 >conftest.err
24538   rm -f conftest.er1
24539   cat conftest.err >&5
24540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541   (exit $ac_status); } && {
24542          test -z "$ac_c_werror_flag" ||
24543          test ! -s conftest.err
24544        } && test -s conftest.$ac_objext; then
24545   ac_header_compiler=yes
24546 else
24547   echo "$as_me: failed program was:" >&5
24548 sed 's/^/| /' conftest.$ac_ext >&5
24550         ac_header_compiler=no
24553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24555 echo "${ECHO_T}$ac_header_compiler" >&6; }
24557 # Is the header present?
24558 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24560 cat >conftest.$ac_ext <<_ACEOF
24561 /* confdefs.h.  */
24562 _ACEOF
24563 cat confdefs.h >>conftest.$ac_ext
24564 cat >>conftest.$ac_ext <<_ACEOF
24565 /* end confdefs.h.  */
24566 #include <$ac_header>
24567 _ACEOF
24568 if { (ac_try="$ac_cpp conftest.$ac_ext"
24569 case "(($ac_try" in
24570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24571   *) ac_try_echo=$ac_try;;
24572 esac
24573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24574   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24575   ac_status=$?
24576   grep -v '^ *+' conftest.er1 >conftest.err
24577   rm -f conftest.er1
24578   cat conftest.err >&5
24579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24580   (exit $ac_status); } >/dev/null && {
24581          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24582          test ! -s conftest.err
24583        }; then
24584   ac_header_preproc=yes
24585 else
24586   echo "$as_me: failed program was:" >&5
24587 sed 's/^/| /' conftest.$ac_ext >&5
24589   ac_header_preproc=no
24592 rm -f conftest.err conftest.$ac_ext
24593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24594 echo "${ECHO_T}$ac_header_preproc" >&6; }
24596 # So?  What about this header?
24597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24598   yes:no: )
24599     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24603     ac_header_preproc=yes
24604     ;;
24605   no:yes:* )
24606     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24608     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24609 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24610     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24612     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24613 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24616     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24618     ( cat <<\_ASBOX
24619 ## ---------------------------------------------------------------------- ##
24620 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
24621 ## ---------------------------------------------------------------------- ##
24622 _ASBOX
24623      ) | sed "s/^/$as_me: WARNING:     /" >&2
24624     ;;
24625 esac
24626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24629   echo $ECHO_N "(cached) $ECHO_C" >&6
24630 else
24631   eval "$as_ac_Header=\$ac_header_preproc"
24633 ac_res=`eval echo '${'$as_ac_Header'}'`
24634                { echo "$as_me:$LINENO: result: $ac_res" >&5
24635 echo "${ECHO_T}$ac_res" >&6; }
24638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24639   cat >>confdefs.h <<_ACEOF
24640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24641 _ACEOF
24645 done
24648 # if <sys/endian.h> is found, have to check which version
24649 if test "${ac_cv_header_sys_endian_h+set}" = set; then
24650   { echo "$as_me:$LINENO: checking for sys/endian.h" >&5
24651 echo $ECHO_N "checking for sys/endian.h... $ECHO_C" >&6; }
24652 if test "${ac_cv_header_sys_endian_h+set}" = set; then
24653   echo $ECHO_N "(cached) $ECHO_C" >&6
24655 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_endian_h" >&5
24656 echo "${ECHO_T}$ac_cv_header_sys_endian_h" >&6; }
24657 else
24658   # Is the header compilable?
24659 { echo "$as_me:$LINENO: checking sys/endian.h usability" >&5
24660 echo $ECHO_N "checking sys/endian.h usability... $ECHO_C" >&6; }
24661 cat >conftest.$ac_ext <<_ACEOF
24662 /* confdefs.h.  */
24663 _ACEOF
24664 cat confdefs.h >>conftest.$ac_ext
24665 cat >>conftest.$ac_ext <<_ACEOF
24666 /* end confdefs.h.  */
24667 $ac_includes_default
24668 #include <sys/endian.h>
24669 _ACEOF
24670 rm -f conftest.$ac_objext
24671 if { (ac_try="$ac_compile"
24672 case "(($ac_try" in
24673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24674   *) ac_try_echo=$ac_try;;
24675 esac
24676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24677   (eval "$ac_compile") 2>conftest.er1
24678   ac_status=$?
24679   grep -v '^ *+' conftest.er1 >conftest.err
24680   rm -f conftest.er1
24681   cat conftest.err >&5
24682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683   (exit $ac_status); } && {
24684          test -z "$ac_c_werror_flag" ||
24685          test ! -s conftest.err
24686        } && test -s conftest.$ac_objext; then
24687   ac_header_compiler=yes
24688 else
24689   echo "$as_me: failed program was:" >&5
24690 sed 's/^/| /' conftest.$ac_ext >&5
24692         ac_header_compiler=no
24695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24696 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24697 echo "${ECHO_T}$ac_header_compiler" >&6; }
24699 # Is the header present?
24700 { echo "$as_me:$LINENO: checking sys/endian.h presence" >&5
24701 echo $ECHO_N "checking sys/endian.h presence... $ECHO_C" >&6; }
24702 cat >conftest.$ac_ext <<_ACEOF
24703 /* confdefs.h.  */
24704 _ACEOF
24705 cat confdefs.h >>conftest.$ac_ext
24706 cat >>conftest.$ac_ext <<_ACEOF
24707 /* end confdefs.h.  */
24708 #include <sys/endian.h>
24709 _ACEOF
24710 if { (ac_try="$ac_cpp conftest.$ac_ext"
24711 case "(($ac_try" in
24712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24713   *) ac_try_echo=$ac_try;;
24714 esac
24715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24716   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24717   ac_status=$?
24718   grep -v '^ *+' conftest.er1 >conftest.err
24719   rm -f conftest.er1
24720   cat conftest.err >&5
24721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722   (exit $ac_status); } >/dev/null && {
24723          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24724          test ! -s conftest.err
24725        }; then
24726   ac_header_preproc=yes
24727 else
24728   echo "$as_me: failed program was:" >&5
24729 sed 's/^/| /' conftest.$ac_ext >&5
24731   ac_header_preproc=no
24734 rm -f conftest.err conftest.$ac_ext
24735 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24736 echo "${ECHO_T}$ac_header_preproc" >&6; }
24738 # So?  What about this header?
24739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24740   yes:no: )
24741     { echo "$as_me:$LINENO: WARNING: sys/endian.h: accepted by the compiler, rejected by the preprocessor!" >&5
24742 echo "$as_me: WARNING: sys/endian.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24743     { echo "$as_me:$LINENO: WARNING: sys/endian.h: proceeding with the compiler's result" >&5
24744 echo "$as_me: WARNING: sys/endian.h: proceeding with the compiler's result" >&2;}
24745     ac_header_preproc=yes
24746     ;;
24747   no:yes:* )
24748     { echo "$as_me:$LINENO: WARNING: sys/endian.h: present but cannot be compiled" >&5
24749 echo "$as_me: WARNING: sys/endian.h: present but cannot be compiled" >&2;}
24750     { echo "$as_me:$LINENO: WARNING: sys/endian.h:     check for missing prerequisite headers?" >&5
24751 echo "$as_me: WARNING: sys/endian.h:     check for missing prerequisite headers?" >&2;}
24752     { echo "$as_me:$LINENO: WARNING: sys/endian.h: see the Autoconf documentation" >&5
24753 echo "$as_me: WARNING: sys/endian.h: see the Autoconf documentation" >&2;}
24754     { echo "$as_me:$LINENO: WARNING: sys/endian.h:     section \"Present But Cannot Be Compiled\"" >&5
24755 echo "$as_me: WARNING: sys/endian.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24756     { echo "$as_me:$LINENO: WARNING: sys/endian.h: proceeding with the preprocessor's result" >&5
24757 echo "$as_me: WARNING: sys/endian.h: proceeding with the preprocessor's result" >&2;}
24758     { echo "$as_me:$LINENO: WARNING: sys/endian.h: in the future, the compiler will take precedence" >&5
24759 echo "$as_me: WARNING: sys/endian.h: in the future, the compiler will take precedence" >&2;}
24760     ( cat <<\_ASBOX
24761 ## ---------------------------------------------------------------------- ##
24762 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
24763 ## ---------------------------------------------------------------------- ##
24764 _ASBOX
24765      ) | sed "s/^/$as_me: WARNING:     /" >&2
24766     ;;
24767 esac
24768 { echo "$as_me:$LINENO: checking for sys/endian.h" >&5
24769 echo $ECHO_N "checking for sys/endian.h... $ECHO_C" >&6; }
24770 if test "${ac_cv_header_sys_endian_h+set}" = set; then
24771   echo $ECHO_N "(cached) $ECHO_C" >&6
24772 else
24773   ac_cv_header_sys_endian_h=$ac_header_preproc
24775 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_endian_h" >&5
24776 echo "${ECHO_T}$ac_cv_header_sys_endian_h" >&6; }
24779 if test $ac_cv_header_sys_endian_h = yes; then
24780   HAVE_SYS_ENDIAN_H="yes"
24781 else
24782   HAVE_SYS_ENDIAN_H="no"
24787 if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
24788         { echo "$as_me:$LINENO: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
24789 echo $ECHO_N "checking for __swap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; }
24790         cat >conftest.$ac_ext <<_ACEOF
24791 /* confdefs.h.  */
24792 _ACEOF
24793 cat confdefs.h >>conftest.$ac_ext
24794 cat >>conftest.$ac_ext <<_ACEOF
24795 /* end confdefs.h.  */
24797 #include <sys/types.h>
24798 #include <sys/endian.h>
24800 int
24801 main ()
24804 int a = 1, b;
24805 b = __swap16(a);
24807   ;
24808   return 0;
24811 _ACEOF
24812 rm -f conftest.$ac_objext conftest$ac_exeext
24813 if { (ac_try="$ac_link"
24814 case "(($ac_try" in
24815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24816   *) ac_try_echo=$ac_try;;
24817 esac
24818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24819   (eval "$ac_link") 2>conftest.er1
24820   ac_status=$?
24821   grep -v '^ *+' conftest.er1 >conftest.err
24822   rm -f conftest.er1
24823   cat conftest.err >&5
24824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825   (exit $ac_status); } && {
24826          test -z "$ac_c_werror_flag" ||
24827          test ! -s conftest.err
24828        } && test -s conftest$ac_exeext &&
24829        $as_test_x conftest$ac_exeext; then
24830   SYS_ENDIAN__SWAP='yes'
24831 else
24832   echo "$as_me: failed program was:" >&5
24833 sed 's/^/| /' conftest.$ac_ext >&5
24835         SYS_ENDIAN__SWAP='no'
24838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24839       conftest$ac_exeext conftest.$ac_ext
24840         { echo "$as_me:$LINENO: result: $SYS_ENDIAN__SWAP" >&5
24841 echo "${ECHO_T}$SYS_ENDIAN__SWAP" >&6; }
24843         { echo "$as_me:$LINENO: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
24844 echo $ECHO_N "checking for bswap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; }
24845         cat >conftest.$ac_ext <<_ACEOF
24846 /* confdefs.h.  */
24847 _ACEOF
24848 cat confdefs.h >>conftest.$ac_ext
24849 cat >>conftest.$ac_ext <<_ACEOF
24850 /* end confdefs.h.  */
24852 #include <sys/types.h>
24853 #include <sys/endian.h>
24855 int
24856 main ()
24859 int a = 1, b;
24860 b = bswap16(a);
24862   ;
24863   return 0;
24866 _ACEOF
24867 rm -f conftest.$ac_objext conftest$ac_exeext
24868 if { (ac_try="$ac_link"
24869 case "(($ac_try" in
24870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24871   *) ac_try_echo=$ac_try;;
24872 esac
24873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24874   (eval "$ac_link") 2>conftest.er1
24875   ac_status=$?
24876   grep -v '^ *+' conftest.er1 >conftest.err
24877   rm -f conftest.er1
24878   cat conftest.err >&5
24879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880   (exit $ac_status); } && {
24881          test -z "$ac_c_werror_flag" ||
24882          test ! -s conftest.err
24883        } && test -s conftest$ac_exeext &&
24884        $as_test_x conftest$ac_exeext; then
24885   SYS_ENDIAN_BSWAP='yes'
24886 else
24887   echo "$as_me: failed program was:" >&5
24888 sed 's/^/| /' conftest.$ac_ext >&5
24890         SYS_ENDIAN_BSWAP='no'
24893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24894       conftest$ac_exeext conftest.$ac_ext
24895         { echo "$as_me:$LINENO: result: $SYS_ENDIAN_BSWAP" >&5
24896 echo "${ECHO_T}$SYS_ENDIAN_BSWAP" >&6; }
24898         if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
24899                 USE_SYS_ENDIAN_H=yes
24900                 BSWAP=bswap
24901         else
24902                 if test "$SYS_ENDIAN__SWAP" = "yes" ; then
24903                         USE_SYS_ENDIAN_H=yes
24904                         BSWAP=__swap
24905                 else
24906                         USE_SYS_ENDIAN_H=no
24907                 fi
24908         fi
24910         if test "$USE_SYS_ENDIAN_H" = "yes" ; then
24912 cat >>confdefs.h <<\_ACEOF
24913 #define USE_SYS_ENDIAN_H 1
24914 _ACEOF
24917 cat >>confdefs.h <<_ACEOF
24918 #define bswap_16 ${BSWAP}16
24919 _ACEOF
24922 cat >>confdefs.h <<_ACEOF
24923 #define bswap_32 ${BSWAP}32
24924 _ACEOF
24927 cat >>confdefs.h <<_ACEOF
24928 #define bswap_64 ${BSWAP}64
24929 _ACEOF
24931         fi
24934 { echo "$as_me:$LINENO: checking for dlopen" >&5
24935 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
24936 if test "${ac_cv_func_dlopen+set}" = set; then
24937   echo $ECHO_N "(cached) $ECHO_C" >&6
24938 else
24939   cat >conftest.$ac_ext <<_ACEOF
24940 /* confdefs.h.  */
24941 _ACEOF
24942 cat confdefs.h >>conftest.$ac_ext
24943 cat >>conftest.$ac_ext <<_ACEOF
24944 /* end confdefs.h.  */
24945 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
24946    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24947 #define dlopen innocuous_dlopen
24949 /* System header to define __stub macros and hopefully few prototypes,
24950     which can conflict with char dlopen (); below.
24951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24952     <limits.h> exists even on freestanding compilers.  */
24954 #ifdef __STDC__
24955 # include <limits.h>
24956 #else
24957 # include <assert.h>
24958 #endif
24960 #undef dlopen
24962 /* Override any GCC internal prototype to avoid an error.
24963    Use char because int might match the return type of a GCC
24964    builtin and then its argument prototype would still apply.  */
24965 #ifdef __cplusplus
24966 extern "C"
24967 #endif
24968 char dlopen ();
24969 /* The GNU C library defines this for functions which it implements
24970     to always fail with ENOSYS.  Some functions are actually named
24971     something starting with __ and the normal name is an alias.  */
24972 #if defined __stub_dlopen || defined __stub___dlopen
24973 choke me
24974 #endif
24976 int
24977 main ()
24979 return dlopen ();
24980   ;
24981   return 0;
24983 _ACEOF
24984 rm -f conftest.$ac_objext conftest$ac_exeext
24985 if { (ac_try="$ac_link"
24986 case "(($ac_try" in
24987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24988   *) ac_try_echo=$ac_try;;
24989 esac
24990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24991   (eval "$ac_link") 2>conftest.er1
24992   ac_status=$?
24993   grep -v '^ *+' conftest.er1 >conftest.err
24994   rm -f conftest.er1
24995   cat conftest.err >&5
24996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997   (exit $ac_status); } && {
24998          test -z "$ac_c_werror_flag" ||
24999          test ! -s conftest.err
25000        } && test -s conftest$ac_exeext &&
25001        $as_test_x conftest$ac_exeext; then
25002   ac_cv_func_dlopen=yes
25003 else
25004   echo "$as_me: failed program was:" >&5
25005 sed 's/^/| /' conftest.$ac_ext >&5
25007         ac_cv_func_dlopen=no
25010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25011       conftest$ac_exeext conftest.$ac_ext
25013 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
25014 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
25015 if test $ac_cv_func_dlopen = yes; then
25016   :
25017 else
25018   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
25019 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
25020 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
25021   echo $ECHO_N "(cached) $ECHO_C" >&6
25022 else
25023   ac_check_lib_save_LIBS=$LIBS
25024 LIBS="-ldl  $LIBS"
25025 cat >conftest.$ac_ext <<_ACEOF
25026 /* confdefs.h.  */
25027 _ACEOF
25028 cat confdefs.h >>conftest.$ac_ext
25029 cat >>conftest.$ac_ext <<_ACEOF
25030 /* end confdefs.h.  */
25032 /* Override any GCC internal prototype to avoid an error.
25033    Use char because int might match the return type of a GCC
25034    builtin and then its argument prototype would still apply.  */
25035 #ifdef __cplusplus
25036 extern "C"
25037 #endif
25038 char dlopen ();
25039 int
25040 main ()
25042 return dlopen ();
25043   ;
25044   return 0;
25046 _ACEOF
25047 rm -f conftest.$ac_objext conftest$ac_exeext
25048 if { (ac_try="$ac_link"
25049 case "(($ac_try" in
25050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25051   *) ac_try_echo=$ac_try;;
25052 esac
25053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25054   (eval "$ac_link") 2>conftest.er1
25055   ac_status=$?
25056   grep -v '^ *+' conftest.er1 >conftest.err
25057   rm -f conftest.er1
25058   cat conftest.err >&5
25059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25060   (exit $ac_status); } && {
25061          test -z "$ac_c_werror_flag" ||
25062          test ! -s conftest.err
25063        } && test -s conftest$ac_exeext &&
25064        $as_test_x conftest$ac_exeext; then
25065   ac_cv_lib_dl_dlopen=yes
25066 else
25067   echo "$as_me: failed program was:" >&5
25068 sed 's/^/| /' conftest.$ac_ext >&5
25070         ac_cv_lib_dl_dlopen=no
25073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25074       conftest$ac_exeext conftest.$ac_ext
25075 LIBS=$ac_check_lib_save_LIBS
25077 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
25078 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
25079 if test $ac_cv_lib_dl_dlopen = yes; then
25080   DLOPEN_LIBS="-ldl"
25088 for ac_func in vprintf
25090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25091 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25094   echo $ECHO_N "(cached) $ECHO_C" >&6
25095 else
25096   cat >conftest.$ac_ext <<_ACEOF
25097 /* confdefs.h.  */
25098 _ACEOF
25099 cat confdefs.h >>conftest.$ac_ext
25100 cat >>conftest.$ac_ext <<_ACEOF
25101 /* end confdefs.h.  */
25102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25103    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25104 #define $ac_func innocuous_$ac_func
25106 /* System header to define __stub macros and hopefully few prototypes,
25107     which can conflict with char $ac_func (); below.
25108     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25109     <limits.h> exists even on freestanding compilers.  */
25111 #ifdef __STDC__
25112 # include <limits.h>
25113 #else
25114 # include <assert.h>
25115 #endif
25117 #undef $ac_func
25119 /* Override any GCC internal prototype to avoid an error.
25120    Use char because int might match the return type of a GCC
25121    builtin and then its argument prototype would still apply.  */
25122 #ifdef __cplusplus
25123 extern "C"
25124 #endif
25125 char $ac_func ();
25126 /* The GNU C library defines this for functions which it implements
25127     to always fail with ENOSYS.  Some functions are actually named
25128     something starting with __ and the normal name is an alias.  */
25129 #if defined __stub_$ac_func || defined __stub___$ac_func
25130 choke me
25131 #endif
25133 int
25134 main ()
25136 return $ac_func ();
25137   ;
25138   return 0;
25140 _ACEOF
25141 rm -f conftest.$ac_objext conftest$ac_exeext
25142 if { (ac_try="$ac_link"
25143 case "(($ac_try" in
25144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25145   *) ac_try_echo=$ac_try;;
25146 esac
25147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25148   (eval "$ac_link") 2>conftest.er1
25149   ac_status=$?
25150   grep -v '^ *+' conftest.er1 >conftest.err
25151   rm -f conftest.er1
25152   cat conftest.err >&5
25153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154   (exit $ac_status); } && {
25155          test -z "$ac_c_werror_flag" ||
25156          test ! -s conftest.err
25157        } && test -s conftest$ac_exeext &&
25158        $as_test_x conftest$ac_exeext; then
25159   eval "$as_ac_var=yes"
25160 else
25161   echo "$as_me: failed program was:" >&5
25162 sed 's/^/| /' conftest.$ac_ext >&5
25164         eval "$as_ac_var=no"
25167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25168       conftest$ac_exeext conftest.$ac_ext
25170 ac_res=`eval echo '${'$as_ac_var'}'`
25171                { echo "$as_me:$LINENO: result: $ac_res" >&5
25172 echo "${ECHO_T}$ac_res" >&6; }
25173 if test `eval echo '${'$as_ac_var'}'` = yes; then
25174   cat >>confdefs.h <<_ACEOF
25175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25176 _ACEOF
25178 { echo "$as_me:$LINENO: checking for _doprnt" >&5
25179 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
25180 if test "${ac_cv_func__doprnt+set}" = set; then
25181   echo $ECHO_N "(cached) $ECHO_C" >&6
25182 else
25183   cat >conftest.$ac_ext <<_ACEOF
25184 /* confdefs.h.  */
25185 _ACEOF
25186 cat confdefs.h >>conftest.$ac_ext
25187 cat >>conftest.$ac_ext <<_ACEOF
25188 /* end confdefs.h.  */
25189 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25190    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25191 #define _doprnt innocuous__doprnt
25193 /* System header to define __stub macros and hopefully few prototypes,
25194     which can conflict with char _doprnt (); below.
25195     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25196     <limits.h> exists even on freestanding compilers.  */
25198 #ifdef __STDC__
25199 # include <limits.h>
25200 #else
25201 # include <assert.h>
25202 #endif
25204 #undef _doprnt
25206 /* Override any GCC internal prototype to avoid an error.
25207    Use char because int might match the return type of a GCC
25208    builtin and then its argument prototype would still apply.  */
25209 #ifdef __cplusplus
25210 extern "C"
25211 #endif
25212 char _doprnt ();
25213 /* The GNU C library defines this for functions which it implements
25214     to always fail with ENOSYS.  Some functions are actually named
25215     something starting with __ and the normal name is an alias.  */
25216 #if defined __stub__doprnt || defined __stub____doprnt
25217 choke me
25218 #endif
25220 int
25221 main ()
25223 return _doprnt ();
25224   ;
25225   return 0;
25227 _ACEOF
25228 rm -f conftest.$ac_objext conftest$ac_exeext
25229 if { (ac_try="$ac_link"
25230 case "(($ac_try" in
25231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25232   *) ac_try_echo=$ac_try;;
25233 esac
25234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25235   (eval "$ac_link") 2>conftest.er1
25236   ac_status=$?
25237   grep -v '^ *+' conftest.er1 >conftest.err
25238   rm -f conftest.er1
25239   cat conftest.err >&5
25240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241   (exit $ac_status); } && {
25242          test -z "$ac_c_werror_flag" ||
25243          test ! -s conftest.err
25244        } && test -s conftest$ac_exeext &&
25245        $as_test_x conftest$ac_exeext; then
25246   ac_cv_func__doprnt=yes
25247 else
25248   echo "$as_me: failed program was:" >&5
25249 sed 's/^/| /' conftest.$ac_ext >&5
25251         ac_cv_func__doprnt=no
25254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25255       conftest$ac_exeext conftest.$ac_ext
25257 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25258 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
25259 if test $ac_cv_func__doprnt = yes; then
25261 cat >>confdefs.h <<\_ACEOF
25262 #define HAVE_DOPRNT 1
25263 _ACEOF
25268 done
25291 for ac_func in geteuid getuid link memmove memset mkstemp strchr strrchr \
25292                 strtol getopt getopt_long vsnprintf walkcontext backtrace \
25293                 getisax getzoneid shmctl64 strcasestr ffs vasprintf
25295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25296 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25299   echo $ECHO_N "(cached) $ECHO_C" >&6
25300 else
25301   cat >conftest.$ac_ext <<_ACEOF
25302 /* confdefs.h.  */
25303 _ACEOF
25304 cat confdefs.h >>conftest.$ac_ext
25305 cat >>conftest.$ac_ext <<_ACEOF
25306 /* end confdefs.h.  */
25307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25309 #define $ac_func innocuous_$ac_func
25311 /* System header to define __stub macros and hopefully few prototypes,
25312     which can conflict with char $ac_func (); below.
25313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25314     <limits.h> exists even on freestanding compilers.  */
25316 #ifdef __STDC__
25317 # include <limits.h>
25318 #else
25319 # include <assert.h>
25320 #endif
25322 #undef $ac_func
25324 /* Override any GCC internal prototype to avoid an error.
25325    Use char because int might match the return type of a GCC
25326    builtin and then its argument prototype would still apply.  */
25327 #ifdef __cplusplus
25328 extern "C"
25329 #endif
25330 char $ac_func ();
25331 /* The GNU C library defines this for functions which it implements
25332     to always fail with ENOSYS.  Some functions are actually named
25333     something starting with __ and the normal name is an alias.  */
25334 #if defined __stub_$ac_func || defined __stub___$ac_func
25335 choke me
25336 #endif
25338 int
25339 main ()
25341 return $ac_func ();
25342   ;
25343   return 0;
25345 _ACEOF
25346 rm -f conftest.$ac_objext conftest$ac_exeext
25347 if { (ac_try="$ac_link"
25348 case "(($ac_try" in
25349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25350   *) ac_try_echo=$ac_try;;
25351 esac
25352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25353   (eval "$ac_link") 2>conftest.er1
25354   ac_status=$?
25355   grep -v '^ *+' conftest.er1 >conftest.err
25356   rm -f conftest.er1
25357   cat conftest.err >&5
25358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359   (exit $ac_status); } && {
25360          test -z "$ac_c_werror_flag" ||
25361          test ! -s conftest.err
25362        } && test -s conftest$ac_exeext &&
25363        $as_test_x conftest$ac_exeext; then
25364   eval "$as_ac_var=yes"
25365 else
25366   echo "$as_me: failed program was:" >&5
25367 sed 's/^/| /' conftest.$ac_ext >&5
25369         eval "$as_ac_var=no"
25372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25373       conftest$ac_exeext conftest.$ac_ext
25375 ac_res=`eval echo '${'$as_ac_var'}'`
25376                { echo "$as_me:$LINENO: result: $ac_res" >&5
25377 echo "${ECHO_T}$ac_res" >&6; }
25378 if test `eval echo '${'$as_ac_var'}'` = yes; then
25379   cat >>confdefs.h <<_ACEOF
25380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25381 _ACEOF
25384 done
25386 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
25387 # for constant arguments.  Useless!
25388 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
25389 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
25390 if test "${ac_cv_working_alloca_h+set}" = set; then
25391   echo $ECHO_N "(cached) $ECHO_C" >&6
25392 else
25393   cat >conftest.$ac_ext <<_ACEOF
25394 /* confdefs.h.  */
25395 _ACEOF
25396 cat confdefs.h >>conftest.$ac_ext
25397 cat >>conftest.$ac_ext <<_ACEOF
25398 /* end confdefs.h.  */
25399 #include <alloca.h>
25400 int
25401 main ()
25403 char *p = (char *) alloca (2 * sizeof (int));
25404                           if (p) return 0;
25405   ;
25406   return 0;
25408 _ACEOF
25409 rm -f conftest.$ac_objext conftest$ac_exeext
25410 if { (ac_try="$ac_link"
25411 case "(($ac_try" in
25412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25413   *) ac_try_echo=$ac_try;;
25414 esac
25415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25416   (eval "$ac_link") 2>conftest.er1
25417   ac_status=$?
25418   grep -v '^ *+' conftest.er1 >conftest.err
25419   rm -f conftest.er1
25420   cat conftest.err >&5
25421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25422   (exit $ac_status); } && {
25423          test -z "$ac_c_werror_flag" ||
25424          test ! -s conftest.err
25425        } && test -s conftest$ac_exeext &&
25426        $as_test_x conftest$ac_exeext; then
25427   ac_cv_working_alloca_h=yes
25428 else
25429   echo "$as_me: failed program was:" >&5
25430 sed 's/^/| /' conftest.$ac_ext >&5
25432         ac_cv_working_alloca_h=no
25435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25436       conftest$ac_exeext conftest.$ac_ext
25438 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
25439 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
25440 if test $ac_cv_working_alloca_h = yes; then
25442 cat >>confdefs.h <<\_ACEOF
25443 #define HAVE_ALLOCA_H 1
25444 _ACEOF
25448 { echo "$as_me:$LINENO: checking for alloca" >&5
25449 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
25450 if test "${ac_cv_func_alloca_works+set}" = set; then
25451   echo $ECHO_N "(cached) $ECHO_C" >&6
25452 else
25453   cat >conftest.$ac_ext <<_ACEOF
25454 /* confdefs.h.  */
25455 _ACEOF
25456 cat confdefs.h >>conftest.$ac_ext
25457 cat >>conftest.$ac_ext <<_ACEOF
25458 /* end confdefs.h.  */
25459 #ifdef __GNUC__
25460 # define alloca __builtin_alloca
25461 #else
25462 # ifdef _MSC_VER
25463 #  include <malloc.h>
25464 #  define alloca _alloca
25465 # else
25466 #  ifdef HAVE_ALLOCA_H
25467 #   include <alloca.h>
25468 #  else
25469 #   ifdef _AIX
25470  #pragma alloca
25471 #   else
25472 #    ifndef alloca /* predefined by HP cc +Olibcalls */
25473 char *alloca ();
25474 #    endif
25475 #   endif
25476 #  endif
25477 # endif
25478 #endif
25480 int
25481 main ()
25483 char *p = (char *) alloca (1);
25484                                     if (p) return 0;
25485   ;
25486   return 0;
25488 _ACEOF
25489 rm -f conftest.$ac_objext conftest$ac_exeext
25490 if { (ac_try="$ac_link"
25491 case "(($ac_try" in
25492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25493   *) ac_try_echo=$ac_try;;
25494 esac
25495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25496   (eval "$ac_link") 2>conftest.er1
25497   ac_status=$?
25498   grep -v '^ *+' conftest.er1 >conftest.err
25499   rm -f conftest.er1
25500   cat conftest.err >&5
25501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502   (exit $ac_status); } && {
25503          test -z "$ac_c_werror_flag" ||
25504          test ! -s conftest.err
25505        } && test -s conftest$ac_exeext &&
25506        $as_test_x conftest$ac_exeext; then
25507   ac_cv_func_alloca_works=yes
25508 else
25509   echo "$as_me: failed program was:" >&5
25510 sed 's/^/| /' conftest.$ac_ext >&5
25512         ac_cv_func_alloca_works=no
25515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25516       conftest$ac_exeext conftest.$ac_ext
25518 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
25519 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
25521 if test $ac_cv_func_alloca_works = yes; then
25523 cat >>confdefs.h <<\_ACEOF
25524 #define HAVE_ALLOCA 1
25525 _ACEOF
25527 else
25528   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
25529 # that cause trouble.  Some versions do not even contain alloca or
25530 # contain a buggy version.  If you still want to use their alloca,
25531 # use ar to extract alloca.o from them instead of compiling alloca.c.
25533 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
25535 cat >>confdefs.h <<\_ACEOF
25536 #define C_ALLOCA 1
25537 _ACEOF
25540 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
25541 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
25542 if test "${ac_cv_os_cray+set}" = set; then
25543   echo $ECHO_N "(cached) $ECHO_C" >&6
25544 else
25545   cat >conftest.$ac_ext <<_ACEOF
25546 /* confdefs.h.  */
25547 _ACEOF
25548 cat confdefs.h >>conftest.$ac_ext
25549 cat >>conftest.$ac_ext <<_ACEOF
25550 /* end confdefs.h.  */
25551 #if defined CRAY && ! defined CRAY2
25552 webecray
25553 #else
25554 wenotbecray
25555 #endif
25557 _ACEOF
25558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25559   $EGREP "webecray" >/dev/null 2>&1; then
25560   ac_cv_os_cray=yes
25561 else
25562   ac_cv_os_cray=no
25564 rm -f -r conftest*
25567 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
25568 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
25569 if test $ac_cv_os_cray = yes; then
25570   for ac_func in _getb67 GETB67 getb67; do
25571     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25572 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25575   echo $ECHO_N "(cached) $ECHO_C" >&6
25576 else
25577   cat >conftest.$ac_ext <<_ACEOF
25578 /* confdefs.h.  */
25579 _ACEOF
25580 cat confdefs.h >>conftest.$ac_ext
25581 cat >>conftest.$ac_ext <<_ACEOF
25582 /* end confdefs.h.  */
25583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25584    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25585 #define $ac_func innocuous_$ac_func
25587 /* System header to define __stub macros and hopefully few prototypes,
25588     which can conflict with char $ac_func (); below.
25589     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25590     <limits.h> exists even on freestanding compilers.  */
25592 #ifdef __STDC__
25593 # include <limits.h>
25594 #else
25595 # include <assert.h>
25596 #endif
25598 #undef $ac_func
25600 /* Override any GCC internal prototype to avoid an error.
25601    Use char because int might match the return type of a GCC
25602    builtin and then its argument prototype would still apply.  */
25603 #ifdef __cplusplus
25604 extern "C"
25605 #endif
25606 char $ac_func ();
25607 /* The GNU C library defines this for functions which it implements
25608     to always fail with ENOSYS.  Some functions are actually named
25609     something starting with __ and the normal name is an alias.  */
25610 #if defined __stub_$ac_func || defined __stub___$ac_func
25611 choke me
25612 #endif
25614 int
25615 main ()
25617 return $ac_func ();
25618   ;
25619   return 0;
25621 _ACEOF
25622 rm -f conftest.$ac_objext conftest$ac_exeext
25623 if { (ac_try="$ac_link"
25624 case "(($ac_try" in
25625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25626   *) ac_try_echo=$ac_try;;
25627 esac
25628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25629   (eval "$ac_link") 2>conftest.er1
25630   ac_status=$?
25631   grep -v '^ *+' conftest.er1 >conftest.err
25632   rm -f conftest.er1
25633   cat conftest.err >&5
25634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635   (exit $ac_status); } && {
25636          test -z "$ac_c_werror_flag" ||
25637          test ! -s conftest.err
25638        } && test -s conftest$ac_exeext &&
25639        $as_test_x conftest$ac_exeext; then
25640   eval "$as_ac_var=yes"
25641 else
25642   echo "$as_me: failed program was:" >&5
25643 sed 's/^/| /' conftest.$ac_ext >&5
25645         eval "$as_ac_var=no"
25648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25649       conftest$ac_exeext conftest.$ac_ext
25651 ac_res=`eval echo '${'$as_ac_var'}'`
25652                { echo "$as_me:$LINENO: result: $ac_res" >&5
25653 echo "${ECHO_T}$ac_res" >&6; }
25654 if test `eval echo '${'$as_ac_var'}'` = yes; then
25656 cat >>confdefs.h <<_ACEOF
25657 #define CRAY_STACKSEG_END $ac_func
25658 _ACEOF
25660     break
25663   done
25666 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
25667 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
25668 if test "${ac_cv_c_stack_direction+set}" = set; then
25669   echo $ECHO_N "(cached) $ECHO_C" >&6
25670 else
25671   if test "$cross_compiling" = yes; then
25672   ac_cv_c_stack_direction=0
25673 else
25674   cat >conftest.$ac_ext <<_ACEOF
25675 /* confdefs.h.  */
25676 _ACEOF
25677 cat confdefs.h >>conftest.$ac_ext
25678 cat >>conftest.$ac_ext <<_ACEOF
25679 /* end confdefs.h.  */
25680 $ac_includes_default
25681 int
25682 find_stack_direction ()
25684   static char *addr = 0;
25685   auto char dummy;
25686   if (addr == 0)
25687     {
25688       addr = &dummy;
25689       return find_stack_direction ();
25690     }
25691   else
25692     return (&dummy > addr) ? 1 : -1;
25695 int
25696 main ()
25698   return find_stack_direction () < 0;
25700 _ACEOF
25701 rm -f conftest$ac_exeext
25702 if { (ac_try="$ac_link"
25703 case "(($ac_try" in
25704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25705   *) ac_try_echo=$ac_try;;
25706 esac
25707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25708   (eval "$ac_link") 2>&5
25709   ac_status=$?
25710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25712   { (case "(($ac_try" in
25713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25714   *) ac_try_echo=$ac_try;;
25715 esac
25716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25717   (eval "$ac_try") 2>&5
25718   ac_status=$?
25719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720   (exit $ac_status); }; }; then
25721   ac_cv_c_stack_direction=1
25722 else
25723   echo "$as_me: program exited with status $ac_status" >&5
25724 echo "$as_me: failed program was:" >&5
25725 sed 's/^/| /' conftest.$ac_ext >&5
25727 ( exit $ac_status )
25728 ac_cv_c_stack_direction=-1
25730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25735 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
25736 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
25738 cat >>confdefs.h <<_ACEOF
25739 #define STACK_DIRECTION $ac_cv_c_stack_direction
25740 _ACEOF
25745 { echo "$as_me:$LINENO: checking for getdtablesize" >&5
25746 echo $ECHO_N "checking for getdtablesize... $ECHO_C" >&6; }
25747 if test "${ac_cv_func_getdtablesize+set}" = set; then
25748   echo $ECHO_N "(cached) $ECHO_C" >&6
25749 else
25750   cat >conftest.$ac_ext <<_ACEOF
25751 /* confdefs.h.  */
25752 _ACEOF
25753 cat confdefs.h >>conftest.$ac_ext
25754 cat >>conftest.$ac_ext <<_ACEOF
25755 /* end confdefs.h.  */
25756 /* Define getdtablesize to an innocuous variant, in case <limits.h> declares getdtablesize.
25757    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25758 #define getdtablesize innocuous_getdtablesize
25760 /* System header to define __stub macros and hopefully few prototypes,
25761     which can conflict with char getdtablesize (); below.
25762     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25763     <limits.h> exists even on freestanding compilers.  */
25765 #ifdef __STDC__
25766 # include <limits.h>
25767 #else
25768 # include <assert.h>
25769 #endif
25771 #undef getdtablesize
25773 /* Override any GCC internal prototype to avoid an error.
25774    Use char because int might match the return type of a GCC
25775    builtin and then its argument prototype would still apply.  */
25776 #ifdef __cplusplus
25777 extern "C"
25778 #endif
25779 char getdtablesize ();
25780 /* The GNU C library defines this for functions which it implements
25781     to always fail with ENOSYS.  Some functions are actually named
25782     something starting with __ and the normal name is an alias.  */
25783 #if defined __stub_getdtablesize || defined __stub___getdtablesize
25784 choke me
25785 #endif
25787 int
25788 main ()
25790 return getdtablesize ();
25791   ;
25792   return 0;
25794 _ACEOF
25795 rm -f conftest.$ac_objext conftest$ac_exeext
25796 if { (ac_try="$ac_link"
25797 case "(($ac_try" in
25798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25799   *) ac_try_echo=$ac_try;;
25800 esac
25801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25802   (eval "$ac_link") 2>conftest.er1
25803   ac_status=$?
25804   grep -v '^ *+' conftest.er1 >conftest.err
25805   rm -f conftest.er1
25806   cat conftest.err >&5
25807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25808   (exit $ac_status); } && {
25809          test -z "$ac_c_werror_flag" ||
25810          test ! -s conftest.err
25811        } && test -s conftest$ac_exeext &&
25812        $as_test_x conftest$ac_exeext; then
25813   ac_cv_func_getdtablesize=yes
25814 else
25815   echo "$as_me: failed program was:" >&5
25816 sed 's/^/| /' conftest.$ac_ext >&5
25818         ac_cv_func_getdtablesize=no
25821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25822       conftest$ac_exeext conftest.$ac_ext
25824 { echo "$as_me:$LINENO: result: $ac_cv_func_getdtablesize" >&5
25825 echo "${ECHO_T}$ac_cv_func_getdtablesize" >&6; }
25826 if test $ac_cv_func_getdtablesize = yes; then
25828 cat >>confdefs.h <<\_ACEOF
25829 #define HAS_GETDTABLESIZE 1
25830 _ACEOF
25834 { echo "$as_me:$LINENO: checking for getifaddrs" >&5
25835 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
25836 if test "${ac_cv_func_getifaddrs+set}" = set; then
25837   echo $ECHO_N "(cached) $ECHO_C" >&6
25838 else
25839   cat >conftest.$ac_ext <<_ACEOF
25840 /* confdefs.h.  */
25841 _ACEOF
25842 cat confdefs.h >>conftest.$ac_ext
25843 cat >>conftest.$ac_ext <<_ACEOF
25844 /* end confdefs.h.  */
25845 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
25846    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25847 #define getifaddrs innocuous_getifaddrs
25849 /* System header to define __stub macros and hopefully few prototypes,
25850     which can conflict with char getifaddrs (); below.
25851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25852     <limits.h> exists even on freestanding compilers.  */
25854 #ifdef __STDC__
25855 # include <limits.h>
25856 #else
25857 # include <assert.h>
25858 #endif
25860 #undef getifaddrs
25862 /* Override any GCC internal prototype to avoid an error.
25863    Use char because int might match the return type of a GCC
25864    builtin and then its argument prototype would still apply.  */
25865 #ifdef __cplusplus
25866 extern "C"
25867 #endif
25868 char getifaddrs ();
25869 /* The GNU C library defines this for functions which it implements
25870     to always fail with ENOSYS.  Some functions are actually named
25871     something starting with __ and the normal name is an alias.  */
25872 #if defined __stub_getifaddrs || defined __stub___getifaddrs
25873 choke me
25874 #endif
25876 int
25877 main ()
25879 return getifaddrs ();
25880   ;
25881   return 0;
25883 _ACEOF
25884 rm -f conftest.$ac_objext conftest$ac_exeext
25885 if { (ac_try="$ac_link"
25886 case "(($ac_try" in
25887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25888   *) ac_try_echo=$ac_try;;
25889 esac
25890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25891   (eval "$ac_link") 2>conftest.er1
25892   ac_status=$?
25893   grep -v '^ *+' conftest.er1 >conftest.err
25894   rm -f conftest.er1
25895   cat conftest.err >&5
25896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897   (exit $ac_status); } && {
25898          test -z "$ac_c_werror_flag" ||
25899          test ! -s conftest.err
25900        } && test -s conftest$ac_exeext &&
25901        $as_test_x conftest$ac_exeext; then
25902   ac_cv_func_getifaddrs=yes
25903 else
25904   echo "$as_me: failed program was:" >&5
25905 sed 's/^/| /' conftest.$ac_ext >&5
25907         ac_cv_func_getifaddrs=no
25910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25911       conftest$ac_exeext conftest.$ac_ext
25913 { echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
25914 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
25915 if test $ac_cv_func_getifaddrs = yes; then
25917 cat >>confdefs.h <<\_ACEOF
25918 #define HAS_GETIFADDRS 1
25919 _ACEOF
25923 { echo "$as_me:$LINENO: checking for getpeereid" >&5
25924 echo $ECHO_N "checking for getpeereid... $ECHO_C" >&6; }
25925 if test "${ac_cv_func_getpeereid+set}" = set; then
25926   echo $ECHO_N "(cached) $ECHO_C" >&6
25927 else
25928   cat >conftest.$ac_ext <<_ACEOF
25929 /* confdefs.h.  */
25930 _ACEOF
25931 cat confdefs.h >>conftest.$ac_ext
25932 cat >>conftest.$ac_ext <<_ACEOF
25933 /* end confdefs.h.  */
25934 /* Define getpeereid to an innocuous variant, in case <limits.h> declares getpeereid.
25935    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25936 #define getpeereid innocuous_getpeereid
25938 /* System header to define __stub macros and hopefully few prototypes,
25939     which can conflict with char getpeereid (); below.
25940     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25941     <limits.h> exists even on freestanding compilers.  */
25943 #ifdef __STDC__
25944 # include <limits.h>
25945 #else
25946 # include <assert.h>
25947 #endif
25949 #undef getpeereid
25951 /* Override any GCC internal prototype to avoid an error.
25952    Use char because int might match the return type of a GCC
25953    builtin and then its argument prototype would still apply.  */
25954 #ifdef __cplusplus
25955 extern "C"
25956 #endif
25957 char getpeereid ();
25958 /* The GNU C library defines this for functions which it implements
25959     to always fail with ENOSYS.  Some functions are actually named
25960     something starting with __ and the normal name is an alias.  */
25961 #if defined __stub_getpeereid || defined __stub___getpeereid
25962 choke me
25963 #endif
25965 int
25966 main ()
25968 return getpeereid ();
25969   ;
25970   return 0;
25972 _ACEOF
25973 rm -f conftest.$ac_objext conftest$ac_exeext
25974 if { (ac_try="$ac_link"
25975 case "(($ac_try" in
25976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25977   *) ac_try_echo=$ac_try;;
25978 esac
25979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25980   (eval "$ac_link") 2>conftest.er1
25981   ac_status=$?
25982   grep -v '^ *+' conftest.er1 >conftest.err
25983   rm -f conftest.er1
25984   cat conftest.err >&5
25985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986   (exit $ac_status); } && {
25987          test -z "$ac_c_werror_flag" ||
25988          test ! -s conftest.err
25989        } && test -s conftest$ac_exeext &&
25990        $as_test_x conftest$ac_exeext; then
25991   ac_cv_func_getpeereid=yes
25992 else
25993   echo "$as_me: failed program was:" >&5
25994 sed 's/^/| /' conftest.$ac_ext >&5
25996         ac_cv_func_getpeereid=no
25999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26000       conftest$ac_exeext conftest.$ac_ext
26002 { echo "$as_me:$LINENO: result: $ac_cv_func_getpeereid" >&5
26003 echo "${ECHO_T}$ac_cv_func_getpeereid" >&6; }
26004 if test $ac_cv_func_getpeereid = yes; then
26006 cat >>confdefs.h <<\_ACEOF
26007 #define HAS_GETPEEREID 1
26008 _ACEOF
26012 { echo "$as_me:$LINENO: checking for getpeerucred" >&5
26013 echo $ECHO_N "checking for getpeerucred... $ECHO_C" >&6; }
26014 if test "${ac_cv_func_getpeerucred+set}" = set; then
26015   echo $ECHO_N "(cached) $ECHO_C" >&6
26016 else
26017   cat >conftest.$ac_ext <<_ACEOF
26018 /* confdefs.h.  */
26019 _ACEOF
26020 cat confdefs.h >>conftest.$ac_ext
26021 cat >>conftest.$ac_ext <<_ACEOF
26022 /* end confdefs.h.  */
26023 /* Define getpeerucred to an innocuous variant, in case <limits.h> declares getpeerucred.
26024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26025 #define getpeerucred innocuous_getpeerucred
26027 /* System header to define __stub macros and hopefully few prototypes,
26028     which can conflict with char getpeerucred (); below.
26029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26030     <limits.h> exists even on freestanding compilers.  */
26032 #ifdef __STDC__
26033 # include <limits.h>
26034 #else
26035 # include <assert.h>
26036 #endif
26038 #undef getpeerucred
26040 /* Override any GCC internal prototype to avoid an error.
26041    Use char because int might match the return type of a GCC
26042    builtin and then its argument prototype would still apply.  */
26043 #ifdef __cplusplus
26044 extern "C"
26045 #endif
26046 char getpeerucred ();
26047 /* The GNU C library defines this for functions which it implements
26048     to always fail with ENOSYS.  Some functions are actually named
26049     something starting with __ and the normal name is an alias.  */
26050 #if defined __stub_getpeerucred || defined __stub___getpeerucred
26051 choke me
26052 #endif
26054 int
26055 main ()
26057 return getpeerucred ();
26058   ;
26059   return 0;
26061 _ACEOF
26062 rm -f conftest.$ac_objext conftest$ac_exeext
26063 if { (ac_try="$ac_link"
26064 case "(($ac_try" in
26065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26066   *) ac_try_echo=$ac_try;;
26067 esac
26068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26069   (eval "$ac_link") 2>conftest.er1
26070   ac_status=$?
26071   grep -v '^ *+' conftest.er1 >conftest.err
26072   rm -f conftest.er1
26073   cat conftest.err >&5
26074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26075   (exit $ac_status); } && {
26076          test -z "$ac_c_werror_flag" ||
26077          test ! -s conftest.err
26078        } && test -s conftest$ac_exeext &&
26079        $as_test_x conftest$ac_exeext; then
26080   ac_cv_func_getpeerucred=yes
26081 else
26082   echo "$as_me: failed program was:" >&5
26083 sed 's/^/| /' conftest.$ac_ext >&5
26085         ac_cv_func_getpeerucred=no
26088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26089       conftest$ac_exeext conftest.$ac_ext
26091 { echo "$as_me:$LINENO: result: $ac_cv_func_getpeerucred" >&5
26092 echo "${ECHO_T}$ac_cv_func_getpeerucred" >&6; }
26093 if test $ac_cv_func_getpeerucred = yes; then
26095 cat >>confdefs.h <<\_ACEOF
26096 #define HAS_GETPEERUCRED 1
26097 _ACEOF
26101 { echo "$as_me:$LINENO: checking for strlcat" >&5
26102 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; }
26103 if test "${ac_cv_func_strlcat+set}" = set; then
26104   echo $ECHO_N "(cached) $ECHO_C" >&6
26105 else
26106   cat >conftest.$ac_ext <<_ACEOF
26107 /* confdefs.h.  */
26108 _ACEOF
26109 cat confdefs.h >>conftest.$ac_ext
26110 cat >>conftest.$ac_ext <<_ACEOF
26111 /* end confdefs.h.  */
26112 /* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat.
26113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26114 #define strlcat innocuous_strlcat
26116 /* System header to define __stub macros and hopefully few prototypes,
26117     which can conflict with char strlcat (); below.
26118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26119     <limits.h> exists even on freestanding compilers.  */
26121 #ifdef __STDC__
26122 # include <limits.h>
26123 #else
26124 # include <assert.h>
26125 #endif
26127 #undef strlcat
26129 /* Override any GCC internal prototype to avoid an error.
26130    Use char because int might match the return type of a GCC
26131    builtin and then its argument prototype would still apply.  */
26132 #ifdef __cplusplus
26133 extern "C"
26134 #endif
26135 char strlcat ();
26136 /* The GNU C library defines this for functions which it implements
26137     to always fail with ENOSYS.  Some functions are actually named
26138     something starting with __ and the normal name is an alias.  */
26139 #if defined __stub_strlcat || defined __stub___strlcat
26140 choke me
26141 #endif
26143 int
26144 main ()
26146 return strlcat ();
26147   ;
26148   return 0;
26150 _ACEOF
26151 rm -f conftest.$ac_objext conftest$ac_exeext
26152 if { (ac_try="$ac_link"
26153 case "(($ac_try" in
26154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26155   *) ac_try_echo=$ac_try;;
26156 esac
26157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26158   (eval "$ac_link") 2>conftest.er1
26159   ac_status=$?
26160   grep -v '^ *+' conftest.er1 >conftest.err
26161   rm -f conftest.er1
26162   cat conftest.err >&5
26163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26164   (exit $ac_status); } && {
26165          test -z "$ac_c_werror_flag" ||
26166          test ! -s conftest.err
26167        } && test -s conftest$ac_exeext &&
26168        $as_test_x conftest$ac_exeext; then
26169   ac_cv_func_strlcat=yes
26170 else
26171   echo "$as_me: failed program was:" >&5
26172 sed 's/^/| /' conftest.$ac_ext >&5
26174         ac_cv_func_strlcat=no
26177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26178       conftest$ac_exeext conftest.$ac_ext
26180 { echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
26181 echo "${ECHO_T}$ac_cv_func_strlcat" >&6; }
26182 if test $ac_cv_func_strlcat = yes; then
26183   HAVE_STRLCAT=yes
26184 else
26185   HAVE_STRLCAT=no
26188  if test x$HAVE_STRLCAT = xno; then
26189   NEED_STRLCAT_TRUE=
26190   NEED_STRLCAT_FALSE='#'
26191 else
26192   NEED_STRLCAT_TRUE='#'
26193   NEED_STRLCAT_FALSE=
26196 { echo "$as_me:$LINENO: checking for strlcpy" >&5
26197 echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; }
26198 if test "${ac_cv_func_strlcpy+set}" = set; then
26199   echo $ECHO_N "(cached) $ECHO_C" >&6
26200 else
26201   cat >conftest.$ac_ext <<_ACEOF
26202 /* confdefs.h.  */
26203 _ACEOF
26204 cat confdefs.h >>conftest.$ac_ext
26205 cat >>conftest.$ac_ext <<_ACEOF
26206 /* end confdefs.h.  */
26207 /* Define strlcpy to an innocuous variant, in case <limits.h> declares strlcpy.
26208    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26209 #define strlcpy innocuous_strlcpy
26211 /* System header to define __stub macros and hopefully few prototypes,
26212     which can conflict with char strlcpy (); below.
26213     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26214     <limits.h> exists even on freestanding compilers.  */
26216 #ifdef __STDC__
26217 # include <limits.h>
26218 #else
26219 # include <assert.h>
26220 #endif
26222 #undef strlcpy
26224 /* Override any GCC internal prototype to avoid an error.
26225    Use char because int might match the return type of a GCC
26226    builtin and then its argument prototype would still apply.  */
26227 #ifdef __cplusplus
26228 extern "C"
26229 #endif
26230 char strlcpy ();
26231 /* The GNU C library defines this for functions which it implements
26232     to always fail with ENOSYS.  Some functions are actually named
26233     something starting with __ and the normal name is an alias.  */
26234 #if defined __stub_strlcpy || defined __stub___strlcpy
26235 choke me
26236 #endif
26238 int
26239 main ()
26241 return strlcpy ();
26242   ;
26243   return 0;
26245 _ACEOF
26246 rm -f conftest.$ac_objext conftest$ac_exeext
26247 if { (ac_try="$ac_link"
26248 case "(($ac_try" in
26249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26250   *) ac_try_echo=$ac_try;;
26251 esac
26252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26253   (eval "$ac_link") 2>conftest.er1
26254   ac_status=$?
26255   grep -v '^ *+' conftest.er1 >conftest.err
26256   rm -f conftest.er1
26257   cat conftest.err >&5
26258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259   (exit $ac_status); } && {
26260          test -z "$ac_c_werror_flag" ||
26261          test ! -s conftest.err
26262        } && test -s conftest$ac_exeext &&
26263        $as_test_x conftest$ac_exeext; then
26264   ac_cv_func_strlcpy=yes
26265 else
26266   echo "$as_me: failed program was:" >&5
26267 sed 's/^/| /' conftest.$ac_ext >&5
26269         ac_cv_func_strlcpy=no
26272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26273       conftest$ac_exeext conftest.$ac_ext
26275 { echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
26276 echo "${ECHO_T}$ac_cv_func_strlcpy" >&6; }
26277 if test $ac_cv_func_strlcpy = yes; then
26279 cat >>confdefs.h <<\_ACEOF
26280 #define HAS_STRLCPY 1
26281 _ACEOF
26286  if test x$HAVE_VSNPRINTF = xno; then
26287   NEED_VSNPRINTF_TRUE=
26288   NEED_VSNPRINTF_FALSE='#'
26289 else
26290   NEED_VSNPRINTF_TRUE='#'
26291   NEED_VSNPRINTF_FALSE=
26295 { echo "$as_me:$LINENO: checking for mmap" >&5
26296 echo $ECHO_N "checking for mmap... $ECHO_C" >&6; }
26297 if test "${ac_cv_func_mmap+set}" = set; then
26298   echo $ECHO_N "(cached) $ECHO_C" >&6
26299 else
26300   cat >conftest.$ac_ext <<_ACEOF
26301 /* confdefs.h.  */
26302 _ACEOF
26303 cat confdefs.h >>conftest.$ac_ext
26304 cat >>conftest.$ac_ext <<_ACEOF
26305 /* end confdefs.h.  */
26306 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
26307    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26308 #define mmap innocuous_mmap
26310 /* System header to define __stub macros and hopefully few prototypes,
26311     which can conflict with char mmap (); below.
26312     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26313     <limits.h> exists even on freestanding compilers.  */
26315 #ifdef __STDC__
26316 # include <limits.h>
26317 #else
26318 # include <assert.h>
26319 #endif
26321 #undef mmap
26323 /* Override any GCC internal prototype to avoid an error.
26324    Use char because int might match the return type of a GCC
26325    builtin and then its argument prototype would still apply.  */
26326 #ifdef __cplusplus
26327 extern "C"
26328 #endif
26329 char mmap ();
26330 /* The GNU C library defines this for functions which it implements
26331     to always fail with ENOSYS.  Some functions are actually named
26332     something starting with __ and the normal name is an alias.  */
26333 #if defined __stub_mmap || defined __stub___mmap
26334 choke me
26335 #endif
26337 int
26338 main ()
26340 return mmap ();
26341   ;
26342   return 0;
26344 _ACEOF
26345 rm -f conftest.$ac_objext conftest$ac_exeext
26346 if { (ac_try="$ac_link"
26347 case "(($ac_try" in
26348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26349   *) ac_try_echo=$ac_try;;
26350 esac
26351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26352   (eval "$ac_link") 2>conftest.er1
26353   ac_status=$?
26354   grep -v '^ *+' conftest.er1 >conftest.err
26355   rm -f conftest.er1
26356   cat conftest.err >&5
26357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26358   (exit $ac_status); } && {
26359          test -z "$ac_c_werror_flag" ||
26360          test ! -s conftest.err
26361        } && test -s conftest$ac_exeext &&
26362        $as_test_x conftest$ac_exeext; then
26363   ac_cv_func_mmap=yes
26364 else
26365   echo "$as_me: failed program was:" >&5
26366 sed 's/^/| /' conftest.$ac_ext >&5
26368         ac_cv_func_mmap=no
26371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26372       conftest$ac_exeext conftest.$ac_ext
26374 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
26375 echo "${ECHO_T}$ac_cv_func_mmap" >&6; }
26376 if test $ac_cv_func_mmap = yes; then
26378 cat >>confdefs.h <<\_ACEOF
26379 #define HAS_MMAP 1
26380 _ACEOF
26386 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
26387 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
26388 if test "${ac_cv_lib_m_sqrt+set}" = set; then
26389   echo $ECHO_N "(cached) $ECHO_C" >&6
26390 else
26391   ac_check_lib_save_LIBS=$LIBS
26392 LIBS="-lm  $LIBS"
26393 cat >conftest.$ac_ext <<_ACEOF
26394 /* confdefs.h.  */
26395 _ACEOF
26396 cat confdefs.h >>conftest.$ac_ext
26397 cat >>conftest.$ac_ext <<_ACEOF
26398 /* end confdefs.h.  */
26400 /* Override any GCC internal prototype to avoid an error.
26401    Use char because int might match the return type of a GCC
26402    builtin and then its argument prototype would still apply.  */
26403 #ifdef __cplusplus
26404 extern "C"
26405 #endif
26406 char sqrt ();
26407 int
26408 main ()
26410 return sqrt ();
26411   ;
26412   return 0;
26414 _ACEOF
26415 rm -f conftest.$ac_objext conftest$ac_exeext
26416 if { (ac_try="$ac_link"
26417 case "(($ac_try" in
26418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26419   *) ac_try_echo=$ac_try;;
26420 esac
26421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26422   (eval "$ac_link") 2>conftest.er1
26423   ac_status=$?
26424   grep -v '^ *+' conftest.er1 >conftest.err
26425   rm -f conftest.er1
26426   cat conftest.err >&5
26427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428   (exit $ac_status); } && {
26429          test -z "$ac_c_werror_flag" ||
26430          test ! -s conftest.err
26431        } && test -s conftest$ac_exeext &&
26432        $as_test_x conftest$ac_exeext; then
26433   ac_cv_lib_m_sqrt=yes
26434 else
26435   echo "$as_me: failed program was:" >&5
26436 sed 's/^/| /' conftest.$ac_ext >&5
26438         ac_cv_lib_m_sqrt=no
26441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26442       conftest$ac_exeext conftest.$ac_ext
26443 LIBS=$ac_check_lib_save_LIBS
26445 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
26446 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
26447 if test $ac_cv_lib_m_sqrt = yes; then
26448   cat >>confdefs.h <<_ACEOF
26449 #define HAVE_LIBM 1
26450 _ACEOF
26452   LIBS="-lm $LIBS"
26456 { echo "$as_me:$LINENO: checking for cbrt in -lm" >&5
26457 echo $ECHO_N "checking for cbrt in -lm... $ECHO_C" >&6; }
26458 if test "${ac_cv_lib_m_cbrt+set}" = set; then
26459   echo $ECHO_N "(cached) $ECHO_C" >&6
26460 else
26461   ac_check_lib_save_LIBS=$LIBS
26462 LIBS="-lm  $LIBS"
26463 cat >conftest.$ac_ext <<_ACEOF
26464 /* confdefs.h.  */
26465 _ACEOF
26466 cat confdefs.h >>conftest.$ac_ext
26467 cat >>conftest.$ac_ext <<_ACEOF
26468 /* end confdefs.h.  */
26470 /* Override any GCC internal prototype to avoid an error.
26471    Use char because int might match the return type of a GCC
26472    builtin and then its argument prototype would still apply.  */
26473 #ifdef __cplusplus
26474 extern "C"
26475 #endif
26476 char cbrt ();
26477 int
26478 main ()
26480 return cbrt ();
26481   ;
26482   return 0;
26484 _ACEOF
26485 rm -f conftest.$ac_objext conftest$ac_exeext
26486 if { (ac_try="$ac_link"
26487 case "(($ac_try" in
26488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26489   *) ac_try_echo=$ac_try;;
26490 esac
26491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26492   (eval "$ac_link") 2>conftest.er1
26493   ac_status=$?
26494   grep -v '^ *+' conftest.er1 >conftest.err
26495   rm -f conftest.er1
26496   cat conftest.err >&5
26497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498   (exit $ac_status); } && {
26499          test -z "$ac_c_werror_flag" ||
26500          test ! -s conftest.err
26501        } && test -s conftest$ac_exeext &&
26502        $as_test_x conftest$ac_exeext; then
26503   ac_cv_lib_m_cbrt=yes
26504 else
26505   echo "$as_me: failed program was:" >&5
26506 sed 's/^/| /' conftest.$ac_ext >&5
26508         ac_cv_lib_m_cbrt=no
26511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26512       conftest$ac_exeext conftest.$ac_ext
26513 LIBS=$ac_check_lib_save_LIBS
26515 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_cbrt" >&5
26516 echo "${ECHO_T}$ac_cv_lib_m_cbrt" >&6; }
26517 if test $ac_cv_lib_m_cbrt = yes; then
26519 cat >>confdefs.h <<\_ACEOF
26520 #define HAVE_CBRT 1
26521 _ACEOF
26529 for ac_header in ndbm.h dbm.h rpcsvc/dbm.h
26531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26533   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26536   echo $ECHO_N "(cached) $ECHO_C" >&6
26538 ac_res=`eval echo '${'$as_ac_Header'}'`
26539                { echo "$as_me:$LINENO: result: $ac_res" >&5
26540 echo "${ECHO_T}$ac_res" >&6; }
26541 else
26542   # Is the header compilable?
26543 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26545 cat >conftest.$ac_ext <<_ACEOF
26546 /* confdefs.h.  */
26547 _ACEOF
26548 cat confdefs.h >>conftest.$ac_ext
26549 cat >>conftest.$ac_ext <<_ACEOF
26550 /* end confdefs.h.  */
26551 $ac_includes_default
26552 #include <$ac_header>
26553 _ACEOF
26554 rm -f conftest.$ac_objext
26555 if { (ac_try="$ac_compile"
26556 case "(($ac_try" in
26557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26558   *) ac_try_echo=$ac_try;;
26559 esac
26560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26561   (eval "$ac_compile") 2>conftest.er1
26562   ac_status=$?
26563   grep -v '^ *+' conftest.er1 >conftest.err
26564   rm -f conftest.er1
26565   cat conftest.err >&5
26566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567   (exit $ac_status); } && {
26568          test -z "$ac_c_werror_flag" ||
26569          test ! -s conftest.err
26570        } && test -s conftest.$ac_objext; then
26571   ac_header_compiler=yes
26572 else
26573   echo "$as_me: failed program was:" >&5
26574 sed 's/^/| /' conftest.$ac_ext >&5
26576         ac_header_compiler=no
26579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26580 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26581 echo "${ECHO_T}$ac_header_compiler" >&6; }
26583 # Is the header present?
26584 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26585 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26586 cat >conftest.$ac_ext <<_ACEOF
26587 /* confdefs.h.  */
26588 _ACEOF
26589 cat confdefs.h >>conftest.$ac_ext
26590 cat >>conftest.$ac_ext <<_ACEOF
26591 /* end confdefs.h.  */
26592 #include <$ac_header>
26593 _ACEOF
26594 if { (ac_try="$ac_cpp conftest.$ac_ext"
26595 case "(($ac_try" in
26596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26597   *) ac_try_echo=$ac_try;;
26598 esac
26599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26600   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26601   ac_status=$?
26602   grep -v '^ *+' conftest.er1 >conftest.err
26603   rm -f conftest.er1
26604   cat conftest.err >&5
26605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606   (exit $ac_status); } >/dev/null && {
26607          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26608          test ! -s conftest.err
26609        }; then
26610   ac_header_preproc=yes
26611 else
26612   echo "$as_me: failed program was:" >&5
26613 sed 's/^/| /' conftest.$ac_ext >&5
26615   ac_header_preproc=no
26618 rm -f conftest.err conftest.$ac_ext
26619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26620 echo "${ECHO_T}$ac_header_preproc" >&6; }
26622 # So?  What about this header?
26623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26624   yes:no: )
26625     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26627     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26629     ac_header_preproc=yes
26630     ;;
26631   no:yes:* )
26632     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26634     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26635 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26636     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26638     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26639 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26642     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26644     ( cat <<\_ASBOX
26645 ## ---------------------------------------------------------------------- ##
26646 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
26647 ## ---------------------------------------------------------------------- ##
26648 _ASBOX
26649      ) | sed "s/^/$as_me: WARNING:     /" >&2
26650     ;;
26651 esac
26652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26655   echo $ECHO_N "(cached) $ECHO_C" >&6
26656 else
26657   eval "$as_ac_Header=\$ac_header_preproc"
26659 ac_res=`eval echo '${'$as_ac_Header'}'`
26660                { echo "$as_me:$LINENO: result: $ac_res" >&5
26661 echo "${ECHO_T}$ac_res" >&6; }
26664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26665   cat >>confdefs.h <<_ACEOF
26666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26667 _ACEOF
26671 done
26677 for ac_header in linux/agpgart.h sys/agpio.h sys/agpgart.h
26679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26681   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26684   echo $ECHO_N "(cached) $ECHO_C" >&6
26686 ac_res=`eval echo '${'$as_ac_Header'}'`
26687                { echo "$as_me:$LINENO: result: $ac_res" >&5
26688 echo "${ECHO_T}$ac_res" >&6; }
26689 else
26690   # Is the header compilable?
26691 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26693 cat >conftest.$ac_ext <<_ACEOF
26694 /* confdefs.h.  */
26695 _ACEOF
26696 cat confdefs.h >>conftest.$ac_ext
26697 cat >>conftest.$ac_ext <<_ACEOF
26698 /* end confdefs.h.  */
26699 $ac_includes_default
26700 #include <$ac_header>
26701 _ACEOF
26702 rm -f conftest.$ac_objext
26703 if { (ac_try="$ac_compile"
26704 case "(($ac_try" in
26705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26706   *) ac_try_echo=$ac_try;;
26707 esac
26708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26709   (eval "$ac_compile") 2>conftest.er1
26710   ac_status=$?
26711   grep -v '^ *+' conftest.er1 >conftest.err
26712   rm -f conftest.er1
26713   cat conftest.err >&5
26714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715   (exit $ac_status); } && {
26716          test -z "$ac_c_werror_flag" ||
26717          test ! -s conftest.err
26718        } && test -s conftest.$ac_objext; then
26719   ac_header_compiler=yes
26720 else
26721   echo "$as_me: failed program was:" >&5
26722 sed 's/^/| /' conftest.$ac_ext >&5
26724         ac_header_compiler=no
26727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26728 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26729 echo "${ECHO_T}$ac_header_compiler" >&6; }
26731 # Is the header present?
26732 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26734 cat >conftest.$ac_ext <<_ACEOF
26735 /* confdefs.h.  */
26736 _ACEOF
26737 cat confdefs.h >>conftest.$ac_ext
26738 cat >>conftest.$ac_ext <<_ACEOF
26739 /* end confdefs.h.  */
26740 #include <$ac_header>
26741 _ACEOF
26742 if { (ac_try="$ac_cpp conftest.$ac_ext"
26743 case "(($ac_try" in
26744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26745   *) ac_try_echo=$ac_try;;
26746 esac
26747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26748   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26749   ac_status=$?
26750   grep -v '^ *+' conftest.er1 >conftest.err
26751   rm -f conftest.er1
26752   cat conftest.err >&5
26753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754   (exit $ac_status); } >/dev/null && {
26755          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26756          test ! -s conftest.err
26757        }; then
26758   ac_header_preproc=yes
26759 else
26760   echo "$as_me: failed program was:" >&5
26761 sed 's/^/| /' conftest.$ac_ext >&5
26763   ac_header_preproc=no
26766 rm -f conftest.err conftest.$ac_ext
26767 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26768 echo "${ECHO_T}$ac_header_preproc" >&6; }
26770 # So?  What about this header?
26771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26772   yes:no: )
26773     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26774 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26775     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26776 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26777     ac_header_preproc=yes
26778     ;;
26779   no:yes:* )
26780     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26781 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26782     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26783 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26784     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26785 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26786     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26787 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26790     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26791 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26792     ( cat <<\_ASBOX
26793 ## ---------------------------------------------------------------------- ##
26794 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
26795 ## ---------------------------------------------------------------------- ##
26796 _ASBOX
26797      ) | sed "s/^/$as_me: WARNING:     /" >&2
26798     ;;
26799 esac
26800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26803   echo $ECHO_N "(cached) $ECHO_C" >&6
26804 else
26805   eval "$as_ac_Header=\$ac_header_preproc"
26807 ac_res=`eval echo '${'$as_ac_Header'}'`
26808                { echo "$as_me:$LINENO: result: $ac_res" >&5
26809 echo "${ECHO_T}$ac_res" >&6; }
26812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26813   cat >>confdefs.h <<_ACEOF
26814 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26815 _ACEOF
26816  AGP=yes
26819 done
26821  if test "x$AGP" = xyes; then
26822   AGP_TRUE=
26823   AGP_FALSE='#'
26824 else
26825   AGP_TRUE='#'
26826   AGP_FALSE=
26831 for ac_header in linux/apm_bios.h
26833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26835   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26838   echo $ECHO_N "(cached) $ECHO_C" >&6
26840 ac_res=`eval echo '${'$as_ac_Header'}'`
26841                { echo "$as_me:$LINENO: result: $ac_res" >&5
26842 echo "${ECHO_T}$ac_res" >&6; }
26843 else
26844   # Is the header compilable?
26845 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26847 cat >conftest.$ac_ext <<_ACEOF
26848 /* confdefs.h.  */
26849 _ACEOF
26850 cat confdefs.h >>conftest.$ac_ext
26851 cat >>conftest.$ac_ext <<_ACEOF
26852 /* end confdefs.h.  */
26853 $ac_includes_default
26854 #include <$ac_header>
26855 _ACEOF
26856 rm -f conftest.$ac_objext
26857 if { (ac_try="$ac_compile"
26858 case "(($ac_try" in
26859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26860   *) ac_try_echo=$ac_try;;
26861 esac
26862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26863   (eval "$ac_compile") 2>conftest.er1
26864   ac_status=$?
26865   grep -v '^ *+' conftest.er1 >conftest.err
26866   rm -f conftest.er1
26867   cat conftest.err >&5
26868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869   (exit $ac_status); } && {
26870          test -z "$ac_c_werror_flag" ||
26871          test ! -s conftest.err
26872        } && test -s conftest.$ac_objext; then
26873   ac_header_compiler=yes
26874 else
26875   echo "$as_me: failed program was:" >&5
26876 sed 's/^/| /' conftest.$ac_ext >&5
26878         ac_header_compiler=no
26881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26882 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26883 echo "${ECHO_T}$ac_header_compiler" >&6; }
26885 # Is the header present?
26886 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26888 cat >conftest.$ac_ext <<_ACEOF
26889 /* confdefs.h.  */
26890 _ACEOF
26891 cat confdefs.h >>conftest.$ac_ext
26892 cat >>conftest.$ac_ext <<_ACEOF
26893 /* end confdefs.h.  */
26894 #include <$ac_header>
26895 _ACEOF
26896 if { (ac_try="$ac_cpp conftest.$ac_ext"
26897 case "(($ac_try" in
26898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26899   *) ac_try_echo=$ac_try;;
26900 esac
26901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26902   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26903   ac_status=$?
26904   grep -v '^ *+' conftest.er1 >conftest.err
26905   rm -f conftest.er1
26906   cat conftest.err >&5
26907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908   (exit $ac_status); } >/dev/null && {
26909          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26910          test ! -s conftest.err
26911        }; then
26912   ac_header_preproc=yes
26913 else
26914   echo "$as_me: failed program was:" >&5
26915 sed 's/^/| /' conftest.$ac_ext >&5
26917   ac_header_preproc=no
26920 rm -f conftest.err conftest.$ac_ext
26921 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26922 echo "${ECHO_T}$ac_header_preproc" >&6; }
26924 # So?  What about this header?
26925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26926   yes:no: )
26927     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26929     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26931     ac_header_preproc=yes
26932     ;;
26933   no:yes:* )
26934     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26936     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26937 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26938     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26939 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26940     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26941 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26942     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26944     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26945 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26946     ( cat <<\_ASBOX
26947 ## ---------------------------------------------------------------------- ##
26948 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
26949 ## ---------------------------------------------------------------------- ##
26950 _ASBOX
26951      ) | sed "s/^/$as_me: WARNING:     /" >&2
26952     ;;
26953 esac
26954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26957   echo $ECHO_N "(cached) $ECHO_C" >&6
26958 else
26959   eval "$as_ac_Header=\$ac_header_preproc"
26961 ac_res=`eval echo '${'$as_ac_Header'}'`
26962                { echo "$as_me:$LINENO: result: $ac_res" >&5
26963 echo "${ECHO_T}$ac_res" >&6; }
26966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26967   cat >>confdefs.h <<_ACEOF
26968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26969 _ACEOF
26970  LNXAPM=yes
26973 done
26975  if test "x$LNXAPM" = xyes; then
26976   LNXAPM_TRUE=
26977   LNXAPM_FALSE='#'
26978 else
26979   LNXAPM_TRUE='#'
26980   LNXAPM_FALSE=
26985 for ac_header in linux/fb.h
26987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26989   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26992   echo $ECHO_N "(cached) $ECHO_C" >&6
26994 ac_res=`eval echo '${'$as_ac_Header'}'`
26995                { echo "$as_me:$LINENO: result: $ac_res" >&5
26996 echo "${ECHO_T}$ac_res" >&6; }
26997 else
26998   # Is the header compilable?
26999 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27001 cat >conftest.$ac_ext <<_ACEOF
27002 /* confdefs.h.  */
27003 _ACEOF
27004 cat confdefs.h >>conftest.$ac_ext
27005 cat >>conftest.$ac_ext <<_ACEOF
27006 /* end confdefs.h.  */
27007 $ac_includes_default
27008 #include <$ac_header>
27009 _ACEOF
27010 rm -f conftest.$ac_objext
27011 if { (ac_try="$ac_compile"
27012 case "(($ac_try" in
27013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27014   *) ac_try_echo=$ac_try;;
27015 esac
27016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27017   (eval "$ac_compile") 2>conftest.er1
27018   ac_status=$?
27019   grep -v '^ *+' conftest.er1 >conftest.err
27020   rm -f conftest.er1
27021   cat conftest.err >&5
27022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27023   (exit $ac_status); } && {
27024          test -z "$ac_c_werror_flag" ||
27025          test ! -s conftest.err
27026        } && test -s conftest.$ac_objext; then
27027   ac_header_compiler=yes
27028 else
27029   echo "$as_me: failed program was:" >&5
27030 sed 's/^/| /' conftest.$ac_ext >&5
27032         ac_header_compiler=no
27035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27036 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27037 echo "${ECHO_T}$ac_header_compiler" >&6; }
27039 # Is the header present?
27040 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27042 cat >conftest.$ac_ext <<_ACEOF
27043 /* confdefs.h.  */
27044 _ACEOF
27045 cat confdefs.h >>conftest.$ac_ext
27046 cat >>conftest.$ac_ext <<_ACEOF
27047 /* end confdefs.h.  */
27048 #include <$ac_header>
27049 _ACEOF
27050 if { (ac_try="$ac_cpp conftest.$ac_ext"
27051 case "(($ac_try" in
27052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27053   *) ac_try_echo=$ac_try;;
27054 esac
27055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27056   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27057   ac_status=$?
27058   grep -v '^ *+' conftest.er1 >conftest.err
27059   rm -f conftest.er1
27060   cat conftest.err >&5
27061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062   (exit $ac_status); } >/dev/null && {
27063          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27064          test ! -s conftest.err
27065        }; then
27066   ac_header_preproc=yes
27067 else
27068   echo "$as_me: failed program was:" >&5
27069 sed 's/^/| /' conftest.$ac_ext >&5
27071   ac_header_preproc=no
27074 rm -f conftest.err conftest.$ac_ext
27075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27076 echo "${ECHO_T}$ac_header_preproc" >&6; }
27078 # So?  What about this header?
27079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27080   yes:no: )
27081     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27083     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27085     ac_header_preproc=yes
27086     ;;
27087   no:yes:* )
27088     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27090     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27091 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27092     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27094     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27095 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27096     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27098     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27100     ( cat <<\_ASBOX
27101 ## ---------------------------------------------------------------------- ##
27102 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
27103 ## ---------------------------------------------------------------------- ##
27104 _ASBOX
27105      ) | sed "s/^/$as_me: WARNING:     /" >&2
27106     ;;
27107 esac
27108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27111   echo $ECHO_N "(cached) $ECHO_C" >&6
27112 else
27113   eval "$as_ac_Header=\$ac_header_preproc"
27115 ac_res=`eval echo '${'$as_ac_Header'}'`
27116                { echo "$as_me:$LINENO: result: $ac_res" >&5
27117 echo "${ECHO_T}$ac_res" >&6; }
27120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27121   cat >>confdefs.h <<_ACEOF
27122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27123 _ACEOF
27124  FBDEV=yes
27127 done
27129  if test "x$FBDEV" = xyes; then
27130   FBDEVHW_TRUE=
27131   FBDEVHW_FALSE='#'
27132 else
27133   FBDEVHW_TRUE='#'
27134   FBDEVHW_FALSE=
27139 for ac_header in asm/mtrr.h
27141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27143   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27146   echo $ECHO_N "(cached) $ECHO_C" >&6
27148 ac_res=`eval echo '${'$as_ac_Header'}'`
27149                { echo "$as_me:$LINENO: result: $ac_res" >&5
27150 echo "${ECHO_T}$ac_res" >&6; }
27151 else
27152   # Is the header compilable?
27153 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27155 cat >conftest.$ac_ext <<_ACEOF
27156 /* confdefs.h.  */
27157 _ACEOF
27158 cat confdefs.h >>conftest.$ac_ext
27159 cat >>conftest.$ac_ext <<_ACEOF
27160 /* end confdefs.h.  */
27161 $ac_includes_default
27162 #include <$ac_header>
27163 _ACEOF
27164 rm -f conftest.$ac_objext
27165 if { (ac_try="$ac_compile"
27166 case "(($ac_try" in
27167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27168   *) ac_try_echo=$ac_try;;
27169 esac
27170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27171   (eval "$ac_compile") 2>conftest.er1
27172   ac_status=$?
27173   grep -v '^ *+' conftest.er1 >conftest.err
27174   rm -f conftest.er1
27175   cat conftest.err >&5
27176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177   (exit $ac_status); } && {
27178          test -z "$ac_c_werror_flag" ||
27179          test ! -s conftest.err
27180        } && test -s conftest.$ac_objext; then
27181   ac_header_compiler=yes
27182 else
27183   echo "$as_me: failed program was:" >&5
27184 sed 's/^/| /' conftest.$ac_ext >&5
27186         ac_header_compiler=no
27189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27190 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27191 echo "${ECHO_T}$ac_header_compiler" >&6; }
27193 # Is the header present?
27194 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27196 cat >conftest.$ac_ext <<_ACEOF
27197 /* confdefs.h.  */
27198 _ACEOF
27199 cat confdefs.h >>conftest.$ac_ext
27200 cat >>conftest.$ac_ext <<_ACEOF
27201 /* end confdefs.h.  */
27202 #include <$ac_header>
27203 _ACEOF
27204 if { (ac_try="$ac_cpp conftest.$ac_ext"
27205 case "(($ac_try" in
27206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27207   *) ac_try_echo=$ac_try;;
27208 esac
27209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27210   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27211   ac_status=$?
27212   grep -v '^ *+' conftest.er1 >conftest.err
27213   rm -f conftest.er1
27214   cat conftest.err >&5
27215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216   (exit $ac_status); } >/dev/null && {
27217          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27218          test ! -s conftest.err
27219        }; then
27220   ac_header_preproc=yes
27221 else
27222   echo "$as_me: failed program was:" >&5
27223 sed 's/^/| /' conftest.$ac_ext >&5
27225   ac_header_preproc=no
27228 rm -f conftest.err conftest.$ac_ext
27229 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27230 echo "${ECHO_T}$ac_header_preproc" >&6; }
27232 # So?  What about this header?
27233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27234   yes:no: )
27235     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27236 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27237     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27238 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27239     ac_header_preproc=yes
27240     ;;
27241   no:yes:* )
27242     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27243 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27244     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27245 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27246     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27247 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27248     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27249 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27250     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27252     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27253 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27254     ( cat <<\_ASBOX
27255 ## ---------------------------------------------------------------------- ##
27256 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
27257 ## ---------------------------------------------------------------------- ##
27258 _ASBOX
27259      ) | sed "s/^/$as_me: WARNING:     /" >&2
27260     ;;
27261 esac
27262 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27265   echo $ECHO_N "(cached) $ECHO_C" >&6
27266 else
27267   eval "$as_ac_Header=\$ac_header_preproc"
27269 ac_res=`eval echo '${'$as_ac_Header'}'`
27270                { echo "$as_me:$LINENO: result: $ac_res" >&5
27271 echo "${ECHO_T}$ac_res" >&6; }
27274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27275   cat >>confdefs.h <<_ACEOF
27276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27277 _ACEOF
27278  ac_cv_asm_mtrr_h=yes
27281 done
27283 if test "x$ac_cv_asm_mtrr_h" = xyes; then
27284         HAVE_MTRR=yes
27288 for ac_header in sys/memrange.h
27290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27292   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27295   echo $ECHO_N "(cached) $ECHO_C" >&6
27297 ac_res=`eval echo '${'$as_ac_Header'}'`
27298                { echo "$as_me:$LINENO: result: $ac_res" >&5
27299 echo "${ECHO_T}$ac_res" >&6; }
27300 else
27301   # Is the header compilable?
27302 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27304 cat >conftest.$ac_ext <<_ACEOF
27305 /* confdefs.h.  */
27306 _ACEOF
27307 cat confdefs.h >>conftest.$ac_ext
27308 cat >>conftest.$ac_ext <<_ACEOF
27309 /* end confdefs.h.  */
27310 $ac_includes_default
27311 #include <$ac_header>
27312 _ACEOF
27313 rm -f conftest.$ac_objext
27314 if { (ac_try="$ac_compile"
27315 case "(($ac_try" in
27316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27317   *) ac_try_echo=$ac_try;;
27318 esac
27319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27320   (eval "$ac_compile") 2>conftest.er1
27321   ac_status=$?
27322   grep -v '^ *+' conftest.er1 >conftest.err
27323   rm -f conftest.er1
27324   cat conftest.err >&5
27325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27326   (exit $ac_status); } && {
27327          test -z "$ac_c_werror_flag" ||
27328          test ! -s conftest.err
27329        } && test -s conftest.$ac_objext; then
27330   ac_header_compiler=yes
27331 else
27332   echo "$as_me: failed program was:" >&5
27333 sed 's/^/| /' conftest.$ac_ext >&5
27335         ac_header_compiler=no
27338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27339 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27340 echo "${ECHO_T}$ac_header_compiler" >&6; }
27342 # Is the header present?
27343 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27345 cat >conftest.$ac_ext <<_ACEOF
27346 /* confdefs.h.  */
27347 _ACEOF
27348 cat confdefs.h >>conftest.$ac_ext
27349 cat >>conftest.$ac_ext <<_ACEOF
27350 /* end confdefs.h.  */
27351 #include <$ac_header>
27352 _ACEOF
27353 if { (ac_try="$ac_cpp conftest.$ac_ext"
27354 case "(($ac_try" in
27355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27356   *) ac_try_echo=$ac_try;;
27357 esac
27358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27359   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27360   ac_status=$?
27361   grep -v '^ *+' conftest.er1 >conftest.err
27362   rm -f conftest.er1
27363   cat conftest.err >&5
27364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365   (exit $ac_status); } >/dev/null && {
27366          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27367          test ! -s conftest.err
27368        }; then
27369   ac_header_preproc=yes
27370 else
27371   echo "$as_me: failed program was:" >&5
27372 sed 's/^/| /' conftest.$ac_ext >&5
27374   ac_header_preproc=no
27377 rm -f conftest.err conftest.$ac_ext
27378 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27379 echo "${ECHO_T}$ac_header_preproc" >&6; }
27381 # So?  What about this header?
27382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27383   yes:no: )
27384     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27386     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27387 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27388     ac_header_preproc=yes
27389     ;;
27390   no:yes:* )
27391     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27393     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27394 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27395     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27396 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27397     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27398 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27399     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27401     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27402 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27403     ( cat <<\_ASBOX
27404 ## ---------------------------------------------------------------------- ##
27405 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
27406 ## ---------------------------------------------------------------------- ##
27407 _ASBOX
27408      ) | sed "s/^/$as_me: WARNING:     /" >&2
27409     ;;
27410 esac
27411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27414   echo $ECHO_N "(cached) $ECHO_C" >&6
27415 else
27416   eval "$as_ac_Header=\$ac_header_preproc"
27418 ac_res=`eval echo '${'$as_ac_Header'}'`
27419                { echo "$as_me:$LINENO: result: $ac_res" >&5
27420 echo "${ECHO_T}$ac_res" >&6; }
27423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27424   cat >>confdefs.h <<_ACEOF
27425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27426 _ACEOF
27427  ac_cv_memrange_h=yes
27430 done
27432 if test "x$ac_cv_memrange_h" = xyes; then
27433         HAVE_MTRR=yes
27436 if test "x$HAVE_MTRR" = xyes; then
27438 cat >>confdefs.h <<\_ACEOF
27439 #define HAS_MTRR_SUPPORT 1
27440 _ACEOF
27445 for ac_header in machine/mtrr.h
27447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27449   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27452   echo $ECHO_N "(cached) $ECHO_C" >&6
27454 ac_res=`eval echo '${'$as_ac_Header'}'`
27455                { echo "$as_me:$LINENO: result: $ac_res" >&5
27456 echo "${ECHO_T}$ac_res" >&6; }
27457 else
27458   # Is the header compilable?
27459 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27460 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27461 cat >conftest.$ac_ext <<_ACEOF
27462 /* confdefs.h.  */
27463 _ACEOF
27464 cat confdefs.h >>conftest.$ac_ext
27465 cat >>conftest.$ac_ext <<_ACEOF
27466 /* end confdefs.h.  */
27467 $ac_includes_default
27468 #include <$ac_header>
27469 _ACEOF
27470 rm -f conftest.$ac_objext
27471 if { (ac_try="$ac_compile"
27472 case "(($ac_try" in
27473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27474   *) ac_try_echo=$ac_try;;
27475 esac
27476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27477   (eval "$ac_compile") 2>conftest.er1
27478   ac_status=$?
27479   grep -v '^ *+' conftest.er1 >conftest.err
27480   rm -f conftest.er1
27481   cat conftest.err >&5
27482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483   (exit $ac_status); } && {
27484          test -z "$ac_c_werror_flag" ||
27485          test ! -s conftest.err
27486        } && test -s conftest.$ac_objext; then
27487   ac_header_compiler=yes
27488 else
27489   echo "$as_me: failed program was:" >&5
27490 sed 's/^/| /' conftest.$ac_ext >&5
27492         ac_header_compiler=no
27495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27496 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27497 echo "${ECHO_T}$ac_header_compiler" >&6; }
27499 # Is the header present?
27500 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27502 cat >conftest.$ac_ext <<_ACEOF
27503 /* confdefs.h.  */
27504 _ACEOF
27505 cat confdefs.h >>conftest.$ac_ext
27506 cat >>conftest.$ac_ext <<_ACEOF
27507 /* end confdefs.h.  */
27508 #include <$ac_header>
27509 _ACEOF
27510 if { (ac_try="$ac_cpp conftest.$ac_ext"
27511 case "(($ac_try" in
27512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27513   *) ac_try_echo=$ac_try;;
27514 esac
27515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27516   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27517   ac_status=$?
27518   grep -v '^ *+' conftest.er1 >conftest.err
27519   rm -f conftest.er1
27520   cat conftest.err >&5
27521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522   (exit $ac_status); } >/dev/null && {
27523          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27524          test ! -s conftest.err
27525        }; then
27526   ac_header_preproc=yes
27527 else
27528   echo "$as_me: failed program was:" >&5
27529 sed 's/^/| /' conftest.$ac_ext >&5
27531   ac_header_preproc=no
27534 rm -f conftest.err conftest.$ac_ext
27535 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27536 echo "${ECHO_T}$ac_header_preproc" >&6; }
27538 # So?  What about this header?
27539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27540   yes:no: )
27541     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27542 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27543     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27544 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27545     ac_header_preproc=yes
27546     ;;
27547   no:yes:* )
27548     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27550     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27551 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27552     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27553 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27554     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27555 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27556     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27558     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27559 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27560     ( cat <<\_ASBOX
27561 ## ---------------------------------------------------------------------- ##
27562 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
27563 ## ---------------------------------------------------------------------- ##
27564 _ASBOX
27565      ) | sed "s/^/$as_me: WARNING:     /" >&2
27566     ;;
27567 esac
27568 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27571   echo $ECHO_N "(cached) $ECHO_C" >&6
27572 else
27573   eval "$as_ac_Header=\$ac_header_preproc"
27575 ac_res=`eval echo '${'$as_ac_Header'}'`
27576                { echo "$as_me:$LINENO: result: $ac_res" >&5
27577 echo "${ECHO_T}$ac_res" >&6; }
27580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27581   cat >>confdefs.h <<_ACEOF
27582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27583 _ACEOF
27584  ac_cv_machine_mtrr_h=yes
27587 done
27589 if test "x$ac_cv_machine_mtrr_h" = xyes; then
27591 cat >>confdefs.h <<\_ACEOF
27592 #define HAS_MTRR_BUILTIN 1
27593 _ACEOF
27598 for ac_header in sys/linker.h
27600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27604   echo $ECHO_N "(cached) $ECHO_C" >&6
27605 else
27606   cat >conftest.$ac_ext <<_ACEOF
27607 /* confdefs.h.  */
27608 _ACEOF
27609 cat confdefs.h >>conftest.$ac_ext
27610 cat >>conftest.$ac_ext <<_ACEOF
27611 /* end confdefs.h.  */
27612 #include <sys/param.h>
27614 #include <$ac_header>
27615 _ACEOF
27616 rm -f conftest.$ac_objext
27617 if { (ac_try="$ac_compile"
27618 case "(($ac_try" in
27619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27620   *) ac_try_echo=$ac_try;;
27621 esac
27622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27623   (eval "$ac_compile") 2>conftest.er1
27624   ac_status=$?
27625   grep -v '^ *+' conftest.er1 >conftest.err
27626   rm -f conftest.er1
27627   cat conftest.err >&5
27628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27629   (exit $ac_status); } && {
27630          test -z "$ac_c_werror_flag" ||
27631          test ! -s conftest.err
27632        } && test -s conftest.$ac_objext; then
27633   eval "$as_ac_Header=yes"
27634 else
27635   echo "$as_me: failed program was:" >&5
27636 sed 's/^/| /' conftest.$ac_ext >&5
27638         eval "$as_ac_Header=no"
27641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27643 ac_res=`eval echo '${'$as_ac_Header'}'`
27644                { echo "$as_me:$LINENO: result: $ac_res" >&5
27645 echo "${ECHO_T}$ac_res" >&6; }
27646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27647   cat >>confdefs.h <<_ACEOF
27648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27649 _ACEOF
27650  ac_cv_sys_linker_h=yes
27651 else
27652   ac_cv_sys_linker_h=no
27655 done
27657  if test "x$ac_cv_sys_linker_h" = xyes; then
27658   FREEBSD_KLDLOAD_TRUE=
27659   FREEBSD_KLDLOAD_FALSE='#'
27660 else
27661   FREEBSD_KLDLOAD_TRUE='#'
27662   FREEBSD_KLDLOAD_FALSE=
27666 { echo "$as_me:$LINENO: checking for SYSV IPC" >&5
27667 echo $ECHO_N "checking for SYSV IPC... $ECHO_C" >&6; }
27668 if test "${ac_cv_sysv_ipc+set}" = set; then
27669   echo $ECHO_N "(cached) $ECHO_C" >&6
27670 else
27671   cat >conftest.$ac_ext <<_ACEOF
27672 /* confdefs.h.  */
27673 _ACEOF
27674 cat confdefs.h >>conftest.$ac_ext
27675 cat >>conftest.$ac_ext <<_ACEOF
27676 /* end confdefs.h.  */
27678 #include <sys/types.h>
27679 #include <sys/ipc.h>
27680 #include <sys/shm.h>
27682 int
27683 main ()
27687     int id;
27688     id = shmget(IPC_PRIVATE, 512, SHM_W | SHM_R);
27689     if (id < 0) return -1;
27690     return shmctl(id, IPC_RMID, 0);
27692   ;
27693   return 0;
27695 _ACEOF
27696 rm -f conftest.$ac_objext conftest$ac_exeext
27697 if { (ac_try="$ac_link"
27698 case "(($ac_try" in
27699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27700   *) ac_try_echo=$ac_try;;
27701 esac
27702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27703   (eval "$ac_link") 2>conftest.er1
27704   ac_status=$?
27705   grep -v '^ *+' conftest.er1 >conftest.err
27706   rm -f conftest.er1
27707   cat conftest.err >&5
27708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709   (exit $ac_status); } && {
27710          test -z "$ac_c_werror_flag" ||
27711          test ! -s conftest.err
27712        } && test -s conftest$ac_exeext &&
27713        $as_test_x conftest$ac_exeext; then
27714   ac_cv_sysv_ipc=yes
27715 else
27716   echo "$as_me: failed program was:" >&5
27717 sed 's/^/| /' conftest.$ac_ext >&5
27719         ac_cv_sysv_ipc=no
27722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27723       conftest$ac_exeext conftest.$ac_ext
27725 { echo "$as_me:$LINENO: result: $ac_cv_sysv_ipc" >&5
27726 echo "${ECHO_T}$ac_cv_sysv_ipc" >&6; }
27727 if test "x$ac_cv_sysv_ipc" = xyes; then
27729 cat >>confdefs.h <<\_ACEOF
27730 #define HAVE_SYSV_IPC 1
27731 _ACEOF
27735 if test -c /dev/xf86 ; then
27737 cat >>confdefs.h <<\_ACEOF
27738 #define HAS_APERTURE_DRV 1
27739 _ACEOF
27743 if test "${ac_cv_header_machine_apmvar_h+set}" = set; then
27744   { echo "$as_me:$LINENO: checking for machine/apmvar.h" >&5
27745 echo $ECHO_N "checking for machine/apmvar.h... $ECHO_C" >&6; }
27746 if test "${ac_cv_header_machine_apmvar_h+set}" = set; then
27747   echo $ECHO_N "(cached) $ECHO_C" >&6
27749 { echo "$as_me:$LINENO: result: $ac_cv_header_machine_apmvar_h" >&5
27750 echo "${ECHO_T}$ac_cv_header_machine_apmvar_h" >&6; }
27751 else
27752   # Is the header compilable?
27753 { echo "$as_me:$LINENO: checking machine/apmvar.h usability" >&5
27754 echo $ECHO_N "checking machine/apmvar.h usability... $ECHO_C" >&6; }
27755 cat >conftest.$ac_ext <<_ACEOF
27756 /* confdefs.h.  */
27757 _ACEOF
27758 cat confdefs.h >>conftest.$ac_ext
27759 cat >>conftest.$ac_ext <<_ACEOF
27760 /* end confdefs.h.  */
27761 $ac_includes_default
27762 #include <machine/apmvar.h>
27763 _ACEOF
27764 rm -f conftest.$ac_objext
27765 if { (ac_try="$ac_compile"
27766 case "(($ac_try" in
27767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27768   *) ac_try_echo=$ac_try;;
27769 esac
27770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27771   (eval "$ac_compile") 2>conftest.er1
27772   ac_status=$?
27773   grep -v '^ *+' conftest.er1 >conftest.err
27774   rm -f conftest.er1
27775   cat conftest.err >&5
27776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777   (exit $ac_status); } && {
27778          test -z "$ac_c_werror_flag" ||
27779          test ! -s conftest.err
27780        } && test -s conftest.$ac_objext; then
27781   ac_header_compiler=yes
27782 else
27783   echo "$as_me: failed program was:" >&5
27784 sed 's/^/| /' conftest.$ac_ext >&5
27786         ac_header_compiler=no
27789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27790 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27791 echo "${ECHO_T}$ac_header_compiler" >&6; }
27793 # Is the header present?
27794 { echo "$as_me:$LINENO: checking machine/apmvar.h presence" >&5
27795 echo $ECHO_N "checking machine/apmvar.h presence... $ECHO_C" >&6; }
27796 cat >conftest.$ac_ext <<_ACEOF
27797 /* confdefs.h.  */
27798 _ACEOF
27799 cat confdefs.h >>conftest.$ac_ext
27800 cat >>conftest.$ac_ext <<_ACEOF
27801 /* end confdefs.h.  */
27802 #include <machine/apmvar.h>
27803 _ACEOF
27804 if { (ac_try="$ac_cpp conftest.$ac_ext"
27805 case "(($ac_try" in
27806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27807   *) ac_try_echo=$ac_try;;
27808 esac
27809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27810   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27811   ac_status=$?
27812   grep -v '^ *+' conftest.er1 >conftest.err
27813   rm -f conftest.er1
27814   cat conftest.err >&5
27815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816   (exit $ac_status); } >/dev/null && {
27817          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27818          test ! -s conftest.err
27819        }; then
27820   ac_header_preproc=yes
27821 else
27822   echo "$as_me: failed program was:" >&5
27823 sed 's/^/| /' conftest.$ac_ext >&5
27825   ac_header_preproc=no
27828 rm -f conftest.err conftest.$ac_ext
27829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27830 echo "${ECHO_T}$ac_header_preproc" >&6; }
27832 # So?  What about this header?
27833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27834   yes:no: )
27835     { echo "$as_me:$LINENO: WARNING: machine/apmvar.h: accepted by the compiler, rejected by the preprocessor!" >&5
27836 echo "$as_me: WARNING: machine/apmvar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27837     { echo "$as_me:$LINENO: WARNING: machine/apmvar.h: proceeding with the compiler's result" >&5
27838 echo "$as_me: WARNING: machine/apmvar.h: proceeding with the compiler's result" >&2;}
27839     ac_header_preproc=yes
27840     ;;
27841   no:yes:* )
27842     { echo "$as_me:$LINENO: WARNING: machine/apmvar.h: present but cannot be compiled" >&5
27843 echo "$as_me: WARNING: machine/apmvar.h: present but cannot be compiled" >&2;}
27844     { echo "$as_me:$LINENO: WARNING: machine/apmvar.h:     check for missing prerequisite headers?" >&5
27845 echo "$as_me: WARNING: machine/apmvar.h:     check for missing prerequisite headers?" >&2;}
27846     { echo "$as_me:$LINENO: WARNING: machine/apmvar.h: see the Autoconf documentation" >&5
27847 echo "$as_me: WARNING: machine/apmvar.h: see the Autoconf documentation" >&2;}
27848     { echo "$as_me:$LINENO: WARNING: machine/apmvar.h:     section \"Present But Cannot Be Compiled\"" >&5
27849 echo "$as_me: WARNING: machine/apmvar.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27850     { echo "$as_me:$LINENO: WARNING: machine/apmvar.h: proceeding with the preprocessor's result" >&5
27851 echo "$as_me: WARNING: machine/apmvar.h: proceeding with the preprocessor's result" >&2;}
27852     { echo "$as_me:$LINENO: WARNING: machine/apmvar.h: in the future, the compiler will take precedence" >&5
27853 echo "$as_me: WARNING: machine/apmvar.h: in the future, the compiler will take precedence" >&2;}
27854     ( cat <<\_ASBOX
27855 ## ---------------------------------------------------------------------- ##
27856 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
27857 ## ---------------------------------------------------------------------- ##
27858 _ASBOX
27859      ) | sed "s/^/$as_me: WARNING:     /" >&2
27860     ;;
27861 esac
27862 { echo "$as_me:$LINENO: checking for machine/apmvar.h" >&5
27863 echo $ECHO_N "checking for machine/apmvar.h... $ECHO_C" >&6; }
27864 if test "${ac_cv_header_machine_apmvar_h+set}" = set; then
27865   echo $ECHO_N "(cached) $ECHO_C" >&6
27866 else
27867   ac_cv_header_machine_apmvar_h=$ac_header_preproc
27869 { echo "$as_me:$LINENO: result: $ac_cv_header_machine_apmvar_h" >&5
27870 echo "${ECHO_T}$ac_cv_header_machine_apmvar_h" >&6; }
27873 if test $ac_cv_header_machine_apmvar_h = yes; then
27875         if test "${ac_cv_header_sys_event_h+set}" = set; then
27876   { echo "$as_me:$LINENO: checking for sys/event.h" >&5
27877 echo $ECHO_N "checking for sys/event.h... $ECHO_C" >&6; }
27878 if test "${ac_cv_header_sys_event_h+set}" = set; then
27879   echo $ECHO_N "(cached) $ECHO_C" >&6
27881 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_event_h" >&5
27882 echo "${ECHO_T}$ac_cv_header_sys_event_h" >&6; }
27883 else
27884   # Is the header compilable?
27885 { echo "$as_me:$LINENO: checking sys/event.h usability" >&5
27886 echo $ECHO_N "checking sys/event.h usability... $ECHO_C" >&6; }
27887 cat >conftest.$ac_ext <<_ACEOF
27888 /* confdefs.h.  */
27889 _ACEOF
27890 cat confdefs.h >>conftest.$ac_ext
27891 cat >>conftest.$ac_ext <<_ACEOF
27892 /* end confdefs.h.  */
27893 $ac_includes_default
27894 #include <sys/event.h>
27895 _ACEOF
27896 rm -f conftest.$ac_objext
27897 if { (ac_try="$ac_compile"
27898 case "(($ac_try" in
27899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27900   *) ac_try_echo=$ac_try;;
27901 esac
27902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27903   (eval "$ac_compile") 2>conftest.er1
27904   ac_status=$?
27905   grep -v '^ *+' conftest.er1 >conftest.err
27906   rm -f conftest.er1
27907   cat conftest.err >&5
27908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27909   (exit $ac_status); } && {
27910          test -z "$ac_c_werror_flag" ||
27911          test ! -s conftest.err
27912        } && test -s conftest.$ac_objext; then
27913   ac_header_compiler=yes
27914 else
27915   echo "$as_me: failed program was:" >&5
27916 sed 's/^/| /' conftest.$ac_ext >&5
27918         ac_header_compiler=no
27921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27923 echo "${ECHO_T}$ac_header_compiler" >&6; }
27925 # Is the header present?
27926 { echo "$as_me:$LINENO: checking sys/event.h presence" >&5
27927 echo $ECHO_N "checking sys/event.h presence... $ECHO_C" >&6; }
27928 cat >conftest.$ac_ext <<_ACEOF
27929 /* confdefs.h.  */
27930 _ACEOF
27931 cat confdefs.h >>conftest.$ac_ext
27932 cat >>conftest.$ac_ext <<_ACEOF
27933 /* end confdefs.h.  */
27934 #include <sys/event.h>
27935 _ACEOF
27936 if { (ac_try="$ac_cpp conftest.$ac_ext"
27937 case "(($ac_try" in
27938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27939   *) ac_try_echo=$ac_try;;
27940 esac
27941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27942   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27943   ac_status=$?
27944   grep -v '^ *+' conftest.er1 >conftest.err
27945   rm -f conftest.er1
27946   cat conftest.err >&5
27947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948   (exit $ac_status); } >/dev/null && {
27949          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27950          test ! -s conftest.err
27951        }; then
27952   ac_header_preproc=yes
27953 else
27954   echo "$as_me: failed program was:" >&5
27955 sed 's/^/| /' conftest.$ac_ext >&5
27957   ac_header_preproc=no
27960 rm -f conftest.err conftest.$ac_ext
27961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27962 echo "${ECHO_T}$ac_header_preproc" >&6; }
27964 # So?  What about this header?
27965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27966   yes:no: )
27967     { echo "$as_me:$LINENO: WARNING: sys/event.h: accepted by the compiler, rejected by the preprocessor!" >&5
27968 echo "$as_me: WARNING: sys/event.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27969     { echo "$as_me:$LINENO: WARNING: sys/event.h: proceeding with the compiler's result" >&5
27970 echo "$as_me: WARNING: sys/event.h: proceeding with the compiler's result" >&2;}
27971     ac_header_preproc=yes
27972     ;;
27973   no:yes:* )
27974     { echo "$as_me:$LINENO: WARNING: sys/event.h: present but cannot be compiled" >&5
27975 echo "$as_me: WARNING: sys/event.h: present but cannot be compiled" >&2;}
27976     { echo "$as_me:$LINENO: WARNING: sys/event.h:     check for missing prerequisite headers?" >&5
27977 echo "$as_me: WARNING: sys/event.h:     check for missing prerequisite headers?" >&2;}
27978     { echo "$as_me:$LINENO: WARNING: sys/event.h: see the Autoconf documentation" >&5
27979 echo "$as_me: WARNING: sys/event.h: see the Autoconf documentation" >&2;}
27980     { echo "$as_me:$LINENO: WARNING: sys/event.h:     section \"Present But Cannot Be Compiled\"" >&5
27981 echo "$as_me: WARNING: sys/event.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27982     { echo "$as_me:$LINENO: WARNING: sys/event.h: proceeding with the preprocessor's result" >&5
27983 echo "$as_me: WARNING: sys/event.h: proceeding with the preprocessor's result" >&2;}
27984     { echo "$as_me:$LINENO: WARNING: sys/event.h: in the future, the compiler will take precedence" >&5
27985 echo "$as_me: WARNING: sys/event.h: in the future, the compiler will take precedence" >&2;}
27986     ( cat <<\_ASBOX
27987 ## ---------------------------------------------------------------------- ##
27988 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
27989 ## ---------------------------------------------------------------------- ##
27990 _ASBOX
27991      ) | sed "s/^/$as_me: WARNING:     /" >&2
27992     ;;
27993 esac
27994 { echo "$as_me:$LINENO: checking for sys/event.h" >&5
27995 echo $ECHO_N "checking for sys/event.h... $ECHO_C" >&6; }
27996 if test "${ac_cv_header_sys_event_h+set}" = set; then
27997   echo $ECHO_N "(cached) $ECHO_C" >&6
27998 else
27999   ac_cv_header_sys_event_h=$ac_header_preproc
28001 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_event_h" >&5
28002 echo "${ECHO_T}$ac_cv_header_sys_event_h" >&6; }
28005 if test $ac_cv_header_sys_event_h = yes; then
28006   ac_cv_BSD_KQUEUE_APM=yes
28007 else
28008   ac_cv_BSD_APM=yes
28016  if test "x$ac_cv_BSD_APM" = xyes; then
28017   BSD_APM_TRUE=
28018   BSD_APM_FALSE='#'
28019 else
28020   BSD_APM_TRUE='#'
28021   BSD_APM_FALSE=
28024  if test "x$ac_cv_BSD_KQUEUE_APM" = xyes; then
28025   BSD_KQUEUE_APM_TRUE=
28026   BSD_KQUEUE_APM_FALSE='#'
28027 else
28028   BSD_KQUEUE_APM_TRUE='#'
28029   BSD_KQUEUE_APM_FALSE=
28033 if test "${ac_cv_header_execinfo_h+set}" = set; then
28034   { echo "$as_me:$LINENO: checking for execinfo.h" >&5
28035 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
28036 if test "${ac_cv_header_execinfo_h+set}" = set; then
28037   echo $ECHO_N "(cached) $ECHO_C" >&6
28039 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
28040 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
28041 else
28042   # Is the header compilable?
28043 { echo "$as_me:$LINENO: checking execinfo.h usability" >&5
28044 echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6; }
28045 cat >conftest.$ac_ext <<_ACEOF
28046 /* confdefs.h.  */
28047 _ACEOF
28048 cat confdefs.h >>conftest.$ac_ext
28049 cat >>conftest.$ac_ext <<_ACEOF
28050 /* end confdefs.h.  */
28051 $ac_includes_default
28052 #include <execinfo.h>
28053 _ACEOF
28054 rm -f conftest.$ac_objext
28055 if { (ac_try="$ac_compile"
28056 case "(($ac_try" in
28057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28058   *) ac_try_echo=$ac_try;;
28059 esac
28060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28061   (eval "$ac_compile") 2>conftest.er1
28062   ac_status=$?
28063   grep -v '^ *+' conftest.er1 >conftest.err
28064   rm -f conftest.er1
28065   cat conftest.err >&5
28066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067   (exit $ac_status); } && {
28068          test -z "$ac_c_werror_flag" ||
28069          test ! -s conftest.err
28070        } && test -s conftest.$ac_objext; then
28071   ac_header_compiler=yes
28072 else
28073   echo "$as_me: failed program was:" >&5
28074 sed 's/^/| /' conftest.$ac_ext >&5
28076         ac_header_compiler=no
28079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28081 echo "${ECHO_T}$ac_header_compiler" >&6; }
28083 # Is the header present?
28084 { echo "$as_me:$LINENO: checking execinfo.h presence" >&5
28085 echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6; }
28086 cat >conftest.$ac_ext <<_ACEOF
28087 /* confdefs.h.  */
28088 _ACEOF
28089 cat confdefs.h >>conftest.$ac_ext
28090 cat >>conftest.$ac_ext <<_ACEOF
28091 /* end confdefs.h.  */
28092 #include <execinfo.h>
28093 _ACEOF
28094 if { (ac_try="$ac_cpp conftest.$ac_ext"
28095 case "(($ac_try" in
28096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28097   *) ac_try_echo=$ac_try;;
28098 esac
28099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28100   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28101   ac_status=$?
28102   grep -v '^ *+' conftest.er1 >conftest.err
28103   rm -f conftest.er1
28104   cat conftest.err >&5
28105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28106   (exit $ac_status); } >/dev/null && {
28107          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28108          test ! -s conftest.err
28109        }; then
28110   ac_header_preproc=yes
28111 else
28112   echo "$as_me: failed program was:" >&5
28113 sed 's/^/| /' conftest.$ac_ext >&5
28115   ac_header_preproc=no
28118 rm -f conftest.err conftest.$ac_ext
28119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28120 echo "${ECHO_T}$ac_header_preproc" >&6; }
28122 # So?  What about this header?
28123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28124   yes:no: )
28125     { echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
28126 echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28127     { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
28128 echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
28129     ac_header_preproc=yes
28130     ;;
28131   no:yes:* )
28132     { echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
28133 echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
28134     { echo "$as_me:$LINENO: WARNING: execinfo.h:     check for missing prerequisite headers?" >&5
28135 echo "$as_me: WARNING: execinfo.h:     check for missing prerequisite headers?" >&2;}
28136     { echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
28137 echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
28138     { echo "$as_me:$LINENO: WARNING: execinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
28139 echo "$as_me: WARNING: execinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28140     { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
28141 echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
28142     { echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
28143 echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
28144     ( cat <<\_ASBOX
28145 ## ---------------------------------------------------------------------- ##
28146 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
28147 ## ---------------------------------------------------------------------- ##
28148 _ASBOX
28149      ) | sed "s/^/$as_me: WARNING:     /" >&2
28150     ;;
28151 esac
28152 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
28153 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
28154 if test "${ac_cv_header_execinfo_h+set}" = set; then
28155   echo $ECHO_N "(cached) $ECHO_C" >&6
28156 else
28157   ac_cv_header_execinfo_h=$ac_header_preproc
28159 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
28160 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
28163 if test $ac_cv_header_execinfo_h = yes; then
28165     { echo "$as_me:$LINENO: checking for backtrace in -lc" >&5
28166 echo $ECHO_N "checking for backtrace in -lc... $ECHO_C" >&6; }
28167 if test "${ac_cv_lib_c_backtrace+set}" = set; then
28168   echo $ECHO_N "(cached) $ECHO_C" >&6
28169 else
28170   ac_check_lib_save_LIBS=$LIBS
28171 LIBS="-lc  $LIBS"
28172 cat >conftest.$ac_ext <<_ACEOF
28173 /* confdefs.h.  */
28174 _ACEOF
28175 cat confdefs.h >>conftest.$ac_ext
28176 cat >>conftest.$ac_ext <<_ACEOF
28177 /* end confdefs.h.  */
28179 /* Override any GCC internal prototype to avoid an error.
28180    Use char because int might match the return type of a GCC
28181    builtin and then its argument prototype would still apply.  */
28182 #ifdef __cplusplus
28183 extern "C"
28184 #endif
28185 char backtrace ();
28186 int
28187 main ()
28189 return backtrace ();
28190   ;
28191   return 0;
28193 _ACEOF
28194 rm -f conftest.$ac_objext conftest$ac_exeext
28195 if { (ac_try="$ac_link"
28196 case "(($ac_try" in
28197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28198   *) ac_try_echo=$ac_try;;
28199 esac
28200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28201   (eval "$ac_link") 2>conftest.er1
28202   ac_status=$?
28203   grep -v '^ *+' conftest.er1 >conftest.err
28204   rm -f conftest.er1
28205   cat conftest.err >&5
28206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28207   (exit $ac_status); } && {
28208          test -z "$ac_c_werror_flag" ||
28209          test ! -s conftest.err
28210        } && test -s conftest$ac_exeext &&
28211        $as_test_x conftest$ac_exeext; then
28212   ac_cv_lib_c_backtrace=yes
28213 else
28214   echo "$as_me: failed program was:" >&5
28215 sed 's/^/| /' conftest.$ac_ext >&5
28217         ac_cv_lib_c_backtrace=no
28220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28221       conftest$ac_exeext conftest.$ac_ext
28222 LIBS=$ac_check_lib_save_LIBS
28224 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_backtrace" >&5
28225 echo "${ECHO_T}$ac_cv_lib_c_backtrace" >&6; }
28226 if test $ac_cv_lib_c_backtrace = yes; then
28229 cat >>confdefs.h <<\_ACEOF
28230 #define HAVE_BACKTRACE 1
28231 _ACEOF
28234 cat >>confdefs.h <<\_ACEOF
28235 #define HAVE_EXECINFO_H 1
28236 _ACEOF
28246 DEFAULT_INT10="x86emu"
28249 case $host_cpu in
28250   alpha*)
28251         ALPHA_VIDEO=yes
28252         case $host_os in
28253                 *freebsd*)      SYS_LIBS=-lio ;;
28254                 *netbsd*)
28255 cat >>confdefs.h <<\_ACEOF
28256 #define USE_ALPHA_PIO 1
28257 _ACEOF
28258  ;;
28259         esac
28260         GLX_ARCH_DEFINES="-D__GLX_ALIGN64 -mieee"
28261         ;;
28262   arm*)
28263         ARM_VIDEO=yes
28264         ;;
28265   i*86)
28266         I386_VIDEO=yes
28267         case $host_os in
28268                 *freebsd*)      cat >>confdefs.h <<\_ACEOF
28269 #define USE_DEV_IO 1
28270 _ACEOF
28271  ;;
28272                 *dragonfly*)    cat >>confdefs.h <<\_ACEOF
28273 #define USE_DEV_IO 1
28274 _ACEOF
28275  ;;
28276                 *netbsd*)       cat >>confdefs.h <<\_ACEOF
28277 #define USE_I386_IOPL 1
28278 _ACEOF
28280                                 SYS_LIBS=-li386
28281                                 ;;
28282                 *openbsd*)      cat >>confdefs.h <<\_ACEOF
28283 #define USE_I386_IOPL 1
28284 _ACEOF
28286                                 SYS_LIBS=-li386
28287                                 ;;
28288         esac
28289         ;;
28290   powerpc*)
28291         PPC_VIDEO=yes
28292         case $host_os in
28293                 *freebsd*)      DEFAULT_INT10=stub ;;
28294         esac
28295         ;;
28296   sparc*)
28297         SPARC64_VIDEO=yes
28298         BSD_ARCH_SOURCES="sparc64_video.c ioperm_noop.c"
28299         GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
28300         ;;
28301   x86_64*|amd64*)
28302         I386_VIDEO=yes
28303         case $host_os in
28304                 *freebsd*)
28305 cat >>confdefs.h <<\_ACEOF
28306 #define USE_DEV_IO 1
28307 _ACEOF
28308  ;;
28309                 *dragonfly*)
28310 cat >>confdefs.h <<\_ACEOF
28311 #define USE_DEV_IO 1
28312 _ACEOF
28313  ;;
28314                 *netbsd*)
28315 cat >>confdefs.h <<\_ACEOF
28316 #define USE_I386_IOPL 1
28317 _ACEOF
28319                                 SYS_LIBS=-lx86_64
28320                                 ;;
28321                 *openbsd*)
28322 cat >>confdefs.h <<\_ACEOF
28323 #define USE_AMD64_IOPL 1
28324 _ACEOF
28326                                 SYS_LIBS=-lamd64
28327                                 ;;
28328         esac
28329         GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
28330         ;;
28331   ia64*)
28332         GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
28333         ;;
28334   s390*)
28335         GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
28336         ;;
28337 esac
28340  if test "x$ALPHA_VIDEO" = xyes; then
28341   ALPHA_VIDEO_TRUE=
28342   ALPHA_VIDEO_FALSE='#'
28343 else
28344   ALPHA_VIDEO_TRUE='#'
28345   ALPHA_VIDEO_FALSE=
28348  if test "x$ARM_VIDEO" = xyes; then
28349   ARM_VIDEO_TRUE=
28350   ARM_VIDEO_FALSE='#'
28351 else
28352   ARM_VIDEO_TRUE='#'
28353   ARM_VIDEO_FALSE=
28356  if test "x$I386_VIDEO" = xyes; then
28357   I386_VIDEO_TRUE=
28358   I386_VIDEO_FALSE='#'
28359 else
28360   I386_VIDEO_TRUE='#'
28361   I386_VIDEO_FALSE=
28364  if test "x$PPC_VIDEO" = xyes; then
28365   PPC_VIDEO_TRUE=
28366   PPC_VIDEO_FALSE='#'
28367 else
28368   PPC_VIDEO_TRUE='#'
28369   PPC_VIDEO_FALSE=
28372  if test "x$SPARC64_VIDEO" = xyes; then
28373   SPARC64_VIDEO_TRUE=
28374   SPARC64_VIDEO_FALSE='#'
28375 else
28376   SPARC64_VIDEO_TRUE='#'
28377   SPARC64_VIDEO_FALSE=
28381 DRI=no
28382 USE_SIGIO_BY_DEFAULT="yes"
28383 case $host_os in
28384   *freebsd* | *dragonfly*)
28385         case $host_os in
28386                 kfreebsd*-gnu) ;;
28387                 *)
28388 cat >>confdefs.h <<\_ACEOF
28389 #define CSRG_BASED 1
28390 _ACEOF
28391  ;;
28392         esac
28394 cat >>confdefs.h <<\_ACEOF
28395 #define PCCONS_SUPPORT 1
28396 _ACEOF
28399 cat >>confdefs.h <<\_ACEOF
28400 #define PCVT_SUPPORT 1
28401 _ACEOF
28404 cat >>confdefs.h <<\_ACEOF
28405 #define SYSCONS_SUPPORT 1
28406 _ACEOF
28408         DRI=yes
28409         ;;
28410   *netbsd*)
28412 cat >>confdefs.h <<\_ACEOF
28413 #define CSRG_BASED 1
28414 _ACEOF
28417 cat >>confdefs.h <<\_ACEOF
28418 #define PCCONS_SUPPORT 1
28419 _ACEOF
28422 cat >>confdefs.h <<\_ACEOF
28423 #define PCVT_SUPPORT 1
28424 _ACEOF
28427 cat >>confdefs.h <<\_ACEOF
28428 #define WSCONS_SUPPORT 1
28429 _ACEOF
28431         DRI=yes
28432         ;;
28433   *openbsd*)
28435 cat >>confdefs.h <<\_ACEOF
28436 #define CSRG_BASED 1
28437 _ACEOF
28440 cat >>confdefs.h <<\_ACEOF
28441 #define PCVT_SUPPORT 1
28442 _ACEOF
28445 cat >>confdefs.h <<\_ACEOF
28446 #define WSCONS_SUPPORT 1
28447 _ACEOF
28449         ;;
28450   *linux*)
28451         DRI=yes
28452         ;;
28453   *solaris*)
28454         if test -n "$PKG_CONFIG" && \
28455     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm\"") >&5
28456   ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5
28457   ac_status=$?
28458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459   (exit $ac_status); }; then
28460   DRI=yes
28461 else
28462   DRI=no
28464         # Disable use of SIGIO by default until some system bugs are
28465         # fixed - see Sun/OpenSolaris bug id 6879897
28466         USE_SIGIO_BY_DEFAULT="no"
28467         ;;
28468   darwin*)
28470 cat >>confdefs.h <<\_ACEOF
28471 #define CSRG_BASED 1
28472 _ACEOF
28474         ;;
28475   cygwin*)
28476         CFLAGS="$CFLAGS -DFD_SETSIZE=256"
28477         ;;
28478 esac
28480 PVMAJOR=`echo $PACKAGE_VERSION | cut -d . -f 1`
28481 PVS=`echo $PACKAGE_VERSION | cut -d . -f 4 | cut -d - -f 1`
28482 if test "x$PVS" = "x"; then
28483         PVS="0"
28486 VENDOR_RELEASE="((($PVMAJOR) * 10000000) + (($PVM) * 100000) + (($PVP) * 1000) + $PVS)"
28487 VENDOR_MAN_VERSION="Version ${PACKAGE_VERSION}"
28489 VENDOR_NAME="The X.Org Foundation"
28490 VENDOR_NAME_SHORT="X.Org"
28491 VENDOR_WEB="http://wiki.x.org"
28495 # Check whether --enable-werror was given.
28496 if test "${enable_werror+set}" = set; then
28497   enableval=$enable_werror; { { echo "$as_me:$LINENO: error: --enable-werror has been replaced by --enable-strict-compilation" >&5
28498 echo "$as_me: error: --enable-werror has been replaced by --enable-strict-compilation" >&2;}
28499    { (exit 1); exit 1; }; }
28503 # Check whether --enable-debug was given.
28504 if test "${enable_debug+set}" = set; then
28505   enableval=$enable_debug; DEBUGGING=$enableval
28506 else
28507   DEBUGGING=no
28510 # Check whether --enable-use-sigio-by-default was given.
28511 if test "${enable_use_sigio_by_default+set}" = set; then
28512   enableval=$enable_use_sigio_by_default; USE_SIGIO_BY_DEFAULT=$enableval
28516 # Check whether --with-int10 was given.
28517 if test "${with_int10+set}" = set; then
28518   withval=$with_int10; INT10="$withval"
28519 else
28520   INT10="$DEFAULT_INT10"
28524 # Check whether --with-vendor-name was given.
28525 if test "${with_vendor_name+set}" = set; then
28526   withval=$with_vendor_name;  VENDOR_NAME="$withval"
28530 # Check whether --with-vendor-name-short was given.
28531 if test "${with_vendor_name_short+set}" = set; then
28532   withval=$with_vendor_name_short;  VENDOR_NAME_SHORT="$withval"
28536 # Check whether --with-vendor-web was given.
28537 if test "${with_vendor_web+set}" = set; then
28538   withval=$with_vendor_web;  VENDOR_WEB="$withval"
28542 # Check whether --with-module-dir was given.
28543 if test "${with_module_dir+set}" = set; then
28544   withval=$with_module_dir;  moduledir="$withval"
28545 else
28546    moduledir="${libdir}/xorg/modules"
28550 # Check whether --with-log-dir was given.
28551 if test "${with_log_dir+set}" = set; then
28552   withval=$with_log_dir;  logdir="$withval"
28553 else
28554    logdir="$localstatedir/log"
28558 # Check whether --with-builder-addr was given.
28559 if test "${with_builder_addr+set}" = set; then
28560   withval=$with_builder_addr;  BUILDERADDR="$withval"
28561 else
28562    BUILDERADDR="xorg@lists.freedesktop.org"
28566 # Check whether --with-os-name was given.
28567 if test "${with_os_name+set}" = set; then
28568   withval=$with_os_name;  OSNAME="$withval"
28569 else
28570    OSNAME=`uname -srm`
28574 # Check whether --with-os-vendor was given.
28575 if test "${with_os_vendor+set}" = set; then
28576   withval=$with_os_vendor;  OSVENDOR="$withval"
28577 else
28578    OSVENDOR=""
28582 # Check whether --with-builderstring was given.
28583 if test "${with_builderstring+set}" = set; then
28584   withval=$with_builderstring;  BUILDERSTRING="$withval"
28592         { echo "$as_me:$LINENO: checking for root directory for font files" >&5
28593 echo $ECHO_N "checking for root directory for font files... $ECHO_C" >&6; }
28595 # Check whether --with-fontrootdir was given.
28596 if test "${with_fontrootdir+set}" = set; then
28597   withval=$with_fontrootdir; FONTROOTDIR="$withval"
28600         # if --with-fontrootdir not specified...
28601         if test "x${FONTROOTDIR}" = "x"; then
28602                 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
28603         fi
28604         # ...and if pkg-config didn't find fontdir in fontutil.pc...
28605         if test "x${FONTROOTDIR}" = "x"; then
28606                 FONTROOTDIR="${datadir}/fonts/X11"
28607         fi
28609         { echo "$as_me:$LINENO: result: ${FONTROOTDIR}" >&5
28610 echo "${ECHO_T}${FONTROOTDIR}" >&6; }
28615         { echo "$as_me:$LINENO: checking for directory for misc files" >&5
28616 echo $ECHO_N "checking for directory for misc files... $ECHO_C" >&6; }
28618 # Check whether --with-fontmiscdir was given.
28619 if test "${with_fontmiscdir+set}" = set; then
28620   withval=$with_fontmiscdir; FONTMISCDIR="${withval}"
28621 else
28622   FONTMISCDIR='${FONTROOTDIR}/misc'
28626         { echo "$as_me:$LINENO: result: ${FONTMISCDIR}" >&5
28627 echo "${ECHO_T}${FONTMISCDIR}" >&6; }
28632         { echo "$as_me:$LINENO: checking for directory for OTF files" >&5
28633 echo $ECHO_N "checking for directory for OTF files... $ECHO_C" >&6; }
28635 # Check whether --with-fontotfdir was given.
28636 if test "${with_fontotfdir+set}" = set; then
28637   withval=$with_fontotfdir; FONTOTFDIR="${withval}"
28638 else
28639   FONTOTFDIR='${FONTROOTDIR}/OTF'
28643         { echo "$as_me:$LINENO: result: ${FONTOTFDIR}" >&5
28644 echo "${ECHO_T}${FONTOTFDIR}" >&6; }
28649         { echo "$as_me:$LINENO: checking for directory for TTF files" >&5
28650 echo $ECHO_N "checking for directory for TTF files... $ECHO_C" >&6; }
28652 # Check whether --with-fontttfdir was given.
28653 if test "${with_fontttfdir+set}" = set; then
28654   withval=$with_fontttfdir; FONTTTFDIR="${withval}"
28655 else
28656   FONTTTFDIR='${FONTROOTDIR}/TTF'
28660         { echo "$as_me:$LINENO: result: ${FONTTTFDIR}" >&5
28661 echo "${ECHO_T}${FONTTTFDIR}" >&6; }
28666         { echo "$as_me:$LINENO: checking for directory for Type1 files" >&5
28667 echo $ECHO_N "checking for directory for Type1 files... $ECHO_C" >&6; }
28669 # Check whether --with-fonttype1dir was given.
28670 if test "${with_fonttype1dir+set}" = set; then
28671   withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}"
28672 else
28673   FONTTYPE1DIR='${FONTROOTDIR}/Type1'
28677         { echo "$as_me:$LINENO: result: ${FONTTYPE1DIR}" >&5
28678 echo "${ECHO_T}${FONTTYPE1DIR}" >&6; }
28683         { echo "$as_me:$LINENO: checking for directory for 75dpi files" >&5
28684 echo $ECHO_N "checking for directory for 75dpi files... $ECHO_C" >&6; }
28686 # Check whether --with-font75dpidir was given.
28687 if test "${with_font75dpidir+set}" = set; then
28688   withval=$with_font75dpidir; FONT75DPIDIR="${withval}"
28689 else
28690   FONT75DPIDIR='${FONTROOTDIR}/75dpi'
28694         { echo "$as_me:$LINENO: result: ${FONT75DPIDIR}" >&5
28695 echo "${ECHO_T}${FONT75DPIDIR}" >&6; }
28700         { echo "$as_me:$LINENO: checking for directory for 100dpi files" >&5
28701 echo $ECHO_N "checking for directory for 100dpi files... $ECHO_C" >&6; }
28703 # Check whether --with-font100dpidir was given.
28704 if test "${with_font100dpidir+set}" = set; then
28705   withval=$with_font100dpidir; FONT100DPIDIR="${withval}"
28706 else
28707   FONT100DPIDIR='${FONTROOTDIR}/100dpi'
28711         { echo "$as_me:$LINENO: result: ${FONT100DPIDIR}" >&5
28712 echo "${ECHO_T}${FONT100DPIDIR}" >&6; }
28715 DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/"
28716 if test "$cross_compiling" != yes; then
28717         as_ac_File=`echo "ac_cv_file_${sysconfdir}/X11/fontpath.d" | $as_tr_sh`
28718 { echo "$as_me:$LINENO: checking for ${sysconfdir}/X11/fontpath.d" >&5
28719 echo $ECHO_N "checking for ${sysconfdir}/X11/fontpath.d... $ECHO_C" >&6; }
28720 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
28721   echo $ECHO_N "(cached) $ECHO_C" >&6
28722 else
28723   test "$cross_compiling" = yes &&
28724   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28725 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28726    { (exit 1); exit 1; }; }
28727 if test -r "${sysconfdir}/X11/fontpath.d"; then
28728   eval "$as_ac_File=yes"
28729 else
28730   eval "$as_ac_File=no"
28733 ac_res=`eval echo '${'$as_ac_File'}'`
28734                { echo "$as_me:$LINENO: result: $ac_res" >&5
28735 echo "${ECHO_T}$ac_res" >&6; }
28736 if test `eval echo '${'$as_ac_File'}'` = yes; then
28737   DEFAULT_FONT_PATH='catalogue:${sysconfdir}/X11/fontpath.d'
28738 else
28739   case $host_os in
28740                         darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;;
28741                 esac
28746 # Check whether --with-default-font-path was given.
28747 if test "${with_default_font_path+set}" = set; then
28748   withval=$with_default_font_path;  FONTPATH="$withval"
28749 else
28750    FONTPATH="${DEFAULT_FONT_PATH}"
28754 { echo "$as_me:$LINENO: checking for default font path" >&5
28755 echo $ECHO_N "checking for default font path... $ECHO_C" >&6; }
28756 { echo "$as_me:$LINENO: result: $FONTPATH" >&5
28757 echo "${ECHO_T}$FONTPATH" >&6; }
28760 # Check whether --with-xkb-path was given.
28761 if test "${with_xkb_path+set}" = set; then
28762   withval=$with_xkb_path;  XKBPATH="$withval"
28763 else
28764    XKBPATH="${datadir}/X11/xkb"
28768 # Check whether --with-xkb-output was given.
28769 if test "${with_xkb_output+set}" = set; then
28770   withval=$with_xkb_output;  XKBOUTPUT="$withval"
28771 else
28772    XKBOUTPUT="compiled"
28776 # Check whether --with-default-xkb-rules was given.
28777 if test "${with_default_xkb_rules+set}" = set; then
28778   withval=$with_default_xkb_rules;  XKB_DFLT_RULES="$withval"
28779 else
28780    XKB_DFLT_RULES=""
28784 # Check whether --with-default-xkb-model was given.
28785 if test "${with_default_xkb_model+set}" = set; then
28786   withval=$with_default_xkb_model;  XKB_DFLT_MODEL="$withval"
28787 else
28788    XKB_DFLT_MODEL="pc105"
28792 # Check whether --with-default-xkb-layout was given.
28793 if test "${with_default_xkb_layout+set}" = set; then
28794   withval=$with_default_xkb_layout;  XKB_DFLT_LAYOUT="$withval"
28795 else
28796    XKB_DFLT_LAYOUT="us"
28800 # Check whether --with-default-xkb-variant was given.
28801 if test "${with_default_xkb_variant+set}" = set; then
28802   withval=$with_default_xkb_variant;  XKB_DFLT_VARIANT="$withval"
28803 else
28804    XKB_DFLT_VARIANT=""
28808 # Check whether --with-default-xkb-options was given.
28809 if test "${with_default_xkb_options+set}" = set; then
28810   withval=$with_default_xkb_options;  XKB_DFLT_OPTIONS="$withval"
28811 else
28812    XKB_DFLT_OPTIONS=""
28816 # Check whether --with-serverconfig-path was given.
28817 if test "${with_serverconfig_path+set}" = set; then
28818   withval=$with_serverconfig_path;  SERVERCONFIG="$withval"
28819 else
28820    SERVERCONFIG="${libdir}/xorg"
28824 # Check whether --with-apple-applications-dir was given.
28825 if test "${with_apple_applications_dir+set}" = set; then
28826   withval=$with_apple_applications_dir;  APPLE_APPLICATIONS_DIR="${withval}"
28827 else
28828    APPLE_APPLICATIONS_DIR="/Applications/Utilities"
28833 # Check whether --with-apple-application-name was given.
28834 if test "${with_apple_application_name+set}" = set; then
28835   withval=$with_apple_application_name;  APPLE_APPLICATION_NAME="${withval}"
28836 else
28837    APPLE_APPLICATION_NAME="X11"
28842 # Check whether --with-launchd-id-prefix was given.
28843 if test "${with_launchd_id_prefix+set}" = set; then
28844   withval=$with_launchd_id_prefix;  BUNDLE_ID_PREFIX="${withval}"
28845 else
28846    BUNDLE_ID_PREFIX="org.x"
28850 # Check whether --with-bundle-id-prefix was given.
28851 if test "${with_bundle_id_prefix+set}" = set; then
28852   withval=$with_bundle_id_prefix;  BUNDLE_ID_PREFIX="${withval}"
28857 cat >>confdefs.h <<_ACEOF
28858 #define BUNDLE_ID_PREFIX "$BUNDLE_ID_PREFIX"
28859 _ACEOF
28861 # Check whether --enable-sparkle was given.
28862 if test "${enable_sparkle+set}" = set; then
28863   enableval=$enable_sparkle;  XQUARTZ_SPARKLE="${enableval}"
28864 else
28865    XQUARTZ_SPARKLE="no"
28869 # Check whether --enable-install-libxf86config was given.
28870 if test "${enable_install_libxf86config+set}" = set; then
28871   enableval=$enable_install_libxf86config; INSTALL_LIBXF86CONFIG=$enableval
28872 else
28873   INSTALL_LIBXF86CONFIG=no
28876 # Check whether --enable-visibility was given.
28877 if test "${enable_visibility+set}" = set; then
28878   enableval=$enable_visibility; SYMBOL_VISIBILITY=$enableval
28879 else
28880   SYMBOL_VISIBILITY=auto
28883 # Check whether --enable-pc98 was given.
28884 if test "${enable_pc98+set}" = set; then
28885   enableval=$enable_pc98; SUPPORT_PC98=$enableval
28886 else
28887   SUPPORT_PC98=auto
28891 # Check whether --enable-aiglx was given.
28892 if test "${enable_aiglx+set}" = set; then
28893   enableval=$enable_aiglx; AIGLX=$enableval
28894 else
28895   AIGLX=yes
28900     { echo "$as_me:$LINENO: checking for thread local storage (TLS) support" >&5
28901 echo $ECHO_N "checking for thread local storage (TLS) support... $ECHO_C" >&6; }
28902     if test "${ac_cv_tls+set}" = set; then
28903   echo $ECHO_N "(cached) $ECHO_C" >&6
28904 else
28906         ac_cv_tls=none
28907         keywords="__thread __declspec(thread)"
28908         for kw in $keywords ; do
28909             cat >conftest.$ac_ext <<_ACEOF
28910 /* confdefs.h.  */
28911 _ACEOF
28912 cat confdefs.h >>conftest.$ac_ext
28913 cat >>conftest.$ac_ext <<_ACEOF
28914 /* end confdefs.h.  */
28915 int $kw test;
28916 int
28917 main ()
28920   ;
28921   return 0;
28923 _ACEOF
28924 rm -f conftest.$ac_objext
28925 if { (ac_try="$ac_compile"
28926 case "(($ac_try" in
28927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28928   *) ac_try_echo=$ac_try;;
28929 esac
28930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28931   (eval "$ac_compile") 2>conftest.er1
28932   ac_status=$?
28933   grep -v '^ *+' conftest.er1 >conftest.err
28934   rm -f conftest.er1
28935   cat conftest.err >&5
28936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937   (exit $ac_status); } && {
28938          test -z "$ac_c_werror_flag" ||
28939          test ! -s conftest.err
28940        } && test -s conftest.$ac_objext; then
28941   ac_cv_tls=$kw
28942 else
28943   echo "$as_me: failed program was:" >&5
28944 sed 's/^/| /' conftest.$ac_ext >&5
28949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28950         done
28954     { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
28955 echo "${ECHO_T}$ac_cv_tls" >&6; }
28957     if test "$ac_cv_tls" != "none"; then
28958         { echo "$as_me:$LINENO: checking for tls_model attribute support" >&5
28959 echo $ECHO_N "checking for tls_model attribute support... $ECHO_C" >&6; }
28960         if test "${ac_cv_tls_model+set}" = set; then
28961   echo $ECHO_N "(cached) $ECHO_C" >&6
28962 else
28964             save_CFLAGS="$CFLAGS"
28965             CFLAGS="$CFLAGS $STRICT_CFLAGS"
28966             cat >conftest.$ac_ext <<_ACEOF
28967 /* confdefs.h.  */
28968 _ACEOF
28969 cat confdefs.h >>conftest.$ac_ext
28970 cat >>conftest.$ac_ext <<_ACEOF
28971 /* end confdefs.h.  */
28972 int $ac_cv_tls __attribute__((tls_model("initial-exec"))) test;
28973 int
28974 main ()
28977   ;
28978   return 0;
28980 _ACEOF
28981 rm -f conftest.$ac_objext
28982 if { (ac_try="$ac_compile"
28983 case "(($ac_try" in
28984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28985   *) ac_try_echo=$ac_try;;
28986 esac
28987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28988   (eval "$ac_compile") 2>conftest.er1
28989   ac_status=$?
28990   grep -v '^ *+' conftest.er1 >conftest.err
28991   rm -f conftest.er1
28992   cat conftest.err >&5
28993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28994   (exit $ac_status); } && {
28995          test -z "$ac_c_werror_flag" ||
28996          test ! -s conftest.err
28997        } && test -s conftest.$ac_objext; then
28998   ac_cv_tls_model=yes
28999 else
29000   echo "$as_me: failed program was:" >&5
29001 sed 's/^/| /' conftest.$ac_ext >&5
29003         ac_cv_tls_model=no
29006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29007             CFLAGS="$save_CFLAGS"
29011         { echo "$as_me:$LINENO: result: $ac_cv_tls_model" >&5
29012 echo "${ECHO_T}$ac_cv_tls_model" >&6; }
29014         if test "x$ac_cv_tls_model" = "xyes" ; then
29015             xorg_tls=$ac_cv_tls' __attribute__((tls_model("initial-exec")))'
29016         else
29017             xorg_tls=$ac_cv_tls
29018         fi
29021 cat >>confdefs.h <<_ACEOF
29022 #define TLS $xorg_tls
29023 _ACEOF
29025     fi
29027 # Check whether --enable-glx-tls was given.
29028 if test "${enable_glx_tls+set}" = set; then
29029   enableval=$enable_glx_tls; GLX_USE_TLS=$enableval
29030                                  if test "x$GLX_USE_TLS" = "xyes" && test "${ac_cv_tls}" = "none" ; then
29031                                    { { echo "$as_me:$LINENO: error: GLX with TLS support requested, but the compiler does not support it." >&5
29032 echo "$as_me: error: GLX with TLS support requested, but the compiler does not support it." >&2;}
29033    { (exit 1); exit 1; }; }
29034                                  fi
29035 else
29036   GLX_USE_TLS=no
29037                                  if test "${ac_cv_tls}" != "none" ; then
29038                                    GLX_USE_TLS=yes
29039                                  fi
29042 GLX_TLS=${GLX_USE_TLS}
29045 # Check whether --with-khronos-spec-dir was given.
29046 if test "${with_khronos_spec_dir+set}" = set; then
29047   withval=$with_khronos_spec_dir; KHRONOS_SPEC_DIR="${withval}"
29048 else
29049   KHRONOS_SPEC_DIR=auto
29053 # Check whether --enable-registry was given.
29054 if test "${enable_registry+set}" = set; then
29055   enableval=$enable_registry; XREGISTRY=$enableval
29056 else
29057   XREGISTRY=yes
29060 # Check whether --enable-composite was given.
29061 if test "${enable_composite+set}" = set; then
29062   enableval=$enable_composite; COMPOSITE=$enableval
29063 else
29064   COMPOSITE=yes
29067 # Check whether --enable-mitshm was given.
29068 if test "${enable_mitshm+set}" = set; then
29069   enableval=$enable_mitshm; MITSHM=$enableval
29070 else
29071   MITSHM=yes
29074 # Check whether --enable-xres was given.
29075 if test "${enable_xres+set}" = set; then
29076   enableval=$enable_xres; RES=$enableval
29077 else
29078   RES=yes
29081 # Check whether --enable-record was given.
29082 if test "${enable_record+set}" = set; then
29083   enableval=$enable_record; RECORD=$enableval
29084 else
29085   RECORD=yes
29088 # Check whether --enable-xv was given.
29089 if test "${enable_xv+set}" = set; then
29090   enableval=$enable_xv; XV=$enableval
29091 else
29092   XV=yes
29095 # Check whether --enable-xvmc was given.
29096 if test "${enable_xvmc+set}" = set; then
29097   enableval=$enable_xvmc; XVMC=$enableval
29098 else
29099   XVMC=yes
29102 # Check whether --enable-dga was given.
29103 if test "${enable_dga+set}" = set; then
29104   enableval=$enable_dga; DGA=$enableval
29105 else
29106   DGA=auto
29109 # Check whether --enable-screensaver was given.
29110 if test "${enable_screensaver+set}" = set; then
29111   enableval=$enable_screensaver; SCREENSAVER=$enableval
29112 else
29113   SCREENSAVER=yes
29116 # Check whether --enable-xdmcp was given.
29117 if test "${enable_xdmcp+set}" = set; then
29118   enableval=$enable_xdmcp; XDMCP=$enableval
29119 else
29120   XDMCP=auto
29123 # Check whether --enable-xdm-auth-1 was given.
29124 if test "${enable_xdm_auth_1+set}" = set; then
29125   enableval=$enable_xdm_auth_1; XDMAUTH=$enableval
29126 else
29127   XDMAUTH=auto
29130 # Check whether --enable-glx was given.
29131 if test "${enable_glx+set}" = set; then
29132   enableval=$enable_glx; GLX=$enableval
29133 else
29134   GLX=yes
29137 # Check whether --enable-dri was given.
29138 if test "${enable_dri+set}" = set; then
29139   enableval=$enable_dri; DRI=$enableval
29142 # Check whether --enable-dri2 was given.
29143 if test "${enable_dri2+set}" = set; then
29144   enableval=$enable_dri2; DRI2=$enableval
29145 else
29146   DRI2=auto
29149 # Check whether --enable-xinerama was given.
29150 if test "${enable_xinerama+set}" = set; then
29151   enableval=$enable_xinerama; XINERAMA=$enableval
29152 else
29153   XINERAMA=yes
29156 # Check whether --enable-xf86vidmode was given.
29157 if test "${enable_xf86vidmode+set}" = set; then
29158   enableval=$enable_xf86vidmode; XF86VIDMODE=$enableval
29159 else
29160   XF86VIDMODE=auto
29163 # Check whether --enable-xace was given.
29164 if test "${enable_xace+set}" = set; then
29165   enableval=$enable_xace; XACE=$enableval
29166 else
29167   XACE=yes
29170 # Check whether --enable-xselinux was given.
29171 if test "${enable_xselinux+set}" = set; then
29172   enableval=$enable_xselinux; XSELINUX=$enableval
29173 else
29174   XSELINUX=no
29177 # Check whether --enable-xcsecurity was given.
29178 if test "${enable_xcsecurity+set}" = set; then
29179   enableval=$enable_xcsecurity; XCSECURITY=$enableval
29180 else
29181   XCSECURITY=no
29184 # Check whether --enable-tslib was given.
29185 if test "${enable_tslib+set}" = set; then
29186   enableval=$enable_tslib; TSLIB=$enableval
29187 else
29188   TSLIB=no
29191 # Check whether --enable-dbe was given.
29192 if test "${enable_dbe+set}" = set; then
29193   enableval=$enable_dbe; DBE=$enableval
29194 else
29195   DBE=yes
29198 # Check whether --enable-xf86bigfont was given.
29199 if test "${enable_xf86bigfont+set}" = set; then
29200   enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
29201 else
29202   XF86BIGFONT=no
29205 # Check whether --enable-dpms was given.
29206 if test "${enable_dpms+set}" = set; then
29207   enableval=$enable_dpms; DPMSExtension=$enableval
29208 else
29209   DPMSExtension=yes
29212 # Check whether --enable-config-udev was given.
29213 if test "${enable_config_udev+set}" = set; then
29214   enableval=$enable_config_udev; CONFIG_UDEV=$enableval
29215 else
29216   CONFIG_UDEV=auto
29219 # Check whether --enable-config-dbus was given.
29220 if test "${enable_config_dbus+set}" = set; then
29221   enableval=$enable_config_dbus; CONFIG_DBUS_API=$enableval
29222 else
29223   CONFIG_DBUS_API=no
29226 # Check whether --enable-config-hal was given.
29227 if test "${enable_config_hal+set}" = set; then
29228   enableval=$enable_config_hal; CONFIG_HAL=$enableval
29229 else
29230   CONFIG_HAL=auto
29233 # Check whether --enable-xfree86-utils was given.
29234 if test "${enable_xfree86_utils+set}" = set; then
29235   enableval=$enable_xfree86_utils; XF86UTILS=$enableval
29236 else
29237   XF86UTILS=yes
29240 # Check whether --enable-xaa was given.
29241 if test "${enable_xaa+set}" = set; then
29242   enableval=$enable_xaa; XAA=$enableval
29243 else
29244   XAA=yes
29247 # Check whether --enable-vgahw was given.
29248 if test "${enable_vgahw+set}" = set; then
29249   enableval=$enable_vgahw; VGAHW=$enableval
29250 else
29251   VGAHW=yes
29254 # Check whether --enable-vbe was given.
29255 if test "${enable_vbe+set}" = set; then
29256   enableval=$enable_vbe; VBE=$enableval
29257 else
29258   VBE=yes
29261 # Check whether --enable-int10-module was given.
29262 if test "${enable_int10_module+set}" = set; then
29263   enableval=$enable_int10_module; INT10MODULE=$enableval
29264 else
29265   INT10MODULE=yes
29268 # Check whether --enable-windowswm was given.
29269 if test "${enable_windowswm+set}" = set; then
29270   enableval=$enable_windowswm; WINDOWSWM=$enableval
29271 else
29272   WINDOWSWM=no
29275 # Check whether --enable-libdrm was given.
29276 if test "${enable_libdrm+set}" = set; then
29277   enableval=$enable_libdrm; DRM=$enableval
29278 else
29279   DRM=yes
29282 # Check whether --enable-clientids was given.
29283 if test "${enable_clientids+set}" = set; then
29284   enableval=$enable_clientids; CLIENTIDS=$enableval
29285 else
29286   CLIENTIDS=yes
29290 # Check whether --enable-xorg was given.
29291 if test "${enable_xorg+set}" = set; then
29292   enableval=$enable_xorg; XORG=$enableval
29293 else
29294   XORG=auto
29297 # Check whether --enable-dmx was given.
29298 if test "${enable_dmx+set}" = set; then
29299   enableval=$enable_dmx; DMX=$enableval
29300 else
29301   DMX=auto
29304 # Check whether --enable-xvfb was given.
29305 if test "${enable_xvfb+set}" = set; then
29306   enableval=$enable_xvfb; XVFB=$enableval
29307 else
29308   XVFB=yes
29311 # Check whether --enable-xnest was given.
29312 if test "${enable_xnest+set}" = set; then
29313   enableval=$enable_xnest; XNEST=$enableval
29314 else
29315   XNEST=auto
29318 # Check whether --enable-xquartz was given.
29319 if test "${enable_xquartz+set}" = set; then
29320   enableval=$enable_xquartz; XQUARTZ=$enableval
29321 else
29322   XQUARTZ=auto
29325 # Check whether --enable-standalone-xpbproxy was given.
29326 if test "${enable_standalone_xpbproxy+set}" = set; then
29327   enableval=$enable_standalone_xpbproxy; STANDALONE_XPBPROXY=$enableval
29328 else
29329   STANDALONE_XPBPROXY=no
29332 # Check whether --enable-xwin was given.
29333 if test "${enable_xwin+set}" = set; then
29334   enableval=$enable_xwin; XWIN=$enableval
29335 else
29336   XWIN=auto
29339 # Check whether --enable-kdrive was given.
29340 if test "${enable_kdrive+set}" = set; then
29341   enableval=$enable_kdrive; KDRIVE=$enableval
29342 else
29343   KDRIVE=no
29346 # Check whether --enable-xephyr was given.
29347 if test "${enable_xephyr+set}" = set; then
29348   enableval=$enable_xephyr; XEPHYR=$enableval
29349 else
29350   XEPHYR=auto
29353 # Check whether --enable-xfake was given.
29354 if test "${enable_xfake+set}" = set; then
29355   enableval=$enable_xfake; XFAKE=$enableval
29356 else
29357   XFAKE=auto
29360 # Check whether --enable-xfbdev was given.
29361 if test "${enable_xfbdev+set}" = set; then
29362   enableval=$enable_xfbdev; XFBDEV=$enableval
29363 else
29364   XFBDEV=auto
29367 # Check whether --enable-kdrive-kbd was given.
29368 if test "${enable_kdrive_kbd+set}" = set; then
29369   enableval=$enable_kdrive_kbd; KDRIVE_KBD=$enableval
29370 else
29371   KDRIVE_KBD=auto
29374 # Check whether --enable-kdrive-mouse was given.
29375 if test "${enable_kdrive_mouse+set}" = set; then
29376   enableval=$enable_kdrive_mouse; KDRIVE_MOUSE=$enableval
29377 else
29378   KDRIVE_MOUSE=auto
29381 # Check whether --enable-kdrive-evdev was given.
29382 if test "${enable_kdrive_evdev+set}" = set; then
29383   enableval=$enable_kdrive_evdev; KDRIVE_EVDEV=$enableval
29384 else
29385   KDRIVE_EVDEV=auto
29390 # Check whether --enable-install-setuid was given.
29391 if test "${enable_install_setuid+set}" = set; then
29392   enableval=$enable_install_setuid; SETUID=$enableval
29393 else
29394   SETUID=auto
29397 { echo "$as_me:$LINENO: checking to see if we can install the Xorg server as root" >&5
29398 echo $ECHO_N "checking to see if we can install the Xorg server as root... $ECHO_C" >&6; }
29399 if test "x$SETUID" = "xauto" ; then
29400         case $host_os in
29401             cygwin*)            SETUID="no"  ;;
29402             darwin*)            SETUID="no"  ;;
29403             *)
29404                 case $host_cpu in
29405                     sparc)      SETUID="no"  ;;
29406                     *)          SETUID="yes" ;;
29407                 esac
29408         esac
29409         if test "x$SETUID" = xyes; then
29410                 touch testfile
29411                 chown root testfile > /dev/null 2>&1 || SETUID="no"
29412                 rm -f testfile
29413         fi
29415 { echo "$as_me:$LINENO: result: $SETUID" >&5
29416 echo "${ECHO_T}$SETUID" >&6; }
29417  if test "x$SETUID" = "xyes"; then
29418   INSTALL_SETUID_TRUE=
29419   INSTALL_SETUID_FALSE='#'
29420 else
29421   INSTALL_SETUID_TRUE='#'
29422   INSTALL_SETUID_FALSE=
29428 # Transport selection macro from xtrans.m4
29429 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29430 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29431 if test "${ac_cv_type_signal+set}" = set; then
29432   echo $ECHO_N "(cached) $ECHO_C" >&6
29433 else
29434   cat >conftest.$ac_ext <<_ACEOF
29435 /* confdefs.h.  */
29436 _ACEOF
29437 cat confdefs.h >>conftest.$ac_ext
29438 cat >>conftest.$ac_ext <<_ACEOF
29439 /* end confdefs.h.  */
29440 #include <sys/types.h>
29441 #include <signal.h>
29443 int
29444 main ()
29446 return *(signal (0, 0)) (0) == 1;
29447   ;
29448   return 0;
29450 _ACEOF
29451 rm -f conftest.$ac_objext
29452 if { (ac_try="$ac_compile"
29453 case "(($ac_try" in
29454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29455   *) ac_try_echo=$ac_try;;
29456 esac
29457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29458   (eval "$ac_compile") 2>conftest.er1
29459   ac_status=$?
29460   grep -v '^ *+' conftest.er1 >conftest.err
29461   rm -f conftest.er1
29462   cat conftest.err >&5
29463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464   (exit $ac_status); } && {
29465          test -z "$ac_c_werror_flag" ||
29466          test ! -s conftest.err
29467        } && test -s conftest.$ac_objext; then
29468   ac_cv_type_signal=int
29469 else
29470   echo "$as_me: failed program was:" >&5
29471 sed 's/^/| /' conftest.$ac_ext >&5
29473         ac_cv_type_signal=void
29476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29478 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29479 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29481 cat >>confdefs.h <<_ACEOF
29482 #define RETSIGTYPE $ac_cv_type_signal
29483 _ACEOF
29489  case $host_os in
29490         mingw*) unixdef="no"   ;;
29491         *)      unixdef="yes"  ;;
29492  esac
29493  # Check whether --enable-unix-transport was given.
29494 if test "${enable_unix_transport+set}" = set; then
29495   enableval=$enable_unix_transport; UNIXCONN=$enableval
29496 else
29497   UNIXCONN=$unixdef
29500  { echo "$as_me:$LINENO: checking if Xtrans should support UNIX socket connections" >&5
29501 echo $ECHO_N "checking if Xtrans should support UNIX socket connections... $ECHO_C" >&6; }
29502  if test "$UNIXCONN" = "yes"; then
29504 cat >>confdefs.h <<\_ACEOF
29505 #define UNIXCONN 1
29506 _ACEOF
29508  fi
29509  { echo "$as_me:$LINENO: result: $UNIXCONN" >&5
29510 echo "${ECHO_T}$UNIXCONN" >&6; }
29511  # Check whether --enable-tcp-transport was given.
29512 if test "${enable_tcp_transport+set}" = set; then
29513   enableval=$enable_tcp_transport; TCPCONN=$enableval
29514 else
29515   TCPCONN=yes
29518  { echo "$as_me:$LINENO: checking if Xtrans should support TCP socket connections" >&5
29519 echo $ECHO_N "checking if Xtrans should support TCP socket connections... $ECHO_C" >&6; }
29520  { echo "$as_me:$LINENO: result: $TCPCONN" >&5
29521 echo "${ECHO_T}$TCPCONN" >&6; }
29522  if test "$TCPCONN" = "yes"; then
29524 cat >>confdefs.h <<\_ACEOF
29525 #define TCPCONN 1
29526 _ACEOF
29529  # SVR4 hides these in libraries other than libc
29530  { echo "$as_me:$LINENO: checking for library containing socket" >&5
29531 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
29532 if test "${ac_cv_search_socket+set}" = set; then
29533   echo $ECHO_N "(cached) $ECHO_C" >&6
29534 else
29535   ac_func_search_save_LIBS=$LIBS
29536 cat >conftest.$ac_ext <<_ACEOF
29537 /* confdefs.h.  */
29538 _ACEOF
29539 cat confdefs.h >>conftest.$ac_ext
29540 cat >>conftest.$ac_ext <<_ACEOF
29541 /* end confdefs.h.  */
29543 /* Override any GCC internal prototype to avoid an error.
29544    Use char because int might match the return type of a GCC
29545    builtin and then its argument prototype would still apply.  */
29546 #ifdef __cplusplus
29547 extern "C"
29548 #endif
29549 char socket ();
29550 int
29551 main ()
29553 return socket ();
29554   ;
29555   return 0;
29557 _ACEOF
29558 for ac_lib in '' socket; do
29559   if test -z "$ac_lib"; then
29560     ac_res="none required"
29561   else
29562     ac_res=-l$ac_lib
29563     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29564   fi
29565   rm -f conftest.$ac_objext conftest$ac_exeext
29566 if { (ac_try="$ac_link"
29567 case "(($ac_try" in
29568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29569   *) ac_try_echo=$ac_try;;
29570 esac
29571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29572   (eval "$ac_link") 2>conftest.er1
29573   ac_status=$?
29574   grep -v '^ *+' conftest.er1 >conftest.err
29575   rm -f conftest.er1
29576   cat conftest.err >&5
29577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29578   (exit $ac_status); } && {
29579          test -z "$ac_c_werror_flag" ||
29580          test ! -s conftest.err
29581        } && test -s conftest$ac_exeext &&
29582        $as_test_x conftest$ac_exeext; then
29583   ac_cv_search_socket=$ac_res
29584 else
29585   echo "$as_me: failed program was:" >&5
29586 sed 's/^/| /' conftest.$ac_ext >&5
29591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29592       conftest$ac_exeext
29593   if test "${ac_cv_search_socket+set}" = set; then
29594   break
29596 done
29597 if test "${ac_cv_search_socket+set}" = set; then
29598   :
29599 else
29600   ac_cv_search_socket=no
29602 rm conftest.$ac_ext
29603 LIBS=$ac_func_search_save_LIBS
29605 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
29606 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
29607 ac_res=$ac_cv_search_socket
29608 if test "$ac_res" != no; then
29609   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29613  { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
29614 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
29615 if test "${ac_cv_search_gethostbyname+set}" = set; then
29616   echo $ECHO_N "(cached) $ECHO_C" >&6
29617 else
29618   ac_func_search_save_LIBS=$LIBS
29619 cat >conftest.$ac_ext <<_ACEOF
29620 /* confdefs.h.  */
29621 _ACEOF
29622 cat confdefs.h >>conftest.$ac_ext
29623 cat >>conftest.$ac_ext <<_ACEOF
29624 /* end confdefs.h.  */
29626 /* Override any GCC internal prototype to avoid an error.
29627    Use char because int might match the return type of a GCC
29628    builtin and then its argument prototype would still apply.  */
29629 #ifdef __cplusplus
29630 extern "C"
29631 #endif
29632 char gethostbyname ();
29633 int
29634 main ()
29636 return gethostbyname ();
29637   ;
29638   return 0;
29640 _ACEOF
29641 for ac_lib in '' nsl; do
29642   if test -z "$ac_lib"; then
29643     ac_res="none required"
29644   else
29645     ac_res=-l$ac_lib
29646     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29647   fi
29648   rm -f conftest.$ac_objext conftest$ac_exeext
29649 if { (ac_try="$ac_link"
29650 case "(($ac_try" in
29651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29652   *) ac_try_echo=$ac_try;;
29653 esac
29654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29655   (eval "$ac_link") 2>conftest.er1
29656   ac_status=$?
29657   grep -v '^ *+' conftest.er1 >conftest.err
29658   rm -f conftest.er1
29659   cat conftest.err >&5
29660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29661   (exit $ac_status); } && {
29662          test -z "$ac_c_werror_flag" ||
29663          test ! -s conftest.err
29664        } && test -s conftest$ac_exeext &&
29665        $as_test_x conftest$ac_exeext; then
29666   ac_cv_search_gethostbyname=$ac_res
29667 else
29668   echo "$as_me: failed program was:" >&5
29669 sed 's/^/| /' conftest.$ac_ext >&5
29674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29675       conftest$ac_exeext
29676   if test "${ac_cv_search_gethostbyname+set}" = set; then
29677   break
29679 done
29680 if test "${ac_cv_search_gethostbyname+set}" = set; then
29681   :
29682 else
29683   ac_cv_search_gethostbyname=no
29685 rm conftest.$ac_ext
29686 LIBS=$ac_func_search_save_LIBS
29688 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
29689 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
29690 ac_res=$ac_cv_search_gethostbyname
29691 if test "$ac_res" != no; then
29692   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29696  if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
29698 { echo "$as_me:$LINENO: checking for main in -lws2_32" >&5
29699 echo $ECHO_N "checking for main in -lws2_32... $ECHO_C" >&6; }
29700 if test "${ac_cv_lib_ws2_32_main+set}" = set; then
29701   echo $ECHO_N "(cached) $ECHO_C" >&6
29702 else
29703   ac_check_lib_save_LIBS=$LIBS
29704 LIBS="-lws2_32  $LIBS"
29705 cat >conftest.$ac_ext <<_ACEOF
29706 /* confdefs.h.  */
29707 _ACEOF
29708 cat confdefs.h >>conftest.$ac_ext
29709 cat >>conftest.$ac_ext <<_ACEOF
29710 /* end confdefs.h.  */
29713 int
29714 main ()
29716 return main ();
29717   ;
29718   return 0;
29720 _ACEOF
29721 rm -f conftest.$ac_objext conftest$ac_exeext
29722 if { (ac_try="$ac_link"
29723 case "(($ac_try" in
29724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29725   *) ac_try_echo=$ac_try;;
29726 esac
29727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29728   (eval "$ac_link") 2>conftest.er1
29729   ac_status=$?
29730   grep -v '^ *+' conftest.er1 >conftest.err
29731   rm -f conftest.er1
29732   cat conftest.err >&5
29733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29734   (exit $ac_status); } && {
29735          test -z "$ac_c_werror_flag" ||
29736          test ! -s conftest.err
29737        } && test -s conftest$ac_exeext &&
29738        $as_test_x conftest$ac_exeext; then
29739   ac_cv_lib_ws2_32_main=yes
29740 else
29741   echo "$as_me: failed program was:" >&5
29742 sed 's/^/| /' conftest.$ac_ext >&5
29744         ac_cv_lib_ws2_32_main=no
29747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29748       conftest$ac_exeext conftest.$ac_ext
29749 LIBS=$ac_check_lib_save_LIBS
29751 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_main" >&5
29752 echo "${ECHO_T}$ac_cv_lib_ws2_32_main" >&6; }
29753 if test $ac_cv_lib_ws2_32_main = yes; then
29754   cat >>confdefs.h <<_ACEOF
29755 #define HAVE_LIBWS2_32 1
29756 _ACEOF
29758   LIBS="-lws2_32 $LIBS"
29761 ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
29763  fi
29765  # Needs to come after above checks for libsocket & libnsl for SVR4 systems
29766  # Check whether --enable-ipv6 was given.
29767 if test "${enable_ipv6+set}" = set; then
29768   enableval=$enable_ipv6; IPV6CONN=$enableval
29769 else
29770   { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
29771 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
29772 if test "${ac_cv_func_getaddrinfo+set}" = set; then
29773   echo $ECHO_N "(cached) $ECHO_C" >&6
29774 else
29775   cat >conftest.$ac_ext <<_ACEOF
29776 /* confdefs.h.  */
29777 _ACEOF
29778 cat confdefs.h >>conftest.$ac_ext
29779 cat >>conftest.$ac_ext <<_ACEOF
29780 /* end confdefs.h.  */
29781 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
29782    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29783 #define getaddrinfo innocuous_getaddrinfo
29785 /* System header to define __stub macros and hopefully few prototypes,
29786     which can conflict with char getaddrinfo (); below.
29787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29788     <limits.h> exists even on freestanding compilers.  */
29790 #ifdef __STDC__
29791 # include <limits.h>
29792 #else
29793 # include <assert.h>
29794 #endif
29796 #undef getaddrinfo
29798 /* Override any GCC internal prototype to avoid an error.
29799    Use char because int might match the return type of a GCC
29800    builtin and then its argument prototype would still apply.  */
29801 #ifdef __cplusplus
29802 extern "C"
29803 #endif
29804 char getaddrinfo ();
29805 /* The GNU C library defines this for functions which it implements
29806     to always fail with ENOSYS.  Some functions are actually named
29807     something starting with __ and the normal name is an alias.  */
29808 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
29809 choke me
29810 #endif
29812 int
29813 main ()
29815 return getaddrinfo ();
29816   ;
29817   return 0;
29819 _ACEOF
29820 rm -f conftest.$ac_objext conftest$ac_exeext
29821 if { (ac_try="$ac_link"
29822 case "(($ac_try" in
29823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29824   *) ac_try_echo=$ac_try;;
29825 esac
29826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29827   (eval "$ac_link") 2>conftest.er1
29828   ac_status=$?
29829   grep -v '^ *+' conftest.er1 >conftest.err
29830   rm -f conftest.er1
29831   cat conftest.err >&5
29832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29833   (exit $ac_status); } && {
29834          test -z "$ac_c_werror_flag" ||
29835          test ! -s conftest.err
29836        } && test -s conftest$ac_exeext &&
29837        $as_test_x conftest$ac_exeext; then
29838   ac_cv_func_getaddrinfo=yes
29839 else
29840   echo "$as_me: failed program was:" >&5
29841 sed 's/^/| /' conftest.$ac_ext >&5
29843         ac_cv_func_getaddrinfo=no
29846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29847       conftest$ac_exeext conftest.$ac_ext
29849 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
29850 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
29851 if test $ac_cv_func_getaddrinfo = yes; then
29852   IPV6CONN=yes
29853 else
29854   IPV6CONN=no
29859  { echo "$as_me:$LINENO: checking if IPv6 support should be built" >&5
29860 echo $ECHO_N "checking if IPv6 support should be built... $ECHO_C" >&6; }
29861  if test "$IPV6CONN" = "yes"; then
29863 cat >>confdefs.h <<\_ACEOF
29864 #define IPv6 1
29865 _ACEOF
29867  fi
29868  { echo "$as_me:$LINENO: result: $IPV6CONN" >&5
29869 echo "${ECHO_T}$IPV6CONN" >&6; }
29871  # 4.3BSD-Reno added a new member to struct sockaddr_in
29872  { echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
29873 echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6; }
29874 if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
29875   echo $ECHO_N "(cached) $ECHO_C" >&6
29876 else
29877   cat >conftest.$ac_ext <<_ACEOF
29878 /* confdefs.h.  */
29879 _ACEOF
29880 cat confdefs.h >>conftest.$ac_ext
29881 cat >>conftest.$ac_ext <<_ACEOF
29882 /* end confdefs.h.  */
29884 #include <sys/types.h>
29885 #include <sys/socket.h>
29886 #include <netinet/in.h>
29889 int
29890 main ()
29892 static struct sockaddr_in ac_aggr;
29893 if (ac_aggr.sin_len)
29894 return 0;
29895   ;
29896   return 0;
29898 _ACEOF
29899 rm -f conftest.$ac_objext
29900 if { (ac_try="$ac_compile"
29901 case "(($ac_try" in
29902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29903   *) ac_try_echo=$ac_try;;
29904 esac
29905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29906   (eval "$ac_compile") 2>conftest.er1
29907   ac_status=$?
29908   grep -v '^ *+' conftest.er1 >conftest.err
29909   rm -f conftest.er1
29910   cat conftest.err >&5
29911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29912   (exit $ac_status); } && {
29913          test -z "$ac_c_werror_flag" ||
29914          test ! -s conftest.err
29915        } && test -s conftest.$ac_objext; then
29916   ac_cv_member_struct_sockaddr_in_sin_len=yes
29917 else
29918   echo "$as_me: failed program was:" >&5
29919 sed 's/^/| /' conftest.$ac_ext >&5
29921         cat >conftest.$ac_ext <<_ACEOF
29922 /* confdefs.h.  */
29923 _ACEOF
29924 cat confdefs.h >>conftest.$ac_ext
29925 cat >>conftest.$ac_ext <<_ACEOF
29926 /* end confdefs.h.  */
29928 #include <sys/types.h>
29929 #include <sys/socket.h>
29930 #include <netinet/in.h>
29933 int
29934 main ()
29936 static struct sockaddr_in ac_aggr;
29937 if (sizeof ac_aggr.sin_len)
29938 return 0;
29939   ;
29940   return 0;
29942 _ACEOF
29943 rm -f conftest.$ac_objext
29944 if { (ac_try="$ac_compile"
29945 case "(($ac_try" in
29946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29947   *) ac_try_echo=$ac_try;;
29948 esac
29949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29950   (eval "$ac_compile") 2>conftest.er1
29951   ac_status=$?
29952   grep -v '^ *+' conftest.er1 >conftest.err
29953   rm -f conftest.er1
29954   cat conftest.err >&5
29955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956   (exit $ac_status); } && {
29957          test -z "$ac_c_werror_flag" ||
29958          test ! -s conftest.err
29959        } && test -s conftest.$ac_objext; then
29960   ac_cv_member_struct_sockaddr_in_sin_len=yes
29961 else
29962   echo "$as_me: failed program was:" >&5
29963 sed 's/^/| /' conftest.$ac_ext >&5
29965         ac_cv_member_struct_sockaddr_in_sin_len=no
29968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29973 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
29974 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
29975 if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then
29977 cat >>confdefs.h <<\_ACEOF
29978 #define BSD44SOCKETS 1
29979 _ACEOF
29984  # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
29985  { echo "$as_me:$LINENO: checking for socklen_t" >&5
29986 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
29987 if test "${ac_cv_type_socklen_t+set}" = set; then
29988   echo $ECHO_N "(cached) $ECHO_C" >&6
29989 else
29990   cat >conftest.$ac_ext <<_ACEOF
29991 /* confdefs.h.  */
29992 _ACEOF
29993 cat confdefs.h >>conftest.$ac_ext
29994 cat >>conftest.$ac_ext <<_ACEOF
29995 /* end confdefs.h.  */
29997 $ac_includes_default
29998 #include <sys/socket.h>
30000 typedef socklen_t ac__type_new_;
30001 int
30002 main ()
30004 if ((ac__type_new_ *) 0)
30005   return 0;
30006 if (sizeof (ac__type_new_))
30007   return 0;
30008   ;
30009   return 0;
30011 _ACEOF
30012 rm -f conftest.$ac_objext
30013 if { (ac_try="$ac_compile"
30014 case "(($ac_try" in
30015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30016   *) ac_try_echo=$ac_try;;
30017 esac
30018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30019   (eval "$ac_compile") 2>conftest.er1
30020   ac_status=$?
30021   grep -v '^ *+' conftest.er1 >conftest.err
30022   rm -f conftest.er1
30023   cat conftest.err >&5
30024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30025   (exit $ac_status); } && {
30026          test -z "$ac_c_werror_flag" ||
30027          test ! -s conftest.err
30028        } && test -s conftest.$ac_objext; then
30029   ac_cv_type_socklen_t=yes
30030 else
30031   echo "$as_me: failed program was:" >&5
30032 sed 's/^/| /' conftest.$ac_ext >&5
30034         ac_cv_type_socklen_t=no
30037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30039 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
30040 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
30041 if test $ac_cv_type_socklen_t = yes; then
30043 cat >>confdefs.h <<_ACEOF
30044 #define HAVE_SOCKLEN_T 1
30045 _ACEOF
30052  fi
30053  case $host_os in
30054         solaris*|sco*|sysv4*)   localdef="yes" ;;
30055         *)                      localdef="no"  ;;
30056  esac
30057  # Check whether --enable-local-transport was given.
30058 if test "${enable_local_transport+set}" = set; then
30059   enableval=$enable_local_transport; LOCALCONN=$enableval
30060 else
30061   LOCALCONN=$localdef
30064  { echo "$as_me:$LINENO: checking if Xtrans should support os-specific local connections" >&5
30065 echo $ECHO_N "checking if Xtrans should support os-specific local connections... $ECHO_C" >&6; }
30066  { echo "$as_me:$LINENO: result: $LOCALCONN" >&5
30067 echo "${ECHO_T}$LOCALCONN" >&6; }
30068  if test "$LOCALCONN" = "yes"; then
30070 cat >>confdefs.h <<\_ACEOF
30071 #define LOCALCONN 1
30072 _ACEOF
30074  fi
30078 # Secure RPC detection macro from xtrans.m4
30080  # Check whether --enable-secure-rpc was given.
30081 if test "${enable_secure_rpc+set}" = set; then
30082   enableval=$enable_secure_rpc; SECURE_RPC=$enableval
30083 else
30084   SECURE_RPC="try"
30088  if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
30089         FOUND_SECURE_RPC="no"
30092 for ac_func in authdes_seccreate authdes_create
30094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30095 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30097 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30098   echo $ECHO_N "(cached) $ECHO_C" >&6
30099 else
30100   cat >conftest.$ac_ext <<_ACEOF
30101 /* confdefs.h.  */
30102 _ACEOF
30103 cat confdefs.h >>conftest.$ac_ext
30104 cat >>conftest.$ac_ext <<_ACEOF
30105 /* end confdefs.h.  */
30106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30107    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30108 #define $ac_func innocuous_$ac_func
30110 /* System header to define __stub macros and hopefully few prototypes,
30111     which can conflict with char $ac_func (); below.
30112     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30113     <limits.h> exists even on freestanding compilers.  */
30115 #ifdef __STDC__
30116 # include <limits.h>
30117 #else
30118 # include <assert.h>
30119 #endif
30121 #undef $ac_func
30123 /* Override any GCC internal prototype to avoid an error.
30124    Use char because int might match the return type of a GCC
30125    builtin and then its argument prototype would still apply.  */
30126 #ifdef __cplusplus
30127 extern "C"
30128 #endif
30129 char $ac_func ();
30130 /* The GNU C library defines this for functions which it implements
30131     to always fail with ENOSYS.  Some functions are actually named
30132     something starting with __ and the normal name is an alias.  */
30133 #if defined __stub_$ac_func || defined __stub___$ac_func
30134 choke me
30135 #endif
30137 int
30138 main ()
30140 return $ac_func ();
30141   ;
30142   return 0;
30144 _ACEOF
30145 rm -f conftest.$ac_objext conftest$ac_exeext
30146 if { (ac_try="$ac_link"
30147 case "(($ac_try" in
30148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30149   *) ac_try_echo=$ac_try;;
30150 esac
30151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30152   (eval "$ac_link") 2>conftest.er1
30153   ac_status=$?
30154   grep -v '^ *+' conftest.er1 >conftest.err
30155   rm -f conftest.er1
30156   cat conftest.err >&5
30157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30158   (exit $ac_status); } && {
30159          test -z "$ac_c_werror_flag" ||
30160          test ! -s conftest.err
30161        } && test -s conftest$ac_exeext &&
30162        $as_test_x conftest$ac_exeext; then
30163   eval "$as_ac_var=yes"
30164 else
30165   echo "$as_me: failed program was:" >&5
30166 sed 's/^/| /' conftest.$ac_ext >&5
30168         eval "$as_ac_var=no"
30171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30172       conftest$ac_exeext conftest.$ac_ext
30174 ac_res=`eval echo '${'$as_ac_var'}'`
30175                { echo "$as_me:$LINENO: result: $ac_res" >&5
30176 echo "${ECHO_T}$ac_res" >&6; }
30177 if test `eval echo '${'$as_ac_var'}'` = yes; then
30178   cat >>confdefs.h <<_ACEOF
30179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30180 _ACEOF
30181  FOUND_SECURE_RPC="yes"
30183 done
30185         if test "x$FOUND_SECURE_RPC" = "xno" ; then
30186                 if test "x$SECURE_RPC" = "xyes" ; then
30187         { { echo "$as_me:$LINENO: error: Secure RPC requested, but required functions not found" >&5
30188 echo "$as_me: error: Secure RPC requested, but required functions not found" >&2;}
30189    { (exit 1); exit 1; }; }
30190                 fi
30191                 SECURE_RPC="no"
30192         else
30193                                 { echo "$as_me:$LINENO: checking for library containing getsecretkey" >&5
30194 echo $ECHO_N "checking for library containing getsecretkey... $ECHO_C" >&6; }
30195 if test "${ac_cv_search_getsecretkey+set}" = set; then
30196   echo $ECHO_N "(cached) $ECHO_C" >&6
30197 else
30198   ac_func_search_save_LIBS=$LIBS
30199 cat >conftest.$ac_ext <<_ACEOF
30200 /* confdefs.h.  */
30201 _ACEOF
30202 cat confdefs.h >>conftest.$ac_ext
30203 cat >>conftest.$ac_ext <<_ACEOF
30204 /* end confdefs.h.  */
30206 /* Override any GCC internal prototype to avoid an error.
30207    Use char because int might match the return type of a GCC
30208    builtin and then its argument prototype would still apply.  */
30209 #ifdef __cplusplus
30210 extern "C"
30211 #endif
30212 char getsecretkey ();
30213 int
30214 main ()
30216 return getsecretkey ();
30217   ;
30218   return 0;
30220 _ACEOF
30221 for ac_lib in '' rpcsvc; do
30222   if test -z "$ac_lib"; then
30223     ac_res="none required"
30224   else
30225     ac_res=-l$ac_lib
30226     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30227   fi
30228   rm -f conftest.$ac_objext conftest$ac_exeext
30229 if { (ac_try="$ac_link"
30230 case "(($ac_try" in
30231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30232   *) ac_try_echo=$ac_try;;
30233 esac
30234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30235   (eval "$ac_link") 2>conftest.er1
30236   ac_status=$?
30237   grep -v '^ *+' conftest.er1 >conftest.err
30238   rm -f conftest.er1
30239   cat conftest.err >&5
30240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30241   (exit $ac_status); } && {
30242          test -z "$ac_c_werror_flag" ||
30243          test ! -s conftest.err
30244        } && test -s conftest$ac_exeext &&
30245        $as_test_x conftest$ac_exeext; then
30246   ac_cv_search_getsecretkey=$ac_res
30247 else
30248   echo "$as_me: failed program was:" >&5
30249 sed 's/^/| /' conftest.$ac_ext >&5
30254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30255       conftest$ac_exeext
30256   if test "${ac_cv_search_getsecretkey+set}" = set; then
30257   break
30259 done
30260 if test "${ac_cv_search_getsecretkey+set}" = set; then
30261   :
30262 else
30263   ac_cv_search_getsecretkey=no
30265 rm conftest.$ac_ext
30266 LIBS=$ac_func_search_save_LIBS
30268 { echo "$as_me:$LINENO: result: $ac_cv_search_getsecretkey" >&5
30269 echo "${ECHO_T}$ac_cv_search_getsecretkey" >&6; }
30270 ac_res=$ac_cv_search_getsecretkey
30271 if test "$ac_res" != no; then
30272   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30276                 SECURE_RPC="yes"
30277         fi
30278  fi
30279  { echo "$as_me:$LINENO: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
30280 echo $ECHO_N "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... $ECHO_C" >&6; }
30281  if test "x$SECURE_RPC" = "xyes" ; then
30283 cat >>confdefs.h <<\_ACEOF
30284 #define SECURE_RPC 1
30285 _ACEOF
30287  fi
30288  { echo "$as_me:$LINENO: result: $SECURE_RPC" >&5
30289 echo "${ECHO_T}$SECURE_RPC" >&6; }
30291  if test "x$SECURE_RPC" = xyes; then
30292   SECURE_RPC_TRUE=
30293   SECURE_RPC_FALSE='#'
30294 else
30295   SECURE_RPC_TRUE='#'
30296   SECURE_RPC_FALSE=
30300  if test "x$INT10" = xvm86; then
30301   INT10_VM86_TRUE=
30302   INT10_VM86_FALSE='#'
30303 else
30304   INT10_VM86_TRUE='#'
30305   INT10_VM86_FALSE=
30308  if test "x$INT10" = xx86emu; then
30309   INT10_X86EMU_TRUE=
30310   INT10_X86EMU_FALSE='#'
30311 else
30312   INT10_X86EMU_TRUE='#'
30313   INT10_X86EMU_FALSE=
30316  if test "x$INT10" = xstub; then
30317   INT10_STUB_TRUE=
30318   INT10_STUB_FALSE='#'
30319 else
30320   INT10_STUB_TRUE='#'
30321   INT10_STUB_FALSE=
30324 if test "x$INT10" = xyes; then
30327 for ac_header in sys/vm86.h sys/io.h
30329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30331   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30334   echo $ECHO_N "(cached) $ECHO_C" >&6
30336 ac_res=`eval echo '${'$as_ac_Header'}'`
30337                { echo "$as_me:$LINENO: result: $ac_res" >&5
30338 echo "${ECHO_T}$ac_res" >&6; }
30339 else
30340   # Is the header compilable?
30341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30343 cat >conftest.$ac_ext <<_ACEOF
30344 /* confdefs.h.  */
30345 _ACEOF
30346 cat confdefs.h >>conftest.$ac_ext
30347 cat >>conftest.$ac_ext <<_ACEOF
30348 /* end confdefs.h.  */
30349 $ac_includes_default
30350 #include <$ac_header>
30351 _ACEOF
30352 rm -f conftest.$ac_objext
30353 if { (ac_try="$ac_compile"
30354 case "(($ac_try" in
30355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30356   *) ac_try_echo=$ac_try;;
30357 esac
30358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30359   (eval "$ac_compile") 2>conftest.er1
30360   ac_status=$?
30361   grep -v '^ *+' conftest.er1 >conftest.err
30362   rm -f conftest.er1
30363   cat conftest.err >&5
30364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30365   (exit $ac_status); } && {
30366          test -z "$ac_c_werror_flag" ||
30367          test ! -s conftest.err
30368        } && test -s conftest.$ac_objext; then
30369   ac_header_compiler=yes
30370 else
30371   echo "$as_me: failed program was:" >&5
30372 sed 's/^/| /' conftest.$ac_ext >&5
30374         ac_header_compiler=no
30377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30379 echo "${ECHO_T}$ac_header_compiler" >&6; }
30381 # Is the header present?
30382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30384 cat >conftest.$ac_ext <<_ACEOF
30385 /* confdefs.h.  */
30386 _ACEOF
30387 cat confdefs.h >>conftest.$ac_ext
30388 cat >>conftest.$ac_ext <<_ACEOF
30389 /* end confdefs.h.  */
30390 #include <$ac_header>
30391 _ACEOF
30392 if { (ac_try="$ac_cpp conftest.$ac_ext"
30393 case "(($ac_try" in
30394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30395   *) ac_try_echo=$ac_try;;
30396 esac
30397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30398   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30399   ac_status=$?
30400   grep -v '^ *+' conftest.er1 >conftest.err
30401   rm -f conftest.er1
30402   cat conftest.err >&5
30403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30404   (exit $ac_status); } >/dev/null && {
30405          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30406          test ! -s conftest.err
30407        }; then
30408   ac_header_preproc=yes
30409 else
30410   echo "$as_me: failed program was:" >&5
30411 sed 's/^/| /' conftest.$ac_ext >&5
30413   ac_header_preproc=no
30416 rm -f conftest.err conftest.$ac_ext
30417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30418 echo "${ECHO_T}$ac_header_preproc" >&6; }
30420 # So?  What about this header?
30421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30422   yes:no: )
30423     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30425     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30427     ac_header_preproc=yes
30428     ;;
30429   no:yes:* )
30430     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30432     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30433 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30434     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30436     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30437 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30440     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30442     ( cat <<\_ASBOX
30443 ## ---------------------------------------------------------------------- ##
30444 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
30445 ## ---------------------------------------------------------------------- ##
30446 _ASBOX
30447      ) | sed "s/^/$as_me: WARNING:     /" >&2
30448     ;;
30449 esac
30450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30453   echo $ECHO_N "(cached) $ECHO_C" >&6
30454 else
30455   eval "$as_ac_Header=\$ac_header_preproc"
30457 ac_res=`eval echo '${'$as_ac_Header'}'`
30458                { echo "$as_me:$LINENO: result: $ac_res" >&5
30459 echo "${ECHO_T}$ac_res" >&6; }
30462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30463   cat >>confdefs.h <<_ACEOF
30464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30465 _ACEOF
30469 done
30473  if test "x$INSTALL_LIBXF86CONFIG" = xyes; then
30474   INSTALL_LIBXF86CONFIG_TRUE=
30475   INSTALL_LIBXF86CONFIG_FALSE='#'
30476 else
30477   INSTALL_LIBXF86CONFIG_TRUE='#'
30478   INSTALL_LIBXF86CONFIG_FALSE=
30482 case $host_os in
30483         cygwin*)
30484                 DGA=no
30485                 DRI2=no
30486                 XF86VIDMODE=no
30487                 XSELINUX=no
30488                 XV=no
30489                 ;;
30490         darwin*)
30491                 DRI2=no
30493                 if test x$XQUARTZ = xauto; then
30494                         { echo "$as_me:$LINENO: checking whether to build Xquartz" >&5
30495 echo $ECHO_N "checking whether to build Xquartz... $ECHO_C" >&6; }
30496 if test "${xorg_cv_Carbon_framework+set}" = set; then
30497   echo $ECHO_N "(cached) $ECHO_C" >&6
30498 else
30500                                 save_LDFLAGS=$LDFLAGS
30501                                 LDFLAGS="$LDFLAGS -framework Carbon"
30502                                 cat >conftest.$ac_ext <<_ACEOF
30503 char FSFindFolder(); int main() { FSFindFolder(); return 0;}
30504 _ACEOF
30505 rm -f conftest.$ac_objext conftest$ac_exeext
30506 if { (ac_try="$ac_link"
30507 case "(($ac_try" in
30508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30509   *) ac_try_echo=$ac_try;;
30510 esac
30511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30512   (eval "$ac_link") 2>conftest.er1
30513   ac_status=$?
30514   grep -v '^ *+' conftest.er1 >conftest.err
30515   rm -f conftest.er1
30516   cat conftest.err >&5
30517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518   (exit $ac_status); } && {
30519          test -z "$ac_c_werror_flag" ||
30520          test ! -s conftest.err
30521        } && test -s conftest$ac_exeext &&
30522        $as_test_x conftest$ac_exeext; then
30523   xorg_cv_Carbon_framework=yes
30524 else
30525   echo "$as_me: failed program was:" >&5
30526 sed 's/^/| /' conftest.$ac_ext >&5
30528         xorg_cv_Carbon_framework=no
30531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30532       conftest$ac_exeext conftest.$ac_ext
30533                                 LDFLAGS=$save_LDFLAGS
30535 { echo "$as_me:$LINENO: result: $xorg_cv_Carbon_framework" >&5
30536 echo "${ECHO_T}$xorg_cv_Carbon_framework" >&6; }
30538                         if test "X$xorg_cv_Carbon_framework" = Xyes; then
30539                                 XQUARTZ=yes
30540                         else
30541                                 XQUARTZ=no
30542                         fi
30543                 fi
30545                 { echo "$as_me:$LINENO: checking for dispatch_async" >&5
30546 echo $ECHO_N "checking for dispatch_async... $ECHO_C" >&6; }
30547 if test "${ac_cv_func_dispatch_async+set}" = set; then
30548   echo $ECHO_N "(cached) $ECHO_C" >&6
30549 else
30550   cat >conftest.$ac_ext <<_ACEOF
30551 /* confdefs.h.  */
30552 _ACEOF
30553 cat confdefs.h >>conftest.$ac_ext
30554 cat >>conftest.$ac_ext <<_ACEOF
30555 /* end confdefs.h.  */
30556 /* Define dispatch_async to an innocuous variant, in case <limits.h> declares dispatch_async.
30557    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30558 #define dispatch_async innocuous_dispatch_async
30560 /* System header to define __stub macros and hopefully few prototypes,
30561     which can conflict with char dispatch_async (); below.
30562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30563     <limits.h> exists even on freestanding compilers.  */
30565 #ifdef __STDC__
30566 # include <limits.h>
30567 #else
30568 # include <assert.h>
30569 #endif
30571 #undef dispatch_async
30573 /* Override any GCC internal prototype to avoid an error.
30574    Use char because int might match the return type of a GCC
30575    builtin and then its argument prototype would still apply.  */
30576 #ifdef __cplusplus
30577 extern "C"
30578 #endif
30579 char dispatch_async ();
30580 /* The GNU C library defines this for functions which it implements
30581     to always fail with ENOSYS.  Some functions are actually named
30582     something starting with __ and the normal name is an alias.  */
30583 #if defined __stub_dispatch_async || defined __stub___dispatch_async
30584 choke me
30585 #endif
30587 int
30588 main ()
30590 return dispatch_async ();
30591   ;
30592   return 0;
30594 _ACEOF
30595 rm -f conftest.$ac_objext conftest$ac_exeext
30596 if { (ac_try="$ac_link"
30597 case "(($ac_try" in
30598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30599   *) ac_try_echo=$ac_try;;
30600 esac
30601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30602   (eval "$ac_link") 2>conftest.er1
30603   ac_status=$?
30604   grep -v '^ *+' conftest.er1 >conftest.err
30605   rm -f conftest.er1
30606   cat conftest.err >&5
30607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30608   (exit $ac_status); } && {
30609          test -z "$ac_c_werror_flag" ||
30610          test ! -s conftest.err
30611        } && test -s conftest$ac_exeext &&
30612        $as_test_x conftest$ac_exeext; then
30613   ac_cv_func_dispatch_async=yes
30614 else
30615   echo "$as_me: failed program was:" >&5
30616 sed 's/^/| /' conftest.$ac_ext >&5
30618         ac_cv_func_dispatch_async=no
30621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30622       conftest$ac_exeext conftest.$ac_ext
30624 { echo "$as_me:$LINENO: result: $ac_cv_func_dispatch_async" >&5
30625 echo "${ECHO_T}$ac_cv_func_dispatch_async" >&6; }
30626 if test $ac_cv_func_dispatch_async = yes; then
30628 cat >>confdefs.h <<\_ACEOF
30629 #define HAVE_LIBDISPATCH 1
30630 _ACEOF
30635                 if test "x$XQUARTZ" = xyes ; then
30636                         XQUARTZ=yes
30637                         XVFB=no
30638                         XNEST=no
30640                         COMPOSITE=no
30641                         DGA=no
30642                         DPMSExtension=no
30643                         XF86VIDMODE=no
30644                 fi
30645                 ;;
30646         *) XQUARTZ=no ;;
30647 esac
30649 XEXT_INC='-I$(top_srcdir)/Xext'
30650 XEXT_LIB='$(top_builddir)/Xext/libXext.la'
30651 XEXTXORG_LIB='$(top_builddir)/Xext/libXextbuiltin.la'
30653 VIDEOPROTO="videoproto"
30654 COMPOSITEPROTO="compositeproto >= 0.4"
30655 RECORDPROTO="recordproto >= 1.13.99.1"
30656 SCRNSAVERPROTO="scrnsaverproto >= 1.1"
30657 RESOURCEPROTO="resourceproto"
30658 DRIPROTO="xf86driproto >= 2.1.0"
30659 DRI2PROTO="dri2proto >= 2.6"
30660 XINERAMAPROTO="xineramaproto"
30661 BIGFONTPROTO="xf86bigfontproto >= 1.2.0"
30662 DGAPROTO="xf86dgaproto >= 2.0.99.1"
30663 GLPROTO="glproto >= 1.4.14"
30664 DMXPROTO="dmxproto >= 2.2.99.1"
30665 VIDMODEPROTO="xf86vidmodeproto >= 2.2.99.1"
30666 WINDOWSWMPROTO="windowswmproto"
30667 APPLEWMPROTO="applewmproto >= 1.4"
30669 SDK_REQUIRED_MODULES="xproto >= 7.0.22 randrproto >= 1.2.99.3 renderproto >= 0.11 xextproto >= 7.1.99 inputproto >= 1.9.99.902 kbproto >= 1.0.3 fontsproto"
30670 # Make SDK_REQUIRED_MODULES available for inclusion in xorg-server.pc
30673 LIBAPPLEWM="applewm >= 1.4"
30674 LIBDMX="dmx >= 1.0.99.1"
30675 LIBDRI="dri >= 7.8.0"
30676 LIBDRM="libdrm >= 2.3.0"
30677 LIBGL="gl >= 7.1.0"
30678 LIBXEXT="xext >= 1.0.99.4"
30679 LIBXFONT="xfont >= 1.4.2"
30680 LIBXI="xi >= 1.2.99.1"
30681 LIBXTST="xtst >= 1.0.99.2"
30682 LIBPCIACCESS="pciaccess >= 0.8.0"
30683 LIBUDEV="libudev >= 143"
30684 LIBSELINUX="libselinux >= 2.0.86"
30685 LIBDBUS="dbus-1 >= 1.0"
30686 LIBPIXMAN="pixman-1 >= 0.21.8"
30689 pkg_failed=no
30690 { echo "$as_me:$LINENO: checking for PIXMAN" >&5
30691 echo $ECHO_N "checking for PIXMAN... $ECHO_C" >&6; }
30693 if test -n "$PIXMAN_CFLAGS"; then
30694     pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS"
30695  elif test -n "$PKG_CONFIG"; then
30696     if test -n "$PKG_CONFIG" && \
30697     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\"") >&5
30698   ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5
30699   ac_status=$?
30700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30701   (exit $ac_status); }; then
30702   pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "$LIBPIXMAN" 2>/dev/null`
30703 else
30704   pkg_failed=yes
30706  else
30707     pkg_failed=untried
30709 if test -n "$PIXMAN_LIBS"; then
30710     pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS"
30711  elif test -n "$PKG_CONFIG"; then
30712     if test -n "$PKG_CONFIG" && \
30713     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\"") >&5
30714   ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5
30715   ac_status=$?
30716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30717   (exit $ac_status); }; then
30718   pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "$LIBPIXMAN" 2>/dev/null`
30719 else
30720   pkg_failed=yes
30722  else
30723     pkg_failed=untried
30728 if test $pkg_failed = yes; then
30729         { echo "$as_me:$LINENO: result: no" >&5
30730 echo "${ECHO_T}no" >&6; }
30732 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30733         _pkg_short_errors_supported=yes
30734 else
30735         _pkg_short_errors_supported=no
30737         if test $_pkg_short_errors_supported = yes; then
30738                 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBPIXMAN" 2>&1`
30739         else
30740                 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBPIXMAN" 2>&1`
30741         fi
30742         # Put the nasty error message in config.log where it belongs
30743         echo "$PIXMAN_PKG_ERRORS" >&5
30745         { { echo "$as_me:$LINENO: error: Package requirements ($LIBPIXMAN) were not met:
30747 $PIXMAN_PKG_ERRORS
30749 Consider adjusting the PKG_CONFIG_PATH environment variable if you
30750 installed software in a non-standard prefix.
30752 Alternatively, you may set the environment variables PIXMAN_CFLAGS
30753 and PIXMAN_LIBS to avoid the need to call pkg-config.
30754 See the pkg-config man page for more details." >&5
30755 echo "$as_me: error: Package requirements ($LIBPIXMAN) were not met:
30757 $PIXMAN_PKG_ERRORS
30759 Consider adjusting the PKG_CONFIG_PATH environment variable if you
30760 installed software in a non-standard prefix.
30762 Alternatively, you may set the environment variables PIXMAN_CFLAGS
30763 and PIXMAN_LIBS to avoid the need to call pkg-config.
30764 See the pkg-config man page for more details." >&2;}
30765    { (exit 1); exit 1; }; }
30766 elif test $pkg_failed = untried; then
30767         { echo "$as_me:$LINENO: result: no" >&5
30768 echo "${ECHO_T}no" >&6; }
30769         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
30770 is in your PATH or set the PKG_CONFIG environment variable to the full
30771 path to pkg-config.
30773 Alternatively, you may set the environment variables PIXMAN_CFLAGS
30774 and PIXMAN_LIBS to avoid the need to call pkg-config.
30775 See the pkg-config man page for more details.
30777 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30778 See \`config.log' for more details." >&5
30779 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
30780 is in your PATH or set the PKG_CONFIG environment variable to the full
30781 path to pkg-config.
30783 Alternatively, you may set the environment variables PIXMAN_CFLAGS
30784 and PIXMAN_LIBS to avoid the need to call pkg-config.
30785 See the pkg-config man page for more details.
30787 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30788 See \`config.log' for more details." >&2;}
30789    { (exit 1); exit 1; }; }
30790 else
30791         PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS
30792         PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS
30793         { echo "$as_me:$LINENO: result: yes" >&5
30794 echo "${ECHO_T}yes" >&6; }
30797 REQUIRED_LIBS="$REQUIRED_LIBS $LIBPIXMAN $LIBXFONT xau"
30799 REQUIRED_MODULES="fixesproto >= 5.0 damageproto >= 1.1 xcmiscproto >= 1.2.0 xtrans >= 1.2.2 bigreqsproto >= 1.1.0 $SDK_REQUIRED_MODULES"
30801 if test "x$CONFIG_UDEV" = xyes &&
30802  { test "x$CONFIG_DBUS_API" = xyes || test "x$CONFIG_HAL" = xyes; }; then
30803         { { echo "$as_me:$LINENO: error: Hotplugging through both libudev and dbus/hal not allowed" >&5
30804 echo "$as_me: error: Hotplugging through both libudev and dbus/hal not allowed" >&2;}
30805    { (exit 1); exit 1; }; }
30809 pkg_failed=no
30810 { echo "$as_me:$LINENO: checking for UDEV" >&5
30811 echo $ECHO_N "checking for UDEV... $ECHO_C" >&6; }
30813 if test -n "$UDEV_CFLAGS"; then
30814     pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
30815  elif test -n "$PKG_CONFIG"; then
30816     if test -n "$PKG_CONFIG" && \
30817     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\"") >&5
30818   ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5
30819   ac_status=$?
30820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30821   (exit $ac_status); }; then
30822   pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "$LIBUDEV" 2>/dev/null`
30823 else
30824   pkg_failed=yes
30826  else
30827     pkg_failed=untried
30829 if test -n "$UDEV_LIBS"; then
30830     pkg_cv_UDEV_LIBS="$UDEV_LIBS"
30831  elif test -n "$PKG_CONFIG"; then
30832     if test -n "$PKG_CONFIG" && \
30833     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\"") >&5
30834   ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5
30835   ac_status=$?
30836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837   (exit $ac_status); }; then
30838   pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "$LIBUDEV" 2>/dev/null`
30839 else
30840   pkg_failed=yes
30842  else
30843     pkg_failed=untried
30848 if test $pkg_failed = yes; then
30849         { echo "$as_me:$LINENO: result: no" >&5
30850 echo "${ECHO_T}no" >&6; }
30852 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30853         _pkg_short_errors_supported=yes
30854 else
30855         _pkg_short_errors_supported=no
30857         if test $_pkg_short_errors_supported = yes; then
30858                 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBUDEV" 2>&1`
30859         else
30860                 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBUDEV" 2>&1`
30861         fi
30862         # Put the nasty error message in config.log where it belongs
30863         echo "$UDEV_PKG_ERRORS" >&5
30865         HAVE_LIBUDEV=no
30866 elif test $pkg_failed = untried; then
30867         { echo "$as_me:$LINENO: result: no" >&5
30868 echo "${ECHO_T}no" >&6; }
30869         HAVE_LIBUDEV=no
30870 else
30871         UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
30872         UDEV_LIBS=$pkg_cv_UDEV_LIBS
30873         { echo "$as_me:$LINENO: result: yes" >&5
30874 echo "${ECHO_T}yes" >&6; }
30875         HAVE_LIBUDEV=yes
30877 if test "x$CONFIG_UDEV" = xauto; then
30878         CONFIG_UDEV="$HAVE_LIBUDEV"
30880  if test "x$CONFIG_UDEV" = xyes; then
30881   CONFIG_UDEV_TRUE=
30882   CONFIG_UDEV_FALSE='#'
30883 else
30884   CONFIG_UDEV_TRUE='#'
30885   CONFIG_UDEV_FALSE=
30888 if test "x$CONFIG_UDEV" = xyes; then
30889         CONFIG_DBUS_API=no
30890         CONFIG_HAL=no
30891         if ! test "x$HAVE_LIBUDEV" = xyes; then
30892                 { { echo "$as_me:$LINENO: error: udev configuration API requested, but libudev is not installed" >&5
30893 echo "$as_me: error: udev configuration API requested, but libudev is not installed" >&2;}
30894    { (exit 1); exit 1; }; }
30895         fi
30897 cat >>confdefs.h <<\_ACEOF
30898 #define CONFIG_UDEV 1
30899 _ACEOF
30904 pkg_failed=no
30905 { echo "$as_me:$LINENO: checking for DBUS" >&5
30906 echo $ECHO_N "checking for DBUS... $ECHO_C" >&6; }
30908 if test -n "$DBUS_CFLAGS"; then
30909     pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
30910  elif test -n "$PKG_CONFIG"; then
30911     if test -n "$PKG_CONFIG" && \
30912     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\"") >&5
30913   ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5
30914   ac_status=$?
30915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30916   (exit $ac_status); }; then
30917   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "$LIBDBUS" 2>/dev/null`
30918 else
30919   pkg_failed=yes
30921  else
30922     pkg_failed=untried
30924 if test -n "$DBUS_LIBS"; then
30925     pkg_cv_DBUS_LIBS="$DBUS_LIBS"
30926  elif test -n "$PKG_CONFIG"; then
30927     if test -n "$PKG_CONFIG" && \
30928     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\"") >&5
30929   ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5
30930   ac_status=$?
30931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30932   (exit $ac_status); }; then
30933   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "$LIBDBUS" 2>/dev/null`
30934 else
30935   pkg_failed=yes
30937  else
30938     pkg_failed=untried
30943 if test $pkg_failed = yes; then
30944         { echo "$as_me:$LINENO: result: no" >&5
30945 echo "${ECHO_T}no" >&6; }
30947 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30948         _pkg_short_errors_supported=yes
30949 else
30950         _pkg_short_errors_supported=no
30952         if test $_pkg_short_errors_supported = yes; then
30953                 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBDBUS" 2>&1`
30954         else
30955                 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBDBUS" 2>&1`
30956         fi
30957         # Put the nasty error message in config.log where it belongs
30958         echo "$DBUS_PKG_ERRORS" >&5
30960         HAVE_DBUS=no
30961 elif test $pkg_failed = untried; then
30962         { echo "$as_me:$LINENO: result: no" >&5
30963 echo "${ECHO_T}no" >&6; }
30964         HAVE_DBUS=no
30965 else
30966         DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
30967         DBUS_LIBS=$pkg_cv_DBUS_LIBS
30968         { echo "$as_me:$LINENO: result: yes" >&5
30969 echo "${ECHO_T}yes" >&6; }
30970         HAVE_DBUS=yes
30972 if test "x$HAVE_DBUS" = xyes; then
30974 cat >>confdefs.h <<\_ACEOF
30975 #define HAVE_DBUS 1
30976 _ACEOF
30979  if test "x$HAVE_DBUS" = xyes; then
30980   HAVE_DBUS_TRUE=
30981   HAVE_DBUS_FALSE='#'
30982 else
30983   HAVE_DBUS_TRUE='#'
30984   HAVE_DBUS_FALSE=
30988 if test "x$CONFIG_DBUS_API" = xauto; then
30989         CONFIG_DBUS_API="$HAVE_DBUS"
30991 if test "x$CONFIG_DBUS_API" = xyes; then
30992         if ! test "x$HAVE_DBUS" = xyes; then
30993                 { { echo "$as_me:$LINENO: error: D-Bus configuration API requested, but D-Bus is not installed." >&5
30994 echo "$as_me: error: D-Bus configuration API requested, but D-Bus is not installed." >&2;}
30995    { (exit 1); exit 1; }; }
30996         fi
30999 cat >>confdefs.h <<\_ACEOF
31000 #define CONFIG_DBUS_API 1
31001 _ACEOF
31003         CONFIG_NEED_DBUS="yes"
31005  if test "x$CONFIG_DBUS_API" = xyes; then
31006   CONFIG_DBUS_API_TRUE=
31007   CONFIG_DBUS_API_FALSE='#'
31008 else
31009   CONFIG_DBUS_API_TRUE='#'
31010   CONFIG_DBUS_API_FALSE=
31015 pkg_failed=no
31016 { echo "$as_me:$LINENO: checking for HAL" >&5
31017 echo $ECHO_N "checking for HAL... $ECHO_C" >&6; }
31019 if test -n "$HAL_CFLAGS"; then
31020     pkg_cv_HAL_CFLAGS="$HAL_CFLAGS"
31021  elif test -n "$PKG_CONFIG"; then
31022     if test -n "$PKG_CONFIG" && \
31023     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hal\"") >&5
31024   ($PKG_CONFIG --exists --print-errors "hal") 2>&5
31025   ac_status=$?
31026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31027   (exit $ac_status); }; then
31028   pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "hal" 2>/dev/null`
31029 else
31030   pkg_failed=yes
31032  else
31033     pkg_failed=untried
31035 if test -n "$HAL_LIBS"; then
31036     pkg_cv_HAL_LIBS="$HAL_LIBS"
31037  elif test -n "$PKG_CONFIG"; then
31038     if test -n "$PKG_CONFIG" && \
31039     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hal\"") >&5
31040   ($PKG_CONFIG --exists --print-errors "hal") 2>&5
31041   ac_status=$?
31042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31043   (exit $ac_status); }; then
31044   pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "hal" 2>/dev/null`
31045 else
31046   pkg_failed=yes
31048  else
31049     pkg_failed=untried
31054 if test $pkg_failed = yes; then
31055         { echo "$as_me:$LINENO: result: no" >&5
31056 echo "${ECHO_T}no" >&6; }
31058 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31059         _pkg_short_errors_supported=yes
31060 else
31061         _pkg_short_errors_supported=no
31063         if test $_pkg_short_errors_supported = yes; then
31064                 HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "hal" 2>&1`
31065         else
31066                 HAL_PKG_ERRORS=`$PKG_CONFIG --print-errors "hal" 2>&1`
31067         fi
31068         # Put the nasty error message in config.log where it belongs
31069         echo "$HAL_PKG_ERRORS" >&5
31071         HAVE_HAL=no
31072 elif test $pkg_failed = untried; then
31073         { echo "$as_me:$LINENO: result: no" >&5
31074 echo "${ECHO_T}no" >&6; }
31075         HAVE_HAL=no
31076 else
31077         HAL_CFLAGS=$pkg_cv_HAL_CFLAGS
31078         HAL_LIBS=$pkg_cv_HAL_LIBS
31079         { echo "$as_me:$LINENO: result: yes" >&5
31080 echo "${ECHO_T}yes" >&6; }
31081         HAVE_HAL=yes
31083 if test "x$CONFIG_HAL" = xauto; then
31084         CONFIG_HAL="$HAVE_HAL"
31086 if test "x$CONFIG_HAL" = xyes; then
31087         if ! test "x$HAVE_HAL" = xyes; then
31088                 { { echo "$as_me:$LINENO: error: HAL hotplug API requested, but HAL is not installed." >&5
31089 echo "$as_me: error: HAL hotplug API requested, but HAL is not installed." >&2;}
31090    { (exit 1); exit 1; }; }
31091         fi
31094 cat >>confdefs.h <<\_ACEOF
31095 #define CONFIG_HAL 1
31096 _ACEOF
31098         CONFIG_NEED_DBUS="yes"
31100  if test "x$CONFIG_HAL" = xyes; then
31101   CONFIG_HAL_TRUE=
31102   CONFIG_HAL_FALSE='#'
31103 else
31104   CONFIG_HAL_TRUE='#'
31105   CONFIG_HAL_FALSE=
31109 if test "x$CONFIG_NEED_DBUS" = xyes; then
31111 cat >>confdefs.h <<\_ACEOF
31112 #define CONFIG_NEED_DBUS 1
31113 _ACEOF
31116  if test "x$CONFIG_NEED_DBUS" = xyes; then
31117   CONFIG_NEED_DBUS_TRUE=
31118   CONFIG_NEED_DBUS_FALSE='#'
31119 else
31120   CONFIG_NEED_DBUS_TRUE='#'
31121   CONFIG_NEED_DBUS_FALSE=
31125 if test "x$USE_SIGIO_BY_DEFAULT" = xyes; then
31126         USE_SIGIO_BY_DEFAULT_VALUE=TRUE
31127 else
31128         USE_SIGIO_BY_DEFAULT_VALUE=FALSE
31131 cat >>confdefs.h <<_ACEOF
31132 #define USE_SIGIO_BY_DEFAULT $USE_SIGIO_BY_DEFAULT_VALUE
31133 _ACEOF
31136 { echo "$as_me:$LINENO: checking for glibc..." >&5
31137 echo $ECHO_N "checking for glibc...... $ECHO_C" >&6; }
31138 cat >conftest.$ac_ext <<_ACEOF
31140 #include <features.h>
31141 #ifndef __GLIBC__
31142 #error
31143 #endif
31145 _ACEOF
31146 if { (ac_try="$ac_cpp conftest.$ac_ext"
31147 case "(($ac_try" in
31148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31149   *) ac_try_echo=$ac_try;;
31150 esac
31151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31152   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31153   ac_status=$?
31154   grep -v '^ *+' conftest.er1 >conftest.err
31155   rm -f conftest.er1
31156   cat conftest.err >&5
31157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31158   (exit $ac_status); } >/dev/null && {
31159          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31160          test ! -s conftest.err
31161        }; then
31162   glibc=yes
31163 else
31164   echo "$as_me: failed program was:" >&5
31165 sed 's/^/| /' conftest.$ac_ext >&5
31167   glibc=no
31170 rm -f conftest.err conftest.$ac_ext
31171 { echo "$as_me:$LINENO: result: $glibc" >&5
31172 echo "${ECHO_T}$glibc" >&6; }
31175 for ac_func in clock_gettime
31177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31181   echo $ECHO_N "(cached) $ECHO_C" >&6
31182 else
31183   cat >conftest.$ac_ext <<_ACEOF
31184 /* confdefs.h.  */
31185 _ACEOF
31186 cat confdefs.h >>conftest.$ac_ext
31187 cat >>conftest.$ac_ext <<_ACEOF
31188 /* end confdefs.h.  */
31189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31190    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31191 #define $ac_func innocuous_$ac_func
31193 /* System header to define __stub macros and hopefully few prototypes,
31194     which can conflict with char $ac_func (); below.
31195     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31196     <limits.h> exists even on freestanding compilers.  */
31198 #ifdef __STDC__
31199 # include <limits.h>
31200 #else
31201 # include <assert.h>
31202 #endif
31204 #undef $ac_func
31206 /* Override any GCC internal prototype to avoid an error.
31207    Use char because int might match the return type of a GCC
31208    builtin and then its argument prototype would still apply.  */
31209 #ifdef __cplusplus
31210 extern "C"
31211 #endif
31212 char $ac_func ();
31213 /* The GNU C library defines this for functions which it implements
31214     to always fail with ENOSYS.  Some functions are actually named
31215     something starting with __ and the normal name is an alias.  */
31216 #if defined __stub_$ac_func || defined __stub___$ac_func
31217 choke me
31218 #endif
31220 int
31221 main ()
31223 return $ac_func ();
31224   ;
31225   return 0;
31227 _ACEOF
31228 rm -f conftest.$ac_objext conftest$ac_exeext
31229 if { (ac_try="$ac_link"
31230 case "(($ac_try" in
31231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31232   *) ac_try_echo=$ac_try;;
31233 esac
31234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31235   (eval "$ac_link") 2>conftest.er1
31236   ac_status=$?
31237   grep -v '^ *+' conftest.er1 >conftest.err
31238   rm -f conftest.er1
31239   cat conftest.err >&5
31240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31241   (exit $ac_status); } && {
31242          test -z "$ac_c_werror_flag" ||
31243          test ! -s conftest.err
31244        } && test -s conftest$ac_exeext &&
31245        $as_test_x conftest$ac_exeext; then
31246   eval "$as_ac_var=yes"
31247 else
31248   echo "$as_me: failed program was:" >&5
31249 sed 's/^/| /' conftest.$ac_ext >&5
31251         eval "$as_ac_var=no"
31254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31255       conftest$ac_exeext conftest.$ac_ext
31257 ac_res=`eval echo '${'$as_ac_var'}'`
31258                { echo "$as_me:$LINENO: result: $ac_res" >&5
31259 echo "${ECHO_T}$ac_res" >&6; }
31260 if test `eval echo '${'$as_ac_var'}'` = yes; then
31261   cat >>confdefs.h <<_ACEOF
31262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31263 _ACEOF
31264  have_clock_gettime=yes
31265 else
31266   { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
31267 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
31268 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
31269   echo $ECHO_N "(cached) $ECHO_C" >&6
31270 else
31271   ac_check_lib_save_LIBS=$LIBS
31272 LIBS="-lrt  $LIBS"
31273 cat >conftest.$ac_ext <<_ACEOF
31274 /* confdefs.h.  */
31275 _ACEOF
31276 cat confdefs.h >>conftest.$ac_ext
31277 cat >>conftest.$ac_ext <<_ACEOF
31278 /* end confdefs.h.  */
31280 /* Override any GCC internal prototype to avoid an error.
31281    Use char because int might match the return type of a GCC
31282    builtin and then its argument prototype would still apply.  */
31283 #ifdef __cplusplus
31284 extern "C"
31285 #endif
31286 char clock_gettime ();
31287 int
31288 main ()
31290 return clock_gettime ();
31291   ;
31292   return 0;
31294 _ACEOF
31295 rm -f conftest.$ac_objext conftest$ac_exeext
31296 if { (ac_try="$ac_link"
31297 case "(($ac_try" in
31298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31299   *) ac_try_echo=$ac_try;;
31300 esac
31301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31302   (eval "$ac_link") 2>conftest.er1
31303   ac_status=$?
31304   grep -v '^ *+' conftest.er1 >conftest.err
31305   rm -f conftest.er1
31306   cat conftest.err >&5
31307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308   (exit $ac_status); } && {
31309          test -z "$ac_c_werror_flag" ||
31310          test ! -s conftest.err
31311        } && test -s conftest$ac_exeext &&
31312        $as_test_x conftest$ac_exeext; then
31313   ac_cv_lib_rt_clock_gettime=yes
31314 else
31315   echo "$as_me: failed program was:" >&5
31316 sed 's/^/| /' conftest.$ac_ext >&5
31318         ac_cv_lib_rt_clock_gettime=no
31321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31322       conftest$ac_exeext conftest.$ac_ext
31323 LIBS=$ac_check_lib_save_LIBS
31325 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
31326 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
31327 if test $ac_cv_lib_rt_clock_gettime = yes; then
31328   have_clock_gettime=-lrt
31329 else
31330   have_clock_gettime=no
31334 done
31337 { echo "$as_me:$LINENO: checking for a useful monotonic clock ..." >&5
31338 echo $ECHO_N "checking for a useful monotonic clock ...... $ECHO_C" >&6; }
31340 if ! test "x$have_clock_gettime" = xno; then
31341     if ! test "x$have_clock_gettime" = xyes; then
31342         CLOCK_LIBS="$have_clock_gettime"
31343     else
31344         CLOCK_LIBS=""
31345     fi
31347     LIBS_SAVE="$LIBS"
31348     LIBS="$CLOCK_LIBS"
31349     CPPFLAGS_SAVE="$CPPFLAGS"
31351     if test x"$glibc" = xyes; then
31352         CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L"
31353     fi
31355     if test "$cross_compiling" = yes; then
31356   MONOTONIC_CLOCK="cross compiling"
31357 else
31358   cat >conftest.$ac_ext <<_ACEOF
31360 #include <time.h>
31362 int main(int argc, char *argv[]) {
31363     struct timespec tp;
31365     if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0)
31366         return 0;
31367     else
31368         return 1;
31371 _ACEOF
31372 rm -f conftest$ac_exeext
31373 if { (ac_try="$ac_link"
31374 case "(($ac_try" in
31375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31376   *) ac_try_echo=$ac_try;;
31377 esac
31378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31379   (eval "$ac_link") 2>&5
31380   ac_status=$?
31381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31382   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31383   { (case "(($ac_try" in
31384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31385   *) ac_try_echo=$ac_try;;
31386 esac
31387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31388   (eval "$ac_try") 2>&5
31389   ac_status=$?
31390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31391   (exit $ac_status); }; }; then
31392   MONOTONIC_CLOCK=yes
31393 else
31394   echo "$as_me: program exited with status $ac_status" >&5
31395 echo "$as_me: failed program was:" >&5
31396 sed 's/^/| /' conftest.$ac_ext >&5
31398 ( exit $ac_status )
31399 MONOTONIC_CLOCK=no
31401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31406     LIBS="$LIBS_SAVE"
31407     CPPFLAGS="$CPPFLAGS_SAVE"
31408 else
31409     MONOTONIC_CLOCK=no
31412 { echo "$as_me:$LINENO: result: $MONOTONIC_CLOCK" >&5
31413 echo "${ECHO_T}$MONOTONIC_CLOCK" >&6; }
31415 if test "x$MONOTONIC_CLOCK" = xyes; then
31417 cat >>confdefs.h <<\_ACEOF
31418 #define MONOTONIC_CLOCK 1
31419 _ACEOF
31421     LIBS="$LIBS $CLOCK_LIBS"
31424  if test "x$XV" = xyes; then
31425   XV_TRUE=
31426   XV_FALSE='#'
31427 else
31428   XV_TRUE='#'
31429   XV_FALSE=
31432 if test "x$XV" = xyes; then
31434 cat >>confdefs.h <<\_ACEOF
31435 #define XV 1
31436 _ACEOF
31439 cat >>confdefs.h <<\_ACEOF
31440 #define XvExtension 1
31441 _ACEOF
31443         REQUIRED_MODULES="$REQUIRED_MODULES $VIDEOPROTO"
31444         SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $VIDEOPROTO"
31445 else
31446         XVMC=no
31449  if test "x$XVMC" = xyes; then
31450   XVMC_TRUE=
31451   XVMC_FALSE='#'
31452 else
31453   XVMC_TRUE='#'
31454   XVMC_FALSE=
31457 if test "x$XVMC" = xyes; then
31459 cat >>confdefs.h <<\_ACEOF
31460 #define XvMCExtension 1
31461 _ACEOF
31465  if test "x$XREGISTRY" = xyes; then
31466   XREGISTRY_TRUE=
31467   XREGISTRY_FALSE='#'
31468 else
31469   XREGISTRY_TRUE='#'
31470   XREGISTRY_FALSE=
31473 if test "x$XREGISTRY" = xyes; then
31475 cat >>confdefs.h <<\_ACEOF
31476 #define XREGISTRY 1
31477 _ACEOF
31481  if test "x$COMPOSITE" = xyes; then
31482   COMPOSITE_TRUE=
31483   COMPOSITE_FALSE='#'
31484 else
31485   COMPOSITE_TRUE='#'
31486   COMPOSITE_FALSE=
31489 if test "x$COMPOSITE" = xyes; then
31491 cat >>confdefs.h <<\_ACEOF
31492 #define COMPOSITE 1
31493 _ACEOF
31495         REQUIRED_MODULES="$REQUIRED_MODULES $COMPOSITEPROTO"
31496         COMPOSITE_LIB='$(top_builddir)/composite/libcomposite.la'
31497         COMPOSITE_INC='-I$(top_srcdir)/composite'
31500  if test "x$MITSHM" = xyes; then
31501   MITSHM_TRUE=
31502   MITSHM_FALSE='#'
31503 else
31504   MITSHM_TRUE='#'
31505   MITSHM_FALSE=
31508 if test "x$MITSHM" = xyes; then
31510 cat >>confdefs.h <<\_ACEOF
31511 #define MITSHM 1
31512 _ACEOF
31515 cat >>confdefs.h <<\_ACEOF
31516 #define HAS_SHM 1
31517 _ACEOF
31521  if test "x$RECORD" = xyes; then
31522   RECORD_TRUE=
31523   RECORD_FALSE='#'
31524 else
31525   RECORD_TRUE='#'
31526   RECORD_FALSE=
31529 if test "x$RECORD" = xyes; then
31531 cat >>confdefs.h <<\_ACEOF
31532 #define XRECORD 1
31533 _ACEOF
31535         REQUIRED_MODULES="$REQUIRED_MODULES $RECORDPROTO"
31536         RECORD_LIB='$(top_builddir)/record/librecord.la'
31539  if test "x$SCREENSAVER" = xyes; then
31540   SCREENSAVER_TRUE=
31541   SCREENSAVER_FALSE='#'
31542 else
31543   SCREENSAVER_TRUE='#'
31544   SCREENSAVER_FALSE=
31547 if test "x$SCREENSAVER" = xyes; then
31549 cat >>confdefs.h <<\_ACEOF
31550 #define SCREENSAVER 1
31551 _ACEOF
31553         REQUIRED_MODULES="$REQUIRED_MODULES $SCRNSAVERPROTO"
31556  if test "x$RES" = xyes; then
31557   RES_TRUE=
31558   RES_FALSE='#'
31559 else
31560   RES_TRUE='#'
31561   RES_FALSE=
31564 if test "x$RES" = xyes; then
31566 cat >>confdefs.h <<\_ACEOF
31567 #define RES 1
31568 _ACEOF
31570         REQUIRED_MODULES="$REQUIRED_MODULES $RESOURCEPROTO"
31573 # The XRes extension may support client ID tracking only if it has
31574 # been specifically enabled. Client ID tracking is implicitly not
31575 # supported if XRes extension is disabled.
31576 { echo "$as_me:$LINENO: checking whether to track client ids" >&5
31577 echo $ECHO_N "checking whether to track client ids... $ECHO_C" >&6; }
31578 if test "x$RES" = xyes && test "x$CLIENTIDS" = xyes; then
31580 cat >>confdefs.h <<\_ACEOF
31581 #define CLIENTIDS 1
31582 _ACEOF
31584 else
31585         CLIENTIDS=no
31587 if test "x$CLIENTIDS" = xyes; then
31588         case $host_os in
31589         openbsd*)
31590                 SYS_LIBS="$SYS_LIBS -lkvm"
31591         ;;
31592         esac
31594 { echo "$as_me:$LINENO: result: $CLIENTIDS" >&5
31595 echo "${ECHO_T}$CLIENTIDS" >&6; }
31596  if test "x$CLIENTIDS" = xyes; then
31597   CLIENTIDS_TRUE=
31598   CLIENTIDS_FALSE='#'
31599 else
31600   CLIENTIDS_TRUE='#'
31601   CLIENTIDS_FALSE=
31605 if test "x$GLX" = xyes; then
31607 pkg_failed=no
31608 { echo "$as_me:$LINENO: checking for XLIB" >&5
31609 echo $ECHO_N "checking for XLIB... $ECHO_C" >&6; }
31611 if test -n "$XLIB_CFLAGS"; then
31612     pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
31613  elif test -n "$PKG_CONFIG"; then
31614     if test -n "$PKG_CONFIG" && \
31615     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
31616   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
31617   ac_status=$?
31618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31619   (exit $ac_status); }; then
31620   pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
31621 else
31622   pkg_failed=yes
31624  else
31625     pkg_failed=untried
31627 if test -n "$XLIB_LIBS"; then
31628     pkg_cv_XLIB_LIBS="$XLIB_LIBS"
31629  elif test -n "$PKG_CONFIG"; then
31630     if test -n "$PKG_CONFIG" && \
31631     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
31632   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
31633   ac_status=$?
31634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635   (exit $ac_status); }; then
31636   pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
31637 else
31638   pkg_failed=yes
31640  else
31641     pkg_failed=untried
31646 if test $pkg_failed = yes; then
31647         { echo "$as_me:$LINENO: result: no" >&5
31648 echo "${ECHO_T}no" >&6; }
31650 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31651         _pkg_short_errors_supported=yes
31652 else
31653         _pkg_short_errors_supported=no
31655         if test $_pkg_short_errors_supported = yes; then
31656                 XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
31657         else
31658                 XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
31659         fi
31660         # Put the nasty error message in config.log where it belongs
31661         echo "$XLIB_PKG_ERRORS" >&5
31663         { { echo "$as_me:$LINENO: error: Package requirements (x11) were not met:
31665 $XLIB_PKG_ERRORS
31667 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31668 installed software in a non-standard prefix.
31670 Alternatively, you may set the environment variables XLIB_CFLAGS
31671 and XLIB_LIBS to avoid the need to call pkg-config.
31672 See the pkg-config man page for more details." >&5
31673 echo "$as_me: error: Package requirements (x11) were not met:
31675 $XLIB_PKG_ERRORS
31677 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31678 installed software in a non-standard prefix.
31680 Alternatively, you may set the environment variables XLIB_CFLAGS
31681 and XLIB_LIBS to avoid the need to call pkg-config.
31682 See the pkg-config man page for more details." >&2;}
31683    { (exit 1); exit 1; }; }
31684 elif test $pkg_failed = untried; then
31685         { echo "$as_me:$LINENO: result: no" >&5
31686 echo "${ECHO_T}no" >&6; }
31687         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
31688 is in your PATH or set the PKG_CONFIG environment variable to the full
31689 path to pkg-config.
31691 Alternatively, you may set the environment variables XLIB_CFLAGS
31692 and XLIB_LIBS to avoid the need to call pkg-config.
31693 See the pkg-config man page for more details.
31695 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31696 See \`config.log' for more details." >&5
31697 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
31698 is in your PATH or set the PKG_CONFIG environment variable to the full
31699 path to pkg-config.
31701 Alternatively, you may set the environment variables XLIB_CFLAGS
31702 and XLIB_LIBS to avoid the need to call pkg-config.
31703 See the pkg-config man page for more details.
31705 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31706 See \`config.log' for more details." >&2;}
31707    { (exit 1); exit 1; }; }
31708 else
31709         XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS
31710         XLIB_LIBS=$pkg_cv_XLIB_LIBS
31711         { echo "$as_me:$LINENO: result: yes" >&5
31712 echo "${ECHO_T}yes" >&6; }
31716 pkg_failed=no
31717 { echo "$as_me:$LINENO: checking for GL" >&5
31718 echo $ECHO_N "checking for GL... $ECHO_C" >&6; }
31720 if test -n "$GL_CFLAGS"; then
31721     pkg_cv_GL_CFLAGS="$GL_CFLAGS"
31722  elif test -n "$PKG_CONFIG"; then
31723     if test -n "$PKG_CONFIG" && \
31724     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\"") >&5
31725   ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5
31726   ac_status=$?
31727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31728   (exit $ac_status); }; then
31729   pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "$GLPROTO $LIBGL" 2>/dev/null`
31730 else
31731   pkg_failed=yes
31733  else
31734     pkg_failed=untried
31736 if test -n "$GL_LIBS"; then
31737     pkg_cv_GL_LIBS="$GL_LIBS"
31738  elif test -n "$PKG_CONFIG"; then
31739     if test -n "$PKG_CONFIG" && \
31740     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\"") >&5
31741   ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5
31742   ac_status=$?
31743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31744   (exit $ac_status); }; then
31745   pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "$GLPROTO $LIBGL" 2>/dev/null`
31746 else
31747   pkg_failed=yes
31749  else
31750     pkg_failed=untried
31755 if test $pkg_failed = yes; then
31756         { echo "$as_me:$LINENO: result: no" >&5
31757 echo "${ECHO_T}no" >&6; }
31759 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31760         _pkg_short_errors_supported=yes
31761 else
31762         _pkg_short_errors_supported=no
31764         if test $_pkg_short_errors_supported = yes; then
31765                 GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$GLPROTO $LIBGL" 2>&1`
31766         else
31767                 GL_PKG_ERRORS=`$PKG_CONFIG --print-errors "$GLPROTO $LIBGL" 2>&1`
31768         fi
31769         # Put the nasty error message in config.log where it belongs
31770         echo "$GL_PKG_ERRORS" >&5
31772         { { echo "$as_me:$LINENO: error: Package requirements ($GLPROTO $LIBGL) were not met:
31774 $GL_PKG_ERRORS
31776 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31777 installed software in a non-standard prefix.
31779 Alternatively, you may set the environment variables GL_CFLAGS
31780 and GL_LIBS to avoid the need to call pkg-config.
31781 See the pkg-config man page for more details." >&5
31782 echo "$as_me: error: Package requirements ($GLPROTO $LIBGL) were not met:
31784 $GL_PKG_ERRORS
31786 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31787 installed software in a non-standard prefix.
31789 Alternatively, you may set the environment variables GL_CFLAGS
31790 and GL_LIBS to avoid the need to call pkg-config.
31791 See the pkg-config man page for more details." >&2;}
31792    { (exit 1); exit 1; }; }
31793 elif test $pkg_failed = untried; then
31794         { echo "$as_me:$LINENO: result: no" >&5
31795 echo "${ECHO_T}no" >&6; }
31796         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
31797 is in your PATH or set the PKG_CONFIG environment variable to the full
31798 path to pkg-config.
31800 Alternatively, you may set the environment variables GL_CFLAGS
31801 and GL_LIBS to avoid the need to call pkg-config.
31802 See the pkg-config man page for more details.
31804 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31805 See \`config.log' for more details." >&5
31806 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
31807 is in your PATH or set the PKG_CONFIG environment variable to the full
31808 path to pkg-config.
31810 Alternatively, you may set the environment variables GL_CFLAGS
31811 and GL_LIBS to avoid the need to call pkg-config.
31812 See the pkg-config man page for more details.
31814 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31815 See \`config.log' for more details." >&2;}
31816    { (exit 1); exit 1; }; }
31817 else
31818         GL_CFLAGS=$pkg_cv_GL_CFLAGS
31819         GL_LIBS=$pkg_cv_GL_LIBS
31820         { echo "$as_me:$LINENO: result: yes" >&5
31821 echo "${ECHO_T}yes" >&6; }
31826 cat >>confdefs.h <<\_ACEOF
31827 #define GLXEXT 1
31828 _ACEOF
31830         GLX_LIBS='$(top_builddir)/glx/libglx.la'
31831         GLX_SYS_LIBS="$GLX_SYS_LIBS"
31832 else
31833         GLX=no
31835  if test "x$GLX" = xyes; then
31836   GLX_TRUE=
31837   GLX_FALSE='#'
31838 else
31839   GLX_TRUE='#'
31840   GLX_FALSE=
31844 if test "x$GLX" = xno; then
31845         AIGLX=no
31848 if test "x$AIGLX" = xyes -a \( "x$DRI" = xyes -o "x$DRI2" = xyes \); then
31850 cat >>confdefs.h <<\_ACEOF
31851 #define AIGLX 1
31852 _ACEOF
31855  if { test "x$DRI" = xyes || test "x$DRI2" = xyes; } && test "x$AIGLX" = xyes; then
31856   AIGLX_DRI_LOADER_TRUE=
31857   AIGLX_DRI_LOADER_FALSE='#'
31858 else
31859   AIGLX_DRI_LOADER_TRUE='#'
31860   AIGLX_DRI_LOADER_FALSE=
31864 if test "x$GLX_USE_TLS" = xyes ; then
31865         GLX_DEFINES="-DGLX_USE_TLS -DPTHREADS"
31866         GLX_SYS_LIBS="$GLX_SYS_LIBS -lpthread"
31870  if test "x$DRI" = xyes; then
31871   DRI_TRUE=
31872   DRI_FALSE='#'
31873 else
31874   DRI_TRUE='#'
31875   DRI_FALSE=
31878 if test "x$DRI" = xyes; then
31880 cat >>confdefs.h <<\_ACEOF
31881 #define XF86DRI 1
31882 _ACEOF
31885 pkg_failed=no
31886 { echo "$as_me:$LINENO: checking for DRIPROTO" >&5
31887 echo $ECHO_N "checking for DRIPROTO... $ECHO_C" >&6; }
31889 if test -n "$DRIPROTO_CFLAGS"; then
31890     pkg_cv_DRIPROTO_CFLAGS="$DRIPROTO_CFLAGS"
31891  elif test -n "$PKG_CONFIG"; then
31892     if test -n "$PKG_CONFIG" && \
31893     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$DRIPROTO\"") >&5
31894   ($PKG_CONFIG --exists --print-errors "$DRIPROTO") 2>&5
31895   ac_status=$?
31896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897   (exit $ac_status); }; then
31898   pkg_cv_DRIPROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRIPROTO" 2>/dev/null`
31899 else
31900   pkg_failed=yes
31902  else
31903     pkg_failed=untried
31905 if test -n "$DRIPROTO_LIBS"; then
31906     pkg_cv_DRIPROTO_LIBS="$DRIPROTO_LIBS"
31907  elif test -n "$PKG_CONFIG"; then
31908     if test -n "$PKG_CONFIG" && \
31909     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$DRIPROTO\"") >&5
31910   ($PKG_CONFIG --exists --print-errors "$DRIPROTO") 2>&5
31911   ac_status=$?
31912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31913   (exit $ac_status); }; then
31914   pkg_cv_DRIPROTO_LIBS=`$PKG_CONFIG --libs "$DRIPROTO" 2>/dev/null`
31915 else
31916   pkg_failed=yes
31918  else
31919     pkg_failed=untried
31924 if test $pkg_failed = yes; then
31925         { echo "$as_me:$LINENO: result: no" >&5
31926 echo "${ECHO_T}no" >&6; }
31928 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31929         _pkg_short_errors_supported=yes
31930 else
31931         _pkg_short_errors_supported=no
31933         if test $_pkg_short_errors_supported = yes; then
31934                 DRIPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$DRIPROTO" 2>&1`
31935         else
31936                 DRIPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors "$DRIPROTO" 2>&1`
31937         fi
31938         # Put the nasty error message in config.log where it belongs
31939         echo "$DRIPROTO_PKG_ERRORS" >&5
31941         { { echo "$as_me:$LINENO: error: Package requirements ($DRIPROTO) were not met:
31943 $DRIPROTO_PKG_ERRORS
31945 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31946 installed software in a non-standard prefix.
31948 Alternatively, you may set the environment variables DRIPROTO_CFLAGS
31949 and DRIPROTO_LIBS to avoid the need to call pkg-config.
31950 See the pkg-config man page for more details." >&5
31951 echo "$as_me: error: Package requirements ($DRIPROTO) were not met:
31953 $DRIPROTO_PKG_ERRORS
31955 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31956 installed software in a non-standard prefix.
31958 Alternatively, you may set the environment variables DRIPROTO_CFLAGS
31959 and DRIPROTO_LIBS to avoid the need to call pkg-config.
31960 See the pkg-config man page for more details." >&2;}
31961    { (exit 1); exit 1; }; }
31962 elif test $pkg_failed = untried; then
31963         { echo "$as_me:$LINENO: result: no" >&5
31964 echo "${ECHO_T}no" >&6; }
31965         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
31966 is in your PATH or set the PKG_CONFIG environment variable to the full
31967 path to pkg-config.
31969 Alternatively, you may set the environment variables DRIPROTO_CFLAGS
31970 and DRIPROTO_LIBS to avoid the need to call pkg-config.
31971 See the pkg-config man page for more details.
31973 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31974 See \`config.log' for more details." >&5
31975 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
31976 is in your PATH or set the PKG_CONFIG environment variable to the full
31977 path to pkg-config.
31979 Alternatively, you may set the environment variables DRIPROTO_CFLAGS
31980 and DRIPROTO_LIBS to avoid the need to call pkg-config.
31981 See the pkg-config man page for more details.
31983 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31984 See \`config.log' for more details." >&2;}
31985    { (exit 1); exit 1; }; }
31986 else
31987         DRIPROTO_CFLAGS=$pkg_cv_DRIPROTO_CFLAGS
31988         DRIPROTO_LIBS=$pkg_cv_DRIPROTO_LIBS
31989         { echo "$as_me:$LINENO: result: yes" >&5
31990 echo "${ECHO_T}yes" >&6; }
31994 pkg_failed=no
31995 { echo "$as_me:$LINENO: checking for DRI" >&5
31996 echo $ECHO_N "checking for DRI... $ECHO_C" >&6; }
31998 if test -n "$DRI_CFLAGS"; then
31999     pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
32000  elif test -n "$PKG_CONFIG"; then
32001     if test -n "$PKG_CONFIG" && \
32002     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBDRI\"") >&5
32003   ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBDRI") 2>&5
32004   ac_status=$?
32005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32006   (exit $ac_status); }; then
32007   pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "$GLPROTO $LIBDRI" 2>/dev/null`
32008 else
32009   pkg_failed=yes
32011  else
32012     pkg_failed=untried
32014 if test -n "$DRI_LIBS"; then
32015     pkg_cv_DRI_LIBS="$DRI_LIBS"
32016  elif test -n "$PKG_CONFIG"; then
32017     if test -n "$PKG_CONFIG" && \
32018     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBDRI\"") >&5
32019   ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBDRI") 2>&5
32020   ac_status=$?
32021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32022   (exit $ac_status); }; then
32023   pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "$GLPROTO $LIBDRI" 2>/dev/null`
32024 else
32025   pkg_failed=yes
32027  else
32028     pkg_failed=untried
32033 if test $pkg_failed = yes; then
32034         { echo "$as_me:$LINENO: result: no" >&5
32035 echo "${ECHO_T}no" >&6; }
32037 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32038         _pkg_short_errors_supported=yes
32039 else
32040         _pkg_short_errors_supported=no
32042         if test $_pkg_short_errors_supported = yes; then
32043                 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$GLPROTO $LIBDRI" 2>&1`
32044         else
32045                 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "$GLPROTO $LIBDRI" 2>&1`
32046         fi
32047         # Put the nasty error message in config.log where it belongs
32048         echo "$DRI_PKG_ERRORS" >&5
32050         { { echo "$as_me:$LINENO: error: Package requirements ($GLPROTO $LIBDRI) were not met:
32052 $DRI_PKG_ERRORS
32054 Consider adjusting the PKG_CONFIG_PATH environment variable if you
32055 installed software in a non-standard prefix.
32057 Alternatively, you may set the environment variables DRI_CFLAGS
32058 and DRI_LIBS to avoid the need to call pkg-config.
32059 See the pkg-config man page for more details." >&5
32060 echo "$as_me: error: Package requirements ($GLPROTO $LIBDRI) were not met:
32062 $DRI_PKG_ERRORS
32064 Consider adjusting the PKG_CONFIG_PATH environment variable if you
32065 installed software in a non-standard prefix.
32067 Alternatively, you may set the environment variables DRI_CFLAGS
32068 and DRI_LIBS to avoid the need to call pkg-config.
32069 See the pkg-config man page for more details." >&2;}
32070    { (exit 1); exit 1; }; }
32071 elif test $pkg_failed = untried; then
32072         { echo "$as_me:$LINENO: result: no" >&5
32073 echo "${ECHO_T}no" >&6; }
32074         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
32075 is in your PATH or set the PKG_CONFIG environment variable to the full
32076 path to pkg-config.
32078 Alternatively, you may set the environment variables DRI_CFLAGS
32079 and DRI_LIBS to avoid the need to call pkg-config.
32080 See the pkg-config man page for more details.
32082 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32083 See \`config.log' for more details." >&5
32084 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
32085 is in your PATH or set the PKG_CONFIG environment variable to the full
32086 path to pkg-config.
32088 Alternatively, you may set the environment variables DRI_CFLAGS
32089 and DRI_LIBS to avoid the need to call pkg-config.
32090 See the pkg-config man page for more details.
32092 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32093 See \`config.log' for more details." >&2;}
32094    { (exit 1); exit 1; }; }
32095 else
32096         DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
32097         DRI_LIBS=$pkg_cv_DRI_LIBS
32098         { echo "$as_me:$LINENO: result: yes" >&5
32099 echo "${ECHO_T}yes" >&6; }
32106 pkg_failed=no
32107 { echo "$as_me:$LINENO: checking for DRI2PROTO" >&5
32108 echo $ECHO_N "checking for DRI2PROTO... $ECHO_C" >&6; }
32110 if test -n "$DRI2PROTO_CFLAGS"; then
32111     pkg_cv_DRI2PROTO_CFLAGS="$DRI2PROTO_CFLAGS"
32112  elif test -n "$PKG_CONFIG"; then
32113     if test -n "$PKG_CONFIG" && \
32114     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\"") >&5
32115   ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5
32116   ac_status=$?
32117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32118   (exit $ac_status); }; then
32119   pkg_cv_DRI2PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI2PROTO" 2>/dev/null`
32120 else
32121   pkg_failed=yes
32123  else
32124     pkg_failed=untried
32126 if test -n "$DRI2PROTO_LIBS"; then
32127     pkg_cv_DRI2PROTO_LIBS="$DRI2PROTO_LIBS"
32128  elif test -n "$PKG_CONFIG"; then
32129     if test -n "$PKG_CONFIG" && \
32130     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\"") >&5
32131   ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5
32132   ac_status=$?
32133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32134   (exit $ac_status); }; then
32135   pkg_cv_DRI2PROTO_LIBS=`$PKG_CONFIG --libs "$DRI2PROTO" 2>/dev/null`
32136 else
32137   pkg_failed=yes
32139  else
32140     pkg_failed=untried
32145 if test $pkg_failed = yes; then
32146         { echo "$as_me:$LINENO: result: no" >&5
32147 echo "${ECHO_T}no" >&6; }
32149 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32150         _pkg_short_errors_supported=yes
32151 else
32152         _pkg_short_errors_supported=no
32154         if test $_pkg_short_errors_supported = yes; then
32155                 DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$DRI2PROTO" 2>&1`
32156         else
32157                 DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors "$DRI2PROTO" 2>&1`
32158         fi
32159         # Put the nasty error message in config.log where it belongs
32160         echo "$DRI2PROTO_PKG_ERRORS" >&5
32162         HAVE_DRI2PROTO=no
32163 elif test $pkg_failed = untried; then
32164         { echo "$as_me:$LINENO: result: no" >&5
32165 echo "${ECHO_T}no" >&6; }
32166         HAVE_DRI2PROTO=no
32167 else
32168         DRI2PROTO_CFLAGS=$pkg_cv_DRI2PROTO_CFLAGS
32169         DRI2PROTO_LIBS=$pkg_cv_DRI2PROTO_LIBS
32170         { echo "$as_me:$LINENO: result: yes" >&5
32171 echo "${ECHO_T}yes" >&6; }
32172         HAVE_DRI2PROTO=yes
32174 case "$DRI2,$HAVE_DRI2PROTO" in
32175         yes,no)
32176                 { { echo "$as_me:$LINENO: error: DRI2 requested, but dri2proto not found." >&5
32177 echo "$as_me: error: DRI2 requested, but dri2proto not found." >&2;}
32178    { (exit 1); exit 1; }; }
32179                 ;;
32180         yes,yes | auto,yes)
32182 cat >>confdefs.h <<\_ACEOF
32183 #define DRI2 1
32184 _ACEOF
32186                 DRI2=yes
32187                 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI2PROTO"
32188                 ;;
32189 esac
32190  if test "x$DRI2" = xyes; then
32191   DRI2_TRUE=
32192   DRI2_FALSE='#'
32193 else
32194   DRI2_TRUE='#'
32195   DRI2_FALSE=
32199 if test "x$DRI" = xyes || test "x$DRI2" = xyes; then
32200         if test "x$DRM" = xyes; then
32202 cat >>confdefs.h <<\_ACEOF
32203 #define WITH_LIBDRM 1
32204 _ACEOF
32207 pkg_failed=no
32208 { echo "$as_me:$LINENO: checking for LIBDRM" >&5
32209 echo $ECHO_N "checking for LIBDRM... $ECHO_C" >&6; }
32211 if test -n "$LIBDRM_CFLAGS"; then
32212     pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
32213  elif test -n "$PKG_CONFIG"; then
32214     if test -n "$PKG_CONFIG" && \
32215     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\"") >&5
32216   ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5
32217   ac_status=$?
32218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32219   (exit $ac_status); }; then
32220   pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "$LIBDRM" 2>/dev/null`
32221 else
32222   pkg_failed=yes
32224  else
32225     pkg_failed=untried
32227 if test -n "$LIBDRM_LIBS"; then
32228     pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
32229  elif test -n "$PKG_CONFIG"; then
32230     if test -n "$PKG_CONFIG" && \
32231     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\"") >&5
32232   ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5
32233   ac_status=$?
32234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32235   (exit $ac_status); }; then
32236   pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "$LIBDRM" 2>/dev/null`
32237 else
32238   pkg_failed=yes
32240  else
32241     pkg_failed=untried
32246 if test $pkg_failed = yes; then
32247         { echo "$as_me:$LINENO: result: no" >&5
32248 echo "${ECHO_T}no" >&6; }
32250 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32251         _pkg_short_errors_supported=yes
32252 else
32253         _pkg_short_errors_supported=no
32255         if test $_pkg_short_errors_supported = yes; then
32256                 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBDRM" 2>&1`
32257         else
32258                 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBDRM" 2>&1`
32259         fi
32260         # Put the nasty error message in config.log where it belongs
32261         echo "$LIBDRM_PKG_ERRORS" >&5
32263         { { echo "$as_me:$LINENO: error: Package requirements ($LIBDRM) were not met:
32265 $LIBDRM_PKG_ERRORS
32267 Consider adjusting the PKG_CONFIG_PATH environment variable if you
32268 installed software in a non-standard prefix.
32270 Alternatively, you may set the environment variables LIBDRM_CFLAGS
32271 and LIBDRM_LIBS to avoid the need to call pkg-config.
32272 See the pkg-config man page for more details." >&5
32273 echo "$as_me: error: Package requirements ($LIBDRM) were not met:
32275 $LIBDRM_PKG_ERRORS
32277 Consider adjusting the PKG_CONFIG_PATH environment variable if you
32278 installed software in a non-standard prefix.
32280 Alternatively, you may set the environment variables LIBDRM_CFLAGS
32281 and LIBDRM_LIBS to avoid the need to call pkg-config.
32282 See the pkg-config man page for more details." >&2;}
32283    { (exit 1); exit 1; }; }
32284 elif test $pkg_failed = untried; then
32285         { echo "$as_me:$LINENO: result: no" >&5
32286 echo "${ECHO_T}no" >&6; }
32287         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
32288 is in your PATH or set the PKG_CONFIG environment variable to the full
32289 path to pkg-config.
32291 Alternatively, you may set the environment variables LIBDRM_CFLAGS
32292 and LIBDRM_LIBS to avoid the need to call pkg-config.
32293 See the pkg-config man page for more details.
32295 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32296 See \`config.log' for more details." >&5
32297 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
32298 is in your PATH or set the PKG_CONFIG environment variable to the full
32299 path to pkg-config.
32301 Alternatively, you may set the environment variables LIBDRM_CFLAGS
32302 and LIBDRM_LIBS to avoid the need to call pkg-config.
32303 See the pkg-config man page for more details.
32305 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32306 See \`config.log' for more details." >&2;}
32307    { (exit 1); exit 1; }; }
32308 else
32309         LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
32310         LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
32311         { echo "$as_me:$LINENO: result: yes" >&5
32312 echo "${ECHO_T}yes" >&6; }
32315         fi
32318 if test "x$DRI2" = xyes; then
32319         save_CFLAGS=$CFLAGS
32320         CFLAGS="$GL_CFLAGS $LIBDRM_CFLAGS"
32321         cat >conftest.$ac_ext <<_ACEOF
32322 /* confdefs.h.  */
32323 _ACEOF
32324 cat confdefs.h >>conftest.$ac_ext
32325 cat >>conftest.$ac_ext <<_ACEOF
32326 /* end confdefs.h.  */
32327 #include <GL/gl.h>
32328 #include <GL/internal/dri_interface.h>
32329 #ifndef __DRI_DRI2
32330 #error DRI2 extension not available.
32331 #endif
32332 _ACEOF
32333 rm -f conftest.$ac_objext
32334 if { (ac_try="$ac_compile"
32335 case "(($ac_try" in
32336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32337   *) ac_try_echo=$ac_try;;
32338 esac
32339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32340   (eval "$ac_compile") 2>conftest.er1
32341   ac_status=$?
32342   grep -v '^ *+' conftest.er1 >conftest.err
32343   rm -f conftest.er1
32344   cat conftest.err >&5
32345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32346   (exit $ac_status); } && {
32347          test -z "$ac_c_werror_flag" ||
32348          test ! -s conftest.err
32349        } && test -s conftest.$ac_objext; then
32350   HAVE_DRI2EXTENSION=yes
32351 else
32352   echo "$as_me: failed program was:" >&5
32353 sed 's/^/| /' conftest.$ac_ext >&5
32355         HAVE_DRI2EXTENSION=no
32358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32359         CFLAGS=$save_CFLAGS
32360         if test "x$HAVE_DRI2EXTENSION" = xyes; then
32362 cat >>confdefs.h <<\_ACEOF
32363 #define DRI2_AIGLX 1
32364 _ACEOF
32366                 DRI2_AIGLX=yes
32367         else
32368                 { echo "$as_me:$LINENO: DRI2 AIGLX disabled, __DRI_DRI2 not defined in dri_interface.h." >&5
32369 echo "$as_me: DRI2 AIGLX disabled, __DRI_DRI2 not defined in dri_interface.h." >&6;}
32370                 DRI2_AIGLX=no
32371         fi
32373  if test "x$DRI2_AIGLX" = xyes; then
32374   DRI2_AIGLX_TRUE=
32375   DRI2_AIGLX_FALSE='#'
32376 else
32377   DRI2_AIGLX_TRUE='#'
32378   DRI2_AIGLX_FALSE=
32383  if test "x$XINERAMA" = xyes; then
32384   XINERAMA_TRUE=
32385   XINERAMA_FALSE='#'
32386 else
32387   XINERAMA_TRUE='#'
32388   XINERAMA_FALSE=
32391 if test "x$XINERAMA" = xyes; then
32393 cat >>confdefs.h <<\_ACEOF
32394 #define XINERAMA 1
32395 _ACEOF
32398 cat >>confdefs.h <<\_ACEOF
32399 #define PANORAMIX 1
32400 _ACEOF
32402         REQUIRED_MODULES="$REQUIRED_MODULES $XINERAMAPROTO"
32403         SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $XINERAMAPROTO"
32406  if test "x$XACE" = xyes; then
32407   XACE_TRUE=
32408   XACE_FALSE='#'
32409 else
32410   XACE_TRUE='#'
32411   XACE_FALSE=
32414 if test "x$XACE" = xyes; then
32416 cat >>confdefs.h <<\_ACEOF
32417 #define XACE 1
32418 _ACEOF
32422  if test "x$XSELINUX" = xyes; then
32423   XSELINUX_TRUE=
32424   XSELINUX_FALSE='#'
32425 else
32426   XSELINUX_TRUE='#'
32427   XSELINUX_FALSE=
32430 if test "x$XSELINUX" = xyes; then
32431         if test "x$XACE" != xyes; then
32432                 { { echo "$as_me:$LINENO: error: cannot build SELinux extension without X-ACE" >&5
32433 echo "$as_me: error: cannot build SELinux extension without X-ACE" >&2;}
32434    { (exit 1); exit 1; }; }
32435         fi
32437 for ac_header in libaudit.h
32439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32441   { echo "$as_me:$LINENO: checking for $ac_header" >&5
32442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32444   echo $ECHO_N "(cached) $ECHO_C" >&6
32446 ac_res=`eval echo '${'$as_ac_Header'}'`
32447                { echo "$as_me:$LINENO: result: $ac_res" >&5
32448 echo "${ECHO_T}$ac_res" >&6; }
32449 else
32450   # Is the header compilable?
32451 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32453 cat >conftest.$ac_ext <<_ACEOF
32454 /* confdefs.h.  */
32455 _ACEOF
32456 cat confdefs.h >>conftest.$ac_ext
32457 cat >>conftest.$ac_ext <<_ACEOF
32458 /* end confdefs.h.  */
32459 $ac_includes_default
32460 #include <$ac_header>
32461 _ACEOF
32462 rm -f conftest.$ac_objext
32463 if { (ac_try="$ac_compile"
32464 case "(($ac_try" in
32465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32466   *) ac_try_echo=$ac_try;;
32467 esac
32468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32469   (eval "$ac_compile") 2>conftest.er1
32470   ac_status=$?
32471   grep -v '^ *+' conftest.er1 >conftest.err
32472   rm -f conftest.er1
32473   cat conftest.err >&5
32474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32475   (exit $ac_status); } && {
32476          test -z "$ac_c_werror_flag" ||
32477          test ! -s conftest.err
32478        } && test -s conftest.$ac_objext; then
32479   ac_header_compiler=yes
32480 else
32481   echo "$as_me: failed program was:" >&5
32482 sed 's/^/| /' conftest.$ac_ext >&5
32484         ac_header_compiler=no
32487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32488 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32489 echo "${ECHO_T}$ac_header_compiler" >&6; }
32491 # Is the header present?
32492 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32494 cat >conftest.$ac_ext <<_ACEOF
32495 /* confdefs.h.  */
32496 _ACEOF
32497 cat confdefs.h >>conftest.$ac_ext
32498 cat >>conftest.$ac_ext <<_ACEOF
32499 /* end confdefs.h.  */
32500 #include <$ac_header>
32501 _ACEOF
32502 if { (ac_try="$ac_cpp conftest.$ac_ext"
32503 case "(($ac_try" in
32504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32505   *) ac_try_echo=$ac_try;;
32506 esac
32507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32508   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32509   ac_status=$?
32510   grep -v '^ *+' conftest.er1 >conftest.err
32511   rm -f conftest.er1
32512   cat conftest.err >&5
32513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514   (exit $ac_status); } >/dev/null && {
32515          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32516          test ! -s conftest.err
32517        }; then
32518   ac_header_preproc=yes
32519 else
32520   echo "$as_me: failed program was:" >&5
32521 sed 's/^/| /' conftest.$ac_ext >&5
32523   ac_header_preproc=no
32526 rm -f conftest.err conftest.$ac_ext
32527 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32528 echo "${ECHO_T}$ac_header_preproc" >&6; }
32530 # So?  What about this header?
32531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32532   yes:no: )
32533     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32535     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32536 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32537     ac_header_preproc=yes
32538     ;;
32539   no:yes:* )
32540     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32541 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32542     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32543 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32544     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32545 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32546     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32547 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32548     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32550     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32551 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32552     ( cat <<\_ASBOX
32553 ## ---------------------------------------------------------------------- ##
32554 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
32555 ## ---------------------------------------------------------------------- ##
32556 _ASBOX
32557      ) | sed "s/^/$as_me: WARNING:     /" >&2
32558     ;;
32559 esac
32560 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32563   echo $ECHO_N "(cached) $ECHO_C" >&6
32564 else
32565   eval "$as_ac_Header=\$ac_header_preproc"
32567 ac_res=`eval echo '${'$as_ac_Header'}'`
32568                { echo "$as_me:$LINENO: result: $ac_res" >&5
32569 echo "${ECHO_T}$ac_res" >&6; }
32572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32573   cat >>confdefs.h <<_ACEOF
32574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32575 _ACEOF
32577 else
32578   { { echo "$as_me:$LINENO: error: SELinux extension requires audit system headers" >&5
32579 echo "$as_me: error: SELinux extension requires audit system headers" >&2;}
32580    { (exit 1); exit 1; }; }
32583 done
32586 { echo "$as_me:$LINENO: checking for audit_open in -laudit" >&5
32587 echo $ECHO_N "checking for audit_open in -laudit... $ECHO_C" >&6; }
32588 if test "${ac_cv_lib_audit_audit_open+set}" = set; then
32589   echo $ECHO_N "(cached) $ECHO_C" >&6
32590 else
32591   ac_check_lib_save_LIBS=$LIBS
32592 LIBS="-laudit  $LIBS"
32593 cat >conftest.$ac_ext <<_ACEOF
32594 /* confdefs.h.  */
32595 _ACEOF
32596 cat confdefs.h >>conftest.$ac_ext
32597 cat >>conftest.$ac_ext <<_ACEOF
32598 /* end confdefs.h.  */
32600 /* Override any GCC internal prototype to avoid an error.
32601    Use char because int might match the return type of a GCC
32602    builtin and then its argument prototype would still apply.  */
32603 #ifdef __cplusplus
32604 extern "C"
32605 #endif
32606 char audit_open ();
32607 int
32608 main ()
32610 return audit_open ();
32611   ;
32612   return 0;
32614 _ACEOF
32615 rm -f conftest.$ac_objext conftest$ac_exeext
32616 if { (ac_try="$ac_link"
32617 case "(($ac_try" in
32618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32619   *) ac_try_echo=$ac_try;;
32620 esac
32621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32622   (eval "$ac_link") 2>conftest.er1
32623   ac_status=$?
32624   grep -v '^ *+' conftest.er1 >conftest.err
32625   rm -f conftest.er1
32626   cat conftest.err >&5
32627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32628   (exit $ac_status); } && {
32629          test -z "$ac_c_werror_flag" ||
32630          test ! -s conftest.err
32631        } && test -s conftest$ac_exeext &&
32632        $as_test_x conftest$ac_exeext; then
32633   ac_cv_lib_audit_audit_open=yes
32634 else
32635   echo "$as_me: failed program was:" >&5
32636 sed 's/^/| /' conftest.$ac_ext >&5
32638         ac_cv_lib_audit_audit_open=no
32641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32642       conftest$ac_exeext conftest.$ac_ext
32643 LIBS=$ac_check_lib_save_LIBS
32645 { echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_open" >&5
32646 echo "${ECHO_T}$ac_cv_lib_audit_audit_open" >&6; }
32647 if test $ac_cv_lib_audit_audit_open = yes; then
32648   cat >>confdefs.h <<_ACEOF
32649 #define HAVE_LIBAUDIT 1
32650 _ACEOF
32652   LIBS="-laudit $LIBS"
32654 else
32655   { { echo "$as_me:$LINENO: error: SELinux extension requires audit system library" >&5
32656 echo "$as_me: error: SELinux extension requires audit system library" >&2;}
32657    { (exit 1); exit 1; }; }
32661 pkg_failed=no
32662 { echo "$as_me:$LINENO: checking for SELINUX" >&5
32663 echo $ECHO_N "checking for SELINUX... $ECHO_C" >&6; }
32665 if test -n "$SELINUX_CFLAGS"; then
32666     pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS"
32667  elif test -n "$PKG_CONFIG"; then
32668     if test -n "$PKG_CONFIG" && \
32669     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\"") >&5
32670   ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5
32671   ac_status=$?
32672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32673   (exit $ac_status); }; then
32674   pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "$LIBSELINUX" 2>/dev/null`
32675 else
32676   pkg_failed=yes
32678  else
32679     pkg_failed=untried
32681 if test -n "$SELINUX_LIBS"; then
32682     pkg_cv_SELINUX_LIBS="$SELINUX_LIBS"
32683  elif test -n "$PKG_CONFIG"; then
32684     if test -n "$PKG_CONFIG" && \
32685     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\"") >&5
32686   ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5
32687   ac_status=$?
32688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32689   (exit $ac_status); }; then
32690   pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "$LIBSELINUX" 2>/dev/null`
32691 else
32692   pkg_failed=yes
32694  else
32695     pkg_failed=untried
32700 if test $pkg_failed = yes; then
32701         { echo "$as_me:$LINENO: result: no" >&5
32702 echo "${ECHO_T}no" >&6; }
32704 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32705         _pkg_short_errors_supported=yes
32706 else
32707         _pkg_short_errors_supported=no
32709         if test $_pkg_short_errors_supported = yes; then
32710                 SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBSELINUX" 2>&1`
32711         else
32712                 SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBSELINUX" 2>&1`
32713         fi
32714         # Put the nasty error message in config.log where it belongs
32715         echo "$SELINUX_PKG_ERRORS" >&5
32717         { { echo "$as_me:$LINENO: error: Package requirements ($LIBSELINUX) were not met:
32719 $SELINUX_PKG_ERRORS
32721 Consider adjusting the PKG_CONFIG_PATH environment variable if you
32722 installed software in a non-standard prefix.
32724 Alternatively, you may set the environment variables SELINUX_CFLAGS
32725 and SELINUX_LIBS to avoid the need to call pkg-config.
32726 See the pkg-config man page for more details." >&5
32727 echo "$as_me: error: Package requirements ($LIBSELINUX) were not met:
32729 $SELINUX_PKG_ERRORS
32731 Consider adjusting the PKG_CONFIG_PATH environment variable if you
32732 installed software in a non-standard prefix.
32734 Alternatively, you may set the environment variables SELINUX_CFLAGS
32735 and SELINUX_LIBS to avoid the need to call pkg-config.
32736 See the pkg-config man page for more details." >&2;}
32737    { (exit 1); exit 1; }; }
32738 elif test $pkg_failed = untried; then
32739         { echo "$as_me:$LINENO: result: no" >&5
32740 echo "${ECHO_T}no" >&6; }
32741         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
32742 is in your PATH or set the PKG_CONFIG environment variable to the full
32743 path to pkg-config.
32745 Alternatively, you may set the environment variables SELINUX_CFLAGS
32746 and SELINUX_LIBS to avoid the need to call pkg-config.
32747 See the pkg-config man page for more details.
32749 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32750 See \`config.log' for more details." >&5
32751 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
32752 is in your PATH or set the PKG_CONFIG environment variable to the full
32753 path to pkg-config.
32755 Alternatively, you may set the environment variables SELINUX_CFLAGS
32756 and SELINUX_LIBS to avoid the need to call pkg-config.
32757 See the pkg-config man page for more details.
32759 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32760 See \`config.log' for more details." >&2;}
32761    { (exit 1); exit 1; }; }
32762 else
32763         SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS
32764         SELINUX_LIBS=$pkg_cv_SELINUX_LIBS
32765         { echo "$as_me:$LINENO: result: yes" >&5
32766 echo "${ECHO_T}yes" >&6; }
32769         SELINUX_LIBS="$SELINUX_LIBS -laudit"
32771 cat >>confdefs.h <<\_ACEOF
32772 #define XSELINUX 1
32773 _ACEOF
32777  if test "x$XCSECURITY" = xyes; then
32778   XCSECURITY_TRUE=
32779   XCSECURITY_FALSE='#'
32780 else
32781   XCSECURITY_TRUE='#'
32782   XCSECURITY_FALSE=
32785 if test "x$XCSECURITY" = xyes; then
32786         if test "x$XACE" != xyes; then
32787                 { { echo "$as_me:$LINENO: error: cannot build Security extension without X-ACE" >&5
32788 echo "$as_me: error: cannot build Security extension without X-ACE" >&2;}
32789    { (exit 1); exit 1; }; }
32790         fi
32792 cat >>confdefs.h <<\_ACEOF
32793 #define XCSECURITY 1
32794 _ACEOF
32798  if test "x$DBE" = xyes; then
32799   DBE_TRUE=
32800   DBE_FALSE='#'
32801 else
32802   DBE_TRUE='#'
32803   DBE_FALSE=
32806 if test "x$DBE" = xyes; then
32808 cat >>confdefs.h <<\_ACEOF
32809 #define DBE 1
32810 _ACEOF
32812         DBE_LIB='$(top_builddir)/dbe/libdbe.la'
32815  if test "x$XF86BIGFONT" = xyes; then
32816   XF86BIGFONT_TRUE=
32817   XF86BIGFONT_FALSE='#'
32818 else
32819   XF86BIGFONT_TRUE='#'
32820   XF86BIGFONT_FALSE=
32823 if test "x$XF86BIGFONT" = xyes; then
32825 cat >>confdefs.h <<\_ACEOF
32826 #define XF86BIGFONT 1
32827 _ACEOF
32829         REQUIRED_MODULES="$REQUIRED_MODULES $BIGFONTPROTO"
32832  if test "x$DPMSExtension" = xyes; then
32833   DPMSExtension_TRUE=
32834   DPMSExtension_FALSE='#'
32835 else
32836   DPMSExtension_TRUE='#'
32837   DPMSExtension_FALSE=
32840 if test "x$DPMSExtension" = xyes; then
32842 cat >>confdefs.h <<\_ACEOF
32843 #define DPMSExtension 1
32844 _ACEOF
32849 cat >>confdefs.h <<\_ACEOF
32850 #define RENDER 1
32851 _ACEOF
32853 RENDER_LIB='$(top_builddir)/render/librender.la'
32854 RENDER_INC='-I$(top_srcdir)/render'
32857 cat >>confdefs.h <<\_ACEOF
32858 #define RANDR 1
32859 _ACEOF
32861 RANDR_LIB='$(top_builddir)/randr/librandr.la'
32862 RANDR_INC='-I$(top_srcdir)/randr'
32865 cat >>confdefs.h <<\_ACEOF
32866 #define XFIXES 1
32867 _ACEOF
32869 FIXES_LIB='$(top_builddir)/xfixes/libxfixes.la'
32870 FIXES_INC='-I$(top_srcdir)/xfixes'
32873 cat >>confdefs.h <<\_ACEOF
32874 #define DAMAGE 1
32875 _ACEOF
32877 DAMAGE_LIB='$(top_builddir)/damageext/libdamageext.la'
32878 DAMAGE_INC='-I$(top_srcdir)/damageext'
32879 MIEXT_DAMAGE_LIB='$(top_builddir)/miext/damage/libdamage.la'
32880 MIEXT_DAMAGE_INC='-I$(top_srcdir)/miext/damage'
32882 # XINPUT extension is integral part of the server
32884 cat >>confdefs.h <<\_ACEOF
32885 #define XINPUT 1
32886 _ACEOF
32888 XI_LIB='$(top_builddir)/Xi/libXi.la'
32889 XI_INC='-I$(top_srcdir)/Xi'
32891  if test "x$XF86UTILS" = xyes; then
32892   XF86UTILS_TRUE=
32893   XF86UTILS_FALSE='#'
32894 else
32895   XF86UTILS_TRUE='#'
32896   XF86UTILS_FALSE=
32899  if test "x$XAA" = xyes; then
32900   XAA_TRUE=
32901   XAA_FALSE='#'
32902 else
32903   XAA_TRUE='#'
32904   XAA_FALSE=
32907  if test "x$VGAHW" = xyes; then
32908   VGAHW_TRUE=
32909   VGAHW_FALSE='#'
32910 else
32911   VGAHW_TRUE='#'
32912   VGAHW_FALSE=
32915  if test "x$VBE" = xyes; then
32916   VBE_TRUE=
32917   VBE_FALSE='#'
32918 else
32919   VBE_TRUE='#'
32920   VBE_FALSE=
32923  if test "x$INT10MODULE" = xyes; then
32924   INT10MODULE_TRUE=
32925   INT10MODULE_FALSE='#'
32926 else
32927   INT10MODULE_TRUE='#'
32928   INT10MODULE_FALSE=
32933 cat >>confdefs.h <<\_ACEOF
32934 #define SHAPE 1
32935 _ACEOF
32939   prefix_NONE=
32940   exec_prefix_NONE=
32941   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32942   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32943   eval ac_define_dir="\"$XKBPATH\""
32944   eval ac_define_dir="\"$ac_define_dir\""
32945   XKB_BASE_DIRECTORY="$ac_define_dir"
32948 cat >>confdefs.h <<_ACEOF
32949 #define XKB_BASE_DIRECTORY "$ac_define_dir"
32950 _ACEOF
32952   test "$prefix_NONE" && prefix=NONE
32953   test "$exec_prefix_NONE" && exec_prefix=NONE
32956 # Check whether --with-xkb-bin-directory was given.
32957 if test "${with_xkb_bin_directory+set}" = set; then
32958   withval=$with_xkb_bin_directory; XKB_BIN_DIRECTORY="$withval"
32959 else
32960   XKB_BIN_DIRECTORY="$bindir"
32965   prefix_NONE=
32966   exec_prefix_NONE=
32967   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32968   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32969   eval ac_define_dir="\"$XKB_BIN_DIRECTORY\""
32970   eval ac_define_dir="\"$ac_define_dir\""
32971   XKB_BIN_DIRECTORY="$ac_define_dir"
32974 cat >>confdefs.h <<_ACEOF
32975 #define XKB_BIN_DIRECTORY "$ac_define_dir"
32976 _ACEOF
32978   test "$prefix_NONE" && prefix=NONE
32979   test "$exec_prefix_NONE" && exec_prefix=NONE
32982 XKBOUTPUT_FIRSTCHAR=`echo $XKBOUTPUT | cut -b 1`
32983 if [ x$XKBOUTPUT_FIRSTCHAR != x/ -a x$XKBOUTPUT_FIRSTCHAR != 'x$' ] ; then
32984    XKBOUTPUT="$XKB_BASE_DIRECTORY/$XKBOUTPUT"
32988 XKBOUTPUT=`echo $XKBOUTPUT/ | $SED 's|/*$|/|'`
32989 XKB_COMPILED_DIR=`echo $XKBOUTPUT | $SED 's|/*$||'`
32991   prefix_NONE=
32992   exec_prefix_NONE=
32993   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32994   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32995   eval ac_define_dir="\"$XKBOUTPUT\""
32996   eval ac_define_dir="\"$ac_define_dir\""
32997   XKM_OUTPUT_DIR="$ac_define_dir"
33000 cat >>confdefs.h <<_ACEOF
33001 #define XKM_OUTPUT_DIR "$ac_define_dir"
33002 _ACEOF
33004   test "$prefix_NONE" && prefix=NONE
33005   test "$exec_prefix_NONE" && exec_prefix=NONE
33009 if test "x$XKB_DFLT_RULES" = x; then
33010     case $host_os in
33011     linux*)
33012                 XKB_DFLT_RULES="evdev"
33013         ;;
33014     *)
33015         XKB_DFLT_RULES="base"
33016         ;;
33017     esac
33020 cat >>confdefs.h <<_ACEOF
33021 #define XKB_DFLT_RULES "$XKB_DFLT_RULES"
33022 _ACEOF
33025 cat >>confdefs.h <<_ACEOF
33026 #define XKB_DFLT_MODEL "$XKB_DFLT_MODEL"
33027 _ACEOF
33030 cat >>confdefs.h <<_ACEOF
33031 #define XKB_DFLT_LAYOUT "$XKB_DFLT_LAYOUT"
33032 _ACEOF
33035 cat >>confdefs.h <<_ACEOF
33036 #define XKB_DFLT_VARIANT "$XKB_DFLT_VARIANT"
33037 _ACEOF
33040 cat >>confdefs.h <<_ACEOF
33041 #define XKB_DFLT_OPTIONS "$XKB_DFLT_OPTIONS"
33042 _ACEOF
33050 XKB_LIB='$(top_builddir)/xkb/libxkb.la'
33051 XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la'
33052 REQUIRED_MODULES="$REQUIRED_MODULES xkbfile"
33054 { echo "$as_me:$LINENO: checking for strcasecmp" >&5
33055 echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
33056 if test "${ac_cv_func_strcasecmp+set}" = set; then
33057   echo $ECHO_N "(cached) $ECHO_C" >&6
33058 else
33059   cat >conftest.$ac_ext <<_ACEOF
33060 /* confdefs.h.  */
33061 _ACEOF
33062 cat confdefs.h >>conftest.$ac_ext
33063 cat >>conftest.$ac_ext <<_ACEOF
33064 /* end confdefs.h.  */
33065 /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
33066    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33067 #define strcasecmp innocuous_strcasecmp
33069 /* System header to define __stub macros and hopefully few prototypes,
33070     which can conflict with char strcasecmp (); below.
33071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33072     <limits.h> exists even on freestanding compilers.  */
33074 #ifdef __STDC__
33075 # include <limits.h>
33076 #else
33077 # include <assert.h>
33078 #endif
33080 #undef strcasecmp
33082 /* Override any GCC internal prototype to avoid an error.
33083    Use char because int might match the return type of a GCC
33084    builtin and then its argument prototype would still apply.  */
33085 #ifdef __cplusplus
33086 extern "C"
33087 #endif
33088 char strcasecmp ();
33089 /* The GNU C library defines this for functions which it implements
33090     to always fail with ENOSYS.  Some functions are actually named
33091     something starting with __ and the normal name is an alias.  */
33092 #if defined __stub_strcasecmp || defined __stub___strcasecmp
33093 choke me
33094 #endif
33096 int
33097 main ()
33099 return strcasecmp ();
33100   ;
33101   return 0;
33103 _ACEOF
33104 rm -f conftest.$ac_objext conftest$ac_exeext
33105 if { (ac_try="$ac_link"
33106 case "(($ac_try" in
33107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33108   *) ac_try_echo=$ac_try;;
33109 esac
33110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33111   (eval "$ac_link") 2>conftest.er1
33112   ac_status=$?
33113   grep -v '^ *+' conftest.er1 >conftest.err
33114   rm -f conftest.er1
33115   cat conftest.err >&5
33116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33117   (exit $ac_status); } && {
33118          test -z "$ac_c_werror_flag" ||
33119          test ! -s conftest.err
33120        } && test -s conftest$ac_exeext &&
33121        $as_test_x conftest$ac_exeext; then
33122   ac_cv_func_strcasecmp=yes
33123 else
33124   echo "$as_me: failed program was:" >&5
33125 sed 's/^/| /' conftest.$ac_ext >&5
33127         ac_cv_func_strcasecmp=no
33130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33131       conftest$ac_exeext conftest.$ac_ext
33133 { echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
33134 echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
33135 if test $ac_cv_func_strcasecmp = yes; then
33136   :
33137 else
33139 cat >>confdefs.h <<\_ACEOF
33140 #define NEED_STRCASECMP 1
33141 _ACEOF
33145 { echo "$as_me:$LINENO: checking for strncasecmp" >&5
33146 echo $ECHO_N "checking for strncasecmp... $ECHO_C" >&6; }
33147 if test "${ac_cv_func_strncasecmp+set}" = set; then
33148   echo $ECHO_N "(cached) $ECHO_C" >&6
33149 else
33150   cat >conftest.$ac_ext <<_ACEOF
33151 /* confdefs.h.  */
33152 _ACEOF
33153 cat confdefs.h >>conftest.$ac_ext
33154 cat >>conftest.$ac_ext <<_ACEOF
33155 /* end confdefs.h.  */
33156 /* Define strncasecmp to an innocuous variant, in case <limits.h> declares strncasecmp.
33157    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33158 #define strncasecmp innocuous_strncasecmp
33160 /* System header to define __stub macros and hopefully few prototypes,
33161     which can conflict with char strncasecmp (); below.
33162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33163     <limits.h> exists even on freestanding compilers.  */
33165 #ifdef __STDC__
33166 # include <limits.h>
33167 #else
33168 # include <assert.h>
33169 #endif
33171 #undef strncasecmp
33173 /* Override any GCC internal prototype to avoid an error.
33174    Use char because int might match the return type of a GCC
33175    builtin and then its argument prototype would still apply.  */
33176 #ifdef __cplusplus
33177 extern "C"
33178 #endif
33179 char strncasecmp ();
33180 /* The GNU C library defines this for functions which it implements
33181     to always fail with ENOSYS.  Some functions are actually named
33182     something starting with __ and the normal name is an alias.  */
33183 #if defined __stub_strncasecmp || defined __stub___strncasecmp
33184 choke me
33185 #endif
33187 int
33188 main ()
33190 return strncasecmp ();
33191   ;
33192   return 0;
33194 _ACEOF
33195 rm -f conftest.$ac_objext conftest$ac_exeext
33196 if { (ac_try="$ac_link"
33197 case "(($ac_try" in
33198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33199   *) ac_try_echo=$ac_try;;
33200 esac
33201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33202   (eval "$ac_link") 2>conftest.er1
33203   ac_status=$?
33204   grep -v '^ *+' conftest.er1 >conftest.err
33205   rm -f conftest.er1
33206   cat conftest.err >&5
33207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33208   (exit $ac_status); } && {
33209          test -z "$ac_c_werror_flag" ||
33210          test ! -s conftest.err
33211        } && test -s conftest$ac_exeext &&
33212        $as_test_x conftest$ac_exeext; then
33213   ac_cv_func_strncasecmp=yes
33214 else
33215   echo "$as_me: failed program was:" >&5
33216 sed 's/^/| /' conftest.$ac_ext >&5
33218         ac_cv_func_strncasecmp=no
33221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33222       conftest$ac_exeext conftest.$ac_ext
33224 { echo "$as_me:$LINENO: result: $ac_cv_func_strncasecmp" >&5
33225 echo "${ECHO_T}$ac_cv_func_strncasecmp" >&6; }
33226 if test $ac_cv_func_strncasecmp = yes; then
33227   :
33228 else
33230 cat >>confdefs.h <<\_ACEOF
33231 #define NEED_STRNCASECMP 1
33232 _ACEOF
33236 { echo "$as_me:$LINENO: checking for strcasestr" >&5
33237 echo $ECHO_N "checking for strcasestr... $ECHO_C" >&6; }
33238 if test "${ac_cv_func_strcasestr+set}" = set; then
33239   echo $ECHO_N "(cached) $ECHO_C" >&6
33240 else
33241   cat >conftest.$ac_ext <<_ACEOF
33242 /* confdefs.h.  */
33243 _ACEOF
33244 cat confdefs.h >>conftest.$ac_ext
33245 cat >>conftest.$ac_ext <<_ACEOF
33246 /* end confdefs.h.  */
33247 /* Define strcasestr to an innocuous variant, in case <limits.h> declares strcasestr.
33248    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33249 #define strcasestr innocuous_strcasestr
33251 /* System header to define __stub macros and hopefully few prototypes,
33252     which can conflict with char strcasestr (); below.
33253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33254     <limits.h> exists even on freestanding compilers.  */
33256 #ifdef __STDC__
33257 # include <limits.h>
33258 #else
33259 # include <assert.h>
33260 #endif
33262 #undef strcasestr
33264 /* Override any GCC internal prototype to avoid an error.
33265    Use char because int might match the return type of a GCC
33266    builtin and then its argument prototype would still apply.  */
33267 #ifdef __cplusplus
33268 extern "C"
33269 #endif
33270 char strcasestr ();
33271 /* The GNU C library defines this for functions which it implements
33272     to always fail with ENOSYS.  Some functions are actually named
33273     something starting with __ and the normal name is an alias.  */
33274 #if defined __stub_strcasestr || defined __stub___strcasestr
33275 choke me
33276 #endif
33278 int
33279 main ()
33281 return strcasestr ();
33282   ;
33283   return 0;
33285 _ACEOF
33286 rm -f conftest.$ac_objext conftest$ac_exeext
33287 if { (ac_try="$ac_link"
33288 case "(($ac_try" in
33289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33290   *) ac_try_echo=$ac_try;;
33291 esac
33292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33293   (eval "$ac_link") 2>conftest.er1
33294   ac_status=$?
33295   grep -v '^ *+' conftest.er1 >conftest.err
33296   rm -f conftest.er1
33297   cat conftest.err >&5
33298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299   (exit $ac_status); } && {
33300          test -z "$ac_c_werror_flag" ||
33301          test ! -s conftest.err
33302        } && test -s conftest$ac_exeext &&
33303        $as_test_x conftest$ac_exeext; then
33304   ac_cv_func_strcasestr=yes
33305 else
33306   echo "$as_me: failed program was:" >&5
33307 sed 's/^/| /' conftest.$ac_ext >&5
33309         ac_cv_func_strcasestr=no
33312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33313       conftest$ac_exeext conftest.$ac_ext
33315 { echo "$as_me:$LINENO: result: $ac_cv_func_strcasestr" >&5
33316 echo "${ECHO_T}$ac_cv_func_strcasestr" >&6; }
33317 if test $ac_cv_func_strcasestr = yes; then
33318   :
33319 else
33321 cat >>confdefs.h <<\_ACEOF
33322 #define NEED_STRCASESTR 1
33323 _ACEOF
33329 pkg_failed=no
33330 { echo "$as_me:$LINENO: checking for XDMCP" >&5
33331 echo $ECHO_N "checking for XDMCP... $ECHO_C" >&6; }
33333 if test -n "$XDMCP_CFLAGS"; then
33334     pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
33335  elif test -n "$PKG_CONFIG"; then
33336     if test -n "$PKG_CONFIG" && \
33337     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xdmcp\"") >&5
33338   ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
33339   ac_status=$?
33340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33341   (exit $ac_status); }; then
33342   pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
33343 else
33344   pkg_failed=yes
33346  else
33347     pkg_failed=untried
33349 if test -n "$XDMCP_LIBS"; then
33350     pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
33351  elif test -n "$PKG_CONFIG"; then
33352     if test -n "$PKG_CONFIG" && \
33353     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xdmcp\"") >&5
33354   ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
33355   ac_status=$?
33356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33357   (exit $ac_status); }; then
33358   pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
33359 else
33360   pkg_failed=yes
33362  else
33363     pkg_failed=untried
33368 if test $pkg_failed = yes; then
33369         { echo "$as_me:$LINENO: result: no" >&5
33370 echo "${ECHO_T}no" >&6; }
33372 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33373         _pkg_short_errors_supported=yes
33374 else
33375         _pkg_short_errors_supported=no
33377         if test $_pkg_short_errors_supported = yes; then
33378                 XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xdmcp" 2>&1`
33379         else
33380                 XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xdmcp" 2>&1`
33381         fi
33382         # Put the nasty error message in config.log where it belongs
33383         echo "$XDMCP_PKG_ERRORS" >&5
33385         have_libxdmcp="no"
33386 elif test $pkg_failed = untried; then
33387         { echo "$as_me:$LINENO: result: no" >&5
33388 echo "${ECHO_T}no" >&6; }
33389         have_libxdmcp="no"
33390 else
33391         XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
33392         XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
33393         { echo "$as_me:$LINENO: result: yes" >&5
33394 echo "${ECHO_T}yes" >&6; }
33395         have_libxdmcp="yes"
33397 if test "x$have_libxdmcp" = xyes; then
33398         { echo "$as_me:$LINENO: checking for XdmcpWrap in -lXdmcp" >&5
33399 echo $ECHO_N "checking for XdmcpWrap in -lXdmcp... $ECHO_C" >&6; }
33400 if test "${ac_cv_lib_Xdmcp_XdmcpWrap+set}" = set; then
33401   echo $ECHO_N "(cached) $ECHO_C" >&6
33402 else
33403   ac_check_lib_save_LIBS=$LIBS
33404 LIBS="-lXdmcp $XDMCP_LIBS $LIBS"
33405 cat >conftest.$ac_ext <<_ACEOF
33406 /* confdefs.h.  */
33407 _ACEOF
33408 cat confdefs.h >>conftest.$ac_ext
33409 cat >>conftest.$ac_ext <<_ACEOF
33410 /* end confdefs.h.  */
33412 /* Override any GCC internal prototype to avoid an error.
33413    Use char because int might match the return type of a GCC
33414    builtin and then its argument prototype would still apply.  */
33415 #ifdef __cplusplus
33416 extern "C"
33417 #endif
33418 char XdmcpWrap ();
33419 int
33420 main ()
33422 return XdmcpWrap ();
33423   ;
33424   return 0;
33426 _ACEOF
33427 rm -f conftest.$ac_objext conftest$ac_exeext
33428 if { (ac_try="$ac_link"
33429 case "(($ac_try" in
33430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33431   *) ac_try_echo=$ac_try;;
33432 esac
33433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33434   (eval "$ac_link") 2>conftest.er1
33435   ac_status=$?
33436   grep -v '^ *+' conftest.er1 >conftest.err
33437   rm -f conftest.er1
33438   cat conftest.err >&5
33439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33440   (exit $ac_status); } && {
33441          test -z "$ac_c_werror_flag" ||
33442          test ! -s conftest.err
33443        } && test -s conftest$ac_exeext &&
33444        $as_test_x conftest$ac_exeext; then
33445   ac_cv_lib_Xdmcp_XdmcpWrap=yes
33446 else
33447   echo "$as_me: failed program was:" >&5
33448 sed 's/^/| /' conftest.$ac_ext >&5
33450         ac_cv_lib_Xdmcp_XdmcpWrap=no
33453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33454       conftest$ac_exeext conftest.$ac_ext
33455 LIBS=$ac_check_lib_save_LIBS
33457 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
33458 echo "${ECHO_T}$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
33459 if test $ac_cv_lib_Xdmcp_XdmcpWrap = yes; then
33460   have_xdmcpwrap="yes"
33461 else
33462   have_xdmcpwrap="no"
33466 if test "x$XDMCP" = xauto; then
33467         if test "x$have_libxdmcp" = xyes; then
33468                 XDMCP=yes
33469         else
33470                 XDMCP=no
33471         fi
33473 if test "x$XDMAUTH" = xauto; then
33474         if test "x$have_libxdmcp" = xyes && test "x$have_xdmcpwrap" = xyes; then
33475                 XDMAUTH=yes
33476         else
33477                 XDMAUTH=no
33478         fi
33481  if test "x$XDMCP" = xyes; then
33482   XDMCP_TRUE=
33483   XDMCP_FALSE='#'
33484 else
33485   XDMCP_TRUE='#'
33486   XDMCP_FALSE=
33489 if test "x$XDMCP" = xyes; then
33491 cat >>confdefs.h <<\_ACEOF
33492 #define XDMCP 1
33493 _ACEOF
33495         REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
33496         XDMCP_MODULES="xdmcp"
33499  if test "x$XDMAUTH" = xyes; then
33500   XDMAUTH_TRUE=
33501   XDMAUTH_FALSE='#'
33502 else
33503   XDMAUTH_TRUE='#'
33504   XDMAUTH_FALSE=
33507 if test "x$XDMAUTH" = xyes; then
33509 cat >>confdefs.h <<\_ACEOF
33510 #define HASXDMAUTH 1
33511 _ACEOF
33513         if ! test "x$XDMCP" = xyes; then
33514                 REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
33515                 XDMCP_MODULES="xdmcp"
33516         fi
33520   prefix_NONE=
33521   exec_prefix_NONE=
33522   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33523   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33524   eval ac_define_dir="\"$FONTPATH\""
33525   eval ac_define_dir="\"$ac_define_dir\""
33526   COMPILEDDEFAULTFONTPATH="$ac_define_dir"
33529 cat >>confdefs.h <<_ACEOF
33530 #define COMPILEDDEFAULTFONTPATH "$ac_define_dir"
33531 _ACEOF
33533   test "$prefix_NONE" && prefix=NONE
33534   test "$exec_prefix_NONE" && exec_prefix=NONE
33537   prefix_NONE=
33538   exec_prefix_NONE=
33539   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33540   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33541   eval ac_define_dir="\"$PCI_TXT_IDS_DIR\""
33542   eval ac_define_dir="\"$ac_define_dir\""
33543   PCI_TXT_IDS_PATH="$ac_define_dir"
33546 cat >>confdefs.h <<_ACEOF
33547 #define PCI_TXT_IDS_PATH "$ac_define_dir"
33548 _ACEOF
33550   test "$prefix_NONE" && prefix=NONE
33551   test "$exec_prefix_NONE" && exec_prefix=NONE
33554   prefix_NONE=
33555   exec_prefix_NONE=
33556   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33557   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33558   eval ac_define_dir="\"$SERVERCONFIG\""
33559   eval ac_define_dir="\"$ac_define_dir\""
33560   SERVER_MISC_CONFIG_PATH="$ac_define_dir"
33563 cat >>confdefs.h <<_ACEOF
33564 #define SERVER_MISC_CONFIG_PATH "$ac_define_dir"
33565 _ACEOF
33567   test "$prefix_NONE" && prefix=NONE
33568   test "$exec_prefix_NONE" && exec_prefix=NONE
33571   prefix_NONE=
33572   exec_prefix_NONE=
33573   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33574   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33575   eval ac_define_dir="\"$FONTROOTDIR\""
33576   eval ac_define_dir="\"$ac_define_dir\""
33577   BASE_FONT_PATH="$ac_define_dir"
33580 cat >>confdefs.h <<_ACEOF
33581 #define BASE_FONT_PATH "$ac_define_dir"
33582 _ACEOF
33584   test "$prefix_NONE" && prefix=NONE
33585   test "$exec_prefix_NONE" && exec_prefix=NONE
33587 dridriverdir=`$PKG_CONFIG --variable=dridriverdir dri`
33589   prefix_NONE=
33590   exec_prefix_NONE=
33591   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33592   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33593   eval ac_define_dir="\"$dridriverdir\""
33594   eval ac_define_dir="\"$ac_define_dir\""
33595   DRI_DRIVER_PATH="$ac_define_dir"
33598 cat >>confdefs.h <<_ACEOF
33599 #define DRI_DRIVER_PATH "$ac_define_dir"
33600 _ACEOF
33602   test "$prefix_NONE" && prefix=NONE
33603   test "$exec_prefix_NONE" && exec_prefix=NONE
33606 cat >>confdefs.h <<_ACEOF
33607 #define XVENDORNAME "$VENDOR_NAME"
33608 _ACEOF
33611 cat >>confdefs.h <<_ACEOF
33612 #define XVENDORNAMESHORT "$VENDOR_NAME_SHORT"
33613 _ACEOF
33616 cat >>confdefs.h <<_ACEOF
33617 #define XORG_DATE "$RELEASE_DATE"
33618 _ACEOF
33621 cat >>confdefs.h <<_ACEOF
33622 #define XORG_MAN_VERSION "$VENDOR_MAN_VERSION"
33623 _ACEOF
33626 cat >>confdefs.h <<_ACEOF
33627 #define BUILDERADDR "$BUILDERADDR"
33628 _ACEOF
33631 if test -z "$OSNAME"; then
33632     OSNAME="UNKNOWN"
33636 cat >>confdefs.h <<_ACEOF
33637 #define OSNAME "$OSNAME"
33638 _ACEOF
33641 cat >>confdefs.h <<_ACEOF
33642 #define OSVENDOR "$OSVENDOR"
33643 _ACEOF
33646 cat >>confdefs.h <<_ACEOF
33647 #define BUILDERSTRING "$BUILDERSTRING"
33648 _ACEOF
33653 cat >>confdefs.h <<_ACEOF
33654 #define VENDOR_NAME "$VENDOR_NAME"
33655 _ACEOF
33658 cat >>confdefs.h <<_ACEOF
33659 #define VENDOR_NAME_SHORT "$VENDOR_NAME_SHORT"
33660 _ACEOF
33663 cat >>confdefs.h <<_ACEOF
33664 #define VENDOR_RELEASE $VENDOR_RELEASE
33665 _ACEOF
33668 cat >>confdefs.h <<_ACEOF
33669 #define VENDOR_MAN_VERSION "$VENDOR_MAN_VERSION"
33670 _ACEOF
33674 cat >>confdefs.h <<\_ACEOF
33675 #define NO_LIBCWRAPPER 1
33676 _ACEOF
33679 if test "x$DEBUGGING" = xyes; then
33681 cat >>confdefs.h <<\_ACEOF
33682 #define DEBUG 1
33683 _ACEOF
33686  if test "x$DEBUGGING" = xyes; then
33687   DEBUG_TRUE=
33688   DEBUG_FALSE='#'
33689 else
33690   DEBUG_TRUE='#'
33691   DEBUG_FALSE=
33696 cat >>confdefs.h <<\_ACEOF
33697 #define XTEST 1
33698 _ACEOF
33701 cat >>confdefs.h <<\_ACEOF
33702 #define XSYNC 1
33703 _ACEOF
33706 cat >>confdefs.h <<\_ACEOF
33707 #define XCMISC 1
33708 _ACEOF
33711 cat >>confdefs.h <<\_ACEOF
33712 #define BIGREQS 1
33713 _ACEOF
33716 if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes" ; then
33717   DIX_LIB='$(top_builddir)/dix/dix.O'
33718   OS_LIB='$(top_builddir)/os/os.O $(SHA1_LIBS) $(DLOPEN_LIBS)'
33719 else
33720   DIX_LIB='$(top_builddir)/dix/libdix.la'
33721   OS_LIB='$(top_builddir)/os/libos.la'
33726 MAIN_LIB='$(top_builddir)/dix/libmain.la'
33729 MI_LIB='$(top_builddir)/mi/libmi.la'
33730 MI_EXT_LIB='$(top_builddir)/mi/libmiext.la'
33731 MI_INC='-I$(top_srcdir)/mi'
33732 FB_LIB='$(top_builddir)/fb/libfb.la'
33733 FB_INC='-I$(top_srcdir)/fb'
33734 MIEXT_SHADOW_INC='-I$(top_srcdir)/miext/shadow'
33735 MIEXT_SHADOW_LIB='$(top_builddir)/miext/shadow/libshadow.la'
33736 MIEXT_SYNC_INC='-I$(top_srcdir)/miext/sync'
33737 MIEXT_SYNC_LIB='$(top_builddir)/miext/sync/libsync.la'
33738 CORE_INCS='-I$(top_srcdir)/include -I$(top_builddir)/include'
33740 # SHA1 hashing
33742 # Check whether --with-sha1 was given.
33743 if test "${with_sha1+set}" = set; then
33744   withval=$with_sha1;
33747 { echo "$as_me:$LINENO: checking for SHA1Init" >&5
33748 echo $ECHO_N "checking for SHA1Init... $ECHO_C" >&6; }
33749 if test "${ac_cv_func_SHA1Init+set}" = set; then
33750   echo $ECHO_N "(cached) $ECHO_C" >&6
33751 else
33752   cat >conftest.$ac_ext <<_ACEOF
33753 /* confdefs.h.  */
33754 _ACEOF
33755 cat confdefs.h >>conftest.$ac_ext
33756 cat >>conftest.$ac_ext <<_ACEOF
33757 /* end confdefs.h.  */
33758 /* Define SHA1Init to an innocuous variant, in case <limits.h> declares SHA1Init.
33759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33760 #define SHA1Init innocuous_SHA1Init
33762 /* System header to define __stub macros and hopefully few prototypes,
33763     which can conflict with char SHA1Init (); below.
33764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33765     <limits.h> exists even on freestanding compilers.  */
33767 #ifdef __STDC__
33768 # include <limits.h>
33769 #else
33770 # include <assert.h>
33771 #endif
33773 #undef SHA1Init
33775 /* Override any GCC internal prototype to avoid an error.
33776    Use char because int might match the return type of a GCC
33777    builtin and then its argument prototype would still apply.  */
33778 #ifdef __cplusplus
33779 extern "C"
33780 #endif
33781 char SHA1Init ();
33782 /* The GNU C library defines this for functions which it implements
33783     to always fail with ENOSYS.  Some functions are actually named
33784     something starting with __ and the normal name is an alias.  */
33785 #if defined __stub_SHA1Init || defined __stub___SHA1Init
33786 choke me
33787 #endif
33789 int
33790 main ()
33792 return SHA1Init ();
33793   ;
33794   return 0;
33796 _ACEOF
33797 rm -f conftest.$ac_objext conftest$ac_exeext
33798 if { (ac_try="$ac_link"
33799 case "(($ac_try" in
33800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33801   *) ac_try_echo=$ac_try;;
33802 esac
33803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33804   (eval "$ac_link") 2>conftest.er1
33805   ac_status=$?
33806   grep -v '^ *+' conftest.er1 >conftest.err
33807   rm -f conftest.er1
33808   cat conftest.err >&5
33809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33810   (exit $ac_status); } && {
33811          test -z "$ac_c_werror_flag" ||
33812          test ! -s conftest.err
33813        } && test -s conftest$ac_exeext &&
33814        $as_test_x conftest$ac_exeext; then
33815   ac_cv_func_SHA1Init=yes
33816 else
33817   echo "$as_me: failed program was:" >&5
33818 sed 's/^/| /' conftest.$ac_ext >&5
33820         ac_cv_func_SHA1Init=no
33823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33824       conftest$ac_exeext conftest.$ac_ext
33826 { echo "$as_me:$LINENO: result: $ac_cv_func_SHA1Init" >&5
33827 echo "${ECHO_T}$ac_cv_func_SHA1Init" >&6; }
33828 if test $ac_cv_func_SHA1Init = yes; then
33829   HAVE_SHA1_IN_LIBC=yes
33832 if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_LIBC" = xyes; then
33833         with_sha1=libc
33835 if test "x$with_sha1" = xlibc && test "x$HAVE_SHA1_IN_LIBC" != xyes; then
33836         { { echo "$as_me:$LINENO: error: libc requested but not found" >&5
33837 echo "$as_me: error: libc requested but not found" >&2;}
33838    { (exit 1); exit 1; }; }
33840 if test "x$with_sha1" = xlibc; then
33842 cat >>confdefs.h <<\_ACEOF
33843 #define HAVE_SHA1_IN_LIBC 1
33844 _ACEOF
33846         SHA1_LIBS=""
33848 { echo "$as_me:$LINENO: checking for CC_SHA1_Init" >&5
33849 echo $ECHO_N "checking for CC_SHA1_Init... $ECHO_C" >&6; }
33850 if test "${ac_cv_func_CC_SHA1_Init+set}" = set; then
33851   echo $ECHO_N "(cached) $ECHO_C" >&6
33852 else
33853   cat >conftest.$ac_ext <<_ACEOF
33854 /* confdefs.h.  */
33855 _ACEOF
33856 cat confdefs.h >>conftest.$ac_ext
33857 cat >>conftest.$ac_ext <<_ACEOF
33858 /* end confdefs.h.  */
33859 /* Define CC_SHA1_Init to an innocuous variant, in case <limits.h> declares CC_SHA1_Init.
33860    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33861 #define CC_SHA1_Init innocuous_CC_SHA1_Init
33863 /* System header to define __stub macros and hopefully few prototypes,
33864     which can conflict with char CC_SHA1_Init (); below.
33865     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33866     <limits.h> exists even on freestanding compilers.  */
33868 #ifdef __STDC__
33869 # include <limits.h>
33870 #else
33871 # include <assert.h>
33872 #endif
33874 #undef CC_SHA1_Init
33876 /* Override any GCC internal prototype to avoid an error.
33877    Use char because int might match the return type of a GCC
33878    builtin and then its argument prototype would still apply.  */
33879 #ifdef __cplusplus
33880 extern "C"
33881 #endif
33882 char CC_SHA1_Init ();
33883 /* The GNU C library defines this for functions which it implements
33884     to always fail with ENOSYS.  Some functions are actually named
33885     something starting with __ and the normal name is an alias.  */
33886 #if defined __stub_CC_SHA1_Init || defined __stub___CC_SHA1_Init
33887 choke me
33888 #endif
33890 int
33891 main ()
33893 return CC_SHA1_Init ();
33894   ;
33895   return 0;
33897 _ACEOF
33898 rm -f conftest.$ac_objext conftest$ac_exeext
33899 if { (ac_try="$ac_link"
33900 case "(($ac_try" in
33901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33902   *) ac_try_echo=$ac_try;;
33903 esac
33904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33905   (eval "$ac_link") 2>conftest.er1
33906   ac_status=$?
33907   grep -v '^ *+' conftest.er1 >conftest.err
33908   rm -f conftest.er1
33909   cat conftest.err >&5
33910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33911   (exit $ac_status); } && {
33912          test -z "$ac_c_werror_flag" ||
33913          test ! -s conftest.err
33914        } && test -s conftest$ac_exeext &&
33915        $as_test_x conftest$ac_exeext; then
33916   ac_cv_func_CC_SHA1_Init=yes
33917 else
33918   echo "$as_me: failed program was:" >&5
33919 sed 's/^/| /' conftest.$ac_ext >&5
33921         ac_cv_func_CC_SHA1_Init=no
33924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33925       conftest$ac_exeext conftest.$ac_ext
33927 { echo "$as_me:$LINENO: result: $ac_cv_func_CC_SHA1_Init" >&5
33928 echo "${ECHO_T}$ac_cv_func_CC_SHA1_Init" >&6; }
33929 if test $ac_cv_func_CC_SHA1_Init = yes; then
33930   HAVE_SHA1_IN_COMMONCRYPTO=yes
33933 if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_COMMONCRYPTO" = xyes; then
33934         with_sha1=CommonCrypto
33936 if test "x$with_sha1" = xCommonCrypto && test "x$HAVE_SHA1_IN_COMMONCRYPTO" != xyes; then
33937         { { echo "$as_me:$LINENO: error: CommonCrypto requested but not found" >&5
33938 echo "$as_me: error: CommonCrypto requested but not found" >&2;}
33939    { (exit 1); exit 1; }; }
33941 if test "x$with_sha1" = xCommonCrypto; then
33943 cat >>confdefs.h <<\_ACEOF
33944 #define HAVE_SHA1_IN_COMMONCRYPTO 1
33945 _ACEOF
33947         SHA1_LIBS=""
33949 { echo "$as_me:$LINENO: checking for SHA1Init in -lmd" >&5
33950 echo $ECHO_N "checking for SHA1Init in -lmd... $ECHO_C" >&6; }
33951 if test "${ac_cv_lib_md_SHA1Init+set}" = set; then
33952   echo $ECHO_N "(cached) $ECHO_C" >&6
33953 else
33954   ac_check_lib_save_LIBS=$LIBS
33955 LIBS="-lmd  $LIBS"
33956 cat >conftest.$ac_ext <<_ACEOF
33957 /* confdefs.h.  */
33958 _ACEOF
33959 cat confdefs.h >>conftest.$ac_ext
33960 cat >>conftest.$ac_ext <<_ACEOF
33961 /* end confdefs.h.  */
33963 /* Override any GCC internal prototype to avoid an error.
33964    Use char because int might match the return type of a GCC
33965    builtin and then its argument prototype would still apply.  */
33966 #ifdef __cplusplus
33967 extern "C"
33968 #endif
33969 char SHA1Init ();
33970 int
33971 main ()
33973 return SHA1Init ();
33974   ;
33975   return 0;
33977 _ACEOF
33978 rm -f conftest.$ac_objext conftest$ac_exeext
33979 if { (ac_try="$ac_link"
33980 case "(($ac_try" in
33981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33982   *) ac_try_echo=$ac_try;;
33983 esac
33984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33985   (eval "$ac_link") 2>conftest.er1
33986   ac_status=$?
33987   grep -v '^ *+' conftest.er1 >conftest.err
33988   rm -f conftest.er1
33989   cat conftest.err >&5
33990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33991   (exit $ac_status); } && {
33992          test -z "$ac_c_werror_flag" ||
33993          test ! -s conftest.err
33994        } && test -s conftest$ac_exeext &&
33995        $as_test_x conftest$ac_exeext; then
33996   ac_cv_lib_md_SHA1Init=yes
33997 else
33998   echo "$as_me: failed program was:" >&5
33999 sed 's/^/| /' conftest.$ac_ext >&5
34001         ac_cv_lib_md_SHA1Init=no
34004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34005       conftest$ac_exeext conftest.$ac_ext
34006 LIBS=$ac_check_lib_save_LIBS
34008 { echo "$as_me:$LINENO: result: $ac_cv_lib_md_SHA1Init" >&5
34009 echo "${ECHO_T}$ac_cv_lib_md_SHA1Init" >&6; }
34010 if test $ac_cv_lib_md_SHA1Init = yes; then
34011   HAVE_LIBMD=yes
34014 if test "x$with_sha1" = x && test "x$HAVE_LIBMD" = xyes; then
34015         with_sha1=libmd
34017 if test "x$with_sha1" = xlibmd && test "x$HAVE_LIBMD" != xyes; then
34018         { { echo "$as_me:$LINENO: error: libmd requested but not found" >&5
34019 echo "$as_me: error: libmd requested but not found" >&2;}
34020    { (exit 1); exit 1; }; }
34022 if test "x$with_sha1" = xlibmd; then
34024 cat >>confdefs.h <<\_ACEOF
34025 #define HAVE_SHA1_IN_LIBMD 1
34026 _ACEOF
34028         SHA1_LIBS=-lmd
34031 pkg_failed=no
34032 { echo "$as_me:$LINENO: checking for LIBSHA1" >&5
34033 echo $ECHO_N "checking for LIBSHA1... $ECHO_C" >&6; }
34035 if test -n "$LIBSHA1_CFLAGS"; then
34036     pkg_cv_LIBSHA1_CFLAGS="$LIBSHA1_CFLAGS"
34037  elif test -n "$PKG_CONFIG"; then
34038     if test -n "$PKG_CONFIG" && \
34039     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsha1\"") >&5
34040   ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5
34041   ac_status=$?
34042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34043   (exit $ac_status); }; then
34044   pkg_cv_LIBSHA1_CFLAGS=`$PKG_CONFIG --cflags "libsha1" 2>/dev/null`
34045 else
34046   pkg_failed=yes
34048  else
34049     pkg_failed=untried
34051 if test -n "$LIBSHA1_LIBS"; then
34052     pkg_cv_LIBSHA1_LIBS="$LIBSHA1_LIBS"
34053  elif test -n "$PKG_CONFIG"; then
34054     if test -n "$PKG_CONFIG" && \
34055     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsha1\"") >&5
34056   ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5
34057   ac_status=$?
34058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34059   (exit $ac_status); }; then
34060   pkg_cv_LIBSHA1_LIBS=`$PKG_CONFIG --libs "libsha1" 2>/dev/null`
34061 else
34062   pkg_failed=yes
34064  else
34065     pkg_failed=untried
34070 if test $pkg_failed = yes; then
34071         { echo "$as_me:$LINENO: result: no" >&5
34072 echo "${ECHO_T}no" >&6; }
34074 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34075         _pkg_short_errors_supported=yes
34076 else
34077         _pkg_short_errors_supported=no
34079         if test $_pkg_short_errors_supported = yes; then
34080                 LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libsha1" 2>&1`
34081         else
34082                 LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --print-errors "libsha1" 2>&1`
34083         fi
34084         # Put the nasty error message in config.log where it belongs
34085         echo "$LIBSHA1_PKG_ERRORS" >&5
34087         HAVE_LIBSHA1=no
34088 elif test $pkg_failed = untried; then
34089         { echo "$as_me:$LINENO: result: no" >&5
34090 echo "${ECHO_T}no" >&6; }
34091         HAVE_LIBSHA1=no
34092 else
34093         LIBSHA1_CFLAGS=$pkg_cv_LIBSHA1_CFLAGS
34094         LIBSHA1_LIBS=$pkg_cv_LIBSHA1_LIBS
34095         { echo "$as_me:$LINENO: result: yes" >&5
34096 echo "${ECHO_T}yes" >&6; }
34097         HAVE_LIBSHA1=yes
34099 if test "x$with_sha1" = x && test "x$HAVE_LIBSHA1" = xyes; then
34100    with_sha1=libsha1
34102 if test "x$with_sha1" = xlibsha1 && test "x$HAVE_LIBSHA1" != xyes; then
34103         { { echo "$as_me:$LINENO: error: libsha1 requested but not found" >&5
34104 echo "$as_me: error: libsha1 requested but not found" >&2;}
34105    { (exit 1); exit 1; }; }
34107 if test "x$with_sha1" = xlibsha1; then
34109 cat >>confdefs.h <<\_ACEOF
34110 #define HAVE_SHA1_IN_LIBSHA1 1
34111 _ACEOF
34113         SHA1_LIBS=-lsha1
34115 { echo "$as_me:$LINENO: checking for gcry_md_open in -lgcrypt" >&5
34116 echo $ECHO_N "checking for gcry_md_open in -lgcrypt... $ECHO_C" >&6; }
34117 if test "${ac_cv_lib_gcrypt_gcry_md_open+set}" = set; then
34118   echo $ECHO_N "(cached) $ECHO_C" >&6
34119 else
34120   ac_check_lib_save_LIBS=$LIBS
34121 LIBS="-lgcrypt  $LIBS"
34122 cat >conftest.$ac_ext <<_ACEOF
34123 /* confdefs.h.  */
34124 _ACEOF
34125 cat confdefs.h >>conftest.$ac_ext
34126 cat >>conftest.$ac_ext <<_ACEOF
34127 /* end confdefs.h.  */
34129 /* Override any GCC internal prototype to avoid an error.
34130    Use char because int might match the return type of a GCC
34131    builtin and then its argument prototype would still apply.  */
34132 #ifdef __cplusplus
34133 extern "C"
34134 #endif
34135 char gcry_md_open ();
34136 int
34137 main ()
34139 return gcry_md_open ();
34140   ;
34141   return 0;
34143 _ACEOF
34144 rm -f conftest.$ac_objext conftest$ac_exeext
34145 if { (ac_try="$ac_link"
34146 case "(($ac_try" in
34147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34148   *) ac_try_echo=$ac_try;;
34149 esac
34150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34151   (eval "$ac_link") 2>conftest.er1
34152   ac_status=$?
34153   grep -v '^ *+' conftest.er1 >conftest.err
34154   rm -f conftest.er1
34155   cat conftest.err >&5
34156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34157   (exit $ac_status); } && {
34158          test -z "$ac_c_werror_flag" ||
34159          test ! -s conftest.err
34160        } && test -s conftest$ac_exeext &&
34161        $as_test_x conftest$ac_exeext; then
34162   ac_cv_lib_gcrypt_gcry_md_open=yes
34163 else
34164   echo "$as_me: failed program was:" >&5
34165 sed 's/^/| /' conftest.$ac_ext >&5
34167         ac_cv_lib_gcrypt_gcry_md_open=no
34170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34171       conftest$ac_exeext conftest.$ac_ext
34172 LIBS=$ac_check_lib_save_LIBS
34174 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcrypt_gcry_md_open" >&5
34175 echo "${ECHO_T}$ac_cv_lib_gcrypt_gcry_md_open" >&6; }
34176 if test $ac_cv_lib_gcrypt_gcry_md_open = yes; then
34177   HAVE_LIBGCRYPT=yes
34180 if test "x$with_sha1" = x && test "x$HAVE_LIBGCRYPT" = xyes; then
34181         with_sha1=libgcrypt
34183 if test "x$with_sha1" = xlibgcrypt && test "x$HAVE_LIBGCRYPT" != xyes; then
34184         { { echo "$as_me:$LINENO: error: libgcrypt requested but not found" >&5
34185 echo "$as_me: error: libgcrypt requested but not found" >&2;}
34186    { (exit 1); exit 1; }; }
34188 if test "x$with_sha1" = xlibgcrypt; then
34190 cat >>confdefs.h <<\_ACEOF
34191 #define HAVE_SHA1_IN_LIBGCRYPT 1
34192 _ACEOF
34194         SHA1_LIBS=-lgcrypt
34196 # We don't need all of the OpenSSL libraries, just libcrypto
34197 { echo "$as_me:$LINENO: checking for SHA1_Init in -lcrypto" >&5
34198 echo $ECHO_N "checking for SHA1_Init in -lcrypto... $ECHO_C" >&6; }
34199 if test "${ac_cv_lib_crypto_SHA1_Init+set}" = set; then
34200   echo $ECHO_N "(cached) $ECHO_C" >&6
34201 else
34202   ac_check_lib_save_LIBS=$LIBS
34203 LIBS="-lcrypto  $LIBS"
34204 cat >conftest.$ac_ext <<_ACEOF
34205 /* confdefs.h.  */
34206 _ACEOF
34207 cat confdefs.h >>conftest.$ac_ext
34208 cat >>conftest.$ac_ext <<_ACEOF
34209 /* end confdefs.h.  */
34211 /* Override any GCC internal prototype to avoid an error.
34212    Use char because int might match the return type of a GCC
34213    builtin and then its argument prototype would still apply.  */
34214 #ifdef __cplusplus
34215 extern "C"
34216 #endif
34217 char SHA1_Init ();
34218 int
34219 main ()
34221 return SHA1_Init ();
34222   ;
34223   return 0;
34225 _ACEOF
34226 rm -f conftest.$ac_objext conftest$ac_exeext
34227 if { (ac_try="$ac_link"
34228 case "(($ac_try" in
34229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34230   *) ac_try_echo=$ac_try;;
34231 esac
34232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34233   (eval "$ac_link") 2>conftest.er1
34234   ac_status=$?
34235   grep -v '^ *+' conftest.er1 >conftest.err
34236   rm -f conftest.er1
34237   cat conftest.err >&5
34238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34239   (exit $ac_status); } && {
34240          test -z "$ac_c_werror_flag" ||
34241          test ! -s conftest.err
34242        } && test -s conftest$ac_exeext &&
34243        $as_test_x conftest$ac_exeext; then
34244   ac_cv_lib_crypto_SHA1_Init=yes
34245 else
34246   echo "$as_me: failed program was:" >&5
34247 sed 's/^/| /' conftest.$ac_ext >&5
34249         ac_cv_lib_crypto_SHA1_Init=no
34252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34253       conftest$ac_exeext conftest.$ac_ext
34254 LIBS=$ac_check_lib_save_LIBS
34256 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_SHA1_Init" >&5
34257 echo "${ECHO_T}$ac_cv_lib_crypto_SHA1_Init" >&6; }
34258 if test $ac_cv_lib_crypto_SHA1_Init = yes; then
34259   HAVE_LIBCRYPTO=yes
34263 pkg_failed=no
34264 { echo "$as_me:$LINENO: checking for OPENSSL" >&5
34265 echo $ECHO_N "checking for OPENSSL... $ECHO_C" >&6; }
34267 if test -n "$OPENSSL_CFLAGS"; then
34268     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
34269  elif test -n "$PKG_CONFIG"; then
34270     if test -n "$PKG_CONFIG" && \
34271     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openssl\"") >&5
34272   ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
34273   ac_status=$?
34274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34275   (exit $ac_status); }; then
34276   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
34277 else
34278   pkg_failed=yes
34280  else
34281     pkg_failed=untried
34283 if test -n "$OPENSSL_LIBS"; then
34284     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
34285  elif test -n "$PKG_CONFIG"; then
34286     if test -n "$PKG_CONFIG" && \
34287     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openssl\"") >&5
34288   ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
34289   ac_status=$?
34290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34291   (exit $ac_status); }; then
34292   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
34293 else
34294   pkg_failed=yes
34296  else
34297     pkg_failed=untried
34302 if test $pkg_failed = yes; then
34303         { echo "$as_me:$LINENO: result: no" >&5
34304 echo "${ECHO_T}no" >&6; }
34306 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34307         _pkg_short_errors_supported=yes
34308 else
34309         _pkg_short_errors_supported=no
34311         if test $_pkg_short_errors_supported = yes; then
34312                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "openssl" 2>&1`
34313         else
34314                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors "openssl" 2>&1`
34315         fi
34316         # Put the nasty error message in config.log where it belongs
34317         echo "$OPENSSL_PKG_ERRORS" >&5
34319         HAVE_OPENSSL_PKC=no
34320 elif test $pkg_failed = untried; then
34321         { echo "$as_me:$LINENO: result: no" >&5
34322 echo "${ECHO_T}no" >&6; }
34323         HAVE_OPENSSL_PKC=no
34324 else
34325         OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
34326         OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
34327         { echo "$as_me:$LINENO: result: yes" >&5
34328 echo "${ECHO_T}yes" >&6; }
34329         HAVE_OPENSSL_PKC=yes
34331 if test "x$HAVE_LIBCRYPTO" = xyes || test "x$HAVE_OPENSSL_PKC" = xyes; then
34332         if test "x$with_sha1" = x; then
34333                 with_sha1=libcrypto
34334         fi
34335 else
34336         if test "x$with_sha1" = xlibcrypto; then
34337                 { { echo "$as_me:$LINENO: error: OpenSSL libcrypto requested but not found" >&5
34338 echo "$as_me: error: OpenSSL libcrypto requested but not found" >&2;}
34339    { (exit 1); exit 1; }; }
34340         fi
34342 if test "x$with_sha1" = xlibcrypto; then
34343         if test "x$HAVE_LIBCRYPTO" = xyes; then
34344                 SHA1_LIBS=-lcrypto
34345         else
34346                 SHA1_LIBS="$OPENSSL_LIBS"
34347                 SHA1_CFLAGS="$OPENSSL_CFLAGS"
34348         fi
34350 { echo "$as_me:$LINENO: checking for SHA1 implementation" >&5
34351 echo $ECHO_N "checking for SHA1 implementation... $ECHO_C" >&6; }
34352 if test "x$with_sha1" = x; then
34353         { { echo "$as_me:$LINENO: error: No suitable SHA1 implementation found" >&5
34354 echo "$as_me: error: No suitable SHA1 implementation found" >&2;}
34355    { (exit 1); exit 1; }; }
34357 { echo "$as_me:$LINENO: result: $with_sha1" >&5
34358 echo "${ECHO_T}$with_sha1" >&6; }
34363 pkg_failed=no
34364 { echo "$as_me:$LINENO: checking for XSERVERCFLAGS" >&5
34365 echo $ECHO_N "checking for XSERVERCFLAGS... $ECHO_C" >&6; }
34367 if test -n "$XSERVERCFLAGS_CFLAGS"; then
34368     pkg_cv_XSERVERCFLAGS_CFLAGS="$XSERVERCFLAGS_CFLAGS"
34369  elif test -n "$PKG_CONFIG"; then
34370     if test -n "$PKG_CONFIG" && \
34371     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\"") >&5
34372   ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5
34373   ac_status=$?
34374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34375   (exit $ac_status); }; then
34376   pkg_cv_XSERVERCFLAGS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null`
34377 else
34378   pkg_failed=yes
34380  else
34381     pkg_failed=untried
34383 if test -n "$XSERVERCFLAGS_LIBS"; then
34384     pkg_cv_XSERVERCFLAGS_LIBS="$XSERVERCFLAGS_LIBS"
34385  elif test -n "$PKG_CONFIG"; then
34386     if test -n "$PKG_CONFIG" && \
34387     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\"") >&5
34388   ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5
34389   ac_status=$?
34390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34391   (exit $ac_status); }; then
34392   pkg_cv_XSERVERCFLAGS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null`
34393 else
34394   pkg_failed=yes
34396  else
34397     pkg_failed=untried
34402 if test $pkg_failed = yes; then
34403         { echo "$as_me:$LINENO: result: no" >&5
34404 echo "${ECHO_T}no" >&6; }
34406 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34407         _pkg_short_errors_supported=yes
34408 else
34409         _pkg_short_errors_supported=no
34411         if test $_pkg_short_errors_supported = yes; then
34412                 XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1`
34413         else
34414                 XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1`
34415         fi
34416         # Put the nasty error message in config.log where it belongs
34417         echo "$XSERVERCFLAGS_PKG_ERRORS" >&5
34419         { { echo "$as_me:$LINENO: error: Package requirements ($REQUIRED_MODULES $REQUIRED_LIBS) were not met:
34421 $XSERVERCFLAGS_PKG_ERRORS
34423 Consider adjusting the PKG_CONFIG_PATH environment variable if you
34424 installed software in a non-standard prefix.
34426 Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
34427 and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
34428 See the pkg-config man page for more details." >&5
34429 echo "$as_me: error: Package requirements ($REQUIRED_MODULES $REQUIRED_LIBS) were not met:
34431 $XSERVERCFLAGS_PKG_ERRORS
34433 Consider adjusting the PKG_CONFIG_PATH environment variable if you
34434 installed software in a non-standard prefix.
34436 Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
34437 and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
34438 See the pkg-config man page for more details." >&2;}
34439    { (exit 1); exit 1; }; }
34440 elif test $pkg_failed = untried; then
34441         { echo "$as_me:$LINENO: result: no" >&5
34442 echo "${ECHO_T}no" >&6; }
34443         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
34444 is in your PATH or set the PKG_CONFIG environment variable to the full
34445 path to pkg-config.
34447 Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
34448 and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
34449 See the pkg-config man page for more details.
34451 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
34452 See \`config.log' for more details." >&5
34453 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
34454 is in your PATH or set the PKG_CONFIG environment variable to the full
34455 path to pkg-config.
34457 Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
34458 and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
34459 See the pkg-config man page for more details.
34461 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
34462 See \`config.log' for more details." >&2;}
34463    { (exit 1); exit 1; }; }
34464 else
34465         XSERVERCFLAGS_CFLAGS=$pkg_cv_XSERVERCFLAGS_CFLAGS
34466         XSERVERCFLAGS_LIBS=$pkg_cv_XSERVERCFLAGS_LIBS
34467         { echo "$as_me:$LINENO: result: yes" >&5
34468 echo "${ECHO_T}yes" >&6; }
34472 pkg_failed=no
34473 { echo "$as_me:$LINENO: checking for XSERVERLIBS" >&5
34474 echo $ECHO_N "checking for XSERVERLIBS... $ECHO_C" >&6; }
34476 if test -n "$XSERVERLIBS_CFLAGS"; then
34477     pkg_cv_XSERVERLIBS_CFLAGS="$XSERVERLIBS_CFLAGS"
34478  elif test -n "$PKG_CONFIG"; then
34479     if test -n "$PKG_CONFIG" && \
34480     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\"") >&5
34481   ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5
34482   ac_status=$?
34483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34484   (exit $ac_status); }; then
34485   pkg_cv_XSERVERLIBS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_LIBS" 2>/dev/null`
34486 else
34487   pkg_failed=yes
34489  else
34490     pkg_failed=untried
34492 if test -n "$XSERVERLIBS_LIBS"; then
34493     pkg_cv_XSERVERLIBS_LIBS="$XSERVERLIBS_LIBS"
34494  elif test -n "$PKG_CONFIG"; then
34495     if test -n "$PKG_CONFIG" && \
34496     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\"") >&5
34497   ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5
34498   ac_status=$?
34499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500   (exit $ac_status); }; then
34501   pkg_cv_XSERVERLIBS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_LIBS" 2>/dev/null`
34502 else
34503   pkg_failed=yes
34505  else
34506     pkg_failed=untried
34511 if test $pkg_failed = yes; then
34512         { echo "$as_me:$LINENO: result: no" >&5
34513 echo "${ECHO_T}no" >&6; }
34515 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34516         _pkg_short_errors_supported=yes
34517 else
34518         _pkg_short_errors_supported=no
34520         if test $_pkg_short_errors_supported = yes; then
34521                 XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$REQUIRED_LIBS" 2>&1`
34522         else
34523                 XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --print-errors "$REQUIRED_LIBS" 2>&1`
34524         fi
34525         # Put the nasty error message in config.log where it belongs
34526         echo "$XSERVERLIBS_PKG_ERRORS" >&5
34528         { { echo "$as_me:$LINENO: error: Package requirements ($REQUIRED_LIBS) were not met:
34530 $XSERVERLIBS_PKG_ERRORS
34532 Consider adjusting the PKG_CONFIG_PATH environment variable if you
34533 installed software in a non-standard prefix.
34535 Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
34536 and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
34537 See the pkg-config man page for more details." >&5
34538 echo "$as_me: error: Package requirements ($REQUIRED_LIBS) were not met:
34540 $XSERVERLIBS_PKG_ERRORS
34542 Consider adjusting the PKG_CONFIG_PATH environment variable if you
34543 installed software in a non-standard prefix.
34545 Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
34546 and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
34547 See the pkg-config man page for more details." >&2;}
34548    { (exit 1); exit 1; }; }
34549 elif test $pkg_failed = untried; then
34550         { echo "$as_me:$LINENO: result: no" >&5
34551 echo "${ECHO_T}no" >&6; }
34552         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
34553 is in your PATH or set the PKG_CONFIG environment variable to the full
34554 path to pkg-config.
34556 Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
34557 and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
34558 See the pkg-config man page for more details.
34560 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
34561 See \`config.log' for more details." >&5
34562 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
34563 is in your PATH or set the PKG_CONFIG environment variable to the full
34564 path to pkg-config.
34566 Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
34567 and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
34568 See the pkg-config man page for more details.
34570 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
34571 See \`config.log' for more details." >&2;}
34572    { (exit 1); exit 1; }; }
34573 else
34574         XSERVERLIBS_CFLAGS=$pkg_cv_XSERVERLIBS_CFLAGS
34575         XSERVERLIBS_LIBS=$pkg_cv_XSERVERLIBS_LIBS
34576         { echo "$as_me:$LINENO: result: yes" >&5
34577 echo "${ECHO_T}yes" >&6; }
34581 # Autotools has some unfortunate issues with library handling.  In order to
34582 # get a server to rebuild when a dependency in the tree is changed, it must
34583 # be listed in SERVERNAME_DEPENDENCIES.  However, no system libraries may be
34584 # listed there, or some versions of autotools will break (especially if a -L
34585 # is required to find the library).  So, we keep two sets of libraries
34586 # detected: NAMESPACE_LIBS for in-tree libraries to be linked against, which
34587 # will go into the _DEPENDENCIES and _LDADD of the server, and
34588 # NAMESPACE_SYS_LIBS which will go into only the _LDADD.  The
34589 # NAMESPACEMODULES_LIBS detected from pkgconfig should always go in
34590 # NAMESPACE_SYS_LIBS.
34592 # XSERVER_LIBS is the set of in-tree libraries which all servers require.
34593 # XSERVER_SYS_LIBS is the set of out-of-tree libraries which all servers
34594 # require.
34596 XSERVER_CFLAGS="${XSERVER_CFLAGS} ${XSERVERCFLAGS_CFLAGS}"
34597 XSERVER_LIBS="$DIX_LIB $MI_LIB $OS_LIB"
34598 XSERVER_SYS_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} ${LIBS}"
34602 UTILS_SYS_LIBS="${SYS_LIBS}"
34605 # The Xorg binary needs to export symbols so that they can be used from modules
34606 # Some platforms require extra flags to do this.   libtool should set the
34607 # necessary flags for each platform when -export-dynamic is passed to it.
34608 LD_EXPORT_SYMBOLS_FLAG="-export-dynamic"
34611 { echo "$as_me:$LINENO: checking if SVR4 needs to be defined" >&5
34612 echo $ECHO_N "checking if SVR4 needs to be defined... $ECHO_C" >&6; }
34613 cat >conftest.$ac_ext <<_ACEOF
34614 /* confdefs.h.  */
34615 _ACEOF
34616 cat confdefs.h >>conftest.$ac_ext
34617 cat >>conftest.$ac_ext <<_ACEOF
34618 /* end confdefs.h.  */
34620 #if defined(SVR4) || defined(__svr4__) || defined(__SVR4)
34621  I_AM_SVR4
34622 #endif
34624 _ACEOF
34625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34626   $EGREP "I_AM_SVR4" >/dev/null 2>&1; then
34629 cat >>confdefs.h <<\_ACEOF
34630 #define SVR4 1
34631 _ACEOF
34633 { echo "$as_me:$LINENO: result: yes" >&5
34634 echo "${ECHO_T}yes" >&6; }
34635 else
34636   { echo "$as_me:$LINENO: result: no" >&5
34637 echo "${ECHO_T}no" >&6; }
34639 rm -f -r conftest*
34642 XSERVER_CFLAGS="$XSERVER_CFLAGS $CORE_INCS $XEXT_INC $COMPOSITE_INC $DAMAGE_INC $FIXES_INC $XI_INC $MI_INC $MIEXT_SYNC_INC $MIEXT_SHADOW_INC $MIEXT_LAYER_INC $MIEXT_DAMAGE_INC $RENDER_INC $RANDR_INC $FB_INC"
34646 { echo "$as_me:$LINENO: checking whether to build Xvfb DDX" >&5
34647 echo $ECHO_N "checking whether to build Xvfb DDX... $ECHO_C" >&6; }
34648 { echo "$as_me:$LINENO: result: $XVFB" >&5
34649 echo "${ECHO_T}$XVFB" >&6; }
34650  if test "x$XVFB" = xyes; then
34651   XVFB_TRUE=
34652   XVFB_FALSE='#'
34653 else
34654   XVFB_TRUE='#'
34655   XVFB_FALSE=
34659 if test "x$XVFB" = xyes; then
34660         XVFB_LIBS="$FB_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB"
34661         XVFB_SYS_LIBS="$XVFBMODULES_LIBS $GLX_SYS_LIBS"
34669 pkg_failed=no
34670 { echo "$as_me:$LINENO: checking for XNESTMODULES" >&5
34671 echo $ECHO_N "checking for XNESTMODULES... $ECHO_C" >&6; }
34673 if test -n "$XNESTMODULES_CFLAGS"; then
34674     pkg_cv_XNESTMODULES_CFLAGS="$XNESTMODULES_CFLAGS"
34675  elif test -n "$PKG_CONFIG"; then
34676     if test -n "$PKG_CONFIG" && \
34677     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\"") >&5
34678   ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5
34679   ac_status=$?
34680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34681   (exit $ac_status); }; then
34682   pkg_cv_XNESTMODULES_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null`
34683 else
34684   pkg_failed=yes
34686  else
34687     pkg_failed=untried
34689 if test -n "$XNESTMODULES_LIBS"; then
34690     pkg_cv_XNESTMODULES_LIBS="$XNESTMODULES_LIBS"
34691  elif test -n "$PKG_CONFIG"; then
34692     if test -n "$PKG_CONFIG" && \
34693     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\"") >&5
34694   ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5
34695   ac_status=$?
34696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34697   (exit $ac_status); }; then
34698   pkg_cv_XNESTMODULES_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null`
34699 else
34700   pkg_failed=yes
34702  else
34703     pkg_failed=untried
34708 if test $pkg_failed = yes; then
34709         { echo "$as_me:$LINENO: result: no" >&5
34710 echo "${ECHO_T}no" >&6; }
34712 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34713         _pkg_short_errors_supported=yes
34714 else
34715         _pkg_short_errors_supported=no
34717         if test $_pkg_short_errors_supported = yes; then
34718                 XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1`
34719         else
34720                 XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1`
34721         fi
34722         # Put the nasty error message in config.log where it belongs
34723         echo "$XNESTMODULES_PKG_ERRORS" >&5
34725         have_xnest=no
34726 elif test $pkg_failed = untried; then
34727         { echo "$as_me:$LINENO: result: no" >&5
34728 echo "${ECHO_T}no" >&6; }
34729         have_xnest=no
34730 else
34731         XNESTMODULES_CFLAGS=$pkg_cv_XNESTMODULES_CFLAGS
34732         XNESTMODULES_LIBS=$pkg_cv_XNESTMODULES_LIBS
34733         { echo "$as_me:$LINENO: result: yes" >&5
34734 echo "${ECHO_T}yes" >&6; }
34735         have_xnest=yes
34737 { echo "$as_me:$LINENO: checking whether to build Xnest DDX" >&5
34738 echo $ECHO_N "checking whether to build Xnest DDX... $ECHO_C" >&6; }
34739 if test "x$XNEST" = xauto; then
34740         XNEST="$have_xnest"
34742 { echo "$as_me:$LINENO: result: $XNEST" >&5
34743 echo "${ECHO_T}$XNEST" >&6; }
34744  if test "x$XNEST" = xyes; then
34745   XNEST_TRUE=
34746   XNEST_FALSE='#'
34747 else
34748   XNEST_TRUE='#'
34749   XNEST_FALSE=
34753 if test "x$XNEST" = xyes; then
34754         if test "x$have_xnest" = xno; then
34755                 { { echo "$as_me:$LINENO: error: Xnest build explicitly requested, but required modules not found." >&5
34756 echo "$as_me: error: Xnest build explicitly requested, but required modules not found." >&2;}
34757    { (exit 1); exit 1; }; }
34758         fi
34759         XNEST_LIBS="$FB_LIB $FIXES_LIB $MI_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $MAIN_LIB $DIX_LIB $OS_LIB"
34760         XNEST_SYS_LIBS="$XNESTMODULES_LIBS $GLX_SYS_LIBS"
34767 { echo "$as_me:$LINENO: checking whether to build Xorg DDX" >&5
34768 echo $ECHO_N "checking whether to build Xorg DDX... $ECHO_C" >&6; }
34769 if test "x$XORG" = xauto; then
34770         XORG="yes"
34771         case $host_os in
34772                 cygwin*) XORG="no" ;;
34773                 darwin*) XORG="no" ;;
34774         esac
34776 { echo "$as_me:$LINENO: result: $XORG" >&5
34777 echo "${ECHO_T}$XORG" >&6; }
34779 xorg_bus_linuxpci=no
34780 xorg_bus_bsdpci=no
34781 xorg_bus_sparc=no
34783 if test "x$XORG" = xyes; then
34784         XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common'
34785         XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os'
34786         XORG_INCS="$XORG_DDXINCS $XORG_OSINCS"
34787         XORG_CFLAGS="$XORGSERVER_CFLAGS -DHAVE_XORG_CONFIG_H"
34788         XORG_LIBS="$COMPOSITE_LIB $FIXES_LIB $XEXTXORG_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB"
34790                         symbol_visibility=
34791         have_visibility=disabled
34792         if test x$SYMBOL_VISIBILITY != xno; then
34793             { echo "$as_me:$LINENO: checking for symbol visibility support" >&5
34794 echo $ECHO_N "checking for symbol visibility support... $ECHO_C" >&6; }
34795             if test x$GCC = xyes; then
34796                 VISIBILITY_CFLAGS="-fvisibility=hidden"
34797             else
34798                 if test x$SUNCC = xyes; then
34799                     VISIBILITY_CFLAGS="-xldscope=hidden"
34800                 else
34801                     have_visibility=no
34802                 fi
34803             fi
34804             if test x$have_visibility != xno; then
34805                 save_CFLAGS="$CFLAGS"
34806                 CFLAGS="$CFLAGS $VISIBILITY_CFLAGS"
34807                 cat >conftest.$ac_ext <<_ACEOF
34808 /* confdefs.h.  */
34809 _ACEOF
34810 cat confdefs.h >>conftest.$ac_ext
34811 cat >>conftest.$ac_ext <<_ACEOF
34812 /* end confdefs.h.  */
34813 #include <X11/Xfuncproto.h>
34814                      extern _X_HIDDEN int hidden_int;
34815                      extern _X_EXPORT int public_int;
34816                      extern _X_HIDDEN int hidden_int_func(void);
34817                      extern _X_EXPORT int public_int_func(void);
34818 int
34819 main ()
34822   ;
34823   return 0;
34825 _ACEOF
34826 rm -f conftest.$ac_objext
34827 if { (ac_try="$ac_compile"
34828 case "(($ac_try" in
34829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34830   *) ac_try_echo=$ac_try;;
34831 esac
34832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34833   (eval "$ac_compile") 2>conftest.er1
34834   ac_status=$?
34835   grep -v '^ *+' conftest.er1 >conftest.err
34836   rm -f conftest.er1
34837   cat conftest.err >&5
34838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34839   (exit $ac_status); } && {
34840          test -z "$ac_c_werror_flag" ||
34841          test ! -s conftest.err
34842        } && test -s conftest.$ac_objext; then
34843   have_visibility=yes
34844 else
34845   echo "$as_me: failed program was:" >&5
34846 sed 's/^/| /' conftest.$ac_ext >&5
34848         have_visibility=no
34851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34852                 CFLAGS=$save_CFLAGS
34853             fi
34854             { echo "$as_me:$LINENO: result: $have_visibility" >&5
34855 echo "${ECHO_T}$have_visibility" >&6; }
34856             if test x$have_visibility != xno; then
34857                 symbol_visibility=$VISIBILITY_CFLAGS
34858                 XORG_CFLAGS="$XORG_CFLAGS $VISIBILITY_CFLAGS"
34859                 XSERVER_CFLAGS="$XSERVER_CFLAGS $VISIBILITY_CFLAGS"
34860             fi
34861         fi
34865 pkg_failed=no
34866 { echo "$as_me:$LINENO: checking for PCIACCESS" >&5
34867 echo $ECHO_N "checking for PCIACCESS... $ECHO_C" >&6; }
34869 if test -n "$PCIACCESS_CFLAGS"; then
34870     pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
34871  elif test -n "$PKG_CONFIG"; then
34872     if test -n "$PKG_CONFIG" && \
34873     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\"") >&5
34874   ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5
34875   ac_status=$?
34876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34877   (exit $ac_status); }; then
34878   pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "$LIBPCIACCESS" 2>/dev/null`
34879 else
34880   pkg_failed=yes
34882  else
34883     pkg_failed=untried
34885 if test -n "$PCIACCESS_LIBS"; then
34886     pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
34887  elif test -n "$PKG_CONFIG"; then
34888     if test -n "$PKG_CONFIG" && \
34889     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\"") >&5
34890   ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5
34891   ac_status=$?
34892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34893   (exit $ac_status); }; then
34894   pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "$LIBPCIACCESS" 2>/dev/null`
34895 else
34896   pkg_failed=yes
34898  else
34899     pkg_failed=untried
34904 if test $pkg_failed = yes; then
34905         { echo "$as_me:$LINENO: result: no" >&5
34906 echo "${ECHO_T}no" >&6; }
34908 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34909         _pkg_short_errors_supported=yes
34910 else
34911         _pkg_short_errors_supported=no
34913         if test $_pkg_short_errors_supported = yes; then
34914                 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBPCIACCESS" 2>&1`
34915         else
34916                 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBPCIACCESS" 2>&1`
34917         fi
34918         # Put the nasty error message in config.log where it belongs
34919         echo "$PCIACCESS_PKG_ERRORS" >&5
34921         { { echo "$as_me:$LINENO: error: Package requirements ($LIBPCIACCESS) were not met:
34923 $PCIACCESS_PKG_ERRORS
34925 Consider adjusting the PKG_CONFIG_PATH environment variable if you
34926 installed software in a non-standard prefix.
34928 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
34929 and PCIACCESS_LIBS to avoid the need to call pkg-config.
34930 See the pkg-config man page for more details." >&5
34931 echo "$as_me: error: Package requirements ($LIBPCIACCESS) were not met:
34933 $PCIACCESS_PKG_ERRORS
34935 Consider adjusting the PKG_CONFIG_PATH environment variable if you
34936 installed software in a non-standard prefix.
34938 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
34939 and PCIACCESS_LIBS to avoid the need to call pkg-config.
34940 See the pkg-config man page for more details." >&2;}
34941    { (exit 1); exit 1; }; }
34942 elif test $pkg_failed = untried; then
34943         { echo "$as_me:$LINENO: result: no" >&5
34944 echo "${ECHO_T}no" >&6; }
34945         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
34946 is in your PATH or set the PKG_CONFIG environment variable to the full
34947 path to pkg-config.
34949 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
34950 and PCIACCESS_LIBS to avoid the need to call pkg-config.
34951 See the pkg-config man page for more details.
34953 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
34954 See \`config.log' for more details." >&5
34955 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
34956 is in your PATH or set the PKG_CONFIG environment variable to the full
34957 path to pkg-config.
34959 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
34960 and PCIACCESS_LIBS to avoid the need to call pkg-config.
34961 See the pkg-config man page for more details.
34963 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
34964 See \`config.log' for more details." >&2;}
34965    { (exit 1); exit 1; }; }
34966 else
34967         PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
34968         PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
34969         { echo "$as_me:$LINENO: result: yes" >&5
34970 echo "${ECHO_T}yes" >&6; }
34973         SAVE_LIBS=$LIBS
34974         SAVE_CFLAGS=$CFLAGS
34975         CFLAGS=$PCIACCESS_CFLAGS
34976         LIBS=$PCIACCESS_LIBS
34978 for ac_func in pci_system_init_dev_mem
34980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34981 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34983 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34984   echo $ECHO_N "(cached) $ECHO_C" >&6
34985 else
34986   cat >conftest.$ac_ext <<_ACEOF
34987 /* confdefs.h.  */
34988 _ACEOF
34989 cat confdefs.h >>conftest.$ac_ext
34990 cat >>conftest.$ac_ext <<_ACEOF
34991 /* end confdefs.h.  */
34992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34993    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34994 #define $ac_func innocuous_$ac_func
34996 /* System header to define __stub macros and hopefully few prototypes,
34997     which can conflict with char $ac_func (); below.
34998     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34999     <limits.h> exists even on freestanding compilers.  */
35001 #ifdef __STDC__
35002 # include <limits.h>
35003 #else
35004 # include <assert.h>
35005 #endif
35007 #undef $ac_func
35009 /* Override any GCC internal prototype to avoid an error.
35010    Use char because int might match the return type of a GCC
35011    builtin and then its argument prototype would still apply.  */
35012 #ifdef __cplusplus
35013 extern "C"
35014 #endif
35015 char $ac_func ();
35016 /* The GNU C library defines this for functions which it implements
35017     to always fail with ENOSYS.  Some functions are actually named
35018     something starting with __ and the normal name is an alias.  */
35019 #if defined __stub_$ac_func || defined __stub___$ac_func
35020 choke me
35021 #endif
35023 int
35024 main ()
35026 return $ac_func ();
35027   ;
35028   return 0;
35030 _ACEOF
35031 rm -f conftest.$ac_objext conftest$ac_exeext
35032 if { (ac_try="$ac_link"
35033 case "(($ac_try" in
35034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35035   *) ac_try_echo=$ac_try;;
35036 esac
35037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35038   (eval "$ac_link") 2>conftest.er1
35039   ac_status=$?
35040   grep -v '^ *+' conftest.er1 >conftest.err
35041   rm -f conftest.er1
35042   cat conftest.err >&5
35043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35044   (exit $ac_status); } && {
35045          test -z "$ac_c_werror_flag" ||
35046          test ! -s conftest.err
35047        } && test -s conftest$ac_exeext &&
35048        $as_test_x conftest$ac_exeext; then
35049   eval "$as_ac_var=yes"
35050 else
35051   echo "$as_me: failed program was:" >&5
35052 sed 's/^/| /' conftest.$ac_ext >&5
35054         eval "$as_ac_var=no"
35057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35058       conftest$ac_exeext conftest.$ac_ext
35060 ac_res=`eval echo '${'$as_ac_var'}'`
35061                { echo "$as_me:$LINENO: result: $ac_res" >&5
35062 echo "${ECHO_T}$ac_res" >&6; }
35063 if test `eval echo '${'$as_ac_var'}'` = yes; then
35064   cat >>confdefs.h <<_ACEOF
35065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35066 _ACEOF
35069 done
35072 for ac_func in pci_device_enable
35074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35075 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35077 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35078   echo $ECHO_N "(cached) $ECHO_C" >&6
35079 else
35080   cat >conftest.$ac_ext <<_ACEOF
35081 /* confdefs.h.  */
35082 _ACEOF
35083 cat confdefs.h >>conftest.$ac_ext
35084 cat >>conftest.$ac_ext <<_ACEOF
35085 /* end confdefs.h.  */
35086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35087    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35088 #define $ac_func innocuous_$ac_func
35090 /* System header to define __stub macros and hopefully few prototypes,
35091     which can conflict with char $ac_func (); below.
35092     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35093     <limits.h> exists even on freestanding compilers.  */
35095 #ifdef __STDC__
35096 # include <limits.h>
35097 #else
35098 # include <assert.h>
35099 #endif
35101 #undef $ac_func
35103 /* Override any GCC internal prototype to avoid an error.
35104    Use char because int might match the return type of a GCC
35105    builtin and then its argument prototype would still apply.  */
35106 #ifdef __cplusplus
35107 extern "C"
35108 #endif
35109 char $ac_func ();
35110 /* The GNU C library defines this for functions which it implements
35111     to always fail with ENOSYS.  Some functions are actually named
35112     something starting with __ and the normal name is an alias.  */
35113 #if defined __stub_$ac_func || defined __stub___$ac_func
35114 choke me
35115 #endif
35117 int
35118 main ()
35120 return $ac_func ();
35121   ;
35122   return 0;
35124 _ACEOF
35125 rm -f conftest.$ac_objext conftest$ac_exeext
35126 if { (ac_try="$ac_link"
35127 case "(($ac_try" in
35128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35129   *) ac_try_echo=$ac_try;;
35130 esac
35131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35132   (eval "$ac_link") 2>conftest.er1
35133   ac_status=$?
35134   grep -v '^ *+' conftest.er1 >conftest.err
35135   rm -f conftest.er1
35136   cat conftest.err >&5
35137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35138   (exit $ac_status); } && {
35139          test -z "$ac_c_werror_flag" ||
35140          test ! -s conftest.err
35141        } && test -s conftest$ac_exeext &&
35142        $as_test_x conftest$ac_exeext; then
35143   eval "$as_ac_var=yes"
35144 else
35145   echo "$as_me: failed program was:" >&5
35146 sed 's/^/| /' conftest.$ac_ext >&5
35148         eval "$as_ac_var=no"
35151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35152       conftest$ac_exeext conftest.$ac_ext
35154 ac_res=`eval echo '${'$as_ac_var'}'`
35155                { echo "$as_me:$LINENO: result: $ac_res" >&5
35156 echo "${ECHO_T}$ac_res" >&6; }
35157 if test `eval echo '${'$as_ac_var'}'` = yes; then
35158   cat >>confdefs.h <<_ACEOF
35159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35160 _ACEOF
35163 done
35166 for ac_func in pci_device_is_boot_vga
35168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35169 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35171 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35172   echo $ECHO_N "(cached) $ECHO_C" >&6
35173 else
35174   cat >conftest.$ac_ext <<_ACEOF
35175 /* confdefs.h.  */
35176 _ACEOF
35177 cat confdefs.h >>conftest.$ac_ext
35178 cat >>conftest.$ac_ext <<_ACEOF
35179 /* end confdefs.h.  */
35180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35181    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35182 #define $ac_func innocuous_$ac_func
35184 /* System header to define __stub macros and hopefully few prototypes,
35185     which can conflict with char $ac_func (); below.
35186     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35187     <limits.h> exists even on freestanding compilers.  */
35189 #ifdef __STDC__
35190 # include <limits.h>
35191 #else
35192 # include <assert.h>
35193 #endif
35195 #undef $ac_func
35197 /* Override any GCC internal prototype to avoid an error.
35198    Use char because int might match the return type of a GCC
35199    builtin and then its argument prototype would still apply.  */
35200 #ifdef __cplusplus
35201 extern "C"
35202 #endif
35203 char $ac_func ();
35204 /* The GNU C library defines this for functions which it implements
35205     to always fail with ENOSYS.  Some functions are actually named
35206     something starting with __ and the normal name is an alias.  */
35207 #if defined __stub_$ac_func || defined __stub___$ac_func
35208 choke me
35209 #endif
35211 int
35212 main ()
35214 return $ac_func ();
35215   ;
35216   return 0;
35218 _ACEOF
35219 rm -f conftest.$ac_objext conftest$ac_exeext
35220 if { (ac_try="$ac_link"
35221 case "(($ac_try" in
35222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35223   *) ac_try_echo=$ac_try;;
35224 esac
35225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35226   (eval "$ac_link") 2>conftest.er1
35227   ac_status=$?
35228   grep -v '^ *+' conftest.er1 >conftest.err
35229   rm -f conftest.er1
35230   cat conftest.err >&5
35231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35232   (exit $ac_status); } && {
35233          test -z "$ac_c_werror_flag" ||
35234          test ! -s conftest.err
35235        } && test -s conftest$ac_exeext &&
35236        $as_test_x conftest$ac_exeext; then
35237   eval "$as_ac_var=yes"
35238 else
35239   echo "$as_me: failed program was:" >&5
35240 sed 's/^/| /' conftest.$ac_ext >&5
35242         eval "$as_ac_var=no"
35245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35246       conftest$ac_exeext conftest.$ac_ext
35248 ac_res=`eval echo '${'$as_ac_var'}'`
35249                { echo "$as_me:$LINENO: result: $ac_res" >&5
35250 echo "${ECHO_T}$ac_res" >&6; }
35251 if test `eval echo '${'$as_ac_var'}'` = yes; then
35252   cat >>confdefs.h <<_ACEOF
35253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35254 _ACEOF
35257 done
35260 for ac_func in pci_device_vgaarb_init
35262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35263 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35265 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35266   echo $ECHO_N "(cached) $ECHO_C" >&6
35267 else
35268   cat >conftest.$ac_ext <<_ACEOF
35269 /* confdefs.h.  */
35270 _ACEOF
35271 cat confdefs.h >>conftest.$ac_ext
35272 cat >>conftest.$ac_ext <<_ACEOF
35273 /* end confdefs.h.  */
35274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35275    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35276 #define $ac_func innocuous_$ac_func
35278 /* System header to define __stub macros and hopefully few prototypes,
35279     which can conflict with char $ac_func (); below.
35280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35281     <limits.h> exists even on freestanding compilers.  */
35283 #ifdef __STDC__
35284 # include <limits.h>
35285 #else
35286 # include <assert.h>
35287 #endif
35289 #undef $ac_func
35291 /* Override any GCC internal prototype to avoid an error.
35292    Use char because int might match the return type of a GCC
35293    builtin and then its argument prototype would still apply.  */
35294 #ifdef __cplusplus
35295 extern "C"
35296 #endif
35297 char $ac_func ();
35298 /* The GNU C library defines this for functions which it implements
35299     to always fail with ENOSYS.  Some functions are actually named
35300     something starting with __ and the normal name is an alias.  */
35301 #if defined __stub_$ac_func || defined __stub___$ac_func
35302 choke me
35303 #endif
35305 int
35306 main ()
35308 return $ac_func ();
35309   ;
35310   return 0;
35312 _ACEOF
35313 rm -f conftest.$ac_objext conftest$ac_exeext
35314 if { (ac_try="$ac_link"
35315 case "(($ac_try" in
35316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35317   *) ac_try_echo=$ac_try;;
35318 esac
35319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35320   (eval "$ac_link") 2>conftest.er1
35321   ac_status=$?
35322   grep -v '^ *+' conftest.er1 >conftest.err
35323   rm -f conftest.er1
35324   cat conftest.err >&5
35325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35326   (exit $ac_status); } && {
35327          test -z "$ac_c_werror_flag" ||
35328          test ! -s conftest.err
35329        } && test -s conftest$ac_exeext &&
35330        $as_test_x conftest$ac_exeext; then
35331   eval "$as_ac_var=yes"
35332 else
35333   echo "$as_me: failed program was:" >&5
35334 sed 's/^/| /' conftest.$ac_ext >&5
35336         eval "$as_ac_var=no"
35339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35340       conftest$ac_exeext conftest.$ac_ext
35342 ac_res=`eval echo '${'$as_ac_var'}'`
35343                { echo "$as_me:$LINENO: result: $ac_res" >&5
35344 echo "${ECHO_T}$ac_res" >&6; }
35345 if test `eval echo '${'$as_ac_var'}'` = yes; then
35346   cat >>confdefs.h <<_ACEOF
35347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35348 _ACEOF
35351 done
35353         LIBS=$SAVE_LIBS
35354         CFLAGS=$SAVE_CFLAGS
35355         XORG_SYS_LIBS="$XORG_SYS_LIBS $PCIACCESS_LIBS $GLX_SYS_LIBS"
35356         XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
35358         case $host_os in
35359           linux*)
35360                 if test "x$LNXAPM" = xyes; then
35361                         XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
35362                 fi
35363                 XORG_OS="linux"
35364                 XORG_OS_SUBDIR="linux"
35365                 xorg_bus_linuxpci="yes"
35366                 linux_acpi="no"
35367                 case $host_cpu in
35368                   ia64*)
35369                         linux_ia64=yes
35370                         linux_acpi="yes"
35371                         ;;
35372                   alpha*)
35373                         linux_alpha=yes
35374                         ;;
35375                   i*86|amd64*|x86_64*)
35376                         linux_acpi="yes"
35377                         ;;
35378                   *)
35379                         ;;
35380                 esac
35381                 ;;
35382           freebsd* | kfreebsd*-gnu | dragonfly*)
35383                 XORG_OS="freebsd"
35384                 XORG_OS_SUBDIR="bsd"
35385                 xorg_bus_bsdpci="yes"
35386                 ;;
35387           netbsd*)
35388                 XORG_OS="netbsd"
35389                 XORG_OS_SUBDIR="bsd"
35390                 xorg_bus_bsdpci="yes"
35391                 ;;
35392           openbsd*)
35393                 if test "x$ac_cv_BSD_APM" = xyes \
35394                         -o "x$ac_cv_BSD_KQUEUE_APM" = xyes; then
35395                         XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
35396                 fi
35397                 XORG_OS="openbsd"
35398                 XORG_OS_SUBDIR="bsd"
35399                 xorg_bus_bsdpci="yes"
35400                 ;;
35401           solaris*)
35402                 XORG_OS="solaris"
35403                 XORG_OS_SUBDIR="solaris"
35404                 XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
35405                 # Use the same stubs as BSD for old functions, since we now
35406                 # use libpciaccess for PCI
35407                 xorg_bus_bsdpci="yes"
35409 for ac_header in sys/kd.h
35411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35413   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35416   echo $ECHO_N "(cached) $ECHO_C" >&6
35418 ac_res=`eval echo '${'$as_ac_Header'}'`
35419                { echo "$as_me:$LINENO: result: $ac_res" >&5
35420 echo "${ECHO_T}$ac_res" >&6; }
35421 else
35422   # Is the header compilable?
35423 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35425 cat >conftest.$ac_ext <<_ACEOF
35426 /* confdefs.h.  */
35427 _ACEOF
35428 cat confdefs.h >>conftest.$ac_ext
35429 cat >>conftest.$ac_ext <<_ACEOF
35430 /* end confdefs.h.  */
35431 $ac_includes_default
35432 #include <$ac_header>
35433 _ACEOF
35434 rm -f conftest.$ac_objext
35435 if { (ac_try="$ac_compile"
35436 case "(($ac_try" in
35437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35438   *) ac_try_echo=$ac_try;;
35439 esac
35440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35441   (eval "$ac_compile") 2>conftest.er1
35442   ac_status=$?
35443   grep -v '^ *+' conftest.er1 >conftest.err
35444   rm -f conftest.er1
35445   cat conftest.err >&5
35446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35447   (exit $ac_status); } && {
35448          test -z "$ac_c_werror_flag" ||
35449          test ! -s conftest.err
35450        } && test -s conftest.$ac_objext; then
35451   ac_header_compiler=yes
35452 else
35453   echo "$as_me: failed program was:" >&5
35454 sed 's/^/| /' conftest.$ac_ext >&5
35456         ac_header_compiler=no
35459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35461 echo "${ECHO_T}$ac_header_compiler" >&6; }
35463 # Is the header present?
35464 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35466 cat >conftest.$ac_ext <<_ACEOF
35467 /* confdefs.h.  */
35468 _ACEOF
35469 cat confdefs.h >>conftest.$ac_ext
35470 cat >>conftest.$ac_ext <<_ACEOF
35471 /* end confdefs.h.  */
35472 #include <$ac_header>
35473 _ACEOF
35474 if { (ac_try="$ac_cpp conftest.$ac_ext"
35475 case "(($ac_try" in
35476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35477   *) ac_try_echo=$ac_try;;
35478 esac
35479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35480   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35481   ac_status=$?
35482   grep -v '^ *+' conftest.er1 >conftest.err
35483   rm -f conftest.er1
35484   cat conftest.err >&5
35485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35486   (exit $ac_status); } >/dev/null && {
35487          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35488          test ! -s conftest.err
35489        }; then
35490   ac_header_preproc=yes
35491 else
35492   echo "$as_me: failed program was:" >&5
35493 sed 's/^/| /' conftest.$ac_ext >&5
35495   ac_header_preproc=no
35498 rm -f conftest.err conftest.$ac_ext
35499 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35500 echo "${ECHO_T}$ac_header_preproc" >&6; }
35502 # So?  What about this header?
35503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35504   yes:no: )
35505     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35506 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35507     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35508 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35509     ac_header_preproc=yes
35510     ;;
35511   no:yes:* )
35512     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35513 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35514     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35515 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35516     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35517 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35518     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35519 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35520     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35522     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35523 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35524     ( cat <<\_ASBOX
35525 ## ---------------------------------------------------------------------- ##
35526 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
35527 ## ---------------------------------------------------------------------- ##
35528 _ASBOX
35529      ) | sed "s/^/$as_me: WARNING:     /" >&2
35530     ;;
35531 esac
35532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35535   echo $ECHO_N "(cached) $ECHO_C" >&6
35536 else
35537   eval "$as_ac_Header=\$ac_header_preproc"
35539 ac_res=`eval echo '${'$as_ac_Header'}'`
35540                { echo "$as_me:$LINENO: result: $ac_res" >&5
35541 echo "${ECHO_T}$ac_res" >&6; }
35544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35545   cat >>confdefs.h <<_ACEOF
35546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35547 _ACEOF
35551 done
35554 for ac_header in sys/vt.h
35556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35558   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35561   echo $ECHO_N "(cached) $ECHO_C" >&6
35563 ac_res=`eval echo '${'$as_ac_Header'}'`
35564                { echo "$as_me:$LINENO: result: $ac_res" >&5
35565 echo "${ECHO_T}$ac_res" >&6; }
35566 else
35567   # Is the header compilable?
35568 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35570 cat >conftest.$ac_ext <<_ACEOF
35571 /* confdefs.h.  */
35572 _ACEOF
35573 cat confdefs.h >>conftest.$ac_ext
35574 cat >>conftest.$ac_ext <<_ACEOF
35575 /* end confdefs.h.  */
35576 $ac_includes_default
35577 #include <$ac_header>
35578 _ACEOF
35579 rm -f conftest.$ac_objext
35580 if { (ac_try="$ac_compile"
35581 case "(($ac_try" in
35582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35583   *) ac_try_echo=$ac_try;;
35584 esac
35585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35586   (eval "$ac_compile") 2>conftest.er1
35587   ac_status=$?
35588   grep -v '^ *+' conftest.er1 >conftest.err
35589   rm -f conftest.er1
35590   cat conftest.err >&5
35591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35592   (exit $ac_status); } && {
35593          test -z "$ac_c_werror_flag" ||
35594          test ! -s conftest.err
35595        } && test -s conftest.$ac_objext; then
35596   ac_header_compiler=yes
35597 else
35598   echo "$as_me: failed program was:" >&5
35599 sed 's/^/| /' conftest.$ac_ext >&5
35601         ac_header_compiler=no
35604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35605 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35606 echo "${ECHO_T}$ac_header_compiler" >&6; }
35608 # Is the header present?
35609 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35611 cat >conftest.$ac_ext <<_ACEOF
35612 /* confdefs.h.  */
35613 _ACEOF
35614 cat confdefs.h >>conftest.$ac_ext
35615 cat >>conftest.$ac_ext <<_ACEOF
35616 /* end confdefs.h.  */
35617 #include <$ac_header>
35618 _ACEOF
35619 if { (ac_try="$ac_cpp conftest.$ac_ext"
35620 case "(($ac_try" in
35621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35622   *) ac_try_echo=$ac_try;;
35623 esac
35624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35625   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35626   ac_status=$?
35627   grep -v '^ *+' conftest.er1 >conftest.err
35628   rm -f conftest.er1
35629   cat conftest.err >&5
35630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35631   (exit $ac_status); } >/dev/null && {
35632          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35633          test ! -s conftest.err
35634        }; then
35635   ac_header_preproc=yes
35636 else
35637   echo "$as_me: failed program was:" >&5
35638 sed 's/^/| /' conftest.$ac_ext >&5
35640   ac_header_preproc=no
35643 rm -f conftest.err conftest.$ac_ext
35644 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35645 echo "${ECHO_T}$ac_header_preproc" >&6; }
35647 # So?  What about this header?
35648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35649   yes:no: )
35650     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35651 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35652     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35653 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35654     ac_header_preproc=yes
35655     ;;
35656   no:yes:* )
35657     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35659     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35660 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35661     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35662 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35663     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35664 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35665     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35667     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35668 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35669     ( cat <<\_ASBOX
35670 ## ---------------------------------------------------------------------- ##
35671 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
35672 ## ---------------------------------------------------------------------- ##
35673 _ASBOX
35674      ) | sed "s/^/$as_me: WARNING:     /" >&2
35675     ;;
35676 esac
35677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35680   echo $ECHO_N "(cached) $ECHO_C" >&6
35681 else
35682   eval "$as_ac_Header=\$ac_header_preproc"
35684 ac_res=`eval echo '${'$as_ac_Header'}'`
35685                { echo "$as_me:$LINENO: result: $ac_res" >&5
35686 echo "${ECHO_T}$ac_res" >&6; }
35689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35690   cat >>confdefs.h <<_ACEOF
35691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35692 _ACEOF
35693  solaris_vt=yes
35694 else
35695   solaris_vt=no
35698 done
35700                 # Check for minimum supported release
35701                 { echo "$as_me:$LINENO: checking Solaris version" >&5
35702 echo $ECHO_N "checking Solaris version... $ECHO_C" >&6; }
35703                 OS_MINOR=`echo ${host_os}|$SED -e 's/^.*solaris2\.//' -e s'/\..*$//'`
35704                 if test "${OS_MINOR}" -ge 7 ; then
35705                         { echo "$as_me:$LINENO: result: Solaris ${OS_MINOR}" >&5
35706 echo "${ECHO_T}Solaris ${OS_MINOR}" >&6; }
35707                 else
35708                         { echo "$as_me:$LINENO: result: Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&5
35709 echo "${ECHO_T}Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&6; }
35710                 fi
35711                 if test "${OS_MINOR}" -lt 8 ; then
35712                         { { echo "$as_me:$LINENO: error: This release no longer supports Solaris versions older than Solaris 8." >&5
35713 echo "$as_me: error: This release no longer supports Solaris versions older than Solaris 8." >&2;}
35714    { (exit 1); exit 1; }; }
35715                 fi
35716                 if test "x$SUNCC" = "xyes"; then
35717                         solaris_asm_inline="yes"
35718                 fi
35719                 { echo "$as_me:$LINENO: checking whether _LP64 is declared" >&5
35720 echo $ECHO_N "checking whether _LP64 is declared... $ECHO_C" >&6; }
35721 if test "${ac_cv_have_decl__LP64+set}" = set; then
35722   echo $ECHO_N "(cached) $ECHO_C" >&6
35723 else
35724   cat >conftest.$ac_ext <<_ACEOF
35725 /* confdefs.h.  */
35726 _ACEOF
35727 cat confdefs.h >>conftest.$ac_ext
35728 cat >>conftest.$ac_ext <<_ACEOF
35729 /* end confdefs.h.  */
35730 $ac_includes_default
35731 int
35732 main ()
35734 #ifndef _LP64
35735   (void) _LP64;
35736 #endif
35738   ;
35739   return 0;
35741 _ACEOF
35742 rm -f conftest.$ac_objext
35743 if { (ac_try="$ac_compile"
35744 case "(($ac_try" in
35745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35746   *) ac_try_echo=$ac_try;;
35747 esac
35748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35749   (eval "$ac_compile") 2>conftest.er1
35750   ac_status=$?
35751   grep -v '^ *+' conftest.er1 >conftest.err
35752   rm -f conftest.er1
35753   cat conftest.err >&5
35754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35755   (exit $ac_status); } && {
35756          test -z "$ac_c_werror_flag" ||
35757          test ! -s conftest.err
35758        } && test -s conftest.$ac_objext; then
35759   ac_cv_have_decl__LP64=yes
35760 else
35761   echo "$as_me: failed program was:" >&5
35762 sed 's/^/| /' conftest.$ac_ext >&5
35764         ac_cv_have_decl__LP64=no
35767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35769 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__LP64" >&5
35770 echo "${ECHO_T}$ac_cv_have_decl__LP64" >&6; }
35771 if test $ac_cv_have_decl__LP64 = yes; then
35772   SOLARIS_64="yes"
35773 else
35774   SOLARIS_64="no"
35778                 case $host_cpu in
35779                   sparc*)
35780                         SOLARIS_INOUT_ARCH="sparcv8plus"
35781                         ;;
35782                   i*86)
35783                         if test x$SOLARIS_64 = xyes ; then
35784                                 SOLARIS_INOUT_ARCH="amd64"
35785                         else
35786                                 SOLARIS_INOUT_ARCH="ia32"
35787                         fi
35788                         ;;
35789                   *)
35790                         { { echo "$as_me:$LINENO: error: Unsupported Solaris platform. Only SPARC & x86 \
35791                         are supported on Solaris in this release.   If you are \
35792                         interested in porting Xorg to your platform, please email \
35793                         xorg@lists.freedesktop.org." >&5
35794 echo "$as_me: error: Unsupported Solaris platform. Only SPARC & x86 \
35795                         are supported on Solaris in this release.   If you are \
35796                         interested in porting Xorg to your platform, please email \
35797                         xorg@lists.freedesktop.org." >&2;}
35798    { (exit 1); exit 1; }; } ;;
35799                 esac
35801                 if test x$solaris_asm_inline = xyes ; then
35802                         SOLARIS_ASM_CFLAGS='$(top_srcdir)/hw/xfree86/os-support/solaris/solaris-$(SOLARIS_INOUT_ARCH).il'
35803                         XORG_CFLAGS="${XORG_CFLAGS} "'$(SOLARIS_ASM_CFLAGS)'
35804                 fi
35806                 if test "x$SUPPORT_PC98" = xauto; then
35807                         SUPPORT_PC98="no"
35808                 fi
35809                 ;;
35810           gnu*)
35811                 XORG_OS="gnu"
35812                 XORG_OS_SUBDIR="hurd"
35813                 # Use the same stubs as BSD for old functions, since we now
35814                 # use libpciaccess for PCI
35815                 xorg_bus_bsdpci="yes"
35816                 ;;
35817           *)
35818                 XORG_OS="unknown"
35819                 XORG_OS_SUBDIR="unknown"
35820                 { { echo "$as_me:$LINENO: error: Your OS is unknown. Xorg currently only supports Linux,
35821 Free/Open/Net/DragonFlyBSD, Solaris/OpenSolaris, & GNU Hurd. If you are
35822 interested in porting Xorg to your platform, please email
35823 xorg@lists.freedesktop.org." >&5
35824 echo "$as_me: error: Your OS is unknown. Xorg currently only supports Linux,
35825 Free/Open/Net/DragonFlyBSD, Solaris/OpenSolaris, & GNU Hurd. If you are
35826 interested in porting Xorg to your platform, please email
35827 xorg@lists.freedesktop.org." >&2;}
35828    { (exit 1); exit 1; }; }
35829                 ;;
35830         esac
35832         case $host_cpu in
35833           sparc*)
35834                 xorg_bus_sparc="yes"
35835                 ;;
35836           i*86)
35837                 if test "x$SUPPORT_PC98" = xauto; then
35838                         SUPPORT_PC98="yes"
35839                 fi
35840                 ;;
35841         esac
35843         if test "x$SUPPORT_PC98" = xauto; then
35844                 SUPPORT_PC98="no"
35845         fi
35846         if test "x$SUPPORT_PC98" = xyes; then
35848 cat >>confdefs.h <<\_ACEOF
35849 #define SUPPORT_PC98 1
35850 _ACEOF
35852         fi
35853         if test "x$XORG_OS_PCI" = x ; then
35854                 XORG_OS_PCI=$XORG_OS
35855         fi
35856         if test "x$DGA" = xauto; then
35858 pkg_failed=no
35859 { echo "$as_me:$LINENO: checking for DGA" >&5
35860 echo $ECHO_N "checking for DGA... $ECHO_C" >&6; }
35862 if test -n "$DGA_CFLAGS"; then
35863     pkg_cv_DGA_CFLAGS="$DGA_CFLAGS"
35864  elif test -n "$PKG_CONFIG"; then
35865     if test -n "$PKG_CONFIG" && \
35866     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\"") >&5
35867   ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
35868   ac_status=$?
35869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35870   (exit $ac_status); }; then
35871   pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null`
35872 else
35873   pkg_failed=yes
35875  else
35876     pkg_failed=untried
35878 if test -n "$DGA_LIBS"; then
35879     pkg_cv_DGA_LIBS="$DGA_LIBS"
35880  elif test -n "$PKG_CONFIG"; then
35881     if test -n "$PKG_CONFIG" && \
35882     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\"") >&5
35883   ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
35884   ac_status=$?
35885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35886   (exit $ac_status); }; then
35887   pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null`
35888 else
35889   pkg_failed=yes
35891  else
35892     pkg_failed=untried
35897 if test $pkg_failed = yes; then
35898         { echo "$as_me:$LINENO: result: no" >&5
35899 echo "${ECHO_T}no" >&6; }
35901 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35902         _pkg_short_errors_supported=yes
35903 else
35904         _pkg_short_errors_supported=no
35906         if test $_pkg_short_errors_supported = yes; then
35907                 DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$DGAPROTO" 2>&1`
35908         else
35909                 DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors "$DGAPROTO" 2>&1`
35910         fi
35911         # Put the nasty error message in config.log where it belongs
35912         echo "$DGA_PKG_ERRORS" >&5
35914         DGA=no
35915 elif test $pkg_failed = untried; then
35916         { echo "$as_me:$LINENO: result: no" >&5
35917 echo "${ECHO_T}no" >&6; }
35918         DGA=no
35919 else
35920         DGA_CFLAGS=$pkg_cv_DGA_CFLAGS
35921         DGA_LIBS=$pkg_cv_DGA_LIBS
35922         { echo "$as_me:$LINENO: result: yes" >&5
35923 echo "${ECHO_T}yes" >&6; }
35924         DGA=yes
35926         fi
35927         if test "x$DGA" = xyes; then
35928                 XORG_MODULES="$XORG_MODULES $DGAPROTO"
35930 pkg_failed=no
35931 { echo "$as_me:$LINENO: checking for DGA" >&5
35932 echo $ECHO_N "checking for DGA... $ECHO_C" >&6; }
35934 if test -n "$DGA_CFLAGS"; then
35935     pkg_cv_DGA_CFLAGS="$DGA_CFLAGS"
35936  elif test -n "$PKG_CONFIG"; then
35937     if test -n "$PKG_CONFIG" && \
35938     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\"") >&5
35939   ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
35940   ac_status=$?
35941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35942   (exit $ac_status); }; then
35943   pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null`
35944 else
35945   pkg_failed=yes
35947  else
35948     pkg_failed=untried
35950 if test -n "$DGA_LIBS"; then
35951     pkg_cv_DGA_LIBS="$DGA_LIBS"
35952  elif test -n "$PKG_CONFIG"; then
35953     if test -n "$PKG_CONFIG" && \
35954     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\"") >&5
35955   ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
35956   ac_status=$?
35957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35958   (exit $ac_status); }; then
35959   pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null`
35960 else
35961   pkg_failed=yes
35963  else
35964     pkg_failed=untried
35969 if test $pkg_failed = yes; then
35970         { echo "$as_me:$LINENO: result: no" >&5
35971 echo "${ECHO_T}no" >&6; }
35973 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35974         _pkg_short_errors_supported=yes
35975 else
35976         _pkg_short_errors_supported=no
35978         if test $_pkg_short_errors_supported = yes; then
35979                 DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$DGAPROTO" 2>&1`
35980         else
35981                 DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors "$DGAPROTO" 2>&1`
35982         fi
35983         # Put the nasty error message in config.log where it belongs
35984         echo "$DGA_PKG_ERRORS" >&5
35986         { { echo "$as_me:$LINENO: error: Package requirements ($DGAPROTO) were not met:
35988 $DGA_PKG_ERRORS
35990 Consider adjusting the PKG_CONFIG_PATH environment variable if you
35991 installed software in a non-standard prefix.
35993 Alternatively, you may set the environment variables DGA_CFLAGS
35994 and DGA_LIBS to avoid the need to call pkg-config.
35995 See the pkg-config man page for more details." >&5
35996 echo "$as_me: error: Package requirements ($DGAPROTO) were not met:
35998 $DGA_PKG_ERRORS
36000 Consider adjusting the PKG_CONFIG_PATH environment variable if you
36001 installed software in a non-standard prefix.
36003 Alternatively, you may set the environment variables DGA_CFLAGS
36004 and DGA_LIBS to avoid the need to call pkg-config.
36005 See the pkg-config man page for more details." >&2;}
36006    { (exit 1); exit 1; }; }
36007 elif test $pkg_failed = untried; then
36008         { echo "$as_me:$LINENO: result: no" >&5
36009 echo "${ECHO_T}no" >&6; }
36010         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
36011 is in your PATH or set the PKG_CONFIG environment variable to the full
36012 path to pkg-config.
36014 Alternatively, you may set the environment variables DGA_CFLAGS
36015 and DGA_LIBS to avoid the need to call pkg-config.
36016 See the pkg-config man page for more details.
36018 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
36019 See \`config.log' for more details." >&5
36020 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
36021 is in your PATH or set the PKG_CONFIG environment variable to the full
36022 path to pkg-config.
36024 Alternatively, you may set the environment variables DGA_CFLAGS
36025 and DGA_LIBS to avoid the need to call pkg-config.
36026 See the pkg-config man page for more details.
36028 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
36029 See \`config.log' for more details." >&2;}
36030    { (exit 1); exit 1; }; }
36031 else
36032         DGA_CFLAGS=$pkg_cv_DGA_CFLAGS
36033         DGA_LIBS=$pkg_cv_DGA_LIBS
36034         { echo "$as_me:$LINENO: result: yes" >&5
36035 echo "${ECHO_T}yes" >&6; }
36039 cat >>confdefs.h <<\_ACEOF
36040 #define DGA 1
36041 _ACEOF
36044 cat >>confdefs.h <<\_ACEOF
36045 #define XFreeXDGA 1
36046 _ACEOF
36048         fi
36050         if test "x$XF86VIDMODE" = xauto; then
36052 pkg_failed=no
36053 { echo "$as_me:$LINENO: checking for XF86VIDMODE" >&5
36054 echo $ECHO_N "checking for XF86VIDMODE... $ECHO_C" >&6; }
36056 if test -n "$XF86VIDMODE_CFLAGS"; then
36057     pkg_cv_XF86VIDMODE_CFLAGS="$XF86VIDMODE_CFLAGS"
36058  elif test -n "$PKG_CONFIG"; then
36059     if test -n "$PKG_CONFIG" && \
36060     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\"") >&5
36061   ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5
36062   ac_status=$?
36063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36064   (exit $ac_status); }; then
36065   pkg_cv_XF86VIDMODE_CFLAGS=`$PKG_CONFIG --cflags "$VIDMODEPROTO" 2>/dev/null`
36066 else
36067   pkg_failed=yes
36069  else
36070     pkg_failed=untried
36072 if test -n "$XF86VIDMODE_LIBS"; then
36073     pkg_cv_XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS"
36074  elif test -n "$PKG_CONFIG"; then
36075     if test -n "$PKG_CONFIG" && \
36076     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\"") >&5
36077   ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5
36078   ac_status=$?
36079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36080   (exit $ac_status); }; then
36081   pkg_cv_XF86VIDMODE_LIBS=`$PKG_CONFIG --libs "$VIDMODEPROTO" 2>/dev/null`
36082 else
36083   pkg_failed=yes
36085  else
36086     pkg_failed=untried
36091 if test $pkg_failed = yes; then
36092         { echo "$as_me:$LINENO: result: no" >&5
36093 echo "${ECHO_T}no" >&6; }
36095 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36096         _pkg_short_errors_supported=yes
36097 else
36098         _pkg_short_errors_supported=no
36100         if test $_pkg_short_errors_supported = yes; then
36101                 XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$VIDMODEPROTO" 2>&1`
36102         else
36103                 XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --print-errors "$VIDMODEPROTO" 2>&1`
36104         fi
36105         # Put the nasty error message in config.log where it belongs
36106         echo "$XF86VIDMODE_PKG_ERRORS" >&5
36108         XF86VIDMODE=no
36109 elif test $pkg_failed = untried; then
36110         { echo "$as_me:$LINENO: result: no" >&5
36111 echo "${ECHO_T}no" >&6; }
36112         XF86VIDMODE=no
36113 else
36114         XF86VIDMODE_CFLAGS=$pkg_cv_XF86VIDMODE_CFLAGS
36115         XF86VIDMODE_LIBS=$pkg_cv_XF86VIDMODE_LIBS
36116         { echo "$as_me:$LINENO: result: yes" >&5
36117 echo "${ECHO_T}yes" >&6; }
36118         XF86VIDMODE=yes
36120         fi
36121         if test "x$XF86VIDMODE" = xyes; then
36122                 XORG_MODULES="$XORG_MODULES $VIDMODEPROTO"
36124 pkg_failed=no
36125 { echo "$as_me:$LINENO: checking for XF86VIDMODE" >&5
36126 echo $ECHO_N "checking for XF86VIDMODE... $ECHO_C" >&6; }
36128 if test -n "$XF86VIDMODE_CFLAGS"; then
36129     pkg_cv_XF86VIDMODE_CFLAGS="$XF86VIDMODE_CFLAGS"
36130  elif test -n "$PKG_CONFIG"; then
36131     if test -n "$PKG_CONFIG" && \
36132     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\"") >&5
36133   ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5
36134   ac_status=$?
36135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36136   (exit $ac_status); }; then
36137   pkg_cv_XF86VIDMODE_CFLAGS=`$PKG_CONFIG --cflags "$VIDMODEPROTO" 2>/dev/null`
36138 else
36139   pkg_failed=yes
36141  else
36142     pkg_failed=untried
36144 if test -n "$XF86VIDMODE_LIBS"; then
36145     pkg_cv_XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS"
36146  elif test -n "$PKG_CONFIG"; then
36147     if test -n "$PKG_CONFIG" && \
36148     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\"") >&5
36149   ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5
36150   ac_status=$?
36151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36152   (exit $ac_status); }; then
36153   pkg_cv_XF86VIDMODE_LIBS=`$PKG_CONFIG --libs "$VIDMODEPROTO" 2>/dev/null`
36154 else
36155   pkg_failed=yes
36157  else
36158     pkg_failed=untried
36163 if test $pkg_failed = yes; then
36164         { echo "$as_me:$LINENO: result: no" >&5
36165 echo "${ECHO_T}no" >&6; }
36167 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36168         _pkg_short_errors_supported=yes
36169 else
36170         _pkg_short_errors_supported=no
36172         if test $_pkg_short_errors_supported = yes; then
36173                 XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$VIDMODEPROTO" 2>&1`
36174         else
36175                 XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --print-errors "$VIDMODEPROTO" 2>&1`
36176         fi
36177         # Put the nasty error message in config.log where it belongs
36178         echo "$XF86VIDMODE_PKG_ERRORS" >&5
36180         { { echo "$as_me:$LINENO: error: Package requirements ($VIDMODEPROTO) were not met:
36182 $XF86VIDMODE_PKG_ERRORS
36184 Consider adjusting the PKG_CONFIG_PATH environment variable if you
36185 installed software in a non-standard prefix.
36187 Alternatively, you may set the environment variables XF86VIDMODE_CFLAGS
36188 and XF86VIDMODE_LIBS to avoid the need to call pkg-config.
36189 See the pkg-config man page for more details." >&5
36190 echo "$as_me: error: Package requirements ($VIDMODEPROTO) were not met:
36192 $XF86VIDMODE_PKG_ERRORS
36194 Consider adjusting the PKG_CONFIG_PATH environment variable if you
36195 installed software in a non-standard prefix.
36197 Alternatively, you may set the environment variables XF86VIDMODE_CFLAGS
36198 and XF86VIDMODE_LIBS to avoid the need to call pkg-config.
36199 See the pkg-config man page for more details." >&2;}
36200    { (exit 1); exit 1; }; }
36201 elif test $pkg_failed = untried; then
36202         { echo "$as_me:$LINENO: result: no" >&5
36203 echo "${ECHO_T}no" >&6; }
36204         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
36205 is in your PATH or set the PKG_CONFIG environment variable to the full
36206 path to pkg-config.
36208 Alternatively, you may set the environment variables XF86VIDMODE_CFLAGS
36209 and XF86VIDMODE_LIBS to avoid the need to call pkg-config.
36210 See the pkg-config man page for more details.
36212 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
36213 See \`config.log' for more details." >&5
36214 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
36215 is in your PATH or set the PKG_CONFIG environment variable to the full
36216 path to pkg-config.
36218 Alternatively, you may set the environment variables XF86VIDMODE_CFLAGS
36219 and XF86VIDMODE_LIBS to avoid the need to call pkg-config.
36220 See the pkg-config man page for more details.
36222 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
36223 See \`config.log' for more details." >&2;}
36224    { (exit 1); exit 1; }; }
36225 else
36226         XF86VIDMODE_CFLAGS=$pkg_cv_XF86VIDMODE_CFLAGS
36227         XF86VIDMODE_LIBS=$pkg_cv_XF86VIDMODE_LIBS
36228         { echo "$as_me:$LINENO: result: yes" >&5
36229 echo "${ECHO_T}yes" >&6; }
36233 cat >>confdefs.h <<\_ACEOF
36234 #define XF86VIDMODE 1
36235 _ACEOF
36237         fi
36239         if test -n "$XORG_MODULES"; then
36241 pkg_failed=no
36242 { echo "$as_me:$LINENO: checking for XORG_MODULES" >&5
36243 echo $ECHO_N "checking for XORG_MODULES... $ECHO_C" >&6; }
36245 if test -n "$XORG_MODULES_CFLAGS"; then
36246     pkg_cv_XORG_MODULES_CFLAGS="$XORG_MODULES_CFLAGS"
36247  elif test -n "$PKG_CONFIG"; then
36248     if test -n "$PKG_CONFIG" && \
36249     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\"") >&5
36250   ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5
36251   ac_status=$?
36252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36253   (exit $ac_status); }; then
36254   pkg_cv_XORG_MODULES_CFLAGS=`$PKG_CONFIG --cflags "$XORG_MODULES" 2>/dev/null`
36255 else
36256   pkg_failed=yes
36258  else
36259     pkg_failed=untried
36261 if test -n "$XORG_MODULES_LIBS"; then
36262     pkg_cv_XORG_MODULES_LIBS="$XORG_MODULES_LIBS"
36263  elif test -n "$PKG_CONFIG"; then
36264     if test -n "$PKG_CONFIG" && \
36265     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\"") >&5
36266   ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5
36267   ac_status=$?
36268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36269   (exit $ac_status); }; then
36270   pkg_cv_XORG_MODULES_LIBS=`$PKG_CONFIG --libs "$XORG_MODULES" 2>/dev/null`
36271 else
36272   pkg_failed=yes
36274  else
36275     pkg_failed=untried
36280 if test $pkg_failed = yes; then
36281         { echo "$as_me:$LINENO: result: no" >&5
36282 echo "${ECHO_T}no" >&6; }
36284 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36285         _pkg_short_errors_supported=yes
36286 else
36287         _pkg_short_errors_supported=no
36289         if test $_pkg_short_errors_supported = yes; then
36290                 XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$XORG_MODULES" 2>&1`
36291         else
36292                 XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors "$XORG_MODULES" 2>&1`
36293         fi
36294         # Put the nasty error message in config.log where it belongs
36295         echo "$XORG_MODULES_PKG_ERRORS" >&5
36297         { { echo "$as_me:$LINENO: error: Package requirements ($XORG_MODULES) were not met:
36299 $XORG_MODULES_PKG_ERRORS
36301 Consider adjusting the PKG_CONFIG_PATH environment variable if you
36302 installed software in a non-standard prefix.
36304 Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
36305 and XORG_MODULES_LIBS to avoid the need to call pkg-config.
36306 See the pkg-config man page for more details." >&5
36307 echo "$as_me: error: Package requirements ($XORG_MODULES) were not met:
36309 $XORG_MODULES_PKG_ERRORS
36311 Consider adjusting the PKG_CONFIG_PATH environment variable if you
36312 installed software in a non-standard prefix.
36314 Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
36315 and XORG_MODULES_LIBS to avoid the need to call pkg-config.
36316 See the pkg-config man page for more details." >&2;}
36317    { (exit 1); exit 1; }; }
36318 elif test $pkg_failed = untried; then
36319         { echo "$as_me:$LINENO: result: no" >&5
36320 echo "${ECHO_T}no" >&6; }
36321         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
36322 is in your PATH or set the PKG_CONFIG environment variable to the full
36323 path to pkg-config.
36325 Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
36326 and XORG_MODULES_LIBS to avoid the need to call pkg-config.
36327 See the pkg-config man page for more details.
36329 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
36330 See \`config.log' for more details." >&5
36331 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
36332 is in your PATH or set the PKG_CONFIG environment variable to the full
36333 path to pkg-config.
36335 Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
36336 and XORG_MODULES_LIBS to avoid the need to call pkg-config.
36337 See the pkg-config man page for more details.
36339 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
36340 See \`config.log' for more details." >&2;}
36341    { (exit 1); exit 1; }; }
36342 else
36343         XORG_MODULES_CFLAGS=$pkg_cv_XORG_MODULES_CFLAGS
36344         XORG_MODULES_LIBS=$pkg_cv_XORG_MODULES_LIBS
36345         { echo "$as_me:$LINENO: result: yes" >&5
36346 echo "${ECHO_T}yes" >&6; }
36349                 XORG_CFLAGS="$XORG_CFLAGS $XORG_MODULES_CFLAGS"
36350                 XORG_SYS_LIBS="$XORG_SYS_LIBS $XORG_MODULES_LIBS"
36351         fi
36360                 XF86CONFIGFILE="xorg.conf"
36361         XF86CONFIGDIR="xorg.conf.d"
36363         CONFIGFILE="$sysconfdir/$XF86CONFIGFILE"
36364         LOGPREFIX="$logdir/Xorg."
36366 cat >>confdefs.h <<\_ACEOF
36367 #define XORG_SERVER 1
36368 _ACEOF
36371 cat >>confdefs.h <<\_ACEOF
36372 #define XORGSERVER 1
36373 _ACEOF
36376 cat >>confdefs.h <<\_ACEOF
36377 #define XFree86Server 1
36378 _ACEOF
36381 cat >>confdefs.h <<\_ACEOF
36382 #define XFree86LOADER 1
36383 _ACEOF
36386 cat >>confdefs.h <<_ACEOF
36387 #define XORG_VERSION_CURRENT $VENDOR_RELEASE
36388 _ACEOF
36391 cat >>confdefs.h <<\_ACEOF
36392 #define NEED_XF86_TYPES 1
36393 _ACEOF
36396 cat >>confdefs.h <<\_ACEOF
36397 #define NEED_XF86_PROTOTYPES 1
36398 _ACEOF
36401 cat >>confdefs.h <<\_ACEOF
36402 #define __XSERVERNAME__ "Xorg"
36403 _ACEOF
36406   prefix_NONE=
36407   exec_prefix_NONE=
36408   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
36409   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
36410   eval ac_define_dir="\"$XF86CONFIGFILE\""
36411   eval ac_define_dir="\"$ac_define_dir\""
36412   __XCONFIGFILE__="$ac_define_dir"
36415 cat >>confdefs.h <<_ACEOF
36416 #define __XCONFIGFILE__ "$ac_define_dir"
36417 _ACEOF
36419   test "$prefix_NONE" && prefix=NONE
36420   test "$exec_prefix_NONE" && exec_prefix=NONE
36423   prefix_NONE=
36424   exec_prefix_NONE=
36425   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
36426   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
36427   eval ac_define_dir="\"$XF86CONFIGFILE\""
36428   eval ac_define_dir="\"$ac_define_dir\""
36429   XF86CONFIGFILE="$ac_define_dir"
36432 cat >>confdefs.h <<_ACEOF
36433 #define XF86CONFIGFILE "$ac_define_dir"
36434 _ACEOF
36436   test "$prefix_NONE" && prefix=NONE
36437   test "$exec_prefix_NONE" && exec_prefix=NONE
36440   prefix_NONE=
36441   exec_prefix_NONE=
36442   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
36443   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
36444   eval ac_define_dir="\"$XF86CONFIGDIR\""
36445   eval ac_define_dir="\"$ac_define_dir\""
36446   __XCONFIGDIR__="$ac_define_dir"
36449 cat >>confdefs.h <<_ACEOF
36450 #define __XCONFIGDIR__ "$ac_define_dir"
36451 _ACEOF
36453   test "$prefix_NONE" && prefix=NONE
36454   test "$exec_prefix_NONE" && exec_prefix=NONE
36457   prefix_NONE=
36458   exec_prefix_NONE=
36459   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
36460   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
36461   eval ac_define_dir="\"$moduledir\""
36462   eval ac_define_dir="\"$ac_define_dir\""
36463   DEFAULT_MODULE_PATH="$ac_define_dir"
36466 cat >>confdefs.h <<_ACEOF
36467 #define DEFAULT_MODULE_PATH "$ac_define_dir"
36468 _ACEOF
36470   test "$prefix_NONE" && prefix=NONE
36471   test "$exec_prefix_NONE" && exec_prefix=NONE
36474   prefix_NONE=
36475   exec_prefix_NONE=
36476   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
36477   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
36478   eval ac_define_dir="\"$libdir\""
36479   eval ac_define_dir="\"$ac_define_dir\""
36480   DEFAULT_LIBRARY_PATH="$ac_define_dir"
36483 cat >>confdefs.h <<_ACEOF
36484 #define DEFAULT_LIBRARY_PATH "$ac_define_dir"
36485 _ACEOF
36487   test "$prefix_NONE" && prefix=NONE
36488   test "$exec_prefix_NONE" && exec_prefix=NONE
36491   prefix_NONE=
36492   exec_prefix_NONE=
36493   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
36494   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
36495   eval ac_define_dir="\"$LOGPREFIX\""
36496   eval ac_define_dir="\"$ac_define_dir\""
36497   DEFAULT_LOGPREFIX="$ac_define_dir"
36500 cat >>confdefs.h <<_ACEOF
36501 #define DEFAULT_LOGPREFIX "$ac_define_dir"
36502 _ACEOF
36504   test "$prefix_NONE" && prefix=NONE
36505   test "$exec_prefix_NONE" && exec_prefix=NONE
36508 cat >>confdefs.h <<_ACEOF
36509 #define __VENDORDWEBSUPPORT__ "$VENDOR_WEB"
36510 _ACEOF
36513 cat >>confdefs.h <<\_ACEOF
36514 #define XSERVER_LIBPCIACCESS 1
36515 _ACEOF
36517         if test "x$VGAHW" = xyes; then
36519 cat >>confdefs.h <<\_ACEOF
36520 #define WITH_VGAHW 1
36521 _ACEOF
36523         fi
36525         driverdir="$moduledir/drivers"
36528         sdkdir="$includedir/xorg"
36529         extdir="$includedir/X11/extensions"
36530         sysconfigdir="$datadir/X11/$XF86CONFIGDIR"
36536         # stuff the ABI versions into the pc file too
36537         extract_abi() {
36538             grep ^.define.*${1}_VERSION ${srcdir}/hw/xfree86/common/xf86Module.h | tr '(),' '  .' | awk '{ print $4$5 }'
36539         }
36540         abi_ansic=`extract_abi ANSIC`
36541         abi_videodrv=`extract_abi VIDEODRV`
36542         abi_xinput=`extract_abi XINPUT`
36543         abi_extension=`extract_abi EXTENSION`
36549  if test "x$XORG" = xyes; then
36550   XORG_TRUE=
36551   XORG_FALSE='#'
36552 else
36553   XORG_TRUE='#'
36554   XORG_FALSE=
36557  if test "x$xorg_bus_linuxpci" = xyes; then
36558   XORG_BUS_LINUXPCI_TRUE=
36559   XORG_BUS_LINUXPCI_FALSE='#'
36560 else
36561   XORG_BUS_LINUXPCI_TRUE='#'
36562   XORG_BUS_LINUXPCI_FALSE=
36565  if test "x$xorg_bus_bsdpci" = xyes; then
36566   XORG_BUS_BSDPCI_TRUE=
36567   XORG_BUS_BSDPCI_FALSE='#'
36568 else
36569   XORG_BUS_BSDPCI_TRUE='#'
36570   XORG_BUS_BSDPCI_FALSE=
36573  if test "x$xorg_bus_sparc" = xyes; then
36574   XORG_BUS_SPARC_TRUE=
36575   XORG_BUS_SPARC_FALSE='#'
36576 else
36577   XORG_BUS_SPARC_TRUE='#'
36578   XORG_BUS_SPARC_FALSE=
36581  if test "x$linux_ia64" = xyes; then
36582   LINUX_IA64_TRUE=
36583   LINUX_IA64_FALSE='#'
36584 else
36585   LINUX_IA64_TRUE='#'
36586   LINUX_IA64_FALSE=
36589  if test "x$linux_alpha" = xyes; then
36590   LINUX_ALPHA_TRUE=
36591   LINUX_ALPHA_FALSE='#'
36592 else
36593   LINUX_ALPHA_TRUE='#'
36594   LINUX_ALPHA_FALSE=
36597  if test "x$linux_acpi" = xyes; then
36598   LNXACPI_TRUE=
36599   LNXACPI_FALSE='#'
36600 else
36601   LNXACPI_TRUE='#'
36602   LNXACPI_FALSE=
36605  if test "x$solaris_asm_inline" = xyes; then
36606   SOLARIS_ASM_INLINE_TRUE=
36607   SOLARIS_ASM_INLINE_FALSE='#'
36608 else
36609   SOLARIS_ASM_INLINE_TRUE='#'
36610   SOLARIS_ASM_INLINE_FALSE=
36613  if test "x$solaris_vt" = xyes; then
36614   SOLARIS_VT_TRUE=
36615   SOLARIS_VT_FALSE='#'
36616 else
36617   SOLARIS_VT_TRUE='#'
36618   SOLARIS_VT_FALSE=
36621  if test "x$DGA" = xyes; then
36622   DGA_TRUE=
36623   DGA_FALSE='#'
36624 else
36625   DGA_TRUE='#'
36626   DGA_FALSE=
36629  if test "x$XF86VIDMODE" = xyes; then
36630   XF86VIDMODE_TRUE=
36631   XF86VIDMODE_FALSE='#'
36632 else
36633   XF86VIDMODE_TRUE='#'
36634   XF86VIDMODE_FALSE=
36639 { echo "$as_me:$LINENO: checking whether to build XWin DDX" >&5
36640 echo $ECHO_N "checking whether to build XWin DDX... $ECHO_C" >&6; }
36641 if test "x$XWIN" = xauto; then
36642         case $host_os in
36643                 cygwin*) XWIN="yes" ;;
36644                 mingw*) XWIN="yes" ;;
36645                 *) XWIN="no" ;;
36646         esac
36648 { echo "$as_me:$LINENO: result: $XWIN" >&5
36649 echo "${ECHO_T}$XWIN" >&6; }
36651 if test "x$XWIN" = xyes; then
36653   prefix_NONE=
36654   exec_prefix_NONE=
36655   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
36656   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
36657   eval ac_define_dir="\"$sysconfdir\""
36658   eval ac_define_dir="\"$ac_define_dir\""
36659   SYSCONFDIR="$ac_define_dir"
36662 cat >>confdefs.h <<_ACEOF
36663 #define SYSCONFDIR "$ac_define_dir"
36664 _ACEOF
36666   test "$prefix_NONE" && prefix=NONE
36667   test "$exec_prefix_NONE" && exec_prefix=NONE
36670   prefix_NONE=
36671   exec_prefix_NONE=
36672   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
36673   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
36674   eval ac_define_dir="\"$logdir\""
36675   eval ac_define_dir="\"$ac_define_dir\""
36676   DEFAULT_LOGDIR="$ac_define_dir"
36679 cat >>confdefs.h <<_ACEOF
36680 #define DEFAULT_LOGDIR "$ac_define_dir"
36681 _ACEOF
36683   test "$prefix_NONE" && prefix=NONE
36684   test "$exec_prefix_NONE" && exec_prefix=NONE
36687 cat >>confdefs.h <<_ACEOF
36688 #define XORG_VERSION_CURRENT $VENDOR_RELEASE
36689 _ACEOF
36692 cat >>confdefs.h <<_ACEOF
36693 #define __VENDORDWEBSUPPORT__ "$VENDOR_WEB"
36694 _ACEOF
36696         if test -n "$ac_tool_prefix"; then
36697   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
36698 set dummy ${ac_tool_prefix}windres; ac_word=$2
36699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36701 if test "${ac_cv_prog_WINDRES+set}" = set; then
36702   echo $ECHO_N "(cached) $ECHO_C" >&6
36703 else
36704   if test -n "$WINDRES"; then
36705   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
36706 else
36707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36708 for as_dir in $PATH
36710   IFS=$as_save_IFS
36711   test -z "$as_dir" && as_dir=.
36712   for ac_exec_ext in '' $ac_executable_extensions; do
36713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36714     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
36715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36716     break 2
36717   fi
36718 done
36719 done
36720 IFS=$as_save_IFS
36724 WINDRES=$ac_cv_prog_WINDRES
36725 if test -n "$WINDRES"; then
36726   { echo "$as_me:$LINENO: result: $WINDRES" >&5
36727 echo "${ECHO_T}$WINDRES" >&6; }
36728 else
36729   { echo "$as_me:$LINENO: result: no" >&5
36730 echo "${ECHO_T}no" >&6; }
36735 if test -z "$ac_cv_prog_WINDRES"; then
36736   ac_ct_WINDRES=$WINDRES
36737   # Extract the first word of "windres", so it can be a program name with args.
36738 set dummy windres; ac_word=$2
36739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36741 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
36742   echo $ECHO_N "(cached) $ECHO_C" >&6
36743 else
36744   if test -n "$ac_ct_WINDRES"; then
36745   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
36746 else
36747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36748 for as_dir in $PATH
36750   IFS=$as_save_IFS
36751   test -z "$as_dir" && as_dir=.
36752   for ac_exec_ext in '' $ac_executable_extensions; do
36753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36754     ac_cv_prog_ac_ct_WINDRES="windres"
36755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36756     break 2
36757   fi
36758 done
36759 done
36760 IFS=$as_save_IFS
36764 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
36765 if test -n "$ac_ct_WINDRES"; then
36766   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
36767 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
36768 else
36769   { echo "$as_me:$LINENO: result: no" >&5
36770 echo "${ECHO_T}no" >&6; }
36773   if test "x$ac_ct_WINDRES" = x; then
36774     WINDRES=""
36775   else
36776     case $cross_compiling:$ac_tool_warned in
36777 yes:)
36778 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
36779 whose name does not start with the host triplet.  If you think this
36780 configuration is useful to you, please write to autoconf@gnu.org." >&5
36781 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
36782 whose name does not start with the host triplet.  If you think this
36783 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
36784 ac_tool_warned=yes ;;
36785 esac
36786     WINDRES=$ac_ct_WINDRES
36787   fi
36788 else
36789   WINDRES="$ac_cv_prog_WINDRES"
36794 pkg_failed=no
36795 { echo "$as_me:$LINENO: checking for XWINMODULES" >&5
36796 echo $ECHO_N "checking for XWINMODULES... $ECHO_C" >&6; }
36798 if test -n "$XWINMODULES_CFLAGS"; then
36799     pkg_cv_XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS"
36800  elif test -n "$PKG_CONFIG"; then
36801     if test -n "$PKG_CONFIG" && \
36802     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau\"") >&5
36803   ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau") 2>&5
36804   ac_status=$?
36805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36806   (exit $ac_status); }; then
36807   pkg_cv_XWINMODULES_CFLAGS=`$PKG_CONFIG --cflags "x11 xdmcp xau" 2>/dev/null`
36808 else
36809   pkg_failed=yes
36811  else
36812     pkg_failed=untried
36814 if test -n "$XWINMODULES_LIBS"; then
36815     pkg_cv_XWINMODULES_LIBS="$XWINMODULES_LIBS"
36816  elif test -n "$PKG_CONFIG"; then
36817     if test -n "$PKG_CONFIG" && \
36818     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau\"") >&5
36819   ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau") 2>&5
36820   ac_status=$?
36821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36822   (exit $ac_status); }; then
36823   pkg_cv_XWINMODULES_LIBS=`$PKG_CONFIG --libs "x11 xdmcp xau" 2>/dev/null`
36824 else
36825   pkg_failed=yes
36827  else
36828     pkg_failed=untried
36833 if test $pkg_failed = yes; then
36834         { echo "$as_me:$LINENO: result: no" >&5
36835 echo "${ECHO_T}no" >&6; }
36837 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36838         _pkg_short_errors_supported=yes
36839 else
36840         _pkg_short_errors_supported=no
36842         if test $_pkg_short_errors_supported = yes; then
36843                 XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xdmcp xau" 2>&1`
36844         else
36845                 XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xdmcp xau" 2>&1`
36846         fi
36847         # Put the nasty error message in config.log where it belongs
36848         echo "$XWINMODULES_PKG_ERRORS" >&5
36850         { { echo "$as_me:$LINENO: error: Package requirements (x11 xdmcp xau) were not met:
36852 $XWINMODULES_PKG_ERRORS
36854 Consider adjusting the PKG_CONFIG_PATH environment variable if you
36855 installed software in a non-standard prefix.
36857 Alternatively, you may set the environment variables XWINMODULES_CFLAGS
36858 and XWINMODULES_LIBS to avoid the need to call pkg-config.
36859 See the pkg-config man page for more details." >&5
36860 echo "$as_me: error: Package requirements (x11 xdmcp xau) were not met:
36862 $XWINMODULES_PKG_ERRORS
36864 Consider adjusting the PKG_CONFIG_PATH environment variable if you
36865 installed software in a non-standard prefix.
36867 Alternatively, you may set the environment variables XWINMODULES_CFLAGS
36868 and XWINMODULES_LIBS to avoid the need to call pkg-config.
36869 See the pkg-config man page for more details." >&2;}
36870    { (exit 1); exit 1; }; }
36871 elif test $pkg_failed = untried; then
36872         { echo "$as_me:$LINENO: result: no" >&5
36873 echo "${ECHO_T}no" >&6; }
36874         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
36875 is in your PATH or set the PKG_CONFIG environment variable to the full
36876 path to pkg-config.
36878 Alternatively, you may set the environment variables XWINMODULES_CFLAGS
36879 and XWINMODULES_LIBS to avoid the need to call pkg-config.
36880 See the pkg-config man page for more details.
36882 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
36883 See \`config.log' for more details." >&5
36884 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
36885 is in your PATH or set the PKG_CONFIG environment variable to the full
36886 path to pkg-config.
36888 Alternatively, you may set the environment variables XWINMODULES_CFLAGS
36889 and XWINMODULES_LIBS to avoid the need to call pkg-config.
36890 See the pkg-config man page for more details.
36892 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
36893 See \`config.log' for more details." >&2;}
36894    { (exit 1); exit 1; }; }
36895 else
36896         XWINMODULES_CFLAGS=$pkg_cv_XWINMODULES_CFLAGS
36897         XWINMODULES_LIBS=$pkg_cv_XWINMODULES_LIBS
36898         { echo "$as_me:$LINENO: result: yes" >&5
36899 echo "${ECHO_T}yes" >&6; }
36903         if test "x$WINDOWSWM" = xauto; then
36904                 if test -n "$PKG_CONFIG" && \
36905     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\"") >&5
36906   ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5
36907   ac_status=$?
36908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36909   (exit $ac_status); }; then
36910   WINDOWSWM=yes
36911 else
36912   WINDOWSWM=no
36914         fi
36915         if test "x$WINDOWSWM" = xyes ; then
36917 pkg_failed=no
36918 { echo "$as_me:$LINENO: checking for WINDOWSWM" >&5
36919 echo $ECHO_N "checking for WINDOWSWM... $ECHO_C" >&6; }
36921 if test -n "$WINDOWSWM_CFLAGS"; then
36922     pkg_cv_WINDOWSWM_CFLAGS="$WINDOWSWM_CFLAGS"
36923  elif test -n "$PKG_CONFIG"; then
36924     if test -n "$PKG_CONFIG" && \
36925     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\"") >&5
36926   ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5
36927   ac_status=$?
36928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36929   (exit $ac_status); }; then
36930   pkg_cv_WINDOWSWM_CFLAGS=`$PKG_CONFIG --cflags "$WINDOWSWMPROTO" 2>/dev/null`
36931 else
36932   pkg_failed=yes
36934  else
36935     pkg_failed=untried
36937 if test -n "$WINDOWSWM_LIBS"; then
36938     pkg_cv_WINDOWSWM_LIBS="$WINDOWSWM_LIBS"
36939  elif test -n "$PKG_CONFIG"; then
36940     if test -n "$PKG_CONFIG" && \
36941     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\"") >&5
36942   ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5
36943   ac_status=$?
36944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36945   (exit $ac_status); }; then
36946   pkg_cv_WINDOWSWM_LIBS=`$PKG_CONFIG --libs "$WINDOWSWMPROTO" 2>/dev/null`
36947 else
36948   pkg_failed=yes
36950  else
36951     pkg_failed=untried
36956 if test $pkg_failed = yes; then
36957         { echo "$as_me:$LINENO: result: no" >&5
36958 echo "${ECHO_T}no" >&6; }
36960 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36961         _pkg_short_errors_supported=yes
36962 else
36963         _pkg_short_errors_supported=no
36965         if test $_pkg_short_errors_supported = yes; then
36966                 WINDOWSWM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$WINDOWSWMPROTO" 2>&1`
36967         else
36968                 WINDOWSWM_PKG_ERRORS=`$PKG_CONFIG --print-errors "$WINDOWSWMPROTO" 2>&1`
36969         fi
36970         # Put the nasty error message in config.log where it belongs
36971         echo "$WINDOWSWM_PKG_ERRORS" >&5
36973         { { echo "$as_me:$LINENO: error: Package requirements ($WINDOWSWMPROTO) were not met:
36975 $WINDOWSWM_PKG_ERRORS
36977 Consider adjusting the PKG_CONFIG_PATH environment variable if you
36978 installed software in a non-standard prefix.
36980 Alternatively, you may set the environment variables WINDOWSWM_CFLAGS
36981 and WINDOWSWM_LIBS to avoid the need to call pkg-config.
36982 See the pkg-config man page for more details." >&5
36983 echo "$as_me: error: Package requirements ($WINDOWSWMPROTO) were not met:
36985 $WINDOWSWM_PKG_ERRORS
36987 Consider adjusting the PKG_CONFIG_PATH environment variable if you
36988 installed software in a non-standard prefix.
36990 Alternatively, you may set the environment variables WINDOWSWM_CFLAGS
36991 and WINDOWSWM_LIBS to avoid the need to call pkg-config.
36992 See the pkg-config man page for more details." >&2;}
36993    { (exit 1); exit 1; }; }
36994 elif test $pkg_failed = untried; then
36995         { echo "$as_me:$LINENO: result: no" >&5
36996 echo "${ECHO_T}no" >&6; }
36997         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
36998 is in your PATH or set the PKG_CONFIG environment variable to the full
36999 path to pkg-config.
37001 Alternatively, you may set the environment variables WINDOWSWM_CFLAGS
37002 and WINDOWSWM_LIBS to avoid the need to call pkg-config.
37003 See the pkg-config man page for more details.
37005 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
37006 See \`config.log' for more details." >&5
37007 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
37008 is in your PATH or set the PKG_CONFIG environment variable to the full
37009 path to pkg-config.
37011 Alternatively, you may set the environment variables WINDOWSWM_CFLAGS
37012 and WINDOWSWM_LIBS to avoid the need to call pkg-config.
37013 See the pkg-config man page for more details.
37015 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
37016 See \`config.log' for more details." >&2;}
37017    { (exit 1); exit 1; }; }
37018 else
37019         WINDOWSWM_CFLAGS=$pkg_cv_WINDOWSWM_CFLAGS
37020         WINDOWSWM_LIBS=$pkg_cv_WINDOWSWM_LIBS
37021         { echo "$as_me:$LINENO: result: yes" >&5
37022 echo "${ECHO_T}yes" >&6; }
37025                 XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS $WINDOWSWM_CFLAGS"
37027 cat >>confdefs.h <<\_ACEOF
37028 #define ROOTLESS 1
37029 _ACEOF
37031         fi
37033         case $host_os in
37034                 cygwin*)
37035                         XWIN_SERVER_NAME=XWin
37037 cat >>confdefs.h <<\_ACEOF
37038 #define HAS_DEVWINDOWS 1
37039 _ACEOF
37041                         ;;
37042                 mingw*)
37043                         XWIN_SERVER_NAME=Xming
37045 cat >>confdefs.h <<\_ACEOF
37046 #define RELOCATE_PROJECTROOT 1
37047 _ACEOF
37050 cat >>confdefs.h <<\_ACEOF
37051 #define HAS_WINSOCK 1
37052 _ACEOF
37054                         XWIN_SYS_LIBS=-lwinsock2
37055                         ;;
37056         esac
37057         XWIN_LIBS="$FB_LIB $MI_LIB $FIXES_LIB $XEXT_LIB $RANDR_LIB $RENDER_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $DAMAGE_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $OS_LIB"
37058         XWIN_SYS_LIBS="$XWIN_SYS_LIBS $XWINMODULES_LIBS"
37063         if test "x$DEBUGGING" = xyes; then
37065 cat >>confdefs.h <<\_ACEOF
37066 #define CYGDEBUG 1
37067 _ACEOF
37070 cat >>confdefs.h <<\_ACEOF
37071 #define CYGWINDOWING_DEBUG 1
37072 _ACEOF
37075 cat >>confdefs.h <<\_ACEOF
37076 #define CYGMULTIWINDOW_DEBUG 1
37077 _ACEOF
37079         fi
37082 cat >>confdefs.h <<\_ACEOF
37083 #define DDXOSVERRORF 1
37084 _ACEOF
37087 cat >>confdefs.h <<\_ACEOF
37088 #define DDXBEFORERESET 1
37089 _ACEOF
37092         if test "x$XWIN" = xyes && test "x$AIGLX" = xyes ; then
37093            if test "x$KHRONOS_SPEC_DIR" = "xauto" ; then
37095 pkg_failed=no
37096 { echo "$as_me:$LINENO: checking for KHRONOS_OPENGL_REGISTRY" >&5
37097 echo $ECHO_N "checking for KHRONOS_OPENGL_REGISTRY... $ECHO_C" >&6; }
37099 if test -n "$KHRONOS_OPENGL_REGISTRY_CFLAGS"; then
37100     pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS="$KHRONOS_OPENGL_REGISTRY_CFLAGS"
37101  elif test -n "$PKG_CONFIG"; then
37102     if test -n "$PKG_CONFIG" && \
37103     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\"") >&5
37104   ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5
37105   ac_status=$?
37106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37107   (exit $ac_status); }; then
37108   pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS=`$PKG_CONFIG --cflags "khronos-opengl-registry" 2>/dev/null`
37109 else
37110   pkg_failed=yes
37112  else
37113     pkg_failed=untried
37115 if test -n "$KHRONOS_OPENGL_REGISTRY_LIBS"; then
37116     pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS="$KHRONOS_OPENGL_REGISTRY_LIBS"
37117  elif test -n "$PKG_CONFIG"; then
37118     if test -n "$PKG_CONFIG" && \
37119     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\"") >&5
37120   ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5
37121   ac_status=$?
37122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37123   (exit $ac_status); }; then
37124   pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS=`$PKG_CONFIG --libs "khronos-opengl-registry" 2>/dev/null`
37125 else
37126   pkg_failed=yes
37128  else
37129     pkg_failed=untried
37134 if test $pkg_failed = yes; then
37135         { echo "$as_me:$LINENO: result: no" >&5
37136 echo "${ECHO_T}no" >&6; }
37138 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37139         _pkg_short_errors_supported=yes
37140 else
37141         _pkg_short_errors_supported=no
37143         if test $_pkg_short_errors_supported = yes; then
37144                 KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "khronos-opengl-registry" 2>&1`
37145         else
37146                 KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --print-errors "khronos-opengl-registry" 2>&1`
37147         fi
37148         # Put the nasty error message in config.log where it belongs
37149         echo "$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS" >&5
37151         { { echo "$as_me:$LINENO: error: Package requirements (khronos-opengl-registry) were not met:
37153 $KHRONOS_OPENGL_REGISTRY_PKG_ERRORS
37155 Consider adjusting the PKG_CONFIG_PATH environment variable if you
37156 installed software in a non-standard prefix.
37158 Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS
37159 and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config.
37160 See the pkg-config man page for more details." >&5
37161 echo "$as_me: error: Package requirements (khronos-opengl-registry) were not met:
37163 $KHRONOS_OPENGL_REGISTRY_PKG_ERRORS
37165 Consider adjusting the PKG_CONFIG_PATH environment variable if you
37166 installed software in a non-standard prefix.
37168 Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS
37169 and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config.
37170 See the pkg-config man page for more details." >&2;}
37171    { (exit 1); exit 1; }; }
37172 elif test $pkg_failed = untried; then
37173         { echo "$as_me:$LINENO: result: no" >&5
37174 echo "${ECHO_T}no" >&6; }
37175         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
37176 is in your PATH or set the PKG_CONFIG environment variable to the full
37177 path to pkg-config.
37179 Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS
37180 and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config.
37181 See the pkg-config man page for more details.
37183 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
37184 See \`config.log' for more details." >&5
37185 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
37186 is in your PATH or set the PKG_CONFIG environment variable to the full
37187 path to pkg-config.
37189 Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS
37190 and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config.
37191 See the pkg-config man page for more details.
37193 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
37194 See \`config.log' for more details." >&2;}
37195    { (exit 1); exit 1; }; }
37196 else
37197         KHRONOS_OPENGL_REGISTRY_CFLAGS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS
37198         KHRONOS_OPENGL_REGISTRY_LIBS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS
37199         { echo "$as_me:$LINENO: result: yes" >&5
37200 echo "${ECHO_T}yes" >&6; }
37203                 KHRONOS_SPEC_DIR=`pkg-config khronos-opengl-registry --variable=specdir`
37204            fi
37206         fi
37209  if test "x$XWIN" = xyes; then
37210   XWIN_TRUE=
37211   XWIN_FALSE='#'
37212 else
37213   XWIN_TRUE='#'
37214   XWIN_FALSE=
37217  if test "x$XWIN" = xyes; then
37218   XWIN_MULTIWINDOW_TRUE=
37219   XWIN_MULTIWINDOW_FALSE='#'
37220 else
37221   XWIN_MULTIWINDOW_TRUE='#'
37222   XWIN_MULTIWINDOW_FALSE=
37225  if test "x$XWIN" = xyes && test "x$WINDOWSWM" = xyes; then
37226   XWIN_MULTIWINDOWEXTWM_TRUE=
37227   XWIN_MULTIWINDOWEXTWM_FALSE='#'
37228 else
37229   XWIN_MULTIWINDOWEXTWM_TRUE='#'
37230   XWIN_MULTIWINDOWEXTWM_FALSE=
37233  if test "x$XWIN" = xyes; then
37234   XWIN_CLIPBOARD_TRUE=
37235   XWIN_CLIPBOARD_FALSE='#'
37236 else
37237   XWIN_CLIPBOARD_TRUE='#'
37238   XWIN_CLIPBOARD_FALSE=
37241  if test "x$XWIN" = xyes && test "x$AIGLX" = xyes; then
37242   XWIN_GLX_WINDOWS_TRUE=
37243   XWIN_GLX_WINDOWS_FALSE='#'
37244 else
37245   XWIN_GLX_WINDOWS_TRUE='#'
37246   XWIN_GLX_WINDOWS_FALSE=
37249  if test "x$XWIN" = xyes; then
37250   XWIN_NATIVEGDI_TRUE=
37251   XWIN_NATIVEGDI_FALSE='#'
37252 else
37253   XWIN_NATIVEGDI_TRUE='#'
37254   XWIN_NATIVEGDI_FALSE=
37257  if test "x$XWIN" = xyes; then
37258   XWIN_PRIMARYFB_TRUE=
37259   XWIN_PRIMARYFB_FALSE='#'
37260 else
37261   XWIN_PRIMARYFB_TRUE='#'
37262   XWIN_PRIMARYFB_FALSE=
37265  if test "x$XWIN" = xyes; then
37266   XWIN_RANDR_TRUE=
37267   XWIN_RANDR_FALSE='#'
37268 else
37269   XWIN_RANDR_TRUE='#'
37270   XWIN_RANDR_FALSE=
37273  if test "x$XWIN" = xyes && test "x$XV" = xyes; then
37274   XWIN_XV_TRUE=
37275   XWIN_XV_FALSE='#'
37276 else
37277   XWIN_XV_TRUE='#'
37278   XWIN_XV_FALSE=
37282 if test "x$XQUARTZ" = xyes; then
37284 cat >>confdefs.h <<\_ACEOF
37285 #define XQUARTZ 1
37286 _ACEOF
37289 cat >>confdefs.h <<\_ACEOF
37290 #define ROOTLESS 1
37291 _ACEOF
37294         XQUARTZ_LIBS="$MAIN_LIB $FB_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $XPSTUBS_LIB"
37297         { echo "$as_me:$LINENO: checking for xp_init in -lXplugin" >&5
37298 echo $ECHO_N "checking for xp_init in -lXplugin... $ECHO_C" >&6; }
37299 if test "${ac_cv_lib_Xplugin_xp_init+set}" = set; then
37300   echo $ECHO_N "(cached) $ECHO_C" >&6
37301 else
37302   ac_check_lib_save_LIBS=$LIBS
37303 LIBS="-lXplugin  $LIBS"
37304 cat >conftest.$ac_ext <<_ACEOF
37305 /* confdefs.h.  */
37306 _ACEOF
37307 cat confdefs.h >>conftest.$ac_ext
37308 cat >>conftest.$ac_ext <<_ACEOF
37309 /* end confdefs.h.  */
37311 /* Override any GCC internal prototype to avoid an error.
37312    Use char because int might match the return type of a GCC
37313    builtin and then its argument prototype would still apply.  */
37314 #ifdef __cplusplus
37315 extern "C"
37316 #endif
37317 char xp_init ();
37318 int
37319 main ()
37321 return xp_init ();
37322   ;
37323   return 0;
37325 _ACEOF
37326 rm -f conftest.$ac_objext conftest$ac_exeext
37327 if { (ac_try="$ac_link"
37328 case "(($ac_try" in
37329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37330   *) ac_try_echo=$ac_try;;
37331 esac
37332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37333   (eval "$ac_link") 2>conftest.er1
37334   ac_status=$?
37335   grep -v '^ *+' conftest.er1 >conftest.err
37336   rm -f conftest.er1
37337   cat conftest.err >&5
37338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37339   (exit $ac_status); } && {
37340          test -z "$ac_c_werror_flag" ||
37341          test ! -s conftest.err
37342        } && test -s conftest$ac_exeext &&
37343        $as_test_x conftest$ac_exeext; then
37344   ac_cv_lib_Xplugin_xp_init=yes
37345 else
37346   echo "$as_me: failed program was:" >&5
37347 sed 's/^/| /' conftest.$ac_ext >&5
37349         ac_cv_lib_Xplugin_xp_init=no
37352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37353       conftest$ac_exeext conftest.$ac_ext
37354 LIBS=$ac_check_lib_save_LIBS
37356 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xplugin_xp_init" >&5
37357 echo "${ECHO_T}$ac_cv_lib_Xplugin_xp_init" >&6; }
37358 if test $ac_cv_lib_Xplugin_xp_init = yes; then
37359   :
37363         CFLAGS="${CFLAGS} -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA"
37366 pkg_failed=no
37367 { echo "$as_me:$LINENO: checking for XPBPROXY" >&5
37368 echo $ECHO_N "checking for XPBPROXY... $ECHO_C" >&6; }
37370 if test -n "$XPBPROXY_CFLAGS"; then
37371     pkg_cv_XPBPROXY_CFLAGS="$XPBPROXY_CFLAGS"
37372  elif test -n "$PKG_CONFIG"; then
37373     if test -n "$PKG_CONFIG" && \
37374     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\"") >&5
37375   ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5
37376   ac_status=$?
37377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37378   (exit $ac_status); }; then
37379   pkg_cv_XPBPROXY_CFLAGS=`$PKG_CONFIG --cflags "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null`
37380 else
37381   pkg_failed=yes
37383  else
37384     pkg_failed=untried
37386 if test -n "$XPBPROXY_LIBS"; then
37387     pkg_cv_XPBPROXY_LIBS="$XPBPROXY_LIBS"
37388  elif test -n "$PKG_CONFIG"; then
37389     if test -n "$PKG_CONFIG" && \
37390     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\"") >&5
37391   ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5
37392   ac_status=$?
37393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37394   (exit $ac_status); }; then
37395   pkg_cv_XPBPROXY_LIBS=`$PKG_CONFIG --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null`
37396 else
37397   pkg_failed=yes
37399  else
37400     pkg_failed=untried
37405 if test $pkg_failed = yes; then
37406         { echo "$as_me:$LINENO: result: no" >&5
37407 echo "${ECHO_T}no" >&6; }
37409 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37410         _pkg_short_errors_supported=yes
37411 else
37412         _pkg_short_errors_supported=no
37414         if test $_pkg_short_errors_supported = yes; then
37415                 XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1`
37416         else
37417                 XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1`
37418         fi
37419         # Put the nasty error message in config.log where it belongs
37420         echo "$XPBPROXY_PKG_ERRORS" >&5
37422         { { echo "$as_me:$LINENO: error: Package requirements ($APPLEWMPROTO $LIBAPPLEWM xfixes x11) were not met:
37424 $XPBPROXY_PKG_ERRORS
37426 Consider adjusting the PKG_CONFIG_PATH environment variable if you
37427 installed software in a non-standard prefix.
37429 Alternatively, you may set the environment variables XPBPROXY_CFLAGS
37430 and XPBPROXY_LIBS to avoid the need to call pkg-config.
37431 See the pkg-config man page for more details." >&5
37432 echo "$as_me: error: Package requirements ($APPLEWMPROTO $LIBAPPLEWM xfixes x11) were not met:
37434 $XPBPROXY_PKG_ERRORS
37436 Consider adjusting the PKG_CONFIG_PATH environment variable if you
37437 installed software in a non-standard prefix.
37439 Alternatively, you may set the environment variables XPBPROXY_CFLAGS
37440 and XPBPROXY_LIBS to avoid the need to call pkg-config.
37441 See the pkg-config man page for more details." >&2;}
37442    { (exit 1); exit 1; }; }
37443 elif test $pkg_failed = untried; then
37444         { echo "$as_me:$LINENO: result: no" >&5
37445 echo "${ECHO_T}no" >&6; }
37446         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
37447 is in your PATH or set the PKG_CONFIG environment variable to the full
37448 path to pkg-config.
37450 Alternatively, you may set the environment variables XPBPROXY_CFLAGS
37451 and XPBPROXY_LIBS to avoid the need to call pkg-config.
37452 See the pkg-config man page for more details.
37454 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
37455 See \`config.log' for more details." >&5
37456 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
37457 is in your PATH or set the PKG_CONFIG environment variable to the full
37458 path to pkg-config.
37460 Alternatively, you may set the environment variables XPBPROXY_CFLAGS
37461 and XPBPROXY_LIBS to avoid the need to call pkg-config.
37462 See the pkg-config man page for more details.
37464 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
37465 See \`config.log' for more details." >&2;}
37466    { (exit 1); exit 1; }; }
37467 else
37468         XPBPROXY_CFLAGS=$pkg_cv_XPBPROXY_CFLAGS
37469         XPBPROXY_LIBS=$pkg_cv_XPBPROXY_LIBS
37470         { echo "$as_me:$LINENO: result: yes" >&5
37471 echo "${ECHO_T}yes" >&6; }
37475         if test "x$XQUARTZ_SPARKLE" = xyes ; then
37477 cat >>confdefs.h <<\_ACEOF
37478 #define XQUARTZ_SPARKLE 1
37479 _ACEOF
37481         fi
37483         if test "x$STANDALONE_XPBPROXY" = xyes ; then
37485 cat >>confdefs.h <<\_ACEOF
37486 #define STANDALONE_XPBPROXY 1
37487 _ACEOF
37489         fi
37492 # Support for objc in autotools is minimal and not documented.
37493 OBJC='$(CC)'
37494 OBJCLD='$(CCLD)'
37495 OBJCLINK='$(LINK)'
37496 OBJCFLAGS='$(CFLAGS)'
37501 # internal, undocumented automake func follows :(
37503 depcc="$OBJC" am_compiler_list='gcc3 gcc'
37505 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
37506 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
37507 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
37508   echo $ECHO_N "(cached) $ECHO_C" >&6
37509 else
37510   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
37511   # We make a subdir and do the tests there.  Otherwise we can end up
37512   # making bogus files that we don't know about and never remove.  For
37513   # instance it was reported that on HP-UX the gcc test will end up
37514   # making a dummy file named `D' -- because `-MD' means `put the output
37515   # in D'.
37516   mkdir conftest.dir
37517   # Copy depcomp to subdir because otherwise we won't find it if we're
37518   # using a relative directory.
37519   cp "$am_depcomp" conftest.dir
37520   cd conftest.dir
37521   # We will build objects and dependencies in a subdirectory because
37522   # it helps to detect inapplicable dependency modes.  For instance
37523   # both Tru64's cc and ICC support -MD to output dependencies as a
37524   # side effect of compilation, but ICC will put the dependencies in
37525   # the current directory while Tru64 will put them in the object
37526   # directory.
37527   mkdir sub
37529   am_cv_OBJC_dependencies_compiler_type=none
37530   if test "$am_compiler_list" = ""; then
37531      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
37532   fi
37533   for depmode in $am_compiler_list; do
37534     # Setup a source with many dependencies, because some compilers
37535     # like to wrap large dependency lists on column 80 (with \), and
37536     # we should not choose a depcomp mode which is confused by this.
37537     #
37538     # We need to recreate these files for each test, as the compiler may
37539     # overwrite some of them when testing with obscure command lines.
37540     # This happens at least with the AIX C compiler.
37541     : > sub/conftest.c
37542     for i in 1 2 3 4 5 6; do
37543       echo '#include "conftst'$i'.h"' >> sub/conftest.c
37544       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
37545       # Solaris 8's {/usr,}/bin/sh.
37546       touch sub/conftst$i.h
37547     done
37548     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
37550     case $depmode in
37551     nosideeffect)
37552       # after this tag, mechanisms are not by side-effect, so they'll
37553       # only be used when explicitly requested
37554       if test "x$enable_dependency_tracking" = xyes; then
37555         continue
37556       else
37557         break
37558       fi
37559       ;;
37560     none) break ;;
37561     esac
37562     # We check with `-c' and `-o' for the sake of the "dashmstdout"
37563     # mode.  It turns out that the SunPro C++ compiler does not properly
37564     # handle `-M -o', and we need to detect this.
37565     if depmode=$depmode \
37566        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
37567        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
37568        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
37569          >/dev/null 2>conftest.err &&
37570        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
37571        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
37572        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
37573        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
37574       # icc doesn't choke on unknown options, it will just issue warnings
37575       # or remarks (even with -Werror).  So we grep stderr for any message
37576       # that says an option was ignored or not supported.
37577       # When given -MP, icc 7.0 and 7.1 complain thusly:
37578       #   icc: Command line warning: ignoring option '-M'; no argument required
37579       # The diagnosis changed in icc 8.0:
37580       #   icc: Command line remark: option '-MP' not supported
37581       if (grep 'ignoring option' conftest.err ||
37582           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
37583         am_cv_OBJC_dependencies_compiler_type=$depmode
37584         break
37585       fi
37586     fi
37587   done
37589   cd ..
37590   rm -rf conftest.dir
37591 else
37592   am_cv_OBJC_dependencies_compiler_type=none
37596 { echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
37597 echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
37598 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
37600  if
37601   test "x$enable_dependency_tracking" != xno \
37602   && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
37603   am__fastdepOBJC_TRUE=
37604   am__fastdepOBJC_FALSE='#'
37605 else
37606   am__fastdepOBJC_TRUE='#'
37607   am__fastdepOBJC_FALSE=
37611  if test "x$XQUARTZ" = xyes; then
37612   XQUARTZ_TRUE=
37613   XQUARTZ_FALSE='#'
37614 else
37615   XQUARTZ_TRUE='#'
37616   XQUARTZ_FALSE=
37619  if test "x$XQUARTZ_SPARKLE" != "xno"; then
37620   XQUARTZ_SPARKLE_TRUE=
37621   XQUARTZ_SPARKLE_FALSE='#'
37622 else
37623   XQUARTZ_SPARKLE_TRUE='#'
37624   XQUARTZ_SPARKLE_FALSE=
37627  if test "x$STANDALONE_XPBPROXY" = xyes; then
37628   STANDALONE_XPBPROXY_TRUE=
37629   STANDALONE_XPBPROXY_FALSE='#'
37630 else
37631   STANDALONE_XPBPROXY_TRUE='#'
37632   STANDALONE_XPBPROXY_FALSE=
37637 pkg_failed=no
37638 { echo "$as_me:$LINENO: checking for DMXMODULES" >&5
37639 echo $ECHO_N "checking for DMXMODULES... $ECHO_C" >&6; }
37641 if test -n "$DMXMODULES_CFLAGS"; then
37642     pkg_cv_DMXMODULES_CFLAGS="$DMXMODULES_CFLAGS"
37643  elif test -n "$PKG_CONFIG"; then
37644     if test -n "$PKG_CONFIG" && \
37645     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xmuu \$LIBXEXT x11 xrender xfixes \$LIBXI \$DMXPROTO xau \$XDMCP_MODULES\"") >&5
37646   ($PKG_CONFIG --exists --print-errors "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES") 2>&5
37647   ac_status=$?
37648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37649   (exit $ac_status); }; then
37650   pkg_cv_DMXMODULES_CFLAGS=`$PKG_CONFIG --cflags "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>/dev/null`
37651 else
37652   pkg_failed=yes
37654  else
37655     pkg_failed=untried
37657 if test -n "$DMXMODULES_LIBS"; then
37658     pkg_cv_DMXMODULES_LIBS="$DMXMODULES_LIBS"
37659  elif test -n "$PKG_CONFIG"; then
37660     if test -n "$PKG_CONFIG" && \
37661     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xmuu \$LIBXEXT x11 xrender xfixes \$LIBXI \$DMXPROTO xau \$XDMCP_MODULES\"") >&5
37662   ($PKG_CONFIG --exists --print-errors "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES") 2>&5
37663   ac_status=$?
37664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37665   (exit $ac_status); }; then
37666   pkg_cv_DMXMODULES_LIBS=`$PKG_CONFIG --libs "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>/dev/null`
37667 else
37668   pkg_failed=yes
37670  else
37671     pkg_failed=untried
37676 if test $pkg_failed = yes; then
37677         { echo "$as_me:$LINENO: result: no" >&5
37678 echo "${ECHO_T}no" >&6; }
37680 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37681         _pkg_short_errors_supported=yes
37682 else
37683         _pkg_short_errors_supported=no
37685         if test $_pkg_short_errors_supported = yes; then
37686                 DMXMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>&1`
37687         else
37688                 DMXMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>&1`
37689         fi
37690         # Put the nasty error message in config.log where it belongs
37691         echo "$DMXMODULES_PKG_ERRORS" >&5
37693         have_dmx=no
37694 elif test $pkg_failed = untried; then
37695         { echo "$as_me:$LINENO: result: no" >&5
37696 echo "${ECHO_T}no" >&6; }
37697         have_dmx=no
37698 else
37699         DMXMODULES_CFLAGS=$pkg_cv_DMXMODULES_CFLAGS
37700         DMXMODULES_LIBS=$pkg_cv_DMXMODULES_LIBS
37701         { echo "$as_me:$LINENO: result: yes" >&5
37702 echo "${ECHO_T}yes" >&6; }
37704 pkg_failed=no
37705 { echo "$as_me:$LINENO: checking for XDMXCONFIG_DEP" >&5
37706 echo $ECHO_N "checking for XDMXCONFIG_DEP... $ECHO_C" >&6; }
37708 if test -n "$XDMXCONFIG_DEP_CFLAGS"; then
37709     pkg_cv_XDMXCONFIG_DEP_CFLAGS="$XDMXCONFIG_DEP_CFLAGS"
37710  elif test -n "$PKG_CONFIG"; then
37711     if test -n "$PKG_CONFIG" && \
37712     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\"") >&5
37713   ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5
37714   ac_status=$?
37715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37716   (exit $ac_status); }; then
37717   pkg_cv_XDMXCONFIG_DEP_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt xpm x11" 2>/dev/null`
37718 else
37719   pkg_failed=yes
37721  else
37722     pkg_failed=untried
37724 if test -n "$XDMXCONFIG_DEP_LIBS"; then
37725     pkg_cv_XDMXCONFIG_DEP_LIBS="$XDMXCONFIG_DEP_LIBS"
37726  elif test -n "$PKG_CONFIG"; then
37727     if test -n "$PKG_CONFIG" && \
37728     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\"") >&5
37729   ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5
37730   ac_status=$?
37731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37732   (exit $ac_status); }; then
37733   pkg_cv_XDMXCONFIG_DEP_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt xpm x11" 2>/dev/null`
37734 else
37735   pkg_failed=yes
37737  else
37738     pkg_failed=untried
37743 if test $pkg_failed = yes; then
37744         { echo "$as_me:$LINENO: result: no" >&5
37745 echo "${ECHO_T}no" >&6; }
37747 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37748         _pkg_short_errors_supported=yes
37749 else
37750         _pkg_short_errors_supported=no
37752         if test $_pkg_short_errors_supported = yes; then
37753                 XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xmu xt xpm x11" 2>&1`
37754         else
37755                 XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xmu xt xpm x11" 2>&1`
37756         fi
37757         # Put the nasty error message in config.log where it belongs
37758         echo "$XDMXCONFIG_DEP_PKG_ERRORS" >&5
37760         have_dmx=no
37761 elif test $pkg_failed = untried; then
37762         { echo "$as_me:$LINENO: result: no" >&5
37763 echo "${ECHO_T}no" >&6; }
37764         have_dmx=no
37765 else
37766         XDMXCONFIG_DEP_CFLAGS=$pkg_cv_XDMXCONFIG_DEP_CFLAGS
37767         XDMXCONFIG_DEP_LIBS=$pkg_cv_XDMXCONFIG_DEP_LIBS
37768         { echo "$as_me:$LINENO: result: yes" >&5
37769 echo "${ECHO_T}yes" >&6; }
37770         have_dmx=yes
37773 { echo "$as_me:$LINENO: checking whether to build Xdmx DDX" >&5
37774 echo $ECHO_N "checking whether to build Xdmx DDX... $ECHO_C" >&6; }
37775 if test "x$DMX" = xauto; then
37776         DMX="$have_dmx"
37777         case $host_os in
37778                 cygwin*) DMX="no" ;;
37779                 darwin*) DMX="no" ;;
37780         esac
37782 { echo "$as_me:$LINENO: result: $DMX" >&5
37783 echo "${ECHO_T}$DMX" >&6; }
37784  if test "x$DMX" = xyes; then
37785   DMX_TRUE=
37786   DMX_FALSE='#'
37787 else
37788   DMX_TRUE='#'
37789   DMX_FALSE=
37793 if test "x$DMX" = xyes; then
37794         if test "x$have_dmx" = xno; then
37795                 { { echo "$as_me:$LINENO: error: Xdmx build explicitly requested, but required
37796                               modules not found." >&5
37797 echo "$as_me: error: Xdmx build explicitly requested, but required
37798                               modules not found." >&2;}
37799    { (exit 1); exit 1; }; }
37800         fi
37801         DMX_INCLUDES="$XEXT_INC $RENDER_INC $RECORD_INC"
37802         XDMX_CFLAGS="$DMXMODULES_CFLAGS"
37803         XDMX_LIBS="$FB_LIB $MI_LIB $XEXT_LIB $RENDER_LIB $RECORD_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $MIEXT_SYNC_LIB $MIEXT_SHADOW_LIB $MIEXT_DAMAGE_LIB $COMPOSITE_LIB $DAMAGE_LIB $MAIN_LIB $DIX_LIB $CONFIG_LIB $OS_LIB $FIXES_LIB"
37804         XDMX_SYS_LIBS="$DMXMODULES_LIBS"
37809         if test "${ac_cv_header_linux_input_h+set}" = set; then
37810   { echo "$as_me:$LINENO: checking for linux/input.h" >&5
37811 echo $ECHO_N "checking for linux/input.h... $ECHO_C" >&6; }
37812 if test "${ac_cv_header_linux_input_h+set}" = set; then
37813   echo $ECHO_N "(cached) $ECHO_C" >&6
37815 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_input_h" >&5
37816 echo "${ECHO_T}$ac_cv_header_linux_input_h" >&6; }
37817 else
37818   # Is the header compilable?
37819 { echo "$as_me:$LINENO: checking linux/input.h usability" >&5
37820 echo $ECHO_N "checking linux/input.h usability... $ECHO_C" >&6; }
37821 cat >conftest.$ac_ext <<_ACEOF
37822 /* confdefs.h.  */
37823 _ACEOF
37824 cat confdefs.h >>conftest.$ac_ext
37825 cat >>conftest.$ac_ext <<_ACEOF
37826 /* end confdefs.h.  */
37827 $ac_includes_default
37828 #include <linux/input.h>
37829 _ACEOF
37830 rm -f conftest.$ac_objext
37831 if { (ac_try="$ac_compile"
37832 case "(($ac_try" in
37833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37834   *) ac_try_echo=$ac_try;;
37835 esac
37836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37837   (eval "$ac_compile") 2>conftest.er1
37838   ac_status=$?
37839   grep -v '^ *+' conftest.er1 >conftest.err
37840   rm -f conftest.er1
37841   cat conftest.err >&5
37842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37843   (exit $ac_status); } && {
37844          test -z "$ac_c_werror_flag" ||
37845          test ! -s conftest.err
37846        } && test -s conftest.$ac_objext; then
37847   ac_header_compiler=yes
37848 else
37849   echo "$as_me: failed program was:" >&5
37850 sed 's/^/| /' conftest.$ac_ext >&5
37852         ac_header_compiler=no
37855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37857 echo "${ECHO_T}$ac_header_compiler" >&6; }
37859 # Is the header present?
37860 { echo "$as_me:$LINENO: checking linux/input.h presence" >&5
37861 echo $ECHO_N "checking linux/input.h presence... $ECHO_C" >&6; }
37862 cat >conftest.$ac_ext <<_ACEOF
37863 /* confdefs.h.  */
37864 _ACEOF
37865 cat confdefs.h >>conftest.$ac_ext
37866 cat >>conftest.$ac_ext <<_ACEOF
37867 /* end confdefs.h.  */
37868 #include <linux/input.h>
37869 _ACEOF
37870 if { (ac_try="$ac_cpp conftest.$ac_ext"
37871 case "(($ac_try" in
37872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37873   *) ac_try_echo=$ac_try;;
37874 esac
37875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37876   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37877   ac_status=$?
37878   grep -v '^ *+' conftest.er1 >conftest.err
37879   rm -f conftest.er1
37880   cat conftest.err >&5
37881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37882   (exit $ac_status); } >/dev/null && {
37883          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37884          test ! -s conftest.err
37885        }; then
37886   ac_header_preproc=yes
37887 else
37888   echo "$as_me: failed program was:" >&5
37889 sed 's/^/| /' conftest.$ac_ext >&5
37891   ac_header_preproc=no
37894 rm -f conftest.err conftest.$ac_ext
37895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37896 echo "${ECHO_T}$ac_header_preproc" >&6; }
37898 # So?  What about this header?
37899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37900   yes:no: )
37901     { echo "$as_me:$LINENO: WARNING: linux/input.h: accepted by the compiler, rejected by the preprocessor!" >&5
37902 echo "$as_me: WARNING: linux/input.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37903     { echo "$as_me:$LINENO: WARNING: linux/input.h: proceeding with the compiler's result" >&5
37904 echo "$as_me: WARNING: linux/input.h: proceeding with the compiler's result" >&2;}
37905     ac_header_preproc=yes
37906     ;;
37907   no:yes:* )
37908     { echo "$as_me:$LINENO: WARNING: linux/input.h: present but cannot be compiled" >&5
37909 echo "$as_me: WARNING: linux/input.h: present but cannot be compiled" >&2;}
37910     { echo "$as_me:$LINENO: WARNING: linux/input.h:     check for missing prerequisite headers?" >&5
37911 echo "$as_me: WARNING: linux/input.h:     check for missing prerequisite headers?" >&2;}
37912     { echo "$as_me:$LINENO: WARNING: linux/input.h: see the Autoconf documentation" >&5
37913 echo "$as_me: WARNING: linux/input.h: see the Autoconf documentation" >&2;}
37914     { echo "$as_me:$LINENO: WARNING: linux/input.h:     section \"Present But Cannot Be Compiled\"" >&5
37915 echo "$as_me: WARNING: linux/input.h:     section \"Present But Cannot Be Compiled\"" >&2;}
37916     { echo "$as_me:$LINENO: WARNING: linux/input.h: proceeding with the preprocessor's result" >&5
37917 echo "$as_me: WARNING: linux/input.h: proceeding with the preprocessor's result" >&2;}
37918     { echo "$as_me:$LINENO: WARNING: linux/input.h: in the future, the compiler will take precedence" >&5
37919 echo "$as_me: WARNING: linux/input.h: in the future, the compiler will take precedence" >&2;}
37920     ( cat <<\_ASBOX
37921 ## ---------------------------------------------------------------------- ##
37922 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
37923 ## ---------------------------------------------------------------------- ##
37924 _ASBOX
37925      ) | sed "s/^/$as_me: WARNING:     /" >&2
37926     ;;
37927 esac
37928 { echo "$as_me:$LINENO: checking for linux/input.h" >&5
37929 echo $ECHO_N "checking for linux/input.h... $ECHO_C" >&6; }
37930 if test "${ac_cv_header_linux_input_h+set}" = set; then
37931   echo $ECHO_N "(cached) $ECHO_C" >&6
37932 else
37933   ac_cv_header_linux_input_h=$ac_header_preproc
37935 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_input_h" >&5
37936 echo "${ECHO_T}$ac_cv_header_linux_input_h" >&6; }
37939 if test $ac_cv_header_linux_input_h = yes; then
37940   DMX_BUILD_USB="yes"
37941 else
37942   DMX_BUILD_USB="no"
37946         if test "${ac_cv_header_linux_keyboard_h+set}" = set; then
37947   { echo "$as_me:$LINENO: checking for linux/keyboard.h" >&5
37948 echo $ECHO_N "checking for linux/keyboard.h... $ECHO_C" >&6; }
37949 if test "${ac_cv_header_linux_keyboard_h+set}" = set; then
37950   echo $ECHO_N "(cached) $ECHO_C" >&6
37952 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_keyboard_h" >&5
37953 echo "${ECHO_T}$ac_cv_header_linux_keyboard_h" >&6; }
37954 else
37955   # Is the header compilable?
37956 { echo "$as_me:$LINENO: checking linux/keyboard.h usability" >&5
37957 echo $ECHO_N "checking linux/keyboard.h usability... $ECHO_C" >&6; }
37958 cat >conftest.$ac_ext <<_ACEOF
37959 /* confdefs.h.  */
37960 _ACEOF
37961 cat confdefs.h >>conftest.$ac_ext
37962 cat >>conftest.$ac_ext <<_ACEOF
37963 /* end confdefs.h.  */
37964 $ac_includes_default
37965 #include <linux/keyboard.h>
37966 _ACEOF
37967 rm -f conftest.$ac_objext
37968 if { (ac_try="$ac_compile"
37969 case "(($ac_try" in
37970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37971   *) ac_try_echo=$ac_try;;
37972 esac
37973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37974   (eval "$ac_compile") 2>conftest.er1
37975   ac_status=$?
37976   grep -v '^ *+' conftest.er1 >conftest.err
37977   rm -f conftest.er1
37978   cat conftest.err >&5
37979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37980   (exit $ac_status); } && {
37981          test -z "$ac_c_werror_flag" ||
37982          test ! -s conftest.err
37983        } && test -s conftest.$ac_objext; then
37984   ac_header_compiler=yes
37985 else
37986   echo "$as_me: failed program was:" >&5
37987 sed 's/^/| /' conftest.$ac_ext >&5
37989         ac_header_compiler=no
37992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37993 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37994 echo "${ECHO_T}$ac_header_compiler" >&6; }
37996 # Is the header present?
37997 { echo "$as_me:$LINENO: checking linux/keyboard.h presence" >&5
37998 echo $ECHO_N "checking linux/keyboard.h presence... $ECHO_C" >&6; }
37999 cat >conftest.$ac_ext <<_ACEOF
38000 /* confdefs.h.  */
38001 _ACEOF
38002 cat confdefs.h >>conftest.$ac_ext
38003 cat >>conftest.$ac_ext <<_ACEOF
38004 /* end confdefs.h.  */
38005 #include <linux/keyboard.h>
38006 _ACEOF
38007 if { (ac_try="$ac_cpp conftest.$ac_ext"
38008 case "(($ac_try" in
38009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38010   *) ac_try_echo=$ac_try;;
38011 esac
38012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38013   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38014   ac_status=$?
38015   grep -v '^ *+' conftest.er1 >conftest.err
38016   rm -f conftest.er1
38017   cat conftest.err >&5
38018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38019   (exit $ac_status); } >/dev/null && {
38020          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38021          test ! -s conftest.err
38022        }; then
38023   ac_header_preproc=yes
38024 else
38025   echo "$as_me: failed program was:" >&5
38026 sed 's/^/| /' conftest.$ac_ext >&5
38028   ac_header_preproc=no
38031 rm -f conftest.err conftest.$ac_ext
38032 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38033 echo "${ECHO_T}$ac_header_preproc" >&6; }
38035 # So?  What about this header?
38036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38037   yes:no: )
38038     { echo "$as_me:$LINENO: WARNING: linux/keyboard.h: accepted by the compiler, rejected by the preprocessor!" >&5
38039 echo "$as_me: WARNING: linux/keyboard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38040     { echo "$as_me:$LINENO: WARNING: linux/keyboard.h: proceeding with the compiler's result" >&5
38041 echo "$as_me: WARNING: linux/keyboard.h: proceeding with the compiler's result" >&2;}
38042     ac_header_preproc=yes
38043     ;;
38044   no:yes:* )
38045     { echo "$as_me:$LINENO: WARNING: linux/keyboard.h: present but cannot be compiled" >&5
38046 echo "$as_me: WARNING: linux/keyboard.h: present but cannot be compiled" >&2;}
38047     { echo "$as_me:$LINENO: WARNING: linux/keyboard.h:     check for missing prerequisite headers?" >&5
38048 echo "$as_me: WARNING: linux/keyboard.h:     check for missing prerequisite headers?" >&2;}
38049     { echo "$as_me:$LINENO: WARNING: linux/keyboard.h: see the Autoconf documentation" >&5
38050 echo "$as_me: WARNING: linux/keyboard.h: see the Autoconf documentation" >&2;}
38051     { echo "$as_me:$LINENO: WARNING: linux/keyboard.h:     section \"Present But Cannot Be Compiled\"" >&5
38052 echo "$as_me: WARNING: linux/keyboard.h:     section \"Present But Cannot Be Compiled\"" >&2;}
38053     { echo "$as_me:$LINENO: WARNING: linux/keyboard.h: proceeding with the preprocessor's result" >&5
38054 echo "$as_me: WARNING: linux/keyboard.h: proceeding with the preprocessor's result" >&2;}
38055     { echo "$as_me:$LINENO: WARNING: linux/keyboard.h: in the future, the compiler will take precedence" >&5
38056 echo "$as_me: WARNING: linux/keyboard.h: in the future, the compiler will take precedence" >&2;}
38057     ( cat <<\_ASBOX
38058 ## ---------------------------------------------------------------------- ##
38059 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
38060 ## ---------------------------------------------------------------------- ##
38061 _ASBOX
38062      ) | sed "s/^/$as_me: WARNING:     /" >&2
38063     ;;
38064 esac
38065 { echo "$as_me:$LINENO: checking for linux/keyboard.h" >&5
38066 echo $ECHO_N "checking for linux/keyboard.h... $ECHO_C" >&6; }
38067 if test "${ac_cv_header_linux_keyboard_h+set}" = set; then
38068   echo $ECHO_N "(cached) $ECHO_C" >&6
38069 else
38070   ac_cv_header_linux_keyboard_h=$ac_header_preproc
38072 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_keyboard_h" >&5
38073 echo "${ECHO_T}$ac_cv_header_linux_keyboard_h" >&6; }
38076 if test $ac_cv_header_linux_keyboard_h = yes; then
38077   DMX_BUILD_LNX="yes"
38078 else
38079   DMX_BUILD_LNX="no"
38086 pkg_failed=no
38087 { echo "$as_me:$LINENO: checking for DMXEXAMPLES_DEP" >&5
38088 echo $ECHO_N "checking for DMXEXAMPLES_DEP... $ECHO_C" >&6; }
38090 if test -n "$DMXEXAMPLES_DEP_CFLAGS"; then
38091     pkg_cv_DMXEXAMPLES_DEP_CFLAGS="$DMXEXAMPLES_DEP_CFLAGS"
38092  elif test -n "$PKG_CONFIG"; then
38093     if test -n "$PKG_CONFIG" && \
38094     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXEXT x11\"") >&5
38095   ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXEXT x11") 2>&5
38096   ac_status=$?
38097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38098   (exit $ac_status); }; then
38099   pkg_cv_DMXEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX $LIBXEXT x11" 2>/dev/null`
38100 else
38101   pkg_failed=yes
38103  else
38104     pkg_failed=untried
38106 if test -n "$DMXEXAMPLES_DEP_LIBS"; then
38107     pkg_cv_DMXEXAMPLES_DEP_LIBS="$DMXEXAMPLES_DEP_LIBS"
38108  elif test -n "$PKG_CONFIG"; then
38109     if test -n "$PKG_CONFIG" && \
38110     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXEXT x11\"") >&5
38111   ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXEXT x11") 2>&5
38112   ac_status=$?
38113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38114   (exit $ac_status); }; then
38115   pkg_cv_DMXEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX $LIBXEXT x11" 2>/dev/null`
38116 else
38117   pkg_failed=yes
38119  else
38120     pkg_failed=untried
38125 if test $pkg_failed = yes; then
38126         { echo "$as_me:$LINENO: result: no" >&5
38127 echo "${ECHO_T}no" >&6; }
38129 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38130         _pkg_short_errors_supported=yes
38131 else
38132         _pkg_short_errors_supported=no
38134         if test $_pkg_short_errors_supported = yes; then
38135                 DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBDMX $LIBXEXT x11" 2>&1`
38136         else
38137                 DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBDMX $LIBXEXT x11" 2>&1`
38138         fi
38139         # Put the nasty error message in config.log where it belongs
38140         echo "$DMXEXAMPLES_DEP_PKG_ERRORS" >&5
38142         { { echo "$as_me:$LINENO: error: Package requirements ($LIBDMX $LIBXEXT x11) were not met:
38144 $DMXEXAMPLES_DEP_PKG_ERRORS
38146 Consider adjusting the PKG_CONFIG_PATH environment variable if you
38147 installed software in a non-standard prefix.
38149 Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS
38150 and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38151 See the pkg-config man page for more details." >&5
38152 echo "$as_me: error: Package requirements ($LIBDMX $LIBXEXT x11) were not met:
38154 $DMXEXAMPLES_DEP_PKG_ERRORS
38156 Consider adjusting the PKG_CONFIG_PATH environment variable if you
38157 installed software in a non-standard prefix.
38159 Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS
38160 and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38161 See the pkg-config man page for more details." >&2;}
38162    { (exit 1); exit 1; }; }
38163 elif test $pkg_failed = untried; then
38164         { echo "$as_me:$LINENO: result: no" >&5
38165 echo "${ECHO_T}no" >&6; }
38166         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
38167 is in your PATH or set the PKG_CONFIG environment variable to the full
38168 path to pkg-config.
38170 Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS
38171 and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38172 See the pkg-config man page for more details.
38174 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
38175 See \`config.log' for more details." >&5
38176 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
38177 is in your PATH or set the PKG_CONFIG environment variable to the full
38178 path to pkg-config.
38180 Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS
38181 and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38182 See the pkg-config man page for more details.
38184 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
38185 See \`config.log' for more details." >&2;}
38186    { (exit 1); exit 1; }; }
38187 else
38188         DMXEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXEXAMPLES_DEP_CFLAGS
38189         DMXEXAMPLES_DEP_LIBS=$pkg_cv_DMXEXAMPLES_DEP_LIBS
38190         { echo "$as_me:$LINENO: result: yes" >&5
38191 echo "${ECHO_T}yes" >&6; }
38196 pkg_failed=no
38197 { echo "$as_me:$LINENO: checking for DMXXMUEXAMPLES_DEP" >&5
38198 echo $ECHO_N "checking for DMXXMUEXAMPLES_DEP... $ECHO_C" >&6; }
38200 if test -n "$DMXXMUEXAMPLES_DEP_CFLAGS"; then
38201     pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS="$DMXXMUEXAMPLES_DEP_CFLAGS"
38202  elif test -n "$PKG_CONFIG"; then
38203     if test -n "$PKG_CONFIG" && \
38204     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX xmu \$LIBXEXT x11\"") >&5
38205   ($PKG_CONFIG --exists --print-errors "$LIBDMX xmu $LIBXEXT x11") 2>&5
38206   ac_status=$?
38207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38208   (exit $ac_status); }; then
38209   pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX xmu $LIBXEXT x11" 2>/dev/null`
38210 else
38211   pkg_failed=yes
38213  else
38214     pkg_failed=untried
38216 if test -n "$DMXXMUEXAMPLES_DEP_LIBS"; then
38217     pkg_cv_DMXXMUEXAMPLES_DEP_LIBS="$DMXXMUEXAMPLES_DEP_LIBS"
38218  elif test -n "$PKG_CONFIG"; then
38219     if test -n "$PKG_CONFIG" && \
38220     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX xmu \$LIBXEXT x11\"") >&5
38221   ($PKG_CONFIG --exists --print-errors "$LIBDMX xmu $LIBXEXT x11") 2>&5
38222   ac_status=$?
38223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38224   (exit $ac_status); }; then
38225   pkg_cv_DMXXMUEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX xmu $LIBXEXT x11" 2>/dev/null`
38226 else
38227   pkg_failed=yes
38229  else
38230     pkg_failed=untried
38235 if test $pkg_failed = yes; then
38236         { echo "$as_me:$LINENO: result: no" >&5
38237 echo "${ECHO_T}no" >&6; }
38239 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38240         _pkg_short_errors_supported=yes
38241 else
38242         _pkg_short_errors_supported=no
38244         if test $_pkg_short_errors_supported = yes; then
38245                 DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBDMX xmu $LIBXEXT x11" 2>&1`
38246         else
38247                 DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBDMX xmu $LIBXEXT x11" 2>&1`
38248         fi
38249         # Put the nasty error message in config.log where it belongs
38250         echo "$DMXXMUEXAMPLES_DEP_PKG_ERRORS" >&5
38252         { { echo "$as_me:$LINENO: error: Package requirements ($LIBDMX xmu $LIBXEXT x11) were not met:
38254 $DMXXMUEXAMPLES_DEP_PKG_ERRORS
38256 Consider adjusting the PKG_CONFIG_PATH environment variable if you
38257 installed software in a non-standard prefix.
38259 Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS
38260 and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38261 See the pkg-config man page for more details." >&5
38262 echo "$as_me: error: Package requirements ($LIBDMX xmu $LIBXEXT x11) were not met:
38264 $DMXXMUEXAMPLES_DEP_PKG_ERRORS
38266 Consider adjusting the PKG_CONFIG_PATH environment variable if you
38267 installed software in a non-standard prefix.
38269 Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS
38270 and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38271 See the pkg-config man page for more details." >&2;}
38272    { (exit 1); exit 1; }; }
38273 elif test $pkg_failed = untried; then
38274         { echo "$as_me:$LINENO: result: no" >&5
38275 echo "${ECHO_T}no" >&6; }
38276         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
38277 is in your PATH or set the PKG_CONFIG environment variable to the full
38278 path to pkg-config.
38280 Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS
38281 and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38282 See the pkg-config man page for more details.
38284 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
38285 See \`config.log' for more details." >&5
38286 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
38287 is in your PATH or set the PKG_CONFIG environment variable to the full
38288 path to pkg-config.
38290 Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS
38291 and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38292 See the pkg-config man page for more details.
38294 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
38295 See \`config.log' for more details." >&2;}
38296    { (exit 1); exit 1; }; }
38297 else
38298         DMXXMUEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS
38299         DMXXMUEXAMPLES_DEP_LIBS=$pkg_cv_DMXXMUEXAMPLES_DEP_LIBS
38300         { echo "$as_me:$LINENO: result: yes" >&5
38301 echo "${ECHO_T}yes" >&6; }
38306 pkg_failed=no
38307 { echo "$as_me:$LINENO: checking for DMXXIEXAMPLES_DEP" >&5
38308 echo $ECHO_N "checking for DMXXIEXAMPLES_DEP... $ECHO_C" >&6; }
38310 if test -n "$DMXXIEXAMPLES_DEP_CFLAGS"; then
38311     pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS="$DMXXIEXAMPLES_DEP_CFLAGS"
38312  elif test -n "$PKG_CONFIG"; then
38313     if test -n "$PKG_CONFIG" && \
38314     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXI \$LIBXEXT x11\"") >&5
38315   ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXI $LIBXEXT x11") 2>&5
38316   ac_status=$?
38317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38318   (exit $ac_status); }; then
38319   pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX $LIBXI $LIBXEXT x11" 2>/dev/null`
38320 else
38321   pkg_failed=yes
38323  else
38324     pkg_failed=untried
38326 if test -n "$DMXXIEXAMPLES_DEP_LIBS"; then
38327     pkg_cv_DMXXIEXAMPLES_DEP_LIBS="$DMXXIEXAMPLES_DEP_LIBS"
38328  elif test -n "$PKG_CONFIG"; then
38329     if test -n "$PKG_CONFIG" && \
38330     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXI \$LIBXEXT x11\"") >&5
38331   ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXI $LIBXEXT x11") 2>&5
38332   ac_status=$?
38333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38334   (exit $ac_status); }; then
38335   pkg_cv_DMXXIEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>/dev/null`
38336 else
38337   pkg_failed=yes
38339  else
38340     pkg_failed=untried
38345 if test $pkg_failed = yes; then
38346         { echo "$as_me:$LINENO: result: no" >&5
38347 echo "${ECHO_T}no" >&6; }
38349 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38350         _pkg_short_errors_supported=yes
38351 else
38352         _pkg_short_errors_supported=no
38354         if test $_pkg_short_errors_supported = yes; then
38355                 DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBDMX $LIBXI $LIBXEXT x11" 2>&1`
38356         else
38357                 DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBDMX $LIBXI $LIBXEXT x11" 2>&1`
38358         fi
38359         # Put the nasty error message in config.log where it belongs
38360         echo "$DMXXIEXAMPLES_DEP_PKG_ERRORS" >&5
38362         { { echo "$as_me:$LINENO: error: Package requirements ($LIBDMX $LIBXI $LIBXEXT x11) were not met:
38364 $DMXXIEXAMPLES_DEP_PKG_ERRORS
38366 Consider adjusting the PKG_CONFIG_PATH environment variable if you
38367 installed software in a non-standard prefix.
38369 Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS
38370 and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38371 See the pkg-config man page for more details." >&5
38372 echo "$as_me: error: Package requirements ($LIBDMX $LIBXI $LIBXEXT x11) were not met:
38374 $DMXXIEXAMPLES_DEP_PKG_ERRORS
38376 Consider adjusting the PKG_CONFIG_PATH environment variable if you
38377 installed software in a non-standard prefix.
38379 Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS
38380 and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38381 See the pkg-config man page for more details." >&2;}
38382    { (exit 1); exit 1; }; }
38383 elif test $pkg_failed = untried; then
38384         { echo "$as_me:$LINENO: result: no" >&5
38385 echo "${ECHO_T}no" >&6; }
38386         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
38387 is in your PATH or set the PKG_CONFIG environment variable to the full
38388 path to pkg-config.
38390 Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS
38391 and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38392 See the pkg-config man page for more details.
38394 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
38395 See \`config.log' for more details." >&5
38396 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
38397 is in your PATH or set the PKG_CONFIG environment variable to the full
38398 path to pkg-config.
38400 Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS
38401 and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38402 See the pkg-config man page for more details.
38404 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
38405 See \`config.log' for more details." >&2;}
38406    { (exit 1); exit 1; }; }
38407 else
38408         DMXXIEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS
38409         DMXXIEXAMPLES_DEP_LIBS=$pkg_cv_DMXXIEXAMPLES_DEP_LIBS
38410         { echo "$as_me:$LINENO: result: yes" >&5
38411 echo "${ECHO_T}yes" >&6; }
38416 pkg_failed=no
38417 { echo "$as_me:$LINENO: checking for XTSTEXAMPLES_DEP" >&5
38418 echo $ECHO_N "checking for XTSTEXAMPLES_DEP... $ECHO_C" >&6; }
38420 if test -n "$XTSTEXAMPLES_DEP_CFLAGS"; then
38421     pkg_cv_XTSTEXAMPLES_DEP_CFLAGS="$XTSTEXAMPLES_DEP_CFLAGS"
38422  elif test -n "$PKG_CONFIG"; then
38423     if test -n "$PKG_CONFIG" && \
38424     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBXTST \$LIBXEXT x11\"") >&5
38425   ($PKG_CONFIG --exists --print-errors "$LIBXTST $LIBXEXT x11") 2>&5
38426   ac_status=$?
38427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38428   (exit $ac_status); }; then
38429   pkg_cv_XTSTEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBXTST $LIBXEXT x11" 2>/dev/null`
38430 else
38431   pkg_failed=yes
38433  else
38434     pkg_failed=untried
38436 if test -n "$XTSTEXAMPLES_DEP_LIBS"; then
38437     pkg_cv_XTSTEXAMPLES_DEP_LIBS="$XTSTEXAMPLES_DEP_LIBS"
38438  elif test -n "$PKG_CONFIG"; then
38439     if test -n "$PKG_CONFIG" && \
38440     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBXTST \$LIBXEXT x11\"") >&5
38441   ($PKG_CONFIG --exists --print-errors "$LIBXTST $LIBXEXT x11") 2>&5
38442   ac_status=$?
38443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38444   (exit $ac_status); }; then
38445   pkg_cv_XTSTEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBXTST $LIBXEXT x11" 2>/dev/null`
38446 else
38447   pkg_failed=yes
38449  else
38450     pkg_failed=untried
38455 if test $pkg_failed = yes; then
38456         { echo "$as_me:$LINENO: result: no" >&5
38457 echo "${ECHO_T}no" >&6; }
38459 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38460         _pkg_short_errors_supported=yes
38461 else
38462         _pkg_short_errors_supported=no
38464         if test $_pkg_short_errors_supported = yes; then
38465                 XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBXTST $LIBXEXT x11" 2>&1`
38466         else
38467                 XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBXTST $LIBXEXT x11" 2>&1`
38468         fi
38469         # Put the nasty error message in config.log where it belongs
38470         echo "$XTSTEXAMPLES_DEP_PKG_ERRORS" >&5
38472         { { echo "$as_me:$LINENO: error: Package requirements ($LIBXTST $LIBXEXT x11) were not met:
38474 $XTSTEXAMPLES_DEP_PKG_ERRORS
38476 Consider adjusting the PKG_CONFIG_PATH environment variable if you
38477 installed software in a non-standard prefix.
38479 Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS
38480 and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38481 See the pkg-config man page for more details." >&5
38482 echo "$as_me: error: Package requirements ($LIBXTST $LIBXEXT x11) were not met:
38484 $XTSTEXAMPLES_DEP_PKG_ERRORS
38486 Consider adjusting the PKG_CONFIG_PATH environment variable if you
38487 installed software in a non-standard prefix.
38489 Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS
38490 and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38491 See the pkg-config man page for more details." >&2;}
38492    { (exit 1); exit 1; }; }
38493 elif test $pkg_failed = untried; then
38494         { echo "$as_me:$LINENO: result: no" >&5
38495 echo "${ECHO_T}no" >&6; }
38496         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
38497 is in your PATH or set the PKG_CONFIG environment variable to the full
38498 path to pkg-config.
38500 Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS
38501 and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38502 See the pkg-config man page for more details.
38504 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
38505 See \`config.log' for more details." >&5
38506 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
38507 is in your PATH or set the PKG_CONFIG environment variable to the full
38508 path to pkg-config.
38510 Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS
38511 and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38512 See the pkg-config man page for more details.
38514 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
38515 See \`config.log' for more details." >&2;}
38516    { (exit 1); exit 1; }; }
38517 else
38518         XTSTEXAMPLES_DEP_CFLAGS=$pkg_cv_XTSTEXAMPLES_DEP_CFLAGS
38519         XTSTEXAMPLES_DEP_LIBS=$pkg_cv_XTSTEXAMPLES_DEP_LIBS
38520         { echo "$as_me:$LINENO: result: yes" >&5
38521 echo "${ECHO_T}yes" >&6; }
38526 pkg_failed=no
38527 { echo "$as_me:$LINENO: checking for XRESEXAMPLES_DEP" >&5
38528 echo $ECHO_N "checking for XRESEXAMPLES_DEP... $ECHO_C" >&6; }
38530 if test -n "$XRESEXAMPLES_DEP_CFLAGS"; then
38531     pkg_cv_XRESEXAMPLES_DEP_CFLAGS="$XRESEXAMPLES_DEP_CFLAGS"
38532  elif test -n "$PKG_CONFIG"; then
38533     if test -n "$PKG_CONFIG" && \
38534     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xres \$LIBXEXT x11\"") >&5
38535   ($PKG_CONFIG --exists --print-errors "xres $LIBXEXT x11") 2>&5
38536   ac_status=$?
38537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38538   (exit $ac_status); }; then
38539   pkg_cv_XRESEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "xres $LIBXEXT x11" 2>/dev/null`
38540 else
38541   pkg_failed=yes
38543  else
38544     pkg_failed=untried
38546 if test -n "$XRESEXAMPLES_DEP_LIBS"; then
38547     pkg_cv_XRESEXAMPLES_DEP_LIBS="$XRESEXAMPLES_DEP_LIBS"
38548  elif test -n "$PKG_CONFIG"; then
38549     if test -n "$PKG_CONFIG" && \
38550     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xres \$LIBXEXT x11\"") >&5
38551   ($PKG_CONFIG --exists --print-errors "xres $LIBXEXT x11") 2>&5
38552   ac_status=$?
38553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38554   (exit $ac_status); }; then
38555   pkg_cv_XRESEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "xres $LIBXEXT x11" 2>/dev/null`
38556 else
38557   pkg_failed=yes
38559  else
38560     pkg_failed=untried
38565 if test $pkg_failed = yes; then
38566         { echo "$as_me:$LINENO: result: no" >&5
38567 echo "${ECHO_T}no" >&6; }
38569 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38570         _pkg_short_errors_supported=yes
38571 else
38572         _pkg_short_errors_supported=no
38574         if test $_pkg_short_errors_supported = yes; then
38575                 XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xres $LIBXEXT x11" 2>&1`
38576         else
38577                 XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xres $LIBXEXT x11" 2>&1`
38578         fi
38579         # Put the nasty error message in config.log where it belongs
38580         echo "$XRESEXAMPLES_DEP_PKG_ERRORS" >&5
38582         { { echo "$as_me:$LINENO: error: Package requirements (xres $LIBXEXT x11) were not met:
38584 $XRESEXAMPLES_DEP_PKG_ERRORS
38586 Consider adjusting the PKG_CONFIG_PATH environment variable if you
38587 installed software in a non-standard prefix.
38589 Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS
38590 and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38591 See the pkg-config man page for more details." >&5
38592 echo "$as_me: error: Package requirements (xres $LIBXEXT x11) were not met:
38594 $XRESEXAMPLES_DEP_PKG_ERRORS
38596 Consider adjusting the PKG_CONFIG_PATH environment variable if you
38597 installed software in a non-standard prefix.
38599 Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS
38600 and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38601 See the pkg-config man page for more details." >&2;}
38602    { (exit 1); exit 1; }; }
38603 elif test $pkg_failed = untried; then
38604         { echo "$as_me:$LINENO: result: no" >&5
38605 echo "${ECHO_T}no" >&6; }
38606         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
38607 is in your PATH or set the PKG_CONFIG environment variable to the full
38608 path to pkg-config.
38610 Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS
38611 and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38612 See the pkg-config man page for more details.
38614 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
38615 See \`config.log' for more details." >&5
38616 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
38617 is in your PATH or set the PKG_CONFIG environment variable to the full
38618 path to pkg-config.
38620 Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS
38621 and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38622 See the pkg-config man page for more details.
38624 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
38625 See \`config.log' for more details." >&2;}
38626    { (exit 1); exit 1; }; }
38627 else
38628         XRESEXAMPLES_DEP_CFLAGS=$pkg_cv_XRESEXAMPLES_DEP_CFLAGS
38629         XRESEXAMPLES_DEP_LIBS=$pkg_cv_XRESEXAMPLES_DEP_LIBS
38630         { echo "$as_me:$LINENO: result: yes" >&5
38631 echo "${ECHO_T}yes" >&6; }
38636 pkg_failed=no
38637 { echo "$as_me:$LINENO: checking for X11EXAMPLES_DEP" >&5
38638 echo $ECHO_N "checking for X11EXAMPLES_DEP... $ECHO_C" >&6; }
38640 if test -n "$X11EXAMPLES_DEP_CFLAGS"; then
38641     pkg_cv_X11EXAMPLES_DEP_CFLAGS="$X11EXAMPLES_DEP_CFLAGS"
38642  elif test -n "$PKG_CONFIG"; then
38643     if test -n "$PKG_CONFIG" && \
38644     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11\"") >&5
38645   ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11") 2>&5
38646   ac_status=$?
38647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38648   (exit $ac_status); }; then
38649   pkg_cv_X11EXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11" 2>/dev/null`
38650 else
38651   pkg_failed=yes
38653  else
38654     pkg_failed=untried
38656 if test -n "$X11EXAMPLES_DEP_LIBS"; then
38657     pkg_cv_X11EXAMPLES_DEP_LIBS="$X11EXAMPLES_DEP_LIBS"
38658  elif test -n "$PKG_CONFIG"; then
38659     if test -n "$PKG_CONFIG" && \
38660     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11\"") >&5
38661   ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11") 2>&5
38662   ac_status=$?
38663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38664   (exit $ac_status); }; then
38665   pkg_cv_X11EXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11" 2>/dev/null`
38666 else
38667   pkg_failed=yes
38669  else
38670     pkg_failed=untried
38675 if test $pkg_failed = yes; then
38676         { echo "$as_me:$LINENO: result: no" >&5
38677 echo "${ECHO_T}no" >&6; }
38679 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38680         _pkg_short_errors_supported=yes
38681 else
38682         _pkg_short_errors_supported=no
38684         if test $_pkg_short_errors_supported = yes; then
38685                 X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBXEXT x11" 2>&1`
38686         else
38687                 X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBXEXT x11" 2>&1`
38688         fi
38689         # Put the nasty error message in config.log where it belongs
38690         echo "$X11EXAMPLES_DEP_PKG_ERRORS" >&5
38692         { { echo "$as_me:$LINENO: error: Package requirements ($LIBXEXT x11) were not met:
38694 $X11EXAMPLES_DEP_PKG_ERRORS
38696 Consider adjusting the PKG_CONFIG_PATH environment variable if you
38697 installed software in a non-standard prefix.
38699 Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS
38700 and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38701 See the pkg-config man page for more details." >&5
38702 echo "$as_me: error: Package requirements ($LIBXEXT x11) were not met:
38704 $X11EXAMPLES_DEP_PKG_ERRORS
38706 Consider adjusting the PKG_CONFIG_PATH environment variable if you
38707 installed software in a non-standard prefix.
38709 Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS
38710 and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38711 See the pkg-config man page for more details." >&2;}
38712    { (exit 1); exit 1; }; }
38713 elif test $pkg_failed = untried; then
38714         { echo "$as_me:$LINENO: result: no" >&5
38715 echo "${ECHO_T}no" >&6; }
38716         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
38717 is in your PATH or set the PKG_CONFIG environment variable to the full
38718 path to pkg-config.
38720 Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS
38721 and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38722 See the pkg-config man page for more details.
38724 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
38725 See \`config.log' for more details." >&5
38726 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
38727 is in your PATH or set the PKG_CONFIG environment variable to the full
38728 path to pkg-config.
38730 Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS
38731 and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38732 See the pkg-config man page for more details.
38734 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
38735 See \`config.log' for more details." >&2;}
38736    { (exit 1); exit 1; }; }
38737 else
38738         X11EXAMPLES_DEP_CFLAGS=$pkg_cv_X11EXAMPLES_DEP_CFLAGS
38739         X11EXAMPLES_DEP_LIBS=$pkg_cv_X11EXAMPLES_DEP_LIBS
38740         { echo "$as_me:$LINENO: result: yes" >&5
38741 echo "${ECHO_T}yes" >&6; }
38747  if test "x$DMX_BUILD_LNX" = xyes; then
38748   DMX_BUILD_LNX_TRUE=
38749   DMX_BUILD_LNX_FALSE='#'
38750 else
38751   DMX_BUILD_LNX_TRUE='#'
38752   DMX_BUILD_LNX_FALSE=
38755  if test "x$DMX_BUILD_USB" = xyes; then
38756   DMX_BUILD_USB_TRUE=
38757   DMX_BUILD_USB_FALSE='#'
38758 else
38759   DMX_BUILD_USB_TRUE='#'
38760   DMX_BUILD_USB_FALSE=
38765 XEPHYR_LIBS=
38766 XEPHYR_INCS=
38768  if test x$KDRIVE = xyes; then
38769   KDRIVE_TRUE=
38770   KDRIVE_FALSE='#'
38771 else
38772   KDRIVE_TRUE='#'
38773   KDRIVE_FALSE=
38777 if test "$KDRIVE" = yes; then
38779 cat >>confdefs.h <<\_ACEOF
38780 #define KDRIVESERVER 1
38781 _ACEOF
38784 cat >>confdefs.h <<\_ACEOF
38785 #define KDRIVEDDXACTIONS
38786 _ACEOF
38790 for ac_header in linux/fb.h
38792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38794   { echo "$as_me:$LINENO: checking for $ac_header" >&5
38795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38797   echo $ECHO_N "(cached) $ECHO_C" >&6
38799 ac_res=`eval echo '${'$as_ac_Header'}'`
38800                { echo "$as_me:$LINENO: result: $ac_res" >&5
38801 echo "${ECHO_T}$ac_res" >&6; }
38802 else
38803   # Is the header compilable?
38804 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
38805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
38806 cat >conftest.$ac_ext <<_ACEOF
38807 /* confdefs.h.  */
38808 _ACEOF
38809 cat confdefs.h >>conftest.$ac_ext
38810 cat >>conftest.$ac_ext <<_ACEOF
38811 /* end confdefs.h.  */
38812 $ac_includes_default
38813 #include <$ac_header>
38814 _ACEOF
38815 rm -f conftest.$ac_objext
38816 if { (ac_try="$ac_compile"
38817 case "(($ac_try" in
38818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38819   *) ac_try_echo=$ac_try;;
38820 esac
38821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38822   (eval "$ac_compile") 2>conftest.er1
38823   ac_status=$?
38824   grep -v '^ *+' conftest.er1 >conftest.err
38825   rm -f conftest.er1
38826   cat conftest.err >&5
38827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38828   (exit $ac_status); } && {
38829          test -z "$ac_c_werror_flag" ||
38830          test ! -s conftest.err
38831        } && test -s conftest.$ac_objext; then
38832   ac_header_compiler=yes
38833 else
38834   echo "$as_me: failed program was:" >&5
38835 sed 's/^/| /' conftest.$ac_ext >&5
38837         ac_header_compiler=no
38840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38842 echo "${ECHO_T}$ac_header_compiler" >&6; }
38844 # Is the header present?
38845 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
38846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
38847 cat >conftest.$ac_ext <<_ACEOF
38848 /* confdefs.h.  */
38849 _ACEOF
38850 cat confdefs.h >>conftest.$ac_ext
38851 cat >>conftest.$ac_ext <<_ACEOF
38852 /* end confdefs.h.  */
38853 #include <$ac_header>
38854 _ACEOF
38855 if { (ac_try="$ac_cpp conftest.$ac_ext"
38856 case "(($ac_try" in
38857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38858   *) ac_try_echo=$ac_try;;
38859 esac
38860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38861   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38862   ac_status=$?
38863   grep -v '^ *+' conftest.er1 >conftest.err
38864   rm -f conftest.er1
38865   cat conftest.err >&5
38866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38867   (exit $ac_status); } >/dev/null && {
38868          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38869          test ! -s conftest.err
38870        }; then
38871   ac_header_preproc=yes
38872 else
38873   echo "$as_me: failed program was:" >&5
38874 sed 's/^/| /' conftest.$ac_ext >&5
38876   ac_header_preproc=no
38879 rm -f conftest.err conftest.$ac_ext
38880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38881 echo "${ECHO_T}$ac_header_preproc" >&6; }
38883 # So?  What about this header?
38884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38885   yes:no: )
38886     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38890     ac_header_preproc=yes
38891     ;;
38892   no:yes:* )
38893     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38895     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38896 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38897     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38899     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38900 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38903     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38905     ( cat <<\_ASBOX
38906 ## ---------------------------------------------------------------------- ##
38907 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
38908 ## ---------------------------------------------------------------------- ##
38909 _ASBOX
38910      ) | sed "s/^/$as_me: WARNING:     /" >&2
38911     ;;
38912 esac
38913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38916   echo $ECHO_N "(cached) $ECHO_C" >&6
38917 else
38918   eval "$as_ac_Header=\$ac_header_preproc"
38920 ac_res=`eval echo '${'$as_ac_Header'}'`
38921                { echo "$as_me:$LINENO: result: $ac_res" >&5
38922 echo "${ECHO_T}$ac_res" >&6; }
38925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38926   cat >>confdefs.h <<_ACEOF
38927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38928 _ACEOF
38932 done
38934     if test "$ac_cv_header_linux_fb_h" = yes && test "x$XFBDEV" = xauto; then
38935         XFBDEV=yes
38936     fi
38938     if test "x$XFBDEV" = xyes; then
38939         KDRIVEFBDEVLIB=yes
38941 cat >>confdefs.h <<\_ACEOF
38942 #define KDRIVEFBDEV 1
38943 _ACEOF
38945     fi
38949 pkg_failed=no
38950 { echo "$as_me:$LINENO: checking for TSLIB" >&5
38951 echo $ECHO_N "checking for TSLIB... $ECHO_C" >&6; }
38953 if test -n "$TSLIB_CFLAGS"; then
38954     pkg_cv_TSLIB_CFLAGS="$TSLIB_CFLAGS"
38955  elif test -n "$PKG_CONFIG"; then
38956     if test -n "$PKG_CONFIG" && \
38957     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"tslib-0.0\"") >&5
38958   ($PKG_CONFIG --exists --print-errors "tslib-0.0") 2>&5
38959   ac_status=$?
38960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38961   (exit $ac_status); }; then
38962   pkg_cv_TSLIB_CFLAGS=`$PKG_CONFIG --cflags "tslib-0.0" 2>/dev/null`
38963 else
38964   pkg_failed=yes
38966  else
38967     pkg_failed=untried
38969 if test -n "$TSLIB_LIBS"; then
38970     pkg_cv_TSLIB_LIBS="$TSLIB_LIBS"
38971  elif test -n "$PKG_CONFIG"; then
38972     if test -n "$PKG_CONFIG" && \
38973     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"tslib-0.0\"") >&5
38974   ($PKG_CONFIG --exists --print-errors "tslib-0.0") 2>&5
38975   ac_status=$?
38976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38977   (exit $ac_status); }; then
38978   pkg_cv_TSLIB_LIBS=`$PKG_CONFIG --libs "tslib-0.0" 2>/dev/null`
38979 else
38980   pkg_failed=yes
38982  else
38983     pkg_failed=untried
38988 if test $pkg_failed = yes; then
38989         { echo "$as_me:$LINENO: result: no" >&5
38990 echo "${ECHO_T}no" >&6; }
38992 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38993         _pkg_short_errors_supported=yes
38994 else
38995         _pkg_short_errors_supported=no
38997         if test $_pkg_short_errors_supported = yes; then
38998                 TSLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "tslib-0.0" 2>&1`
38999         else
39000                 TSLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "tslib-0.0" 2>&1`
39001         fi
39002         # Put the nasty error message in config.log where it belongs
39003         echo "$TSLIB_PKG_ERRORS" >&5
39005         HAVE_TSLIB="no"
39006 elif test $pkg_failed = untried; then
39007         { echo "$as_me:$LINENO: result: no" >&5
39008 echo "${ECHO_T}no" >&6; }
39009         HAVE_TSLIB="no"
39010 else
39011         TSLIB_CFLAGS=$pkg_cv_TSLIB_CFLAGS
39012         TSLIB_LIBS=$pkg_cv_TSLIB_LIBS
39013         { echo "$as_me:$LINENO: result: yes" >&5
39014 echo "${ECHO_T}yes" >&6; }
39015         HAVE_TSLIB="yes"
39017     if test "x$HAVE_TSLIB" = xno; then
39018         { echo "$as_me:$LINENO: checking for ts_open in -lts" >&5
39019 echo $ECHO_N "checking for ts_open in -lts... $ECHO_C" >&6; }
39020 if test "${ac_cv_lib_ts_ts_open+set}" = set; then
39021   echo $ECHO_N "(cached) $ECHO_C" >&6
39022 else
39023   ac_check_lib_save_LIBS=$LIBS
39024 LIBS="-lts  $LIBS"
39025 cat >conftest.$ac_ext <<_ACEOF
39026 /* confdefs.h.  */
39027 _ACEOF
39028 cat confdefs.h >>conftest.$ac_ext
39029 cat >>conftest.$ac_ext <<_ACEOF
39030 /* end confdefs.h.  */
39032 /* Override any GCC internal prototype to avoid an error.
39033    Use char because int might match the return type of a GCC
39034    builtin and then its argument prototype would still apply.  */
39035 #ifdef __cplusplus
39036 extern "C"
39037 #endif
39038 char ts_open ();
39039 int
39040 main ()
39042 return ts_open ();
39043   ;
39044   return 0;
39046 _ACEOF
39047 rm -f conftest.$ac_objext conftest$ac_exeext
39048 if { (ac_try="$ac_link"
39049 case "(($ac_try" in
39050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39051   *) ac_try_echo=$ac_try;;
39052 esac
39053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39054   (eval "$ac_link") 2>conftest.er1
39055   ac_status=$?
39056   grep -v '^ *+' conftest.er1 >conftest.err
39057   rm -f conftest.er1
39058   cat conftest.err >&5
39059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39060   (exit $ac_status); } && {
39061          test -z "$ac_c_werror_flag" ||
39062          test ! -s conftest.err
39063        } && test -s conftest$ac_exeext &&
39064        $as_test_x conftest$ac_exeext; then
39065   ac_cv_lib_ts_ts_open=yes
39066 else
39067   echo "$as_me: failed program was:" >&5
39068 sed 's/^/| /' conftest.$ac_ext >&5
39070         ac_cv_lib_ts_ts_open=no
39073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39074       conftest$ac_exeext conftest.$ac_ext
39075 LIBS=$ac_check_lib_save_LIBS
39077 { echo "$as_me:$LINENO: result: $ac_cv_lib_ts_ts_open" >&5
39078 echo "${ECHO_T}$ac_cv_lib_ts_ts_open" >&6; }
39079 if test $ac_cv_lib_ts_ts_open = yes; then
39081                         HAVE_TSLIB="yes"
39082                         TSLIB_LIBS="-lts"
39086     fi
39088     if test "xTSLIB" = xauto; then
39089         TSLIB="$HAVE_TSLIB"
39090     fi
39092     if test "x$TSLIB" = xyes; then
39093         if ! test "x$HAVE_TSLIB" = xyes; then
39094             { { echo "$as_me:$LINENO: error: tslib must be installed to build the tslib driver. See http://tslib.berlios.de/" >&5
39095 echo "$as_me: error: tslib must be installed to build the tslib driver. See http://tslib.berlios.de/" >&2;}
39096    { (exit 1); exit 1; }; }
39097         else
39099 cat >>confdefs.h <<\_ACEOF
39100 #define TSLIB 1
39101 _ACEOF
39103         fi
39104     fi
39106     if test "x$KDRIVE_KBD" = xyes; then
39108 cat >>confdefs.h <<\_ACEOF
39109 #define KDRIVE_KBD 1
39110 _ACEOF
39112     fi
39113     if test "x$KDRIVE_EVDEV" = xyes; then
39115 cat >>confdefs.h <<\_ACEOF
39116 #define KDRIVE_EVDEV 1
39117 _ACEOF
39119     fi
39120     if test "x$KDRIVE_MOUSE" = xyes; then
39122 cat >>confdefs.h <<\_ACEOF
39123 #define KDRIVE_MOUSE 1
39124 _ACEOF
39126     fi
39128     XEPHYR_REQUIRED_LIBS="x11 $LIBXEXT xau xdmcp"
39129     if test "x$XV" = xyes; then
39130         XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS xv"
39131     fi
39132     if test "x$DRI" = xyes && test "x$GLX" = xyes; then
39133         XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS $LIBGL libdrm"
39134     fi
39136     if test "x$XEPHYR" = xauto; then
39138 pkg_failed=no
39139 { echo "$as_me:$LINENO: checking for XEPHYR" >&5
39140 echo $ECHO_N "checking for XEPHYR... $ECHO_C" >&6; }
39142 if test -n "$XEPHYR_CFLAGS"; then
39143     pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS"
39144  elif test -n "$PKG_CONFIG"; then
39145     if test -n "$PKG_CONFIG" && \
39146     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\"") >&5
39147   ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
39148   ac_status=$?
39149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39150   (exit $ac_status); }; then
39151   pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
39152 else
39153   pkg_failed=yes
39155  else
39156     pkg_failed=untried
39158 if test -n "$XEPHYR_LIBS"; then
39159     pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS"
39160  elif test -n "$PKG_CONFIG"; then
39161     if test -n "$PKG_CONFIG" && \
39162     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\"") >&5
39163   ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
39164   ac_status=$?
39165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39166   (exit $ac_status); }; then
39167   pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
39168 else
39169   pkg_failed=yes
39171  else
39172     pkg_failed=untried
39177 if test $pkg_failed = yes; then
39178         { echo "$as_me:$LINENO: result: no" >&5
39179 echo "${ECHO_T}no" >&6; }
39181 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39182         _pkg_short_errors_supported=yes
39183 else
39184         _pkg_short_errors_supported=no
39186         if test $_pkg_short_errors_supported = yes; then
39187                 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$XEPHYR_REQUIRED_LIBS" 2>&1`
39188         else
39189                 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors "$XEPHYR_REQUIRED_LIBS" 2>&1`
39190         fi
39191         # Put the nasty error message in config.log where it belongs
39192         echo "$XEPHYR_PKG_ERRORS" >&5
39194         XEPHYR="no"
39195 elif test $pkg_failed = untried; then
39196         { echo "$as_me:$LINENO: result: no" >&5
39197 echo "${ECHO_T}no" >&6; }
39198         XEPHYR="no"
39199 else
39200         XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS
39201         XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS
39202         { echo "$as_me:$LINENO: result: yes" >&5
39203 echo "${ECHO_T}yes" >&6; }
39204         XEPHYR="yes"
39206     elif test "x$XEPHYR" = xyes ; then
39208 pkg_failed=no
39209 { echo "$as_me:$LINENO: checking for XEPHYR" >&5
39210 echo $ECHO_N "checking for XEPHYR... $ECHO_C" >&6; }
39212 if test -n "$XEPHYR_CFLAGS"; then
39213     pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS"
39214  elif test -n "$PKG_CONFIG"; then
39215     if test -n "$PKG_CONFIG" && \
39216     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\"") >&5
39217   ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
39218   ac_status=$?
39219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39220   (exit $ac_status); }; then
39221   pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
39222 else
39223   pkg_failed=yes
39225  else
39226     pkg_failed=untried
39228 if test -n "$XEPHYR_LIBS"; then
39229     pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS"
39230  elif test -n "$PKG_CONFIG"; then
39231     if test -n "$PKG_CONFIG" && \
39232     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\"") >&5
39233   ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
39234   ac_status=$?
39235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39236   (exit $ac_status); }; then
39237   pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
39238 else
39239   pkg_failed=yes
39241  else
39242     pkg_failed=untried
39247 if test $pkg_failed = yes; then
39248         { echo "$as_me:$LINENO: result: no" >&5
39249 echo "${ECHO_T}no" >&6; }
39251 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39252         _pkg_short_errors_supported=yes
39253 else
39254         _pkg_short_errors_supported=no
39256         if test $_pkg_short_errors_supported = yes; then
39257                 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$XEPHYR_REQUIRED_LIBS" 2>&1`
39258         else
39259                 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors "$XEPHYR_REQUIRED_LIBS" 2>&1`
39260         fi
39261         # Put the nasty error message in config.log where it belongs
39262         echo "$XEPHYR_PKG_ERRORS" >&5
39264         { { echo "$as_me:$LINENO: error: Package requirements ($XEPHYR_REQUIRED_LIBS) were not met:
39266 $XEPHYR_PKG_ERRORS
39268 Consider adjusting the PKG_CONFIG_PATH environment variable if you
39269 installed software in a non-standard prefix.
39271 Alternatively, you may set the environment variables XEPHYR_CFLAGS
39272 and XEPHYR_LIBS to avoid the need to call pkg-config.
39273 See the pkg-config man page for more details." >&5
39274 echo "$as_me: error: Package requirements ($XEPHYR_REQUIRED_LIBS) were not met:
39276 $XEPHYR_PKG_ERRORS
39278 Consider adjusting the PKG_CONFIG_PATH environment variable if you
39279 installed software in a non-standard prefix.
39281 Alternatively, you may set the environment variables XEPHYR_CFLAGS
39282 and XEPHYR_LIBS to avoid the need to call pkg-config.
39283 See the pkg-config man page for more details." >&2;}
39284    { (exit 1); exit 1; }; }
39285 elif test $pkg_failed = untried; then
39286         { echo "$as_me:$LINENO: result: no" >&5
39287 echo "${ECHO_T}no" >&6; }
39288         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
39289 is in your PATH or set the PKG_CONFIG environment variable to the full
39290 path to pkg-config.
39292 Alternatively, you may set the environment variables XEPHYR_CFLAGS
39293 and XEPHYR_LIBS to avoid the need to call pkg-config.
39294 See the pkg-config man page for more details.
39296 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
39297 See \`config.log' for more details." >&5
39298 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
39299 is in your PATH or set the PKG_CONFIG environment variable to the full
39300 path to pkg-config.
39302 Alternatively, you may set the environment variables XEPHYR_CFLAGS
39303 and XEPHYR_LIBS to avoid the need to call pkg-config.
39304 See the pkg-config man page for more details.
39306 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
39307 See \`config.log' for more details." >&2;}
39308    { (exit 1); exit 1; }; }
39309 else
39310         XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS
39311         XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS
39312         { echo "$as_me:$LINENO: result: yes" >&5
39313 echo "${ECHO_T}yes" >&6; }
39316     fi
39318     # Xephyr needs nanosleep() which is in librt on Solaris
39319     { echo "$as_me:$LINENO: checking for nanosleep" >&5
39320 echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
39321 if test "${ac_cv_func_nanosleep+set}" = set; then
39322   echo $ECHO_N "(cached) $ECHO_C" >&6
39323 else
39324   cat >conftest.$ac_ext <<_ACEOF
39325 /* confdefs.h.  */
39326 _ACEOF
39327 cat confdefs.h >>conftest.$ac_ext
39328 cat >>conftest.$ac_ext <<_ACEOF
39329 /* end confdefs.h.  */
39330 /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
39331    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39332 #define nanosleep innocuous_nanosleep
39334 /* System header to define __stub macros and hopefully few prototypes,
39335     which can conflict with char nanosleep (); below.
39336     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39337     <limits.h> exists even on freestanding compilers.  */
39339 #ifdef __STDC__
39340 # include <limits.h>
39341 #else
39342 # include <assert.h>
39343 #endif
39345 #undef nanosleep
39347 /* Override any GCC internal prototype to avoid an error.
39348    Use char because int might match the return type of a GCC
39349    builtin and then its argument prototype would still apply.  */
39350 #ifdef __cplusplus
39351 extern "C"
39352 #endif
39353 char nanosleep ();
39354 /* The GNU C library defines this for functions which it implements
39355     to always fail with ENOSYS.  Some functions are actually named
39356     something starting with __ and the normal name is an alias.  */
39357 #if defined __stub_nanosleep || defined __stub___nanosleep
39358 choke me
39359 #endif
39361 int
39362 main ()
39364 return nanosleep ();
39365   ;
39366   return 0;
39368 _ACEOF
39369 rm -f conftest.$ac_objext conftest$ac_exeext
39370 if { (ac_try="$ac_link"
39371 case "(($ac_try" in
39372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39373   *) ac_try_echo=$ac_try;;
39374 esac
39375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39376   (eval "$ac_link") 2>conftest.er1
39377   ac_status=$?
39378   grep -v '^ *+' conftest.er1 >conftest.err
39379   rm -f conftest.er1
39380   cat conftest.err >&5
39381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39382   (exit $ac_status); } && {
39383          test -z "$ac_c_werror_flag" ||
39384          test ! -s conftest.err
39385        } && test -s conftest$ac_exeext &&
39386        $as_test_x conftest$ac_exeext; then
39387   ac_cv_func_nanosleep=yes
39388 else
39389   echo "$as_me: failed program was:" >&5
39390 sed 's/^/| /' conftest.$ac_ext >&5
39392         ac_cv_func_nanosleep=no
39395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39396       conftest$ac_exeext conftest.$ac_ext
39398 { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
39399 echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; }
39400 if test $ac_cv_func_nanosleep = yes; then
39401   :
39402 else
39403   { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
39404 echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
39405 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
39406   echo $ECHO_N "(cached) $ECHO_C" >&6
39407 else
39408   ac_check_lib_save_LIBS=$LIBS
39409 LIBS="-lrt  $LIBS"
39410 cat >conftest.$ac_ext <<_ACEOF
39411 /* confdefs.h.  */
39412 _ACEOF
39413 cat confdefs.h >>conftest.$ac_ext
39414 cat >>conftest.$ac_ext <<_ACEOF
39415 /* end confdefs.h.  */
39417 /* Override any GCC internal prototype to avoid an error.
39418    Use char because int might match the return type of a GCC
39419    builtin and then its argument prototype would still apply.  */
39420 #ifdef __cplusplus
39421 extern "C"
39422 #endif
39423 char nanosleep ();
39424 int
39425 main ()
39427 return nanosleep ();
39428   ;
39429   return 0;
39431 _ACEOF
39432 rm -f conftest.$ac_objext conftest$ac_exeext
39433 if { (ac_try="$ac_link"
39434 case "(($ac_try" in
39435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39436   *) ac_try_echo=$ac_try;;
39437 esac
39438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39439   (eval "$ac_link") 2>conftest.er1
39440   ac_status=$?
39441   grep -v '^ *+' conftest.er1 >conftest.err
39442   rm -f conftest.er1
39443   cat conftest.err >&5
39444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39445   (exit $ac_status); } && {
39446          test -z "$ac_c_werror_flag" ||
39447          test ! -s conftest.err
39448        } && test -s conftest$ac_exeext &&
39449        $as_test_x conftest$ac_exeext; then
39450   ac_cv_lib_rt_nanosleep=yes
39451 else
39452   echo "$as_me: failed program was:" >&5
39453 sed 's/^/| /' conftest.$ac_ext >&5
39455         ac_cv_lib_rt_nanosleep=no
39458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39459       conftest$ac_exeext conftest.$ac_ext
39460 LIBS=$ac_check_lib_save_LIBS
39462 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
39463 echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
39464 if test $ac_cv_lib_rt_nanosleep = yes; then
39465   XEPHYR_LIBS="$XEPHYR_LIBS -lrt"
39471     # damage shadow extension glx (NOTYET) fb mi
39472     KDRIVE_INC='-I$(top_srcdir)/hw/kdrive/src'
39473     KDRIVE_PURE_INCS="$KDRIVE_INC $MIEXT_SYNC_INC $MIEXT_DAMAGE_INC $MIEXT_SHADOW_INC $XEXT_INC $FB_INC $MI_INC"
39474     KDRIVE_OS_INC='-I$(top_srcdir)/hw/kdrive/linux'
39475     KDRIVE_INCS="$KDRIVE_PURE_INCS $KDRIVE_OS_INC"
39477     KDRIVE_CFLAGS="$XSERVER_CFLAGS -DHAVE_KDRIVE_CONFIG_H $TSLIB_CFLAGS"
39479     KDRIVE_PURE_LIBS="$FB_LIB $MI_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $OS_LIB"
39480     KDRIVE_LIB='$(top_builddir)/hw/kdrive/src/libkdrive.la'
39481     case $host_os in
39482         *linux*)
39483             KDRIVE_OS_LIB='$(top_builddir)/hw/kdrive/linux/liblinux.la'
39484             KDRIVELINUX=yes
39485             if test "x$KDRIVE_EVDEV" = xauto; then
39486                 KDRIVE_EVDEV=yes
39487             fi
39488             if test "x$KDRIVE_KBD" = xauto; then
39489                 KDRIVE_KBD=yes
39490             fi
39491             if test "x$KDRIVE_MOUSE" = xauto; then
39492                 KDRIVE_MOUSE=yes
39493             fi
39494             ;;
39495         *)
39496             if test "x$KDRIVE_EVDEV" = xauto; then
39497                 KDRIVE_EVDEV=no
39498             fi
39499             if test "x$KDRIVE_KBD" = xauto; then
39500                 KDRIVE_KBD=no
39501             fi
39502             if test "x$KDRIVE_MOUSE" = xauto; then
39503                 KDRIVE_MOUSE=no
39504             fi
39505             ;;
39506     esac
39507     KDRIVE_STUB_LIB='$(top_builddir)/hw/kdrive/src/libkdrivestubs.la'
39508     KDRIVE_LOCAL_LIBS="$MAIN_LIB $DIX_LIB $KDRIVE_LIB $KDRIVE_STUB_LIB"
39509     KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $FB_LIB $MI_LIB $KDRIVE_PURE_LIBS"
39510     KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $KDRIVE_OS_LIB"
39511     KDRIVE_LIBS="$KDRIVE_LOCAL_LIBS $XSERVER_SYS_LIBS $GLX_SYS_LIBS $DLOPEN_LIBS $TSLIB_LIBS"
39522  if test "x$KDRIVELINUX" = xyes; then
39523   KDRIVELINUX_TRUE=
39524   KDRIVELINUX_FALSE='#'
39525 else
39526   KDRIVELINUX_TRUE='#'
39527   KDRIVELINUX_FALSE=
39530  if test "x$KDRIVE_EVDEV" = xyes; then
39531   KDRIVE_EVDEV_TRUE=
39532   KDRIVE_EVDEV_FALSE='#'
39533 else
39534   KDRIVE_EVDEV_TRUE='#'
39535   KDRIVE_EVDEV_FALSE=
39538  if test "x$KDRIVE_KBD" = xyes; then
39539   KDRIVE_KBD_TRUE=
39540   KDRIVE_KBD_FALSE='#'
39541 else
39542   KDRIVE_KBD_TRUE='#'
39543   KDRIVE_KBD_FALSE=
39546  if test "x$KDRIVE_MOUSE" = xyes; then
39547   KDRIVE_MOUSE_TRUE=
39548   KDRIVE_MOUSE_FALSE='#'
39549 else
39550   KDRIVE_MOUSE_TRUE='#'
39551   KDRIVE_MOUSE_FALSE=
39554  if test "x$HAVE_TSLIB" = xyes; then
39555   TSLIB_TRUE=
39556   TSLIB_FALSE='#'
39557 else
39558   TSLIB_TRUE='#'
39559   TSLIB_FALSE=
39562  if test "x$XFBDEV" = xyes; then
39563   KDRIVEFBDEV_TRUE=
39564   KDRIVEFBDEV_FALSE='#'
39565 else
39566   KDRIVEFBDEV_TRUE='#'
39567   KDRIVEFBDEV_FALSE=
39570  if test "x$KDRIVE" = xyes && test "x$XEPHYR" = xyes; then
39571   XEPHYR_TRUE=
39572   XEPHYR_FALSE='#'
39573 else
39574   XEPHYR_TRUE='#'
39575   XEPHYR_FALSE=
39578  if test "x$KDRIVE" = xyes && test "x$KDRIVEFBDEVLIB" = xyes; then
39579   BUILD_KDRIVEFBDEVLIB_TRUE=
39580   BUILD_KDRIVEFBDEVLIB_FALSE='#'
39581 else
39582   BUILD_KDRIVEFBDEVLIB_TRUE='#'
39583   BUILD_KDRIVEFBDEVLIB_FALSE=
39586  if test "x$KDRIVE" = xyes && test "x$XFAKE" = xyes; then
39587   XFAKESERVER_TRUE=
39588   XFAKESERVER_FALSE='#'
39589 else
39590   XFAKESERVER_TRUE='#'
39591   XFAKESERVER_FALSE=
39596 cat >conftest.$ac_ext <<_ACEOF
39597 /* confdefs.h.  */
39598 _ACEOF
39599 cat confdefs.h >>conftest.$ac_ext
39600 cat >>conftest.$ac_ext <<_ACEOF
39601 /* end confdefs.h.  */
39603 #include <features.h>
39604 #ifndef __GLIBC__
39605 #error not glibc
39606 #endif
39608 int
39609 main ()
39612   ;
39613   return 0;
39615 _ACEOF
39616 rm -f conftest.$ac_objext
39617 if { (ac_try="$ac_compile"
39618 case "(($ac_try" in
39619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39620   *) ac_try_echo=$ac_try;;
39621 esac
39622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39623   (eval "$ac_compile") 2>conftest.er1
39624   ac_status=$?
39625   grep -v '^ *+' conftest.er1 >conftest.err
39626   rm -f conftest.er1
39627   cat conftest.err >&5
39628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39629   (exit $ac_status); } && {
39630          test -z "$ac_c_werror_flag" ||
39631          test ! -s conftest.err
39632        } && test -s conftest.$ac_objext; then
39634 cat >>confdefs.h <<\_ACEOF
39635 #define _GNU_SOURCE 1
39636 _ACEOF
39638 else
39639   echo "$as_me: failed program was:" >&5
39640 sed 's/^/| /' conftest.$ac_ext >&5
39645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39648   prefix_NONE=
39649   exec_prefix_NONE=
39650   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
39651   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
39652   eval ac_define_dir="\"$prefix\""
39653   eval ac_define_dir="\"$ac_define_dir\""
39654   PROJECTROOT="$ac_define_dir"
39657 cat >>confdefs.h <<_ACEOF
39658 #define PROJECTROOT "$ac_define_dir"
39659 _ACEOF
39661   test "$prefix_NONE" && prefix=NONE
39662   test "$exec_prefix_NONE" && exec_prefix=NONE
39666 BUILD_DATE="`date +'%Y%m%d'`"
39668 BUILD_TIME="`date +'1%H%M%S'`"
39671 DIX_CFLAGS="-DHAVE_DIX_CONFIG_H $XSERVER_CFLAGS"
39679 ac_config_commands="$ac_config_commands sdksyms"
39682 ac_config_files="$ac_config_files Makefile glx/Makefile include/Makefile composite/Makefile damageext/Makefile dbe/Makefile dix/Makefile doc/Makefile doc/dtrace/Makefile man/Makefile fb/Makefile record/Makefile config/Makefile mi/Makefile miext/Makefile miext/sync/Makefile miext/damage/Makefile miext/shadow/Makefile miext/cw/Makefile miext/rootless/Makefile os/Makefile randr/Makefile render/Makefile xkb/Makefile Xext/Makefile Xi/Makefile xfixes/Makefile exa/Makefile hw/Makefile hw/xfree86/Makefile hw/xfree86/common/Makefile hw/xfree86/common/xf86Build.h hw/xfree86/ddc/Makefile hw/xfree86/dixmods/Makefile hw/xfree86/dixmods/extmod/Makefile hw/xfree86/doc/Makefile hw/xfree86/dri/Makefile hw/xfree86/dri2/Makefile hw/xfree86/exa/Makefile hw/xfree86/exa/man/Makefile hw/xfree86/fbdevhw/Makefile hw/xfree86/fbdevhw/man/Makefile hw/xfree86/i2c/Makefile hw/xfree86/int10/Makefile hw/xfree86/loader/Makefile hw/xfree86/man/Makefile hw/xfree86/modes/Makefile hw/xfree86/os-support/Makefile hw/xfree86/os-support/bsd/Makefile hw/xfree86/os-support/bus/Makefile hw/xfree86/os-support/hurd/Makefile hw/xfree86/os-support/misc/Makefile hw/xfree86/os-support/linux/Makefile hw/xfree86/os-support/solaris/Makefile hw/xfree86/parser/Makefile hw/xfree86/ramdac/Makefile hw/xfree86/shadowfb/Makefile hw/xfree86/vbe/Makefile hw/xfree86/vgahw/Makefile hw/xfree86/x86emu/Makefile hw/xfree86/xaa/Makefile hw/xfree86/utils/Makefile hw/xfree86/utils/man/Makefile hw/xfree86/utils/cvt/Makefile hw/xfree86/utils/gtf/Makefile hw/dmx/config/Makefile hw/dmx/config/man/Makefile hw/dmx/doc/Makefile hw/dmx/doxygen/doxygen.conf hw/dmx/doxygen/Makefile hw/dmx/examples/Makefile hw/dmx/input/Makefile hw/dmx/glxProxy/Makefile hw/dmx/Makefile hw/dmx/man/Makefile hw/vfb/Makefile hw/vfb/man/Makefile hw/xnest/Makefile hw/xnest/man/Makefile hw/xwin/Makefile hw/xwin/glx/Makefile hw/xwin/man/Makefile hw/xquartz/Makefile hw/xquartz/GL/Makefile hw/xquartz/bundle/Makefile hw/xquartz/man/Makefile hw/xquartz/mach-startup/Makefile hw/xquartz/pbproxy/Makefile hw/xquartz/xpr/Makefile hw/kdrive/Makefile hw/kdrive/ephyr/Makefile hw/kdrive/ephyr/man/Makefile hw/kdrive/fake/Makefile hw/kdrive/fbdev/Makefile hw/kdrive/linux/Makefile hw/kdrive/src/Makefile test/Makefile test/xi2/Makefile xserver.ent xorg-server.pc"
39684 cat >confcache <<\_ACEOF
39685 # This file is a shell script that caches the results of configure
39686 # tests run on this system so they can be shared between configure
39687 # scripts and configure runs, see configure's option --config-cache.
39688 # It is not useful on other systems.  If it contains results you don't
39689 # want to keep, you may remove or edit it.
39691 # config.status only pays attention to the cache file if you give it
39692 # the --recheck option to rerun configure.
39694 # `ac_cv_env_foo' variables (set or unset) will be overridden when
39695 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39696 # following values.
39698 _ACEOF
39700 # The following way of writing the cache mishandles newlines in values,
39701 # but we know of no workaround that is simple, portable, and efficient.
39702 # So, we kill variables containing newlines.
39703 # Ultrix sh set writes to stderr and can't be redirected directly,
39704 # and sets the high bit in the cache file unless we assign to the vars.
39706   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
39707     eval ac_val=\$$ac_var
39708     case $ac_val in #(
39709     *${as_nl}*)
39710       case $ac_var in #(
39711       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
39712 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
39713       esac
39714       case $ac_var in #(
39715       _ | IFS | as_nl) ;; #(
39716       *) $as_unset $ac_var ;;
39717       esac ;;
39718     esac
39719   done
39721   (set) 2>&1 |
39722     case $as_nl`(ac_space=' '; set) 2>&1` in #(
39723     *${as_nl}ac_space=\ *)
39724       # `set' does not quote correctly, so add quotes (double-quote
39725       # substitution turns \\\\ into \\, and sed turns \\ into \).
39726       sed -n \
39727         "s/'/'\\\\''/g;
39728           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39729       ;; #(
39730     *)
39731       # `set' quotes correctly as required by POSIX, so do not add quotes.
39732       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
39733       ;;
39734     esac |
39735     sort
39736 ) |
39737   sed '
39738      /^ac_cv_env_/b end
39739      t clear
39740      :clear
39741      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39742      t end
39743      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39744      :end' >>confcache
39745 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
39746   if test -w "$cache_file"; then
39747     test "x$cache_file" != "x/dev/null" &&
39748       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
39749 echo "$as_me: updating cache $cache_file" >&6;}
39750     cat confcache >$cache_file
39751   else
39752     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
39753 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
39754   fi
39756 rm -f confcache
39758 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39759 # Let make expand exec_prefix.
39760 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39762 DEFS=-DHAVE_CONFIG_H
39764 ac_libobjs=
39765 ac_ltlibobjs=
39766 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39767   # 1. Remove the extension, and $U if already installed.
39768   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39769   ac_i=`echo "$ac_i" | sed "$ac_script"`
39770   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
39771   #    will be set to the directory where LIBOBJS objects are built.
39772   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
39773   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
39774 done
39775 LIBOBJS=$ac_libobjs
39777 LTLIBOBJS=$ac_ltlibobjs
39780 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
39781   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
39782 Usually this means the macro was only invoked conditionally." >&5
39783 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
39784 Usually this means the macro was only invoked conditionally." >&2;}
39785    { (exit 1); exit 1; }; }
39787 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39788   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39789 Usually this means the macro was only invoked conditionally." >&5
39790 echo "$as_me: error: conditional \"AMDEP\" was never defined.
39791 Usually this means the macro was only invoked conditionally." >&2;}
39792    { (exit 1); exit 1; }; }
39794 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39795   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39796 Usually this means the macro was only invoked conditionally." >&5
39797 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39798 Usually this means the macro was only invoked conditionally." >&2;}
39799    { (exit 1); exit 1; }; }
39801 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
39802   { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOXYGEN\" was never defined.
39803 Usually this means the macro was only invoked conditionally." >&5
39804 echo "$as_me: error: conditional \"HAVE_DOXYGEN\" was never defined.
39805 Usually this means the macro was only invoked conditionally." >&2;}
39806    { (exit 1); exit 1; }; }
39808 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
39809   { { echo "$as_me:$LINENO: error: conditional \"HAVE_STYLESHEETS\" was never defined.
39810 Usually this means the macro was only invoked conditionally." >&5
39811 echo "$as_me: error: conditional \"HAVE_STYLESHEETS\" was never defined.
39812 Usually this means the macro was only invoked conditionally." >&2;}
39813    { (exit 1); exit 1; }; }
39815 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
39816   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DOCS\" was never defined.
39817 Usually this means the macro was only invoked conditionally." >&5
39818 echo "$as_me: error: conditional \"ENABLE_DOCS\" was never defined.
39819 Usually this means the macro was only invoked conditionally." >&2;}
39820    { (exit 1); exit 1; }; }
39822 if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
39823   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DEVEL_DOCS\" was never defined.
39824 Usually this means the macro was only invoked conditionally." >&5
39825 echo "$as_me: error: conditional \"ENABLE_DEVEL_DOCS\" was never defined.
39826 Usually this means the macro was only invoked conditionally." >&2;}
39827    { (exit 1); exit 1; }; }
39829 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
39830   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XMLTO_TEXT\" was never defined.
39831 Usually this means the macro was only invoked conditionally." >&5
39832 echo "$as_me: error: conditional \"HAVE_XMLTO_TEXT\" was never defined.
39833 Usually this means the macro was only invoked conditionally." >&2;}
39834    { (exit 1); exit 1; }; }
39836 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
39837   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XMLTO\" was never defined.
39838 Usually this means the macro was only invoked conditionally." >&5
39839 echo "$as_me: error: conditional \"HAVE_XMLTO\" was never defined.
39840 Usually this means the macro was only invoked conditionally." >&2;}
39841    { (exit 1); exit 1; }; }
39843 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
39844   { { echo "$as_me:$LINENO: error: conditional \"HAVE_FOP\" was never defined.
39845 Usually this means the macro was only invoked conditionally." >&5
39846 echo "$as_me: error: conditional \"HAVE_FOP\" was never defined.
39847 Usually this means the macro was only invoked conditionally." >&2;}
39848    { (exit 1); exit 1; }; }
39850 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
39851   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTPROC\" was never defined.
39852 Usually this means the macro was only invoked conditionally." >&5
39853 echo "$as_me: error: conditional \"HAVE_XSLTPROC\" was never defined.
39854 Usually this means the macro was only invoked conditionally." >&2;}
39855    { (exit 1); exit 1; }; }
39857 if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
39858   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UNIT_TESTS\" was never defined.
39859 Usually this means the macro was only invoked conditionally." >&5
39860 echo "$as_me: error: conditional \"ENABLE_UNIT_TESTS\" was never defined.
39861 Usually this means the macro was only invoked conditionally." >&2;}
39862    { (exit 1); exit 1; }; }
39864 if test -z "${HAVE_LD_WRAP_TRUE}" && test -z "${HAVE_LD_WRAP_FALSE}"; then
39865   { { echo "$as_me:$LINENO: error: conditional \"HAVE_LD_WRAP\" was never defined.
39866 Usually this means the macro was only invoked conditionally." >&5
39867 echo "$as_me: error: conditional \"HAVE_LD_WRAP\" was never defined.
39868 Usually this means the macro was only invoked conditionally." >&2;}
39869    { (exit 1); exit 1; }; }
39871 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
39872   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
39873 Usually this means the macro was only invoked conditionally." >&5
39874 echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
39875 Usually this means the macro was only invoked conditionally." >&2;}
39876    { (exit 1); exit 1; }; }
39878 if test -z "${XSERVER_DTRACE_TRUE}" && test -z "${XSERVER_DTRACE_FALSE}"; then
39879   { { echo "$as_me:$LINENO: error: conditional \"XSERVER_DTRACE\" was never defined.
39880 Usually this means the macro was only invoked conditionally." >&5
39881 echo "$as_me: error: conditional \"XSERVER_DTRACE\" was never defined.
39882 Usually this means the macro was only invoked conditionally." >&2;}
39883    { (exit 1); exit 1; }; }
39885 if test -z "${SPECIAL_DTRACE_OBJECTS_TRUE}" && test -z "${SPECIAL_DTRACE_OBJECTS_FALSE}"; then
39886   { { echo "$as_me:$LINENO: error: conditional \"SPECIAL_DTRACE_OBJECTS\" was never defined.
39887 Usually this means the macro was only invoked conditionally." >&5
39888 echo "$as_me: error: conditional \"SPECIAL_DTRACE_OBJECTS\" was never defined.
39889 Usually this means the macro was only invoked conditionally." >&2;}
39890    { (exit 1); exit 1; }; }
39892 if test -z "${NEED_STRLCAT_TRUE}" && test -z "${NEED_STRLCAT_FALSE}"; then
39893   { { echo "$as_me:$LINENO: error: conditional \"NEED_STRLCAT\" was never defined.
39894 Usually this means the macro was only invoked conditionally." >&5
39895 echo "$as_me: error: conditional \"NEED_STRLCAT\" was never defined.
39896 Usually this means the macro was only invoked conditionally." >&2;}
39897    { (exit 1); exit 1; }; }
39899 if test -z "${NEED_VSNPRINTF_TRUE}" && test -z "${NEED_VSNPRINTF_FALSE}"; then
39900   { { echo "$as_me:$LINENO: error: conditional \"NEED_VSNPRINTF\" was never defined.
39901 Usually this means the macro was only invoked conditionally." >&5
39902 echo "$as_me: error: conditional \"NEED_VSNPRINTF\" was never defined.
39903 Usually this means the macro was only invoked conditionally." >&2;}
39904    { (exit 1); exit 1; }; }
39906 if test -z "${AGP_TRUE}" && test -z "${AGP_FALSE}"; then
39907   { { echo "$as_me:$LINENO: error: conditional \"AGP\" was never defined.
39908 Usually this means the macro was only invoked conditionally." >&5
39909 echo "$as_me: error: conditional \"AGP\" was never defined.
39910 Usually this means the macro was only invoked conditionally." >&2;}
39911    { (exit 1); exit 1; }; }
39913 if test -z "${LNXAPM_TRUE}" && test -z "${LNXAPM_FALSE}"; then
39914   { { echo "$as_me:$LINENO: error: conditional \"LNXAPM\" was never defined.
39915 Usually this means the macro was only invoked conditionally." >&5
39916 echo "$as_me: error: conditional \"LNXAPM\" was never defined.
39917 Usually this means the macro was only invoked conditionally." >&2;}
39918    { (exit 1); exit 1; }; }
39920 if test -z "${FBDEVHW_TRUE}" && test -z "${FBDEVHW_FALSE}"; then
39921   { { echo "$as_me:$LINENO: error: conditional \"FBDEVHW\" was never defined.
39922 Usually this means the macro was only invoked conditionally." >&5
39923 echo "$as_me: error: conditional \"FBDEVHW\" was never defined.
39924 Usually this means the macro was only invoked conditionally." >&2;}
39925    { (exit 1); exit 1; }; }
39927 if test -z "${FREEBSD_KLDLOAD_TRUE}" && test -z "${FREEBSD_KLDLOAD_FALSE}"; then
39928   { { echo "$as_me:$LINENO: error: conditional \"FREEBSD_KLDLOAD\" was never defined.
39929 Usually this means the macro was only invoked conditionally." >&5
39930 echo "$as_me: error: conditional \"FREEBSD_KLDLOAD\" was never defined.
39931 Usually this means the macro was only invoked conditionally." >&2;}
39932    { (exit 1); exit 1; }; }
39934 if test -z "${BSD_APM_TRUE}" && test -z "${BSD_APM_FALSE}"; then
39935   { { echo "$as_me:$LINENO: error: conditional \"BSD_APM\" was never defined.
39936 Usually this means the macro was only invoked conditionally." >&5
39937 echo "$as_me: error: conditional \"BSD_APM\" was never defined.
39938 Usually this means the macro was only invoked conditionally." >&2;}
39939    { (exit 1); exit 1; }; }
39941 if test -z "${BSD_KQUEUE_APM_TRUE}" && test -z "${BSD_KQUEUE_APM_FALSE}"; then
39942   { { echo "$as_me:$LINENO: error: conditional \"BSD_KQUEUE_APM\" was never defined.
39943 Usually this means the macro was only invoked conditionally." >&5
39944 echo "$as_me: error: conditional \"BSD_KQUEUE_APM\" was never defined.
39945 Usually this means the macro was only invoked conditionally." >&2;}
39946    { (exit 1); exit 1; }; }
39948 if test -z "${ALPHA_VIDEO_TRUE}" && test -z "${ALPHA_VIDEO_FALSE}"; then
39949   { { echo "$as_me:$LINENO: error: conditional \"ALPHA_VIDEO\" was never defined.
39950 Usually this means the macro was only invoked conditionally." >&5
39951 echo "$as_me: error: conditional \"ALPHA_VIDEO\" was never defined.
39952 Usually this means the macro was only invoked conditionally." >&2;}
39953    { (exit 1); exit 1; }; }
39955 if test -z "${ARM_VIDEO_TRUE}" && test -z "${ARM_VIDEO_FALSE}"; then
39956   { { echo "$as_me:$LINENO: error: conditional \"ARM_VIDEO\" was never defined.
39957 Usually this means the macro was only invoked conditionally." >&5
39958 echo "$as_me: error: conditional \"ARM_VIDEO\" was never defined.
39959 Usually this means the macro was only invoked conditionally." >&2;}
39960    { (exit 1); exit 1; }; }
39962 if test -z "${I386_VIDEO_TRUE}" && test -z "${I386_VIDEO_FALSE}"; then
39963   { { echo "$as_me:$LINENO: error: conditional \"I386_VIDEO\" was never defined.
39964 Usually this means the macro was only invoked conditionally." >&5
39965 echo "$as_me: error: conditional \"I386_VIDEO\" was never defined.
39966 Usually this means the macro was only invoked conditionally." >&2;}
39967    { (exit 1); exit 1; }; }
39969 if test -z "${PPC_VIDEO_TRUE}" && test -z "${PPC_VIDEO_FALSE}"; then
39970   { { echo "$as_me:$LINENO: error: conditional \"PPC_VIDEO\" was never defined.
39971 Usually this means the macro was only invoked conditionally." >&5
39972 echo "$as_me: error: conditional \"PPC_VIDEO\" was never defined.
39973 Usually this means the macro was only invoked conditionally." >&2;}
39974    { (exit 1); exit 1; }; }
39976 if test -z "${SPARC64_VIDEO_TRUE}" && test -z "${SPARC64_VIDEO_FALSE}"; then
39977   { { echo "$as_me:$LINENO: error: conditional \"SPARC64_VIDEO\" was never defined.
39978 Usually this means the macro was only invoked conditionally." >&5
39979 echo "$as_me: error: conditional \"SPARC64_VIDEO\" was never defined.
39980 Usually this means the macro was only invoked conditionally." >&2;}
39981    { (exit 1); exit 1; }; }
39983 if test -z "${INSTALL_SETUID_TRUE}" && test -z "${INSTALL_SETUID_FALSE}"; then
39984   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_SETUID\" was never defined.
39985 Usually this means the macro was only invoked conditionally." >&5
39986 echo "$as_me: error: conditional \"INSTALL_SETUID\" was never defined.
39987 Usually this means the macro was only invoked conditionally." >&2;}
39988    { (exit 1); exit 1; }; }
39990 if test -z "${SECURE_RPC_TRUE}" && test -z "${SECURE_RPC_FALSE}"; then
39991   { { echo "$as_me:$LINENO: error: conditional \"SECURE_RPC\" was never defined.
39992 Usually this means the macro was only invoked conditionally." >&5
39993 echo "$as_me: error: conditional \"SECURE_RPC\" was never defined.
39994 Usually this means the macro was only invoked conditionally." >&2;}
39995    { (exit 1); exit 1; }; }
39997 if test -z "${INT10_VM86_TRUE}" && test -z "${INT10_VM86_FALSE}"; then
39998   { { echo "$as_me:$LINENO: error: conditional \"INT10_VM86\" was never defined.
39999 Usually this means the macro was only invoked conditionally." >&5
40000 echo "$as_me: error: conditional \"INT10_VM86\" was never defined.
40001 Usually this means the macro was only invoked conditionally." >&2;}
40002    { (exit 1); exit 1; }; }
40004 if test -z "${INT10_X86EMU_TRUE}" && test -z "${INT10_X86EMU_FALSE}"; then
40005   { { echo "$as_me:$LINENO: error: conditional \"INT10_X86EMU\" was never defined.
40006 Usually this means the macro was only invoked conditionally." >&5
40007 echo "$as_me: error: conditional \"INT10_X86EMU\" was never defined.
40008 Usually this means the macro was only invoked conditionally." >&2;}
40009    { (exit 1); exit 1; }; }
40011 if test -z "${INT10_STUB_TRUE}" && test -z "${INT10_STUB_FALSE}"; then
40012   { { echo "$as_me:$LINENO: error: conditional \"INT10_STUB\" was never defined.
40013 Usually this means the macro was only invoked conditionally." >&5
40014 echo "$as_me: error: conditional \"INT10_STUB\" was never defined.
40015 Usually this means the macro was only invoked conditionally." >&2;}
40016    { (exit 1); exit 1; }; }
40018 if test -z "${INSTALL_LIBXF86CONFIG_TRUE}" && test -z "${INSTALL_LIBXF86CONFIG_FALSE}"; then
40019   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBXF86CONFIG\" was never defined.
40020 Usually this means the macro was only invoked conditionally." >&5
40021 echo "$as_me: error: conditional \"INSTALL_LIBXF86CONFIG\" was never defined.
40022 Usually this means the macro was only invoked conditionally." >&2;}
40023    { (exit 1); exit 1; }; }
40025 if test -z "${CONFIG_UDEV_TRUE}" && test -z "${CONFIG_UDEV_FALSE}"; then
40026   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_UDEV\" was never defined.
40027 Usually this means the macro was only invoked conditionally." >&5
40028 echo "$as_me: error: conditional \"CONFIG_UDEV\" was never defined.
40029 Usually this means the macro was only invoked conditionally." >&2;}
40030    { (exit 1); exit 1; }; }
40032 if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then
40033   { { echo "$as_me:$LINENO: error: conditional \"HAVE_DBUS\" was never defined.
40034 Usually this means the macro was only invoked conditionally." >&5
40035 echo "$as_me: error: conditional \"HAVE_DBUS\" was never defined.
40036 Usually this means the macro was only invoked conditionally." >&2;}
40037    { (exit 1); exit 1; }; }
40039 if test -z "${CONFIG_DBUS_API_TRUE}" && test -z "${CONFIG_DBUS_API_FALSE}"; then
40040   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_DBUS_API\" was never defined.
40041 Usually this means the macro was only invoked conditionally." >&5
40042 echo "$as_me: error: conditional \"CONFIG_DBUS_API\" was never defined.
40043 Usually this means the macro was only invoked conditionally." >&2;}
40044    { (exit 1); exit 1; }; }
40046 if test -z "${CONFIG_HAL_TRUE}" && test -z "${CONFIG_HAL_FALSE}"; then
40047   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_HAL\" was never defined.
40048 Usually this means the macro was only invoked conditionally." >&5
40049 echo "$as_me: error: conditional \"CONFIG_HAL\" was never defined.
40050 Usually this means the macro was only invoked conditionally." >&2;}
40051    { (exit 1); exit 1; }; }
40053 if test -z "${CONFIG_NEED_DBUS_TRUE}" && test -z "${CONFIG_NEED_DBUS_FALSE}"; then
40054   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NEED_DBUS\" was never defined.
40055 Usually this means the macro was only invoked conditionally." >&5
40056 echo "$as_me: error: conditional \"CONFIG_NEED_DBUS\" was never defined.
40057 Usually this means the macro was only invoked conditionally." >&2;}
40058    { (exit 1); exit 1; }; }
40060 if test -z "${XV_TRUE}" && test -z "${XV_FALSE}"; then
40061   { { echo "$as_me:$LINENO: error: conditional \"XV\" was never defined.
40062 Usually this means the macro was only invoked conditionally." >&5
40063 echo "$as_me: error: conditional \"XV\" was never defined.
40064 Usually this means the macro was only invoked conditionally." >&2;}
40065    { (exit 1); exit 1; }; }
40067 if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
40068   { { echo "$as_me:$LINENO: error: conditional \"XVMC\" was never defined.
40069 Usually this means the macro was only invoked conditionally." >&5
40070 echo "$as_me: error: conditional \"XVMC\" was never defined.
40071 Usually this means the macro was only invoked conditionally." >&2;}
40072    { (exit 1); exit 1; }; }
40074 if test -z "${XREGISTRY_TRUE}" && test -z "${XREGISTRY_FALSE}"; then
40075   { { echo "$as_me:$LINENO: error: conditional \"XREGISTRY\" was never defined.
40076 Usually this means the macro was only invoked conditionally." >&5
40077 echo "$as_me: error: conditional \"XREGISTRY\" was never defined.
40078 Usually this means the macro was only invoked conditionally." >&2;}
40079    { (exit 1); exit 1; }; }
40081 if test -z "${COMPOSITE_TRUE}" && test -z "${COMPOSITE_FALSE}"; then
40082   { { echo "$as_me:$LINENO: error: conditional \"COMPOSITE\" was never defined.
40083 Usually this means the macro was only invoked conditionally." >&5
40084 echo "$as_me: error: conditional \"COMPOSITE\" was never defined.
40085 Usually this means the macro was only invoked conditionally." >&2;}
40086    { (exit 1); exit 1; }; }
40088 if test -z "${MITSHM_TRUE}" && test -z "${MITSHM_FALSE}"; then
40089   { { echo "$as_me:$LINENO: error: conditional \"MITSHM\" was never defined.
40090 Usually this means the macro was only invoked conditionally." >&5
40091 echo "$as_me: error: conditional \"MITSHM\" was never defined.
40092 Usually this means the macro was only invoked conditionally." >&2;}
40093    { (exit 1); exit 1; }; }
40095 if test -z "${RECORD_TRUE}" && test -z "${RECORD_FALSE}"; then
40096   { { echo "$as_me:$LINENO: error: conditional \"RECORD\" was never defined.
40097 Usually this means the macro was only invoked conditionally." >&5
40098 echo "$as_me: error: conditional \"RECORD\" was never defined.
40099 Usually this means the macro was only invoked conditionally." >&2;}
40100    { (exit 1); exit 1; }; }
40102 if test -z "${SCREENSAVER_TRUE}" && test -z "${SCREENSAVER_FALSE}"; then
40103   { { echo "$as_me:$LINENO: error: conditional \"SCREENSAVER\" was never defined.
40104 Usually this means the macro was only invoked conditionally." >&5
40105 echo "$as_me: error: conditional \"SCREENSAVER\" was never defined.
40106 Usually this means the macro was only invoked conditionally." >&2;}
40107    { (exit 1); exit 1; }; }
40109 if test -z "${RES_TRUE}" && test -z "${RES_FALSE}"; then
40110   { { echo "$as_me:$LINENO: error: conditional \"RES\" was never defined.
40111 Usually this means the macro was only invoked conditionally." >&5
40112 echo "$as_me: error: conditional \"RES\" was never defined.
40113 Usually this means the macro was only invoked conditionally." >&2;}
40114    { (exit 1); exit 1; }; }
40116 if test -z "${CLIENTIDS_TRUE}" && test -z "${CLIENTIDS_FALSE}"; then
40117   { { echo "$as_me:$LINENO: error: conditional \"CLIENTIDS\" was never defined.
40118 Usually this means the macro was only invoked conditionally." >&5
40119 echo "$as_me: error: conditional \"CLIENTIDS\" was never defined.
40120 Usually this means the macro was only invoked conditionally." >&2;}
40121    { (exit 1); exit 1; }; }
40123 if test -z "${GLX_TRUE}" && test -z "${GLX_FALSE}"; then
40124   { { echo "$as_me:$LINENO: error: conditional \"GLX\" was never defined.
40125 Usually this means the macro was only invoked conditionally." >&5
40126 echo "$as_me: error: conditional \"GLX\" was never defined.
40127 Usually this means the macro was only invoked conditionally." >&2;}
40128    { (exit 1); exit 1; }; }
40130 if test -z "${AIGLX_DRI_LOADER_TRUE}" && test -z "${AIGLX_DRI_LOADER_FALSE}"; then
40131   { { echo "$as_me:$LINENO: error: conditional \"AIGLX_DRI_LOADER\" was never defined.
40132 Usually this means the macro was only invoked conditionally." >&5
40133 echo "$as_me: error: conditional \"AIGLX_DRI_LOADER\" was never defined.
40134 Usually this means the macro was only invoked conditionally." >&2;}
40135    { (exit 1); exit 1; }; }
40137 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
40138   { { echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined.
40139 Usually this means the macro was only invoked conditionally." >&5
40140 echo "$as_me: error: conditional \"DRI\" was never defined.
40141 Usually this means the macro was only invoked conditionally." >&2;}
40142    { (exit 1); exit 1; }; }
40144 if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then
40145   { { echo "$as_me:$LINENO: error: conditional \"DRI2\" was never defined.
40146 Usually this means the macro was only invoked conditionally." >&5
40147 echo "$as_me: error: conditional \"DRI2\" was never defined.
40148 Usually this means the macro was only invoked conditionally." >&2;}
40149    { (exit 1); exit 1; }; }
40151 if test -z "${DRI2_AIGLX_TRUE}" && test -z "${DRI2_AIGLX_FALSE}"; then
40152   { { echo "$as_me:$LINENO: error: conditional \"DRI2_AIGLX\" was never defined.
40153 Usually this means the macro was only invoked conditionally." >&5
40154 echo "$as_me: error: conditional \"DRI2_AIGLX\" was never defined.
40155 Usually this means the macro was only invoked conditionally." >&2;}
40156    { (exit 1); exit 1; }; }
40158 if test -z "${XINERAMA_TRUE}" && test -z "${XINERAMA_FALSE}"; then
40159   { { echo "$as_me:$LINENO: error: conditional \"XINERAMA\" was never defined.
40160 Usually this means the macro was only invoked conditionally." >&5
40161 echo "$as_me: error: conditional \"XINERAMA\" was never defined.
40162 Usually this means the macro was only invoked conditionally." >&2;}
40163    { (exit 1); exit 1; }; }
40165 if test -z "${XACE_TRUE}" && test -z "${XACE_FALSE}"; then
40166   { { echo "$as_me:$LINENO: error: conditional \"XACE\" was never defined.
40167 Usually this means the macro was only invoked conditionally." >&5
40168 echo "$as_me: error: conditional \"XACE\" was never defined.
40169 Usually this means the macro was only invoked conditionally." >&2;}
40170    { (exit 1); exit 1; }; }
40172 if test -z "${XSELINUX_TRUE}" && test -z "${XSELINUX_FALSE}"; then
40173   { { echo "$as_me:$LINENO: error: conditional \"XSELINUX\" was never defined.
40174 Usually this means the macro was only invoked conditionally." >&5
40175 echo "$as_me: error: conditional \"XSELINUX\" was never defined.
40176 Usually this means the macro was only invoked conditionally." >&2;}
40177    { (exit 1); exit 1; }; }
40179 if test -z "${XCSECURITY_TRUE}" && test -z "${XCSECURITY_FALSE}"; then
40180   { { echo "$as_me:$LINENO: error: conditional \"XCSECURITY\" was never defined.
40181 Usually this means the macro was only invoked conditionally." >&5
40182 echo "$as_me: error: conditional \"XCSECURITY\" was never defined.
40183 Usually this means the macro was only invoked conditionally." >&2;}
40184    { (exit 1); exit 1; }; }
40186 if test -z "${DBE_TRUE}" && test -z "${DBE_FALSE}"; then
40187   { { echo "$as_me:$LINENO: error: conditional \"DBE\" was never defined.
40188 Usually this means the macro was only invoked conditionally." >&5
40189 echo "$as_me: error: conditional \"DBE\" was never defined.
40190 Usually this means the macro was only invoked conditionally." >&2;}
40191    { (exit 1); exit 1; }; }
40193 if test -z "${XF86BIGFONT_TRUE}" && test -z "${XF86BIGFONT_FALSE}"; then
40194   { { echo "$as_me:$LINENO: error: conditional \"XF86BIGFONT\" was never defined.
40195 Usually this means the macro was only invoked conditionally." >&5
40196 echo "$as_me: error: conditional \"XF86BIGFONT\" was never defined.
40197 Usually this means the macro was only invoked conditionally." >&2;}
40198    { (exit 1); exit 1; }; }
40200 if test -z "${DPMSExtension_TRUE}" && test -z "${DPMSExtension_FALSE}"; then
40201   { { echo "$as_me:$LINENO: error: conditional \"DPMSExtension\" was never defined.
40202 Usually this means the macro was only invoked conditionally." >&5
40203 echo "$as_me: error: conditional \"DPMSExtension\" was never defined.
40204 Usually this means the macro was only invoked conditionally." >&2;}
40205    { (exit 1); exit 1; }; }
40207 if test -z "${XF86UTILS_TRUE}" && test -z "${XF86UTILS_FALSE}"; then
40208   { { echo "$as_me:$LINENO: error: conditional \"XF86UTILS\" was never defined.
40209 Usually this means the macro was only invoked conditionally." >&5
40210 echo "$as_me: error: conditional \"XF86UTILS\" was never defined.
40211 Usually this means the macro was only invoked conditionally." >&2;}
40212    { (exit 1); exit 1; }; }
40214 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
40215   { { echo "$as_me:$LINENO: error: conditional \"XAA\" was never defined.
40216 Usually this means the macro was only invoked conditionally." >&5
40217 echo "$as_me: error: conditional \"XAA\" was never defined.
40218 Usually this means the macro was only invoked conditionally." >&2;}
40219    { (exit 1); exit 1; }; }
40221 if test -z "${VGAHW_TRUE}" && test -z "${VGAHW_FALSE}"; then
40222   { { echo "$as_me:$LINENO: error: conditional \"VGAHW\" was never defined.
40223 Usually this means the macro was only invoked conditionally." >&5
40224 echo "$as_me: error: conditional \"VGAHW\" was never defined.
40225 Usually this means the macro was only invoked conditionally." >&2;}
40226    { (exit 1); exit 1; }; }
40228 if test -z "${VBE_TRUE}" && test -z "${VBE_FALSE}"; then
40229   { { echo "$as_me:$LINENO: error: conditional \"VBE\" was never defined.
40230 Usually this means the macro was only invoked conditionally." >&5
40231 echo "$as_me: error: conditional \"VBE\" was never defined.
40232 Usually this means the macro was only invoked conditionally." >&2;}
40233    { (exit 1); exit 1; }; }
40235 if test -z "${INT10MODULE_TRUE}" && test -z "${INT10MODULE_FALSE}"; then
40236   { { echo "$as_me:$LINENO: error: conditional \"INT10MODULE\" was never defined.
40237 Usually this means the macro was only invoked conditionally." >&5
40238 echo "$as_me: error: conditional \"INT10MODULE\" was never defined.
40239 Usually this means the macro was only invoked conditionally." >&2;}
40240    { (exit 1); exit 1; }; }
40242 if test -z "${XDMCP_TRUE}" && test -z "${XDMCP_FALSE}"; then
40243   { { echo "$as_me:$LINENO: error: conditional \"XDMCP\" was never defined.
40244 Usually this means the macro was only invoked conditionally." >&5
40245 echo "$as_me: error: conditional \"XDMCP\" was never defined.
40246 Usually this means the macro was only invoked conditionally." >&2;}
40247    { (exit 1); exit 1; }; }
40249 if test -z "${XDMAUTH_TRUE}" && test -z "${XDMAUTH_FALSE}"; then
40250   { { echo "$as_me:$LINENO: error: conditional \"XDMAUTH\" was never defined.
40251 Usually this means the macro was only invoked conditionally." >&5
40252 echo "$as_me: error: conditional \"XDMAUTH\" was never defined.
40253 Usually this means the macro was only invoked conditionally." >&2;}
40254    { (exit 1); exit 1; }; }
40256 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
40257   { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
40258 Usually this means the macro was only invoked conditionally." >&5
40259 echo "$as_me: error: conditional \"DEBUG\" was never defined.
40260 Usually this means the macro was only invoked conditionally." >&2;}
40261    { (exit 1); exit 1; }; }
40263 if test -z "${XVFB_TRUE}" && test -z "${XVFB_FALSE}"; then
40264   { { echo "$as_me:$LINENO: error: conditional \"XVFB\" was never defined.
40265 Usually this means the macro was only invoked conditionally." >&5
40266 echo "$as_me: error: conditional \"XVFB\" was never defined.
40267 Usually this means the macro was only invoked conditionally." >&2;}
40268    { (exit 1); exit 1; }; }
40270 if test -z "${XNEST_TRUE}" && test -z "${XNEST_FALSE}"; then
40271   { { echo "$as_me:$LINENO: error: conditional \"XNEST\" was never defined.
40272 Usually this means the macro was only invoked conditionally." >&5
40273 echo "$as_me: error: conditional \"XNEST\" was never defined.
40274 Usually this means the macro was only invoked conditionally." >&2;}
40275    { (exit 1); exit 1; }; }
40277 if test -z "${XORG_TRUE}" && test -z "${XORG_FALSE}"; then
40278   { { echo "$as_me:$LINENO: error: conditional \"XORG\" was never defined.
40279 Usually this means the macro was only invoked conditionally." >&5
40280 echo "$as_me: error: conditional \"XORG\" was never defined.
40281 Usually this means the macro was only invoked conditionally." >&2;}
40282    { (exit 1); exit 1; }; }
40284 if test -z "${XORG_BUS_LINUXPCI_TRUE}" && test -z "${XORG_BUS_LINUXPCI_FALSE}"; then
40285   { { echo "$as_me:$LINENO: error: conditional \"XORG_BUS_LINUXPCI\" was never defined.
40286 Usually this means the macro was only invoked conditionally." >&5
40287 echo "$as_me: error: conditional \"XORG_BUS_LINUXPCI\" was never defined.
40288 Usually this means the macro was only invoked conditionally." >&2;}
40289    { (exit 1); exit 1; }; }
40291 if test -z "${XORG_BUS_BSDPCI_TRUE}" && test -z "${XORG_BUS_BSDPCI_FALSE}"; then
40292   { { echo "$as_me:$LINENO: error: conditional \"XORG_BUS_BSDPCI\" was never defined.
40293 Usually this means the macro was only invoked conditionally." >&5
40294 echo "$as_me: error: conditional \"XORG_BUS_BSDPCI\" was never defined.
40295 Usually this means the macro was only invoked conditionally." >&2;}
40296    { (exit 1); exit 1; }; }
40298 if test -z "${XORG_BUS_SPARC_TRUE}" && test -z "${XORG_BUS_SPARC_FALSE}"; then
40299   { { echo "$as_me:$LINENO: error: conditional \"XORG_BUS_SPARC\" was never defined.
40300 Usually this means the macro was only invoked conditionally." >&5
40301 echo "$as_me: error: conditional \"XORG_BUS_SPARC\" was never defined.
40302 Usually this means the macro was only invoked conditionally." >&2;}
40303    { (exit 1); exit 1; }; }
40305 if test -z "${LINUX_IA64_TRUE}" && test -z "${LINUX_IA64_FALSE}"; then
40306   { { echo "$as_me:$LINENO: error: conditional \"LINUX_IA64\" was never defined.
40307 Usually this means the macro was only invoked conditionally." >&5
40308 echo "$as_me: error: conditional \"LINUX_IA64\" was never defined.
40309 Usually this means the macro was only invoked conditionally." >&2;}
40310    { (exit 1); exit 1; }; }
40312 if test -z "${LINUX_ALPHA_TRUE}" && test -z "${LINUX_ALPHA_FALSE}"; then
40313   { { echo "$as_me:$LINENO: error: conditional \"LINUX_ALPHA\" was never defined.
40314 Usually this means the macro was only invoked conditionally." >&5
40315 echo "$as_me: error: conditional \"LINUX_ALPHA\" was never defined.
40316 Usually this means the macro was only invoked conditionally." >&2;}
40317    { (exit 1); exit 1; }; }
40319 if test -z "${LNXACPI_TRUE}" && test -z "${LNXACPI_FALSE}"; then
40320   { { echo "$as_me:$LINENO: error: conditional \"LNXACPI\" was never defined.
40321 Usually this means the macro was only invoked conditionally." >&5
40322 echo "$as_me: error: conditional \"LNXACPI\" was never defined.
40323 Usually this means the macro was only invoked conditionally." >&2;}
40324    { (exit 1); exit 1; }; }
40326 if test -z "${SOLARIS_ASM_INLINE_TRUE}" && test -z "${SOLARIS_ASM_INLINE_FALSE}"; then
40327   { { echo "$as_me:$LINENO: error: conditional \"SOLARIS_ASM_INLINE\" was never defined.
40328 Usually this means the macro was only invoked conditionally." >&5
40329 echo "$as_me: error: conditional \"SOLARIS_ASM_INLINE\" was never defined.
40330 Usually this means the macro was only invoked conditionally." >&2;}
40331    { (exit 1); exit 1; }; }
40333 if test -z "${SOLARIS_VT_TRUE}" && test -z "${SOLARIS_VT_FALSE}"; then
40334   { { echo "$as_me:$LINENO: error: conditional \"SOLARIS_VT\" was never defined.
40335 Usually this means the macro was only invoked conditionally." >&5
40336 echo "$as_me: error: conditional \"SOLARIS_VT\" was never defined.
40337 Usually this means the macro was only invoked conditionally." >&2;}
40338    { (exit 1); exit 1; }; }
40340 if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then
40341   { { echo "$as_me:$LINENO: error: conditional \"DGA\" was never defined.
40342 Usually this means the macro was only invoked conditionally." >&5
40343 echo "$as_me: error: conditional \"DGA\" was never defined.
40344 Usually this means the macro was only invoked conditionally." >&2;}
40345    { (exit 1); exit 1; }; }
40347 if test -z "${XF86VIDMODE_TRUE}" && test -z "${XF86VIDMODE_FALSE}"; then
40348   { { echo "$as_me:$LINENO: error: conditional \"XF86VIDMODE\" was never defined.
40349 Usually this means the macro was only invoked conditionally." >&5
40350 echo "$as_me: error: conditional \"XF86VIDMODE\" was never defined.
40351 Usually this means the macro was only invoked conditionally." >&2;}
40352    { (exit 1); exit 1; }; }
40354 if test -z "${XWIN_TRUE}" && test -z "${XWIN_FALSE}"; then
40355   { { echo "$as_me:$LINENO: error: conditional \"XWIN\" was never defined.
40356 Usually this means the macro was only invoked conditionally." >&5
40357 echo "$as_me: error: conditional \"XWIN\" was never defined.
40358 Usually this means the macro was only invoked conditionally." >&2;}
40359    { (exit 1); exit 1; }; }
40361 if test -z "${XWIN_MULTIWINDOW_TRUE}" && test -z "${XWIN_MULTIWINDOW_FALSE}"; then
40362   { { echo "$as_me:$LINENO: error: conditional \"XWIN_MULTIWINDOW\" was never defined.
40363 Usually this means the macro was only invoked conditionally." >&5
40364 echo "$as_me: error: conditional \"XWIN_MULTIWINDOW\" was never defined.
40365 Usually this means the macro was only invoked conditionally." >&2;}
40366    { (exit 1); exit 1; }; }
40368 if test -z "${XWIN_MULTIWINDOWEXTWM_TRUE}" && test -z "${XWIN_MULTIWINDOWEXTWM_FALSE}"; then
40369   { { echo "$as_me:$LINENO: error: conditional \"XWIN_MULTIWINDOWEXTWM\" was never defined.
40370 Usually this means the macro was only invoked conditionally." >&5
40371 echo "$as_me: error: conditional \"XWIN_MULTIWINDOWEXTWM\" was never defined.
40372 Usually this means the macro was only invoked conditionally." >&2;}
40373    { (exit 1); exit 1; }; }
40375 if test -z "${XWIN_CLIPBOARD_TRUE}" && test -z "${XWIN_CLIPBOARD_FALSE}"; then
40376   { { echo "$as_me:$LINENO: error: conditional \"XWIN_CLIPBOARD\" was never defined.
40377 Usually this means the macro was only invoked conditionally." >&5
40378 echo "$as_me: error: conditional \"XWIN_CLIPBOARD\" was never defined.
40379 Usually this means the macro was only invoked conditionally." >&2;}
40380    { (exit 1); exit 1; }; }
40382 if test -z "${XWIN_GLX_WINDOWS_TRUE}" && test -z "${XWIN_GLX_WINDOWS_FALSE}"; then
40383   { { echo "$as_me:$LINENO: error: conditional \"XWIN_GLX_WINDOWS\" was never defined.
40384 Usually this means the macro was only invoked conditionally." >&5
40385 echo "$as_me: error: conditional \"XWIN_GLX_WINDOWS\" was never defined.
40386 Usually this means the macro was only invoked conditionally." >&2;}
40387    { (exit 1); exit 1; }; }
40389 if test -z "${XWIN_NATIVEGDI_TRUE}" && test -z "${XWIN_NATIVEGDI_FALSE}"; then
40390   { { echo "$as_me:$LINENO: error: conditional \"XWIN_NATIVEGDI\" was never defined.
40391 Usually this means the macro was only invoked conditionally." >&5
40392 echo "$as_me: error: conditional \"XWIN_NATIVEGDI\" was never defined.
40393 Usually this means the macro was only invoked conditionally." >&2;}
40394    { (exit 1); exit 1; }; }
40396 if test -z "${XWIN_PRIMARYFB_TRUE}" && test -z "${XWIN_PRIMARYFB_FALSE}"; then
40397   { { echo "$as_me:$LINENO: error: conditional \"XWIN_PRIMARYFB\" was never defined.
40398 Usually this means the macro was only invoked conditionally." >&5
40399 echo "$as_me: error: conditional \"XWIN_PRIMARYFB\" was never defined.
40400 Usually this means the macro was only invoked conditionally." >&2;}
40401    { (exit 1); exit 1; }; }
40403 if test -z "${XWIN_RANDR_TRUE}" && test -z "${XWIN_RANDR_FALSE}"; then
40404   { { echo "$as_me:$LINENO: error: conditional \"XWIN_RANDR\" was never defined.
40405 Usually this means the macro was only invoked conditionally." >&5
40406 echo "$as_me: error: conditional \"XWIN_RANDR\" was never defined.
40407 Usually this means the macro was only invoked conditionally." >&2;}
40408    { (exit 1); exit 1; }; }
40410 if test -z "${XWIN_XV_TRUE}" && test -z "${XWIN_XV_FALSE}"; then
40411   { { echo "$as_me:$LINENO: error: conditional \"XWIN_XV\" was never defined.
40412 Usually this means the macro was only invoked conditionally." >&5
40413 echo "$as_me: error: conditional \"XWIN_XV\" was never defined.
40414 Usually this means the macro was only invoked conditionally." >&2;}
40415    { (exit 1); exit 1; }; }
40417 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
40418   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
40419 Usually this means the macro was only invoked conditionally." >&5
40420 echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
40421 Usually this means the macro was only invoked conditionally." >&2;}
40422    { (exit 1); exit 1; }; }
40424 if test -z "${XQUARTZ_TRUE}" && test -z "${XQUARTZ_FALSE}"; then
40425   { { echo "$as_me:$LINENO: error: conditional \"XQUARTZ\" was never defined.
40426 Usually this means the macro was only invoked conditionally." >&5
40427 echo "$as_me: error: conditional \"XQUARTZ\" was never defined.
40428 Usually this means the macro was only invoked conditionally." >&2;}
40429    { (exit 1); exit 1; }; }
40431 if test -z "${XQUARTZ_SPARKLE_TRUE}" && test -z "${XQUARTZ_SPARKLE_FALSE}"; then
40432   { { echo "$as_me:$LINENO: error: conditional \"XQUARTZ_SPARKLE\" was never defined.
40433 Usually this means the macro was only invoked conditionally." >&5
40434 echo "$as_me: error: conditional \"XQUARTZ_SPARKLE\" was never defined.
40435 Usually this means the macro was only invoked conditionally." >&2;}
40436    { (exit 1); exit 1; }; }
40438 if test -z "${STANDALONE_XPBPROXY_TRUE}" && test -z "${STANDALONE_XPBPROXY_FALSE}"; then
40439   { { echo "$as_me:$LINENO: error: conditional \"STANDALONE_XPBPROXY\" was never defined.
40440 Usually this means the macro was only invoked conditionally." >&5
40441 echo "$as_me: error: conditional \"STANDALONE_XPBPROXY\" was never defined.
40442 Usually this means the macro was only invoked conditionally." >&2;}
40443    { (exit 1); exit 1; }; }
40445 if test -z "${DMX_TRUE}" && test -z "${DMX_FALSE}"; then
40446   { { echo "$as_me:$LINENO: error: conditional \"DMX\" was never defined.
40447 Usually this means the macro was only invoked conditionally." >&5
40448 echo "$as_me: error: conditional \"DMX\" was never defined.
40449 Usually this means the macro was only invoked conditionally." >&2;}
40450    { (exit 1); exit 1; }; }
40452 if test -z "${DMX_BUILD_LNX_TRUE}" && test -z "${DMX_BUILD_LNX_FALSE}"; then
40453   { { echo "$as_me:$LINENO: error: conditional \"DMX_BUILD_LNX\" was never defined.
40454 Usually this means the macro was only invoked conditionally." >&5
40455 echo "$as_me: error: conditional \"DMX_BUILD_LNX\" was never defined.
40456 Usually this means the macro was only invoked conditionally." >&2;}
40457    { (exit 1); exit 1; }; }
40459 if test -z "${DMX_BUILD_USB_TRUE}" && test -z "${DMX_BUILD_USB_FALSE}"; then
40460   { { echo "$as_me:$LINENO: error: conditional \"DMX_BUILD_USB\" was never defined.
40461 Usually this means the macro was only invoked conditionally." >&5
40462 echo "$as_me: error: conditional \"DMX_BUILD_USB\" was never defined.
40463 Usually this means the macro was only invoked conditionally." >&2;}
40464    { (exit 1); exit 1; }; }
40466 if test -z "${KDRIVE_TRUE}" && test -z "${KDRIVE_FALSE}"; then
40467   { { echo "$as_me:$LINENO: error: conditional \"KDRIVE\" was never defined.
40468 Usually this means the macro was only invoked conditionally." >&5
40469 echo "$as_me: error: conditional \"KDRIVE\" was never defined.
40470 Usually this means the macro was only invoked conditionally." >&2;}
40471    { (exit 1); exit 1; }; }
40473 if test -z "${KDRIVELINUX_TRUE}" && test -z "${KDRIVELINUX_FALSE}"; then
40474   { { echo "$as_me:$LINENO: error: conditional \"KDRIVELINUX\" was never defined.
40475 Usually this means the macro was only invoked conditionally." >&5
40476 echo "$as_me: error: conditional \"KDRIVELINUX\" was never defined.
40477 Usually this means the macro was only invoked conditionally." >&2;}
40478    { (exit 1); exit 1; }; }
40480 if test -z "${KDRIVE_EVDEV_TRUE}" && test -z "${KDRIVE_EVDEV_FALSE}"; then
40481   { { echo "$as_me:$LINENO: error: conditional \"KDRIVE_EVDEV\" was never defined.
40482 Usually this means the macro was only invoked conditionally." >&5
40483 echo "$as_me: error: conditional \"KDRIVE_EVDEV\" was never defined.
40484 Usually this means the macro was only invoked conditionally." >&2;}
40485    { (exit 1); exit 1; }; }
40487 if test -z "${KDRIVE_KBD_TRUE}" && test -z "${KDRIVE_KBD_FALSE}"; then
40488   { { echo "$as_me:$LINENO: error: conditional \"KDRIVE_KBD\" was never defined.
40489 Usually this means the macro was only invoked conditionally." >&5
40490 echo "$as_me: error: conditional \"KDRIVE_KBD\" was never defined.
40491 Usually this means the macro was only invoked conditionally." >&2;}
40492    { (exit 1); exit 1; }; }
40494 if test -z "${KDRIVE_MOUSE_TRUE}" && test -z "${KDRIVE_MOUSE_FALSE}"; then
40495   { { echo "$as_me:$LINENO: error: conditional \"KDRIVE_MOUSE\" was never defined.
40496 Usually this means the macro was only invoked conditionally." >&5
40497 echo "$as_me: error: conditional \"KDRIVE_MOUSE\" was never defined.
40498 Usually this means the macro was only invoked conditionally." >&2;}
40499    { (exit 1); exit 1; }; }
40501 if test -z "${TSLIB_TRUE}" && test -z "${TSLIB_FALSE}"; then
40502   { { echo "$as_me:$LINENO: error: conditional \"TSLIB\" was never defined.
40503 Usually this means the macro was only invoked conditionally." >&5
40504 echo "$as_me: error: conditional \"TSLIB\" was never defined.
40505 Usually this means the macro was only invoked conditionally." >&2;}
40506    { (exit 1); exit 1; }; }
40508 if test -z "${KDRIVEFBDEV_TRUE}" && test -z "${KDRIVEFBDEV_FALSE}"; then
40509   { { echo "$as_me:$LINENO: error: conditional \"KDRIVEFBDEV\" was never defined.
40510 Usually this means the macro was only invoked conditionally." >&5
40511 echo "$as_me: error: conditional \"KDRIVEFBDEV\" was never defined.
40512 Usually this means the macro was only invoked conditionally." >&2;}
40513    { (exit 1); exit 1; }; }
40515 if test -z "${XEPHYR_TRUE}" && test -z "${XEPHYR_FALSE}"; then
40516   { { echo "$as_me:$LINENO: error: conditional \"XEPHYR\" was never defined.
40517 Usually this means the macro was only invoked conditionally." >&5
40518 echo "$as_me: error: conditional \"XEPHYR\" was never defined.
40519 Usually this means the macro was only invoked conditionally." >&2;}
40520    { (exit 1); exit 1; }; }
40522 if test -z "${BUILD_KDRIVEFBDEVLIB_TRUE}" && test -z "${BUILD_KDRIVEFBDEVLIB_FALSE}"; then
40523   { { echo "$as_me:$LINENO: error: conditional \"BUILD_KDRIVEFBDEVLIB\" was never defined.
40524 Usually this means the macro was only invoked conditionally." >&5
40525 echo "$as_me: error: conditional \"BUILD_KDRIVEFBDEVLIB\" was never defined.
40526 Usually this means the macro was only invoked conditionally." >&2;}
40527    { (exit 1); exit 1; }; }
40529 if test -z "${XFAKESERVER_TRUE}" && test -z "${XFAKESERVER_FALSE}"; then
40530   { { echo "$as_me:$LINENO: error: conditional \"XFAKESERVER\" was never defined.
40531 Usually this means the macro was only invoked conditionally." >&5
40532 echo "$as_me: error: conditional \"XFAKESERVER\" was never defined.
40533 Usually this means the macro was only invoked conditionally." >&2;}
40534    { (exit 1); exit 1; }; }
40537 : ${CONFIG_STATUS=./config.status}
40538 ac_clean_files_save=$ac_clean_files
40539 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40540 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40541 echo "$as_me: creating $CONFIG_STATUS" >&6;}
40542 cat >$CONFIG_STATUS <<_ACEOF
40543 #! $SHELL
40544 # Generated by $as_me.
40545 # Run this file to recreate the current configuration.
40546 # Compiler output produced by configure, useful for debugging
40547 # configure, is in config.log if it exists.
40549 debug=false
40550 ac_cs_recheck=false
40551 ac_cs_silent=false
40552 SHELL=\${CONFIG_SHELL-$SHELL}
40553 _ACEOF
40555 cat >>$CONFIG_STATUS <<\_ACEOF
40556 ## --------------------- ##
40557 ## M4sh Initialization.  ##
40558 ## --------------------- ##
40560 # Be more Bourne compatible
40561 DUALCASE=1; export DUALCASE # for MKS sh
40562 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40563   emulate sh
40564   NULLCMD=:
40565   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40566   # is contrary to our usage.  Disable this feature.
40567   alias -g '${1+"$@"}'='"$@"'
40568   setopt NO_GLOB_SUBST
40569 else
40570   case `(set -o) 2>/dev/null` in
40571   *posix*) set -o posix ;;
40572 esac
40579 # PATH needs CR
40580 # Avoid depending upon Character Ranges.
40581 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40582 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40583 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40584 as_cr_digits='0123456789'
40585 as_cr_alnum=$as_cr_Letters$as_cr_digits
40587 # The user is always right.
40588 if test "${PATH_SEPARATOR+set}" != set; then
40589   echo "#! /bin/sh" >conf$$.sh
40590   echo  "exit 0"   >>conf$$.sh
40591   chmod +x conf$$.sh
40592   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40593     PATH_SEPARATOR=';'
40594   else
40595     PATH_SEPARATOR=:
40596   fi
40597   rm -f conf$$.sh
40600 # Support unset when possible.
40601 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
40602   as_unset=unset
40603 else
40604   as_unset=false
40608 # IFS
40609 # We need space, tab and new line, in precisely that order.  Quoting is
40610 # there to prevent editors from complaining about space-tab.
40611 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
40612 # splitting by setting IFS to empty value.)
40613 as_nl='
40615 IFS=" ""        $as_nl"
40617 # Find who we are.  Look in the path if we contain no directory separator.
40618 case $0 in
40619   *[\\/]* ) as_myself=$0 ;;
40620   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40621 for as_dir in $PATH
40623   IFS=$as_save_IFS
40624   test -z "$as_dir" && as_dir=.
40625   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
40626 done
40627 IFS=$as_save_IFS
40629      ;;
40630 esac
40631 # We did not find ourselves, most probably we were run as `sh COMMAND'
40632 # in which case we are not to be found in the path.
40633 if test "x$as_myself" = x; then
40634   as_myself=$0
40636 if test ! -f "$as_myself"; then
40637   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
40638   { (exit 1); exit 1; }
40641 # Work around bugs in pre-3.0 UWIN ksh.
40642 for as_var in ENV MAIL MAILPATH
40643 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
40644 done
40645 PS1='$ '
40646 PS2='> '
40647 PS4='+ '
40649 # NLS nuisances.
40650 for as_var in \
40651   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40652   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40653   LC_TELEPHONE LC_TIME
40655   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
40656     eval $as_var=C; export $as_var
40657   else
40658     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
40659   fi
40660 done
40662 # Required to use basename.
40663 if expr a : '\(a\)' >/dev/null 2>&1 &&
40664    test "X`expr 00001 : '.*\(...\)'`" = X001; then
40665   as_expr=expr
40666 else
40667   as_expr=false
40670 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
40671   as_basename=basename
40672 else
40673   as_basename=false
40677 # Name of the executable.
40678 as_me=`$as_basename -- "$0" ||
40679 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40680          X"$0" : 'X\(//\)$' \| \
40681          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
40682 echo X/"$0" |
40683     sed '/^.*\/\([^/][^/]*\)\/*$/{
40684             s//\1/
40685             q
40686           }
40687           /^X\/\(\/\/\)$/{
40688             s//\1/
40689             q
40690           }
40691           /^X\/\(\/\).*/{
40692             s//\1/
40693             q
40694           }
40695           s/.*/./; q'`
40697 # CDPATH.
40698 $as_unset CDPATH
40702   as_lineno_1=$LINENO
40703   as_lineno_2=$LINENO
40704   test "x$as_lineno_1" != "x$as_lineno_2" &&
40705   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
40707   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
40708   # uniformly replaced by the line number.  The first 'sed' inserts a
40709   # line-number line after each line using $LINENO; the second 'sed'
40710   # does the real work.  The second script uses 'N' to pair each
40711   # line-number line with the line containing $LINENO, and appends
40712   # trailing '-' during substitution so that $LINENO is not a special
40713   # case at line end.
40714   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
40715   # scripts with optimization help from Paolo Bonzini.  Blame Lee
40716   # E. McMahon (1931-1989) for sed's syntax.  :-)
40717   sed -n '
40718     p
40719     /[$]LINENO/=
40720   ' <$as_myself |
40721     sed '
40722       s/[$]LINENO.*/&-/
40723       t lineno
40724       b
40725       :lineno
40726       N
40727       :loop
40728       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
40729       t loop
40730       s/-\n.*//
40731     ' >$as_me.lineno &&
40732   chmod +x "$as_me.lineno" ||
40733     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
40734    { (exit 1); exit 1; }; }
40736   # Don't try to exec as it changes $[0], causing all sort of problems
40737   # (the dirname of $[0] is not the place where we might find the
40738   # original and so on.  Autoconf is especially sensitive to this).
40739   . "./$as_me.lineno"
40740   # Exit status is that of the last command.
40741   exit
40745 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
40746   as_dirname=dirname
40747 else
40748   as_dirname=false
40751 ECHO_C= ECHO_N= ECHO_T=
40752 case `echo -n x` in
40753 -n*)
40754   case `echo 'x\c'` in
40755   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
40756   *)   ECHO_C='\c';;
40757   esac;;
40759   ECHO_N='-n';;
40760 esac
40762 if expr a : '\(a\)' >/dev/null 2>&1 &&
40763    test "X`expr 00001 : '.*\(...\)'`" = X001; then
40764   as_expr=expr
40765 else
40766   as_expr=false
40769 rm -f conf$$ conf$$.exe conf$$.file
40770 if test -d conf$$.dir; then
40771   rm -f conf$$.dir/conf$$.file
40772 else
40773   rm -f conf$$.dir
40774   mkdir conf$$.dir
40776 echo >conf$$.file
40777 if ln -s conf$$.file conf$$ 2>/dev/null; then
40778   as_ln_s='ln -s'
40779   # ... but there are two gotchas:
40780   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
40781   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
40782   # In both cases, we have to default to `cp -p'.
40783   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
40784     as_ln_s='cp -p'
40785 elif ln conf$$.file conf$$ 2>/dev/null; then
40786   as_ln_s=ln
40787 else
40788   as_ln_s='cp -p'
40790 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
40791 rmdir conf$$.dir 2>/dev/null
40793 if mkdir -p . 2>/dev/null; then
40794   as_mkdir_p=:
40795 else
40796   test -d ./-p && rmdir ./-p
40797   as_mkdir_p=false
40800 if test -x / >/dev/null 2>&1; then
40801   as_test_x='test -x'
40802 else
40803   if ls -dL / >/dev/null 2>&1; then
40804     as_ls_L_option=L
40805   else
40806     as_ls_L_option=
40807   fi
40808   as_test_x='
40809     eval sh -c '\''
40810       if test -d "$1"; then
40811         test -d "$1/.";
40812       else
40813         case $1 in
40814         -*)set "./$1";;
40815         esac;
40816         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
40817         ???[sx]*):;;*)false;;esac;fi
40818     '\'' sh
40819   '
40821 as_executable_p=$as_test_x
40823 # Sed expression to map a string onto a valid CPP name.
40824 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
40826 # Sed expression to map a string onto a valid variable name.
40827 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
40830 exec 6>&1
40832 # Save the log message, to keep $[0] and so on meaningful, and to
40833 # report actual input values of CONFIG_FILES etc. instead of their
40834 # values after options handling.
40835 ac_log="
40836 This file was extended by xorg-server $as_me 1.11.4, which was
40837 generated by GNU Autoconf 2.61.  Invocation command line was
40839   CONFIG_FILES    = $CONFIG_FILES
40840   CONFIG_HEADERS  = $CONFIG_HEADERS
40841   CONFIG_LINKS    = $CONFIG_LINKS
40842   CONFIG_COMMANDS = $CONFIG_COMMANDS
40843   $ $0 $@
40845 on `(hostname || uname -n) 2>/dev/null | sed 1q`
40848 _ACEOF
40850 cat >>$CONFIG_STATUS <<_ACEOF
40851 # Files that config.status was made for.
40852 config_files="$ac_config_files"
40853 config_headers="$ac_config_headers"
40854 config_commands="$ac_config_commands"
40856 _ACEOF
40858 cat >>$CONFIG_STATUS <<\_ACEOF
40859 ac_cs_usage="\
40860 \`$as_me' instantiates files from templates according to the
40861 current configuration.
40863 Usage: $0 [OPTIONS] [FILE]...
40865   -h, --help       print this help, then exit
40866   -V, --version    print version number and configuration settings, then exit
40867   -q, --quiet      do not print progress messages
40868   -d, --debug      don't remove temporary files
40869       --recheck    update $as_me by reconfiguring in the same conditions
40870   --file=FILE[:TEMPLATE]
40871                    instantiate the configuration file FILE
40872   --header=FILE[:TEMPLATE]
40873                    instantiate the configuration header FILE
40875 Configuration files:
40876 $config_files
40878 Configuration headers:
40879 $config_headers
40881 Configuration commands:
40882 $config_commands
40884 Report bugs to <bug-autoconf@gnu.org>."
40886 _ACEOF
40887 cat >>$CONFIG_STATUS <<_ACEOF
40888 ac_cs_version="\\
40889 xorg-server config.status 1.11.4
40890 configured by $0, generated by GNU Autoconf 2.61,
40891   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
40893 Copyright (C) 2006 Free Software Foundation, Inc.
40894 This config.status script is free software; the Free Software Foundation
40895 gives unlimited permission to copy, distribute and modify it."
40897 ac_pwd='$ac_pwd'
40898 srcdir='$srcdir'
40899 INSTALL='$INSTALL'
40900 MKDIR_P='$MKDIR_P'
40901 _ACEOF
40903 cat >>$CONFIG_STATUS <<\_ACEOF
40904 # If no file are specified by the user, then we need to provide default
40905 # value.  By we need to know if files were specified by the user.
40906 ac_need_defaults=:
40907 while test $# != 0
40909   case $1 in
40910   --*=*)
40911     ac_option=`expr "X$1" : 'X\([^=]*\)='`
40912     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
40913     ac_shift=:
40914     ;;
40915   *)
40916     ac_option=$1
40917     ac_optarg=$2
40918     ac_shift=shift
40919     ;;
40920   esac
40922   case $ac_option in
40923   # Handling of the options.
40924   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40925     ac_cs_recheck=: ;;
40926   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
40927     echo "$ac_cs_version"; exit ;;
40928   --debug | --debu | --deb | --de | --d | -d )
40929     debug=: ;;
40930   --file | --fil | --fi | --f )
40931     $ac_shift
40932     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
40933     ac_need_defaults=false;;
40934   --header | --heade | --head | --hea )
40935     $ac_shift
40936     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
40937     ac_need_defaults=false;;
40938   --he | --h)
40939     # Conflict between --help and --header
40940     { echo "$as_me: error: ambiguous option: $1
40941 Try \`$0 --help' for more information." >&2
40942    { (exit 1); exit 1; }; };;
40943   --help | --hel | -h )
40944     echo "$ac_cs_usage"; exit ;;
40945   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40946   | -silent | --silent | --silen | --sile | --sil | --si | --s)
40947     ac_cs_silent=: ;;
40949   # This is an error.
40950   -*) { echo "$as_me: error: unrecognized option: $1
40951 Try \`$0 --help' for more information." >&2
40952    { (exit 1); exit 1; }; } ;;
40954   *) ac_config_targets="$ac_config_targets $1"
40955      ac_need_defaults=false ;;
40957   esac
40958   shift
40959 done
40961 ac_configure_extra_args=
40963 if $ac_cs_silent; then
40964   exec 6>/dev/null
40965   ac_configure_extra_args="$ac_configure_extra_args --silent"
40968 _ACEOF
40969 cat >>$CONFIG_STATUS <<_ACEOF
40970 if \$ac_cs_recheck; then
40971   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
40972   CONFIG_SHELL=$SHELL
40973   export CONFIG_SHELL
40974   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
40977 _ACEOF
40978 cat >>$CONFIG_STATUS <<\_ACEOF
40979 exec 5>>config.log
40981   echo
40982   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40983 ## Running $as_me. ##
40984 _ASBOX
40985   echo "$ac_log"
40986 } >&5
40988 _ACEOF
40989 cat >>$CONFIG_STATUS <<_ACEOF
40991 # INIT-COMMANDS
40993 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
40996 # The HP-UX ksh and POSIX shell print the target directory to stdout
40997 # if CDPATH is set.
40998 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41000 sed_quote_subst='$sed_quote_subst'
41001 double_quote_subst='$double_quote_subst'
41002 delay_variable_subst='$delay_variable_subst'
41003 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
41004 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
41005 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
41006 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
41007 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
41008 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
41009 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
41010 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
41011 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
41012 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
41013 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
41014 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
41015 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
41016 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
41017 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
41018 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
41019 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
41020 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
41021 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
41022 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
41023 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
41024 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
41025 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
41026 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
41027 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
41028 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
41029 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
41030 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
41031 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
41032 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
41033 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
41034 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
41035 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
41036 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
41037 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
41038 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
41039 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
41040 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
41041 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
41042 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41043 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41044 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
41045 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
41046 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
41047 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
41048 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
41049 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
41050 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
41051 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
41052 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
41053 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"`'
41054 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
41055 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
41056 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
41057 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
41058 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
41059 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
41060 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
41061 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
41062 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
41063 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
41064 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
41065 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
41066 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
41067 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
41068 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
41069 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41070 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
41071 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
41072 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
41073 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
41074 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
41075 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
41076 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41077 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
41078 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41079 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
41080 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41081 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
41082 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
41083 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
41084 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
41085 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
41086 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
41087 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
41088 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
41089 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
41090 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
41091 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
41092 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
41093 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
41094 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
41095 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
41096 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
41097 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
41098 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
41099 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
41100 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
41101 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
41102 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
41103 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
41104 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
41105 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
41106 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
41107 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
41108 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
41109 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
41110 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
41111 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
41112 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41113 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41114 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
41115 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
41116 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
41117 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
41118 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
41119 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
41120 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
41121 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
41122 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
41123 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
41124 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
41126 LTCC='$LTCC'
41127 LTCFLAGS='$LTCFLAGS'
41128 compiler='$compiler_DEFAULT'
41130 # A function that is used when there is no print builtin or printf.
41131 func_fallback_echo ()
41133   eval 'cat <<_LTECHO_EOF
41134 \$1
41135 _LTECHO_EOF'
41138 # Quote evaled strings.
41139 for var in AS \
41140 DLLTOOL \
41141 OBJDUMP \
41142 SHELL \
41143 ECHO \
41144 SED \
41145 GREP \
41146 EGREP \
41147 FGREP \
41148 LD \
41149 NM \
41150 LN_S \
41151 lt_SP2NL \
41152 lt_NL2SP \
41153 reload_flag \
41154 deplibs_check_method \
41155 file_magic_cmd \
41156 AR \
41157 AR_FLAGS \
41158 STRIP \
41159 RANLIB \
41160 CC \
41161 CFLAGS \
41162 compiler \
41163 lt_cv_sys_global_symbol_pipe \
41164 lt_cv_sys_global_symbol_to_cdecl \
41165 lt_cv_sys_global_symbol_to_c_name_address \
41166 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
41167 lt_prog_compiler_no_builtin_flag \
41168 lt_prog_compiler_wl \
41169 lt_prog_compiler_pic \
41170 lt_prog_compiler_static \
41171 lt_cv_prog_compiler_c_o \
41172 need_locks \
41173 DSYMUTIL \
41174 NMEDIT \
41175 LIPO \
41176 OTOOL \
41177 OTOOL64 \
41178 shrext_cmds \
41179 export_dynamic_flag_spec \
41180 whole_archive_flag_spec \
41181 compiler_needs_object \
41182 with_gnu_ld \
41183 allow_undefined_flag \
41184 no_undefined_flag \
41185 hardcode_libdir_flag_spec \
41186 hardcode_libdir_flag_spec_ld \
41187 hardcode_libdir_separator \
41188 fix_srcfile_path \
41189 exclude_expsyms \
41190 include_expsyms \
41191 file_list_spec \
41192 variables_saved_for_relink \
41193 libname_spec \
41194 library_names_spec \
41195 soname_spec \
41196 install_override_mode \
41197 finish_eval \
41198 old_striplib \
41199 striplib; do
41200     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
41201     *[\\\\\\\`\\"\\\$]*)
41202       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
41203       ;;
41204     *)
41205       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
41206       ;;
41207     esac
41208 done
41210 # Double-quote double-evaled strings.
41211 for var in reload_cmds \
41212 old_postinstall_cmds \
41213 old_postuninstall_cmds \
41214 old_archive_cmds \
41215 extract_expsyms_cmds \
41216 old_archive_from_new_cmds \
41217 old_archive_from_expsyms_cmds \
41218 archive_cmds \
41219 archive_expsym_cmds \
41220 module_cmds \
41221 module_expsym_cmds \
41222 export_symbols_cmds \
41223 prelink_cmds \
41224 postinstall_cmds \
41225 postuninstall_cmds \
41226 finish_cmds \
41227 sys_lib_search_path_spec \
41228 sys_lib_dlsearch_path_spec; do
41229     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
41230     *[\\\\\\\`\\"\\\$]*)
41231       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
41232       ;;
41233     *)
41234       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
41235       ;;
41236     esac
41237 done
41239 ac_aux_dir='$ac_aux_dir'
41240 xsi_shell='$xsi_shell'
41241 lt_shell_append='$lt_shell_append'
41243 # See if we are running on zsh, and set the options which allow our
41244 # commands through without removal of \ escapes INIT.
41245 if test -n "\${ZSH_VERSION+set}" ; then
41246    setopt NO_GLOB_SUBST
41250     PACKAGE='$PACKAGE'
41251     VERSION='$VERSION'
41252     TIMESTAMP='$TIMESTAMP'
41253     RM='$RM'
41254     ofile='$ofile'
41259 _ACEOF
41261 cat >>$CONFIG_STATUS <<\_ACEOF
41263 # Handling of arguments.
41264 for ac_config_target in $ac_config_targets
41266   case $ac_config_target in
41267     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41268     "include/do-not-use-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/do-not-use-config.h" ;;
41269     "include/xorg-server.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-server.h" ;;
41270     "include/dix-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/dix-config.h" ;;
41271     "include/xorg-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-config.h" ;;
41272     "include/xkb-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xkb-config.h" ;;
41273     "include/xwin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwin-config.h" ;;
41274     "include/kdrive-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/kdrive-config.h" ;;
41275     "include/version-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/version-config.h" ;;
41276     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
41277     "sdksyms") CONFIG_COMMANDS="$CONFIG_COMMANDS sdksyms" ;;
41278     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41279     "glx/Makefile") CONFIG_FILES="$CONFIG_FILES glx/Makefile" ;;
41280     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
41281     "composite/Makefile") CONFIG_FILES="$CONFIG_FILES composite/Makefile" ;;
41282     "damageext/Makefile") CONFIG_FILES="$CONFIG_FILES damageext/Makefile" ;;
41283     "dbe/Makefile") CONFIG_FILES="$CONFIG_FILES dbe/Makefile" ;;
41284     "dix/Makefile") CONFIG_FILES="$CONFIG_FILES dix/Makefile" ;;
41285     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
41286     "doc/dtrace/Makefile") CONFIG_FILES="$CONFIG_FILES doc/dtrace/Makefile" ;;
41287     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
41288     "fb/Makefile") CONFIG_FILES="$CONFIG_FILES fb/Makefile" ;;
41289     "record/Makefile") CONFIG_FILES="$CONFIG_FILES record/Makefile" ;;
41290     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
41291     "mi/Makefile") CONFIG_FILES="$CONFIG_FILES mi/Makefile" ;;
41292     "miext/Makefile") CONFIG_FILES="$CONFIG_FILES miext/Makefile" ;;
41293     "miext/sync/Makefile") CONFIG_FILES="$CONFIG_FILES miext/sync/Makefile" ;;
41294     "miext/damage/Makefile") CONFIG_FILES="$CONFIG_FILES miext/damage/Makefile" ;;
41295     "miext/shadow/Makefile") CONFIG_FILES="$CONFIG_FILES miext/shadow/Makefile" ;;
41296     "miext/cw/Makefile") CONFIG_FILES="$CONFIG_FILES miext/cw/Makefile" ;;
41297     "miext/rootless/Makefile") CONFIG_FILES="$CONFIG_FILES miext/rootless/Makefile" ;;
41298     "os/Makefile") CONFIG_FILES="$CONFIG_FILES os/Makefile" ;;
41299     "randr/Makefile") CONFIG_FILES="$CONFIG_FILES randr/Makefile" ;;
41300     "render/Makefile") CONFIG_FILES="$CONFIG_FILES render/Makefile" ;;
41301     "xkb/Makefile") CONFIG_FILES="$CONFIG_FILES xkb/Makefile" ;;
41302     "Xext/Makefile") CONFIG_FILES="$CONFIG_FILES Xext/Makefile" ;;
41303     "Xi/Makefile") CONFIG_FILES="$CONFIG_FILES Xi/Makefile" ;;
41304     "xfixes/Makefile") CONFIG_FILES="$CONFIG_FILES xfixes/Makefile" ;;
41305     "exa/Makefile") CONFIG_FILES="$CONFIG_FILES exa/Makefile" ;;
41306     "hw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/Makefile" ;;
41307     "hw/xfree86/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Makefile" ;;
41308     "hw/xfree86/common/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/Makefile" ;;
41309     "hw/xfree86/common/xf86Build.h") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/xf86Build.h" ;;
41310     "hw/xfree86/ddc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ddc/Makefile" ;;
41311     "hw/xfree86/dixmods/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/Makefile" ;;
41312     "hw/xfree86/dixmods/extmod/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/extmod/Makefile" ;;
41313     "hw/xfree86/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/Makefile" ;;
41314     "hw/xfree86/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri/Makefile" ;;
41315     "hw/xfree86/dri2/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/Makefile" ;;
41316     "hw/xfree86/exa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/Makefile" ;;
41317     "hw/xfree86/exa/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/man/Makefile" ;;
41318     "hw/xfree86/fbdevhw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/Makefile" ;;
41319     "hw/xfree86/fbdevhw/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/man/Makefile" ;;
41320     "hw/xfree86/i2c/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/i2c/Makefile" ;;
41321     "hw/xfree86/int10/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/int10/Makefile" ;;
41322     "hw/xfree86/loader/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/loader/Makefile" ;;
41323     "hw/xfree86/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/man/Makefile" ;;
41324     "hw/xfree86/modes/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/modes/Makefile" ;;
41325     "hw/xfree86/os-support/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/Makefile" ;;
41326     "hw/xfree86/os-support/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bsd/Makefile" ;;
41327     "hw/xfree86/os-support/bus/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bus/Makefile" ;;
41328     "hw/xfree86/os-support/hurd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/hurd/Makefile" ;;
41329     "hw/xfree86/os-support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/misc/Makefile" ;;
41330     "hw/xfree86/os-support/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/linux/Makefile" ;;
41331     "hw/xfree86/os-support/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/solaris/Makefile" ;;
41332     "hw/xfree86/parser/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/parser/Makefile" ;;
41333     "hw/xfree86/ramdac/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ramdac/Makefile" ;;
41334     "hw/xfree86/shadowfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/shadowfb/Makefile" ;;
41335     "hw/xfree86/vbe/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vbe/Makefile" ;;
41336     "hw/xfree86/vgahw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vgahw/Makefile" ;;
41337     "hw/xfree86/x86emu/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/x86emu/Makefile" ;;
41338     "hw/xfree86/xaa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xaa/Makefile" ;;
41339     "hw/xfree86/utils/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/Makefile" ;;
41340     "hw/xfree86/utils/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/man/Makefile" ;;
41341     "hw/xfree86/utils/cvt/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/cvt/Makefile" ;;
41342     "hw/xfree86/utils/gtf/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/gtf/Makefile" ;;
41343     "hw/dmx/config/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/config/Makefile" ;;
41344     "hw/dmx/config/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/config/man/Makefile" ;;
41345     "hw/dmx/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/doc/Makefile" ;;
41346     "hw/dmx/doxygen/doxygen.conf") CONFIG_FILES="$CONFIG_FILES hw/dmx/doxygen/doxygen.conf" ;;
41347     "hw/dmx/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/doxygen/Makefile" ;;
41348     "hw/dmx/examples/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/examples/Makefile" ;;
41349     "hw/dmx/input/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/input/Makefile" ;;
41350     "hw/dmx/glxProxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/glxProxy/Makefile" ;;
41351     "hw/dmx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/Makefile" ;;
41352     "hw/dmx/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/man/Makefile" ;;
41353     "hw/vfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/Makefile" ;;
41354     "hw/vfb/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/man/Makefile" ;;
41355     "hw/xnest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/Makefile" ;;
41356     "hw/xnest/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/man/Makefile" ;;
41357     "hw/xwin/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/Makefile" ;;
41358     "hw/xwin/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/glx/Makefile" ;;
41359     "hw/xwin/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/man/Makefile" ;;
41360     "hw/xquartz/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/Makefile" ;;
41361     "hw/xquartz/GL/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/GL/Makefile" ;;
41362     "hw/xquartz/bundle/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/bundle/Makefile" ;;
41363     "hw/xquartz/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/man/Makefile" ;;
41364     "hw/xquartz/mach-startup/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/mach-startup/Makefile" ;;
41365     "hw/xquartz/pbproxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/pbproxy/Makefile" ;;
41366     "hw/xquartz/xpr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/xpr/Makefile" ;;
41367     "hw/kdrive/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/Makefile" ;;
41368     "hw/kdrive/ephyr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/Makefile" ;;
41369     "hw/kdrive/ephyr/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/man/Makefile" ;;
41370     "hw/kdrive/fake/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/fake/Makefile" ;;
41371     "hw/kdrive/fbdev/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/fbdev/Makefile" ;;
41372     "hw/kdrive/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/linux/Makefile" ;;
41373     "hw/kdrive/src/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/src/Makefile" ;;
41374     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
41375     "test/xi2/Makefile") CONFIG_FILES="$CONFIG_FILES test/xi2/Makefile" ;;
41376     "xserver.ent") CONFIG_FILES="$CONFIG_FILES xserver.ent" ;;
41377     "xorg-server.pc") CONFIG_FILES="$CONFIG_FILES xorg-server.pc" ;;
41379   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41380 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41381    { (exit 1); exit 1; }; };;
41382   esac
41383 done
41386 # If the user did not use the arguments to specify the items to instantiate,
41387 # then the envvar interface is used.  Set only those that are not.
41388 # We use the long form for the default assignment because of an extremely
41389 # bizarre bug on SunOS 4.1.3.
41390 if $ac_need_defaults; then
41391   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41392   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41393   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41396 # Have a temporary directory for convenience.  Make it in the build tree
41397 # simply because there is no reason against having it here, and in addition,
41398 # creating and moving files from /tmp can sometimes cause problems.
41399 # Hook for its removal unless debugging.
41400 # Note that there is a small window in which the directory will not be cleaned:
41401 # after its creation but before its name has been assigned to `$tmp'.
41402 $debug ||
41404   tmp=
41405   trap 'exit_status=$?
41406   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
41407 ' 0
41408   trap '{ (exit 1); exit 1; }' 1 2 13 15
41410 # Create a (secure) tmp directory for tmp files.
41413   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
41414   test -n "$tmp" && test -d "$tmp"
41415 }  ||
41417   tmp=./conf$$-$RANDOM
41418   (umask 077 && mkdir "$tmp")
41419 } ||
41421    echo "$me: cannot create a temporary directory in ." >&2
41422    { (exit 1); exit 1; }
41426 # Set up the sed scripts for CONFIG_FILES section.
41429 # No need to generate the scripts if there are no CONFIG_FILES.
41430 # This happens for instance when ./config.status config.h
41431 if test -n "$CONFIG_FILES"; then
41433 _ACEOF
41437 ac_delim='%!_!# '
41438 for ac_last_try in false false false false false :; do
41439   cat >conf$$subs.sed <<_ACEOF
41440 SHELL!$SHELL$ac_delim
41441 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
41442 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
41443 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
41444 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
41445 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
41446 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
41447 exec_prefix!$exec_prefix$ac_delim
41448 prefix!$prefix$ac_delim
41449 program_transform_name!$program_transform_name$ac_delim
41450 bindir!$bindir$ac_delim
41451 sbindir!$sbindir$ac_delim
41452 libexecdir!$libexecdir$ac_delim
41453 datarootdir!$datarootdir$ac_delim
41454 datadir!$datadir$ac_delim
41455 sysconfdir!$sysconfdir$ac_delim
41456 sharedstatedir!$sharedstatedir$ac_delim
41457 localstatedir!$localstatedir$ac_delim
41458 includedir!$includedir$ac_delim
41459 oldincludedir!$oldincludedir$ac_delim
41460 docdir!$docdir$ac_delim
41461 infodir!$infodir$ac_delim
41462 htmldir!$htmldir$ac_delim
41463 dvidir!$dvidir$ac_delim
41464 pdfdir!$pdfdir$ac_delim
41465 psdir!$psdir$ac_delim
41466 libdir!$libdir$ac_delim
41467 localedir!$localedir$ac_delim
41468 mandir!$mandir$ac_delim
41469 DEFS!$DEFS$ac_delim
41470 ECHO_C!$ECHO_C$ac_delim
41471 ECHO_N!$ECHO_N$ac_delim
41472 ECHO_T!$ECHO_T$ac_delim
41473 LIBS!$LIBS$ac_delim
41474 build_alias!$build_alias$ac_delim
41475 host_alias!$host_alias$ac_delim
41476 target_alias!$target_alias$ac_delim
41477 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
41478 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
41479 INSTALL_DATA!$INSTALL_DATA$ac_delim
41480 am__isrc!$am__isrc$ac_delim
41481 CYGPATH_W!$CYGPATH_W$ac_delim
41482 PACKAGE!$PACKAGE$ac_delim
41483 VERSION!$VERSION$ac_delim
41484 ACLOCAL!$ACLOCAL$ac_delim
41485 AUTOCONF!$AUTOCONF$ac_delim
41486 AUTOMAKE!$AUTOMAKE$ac_delim
41487 AUTOHEADER!$AUTOHEADER$ac_delim
41488 MAKEINFO!$MAKEINFO$ac_delim
41489 install_sh!$install_sh$ac_delim
41490 STRIP!$STRIP$ac_delim
41491 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
41492 mkdir_p!$mkdir_p$ac_delim
41493 AWK!$AWK$ac_delim
41494 SET_MAKE!$SET_MAKE$ac_delim
41495 am__leading_dot!$am__leading_dot$ac_delim
41496 AMTAR!$AMTAR$ac_delim
41497 am__tar!$am__tar$ac_delim
41498 am__untar!$am__untar$ac_delim
41499 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
41500 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
41501 MAINT!$MAINT$ac_delim
41502 CC!$CC$ac_delim
41503 CFLAGS!$CFLAGS$ac_delim
41504 LDFLAGS!$LDFLAGS$ac_delim
41505 CPPFLAGS!$CPPFLAGS$ac_delim
41506 ac_ct_CC!$ac_ct_CC$ac_delim
41507 EXEEXT!$EXEEXT$ac_delim
41508 OBJEXT!$OBJEXT$ac_delim
41509 DEPDIR!$DEPDIR$ac_delim
41510 am__include!$am__include$ac_delim
41511 am__quote!$am__quote$ac_delim
41512 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
41513 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
41514 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
41515 CCDEPMODE!$CCDEPMODE$ac_delim
41516 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
41517 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
41518 CPP!$CPP$ac_delim
41519 GREP!$GREP$ac_delim
41520 EGREP!$EGREP$ac_delim
41521 BASE_CFLAGS!$BASE_CFLAGS$ac_delim
41522 CWARNFLAGS!$CWARNFLAGS$ac_delim
41523 STRICT_CFLAGS!$STRICT_CFLAGS$ac_delim
41524 CHANGELOG_CMD!$CHANGELOG_CMD$ac_delim
41525 PKG_CONFIG!$PKG_CONFIG$ac_delim
41526 PKG_CONFIG_PATH!$PKG_CONFIG_PATH$ac_delim
41527 PKG_CONFIG_LIBDIR!$PKG_CONFIG_LIBDIR$ac_delim
41528 INSTALL_CMD!$INSTALL_CMD$ac_delim
41529 build!$build$ac_delim
41530 build_cpu!$build_cpu$ac_delim
41531 build_vendor!$build_vendor$ac_delim
41532 build_os!$build_os$ac_delim
41533 host!$host$ac_delim
41534 host_cpu!$host_cpu$ac_delim
41535 host_vendor!$host_vendor$ac_delim
41536 host_os!$host_os$ac_delim
41537 _ACEOF
41539   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
41540     break
41541   elif $ac_last_try; then
41542     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
41543 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
41544    { (exit 1); exit 1; }; }
41545   else
41546     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
41547   fi
41548 done
41550 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
41551 if test -n "$ac_eof"; then
41552   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
41553   ac_eof=`expr $ac_eof + 1`
41556 cat >>$CONFIG_STATUS <<_ACEOF
41557 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
41558 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41559 _ACEOF
41560 sed '
41561 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
41562 s/^/s,@/; s/!/@,|#_!!_#|/
41564 t n
41565 s/'"$ac_delim"'$/,g/; t
41566 s/$/\\/; p
41567 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
41568 ' >>$CONFIG_STATUS <conf$$subs.sed
41569 rm -f conf$$subs.sed
41570 cat >>$CONFIG_STATUS <<_ACEOF
41571 CEOF$ac_eof
41572 _ACEOF
41575 ac_delim='%!_!# '
41576 for ac_last_try in false false false false false :; do
41577   cat >conf$$subs.sed <<_ACEOF
41578 SED!$SED$ac_delim
41579 APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
41580 LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
41581 FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
41582 MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
41583 DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
41584 ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
41585 APP_MAN_DIR!$APP_MAN_DIR$ac_delim
41586 LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
41587 FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
41588 MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
41589 DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
41590 ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
41591 XORG_MAN_PAGE!$XORG_MAN_PAGE$ac_delim
41592 MAN_SUBSTS!$MAN_SUBSTS$ac_delim
41593 AM_DEFAULT_VERBOSITY!$AM_DEFAULT_VERBOSITY$ac_delim
41594 DOXYGEN!$DOXYGEN$ac_delim
41595 HAVE_DOXYGEN_TRUE!$HAVE_DOXYGEN_TRUE$ac_delim
41596 HAVE_DOXYGEN_FALSE!$HAVE_DOXYGEN_FALSE$ac_delim
41597 XORG_SGML_PATH!$XORG_SGML_PATH$ac_delim
41598 STYLESHEET_SRCDIR!$STYLESHEET_SRCDIR$ac_delim
41599 XSL_STYLESHEET!$XSL_STYLESHEET$ac_delim
41600 HAVE_STYLESHEETS_TRUE!$HAVE_STYLESHEETS_TRUE$ac_delim
41601 HAVE_STYLESHEETS_FALSE!$HAVE_STYLESHEETS_FALSE$ac_delim
41602 ENABLE_DOCS_TRUE!$ENABLE_DOCS_TRUE$ac_delim
41603 ENABLE_DOCS_FALSE!$ENABLE_DOCS_FALSE$ac_delim
41604 ENABLE_DEVEL_DOCS_TRUE!$ENABLE_DEVEL_DOCS_TRUE$ac_delim
41605 ENABLE_DEVEL_DOCS_FALSE!$ENABLE_DEVEL_DOCS_FALSE$ac_delim
41606 XMLTO!$XMLTO$ac_delim
41607 HAVE_XMLTO_TEXT_TRUE!$HAVE_XMLTO_TEXT_TRUE$ac_delim
41608 HAVE_XMLTO_TEXT_FALSE!$HAVE_XMLTO_TEXT_FALSE$ac_delim
41609 HAVE_XMLTO_TRUE!$HAVE_XMLTO_TRUE$ac_delim
41610 HAVE_XMLTO_FALSE!$HAVE_XMLTO_FALSE$ac_delim
41611 FOP!$FOP$ac_delim
41612 HAVE_FOP_TRUE!$HAVE_FOP_TRUE$ac_delim
41613 HAVE_FOP_FALSE!$HAVE_FOP_FALSE$ac_delim
41614 XSLTPROC!$XSLTPROC$ac_delim
41615 HAVE_XSLTPROC_TRUE!$HAVE_XSLTPROC_TRUE$ac_delim
41616 HAVE_XSLTPROC_FALSE!$HAVE_XSLTPROC_FALSE$ac_delim
41617 XORG_MALLOC_DEBUG_ENV!$XORG_MALLOC_DEBUG_ENV$ac_delim
41618 ENABLE_UNIT_TESTS_TRUE!$ENABLE_UNIT_TESTS_TRUE$ac_delim
41619 ENABLE_UNIT_TESTS_FALSE!$ENABLE_UNIT_TESTS_FALSE$ac_delim
41620 HAVE_LD_WRAP_TRUE!$HAVE_LD_WRAP_TRUE$ac_delim
41621 HAVE_LD_WRAP_FALSE!$HAVE_LD_WRAP_FALSE$ac_delim
41622 CCAS!$CCAS$ac_delim
41623 CCASFLAGS!$CCASFLAGS$ac_delim
41624 CCASDEPMODE!$CCASDEPMODE$ac_delim
41625 am__fastdepCCAS_TRUE!$am__fastdepCCAS_TRUE$ac_delim
41626 am__fastdepCCAS_FALSE!$am__fastdepCCAS_FALSE$ac_delim
41627 LN_S!$LN_S$ac_delim
41628 AS!$AS$ac_delim
41629 DLLTOOL!$DLLTOOL$ac_delim
41630 OBJDUMP!$OBJDUMP$ac_delim
41631 LIBTOOL!$LIBTOOL$ac_delim
41632 FGREP!$FGREP$ac_delim
41633 LD!$LD$ac_delim
41634 DUMPBIN!$DUMPBIN$ac_delim
41635 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
41636 NM!$NM$ac_delim
41637 AR!$AR$ac_delim
41638 RANLIB!$RANLIB$ac_delim
41639 DSYMUTIL!$DSYMUTIL$ac_delim
41640 NMEDIT!$NMEDIT$ac_delim
41641 LIPO!$LIPO$ac_delim
41642 OTOOL!$OTOOL$ac_delim
41643 OTOOL64!$OTOOL64$ac_delim
41644 LEX!$LEX$ac_delim
41645 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
41646 LEXLIB!$LEXLIB$ac_delim
41647 YACC!$YACC$ac_delim
41648 YFLAGS!$YFLAGS$ac_delim
41649 RAWCPP!$RAWCPP$ac_delim
41650 RAWCPPFLAGS!$RAWCPPFLAGS$ac_delim
41651 DTRACE!$DTRACE$ac_delim
41652 XSERVER_DTRACE_TRUE!$XSERVER_DTRACE_TRUE$ac_delim
41653 XSERVER_DTRACE_FALSE!$XSERVER_DTRACE_FALSE$ac_delim
41654 SPECIAL_DTRACE_OBJECTS_TRUE!$SPECIAL_DTRACE_OBJECTS_TRUE$ac_delim
41655 SPECIAL_DTRACE_OBJECTS_FALSE!$SPECIAL_DTRACE_OBJECTS_FALSE$ac_delim
41656 DLOPEN_LIBS!$DLOPEN_LIBS$ac_delim
41657 ALLOCA!$ALLOCA$ac_delim
41658 NEED_STRLCAT_TRUE!$NEED_STRLCAT_TRUE$ac_delim
41659 NEED_STRLCAT_FALSE!$NEED_STRLCAT_FALSE$ac_delim
41660 NEED_VSNPRINTF_TRUE!$NEED_VSNPRINTF_TRUE$ac_delim
41661 NEED_VSNPRINTF_FALSE!$NEED_VSNPRINTF_FALSE$ac_delim
41662 AGP_TRUE!$AGP_TRUE$ac_delim
41663 AGP_FALSE!$AGP_FALSE$ac_delim
41664 LNXAPM_TRUE!$LNXAPM_TRUE$ac_delim
41665 LNXAPM_FALSE!$LNXAPM_FALSE$ac_delim
41666 FBDEVHW_TRUE!$FBDEVHW_TRUE$ac_delim
41667 FBDEVHW_FALSE!$FBDEVHW_FALSE$ac_delim
41668 FREEBSD_KLDLOAD_TRUE!$FREEBSD_KLDLOAD_TRUE$ac_delim
41669 FREEBSD_KLDLOAD_FALSE!$FREEBSD_KLDLOAD_FALSE$ac_delim
41670 BSD_APM_TRUE!$BSD_APM_TRUE$ac_delim
41671 BSD_APM_FALSE!$BSD_APM_FALSE$ac_delim
41672 BSD_KQUEUE_APM_TRUE!$BSD_KQUEUE_APM_TRUE$ac_delim
41673 BSD_KQUEUE_APM_FALSE!$BSD_KQUEUE_APM_FALSE$ac_delim
41674 GLX_ARCH_DEFINES!$GLX_ARCH_DEFINES$ac_delim
41675 _ACEOF
41677   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
41678     break
41679   elif $ac_last_try; then
41680     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
41681 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
41682    { (exit 1); exit 1; }; }
41683   else
41684     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
41685   fi
41686 done
41688 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
41689 if test -n "$ac_eof"; then
41690   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
41691   ac_eof=`expr $ac_eof + 1`
41694 cat >>$CONFIG_STATUS <<_ACEOF
41695 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
41696 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41697 _ACEOF
41698 sed '
41699 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
41700 s/^/s,@/; s/!/@,|#_!!_#|/
41702 t n
41703 s/'"$ac_delim"'$/,g/; t
41704 s/$/\\/; p
41705 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
41706 ' >>$CONFIG_STATUS <conf$$subs.sed
41707 rm -f conf$$subs.sed
41708 cat >>$CONFIG_STATUS <<_ACEOF
41709 CEOF$ac_eof
41710 _ACEOF
41713 ac_delim='%!_!# '
41714 for ac_last_try in false false false false false :; do
41715   cat >conf$$subs.sed <<_ACEOF
41716 ALPHA_VIDEO_TRUE!$ALPHA_VIDEO_TRUE$ac_delim
41717 ALPHA_VIDEO_FALSE!$ALPHA_VIDEO_FALSE$ac_delim
41718 ARM_VIDEO_TRUE!$ARM_VIDEO_TRUE$ac_delim
41719 ARM_VIDEO_FALSE!$ARM_VIDEO_FALSE$ac_delim
41720 I386_VIDEO_TRUE!$I386_VIDEO_TRUE$ac_delim
41721 I386_VIDEO_FALSE!$I386_VIDEO_FALSE$ac_delim
41722 PPC_VIDEO_TRUE!$PPC_VIDEO_TRUE$ac_delim
41723 PPC_VIDEO_FALSE!$PPC_VIDEO_FALSE$ac_delim
41724 SPARC64_VIDEO_TRUE!$SPARC64_VIDEO_TRUE$ac_delim
41725 SPARC64_VIDEO_FALSE!$SPARC64_VIDEO_FALSE$ac_delim
41726 FONTROOTDIR!$FONTROOTDIR$ac_delim
41727 FONTMISCDIR!$FONTMISCDIR$ac_delim
41728 FONTOTFDIR!$FONTOTFDIR$ac_delim
41729 FONTTTFDIR!$FONTTTFDIR$ac_delim
41730 FONTTYPE1DIR!$FONTTYPE1DIR$ac_delim
41731 FONT75DPIDIR!$FONT75DPIDIR$ac_delim
41732 FONT100DPIDIR!$FONT100DPIDIR$ac_delim
41733 APPLE_APPLICATIONS_DIR!$APPLE_APPLICATIONS_DIR$ac_delim
41734 APPLE_APPLICATION_NAME!$APPLE_APPLICATION_NAME$ac_delim
41735 BUNDLE_ID_PREFIX!$BUNDLE_ID_PREFIX$ac_delim
41736 XQUARTZ_SPARKLE!$XQUARTZ_SPARKLE$ac_delim
41737 GLX_TLS!$GLX_TLS$ac_delim
41738 INSTALL_SETUID_TRUE!$INSTALL_SETUID_TRUE$ac_delim
41739 INSTALL_SETUID_FALSE!$INSTALL_SETUID_FALSE$ac_delim
41740 SECURE_RPC_TRUE!$SECURE_RPC_TRUE$ac_delim
41741 SECURE_RPC_FALSE!$SECURE_RPC_FALSE$ac_delim
41742 INT10_VM86_TRUE!$INT10_VM86_TRUE$ac_delim
41743 INT10_VM86_FALSE!$INT10_VM86_FALSE$ac_delim
41744 INT10_X86EMU_TRUE!$INT10_X86EMU_TRUE$ac_delim
41745 INT10_X86EMU_FALSE!$INT10_X86EMU_FALSE$ac_delim
41746 INT10_STUB_TRUE!$INT10_STUB_TRUE$ac_delim
41747 INT10_STUB_FALSE!$INT10_STUB_FALSE$ac_delim
41748 INSTALL_LIBXF86CONFIG_TRUE!$INSTALL_LIBXF86CONFIG_TRUE$ac_delim
41749 INSTALL_LIBXF86CONFIG_FALSE!$INSTALL_LIBXF86CONFIG_FALSE$ac_delim
41750 SDK_REQUIRED_MODULES!$SDK_REQUIRED_MODULES$ac_delim
41751 PIXMAN_CFLAGS!$PIXMAN_CFLAGS$ac_delim
41752 PIXMAN_LIBS!$PIXMAN_LIBS$ac_delim
41753 UDEV_CFLAGS!$UDEV_CFLAGS$ac_delim
41754 UDEV_LIBS!$UDEV_LIBS$ac_delim
41755 CONFIG_UDEV_TRUE!$CONFIG_UDEV_TRUE$ac_delim
41756 CONFIG_UDEV_FALSE!$CONFIG_UDEV_FALSE$ac_delim
41757 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
41758 DBUS_LIBS!$DBUS_LIBS$ac_delim
41759 HAVE_DBUS_TRUE!$HAVE_DBUS_TRUE$ac_delim
41760 HAVE_DBUS_FALSE!$HAVE_DBUS_FALSE$ac_delim
41761 CONFIG_DBUS_API_TRUE!$CONFIG_DBUS_API_TRUE$ac_delim
41762 CONFIG_DBUS_API_FALSE!$CONFIG_DBUS_API_FALSE$ac_delim
41763 HAL_CFLAGS!$HAL_CFLAGS$ac_delim
41764 HAL_LIBS!$HAL_LIBS$ac_delim
41765 CONFIG_HAL_TRUE!$CONFIG_HAL_TRUE$ac_delim
41766 CONFIG_HAL_FALSE!$CONFIG_HAL_FALSE$ac_delim
41767 CONFIG_NEED_DBUS_TRUE!$CONFIG_NEED_DBUS_TRUE$ac_delim
41768 CONFIG_NEED_DBUS_FALSE!$CONFIG_NEED_DBUS_FALSE$ac_delim
41769 XV_TRUE!$XV_TRUE$ac_delim
41770 XV_FALSE!$XV_FALSE$ac_delim
41771 XVMC_TRUE!$XVMC_TRUE$ac_delim
41772 XVMC_FALSE!$XVMC_FALSE$ac_delim
41773 XREGISTRY_TRUE!$XREGISTRY_TRUE$ac_delim
41774 XREGISTRY_FALSE!$XREGISTRY_FALSE$ac_delim
41775 COMPOSITE_TRUE!$COMPOSITE_TRUE$ac_delim
41776 COMPOSITE_FALSE!$COMPOSITE_FALSE$ac_delim
41777 MITSHM_TRUE!$MITSHM_TRUE$ac_delim
41778 MITSHM_FALSE!$MITSHM_FALSE$ac_delim
41779 RECORD_TRUE!$RECORD_TRUE$ac_delim
41780 RECORD_FALSE!$RECORD_FALSE$ac_delim
41781 SCREENSAVER_TRUE!$SCREENSAVER_TRUE$ac_delim
41782 SCREENSAVER_FALSE!$SCREENSAVER_FALSE$ac_delim
41783 RES_TRUE!$RES_TRUE$ac_delim
41784 RES_FALSE!$RES_FALSE$ac_delim
41785 CLIENTIDS_TRUE!$CLIENTIDS_TRUE$ac_delim
41786 CLIENTIDS_FALSE!$CLIENTIDS_FALSE$ac_delim
41787 XLIB_CFLAGS!$XLIB_CFLAGS$ac_delim
41788 XLIB_LIBS!$XLIB_LIBS$ac_delim
41789 GL_CFLAGS!$GL_CFLAGS$ac_delim
41790 GL_LIBS!$GL_LIBS$ac_delim
41791 GLX_TRUE!$GLX_TRUE$ac_delim
41792 GLX_FALSE!$GLX_FALSE$ac_delim
41793 AIGLX_DRI_LOADER_TRUE!$AIGLX_DRI_LOADER_TRUE$ac_delim
41794 AIGLX_DRI_LOADER_FALSE!$AIGLX_DRI_LOADER_FALSE$ac_delim
41795 GLX_DEFINES!$GLX_DEFINES$ac_delim
41796 DRI_TRUE!$DRI_TRUE$ac_delim
41797 DRI_FALSE!$DRI_FALSE$ac_delim
41798 DRIPROTO_CFLAGS!$DRIPROTO_CFLAGS$ac_delim
41799 DRIPROTO_LIBS!$DRIPROTO_LIBS$ac_delim
41800 DRI_CFLAGS!$DRI_CFLAGS$ac_delim
41801 DRI_LIBS!$DRI_LIBS$ac_delim
41802 DRI2PROTO_CFLAGS!$DRI2PROTO_CFLAGS$ac_delim
41803 DRI2PROTO_LIBS!$DRI2PROTO_LIBS$ac_delim
41804 DRI2_TRUE!$DRI2_TRUE$ac_delim
41805 DRI2_FALSE!$DRI2_FALSE$ac_delim
41806 LIBDRM_CFLAGS!$LIBDRM_CFLAGS$ac_delim
41807 LIBDRM_LIBS!$LIBDRM_LIBS$ac_delim
41808 DRI2_AIGLX_TRUE!$DRI2_AIGLX_TRUE$ac_delim
41809 DRI2_AIGLX_FALSE!$DRI2_AIGLX_FALSE$ac_delim
41810 XINERAMA_TRUE!$XINERAMA_TRUE$ac_delim
41811 XINERAMA_FALSE!$XINERAMA_FALSE$ac_delim
41812 XACE_TRUE!$XACE_TRUE$ac_delim
41813 _ACEOF
41815   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
41816     break
41817   elif $ac_last_try; then
41818     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
41819 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
41820    { (exit 1); exit 1; }; }
41821   else
41822     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
41823   fi
41824 done
41826 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
41827 if test -n "$ac_eof"; then
41828   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
41829   ac_eof=`expr $ac_eof + 1`
41832 cat >>$CONFIG_STATUS <<_ACEOF
41833 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
41834 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41835 _ACEOF
41836 sed '
41837 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
41838 s/^/s,@/; s/!/@,|#_!!_#|/
41840 t n
41841 s/'"$ac_delim"'$/,g/; t
41842 s/$/\\/; p
41843 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
41844 ' >>$CONFIG_STATUS <conf$$subs.sed
41845 rm -f conf$$subs.sed
41846 cat >>$CONFIG_STATUS <<_ACEOF
41847 CEOF$ac_eof
41848 _ACEOF
41851 ac_delim='%!_!# '
41852 for ac_last_try in false false false false false :; do
41853   cat >conf$$subs.sed <<_ACEOF
41854 XACE_FALSE!$XACE_FALSE$ac_delim
41855 XSELINUX_TRUE!$XSELINUX_TRUE$ac_delim
41856 XSELINUX_FALSE!$XSELINUX_FALSE$ac_delim
41857 SELINUX_CFLAGS!$SELINUX_CFLAGS$ac_delim
41858 SELINUX_LIBS!$SELINUX_LIBS$ac_delim
41859 XCSECURITY_TRUE!$XCSECURITY_TRUE$ac_delim
41860 XCSECURITY_FALSE!$XCSECURITY_FALSE$ac_delim
41861 DBE_TRUE!$DBE_TRUE$ac_delim
41862 DBE_FALSE!$DBE_FALSE$ac_delim
41863 XF86BIGFONT_TRUE!$XF86BIGFONT_TRUE$ac_delim
41864 XF86BIGFONT_FALSE!$XF86BIGFONT_FALSE$ac_delim
41865 DPMSExtension_TRUE!$DPMSExtension_TRUE$ac_delim
41866 DPMSExtension_FALSE!$DPMSExtension_FALSE$ac_delim
41867 XF86UTILS_TRUE!$XF86UTILS_TRUE$ac_delim
41868 XF86UTILS_FALSE!$XF86UTILS_FALSE$ac_delim
41869 XAA_TRUE!$XAA_TRUE$ac_delim
41870 XAA_FALSE!$XAA_FALSE$ac_delim
41871 VGAHW_TRUE!$VGAHW_TRUE$ac_delim
41872 VGAHW_FALSE!$VGAHW_FALSE$ac_delim
41873 VBE_TRUE!$VBE_TRUE$ac_delim
41874 VBE_FALSE!$VBE_FALSE$ac_delim
41875 INT10MODULE_TRUE!$INT10MODULE_TRUE$ac_delim
41876 INT10MODULE_FALSE!$INT10MODULE_FALSE$ac_delim
41877 XKB_BASE_DIRECTORY!$XKB_BASE_DIRECTORY$ac_delim
41878 XKB_BIN_DIRECTORY!$XKB_BIN_DIRECTORY$ac_delim
41879 XKM_OUTPUT_DIR!$XKM_OUTPUT_DIR$ac_delim
41880 XKB_COMPILED_DIR!$XKB_COMPILED_DIR$ac_delim
41881 XKB_DFLT_RULES!$XKB_DFLT_RULES$ac_delim
41882 XKB_DFLT_MODEL!$XKB_DFLT_MODEL$ac_delim
41883 XKB_DFLT_LAYOUT!$XKB_DFLT_LAYOUT$ac_delim
41884 XKB_DFLT_VARIANT!$XKB_DFLT_VARIANT$ac_delim
41885 XKB_DFLT_OPTIONS!$XKB_DFLT_OPTIONS$ac_delim
41886 XDMCP_CFLAGS!$XDMCP_CFLAGS$ac_delim
41887 XDMCP_LIBS!$XDMCP_LIBS$ac_delim
41888 XDMCP_TRUE!$XDMCP_TRUE$ac_delim
41889 XDMCP_FALSE!$XDMCP_FALSE$ac_delim
41890 XDMAUTH_TRUE!$XDMAUTH_TRUE$ac_delim
41891 XDMAUTH_FALSE!$XDMAUTH_FALSE$ac_delim
41892 COMPILEDDEFAULTFONTPATH!$COMPILEDDEFAULTFONTPATH$ac_delim
41893 PCI_TXT_IDS_PATH!$PCI_TXT_IDS_PATH$ac_delim
41894 SERVER_MISC_CONFIG_PATH!$SERVER_MISC_CONFIG_PATH$ac_delim
41895 BASE_FONT_PATH!$BASE_FONT_PATH$ac_delim
41896 DRI_DRIVER_PATH!$DRI_DRIVER_PATH$ac_delim
41897 VENDOR_NAME_SHORT!$VENDOR_NAME_SHORT$ac_delim
41898 DEBUG_TRUE!$DEBUG_TRUE$ac_delim
41899 DEBUG_FALSE!$DEBUG_FALSE$ac_delim
41900 DIX_LIB!$DIX_LIB$ac_delim
41901 OS_LIB!$OS_LIB$ac_delim
41902 MAIN_LIB!$MAIN_LIB$ac_delim
41903 LIBSHA1_CFLAGS!$LIBSHA1_CFLAGS$ac_delim
41904 LIBSHA1_LIBS!$LIBSHA1_LIBS$ac_delim
41905 OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
41906 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
41907 SHA1_LIBS!$SHA1_LIBS$ac_delim
41908 SHA1_CFLAGS!$SHA1_CFLAGS$ac_delim
41909 XSERVERCFLAGS_CFLAGS!$XSERVERCFLAGS_CFLAGS$ac_delim
41910 XSERVERCFLAGS_LIBS!$XSERVERCFLAGS_LIBS$ac_delim
41911 XSERVERLIBS_CFLAGS!$XSERVERLIBS_CFLAGS$ac_delim
41912 XSERVERLIBS_LIBS!$XSERVERLIBS_LIBS$ac_delim
41913 XSERVER_LIBS!$XSERVER_LIBS$ac_delim
41914 XSERVER_SYS_LIBS!$XSERVER_SYS_LIBS$ac_delim
41915 UTILS_SYS_LIBS!$UTILS_SYS_LIBS$ac_delim
41916 LD_EXPORT_SYMBOLS_FLAG!$LD_EXPORT_SYMBOLS_FLAG$ac_delim
41917 XVFB_TRUE!$XVFB_TRUE$ac_delim
41918 XVFB_FALSE!$XVFB_FALSE$ac_delim
41919 XVFB_LIBS!$XVFB_LIBS$ac_delim
41920 XVFB_SYS_LIBS!$XVFB_SYS_LIBS$ac_delim
41921 XNESTMODULES_CFLAGS!$XNESTMODULES_CFLAGS$ac_delim
41922 XNESTMODULES_LIBS!$XNESTMODULES_LIBS$ac_delim
41923 XNEST_TRUE!$XNEST_TRUE$ac_delim
41924 XNEST_FALSE!$XNEST_FALSE$ac_delim
41925 XNEST_LIBS!$XNEST_LIBS$ac_delim
41926 XNEST_SYS_LIBS!$XNEST_SYS_LIBS$ac_delim
41927 symbol_visibility!$symbol_visibility$ac_delim
41928 PCIACCESS_CFLAGS!$PCIACCESS_CFLAGS$ac_delim
41929 PCIACCESS_LIBS!$PCIACCESS_LIBS$ac_delim
41930 SOLARIS_INOUT_ARCH!$SOLARIS_INOUT_ARCH$ac_delim
41931 SOLARIS_ASM_CFLAGS!$SOLARIS_ASM_CFLAGS$ac_delim
41932 DGA_CFLAGS!$DGA_CFLAGS$ac_delim
41933 DGA_LIBS!$DGA_LIBS$ac_delim
41934 XF86VIDMODE_CFLAGS!$XF86VIDMODE_CFLAGS$ac_delim
41935 XF86VIDMODE_LIBS!$XF86VIDMODE_LIBS$ac_delim
41936 XORG_MODULES_CFLAGS!$XORG_MODULES_CFLAGS$ac_delim
41937 XORG_MODULES_LIBS!$XORG_MODULES_LIBS$ac_delim
41938 XORG_LIBS!$XORG_LIBS$ac_delim
41939 XORG_SYS_LIBS!$XORG_SYS_LIBS$ac_delim
41940 XORG_INCS!$XORG_INCS$ac_delim
41941 XORG_OS!$XORG_OS$ac_delim
41942 XORG_OS_SUBDIR!$XORG_OS_SUBDIR$ac_delim
41943 XORG_CFLAGS!$XORG_CFLAGS$ac_delim
41944 XF86CONFIGDIR!$XF86CONFIGDIR$ac_delim
41945 __XCONFIGFILE__!$__XCONFIGFILE__$ac_delim
41946 XF86CONFIGFILE!$XF86CONFIGFILE$ac_delim
41947 __XCONFIGDIR__!$__XCONFIGDIR__$ac_delim
41948 DEFAULT_MODULE_PATH!$DEFAULT_MODULE_PATH$ac_delim
41949 DEFAULT_LIBRARY_PATH!$DEFAULT_LIBRARY_PATH$ac_delim
41950 DEFAULT_LOGPREFIX!$DEFAULT_LOGPREFIX$ac_delim
41951 _ACEOF
41953   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
41954     break
41955   elif $ac_last_try; then
41956     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
41957 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
41958    { (exit 1); exit 1; }; }
41959   else
41960     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
41961   fi
41962 done
41964 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
41965 if test -n "$ac_eof"; then
41966   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
41967   ac_eof=`expr $ac_eof + 1`
41970 cat >>$CONFIG_STATUS <<_ACEOF
41971 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
41972 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41973 _ACEOF
41974 sed '
41975 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
41976 s/^/s,@/; s/!/@,|#_!!_#|/
41978 t n
41979 s/'"$ac_delim"'$/,g/; t
41980 s/$/\\/; p
41981 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
41982 ' >>$CONFIG_STATUS <conf$$subs.sed
41983 rm -f conf$$subs.sed
41984 cat >>$CONFIG_STATUS <<_ACEOF
41985 CEOF$ac_eof
41986 _ACEOF
41989 ac_delim='%!_!# '
41990 for ac_last_try in false false false false false :; do
41991   cat >conf$$subs.sed <<_ACEOF
41992 moduledir!$moduledir$ac_delim
41993 driverdir!$driverdir$ac_delim
41994 sdkdir!$sdkdir$ac_delim
41995 extdir!$extdir$ac_delim
41996 sysconfigdir!$sysconfigdir$ac_delim
41997 logdir!$logdir$ac_delim
41998 abi_ansic!$abi_ansic$ac_delim
41999 abi_videodrv!$abi_videodrv$ac_delim
42000 abi_xinput!$abi_xinput$ac_delim
42001 abi_extension!$abi_extension$ac_delim
42002 XORG_TRUE!$XORG_TRUE$ac_delim
42003 XORG_FALSE!$XORG_FALSE$ac_delim
42004 XORG_BUS_LINUXPCI_TRUE!$XORG_BUS_LINUXPCI_TRUE$ac_delim
42005 XORG_BUS_LINUXPCI_FALSE!$XORG_BUS_LINUXPCI_FALSE$ac_delim
42006 XORG_BUS_BSDPCI_TRUE!$XORG_BUS_BSDPCI_TRUE$ac_delim
42007 XORG_BUS_BSDPCI_FALSE!$XORG_BUS_BSDPCI_FALSE$ac_delim
42008 XORG_BUS_SPARC_TRUE!$XORG_BUS_SPARC_TRUE$ac_delim
42009 XORG_BUS_SPARC_FALSE!$XORG_BUS_SPARC_FALSE$ac_delim
42010 LINUX_IA64_TRUE!$LINUX_IA64_TRUE$ac_delim
42011 LINUX_IA64_FALSE!$LINUX_IA64_FALSE$ac_delim
42012 LINUX_ALPHA_TRUE!$LINUX_ALPHA_TRUE$ac_delim
42013 LINUX_ALPHA_FALSE!$LINUX_ALPHA_FALSE$ac_delim
42014 LNXACPI_TRUE!$LNXACPI_TRUE$ac_delim
42015 LNXACPI_FALSE!$LNXACPI_FALSE$ac_delim
42016 SOLARIS_ASM_INLINE_TRUE!$SOLARIS_ASM_INLINE_TRUE$ac_delim
42017 SOLARIS_ASM_INLINE_FALSE!$SOLARIS_ASM_INLINE_FALSE$ac_delim
42018 SOLARIS_VT_TRUE!$SOLARIS_VT_TRUE$ac_delim
42019 SOLARIS_VT_FALSE!$SOLARIS_VT_FALSE$ac_delim
42020 DGA_TRUE!$DGA_TRUE$ac_delim
42021 DGA_FALSE!$DGA_FALSE$ac_delim
42022 XF86VIDMODE_TRUE!$XF86VIDMODE_TRUE$ac_delim
42023 XF86VIDMODE_FALSE!$XF86VIDMODE_FALSE$ac_delim
42024 SYSCONFDIR!$SYSCONFDIR$ac_delim
42025 DEFAULT_LOGDIR!$DEFAULT_LOGDIR$ac_delim
42026 WINDRES!$WINDRES$ac_delim
42027 XWINMODULES_CFLAGS!$XWINMODULES_CFLAGS$ac_delim
42028 XWINMODULES_LIBS!$XWINMODULES_LIBS$ac_delim
42029 WINDOWSWM_CFLAGS!$WINDOWSWM_CFLAGS$ac_delim
42030 WINDOWSWM_LIBS!$WINDOWSWM_LIBS$ac_delim
42031 XWIN_LIBS!$XWIN_LIBS$ac_delim
42032 XWIN_SERVER_NAME!$XWIN_SERVER_NAME$ac_delim
42033 XWIN_SYS_LIBS!$XWIN_SYS_LIBS$ac_delim
42034 KHRONOS_OPENGL_REGISTRY_CFLAGS!$KHRONOS_OPENGL_REGISTRY_CFLAGS$ac_delim
42035 KHRONOS_OPENGL_REGISTRY_LIBS!$KHRONOS_OPENGL_REGISTRY_LIBS$ac_delim
42036 KHRONOS_SPEC_DIR!$KHRONOS_SPEC_DIR$ac_delim
42037 XWIN_TRUE!$XWIN_TRUE$ac_delim
42038 XWIN_FALSE!$XWIN_FALSE$ac_delim
42039 XWIN_MULTIWINDOW_TRUE!$XWIN_MULTIWINDOW_TRUE$ac_delim
42040 XWIN_MULTIWINDOW_FALSE!$XWIN_MULTIWINDOW_FALSE$ac_delim
42041 XWIN_MULTIWINDOWEXTWM_TRUE!$XWIN_MULTIWINDOWEXTWM_TRUE$ac_delim
42042 XWIN_MULTIWINDOWEXTWM_FALSE!$XWIN_MULTIWINDOWEXTWM_FALSE$ac_delim
42043 XWIN_CLIPBOARD_TRUE!$XWIN_CLIPBOARD_TRUE$ac_delim
42044 XWIN_CLIPBOARD_FALSE!$XWIN_CLIPBOARD_FALSE$ac_delim
42045 XWIN_GLX_WINDOWS_TRUE!$XWIN_GLX_WINDOWS_TRUE$ac_delim
42046 XWIN_GLX_WINDOWS_FALSE!$XWIN_GLX_WINDOWS_FALSE$ac_delim
42047 XWIN_NATIVEGDI_TRUE!$XWIN_NATIVEGDI_TRUE$ac_delim
42048 XWIN_NATIVEGDI_FALSE!$XWIN_NATIVEGDI_FALSE$ac_delim
42049 XWIN_PRIMARYFB_TRUE!$XWIN_PRIMARYFB_TRUE$ac_delim
42050 XWIN_PRIMARYFB_FALSE!$XWIN_PRIMARYFB_FALSE$ac_delim
42051 XWIN_RANDR_TRUE!$XWIN_RANDR_TRUE$ac_delim
42052 XWIN_RANDR_FALSE!$XWIN_RANDR_FALSE$ac_delim
42053 XWIN_XV_TRUE!$XWIN_XV_TRUE$ac_delim
42054 XWIN_XV_FALSE!$XWIN_XV_FALSE$ac_delim
42055 XQUARTZ_LIBS!$XQUARTZ_LIBS$ac_delim
42056 XPBPROXY_CFLAGS!$XPBPROXY_CFLAGS$ac_delim
42057 XPBPROXY_LIBS!$XPBPROXY_LIBS$ac_delim
42058 OBJC!$OBJC$ac_delim
42059 OBJCCLD!$OBJCCLD$ac_delim
42060 OBJCLINK!$OBJCLINK$ac_delim
42061 OBJCFLAGS!$OBJCFLAGS$ac_delim
42062 OBJCDEPMODE!$OBJCDEPMODE$ac_delim
42063 am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
42064 am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
42065 XQUARTZ_TRUE!$XQUARTZ_TRUE$ac_delim
42066 XQUARTZ_FALSE!$XQUARTZ_FALSE$ac_delim
42067 XQUARTZ_SPARKLE_TRUE!$XQUARTZ_SPARKLE_TRUE$ac_delim
42068 XQUARTZ_SPARKLE_FALSE!$XQUARTZ_SPARKLE_FALSE$ac_delim
42069 STANDALONE_XPBPROXY_TRUE!$STANDALONE_XPBPROXY_TRUE$ac_delim
42070 STANDALONE_XPBPROXY_FALSE!$STANDALONE_XPBPROXY_FALSE$ac_delim
42071 DMXMODULES_CFLAGS!$DMXMODULES_CFLAGS$ac_delim
42072 DMXMODULES_LIBS!$DMXMODULES_LIBS$ac_delim
42073 XDMXCONFIG_DEP_CFLAGS!$XDMXCONFIG_DEP_CFLAGS$ac_delim
42074 XDMXCONFIG_DEP_LIBS!$XDMXCONFIG_DEP_LIBS$ac_delim
42075 DMX_TRUE!$DMX_TRUE$ac_delim
42076 DMX_FALSE!$DMX_FALSE$ac_delim
42077 XDMX_CFLAGS!$XDMX_CFLAGS$ac_delim
42078 XDMX_LIBS!$XDMX_LIBS$ac_delim
42079 XDMX_SYS_LIBS!$XDMX_SYS_LIBS$ac_delim
42080 DMXEXAMPLES_DEP_CFLAGS!$DMXEXAMPLES_DEP_CFLAGS$ac_delim
42081 DMXEXAMPLES_DEP_LIBS!$DMXEXAMPLES_DEP_LIBS$ac_delim
42082 DMXXMUEXAMPLES_DEP_CFLAGS!$DMXXMUEXAMPLES_DEP_CFLAGS$ac_delim
42083 DMXXMUEXAMPLES_DEP_LIBS!$DMXXMUEXAMPLES_DEP_LIBS$ac_delim
42084 DMXXIEXAMPLES_DEP_CFLAGS!$DMXXIEXAMPLES_DEP_CFLAGS$ac_delim
42085 DMXXIEXAMPLES_DEP_LIBS!$DMXXIEXAMPLES_DEP_LIBS$ac_delim
42086 XTSTEXAMPLES_DEP_CFLAGS!$XTSTEXAMPLES_DEP_CFLAGS$ac_delim
42087 XTSTEXAMPLES_DEP_LIBS!$XTSTEXAMPLES_DEP_LIBS$ac_delim
42088 XRESEXAMPLES_DEP_CFLAGS!$XRESEXAMPLES_DEP_CFLAGS$ac_delim
42089 _ACEOF
42091   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
42092     break
42093   elif $ac_last_try; then
42094     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42095 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42096    { (exit 1); exit 1; }; }
42097   else
42098     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42099   fi
42100 done
42102 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42103 if test -n "$ac_eof"; then
42104   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42105   ac_eof=`expr $ac_eof + 1`
42108 cat >>$CONFIG_STATUS <<_ACEOF
42109 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
42110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42111 _ACEOF
42112 sed '
42113 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42114 s/^/s,@/; s/!/@,|#_!!_#|/
42116 t n
42117 s/'"$ac_delim"'$/,g/; t
42118 s/$/\\/; p
42119 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42120 ' >>$CONFIG_STATUS <conf$$subs.sed
42121 rm -f conf$$subs.sed
42122 cat >>$CONFIG_STATUS <<_ACEOF
42123 CEOF$ac_eof
42124 _ACEOF
42127 ac_delim='%!_!# '
42128 for ac_last_try in false false false false false :; do
42129   cat >conf$$subs.sed <<_ACEOF
42130 XRESEXAMPLES_DEP_LIBS!$XRESEXAMPLES_DEP_LIBS$ac_delim
42131 X11EXAMPLES_DEP_CFLAGS!$X11EXAMPLES_DEP_CFLAGS$ac_delim
42132 X11EXAMPLES_DEP_LIBS!$X11EXAMPLES_DEP_LIBS$ac_delim
42133 DMX_BUILD_LNX_TRUE!$DMX_BUILD_LNX_TRUE$ac_delim
42134 DMX_BUILD_LNX_FALSE!$DMX_BUILD_LNX_FALSE$ac_delim
42135 DMX_BUILD_USB_TRUE!$DMX_BUILD_USB_TRUE$ac_delim
42136 DMX_BUILD_USB_FALSE!$DMX_BUILD_USB_FALSE$ac_delim
42137 KDRIVE_TRUE!$KDRIVE_TRUE$ac_delim
42138 KDRIVE_FALSE!$KDRIVE_FALSE$ac_delim
42139 TSLIB_CFLAGS!$TSLIB_CFLAGS$ac_delim
42140 TSLIB_LIBS!$TSLIB_LIBS$ac_delim
42141 XEPHYR_CFLAGS!$XEPHYR_CFLAGS$ac_delim
42142 XEPHYR_LIBS!$XEPHYR_LIBS$ac_delim
42143 XEPHYR_INCS!$XEPHYR_INCS$ac_delim
42144 KDRIVE_INCS!$KDRIVE_INCS$ac_delim
42145 KDRIVE_PURE_INCS!$KDRIVE_PURE_INCS$ac_delim
42146 KDRIVE_CFLAGS!$KDRIVE_CFLAGS$ac_delim
42147 KDRIVE_PURE_LIBS!$KDRIVE_PURE_LIBS$ac_delim
42148 KDRIVE_LOCAL_LIBS!$KDRIVE_LOCAL_LIBS$ac_delim
42149 KDRIVE_LIBS!$KDRIVE_LIBS$ac_delim
42150 KDRIVELINUX_TRUE!$KDRIVELINUX_TRUE$ac_delim
42151 KDRIVELINUX_FALSE!$KDRIVELINUX_FALSE$ac_delim
42152 KDRIVE_EVDEV_TRUE!$KDRIVE_EVDEV_TRUE$ac_delim
42153 KDRIVE_EVDEV_FALSE!$KDRIVE_EVDEV_FALSE$ac_delim
42154 KDRIVE_KBD_TRUE!$KDRIVE_KBD_TRUE$ac_delim
42155 KDRIVE_KBD_FALSE!$KDRIVE_KBD_FALSE$ac_delim
42156 KDRIVE_MOUSE_TRUE!$KDRIVE_MOUSE_TRUE$ac_delim
42157 KDRIVE_MOUSE_FALSE!$KDRIVE_MOUSE_FALSE$ac_delim
42158 TSLIB_TRUE!$TSLIB_TRUE$ac_delim
42159 TSLIB_FALSE!$TSLIB_FALSE$ac_delim
42160 KDRIVEFBDEV_TRUE!$KDRIVEFBDEV_TRUE$ac_delim
42161 KDRIVEFBDEV_FALSE!$KDRIVEFBDEV_FALSE$ac_delim
42162 XEPHYR_TRUE!$XEPHYR_TRUE$ac_delim
42163 XEPHYR_FALSE!$XEPHYR_FALSE$ac_delim
42164 BUILD_KDRIVEFBDEVLIB_TRUE!$BUILD_KDRIVEFBDEVLIB_TRUE$ac_delim
42165 BUILD_KDRIVEFBDEVLIB_FALSE!$BUILD_KDRIVEFBDEVLIB_FALSE$ac_delim
42166 XFAKESERVER_TRUE!$XFAKESERVER_TRUE$ac_delim
42167 XFAKESERVER_FALSE!$XFAKESERVER_FALSE$ac_delim
42168 PROJECTROOT!$PROJECTROOT$ac_delim
42169 RELEASE_DATE!$RELEASE_DATE$ac_delim
42170 BUILD_DATE!$BUILD_DATE$ac_delim
42171 BUILD_TIME!$BUILD_TIME$ac_delim
42172 DIX_CFLAGS!$DIX_CFLAGS$ac_delim
42173 LIBOBJS!$LIBOBJS$ac_delim
42174 LTLIBOBJS!$LTLIBOBJS$ac_delim
42175 _ACEOF
42177   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 45; then
42178     break
42179   elif $ac_last_try; then
42180     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42181 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42182    { (exit 1); exit 1; }; }
42183   else
42184     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42185   fi
42186 done
42188 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42189 if test -n "$ac_eof"; then
42190   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42191   ac_eof=`expr $ac_eof + 1`
42194 cat >>$CONFIG_STATUS <<_ACEOF
42195 cat >"\$tmp/subs-6.sed" <<\CEOF$ac_eof
42196 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
42197 _ACEOF
42198 sed '
42199 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42200 s/^/s,@/; s/!/@,|#_!!_#|/
42202 t n
42203 s/'"$ac_delim"'$/,g/; t
42204 s/$/\\/; p
42205 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42206 ' >>$CONFIG_STATUS <conf$$subs.sed
42207 rm -f conf$$subs.sed
42208 cat >>$CONFIG_STATUS <<_ACEOF
42209 :end
42210 s/|#_!!_#|//g
42211 CEOF$ac_eof
42212 _ACEOF
42215 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42216 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42217 # trailing colons and then remove the whole line if VPATH becomes empty
42218 # (actually we leave an empty line to preserve line numbers).
42219 if test "x$srcdir" = x.; then
42220   ac_vpsub='/^[  ]*VPATH[        ]*=/{
42221 s/:*\$(srcdir):*/:/
42222 s/:*\${srcdir}:*/:/
42223 s/:*@srcdir@:*/:/
42224 s/^\([^=]*=[     ]*\):*/\1/
42225 s/:*$//
42226 s/^[^=]*=[       ]*$//
42230 cat >>$CONFIG_STATUS <<\_ACEOF
42231 fi # test -n "$CONFIG_FILES"
42234 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
42236   case $ac_tag in
42237   :[FHLC]) ac_mode=$ac_tag; continue;;
42238   esac
42239   case $ac_mode$ac_tag in
42240   :[FHL]*:*);;
42241   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
42242 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
42243    { (exit 1); exit 1; }; };;
42244   :[FH]-) ac_tag=-:-;;
42245   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42246   esac
42247   ac_save_IFS=$IFS
42248   IFS=:
42249   set x $ac_tag
42250   IFS=$ac_save_IFS
42251   shift
42252   ac_file=$1
42253   shift
42255   case $ac_mode in
42256   :L) ac_source=$1;;
42257   :[FH])
42258     ac_file_inputs=
42259     for ac_f
42260     do
42261       case $ac_f in
42262       -) ac_f="$tmp/stdin";;
42263       *) # Look for the file first in the build tree, then in the source tree
42264          # (if the path is not absolute).  The absolute path cannot be DOS-style,
42265          # because $ac_f cannot contain `:'.
42266          test -f "$ac_f" ||
42267            case $ac_f in
42268            [\\/$]*) false;;
42269            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42270            esac ||
42271            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
42272 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
42273    { (exit 1); exit 1; }; };;
42274       esac
42275       ac_file_inputs="$ac_file_inputs $ac_f"
42276     done
42278     # Let's still pretend it is `configure' which instantiates (i.e., don't
42279     # use $as_me), people would be surprised to read:
42280     #    /* config.h.  Generated by config.status.  */
42281     configure_input="Generated from "`IFS=:
42282           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
42283     if test x"$ac_file" != x-; then
42284       configure_input="$ac_file.  $configure_input"
42285       { echo "$as_me:$LINENO: creating $ac_file" >&5
42286 echo "$as_me: creating $ac_file" >&6;}
42287     fi
42289     case $ac_tag in
42290     *:-:* | *:-) cat >"$tmp/stdin";;
42291     esac
42292     ;;
42293   esac
42295   ac_dir=`$as_dirname -- "$ac_file" ||
42296 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42297          X"$ac_file" : 'X\(//\)[^/]' \| \
42298          X"$ac_file" : 'X\(//\)$' \| \
42299          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42300 echo X"$ac_file" |
42301     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42302             s//\1/
42303             q
42304           }
42305           /^X\(\/\/\)[^/].*/{
42306             s//\1/
42307             q
42308           }
42309           /^X\(\/\/\)$/{
42310             s//\1/
42311             q
42312           }
42313           /^X\(\/\).*/{
42314             s//\1/
42315             q
42316           }
42317           s/.*/./; q'`
42318   { as_dir="$ac_dir"
42319   case $as_dir in #(
42320   -*) as_dir=./$as_dir;;
42321   esac
42322   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
42323     as_dirs=
42324     while :; do
42325       case $as_dir in #(
42326       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
42327       *) as_qdir=$as_dir;;
42328       esac
42329       as_dirs="'$as_qdir' $as_dirs"
42330       as_dir=`$as_dirname -- "$as_dir" ||
42331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42332          X"$as_dir" : 'X\(//\)[^/]' \| \
42333          X"$as_dir" : 'X\(//\)$' \| \
42334          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42335 echo X"$as_dir" |
42336     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42337             s//\1/
42338             q
42339           }
42340           /^X\(\/\/\)[^/].*/{
42341             s//\1/
42342             q
42343           }
42344           /^X\(\/\/\)$/{
42345             s//\1/
42346             q
42347           }
42348           /^X\(\/\).*/{
42349             s//\1/
42350             q
42351           }
42352           s/.*/./; q'`
42353       test -d "$as_dir" && break
42354     done
42355     test -z "$as_dirs" || eval "mkdir $as_dirs"
42356   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
42357 echo "$as_me: error: cannot create directory $as_dir" >&2;}
42358    { (exit 1); exit 1; }; }; }
42359   ac_builddir=.
42361 case "$ac_dir" in
42362 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42364   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42365   # A ".." for each directory in $ac_dir_suffix.
42366   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
42367   case $ac_top_builddir_sub in
42368   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42369   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42370   esac ;;
42371 esac
42372 ac_abs_top_builddir=$ac_pwd
42373 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42374 # for backward compatibility:
42375 ac_top_builddir=$ac_top_build_prefix
42377 case $srcdir in
42378   .)  # We are building in place.
42379     ac_srcdir=.
42380     ac_top_srcdir=$ac_top_builddir_sub
42381     ac_abs_top_srcdir=$ac_pwd ;;
42382   [\\/]* | ?:[\\/]* )  # Absolute name.
42383     ac_srcdir=$srcdir$ac_dir_suffix;
42384     ac_top_srcdir=$srcdir
42385     ac_abs_top_srcdir=$srcdir ;;
42386   *) # Relative name.
42387     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42388     ac_top_srcdir=$ac_top_build_prefix$srcdir
42389     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42390 esac
42391 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42394   case $ac_mode in
42395   :F)
42396   #
42397   # CONFIG_FILE
42398   #
42400   case $INSTALL in
42401   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42402   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42403   esac
42404   ac_MKDIR_P=$MKDIR_P
42405   case $MKDIR_P in
42406   [\\/$]* | ?:[\\/]* ) ;;
42407   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
42408   esac
42409 _ACEOF
42411 cat >>$CONFIG_STATUS <<\_ACEOF
42412 # If the template does not know about datarootdir, expand it.
42413 # FIXME: This hack should be removed a few years after 2.60.
42414 ac_datarootdir_hack=; ac_datarootdir_seen=
42416 case `sed -n '/datarootdir/ {
42417   p
42418   q
42420 /@datadir@/p
42421 /@docdir@/p
42422 /@infodir@/p
42423 /@localedir@/p
42424 /@mandir@/p
42425 ' $ac_file_inputs` in
42426 *datarootdir*) ac_datarootdir_seen=yes;;
42427 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42428   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42429 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42430 _ACEOF
42431 cat >>$CONFIG_STATUS <<_ACEOF
42432   ac_datarootdir_hack='
42433   s&@datadir@&$datadir&g
42434   s&@docdir@&$docdir&g
42435   s&@infodir@&$infodir&g
42436   s&@localedir@&$localedir&g
42437   s&@mandir@&$mandir&g
42438     s&\\\${datarootdir}&$datarootdir&g' ;;
42439 esac
42440 _ACEOF
42442 # Neutralize VPATH when `$srcdir' = `.'.
42443 # Shell code in configure.ac might set extrasub.
42444 # FIXME: do we really want to maintain this feature?
42445 cat >>$CONFIG_STATUS <<_ACEOF
42446   sed "$ac_vpsub
42447 $extrasub
42448 _ACEOF
42449 cat >>$CONFIG_STATUS <<\_ACEOF
42451 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42452 s&@configure_input@&$configure_input&;t t
42453 s&@top_builddir@&$ac_top_builddir_sub&;t t
42454 s&@srcdir@&$ac_srcdir&;t t
42455 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42456 s&@top_srcdir@&$ac_top_srcdir&;t t
42457 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42458 s&@builddir@&$ac_builddir&;t t
42459 s&@abs_builddir@&$ac_abs_builddir&;t t
42460 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42461 s&@INSTALL@&$ac_INSTALL&;t t
42462 s&@MKDIR_P@&$ac_MKDIR_P&;t t
42463 $ac_datarootdir_hack
42464 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" | sed -f "$tmp/subs-5.sed" | sed -f "$tmp/subs-6.sed" >$tmp/out
42466 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42467   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
42468   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
42469   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42470 which seems to be undefined.  Please make sure it is defined." >&5
42471 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42472 which seems to be undefined.  Please make sure it is defined." >&2;}
42474   rm -f "$tmp/stdin"
42475   case $ac_file in
42476   -) cat "$tmp/out"; rm -f "$tmp/out";;
42477   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
42478   esac
42479  ;;
42480   :H)
42481   #
42482   # CONFIG_HEADER
42483   #
42484 _ACEOF
42486 # Transform confdefs.h into a sed script `conftest.defines', that
42487 # substitutes the proper values into config.h.in to produce config.h.
42488 rm -f conftest.defines conftest.tail
42489 # First, append a space to every undef/define line, to ease matching.
42490 echo 's/$/ /' >conftest.defines
42491 # Then, protect against being on the right side of a sed subst, or in
42492 # an unquoted here document, in config.status.  If some macros were
42493 # called several times there might be several #defines for the same
42494 # symbol, which is useless.  But do not sort them, since the last
42495 # AC_DEFINE must be honored.
42496 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42497 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
42498 # NAME is the cpp macro being defined, VALUE is the value it is being given.
42499 # PARAMS is the parameter list in the macro definition--in most cases, it's
42500 # just an empty string.
42501 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
42502 ac_dB='\\)[      (].*,\\1define\\2'
42503 ac_dC=' '
42504 ac_dD=' ,'
42506 uniq confdefs.h |
42507   sed -n '
42508         t rset
42509         :rset
42510         s/^[     ]*#[    ]*define[       ][      ]*//
42511         t ok
42512         d
42513         :ok
42514         s/[\\&,]/\\&/g
42515         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
42516         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
42517   ' >>conftest.defines
42519 # Remove the space that was appended to ease matching.
42520 # Then replace #undef with comments.  This is necessary, for
42521 # example, in the case of _POSIX_SOURCE, which is predefined and required
42522 # on some systems where configure will not decide to define it.
42523 # (The regexp can be short, since the line contains either #define or #undef.)
42524 echo 's/ $//
42525 s,^[     #]*u.*,/* & */,' >>conftest.defines
42527 # Break up conftest.defines:
42528 ac_max_sed_lines=50
42530 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
42531 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
42532 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
42533 # et cetera.
42534 ac_in='$ac_file_inputs'
42535 ac_out='"$tmp/out1"'
42536 ac_nxt='"$tmp/out2"'
42538 while :
42540   # Write a here document:
42541     cat >>$CONFIG_STATUS <<_ACEOF
42542     # First, check the format of the line:
42543     cat >"\$tmp/defines.sed" <<\\CEOF
42544 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*/b def
42545 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
42547 :def
42548 _ACEOF
42549   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
42550   echo 'CEOF
42551     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
42552   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
42553   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
42554   grep . conftest.tail >/dev/null || break
42555   rm -f conftest.defines
42556   mv conftest.tail conftest.defines
42557 done
42558 rm -f conftest.defines conftest.tail
42560 echo "ac_result=$ac_in" >>$CONFIG_STATUS
42561 cat >>$CONFIG_STATUS <<\_ACEOF
42562   if test x"$ac_file" != x-; then
42563     echo "/* $configure_input  */" >"$tmp/config.h"
42564     cat "$ac_result" >>"$tmp/config.h"
42565     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
42566       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42567 echo "$as_me: $ac_file is unchanged" >&6;}
42568     else
42569       rm -f $ac_file
42570       mv "$tmp/config.h" $ac_file
42571     fi
42572   else
42573     echo "/* $configure_input  */"
42574     cat "$ac_result"
42575   fi
42576   rm -f "$tmp/out12"
42577 # Compute $ac_file's index in $config_headers.
42578 _am_stamp_count=1
42579 for _am_header in $config_headers :; do
42580   case $_am_header in
42581     $ac_file | $ac_file:* )
42582       break ;;
42583     * )
42584       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42585   esac
42586 done
42587 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
42588 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42589          X$ac_file : 'X\(//\)[^/]' \| \
42590          X$ac_file : 'X\(//\)$' \| \
42591          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
42592 echo X$ac_file |
42593     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42594             s//\1/
42595             q
42596           }
42597           /^X\(\/\/\)[^/].*/{
42598             s//\1/
42599             q
42600           }
42601           /^X\(\/\/\)$/{
42602             s//\1/
42603             q
42604           }
42605           /^X\(\/\).*/{
42606             s//\1/
42607             q
42608           }
42609           s/.*/./; q'`/stamp-h$_am_stamp_count
42610  ;;
42612   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
42613 echo "$as_me: executing $ac_file commands" >&6;}
42614  ;;
42615   esac
42618   case $ac_file$ac_mode in
42619     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
42620   # Strip MF so we end up with the name of the file.
42621   mf=`echo "$mf" | sed -e 's/:.*$//'`
42622   # Check whether this is an Automake generated Makefile or not.
42623   # We used to match only the files named `Makefile.in', but
42624   # some people rename them; so instead we look at the file content.
42625   # Grep'ing the first line is not enough: some people post-process
42626   # each Makefile.in and add a new line on top of each file to say so.
42627   # Grep'ing the whole file is not good either: AIX grep has a line
42628   # limit of 2048, but all sed's we know have understand at least 4000.
42629   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
42630     dirpart=`$as_dirname -- "$mf" ||
42631 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42632          X"$mf" : 'X\(//\)[^/]' \| \
42633          X"$mf" : 'X\(//\)$' \| \
42634          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
42635 echo X"$mf" |
42636     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42637             s//\1/
42638             q
42639           }
42640           /^X\(\/\/\)[^/].*/{
42641             s//\1/
42642             q
42643           }
42644           /^X\(\/\/\)$/{
42645             s//\1/
42646             q
42647           }
42648           /^X\(\/\).*/{
42649             s//\1/
42650             q
42651           }
42652           s/.*/./; q'`
42653   else
42654     continue
42655   fi
42656   # Extract the definition of DEPDIR, am__include, and am__quote
42657   # from the Makefile without running `make'.
42658   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42659   test -z "$DEPDIR" && continue
42660   am__include=`sed -n 's/^am__include = //p' < "$mf"`
42661   test -z "am__include" && continue
42662   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42663   # When using ansi2knr, U may be empty or an underscore; expand it
42664   U=`sed -n 's/^U = //p' < "$mf"`
42665   # Find all dependency output files, they are included files with
42666   # $(DEPDIR) in their names.  We invoke sed twice because it is the
42667   # simplest approach to changing $(DEPDIR) to its actual value in the
42668   # expansion.
42669   for file in `sed -n "
42670     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42671        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42672     # Make sure the directory exists.
42673     test -f "$dirpart/$file" && continue
42674     fdir=`$as_dirname -- "$file" ||
42675 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42676          X"$file" : 'X\(//\)[^/]' \| \
42677          X"$file" : 'X\(//\)$' \| \
42678          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
42679 echo X"$file" |
42680     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42681             s//\1/
42682             q
42683           }
42684           /^X\(\/\/\)[^/].*/{
42685             s//\1/
42686             q
42687           }
42688           /^X\(\/\/\)$/{
42689             s//\1/
42690             q
42691           }
42692           /^X\(\/\).*/{
42693             s//\1/
42694             q
42695           }
42696           s/.*/./; q'`
42697     { as_dir=$dirpart/$fdir
42698   case $as_dir in #(
42699   -*) as_dir=./$as_dir;;
42700   esac
42701   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
42702     as_dirs=
42703     while :; do
42704       case $as_dir in #(
42705       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
42706       *) as_qdir=$as_dir;;
42707       esac
42708       as_dirs="'$as_qdir' $as_dirs"
42709       as_dir=`$as_dirname -- "$as_dir" ||
42710 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42711          X"$as_dir" : 'X\(//\)[^/]' \| \
42712          X"$as_dir" : 'X\(//\)$' \| \
42713          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42714 echo X"$as_dir" |
42715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42716             s//\1/
42717             q
42718           }
42719           /^X\(\/\/\)[^/].*/{
42720             s//\1/
42721             q
42722           }
42723           /^X\(\/\/\)$/{
42724             s//\1/
42725             q
42726           }
42727           /^X\(\/\).*/{
42728             s//\1/
42729             q
42730           }
42731           s/.*/./; q'`
42732       test -d "$as_dir" && break
42733     done
42734     test -z "$as_dirs" || eval "mkdir $as_dirs"
42735   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
42736 echo "$as_me: error: cannot create directory $as_dir" >&2;}
42737    { (exit 1); exit 1; }; }; }
42738     # echo "creating $dirpart/$file"
42739     echo '# dummy' > "$dirpart/$file"
42740   done
42741 done
42742  ;;
42743     "libtool":C)
42745     # See if we are running on zsh, and set the options which allow our
42746     # commands through without removal of \ escapes.
42747     if test -n "${ZSH_VERSION+set}" ; then
42748       setopt NO_GLOB_SUBST
42749     fi
42751     cfgfile="${ofile}T"
42752     trap "$RM -f \"$cfgfile\"; exit 1" 1 2 15
42753     $RM -f "$cfgfile"
42755     cat <<_LT_EOF >> "$cfgfile"
42756 #! $SHELL
42758 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
42759 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
42760 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
42761 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
42763 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
42764 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
42765 #                 Inc.
42766 #   Written by Gordon Matzigkeit, 1996
42768 #   This file is part of GNU Libtool.
42770 # GNU Libtool is free software; you can redistribute it and/or
42771 # modify it under the terms of the GNU General Public License as
42772 # published by the Free Software Foundation; either version 2 of
42773 # the License, or (at your option) any later version.
42775 # As a special exception to the GNU General Public License,
42776 # if you distribute this file as part of a program or library that
42777 # is built using GNU Libtool, you may include this file under the
42778 # same distribution terms that you use for the rest of that program.
42780 # GNU Libtool is distributed in the hope that it will be useful,
42781 # but WITHOUT ANY WARRANTY; without even the implied warranty of
42782 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
42783 # GNU General Public License for more details.
42785 # You should have received a copy of the GNU General Public License
42786 # along with GNU Libtool; see the file COPYING.  If not, a copy
42787 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
42788 # obtained by writing to the Free Software Foundation, Inc.,
42789 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
42792 # The names of the tagged configurations supported by this script.
42793 available_tags=""
42795 # ### BEGIN LIBTOOL CONFIG
42797 # Assembler program.
42798 AS=$lt_AS
42800 # DLL creation program.
42801 DLLTOOL=$lt_DLLTOOL
42803 # Object dumper program.
42804 OBJDUMP=$lt_OBJDUMP
42806 # Whether or not to build static libraries.
42807 build_old_libs=$enable_static
42809 # Which release of libtool.m4 was used?
42810 macro_version=$macro_version
42811 macro_revision=$macro_revision
42813 # Whether or not to build shared libraries.
42814 build_libtool_libs=$enable_shared
42816 # What type of objects to build.
42817 pic_mode=$pic_mode
42819 # Whether or not to optimize for fast installation.
42820 fast_install=$enable_fast_install
42822 # Shell to use when invoking shell scripts.
42823 SHELL=$lt_SHELL
42825 # An echo program that protects backslashes.
42826 ECHO=$lt_ECHO
42828 # The host system.
42829 host_alias=$host_alias
42830 host=$host
42831 host_os=$host_os
42833 # The build system.
42834 build_alias=$build_alias
42835 build=$build
42836 build_os=$build_os
42838 # A sed program that does not truncate output.
42839 SED=$lt_SED
42841 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
42842 Xsed="\$SED -e 1s/^X//"
42844 # A grep program that handles long lines.
42845 GREP=$lt_GREP
42847 # An ERE matcher.
42848 EGREP=$lt_EGREP
42850 # A literal string matcher.
42851 FGREP=$lt_FGREP
42853 # A BSD- or MS-compatible name lister.
42854 NM=$lt_NM
42856 # Whether we need soft or hard links.
42857 LN_S=$lt_LN_S
42859 # What is the maximum length of a command?
42860 max_cmd_len=$max_cmd_len
42862 # Object file suffix (normally "o").
42863 objext=$ac_objext
42865 # Executable file suffix (normally "").
42866 exeext=$exeext
42868 # whether the shell understands "unset".
42869 lt_unset=$lt_unset
42871 # turn spaces into newlines.
42872 SP2NL=$lt_lt_SP2NL
42874 # turn newlines into spaces.
42875 NL2SP=$lt_lt_NL2SP
42877 # Method to check whether dependent libraries are shared objects.
42878 deplibs_check_method=$lt_deplibs_check_method
42880 # Command to use when deplibs_check_method == "file_magic".
42881 file_magic_cmd=$lt_file_magic_cmd
42883 # The archiver.
42884 AR=$lt_AR
42885 AR_FLAGS=$lt_AR_FLAGS
42887 # A symbol stripping program.
42888 STRIP=$lt_STRIP
42890 # Commands used to install an old-style archive.
42891 RANLIB=$lt_RANLIB
42892 old_postinstall_cmds=$lt_old_postinstall_cmds
42893 old_postuninstall_cmds=$lt_old_postuninstall_cmds
42895 # Whether to use a lock for old archive extraction.
42896 lock_old_archive_extraction=$lock_old_archive_extraction
42898 # A C compiler.
42899 LTCC=$lt_CC
42901 # LTCC compiler flags.
42902 LTCFLAGS=$lt_CFLAGS
42904 # Take the output of nm and produce a listing of raw symbols and C names.
42905 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
42907 # Transform the output of nm in a proper C declaration.
42908 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
42910 # Transform the output of nm in a C name address pair.
42911 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
42913 # Transform the output of nm in a C name address pair when lib prefix is needed.
42914 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
42916 # The name of the directory that contains temporary libtool files.
42917 objdir=$objdir
42919 # Used to examine libraries when file_magic_cmd begins with "file".
42920 MAGIC_CMD=$MAGIC_CMD
42922 # Must we lock files when doing compilation?
42923 need_locks=$lt_need_locks
42925 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
42926 DSYMUTIL=$lt_DSYMUTIL
42928 # Tool to change global to local symbols on Mac OS X.
42929 NMEDIT=$lt_NMEDIT
42931 # Tool to manipulate fat objects and archives on Mac OS X.
42932 LIPO=$lt_LIPO
42934 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
42935 OTOOL=$lt_OTOOL
42937 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
42938 OTOOL64=$lt_OTOOL64
42940 # Old archive suffix (normally "a").
42941 libext=$libext
42943 # Shared library suffix (normally ".so").
42944 shrext_cmds=$lt_shrext_cmds
42946 # The commands to extract the exported symbol list from a shared archive.
42947 extract_expsyms_cmds=$lt_extract_expsyms_cmds
42949 # Variables whose values should be saved in libtool wrapper scripts and
42950 # restored at link time.
42951 variables_saved_for_relink=$lt_variables_saved_for_relink
42953 # Do we need the "lib" prefix for modules?
42954 need_lib_prefix=$need_lib_prefix
42956 # Do we need a version for libraries?
42957 need_version=$need_version
42959 # Library versioning type.
42960 version_type=$version_type
42962 # Shared library runtime path variable.
42963 runpath_var=$runpath_var
42965 # Shared library path variable.
42966 shlibpath_var=$shlibpath_var
42968 # Is shlibpath searched before the hard-coded library search path?
42969 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
42971 # Format of library name prefix.
42972 libname_spec=$lt_libname_spec
42974 # List of archive names.  First name is the real one, the rest are links.
42975 # The last name is the one that the linker finds with -lNAME
42976 library_names_spec=$lt_library_names_spec
42978 # The coded name of the library, if different from the real name.
42979 soname_spec=$lt_soname_spec
42981 # Permission mode override for installation of shared libraries.
42982 install_override_mode=$lt_install_override_mode
42984 # Command to use after installation of a shared archive.
42985 postinstall_cmds=$lt_postinstall_cmds
42987 # Command to use after uninstallation of a shared archive.
42988 postuninstall_cmds=$lt_postuninstall_cmds
42990 # Commands used to finish a libtool library installation in a directory.
42991 finish_cmds=$lt_finish_cmds
42993 # As "finish_cmds", except a single script fragment to be evaled but
42994 # not shown.
42995 finish_eval=$lt_finish_eval
42997 # Whether we should hardcode library paths into libraries.
42998 hardcode_into_libs=$hardcode_into_libs
43000 # Compile-time system search path for libraries.
43001 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43003 # Run-time system search path for libraries.
43004 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
43006 # Whether dlopen is supported.
43007 dlopen_support=$enable_dlopen
43009 # Whether dlopen of programs is supported.
43010 dlopen_self=$enable_dlopen_self
43012 # Whether dlopen of statically linked programs is supported.
43013 dlopen_self_static=$enable_dlopen_self_static
43015 # Commands to strip libraries.
43016 old_striplib=$lt_old_striplib
43017 striplib=$lt_striplib
43020 # The linker used to build libraries.
43021 LD=$lt_LD
43023 # How to create reloadable object files.
43024 reload_flag=$lt_reload_flag
43025 reload_cmds=$lt_reload_cmds
43027 # Commands used to build an old-style archive.
43028 old_archive_cmds=$lt_old_archive_cmds
43030 # A language specific compiler.
43031 CC=$lt_compiler
43033 # Is the compiler the GNU compiler?
43034 with_gcc=$GCC
43036 # Compiler flag to turn off builtin functions.
43037 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43039 # How to pass a linker flag through the compiler.
43040 wl=$lt_lt_prog_compiler_wl
43042 # Additional compiler flags for building library objects.
43043 pic_flag=$lt_lt_prog_compiler_pic
43045 # Compiler flag to prevent dynamic linking.
43046 link_static_flag=$lt_lt_prog_compiler_static
43048 # Does compiler simultaneously support -c and -o options?
43049 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43051 # Whether or not to add -lc for building shared libraries.
43052 build_libtool_need_lc=$archive_cmds_need_lc
43054 # Whether or not to disallow shared libs when runtime libs are static.
43055 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43057 # Compiler flag to allow reflexive dlopens.
43058 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43060 # Compiler flag to generate shared objects directly from archives.
43061 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43063 # Whether the compiler copes with passing no objects directly.
43064 compiler_needs_object=$lt_compiler_needs_object
43066 # Create an old-style archive from a shared archive.
43067 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43069 # Create a temporary old-style archive to link instead of a shared archive.
43070 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43072 # Commands used to build a shared archive.
43073 archive_cmds=$lt_archive_cmds
43074 archive_expsym_cmds=$lt_archive_expsym_cmds
43076 # Commands used to build a loadable module if different from building
43077 # a shared archive.
43078 module_cmds=$lt_module_cmds
43079 module_expsym_cmds=$lt_module_expsym_cmds
43081 # Whether we are building with GNU ld or not.
43082 with_gnu_ld=$lt_with_gnu_ld
43084 # Flag that allows shared libraries with undefined symbols to be built.
43085 allow_undefined_flag=$lt_allow_undefined_flag
43087 # Flag that enforces no undefined symbols.
43088 no_undefined_flag=$lt_no_undefined_flag
43090 # Flag to hardcode \$libdir into a binary during linking.
43091 # This must work even if \$libdir does not exist
43092 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43094 # If ld is used when linking, flag to hardcode \$libdir into a binary
43095 # during linking.  This must work even if \$libdir does not exist.
43096 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
43098 # Whether we need a single "-rpath" flag with a separated argument.
43099 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43101 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43102 # DIR into the resulting binary.
43103 hardcode_direct=$hardcode_direct
43105 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43106 # DIR into the resulting binary and the resulting library dependency is
43107 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43108 # library is relocated.
43109 hardcode_direct_absolute=$hardcode_direct_absolute
43111 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43112 # into the resulting binary.
43113 hardcode_minus_L=$hardcode_minus_L
43115 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43116 # into the resulting binary.
43117 hardcode_shlibpath_var=$hardcode_shlibpath_var
43119 # Set to "yes" if building a shared library automatically hardcodes DIR
43120 # into the library and all subsequent libraries and executables linked
43121 # against it.
43122 hardcode_automatic=$hardcode_automatic
43124 # Set to yes if linker adds runtime paths of dependent libraries
43125 # to runtime path list.
43126 inherit_rpath=$inherit_rpath
43128 # Whether libtool must link a program against all its dependency libraries.
43129 link_all_deplibs=$link_all_deplibs
43131 # Fix the shell variable \$srcfile for the compiler.
43132 fix_srcfile_path=$lt_fix_srcfile_path
43134 # Set to "yes" if exported symbols are required.
43135 always_export_symbols=$always_export_symbols
43137 # The commands to list exported symbols.
43138 export_symbols_cmds=$lt_export_symbols_cmds
43140 # Symbols that should not be listed in the preloaded symbols.
43141 exclude_expsyms=$lt_exclude_expsyms
43143 # Symbols that must always be exported.
43144 include_expsyms=$lt_include_expsyms
43146 # Commands necessary for linking programs (against libraries) with templates.
43147 prelink_cmds=$lt_prelink_cmds
43149 # Specify filename containing input files.
43150 file_list_spec=$lt_file_list_spec
43152 # How to hardcode a shared library path into an executable.
43153 hardcode_action=$hardcode_action
43155 # ### END LIBTOOL CONFIG
43157 _LT_EOF
43159   case $host_os in
43160   aix3*)
43161     cat <<\_LT_EOF >> "$cfgfile"
43162 # AIX sometimes has problems with the GCC collect2 program.  For some
43163 # reason, if we set the COLLECT_NAMES environment variable, the problems
43164 # vanish in a puff of smoke.
43165 if test "X${COLLECT_NAMES+set}" != Xset; then
43166   COLLECT_NAMES=
43167   export COLLECT_NAMES
43169 _LT_EOF
43170     ;;
43171   esac
43174 ltmain="$ac_aux_dir/ltmain.sh"
43177   # We use sed instead of cat because bash on DJGPP gets confused if
43178   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
43179   # text mode, it properly converts lines to CR/LF.  This bash problem
43180   # is reportedly fixed, but why not run on old versions too?
43181   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
43182     || (rm -f "$cfgfile"; exit 1)
43184   case $xsi_shell in
43185   yes)
43186     cat << \_LT_EOF >> "$cfgfile"
43188 # func_dirname file append nondir_replacement
43189 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
43190 # otherwise set result to NONDIR_REPLACEMENT.
43191 func_dirname ()
43193   case ${1} in
43194     */*) func_dirname_result="${1%/*}${2}" ;;
43195     *  ) func_dirname_result="${3}" ;;
43196   esac
43199 # func_basename file
43200 func_basename ()
43202   func_basename_result="${1##*/}"
43205 # func_dirname_and_basename file append nondir_replacement
43206 # perform func_basename and func_dirname in a single function
43207 # call:
43208 #   dirname:  Compute the dirname of FILE.  If nonempty,
43209 #             add APPEND to the result, otherwise set result
43210 #             to NONDIR_REPLACEMENT.
43211 #             value returned in "$func_dirname_result"
43212 #   basename: Compute filename of FILE.
43213 #             value retuned in "$func_basename_result"
43214 # Implementation must be kept synchronized with func_dirname
43215 # and func_basename. For efficiency, we do not delegate to
43216 # those functions but instead duplicate the functionality here.
43217 func_dirname_and_basename ()
43219   case ${1} in
43220     */*) func_dirname_result="${1%/*}${2}" ;;
43221     *  ) func_dirname_result="${3}" ;;
43222   esac
43223   func_basename_result="${1##*/}"
43226 # func_stripname prefix suffix name
43227 # strip PREFIX and SUFFIX off of NAME.
43228 # PREFIX and SUFFIX must not contain globbing or regex special
43229 # characters, hashes, percent signs, but SUFFIX may contain a leading
43230 # dot (in which case that matches only a dot).
43231 func_stripname ()
43233   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
43234   # positional parameters, so assign one to ordinary parameter first.
43235   func_stripname_result=${3}
43236   func_stripname_result=${func_stripname_result#"${1}"}
43237   func_stripname_result=${func_stripname_result%"${2}"}
43240 # func_opt_split
43241 func_opt_split ()
43243   func_opt_split_opt=${1%%=*}
43244   func_opt_split_arg=${1#*=}
43247 # func_lo2o object
43248 func_lo2o ()
43250   case ${1} in
43251     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
43252     *)    func_lo2o_result=${1} ;;
43253   esac
43256 # func_xform libobj-or-source
43257 func_xform ()
43259   func_xform_result=${1%.*}.lo
43262 # func_arith arithmetic-term...
43263 func_arith ()
43265   func_arith_result=$(( $* ))
43268 # func_len string
43269 # STRING may not start with a hyphen.
43270 func_len ()
43272   func_len_result=${#1}
43275 _LT_EOF
43276     ;;
43277   *) # Bourne compatible functions.
43278     cat << \_LT_EOF >> "$cfgfile"
43280 # func_dirname file append nondir_replacement
43281 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
43282 # otherwise set result to NONDIR_REPLACEMENT.
43283 func_dirname ()
43285   # Extract subdirectory from the argument.
43286   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
43287   if test "X$func_dirname_result" = "X${1}"; then
43288     func_dirname_result="${3}"
43289   else
43290     func_dirname_result="$func_dirname_result${2}"
43291   fi
43294 # func_basename file
43295 func_basename ()
43297   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
43301 # func_stripname prefix suffix name
43302 # strip PREFIX and SUFFIX off of NAME.
43303 # PREFIX and SUFFIX must not contain globbing or regex special
43304 # characters, hashes, percent signs, but SUFFIX may contain a leading
43305 # dot (in which case that matches only a dot).
43306 # func_strip_suffix prefix name
43307 func_stripname ()
43309   case ${2} in
43310     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
43311     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
43312   esac
43315 # sed scripts:
43316 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
43317 my_sed_long_arg='1s/^-[^=]*=//'
43319 # func_opt_split
43320 func_opt_split ()
43322   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
43323   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
43326 # func_lo2o object
43327 func_lo2o ()
43329   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
43332 # func_xform libobj-or-source
43333 func_xform ()
43335   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
43338 # func_arith arithmetic-term...
43339 func_arith ()
43341   func_arith_result=`expr "$@"`
43344 # func_len string
43345 # STRING may not start with a hyphen.
43346 func_len ()
43348   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
43351 _LT_EOF
43352 esac
43354 case $lt_shell_append in
43355   yes)
43356     cat << \_LT_EOF >> "$cfgfile"
43358 # func_append var value
43359 # Append VALUE to the end of shell variable VAR.
43360 func_append ()
43362   eval "$1+=\$2"
43364 _LT_EOF
43365     ;;
43366   *)
43367     cat << \_LT_EOF >> "$cfgfile"
43369 # func_append var value
43370 # Append VALUE to the end of shell variable VAR.
43371 func_append ()
43373   eval "$1=\$$1\$2"
43376 _LT_EOF
43377     ;;
43378   esac
43381   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
43382     || (rm -f "$cfgfile"; exit 1)
43384   mv -f "$cfgfile" "$ofile" ||
43385     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43386   chmod +x "$ofile"
43388  ;;
43389     "sdksyms":C) touch hw/xfree86/sdksyms.dep ;;
43391   esac
43392 done # for ac_tag
43395 { (exit 0); exit 0; }
43396 _ACEOF
43397 chmod +x $CONFIG_STATUS
43398 ac_clean_files=$ac_clean_files_save
43401 # configure is writing to config.log, and then calls config.status.
43402 # config.status does its own redirection, appending to config.log.
43403 # Unfortunately, on DOS this fails, as config.log is still kept open
43404 # by configure, so config.status won't be able to write to it; its
43405 # output is simply discarded.  So we exec the FD to /dev/null,
43406 # effectively closing config.log, so it can be properly (re)opened and
43407 # appended to by config.status.  When coming back to configure, we
43408 # need to make the FD available again.
43409 if test "$no_create" != yes; then
43410   ac_cs_success=:
43411   ac_config_status_args=
43412   test "$silent" = yes &&
43413     ac_config_status_args="$ac_config_status_args --quiet"
43414   exec 5>/dev/null
43415   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43416   exec 5>>config.log
43417   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43418   # would make configure fail if this is the last instruction.
43419   $ac_cs_success || { (exit 1); exit 1; }