1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for xorg-server 1.10.6.
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## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if 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
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57  as_unset=unset
58else
59  as_unset=false
60fi
61
62
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.)
68as_nl='
69'
70IFS=" ""	$as_nl"
71
72# Find who we are.  Look in the path if we contain no directory separator.
73case $0 in
74  *[\\/]* ) as_myself=$0 ;;
75  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78  IFS=$as_save_IFS
79  test -z "$as_dir" && as_dir=.
80  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84     ;;
85esac
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.
88if test "x$as_myself" = x; then
89  as_myself=$0
90fi
91if 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; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for 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
109do
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
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120  as_expr=expr
121else
122  as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126  as_basename=basename
127else
128  as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135	 X"$0" : 'X\(//\)$' \| \
136	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo 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'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157  if (eval ":") 2>/dev/null; then
158  as_have_required=yes
159else
160  as_have_required=no
161fi
162
163  if test $as_have_required = yes && 	 (eval ":
164(as_func_return () {
165  (exit \$1)
166}
167as_func_success () {
168  as_func_return 0
169}
170as_func_failure () {
171  as_func_return 1
172}
173as_func_ret_success () {
174  return 0
175}
176as_func_ret_failure () {
177  return 1
178}
179
180exitcode=0
181if as_func_success; then
182  :
183else
184  exitcode=1
185  echo as_func_success failed.
186fi
187
188if as_func_failure; then
189  exitcode=1
190  echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194  :
195else
196  exitcode=1
197  echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201  exitcode=1
202  echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206  :
207else
208  exitcode=1
209  echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
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; }
219
220(
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  :
230else
231  as_candidate_shells=
232    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
233for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
234do
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
243done
244IFS=$as_save_IFS
245
246
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
251if 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
258else
259  case `(set -o) 2>/dev/null` in
260  *posix*) set -o posix ;;
261esac
262
263fi
264
265
266:
267_ASEOF
268}; then
269  CONFIG_SHELL=$as_shell
270	       as_have_required=yes
271	       if { "$as_shell" 2> /dev/null <<\_ASEOF
272if 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
279else
280  case `(set -o) 2>/dev/null` in
281  *posix*) set -o posix ;;
282esac
283
284fi
285
286
287:
288(as_func_return () {
289  (exit $1)
290}
291as_func_success () {
292  as_func_return 0
293}
294as_func_failure () {
295  as_func_return 1
296}
297as_func_ret_success () {
298  return 0
299}
300as_func_ret_failure () {
301  return 1
302}
303
304exitcode=0
305if as_func_success; then
306  :
307else
308  exitcode=1
309  echo as_func_success failed.
310fi
311
312if as_func_failure; then
313  exitcode=1
314  echo as_func_failure succeeded.
315fi
316
317if as_func_ret_success; then
318  :
319else
320  exitcode=1
321  echo as_func_ret_success failed.
322fi
323
324if as_func_ret_failure; then
325  exitcode=1
326  echo as_func_ret_failure succeeded.
327fi
328
329if ( set x; as_func_ret_success y && test x = "$1" ); then
330  :
331else
332  exitcode=1
333  echo positional parameters were not saved.
334fi
335
336test $exitcode = 0) || { (exit 1); exit 1; }
337
338(
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; }
343
344(
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; }
352
353_ASEOF
354}; then
355  break
356fi
357
358fi
359
360      done
361
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+"$@"}
368fi
369
370
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; }
377fi
378
379
380fi
381
382fi
383
384
385
386(eval "as_func_return () {
387  (exit \$1)
388}
389as_func_success () {
390  as_func_return 0
391}
392as_func_failure () {
393  as_func_return 1
394}
395as_func_ret_success () {
396  return 0
397}
398as_func_ret_failure () {
399  return 1
400}
401
402exitcode=0
403if as_func_success; then
404  :
405else
406  exitcode=1
407  echo as_func_success failed.
408fi
409
410if as_func_failure; then
411  exitcode=1
412  echo as_func_failure succeeded.
413fi
414
415if as_func_ret_success; then
416  :
417else
418  exitcode=1
419  echo as_func_ret_success failed.
420fi
421
422if as_func_ret_failure; then
423  exitcode=1
424  echo as_func_ret_failure succeeded.
425fi
426
427if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428  :
429else
430  exitcode=1
431  echo positional parameters were not saved.
432fi
433
434test \$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
439}
440
441
442
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" || {
447
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; }; }
476
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
483}
484
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487  as_dirname=dirname
488else
489  as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `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';;
501esac
502
503if expr a : '\(a\)' >/dev/null 2>&1 &&
504   test "X`expr 00001 : '.*\(...\)'`" = X001; then
505  as_expr=expr
506else
507  as_expr=false
508fi
509
510rm -f conf$$ conf$$.exe conf$$.file
511if test -d conf$$.dir; then
512  rm -f conf$$.dir/conf$$.file
513else
514  rm -f conf$$.dir
515  mkdir conf$$.dir
516fi
517echo >conf$$.file
518if 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'
526elif ln conf$$.file conf$$ 2>/dev/null; then
527  as_ln_s=ln
528else
529  as_ln_s='cp -p'
530fi
531rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
532rmdir conf$$.dir 2>/dev/null
533
534if mkdir -p . 2>/dev/null; then
535  as_mkdir_p=:
536else
537  test -d ./-p && rmdir ./-p
538  as_mkdir_p=false
539fi
540
541if test -x / >/dev/null 2>&1; then
542  as_test_x='test -x'
543else
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  '
561fi
562as_executable_p=$as_test_x
563
564# Sed expression to map a string onto a valid CPP name.
565as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
566
567# Sed expression to map a string onto a valid variable name.
568as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
569
570
571as_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  }
630'
631SHELL=${CONFIG_SHELL-/bin/sh}
632
633
634exec 7<&0 </dev/null 6>&1
635
636# Name of the host.
637# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
638# so uname gets run too.
639ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
640
641#
642# Initializations.
643#
644ac_default_prefix=/usr/local
645ac_clean_files=
646ac_config_libobj_dir=.
647LIBOBJS=
648cross_compiling=no
649subdirs=
650MFLAGS=
651MAKEFLAGS=
652SHELL=${CONFIG_SHELL-/bin/sh}
653
654# Identity of this package.
655PACKAGE_NAME='xorg-server'
656PACKAGE_TARNAME='xorg-server'
657PACKAGE_VERSION='1.10.6'
658PACKAGE_STRING='xorg-server 1.10.6'
659PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
660
661ac_unique_file="Makefile.am"
662# Factoring default headers for most tests.
663ac_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"
697
698ac_subst_vars='SHELL
699PATH_SEPARATOR
700PACKAGE_NAME
701PACKAGE_TARNAME
702PACKAGE_VERSION
703PACKAGE_STRING
704PACKAGE_BUGREPORT
705exec_prefix
706prefix
707program_transform_name
708bindir
709sbindir
710libexecdir
711datarootdir
712datadir
713sysconfdir
714sharedstatedir
715localstatedir
716includedir
717oldincludedir
718docdir
719infodir
720htmldir
721dvidir
722pdfdir
723psdir
724libdir
725localedir
726mandir
727DEFS
728ECHO_C
729ECHO_N
730ECHO_T
731LIBS
732build_alias
733host_alias
734target_alias
735INSTALL_PROGRAM
736INSTALL_SCRIPT
737INSTALL_DATA
738am__isrc
739CYGPATH_W
740PACKAGE
741VERSION
742ACLOCAL
743AUTOCONF
744AUTOMAKE
745AUTOHEADER
746MAKEINFO
747install_sh
748STRIP
749INSTALL_STRIP_PROGRAM
750mkdir_p
751AWK
752SET_MAKE
753am__leading_dot
754AMTAR
755am__tar
756am__untar
757MAINTAINER_MODE_TRUE
758MAINTAINER_MODE_FALSE
759MAINT
760CC
761CFLAGS
762LDFLAGS
763CPPFLAGS
764ac_ct_CC
765EXEEXT
766OBJEXT
767DEPDIR
768am__include
769am__quote
770AMDEP_TRUE
771AMDEP_FALSE
772AMDEPBACKSLASH
773CCDEPMODE
774am__fastdepCC_TRUE
775am__fastdepCC_FALSE
776CPP
777GREP
778EGREP
779BASE_CFLAGS
780CWARNFLAGS
781STRICT_CFLAGS
782CHANGELOG_CMD
783PKG_CONFIG
784PKG_CONFIG_PATH
785PKG_CONFIG_LIBDIR
786INSTALL_CMD
787build
788build_cpu
789build_vendor
790build_os
791host
792host_cpu
793host_vendor
794host_os
795SED
796APP_MAN_SUFFIX
797LIB_MAN_SUFFIX
798FILE_MAN_SUFFIX
799MISC_MAN_SUFFIX
800DRIVER_MAN_SUFFIX
801ADMIN_MAN_SUFFIX
802APP_MAN_DIR
803LIB_MAN_DIR
804FILE_MAN_DIR
805MISC_MAN_DIR
806DRIVER_MAN_DIR
807ADMIN_MAN_DIR
808XORG_MAN_PAGE
809MAN_SUBSTS
810AM_DEFAULT_VERBOSITY
811DOXYGEN
812HAVE_DOXYGEN_TRUE
813HAVE_DOXYGEN_FALSE
814XORG_SGML_PATH
815STYLESHEET_SRCDIR
816XSL_STYLESHEET
817HAVE_STYLESHEETS_TRUE
818HAVE_STYLESHEETS_FALSE
819CCAS
820CCASFLAGS
821CCASDEPMODE
822am__fastdepCCAS_TRUE
823am__fastdepCCAS_FALSE
824LN_S
825AS
826DLLTOOL
827OBJDUMP
828LIBTOOL
829FGREP
830LD
831DUMPBIN
832ac_ct_DUMPBIN
833NM
834AR
835RANLIB
836DSYMUTIL
837NMEDIT
838LIPO
839OTOOL
840OTOOL64
841LEX
842LEX_OUTPUT_ROOT
843LEXLIB
844YACC
845YFLAGS
846RAWCPP
847RAWCPPFLAGS
848DTRACE
849XSERVER_DTRACE_TRUE
850XSERVER_DTRACE_FALSE
851SPECIAL_DTRACE_OBJECTS_TRUE
852SPECIAL_DTRACE_OBJECTS_FALSE
853DLOPEN_LIBS
854ALLOCA
855NEED_STRLCAT_TRUE
856NEED_STRLCAT_FALSE
857NEED_VSNPRINTF_TRUE
858NEED_VSNPRINTF_FALSE
859AGP_TRUE
860AGP_FALSE
861LNXAPM_TRUE
862LNXAPM_FALSE
863FBDEVHW_TRUE
864FBDEVHW_FALSE
865FREEBSD_KLDLOAD_TRUE
866FREEBSD_KLDLOAD_FALSE
867BSD_APM_TRUE
868BSD_APM_FALSE
869BSD_KQUEUE_APM_TRUE
870BSD_KQUEUE_APM_FALSE
871GLX_ARCH_DEFINES
872ALPHA_VIDEO_TRUE
873ALPHA_VIDEO_FALSE
874ARM_VIDEO_TRUE
875ARM_VIDEO_FALSE
876I386_VIDEO_TRUE
877I386_VIDEO_FALSE
878PPC_VIDEO_TRUE
879PPC_VIDEO_FALSE
880SPARC64_VIDEO_TRUE
881SPARC64_VIDEO_FALSE
882FONTROOTDIR
883FONTMISCDIR
884FONTOTFDIR
885FONTTTFDIR
886FONTTYPE1DIR
887FONT75DPIDIR
888FONT100DPIDIR
889APPLE_APPLICATIONS_DIR
890APPLE_APPLICATION_NAME
891LAUNCHD_ID_PREFIX
892XQUARTZ_SPARKLE
893GLX_TLS
894INSTALL_SETUID_TRUE
895INSTALL_SETUID_FALSE
896SECURE_RPC_TRUE
897SECURE_RPC_FALSE
898INT10_VM86_TRUE
899INT10_VM86_FALSE
900INT10_X86EMU_TRUE
901INT10_X86EMU_FALSE
902INT10_STUB_TRUE
903INT10_STUB_FALSE
904ENABLE_DOCS_TRUE
905ENABLE_DOCS_FALSE
906ENABLE_DEVEL_DOCS_TRUE
907ENABLE_DEVEL_DOCS_FALSE
908XMLTO
909HAVE_XMLTO_TEXT_TRUE
910HAVE_XMLTO_TEXT_FALSE
911HAVE_XMLTO_TRUE
912HAVE_XMLTO_FALSE
913FOP
914HAVE_FOP_TRUE
915HAVE_FOP_FALSE
916INSTALL_LIBXF86CONFIG_TRUE
917INSTALL_LIBXF86CONFIG_FALSE
918SDK_REQUIRED_MODULES
919PIXMAN_CFLAGS
920PIXMAN_LIBS
921UDEV_CFLAGS
922UDEV_LIBS
923CONFIG_UDEV_TRUE
924CONFIG_UDEV_FALSE
925DBUS_CFLAGS
926DBUS_LIBS
927HAVE_DBUS_TRUE
928HAVE_DBUS_FALSE
929CONFIG_DBUS_API_TRUE
930CONFIG_DBUS_API_FALSE
931HAL_CFLAGS
932HAL_LIBS
933CONFIG_HAL_TRUE
934CONFIG_HAL_FALSE
935CONFIG_NEED_DBUS_TRUE
936CONFIG_NEED_DBUS_FALSE
937XV_TRUE
938XV_FALSE
939XVMC_TRUE
940XVMC_FALSE
941XREGISTRY_TRUE
942XREGISTRY_FALSE
943COMPOSITE_TRUE
944COMPOSITE_FALSE
945MITSHM_TRUE
946MITSHM_FALSE
947RECORD_TRUE
948RECORD_FALSE
949SCREENSAVER_TRUE
950SCREENSAVER_FALSE
951RES_TRUE
952RES_FALSE
953XLIB_CFLAGS
954XLIB_LIBS
955GL_CFLAGS
956GL_LIBS
957GLX_TRUE
958GLX_FALSE
959AIGLX_TRUE
960AIGLX_FALSE
961GLX_DEFINES
962DRI_TRUE
963DRI_FALSE
964DRIPROTO_CFLAGS
965DRIPROTO_LIBS
966DRI_CFLAGS
967DRI_LIBS
968DRI2PROTO_CFLAGS
969DRI2PROTO_LIBS
970DRI2_TRUE
971DRI2_FALSE
972LIBDRM_CFLAGS
973LIBDRM_LIBS
974DRI2_AIGLX_TRUE
975DRI2_AIGLX_FALSE
976XINERAMA_TRUE
977XINERAMA_FALSE
978XACE_TRUE
979XACE_FALSE
980XSELINUX_TRUE
981XSELINUX_FALSE
982SELINUX_CFLAGS
983SELINUX_LIBS
984XCSECURITY_TRUE
985XCSECURITY_FALSE
986DBE_TRUE
987DBE_FALSE
988XF86BIGFONT_TRUE
989XF86BIGFONT_FALSE
990DPMSExtension_TRUE
991DPMSExtension_FALSE
992XCALIBRATE_TRUE
993XCALIBRATE_FALSE
994XF86UTILS_TRUE
995XF86UTILS_FALSE
996XAA_TRUE
997XAA_FALSE
998VGAHW_TRUE
999VGAHW_FALSE
1000VBE_TRUE
1001VBE_FALSE
1002INT10MODULE_TRUE
1003INT10MODULE_FALSE
1004XKB_BASE_DIRECTORY
1005XKB_BIN_DIRECTORY
1006XKM_OUTPUT_DIR
1007XKB_COMPILED_DIR
1008XDMCP_CFLAGS
1009XDMCP_LIBS
1010XDMCP_TRUE
1011XDMCP_FALSE
1012XDMAUTH_TRUE
1013XDMAUTH_FALSE
1014COMPILEDDEFAULTFONTPATH
1015PCI_TXT_IDS_PATH
1016SERVER_MISC_CONFIG_PATH
1017BASE_FONT_PATH
1018DRI_DRIVER_PATH
1019VENDOR_NAME_SHORT
1020DEBUG_TRUE
1021DEBUG_FALSE
1022GLIB_CFLAGS
1023GLIB_LIBS
1024UNITTESTS_TRUE
1025UNITTESTS_FALSE
1026DIX_LIB
1027OS_LIB
1028MAIN_LIB
1029LIBSHA1_CFLAGS
1030LIBSHA1_LIBS
1031OPENSSL_CFLAGS
1032OPENSSL_LIBS
1033SHA1_LIBS
1034SHA1_CFLAGS
1035XSERVERCFLAGS_CFLAGS
1036XSERVERCFLAGS_LIBS
1037XSERVERLIBS_CFLAGS
1038XSERVERLIBS_LIBS
1039XSERVER_LIBS
1040XSERVER_SYS_LIBS
1041UTILS_SYS_LIBS
1042LD_EXPORT_SYMBOLS_FLAG
1043XVFB_TRUE
1044XVFB_FALSE
1045XVFB_LIBS
1046XVFB_SYS_LIBS
1047XNESTMODULES_CFLAGS
1048XNESTMODULES_LIBS
1049XNEST_TRUE
1050XNEST_FALSE
1051XNEST_LIBS
1052XNEST_SYS_LIBS
1053symbol_visibility
1054PCIACCESS_CFLAGS
1055PCIACCESS_LIBS
1056SOLARIS_INOUT_ARCH
1057SOLARIS_ASM_CFLAGS
1058DGA_CFLAGS
1059DGA_LIBS
1060XF86VIDMODE_CFLAGS
1061XF86VIDMODE_LIBS
1062XORG_MODULES_CFLAGS
1063XORG_MODULES_LIBS
1064XORG_LIBS
1065XORG_SYS_LIBS
1066XORG_INCS
1067XORG_OS
1068XORG_OS_SUBDIR
1069PERL
1070XORG_CFLAGS
1071XF86CONFIGDIR
1072__XCONFIGFILE__
1073XF86CONFIGFILE
1074__XCONFIGDIR__
1075DEFAULT_MODULE_PATH
1076DEFAULT_LIBRARY_PATH
1077DEFAULT_LOGPREFIX
1078moduledir
1079driverdir
1080sdkdir
1081extdir
1082sysconfigdir
1083logdir
1084abi_ansic
1085abi_videodrv
1086abi_xinput
1087abi_extension
1088XORG_TRUE
1089XORG_FALSE
1090XORG_BUS_LINUXPCI_TRUE
1091XORG_BUS_LINUXPCI_FALSE
1092XORG_BUS_BSDPCI_TRUE
1093XORG_BUS_BSDPCI_FALSE
1094XORG_BUS_SPARC_TRUE
1095XORG_BUS_SPARC_FALSE
1096LINUX_IA64_TRUE
1097LINUX_IA64_FALSE
1098LINUX_ALPHA_TRUE
1099LINUX_ALPHA_FALSE
1100LNXACPI_TRUE
1101LNXACPI_FALSE
1102SOLARIS_ASM_INLINE_TRUE
1103SOLARIS_ASM_INLINE_FALSE
1104SOLARIS_VT_TRUE
1105SOLARIS_VT_FALSE
1106DGA_TRUE
1107DGA_FALSE
1108XF86VIDMODE_TRUE
1109XF86VIDMODE_FALSE
1110SYSCONFDIR
1111DEFAULT_LOGDIR
1112WINDRES
1113XWINMODULES_CFLAGS
1114XWINMODULES_LIBS
1115WINDOWSWM_CFLAGS
1116WINDOWSWM_LIBS
1117XWIN_LIBS
1118XWIN_SERVER_NAME
1119XWIN_SYS_LIBS
1120XWIN_TRUE
1121XWIN_FALSE
1122XWIN_MULTIWINDOW_TRUE
1123XWIN_MULTIWINDOW_FALSE
1124XWIN_MULTIWINDOWEXTWM_TRUE
1125XWIN_MULTIWINDOWEXTWM_FALSE
1126XWIN_CLIPBOARD_TRUE
1127XWIN_CLIPBOARD_FALSE
1128XWIN_GLX_WINDOWS_TRUE
1129XWIN_GLX_WINDOWS_FALSE
1130XWIN_NATIVEGDI_TRUE
1131XWIN_NATIVEGDI_FALSE
1132XWIN_PRIMARYFB_TRUE
1133XWIN_PRIMARYFB_FALSE
1134XWIN_RANDR_TRUE
1135XWIN_RANDR_FALSE
1136XWIN_XV_TRUE
1137XWIN_XV_FALSE
1138DARWIN_LIBS
1139XPBPROXY_CFLAGS
1140XPBPROXY_LIBS
1141OBJC
1142OBJCCLD
1143OBJCLINK
1144OBJCFLAGS
1145OBJCDEPMODE
1146am__fastdepOBJC_TRUE
1147am__fastdepOBJC_FALSE
1148XQUARTZ_TRUE
1149XQUARTZ_FALSE
1150XQUARTZ_SPARKLE_TRUE
1151XQUARTZ_SPARKLE_FALSE
1152STANDALONE_XPBPROXY_TRUE
1153STANDALONE_XPBPROXY_FALSE
1154DMXMODULES_CFLAGS
1155DMXMODULES_LIBS
1156XDMXCONFIG_DEP_CFLAGS
1157XDMXCONFIG_DEP_LIBS
1158DMX_TRUE
1159DMX_FALSE
1160XDMX_CFLAGS
1161XDMX_LIBS
1162XDMX_SYS_LIBS
1163DMXEXAMPLES_DEP_CFLAGS
1164DMXEXAMPLES_DEP_LIBS
1165DMXXMUEXAMPLES_DEP_CFLAGS
1166DMXXMUEXAMPLES_DEP_LIBS
1167DMXXIEXAMPLES_DEP_CFLAGS
1168DMXXIEXAMPLES_DEP_LIBS
1169XTSTEXAMPLES_DEP_CFLAGS
1170XTSTEXAMPLES_DEP_LIBS
1171XRESEXAMPLES_DEP_CFLAGS
1172XRESEXAMPLES_DEP_LIBS
1173X11EXAMPLES_DEP_CFLAGS
1174X11EXAMPLES_DEP_LIBS
1175DMX_BUILD_LNX_TRUE
1176DMX_BUILD_LNX_FALSE
1177DMX_BUILD_USB_TRUE
1178DMX_BUILD_USB_FALSE
1179KDRIVE_TRUE
1180KDRIVE_FALSE
1181TSLIB_CFLAGS
1182TSLIB_LIBS
1183XEPHYR_CFLAGS
1184XEPHYR_LIBS
1185XEPHYR_INCS
1186KDRIVE_INCS
1187KDRIVE_PURE_INCS
1188KDRIVE_CFLAGS
1189KDRIVE_PURE_LIBS
1190KDRIVE_LOCAL_LIBS
1191KDRIVE_LIBS
1192KDRIVELINUX_TRUE
1193KDRIVELINUX_FALSE
1194KDRIVE_EVDEV_TRUE
1195KDRIVE_EVDEV_FALSE
1196KDRIVE_KBD_TRUE
1197KDRIVE_KBD_FALSE
1198KDRIVE_MOUSE_TRUE
1199KDRIVE_MOUSE_FALSE
1200TSLIB_TRUE
1201TSLIB_FALSE
1202KDRIVEFBDEV_TRUE
1203KDRIVEFBDEV_FALSE
1204XEPHYR_TRUE
1205XEPHYR_FALSE
1206BUILD_KDRIVEFBDEVLIB_TRUE
1207BUILD_KDRIVEFBDEVLIB_FALSE
1208XFAKESERVER_TRUE
1209XFAKESERVER_FALSE
1210PROJECTROOT
1211RELEASE_DATE
1212BUILD_DATE
1213BUILD_TIME
1214DIX_CFLAGS
1215LIBOBJS
1216LTLIBOBJS'
1217ac_subst_files=''
1218      ac_precious_vars='build_alias
1219host_alias
1220target_alias
1221CC
1222CFLAGS
1223LDFLAGS
1224LIBS
1225CPPFLAGS
1226CPP
1227PKG_CONFIG
1228PKG_CONFIG_PATH
1229PKG_CONFIG_LIBDIR
1230DOXYGEN
1231CCAS
1232CCASFLAGS
1233YACC
1234YFLAGS
1235XMLTO
1236FOP
1237PIXMAN_CFLAGS
1238PIXMAN_LIBS
1239UDEV_CFLAGS
1240UDEV_LIBS
1241DBUS_CFLAGS
1242DBUS_LIBS
1243HAL_CFLAGS
1244HAL_LIBS
1245XLIB_CFLAGS
1246XLIB_LIBS
1247GL_CFLAGS
1248GL_LIBS
1249DRIPROTO_CFLAGS
1250DRIPROTO_LIBS
1251DRI_CFLAGS
1252DRI_LIBS
1253DRI2PROTO_CFLAGS
1254DRI2PROTO_LIBS
1255LIBDRM_CFLAGS
1256LIBDRM_LIBS
1257SELINUX_CFLAGS
1258SELINUX_LIBS
1259XDMCP_CFLAGS
1260XDMCP_LIBS
1261GLIB_CFLAGS
1262GLIB_LIBS
1263LIBSHA1_CFLAGS
1264LIBSHA1_LIBS
1265OPENSSL_CFLAGS
1266OPENSSL_LIBS
1267XSERVERCFLAGS_CFLAGS
1268XSERVERCFLAGS_LIBS
1269XSERVERLIBS_CFLAGS
1270XSERVERLIBS_LIBS
1271XNESTMODULES_CFLAGS
1272XNESTMODULES_LIBS
1273PCIACCESS_CFLAGS
1274PCIACCESS_LIBS
1275DGA_CFLAGS
1276DGA_LIBS
1277XF86VIDMODE_CFLAGS
1278XF86VIDMODE_LIBS
1279XORG_MODULES_CFLAGS
1280XORG_MODULES_LIBS
1281XWINMODULES_CFLAGS
1282XWINMODULES_LIBS
1283WINDOWSWM_CFLAGS
1284WINDOWSWM_LIBS
1285XPBPROXY_CFLAGS
1286XPBPROXY_LIBS
1287DMXMODULES_CFLAGS
1288DMXMODULES_LIBS
1289XDMXCONFIG_DEP_CFLAGS
1290XDMXCONFIG_DEP_LIBS
1291DMXEXAMPLES_DEP_CFLAGS
1292DMXEXAMPLES_DEP_LIBS
1293DMXXMUEXAMPLES_DEP_CFLAGS
1294DMXXMUEXAMPLES_DEP_LIBS
1295DMXXIEXAMPLES_DEP_CFLAGS
1296DMXXIEXAMPLES_DEP_LIBS
1297XTSTEXAMPLES_DEP_CFLAGS
1298XTSTEXAMPLES_DEP_LIBS
1299XRESEXAMPLES_DEP_CFLAGS
1300XRESEXAMPLES_DEP_LIBS
1301X11EXAMPLES_DEP_CFLAGS
1302X11EXAMPLES_DEP_LIBS
1303TSLIB_CFLAGS
1304TSLIB_LIBS
1305XEPHYR_CFLAGS
1306XEPHYR_LIBS'
1307
1308
1309# Initialize some variables set by options.
1310ac_init_help=
1311ac_init_version=false
1312# The variables have the same names as the options, with
1313# dashes changed to underlines.
1314cache_file=/dev/null
1315exec_prefix=NONE
1316no_create=
1317no_recursion=
1318prefix=NONE
1319program_prefix=NONE
1320program_suffix=NONE
1321program_transform_name=s,x,x,
1322silent=
1323site=
1324srcdir=
1325verbose=
1326x_includes=NONE
1327x_libraries=NONE
1328
1329# Installation directory options.
1330# These are left unexpanded so users can "make install exec_prefix=/foo"
1331# and all the variables that are supposed to be based on exec_prefix
1332# by default will actually change.
1333# Use braces instead of parens because sh, perl, etc. also accept them.
1334# (The list follows the same order as the GNU Coding Standards.)
1335bindir='${exec_prefix}/bin'
1336sbindir='${exec_prefix}/sbin'
1337libexecdir='${exec_prefix}/libexec'
1338datarootdir='${prefix}/share'
1339datadir='${datarootdir}'
1340sysconfdir='${prefix}/etc'
1341sharedstatedir='${prefix}/com'
1342localstatedir='${prefix}/var'
1343includedir='${prefix}/include'
1344oldincludedir='/usr/include'
1345docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1346infodir='${datarootdir}/info'
1347htmldir='${docdir}'
1348dvidir='${docdir}'
1349pdfdir='${docdir}'
1350psdir='${docdir}'
1351libdir='${exec_prefix}/lib'
1352localedir='${datarootdir}/locale'
1353mandir='${datarootdir}/man'
1354
1355ac_prev=
1356ac_dashdash=
1357for ac_option
1358do
1359  # If the previous option needs an argument, assign it.
1360  if test -n "$ac_prev"; then
1361    eval $ac_prev=\$ac_option
1362    ac_prev=
1363    continue
1364  fi
1365
1366  case $ac_option in
1367  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1368  *)	ac_optarg=yes ;;
1369  esac
1370
1371  # Accept the important Cygnus configure options, so we can diagnose typos.
1372
1373  case $ac_dashdash$ac_option in
1374  --)
1375    ac_dashdash=yes ;;
1376
1377  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1378    ac_prev=bindir ;;
1379  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1380    bindir=$ac_optarg ;;
1381
1382  -build | --build | --buil | --bui | --bu)
1383    ac_prev=build_alias ;;
1384  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1385    build_alias=$ac_optarg ;;
1386
1387  -cache-file | --cache-file | --cache-fil | --cache-fi \
1388  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1389    ac_prev=cache_file ;;
1390  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1391  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1392    cache_file=$ac_optarg ;;
1393
1394  --config-cache | -C)
1395    cache_file=config.cache ;;
1396
1397  -datadir | --datadir | --datadi | --datad)
1398    ac_prev=datadir ;;
1399  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1400    datadir=$ac_optarg ;;
1401
1402  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1403  | --dataroo | --dataro | --datar)
1404    ac_prev=datarootdir ;;
1405  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1406  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1407    datarootdir=$ac_optarg ;;
1408
1409  -disable-* | --disable-*)
1410    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1411    # Reject names that are not valid shell variable names.
1412    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1413      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1414   { (exit 1); exit 1; }; }
1415    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1416    eval enable_$ac_feature=no ;;
1417
1418  -docdir | --docdir | --docdi | --doc | --do)
1419    ac_prev=docdir ;;
1420  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1421    docdir=$ac_optarg ;;
1422
1423  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1424    ac_prev=dvidir ;;
1425  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1426    dvidir=$ac_optarg ;;
1427
1428  -enable-* | --enable-*)
1429    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1430    # Reject names that are not valid shell variable names.
1431    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1432      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1433   { (exit 1); exit 1; }; }
1434    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1435    eval enable_$ac_feature=\$ac_optarg ;;
1436
1437  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1438  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1439  | --exec | --exe | --ex)
1440    ac_prev=exec_prefix ;;
1441  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1442  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1443  | --exec=* | --exe=* | --ex=*)
1444    exec_prefix=$ac_optarg ;;
1445
1446  -gas | --gas | --ga | --g)
1447    # Obsolete; use --with-gas.
1448    with_gas=yes ;;
1449
1450  -help | --help | --hel | --he | -h)
1451    ac_init_help=long ;;
1452  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1453    ac_init_help=recursive ;;
1454  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1455    ac_init_help=short ;;
1456
1457  -host | --host | --hos | --ho)
1458    ac_prev=host_alias ;;
1459  -host=* | --host=* | --hos=* | --ho=*)
1460    host_alias=$ac_optarg ;;
1461
1462  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1463    ac_prev=htmldir ;;
1464  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1465  | --ht=*)
1466    htmldir=$ac_optarg ;;
1467
1468  -includedir | --includedir | --includedi | --included | --include \
1469  | --includ | --inclu | --incl | --inc)
1470    ac_prev=includedir ;;
1471  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1472  | --includ=* | --inclu=* | --incl=* | --inc=*)
1473    includedir=$ac_optarg ;;
1474
1475  -infodir | --infodir | --infodi | --infod | --info | --inf)
1476    ac_prev=infodir ;;
1477  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1478    infodir=$ac_optarg ;;
1479
1480  -libdir | --libdir | --libdi | --libd)
1481    ac_prev=libdir ;;
1482  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1483    libdir=$ac_optarg ;;
1484
1485  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1486  | --libexe | --libex | --libe)
1487    ac_prev=libexecdir ;;
1488  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1489  | --libexe=* | --libex=* | --libe=*)
1490    libexecdir=$ac_optarg ;;
1491
1492  -localedir | --localedir | --localedi | --localed | --locale)
1493    ac_prev=localedir ;;
1494  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1495    localedir=$ac_optarg ;;
1496
1497  -localstatedir | --localstatedir | --localstatedi | --localstated \
1498  | --localstate | --localstat | --localsta | --localst | --locals)
1499    ac_prev=localstatedir ;;
1500  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1501  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1502    localstatedir=$ac_optarg ;;
1503
1504  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1505    ac_prev=mandir ;;
1506  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1507    mandir=$ac_optarg ;;
1508
1509  -nfp | --nfp | --nf)
1510    # Obsolete; use --without-fp.
1511    with_fp=no ;;
1512
1513  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1514  | --no-cr | --no-c | -n)
1515    no_create=yes ;;
1516
1517  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1518  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1519    no_recursion=yes ;;
1520
1521  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1522  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1523  | --oldin | --oldi | --old | --ol | --o)
1524    ac_prev=oldincludedir ;;
1525  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1526  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1527  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1528    oldincludedir=$ac_optarg ;;
1529
1530  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1531    ac_prev=prefix ;;
1532  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1533    prefix=$ac_optarg ;;
1534
1535  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1536  | --program-pre | --program-pr | --program-p)
1537    ac_prev=program_prefix ;;
1538  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1539  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1540    program_prefix=$ac_optarg ;;
1541
1542  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1543  | --program-suf | --program-su | --program-s)
1544    ac_prev=program_suffix ;;
1545  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1546  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1547    program_suffix=$ac_optarg ;;
1548
1549  -program-transform-name | --program-transform-name \
1550  | --program-transform-nam | --program-transform-na \
1551  | --program-transform-n | --program-transform- \
1552  | --program-transform | --program-transfor \
1553  | --program-transfo | --program-transf \
1554  | --program-trans | --program-tran \
1555  | --progr-tra | --program-tr | --program-t)
1556    ac_prev=program_transform_name ;;
1557  -program-transform-name=* | --program-transform-name=* \
1558  | --program-transform-nam=* | --program-transform-na=* \
1559  | --program-transform-n=* | --program-transform-=* \
1560  | --program-transform=* | --program-transfor=* \
1561  | --program-transfo=* | --program-transf=* \
1562  | --program-trans=* | --program-tran=* \
1563  | --progr-tra=* | --program-tr=* | --program-t=*)
1564    program_transform_name=$ac_optarg ;;
1565
1566  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1567    ac_prev=pdfdir ;;
1568  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1569    pdfdir=$ac_optarg ;;
1570
1571  -psdir | --psdir | --psdi | --psd | --ps)
1572    ac_prev=psdir ;;
1573  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1574    psdir=$ac_optarg ;;
1575
1576  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1577  | -silent | --silent | --silen | --sile | --sil)
1578    silent=yes ;;
1579
1580  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1581    ac_prev=sbindir ;;
1582  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1583  | --sbi=* | --sb=*)
1584    sbindir=$ac_optarg ;;
1585
1586  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1587  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1588  | --sharedst | --shareds | --shared | --share | --shar \
1589  | --sha | --sh)
1590    ac_prev=sharedstatedir ;;
1591  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1592  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1593  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1594  | --sha=* | --sh=*)
1595    sharedstatedir=$ac_optarg ;;
1596
1597  -site | --site | --sit)
1598    ac_prev=site ;;
1599  -site=* | --site=* | --sit=*)
1600    site=$ac_optarg ;;
1601
1602  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1603    ac_prev=srcdir ;;
1604  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1605    srcdir=$ac_optarg ;;
1606
1607  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1608  | --syscon | --sysco | --sysc | --sys | --sy)
1609    ac_prev=sysconfdir ;;
1610  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1611  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1612    sysconfdir=$ac_optarg ;;
1613
1614  -target | --target | --targe | --targ | --tar | --ta | --t)
1615    ac_prev=target_alias ;;
1616  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1617    target_alias=$ac_optarg ;;
1618
1619  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1620    verbose=yes ;;
1621
1622  -version | --version | --versio | --versi | --vers | -V)
1623    ac_init_version=: ;;
1624
1625  -with-* | --with-*)
1626    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1627    # Reject names that are not valid shell variable names.
1628    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1629      { echo "$as_me: error: invalid package name: $ac_package" >&2
1630   { (exit 1); exit 1; }; }
1631    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1632    eval with_$ac_package=\$ac_optarg ;;
1633
1634  -without-* | --without-*)
1635    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1636    # Reject names that are not valid shell variable names.
1637    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1638      { echo "$as_me: error: invalid package name: $ac_package" >&2
1639   { (exit 1); exit 1; }; }
1640    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1641    eval with_$ac_package=no ;;
1642
1643  --x)
1644    # Obsolete; use --with-x.
1645    with_x=yes ;;
1646
1647  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1648  | --x-incl | --x-inc | --x-in | --x-i)
1649    ac_prev=x_includes ;;
1650  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1651  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1652    x_includes=$ac_optarg ;;
1653
1654  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1655  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1656    ac_prev=x_libraries ;;
1657  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1658  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1659    x_libraries=$ac_optarg ;;
1660
1661  -*) { echo "$as_me: error: unrecognized option: $ac_option
1662Try \`$0 --help' for more information." >&2
1663   { (exit 1); exit 1; }; }
1664    ;;
1665
1666  *=*)
1667    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1668    # Reject names that are not valid shell variable names.
1669    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1670      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1671   { (exit 1); exit 1; }; }
1672    eval $ac_envvar=\$ac_optarg
1673    export $ac_envvar ;;
1674
1675  *)
1676    # FIXME: should be removed in autoconf 3.0.
1677    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1678    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1679      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1680    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1681    ;;
1682
1683  esac
1684done
1685
1686if test -n "$ac_prev"; then
1687  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1688  { echo "$as_me: error: missing argument to $ac_option" >&2
1689   { (exit 1); exit 1; }; }
1690fi
1691
1692# Be sure to have absolute directory names.
1693for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1694		datadir sysconfdir sharedstatedir localstatedir includedir \
1695		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1696		libdir localedir mandir
1697do
1698  eval ac_val=\$$ac_var
1699  case $ac_val in
1700    [\\/$]* | ?:[\\/]* )  continue;;
1701    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1702  esac
1703  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1704   { (exit 1); exit 1; }; }
1705done
1706
1707# There might be people who depend on the old broken behavior: `$host'
1708# used to hold the argument of --host etc.
1709# FIXME: To remove some day.
1710build=$build_alias
1711host=$host_alias
1712target=$target_alias
1713
1714# FIXME: To remove some day.
1715if test "x$host_alias" != x; then
1716  if test "x$build_alias" = x; then
1717    cross_compiling=maybe
1718    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1719    If a cross compiler is detected then cross compile mode will be used." >&2
1720  elif test "x$build_alias" != "x$host_alias"; then
1721    cross_compiling=yes
1722  fi
1723fi
1724
1725ac_tool_prefix=
1726test -n "$host_alias" && ac_tool_prefix=$host_alias-
1727
1728test "$silent" = yes && exec 6>/dev/null
1729
1730
1731ac_pwd=`pwd` && test -n "$ac_pwd" &&
1732ac_ls_di=`ls -di .` &&
1733ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1734  { echo "$as_me: error: Working directory cannot be determined" >&2
1735   { (exit 1); exit 1; }; }
1736test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1737  { echo "$as_me: error: pwd does not report name of working directory" >&2
1738   { (exit 1); exit 1; }; }
1739
1740
1741# Find the source files, if location was not specified.
1742if test -z "$srcdir"; then
1743  ac_srcdir_defaulted=yes
1744  # Try the directory containing this script, then the parent directory.
1745  ac_confdir=`$as_dirname -- "$0" ||
1746$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1747	 X"$0" : 'X\(//\)[^/]' \| \
1748	 X"$0" : 'X\(//\)$' \| \
1749	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1750echo X"$0" |
1751    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1752	    s//\1/
1753	    q
1754	  }
1755	  /^X\(\/\/\)[^/].*/{
1756	    s//\1/
1757	    q
1758	  }
1759	  /^X\(\/\/\)$/{
1760	    s//\1/
1761	    q
1762	  }
1763	  /^X\(\/\).*/{
1764	    s//\1/
1765	    q
1766	  }
1767	  s/.*/./; q'`
1768  srcdir=$ac_confdir
1769  if test ! -r "$srcdir/$ac_unique_file"; then
1770    srcdir=..
1771  fi
1772else
1773  ac_srcdir_defaulted=no
1774fi
1775if test ! -r "$srcdir/$ac_unique_file"; then
1776  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1777  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1778   { (exit 1); exit 1; }; }
1779fi
1780ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1781ac_abs_confdir=`(
1782	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1783   { (exit 1); exit 1; }; }
1784	pwd)`
1785# When building in place, set srcdir=.
1786if test "$ac_abs_confdir" = "$ac_pwd"; then
1787  srcdir=.
1788fi
1789# Remove unnecessary trailing slashes from srcdir.
1790# Double slashes in file names in object file debugging info
1791# mess up M-x gdb in Emacs.
1792case $srcdir in
1793*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1794esac
1795for ac_var in $ac_precious_vars; do
1796  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1797  eval ac_env_${ac_var}_value=\$${ac_var}
1798  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1799  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1800done
1801
1802#
1803# Report the --help message.
1804#
1805if test "$ac_init_help" = "long"; then
1806  # Omit some internal or obsolete options to make the list less imposing.
1807  # This message is too long to be a string in the A/UX 3.1 sh.
1808  cat <<_ACEOF
1809\`configure' configures xorg-server 1.10.6 to adapt to many kinds of systems.
1810
1811Usage: $0 [OPTION]... [VAR=VALUE]...
1812
1813To assign environment variables (e.g., CC, CFLAGS...), specify them as
1814VAR=VALUE.  See below for descriptions of some of the useful variables.
1815
1816Defaults for the options are specified in brackets.
1817
1818Configuration:
1819  -h, --help              display this help and exit
1820      --help=short        display options specific to this package
1821      --help=recursive    display the short help of all the included packages
1822  -V, --version           display version information and exit
1823  -q, --quiet, --silent   do not print \`checking...' messages
1824      --cache-file=FILE   cache test results in FILE [disabled]
1825  -C, --config-cache      alias for \`--cache-file=config.cache'
1826  -n, --no-create         do not create output files
1827      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1828
1829Installation directories:
1830  --prefix=PREFIX         install architecture-independent files in PREFIX
1831			  [$ac_default_prefix]
1832  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1833			  [PREFIX]
1834
1835By default, \`make install' will install all the files in
1836\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1837an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1838for instance \`--prefix=\$HOME'.
1839
1840For better control, use the options below.
1841
1842Fine tuning of the installation directories:
1843  --bindir=DIR           user executables [EPREFIX/bin]
1844  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1845  --libexecdir=DIR       program executables [EPREFIX/libexec]
1846  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1847  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1848  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1849  --libdir=DIR           object code libraries [EPREFIX/lib]
1850  --includedir=DIR       C header files [PREFIX/include]
1851  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1852  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1853  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1854  --infodir=DIR          info documentation [DATAROOTDIR/info]
1855  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1856  --mandir=DIR           man documentation [DATAROOTDIR/man]
1857  --docdir=DIR           documentation root [DATAROOTDIR/doc/xorg-server]
1858  --htmldir=DIR          html documentation [DOCDIR]
1859  --dvidir=DIR           dvi documentation [DOCDIR]
1860  --pdfdir=DIR           pdf documentation [DOCDIR]
1861  --psdir=DIR            ps documentation [DOCDIR]
1862_ACEOF
1863
1864  cat <<\_ACEOF
1865
1866Program names:
1867  --program-prefix=PREFIX            prepend PREFIX to installed program names
1868  --program-suffix=SUFFIX            append SUFFIX to installed program names
1869  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1870
1871System types:
1872  --build=BUILD     configure for building on BUILD [guessed]
1873  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1874_ACEOF
1875fi
1876
1877if test -n "$ac_init_help"; then
1878  case $ac_init_help in
1879     short | recursive ) echo "Configuration of xorg-server 1.10.6:";;
1880   esac
1881  cat <<\_ACEOF
1882
1883Optional Features:
1884  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1885  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1886  --enable-maintainer-mode  enable make rules and dependencies not useful
1887			  (and sometimes confusing) to the casual installer
1888  --disable-dependency-tracking  speeds up one-time build
1889  --enable-dependency-tracking   do not reject slow dependency extractors
1890  --disable-selective-werror
1891                          Turn off selective compiler errors. (default:
1892                          enabled)
1893  --enable-strict-compilation
1894                          Enable all warnings from compiler and make them
1895                          errors (default: disabled)
1896  --enable-static[=PKGS]  build static libraries [default=no]
1897  --enable-shared[=PKGS]  build shared libraries [default=yes]
1898  --enable-fast-install[=PKGS]
1899                          optimize for fast installation [default=yes]
1900  --disable-libtool-lock  avoid locking (might break parallel builds)
1901  --disable-largefile     omit support for large files
1902  --enable-werror         Obsolete - use --enable-strict-compilation instead
1903  --enable-debug          Enable debugging (default: disabled)
1904  --enable-unit-tests     Enable unit-tests (default: auto)
1905  --enable-use-sigio-by-default
1906  Enable SIGIO input handlers by default (default: $USE_SIGIO_BY_DEFAULT)
1907
1908  --enable-sparkle        Enable updating of X11.app using the Sparkle
1909                          Framework (default: disabled)
1910  --enable-install-libxf86config
1911                          Install libxf86config (default: disabled)
1912  --enable-visibility     Enable symbol visibility (default: auto)
1913  --enable-pc98           Enable PC98 support in Xorg (default: auto)
1914  --enable-aiglx          Build accelerated indirect GLX (default: enabled)
1915  --enable-glx-tls        Build GLX with TLS support (default: auto)
1916  --disable-registry      Build string registry module (default: enabled)
1917  --disable-composite     Build Composite extension (default: enabled)
1918  --disable-shm           Build SHM extension (default: enabled)
1919  --disable-xres          Build XRes extension (default: enabled)
1920  --disable-record        Build Record extension (default: enabled)
1921  --disable-xv            Build Xv extension (default: enabled)
1922  --disable-xvmc          Build XvMC extension (default: enabled)
1923  --disable-dga           Build DGA extension (default: auto)
1924  --disable-screensaver   Build ScreenSaver extension (default: enabled)
1925  --disable-xdmcp         Build XDMCP extension (default: auto)
1926  --disable-xdm-auth-1    Build XDM-Auth-1 extension (default: auto)
1927  --disable-glx           Build GLX extension (default: enabled)
1928  --enable-dri            Build DRI extension (default: auto)
1929  --enable-dri2           Build DRI2 extension (default: auto)
1930  --disable-xinerama      Build Xinerama extension (default: enabled)
1931  --disable-xf86vidmode   Build XF86VidMode extension (default: auto)
1932  --disable-xace          Build X-ACE extension (default: enabled)
1933  --enable-xselinux       Build SELinux extension (default: disabled)
1934  --enable-xcsecurity     Build Security extension (default: disabled)
1935  --enable-xcalibrate     Build XCalibrate extension (default: disabled)
1936  --enable-tslib          Build kdrive tslib touchscreen support (default:
1937                          disabled)
1938  --disable-dbe           Build DBE extension (default: enabled)
1939  --enable-xf86bigfont    Build XF86 Big Font extension (default: disabled)
1940  --disable-dpms          Build DPMS extension (default: enabled)
1941  --enable-config-udev    Build udev support (default: auto)
1942  --enable-config-dbus    Build D-BUS API support (default: no)
1943  --disable-config-hal    Build HAL support (default: auto)
1944  --enable-xfree86-utils  Build xfree86 DDX utilities (default: enabled)
1945  --enable-xaa            Build XAA (default: enabled)
1946  --enable-vgahw          Build Xorg with vga access (default: enabled)
1947  --enable-vbe            Build Xorg with VBE module (default: enabled)
1948  --enable-int10-module   Build Xorg with int10 module (default: enabled)
1949  --enable-windowswm      Build XWin with WindowsWM extension (default: no)
1950  --enable-libdrm         Build Xorg with libdrm support (default: enabled)
1951  --enable-xorg           Build Xorg server (default: auto)
1952  --enable-dmx            Build DMX server (default: auto)
1953  --enable-xvfb           Build Xvfb server (default: yes)
1954  --enable-xnest          Build Xnest server (default: auto)
1955  --enable-xquartz        Build Xquartz server for OS-X (default: auto)
1956  --enable-standalone-xpbproxy
1957                          Build a standalone xpbproxy (in addition to the one
1958                          integrated into Xquartz as a separate thread)
1959                          (default: no)
1960  --enable-xwin           Build XWin server (default: auto)
1961  --enable-kdrive         Build kdrive servers (default: no)
1962  --enable-xephyr         Build the kdrive Xephyr server (default: auto)
1963  --enable-xfake          Build the kdrive 'fake' server (default: auto)
1964  --enable-xfbdev         Build the kdrive framebuffer device server (default:
1965                          auto)
1966  --enable-kdrive-kbd     Build kbd driver for kdrive (default: auto)
1967  --enable-kdrive-mouse   Build mouse driver for kdrive (default: auto)
1968  --enable-kdrive-evdev   Build evdev driver for kdrive (default: auto)
1969  --enable-install-setuid Install Xorg server as owned by root with setuid bit
1970                          (default: auto)
1971  --enable-unix-transport Enable UNIX domain socket transport
1972  --enable-tcp-transport  Enable TCP socket transport
1973  --enable-ipv6           Enable IPv6 support
1974  --enable-local-transport
1975                          Enable os-specific local transport
1976  --enable-secure-rpc     Enable Secure RPC
1977  --enable-docs           Enable building the documentation (default: yes)
1978  --enable-devel-docs     Enable building the developer documentation
1979                          (default: yes)
1980
1981Optional Packages:
1982  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1983  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1984  --with-doxygen          Use doxygen to regenerate documentation (default:
1985                          auto)
1986  --with-pic              try to use only PIC/non-PIC objects [default=use
1987                          both]
1988  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1989  --with-dtrace=PATH      Enable dtrace probes (default: enabled if dtrace
1990                          found)
1991  --with-int10=BACKEND    int10 backend: vm86, x86emu or stub
1992  --with-vendor-name=VENDOR
1993                          Vendor string reported by the server
1994  --with-vendor-name-short=VENDOR
1995                          Short version of vendor string reported by the
1996                          server
1997  --with-vendor-web=URL   Vendor web address reported by the server
1998  --with-module-dir=DIR   Directory where modules are installed (default:
1999                          $libdir/xorg/modules)
2000  --with-log-dir=DIR      Directory where log files are kept (default:
2001                          $localstatedir/log)
2002  --with-builder-addr=ADDRESS
2003                          Builder address (default:
2004                          xorg@lists.freedesktop.org)
2005  --with-os-name=OSNAME   Name of OS (default: output of "uname -srm")
2006  --with-os-vendor=OSVENDOR
2007                          Name of OS vendor
2008  --with-builderstring=BUILDERSTRING
2009                          Additional builder string
2010  --with-fontrootdir=DIR  Path to root directory for font files
2011  --with-fontmiscdir=DIR  Path to misc files [FONTROOTDIR/misc]
2012  --with-fontotfdir=DIR   Path to OTF files [FONTROOTDIR/OTF]
2013  --with-fontttfdir=DIR   Path to TTF files [FONTROOTDIR/TTF]
2014  --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1]
2015  --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi]
2016  --with-font100dpidir=DIR
2017                          Path to 100dpi files [FONTROOTDIR/100dpi]
2018  --with-default-font-path=PATH
2019                          Comma separated list of font dirs
2020  --with-xkb-path=PATH    Path to XKB base dir (default: ${datadir}/X11/xkb)
2021  --with-xkb-output=PATH  Path to XKB output dir (default:
2022                          ${datadir}/X11/xkb/compiled)
2023  --with-default-xkb-rules=RULES
2024                          Keyboard ruleset (default: base/evdev)
2025  --with-default-xkb-model=MODEL
2026                          Keyboard model (default: pc105)
2027  --with-default-xkb-layout=LAYOUT
2028                          Keyboard layout (default: us)
2029  --with-default-xkb-variant=VARIANT
2030                          Keyboard variant (default: (none))
2031  --with-default-xkb-options=OPTIONS
2032                          Keyboard layout options (default: (none))
2033  --with-serverconfig-path=PATH
2034                          Directory where ancillary server config files are
2035                          installed (default: ${libdir}/xorg)
2036  --with-apple-applications-dir=PATH
2037                          Path to the Applications directory (default:
2038                          /Applications/Utilities)
2039  --with-apple-application-name=NAME
2040                          Name for the .app (default: X11)
2041  --with-launchd-id-prefix=PATH
2042                          Prefix to use for launchd identifiers (default:
2043                          org.x)
2044  --with-xmlto            Use xmlto to regenerate documentation (default:
2045                          auto)
2046  --with-fop              Use fop to regenerate documentation (default: auto)
2047  --with-xkb-bin-directory=DIR
2048                          Directory containing xkbcomp program
2049  --with-sha1=libc|libmd|libgcrypt|libcrypto|libsha1|CommonCrypto
2050                          choose SHA1 implementation
2051
2052Some influential environment variables:
2053  CC          C compiler command
2054  CFLAGS      C compiler flags
2055  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2056              nonstandard directory <lib dir>
2057  LIBS        libraries to pass to the linker, e.g. -l<library>
2058  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2059              you have headers in a nonstandard directory <include dir>
2060  CPP         C preprocessor
2061  PKG_CONFIG  path to pkg-config utility
2062  PKG_CONFIG_PATH
2063              directories to add to pkg-config's search path
2064  PKG_CONFIG_LIBDIR
2065              path overriding pkg-config's built-in search path
2066  DOXYGEN     Path to doxygen command
2067  CCAS        assembler compiler command (defaults to CC)
2068  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
2069  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
2070              the first program found out of: `bison -y', `byacc', `yacc'.
2071  YFLAGS      The list of arguments that will be passed by default to $YACC.
2072              This script will default YFLAGS to the empty string to avoid a
2073              default value of `-d' given by some make applications.
2074  XMLTO       Path to xmlto command
2075  FOP         Path to fop command
2076  PIXMAN_CFLAGS
2077              C compiler flags for PIXMAN, overriding pkg-config
2078  PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config
2079  UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
2080  UDEV_LIBS   linker flags for UDEV, overriding pkg-config
2081  DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
2082  DBUS_LIBS   linker flags for DBUS, overriding pkg-config
2083  HAL_CFLAGS  C compiler flags for HAL, overriding pkg-config
2084  HAL_LIBS    linker flags for HAL, overriding pkg-config
2085  XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config
2086  XLIB_LIBS   linker flags for XLIB, overriding pkg-config
2087  GL_CFLAGS   C compiler flags for GL, overriding pkg-config
2088  GL_LIBS     linker flags for GL, overriding pkg-config
2089  DRIPROTO_CFLAGS
2090              C compiler flags for DRIPROTO, overriding pkg-config
2091  DRIPROTO_LIBS
2092              linker flags for DRIPROTO, overriding pkg-config
2093  DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
2094  DRI_LIBS    linker flags for DRI, overriding pkg-config
2095  DRI2PROTO_CFLAGS
2096              C compiler flags for DRI2PROTO, overriding pkg-config
2097  DRI2PROTO_LIBS
2098              linker flags for DRI2PROTO, overriding pkg-config
2099  LIBDRM_CFLAGS
2100              C compiler flags for LIBDRM, overriding pkg-config
2101  LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
2102  SELINUX_CFLAGS
2103              C compiler flags for SELINUX, overriding pkg-config
2104  SELINUX_LIBS
2105              linker flags for SELINUX, overriding pkg-config
2106  XDMCP_CFLAGS
2107              C compiler flags for XDMCP, overriding pkg-config
2108  XDMCP_LIBS  linker flags for XDMCP, overriding pkg-config
2109  GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
2110  GLIB_LIBS   linker flags for GLIB, overriding pkg-config
2111  LIBSHA1_CFLAGS
2112              C compiler flags for LIBSHA1, overriding pkg-config
2113  LIBSHA1_LIBS
2114              linker flags for LIBSHA1, overriding pkg-config
2115  OPENSSL_CFLAGS
2116              C compiler flags for OPENSSL, overriding pkg-config
2117  OPENSSL_LIBS
2118              linker flags for OPENSSL, overriding pkg-config
2119  XSERVERCFLAGS_CFLAGS
2120              C compiler flags for XSERVERCFLAGS, overriding pkg-config
2121  XSERVERCFLAGS_LIBS
2122              linker flags for XSERVERCFLAGS, overriding pkg-config
2123  XSERVERLIBS_CFLAGS
2124              C compiler flags for XSERVERLIBS, overriding pkg-config
2125  XSERVERLIBS_LIBS
2126              linker flags for XSERVERLIBS, overriding pkg-config
2127  XNESTMODULES_CFLAGS
2128              C compiler flags for XNESTMODULES, overriding pkg-config
2129  XNESTMODULES_LIBS
2130              linker flags for XNESTMODULES, overriding pkg-config
2131  PCIACCESS_CFLAGS
2132              C compiler flags for PCIACCESS, overriding pkg-config
2133  PCIACCESS_LIBS
2134              linker flags for PCIACCESS, overriding pkg-config
2135  DGA_CFLAGS  C compiler flags for DGA, overriding pkg-config
2136  DGA_LIBS    linker flags for DGA, overriding pkg-config
2137  XF86VIDMODE_CFLAGS
2138              C compiler flags for XF86VIDMODE, overriding pkg-config
2139  XF86VIDMODE_LIBS
2140              linker flags for XF86VIDMODE, overriding pkg-config
2141  XORG_MODULES_CFLAGS
2142              C compiler flags for XORG_MODULES, overriding pkg-config
2143  XORG_MODULES_LIBS
2144              linker flags for XORG_MODULES, overriding pkg-config
2145  XWINMODULES_CFLAGS
2146              C compiler flags for XWINMODULES, overriding pkg-config
2147  XWINMODULES_LIBS
2148              linker flags for XWINMODULES, overriding pkg-config
2149  WINDOWSWM_CFLAGS
2150              C compiler flags for WINDOWSWM, overriding pkg-config
2151  WINDOWSWM_LIBS
2152              linker flags for WINDOWSWM, overriding pkg-config
2153  XPBPROXY_CFLAGS
2154              C compiler flags for XPBPROXY, overriding pkg-config
2155  XPBPROXY_LIBS
2156              linker flags for XPBPROXY, overriding pkg-config
2157  DMXMODULES_CFLAGS
2158              C compiler flags for DMXMODULES, overriding pkg-config
2159  DMXMODULES_LIBS
2160              linker flags for DMXMODULES, overriding pkg-config
2161  XDMXCONFIG_DEP_CFLAGS
2162              C compiler flags for XDMXCONFIG_DEP, overriding pkg-config
2163  XDMXCONFIG_DEP_LIBS
2164              linker flags for XDMXCONFIG_DEP, overriding pkg-config
2165  DMXEXAMPLES_DEP_CFLAGS
2166              C compiler flags for DMXEXAMPLES_DEP, overriding pkg-config
2167  DMXEXAMPLES_DEP_LIBS
2168              linker flags for DMXEXAMPLES_DEP, overriding pkg-config
2169  DMXXMUEXAMPLES_DEP_CFLAGS
2170              C compiler flags for DMXXMUEXAMPLES_DEP, overriding pkg-config
2171  DMXXMUEXAMPLES_DEP_LIBS
2172              linker flags for DMXXMUEXAMPLES_DEP, overriding pkg-config
2173  DMXXIEXAMPLES_DEP_CFLAGS
2174              C compiler flags for DMXXIEXAMPLES_DEP, overriding pkg-config
2175  DMXXIEXAMPLES_DEP_LIBS
2176              linker flags for DMXXIEXAMPLES_DEP, overriding pkg-config
2177  XTSTEXAMPLES_DEP_CFLAGS
2178              C compiler flags for XTSTEXAMPLES_DEP, overriding pkg-config
2179  XTSTEXAMPLES_DEP_LIBS
2180              linker flags for XTSTEXAMPLES_DEP, overriding pkg-config
2181  XRESEXAMPLES_DEP_CFLAGS
2182              C compiler flags for XRESEXAMPLES_DEP, overriding pkg-config
2183  XRESEXAMPLES_DEP_LIBS
2184              linker flags for XRESEXAMPLES_DEP, overriding pkg-config
2185  X11EXAMPLES_DEP_CFLAGS
2186              C compiler flags for X11EXAMPLES_DEP, overriding pkg-config
2187  X11EXAMPLES_DEP_LIBS
2188              linker flags for X11EXAMPLES_DEP, overriding pkg-config
2189  TSLIB_CFLAGS
2190              C compiler flags for TSLIB, overriding pkg-config
2191  TSLIB_LIBS  linker flags for TSLIB, overriding pkg-config
2192  XEPHYR_CFLAGS
2193              C compiler flags for XEPHYR, overriding pkg-config
2194  XEPHYR_LIBS linker flags for XEPHYR, overriding pkg-config
2195
2196Use these variables to override the choices made by `configure' or to help
2197it to find libraries and programs with nonstandard names/locations.
2198
2199Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
2200_ACEOF
2201ac_status=$?
2202fi
2203
2204if test "$ac_init_help" = "recursive"; then
2205  # If there are subdirs, report their specific --help.
2206  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2207    test -d "$ac_dir" || continue
2208    ac_builddir=.
2209
2210case "$ac_dir" in
2211.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2212*)
2213  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2214  # A ".." for each directory in $ac_dir_suffix.
2215  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2216  case $ac_top_builddir_sub in
2217  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2218  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2219  esac ;;
2220esac
2221ac_abs_top_builddir=$ac_pwd
2222ac_abs_builddir=$ac_pwd$ac_dir_suffix
2223# for backward compatibility:
2224ac_top_builddir=$ac_top_build_prefix
2225
2226case $srcdir in
2227  .)  # We are building in place.
2228    ac_srcdir=.
2229    ac_top_srcdir=$ac_top_builddir_sub
2230    ac_abs_top_srcdir=$ac_pwd ;;
2231  [\\/]* | ?:[\\/]* )  # Absolute name.
2232    ac_srcdir=$srcdir$ac_dir_suffix;
2233    ac_top_srcdir=$srcdir
2234    ac_abs_top_srcdir=$srcdir ;;
2235  *) # Relative name.
2236    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2237    ac_top_srcdir=$ac_top_build_prefix$srcdir
2238    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2239esac
2240ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2241
2242    cd "$ac_dir" || { ac_status=$?; continue; }
2243    # Check for guested configure.
2244    if test -f "$ac_srcdir/configure.gnu"; then
2245      echo &&
2246      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2247    elif test -f "$ac_srcdir/configure"; then
2248      echo &&
2249      $SHELL "$ac_srcdir/configure" --help=recursive
2250    else
2251      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2252    fi || ac_status=$?
2253    cd "$ac_pwd" || { ac_status=$?; break; }
2254  done
2255fi
2256
2257test -n "$ac_init_help" && exit $ac_status
2258if $ac_init_version; then
2259  cat <<\_ACEOF
2260xorg-server configure 1.10.6
2261generated by GNU Autoconf 2.61
2262
2263Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
22642002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2265This configure script is free software; the Free Software Foundation
2266gives unlimited permission to copy, distribute and modify it.
2267_ACEOF
2268  exit
2269fi
2270cat >config.log <<_ACEOF
2271This file contains any messages produced by compilers while
2272running configure, to aid debugging if configure makes a mistake.
2273
2274It was created by xorg-server $as_me 1.10.6, which was
2275generated by GNU Autoconf 2.61.  Invocation command line was
2276
2277  $ $0 $@
2278
2279_ACEOF
2280exec 5>>config.log
2281{
2282cat <<_ASUNAME
2283## --------- ##
2284## Platform. ##
2285## --------- ##
2286
2287hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2288uname -m = `(uname -m) 2>/dev/null || echo unknown`
2289uname -r = `(uname -r) 2>/dev/null || echo unknown`
2290uname -s = `(uname -s) 2>/dev/null || echo unknown`
2291uname -v = `(uname -v) 2>/dev/null || echo unknown`
2292
2293/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2294/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2295
2296/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2297/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2298/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2299/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2300/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2301/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2302/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2303
2304_ASUNAME
2305
2306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307for as_dir in $PATH
2308do
2309  IFS=$as_save_IFS
2310  test -z "$as_dir" && as_dir=.
2311  echo "PATH: $as_dir"
2312done
2313IFS=$as_save_IFS
2314
2315} >&5
2316
2317cat >&5 <<_ACEOF
2318
2319
2320## ----------- ##
2321## Core tests. ##
2322## ----------- ##
2323
2324_ACEOF
2325
2326
2327# Keep a trace of the command line.
2328# Strip out --no-create and --no-recursion so they do not pile up.
2329# Strip out --silent because we don't want to record it for future runs.
2330# Also quote any args containing shell meta-characters.
2331# Make two passes to allow for proper duplicate-argument suppression.
2332ac_configure_args=
2333ac_configure_args0=
2334ac_configure_args1=
2335ac_must_keep_next=false
2336for ac_pass in 1 2
2337do
2338  for ac_arg
2339  do
2340    case $ac_arg in
2341    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2342    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2343    | -silent | --silent | --silen | --sile | --sil)
2344      continue ;;
2345    *\'*)
2346      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2347    esac
2348    case $ac_pass in
2349    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2350    2)
2351      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2352      if test $ac_must_keep_next = true; then
2353	ac_must_keep_next=false # Got value, back to normal.
2354      else
2355	case $ac_arg in
2356	  *=* | --config-cache | -C | -disable-* | --disable-* \
2357	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2358	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2359	  | -with-* | --with-* | -without-* | --without-* | --x)
2360	    case "$ac_configure_args0 " in
2361	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2362	    esac
2363	    ;;
2364	  -* ) ac_must_keep_next=true ;;
2365	esac
2366      fi
2367      ac_configure_args="$ac_configure_args '$ac_arg'"
2368      ;;
2369    esac
2370  done
2371done
2372$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2373$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2374
2375# When interrupted or exit'd, cleanup temporary files, and complete
2376# config.log.  We remove comments because anyway the quotes in there
2377# would cause problems or look ugly.
2378# WARNING: Use '\'' to represent an apostrophe within the trap.
2379# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2380trap 'exit_status=$?
2381  # Save into config.log some information that might help in debugging.
2382  {
2383    echo
2384
2385    cat <<\_ASBOX
2386## ---------------- ##
2387## Cache variables. ##
2388## ---------------- ##
2389_ASBOX
2390    echo
2391    # The following way of writing the cache mishandles newlines in values,
2392(
2393  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2394    eval ac_val=\$$ac_var
2395    case $ac_val in #(
2396    *${as_nl}*)
2397      case $ac_var in #(
2398      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2399echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2400      esac
2401      case $ac_var in #(
2402      _ | IFS | as_nl) ;; #(
2403      *) $as_unset $ac_var ;;
2404      esac ;;
2405    esac
2406  done
2407  (set) 2>&1 |
2408    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2409    *${as_nl}ac_space=\ *)
2410      sed -n \
2411	"s/'\''/'\''\\\\'\'''\''/g;
2412	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2413      ;; #(
2414    *)
2415      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2416      ;;
2417    esac |
2418    sort
2419)
2420    echo
2421
2422    cat <<\_ASBOX
2423## ----------------- ##
2424## Output variables. ##
2425## ----------------- ##
2426_ASBOX
2427    echo
2428    for ac_var in $ac_subst_vars
2429    do
2430      eval ac_val=\$$ac_var
2431      case $ac_val in
2432      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2433      esac
2434      echo "$ac_var='\''$ac_val'\''"
2435    done | sort
2436    echo
2437
2438    if test -n "$ac_subst_files"; then
2439      cat <<\_ASBOX
2440## ------------------- ##
2441## File substitutions. ##
2442## ------------------- ##
2443_ASBOX
2444      echo
2445      for ac_var in $ac_subst_files
2446      do
2447	eval ac_val=\$$ac_var
2448	case $ac_val in
2449	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2450	esac
2451	echo "$ac_var='\''$ac_val'\''"
2452      done | sort
2453      echo
2454    fi
2455
2456    if test -s confdefs.h; then
2457      cat <<\_ASBOX
2458## ----------- ##
2459## confdefs.h. ##
2460## ----------- ##
2461_ASBOX
2462      echo
2463      cat confdefs.h
2464      echo
2465    fi
2466    test "$ac_signal" != 0 &&
2467      echo "$as_me: caught signal $ac_signal"
2468    echo "$as_me: exit $exit_status"
2469  } >&5
2470  rm -f core *.core core.conftest.* &&
2471    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2472    exit $exit_status
2473' 0
2474for ac_signal in 1 2 13 15; do
2475  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2476done
2477ac_signal=0
2478
2479# confdefs.h avoids OS command line length limits that DEFS can exceed.
2480rm -f -r conftest* confdefs.h
2481
2482# Predefined preprocessor variables.
2483
2484cat >>confdefs.h <<_ACEOF
2485#define PACKAGE_NAME "$PACKAGE_NAME"
2486_ACEOF
2487
2488
2489cat >>confdefs.h <<_ACEOF
2490#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2491_ACEOF
2492
2493
2494cat >>confdefs.h <<_ACEOF
2495#define PACKAGE_VERSION "$PACKAGE_VERSION"
2496_ACEOF
2497
2498
2499cat >>confdefs.h <<_ACEOF
2500#define PACKAGE_STRING "$PACKAGE_STRING"
2501_ACEOF
2502
2503
2504cat >>confdefs.h <<_ACEOF
2505#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2506_ACEOF
2507
2508
2509# Let the site file select an alternate cache file if it wants to.
2510# Prefer explicitly selected file to automatically selected ones.
2511if test -n "$CONFIG_SITE"; then
2512  set x "$CONFIG_SITE"
2513elif test "x$prefix" != xNONE; then
2514  set x "$prefix/share/config.site" "$prefix/etc/config.site"
2515else
2516  set x "$ac_default_prefix/share/config.site" \
2517	"$ac_default_prefix/etc/config.site"
2518fi
2519shift
2520for ac_site_file
2521do
2522  if test -r "$ac_site_file"; then
2523    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2524echo "$as_me: loading site script $ac_site_file" >&6;}
2525    sed 's/^/| /' "$ac_site_file" >&5
2526    . "$ac_site_file"
2527  fi
2528done
2529
2530if test -r "$cache_file"; then
2531  # Some versions of bash will fail to source /dev/null (special
2532  # files actually), so we avoid doing that.
2533  if test -f "$cache_file"; then
2534    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2535echo "$as_me: loading cache $cache_file" >&6;}
2536    case $cache_file in
2537      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2538      *)                      . "./$cache_file";;
2539    esac
2540  fi
2541else
2542  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2543echo "$as_me: creating cache $cache_file" >&6;}
2544  >$cache_file
2545fi
2546
2547# Check that the precious variables saved in the cache have kept the same
2548# value.
2549ac_cache_corrupted=false
2550for ac_var in $ac_precious_vars; do
2551  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2552  eval ac_new_set=\$ac_env_${ac_var}_set
2553  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2554  eval ac_new_val=\$ac_env_${ac_var}_value
2555  case $ac_old_set,$ac_new_set in
2556    set,)
2557      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2558echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2559      ac_cache_corrupted=: ;;
2560    ,set)
2561      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2562echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2563      ac_cache_corrupted=: ;;
2564    ,);;
2565    *)
2566      if test "x$ac_old_val" != "x$ac_new_val"; then
2567	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2568echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2569	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2570echo "$as_me:   former value:  $ac_old_val" >&2;}
2571	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2572echo "$as_me:   current value: $ac_new_val" >&2;}
2573	ac_cache_corrupted=:
2574      fi;;
2575  esac
2576  # Pass precious variables to config.status.
2577  if test "$ac_new_set" = set; then
2578    case $ac_new_val in
2579    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2580    *) ac_arg=$ac_var=$ac_new_val ;;
2581    esac
2582    case " $ac_configure_args " in
2583      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2584      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2585    esac
2586  fi
2587done
2588if $ac_cache_corrupted; then
2589  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2590echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2591  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2592echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2593   { (exit 1); exit 1; }; }
2594fi
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620ac_ext=c
2621ac_cpp='$CPP $CPPFLAGS'
2622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2624ac_compiler_gnu=$ac_cv_c_compiler_gnu
2625
2626
2627RELEASE_DATE="2012-02-10"
2628
2629am__api_version='1.10'
2630
2631ac_aux_dir=
2632for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2633  if test -f "$ac_dir/install-sh"; then
2634    ac_aux_dir=$ac_dir
2635    ac_install_sh="$ac_aux_dir/install-sh -c"
2636    break
2637  elif test -f "$ac_dir/install.sh"; then
2638    ac_aux_dir=$ac_dir
2639    ac_install_sh="$ac_aux_dir/install.sh -c"
2640    break
2641  elif test -f "$ac_dir/shtool"; then
2642    ac_aux_dir=$ac_dir
2643    ac_install_sh="$ac_aux_dir/shtool install -c"
2644    break
2645  fi
2646done
2647if test -z "$ac_aux_dir"; then
2648  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2649echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2650   { (exit 1); exit 1; }; }
2651fi
2652
2653# These three variables are undocumented and unsupported,
2654# and are intended to be withdrawn in a future Autoconf release.
2655# They can cause serious problems if a builder's source tree is in a directory
2656# whose full name contains unusual characters.
2657ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2658ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2659ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2660
2661
2662# Find a good install program.  We prefer a C program (faster),
2663# so one script is as good as another.  But avoid the broken or
2664# incompatible versions:
2665# SysV /etc/install, /usr/sbin/install
2666# SunOS /usr/etc/install
2667# IRIX /sbin/install
2668# AIX /bin/install
2669# AmigaOS /C/install, which installs bootblocks on floppy discs
2670# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2671# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2672# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2673# OS/2's system install, which has a completely different semantic
2674# ./install, which can be erroneously created by make from ./install.sh.
2675{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2676echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2677if test -z "$INSTALL"; then
2678if test "${ac_cv_path_install+set}" = set; then
2679  echo $ECHO_N "(cached) $ECHO_C" >&6
2680else
2681  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682for as_dir in $PATH
2683do
2684  IFS=$as_save_IFS
2685  test -z "$as_dir" && as_dir=.
2686  # Account for people who put trailing slashes in PATH elements.
2687case $as_dir/ in
2688  ./ | .// | /cC/* | \
2689  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2690  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2691  /usr/ucb/* ) ;;
2692  *)
2693    # OSF1 and SCO ODT 3.0 have their own names for install.
2694    # Don't use installbsd from OSF since it installs stuff as root
2695    # by default.
2696    for ac_prog in ginstall scoinst install; do
2697      for ac_exec_ext in '' $ac_executable_extensions; do
2698	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2699	  if test $ac_prog = install &&
2700	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2701	    # AIX install.  It has an incompatible calling convention.
2702	    :
2703	  elif test $ac_prog = install &&
2704	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2705	    # program-specific install script used by HP pwplus--don't use.
2706	    :
2707	  else
2708	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2709	    break 3
2710	  fi
2711	fi
2712      done
2713    done
2714    ;;
2715esac
2716done
2717IFS=$as_save_IFS
2718
2719
2720fi
2721  if test "${ac_cv_path_install+set}" = set; then
2722    INSTALL=$ac_cv_path_install
2723  else
2724    # As a last resort, use the slow shell script.  Don't cache a
2725    # value for INSTALL within a source directory, because that will
2726    # break other packages using the cache if that directory is
2727    # removed, or if the value is a relative name.
2728    INSTALL=$ac_install_sh
2729  fi
2730fi
2731{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2732echo "${ECHO_T}$INSTALL" >&6; }
2733
2734# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2735# It thinks the first close brace ends the variable substitution.
2736test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2737
2738test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2739
2740test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2741
2742{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2743echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2744# Just in case
2745sleep 1
2746echo timestamp > conftest.file
2747# Do `set' in a subshell so we don't clobber the current shell's
2748# arguments.  Must try -L first in case configure is actually a
2749# symlink; some systems play weird games with the mod time of symlinks
2750# (eg FreeBSD returns the mod time of the symlink's containing
2751# directory).
2752if (
2753   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2754   if test "$*" = "X"; then
2755      # -L didn't work.
2756      set X `ls -t $srcdir/configure conftest.file`
2757   fi
2758   rm -f conftest.file
2759   if test "$*" != "X $srcdir/configure conftest.file" \
2760      && test "$*" != "X conftest.file $srcdir/configure"; then
2761
2762      # If neither matched, then we have a broken ls.  This can happen
2763      # if, for instance, CONFIG_SHELL is bash and it inherits a
2764      # broken ls alias from the environment.  This has actually
2765      # happened.  Such a system could not be considered "sane".
2766      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2767alias in your environment" >&5
2768echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2769alias in your environment" >&2;}
2770   { (exit 1); exit 1; }; }
2771   fi
2772
2773   test "$2" = conftest.file
2774   )
2775then
2776   # Ok.
2777   :
2778else
2779   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2780Check your system clock" >&5
2781echo "$as_me: error: newly created file is older than distributed files!
2782Check your system clock" >&2;}
2783   { (exit 1); exit 1; }; }
2784fi
2785{ echo "$as_me:$LINENO: result: yes" >&5
2786echo "${ECHO_T}yes" >&6; }
2787test "$program_prefix" != NONE &&
2788  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2789# Use a double $ so make ignores it.
2790test "$program_suffix" != NONE &&
2791  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2792# Double any \ or $.  echo might interpret backslashes.
2793# By default was `s,x,x', remove it if useless.
2794cat <<\_ACEOF >conftest.sed
2795s/[\\$]/&&/g;s/;s,x,x,$//
2796_ACEOF
2797program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2798rm -f conftest.sed
2799
2800# expand $ac_aux_dir to an absolute path
2801am_aux_dir=`cd $ac_aux_dir && pwd`
2802
2803test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2804# Use eval to expand $SHELL
2805if eval "$MISSING --run true"; then
2806  am_missing_run="$MISSING --run "
2807else
2808  am_missing_run=
2809  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2810echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2811fi
2812
2813{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2814echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2815if test -z "$MKDIR_P"; then
2816  if test "${ac_cv_path_mkdir+set}" = set; then
2817  echo $ECHO_N "(cached) $ECHO_C" >&6
2818else
2819  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2821do
2822  IFS=$as_save_IFS
2823  test -z "$as_dir" && as_dir=.
2824  for ac_prog in mkdir gmkdir; do
2825	 for ac_exec_ext in '' $ac_executable_extensions; do
2826	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2827	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2828	     'mkdir (GNU coreutils) '* | \
2829	     'mkdir (coreutils) '* | \
2830	     'mkdir (fileutils) '4.1*)
2831	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2832	       break 3;;
2833	   esac
2834	 done
2835       done
2836done
2837IFS=$as_save_IFS
2838
2839fi
2840
2841  if test "${ac_cv_path_mkdir+set}" = set; then
2842    MKDIR_P="$ac_cv_path_mkdir -p"
2843  else
2844    # As a last resort, use the slow shell script.  Don't cache a
2845    # value for MKDIR_P within a source directory, because that will
2846    # break other packages using the cache if that directory is
2847    # removed, or if the value is a relative name.
2848    test -d ./--version && rmdir ./--version
2849    MKDIR_P="$ac_install_sh -d"
2850  fi
2851fi
2852{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2853echo "${ECHO_T}$MKDIR_P" >&6; }
2854
2855mkdir_p="$MKDIR_P"
2856case $mkdir_p in
2857  [\\/$]* | ?:[\\/]*) ;;
2858  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2859esac
2860
2861for ac_prog in gawk mawk nawk awk
2862do
2863  # Extract the first word of "$ac_prog", so it can be a program name with args.
2864set dummy $ac_prog; ac_word=$2
2865{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2867if test "${ac_cv_prog_AWK+set}" = set; then
2868  echo $ECHO_N "(cached) $ECHO_C" >&6
2869else
2870  if test -n "$AWK"; then
2871  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2872else
2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874for as_dir in $PATH
2875do
2876  IFS=$as_save_IFS
2877  test -z "$as_dir" && as_dir=.
2878  for ac_exec_ext in '' $ac_executable_extensions; do
2879  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880    ac_cv_prog_AWK="$ac_prog"
2881    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2882    break 2
2883  fi
2884done
2885done
2886IFS=$as_save_IFS
2887
2888fi
2889fi
2890AWK=$ac_cv_prog_AWK
2891if test -n "$AWK"; then
2892  { echo "$as_me:$LINENO: result: $AWK" >&5
2893echo "${ECHO_T}$AWK" >&6; }
2894else
2895  { echo "$as_me:$LINENO: result: no" >&5
2896echo "${ECHO_T}no" >&6; }
2897fi
2898
2899
2900  test -n "$AWK" && break
2901done
2902
2903{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2904echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2905set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2906if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2907  echo $ECHO_N "(cached) $ECHO_C" >&6
2908else
2909  cat >conftest.make <<\_ACEOF
2910SHELL = /bin/sh
2911all:
2912	@echo '@@@%%%=$(MAKE)=@@@%%%'
2913_ACEOF
2914# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2915case `${MAKE-make} -f conftest.make 2>/dev/null` in
2916  *@@@%%%=?*=@@@%%%*)
2917    eval ac_cv_prog_make_${ac_make}_set=yes;;
2918  *)
2919    eval ac_cv_prog_make_${ac_make}_set=no;;
2920esac
2921rm -f conftest.make
2922fi
2923if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2924  { echo "$as_me:$LINENO: result: yes" >&5
2925echo "${ECHO_T}yes" >&6; }
2926  SET_MAKE=
2927else
2928  { echo "$as_me:$LINENO: result: no" >&5
2929echo "${ECHO_T}no" >&6; }
2930  SET_MAKE="MAKE=${MAKE-make}"
2931fi
2932
2933rm -rf .tst 2>/dev/null
2934mkdir .tst 2>/dev/null
2935if test -d .tst; then
2936  am__leading_dot=.
2937else
2938  am__leading_dot=_
2939fi
2940rmdir .tst 2>/dev/null
2941
2942if test "`cd $srcdir && pwd`" != "`pwd`"; then
2943  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2944  # is not polluted with repeated "-I."
2945  am__isrc=' -I$(srcdir)'
2946  # test to see if srcdir already configured
2947  if test -f $srcdir/config.status; then
2948    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2949echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2950   { (exit 1); exit 1; }; }
2951  fi
2952fi
2953
2954# test whether we have cygpath
2955if test -z "$CYGPATH_W"; then
2956  if (cygpath --version) >/dev/null 2>/dev/null; then
2957    CYGPATH_W='cygpath -w'
2958  else
2959    CYGPATH_W=echo
2960  fi
2961fi
2962
2963
2964# Define the identity of the package.
2965 PACKAGE='xorg-server'
2966 VERSION='1.10.6'
2967
2968
2969cat >>confdefs.h <<_ACEOF
2970#define PACKAGE "$PACKAGE"
2971_ACEOF
2972
2973
2974cat >>confdefs.h <<_ACEOF
2975#define VERSION "$VERSION"
2976_ACEOF
2977
2978# Some tools Automake needs.
2979
2980ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2981
2982
2983AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2984
2985
2986AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2987
2988
2989AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2990
2991
2992MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2993
2994install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2995
2996# Installed binaries are usually stripped using `strip' when the user
2997# run `make install-strip'.  However `strip' might not be the right
2998# tool to use in cross-compilation environments, therefore Automake
2999# will honor the `STRIP' environment variable to overrule this program.
3000if test "$cross_compiling" != no; then
3001  if test -n "$ac_tool_prefix"; then
3002  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3003set dummy ${ac_tool_prefix}strip; ac_word=$2
3004{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3006if test "${ac_cv_prog_STRIP+set}" = set; then
3007  echo $ECHO_N "(cached) $ECHO_C" >&6
3008else
3009  if test -n "$STRIP"; then
3010  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3011else
3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013for as_dir in $PATH
3014do
3015  IFS=$as_save_IFS
3016  test -z "$as_dir" && as_dir=.
3017  for ac_exec_ext in '' $ac_executable_extensions; do
3018  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3020    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3021    break 2
3022  fi
3023done
3024done
3025IFS=$as_save_IFS
3026
3027fi
3028fi
3029STRIP=$ac_cv_prog_STRIP
3030if test -n "$STRIP"; then
3031  { echo "$as_me:$LINENO: result: $STRIP" >&5
3032echo "${ECHO_T}$STRIP" >&6; }
3033else
3034  { echo "$as_me:$LINENO: result: no" >&5
3035echo "${ECHO_T}no" >&6; }
3036fi
3037
3038
3039fi
3040if test -z "$ac_cv_prog_STRIP"; then
3041  ac_ct_STRIP=$STRIP
3042  # Extract the first word of "strip", so it can be a program name with args.
3043set dummy strip; ac_word=$2
3044{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3046if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3047  echo $ECHO_N "(cached) $ECHO_C" >&6
3048else
3049  if test -n "$ac_ct_STRIP"; then
3050  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3051else
3052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053for as_dir in $PATH
3054do
3055  IFS=$as_save_IFS
3056  test -z "$as_dir" && as_dir=.
3057  for ac_exec_ext in '' $ac_executable_extensions; do
3058  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3059    ac_cv_prog_ac_ct_STRIP="strip"
3060    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3061    break 2
3062  fi
3063done
3064done
3065IFS=$as_save_IFS
3066
3067fi
3068fi
3069ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3070if test -n "$ac_ct_STRIP"; then
3071  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3072echo "${ECHO_T}$ac_ct_STRIP" >&6; }
3073else
3074  { echo "$as_me:$LINENO: result: no" >&5
3075echo "${ECHO_T}no" >&6; }
3076fi
3077
3078  if test "x$ac_ct_STRIP" = x; then
3079    STRIP=":"
3080  else
3081    case $cross_compiling:$ac_tool_warned in
3082yes:)
3083{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3084whose name does not start with the host triplet.  If you think this
3085configuration is useful to you, please write to autoconf@gnu.org." >&5
3086echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3087whose name does not start with the host triplet.  If you think this
3088configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3089ac_tool_warned=yes ;;
3090esac
3091    STRIP=$ac_ct_STRIP
3092  fi
3093else
3094  STRIP="$ac_cv_prog_STRIP"
3095fi
3096
3097fi
3098INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3099
3100# We need awk for the "check" target.  The system "awk" is bad on
3101# some platforms.
3102# Always define AMTAR for backward compatibility.
3103
3104AMTAR=${AMTAR-"${am_missing_run}tar"}
3105
3106am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3107
3108
3109
3110
3111
3112{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3113echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
3114    # Check whether --enable-maintainer-mode was given.
3115if test "${enable_maintainer_mode+set}" = set; then
3116  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3117else
3118  USE_MAINTAINER_MODE=no
3119fi
3120
3121  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3122echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
3123   if test $USE_MAINTAINER_MODE = yes; then
3124  MAINTAINER_MODE_TRUE=
3125  MAINTAINER_MODE_FALSE='#'
3126else
3127  MAINTAINER_MODE_TRUE='#'
3128  MAINTAINER_MODE_FALSE=
3129fi
3130
3131  MAINT=$MAINTAINER_MODE_TRUE
3132
3133
3134
3135# Require xorg-macros minimum of 1.10 for XORG_CHECK_SGML_DOCTOOLS
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147DEPDIR="${am__leading_dot}deps"
3148
3149ac_config_commands="$ac_config_commands depfiles"
3150
3151
3152am_make=${MAKE-make}
3153cat > confinc << 'END'
3154am__doit:
3155	@echo done
3156.PHONY: am__doit
3157END
3158# If we don't find an include directive, just comment out the code.
3159{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3160echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3161am__include="#"
3162am__quote=
3163_am_result=none
3164# First try GNU make style include.
3165echo "include confinc" > confmf
3166# We grep out `Entering directory' and `Leaving directory'
3167# messages which can occur if `w' ends up in MAKEFLAGS.
3168# In particular we don't look at `^make:' because GNU make might
3169# be invoked under some other name (usually "gmake"), in which
3170# case it prints its new name instead of `make'.
3171if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3172   am__include=include
3173   am__quote=
3174   _am_result=GNU
3175fi
3176# Now try BSD make style include.
3177if test "$am__include" = "#"; then
3178   echo '.include "confinc"' > confmf
3179   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3180      am__include=.include
3181      am__quote="\""
3182      _am_result=BSD
3183   fi
3184fi
3185
3186
3187{ echo "$as_me:$LINENO: result: $_am_result" >&5
3188echo "${ECHO_T}$_am_result" >&6; }
3189rm -f confinc confmf
3190
3191# Check whether --enable-dependency-tracking was given.
3192if test "${enable_dependency_tracking+set}" = set; then
3193  enableval=$enable_dependency_tracking;
3194fi
3195
3196if test "x$enable_dependency_tracking" != xno; then
3197  am_depcomp="$ac_aux_dir/depcomp"
3198  AMDEPBACKSLASH='\'
3199fi
3200 if test "x$enable_dependency_tracking" != xno; then
3201  AMDEP_TRUE=
3202  AMDEP_FALSE='#'
3203else
3204  AMDEP_TRUE='#'
3205  AMDEP_FALSE=
3206fi
3207
3208
3209ac_ext=c
3210ac_cpp='$CPP $CPPFLAGS'
3211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213ac_compiler_gnu=$ac_cv_c_compiler_gnu
3214if test -n "$ac_tool_prefix"; then
3215  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3216set dummy ${ac_tool_prefix}gcc; ac_word=$2
3217{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3219if test "${ac_cv_prog_CC+set}" = set; then
3220  echo $ECHO_N "(cached) $ECHO_C" >&6
3221else
3222  if test -n "$CC"; then
3223  ac_cv_prog_CC="$CC" # Let the user override the test.
3224else
3225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226for as_dir in $PATH
3227do
3228  IFS=$as_save_IFS
3229  test -z "$as_dir" && as_dir=.
3230  for ac_exec_ext in '' $ac_executable_extensions; do
3231  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3232    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3233    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3234    break 2
3235  fi
3236done
3237done
3238IFS=$as_save_IFS
3239
3240fi
3241fi
3242CC=$ac_cv_prog_CC
3243if test -n "$CC"; then
3244  { echo "$as_me:$LINENO: result: $CC" >&5
3245echo "${ECHO_T}$CC" >&6; }
3246else
3247  { echo "$as_me:$LINENO: result: no" >&5
3248echo "${ECHO_T}no" >&6; }
3249fi
3250
3251
3252fi
3253if test -z "$ac_cv_prog_CC"; then
3254  ac_ct_CC=$CC
3255  # Extract the first word of "gcc", so it can be a program name with args.
3256set dummy gcc; ac_word=$2
3257{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3259if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3260  echo $ECHO_N "(cached) $ECHO_C" >&6
3261else
3262  if test -n "$ac_ct_CC"; then
3263  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3264else
3265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266for as_dir in $PATH
3267do
3268  IFS=$as_save_IFS
3269  test -z "$as_dir" && as_dir=.
3270  for ac_exec_ext in '' $ac_executable_extensions; do
3271  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3272    ac_cv_prog_ac_ct_CC="gcc"
3273    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3274    break 2
3275  fi
3276done
3277done
3278IFS=$as_save_IFS
3279
3280fi
3281fi
3282ac_ct_CC=$ac_cv_prog_ac_ct_CC
3283if test -n "$ac_ct_CC"; then
3284  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3285echo "${ECHO_T}$ac_ct_CC" >&6; }
3286else
3287  { echo "$as_me:$LINENO: result: no" >&5
3288echo "${ECHO_T}no" >&6; }
3289fi
3290
3291  if test "x$ac_ct_CC" = x; then
3292    CC=""
3293  else
3294    case $cross_compiling:$ac_tool_warned in
3295yes:)
3296{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3297whose name does not start with the host triplet.  If you think this
3298configuration is useful to you, please write to autoconf@gnu.org." >&5
3299echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3300whose name does not start with the host triplet.  If you think this
3301configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3302ac_tool_warned=yes ;;
3303esac
3304    CC=$ac_ct_CC
3305  fi
3306else
3307  CC="$ac_cv_prog_CC"
3308fi
3309
3310if test -z "$CC"; then
3311          if test -n "$ac_tool_prefix"; then
3312    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3313set dummy ${ac_tool_prefix}cc; ac_word=$2
3314{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3316if test "${ac_cv_prog_CC+set}" = set; then
3317  echo $ECHO_N "(cached) $ECHO_C" >&6
3318else
3319  if test -n "$CC"; then
3320  ac_cv_prog_CC="$CC" # Let the user override the test.
3321else
3322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323for as_dir in $PATH
3324do
3325  IFS=$as_save_IFS
3326  test -z "$as_dir" && as_dir=.
3327  for ac_exec_ext in '' $ac_executable_extensions; do
3328  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3329    ac_cv_prog_CC="${ac_tool_prefix}cc"
3330    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3331    break 2
3332  fi
3333done
3334done
3335IFS=$as_save_IFS
3336
3337fi
3338fi
3339CC=$ac_cv_prog_CC
3340if test -n "$CC"; then
3341  { echo "$as_me:$LINENO: result: $CC" >&5
3342echo "${ECHO_T}$CC" >&6; }
3343else
3344  { echo "$as_me:$LINENO: result: no" >&5
3345echo "${ECHO_T}no" >&6; }
3346fi
3347
3348
3349  fi
3350fi
3351if test -z "$CC"; then
3352  # Extract the first word of "cc", so it can be a program name with args.
3353set dummy cc; ac_word=$2
3354{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3356if test "${ac_cv_prog_CC+set}" = set; then
3357  echo $ECHO_N "(cached) $ECHO_C" >&6
3358else
3359  if test -n "$CC"; then
3360  ac_cv_prog_CC="$CC" # Let the user override the test.
3361else
3362  ac_prog_rejected=no
3363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364for as_dir in $PATH
3365do
3366  IFS=$as_save_IFS
3367  test -z "$as_dir" && as_dir=.
3368  for ac_exec_ext in '' $ac_executable_extensions; do
3369  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3370    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3371       ac_prog_rejected=yes
3372       continue
3373     fi
3374    ac_cv_prog_CC="cc"
3375    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3376    break 2
3377  fi
3378done
3379done
3380IFS=$as_save_IFS
3381
3382if test $ac_prog_rejected = yes; then
3383  # We found a bogon in the path, so make sure we never use it.
3384  set dummy $ac_cv_prog_CC
3385  shift
3386  if test $# != 0; then
3387    # We chose a different compiler from the bogus one.
3388    # However, it has the same basename, so the bogon will be chosen
3389    # first if we set CC to just the basename; use the full file name.
3390    shift
3391    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3392  fi
3393fi
3394fi
3395fi
3396CC=$ac_cv_prog_CC
3397if test -n "$CC"; then
3398  { echo "$as_me:$LINENO: result: $CC" >&5
3399echo "${ECHO_T}$CC" >&6; }
3400else
3401  { echo "$as_me:$LINENO: result: no" >&5
3402echo "${ECHO_T}no" >&6; }
3403fi
3404
3405
3406fi
3407if test -z "$CC"; then
3408  if test -n "$ac_tool_prefix"; then
3409  for ac_prog in cl.exe
3410  do
3411    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3412set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3413{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3415if test "${ac_cv_prog_CC+set}" = set; then
3416  echo $ECHO_N "(cached) $ECHO_C" >&6
3417else
3418  if test -n "$CC"; then
3419  ac_cv_prog_CC="$CC" # Let the user override the test.
3420else
3421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422for as_dir in $PATH
3423do
3424  IFS=$as_save_IFS
3425  test -z "$as_dir" && as_dir=.
3426  for ac_exec_ext in '' $ac_executable_extensions; do
3427  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3428    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3429    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3430    break 2
3431  fi
3432done
3433done
3434IFS=$as_save_IFS
3435
3436fi
3437fi
3438CC=$ac_cv_prog_CC
3439if test -n "$CC"; then
3440  { echo "$as_me:$LINENO: result: $CC" >&5
3441echo "${ECHO_T}$CC" >&6; }
3442else
3443  { echo "$as_me:$LINENO: result: no" >&5
3444echo "${ECHO_T}no" >&6; }
3445fi
3446
3447
3448    test -n "$CC" && break
3449  done
3450fi
3451if test -z "$CC"; then
3452  ac_ct_CC=$CC
3453  for ac_prog in cl.exe
3454do
3455  # Extract the first word of "$ac_prog", so it can be a program name with args.
3456set dummy $ac_prog; ac_word=$2
3457{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3459if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3460  echo $ECHO_N "(cached) $ECHO_C" >&6
3461else
3462  if test -n "$ac_ct_CC"; then
3463  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3464else
3465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466for as_dir in $PATH
3467do
3468  IFS=$as_save_IFS
3469  test -z "$as_dir" && as_dir=.
3470  for ac_exec_ext in '' $ac_executable_extensions; do
3471  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3472    ac_cv_prog_ac_ct_CC="$ac_prog"
3473    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3474    break 2
3475  fi
3476done
3477done
3478IFS=$as_save_IFS
3479
3480fi
3481fi
3482ac_ct_CC=$ac_cv_prog_ac_ct_CC
3483if test -n "$ac_ct_CC"; then
3484  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3485echo "${ECHO_T}$ac_ct_CC" >&6; }
3486else
3487  { echo "$as_me:$LINENO: result: no" >&5
3488echo "${ECHO_T}no" >&6; }
3489fi
3490
3491
3492  test -n "$ac_ct_CC" && break
3493done
3494
3495  if test "x$ac_ct_CC" = x; then
3496    CC=""
3497  else
3498    case $cross_compiling:$ac_tool_warned in
3499yes:)
3500{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3501whose name does not start with the host triplet.  If you think this
3502configuration is useful to you, please write to autoconf@gnu.org." >&5
3503echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3504whose name does not start with the host triplet.  If you think this
3505configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3506ac_tool_warned=yes ;;
3507esac
3508    CC=$ac_ct_CC
3509  fi
3510fi
3511
3512fi
3513
3514
3515test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3516See \`config.log' for more details." >&5
3517echo "$as_me: error: no acceptable C compiler found in \$PATH
3518See \`config.log' for more details." >&2;}
3519   { (exit 1); exit 1; }; }
3520
3521# Provide some information about the compiler.
3522echo "$as_me:$LINENO: checking for C compiler version" >&5
3523ac_compiler=`set X $ac_compile; echo $2`
3524{ (ac_try="$ac_compiler --version >&5"
3525case "(($ac_try" in
3526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527  *) ac_try_echo=$ac_try;;
3528esac
3529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3530  (eval "$ac_compiler --version >&5") 2>&5
3531  ac_status=$?
3532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533  (exit $ac_status); }
3534{ (ac_try="$ac_compiler -v >&5"
3535case "(($ac_try" in
3536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537  *) ac_try_echo=$ac_try;;
3538esac
3539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540  (eval "$ac_compiler -v >&5") 2>&5
3541  ac_status=$?
3542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543  (exit $ac_status); }
3544{ (ac_try="$ac_compiler -V >&5"
3545case "(($ac_try" in
3546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547  *) ac_try_echo=$ac_try;;
3548esac
3549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550  (eval "$ac_compiler -V >&5") 2>&5
3551  ac_status=$?
3552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553  (exit $ac_status); }
3554
3555cat >conftest.$ac_ext <<_ACEOF
3556/* confdefs.h.  */
3557_ACEOF
3558cat confdefs.h >>conftest.$ac_ext
3559cat >>conftest.$ac_ext <<_ACEOF
3560/* end confdefs.h.  */
3561
3562int
3563main ()
3564{
3565
3566  ;
3567  return 0;
3568}
3569_ACEOF
3570ac_clean_files_save=$ac_clean_files
3571ac_clean_files="$ac_clean_files a.out a.exe b.out"
3572# Try to create an executable without -o first, disregard a.out.
3573# It will help us diagnose broken compilers, and finding out an intuition
3574# of exeext.
3575{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3576echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3577ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3578#
3579# List of possible output files, starting from the most likely.
3580# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3581# only as a last resort.  b.out is created by i960 compilers.
3582ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3583#
3584# The IRIX 6 linker writes into existing files which may not be
3585# executable, retaining their permissions.  Remove them first so a
3586# subsequent execution test works.
3587ac_rmfiles=
3588for ac_file in $ac_files
3589do
3590  case $ac_file in
3591    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3592    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3593  esac
3594done
3595rm -f $ac_rmfiles
3596
3597if { (ac_try="$ac_link_default"
3598case "(($ac_try" in
3599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600  *) ac_try_echo=$ac_try;;
3601esac
3602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3603  (eval "$ac_link_default") 2>&5
3604  ac_status=$?
3605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606  (exit $ac_status); }; then
3607  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3608# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3609# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3610# so that the user can short-circuit this test for compilers unknown to
3611# Autoconf.
3612for ac_file in $ac_files ''
3613do
3614  test -f "$ac_file" || continue
3615  case $ac_file in
3616    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3617	;;
3618    [ab].out )
3619	# We found the default executable, but exeext='' is most
3620	# certainly right.
3621	break;;
3622    *.* )
3623        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3624	then :; else
3625	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3626	fi
3627	# We set ac_cv_exeext here because the later test for it is not
3628	# safe: cross compilers may not add the suffix if given an `-o'
3629	# argument, so we may need to know it at that point already.
3630	# Even if this section looks crufty: it has the advantage of
3631	# actually working.
3632	break;;
3633    * )
3634	break;;
3635  esac
3636done
3637test "$ac_cv_exeext" = no && ac_cv_exeext=
3638
3639else
3640  ac_file=''
3641fi
3642
3643{ echo "$as_me:$LINENO: result: $ac_file" >&5
3644echo "${ECHO_T}$ac_file" >&6; }
3645if test -z "$ac_file"; then
3646  echo "$as_me: failed program was:" >&5
3647sed 's/^/| /' conftest.$ac_ext >&5
3648
3649{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3650See \`config.log' for more details." >&5
3651echo "$as_me: error: C compiler cannot create executables
3652See \`config.log' for more details." >&2;}
3653   { (exit 77); exit 77; }; }
3654fi
3655
3656ac_exeext=$ac_cv_exeext
3657
3658# Check that the compiler produces executables we can run.  If not, either
3659# the compiler is broken, or we cross compile.
3660{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3661echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3662# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3663# If not cross compiling, check that we can run a simple program.
3664if test "$cross_compiling" != yes; then
3665  if { ac_try='./$ac_file'
3666  { (case "(($ac_try" in
3667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668  *) ac_try_echo=$ac_try;;
3669esac
3670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671  (eval "$ac_try") 2>&5
3672  ac_status=$?
3673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674  (exit $ac_status); }; }; then
3675    cross_compiling=no
3676  else
3677    if test "$cross_compiling" = maybe; then
3678	cross_compiling=yes
3679    else
3680	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3681If you meant to cross compile, use \`--host'.
3682See \`config.log' for more details." >&5
3683echo "$as_me: error: cannot run C compiled programs.
3684If you meant to cross compile, use \`--host'.
3685See \`config.log' for more details." >&2;}
3686   { (exit 1); exit 1; }; }
3687    fi
3688  fi
3689fi
3690{ echo "$as_me:$LINENO: result: yes" >&5
3691echo "${ECHO_T}yes" >&6; }
3692
3693rm -f a.out a.exe conftest$ac_cv_exeext b.out
3694ac_clean_files=$ac_clean_files_save
3695# Check that the compiler produces executables we can run.  If not, either
3696# the compiler is broken, or we cross compile.
3697{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3698echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3699{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3700echo "${ECHO_T}$cross_compiling" >&6; }
3701
3702{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3703echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3704if { (ac_try="$ac_link"
3705case "(($ac_try" in
3706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707  *) ac_try_echo=$ac_try;;
3708esac
3709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3710  (eval "$ac_link") 2>&5
3711  ac_status=$?
3712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713  (exit $ac_status); }; then
3714  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3715# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3716# work properly (i.e., refer to `conftest.exe'), while it won't with
3717# `rm'.
3718for ac_file in conftest.exe conftest conftest.*; do
3719  test -f "$ac_file" || continue
3720  case $ac_file in
3721    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3722    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3723	  break;;
3724    * ) break;;
3725  esac
3726done
3727else
3728  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3729See \`config.log' for more details." >&5
3730echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3731See \`config.log' for more details." >&2;}
3732   { (exit 1); exit 1; }; }
3733fi
3734
3735rm -f conftest$ac_cv_exeext
3736{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3737echo "${ECHO_T}$ac_cv_exeext" >&6; }
3738
3739rm -f conftest.$ac_ext
3740EXEEXT=$ac_cv_exeext
3741ac_exeext=$EXEEXT
3742{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3743echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3744if test "${ac_cv_objext+set}" = set; then
3745  echo $ECHO_N "(cached) $ECHO_C" >&6
3746else
3747  cat >conftest.$ac_ext <<_ACEOF
3748/* confdefs.h.  */
3749_ACEOF
3750cat confdefs.h >>conftest.$ac_ext
3751cat >>conftest.$ac_ext <<_ACEOF
3752/* end confdefs.h.  */
3753
3754int
3755main ()
3756{
3757
3758  ;
3759  return 0;
3760}
3761_ACEOF
3762rm -f conftest.o conftest.obj
3763if { (ac_try="$ac_compile"
3764case "(($ac_try" in
3765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766  *) ac_try_echo=$ac_try;;
3767esac
3768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3769  (eval "$ac_compile") 2>&5
3770  ac_status=$?
3771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772  (exit $ac_status); }; then
3773  for ac_file in conftest.o conftest.obj conftest.*; do
3774  test -f "$ac_file" || continue;
3775  case $ac_file in
3776    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3777    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3778       break;;
3779  esac
3780done
3781else
3782  echo "$as_me: failed program was:" >&5
3783sed 's/^/| /' conftest.$ac_ext >&5
3784
3785{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3786See \`config.log' for more details." >&5
3787echo "$as_me: error: cannot compute suffix of object files: cannot compile
3788See \`config.log' for more details." >&2;}
3789   { (exit 1); exit 1; }; }
3790fi
3791
3792rm -f conftest.$ac_cv_objext conftest.$ac_ext
3793fi
3794{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3795echo "${ECHO_T}$ac_cv_objext" >&6; }
3796OBJEXT=$ac_cv_objext
3797ac_objext=$OBJEXT
3798{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3799echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3800if test "${ac_cv_c_compiler_gnu+set}" = set; then
3801  echo $ECHO_N "(cached) $ECHO_C" >&6
3802else
3803  cat >conftest.$ac_ext <<_ACEOF
3804/* confdefs.h.  */
3805_ACEOF
3806cat confdefs.h >>conftest.$ac_ext
3807cat >>conftest.$ac_ext <<_ACEOF
3808/* end confdefs.h.  */
3809
3810int
3811main ()
3812{
3813#ifndef __GNUC__
3814       choke me
3815#endif
3816
3817  ;
3818  return 0;
3819}
3820_ACEOF
3821rm -f conftest.$ac_objext
3822if { (ac_try="$ac_compile"
3823case "(($ac_try" in
3824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825  *) ac_try_echo=$ac_try;;
3826esac
3827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828  (eval "$ac_compile") 2>conftest.er1
3829  ac_status=$?
3830  grep -v '^ *+' conftest.er1 >conftest.err
3831  rm -f conftest.er1
3832  cat conftest.err >&5
3833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834  (exit $ac_status); } && {
3835	 test -z "$ac_c_werror_flag" ||
3836	 test ! -s conftest.err
3837       } && test -s conftest.$ac_objext; then
3838  ac_compiler_gnu=yes
3839else
3840  echo "$as_me: failed program was:" >&5
3841sed 's/^/| /' conftest.$ac_ext >&5
3842
3843	ac_compiler_gnu=no
3844fi
3845
3846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3847ac_cv_c_compiler_gnu=$ac_compiler_gnu
3848
3849fi
3850{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3851echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3852GCC=`test $ac_compiler_gnu = yes && echo yes`
3853ac_test_CFLAGS=${CFLAGS+set}
3854ac_save_CFLAGS=$CFLAGS
3855{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3856echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3857if test "${ac_cv_prog_cc_g+set}" = set; then
3858  echo $ECHO_N "(cached) $ECHO_C" >&6
3859else
3860  ac_save_c_werror_flag=$ac_c_werror_flag
3861   ac_c_werror_flag=yes
3862   ac_cv_prog_cc_g=no
3863   CFLAGS="-g"
3864   cat >conftest.$ac_ext <<_ACEOF
3865/* confdefs.h.  */
3866_ACEOF
3867cat confdefs.h >>conftest.$ac_ext
3868cat >>conftest.$ac_ext <<_ACEOF
3869/* end confdefs.h.  */
3870
3871int
3872main ()
3873{
3874
3875  ;
3876  return 0;
3877}
3878_ACEOF
3879rm -f conftest.$ac_objext
3880if { (ac_try="$ac_compile"
3881case "(($ac_try" in
3882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883  *) ac_try_echo=$ac_try;;
3884esac
3885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886  (eval "$ac_compile") 2>conftest.er1
3887  ac_status=$?
3888  grep -v '^ *+' conftest.er1 >conftest.err
3889  rm -f conftest.er1
3890  cat conftest.err >&5
3891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892  (exit $ac_status); } && {
3893	 test -z "$ac_c_werror_flag" ||
3894	 test ! -s conftest.err
3895       } && test -s conftest.$ac_objext; then
3896  ac_cv_prog_cc_g=yes
3897else
3898  echo "$as_me: failed program was:" >&5
3899sed 's/^/| /' conftest.$ac_ext >&5
3900
3901	CFLAGS=""
3902      cat >conftest.$ac_ext <<_ACEOF
3903/* confdefs.h.  */
3904_ACEOF
3905cat confdefs.h >>conftest.$ac_ext
3906cat >>conftest.$ac_ext <<_ACEOF
3907/* end confdefs.h.  */
3908
3909int
3910main ()
3911{
3912
3913  ;
3914  return 0;
3915}
3916_ACEOF
3917rm -f conftest.$ac_objext
3918if { (ac_try="$ac_compile"
3919case "(($ac_try" in
3920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921  *) ac_try_echo=$ac_try;;
3922esac
3923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3924  (eval "$ac_compile") 2>conftest.er1
3925  ac_status=$?
3926  grep -v '^ *+' conftest.er1 >conftest.err
3927  rm -f conftest.er1
3928  cat conftest.err >&5
3929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930  (exit $ac_status); } && {
3931	 test -z "$ac_c_werror_flag" ||
3932	 test ! -s conftest.err
3933       } && test -s conftest.$ac_objext; then
3934  :
3935else
3936  echo "$as_me: failed program was:" >&5
3937sed 's/^/| /' conftest.$ac_ext >&5
3938
3939	ac_c_werror_flag=$ac_save_c_werror_flag
3940	 CFLAGS="-g"
3941	 cat >conftest.$ac_ext <<_ACEOF
3942/* confdefs.h.  */
3943_ACEOF
3944cat confdefs.h >>conftest.$ac_ext
3945cat >>conftest.$ac_ext <<_ACEOF
3946/* end confdefs.h.  */
3947
3948int
3949main ()
3950{
3951
3952  ;
3953  return 0;
3954}
3955_ACEOF
3956rm -f conftest.$ac_objext
3957if { (ac_try="$ac_compile"
3958case "(($ac_try" in
3959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960  *) ac_try_echo=$ac_try;;
3961esac
3962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3963  (eval "$ac_compile") 2>conftest.er1
3964  ac_status=$?
3965  grep -v '^ *+' conftest.er1 >conftest.err
3966  rm -f conftest.er1
3967  cat conftest.err >&5
3968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969  (exit $ac_status); } && {
3970	 test -z "$ac_c_werror_flag" ||
3971	 test ! -s conftest.err
3972       } && test -s conftest.$ac_objext; then
3973  ac_cv_prog_cc_g=yes
3974else
3975  echo "$as_me: failed program was:" >&5
3976sed 's/^/| /' conftest.$ac_ext >&5
3977
3978
3979fi
3980
3981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982fi
3983
3984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985fi
3986
3987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988   ac_c_werror_flag=$ac_save_c_werror_flag
3989fi
3990{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3991echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3992if test "$ac_test_CFLAGS" = set; then
3993  CFLAGS=$ac_save_CFLAGS
3994elif test $ac_cv_prog_cc_g = yes; then
3995  if test "$GCC" = yes; then
3996    CFLAGS="-g -O2"
3997  else
3998    CFLAGS="-g"
3999  fi
4000else
4001  if test "$GCC" = yes; then
4002    CFLAGS="-O2"
4003  else
4004    CFLAGS=
4005  fi
4006fi
4007{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4008echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4009if test "${ac_cv_prog_cc_c89+set}" = set; then
4010  echo $ECHO_N "(cached) $ECHO_C" >&6
4011else
4012  ac_cv_prog_cc_c89=no
4013ac_save_CC=$CC
4014cat >conftest.$ac_ext <<_ACEOF
4015/* confdefs.h.  */
4016_ACEOF
4017cat confdefs.h >>conftest.$ac_ext
4018cat >>conftest.$ac_ext <<_ACEOF
4019/* end confdefs.h.  */
4020#include <stdarg.h>
4021#include <stdio.h>
4022#include <sys/types.h>
4023#include <sys/stat.h>
4024/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4025struct buf { int x; };
4026FILE * (*rcsopen) (struct buf *, struct stat *, int);
4027static char *e (p, i)
4028     char **p;
4029     int i;
4030{
4031  return p[i];
4032}
4033static char *f (char * (*g) (char **, int), char **p, ...)
4034{
4035  char *s;
4036  va_list v;
4037  va_start (v,p);
4038  s = g (p, va_arg (v,int));
4039  va_end (v);
4040  return s;
4041}
4042
4043/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4044   function prototypes and stuff, but not '\xHH' hex character constants.
4045   These don't provoke an error unfortunately, instead are silently treated
4046   as 'x'.  The following induces an error, until -std is added to get
4047   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4048   array size at least.  It's necessary to write '\x00'==0 to get something
4049   that's true only with -std.  */
4050int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4051
4052/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4053   inside strings and character constants.  */
4054#define FOO(x) 'x'
4055int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4056
4057int test (int i, double x);
4058struct s1 {int (*f) (int a);};
4059struct s2 {int (*f) (double a);};
4060int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4061int argc;
4062char **argv;
4063int
4064main ()
4065{
4066return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4067  ;
4068  return 0;
4069}
4070_ACEOF
4071for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4072	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4073do
4074  CC="$ac_save_CC $ac_arg"
4075  rm -f conftest.$ac_objext
4076if { (ac_try="$ac_compile"
4077case "(($ac_try" in
4078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079  *) ac_try_echo=$ac_try;;
4080esac
4081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4082  (eval "$ac_compile") 2>conftest.er1
4083  ac_status=$?
4084  grep -v '^ *+' conftest.er1 >conftest.err
4085  rm -f conftest.er1
4086  cat conftest.err >&5
4087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088  (exit $ac_status); } && {
4089	 test -z "$ac_c_werror_flag" ||
4090	 test ! -s conftest.err
4091       } && test -s conftest.$ac_objext; then
4092  ac_cv_prog_cc_c89=$ac_arg
4093else
4094  echo "$as_me: failed program was:" >&5
4095sed 's/^/| /' conftest.$ac_ext >&5
4096
4097
4098fi
4099
4100rm -f core conftest.err conftest.$ac_objext
4101  test "x$ac_cv_prog_cc_c89" != "xno" && break
4102done
4103rm -f conftest.$ac_ext
4104CC=$ac_save_CC
4105
4106fi
4107# AC_CACHE_VAL
4108case "x$ac_cv_prog_cc_c89" in
4109  x)
4110    { echo "$as_me:$LINENO: result: none needed" >&5
4111echo "${ECHO_T}none needed" >&6; } ;;
4112  xno)
4113    { echo "$as_me:$LINENO: result: unsupported" >&5
4114echo "${ECHO_T}unsupported" >&6; } ;;
4115  *)
4116    CC="$CC $ac_cv_prog_cc_c89"
4117    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4118echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4119esac
4120
4121
4122ac_ext=c
4123ac_cpp='$CPP $CPPFLAGS'
4124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4126ac_compiler_gnu=$ac_cv_c_compiler_gnu
4127
4128depcc="$CC"   am_compiler_list=
4129
4130{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4131echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4132if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4133  echo $ECHO_N "(cached) $ECHO_C" >&6
4134else
4135  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4136  # We make a subdir and do the tests there.  Otherwise we can end up
4137  # making bogus files that we don't know about and never remove.  For
4138  # instance it was reported that on HP-UX the gcc test will end up
4139  # making a dummy file named `D' -- because `-MD' means `put the output
4140  # in D'.
4141  mkdir conftest.dir
4142  # Copy depcomp to subdir because otherwise we won't find it if we're
4143  # using a relative directory.
4144  cp "$am_depcomp" conftest.dir
4145  cd conftest.dir
4146  # We will build objects and dependencies in a subdirectory because
4147  # it helps to detect inapplicable dependency modes.  For instance
4148  # both Tru64's cc and ICC support -MD to output dependencies as a
4149  # side effect of compilation, but ICC will put the dependencies in
4150  # the current directory while Tru64 will put them in the object
4151  # directory.
4152  mkdir sub
4153
4154  am_cv_CC_dependencies_compiler_type=none
4155  if test "$am_compiler_list" = ""; then
4156     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4157  fi
4158  for depmode in $am_compiler_list; do
4159    # Setup a source with many dependencies, because some compilers
4160    # like to wrap large dependency lists on column 80 (with \), and
4161    # we should not choose a depcomp mode which is confused by this.
4162    #
4163    # We need to recreate these files for each test, as the compiler may
4164    # overwrite some of them when testing with obscure command lines.
4165    # This happens at least with the AIX C compiler.
4166    : > sub/conftest.c
4167    for i in 1 2 3 4 5 6; do
4168      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4169      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4170      # Solaris 8's {/usr,}/bin/sh.
4171      touch sub/conftst$i.h
4172    done
4173    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4174
4175    case $depmode in
4176    nosideeffect)
4177      # after this tag, mechanisms are not by side-effect, so they'll
4178      # only be used when explicitly requested
4179      if test "x$enable_dependency_tracking" = xyes; then
4180	continue
4181      else
4182	break
4183      fi
4184      ;;
4185    none) break ;;
4186    esac
4187    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4188    # mode.  It turns out that the SunPro C++ compiler does not properly
4189    # handle `-M -o', and we need to detect this.
4190    if depmode=$depmode \
4191       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4192       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4193       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4194         >/dev/null 2>conftest.err &&
4195       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4196       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4197       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4198       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4199      # icc doesn't choke on unknown options, it will just issue warnings
4200      # or remarks (even with -Werror).  So we grep stderr for any message
4201      # that says an option was ignored or not supported.
4202      # When given -MP, icc 7.0 and 7.1 complain thusly:
4203      #   icc: Command line warning: ignoring option '-M'; no argument required
4204      # The diagnosis changed in icc 8.0:
4205      #   icc: Command line remark: option '-MP' not supported
4206      if (grep 'ignoring option' conftest.err ||
4207          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4208        am_cv_CC_dependencies_compiler_type=$depmode
4209        break
4210      fi
4211    fi
4212  done
4213
4214  cd ..
4215  rm -rf conftest.dir
4216else
4217  am_cv_CC_dependencies_compiler_type=none
4218fi
4219
4220fi
4221{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4222echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4223CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4224
4225 if
4226  test "x$enable_dependency_tracking" != xno \
4227  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4228  am__fastdepCC_TRUE=
4229  am__fastdepCC_FALSE='#'
4230else
4231  am__fastdepCC_TRUE='#'
4232  am__fastdepCC_FALSE=
4233fi
4234
4235
4236   { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4237echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
4238if test "${ac_cv_prog_cc_c99+set}" = set; then
4239  echo $ECHO_N "(cached) $ECHO_C" >&6
4240else
4241  ac_cv_prog_cc_c99=no
4242ac_save_CC=$CC
4243cat >conftest.$ac_ext <<_ACEOF
4244/* confdefs.h.  */
4245_ACEOF
4246cat confdefs.h >>conftest.$ac_ext
4247cat >>conftest.$ac_ext <<_ACEOF
4248/* end confdefs.h.  */
4249#include <stdarg.h>
4250#include <stdbool.h>
4251#include <stdlib.h>
4252#include <wchar.h>
4253#include <stdio.h>
4254
4255// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4256#define debug(...) fprintf (stderr, __VA_ARGS__)
4257#define showlist(...) puts (#__VA_ARGS__)
4258#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4259static void
4260test_varargs_macros (void)
4261{
4262  int x = 1234;
4263  int y = 5678;
4264  debug ("Flag");
4265  debug ("X = %d\n", x);
4266  showlist (The first, second, and third items.);
4267  report (x>y, "x is %d but y is %d", x, y);
4268}
4269
4270// Check long long types.
4271#define BIG64 18446744073709551615ull
4272#define BIG32 4294967295ul
4273#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4274#if !BIG_OK
4275  your preprocessor is broken;
4276#endif
4277#if BIG_OK
4278#else
4279  your preprocessor is broken;
4280#endif
4281static long long int bignum = -9223372036854775807LL;
4282static unsigned long long int ubignum = BIG64;
4283
4284struct incomplete_array
4285{
4286  int datasize;
4287  double data[];
4288};
4289
4290struct named_init {
4291  int number;
4292  const wchar_t *name;
4293  double average;
4294};
4295
4296typedef const char *ccp;
4297
4298static inline int
4299test_restrict (ccp restrict text)
4300{
4301  // See if C++-style comments work.
4302  // Iterate through items via the restricted pointer.
4303  // Also check for declarations in for loops.
4304  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4305    continue;
4306  return 0;
4307}
4308
4309// Check varargs and va_copy.
4310static void
4311test_varargs (const char *format, ...)
4312{
4313  va_list args;
4314  va_start (args, format);
4315  va_list args_copy;
4316  va_copy (args_copy, args);
4317
4318  const char *str;
4319  int number;
4320  float fnumber;
4321
4322  while (*format)
4323    {
4324      switch (*format++)
4325	{
4326	case 's': // string
4327	  str = va_arg (args_copy, const char *);
4328	  break;
4329	case 'd': // int
4330	  number = va_arg (args_copy, int);
4331	  break;
4332	case 'f': // float
4333	  fnumber = va_arg (args_copy, double);
4334	  break;
4335	default:
4336	  break;
4337	}
4338    }
4339  va_end (args_copy);
4340  va_end (args);
4341}
4342
4343int
4344main ()
4345{
4346
4347  // Check bool.
4348  _Bool success = false;
4349
4350  // Check restrict.
4351  if (test_restrict ("String literal") == 0)
4352    success = true;
4353  char *restrict newvar = "Another string";
4354
4355  // Check varargs.
4356  test_varargs ("s, d' f .", "string", 65, 34.234);
4357  test_varargs_macros ();
4358
4359  // Check flexible array members.
4360  struct incomplete_array *ia =
4361    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4362  ia->datasize = 10;
4363  for (int i = 0; i < ia->datasize; ++i)
4364    ia->data[i] = i * 1.234;
4365
4366  // Check named initializers.
4367  struct named_init ni = {
4368    .number = 34,
4369    .name = L"Test wide string",
4370    .average = 543.34343,
4371  };
4372
4373  ni.number = 58;
4374
4375  int dynamic_array[ni.number];
4376  dynamic_array[ni.number - 1] = 543;
4377
4378  // work around unused variable warnings
4379  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4380	  || dynamic_array[ni.number - 1] != 543);
4381
4382  ;
4383  return 0;
4384}
4385_ACEOF
4386for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
4387do
4388  CC="$ac_save_CC $ac_arg"
4389  rm -f conftest.$ac_objext
4390if { (ac_try="$ac_compile"
4391case "(($ac_try" in
4392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393  *) ac_try_echo=$ac_try;;
4394esac
4395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4396  (eval "$ac_compile") 2>conftest.er1
4397  ac_status=$?
4398  grep -v '^ *+' conftest.er1 >conftest.err
4399  rm -f conftest.er1
4400  cat conftest.err >&5
4401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402  (exit $ac_status); } && {
4403	 test -z "$ac_c_werror_flag" ||
4404	 test ! -s conftest.err
4405       } && test -s conftest.$ac_objext; then
4406  ac_cv_prog_cc_c99=$ac_arg
4407else
4408  echo "$as_me: failed program was:" >&5
4409sed 's/^/| /' conftest.$ac_ext >&5
4410
4411
4412fi
4413
4414rm -f core conftest.err conftest.$ac_objext
4415  test "x$ac_cv_prog_cc_c99" != "xno" && break
4416done
4417rm -f conftest.$ac_ext
4418CC=$ac_save_CC
4419
4420fi
4421# AC_CACHE_VAL
4422case "x$ac_cv_prog_cc_c99" in
4423  x)
4424    { echo "$as_me:$LINENO: result: none needed" >&5
4425echo "${ECHO_T}none needed" >&6; } ;;
4426  xno)
4427    { echo "$as_me:$LINENO: result: unsupported" >&5
4428echo "${ECHO_T}unsupported" >&6; } ;;
4429  *)
4430    CC="$CC $ac_cv_prog_cc_c99"
4431    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4432echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
4433esac
4434
4435
4436
4437
4438ac_ext=c
4439ac_cpp='$CPP $CPPFLAGS'
4440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4442ac_compiler_gnu=$ac_cv_c_compiler_gnu
4443{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4444echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4445# On Suns, sometimes $CPP names a directory.
4446if test -n "$CPP" && test -d "$CPP"; then
4447  CPP=
4448fi
4449if test -z "$CPP"; then
4450  if test "${ac_cv_prog_CPP+set}" = set; then
4451  echo $ECHO_N "(cached) $ECHO_C" >&6
4452else
4453      # Double quotes because CPP needs to be expanded
4454    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4455    do
4456      ac_preproc_ok=false
4457for ac_c_preproc_warn_flag in '' yes
4458do
4459  # Use a header file that comes with gcc, so configuring glibc
4460  # with a fresh cross-compiler works.
4461  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4462  # <limits.h> exists even on freestanding compilers.
4463  # On the NeXT, cc -E runs the code through the compiler's parser,
4464  # not just through cpp. "Syntax error" is here to catch this case.
4465  cat >conftest.$ac_ext <<_ACEOF
4466/* confdefs.h.  */
4467_ACEOF
4468cat confdefs.h >>conftest.$ac_ext
4469cat >>conftest.$ac_ext <<_ACEOF
4470/* end confdefs.h.  */
4471#ifdef __STDC__
4472# include <limits.h>
4473#else
4474# include <assert.h>
4475#endif
4476		     Syntax error
4477_ACEOF
4478if { (ac_try="$ac_cpp conftest.$ac_ext"
4479case "(($ac_try" in
4480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481  *) ac_try_echo=$ac_try;;
4482esac
4483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4485  ac_status=$?
4486  grep -v '^ *+' conftest.er1 >conftest.err
4487  rm -f conftest.er1
4488  cat conftest.err >&5
4489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490  (exit $ac_status); } >/dev/null && {
4491	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4492	 test ! -s conftest.err
4493       }; then
4494  :
4495else
4496  echo "$as_me: failed program was:" >&5
4497sed 's/^/| /' conftest.$ac_ext >&5
4498
4499  # Broken: fails on valid input.
4500continue
4501fi
4502
4503rm -f conftest.err conftest.$ac_ext
4504
4505  # OK, works on sane cases.  Now check whether nonexistent headers
4506  # can be detected and how.
4507  cat >conftest.$ac_ext <<_ACEOF
4508/* confdefs.h.  */
4509_ACEOF
4510cat confdefs.h >>conftest.$ac_ext
4511cat >>conftest.$ac_ext <<_ACEOF
4512/* end confdefs.h.  */
4513#include <ac_nonexistent.h>
4514_ACEOF
4515if { (ac_try="$ac_cpp conftest.$ac_ext"
4516case "(($ac_try" in
4517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518  *) ac_try_echo=$ac_try;;
4519esac
4520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4522  ac_status=$?
4523  grep -v '^ *+' conftest.er1 >conftest.err
4524  rm -f conftest.er1
4525  cat conftest.err >&5
4526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527  (exit $ac_status); } >/dev/null && {
4528	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4529	 test ! -s conftest.err
4530       }; then
4531  # Broken: success on invalid input.
4532continue
4533else
4534  echo "$as_me: failed program was:" >&5
4535sed 's/^/| /' conftest.$ac_ext >&5
4536
4537  # Passes both tests.
4538ac_preproc_ok=:
4539break
4540fi
4541
4542rm -f conftest.err conftest.$ac_ext
4543
4544done
4545# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4546rm -f conftest.err conftest.$ac_ext
4547if $ac_preproc_ok; then
4548  break
4549fi
4550
4551    done
4552    ac_cv_prog_CPP=$CPP
4553
4554fi
4555  CPP=$ac_cv_prog_CPP
4556else
4557  ac_cv_prog_CPP=$CPP
4558fi
4559{ echo "$as_me:$LINENO: result: $CPP" >&5
4560echo "${ECHO_T}$CPP" >&6; }
4561ac_preproc_ok=false
4562for ac_c_preproc_warn_flag in '' yes
4563do
4564  # Use a header file that comes with gcc, so configuring glibc
4565  # with a fresh cross-compiler works.
4566  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4567  # <limits.h> exists even on freestanding compilers.
4568  # On the NeXT, cc -E runs the code through the compiler's parser,
4569  # not just through cpp. "Syntax error" is here to catch this case.
4570  cat >conftest.$ac_ext <<_ACEOF
4571/* confdefs.h.  */
4572_ACEOF
4573cat confdefs.h >>conftest.$ac_ext
4574cat >>conftest.$ac_ext <<_ACEOF
4575/* end confdefs.h.  */
4576#ifdef __STDC__
4577# include <limits.h>
4578#else
4579# include <assert.h>
4580#endif
4581		     Syntax error
4582_ACEOF
4583if { (ac_try="$ac_cpp conftest.$ac_ext"
4584case "(($ac_try" in
4585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586  *) ac_try_echo=$ac_try;;
4587esac
4588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4589  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4590  ac_status=$?
4591  grep -v '^ *+' conftest.er1 >conftest.err
4592  rm -f conftest.er1
4593  cat conftest.err >&5
4594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595  (exit $ac_status); } >/dev/null && {
4596	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4597	 test ! -s conftest.err
4598       }; then
4599  :
4600else
4601  echo "$as_me: failed program was:" >&5
4602sed 's/^/| /' conftest.$ac_ext >&5
4603
4604  # Broken: fails on valid input.
4605continue
4606fi
4607
4608rm -f conftest.err conftest.$ac_ext
4609
4610  # OK, works on sane cases.  Now check whether nonexistent headers
4611  # can be detected and how.
4612  cat >conftest.$ac_ext <<_ACEOF
4613/* confdefs.h.  */
4614_ACEOF
4615cat confdefs.h >>conftest.$ac_ext
4616cat >>conftest.$ac_ext <<_ACEOF
4617/* end confdefs.h.  */
4618#include <ac_nonexistent.h>
4619_ACEOF
4620if { (ac_try="$ac_cpp conftest.$ac_ext"
4621case "(($ac_try" in
4622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623  *) ac_try_echo=$ac_try;;
4624esac
4625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4626  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4627  ac_status=$?
4628  grep -v '^ *+' conftest.er1 >conftest.err
4629  rm -f conftest.er1
4630  cat conftest.err >&5
4631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632  (exit $ac_status); } >/dev/null && {
4633	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4634	 test ! -s conftest.err
4635       }; then
4636  # Broken: success on invalid input.
4637continue
4638else
4639  echo "$as_me: failed program was:" >&5
4640sed 's/^/| /' conftest.$ac_ext >&5
4641
4642  # Passes both tests.
4643ac_preproc_ok=:
4644break
4645fi
4646
4647rm -f conftest.err conftest.$ac_ext
4648
4649done
4650# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4651rm -f conftest.err conftest.$ac_ext
4652if $ac_preproc_ok; then
4653  :
4654else
4655  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4656See \`config.log' for more details." >&5
4657echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4658See \`config.log' for more details." >&2;}
4659   { (exit 1); exit 1; }; }
4660fi
4661
4662ac_ext=c
4663ac_cpp='$CPP $CPPFLAGS'
4664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4666ac_compiler_gnu=$ac_cv_c_compiler_gnu
4667
4668
4669{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4670echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4671if test "${ac_cv_path_GREP+set}" = set; then
4672  echo $ECHO_N "(cached) $ECHO_C" >&6
4673else
4674  # Extract the first word of "grep ggrep" to use in msg output
4675if test -z "$GREP"; then
4676set dummy grep ggrep; ac_prog_name=$2
4677if test "${ac_cv_path_GREP+set}" = set; then
4678  echo $ECHO_N "(cached) $ECHO_C" >&6
4679else
4680  ac_path_GREP_found=false
4681# Loop through the user's path and test for each of PROGNAME-LIST
4682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4684do
4685  IFS=$as_save_IFS
4686  test -z "$as_dir" && as_dir=.
4687  for ac_prog in grep ggrep; do
4688  for ac_exec_ext in '' $ac_executable_extensions; do
4689    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4690    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4691    # Check for GNU ac_path_GREP and select it if it is found.
4692  # Check for GNU $ac_path_GREP
4693case `"$ac_path_GREP" --version 2>&1` in
4694*GNU*)
4695  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4696*)
4697  ac_count=0
4698  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4699  while :
4700  do
4701    cat "conftest.in" "conftest.in" >"conftest.tmp"
4702    mv "conftest.tmp" "conftest.in"
4703    cp "conftest.in" "conftest.nl"
4704    echo 'GREP' >> "conftest.nl"
4705    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4706    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4707    ac_count=`expr $ac_count + 1`
4708    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4709      # Best one so far, save it but keep looking for a better one
4710      ac_cv_path_GREP="$ac_path_GREP"
4711      ac_path_GREP_max=$ac_count
4712    fi
4713    # 10*(2^10) chars as input seems more than enough
4714    test $ac_count -gt 10 && break
4715  done
4716  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4717esac
4718
4719
4720    $ac_path_GREP_found && break 3
4721  done
4722done
4723
4724done
4725IFS=$as_save_IFS
4726
4727
4728fi
4729
4730GREP="$ac_cv_path_GREP"
4731if test -z "$GREP"; then
4732  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4733echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4734   { (exit 1); exit 1; }; }
4735fi
4736
4737else
4738  ac_cv_path_GREP=$GREP
4739fi
4740
4741
4742fi
4743{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4744echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4745 GREP="$ac_cv_path_GREP"
4746
4747
4748{ echo "$as_me:$LINENO: checking for egrep" >&5
4749echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4750if test "${ac_cv_path_EGREP+set}" = set; then
4751  echo $ECHO_N "(cached) $ECHO_C" >&6
4752else
4753  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4754   then ac_cv_path_EGREP="$GREP -E"
4755   else
4756     # Extract the first word of "egrep" to use in msg output
4757if test -z "$EGREP"; then
4758set dummy egrep; ac_prog_name=$2
4759if test "${ac_cv_path_EGREP+set}" = set; then
4760  echo $ECHO_N "(cached) $ECHO_C" >&6
4761else
4762  ac_path_EGREP_found=false
4763# Loop through the user's path and test for each of PROGNAME-LIST
4764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4766do
4767  IFS=$as_save_IFS
4768  test -z "$as_dir" && as_dir=.
4769  for ac_prog in egrep; do
4770  for ac_exec_ext in '' $ac_executable_extensions; do
4771    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4772    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4773    # Check for GNU ac_path_EGREP and select it if it is found.
4774  # Check for GNU $ac_path_EGREP
4775case `"$ac_path_EGREP" --version 2>&1` in
4776*GNU*)
4777  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4778*)
4779  ac_count=0
4780  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4781  while :
4782  do
4783    cat "conftest.in" "conftest.in" >"conftest.tmp"
4784    mv "conftest.tmp" "conftest.in"
4785    cp "conftest.in" "conftest.nl"
4786    echo 'EGREP' >> "conftest.nl"
4787    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4788    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4789    ac_count=`expr $ac_count + 1`
4790    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4791      # Best one so far, save it but keep looking for a better one
4792      ac_cv_path_EGREP="$ac_path_EGREP"
4793      ac_path_EGREP_max=$ac_count
4794    fi
4795    # 10*(2^10) chars as input seems more than enough
4796    test $ac_count -gt 10 && break
4797  done
4798  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4799esac
4800
4801
4802    $ac_path_EGREP_found && break 3
4803  done
4804done
4805
4806done
4807IFS=$as_save_IFS
4808
4809
4810fi
4811
4812EGREP="$ac_cv_path_EGREP"
4813if test -z "$EGREP"; then
4814  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4815echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4816   { (exit 1); exit 1; }; }
4817fi
4818
4819else
4820  ac_cv_path_EGREP=$EGREP
4821fi
4822
4823
4824   fi
4825fi
4826{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4827echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4828 EGREP="$ac_cv_path_EGREP"
4829
4830
4831{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4832echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4833if test "${ac_cv_header_stdc+set}" = set; then
4834  echo $ECHO_N "(cached) $ECHO_C" >&6
4835else
4836  cat >conftest.$ac_ext <<_ACEOF
4837/* confdefs.h.  */
4838_ACEOF
4839cat confdefs.h >>conftest.$ac_ext
4840cat >>conftest.$ac_ext <<_ACEOF
4841/* end confdefs.h.  */
4842#include <stdlib.h>
4843#include <stdarg.h>
4844#include <string.h>
4845#include <float.h>
4846
4847int
4848main ()
4849{
4850
4851  ;
4852  return 0;
4853}
4854_ACEOF
4855rm -f conftest.$ac_objext
4856if { (ac_try="$ac_compile"
4857case "(($ac_try" in
4858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859  *) ac_try_echo=$ac_try;;
4860esac
4861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4862  (eval "$ac_compile") 2>conftest.er1
4863  ac_status=$?
4864  grep -v '^ *+' conftest.er1 >conftest.err
4865  rm -f conftest.er1
4866  cat conftest.err >&5
4867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868  (exit $ac_status); } && {
4869	 test -z "$ac_c_werror_flag" ||
4870	 test ! -s conftest.err
4871       } && test -s conftest.$ac_objext; then
4872  ac_cv_header_stdc=yes
4873else
4874  echo "$as_me: failed program was:" >&5
4875sed 's/^/| /' conftest.$ac_ext >&5
4876
4877	ac_cv_header_stdc=no
4878fi
4879
4880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4881
4882if test $ac_cv_header_stdc = yes; then
4883  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4884  cat >conftest.$ac_ext <<_ACEOF
4885/* confdefs.h.  */
4886_ACEOF
4887cat confdefs.h >>conftest.$ac_ext
4888cat >>conftest.$ac_ext <<_ACEOF
4889/* end confdefs.h.  */
4890#include <string.h>
4891
4892_ACEOF
4893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4894  $EGREP "memchr" >/dev/null 2>&1; then
4895  :
4896else
4897  ac_cv_header_stdc=no
4898fi
4899rm -f -r conftest*
4900
4901fi
4902
4903if test $ac_cv_header_stdc = yes; then
4904  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4905  cat >conftest.$ac_ext <<_ACEOF
4906/* confdefs.h.  */
4907_ACEOF
4908cat confdefs.h >>conftest.$ac_ext
4909cat >>conftest.$ac_ext <<_ACEOF
4910/* end confdefs.h.  */
4911#include <stdlib.h>
4912
4913_ACEOF
4914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4915  $EGREP "free" >/dev/null 2>&1; then
4916  :
4917else
4918  ac_cv_header_stdc=no
4919fi
4920rm -f -r conftest*
4921
4922fi
4923
4924if test $ac_cv_header_stdc = yes; then
4925  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4926  if test "$cross_compiling" = yes; then
4927  :
4928else
4929  cat >conftest.$ac_ext <<_ACEOF
4930/* confdefs.h.  */
4931_ACEOF
4932cat confdefs.h >>conftest.$ac_ext
4933cat >>conftest.$ac_ext <<_ACEOF
4934/* end confdefs.h.  */
4935#include <ctype.h>
4936#include <stdlib.h>
4937#if ((' ' & 0x0FF) == 0x020)
4938# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4939# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4940#else
4941# define ISLOWER(c) \
4942		   (('a' <= (c) && (c) <= 'i') \
4943		     || ('j' <= (c) && (c) <= 'r') \
4944		     || ('s' <= (c) && (c) <= 'z'))
4945# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4946#endif
4947
4948#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4949int
4950main ()
4951{
4952  int i;
4953  for (i = 0; i < 256; i++)
4954    if (XOR (islower (i), ISLOWER (i))
4955	|| toupper (i) != TOUPPER (i))
4956      return 2;
4957  return 0;
4958}
4959_ACEOF
4960rm -f conftest$ac_exeext
4961if { (ac_try="$ac_link"
4962case "(($ac_try" in
4963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964  *) ac_try_echo=$ac_try;;
4965esac
4966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4967  (eval "$ac_link") 2>&5
4968  ac_status=$?
4969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4971  { (case "(($ac_try" in
4972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973  *) ac_try_echo=$ac_try;;
4974esac
4975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4976  (eval "$ac_try") 2>&5
4977  ac_status=$?
4978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979  (exit $ac_status); }; }; then
4980  :
4981else
4982  echo "$as_me: program exited with status $ac_status" >&5
4983echo "$as_me: failed program was:" >&5
4984sed 's/^/| /' conftest.$ac_ext >&5
4985
4986( exit $ac_status )
4987ac_cv_header_stdc=no
4988fi
4989rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4990fi
4991
4992
4993fi
4994fi
4995{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4996echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4997if test $ac_cv_header_stdc = yes; then
4998
4999cat >>confdefs.h <<\_ACEOF
5000#define STDC_HEADERS 1
5001_ACEOF
5002
5003fi
5004
5005# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5016		  inttypes.h stdint.h unistd.h
5017do
5018as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5019{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5021if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5022  echo $ECHO_N "(cached) $ECHO_C" >&6
5023else
5024  cat >conftest.$ac_ext <<_ACEOF
5025/* confdefs.h.  */
5026_ACEOF
5027cat confdefs.h >>conftest.$ac_ext
5028cat >>conftest.$ac_ext <<_ACEOF
5029/* end confdefs.h.  */
5030$ac_includes_default
5031
5032#include <$ac_header>
5033_ACEOF
5034rm -f conftest.$ac_objext
5035if { (ac_try="$ac_compile"
5036case "(($ac_try" in
5037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038  *) ac_try_echo=$ac_try;;
5039esac
5040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5041  (eval "$ac_compile") 2>conftest.er1
5042  ac_status=$?
5043  grep -v '^ *+' conftest.er1 >conftest.err
5044  rm -f conftest.er1
5045  cat conftest.err >&5
5046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047  (exit $ac_status); } && {
5048	 test -z "$ac_c_werror_flag" ||
5049	 test ! -s conftest.err
5050       } && test -s conftest.$ac_objext; then
5051  eval "$as_ac_Header=yes"
5052else
5053  echo "$as_me: failed program was:" >&5
5054sed 's/^/| /' conftest.$ac_ext >&5
5055
5056	eval "$as_ac_Header=no"
5057fi
5058
5059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5060fi
5061ac_res=`eval echo '${'$as_ac_Header'}'`
5062	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5063echo "${ECHO_T}$ac_res" >&6; }
5064if test `eval echo '${'$as_ac_Header'}'` = yes; then
5065  cat >>confdefs.h <<_ACEOF
5066#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5067_ACEOF
5068
5069fi
5070
5071done
5072
5073
5074
5075
5076{ echo "$as_me:$LINENO: checking whether __clang__ is declared" >&5
5077echo $ECHO_N "checking whether __clang__ is declared... $ECHO_C" >&6; }
5078if test "${ac_cv_have_decl___clang__+set}" = set; then
5079  echo $ECHO_N "(cached) $ECHO_C" >&6
5080else
5081  cat >conftest.$ac_ext <<_ACEOF
5082/* confdefs.h.  */
5083_ACEOF
5084cat confdefs.h >>conftest.$ac_ext
5085cat >>conftest.$ac_ext <<_ACEOF
5086/* end confdefs.h.  */
5087$ac_includes_default
5088int
5089main ()
5090{
5091#ifndef __clang__
5092  (void) __clang__;
5093#endif
5094
5095  ;
5096  return 0;
5097}
5098_ACEOF
5099rm -f conftest.$ac_objext
5100if { (ac_try="$ac_compile"
5101case "(($ac_try" in
5102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103  *) ac_try_echo=$ac_try;;
5104esac
5105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106  (eval "$ac_compile") 2>conftest.er1
5107  ac_status=$?
5108  grep -v '^ *+' conftest.er1 >conftest.err
5109  rm -f conftest.er1
5110  cat conftest.err >&5
5111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112  (exit $ac_status); } && {
5113	 test -z "$ac_c_werror_flag" ||
5114	 test ! -s conftest.err
5115       } && test -s conftest.$ac_objext; then
5116  ac_cv_have_decl___clang__=yes
5117else
5118  echo "$as_me: failed program was:" >&5
5119sed 's/^/| /' conftest.$ac_ext >&5
5120
5121	ac_cv_have_decl___clang__=no
5122fi
5123
5124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5125fi
5126{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___clang__" >&5
5127echo "${ECHO_T}$ac_cv_have_decl___clang__" >&6; }
5128if test $ac_cv_have_decl___clang__ = yes; then
5129  CLANGCC="yes"
5130else
5131  CLANGCC="no"
5132fi
5133
5134{ echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
5135echo $ECHO_N "checking whether __INTEL_COMPILER is declared... $ECHO_C" >&6; }
5136if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
5137  echo $ECHO_N "(cached) $ECHO_C" >&6
5138else
5139  cat >conftest.$ac_ext <<_ACEOF
5140/* confdefs.h.  */
5141_ACEOF
5142cat confdefs.h >>conftest.$ac_ext
5143cat >>conftest.$ac_ext <<_ACEOF
5144/* end confdefs.h.  */
5145$ac_includes_default
5146int
5147main ()
5148{
5149#ifndef __INTEL_COMPILER
5150  (void) __INTEL_COMPILER;
5151#endif
5152
5153  ;
5154  return 0;
5155}
5156_ACEOF
5157rm -f conftest.$ac_objext
5158if { (ac_try="$ac_compile"
5159case "(($ac_try" in
5160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5161  *) ac_try_echo=$ac_try;;
5162esac
5163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5164  (eval "$ac_compile") 2>conftest.er1
5165  ac_status=$?
5166  grep -v '^ *+' conftest.er1 >conftest.err
5167  rm -f conftest.er1
5168  cat conftest.err >&5
5169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170  (exit $ac_status); } && {
5171	 test -z "$ac_c_werror_flag" ||
5172	 test ! -s conftest.err
5173       } && test -s conftest.$ac_objext; then
5174  ac_cv_have_decl___INTEL_COMPILER=yes
5175else
5176  echo "$as_me: failed program was:" >&5
5177sed 's/^/| /' conftest.$ac_ext >&5
5178
5179	ac_cv_have_decl___INTEL_COMPILER=no
5180fi
5181
5182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5183fi
5184{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
5185echo "${ECHO_T}$ac_cv_have_decl___INTEL_COMPILER" >&6; }
5186if test $ac_cv_have_decl___INTEL_COMPILER = yes; then
5187  INTELCC="yes"
5188else
5189  INTELCC="no"
5190fi
5191
5192{ echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
5193echo $ECHO_N "checking whether __SUNPRO_C is declared... $ECHO_C" >&6; }
5194if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
5195  echo $ECHO_N "(cached) $ECHO_C" >&6
5196else
5197  cat >conftest.$ac_ext <<_ACEOF
5198/* confdefs.h.  */
5199_ACEOF
5200cat confdefs.h >>conftest.$ac_ext
5201cat >>conftest.$ac_ext <<_ACEOF
5202/* end confdefs.h.  */
5203$ac_includes_default
5204int
5205main ()
5206{
5207#ifndef __SUNPRO_C
5208  (void) __SUNPRO_C;
5209#endif
5210
5211  ;
5212  return 0;
5213}
5214_ACEOF
5215rm -f conftest.$ac_objext
5216if { (ac_try="$ac_compile"
5217case "(($ac_try" in
5218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5219  *) ac_try_echo=$ac_try;;
5220esac
5221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5222  (eval "$ac_compile") 2>conftest.er1
5223  ac_status=$?
5224  grep -v '^ *+' conftest.er1 >conftest.err
5225  rm -f conftest.er1
5226  cat conftest.err >&5
5227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228  (exit $ac_status); } && {
5229	 test -z "$ac_c_werror_flag" ||
5230	 test ! -s conftest.err
5231       } && test -s conftest.$ac_objext; then
5232  ac_cv_have_decl___SUNPRO_C=yes
5233else
5234  echo "$as_me: failed program was:" >&5
5235sed 's/^/| /' conftest.$ac_ext >&5
5236
5237	ac_cv_have_decl___SUNPRO_C=no
5238fi
5239
5240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5241fi
5242{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
5243echo "${ECHO_T}$ac_cv_have_decl___SUNPRO_C" >&6; }
5244if test $ac_cv_have_decl___SUNPRO_C = yes; then
5245  SUNCC="yes"
5246else
5247  SUNCC="no"
5248fi
5249
5250
5251
5252
5253
5254
5255
5256
5257if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5258	if test -n "$ac_tool_prefix"; then
5259  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5260set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5261{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5263if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5264  echo $ECHO_N "(cached) $ECHO_C" >&6
5265else
5266  case $PKG_CONFIG in
5267  [\\/]* | ?:[\\/]*)
5268  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5269  ;;
5270  *)
5271  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272for as_dir in $PATH
5273do
5274  IFS=$as_save_IFS
5275  test -z "$as_dir" && as_dir=.
5276  for ac_exec_ext in '' $ac_executable_extensions; do
5277  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5278    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5279    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5280    break 2
5281  fi
5282done
5283done
5284IFS=$as_save_IFS
5285
5286  ;;
5287esac
5288fi
5289PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5290if test -n "$PKG_CONFIG"; then
5291  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5292echo "${ECHO_T}$PKG_CONFIG" >&6; }
5293else
5294  { echo "$as_me:$LINENO: result: no" >&5
5295echo "${ECHO_T}no" >&6; }
5296fi
5297
5298
5299fi
5300if test -z "$ac_cv_path_PKG_CONFIG"; then
5301  ac_pt_PKG_CONFIG=$PKG_CONFIG
5302  # Extract the first word of "pkg-config", so it can be a program name with args.
5303set dummy pkg-config; ac_word=$2
5304{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5306if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5307  echo $ECHO_N "(cached) $ECHO_C" >&6
5308else
5309  case $ac_pt_PKG_CONFIG in
5310  [\\/]* | ?:[\\/]*)
5311  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5312  ;;
5313  *)
5314  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315for as_dir in $PATH
5316do
5317  IFS=$as_save_IFS
5318  test -z "$as_dir" && as_dir=.
5319  for ac_exec_ext in '' $ac_executable_extensions; do
5320  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5321    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5322    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5323    break 2
5324  fi
5325done
5326done
5327IFS=$as_save_IFS
5328
5329  ;;
5330esac
5331fi
5332ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5333if test -n "$ac_pt_PKG_CONFIG"; then
5334  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5335echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
5336else
5337  { echo "$as_me:$LINENO: result: no" >&5
5338echo "${ECHO_T}no" >&6; }
5339fi
5340
5341  if test "x$ac_pt_PKG_CONFIG" = x; then
5342    PKG_CONFIG=""
5343  else
5344    case $cross_compiling:$ac_tool_warned in
5345yes:)
5346{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5347whose name does not start with the host triplet.  If you think this
5348configuration is useful to you, please write to autoconf@gnu.org." >&5
5349echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5350whose name does not start with the host triplet.  If you think this
5351configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5352ac_tool_warned=yes ;;
5353esac
5354    PKG_CONFIG=$ac_pt_PKG_CONFIG
5355  fi
5356else
5357  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5358fi
5359
5360fi
5361if test -n "$PKG_CONFIG"; then
5362	_pkg_min_version=0.9.0
5363	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5364echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
5365	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5366		{ echo "$as_me:$LINENO: result: yes" >&5
5367echo "${ECHO_T}yes" >&6; }
5368	else
5369		{ echo "$as_me:$LINENO: result: no" >&5
5370echo "${ECHO_T}no" >&6; }
5371		PKG_CONFIG=""
5372	fi
5373fi
5374# Make sure we can run config.sub.
5375$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5376  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5377echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5378   { (exit 1); exit 1; }; }
5379
5380{ echo "$as_me:$LINENO: checking build system type" >&5
5381echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5382if test "${ac_cv_build+set}" = set; then
5383  echo $ECHO_N "(cached) $ECHO_C" >&6
5384else
5385  ac_build_alias=$build_alias
5386test "x$ac_build_alias" = x &&
5387  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5388test "x$ac_build_alias" = x &&
5389  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5390echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5391   { (exit 1); exit 1; }; }
5392ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5393  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5394echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5395   { (exit 1); exit 1; }; }
5396
5397fi
5398{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5399echo "${ECHO_T}$ac_cv_build" >&6; }
5400case $ac_cv_build in
5401*-*-*) ;;
5402*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5403echo "$as_me: error: invalid value of canonical build" >&2;}
5404   { (exit 1); exit 1; }; };;
5405esac
5406build=$ac_cv_build
5407ac_save_IFS=$IFS; IFS='-'
5408set x $ac_cv_build
5409shift
5410build_cpu=$1
5411build_vendor=$2
5412shift; shift
5413# Remember, the first character of IFS is used to create $*,
5414# except with old shells:
5415build_os=$*
5416IFS=$ac_save_IFS
5417case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5418
5419
5420{ echo "$as_me:$LINENO: checking host system type" >&5
5421echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5422if test "${ac_cv_host+set}" = set; then
5423  echo $ECHO_N "(cached) $ECHO_C" >&6
5424else
5425  if test "x$host_alias" = x; then
5426  ac_cv_host=$ac_cv_build
5427else
5428  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5429    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5430echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5431   { (exit 1); exit 1; }; }
5432fi
5433
5434fi
5435{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5436echo "${ECHO_T}$ac_cv_host" >&6; }
5437case $ac_cv_host in
5438*-*-*) ;;
5439*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5440echo "$as_me: error: invalid value of canonical host" >&2;}
5441   { (exit 1); exit 1; }; };;
5442esac
5443host=$ac_cv_host
5444ac_save_IFS=$IFS; IFS='-'
5445set x $ac_cv_host
5446shift
5447host_cpu=$1
5448host_vendor=$2
5449shift; shift
5450# Remember, the first character of IFS is used to create $*,
5451# except with old shells:
5452host_os=$*
5453IFS=$ac_save_IFS
5454case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5455
5456
5457{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5458echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5459if test "${ac_cv_path_SED+set}" = set; then
5460  echo $ECHO_N "(cached) $ECHO_C" >&6
5461else
5462            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5463     for ac_i in 1 2 3 4 5 6 7; do
5464       ac_script="$ac_script$as_nl$ac_script"
5465     done
5466     echo "$ac_script" | sed 99q >conftest.sed
5467     $as_unset ac_script || ac_script=
5468     # Extract the first word of "sed gsed" to use in msg output
5469if test -z "$SED"; then
5470set dummy sed gsed; ac_prog_name=$2
5471if test "${ac_cv_path_SED+set}" = set; then
5472  echo $ECHO_N "(cached) $ECHO_C" >&6
5473else
5474  ac_path_SED_found=false
5475# Loop through the user's path and test for each of PROGNAME-LIST
5476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477for as_dir in $PATH
5478do
5479  IFS=$as_save_IFS
5480  test -z "$as_dir" && as_dir=.
5481  for ac_prog in sed gsed; do
5482  for ac_exec_ext in '' $ac_executable_extensions; do
5483    ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5484    { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5485    # Check for GNU ac_path_SED and select it if it is found.
5486  # Check for GNU $ac_path_SED
5487case `"$ac_path_SED" --version 2>&1` in
5488*GNU*)
5489  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5490*)
5491  ac_count=0
5492  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5493  while :
5494  do
5495    cat "conftest.in" "conftest.in" >"conftest.tmp"
5496    mv "conftest.tmp" "conftest.in"
5497    cp "conftest.in" "conftest.nl"
5498    echo '' >> "conftest.nl"
5499    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5500    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5501    ac_count=`expr $ac_count + 1`
5502    if test $ac_count -gt ${ac_path_SED_max-0}; then
5503      # Best one so far, save it but keep looking for a better one
5504      ac_cv_path_SED="$ac_path_SED"
5505      ac_path_SED_max=$ac_count
5506    fi
5507    # 10*(2^10) chars as input seems more than enough
5508    test $ac_count -gt 10 && break
5509  done
5510  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5511esac
5512
5513
5514    $ac_path_SED_found && break 3
5515  done
5516done
5517
5518done
5519IFS=$as_save_IFS
5520
5521
5522fi
5523
5524SED="$ac_cv_path_SED"
5525if test -z "$SED"; then
5526  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5527echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5528   { (exit 1); exit 1; }; }
5529fi
5530
5531else
5532  ac_cv_path_SED=$SED
5533fi
5534
5535fi
5536{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5537echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5538 SED="$ac_cv_path_SED"
5539  rm -f conftest.sed
5540
5541
5542
5543
5544
5545
5546# Check whether --enable-selective-werror was given.
5547if test "${enable_selective_werror+set}" = set; then
5548  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5549else
5550  SELECTIVE_WERROR=yes
5551fi
5552
5553
5554# -v is too short to test reliably with XORG_TESTSET_CFLAG
5555if test "x$SUNCC" = "xyes"; then
5556    BASE_CFLAGS="-v"
5557else
5558    BASE_CFLAGS=""
5559fi
5560
5561# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5562
5563
5564
5565
5566
5567xorg_testset_save_CFLAGS="$CFLAGS"
5568
5569if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5570	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5571	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
5572echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
5573	cat >conftest.$ac_ext <<_ACEOF
5574/* confdefs.h.  */
5575_ACEOF
5576cat confdefs.h >>conftest.$ac_ext
5577cat >>conftest.$ac_ext <<_ACEOF
5578/* end confdefs.h.  */
5579int i;
5580_ACEOF
5581rm -f conftest.$ac_objext
5582if { (ac_try="$ac_compile"
5583case "(($ac_try" in
5584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5585  *) ac_try_echo=$ac_try;;
5586esac
5587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5588  (eval "$ac_compile") 2>conftest.er1
5589  ac_status=$?
5590  grep -v '^ *+' conftest.er1 >conftest.err
5591  rm -f conftest.er1
5592  cat conftest.err >&5
5593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594  (exit $ac_status); } && {
5595	 test -z "$ac_c_werror_flag" ||
5596	 test ! -s conftest.err
5597       } && test -s conftest.$ac_objext; then
5598  xorg_testset_unknown_warning_option=yes
5599else
5600  echo "$as_me: failed program was:" >&5
5601sed 's/^/| /' conftest.$ac_ext >&5
5602
5603	xorg_testset_unknown_warning_option=no
5604fi
5605
5606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
5608echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
5609	CFLAGS="$xorg_testset_save_CFLAGS"
5610fi
5611
5612if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5613	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5614		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5615	fi
5616	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5617	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
5618echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
5619	cat >conftest.$ac_ext <<_ACEOF
5620/* confdefs.h.  */
5621_ACEOF
5622cat confdefs.h >>conftest.$ac_ext
5623cat >>conftest.$ac_ext <<_ACEOF
5624/* end confdefs.h.  */
5625int i;
5626_ACEOF
5627rm -f conftest.$ac_objext
5628if { (ac_try="$ac_compile"
5629case "(($ac_try" in
5630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631  *) ac_try_echo=$ac_try;;
5632esac
5633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5634  (eval "$ac_compile") 2>conftest.er1
5635  ac_status=$?
5636  grep -v '^ *+' conftest.er1 >conftest.err
5637  rm -f conftest.er1
5638  cat conftest.err >&5
5639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640  (exit $ac_status); } && {
5641	 test -z "$ac_c_werror_flag" ||
5642	 test ! -s conftest.err
5643       } && test -s conftest.$ac_objext; then
5644  xorg_testset_unused_command_line_argument=yes
5645else
5646  echo "$as_me: failed program was:" >&5
5647sed 's/^/| /' conftest.$ac_ext >&5
5648
5649	xorg_testset_unused_command_line_argument=no
5650fi
5651
5652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
5654echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
5655	CFLAGS="$xorg_testset_save_CFLAGS"
5656fi
5657
5658found="no"
5659
5660	if test $found = "no" ; then
5661		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5662			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5663		fi
5664
5665		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5666			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5667		fi
5668
5669		CFLAGS="$CFLAGS -Wall"
5670
5671		{ echo "$as_me:$LINENO: checking if $CC supports -Wall" >&5
5672echo $ECHO_N "checking if $CC supports -Wall... $ECHO_C" >&6; }
5673		cat >conftest.$ac_ext <<_ACEOF
5674/* confdefs.h.  */
5675_ACEOF
5676cat confdefs.h >>conftest.$ac_ext
5677cat >>conftest.$ac_ext <<_ACEOF
5678/* end confdefs.h.  */
5679int i;
5680int
5681main ()
5682{
5683
5684  ;
5685  return 0;
5686}
5687_ACEOF
5688rm -f conftest.$ac_objext conftest$ac_exeext
5689if { (ac_try="$ac_link"
5690case "(($ac_try" in
5691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692  *) ac_try_echo=$ac_try;;
5693esac
5694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695  (eval "$ac_link") 2>conftest.er1
5696  ac_status=$?
5697  grep -v '^ *+' conftest.er1 >conftest.err
5698  rm -f conftest.er1
5699  cat conftest.err >&5
5700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701  (exit $ac_status); } && {
5702	 test -z "$ac_c_werror_flag" ||
5703	 test ! -s conftest.err
5704       } && test -s conftest$ac_exeext &&
5705       $as_test_x conftest$ac_exeext; then
5706  supported=yes
5707else
5708  echo "$as_me: failed program was:" >&5
5709sed 's/^/| /' conftest.$ac_ext >&5
5710
5711	supported=no
5712fi
5713
5714rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5715      conftest$ac_exeext conftest.$ac_ext
5716		{ echo "$as_me:$LINENO: result: $supported" >&5
5717echo "${ECHO_T}$supported" >&6; }
5718		CFLAGS="$xorg_testset_save_CFLAGS"
5719
5720		if test "$supported" = "yes" ; then
5721			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5722			found="yes"
5723		fi
5724	fi
5725
5726
5727
5728
5729
5730
5731
5732xorg_testset_save_CFLAGS="$CFLAGS"
5733
5734if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5735	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5736	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
5737echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
5738	cat >conftest.$ac_ext <<_ACEOF
5739/* confdefs.h.  */
5740_ACEOF
5741cat confdefs.h >>conftest.$ac_ext
5742cat >>conftest.$ac_ext <<_ACEOF
5743/* end confdefs.h.  */
5744int i;
5745_ACEOF
5746rm -f conftest.$ac_objext
5747if { (ac_try="$ac_compile"
5748case "(($ac_try" in
5749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750  *) ac_try_echo=$ac_try;;
5751esac
5752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753  (eval "$ac_compile") 2>conftest.er1
5754  ac_status=$?
5755  grep -v '^ *+' conftest.er1 >conftest.err
5756  rm -f conftest.er1
5757  cat conftest.err >&5
5758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759  (exit $ac_status); } && {
5760	 test -z "$ac_c_werror_flag" ||
5761	 test ! -s conftest.err
5762       } && test -s conftest.$ac_objext; then
5763  xorg_testset_unknown_warning_option=yes
5764else
5765  echo "$as_me: failed program was:" >&5
5766sed 's/^/| /' conftest.$ac_ext >&5
5767
5768	xorg_testset_unknown_warning_option=no
5769fi
5770
5771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
5773echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
5774	CFLAGS="$xorg_testset_save_CFLAGS"
5775fi
5776
5777if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5778	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5779		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5780	fi
5781	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5782	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
5783echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
5784	cat >conftest.$ac_ext <<_ACEOF
5785/* confdefs.h.  */
5786_ACEOF
5787cat confdefs.h >>conftest.$ac_ext
5788cat >>conftest.$ac_ext <<_ACEOF
5789/* end confdefs.h.  */
5790int i;
5791_ACEOF
5792rm -f conftest.$ac_objext
5793if { (ac_try="$ac_compile"
5794case "(($ac_try" in
5795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796  *) ac_try_echo=$ac_try;;
5797esac
5798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799  (eval "$ac_compile") 2>conftest.er1
5800  ac_status=$?
5801  grep -v '^ *+' conftest.er1 >conftest.err
5802  rm -f conftest.er1
5803  cat conftest.err >&5
5804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805  (exit $ac_status); } && {
5806	 test -z "$ac_c_werror_flag" ||
5807	 test ! -s conftest.err
5808       } && test -s conftest.$ac_objext; then
5809  xorg_testset_unused_command_line_argument=yes
5810else
5811  echo "$as_me: failed program was:" >&5
5812sed 's/^/| /' conftest.$ac_ext >&5
5813
5814	xorg_testset_unused_command_line_argument=no
5815fi
5816
5817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
5819echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
5820	CFLAGS="$xorg_testset_save_CFLAGS"
5821fi
5822
5823found="no"
5824
5825	if test $found = "no" ; then
5826		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5827			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5828		fi
5829
5830		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5831			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5832		fi
5833
5834		CFLAGS="$CFLAGS -Wpointer-arith"
5835
5836		{ echo "$as_me:$LINENO: checking if $CC supports -Wpointer-arith" >&5
5837echo $ECHO_N "checking if $CC supports -Wpointer-arith... $ECHO_C" >&6; }
5838		cat >conftest.$ac_ext <<_ACEOF
5839/* confdefs.h.  */
5840_ACEOF
5841cat confdefs.h >>conftest.$ac_ext
5842cat >>conftest.$ac_ext <<_ACEOF
5843/* end confdefs.h.  */
5844int i;
5845int
5846main ()
5847{
5848
5849  ;
5850  return 0;
5851}
5852_ACEOF
5853rm -f conftest.$ac_objext conftest$ac_exeext
5854if { (ac_try="$ac_link"
5855case "(($ac_try" in
5856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857  *) ac_try_echo=$ac_try;;
5858esac
5859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860  (eval "$ac_link") 2>conftest.er1
5861  ac_status=$?
5862  grep -v '^ *+' conftest.er1 >conftest.err
5863  rm -f conftest.er1
5864  cat conftest.err >&5
5865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866  (exit $ac_status); } && {
5867	 test -z "$ac_c_werror_flag" ||
5868	 test ! -s conftest.err
5869       } && test -s conftest$ac_exeext &&
5870       $as_test_x conftest$ac_exeext; then
5871  supported=yes
5872else
5873  echo "$as_me: failed program was:" >&5
5874sed 's/^/| /' conftest.$ac_ext >&5
5875
5876	supported=no
5877fi
5878
5879rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5880      conftest$ac_exeext conftest.$ac_ext
5881		{ echo "$as_me:$LINENO: result: $supported" >&5
5882echo "${ECHO_T}$supported" >&6; }
5883		CFLAGS="$xorg_testset_save_CFLAGS"
5884
5885		if test "$supported" = "yes" ; then
5886			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5887			found="yes"
5888		fi
5889	fi
5890
5891
5892
5893
5894
5895
5896
5897xorg_testset_save_CFLAGS="$CFLAGS"
5898
5899if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5900	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5901	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
5902echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
5903	cat >conftest.$ac_ext <<_ACEOF
5904/* confdefs.h.  */
5905_ACEOF
5906cat confdefs.h >>conftest.$ac_ext
5907cat >>conftest.$ac_ext <<_ACEOF
5908/* end confdefs.h.  */
5909int i;
5910_ACEOF
5911rm -f conftest.$ac_objext
5912if { (ac_try="$ac_compile"
5913case "(($ac_try" in
5914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915  *) ac_try_echo=$ac_try;;
5916esac
5917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918  (eval "$ac_compile") 2>conftest.er1
5919  ac_status=$?
5920  grep -v '^ *+' conftest.er1 >conftest.err
5921  rm -f conftest.er1
5922  cat conftest.err >&5
5923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924  (exit $ac_status); } && {
5925	 test -z "$ac_c_werror_flag" ||
5926	 test ! -s conftest.err
5927       } && test -s conftest.$ac_objext; then
5928  xorg_testset_unknown_warning_option=yes
5929else
5930  echo "$as_me: failed program was:" >&5
5931sed 's/^/| /' conftest.$ac_ext >&5
5932
5933	xorg_testset_unknown_warning_option=no
5934fi
5935
5936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5937	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
5938echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
5939	CFLAGS="$xorg_testset_save_CFLAGS"
5940fi
5941
5942if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5943	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5944		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5945	fi
5946	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5947	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
5948echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
5949	cat >conftest.$ac_ext <<_ACEOF
5950/* confdefs.h.  */
5951_ACEOF
5952cat confdefs.h >>conftest.$ac_ext
5953cat >>conftest.$ac_ext <<_ACEOF
5954/* end confdefs.h.  */
5955int i;
5956_ACEOF
5957rm -f conftest.$ac_objext
5958if { (ac_try="$ac_compile"
5959case "(($ac_try" in
5960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5961  *) ac_try_echo=$ac_try;;
5962esac
5963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5964  (eval "$ac_compile") 2>conftest.er1
5965  ac_status=$?
5966  grep -v '^ *+' conftest.er1 >conftest.err
5967  rm -f conftest.er1
5968  cat conftest.err >&5
5969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970  (exit $ac_status); } && {
5971	 test -z "$ac_c_werror_flag" ||
5972	 test ! -s conftest.err
5973       } && test -s conftest.$ac_objext; then
5974  xorg_testset_unused_command_line_argument=yes
5975else
5976  echo "$as_me: failed program was:" >&5
5977sed 's/^/| /' conftest.$ac_ext >&5
5978
5979	xorg_testset_unused_command_line_argument=no
5980fi
5981
5982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
5984echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
5985	CFLAGS="$xorg_testset_save_CFLAGS"
5986fi
5987
5988found="no"
5989
5990	if test $found = "no" ; then
5991		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5992			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5993		fi
5994
5995		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5996			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5997		fi
5998
5999		CFLAGS="$CFLAGS -Wstrict-prototypes"
6000
6001		{ echo "$as_me:$LINENO: checking if $CC supports -Wstrict-prototypes" >&5
6002echo $ECHO_N "checking if $CC supports -Wstrict-prototypes... $ECHO_C" >&6; }
6003		cat >conftest.$ac_ext <<_ACEOF
6004/* confdefs.h.  */
6005_ACEOF
6006cat confdefs.h >>conftest.$ac_ext
6007cat >>conftest.$ac_ext <<_ACEOF
6008/* end confdefs.h.  */
6009int i;
6010int
6011main ()
6012{
6013
6014  ;
6015  return 0;
6016}
6017_ACEOF
6018rm -f conftest.$ac_objext conftest$ac_exeext
6019if { (ac_try="$ac_link"
6020case "(($ac_try" in
6021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022  *) ac_try_echo=$ac_try;;
6023esac
6024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6025  (eval "$ac_link") 2>conftest.er1
6026  ac_status=$?
6027  grep -v '^ *+' conftest.er1 >conftest.err
6028  rm -f conftest.er1
6029  cat conftest.err >&5
6030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031  (exit $ac_status); } && {
6032	 test -z "$ac_c_werror_flag" ||
6033	 test ! -s conftest.err
6034       } && test -s conftest$ac_exeext &&
6035       $as_test_x conftest$ac_exeext; then
6036  supported=yes
6037else
6038  echo "$as_me: failed program was:" >&5
6039sed 's/^/| /' conftest.$ac_ext >&5
6040
6041	supported=no
6042fi
6043
6044rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6045      conftest$ac_exeext conftest.$ac_ext
6046		{ echo "$as_me:$LINENO: result: $supported" >&5
6047echo "${ECHO_T}$supported" >&6; }
6048		CFLAGS="$xorg_testset_save_CFLAGS"
6049
6050		if test "$supported" = "yes" ; then
6051			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
6052			found="yes"
6053		fi
6054	fi
6055
6056
6057
6058
6059
6060
6061
6062xorg_testset_save_CFLAGS="$CFLAGS"
6063
6064if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6065	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6066	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
6067echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
6068	cat >conftest.$ac_ext <<_ACEOF
6069/* confdefs.h.  */
6070_ACEOF
6071cat confdefs.h >>conftest.$ac_ext
6072cat >>conftest.$ac_ext <<_ACEOF
6073/* end confdefs.h.  */
6074int i;
6075_ACEOF
6076rm -f conftest.$ac_objext
6077if { (ac_try="$ac_compile"
6078case "(($ac_try" in
6079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080  *) ac_try_echo=$ac_try;;
6081esac
6082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083  (eval "$ac_compile") 2>conftest.er1
6084  ac_status=$?
6085  grep -v '^ *+' conftest.er1 >conftest.err
6086  rm -f conftest.er1
6087  cat conftest.err >&5
6088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089  (exit $ac_status); } && {
6090	 test -z "$ac_c_werror_flag" ||
6091	 test ! -s conftest.err
6092       } && test -s conftest.$ac_objext; then
6093  xorg_testset_unknown_warning_option=yes
6094else
6095  echo "$as_me: failed program was:" >&5
6096sed 's/^/| /' conftest.$ac_ext >&5
6097
6098	xorg_testset_unknown_warning_option=no
6099fi
6100
6101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
6103echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
6104	CFLAGS="$xorg_testset_save_CFLAGS"
6105fi
6106
6107if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6108	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6109		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6110	fi
6111	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6112	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
6113echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
6114	cat >conftest.$ac_ext <<_ACEOF
6115/* confdefs.h.  */
6116_ACEOF
6117cat confdefs.h >>conftest.$ac_ext
6118cat >>conftest.$ac_ext <<_ACEOF
6119/* end confdefs.h.  */
6120int i;
6121_ACEOF
6122rm -f conftest.$ac_objext
6123if { (ac_try="$ac_compile"
6124case "(($ac_try" in
6125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126  *) ac_try_echo=$ac_try;;
6127esac
6128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129  (eval "$ac_compile") 2>conftest.er1
6130  ac_status=$?
6131  grep -v '^ *+' conftest.er1 >conftest.err
6132  rm -f conftest.er1
6133  cat conftest.err >&5
6134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135  (exit $ac_status); } && {
6136	 test -z "$ac_c_werror_flag" ||
6137	 test ! -s conftest.err
6138       } && test -s conftest.$ac_objext; then
6139  xorg_testset_unused_command_line_argument=yes
6140else
6141  echo "$as_me: failed program was:" >&5
6142sed 's/^/| /' conftest.$ac_ext >&5
6143
6144	xorg_testset_unused_command_line_argument=no
6145fi
6146
6147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6148	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6149echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6150	CFLAGS="$xorg_testset_save_CFLAGS"
6151fi
6152
6153found="no"
6154
6155	if test $found = "no" ; then
6156		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6157			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6158		fi
6159
6160		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6161			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6162		fi
6163
6164		CFLAGS="$CFLAGS -Wmissing-prototypes"
6165
6166		{ echo "$as_me:$LINENO: checking if $CC supports -Wmissing-prototypes" >&5
6167echo $ECHO_N "checking if $CC supports -Wmissing-prototypes... $ECHO_C" >&6; }
6168		cat >conftest.$ac_ext <<_ACEOF
6169/* confdefs.h.  */
6170_ACEOF
6171cat confdefs.h >>conftest.$ac_ext
6172cat >>conftest.$ac_ext <<_ACEOF
6173/* end confdefs.h.  */
6174int i;
6175int
6176main ()
6177{
6178
6179  ;
6180  return 0;
6181}
6182_ACEOF
6183rm -f conftest.$ac_objext conftest$ac_exeext
6184if { (ac_try="$ac_link"
6185case "(($ac_try" in
6186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6187  *) ac_try_echo=$ac_try;;
6188esac
6189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6190  (eval "$ac_link") 2>conftest.er1
6191  ac_status=$?
6192  grep -v '^ *+' conftest.er1 >conftest.err
6193  rm -f conftest.er1
6194  cat conftest.err >&5
6195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196  (exit $ac_status); } && {
6197	 test -z "$ac_c_werror_flag" ||
6198	 test ! -s conftest.err
6199       } && test -s conftest$ac_exeext &&
6200       $as_test_x conftest$ac_exeext; then
6201  supported=yes
6202else
6203  echo "$as_me: failed program was:" >&5
6204sed 's/^/| /' conftest.$ac_ext >&5
6205
6206	supported=no
6207fi
6208
6209rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6210      conftest$ac_exeext conftest.$ac_ext
6211		{ echo "$as_me:$LINENO: result: $supported" >&5
6212echo "${ECHO_T}$supported" >&6; }
6213		CFLAGS="$xorg_testset_save_CFLAGS"
6214
6215		if test "$supported" = "yes" ; then
6216			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
6217			found="yes"
6218		fi
6219	fi
6220
6221
6222
6223
6224
6225
6226
6227xorg_testset_save_CFLAGS="$CFLAGS"
6228
6229if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6230	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6231	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
6232echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
6233	cat >conftest.$ac_ext <<_ACEOF
6234/* confdefs.h.  */
6235_ACEOF
6236cat confdefs.h >>conftest.$ac_ext
6237cat >>conftest.$ac_ext <<_ACEOF
6238/* end confdefs.h.  */
6239int i;
6240_ACEOF
6241rm -f conftest.$ac_objext
6242if { (ac_try="$ac_compile"
6243case "(($ac_try" in
6244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245  *) ac_try_echo=$ac_try;;
6246esac
6247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248  (eval "$ac_compile") 2>conftest.er1
6249  ac_status=$?
6250  grep -v '^ *+' conftest.er1 >conftest.err
6251  rm -f conftest.er1
6252  cat conftest.err >&5
6253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254  (exit $ac_status); } && {
6255	 test -z "$ac_c_werror_flag" ||
6256	 test ! -s conftest.err
6257       } && test -s conftest.$ac_objext; then
6258  xorg_testset_unknown_warning_option=yes
6259else
6260  echo "$as_me: failed program was:" >&5
6261sed 's/^/| /' conftest.$ac_ext >&5
6262
6263	xorg_testset_unknown_warning_option=no
6264fi
6265
6266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
6268echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
6269	CFLAGS="$xorg_testset_save_CFLAGS"
6270fi
6271
6272if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6273	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6274		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6275	fi
6276	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6277	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
6278echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
6279	cat >conftest.$ac_ext <<_ACEOF
6280/* confdefs.h.  */
6281_ACEOF
6282cat confdefs.h >>conftest.$ac_ext
6283cat >>conftest.$ac_ext <<_ACEOF
6284/* end confdefs.h.  */
6285int i;
6286_ACEOF
6287rm -f conftest.$ac_objext
6288if { (ac_try="$ac_compile"
6289case "(($ac_try" in
6290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291  *) ac_try_echo=$ac_try;;
6292esac
6293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294  (eval "$ac_compile") 2>conftest.er1
6295  ac_status=$?
6296  grep -v '^ *+' conftest.er1 >conftest.err
6297  rm -f conftest.er1
6298  cat conftest.err >&5
6299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300  (exit $ac_status); } && {
6301	 test -z "$ac_c_werror_flag" ||
6302	 test ! -s conftest.err
6303       } && test -s conftest.$ac_objext; then
6304  xorg_testset_unused_command_line_argument=yes
6305else
6306  echo "$as_me: failed program was:" >&5
6307sed 's/^/| /' conftest.$ac_ext >&5
6308
6309	xorg_testset_unused_command_line_argument=no
6310fi
6311
6312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6313	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6314echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6315	CFLAGS="$xorg_testset_save_CFLAGS"
6316fi
6317
6318found="no"
6319
6320	if test $found = "no" ; then
6321		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6322			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6323		fi
6324
6325		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6326			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6327		fi
6328
6329		CFLAGS="$CFLAGS -Wmissing-declarations"
6330
6331		{ echo "$as_me:$LINENO: checking if $CC supports -Wmissing-declarations" >&5
6332echo $ECHO_N "checking if $CC supports -Wmissing-declarations... $ECHO_C" >&6; }
6333		cat >conftest.$ac_ext <<_ACEOF
6334/* confdefs.h.  */
6335_ACEOF
6336cat confdefs.h >>conftest.$ac_ext
6337cat >>conftest.$ac_ext <<_ACEOF
6338/* end confdefs.h.  */
6339int i;
6340int
6341main ()
6342{
6343
6344  ;
6345  return 0;
6346}
6347_ACEOF
6348rm -f conftest.$ac_objext conftest$ac_exeext
6349if { (ac_try="$ac_link"
6350case "(($ac_try" in
6351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352  *) ac_try_echo=$ac_try;;
6353esac
6354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355  (eval "$ac_link") 2>conftest.er1
6356  ac_status=$?
6357  grep -v '^ *+' conftest.er1 >conftest.err
6358  rm -f conftest.er1
6359  cat conftest.err >&5
6360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361  (exit $ac_status); } && {
6362	 test -z "$ac_c_werror_flag" ||
6363	 test ! -s conftest.err
6364       } && test -s conftest$ac_exeext &&
6365       $as_test_x conftest$ac_exeext; then
6366  supported=yes
6367else
6368  echo "$as_me: failed program was:" >&5
6369sed 's/^/| /' conftest.$ac_ext >&5
6370
6371	supported=no
6372fi
6373
6374rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6375      conftest$ac_exeext conftest.$ac_ext
6376		{ echo "$as_me:$LINENO: result: $supported" >&5
6377echo "${ECHO_T}$supported" >&6; }
6378		CFLAGS="$xorg_testset_save_CFLAGS"
6379
6380		if test "$supported" = "yes" ; then
6381			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
6382			found="yes"
6383		fi
6384	fi
6385
6386
6387
6388
6389
6390
6391
6392xorg_testset_save_CFLAGS="$CFLAGS"
6393
6394if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6395	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6396	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
6397echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
6398	cat >conftest.$ac_ext <<_ACEOF
6399/* confdefs.h.  */
6400_ACEOF
6401cat confdefs.h >>conftest.$ac_ext
6402cat >>conftest.$ac_ext <<_ACEOF
6403/* end confdefs.h.  */
6404int i;
6405_ACEOF
6406rm -f conftest.$ac_objext
6407if { (ac_try="$ac_compile"
6408case "(($ac_try" in
6409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6410  *) ac_try_echo=$ac_try;;
6411esac
6412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6413  (eval "$ac_compile") 2>conftest.er1
6414  ac_status=$?
6415  grep -v '^ *+' conftest.er1 >conftest.err
6416  rm -f conftest.er1
6417  cat conftest.err >&5
6418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419  (exit $ac_status); } && {
6420	 test -z "$ac_c_werror_flag" ||
6421	 test ! -s conftest.err
6422       } && test -s conftest.$ac_objext; then
6423  xorg_testset_unknown_warning_option=yes
6424else
6425  echo "$as_me: failed program was:" >&5
6426sed 's/^/| /' conftest.$ac_ext >&5
6427
6428	xorg_testset_unknown_warning_option=no
6429fi
6430
6431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6432	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
6433echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
6434	CFLAGS="$xorg_testset_save_CFLAGS"
6435fi
6436
6437if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6438	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6439		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6440	fi
6441	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6442	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
6443echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
6444	cat >conftest.$ac_ext <<_ACEOF
6445/* confdefs.h.  */
6446_ACEOF
6447cat confdefs.h >>conftest.$ac_ext
6448cat >>conftest.$ac_ext <<_ACEOF
6449/* end confdefs.h.  */
6450int i;
6451_ACEOF
6452rm -f conftest.$ac_objext
6453if { (ac_try="$ac_compile"
6454case "(($ac_try" in
6455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6456  *) ac_try_echo=$ac_try;;
6457esac
6458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6459  (eval "$ac_compile") 2>conftest.er1
6460  ac_status=$?
6461  grep -v '^ *+' conftest.er1 >conftest.err
6462  rm -f conftest.er1
6463  cat conftest.err >&5
6464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465  (exit $ac_status); } && {
6466	 test -z "$ac_c_werror_flag" ||
6467	 test ! -s conftest.err
6468       } && test -s conftest.$ac_objext; then
6469  xorg_testset_unused_command_line_argument=yes
6470else
6471  echo "$as_me: failed program was:" >&5
6472sed 's/^/| /' conftest.$ac_ext >&5
6473
6474	xorg_testset_unused_command_line_argument=no
6475fi
6476
6477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6479echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6480	CFLAGS="$xorg_testset_save_CFLAGS"
6481fi
6482
6483found="no"
6484
6485	if test $found = "no" ; then
6486		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6487			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6488		fi
6489
6490		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6491			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6492		fi
6493
6494		CFLAGS="$CFLAGS -Wnested-externs"
6495
6496		{ echo "$as_me:$LINENO: checking if $CC supports -Wnested-externs" >&5
6497echo $ECHO_N "checking if $CC supports -Wnested-externs... $ECHO_C" >&6; }
6498		cat >conftest.$ac_ext <<_ACEOF
6499/* confdefs.h.  */
6500_ACEOF
6501cat confdefs.h >>conftest.$ac_ext
6502cat >>conftest.$ac_ext <<_ACEOF
6503/* end confdefs.h.  */
6504int i;
6505int
6506main ()
6507{
6508
6509  ;
6510  return 0;
6511}
6512_ACEOF
6513rm -f conftest.$ac_objext conftest$ac_exeext
6514if { (ac_try="$ac_link"
6515case "(($ac_try" in
6516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6517  *) ac_try_echo=$ac_try;;
6518esac
6519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6520  (eval "$ac_link") 2>conftest.er1
6521  ac_status=$?
6522  grep -v '^ *+' conftest.er1 >conftest.err
6523  rm -f conftest.er1
6524  cat conftest.err >&5
6525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526  (exit $ac_status); } && {
6527	 test -z "$ac_c_werror_flag" ||
6528	 test ! -s conftest.err
6529       } && test -s conftest$ac_exeext &&
6530       $as_test_x conftest$ac_exeext; then
6531  supported=yes
6532else
6533  echo "$as_me: failed program was:" >&5
6534sed 's/^/| /' conftest.$ac_ext >&5
6535
6536	supported=no
6537fi
6538
6539rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6540      conftest$ac_exeext conftest.$ac_ext
6541		{ echo "$as_me:$LINENO: result: $supported" >&5
6542echo "${ECHO_T}$supported" >&6; }
6543		CFLAGS="$xorg_testset_save_CFLAGS"
6544
6545		if test "$supported" = "yes" ; then
6546			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6547			found="yes"
6548		fi
6549	fi
6550
6551
6552
6553
6554
6555
6556
6557xorg_testset_save_CFLAGS="$CFLAGS"
6558
6559if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6560	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6561	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
6562echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
6563	cat >conftest.$ac_ext <<_ACEOF
6564/* confdefs.h.  */
6565_ACEOF
6566cat confdefs.h >>conftest.$ac_ext
6567cat >>conftest.$ac_ext <<_ACEOF
6568/* end confdefs.h.  */
6569int i;
6570_ACEOF
6571rm -f conftest.$ac_objext
6572if { (ac_try="$ac_compile"
6573case "(($ac_try" in
6574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6575  *) ac_try_echo=$ac_try;;
6576esac
6577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6578  (eval "$ac_compile") 2>conftest.er1
6579  ac_status=$?
6580  grep -v '^ *+' conftest.er1 >conftest.err
6581  rm -f conftest.er1
6582  cat conftest.err >&5
6583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584  (exit $ac_status); } && {
6585	 test -z "$ac_c_werror_flag" ||
6586	 test ! -s conftest.err
6587       } && test -s conftest.$ac_objext; then
6588  xorg_testset_unknown_warning_option=yes
6589else
6590  echo "$as_me: failed program was:" >&5
6591sed 's/^/| /' conftest.$ac_ext >&5
6592
6593	xorg_testset_unknown_warning_option=no
6594fi
6595
6596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
6598echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
6599	CFLAGS="$xorg_testset_save_CFLAGS"
6600fi
6601
6602if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6603	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6604		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6605	fi
6606	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6607	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
6608echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
6609	cat >conftest.$ac_ext <<_ACEOF
6610/* confdefs.h.  */
6611_ACEOF
6612cat confdefs.h >>conftest.$ac_ext
6613cat >>conftest.$ac_ext <<_ACEOF
6614/* end confdefs.h.  */
6615int i;
6616_ACEOF
6617rm -f conftest.$ac_objext
6618if { (ac_try="$ac_compile"
6619case "(($ac_try" in
6620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6621  *) ac_try_echo=$ac_try;;
6622esac
6623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6624  (eval "$ac_compile") 2>conftest.er1
6625  ac_status=$?
6626  grep -v '^ *+' conftest.er1 >conftest.err
6627  rm -f conftest.er1
6628  cat conftest.err >&5
6629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630  (exit $ac_status); } && {
6631	 test -z "$ac_c_werror_flag" ||
6632	 test ! -s conftest.err
6633       } && test -s conftest.$ac_objext; then
6634  xorg_testset_unused_command_line_argument=yes
6635else
6636  echo "$as_me: failed program was:" >&5
6637sed 's/^/| /' conftest.$ac_ext >&5
6638
6639	xorg_testset_unused_command_line_argument=no
6640fi
6641
6642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6644echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6645	CFLAGS="$xorg_testset_save_CFLAGS"
6646fi
6647
6648found="no"
6649
6650	if test $found = "no" ; then
6651		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6652			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6653		fi
6654
6655		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6656			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6657		fi
6658
6659		CFLAGS="$CFLAGS -Wbad-function-cast"
6660
6661		{ echo "$as_me:$LINENO: checking if $CC supports -Wbad-function-cast" >&5
6662echo $ECHO_N "checking if $CC supports -Wbad-function-cast... $ECHO_C" >&6; }
6663		cat >conftest.$ac_ext <<_ACEOF
6664/* confdefs.h.  */
6665_ACEOF
6666cat confdefs.h >>conftest.$ac_ext
6667cat >>conftest.$ac_ext <<_ACEOF
6668/* end confdefs.h.  */
6669int i;
6670int
6671main ()
6672{
6673
6674  ;
6675  return 0;
6676}
6677_ACEOF
6678rm -f conftest.$ac_objext conftest$ac_exeext
6679if { (ac_try="$ac_link"
6680case "(($ac_try" in
6681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6682  *) ac_try_echo=$ac_try;;
6683esac
6684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6685  (eval "$ac_link") 2>conftest.er1
6686  ac_status=$?
6687  grep -v '^ *+' conftest.er1 >conftest.err
6688  rm -f conftest.er1
6689  cat conftest.err >&5
6690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691  (exit $ac_status); } && {
6692	 test -z "$ac_c_werror_flag" ||
6693	 test ! -s conftest.err
6694       } && test -s conftest$ac_exeext &&
6695       $as_test_x conftest$ac_exeext; then
6696  supported=yes
6697else
6698  echo "$as_me: failed program was:" >&5
6699sed 's/^/| /' conftest.$ac_ext >&5
6700
6701	supported=no
6702fi
6703
6704rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6705      conftest$ac_exeext conftest.$ac_ext
6706		{ echo "$as_me:$LINENO: result: $supported" >&5
6707echo "${ECHO_T}$supported" >&6; }
6708		CFLAGS="$xorg_testset_save_CFLAGS"
6709
6710		if test "$supported" = "yes" ; then
6711			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6712			found="yes"
6713		fi
6714	fi
6715
6716
6717
6718
6719
6720
6721
6722xorg_testset_save_CFLAGS="$CFLAGS"
6723
6724if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6725	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6726	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
6727echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
6728	cat >conftest.$ac_ext <<_ACEOF
6729/* confdefs.h.  */
6730_ACEOF
6731cat confdefs.h >>conftest.$ac_ext
6732cat >>conftest.$ac_ext <<_ACEOF
6733/* end confdefs.h.  */
6734int i;
6735_ACEOF
6736rm -f conftest.$ac_objext
6737if { (ac_try="$ac_compile"
6738case "(($ac_try" in
6739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6740  *) ac_try_echo=$ac_try;;
6741esac
6742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6743  (eval "$ac_compile") 2>conftest.er1
6744  ac_status=$?
6745  grep -v '^ *+' conftest.er1 >conftest.err
6746  rm -f conftest.er1
6747  cat conftest.err >&5
6748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749  (exit $ac_status); } && {
6750	 test -z "$ac_c_werror_flag" ||
6751	 test ! -s conftest.err
6752       } && test -s conftest.$ac_objext; then
6753  xorg_testset_unknown_warning_option=yes
6754else
6755  echo "$as_me: failed program was:" >&5
6756sed 's/^/| /' conftest.$ac_ext >&5
6757
6758	xorg_testset_unknown_warning_option=no
6759fi
6760
6761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6762	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
6763echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
6764	CFLAGS="$xorg_testset_save_CFLAGS"
6765fi
6766
6767if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6768	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6769		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6770	fi
6771	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6772	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
6773echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
6774	cat >conftest.$ac_ext <<_ACEOF
6775/* confdefs.h.  */
6776_ACEOF
6777cat confdefs.h >>conftest.$ac_ext
6778cat >>conftest.$ac_ext <<_ACEOF
6779/* end confdefs.h.  */
6780int i;
6781_ACEOF
6782rm -f conftest.$ac_objext
6783if { (ac_try="$ac_compile"
6784case "(($ac_try" in
6785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6786  *) ac_try_echo=$ac_try;;
6787esac
6788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6789  (eval "$ac_compile") 2>conftest.er1
6790  ac_status=$?
6791  grep -v '^ *+' conftest.er1 >conftest.err
6792  rm -f conftest.er1
6793  cat conftest.err >&5
6794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795  (exit $ac_status); } && {
6796	 test -z "$ac_c_werror_flag" ||
6797	 test ! -s conftest.err
6798       } && test -s conftest.$ac_objext; then
6799  xorg_testset_unused_command_line_argument=yes
6800else
6801  echo "$as_me: failed program was:" >&5
6802sed 's/^/| /' conftest.$ac_ext >&5
6803
6804	xorg_testset_unused_command_line_argument=no
6805fi
6806
6807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6809echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6810	CFLAGS="$xorg_testset_save_CFLAGS"
6811fi
6812
6813found="no"
6814
6815	if test $found = "no" ; then
6816		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6817			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6818		fi
6819
6820		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6821			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6822		fi
6823
6824		CFLAGS="$CFLAGS -Wformat=2"
6825
6826		{ echo "$as_me:$LINENO: checking if $CC supports -Wformat=2" >&5
6827echo $ECHO_N "checking if $CC supports -Wformat=2... $ECHO_C" >&6; }
6828		cat >conftest.$ac_ext <<_ACEOF
6829/* confdefs.h.  */
6830_ACEOF
6831cat confdefs.h >>conftest.$ac_ext
6832cat >>conftest.$ac_ext <<_ACEOF
6833/* end confdefs.h.  */
6834int i;
6835int
6836main ()
6837{
6838
6839  ;
6840  return 0;
6841}
6842_ACEOF
6843rm -f conftest.$ac_objext conftest$ac_exeext
6844if { (ac_try="$ac_link"
6845case "(($ac_try" in
6846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6847  *) ac_try_echo=$ac_try;;
6848esac
6849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6850  (eval "$ac_link") 2>conftest.er1
6851  ac_status=$?
6852  grep -v '^ *+' conftest.er1 >conftest.err
6853  rm -f conftest.er1
6854  cat conftest.err >&5
6855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856  (exit $ac_status); } && {
6857	 test -z "$ac_c_werror_flag" ||
6858	 test ! -s conftest.err
6859       } && test -s conftest$ac_exeext &&
6860       $as_test_x conftest$ac_exeext; then
6861  supported=yes
6862else
6863  echo "$as_me: failed program was:" >&5
6864sed 's/^/| /' conftest.$ac_ext >&5
6865
6866	supported=no
6867fi
6868
6869rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6870      conftest$ac_exeext conftest.$ac_ext
6871		{ echo "$as_me:$LINENO: result: $supported" >&5
6872echo "${ECHO_T}$supported" >&6; }
6873		CFLAGS="$xorg_testset_save_CFLAGS"
6874
6875		if test "$supported" = "yes" ; then
6876			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
6877			found="yes"
6878		fi
6879	fi
6880
6881	if test $found = "no" ; then
6882		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6883			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6884		fi
6885
6886		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6887			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6888		fi
6889
6890		CFLAGS="$CFLAGS -Wformat"
6891
6892		{ echo "$as_me:$LINENO: checking if $CC supports -Wformat" >&5
6893echo $ECHO_N "checking if $CC supports -Wformat... $ECHO_C" >&6; }
6894		cat >conftest.$ac_ext <<_ACEOF
6895/* confdefs.h.  */
6896_ACEOF
6897cat confdefs.h >>conftest.$ac_ext
6898cat >>conftest.$ac_ext <<_ACEOF
6899/* end confdefs.h.  */
6900int i;
6901int
6902main ()
6903{
6904
6905  ;
6906  return 0;
6907}
6908_ACEOF
6909rm -f conftest.$ac_objext conftest$ac_exeext
6910if { (ac_try="$ac_link"
6911case "(($ac_try" in
6912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6913  *) ac_try_echo=$ac_try;;
6914esac
6915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6916  (eval "$ac_link") 2>conftest.er1
6917  ac_status=$?
6918  grep -v '^ *+' conftest.er1 >conftest.err
6919  rm -f conftest.er1
6920  cat conftest.err >&5
6921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922  (exit $ac_status); } && {
6923	 test -z "$ac_c_werror_flag" ||
6924	 test ! -s conftest.err
6925       } && test -s conftest$ac_exeext &&
6926       $as_test_x conftest$ac_exeext; then
6927  supported=yes
6928else
6929  echo "$as_me: failed program was:" >&5
6930sed 's/^/| /' conftest.$ac_ext >&5
6931
6932	supported=no
6933fi
6934
6935rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6936      conftest$ac_exeext conftest.$ac_ext
6937		{ echo "$as_me:$LINENO: result: $supported" >&5
6938echo "${ECHO_T}$supported" >&6; }
6939		CFLAGS="$xorg_testset_save_CFLAGS"
6940
6941		if test "$supported" = "yes" ; then
6942			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
6943			found="yes"
6944		fi
6945	fi
6946
6947
6948
6949
6950
6951
6952
6953xorg_testset_save_CFLAGS="$CFLAGS"
6954
6955if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6956	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6957	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
6958echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
6959	cat >conftest.$ac_ext <<_ACEOF
6960/* confdefs.h.  */
6961_ACEOF
6962cat confdefs.h >>conftest.$ac_ext
6963cat >>conftest.$ac_ext <<_ACEOF
6964/* end confdefs.h.  */
6965int i;
6966_ACEOF
6967rm -f conftest.$ac_objext
6968if { (ac_try="$ac_compile"
6969case "(($ac_try" in
6970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6971  *) ac_try_echo=$ac_try;;
6972esac
6973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6974  (eval "$ac_compile") 2>conftest.er1
6975  ac_status=$?
6976  grep -v '^ *+' conftest.er1 >conftest.err
6977  rm -f conftest.er1
6978  cat conftest.err >&5
6979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980  (exit $ac_status); } && {
6981	 test -z "$ac_c_werror_flag" ||
6982	 test ! -s conftest.err
6983       } && test -s conftest.$ac_objext; then
6984  xorg_testset_unknown_warning_option=yes
6985else
6986  echo "$as_me: failed program was:" >&5
6987sed 's/^/| /' conftest.$ac_ext >&5
6988
6989	xorg_testset_unknown_warning_option=no
6990fi
6991
6992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6993	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
6994echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
6995	CFLAGS="$xorg_testset_save_CFLAGS"
6996fi
6997
6998if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6999	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7000		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7001	fi
7002	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7003	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7004echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7005	cat >conftest.$ac_ext <<_ACEOF
7006/* confdefs.h.  */
7007_ACEOF
7008cat confdefs.h >>conftest.$ac_ext
7009cat >>conftest.$ac_ext <<_ACEOF
7010/* end confdefs.h.  */
7011int i;
7012_ACEOF
7013rm -f conftest.$ac_objext
7014if { (ac_try="$ac_compile"
7015case "(($ac_try" in
7016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7017  *) ac_try_echo=$ac_try;;
7018esac
7019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7020  (eval "$ac_compile") 2>conftest.er1
7021  ac_status=$?
7022  grep -v '^ *+' conftest.er1 >conftest.err
7023  rm -f conftest.er1
7024  cat conftest.err >&5
7025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026  (exit $ac_status); } && {
7027	 test -z "$ac_c_werror_flag" ||
7028	 test ! -s conftest.err
7029       } && test -s conftest.$ac_objext; then
7030  xorg_testset_unused_command_line_argument=yes
7031else
7032  echo "$as_me: failed program was:" >&5
7033sed 's/^/| /' conftest.$ac_ext >&5
7034
7035	xorg_testset_unused_command_line_argument=no
7036fi
7037
7038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7039	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7040echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7041	CFLAGS="$xorg_testset_save_CFLAGS"
7042fi
7043
7044found="no"
7045
7046	if test $found = "no" ; then
7047		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7048			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7049		fi
7050
7051		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7052			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7053		fi
7054
7055		CFLAGS="$CFLAGS -Wold-style-definition"
7056
7057		{ echo "$as_me:$LINENO: checking if $CC supports -Wold-style-definition" >&5
7058echo $ECHO_N "checking if $CC supports -Wold-style-definition... $ECHO_C" >&6; }
7059		cat >conftest.$ac_ext <<_ACEOF
7060/* confdefs.h.  */
7061_ACEOF
7062cat confdefs.h >>conftest.$ac_ext
7063cat >>conftest.$ac_ext <<_ACEOF
7064/* end confdefs.h.  */
7065int i;
7066int
7067main ()
7068{
7069
7070  ;
7071  return 0;
7072}
7073_ACEOF
7074rm -f conftest.$ac_objext conftest$ac_exeext
7075if { (ac_try="$ac_link"
7076case "(($ac_try" in
7077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7078  *) ac_try_echo=$ac_try;;
7079esac
7080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7081  (eval "$ac_link") 2>conftest.er1
7082  ac_status=$?
7083  grep -v '^ *+' conftest.er1 >conftest.err
7084  rm -f conftest.er1
7085  cat conftest.err >&5
7086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087  (exit $ac_status); } && {
7088	 test -z "$ac_c_werror_flag" ||
7089	 test ! -s conftest.err
7090       } && test -s conftest$ac_exeext &&
7091       $as_test_x conftest$ac_exeext; then
7092  supported=yes
7093else
7094  echo "$as_me: failed program was:" >&5
7095sed 's/^/| /' conftest.$ac_ext >&5
7096
7097	supported=no
7098fi
7099
7100rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7101      conftest$ac_exeext conftest.$ac_ext
7102		{ echo "$as_me:$LINENO: result: $supported" >&5
7103echo "${ECHO_T}$supported" >&6; }
7104		CFLAGS="$xorg_testset_save_CFLAGS"
7105
7106		if test "$supported" = "yes" ; then
7107			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
7108			found="yes"
7109		fi
7110	fi
7111
7112
7113
7114
7115
7116
7117
7118xorg_testset_save_CFLAGS="$CFLAGS"
7119
7120if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7121	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7122	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7123echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7124	cat >conftest.$ac_ext <<_ACEOF
7125/* confdefs.h.  */
7126_ACEOF
7127cat confdefs.h >>conftest.$ac_ext
7128cat >>conftest.$ac_ext <<_ACEOF
7129/* end confdefs.h.  */
7130int i;
7131_ACEOF
7132rm -f conftest.$ac_objext
7133if { (ac_try="$ac_compile"
7134case "(($ac_try" in
7135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7136  *) ac_try_echo=$ac_try;;
7137esac
7138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7139  (eval "$ac_compile") 2>conftest.er1
7140  ac_status=$?
7141  grep -v '^ *+' conftest.er1 >conftest.err
7142  rm -f conftest.er1
7143  cat conftest.err >&5
7144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145  (exit $ac_status); } && {
7146	 test -z "$ac_c_werror_flag" ||
7147	 test ! -s conftest.err
7148       } && test -s conftest.$ac_objext; then
7149  xorg_testset_unknown_warning_option=yes
7150else
7151  echo "$as_me: failed program was:" >&5
7152sed 's/^/| /' conftest.$ac_ext >&5
7153
7154	xorg_testset_unknown_warning_option=no
7155fi
7156
7157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7158	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7159echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7160	CFLAGS="$xorg_testset_save_CFLAGS"
7161fi
7162
7163if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7164	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7165		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7166	fi
7167	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7168	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7169echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7170	cat >conftest.$ac_ext <<_ACEOF
7171/* confdefs.h.  */
7172_ACEOF
7173cat confdefs.h >>conftest.$ac_ext
7174cat >>conftest.$ac_ext <<_ACEOF
7175/* end confdefs.h.  */
7176int i;
7177_ACEOF
7178rm -f conftest.$ac_objext
7179if { (ac_try="$ac_compile"
7180case "(($ac_try" in
7181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7182  *) ac_try_echo=$ac_try;;
7183esac
7184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7185  (eval "$ac_compile") 2>conftest.er1
7186  ac_status=$?
7187  grep -v '^ *+' conftest.er1 >conftest.err
7188  rm -f conftest.er1
7189  cat conftest.err >&5
7190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191  (exit $ac_status); } && {
7192	 test -z "$ac_c_werror_flag" ||
7193	 test ! -s conftest.err
7194       } && test -s conftest.$ac_objext; then
7195  xorg_testset_unused_command_line_argument=yes
7196else
7197  echo "$as_me: failed program was:" >&5
7198sed 's/^/| /' conftest.$ac_ext >&5
7199
7200	xorg_testset_unused_command_line_argument=no
7201fi
7202
7203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7204	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7205echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7206	CFLAGS="$xorg_testset_save_CFLAGS"
7207fi
7208
7209found="no"
7210
7211	if test $found = "no" ; then
7212		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7213			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7214		fi
7215
7216		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7217			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7218		fi
7219
7220		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
7221
7222		{ echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
7223echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
7224		cat >conftest.$ac_ext <<_ACEOF
7225/* confdefs.h.  */
7226_ACEOF
7227cat confdefs.h >>conftest.$ac_ext
7228cat >>conftest.$ac_ext <<_ACEOF
7229/* end confdefs.h.  */
7230int i;
7231int
7232main ()
7233{
7234
7235  ;
7236  return 0;
7237}
7238_ACEOF
7239rm -f conftest.$ac_objext conftest$ac_exeext
7240if { (ac_try="$ac_link"
7241case "(($ac_try" in
7242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7243  *) ac_try_echo=$ac_try;;
7244esac
7245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7246  (eval "$ac_link") 2>conftest.er1
7247  ac_status=$?
7248  grep -v '^ *+' conftest.er1 >conftest.err
7249  rm -f conftest.er1
7250  cat conftest.err >&5
7251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252  (exit $ac_status); } && {
7253	 test -z "$ac_c_werror_flag" ||
7254	 test ! -s conftest.err
7255       } && test -s conftest$ac_exeext &&
7256       $as_test_x conftest$ac_exeext; then
7257  supported=yes
7258else
7259  echo "$as_me: failed program was:" >&5
7260sed 's/^/| /' conftest.$ac_ext >&5
7261
7262	supported=no
7263fi
7264
7265rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7266      conftest$ac_exeext conftest.$ac_ext
7267		{ echo "$as_me:$LINENO: result: $supported" >&5
7268echo "${ECHO_T}$supported" >&6; }
7269		CFLAGS="$xorg_testset_save_CFLAGS"
7270
7271		if test "$supported" = "yes" ; then
7272			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
7273			found="yes"
7274		fi
7275	fi
7276
7277
7278
7279# This chunk adds additional warnings that could catch undesired effects.
7280
7281
7282
7283
7284
7285xorg_testset_save_CFLAGS="$CFLAGS"
7286
7287if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7288	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7289	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7290echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7291	cat >conftest.$ac_ext <<_ACEOF
7292/* confdefs.h.  */
7293_ACEOF
7294cat confdefs.h >>conftest.$ac_ext
7295cat >>conftest.$ac_ext <<_ACEOF
7296/* end confdefs.h.  */
7297int i;
7298_ACEOF
7299rm -f conftest.$ac_objext
7300if { (ac_try="$ac_compile"
7301case "(($ac_try" in
7302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7303  *) ac_try_echo=$ac_try;;
7304esac
7305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7306  (eval "$ac_compile") 2>conftest.er1
7307  ac_status=$?
7308  grep -v '^ *+' conftest.er1 >conftest.err
7309  rm -f conftest.er1
7310  cat conftest.err >&5
7311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312  (exit $ac_status); } && {
7313	 test -z "$ac_c_werror_flag" ||
7314	 test ! -s conftest.err
7315       } && test -s conftest.$ac_objext; then
7316  xorg_testset_unknown_warning_option=yes
7317else
7318  echo "$as_me: failed program was:" >&5
7319sed 's/^/| /' conftest.$ac_ext >&5
7320
7321	xorg_testset_unknown_warning_option=no
7322fi
7323
7324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7325	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7326echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7327	CFLAGS="$xorg_testset_save_CFLAGS"
7328fi
7329
7330if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7331	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7332		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7333	fi
7334	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7335	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7336echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7337	cat >conftest.$ac_ext <<_ACEOF
7338/* confdefs.h.  */
7339_ACEOF
7340cat confdefs.h >>conftest.$ac_ext
7341cat >>conftest.$ac_ext <<_ACEOF
7342/* end confdefs.h.  */
7343int i;
7344_ACEOF
7345rm -f conftest.$ac_objext
7346if { (ac_try="$ac_compile"
7347case "(($ac_try" in
7348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7349  *) ac_try_echo=$ac_try;;
7350esac
7351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7352  (eval "$ac_compile") 2>conftest.er1
7353  ac_status=$?
7354  grep -v '^ *+' conftest.er1 >conftest.err
7355  rm -f conftest.er1
7356  cat conftest.err >&5
7357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358  (exit $ac_status); } && {
7359	 test -z "$ac_c_werror_flag" ||
7360	 test ! -s conftest.err
7361       } && test -s conftest.$ac_objext; then
7362  xorg_testset_unused_command_line_argument=yes
7363else
7364  echo "$as_me: failed program was:" >&5
7365sed 's/^/| /' conftest.$ac_ext >&5
7366
7367	xorg_testset_unused_command_line_argument=no
7368fi
7369
7370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7371	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7372echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7373	CFLAGS="$xorg_testset_save_CFLAGS"
7374fi
7375
7376found="no"
7377
7378	if test $found = "no" ; then
7379		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7380			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7381		fi
7382
7383		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7384			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7385		fi
7386
7387		CFLAGS="$CFLAGS -Wunused"
7388
7389		{ echo "$as_me:$LINENO: checking if $CC supports -Wunused" >&5
7390echo $ECHO_N "checking if $CC supports -Wunused... $ECHO_C" >&6; }
7391		cat >conftest.$ac_ext <<_ACEOF
7392/* confdefs.h.  */
7393_ACEOF
7394cat confdefs.h >>conftest.$ac_ext
7395cat >>conftest.$ac_ext <<_ACEOF
7396/* end confdefs.h.  */
7397int i;
7398int
7399main ()
7400{
7401
7402  ;
7403  return 0;
7404}
7405_ACEOF
7406rm -f conftest.$ac_objext conftest$ac_exeext
7407if { (ac_try="$ac_link"
7408case "(($ac_try" in
7409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7410  *) ac_try_echo=$ac_try;;
7411esac
7412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7413  (eval "$ac_link") 2>conftest.er1
7414  ac_status=$?
7415  grep -v '^ *+' conftest.er1 >conftest.err
7416  rm -f conftest.er1
7417  cat conftest.err >&5
7418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419  (exit $ac_status); } && {
7420	 test -z "$ac_c_werror_flag" ||
7421	 test ! -s conftest.err
7422       } && test -s conftest$ac_exeext &&
7423       $as_test_x conftest$ac_exeext; then
7424  supported=yes
7425else
7426  echo "$as_me: failed program was:" >&5
7427sed 's/^/| /' conftest.$ac_ext >&5
7428
7429	supported=no
7430fi
7431
7432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7433      conftest$ac_exeext conftest.$ac_ext
7434		{ echo "$as_me:$LINENO: result: $supported" >&5
7435echo "${ECHO_T}$supported" >&6; }
7436		CFLAGS="$xorg_testset_save_CFLAGS"
7437
7438		if test "$supported" = "yes" ; then
7439			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
7440			found="yes"
7441		fi
7442	fi
7443
7444
7445
7446
7447
7448
7449
7450xorg_testset_save_CFLAGS="$CFLAGS"
7451
7452if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7453	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7454	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7455echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7456	cat >conftest.$ac_ext <<_ACEOF
7457/* confdefs.h.  */
7458_ACEOF
7459cat confdefs.h >>conftest.$ac_ext
7460cat >>conftest.$ac_ext <<_ACEOF
7461/* end confdefs.h.  */
7462int i;
7463_ACEOF
7464rm -f conftest.$ac_objext
7465if { (ac_try="$ac_compile"
7466case "(($ac_try" in
7467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7468  *) ac_try_echo=$ac_try;;
7469esac
7470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7471  (eval "$ac_compile") 2>conftest.er1
7472  ac_status=$?
7473  grep -v '^ *+' conftest.er1 >conftest.err
7474  rm -f conftest.er1
7475  cat conftest.err >&5
7476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477  (exit $ac_status); } && {
7478	 test -z "$ac_c_werror_flag" ||
7479	 test ! -s conftest.err
7480       } && test -s conftest.$ac_objext; then
7481  xorg_testset_unknown_warning_option=yes
7482else
7483  echo "$as_me: failed program was:" >&5
7484sed 's/^/| /' conftest.$ac_ext >&5
7485
7486	xorg_testset_unknown_warning_option=no
7487fi
7488
7489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7490	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7491echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7492	CFLAGS="$xorg_testset_save_CFLAGS"
7493fi
7494
7495if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7496	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7497		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7498	fi
7499	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7500	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7501echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7502	cat >conftest.$ac_ext <<_ACEOF
7503/* confdefs.h.  */
7504_ACEOF
7505cat confdefs.h >>conftest.$ac_ext
7506cat >>conftest.$ac_ext <<_ACEOF
7507/* end confdefs.h.  */
7508int i;
7509_ACEOF
7510rm -f conftest.$ac_objext
7511if { (ac_try="$ac_compile"
7512case "(($ac_try" in
7513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7514  *) ac_try_echo=$ac_try;;
7515esac
7516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7517  (eval "$ac_compile") 2>conftest.er1
7518  ac_status=$?
7519  grep -v '^ *+' conftest.er1 >conftest.err
7520  rm -f conftest.er1
7521  cat conftest.err >&5
7522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523  (exit $ac_status); } && {
7524	 test -z "$ac_c_werror_flag" ||
7525	 test ! -s conftest.err
7526       } && test -s conftest.$ac_objext; then
7527  xorg_testset_unused_command_line_argument=yes
7528else
7529  echo "$as_me: failed program was:" >&5
7530sed 's/^/| /' conftest.$ac_ext >&5
7531
7532	xorg_testset_unused_command_line_argument=no
7533fi
7534
7535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7536	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7537echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7538	CFLAGS="$xorg_testset_save_CFLAGS"
7539fi
7540
7541found="no"
7542
7543	if test $found = "no" ; then
7544		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7545			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7546		fi
7547
7548		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7549			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7550		fi
7551
7552		CFLAGS="$CFLAGS -Wuninitialized"
7553
7554		{ echo "$as_me:$LINENO: checking if $CC supports -Wuninitialized" >&5
7555echo $ECHO_N "checking if $CC supports -Wuninitialized... $ECHO_C" >&6; }
7556		cat >conftest.$ac_ext <<_ACEOF
7557/* confdefs.h.  */
7558_ACEOF
7559cat confdefs.h >>conftest.$ac_ext
7560cat >>conftest.$ac_ext <<_ACEOF
7561/* end confdefs.h.  */
7562int i;
7563int
7564main ()
7565{
7566
7567  ;
7568  return 0;
7569}
7570_ACEOF
7571rm -f conftest.$ac_objext conftest$ac_exeext
7572if { (ac_try="$ac_link"
7573case "(($ac_try" in
7574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7575  *) ac_try_echo=$ac_try;;
7576esac
7577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7578  (eval "$ac_link") 2>conftest.er1
7579  ac_status=$?
7580  grep -v '^ *+' conftest.er1 >conftest.err
7581  rm -f conftest.er1
7582  cat conftest.err >&5
7583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584  (exit $ac_status); } && {
7585	 test -z "$ac_c_werror_flag" ||
7586	 test ! -s conftest.err
7587       } && test -s conftest$ac_exeext &&
7588       $as_test_x conftest$ac_exeext; then
7589  supported=yes
7590else
7591  echo "$as_me: failed program was:" >&5
7592sed 's/^/| /' conftest.$ac_ext >&5
7593
7594	supported=no
7595fi
7596
7597rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7598      conftest$ac_exeext conftest.$ac_ext
7599		{ echo "$as_me:$LINENO: result: $supported" >&5
7600echo "${ECHO_T}$supported" >&6; }
7601		CFLAGS="$xorg_testset_save_CFLAGS"
7602
7603		if test "$supported" = "yes" ; then
7604			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
7605			found="yes"
7606		fi
7607	fi
7608
7609
7610
7611
7612
7613
7614
7615xorg_testset_save_CFLAGS="$CFLAGS"
7616
7617if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7618	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7619	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7620echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7621	cat >conftest.$ac_ext <<_ACEOF
7622/* confdefs.h.  */
7623_ACEOF
7624cat confdefs.h >>conftest.$ac_ext
7625cat >>conftest.$ac_ext <<_ACEOF
7626/* end confdefs.h.  */
7627int i;
7628_ACEOF
7629rm -f conftest.$ac_objext
7630if { (ac_try="$ac_compile"
7631case "(($ac_try" in
7632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633  *) ac_try_echo=$ac_try;;
7634esac
7635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636  (eval "$ac_compile") 2>conftest.er1
7637  ac_status=$?
7638  grep -v '^ *+' conftest.er1 >conftest.err
7639  rm -f conftest.er1
7640  cat conftest.err >&5
7641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642  (exit $ac_status); } && {
7643	 test -z "$ac_c_werror_flag" ||
7644	 test ! -s conftest.err
7645       } && test -s conftest.$ac_objext; then
7646  xorg_testset_unknown_warning_option=yes
7647else
7648  echo "$as_me: failed program was:" >&5
7649sed 's/^/| /' conftest.$ac_ext >&5
7650
7651	xorg_testset_unknown_warning_option=no
7652fi
7653
7654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7655	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7656echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7657	CFLAGS="$xorg_testset_save_CFLAGS"
7658fi
7659
7660if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7661	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7662		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7663	fi
7664	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7665	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7666echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7667	cat >conftest.$ac_ext <<_ACEOF
7668/* confdefs.h.  */
7669_ACEOF
7670cat confdefs.h >>conftest.$ac_ext
7671cat >>conftest.$ac_ext <<_ACEOF
7672/* end confdefs.h.  */
7673int i;
7674_ACEOF
7675rm -f conftest.$ac_objext
7676if { (ac_try="$ac_compile"
7677case "(($ac_try" in
7678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679  *) ac_try_echo=$ac_try;;
7680esac
7681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682  (eval "$ac_compile") 2>conftest.er1
7683  ac_status=$?
7684  grep -v '^ *+' conftest.er1 >conftest.err
7685  rm -f conftest.er1
7686  cat conftest.err >&5
7687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688  (exit $ac_status); } && {
7689	 test -z "$ac_c_werror_flag" ||
7690	 test ! -s conftest.err
7691       } && test -s conftest.$ac_objext; then
7692  xorg_testset_unused_command_line_argument=yes
7693else
7694  echo "$as_me: failed program was:" >&5
7695sed 's/^/| /' conftest.$ac_ext >&5
7696
7697	xorg_testset_unused_command_line_argument=no
7698fi
7699
7700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7701	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7702echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7703	CFLAGS="$xorg_testset_save_CFLAGS"
7704fi
7705
7706found="no"
7707
7708	if test $found = "no" ; then
7709		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7710			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7711		fi
7712
7713		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7714			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7715		fi
7716
7717		CFLAGS="$CFLAGS -Wshadow"
7718
7719		{ echo "$as_me:$LINENO: checking if $CC supports -Wshadow" >&5
7720echo $ECHO_N "checking if $CC supports -Wshadow... $ECHO_C" >&6; }
7721		cat >conftest.$ac_ext <<_ACEOF
7722/* confdefs.h.  */
7723_ACEOF
7724cat confdefs.h >>conftest.$ac_ext
7725cat >>conftest.$ac_ext <<_ACEOF
7726/* end confdefs.h.  */
7727int i;
7728int
7729main ()
7730{
7731
7732  ;
7733  return 0;
7734}
7735_ACEOF
7736rm -f conftest.$ac_objext conftest$ac_exeext
7737if { (ac_try="$ac_link"
7738case "(($ac_try" in
7739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740  *) ac_try_echo=$ac_try;;
7741esac
7742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7743  (eval "$ac_link") 2>conftest.er1
7744  ac_status=$?
7745  grep -v '^ *+' conftest.er1 >conftest.err
7746  rm -f conftest.er1
7747  cat conftest.err >&5
7748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749  (exit $ac_status); } && {
7750	 test -z "$ac_c_werror_flag" ||
7751	 test ! -s conftest.err
7752       } && test -s conftest$ac_exeext &&
7753       $as_test_x conftest$ac_exeext; then
7754  supported=yes
7755else
7756  echo "$as_me: failed program was:" >&5
7757sed 's/^/| /' conftest.$ac_ext >&5
7758
7759	supported=no
7760fi
7761
7762rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7763      conftest$ac_exeext conftest.$ac_ext
7764		{ echo "$as_me:$LINENO: result: $supported" >&5
7765echo "${ECHO_T}$supported" >&6; }
7766		CFLAGS="$xorg_testset_save_CFLAGS"
7767
7768		if test "$supported" = "yes" ; then
7769			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
7770			found="yes"
7771		fi
7772	fi
7773
7774
7775
7776
7777
7778
7779
7780xorg_testset_save_CFLAGS="$CFLAGS"
7781
7782if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7783	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7784	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7785echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7786	cat >conftest.$ac_ext <<_ACEOF
7787/* confdefs.h.  */
7788_ACEOF
7789cat confdefs.h >>conftest.$ac_ext
7790cat >>conftest.$ac_ext <<_ACEOF
7791/* end confdefs.h.  */
7792int i;
7793_ACEOF
7794rm -f conftest.$ac_objext
7795if { (ac_try="$ac_compile"
7796case "(($ac_try" in
7797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798  *) ac_try_echo=$ac_try;;
7799esac
7800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7801  (eval "$ac_compile") 2>conftest.er1
7802  ac_status=$?
7803  grep -v '^ *+' conftest.er1 >conftest.err
7804  rm -f conftest.er1
7805  cat conftest.err >&5
7806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807  (exit $ac_status); } && {
7808	 test -z "$ac_c_werror_flag" ||
7809	 test ! -s conftest.err
7810       } && test -s conftest.$ac_objext; then
7811  xorg_testset_unknown_warning_option=yes
7812else
7813  echo "$as_me: failed program was:" >&5
7814sed 's/^/| /' conftest.$ac_ext >&5
7815
7816	xorg_testset_unknown_warning_option=no
7817fi
7818
7819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7820	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7821echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7822	CFLAGS="$xorg_testset_save_CFLAGS"
7823fi
7824
7825if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7826	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7827		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7828	fi
7829	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7830	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7831echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7832	cat >conftest.$ac_ext <<_ACEOF
7833/* confdefs.h.  */
7834_ACEOF
7835cat confdefs.h >>conftest.$ac_ext
7836cat >>conftest.$ac_ext <<_ACEOF
7837/* end confdefs.h.  */
7838int i;
7839_ACEOF
7840rm -f conftest.$ac_objext
7841if { (ac_try="$ac_compile"
7842case "(($ac_try" in
7843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844  *) ac_try_echo=$ac_try;;
7845esac
7846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7847  (eval "$ac_compile") 2>conftest.er1
7848  ac_status=$?
7849  grep -v '^ *+' conftest.er1 >conftest.err
7850  rm -f conftest.er1
7851  cat conftest.err >&5
7852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853  (exit $ac_status); } && {
7854	 test -z "$ac_c_werror_flag" ||
7855	 test ! -s conftest.err
7856       } && test -s conftest.$ac_objext; then
7857  xorg_testset_unused_command_line_argument=yes
7858else
7859  echo "$as_me: failed program was:" >&5
7860sed 's/^/| /' conftest.$ac_ext >&5
7861
7862	xorg_testset_unused_command_line_argument=no
7863fi
7864
7865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7866	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7867echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7868	CFLAGS="$xorg_testset_save_CFLAGS"
7869fi
7870
7871found="no"
7872
7873	if test $found = "no" ; then
7874		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7875			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7876		fi
7877
7878		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7879			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7880		fi
7881
7882		CFLAGS="$CFLAGS -Wcast-qual"
7883
7884		{ echo "$as_me:$LINENO: checking if $CC supports -Wcast-qual" >&5
7885echo $ECHO_N "checking if $CC supports -Wcast-qual... $ECHO_C" >&6; }
7886		cat >conftest.$ac_ext <<_ACEOF
7887/* confdefs.h.  */
7888_ACEOF
7889cat confdefs.h >>conftest.$ac_ext
7890cat >>conftest.$ac_ext <<_ACEOF
7891/* end confdefs.h.  */
7892int i;
7893int
7894main ()
7895{
7896
7897  ;
7898  return 0;
7899}
7900_ACEOF
7901rm -f conftest.$ac_objext conftest$ac_exeext
7902if { (ac_try="$ac_link"
7903case "(($ac_try" in
7904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905  *) ac_try_echo=$ac_try;;
7906esac
7907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7908  (eval "$ac_link") 2>conftest.er1
7909  ac_status=$?
7910  grep -v '^ *+' conftest.er1 >conftest.err
7911  rm -f conftest.er1
7912  cat conftest.err >&5
7913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914  (exit $ac_status); } && {
7915	 test -z "$ac_c_werror_flag" ||
7916	 test ! -s conftest.err
7917       } && test -s conftest$ac_exeext &&
7918       $as_test_x conftest$ac_exeext; then
7919  supported=yes
7920else
7921  echo "$as_me: failed program was:" >&5
7922sed 's/^/| /' conftest.$ac_ext >&5
7923
7924	supported=no
7925fi
7926
7927rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7928      conftest$ac_exeext conftest.$ac_ext
7929		{ echo "$as_me:$LINENO: result: $supported" >&5
7930echo "${ECHO_T}$supported" >&6; }
7931		CFLAGS="$xorg_testset_save_CFLAGS"
7932
7933		if test "$supported" = "yes" ; then
7934			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
7935			found="yes"
7936		fi
7937	fi
7938
7939
7940
7941
7942
7943
7944
7945xorg_testset_save_CFLAGS="$CFLAGS"
7946
7947if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7948	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7949	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7950echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7951	cat >conftest.$ac_ext <<_ACEOF
7952/* confdefs.h.  */
7953_ACEOF
7954cat confdefs.h >>conftest.$ac_ext
7955cat >>conftest.$ac_ext <<_ACEOF
7956/* end confdefs.h.  */
7957int i;
7958_ACEOF
7959rm -f conftest.$ac_objext
7960if { (ac_try="$ac_compile"
7961case "(($ac_try" in
7962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963  *) ac_try_echo=$ac_try;;
7964esac
7965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966  (eval "$ac_compile") 2>conftest.er1
7967  ac_status=$?
7968  grep -v '^ *+' conftest.er1 >conftest.err
7969  rm -f conftest.er1
7970  cat conftest.err >&5
7971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972  (exit $ac_status); } && {
7973	 test -z "$ac_c_werror_flag" ||
7974	 test ! -s conftest.err
7975       } && test -s conftest.$ac_objext; then
7976  xorg_testset_unknown_warning_option=yes
7977else
7978  echo "$as_me: failed program was:" >&5
7979sed 's/^/| /' conftest.$ac_ext >&5
7980
7981	xorg_testset_unknown_warning_option=no
7982fi
7983
7984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7985	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7986echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7987	CFLAGS="$xorg_testset_save_CFLAGS"
7988fi
7989
7990if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7991	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7992		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7993	fi
7994	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7995	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7996echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7997	cat >conftest.$ac_ext <<_ACEOF
7998/* confdefs.h.  */
7999_ACEOF
8000cat confdefs.h >>conftest.$ac_ext
8001cat >>conftest.$ac_ext <<_ACEOF
8002/* end confdefs.h.  */
8003int i;
8004_ACEOF
8005rm -f conftest.$ac_objext
8006if { (ac_try="$ac_compile"
8007case "(($ac_try" in
8008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009  *) ac_try_echo=$ac_try;;
8010esac
8011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012  (eval "$ac_compile") 2>conftest.er1
8013  ac_status=$?
8014  grep -v '^ *+' conftest.er1 >conftest.err
8015  rm -f conftest.er1
8016  cat conftest.err >&5
8017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018  (exit $ac_status); } && {
8019	 test -z "$ac_c_werror_flag" ||
8020	 test ! -s conftest.err
8021       } && test -s conftest.$ac_objext; then
8022  xorg_testset_unused_command_line_argument=yes
8023else
8024  echo "$as_me: failed program was:" >&5
8025sed 's/^/| /' conftest.$ac_ext >&5
8026
8027	xorg_testset_unused_command_line_argument=no
8028fi
8029
8030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8031	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
8032echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
8033	CFLAGS="$xorg_testset_save_CFLAGS"
8034fi
8035
8036found="no"
8037
8038	if test $found = "no" ; then
8039		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8040			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8041		fi
8042
8043		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8044			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8045		fi
8046
8047		CFLAGS="$CFLAGS -Wmissing-noreturn"
8048
8049		{ echo "$as_me:$LINENO: checking if $CC supports -Wmissing-noreturn" >&5
8050echo $ECHO_N "checking if $CC supports -Wmissing-noreturn... $ECHO_C" >&6; }
8051		cat >conftest.$ac_ext <<_ACEOF
8052/* confdefs.h.  */
8053_ACEOF
8054cat confdefs.h >>conftest.$ac_ext
8055cat >>conftest.$ac_ext <<_ACEOF
8056/* end confdefs.h.  */
8057int i;
8058int
8059main ()
8060{
8061
8062  ;
8063  return 0;
8064}
8065_ACEOF
8066rm -f conftest.$ac_objext conftest$ac_exeext
8067if { (ac_try="$ac_link"
8068case "(($ac_try" in
8069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070  *) ac_try_echo=$ac_try;;
8071esac
8072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8073  (eval "$ac_link") 2>conftest.er1
8074  ac_status=$?
8075  grep -v '^ *+' conftest.er1 >conftest.err
8076  rm -f conftest.er1
8077  cat conftest.err >&5
8078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079  (exit $ac_status); } && {
8080	 test -z "$ac_c_werror_flag" ||
8081	 test ! -s conftest.err
8082       } && test -s conftest$ac_exeext &&
8083       $as_test_x conftest$ac_exeext; then
8084  supported=yes
8085else
8086  echo "$as_me: failed program was:" >&5
8087sed 's/^/| /' conftest.$ac_ext >&5
8088
8089	supported=no
8090fi
8091
8092rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8093      conftest$ac_exeext conftest.$ac_ext
8094		{ echo "$as_me:$LINENO: result: $supported" >&5
8095echo "${ECHO_T}$supported" >&6; }
8096		CFLAGS="$xorg_testset_save_CFLAGS"
8097
8098		if test "$supported" = "yes" ; then
8099			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
8100			found="yes"
8101		fi
8102	fi
8103
8104
8105
8106
8107
8108
8109
8110xorg_testset_save_CFLAGS="$CFLAGS"
8111
8112if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8113	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8114	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8115echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8116	cat >conftest.$ac_ext <<_ACEOF
8117/* confdefs.h.  */
8118_ACEOF
8119cat confdefs.h >>conftest.$ac_ext
8120cat >>conftest.$ac_ext <<_ACEOF
8121/* end confdefs.h.  */
8122int i;
8123_ACEOF
8124rm -f conftest.$ac_objext
8125if { (ac_try="$ac_compile"
8126case "(($ac_try" in
8127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8128  *) ac_try_echo=$ac_try;;
8129esac
8130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8131  (eval "$ac_compile") 2>conftest.er1
8132  ac_status=$?
8133  grep -v '^ *+' conftest.er1 >conftest.err
8134  rm -f conftest.er1
8135  cat conftest.err >&5
8136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137  (exit $ac_status); } && {
8138	 test -z "$ac_c_werror_flag" ||
8139	 test ! -s conftest.err
8140       } && test -s conftest.$ac_objext; then
8141  xorg_testset_unknown_warning_option=yes
8142else
8143  echo "$as_me: failed program was:" >&5
8144sed 's/^/| /' conftest.$ac_ext >&5
8145
8146	xorg_testset_unknown_warning_option=no
8147fi
8148
8149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8150	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
8151echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
8152	CFLAGS="$xorg_testset_save_CFLAGS"
8153fi
8154
8155if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8156	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8157		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8158	fi
8159	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8160	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
8161echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
8162	cat >conftest.$ac_ext <<_ACEOF
8163/* confdefs.h.  */
8164_ACEOF
8165cat confdefs.h >>conftest.$ac_ext
8166cat >>conftest.$ac_ext <<_ACEOF
8167/* end confdefs.h.  */
8168int i;
8169_ACEOF
8170rm -f conftest.$ac_objext
8171if { (ac_try="$ac_compile"
8172case "(($ac_try" in
8173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174  *) ac_try_echo=$ac_try;;
8175esac
8176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177  (eval "$ac_compile") 2>conftest.er1
8178  ac_status=$?
8179  grep -v '^ *+' conftest.er1 >conftest.err
8180  rm -f conftest.er1
8181  cat conftest.err >&5
8182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183  (exit $ac_status); } && {
8184	 test -z "$ac_c_werror_flag" ||
8185	 test ! -s conftest.err
8186       } && test -s conftest.$ac_objext; then
8187  xorg_testset_unused_command_line_argument=yes
8188else
8189  echo "$as_me: failed program was:" >&5
8190sed 's/^/| /' conftest.$ac_ext >&5
8191
8192	xorg_testset_unused_command_line_argument=no
8193fi
8194
8195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
8197echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
8198	CFLAGS="$xorg_testset_save_CFLAGS"
8199fi
8200
8201found="no"
8202
8203	if test $found = "no" ; then
8204		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8205			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8206		fi
8207
8208		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8209			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8210		fi
8211
8212		CFLAGS="$CFLAGS -Wmissing-format-attribute"
8213
8214		{ echo "$as_me:$LINENO: checking if $CC supports -Wmissing-format-attribute" >&5
8215echo $ECHO_N "checking if $CC supports -Wmissing-format-attribute... $ECHO_C" >&6; }
8216		cat >conftest.$ac_ext <<_ACEOF
8217/* confdefs.h.  */
8218_ACEOF
8219cat confdefs.h >>conftest.$ac_ext
8220cat >>conftest.$ac_ext <<_ACEOF
8221/* end confdefs.h.  */
8222int i;
8223int
8224main ()
8225{
8226
8227  ;
8228  return 0;
8229}
8230_ACEOF
8231rm -f conftest.$ac_objext conftest$ac_exeext
8232if { (ac_try="$ac_link"
8233case "(($ac_try" in
8234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8235  *) ac_try_echo=$ac_try;;
8236esac
8237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8238  (eval "$ac_link") 2>conftest.er1
8239  ac_status=$?
8240  grep -v '^ *+' conftest.er1 >conftest.err
8241  rm -f conftest.er1
8242  cat conftest.err >&5
8243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244  (exit $ac_status); } && {
8245	 test -z "$ac_c_werror_flag" ||
8246	 test ! -s conftest.err
8247       } && test -s conftest$ac_exeext &&
8248       $as_test_x conftest$ac_exeext; then
8249  supported=yes
8250else
8251  echo "$as_me: failed program was:" >&5
8252sed 's/^/| /' conftest.$ac_ext >&5
8253
8254	supported=no
8255fi
8256
8257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8258      conftest$ac_exeext conftest.$ac_ext
8259		{ echo "$as_me:$LINENO: result: $supported" >&5
8260echo "${ECHO_T}$supported" >&6; }
8261		CFLAGS="$xorg_testset_save_CFLAGS"
8262
8263		if test "$supported" = "yes" ; then
8264			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
8265			found="yes"
8266		fi
8267	fi
8268
8269
8270
8271
8272
8273
8274
8275xorg_testset_save_CFLAGS="$CFLAGS"
8276
8277if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8278	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8279	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8280echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8281	cat >conftest.$ac_ext <<_ACEOF
8282/* confdefs.h.  */
8283_ACEOF
8284cat confdefs.h >>conftest.$ac_ext
8285cat >>conftest.$ac_ext <<_ACEOF
8286/* end confdefs.h.  */
8287int i;
8288_ACEOF
8289rm -f conftest.$ac_objext
8290if { (ac_try="$ac_compile"
8291case "(($ac_try" in
8292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293  *) ac_try_echo=$ac_try;;
8294esac
8295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296  (eval "$ac_compile") 2>conftest.er1
8297  ac_status=$?
8298  grep -v '^ *+' conftest.er1 >conftest.err
8299  rm -f conftest.er1
8300  cat conftest.err >&5
8301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302  (exit $ac_status); } && {
8303	 test -z "$ac_c_werror_flag" ||
8304	 test ! -s conftest.err
8305       } && test -s conftest.$ac_objext; then
8306  xorg_testset_unknown_warning_option=yes
8307else
8308  echo "$as_me: failed program was:" >&5
8309sed 's/^/| /' conftest.$ac_ext >&5
8310
8311	xorg_testset_unknown_warning_option=no
8312fi
8313
8314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
8316echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
8317	CFLAGS="$xorg_testset_save_CFLAGS"
8318fi
8319
8320if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8321	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8322		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8323	fi
8324	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8325	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
8326echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
8327	cat >conftest.$ac_ext <<_ACEOF
8328/* confdefs.h.  */
8329_ACEOF
8330cat confdefs.h >>conftest.$ac_ext
8331cat >>conftest.$ac_ext <<_ACEOF
8332/* end confdefs.h.  */
8333int i;
8334_ACEOF
8335rm -f conftest.$ac_objext
8336if { (ac_try="$ac_compile"
8337case "(($ac_try" in
8338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339  *) ac_try_echo=$ac_try;;
8340esac
8341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8342  (eval "$ac_compile") 2>conftest.er1
8343  ac_status=$?
8344  grep -v '^ *+' conftest.er1 >conftest.err
8345  rm -f conftest.er1
8346  cat conftest.err >&5
8347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348  (exit $ac_status); } && {
8349	 test -z "$ac_c_werror_flag" ||
8350	 test ! -s conftest.err
8351       } && test -s conftest.$ac_objext; then
8352  xorg_testset_unused_command_line_argument=yes
8353else
8354  echo "$as_me: failed program was:" >&5
8355sed 's/^/| /' conftest.$ac_ext >&5
8356
8357	xorg_testset_unused_command_line_argument=no
8358fi
8359
8360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8361	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
8362echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
8363	CFLAGS="$xorg_testset_save_CFLAGS"
8364fi
8365
8366found="no"
8367
8368	if test $found = "no" ; then
8369		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8370			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8371		fi
8372
8373		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8374			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8375		fi
8376
8377		CFLAGS="$CFLAGS -Wredundant-decls"
8378
8379		{ echo "$as_me:$LINENO: checking if $CC supports -Wredundant-decls" >&5
8380echo $ECHO_N "checking if $CC supports -Wredundant-decls... $ECHO_C" >&6; }
8381		cat >conftest.$ac_ext <<_ACEOF
8382/* confdefs.h.  */
8383_ACEOF
8384cat confdefs.h >>conftest.$ac_ext
8385cat >>conftest.$ac_ext <<_ACEOF
8386/* end confdefs.h.  */
8387int i;
8388int
8389main ()
8390{
8391
8392  ;
8393  return 0;
8394}
8395_ACEOF
8396rm -f conftest.$ac_objext conftest$ac_exeext
8397if { (ac_try="$ac_link"
8398case "(($ac_try" in
8399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8400  *) ac_try_echo=$ac_try;;
8401esac
8402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8403  (eval "$ac_link") 2>conftest.er1
8404  ac_status=$?
8405  grep -v '^ *+' conftest.er1 >conftest.err
8406  rm -f conftest.er1
8407  cat conftest.err >&5
8408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409  (exit $ac_status); } && {
8410	 test -z "$ac_c_werror_flag" ||
8411	 test ! -s conftest.err
8412       } && test -s conftest$ac_exeext &&
8413       $as_test_x conftest$ac_exeext; then
8414  supported=yes
8415else
8416  echo "$as_me: failed program was:" >&5
8417sed 's/^/| /' conftest.$ac_ext >&5
8418
8419	supported=no
8420fi
8421
8422rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8423      conftest$ac_exeext conftest.$ac_ext
8424		{ echo "$as_me:$LINENO: result: $supported" >&5
8425echo "${ECHO_T}$supported" >&6; }
8426		CFLAGS="$xorg_testset_save_CFLAGS"
8427
8428		if test "$supported" = "yes" ; then
8429			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
8430			found="yes"
8431		fi
8432	fi
8433
8434
8435
8436# These are currently disabled because they are noisy.  They will be enabled
8437# in the future once the codebase is sufficiently modernized to silence
8438# them.  For now, I don't want them to drown out the other warnings.
8439# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
8440# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
8441# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
8442
8443# Turn some warnings into errors, so we don't accidently get successful builds
8444# when there are problems that should be fixed.
8445
8446if test "x$SELECTIVE_WERROR" = "xyes" ; then
8447
8448
8449
8450
8451
8452xorg_testset_save_CFLAGS="$CFLAGS"
8453
8454if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8455	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8456	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8457echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8458	cat >conftest.$ac_ext <<_ACEOF
8459/* confdefs.h.  */
8460_ACEOF
8461cat confdefs.h >>conftest.$ac_ext
8462cat >>conftest.$ac_ext <<_ACEOF
8463/* end confdefs.h.  */
8464int i;
8465_ACEOF
8466rm -f conftest.$ac_objext
8467if { (ac_try="$ac_compile"
8468case "(($ac_try" in
8469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8470  *) ac_try_echo=$ac_try;;
8471esac
8472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8473  (eval "$ac_compile") 2>conftest.er1
8474  ac_status=$?
8475  grep -v '^ *+' conftest.er1 >conftest.err
8476  rm -f conftest.er1
8477  cat conftest.err >&5
8478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479  (exit $ac_status); } && {
8480	 test -z "$ac_c_werror_flag" ||
8481	 test ! -s conftest.err
8482       } && test -s conftest.$ac_objext; then
8483  xorg_testset_unknown_warning_option=yes
8484else
8485  echo "$as_me: failed program was:" >&5
8486sed 's/^/| /' conftest.$ac_ext >&5
8487
8488	xorg_testset_unknown_warning_option=no
8489fi
8490
8491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8492	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
8493echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
8494	CFLAGS="$xorg_testset_save_CFLAGS"
8495fi
8496
8497if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8498	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8499		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8500	fi
8501	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8502	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
8503echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
8504	cat >conftest.$ac_ext <<_ACEOF
8505/* confdefs.h.  */
8506_ACEOF
8507cat confdefs.h >>conftest.$ac_ext
8508cat >>conftest.$ac_ext <<_ACEOF
8509/* end confdefs.h.  */
8510int i;
8511_ACEOF
8512rm -f conftest.$ac_objext
8513if { (ac_try="$ac_compile"
8514case "(($ac_try" in
8515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516  *) ac_try_echo=$ac_try;;
8517esac
8518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8519  (eval "$ac_compile") 2>conftest.er1
8520  ac_status=$?
8521  grep -v '^ *+' conftest.er1 >conftest.err
8522  rm -f conftest.er1
8523  cat conftest.err >&5
8524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525  (exit $ac_status); } && {
8526	 test -z "$ac_c_werror_flag" ||
8527	 test ! -s conftest.err
8528       } && test -s conftest.$ac_objext; then
8529  xorg_testset_unused_command_line_argument=yes
8530else
8531  echo "$as_me: failed program was:" >&5
8532sed 's/^/| /' conftest.$ac_ext >&5
8533
8534	xorg_testset_unused_command_line_argument=no
8535fi
8536
8537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8538	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
8539echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
8540	CFLAGS="$xorg_testset_save_CFLAGS"
8541fi
8542
8543found="no"
8544
8545	if test $found = "no" ; then
8546		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8547			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8548		fi
8549
8550		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8551			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8552		fi
8553
8554		CFLAGS="$CFLAGS -Werror=implicit"
8555
8556		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=implicit" >&5
8557echo $ECHO_N "checking if $CC supports -Werror=implicit... $ECHO_C" >&6; }
8558		cat >conftest.$ac_ext <<_ACEOF
8559/* confdefs.h.  */
8560_ACEOF
8561cat confdefs.h >>conftest.$ac_ext
8562cat >>conftest.$ac_ext <<_ACEOF
8563/* end confdefs.h.  */
8564int i;
8565int
8566main ()
8567{
8568
8569  ;
8570  return 0;
8571}
8572_ACEOF
8573rm -f conftest.$ac_objext conftest$ac_exeext
8574if { (ac_try="$ac_link"
8575case "(($ac_try" in
8576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577  *) ac_try_echo=$ac_try;;
8578esac
8579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8580  (eval "$ac_link") 2>conftest.er1
8581  ac_status=$?
8582  grep -v '^ *+' conftest.er1 >conftest.err
8583  rm -f conftest.er1
8584  cat conftest.err >&5
8585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586  (exit $ac_status); } && {
8587	 test -z "$ac_c_werror_flag" ||
8588	 test ! -s conftest.err
8589       } && test -s conftest$ac_exeext &&
8590       $as_test_x conftest$ac_exeext; then
8591  supported=yes
8592else
8593  echo "$as_me: failed program was:" >&5
8594sed 's/^/| /' conftest.$ac_ext >&5
8595
8596	supported=no
8597fi
8598
8599rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8600      conftest$ac_exeext conftest.$ac_ext
8601		{ echo "$as_me:$LINENO: result: $supported" >&5
8602echo "${ECHO_T}$supported" >&6; }
8603		CFLAGS="$xorg_testset_save_CFLAGS"
8604
8605		if test "$supported" = "yes" ; then
8606			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
8607			found="yes"
8608		fi
8609	fi
8610
8611	if test $found = "no" ; then
8612		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8613			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8614		fi
8615
8616		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8617			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8618		fi
8619
8620		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
8621
8622		{ echo "$as_me:$LINENO: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
8623echo $ECHO_N "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... $ECHO_C" >&6; }
8624		cat >conftest.$ac_ext <<_ACEOF
8625/* confdefs.h.  */
8626_ACEOF
8627cat confdefs.h >>conftest.$ac_ext
8628cat >>conftest.$ac_ext <<_ACEOF
8629/* end confdefs.h.  */
8630int i;
8631int
8632main ()
8633{
8634
8635  ;
8636  return 0;
8637}
8638_ACEOF
8639rm -f conftest.$ac_objext conftest$ac_exeext
8640if { (ac_try="$ac_link"
8641case "(($ac_try" in
8642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8643  *) ac_try_echo=$ac_try;;
8644esac
8645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8646  (eval "$ac_link") 2>conftest.er1
8647  ac_status=$?
8648  grep -v '^ *+' conftest.er1 >conftest.err
8649  rm -f conftest.er1
8650  cat conftest.err >&5
8651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652  (exit $ac_status); } && {
8653	 test -z "$ac_c_werror_flag" ||
8654	 test ! -s conftest.err
8655       } && test -s conftest$ac_exeext &&
8656       $as_test_x conftest$ac_exeext; then
8657  supported=yes
8658else
8659  echo "$as_me: failed program was:" >&5
8660sed 's/^/| /' conftest.$ac_ext >&5
8661
8662	supported=no
8663fi
8664
8665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8666      conftest$ac_exeext conftest.$ac_ext
8667		{ echo "$as_me:$LINENO: result: $supported" >&5
8668echo "${ECHO_T}$supported" >&6; }
8669		CFLAGS="$xorg_testset_save_CFLAGS"
8670
8671		if test "$supported" = "yes" ; then
8672			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
8673			found="yes"
8674		fi
8675	fi
8676
8677
8678
8679
8680
8681
8682
8683xorg_testset_save_CFLAGS="$CFLAGS"
8684
8685if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8686	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8687	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8688echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8689	cat >conftest.$ac_ext <<_ACEOF
8690/* confdefs.h.  */
8691_ACEOF
8692cat confdefs.h >>conftest.$ac_ext
8693cat >>conftest.$ac_ext <<_ACEOF
8694/* end confdefs.h.  */
8695int i;
8696_ACEOF
8697rm -f conftest.$ac_objext
8698if { (ac_try="$ac_compile"
8699case "(($ac_try" in
8700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8701  *) ac_try_echo=$ac_try;;
8702esac
8703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8704  (eval "$ac_compile") 2>conftest.er1
8705  ac_status=$?
8706  grep -v '^ *+' conftest.er1 >conftest.err
8707  rm -f conftest.er1
8708  cat conftest.err >&5
8709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710  (exit $ac_status); } && {
8711	 test -z "$ac_c_werror_flag" ||
8712	 test ! -s conftest.err
8713       } && test -s conftest.$ac_objext; then
8714  xorg_testset_unknown_warning_option=yes
8715else
8716  echo "$as_me: failed program was:" >&5
8717sed 's/^/| /' conftest.$ac_ext >&5
8718
8719	xorg_testset_unknown_warning_option=no
8720fi
8721
8722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
8724echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
8725	CFLAGS="$xorg_testset_save_CFLAGS"
8726fi
8727
8728if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8729	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8730		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8731	fi
8732	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8733	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
8734echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
8735	cat >conftest.$ac_ext <<_ACEOF
8736/* confdefs.h.  */
8737_ACEOF
8738cat confdefs.h >>conftest.$ac_ext
8739cat >>conftest.$ac_ext <<_ACEOF
8740/* end confdefs.h.  */
8741int i;
8742_ACEOF
8743rm -f conftest.$ac_objext
8744if { (ac_try="$ac_compile"
8745case "(($ac_try" in
8746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8747  *) ac_try_echo=$ac_try;;
8748esac
8749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8750  (eval "$ac_compile") 2>conftest.er1
8751  ac_status=$?
8752  grep -v '^ *+' conftest.er1 >conftest.err
8753  rm -f conftest.er1
8754  cat conftest.err >&5
8755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756  (exit $ac_status); } && {
8757	 test -z "$ac_c_werror_flag" ||
8758	 test ! -s conftest.err
8759       } && test -s conftest.$ac_objext; then
8760  xorg_testset_unused_command_line_argument=yes
8761else
8762  echo "$as_me: failed program was:" >&5
8763sed 's/^/| /' conftest.$ac_ext >&5
8764
8765	xorg_testset_unused_command_line_argument=no
8766fi
8767
8768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8769	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
8770echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
8771	CFLAGS="$xorg_testset_save_CFLAGS"
8772fi
8773
8774found="no"
8775
8776	if test $found = "no" ; then
8777		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8778			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8779		fi
8780
8781		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8782			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8783		fi
8784
8785		CFLAGS="$CFLAGS -Werror=nonnull"
8786
8787		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=nonnull" >&5
8788echo $ECHO_N "checking if $CC supports -Werror=nonnull... $ECHO_C" >&6; }
8789		cat >conftest.$ac_ext <<_ACEOF
8790/* confdefs.h.  */
8791_ACEOF
8792cat confdefs.h >>conftest.$ac_ext
8793cat >>conftest.$ac_ext <<_ACEOF
8794/* end confdefs.h.  */
8795int i;
8796int
8797main ()
8798{
8799
8800  ;
8801  return 0;
8802}
8803_ACEOF
8804rm -f conftest.$ac_objext conftest$ac_exeext
8805if { (ac_try="$ac_link"
8806case "(($ac_try" in
8807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8808  *) ac_try_echo=$ac_try;;
8809esac
8810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8811  (eval "$ac_link") 2>conftest.er1
8812  ac_status=$?
8813  grep -v '^ *+' conftest.er1 >conftest.err
8814  rm -f conftest.er1
8815  cat conftest.err >&5
8816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817  (exit $ac_status); } && {
8818	 test -z "$ac_c_werror_flag" ||
8819	 test ! -s conftest.err
8820       } && test -s conftest$ac_exeext &&
8821       $as_test_x conftest$ac_exeext; then
8822  supported=yes
8823else
8824  echo "$as_me: failed program was:" >&5
8825sed 's/^/| /' conftest.$ac_ext >&5
8826
8827	supported=no
8828fi
8829
8830rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8831      conftest$ac_exeext conftest.$ac_ext
8832		{ echo "$as_me:$LINENO: result: $supported" >&5
8833echo "${ECHO_T}$supported" >&6; }
8834		CFLAGS="$xorg_testset_save_CFLAGS"
8835
8836		if test "$supported" = "yes" ; then
8837			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
8838			found="yes"
8839		fi
8840	fi
8841
8842
8843
8844
8845
8846
8847
8848xorg_testset_save_CFLAGS="$CFLAGS"
8849
8850if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8851	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8852	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8853echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8854	cat >conftest.$ac_ext <<_ACEOF
8855/* confdefs.h.  */
8856_ACEOF
8857cat confdefs.h >>conftest.$ac_ext
8858cat >>conftest.$ac_ext <<_ACEOF
8859/* end confdefs.h.  */
8860int i;
8861_ACEOF
8862rm -f conftest.$ac_objext
8863if { (ac_try="$ac_compile"
8864case "(($ac_try" in
8865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8866  *) ac_try_echo=$ac_try;;
8867esac
8868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8869  (eval "$ac_compile") 2>conftest.er1
8870  ac_status=$?
8871  grep -v '^ *+' conftest.er1 >conftest.err
8872  rm -f conftest.er1
8873  cat conftest.err >&5
8874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875  (exit $ac_status); } && {
8876	 test -z "$ac_c_werror_flag" ||
8877	 test ! -s conftest.err
8878       } && test -s conftest.$ac_objext; then
8879  xorg_testset_unknown_warning_option=yes
8880else
8881  echo "$as_me: failed program was:" >&5
8882sed 's/^/| /' conftest.$ac_ext >&5
8883
8884	xorg_testset_unknown_warning_option=no
8885fi
8886
8887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8888	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
8889echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
8890	CFLAGS="$xorg_testset_save_CFLAGS"
8891fi
8892
8893if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8894	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8895		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8896	fi
8897	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8898	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
8899echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
8900	cat >conftest.$ac_ext <<_ACEOF
8901/* confdefs.h.  */
8902_ACEOF
8903cat confdefs.h >>conftest.$ac_ext
8904cat >>conftest.$ac_ext <<_ACEOF
8905/* end confdefs.h.  */
8906int i;
8907_ACEOF
8908rm -f conftest.$ac_objext
8909if { (ac_try="$ac_compile"
8910case "(($ac_try" in
8911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912  *) ac_try_echo=$ac_try;;
8913esac
8914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8915  (eval "$ac_compile") 2>conftest.er1
8916  ac_status=$?
8917  grep -v '^ *+' conftest.er1 >conftest.err
8918  rm -f conftest.er1
8919  cat conftest.err >&5
8920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921  (exit $ac_status); } && {
8922	 test -z "$ac_c_werror_flag" ||
8923	 test ! -s conftest.err
8924       } && test -s conftest.$ac_objext; then
8925  xorg_testset_unused_command_line_argument=yes
8926else
8927  echo "$as_me: failed program was:" >&5
8928sed 's/^/| /' conftest.$ac_ext >&5
8929
8930	xorg_testset_unused_command_line_argument=no
8931fi
8932
8933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8934	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
8935echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
8936	CFLAGS="$xorg_testset_save_CFLAGS"
8937fi
8938
8939found="no"
8940
8941	if test $found = "no" ; then
8942		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8943			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8944		fi
8945
8946		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8947			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8948		fi
8949
8950		CFLAGS="$CFLAGS -Werror=init-self"
8951
8952		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=init-self" >&5
8953echo $ECHO_N "checking if $CC supports -Werror=init-self... $ECHO_C" >&6; }
8954		cat >conftest.$ac_ext <<_ACEOF
8955/* confdefs.h.  */
8956_ACEOF
8957cat confdefs.h >>conftest.$ac_ext
8958cat >>conftest.$ac_ext <<_ACEOF
8959/* end confdefs.h.  */
8960int i;
8961int
8962main ()
8963{
8964
8965  ;
8966  return 0;
8967}
8968_ACEOF
8969rm -f conftest.$ac_objext conftest$ac_exeext
8970if { (ac_try="$ac_link"
8971case "(($ac_try" in
8972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8973  *) ac_try_echo=$ac_try;;
8974esac
8975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8976  (eval "$ac_link") 2>conftest.er1
8977  ac_status=$?
8978  grep -v '^ *+' conftest.er1 >conftest.err
8979  rm -f conftest.er1
8980  cat conftest.err >&5
8981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982  (exit $ac_status); } && {
8983	 test -z "$ac_c_werror_flag" ||
8984	 test ! -s conftest.err
8985       } && test -s conftest$ac_exeext &&
8986       $as_test_x conftest$ac_exeext; then
8987  supported=yes
8988else
8989  echo "$as_me: failed program was:" >&5
8990sed 's/^/| /' conftest.$ac_ext >&5
8991
8992	supported=no
8993fi
8994
8995rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8996      conftest$ac_exeext conftest.$ac_ext
8997		{ echo "$as_me:$LINENO: result: $supported" >&5
8998echo "${ECHO_T}$supported" >&6; }
8999		CFLAGS="$xorg_testset_save_CFLAGS"
9000
9001		if test "$supported" = "yes" ; then
9002			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
9003			found="yes"
9004		fi
9005	fi
9006
9007
9008
9009
9010
9011
9012
9013xorg_testset_save_CFLAGS="$CFLAGS"
9014
9015if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9016	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9017	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
9018echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
9019	cat >conftest.$ac_ext <<_ACEOF
9020/* confdefs.h.  */
9021_ACEOF
9022cat confdefs.h >>conftest.$ac_ext
9023cat >>conftest.$ac_ext <<_ACEOF
9024/* end confdefs.h.  */
9025int i;
9026_ACEOF
9027rm -f conftest.$ac_objext
9028if { (ac_try="$ac_compile"
9029case "(($ac_try" in
9030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9031  *) ac_try_echo=$ac_try;;
9032esac
9033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9034  (eval "$ac_compile") 2>conftest.er1
9035  ac_status=$?
9036  grep -v '^ *+' conftest.er1 >conftest.err
9037  rm -f conftest.er1
9038  cat conftest.err >&5
9039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040  (exit $ac_status); } && {
9041	 test -z "$ac_c_werror_flag" ||
9042	 test ! -s conftest.err
9043       } && test -s conftest.$ac_objext; then
9044  xorg_testset_unknown_warning_option=yes
9045else
9046  echo "$as_me: failed program was:" >&5
9047sed 's/^/| /' conftest.$ac_ext >&5
9048
9049	xorg_testset_unknown_warning_option=no
9050fi
9051
9052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9053	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9054echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9055	CFLAGS="$xorg_testset_save_CFLAGS"
9056fi
9057
9058if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9059	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9060		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9061	fi
9062	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9063	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9064echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9065	cat >conftest.$ac_ext <<_ACEOF
9066/* confdefs.h.  */
9067_ACEOF
9068cat confdefs.h >>conftest.$ac_ext
9069cat >>conftest.$ac_ext <<_ACEOF
9070/* end confdefs.h.  */
9071int i;
9072_ACEOF
9073rm -f conftest.$ac_objext
9074if { (ac_try="$ac_compile"
9075case "(($ac_try" in
9076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9077  *) ac_try_echo=$ac_try;;
9078esac
9079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9080  (eval "$ac_compile") 2>conftest.er1
9081  ac_status=$?
9082  grep -v '^ *+' conftest.er1 >conftest.err
9083  rm -f conftest.er1
9084  cat conftest.err >&5
9085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086  (exit $ac_status); } && {
9087	 test -z "$ac_c_werror_flag" ||
9088	 test ! -s conftest.err
9089       } && test -s conftest.$ac_objext; then
9090  xorg_testset_unused_command_line_argument=yes
9091else
9092  echo "$as_me: failed program was:" >&5
9093sed 's/^/| /' conftest.$ac_ext >&5
9094
9095	xorg_testset_unused_command_line_argument=no
9096fi
9097
9098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9099	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9100echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9101	CFLAGS="$xorg_testset_save_CFLAGS"
9102fi
9103
9104found="no"
9105
9106	if test $found = "no" ; then
9107		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9108			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9109		fi
9110
9111		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9112			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9113		fi
9114
9115		CFLAGS="$CFLAGS -Werror=main"
9116
9117		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=main" >&5
9118echo $ECHO_N "checking if $CC supports -Werror=main... $ECHO_C" >&6; }
9119		cat >conftest.$ac_ext <<_ACEOF
9120/* confdefs.h.  */
9121_ACEOF
9122cat confdefs.h >>conftest.$ac_ext
9123cat >>conftest.$ac_ext <<_ACEOF
9124/* end confdefs.h.  */
9125int i;
9126int
9127main ()
9128{
9129
9130  ;
9131  return 0;
9132}
9133_ACEOF
9134rm -f conftest.$ac_objext conftest$ac_exeext
9135if { (ac_try="$ac_link"
9136case "(($ac_try" in
9137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138  *) ac_try_echo=$ac_try;;
9139esac
9140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9141  (eval "$ac_link") 2>conftest.er1
9142  ac_status=$?
9143  grep -v '^ *+' conftest.er1 >conftest.err
9144  rm -f conftest.er1
9145  cat conftest.err >&5
9146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147  (exit $ac_status); } && {
9148	 test -z "$ac_c_werror_flag" ||
9149	 test ! -s conftest.err
9150       } && test -s conftest$ac_exeext &&
9151       $as_test_x conftest$ac_exeext; then
9152  supported=yes
9153else
9154  echo "$as_me: failed program was:" >&5
9155sed 's/^/| /' conftest.$ac_ext >&5
9156
9157	supported=no
9158fi
9159
9160rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9161      conftest$ac_exeext conftest.$ac_ext
9162		{ echo "$as_me:$LINENO: result: $supported" >&5
9163echo "${ECHO_T}$supported" >&6; }
9164		CFLAGS="$xorg_testset_save_CFLAGS"
9165
9166		if test "$supported" = "yes" ; then
9167			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
9168			found="yes"
9169		fi
9170	fi
9171
9172
9173
9174
9175
9176
9177
9178xorg_testset_save_CFLAGS="$CFLAGS"
9179
9180if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9181	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9182	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
9183echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
9184	cat >conftest.$ac_ext <<_ACEOF
9185/* confdefs.h.  */
9186_ACEOF
9187cat confdefs.h >>conftest.$ac_ext
9188cat >>conftest.$ac_ext <<_ACEOF
9189/* end confdefs.h.  */
9190int i;
9191_ACEOF
9192rm -f conftest.$ac_objext
9193if { (ac_try="$ac_compile"
9194case "(($ac_try" in
9195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9196  *) ac_try_echo=$ac_try;;
9197esac
9198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9199  (eval "$ac_compile") 2>conftest.er1
9200  ac_status=$?
9201  grep -v '^ *+' conftest.er1 >conftest.err
9202  rm -f conftest.er1
9203  cat conftest.err >&5
9204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205  (exit $ac_status); } && {
9206	 test -z "$ac_c_werror_flag" ||
9207	 test ! -s conftest.err
9208       } && test -s conftest.$ac_objext; then
9209  xorg_testset_unknown_warning_option=yes
9210else
9211  echo "$as_me: failed program was:" >&5
9212sed 's/^/| /' conftest.$ac_ext >&5
9213
9214	xorg_testset_unknown_warning_option=no
9215fi
9216
9217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9218	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9219echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9220	CFLAGS="$xorg_testset_save_CFLAGS"
9221fi
9222
9223if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9224	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9225		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9226	fi
9227	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9228	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9229echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9230	cat >conftest.$ac_ext <<_ACEOF
9231/* confdefs.h.  */
9232_ACEOF
9233cat confdefs.h >>conftest.$ac_ext
9234cat >>conftest.$ac_ext <<_ACEOF
9235/* end confdefs.h.  */
9236int i;
9237_ACEOF
9238rm -f conftest.$ac_objext
9239if { (ac_try="$ac_compile"
9240case "(($ac_try" in
9241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9242  *) ac_try_echo=$ac_try;;
9243esac
9244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9245  (eval "$ac_compile") 2>conftest.er1
9246  ac_status=$?
9247  grep -v '^ *+' conftest.er1 >conftest.err
9248  rm -f conftest.er1
9249  cat conftest.err >&5
9250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251  (exit $ac_status); } && {
9252	 test -z "$ac_c_werror_flag" ||
9253	 test ! -s conftest.err
9254       } && test -s conftest.$ac_objext; then
9255  xorg_testset_unused_command_line_argument=yes
9256else
9257  echo "$as_me: failed program was:" >&5
9258sed 's/^/| /' conftest.$ac_ext >&5
9259
9260	xorg_testset_unused_command_line_argument=no
9261fi
9262
9263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9264	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9265echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9266	CFLAGS="$xorg_testset_save_CFLAGS"
9267fi
9268
9269found="no"
9270
9271	if test $found = "no" ; then
9272		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9273			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9274		fi
9275
9276		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9277			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9278		fi
9279
9280		CFLAGS="$CFLAGS -Werror=missing-braces"
9281
9282		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=missing-braces" >&5
9283echo $ECHO_N "checking if $CC supports -Werror=missing-braces... $ECHO_C" >&6; }
9284		cat >conftest.$ac_ext <<_ACEOF
9285/* confdefs.h.  */
9286_ACEOF
9287cat confdefs.h >>conftest.$ac_ext
9288cat >>conftest.$ac_ext <<_ACEOF
9289/* end confdefs.h.  */
9290int i;
9291int
9292main ()
9293{
9294
9295  ;
9296  return 0;
9297}
9298_ACEOF
9299rm -f conftest.$ac_objext conftest$ac_exeext
9300if { (ac_try="$ac_link"
9301case "(($ac_try" in
9302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9303  *) ac_try_echo=$ac_try;;
9304esac
9305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9306  (eval "$ac_link") 2>conftest.er1
9307  ac_status=$?
9308  grep -v '^ *+' conftest.er1 >conftest.err
9309  rm -f conftest.er1
9310  cat conftest.err >&5
9311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312  (exit $ac_status); } && {
9313	 test -z "$ac_c_werror_flag" ||
9314	 test ! -s conftest.err
9315       } && test -s conftest$ac_exeext &&
9316       $as_test_x conftest$ac_exeext; then
9317  supported=yes
9318else
9319  echo "$as_me: failed program was:" >&5
9320sed 's/^/| /' conftest.$ac_ext >&5
9321
9322	supported=no
9323fi
9324
9325rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9326      conftest$ac_exeext conftest.$ac_ext
9327		{ echo "$as_me:$LINENO: result: $supported" >&5
9328echo "${ECHO_T}$supported" >&6; }
9329		CFLAGS="$xorg_testset_save_CFLAGS"
9330
9331		if test "$supported" = "yes" ; then
9332			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
9333			found="yes"
9334		fi
9335	fi
9336
9337
9338
9339
9340
9341
9342
9343xorg_testset_save_CFLAGS="$CFLAGS"
9344
9345if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9346	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9347	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
9348echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
9349	cat >conftest.$ac_ext <<_ACEOF
9350/* confdefs.h.  */
9351_ACEOF
9352cat confdefs.h >>conftest.$ac_ext
9353cat >>conftest.$ac_ext <<_ACEOF
9354/* end confdefs.h.  */
9355int i;
9356_ACEOF
9357rm -f conftest.$ac_objext
9358if { (ac_try="$ac_compile"
9359case "(($ac_try" in
9360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9361  *) ac_try_echo=$ac_try;;
9362esac
9363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9364  (eval "$ac_compile") 2>conftest.er1
9365  ac_status=$?
9366  grep -v '^ *+' conftest.er1 >conftest.err
9367  rm -f conftest.er1
9368  cat conftest.err >&5
9369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370  (exit $ac_status); } && {
9371	 test -z "$ac_c_werror_flag" ||
9372	 test ! -s conftest.err
9373       } && test -s conftest.$ac_objext; then
9374  xorg_testset_unknown_warning_option=yes
9375else
9376  echo "$as_me: failed program was:" >&5
9377sed 's/^/| /' conftest.$ac_ext >&5
9378
9379	xorg_testset_unknown_warning_option=no
9380fi
9381
9382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9383	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9384echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9385	CFLAGS="$xorg_testset_save_CFLAGS"
9386fi
9387
9388if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9389	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9390		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9391	fi
9392	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9393	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9394echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9395	cat >conftest.$ac_ext <<_ACEOF
9396/* confdefs.h.  */
9397_ACEOF
9398cat confdefs.h >>conftest.$ac_ext
9399cat >>conftest.$ac_ext <<_ACEOF
9400/* end confdefs.h.  */
9401int i;
9402_ACEOF
9403rm -f conftest.$ac_objext
9404if { (ac_try="$ac_compile"
9405case "(($ac_try" in
9406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9407  *) ac_try_echo=$ac_try;;
9408esac
9409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9410  (eval "$ac_compile") 2>conftest.er1
9411  ac_status=$?
9412  grep -v '^ *+' conftest.er1 >conftest.err
9413  rm -f conftest.er1
9414  cat conftest.err >&5
9415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416  (exit $ac_status); } && {
9417	 test -z "$ac_c_werror_flag" ||
9418	 test ! -s conftest.err
9419       } && test -s conftest.$ac_objext; then
9420  xorg_testset_unused_command_line_argument=yes
9421else
9422  echo "$as_me: failed program was:" >&5
9423sed 's/^/| /' conftest.$ac_ext >&5
9424
9425	xorg_testset_unused_command_line_argument=no
9426fi
9427
9428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9429	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9430echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9431	CFLAGS="$xorg_testset_save_CFLAGS"
9432fi
9433
9434found="no"
9435
9436	if test $found = "no" ; then
9437		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9438			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9439		fi
9440
9441		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9442			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9443		fi
9444
9445		CFLAGS="$CFLAGS -Werror=sequence-point"
9446
9447		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=sequence-point" >&5
9448echo $ECHO_N "checking if $CC supports -Werror=sequence-point... $ECHO_C" >&6; }
9449		cat >conftest.$ac_ext <<_ACEOF
9450/* confdefs.h.  */
9451_ACEOF
9452cat confdefs.h >>conftest.$ac_ext
9453cat >>conftest.$ac_ext <<_ACEOF
9454/* end confdefs.h.  */
9455int i;
9456int
9457main ()
9458{
9459
9460  ;
9461  return 0;
9462}
9463_ACEOF
9464rm -f conftest.$ac_objext conftest$ac_exeext
9465if { (ac_try="$ac_link"
9466case "(($ac_try" in
9467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9468  *) ac_try_echo=$ac_try;;
9469esac
9470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9471  (eval "$ac_link") 2>conftest.er1
9472  ac_status=$?
9473  grep -v '^ *+' conftest.er1 >conftest.err
9474  rm -f conftest.er1
9475  cat conftest.err >&5
9476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477  (exit $ac_status); } && {
9478	 test -z "$ac_c_werror_flag" ||
9479	 test ! -s conftest.err
9480       } && test -s conftest$ac_exeext &&
9481       $as_test_x conftest$ac_exeext; then
9482  supported=yes
9483else
9484  echo "$as_me: failed program was:" >&5
9485sed 's/^/| /' conftest.$ac_ext >&5
9486
9487	supported=no
9488fi
9489
9490rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9491      conftest$ac_exeext conftest.$ac_ext
9492		{ echo "$as_me:$LINENO: result: $supported" >&5
9493echo "${ECHO_T}$supported" >&6; }
9494		CFLAGS="$xorg_testset_save_CFLAGS"
9495
9496		if test "$supported" = "yes" ; then
9497			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
9498			found="yes"
9499		fi
9500	fi
9501
9502
9503
9504
9505
9506
9507
9508xorg_testset_save_CFLAGS="$CFLAGS"
9509
9510if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9511	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9512	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
9513echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
9514	cat >conftest.$ac_ext <<_ACEOF
9515/* confdefs.h.  */
9516_ACEOF
9517cat confdefs.h >>conftest.$ac_ext
9518cat >>conftest.$ac_ext <<_ACEOF
9519/* end confdefs.h.  */
9520int i;
9521_ACEOF
9522rm -f conftest.$ac_objext
9523if { (ac_try="$ac_compile"
9524case "(($ac_try" in
9525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9526  *) ac_try_echo=$ac_try;;
9527esac
9528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9529  (eval "$ac_compile") 2>conftest.er1
9530  ac_status=$?
9531  grep -v '^ *+' conftest.er1 >conftest.err
9532  rm -f conftest.er1
9533  cat conftest.err >&5
9534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535  (exit $ac_status); } && {
9536	 test -z "$ac_c_werror_flag" ||
9537	 test ! -s conftest.err
9538       } && test -s conftest.$ac_objext; then
9539  xorg_testset_unknown_warning_option=yes
9540else
9541  echo "$as_me: failed program was:" >&5
9542sed 's/^/| /' conftest.$ac_ext >&5
9543
9544	xorg_testset_unknown_warning_option=no
9545fi
9546
9547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9548	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9549echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9550	CFLAGS="$xorg_testset_save_CFLAGS"
9551fi
9552
9553if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9554	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9555		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9556	fi
9557	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9558	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9559echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9560	cat >conftest.$ac_ext <<_ACEOF
9561/* confdefs.h.  */
9562_ACEOF
9563cat confdefs.h >>conftest.$ac_ext
9564cat >>conftest.$ac_ext <<_ACEOF
9565/* end confdefs.h.  */
9566int i;
9567_ACEOF
9568rm -f conftest.$ac_objext
9569if { (ac_try="$ac_compile"
9570case "(($ac_try" in
9571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9572  *) ac_try_echo=$ac_try;;
9573esac
9574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9575  (eval "$ac_compile") 2>conftest.er1
9576  ac_status=$?
9577  grep -v '^ *+' conftest.er1 >conftest.err
9578  rm -f conftest.er1
9579  cat conftest.err >&5
9580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581  (exit $ac_status); } && {
9582	 test -z "$ac_c_werror_flag" ||
9583	 test ! -s conftest.err
9584       } && test -s conftest.$ac_objext; then
9585  xorg_testset_unused_command_line_argument=yes
9586else
9587  echo "$as_me: failed program was:" >&5
9588sed 's/^/| /' conftest.$ac_ext >&5
9589
9590	xorg_testset_unused_command_line_argument=no
9591fi
9592
9593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9594	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9595echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9596	CFLAGS="$xorg_testset_save_CFLAGS"
9597fi
9598
9599found="no"
9600
9601	if test $found = "no" ; then
9602		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9603			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9604		fi
9605
9606		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9607			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9608		fi
9609
9610		CFLAGS="$CFLAGS -Werror=return-type"
9611
9612		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=return-type" >&5
9613echo $ECHO_N "checking if $CC supports -Werror=return-type... $ECHO_C" >&6; }
9614		cat >conftest.$ac_ext <<_ACEOF
9615/* confdefs.h.  */
9616_ACEOF
9617cat confdefs.h >>conftest.$ac_ext
9618cat >>conftest.$ac_ext <<_ACEOF
9619/* end confdefs.h.  */
9620int i;
9621int
9622main ()
9623{
9624
9625  ;
9626  return 0;
9627}
9628_ACEOF
9629rm -f conftest.$ac_objext conftest$ac_exeext
9630if { (ac_try="$ac_link"
9631case "(($ac_try" in
9632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633  *) ac_try_echo=$ac_try;;
9634esac
9635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9636  (eval "$ac_link") 2>conftest.er1
9637  ac_status=$?
9638  grep -v '^ *+' conftest.er1 >conftest.err
9639  rm -f conftest.er1
9640  cat conftest.err >&5
9641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642  (exit $ac_status); } && {
9643	 test -z "$ac_c_werror_flag" ||
9644	 test ! -s conftest.err
9645       } && test -s conftest$ac_exeext &&
9646       $as_test_x conftest$ac_exeext; then
9647  supported=yes
9648else
9649  echo "$as_me: failed program was:" >&5
9650sed 's/^/| /' conftest.$ac_ext >&5
9651
9652	supported=no
9653fi
9654
9655rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9656      conftest$ac_exeext conftest.$ac_ext
9657		{ echo "$as_me:$LINENO: result: $supported" >&5
9658echo "${ECHO_T}$supported" >&6; }
9659		CFLAGS="$xorg_testset_save_CFLAGS"
9660
9661		if test "$supported" = "yes" ; then
9662			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
9663			found="yes"
9664		fi
9665	fi
9666
9667	if test $found = "no" ; then
9668		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9669			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9670		fi
9671
9672		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9673			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9674		fi
9675
9676		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
9677
9678		{ echo "$as_me:$LINENO: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
9679echo $ECHO_N "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... $ECHO_C" >&6; }
9680		cat >conftest.$ac_ext <<_ACEOF
9681/* confdefs.h.  */
9682_ACEOF
9683cat confdefs.h >>conftest.$ac_ext
9684cat >>conftest.$ac_ext <<_ACEOF
9685/* end confdefs.h.  */
9686int i;
9687int
9688main ()
9689{
9690
9691  ;
9692  return 0;
9693}
9694_ACEOF
9695rm -f conftest.$ac_objext conftest$ac_exeext
9696if { (ac_try="$ac_link"
9697case "(($ac_try" in
9698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9699  *) ac_try_echo=$ac_try;;
9700esac
9701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9702  (eval "$ac_link") 2>conftest.er1
9703  ac_status=$?
9704  grep -v '^ *+' conftest.er1 >conftest.err
9705  rm -f conftest.er1
9706  cat conftest.err >&5
9707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708  (exit $ac_status); } && {
9709	 test -z "$ac_c_werror_flag" ||
9710	 test ! -s conftest.err
9711       } && test -s conftest$ac_exeext &&
9712       $as_test_x conftest$ac_exeext; then
9713  supported=yes
9714else
9715  echo "$as_me: failed program was:" >&5
9716sed 's/^/| /' conftest.$ac_ext >&5
9717
9718	supported=no
9719fi
9720
9721rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9722      conftest$ac_exeext conftest.$ac_ext
9723		{ echo "$as_me:$LINENO: result: $supported" >&5
9724echo "${ECHO_T}$supported" >&6; }
9725		CFLAGS="$xorg_testset_save_CFLAGS"
9726
9727		if test "$supported" = "yes" ; then
9728			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
9729			found="yes"
9730		fi
9731	fi
9732
9733
9734
9735
9736
9737
9738
9739xorg_testset_save_CFLAGS="$CFLAGS"
9740
9741if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9742	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9743	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
9744echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
9745	cat >conftest.$ac_ext <<_ACEOF
9746/* confdefs.h.  */
9747_ACEOF
9748cat confdefs.h >>conftest.$ac_ext
9749cat >>conftest.$ac_ext <<_ACEOF
9750/* end confdefs.h.  */
9751int i;
9752_ACEOF
9753rm -f conftest.$ac_objext
9754if { (ac_try="$ac_compile"
9755case "(($ac_try" in
9756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757  *) ac_try_echo=$ac_try;;
9758esac
9759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9760  (eval "$ac_compile") 2>conftest.er1
9761  ac_status=$?
9762  grep -v '^ *+' conftest.er1 >conftest.err
9763  rm -f conftest.er1
9764  cat conftest.err >&5
9765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766  (exit $ac_status); } && {
9767	 test -z "$ac_c_werror_flag" ||
9768	 test ! -s conftest.err
9769       } && test -s conftest.$ac_objext; then
9770  xorg_testset_unknown_warning_option=yes
9771else
9772  echo "$as_me: failed program was:" >&5
9773sed 's/^/| /' conftest.$ac_ext >&5
9774
9775	xorg_testset_unknown_warning_option=no
9776fi
9777
9778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9779	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9780echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9781	CFLAGS="$xorg_testset_save_CFLAGS"
9782fi
9783
9784if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9785	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9786		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9787	fi
9788	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9789	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9790echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9791	cat >conftest.$ac_ext <<_ACEOF
9792/* confdefs.h.  */
9793_ACEOF
9794cat confdefs.h >>conftest.$ac_ext
9795cat >>conftest.$ac_ext <<_ACEOF
9796/* end confdefs.h.  */
9797int i;
9798_ACEOF
9799rm -f conftest.$ac_objext
9800if { (ac_try="$ac_compile"
9801case "(($ac_try" in
9802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9803  *) ac_try_echo=$ac_try;;
9804esac
9805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806  (eval "$ac_compile") 2>conftest.er1
9807  ac_status=$?
9808  grep -v '^ *+' conftest.er1 >conftest.err
9809  rm -f conftest.er1
9810  cat conftest.err >&5
9811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812  (exit $ac_status); } && {
9813	 test -z "$ac_c_werror_flag" ||
9814	 test ! -s conftest.err
9815       } && test -s conftest.$ac_objext; then
9816  xorg_testset_unused_command_line_argument=yes
9817else
9818  echo "$as_me: failed program was:" >&5
9819sed 's/^/| /' conftest.$ac_ext >&5
9820
9821	xorg_testset_unused_command_line_argument=no
9822fi
9823
9824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9825	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9826echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9827	CFLAGS="$xorg_testset_save_CFLAGS"
9828fi
9829
9830found="no"
9831
9832	if test $found = "no" ; then
9833		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9834			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9835		fi
9836
9837		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9838			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9839		fi
9840
9841		CFLAGS="$CFLAGS -Werror=trigraphs"
9842
9843		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=trigraphs" >&5
9844echo $ECHO_N "checking if $CC supports -Werror=trigraphs... $ECHO_C" >&6; }
9845		cat >conftest.$ac_ext <<_ACEOF
9846/* confdefs.h.  */
9847_ACEOF
9848cat confdefs.h >>conftest.$ac_ext
9849cat >>conftest.$ac_ext <<_ACEOF
9850/* end confdefs.h.  */
9851int i;
9852int
9853main ()
9854{
9855
9856  ;
9857  return 0;
9858}
9859_ACEOF
9860rm -f conftest.$ac_objext conftest$ac_exeext
9861if { (ac_try="$ac_link"
9862case "(($ac_try" in
9863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9864  *) ac_try_echo=$ac_try;;
9865esac
9866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9867  (eval "$ac_link") 2>conftest.er1
9868  ac_status=$?
9869  grep -v '^ *+' conftest.er1 >conftest.err
9870  rm -f conftest.er1
9871  cat conftest.err >&5
9872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873  (exit $ac_status); } && {
9874	 test -z "$ac_c_werror_flag" ||
9875	 test ! -s conftest.err
9876       } && test -s conftest$ac_exeext &&
9877       $as_test_x conftest$ac_exeext; then
9878  supported=yes
9879else
9880  echo "$as_me: failed program was:" >&5
9881sed 's/^/| /' conftest.$ac_ext >&5
9882
9883	supported=no
9884fi
9885
9886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9887      conftest$ac_exeext conftest.$ac_ext
9888		{ echo "$as_me:$LINENO: result: $supported" >&5
9889echo "${ECHO_T}$supported" >&6; }
9890		CFLAGS="$xorg_testset_save_CFLAGS"
9891
9892		if test "$supported" = "yes" ; then
9893			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
9894			found="yes"
9895		fi
9896	fi
9897
9898
9899
9900
9901
9902
9903
9904xorg_testset_save_CFLAGS="$CFLAGS"
9905
9906if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9907	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9908	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
9909echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
9910	cat >conftest.$ac_ext <<_ACEOF
9911/* confdefs.h.  */
9912_ACEOF
9913cat confdefs.h >>conftest.$ac_ext
9914cat >>conftest.$ac_ext <<_ACEOF
9915/* end confdefs.h.  */
9916int i;
9917_ACEOF
9918rm -f conftest.$ac_objext
9919if { (ac_try="$ac_compile"
9920case "(($ac_try" in
9921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9922  *) ac_try_echo=$ac_try;;
9923esac
9924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9925  (eval "$ac_compile") 2>conftest.er1
9926  ac_status=$?
9927  grep -v '^ *+' conftest.er1 >conftest.err
9928  rm -f conftest.er1
9929  cat conftest.err >&5
9930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931  (exit $ac_status); } && {
9932	 test -z "$ac_c_werror_flag" ||
9933	 test ! -s conftest.err
9934       } && test -s conftest.$ac_objext; then
9935  xorg_testset_unknown_warning_option=yes
9936else
9937  echo "$as_me: failed program was:" >&5
9938sed 's/^/| /' conftest.$ac_ext >&5
9939
9940	xorg_testset_unknown_warning_option=no
9941fi
9942
9943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9944	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9945echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9946	CFLAGS="$xorg_testset_save_CFLAGS"
9947fi
9948
9949if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9950	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9951		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9952	fi
9953	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9954	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9955echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9956	cat >conftest.$ac_ext <<_ACEOF
9957/* confdefs.h.  */
9958_ACEOF
9959cat confdefs.h >>conftest.$ac_ext
9960cat >>conftest.$ac_ext <<_ACEOF
9961/* end confdefs.h.  */
9962int i;
9963_ACEOF
9964rm -f conftest.$ac_objext
9965if { (ac_try="$ac_compile"
9966case "(($ac_try" in
9967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968  *) ac_try_echo=$ac_try;;
9969esac
9970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971  (eval "$ac_compile") 2>conftest.er1
9972  ac_status=$?
9973  grep -v '^ *+' conftest.er1 >conftest.err
9974  rm -f conftest.er1
9975  cat conftest.err >&5
9976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977  (exit $ac_status); } && {
9978	 test -z "$ac_c_werror_flag" ||
9979	 test ! -s conftest.err
9980       } && test -s conftest.$ac_objext; then
9981  xorg_testset_unused_command_line_argument=yes
9982else
9983  echo "$as_me: failed program was:" >&5
9984sed 's/^/| /' conftest.$ac_ext >&5
9985
9986	xorg_testset_unused_command_line_argument=no
9987fi
9988
9989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9990	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9991echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9992	CFLAGS="$xorg_testset_save_CFLAGS"
9993fi
9994
9995found="no"
9996
9997	if test $found = "no" ; then
9998		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9999			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10000		fi
10001
10002		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10003			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10004		fi
10005
10006		CFLAGS="$CFLAGS -Werror=array-bounds"
10007
10008		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=array-bounds" >&5
10009echo $ECHO_N "checking if $CC supports -Werror=array-bounds... $ECHO_C" >&6; }
10010		cat >conftest.$ac_ext <<_ACEOF
10011/* confdefs.h.  */
10012_ACEOF
10013cat confdefs.h >>conftest.$ac_ext
10014cat >>conftest.$ac_ext <<_ACEOF
10015/* end confdefs.h.  */
10016int i;
10017int
10018main ()
10019{
10020
10021  ;
10022  return 0;
10023}
10024_ACEOF
10025rm -f conftest.$ac_objext conftest$ac_exeext
10026if { (ac_try="$ac_link"
10027case "(($ac_try" in
10028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029  *) ac_try_echo=$ac_try;;
10030esac
10031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032  (eval "$ac_link") 2>conftest.er1
10033  ac_status=$?
10034  grep -v '^ *+' conftest.er1 >conftest.err
10035  rm -f conftest.er1
10036  cat conftest.err >&5
10037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038  (exit $ac_status); } && {
10039	 test -z "$ac_c_werror_flag" ||
10040	 test ! -s conftest.err
10041       } && test -s conftest$ac_exeext &&
10042       $as_test_x conftest$ac_exeext; then
10043  supported=yes
10044else
10045  echo "$as_me: failed program was:" >&5
10046sed 's/^/| /' conftest.$ac_ext >&5
10047
10048	supported=no
10049fi
10050
10051rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10052      conftest$ac_exeext conftest.$ac_ext
10053		{ echo "$as_me:$LINENO: result: $supported" >&5
10054echo "${ECHO_T}$supported" >&6; }
10055		CFLAGS="$xorg_testset_save_CFLAGS"
10056
10057		if test "$supported" = "yes" ; then
10058			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
10059			found="yes"
10060		fi
10061	fi
10062
10063
10064
10065
10066
10067
10068
10069xorg_testset_save_CFLAGS="$CFLAGS"
10070
10071if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10072	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10073	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10074echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10075	cat >conftest.$ac_ext <<_ACEOF
10076/* confdefs.h.  */
10077_ACEOF
10078cat confdefs.h >>conftest.$ac_ext
10079cat >>conftest.$ac_ext <<_ACEOF
10080/* end confdefs.h.  */
10081int i;
10082_ACEOF
10083rm -f conftest.$ac_objext
10084if { (ac_try="$ac_compile"
10085case "(($ac_try" in
10086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10087  *) ac_try_echo=$ac_try;;
10088esac
10089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10090  (eval "$ac_compile") 2>conftest.er1
10091  ac_status=$?
10092  grep -v '^ *+' conftest.er1 >conftest.err
10093  rm -f conftest.er1
10094  cat conftest.err >&5
10095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096  (exit $ac_status); } && {
10097	 test -z "$ac_c_werror_flag" ||
10098	 test ! -s conftest.err
10099       } && test -s conftest.$ac_objext; then
10100  xorg_testset_unknown_warning_option=yes
10101else
10102  echo "$as_me: failed program was:" >&5
10103sed 's/^/| /' conftest.$ac_ext >&5
10104
10105	xorg_testset_unknown_warning_option=no
10106fi
10107
10108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10109	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10110echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10111	CFLAGS="$xorg_testset_save_CFLAGS"
10112fi
10113
10114if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10115	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10116		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10117	fi
10118	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10119	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10120echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10121	cat >conftest.$ac_ext <<_ACEOF
10122/* confdefs.h.  */
10123_ACEOF
10124cat confdefs.h >>conftest.$ac_ext
10125cat >>conftest.$ac_ext <<_ACEOF
10126/* end confdefs.h.  */
10127int i;
10128_ACEOF
10129rm -f conftest.$ac_objext
10130if { (ac_try="$ac_compile"
10131case "(($ac_try" in
10132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133  *) ac_try_echo=$ac_try;;
10134esac
10135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136  (eval "$ac_compile") 2>conftest.er1
10137  ac_status=$?
10138  grep -v '^ *+' conftest.er1 >conftest.err
10139  rm -f conftest.er1
10140  cat conftest.err >&5
10141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142  (exit $ac_status); } && {
10143	 test -z "$ac_c_werror_flag" ||
10144	 test ! -s conftest.err
10145       } && test -s conftest.$ac_objext; then
10146  xorg_testset_unused_command_line_argument=yes
10147else
10148  echo "$as_me: failed program was:" >&5
10149sed 's/^/| /' conftest.$ac_ext >&5
10150
10151	xorg_testset_unused_command_line_argument=no
10152fi
10153
10154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10155	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10156echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10157	CFLAGS="$xorg_testset_save_CFLAGS"
10158fi
10159
10160found="no"
10161
10162	if test $found = "no" ; then
10163		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10164			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10165		fi
10166
10167		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10168			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10169		fi
10170
10171		CFLAGS="$CFLAGS -Werror=write-strings"
10172
10173		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=write-strings" >&5
10174echo $ECHO_N "checking if $CC supports -Werror=write-strings... $ECHO_C" >&6; }
10175		cat >conftest.$ac_ext <<_ACEOF
10176/* confdefs.h.  */
10177_ACEOF
10178cat confdefs.h >>conftest.$ac_ext
10179cat >>conftest.$ac_ext <<_ACEOF
10180/* end confdefs.h.  */
10181int i;
10182int
10183main ()
10184{
10185
10186  ;
10187  return 0;
10188}
10189_ACEOF
10190rm -f conftest.$ac_objext conftest$ac_exeext
10191if { (ac_try="$ac_link"
10192case "(($ac_try" in
10193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194  *) ac_try_echo=$ac_try;;
10195esac
10196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197  (eval "$ac_link") 2>conftest.er1
10198  ac_status=$?
10199  grep -v '^ *+' conftest.er1 >conftest.err
10200  rm -f conftest.er1
10201  cat conftest.err >&5
10202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203  (exit $ac_status); } && {
10204	 test -z "$ac_c_werror_flag" ||
10205	 test ! -s conftest.err
10206       } && test -s conftest$ac_exeext &&
10207       $as_test_x conftest$ac_exeext; then
10208  supported=yes
10209else
10210  echo "$as_me: failed program was:" >&5
10211sed 's/^/| /' conftest.$ac_ext >&5
10212
10213	supported=no
10214fi
10215
10216rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10217      conftest$ac_exeext conftest.$ac_ext
10218		{ echo "$as_me:$LINENO: result: $supported" >&5
10219echo "${ECHO_T}$supported" >&6; }
10220		CFLAGS="$xorg_testset_save_CFLAGS"
10221
10222		if test "$supported" = "yes" ; then
10223			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
10224			found="yes"
10225		fi
10226	fi
10227
10228
10229
10230
10231
10232
10233
10234xorg_testset_save_CFLAGS="$CFLAGS"
10235
10236if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10237	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10238	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10239echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10240	cat >conftest.$ac_ext <<_ACEOF
10241/* confdefs.h.  */
10242_ACEOF
10243cat confdefs.h >>conftest.$ac_ext
10244cat >>conftest.$ac_ext <<_ACEOF
10245/* end confdefs.h.  */
10246int i;
10247_ACEOF
10248rm -f conftest.$ac_objext
10249if { (ac_try="$ac_compile"
10250case "(($ac_try" in
10251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252  *) ac_try_echo=$ac_try;;
10253esac
10254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255  (eval "$ac_compile") 2>conftest.er1
10256  ac_status=$?
10257  grep -v '^ *+' conftest.er1 >conftest.err
10258  rm -f conftest.er1
10259  cat conftest.err >&5
10260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261  (exit $ac_status); } && {
10262	 test -z "$ac_c_werror_flag" ||
10263	 test ! -s conftest.err
10264       } && test -s conftest.$ac_objext; then
10265  xorg_testset_unknown_warning_option=yes
10266else
10267  echo "$as_me: failed program was:" >&5
10268sed 's/^/| /' conftest.$ac_ext >&5
10269
10270	xorg_testset_unknown_warning_option=no
10271fi
10272
10273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10274	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10275echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10276	CFLAGS="$xorg_testset_save_CFLAGS"
10277fi
10278
10279if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10280	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10281		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10282	fi
10283	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10284	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10285echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10286	cat >conftest.$ac_ext <<_ACEOF
10287/* confdefs.h.  */
10288_ACEOF
10289cat confdefs.h >>conftest.$ac_ext
10290cat >>conftest.$ac_ext <<_ACEOF
10291/* end confdefs.h.  */
10292int i;
10293_ACEOF
10294rm -f conftest.$ac_objext
10295if { (ac_try="$ac_compile"
10296case "(($ac_try" in
10297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298  *) ac_try_echo=$ac_try;;
10299esac
10300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10301  (eval "$ac_compile") 2>conftest.er1
10302  ac_status=$?
10303  grep -v '^ *+' conftest.er1 >conftest.err
10304  rm -f conftest.er1
10305  cat conftest.err >&5
10306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307  (exit $ac_status); } && {
10308	 test -z "$ac_c_werror_flag" ||
10309	 test ! -s conftest.err
10310       } && test -s conftest.$ac_objext; then
10311  xorg_testset_unused_command_line_argument=yes
10312else
10313  echo "$as_me: failed program was:" >&5
10314sed 's/^/| /' conftest.$ac_ext >&5
10315
10316	xorg_testset_unused_command_line_argument=no
10317fi
10318
10319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10320	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10321echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10322	CFLAGS="$xorg_testset_save_CFLAGS"
10323fi
10324
10325found="no"
10326
10327	if test $found = "no" ; then
10328		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10329			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10330		fi
10331
10332		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10333			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10334		fi
10335
10336		CFLAGS="$CFLAGS -Werror=address"
10337
10338		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=address" >&5
10339echo $ECHO_N "checking if $CC supports -Werror=address... $ECHO_C" >&6; }
10340		cat >conftest.$ac_ext <<_ACEOF
10341/* confdefs.h.  */
10342_ACEOF
10343cat confdefs.h >>conftest.$ac_ext
10344cat >>conftest.$ac_ext <<_ACEOF
10345/* end confdefs.h.  */
10346int i;
10347int
10348main ()
10349{
10350
10351  ;
10352  return 0;
10353}
10354_ACEOF
10355rm -f conftest.$ac_objext conftest$ac_exeext
10356if { (ac_try="$ac_link"
10357case "(($ac_try" in
10358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10359  *) ac_try_echo=$ac_try;;
10360esac
10361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10362  (eval "$ac_link") 2>conftest.er1
10363  ac_status=$?
10364  grep -v '^ *+' conftest.er1 >conftest.err
10365  rm -f conftest.er1
10366  cat conftest.err >&5
10367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368  (exit $ac_status); } && {
10369	 test -z "$ac_c_werror_flag" ||
10370	 test ! -s conftest.err
10371       } && test -s conftest$ac_exeext &&
10372       $as_test_x conftest$ac_exeext; then
10373  supported=yes
10374else
10375  echo "$as_me: failed program was:" >&5
10376sed 's/^/| /' conftest.$ac_ext >&5
10377
10378	supported=no
10379fi
10380
10381rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10382      conftest$ac_exeext conftest.$ac_ext
10383		{ echo "$as_me:$LINENO: result: $supported" >&5
10384echo "${ECHO_T}$supported" >&6; }
10385		CFLAGS="$xorg_testset_save_CFLAGS"
10386
10387		if test "$supported" = "yes" ; then
10388			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
10389			found="yes"
10390		fi
10391	fi
10392
10393
10394
10395
10396
10397
10398
10399xorg_testset_save_CFLAGS="$CFLAGS"
10400
10401if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10402	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10403	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10404echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10405	cat >conftest.$ac_ext <<_ACEOF
10406/* confdefs.h.  */
10407_ACEOF
10408cat confdefs.h >>conftest.$ac_ext
10409cat >>conftest.$ac_ext <<_ACEOF
10410/* end confdefs.h.  */
10411int i;
10412_ACEOF
10413rm -f conftest.$ac_objext
10414if { (ac_try="$ac_compile"
10415case "(($ac_try" in
10416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10417  *) ac_try_echo=$ac_try;;
10418esac
10419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10420  (eval "$ac_compile") 2>conftest.er1
10421  ac_status=$?
10422  grep -v '^ *+' conftest.er1 >conftest.err
10423  rm -f conftest.er1
10424  cat conftest.err >&5
10425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426  (exit $ac_status); } && {
10427	 test -z "$ac_c_werror_flag" ||
10428	 test ! -s conftest.err
10429       } && test -s conftest.$ac_objext; then
10430  xorg_testset_unknown_warning_option=yes
10431else
10432  echo "$as_me: failed program was:" >&5
10433sed 's/^/| /' conftest.$ac_ext >&5
10434
10435	xorg_testset_unknown_warning_option=no
10436fi
10437
10438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10439	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10440echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10441	CFLAGS="$xorg_testset_save_CFLAGS"
10442fi
10443
10444if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10445	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10446		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10447	fi
10448	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10449	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10450echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10451	cat >conftest.$ac_ext <<_ACEOF
10452/* confdefs.h.  */
10453_ACEOF
10454cat confdefs.h >>conftest.$ac_ext
10455cat >>conftest.$ac_ext <<_ACEOF
10456/* end confdefs.h.  */
10457int i;
10458_ACEOF
10459rm -f conftest.$ac_objext
10460if { (ac_try="$ac_compile"
10461case "(($ac_try" in
10462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10463  *) ac_try_echo=$ac_try;;
10464esac
10465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10466  (eval "$ac_compile") 2>conftest.er1
10467  ac_status=$?
10468  grep -v '^ *+' conftest.er1 >conftest.err
10469  rm -f conftest.er1
10470  cat conftest.err >&5
10471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472  (exit $ac_status); } && {
10473	 test -z "$ac_c_werror_flag" ||
10474	 test ! -s conftest.err
10475       } && test -s conftest.$ac_objext; then
10476  xorg_testset_unused_command_line_argument=yes
10477else
10478  echo "$as_me: failed program was:" >&5
10479sed 's/^/| /' conftest.$ac_ext >&5
10480
10481	xorg_testset_unused_command_line_argument=no
10482fi
10483
10484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10485	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10486echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10487	CFLAGS="$xorg_testset_save_CFLAGS"
10488fi
10489
10490found="no"
10491
10492	if test $found = "no" ; then
10493		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10494			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10495		fi
10496
10497		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10498			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10499		fi
10500
10501		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
10502
10503		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=int-to-pointer-cast" >&5
10504echo $ECHO_N "checking if $CC supports -Werror=int-to-pointer-cast... $ECHO_C" >&6; }
10505		cat >conftest.$ac_ext <<_ACEOF
10506/* confdefs.h.  */
10507_ACEOF
10508cat confdefs.h >>conftest.$ac_ext
10509cat >>conftest.$ac_ext <<_ACEOF
10510/* end confdefs.h.  */
10511int i;
10512int
10513main ()
10514{
10515
10516  ;
10517  return 0;
10518}
10519_ACEOF
10520rm -f conftest.$ac_objext conftest$ac_exeext
10521if { (ac_try="$ac_link"
10522case "(($ac_try" in
10523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524  *) ac_try_echo=$ac_try;;
10525esac
10526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10527  (eval "$ac_link") 2>conftest.er1
10528  ac_status=$?
10529  grep -v '^ *+' conftest.er1 >conftest.err
10530  rm -f conftest.er1
10531  cat conftest.err >&5
10532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533  (exit $ac_status); } && {
10534	 test -z "$ac_c_werror_flag" ||
10535	 test ! -s conftest.err
10536       } && test -s conftest$ac_exeext &&
10537       $as_test_x conftest$ac_exeext; then
10538  supported=yes
10539else
10540  echo "$as_me: failed program was:" >&5
10541sed 's/^/| /' conftest.$ac_ext >&5
10542
10543	supported=no
10544fi
10545
10546rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10547      conftest$ac_exeext conftest.$ac_ext
10548		{ echo "$as_me:$LINENO: result: $supported" >&5
10549echo "${ECHO_T}$supported" >&6; }
10550		CFLAGS="$xorg_testset_save_CFLAGS"
10551
10552		if test "$supported" = "yes" ; then
10553			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
10554			found="yes"
10555		fi
10556	fi
10557
10558	if test $found = "no" ; then
10559		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10560			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10561		fi
10562
10563		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10564			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10565		fi
10566
10567		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
10568
10569		{ echo "$as_me:$LINENO: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
10570echo $ECHO_N "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... $ECHO_C" >&6; }
10571		cat >conftest.$ac_ext <<_ACEOF
10572/* confdefs.h.  */
10573_ACEOF
10574cat confdefs.h >>conftest.$ac_ext
10575cat >>conftest.$ac_ext <<_ACEOF
10576/* end confdefs.h.  */
10577int i;
10578int
10579main ()
10580{
10581
10582  ;
10583  return 0;
10584}
10585_ACEOF
10586rm -f conftest.$ac_objext conftest$ac_exeext
10587if { (ac_try="$ac_link"
10588case "(($ac_try" in
10589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10590  *) ac_try_echo=$ac_try;;
10591esac
10592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10593  (eval "$ac_link") 2>conftest.er1
10594  ac_status=$?
10595  grep -v '^ *+' conftest.er1 >conftest.err
10596  rm -f conftest.er1
10597  cat conftest.err >&5
10598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599  (exit $ac_status); } && {
10600	 test -z "$ac_c_werror_flag" ||
10601	 test ! -s conftest.err
10602       } && test -s conftest$ac_exeext &&
10603       $as_test_x conftest$ac_exeext; then
10604  supported=yes
10605else
10606  echo "$as_me: failed program was:" >&5
10607sed 's/^/| /' conftest.$ac_ext >&5
10608
10609	supported=no
10610fi
10611
10612rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10613      conftest$ac_exeext conftest.$ac_ext
10614		{ echo "$as_me:$LINENO: result: $supported" >&5
10615echo "${ECHO_T}$supported" >&6; }
10616		CFLAGS="$xorg_testset_save_CFLAGS"
10617
10618		if test "$supported" = "yes" ; then
10619			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
10620			found="yes"
10621		fi
10622	fi
10623
10624
10625
10626
10627
10628
10629
10630xorg_testset_save_CFLAGS="$CFLAGS"
10631
10632if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10633	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10634	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10635echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10636	cat >conftest.$ac_ext <<_ACEOF
10637/* confdefs.h.  */
10638_ACEOF
10639cat confdefs.h >>conftest.$ac_ext
10640cat >>conftest.$ac_ext <<_ACEOF
10641/* end confdefs.h.  */
10642int i;
10643_ACEOF
10644rm -f conftest.$ac_objext
10645if { (ac_try="$ac_compile"
10646case "(($ac_try" in
10647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10648  *) ac_try_echo=$ac_try;;
10649esac
10650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10651  (eval "$ac_compile") 2>conftest.er1
10652  ac_status=$?
10653  grep -v '^ *+' conftest.er1 >conftest.err
10654  rm -f conftest.er1
10655  cat conftest.err >&5
10656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657  (exit $ac_status); } && {
10658	 test -z "$ac_c_werror_flag" ||
10659	 test ! -s conftest.err
10660       } && test -s conftest.$ac_objext; then
10661  xorg_testset_unknown_warning_option=yes
10662else
10663  echo "$as_me: failed program was:" >&5
10664sed 's/^/| /' conftest.$ac_ext >&5
10665
10666	xorg_testset_unknown_warning_option=no
10667fi
10668
10669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10670	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10671echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10672	CFLAGS="$xorg_testset_save_CFLAGS"
10673fi
10674
10675if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10676	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10677		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10678	fi
10679	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10680	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10681echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10682	cat >conftest.$ac_ext <<_ACEOF
10683/* confdefs.h.  */
10684_ACEOF
10685cat confdefs.h >>conftest.$ac_ext
10686cat >>conftest.$ac_ext <<_ACEOF
10687/* end confdefs.h.  */
10688int i;
10689_ACEOF
10690rm -f conftest.$ac_objext
10691if { (ac_try="$ac_compile"
10692case "(($ac_try" in
10693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694  *) ac_try_echo=$ac_try;;
10695esac
10696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697  (eval "$ac_compile") 2>conftest.er1
10698  ac_status=$?
10699  grep -v '^ *+' conftest.er1 >conftest.err
10700  rm -f conftest.er1
10701  cat conftest.err >&5
10702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703  (exit $ac_status); } && {
10704	 test -z "$ac_c_werror_flag" ||
10705	 test ! -s conftest.err
10706       } && test -s conftest.$ac_objext; then
10707  xorg_testset_unused_command_line_argument=yes
10708else
10709  echo "$as_me: failed program was:" >&5
10710sed 's/^/| /' conftest.$ac_ext >&5
10711
10712	xorg_testset_unused_command_line_argument=no
10713fi
10714
10715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10716	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10717echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10718	CFLAGS="$xorg_testset_save_CFLAGS"
10719fi
10720
10721found="no"
10722
10723	if test $found = "no" ; then
10724		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10725			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10726		fi
10727
10728		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10729			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10730		fi
10731
10732		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
10733
10734		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=pointer-to-int-cast" >&5
10735echo $ECHO_N "checking if $CC supports -Werror=pointer-to-int-cast... $ECHO_C" >&6; }
10736		cat >conftest.$ac_ext <<_ACEOF
10737/* confdefs.h.  */
10738_ACEOF
10739cat confdefs.h >>conftest.$ac_ext
10740cat >>conftest.$ac_ext <<_ACEOF
10741/* end confdefs.h.  */
10742int i;
10743int
10744main ()
10745{
10746
10747  ;
10748  return 0;
10749}
10750_ACEOF
10751rm -f conftest.$ac_objext conftest$ac_exeext
10752if { (ac_try="$ac_link"
10753case "(($ac_try" in
10754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10755  *) ac_try_echo=$ac_try;;
10756esac
10757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10758  (eval "$ac_link") 2>conftest.er1
10759  ac_status=$?
10760  grep -v '^ *+' conftest.er1 >conftest.err
10761  rm -f conftest.er1
10762  cat conftest.err >&5
10763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764  (exit $ac_status); } && {
10765	 test -z "$ac_c_werror_flag" ||
10766	 test ! -s conftest.err
10767       } && test -s conftest$ac_exeext &&
10768       $as_test_x conftest$ac_exeext; then
10769  supported=yes
10770else
10771  echo "$as_me: failed program was:" >&5
10772sed 's/^/| /' conftest.$ac_ext >&5
10773
10774	supported=no
10775fi
10776
10777rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10778      conftest$ac_exeext conftest.$ac_ext
10779		{ echo "$as_me:$LINENO: result: $supported" >&5
10780echo "${ECHO_T}$supported" >&6; }
10781		CFLAGS="$xorg_testset_save_CFLAGS"
10782
10783		if test "$supported" = "yes" ; then
10784			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
10785			found="yes"
10786		fi
10787	fi
10788
10789 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
10790else
10791{ 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
10792echo "$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;}
10793
10794
10795
10796
10797
10798xorg_testset_save_CFLAGS="$CFLAGS"
10799
10800if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10801	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10802	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10803echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10804	cat >conftest.$ac_ext <<_ACEOF
10805/* confdefs.h.  */
10806_ACEOF
10807cat confdefs.h >>conftest.$ac_ext
10808cat >>conftest.$ac_ext <<_ACEOF
10809/* end confdefs.h.  */
10810int i;
10811_ACEOF
10812rm -f conftest.$ac_objext
10813if { (ac_try="$ac_compile"
10814case "(($ac_try" in
10815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10816  *) ac_try_echo=$ac_try;;
10817esac
10818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10819  (eval "$ac_compile") 2>conftest.er1
10820  ac_status=$?
10821  grep -v '^ *+' conftest.er1 >conftest.err
10822  rm -f conftest.er1
10823  cat conftest.err >&5
10824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825  (exit $ac_status); } && {
10826	 test -z "$ac_c_werror_flag" ||
10827	 test ! -s conftest.err
10828       } && test -s conftest.$ac_objext; then
10829  xorg_testset_unknown_warning_option=yes
10830else
10831  echo "$as_me: failed program was:" >&5
10832sed 's/^/| /' conftest.$ac_ext >&5
10833
10834	xorg_testset_unknown_warning_option=no
10835fi
10836
10837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10838	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10839echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10840	CFLAGS="$xorg_testset_save_CFLAGS"
10841fi
10842
10843if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10844	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10845		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10846	fi
10847	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10848	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10849echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10850	cat >conftest.$ac_ext <<_ACEOF
10851/* confdefs.h.  */
10852_ACEOF
10853cat confdefs.h >>conftest.$ac_ext
10854cat >>conftest.$ac_ext <<_ACEOF
10855/* end confdefs.h.  */
10856int i;
10857_ACEOF
10858rm -f conftest.$ac_objext
10859if { (ac_try="$ac_compile"
10860case "(($ac_try" in
10861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10862  *) ac_try_echo=$ac_try;;
10863esac
10864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10865  (eval "$ac_compile") 2>conftest.er1
10866  ac_status=$?
10867  grep -v '^ *+' conftest.er1 >conftest.err
10868  rm -f conftest.er1
10869  cat conftest.err >&5
10870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871  (exit $ac_status); } && {
10872	 test -z "$ac_c_werror_flag" ||
10873	 test ! -s conftest.err
10874       } && test -s conftest.$ac_objext; then
10875  xorg_testset_unused_command_line_argument=yes
10876else
10877  echo "$as_me: failed program was:" >&5
10878sed 's/^/| /' conftest.$ac_ext >&5
10879
10880	xorg_testset_unused_command_line_argument=no
10881fi
10882
10883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10884	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10885echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10886	CFLAGS="$xorg_testset_save_CFLAGS"
10887fi
10888
10889found="no"
10890
10891	if test $found = "no" ; then
10892		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10893			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10894		fi
10895
10896		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10897			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10898		fi
10899
10900		CFLAGS="$CFLAGS -Wimplicit"
10901
10902		{ echo "$as_me:$LINENO: checking if $CC supports -Wimplicit" >&5
10903echo $ECHO_N "checking if $CC supports -Wimplicit... $ECHO_C" >&6; }
10904		cat >conftest.$ac_ext <<_ACEOF
10905/* confdefs.h.  */
10906_ACEOF
10907cat confdefs.h >>conftest.$ac_ext
10908cat >>conftest.$ac_ext <<_ACEOF
10909/* end confdefs.h.  */
10910int i;
10911int
10912main ()
10913{
10914
10915  ;
10916  return 0;
10917}
10918_ACEOF
10919rm -f conftest.$ac_objext conftest$ac_exeext
10920if { (ac_try="$ac_link"
10921case "(($ac_try" in
10922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923  *) ac_try_echo=$ac_try;;
10924esac
10925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926  (eval "$ac_link") 2>conftest.er1
10927  ac_status=$?
10928  grep -v '^ *+' conftest.er1 >conftest.err
10929  rm -f conftest.er1
10930  cat conftest.err >&5
10931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932  (exit $ac_status); } && {
10933	 test -z "$ac_c_werror_flag" ||
10934	 test ! -s conftest.err
10935       } && test -s conftest$ac_exeext &&
10936       $as_test_x conftest$ac_exeext; then
10937  supported=yes
10938else
10939  echo "$as_me: failed program was:" >&5
10940sed 's/^/| /' conftest.$ac_ext >&5
10941
10942	supported=no
10943fi
10944
10945rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10946      conftest$ac_exeext conftest.$ac_ext
10947		{ echo "$as_me:$LINENO: result: $supported" >&5
10948echo "${ECHO_T}$supported" >&6; }
10949		CFLAGS="$xorg_testset_save_CFLAGS"
10950
10951		if test "$supported" = "yes" ; then
10952			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
10953			found="yes"
10954		fi
10955	fi
10956
10957
10958
10959
10960
10961
10962
10963xorg_testset_save_CFLAGS="$CFLAGS"
10964
10965if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10966	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10967	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10968echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10969	cat >conftest.$ac_ext <<_ACEOF
10970/* confdefs.h.  */
10971_ACEOF
10972cat confdefs.h >>conftest.$ac_ext
10973cat >>conftest.$ac_ext <<_ACEOF
10974/* end confdefs.h.  */
10975int i;
10976_ACEOF
10977rm -f conftest.$ac_objext
10978if { (ac_try="$ac_compile"
10979case "(($ac_try" in
10980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981  *) ac_try_echo=$ac_try;;
10982esac
10983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10984  (eval "$ac_compile") 2>conftest.er1
10985  ac_status=$?
10986  grep -v '^ *+' conftest.er1 >conftest.err
10987  rm -f conftest.er1
10988  cat conftest.err >&5
10989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990  (exit $ac_status); } && {
10991	 test -z "$ac_c_werror_flag" ||
10992	 test ! -s conftest.err
10993       } && test -s conftest.$ac_objext; then
10994  xorg_testset_unknown_warning_option=yes
10995else
10996  echo "$as_me: failed program was:" >&5
10997sed 's/^/| /' conftest.$ac_ext >&5
10998
10999	xorg_testset_unknown_warning_option=no
11000fi
11001
11002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11003	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11004echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11005	CFLAGS="$xorg_testset_save_CFLAGS"
11006fi
11007
11008if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11009	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11010		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11011	fi
11012	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11013	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11014echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11015	cat >conftest.$ac_ext <<_ACEOF
11016/* confdefs.h.  */
11017_ACEOF
11018cat confdefs.h >>conftest.$ac_ext
11019cat >>conftest.$ac_ext <<_ACEOF
11020/* end confdefs.h.  */
11021int i;
11022_ACEOF
11023rm -f conftest.$ac_objext
11024if { (ac_try="$ac_compile"
11025case "(($ac_try" in
11026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027  *) ac_try_echo=$ac_try;;
11028esac
11029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030  (eval "$ac_compile") 2>conftest.er1
11031  ac_status=$?
11032  grep -v '^ *+' conftest.er1 >conftest.err
11033  rm -f conftest.er1
11034  cat conftest.err >&5
11035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036  (exit $ac_status); } && {
11037	 test -z "$ac_c_werror_flag" ||
11038	 test ! -s conftest.err
11039       } && test -s conftest.$ac_objext; then
11040  xorg_testset_unused_command_line_argument=yes
11041else
11042  echo "$as_me: failed program was:" >&5
11043sed 's/^/| /' conftest.$ac_ext >&5
11044
11045	xorg_testset_unused_command_line_argument=no
11046fi
11047
11048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11049	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11050echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11051	CFLAGS="$xorg_testset_save_CFLAGS"
11052fi
11053
11054found="no"
11055
11056	if test $found = "no" ; then
11057		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11058			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11059		fi
11060
11061		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11062			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11063		fi
11064
11065		CFLAGS="$CFLAGS -Wnonnull"
11066
11067		{ echo "$as_me:$LINENO: checking if $CC supports -Wnonnull" >&5
11068echo $ECHO_N "checking if $CC supports -Wnonnull... $ECHO_C" >&6; }
11069		cat >conftest.$ac_ext <<_ACEOF
11070/* confdefs.h.  */
11071_ACEOF
11072cat confdefs.h >>conftest.$ac_ext
11073cat >>conftest.$ac_ext <<_ACEOF
11074/* end confdefs.h.  */
11075int i;
11076int
11077main ()
11078{
11079
11080  ;
11081  return 0;
11082}
11083_ACEOF
11084rm -f conftest.$ac_objext conftest$ac_exeext
11085if { (ac_try="$ac_link"
11086case "(($ac_try" in
11087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088  *) ac_try_echo=$ac_try;;
11089esac
11090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091  (eval "$ac_link") 2>conftest.er1
11092  ac_status=$?
11093  grep -v '^ *+' conftest.er1 >conftest.err
11094  rm -f conftest.er1
11095  cat conftest.err >&5
11096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097  (exit $ac_status); } && {
11098	 test -z "$ac_c_werror_flag" ||
11099	 test ! -s conftest.err
11100       } && test -s conftest$ac_exeext &&
11101       $as_test_x conftest$ac_exeext; then
11102  supported=yes
11103else
11104  echo "$as_me: failed program was:" >&5
11105sed 's/^/| /' conftest.$ac_ext >&5
11106
11107	supported=no
11108fi
11109
11110rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11111      conftest$ac_exeext conftest.$ac_ext
11112		{ echo "$as_me:$LINENO: result: $supported" >&5
11113echo "${ECHO_T}$supported" >&6; }
11114		CFLAGS="$xorg_testset_save_CFLAGS"
11115
11116		if test "$supported" = "yes" ; then
11117			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
11118			found="yes"
11119		fi
11120	fi
11121
11122
11123
11124
11125
11126
11127
11128xorg_testset_save_CFLAGS="$CFLAGS"
11129
11130if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11131	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11132	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11133echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11134	cat >conftest.$ac_ext <<_ACEOF
11135/* confdefs.h.  */
11136_ACEOF
11137cat confdefs.h >>conftest.$ac_ext
11138cat >>conftest.$ac_ext <<_ACEOF
11139/* end confdefs.h.  */
11140int i;
11141_ACEOF
11142rm -f conftest.$ac_objext
11143if { (ac_try="$ac_compile"
11144case "(($ac_try" in
11145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11146  *) ac_try_echo=$ac_try;;
11147esac
11148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11149  (eval "$ac_compile") 2>conftest.er1
11150  ac_status=$?
11151  grep -v '^ *+' conftest.er1 >conftest.err
11152  rm -f conftest.er1
11153  cat conftest.err >&5
11154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155  (exit $ac_status); } && {
11156	 test -z "$ac_c_werror_flag" ||
11157	 test ! -s conftest.err
11158       } && test -s conftest.$ac_objext; then
11159  xorg_testset_unknown_warning_option=yes
11160else
11161  echo "$as_me: failed program was:" >&5
11162sed 's/^/| /' conftest.$ac_ext >&5
11163
11164	xorg_testset_unknown_warning_option=no
11165fi
11166
11167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11168	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11169echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11170	CFLAGS="$xorg_testset_save_CFLAGS"
11171fi
11172
11173if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11174	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11175		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11176	fi
11177	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11178	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11179echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11180	cat >conftest.$ac_ext <<_ACEOF
11181/* confdefs.h.  */
11182_ACEOF
11183cat confdefs.h >>conftest.$ac_ext
11184cat >>conftest.$ac_ext <<_ACEOF
11185/* end confdefs.h.  */
11186int i;
11187_ACEOF
11188rm -f conftest.$ac_objext
11189if { (ac_try="$ac_compile"
11190case "(($ac_try" in
11191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192  *) ac_try_echo=$ac_try;;
11193esac
11194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11195  (eval "$ac_compile") 2>conftest.er1
11196  ac_status=$?
11197  grep -v '^ *+' conftest.er1 >conftest.err
11198  rm -f conftest.er1
11199  cat conftest.err >&5
11200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201  (exit $ac_status); } && {
11202	 test -z "$ac_c_werror_flag" ||
11203	 test ! -s conftest.err
11204       } && test -s conftest.$ac_objext; then
11205  xorg_testset_unused_command_line_argument=yes
11206else
11207  echo "$as_me: failed program was:" >&5
11208sed 's/^/| /' conftest.$ac_ext >&5
11209
11210	xorg_testset_unused_command_line_argument=no
11211fi
11212
11213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11214	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11215echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11216	CFLAGS="$xorg_testset_save_CFLAGS"
11217fi
11218
11219found="no"
11220
11221	if test $found = "no" ; then
11222		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11223			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11224		fi
11225
11226		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11227			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11228		fi
11229
11230		CFLAGS="$CFLAGS -Winit-self"
11231
11232		{ echo "$as_me:$LINENO: checking if $CC supports -Winit-self" >&5
11233echo $ECHO_N "checking if $CC supports -Winit-self... $ECHO_C" >&6; }
11234		cat >conftest.$ac_ext <<_ACEOF
11235/* confdefs.h.  */
11236_ACEOF
11237cat confdefs.h >>conftest.$ac_ext
11238cat >>conftest.$ac_ext <<_ACEOF
11239/* end confdefs.h.  */
11240int i;
11241int
11242main ()
11243{
11244
11245  ;
11246  return 0;
11247}
11248_ACEOF
11249rm -f conftest.$ac_objext conftest$ac_exeext
11250if { (ac_try="$ac_link"
11251case "(($ac_try" in
11252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11253  *) ac_try_echo=$ac_try;;
11254esac
11255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11256  (eval "$ac_link") 2>conftest.er1
11257  ac_status=$?
11258  grep -v '^ *+' conftest.er1 >conftest.err
11259  rm -f conftest.er1
11260  cat conftest.err >&5
11261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262  (exit $ac_status); } && {
11263	 test -z "$ac_c_werror_flag" ||
11264	 test ! -s conftest.err
11265       } && test -s conftest$ac_exeext &&
11266       $as_test_x conftest$ac_exeext; then
11267  supported=yes
11268else
11269  echo "$as_me: failed program was:" >&5
11270sed 's/^/| /' conftest.$ac_ext >&5
11271
11272	supported=no
11273fi
11274
11275rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11276      conftest$ac_exeext conftest.$ac_ext
11277		{ echo "$as_me:$LINENO: result: $supported" >&5
11278echo "${ECHO_T}$supported" >&6; }
11279		CFLAGS="$xorg_testset_save_CFLAGS"
11280
11281		if test "$supported" = "yes" ; then
11282			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
11283			found="yes"
11284		fi
11285	fi
11286
11287
11288
11289
11290
11291
11292
11293xorg_testset_save_CFLAGS="$CFLAGS"
11294
11295if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11296	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11297	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11298echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11299	cat >conftest.$ac_ext <<_ACEOF
11300/* confdefs.h.  */
11301_ACEOF
11302cat confdefs.h >>conftest.$ac_ext
11303cat >>conftest.$ac_ext <<_ACEOF
11304/* end confdefs.h.  */
11305int i;
11306_ACEOF
11307rm -f conftest.$ac_objext
11308if { (ac_try="$ac_compile"
11309case "(($ac_try" in
11310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11311  *) ac_try_echo=$ac_try;;
11312esac
11313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11314  (eval "$ac_compile") 2>conftest.er1
11315  ac_status=$?
11316  grep -v '^ *+' conftest.er1 >conftest.err
11317  rm -f conftest.er1
11318  cat conftest.err >&5
11319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320  (exit $ac_status); } && {
11321	 test -z "$ac_c_werror_flag" ||
11322	 test ! -s conftest.err
11323       } && test -s conftest.$ac_objext; then
11324  xorg_testset_unknown_warning_option=yes
11325else
11326  echo "$as_me: failed program was:" >&5
11327sed 's/^/| /' conftest.$ac_ext >&5
11328
11329	xorg_testset_unknown_warning_option=no
11330fi
11331
11332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11333	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11334echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11335	CFLAGS="$xorg_testset_save_CFLAGS"
11336fi
11337
11338if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11339	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11340		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11341	fi
11342	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11343	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11344echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11345	cat >conftest.$ac_ext <<_ACEOF
11346/* confdefs.h.  */
11347_ACEOF
11348cat confdefs.h >>conftest.$ac_ext
11349cat >>conftest.$ac_ext <<_ACEOF
11350/* end confdefs.h.  */
11351int i;
11352_ACEOF
11353rm -f conftest.$ac_objext
11354if { (ac_try="$ac_compile"
11355case "(($ac_try" in
11356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11357  *) ac_try_echo=$ac_try;;
11358esac
11359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11360  (eval "$ac_compile") 2>conftest.er1
11361  ac_status=$?
11362  grep -v '^ *+' conftest.er1 >conftest.err
11363  rm -f conftest.er1
11364  cat conftest.err >&5
11365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366  (exit $ac_status); } && {
11367	 test -z "$ac_c_werror_flag" ||
11368	 test ! -s conftest.err
11369       } && test -s conftest.$ac_objext; then
11370  xorg_testset_unused_command_line_argument=yes
11371else
11372  echo "$as_me: failed program was:" >&5
11373sed 's/^/| /' conftest.$ac_ext >&5
11374
11375	xorg_testset_unused_command_line_argument=no
11376fi
11377
11378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11379	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11380echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11381	CFLAGS="$xorg_testset_save_CFLAGS"
11382fi
11383
11384found="no"
11385
11386	if test $found = "no" ; then
11387		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11388			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11389		fi
11390
11391		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11392			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11393		fi
11394
11395		CFLAGS="$CFLAGS -Wmain"
11396
11397		{ echo "$as_me:$LINENO: checking if $CC supports -Wmain" >&5
11398echo $ECHO_N "checking if $CC supports -Wmain... $ECHO_C" >&6; }
11399		cat >conftest.$ac_ext <<_ACEOF
11400/* confdefs.h.  */
11401_ACEOF
11402cat confdefs.h >>conftest.$ac_ext
11403cat >>conftest.$ac_ext <<_ACEOF
11404/* end confdefs.h.  */
11405int i;
11406int
11407main ()
11408{
11409
11410  ;
11411  return 0;
11412}
11413_ACEOF
11414rm -f conftest.$ac_objext conftest$ac_exeext
11415if { (ac_try="$ac_link"
11416case "(($ac_try" in
11417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418  *) ac_try_echo=$ac_try;;
11419esac
11420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421  (eval "$ac_link") 2>conftest.er1
11422  ac_status=$?
11423  grep -v '^ *+' conftest.er1 >conftest.err
11424  rm -f conftest.er1
11425  cat conftest.err >&5
11426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427  (exit $ac_status); } && {
11428	 test -z "$ac_c_werror_flag" ||
11429	 test ! -s conftest.err
11430       } && test -s conftest$ac_exeext &&
11431       $as_test_x conftest$ac_exeext; then
11432  supported=yes
11433else
11434  echo "$as_me: failed program was:" >&5
11435sed 's/^/| /' conftest.$ac_ext >&5
11436
11437	supported=no
11438fi
11439
11440rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11441      conftest$ac_exeext conftest.$ac_ext
11442		{ echo "$as_me:$LINENO: result: $supported" >&5
11443echo "${ECHO_T}$supported" >&6; }
11444		CFLAGS="$xorg_testset_save_CFLAGS"
11445
11446		if test "$supported" = "yes" ; then
11447			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
11448			found="yes"
11449		fi
11450	fi
11451
11452
11453
11454
11455
11456
11457
11458xorg_testset_save_CFLAGS="$CFLAGS"
11459
11460if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11461	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11462	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11463echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11464	cat >conftest.$ac_ext <<_ACEOF
11465/* confdefs.h.  */
11466_ACEOF
11467cat confdefs.h >>conftest.$ac_ext
11468cat >>conftest.$ac_ext <<_ACEOF
11469/* end confdefs.h.  */
11470int i;
11471_ACEOF
11472rm -f conftest.$ac_objext
11473if { (ac_try="$ac_compile"
11474case "(($ac_try" in
11475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476  *) ac_try_echo=$ac_try;;
11477esac
11478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479  (eval "$ac_compile") 2>conftest.er1
11480  ac_status=$?
11481  grep -v '^ *+' conftest.er1 >conftest.err
11482  rm -f conftest.er1
11483  cat conftest.err >&5
11484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485  (exit $ac_status); } && {
11486	 test -z "$ac_c_werror_flag" ||
11487	 test ! -s conftest.err
11488       } && test -s conftest.$ac_objext; then
11489  xorg_testset_unknown_warning_option=yes
11490else
11491  echo "$as_me: failed program was:" >&5
11492sed 's/^/| /' conftest.$ac_ext >&5
11493
11494	xorg_testset_unknown_warning_option=no
11495fi
11496
11497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11498	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11499echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11500	CFLAGS="$xorg_testset_save_CFLAGS"
11501fi
11502
11503if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11504	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11505		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11506	fi
11507	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11508	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11509echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11510	cat >conftest.$ac_ext <<_ACEOF
11511/* confdefs.h.  */
11512_ACEOF
11513cat confdefs.h >>conftest.$ac_ext
11514cat >>conftest.$ac_ext <<_ACEOF
11515/* end confdefs.h.  */
11516int i;
11517_ACEOF
11518rm -f conftest.$ac_objext
11519if { (ac_try="$ac_compile"
11520case "(($ac_try" in
11521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522  *) ac_try_echo=$ac_try;;
11523esac
11524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525  (eval "$ac_compile") 2>conftest.er1
11526  ac_status=$?
11527  grep -v '^ *+' conftest.er1 >conftest.err
11528  rm -f conftest.er1
11529  cat conftest.err >&5
11530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531  (exit $ac_status); } && {
11532	 test -z "$ac_c_werror_flag" ||
11533	 test ! -s conftest.err
11534       } && test -s conftest.$ac_objext; then
11535  xorg_testset_unused_command_line_argument=yes
11536else
11537  echo "$as_me: failed program was:" >&5
11538sed 's/^/| /' conftest.$ac_ext >&5
11539
11540	xorg_testset_unused_command_line_argument=no
11541fi
11542
11543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11544	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11545echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11546	CFLAGS="$xorg_testset_save_CFLAGS"
11547fi
11548
11549found="no"
11550
11551	if test $found = "no" ; then
11552		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11553			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11554		fi
11555
11556		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11557			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11558		fi
11559
11560		CFLAGS="$CFLAGS -Wmissing-braces"
11561
11562		{ echo "$as_me:$LINENO: checking if $CC supports -Wmissing-braces" >&5
11563echo $ECHO_N "checking if $CC supports -Wmissing-braces... $ECHO_C" >&6; }
11564		cat >conftest.$ac_ext <<_ACEOF
11565/* confdefs.h.  */
11566_ACEOF
11567cat confdefs.h >>conftest.$ac_ext
11568cat >>conftest.$ac_ext <<_ACEOF
11569/* end confdefs.h.  */
11570int i;
11571int
11572main ()
11573{
11574
11575  ;
11576  return 0;
11577}
11578_ACEOF
11579rm -f conftest.$ac_objext conftest$ac_exeext
11580if { (ac_try="$ac_link"
11581case "(($ac_try" in
11582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11583  *) ac_try_echo=$ac_try;;
11584esac
11585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11586  (eval "$ac_link") 2>conftest.er1
11587  ac_status=$?
11588  grep -v '^ *+' conftest.er1 >conftest.err
11589  rm -f conftest.er1
11590  cat conftest.err >&5
11591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592  (exit $ac_status); } && {
11593	 test -z "$ac_c_werror_flag" ||
11594	 test ! -s conftest.err
11595       } && test -s conftest$ac_exeext &&
11596       $as_test_x conftest$ac_exeext; then
11597  supported=yes
11598else
11599  echo "$as_me: failed program was:" >&5
11600sed 's/^/| /' conftest.$ac_ext >&5
11601
11602	supported=no
11603fi
11604
11605rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11606      conftest$ac_exeext conftest.$ac_ext
11607		{ echo "$as_me:$LINENO: result: $supported" >&5
11608echo "${ECHO_T}$supported" >&6; }
11609		CFLAGS="$xorg_testset_save_CFLAGS"
11610
11611		if test "$supported" = "yes" ; then
11612			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
11613			found="yes"
11614		fi
11615	fi
11616
11617
11618
11619
11620
11621
11622
11623xorg_testset_save_CFLAGS="$CFLAGS"
11624
11625if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11626	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11627	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11628echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11629	cat >conftest.$ac_ext <<_ACEOF
11630/* confdefs.h.  */
11631_ACEOF
11632cat confdefs.h >>conftest.$ac_ext
11633cat >>conftest.$ac_ext <<_ACEOF
11634/* end confdefs.h.  */
11635int i;
11636_ACEOF
11637rm -f conftest.$ac_objext
11638if { (ac_try="$ac_compile"
11639case "(($ac_try" in
11640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641  *) ac_try_echo=$ac_try;;
11642esac
11643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644  (eval "$ac_compile") 2>conftest.er1
11645  ac_status=$?
11646  grep -v '^ *+' conftest.er1 >conftest.err
11647  rm -f conftest.er1
11648  cat conftest.err >&5
11649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650  (exit $ac_status); } && {
11651	 test -z "$ac_c_werror_flag" ||
11652	 test ! -s conftest.err
11653       } && test -s conftest.$ac_objext; then
11654  xorg_testset_unknown_warning_option=yes
11655else
11656  echo "$as_me: failed program was:" >&5
11657sed 's/^/| /' conftest.$ac_ext >&5
11658
11659	xorg_testset_unknown_warning_option=no
11660fi
11661
11662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11663	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11664echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11665	CFLAGS="$xorg_testset_save_CFLAGS"
11666fi
11667
11668if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11669	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11670		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11671	fi
11672	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11673	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11674echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11675	cat >conftest.$ac_ext <<_ACEOF
11676/* confdefs.h.  */
11677_ACEOF
11678cat confdefs.h >>conftest.$ac_ext
11679cat >>conftest.$ac_ext <<_ACEOF
11680/* end confdefs.h.  */
11681int i;
11682_ACEOF
11683rm -f conftest.$ac_objext
11684if { (ac_try="$ac_compile"
11685case "(($ac_try" in
11686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687  *) ac_try_echo=$ac_try;;
11688esac
11689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690  (eval "$ac_compile") 2>conftest.er1
11691  ac_status=$?
11692  grep -v '^ *+' conftest.er1 >conftest.err
11693  rm -f conftest.er1
11694  cat conftest.err >&5
11695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696  (exit $ac_status); } && {
11697	 test -z "$ac_c_werror_flag" ||
11698	 test ! -s conftest.err
11699       } && test -s conftest.$ac_objext; then
11700  xorg_testset_unused_command_line_argument=yes
11701else
11702  echo "$as_me: failed program was:" >&5
11703sed 's/^/| /' conftest.$ac_ext >&5
11704
11705	xorg_testset_unused_command_line_argument=no
11706fi
11707
11708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11709	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11710echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11711	CFLAGS="$xorg_testset_save_CFLAGS"
11712fi
11713
11714found="no"
11715
11716	if test $found = "no" ; then
11717		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11718			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11719		fi
11720
11721		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11722			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11723		fi
11724
11725		CFLAGS="$CFLAGS -Wsequence-point"
11726
11727		{ echo "$as_me:$LINENO: checking if $CC supports -Wsequence-point" >&5
11728echo $ECHO_N "checking if $CC supports -Wsequence-point... $ECHO_C" >&6; }
11729		cat >conftest.$ac_ext <<_ACEOF
11730/* confdefs.h.  */
11731_ACEOF
11732cat confdefs.h >>conftest.$ac_ext
11733cat >>conftest.$ac_ext <<_ACEOF
11734/* end confdefs.h.  */
11735int i;
11736int
11737main ()
11738{
11739
11740  ;
11741  return 0;
11742}
11743_ACEOF
11744rm -f conftest.$ac_objext conftest$ac_exeext
11745if { (ac_try="$ac_link"
11746case "(($ac_try" in
11747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748  *) ac_try_echo=$ac_try;;
11749esac
11750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751  (eval "$ac_link") 2>conftest.er1
11752  ac_status=$?
11753  grep -v '^ *+' conftest.er1 >conftest.err
11754  rm -f conftest.er1
11755  cat conftest.err >&5
11756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757  (exit $ac_status); } && {
11758	 test -z "$ac_c_werror_flag" ||
11759	 test ! -s conftest.err
11760       } && test -s conftest$ac_exeext &&
11761       $as_test_x conftest$ac_exeext; then
11762  supported=yes
11763else
11764  echo "$as_me: failed program was:" >&5
11765sed 's/^/| /' conftest.$ac_ext >&5
11766
11767	supported=no
11768fi
11769
11770rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11771      conftest$ac_exeext conftest.$ac_ext
11772		{ echo "$as_me:$LINENO: result: $supported" >&5
11773echo "${ECHO_T}$supported" >&6; }
11774		CFLAGS="$xorg_testset_save_CFLAGS"
11775
11776		if test "$supported" = "yes" ; then
11777			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
11778			found="yes"
11779		fi
11780	fi
11781
11782
11783
11784
11785
11786
11787
11788xorg_testset_save_CFLAGS="$CFLAGS"
11789
11790if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11791	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11792	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11793echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11794	cat >conftest.$ac_ext <<_ACEOF
11795/* confdefs.h.  */
11796_ACEOF
11797cat confdefs.h >>conftest.$ac_ext
11798cat >>conftest.$ac_ext <<_ACEOF
11799/* end confdefs.h.  */
11800int i;
11801_ACEOF
11802rm -f conftest.$ac_objext
11803if { (ac_try="$ac_compile"
11804case "(($ac_try" in
11805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806  *) ac_try_echo=$ac_try;;
11807esac
11808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11809  (eval "$ac_compile") 2>conftest.er1
11810  ac_status=$?
11811  grep -v '^ *+' conftest.er1 >conftest.err
11812  rm -f conftest.er1
11813  cat conftest.err >&5
11814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815  (exit $ac_status); } && {
11816	 test -z "$ac_c_werror_flag" ||
11817	 test ! -s conftest.err
11818       } && test -s conftest.$ac_objext; then
11819  xorg_testset_unknown_warning_option=yes
11820else
11821  echo "$as_me: failed program was:" >&5
11822sed 's/^/| /' conftest.$ac_ext >&5
11823
11824	xorg_testset_unknown_warning_option=no
11825fi
11826
11827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11828	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11829echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11830	CFLAGS="$xorg_testset_save_CFLAGS"
11831fi
11832
11833if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11834	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11835		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11836	fi
11837	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11838	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11839echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11840	cat >conftest.$ac_ext <<_ACEOF
11841/* confdefs.h.  */
11842_ACEOF
11843cat confdefs.h >>conftest.$ac_ext
11844cat >>conftest.$ac_ext <<_ACEOF
11845/* end confdefs.h.  */
11846int i;
11847_ACEOF
11848rm -f conftest.$ac_objext
11849if { (ac_try="$ac_compile"
11850case "(($ac_try" in
11851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852  *) ac_try_echo=$ac_try;;
11853esac
11854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855  (eval "$ac_compile") 2>conftest.er1
11856  ac_status=$?
11857  grep -v '^ *+' conftest.er1 >conftest.err
11858  rm -f conftest.er1
11859  cat conftest.err >&5
11860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861  (exit $ac_status); } && {
11862	 test -z "$ac_c_werror_flag" ||
11863	 test ! -s conftest.err
11864       } && test -s conftest.$ac_objext; then
11865  xorg_testset_unused_command_line_argument=yes
11866else
11867  echo "$as_me: failed program was:" >&5
11868sed 's/^/| /' conftest.$ac_ext >&5
11869
11870	xorg_testset_unused_command_line_argument=no
11871fi
11872
11873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11875echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11876	CFLAGS="$xorg_testset_save_CFLAGS"
11877fi
11878
11879found="no"
11880
11881	if test $found = "no" ; then
11882		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11883			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11884		fi
11885
11886		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11887			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11888		fi
11889
11890		CFLAGS="$CFLAGS -Wreturn-type"
11891
11892		{ echo "$as_me:$LINENO: checking if $CC supports -Wreturn-type" >&5
11893echo $ECHO_N "checking if $CC supports -Wreturn-type... $ECHO_C" >&6; }
11894		cat >conftest.$ac_ext <<_ACEOF
11895/* confdefs.h.  */
11896_ACEOF
11897cat confdefs.h >>conftest.$ac_ext
11898cat >>conftest.$ac_ext <<_ACEOF
11899/* end confdefs.h.  */
11900int i;
11901int
11902main ()
11903{
11904
11905  ;
11906  return 0;
11907}
11908_ACEOF
11909rm -f conftest.$ac_objext conftest$ac_exeext
11910if { (ac_try="$ac_link"
11911case "(($ac_try" in
11912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913  *) ac_try_echo=$ac_try;;
11914esac
11915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11916  (eval "$ac_link") 2>conftest.er1
11917  ac_status=$?
11918  grep -v '^ *+' conftest.er1 >conftest.err
11919  rm -f conftest.er1
11920  cat conftest.err >&5
11921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922  (exit $ac_status); } && {
11923	 test -z "$ac_c_werror_flag" ||
11924	 test ! -s conftest.err
11925       } && test -s conftest$ac_exeext &&
11926       $as_test_x conftest$ac_exeext; then
11927  supported=yes
11928else
11929  echo "$as_me: failed program was:" >&5
11930sed 's/^/| /' conftest.$ac_ext >&5
11931
11932	supported=no
11933fi
11934
11935rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11936      conftest$ac_exeext conftest.$ac_ext
11937		{ echo "$as_me:$LINENO: result: $supported" >&5
11938echo "${ECHO_T}$supported" >&6; }
11939		CFLAGS="$xorg_testset_save_CFLAGS"
11940
11941		if test "$supported" = "yes" ; then
11942			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
11943			found="yes"
11944		fi
11945	fi
11946
11947
11948
11949
11950
11951
11952
11953xorg_testset_save_CFLAGS="$CFLAGS"
11954
11955if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11956	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11957	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11958echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11959	cat >conftest.$ac_ext <<_ACEOF
11960/* confdefs.h.  */
11961_ACEOF
11962cat confdefs.h >>conftest.$ac_ext
11963cat >>conftest.$ac_ext <<_ACEOF
11964/* end confdefs.h.  */
11965int i;
11966_ACEOF
11967rm -f conftest.$ac_objext
11968if { (ac_try="$ac_compile"
11969case "(($ac_try" in
11970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971  *) ac_try_echo=$ac_try;;
11972esac
11973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974  (eval "$ac_compile") 2>conftest.er1
11975  ac_status=$?
11976  grep -v '^ *+' conftest.er1 >conftest.err
11977  rm -f conftest.er1
11978  cat conftest.err >&5
11979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980  (exit $ac_status); } && {
11981	 test -z "$ac_c_werror_flag" ||
11982	 test ! -s conftest.err
11983       } && test -s conftest.$ac_objext; then
11984  xorg_testset_unknown_warning_option=yes
11985else
11986  echo "$as_me: failed program was:" >&5
11987sed 's/^/| /' conftest.$ac_ext >&5
11988
11989	xorg_testset_unknown_warning_option=no
11990fi
11991
11992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11993	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11994echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11995	CFLAGS="$xorg_testset_save_CFLAGS"
11996fi
11997
11998if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11999	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12000		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12001	fi
12002	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12003	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
12004echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
12005	cat >conftest.$ac_ext <<_ACEOF
12006/* confdefs.h.  */
12007_ACEOF
12008cat confdefs.h >>conftest.$ac_ext
12009cat >>conftest.$ac_ext <<_ACEOF
12010/* end confdefs.h.  */
12011int i;
12012_ACEOF
12013rm -f conftest.$ac_objext
12014if { (ac_try="$ac_compile"
12015case "(($ac_try" in
12016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017  *) ac_try_echo=$ac_try;;
12018esac
12019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020  (eval "$ac_compile") 2>conftest.er1
12021  ac_status=$?
12022  grep -v '^ *+' conftest.er1 >conftest.err
12023  rm -f conftest.er1
12024  cat conftest.err >&5
12025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026  (exit $ac_status); } && {
12027	 test -z "$ac_c_werror_flag" ||
12028	 test ! -s conftest.err
12029       } && test -s conftest.$ac_objext; then
12030  xorg_testset_unused_command_line_argument=yes
12031else
12032  echo "$as_me: failed program was:" >&5
12033sed 's/^/| /' conftest.$ac_ext >&5
12034
12035	xorg_testset_unused_command_line_argument=no
12036fi
12037
12038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12039	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
12040echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
12041	CFLAGS="$xorg_testset_save_CFLAGS"
12042fi
12043
12044found="no"
12045
12046	if test $found = "no" ; then
12047		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12048			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12049		fi
12050
12051		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12052			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12053		fi
12054
12055		CFLAGS="$CFLAGS -Wtrigraphs"
12056
12057		{ echo "$as_me:$LINENO: checking if $CC supports -Wtrigraphs" >&5
12058echo $ECHO_N "checking if $CC supports -Wtrigraphs... $ECHO_C" >&6; }
12059		cat >conftest.$ac_ext <<_ACEOF
12060/* confdefs.h.  */
12061_ACEOF
12062cat confdefs.h >>conftest.$ac_ext
12063cat >>conftest.$ac_ext <<_ACEOF
12064/* end confdefs.h.  */
12065int i;
12066int
12067main ()
12068{
12069
12070  ;
12071  return 0;
12072}
12073_ACEOF
12074rm -f conftest.$ac_objext conftest$ac_exeext
12075if { (ac_try="$ac_link"
12076case "(($ac_try" in
12077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078  *) ac_try_echo=$ac_try;;
12079esac
12080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12081  (eval "$ac_link") 2>conftest.er1
12082  ac_status=$?
12083  grep -v '^ *+' conftest.er1 >conftest.err
12084  rm -f conftest.er1
12085  cat conftest.err >&5
12086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087  (exit $ac_status); } && {
12088	 test -z "$ac_c_werror_flag" ||
12089	 test ! -s conftest.err
12090       } && test -s conftest$ac_exeext &&
12091       $as_test_x conftest$ac_exeext; then
12092  supported=yes
12093else
12094  echo "$as_me: failed program was:" >&5
12095sed 's/^/| /' conftest.$ac_ext >&5
12096
12097	supported=no
12098fi
12099
12100rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12101      conftest$ac_exeext conftest.$ac_ext
12102		{ echo "$as_me:$LINENO: result: $supported" >&5
12103echo "${ECHO_T}$supported" >&6; }
12104		CFLAGS="$xorg_testset_save_CFLAGS"
12105
12106		if test "$supported" = "yes" ; then
12107			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
12108			found="yes"
12109		fi
12110	fi
12111
12112
12113
12114
12115
12116
12117
12118xorg_testset_save_CFLAGS="$CFLAGS"
12119
12120if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12121	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12122	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
12123echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
12124	cat >conftest.$ac_ext <<_ACEOF
12125/* confdefs.h.  */
12126_ACEOF
12127cat confdefs.h >>conftest.$ac_ext
12128cat >>conftest.$ac_ext <<_ACEOF
12129/* end confdefs.h.  */
12130int i;
12131_ACEOF
12132rm -f conftest.$ac_objext
12133if { (ac_try="$ac_compile"
12134case "(($ac_try" in
12135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12136  *) ac_try_echo=$ac_try;;
12137esac
12138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12139  (eval "$ac_compile") 2>conftest.er1
12140  ac_status=$?
12141  grep -v '^ *+' conftest.er1 >conftest.err
12142  rm -f conftest.er1
12143  cat conftest.err >&5
12144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145  (exit $ac_status); } && {
12146	 test -z "$ac_c_werror_flag" ||
12147	 test ! -s conftest.err
12148       } && test -s conftest.$ac_objext; then
12149  xorg_testset_unknown_warning_option=yes
12150else
12151  echo "$as_me: failed program was:" >&5
12152sed 's/^/| /' conftest.$ac_ext >&5
12153
12154	xorg_testset_unknown_warning_option=no
12155fi
12156
12157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12158	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
12159echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
12160	CFLAGS="$xorg_testset_save_CFLAGS"
12161fi
12162
12163if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12164	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12165		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12166	fi
12167	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12168	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
12169echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
12170	cat >conftest.$ac_ext <<_ACEOF
12171/* confdefs.h.  */
12172_ACEOF
12173cat confdefs.h >>conftest.$ac_ext
12174cat >>conftest.$ac_ext <<_ACEOF
12175/* end confdefs.h.  */
12176int i;
12177_ACEOF
12178rm -f conftest.$ac_objext
12179if { (ac_try="$ac_compile"
12180case "(($ac_try" in
12181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182  *) ac_try_echo=$ac_try;;
12183esac
12184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185  (eval "$ac_compile") 2>conftest.er1
12186  ac_status=$?
12187  grep -v '^ *+' conftest.er1 >conftest.err
12188  rm -f conftest.er1
12189  cat conftest.err >&5
12190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191  (exit $ac_status); } && {
12192	 test -z "$ac_c_werror_flag" ||
12193	 test ! -s conftest.err
12194       } && test -s conftest.$ac_objext; then
12195  xorg_testset_unused_command_line_argument=yes
12196else
12197  echo "$as_me: failed program was:" >&5
12198sed 's/^/| /' conftest.$ac_ext >&5
12199
12200	xorg_testset_unused_command_line_argument=no
12201fi
12202
12203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12204	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
12205echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
12206	CFLAGS="$xorg_testset_save_CFLAGS"
12207fi
12208
12209found="no"
12210
12211	if test $found = "no" ; then
12212		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12213			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12214		fi
12215
12216		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12217			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12218		fi
12219
12220		CFLAGS="$CFLAGS -Warray-bounds"
12221
12222		{ echo "$as_me:$LINENO: checking if $CC supports -Warray-bounds" >&5
12223echo $ECHO_N "checking if $CC supports -Warray-bounds... $ECHO_C" >&6; }
12224		cat >conftest.$ac_ext <<_ACEOF
12225/* confdefs.h.  */
12226_ACEOF
12227cat confdefs.h >>conftest.$ac_ext
12228cat >>conftest.$ac_ext <<_ACEOF
12229/* end confdefs.h.  */
12230int i;
12231int
12232main ()
12233{
12234
12235  ;
12236  return 0;
12237}
12238_ACEOF
12239rm -f conftest.$ac_objext conftest$ac_exeext
12240if { (ac_try="$ac_link"
12241case "(($ac_try" in
12242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12243  *) ac_try_echo=$ac_try;;
12244esac
12245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12246  (eval "$ac_link") 2>conftest.er1
12247  ac_status=$?
12248  grep -v '^ *+' conftest.er1 >conftest.err
12249  rm -f conftest.er1
12250  cat conftest.err >&5
12251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252  (exit $ac_status); } && {
12253	 test -z "$ac_c_werror_flag" ||
12254	 test ! -s conftest.err
12255       } && test -s conftest$ac_exeext &&
12256       $as_test_x conftest$ac_exeext; then
12257  supported=yes
12258else
12259  echo "$as_me: failed program was:" >&5
12260sed 's/^/| /' conftest.$ac_ext >&5
12261
12262	supported=no
12263fi
12264
12265rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12266      conftest$ac_exeext conftest.$ac_ext
12267		{ echo "$as_me:$LINENO: result: $supported" >&5
12268echo "${ECHO_T}$supported" >&6; }
12269		CFLAGS="$xorg_testset_save_CFLAGS"
12270
12271		if test "$supported" = "yes" ; then
12272			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
12273			found="yes"
12274		fi
12275	fi
12276
12277
12278
12279
12280
12281
12282
12283xorg_testset_save_CFLAGS="$CFLAGS"
12284
12285if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12286	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12287	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
12288echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
12289	cat >conftest.$ac_ext <<_ACEOF
12290/* confdefs.h.  */
12291_ACEOF
12292cat confdefs.h >>conftest.$ac_ext
12293cat >>conftest.$ac_ext <<_ACEOF
12294/* end confdefs.h.  */
12295int i;
12296_ACEOF
12297rm -f conftest.$ac_objext
12298if { (ac_try="$ac_compile"
12299case "(($ac_try" in
12300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301  *) ac_try_echo=$ac_try;;
12302esac
12303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304  (eval "$ac_compile") 2>conftest.er1
12305  ac_status=$?
12306  grep -v '^ *+' conftest.er1 >conftest.err
12307  rm -f conftest.er1
12308  cat conftest.err >&5
12309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310  (exit $ac_status); } && {
12311	 test -z "$ac_c_werror_flag" ||
12312	 test ! -s conftest.err
12313       } && test -s conftest.$ac_objext; then
12314  xorg_testset_unknown_warning_option=yes
12315else
12316  echo "$as_me: failed program was:" >&5
12317sed 's/^/| /' conftest.$ac_ext >&5
12318
12319	xorg_testset_unknown_warning_option=no
12320fi
12321
12322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12323	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
12324echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
12325	CFLAGS="$xorg_testset_save_CFLAGS"
12326fi
12327
12328if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12329	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12330		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12331	fi
12332	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12333	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
12334echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
12335	cat >conftest.$ac_ext <<_ACEOF
12336/* confdefs.h.  */
12337_ACEOF
12338cat confdefs.h >>conftest.$ac_ext
12339cat >>conftest.$ac_ext <<_ACEOF
12340/* end confdefs.h.  */
12341int i;
12342_ACEOF
12343rm -f conftest.$ac_objext
12344if { (ac_try="$ac_compile"
12345case "(($ac_try" in
12346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347  *) ac_try_echo=$ac_try;;
12348esac
12349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350  (eval "$ac_compile") 2>conftest.er1
12351  ac_status=$?
12352  grep -v '^ *+' conftest.er1 >conftest.err
12353  rm -f conftest.er1
12354  cat conftest.err >&5
12355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356  (exit $ac_status); } && {
12357	 test -z "$ac_c_werror_flag" ||
12358	 test ! -s conftest.err
12359       } && test -s conftest.$ac_objext; then
12360  xorg_testset_unused_command_line_argument=yes
12361else
12362  echo "$as_me: failed program was:" >&5
12363sed 's/^/| /' conftest.$ac_ext >&5
12364
12365	xorg_testset_unused_command_line_argument=no
12366fi
12367
12368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12369	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
12370echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
12371	CFLAGS="$xorg_testset_save_CFLAGS"
12372fi
12373
12374found="no"
12375
12376	if test $found = "no" ; then
12377		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12378			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12379		fi
12380
12381		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12382			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12383		fi
12384
12385		CFLAGS="$CFLAGS -Wwrite-strings"
12386
12387		{ echo "$as_me:$LINENO: checking if $CC supports -Wwrite-strings" >&5
12388echo $ECHO_N "checking if $CC supports -Wwrite-strings... $ECHO_C" >&6; }
12389		cat >conftest.$ac_ext <<_ACEOF
12390/* confdefs.h.  */
12391_ACEOF
12392cat confdefs.h >>conftest.$ac_ext
12393cat >>conftest.$ac_ext <<_ACEOF
12394/* end confdefs.h.  */
12395int i;
12396int
12397main ()
12398{
12399
12400  ;
12401  return 0;
12402}
12403_ACEOF
12404rm -f conftest.$ac_objext conftest$ac_exeext
12405if { (ac_try="$ac_link"
12406case "(($ac_try" in
12407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408  *) ac_try_echo=$ac_try;;
12409esac
12410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411  (eval "$ac_link") 2>conftest.er1
12412  ac_status=$?
12413  grep -v '^ *+' conftest.er1 >conftest.err
12414  rm -f conftest.er1
12415  cat conftest.err >&5
12416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417  (exit $ac_status); } && {
12418	 test -z "$ac_c_werror_flag" ||
12419	 test ! -s conftest.err
12420       } && test -s conftest$ac_exeext &&
12421       $as_test_x conftest$ac_exeext; then
12422  supported=yes
12423else
12424  echo "$as_me: failed program was:" >&5
12425sed 's/^/| /' conftest.$ac_ext >&5
12426
12427	supported=no
12428fi
12429
12430rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12431      conftest$ac_exeext conftest.$ac_ext
12432		{ echo "$as_me:$LINENO: result: $supported" >&5
12433echo "${ECHO_T}$supported" >&6; }
12434		CFLAGS="$xorg_testset_save_CFLAGS"
12435
12436		if test "$supported" = "yes" ; then
12437			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
12438			found="yes"
12439		fi
12440	fi
12441
12442
12443
12444
12445
12446
12447
12448xorg_testset_save_CFLAGS="$CFLAGS"
12449
12450if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12451	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12452	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
12453echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
12454	cat >conftest.$ac_ext <<_ACEOF
12455/* confdefs.h.  */
12456_ACEOF
12457cat confdefs.h >>conftest.$ac_ext
12458cat >>conftest.$ac_ext <<_ACEOF
12459/* end confdefs.h.  */
12460int i;
12461_ACEOF
12462rm -f conftest.$ac_objext
12463if { (ac_try="$ac_compile"
12464case "(($ac_try" in
12465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466  *) ac_try_echo=$ac_try;;
12467esac
12468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469  (eval "$ac_compile") 2>conftest.er1
12470  ac_status=$?
12471  grep -v '^ *+' conftest.er1 >conftest.err
12472  rm -f conftest.er1
12473  cat conftest.err >&5
12474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475  (exit $ac_status); } && {
12476	 test -z "$ac_c_werror_flag" ||
12477	 test ! -s conftest.err
12478       } && test -s conftest.$ac_objext; then
12479  xorg_testset_unknown_warning_option=yes
12480else
12481  echo "$as_me: failed program was:" >&5
12482sed 's/^/| /' conftest.$ac_ext >&5
12483
12484	xorg_testset_unknown_warning_option=no
12485fi
12486
12487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12488	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
12489echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
12490	CFLAGS="$xorg_testset_save_CFLAGS"
12491fi
12492
12493if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12494	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12495		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12496	fi
12497	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12498	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
12499echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
12500	cat >conftest.$ac_ext <<_ACEOF
12501/* confdefs.h.  */
12502_ACEOF
12503cat confdefs.h >>conftest.$ac_ext
12504cat >>conftest.$ac_ext <<_ACEOF
12505/* end confdefs.h.  */
12506int i;
12507_ACEOF
12508rm -f conftest.$ac_objext
12509if { (ac_try="$ac_compile"
12510case "(($ac_try" in
12511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12512  *) ac_try_echo=$ac_try;;
12513esac
12514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12515  (eval "$ac_compile") 2>conftest.er1
12516  ac_status=$?
12517  grep -v '^ *+' conftest.er1 >conftest.err
12518  rm -f conftest.er1
12519  cat conftest.err >&5
12520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521  (exit $ac_status); } && {
12522	 test -z "$ac_c_werror_flag" ||
12523	 test ! -s conftest.err
12524       } && test -s conftest.$ac_objext; then
12525  xorg_testset_unused_command_line_argument=yes
12526else
12527  echo "$as_me: failed program was:" >&5
12528sed 's/^/| /' conftest.$ac_ext >&5
12529
12530	xorg_testset_unused_command_line_argument=no
12531fi
12532
12533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12534	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
12535echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
12536	CFLAGS="$xorg_testset_save_CFLAGS"
12537fi
12538
12539found="no"
12540
12541	if test $found = "no" ; then
12542		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12543			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12544		fi
12545
12546		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12547			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12548		fi
12549
12550		CFLAGS="$CFLAGS -Waddress"
12551
12552		{ echo "$as_me:$LINENO: checking if $CC supports -Waddress" >&5
12553echo $ECHO_N "checking if $CC supports -Waddress... $ECHO_C" >&6; }
12554		cat >conftest.$ac_ext <<_ACEOF
12555/* confdefs.h.  */
12556_ACEOF
12557cat confdefs.h >>conftest.$ac_ext
12558cat >>conftest.$ac_ext <<_ACEOF
12559/* end confdefs.h.  */
12560int i;
12561int
12562main ()
12563{
12564
12565  ;
12566  return 0;
12567}
12568_ACEOF
12569rm -f conftest.$ac_objext conftest$ac_exeext
12570if { (ac_try="$ac_link"
12571case "(($ac_try" in
12572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573  *) ac_try_echo=$ac_try;;
12574esac
12575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576  (eval "$ac_link") 2>conftest.er1
12577  ac_status=$?
12578  grep -v '^ *+' conftest.er1 >conftest.err
12579  rm -f conftest.er1
12580  cat conftest.err >&5
12581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582  (exit $ac_status); } && {
12583	 test -z "$ac_c_werror_flag" ||
12584	 test ! -s conftest.err
12585       } && test -s conftest$ac_exeext &&
12586       $as_test_x conftest$ac_exeext; then
12587  supported=yes
12588else
12589  echo "$as_me: failed program was:" >&5
12590sed 's/^/| /' conftest.$ac_ext >&5
12591
12592	supported=no
12593fi
12594
12595rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12596      conftest$ac_exeext conftest.$ac_ext
12597		{ echo "$as_me:$LINENO: result: $supported" >&5
12598echo "${ECHO_T}$supported" >&6; }
12599		CFLAGS="$xorg_testset_save_CFLAGS"
12600
12601		if test "$supported" = "yes" ; then
12602			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
12603			found="yes"
12604		fi
12605	fi
12606
12607
12608
12609
12610
12611
12612
12613xorg_testset_save_CFLAGS="$CFLAGS"
12614
12615if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12616	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12617	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
12618echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
12619	cat >conftest.$ac_ext <<_ACEOF
12620/* confdefs.h.  */
12621_ACEOF
12622cat confdefs.h >>conftest.$ac_ext
12623cat >>conftest.$ac_ext <<_ACEOF
12624/* end confdefs.h.  */
12625int i;
12626_ACEOF
12627rm -f conftest.$ac_objext
12628if { (ac_try="$ac_compile"
12629case "(($ac_try" in
12630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631  *) ac_try_echo=$ac_try;;
12632esac
12633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634  (eval "$ac_compile") 2>conftest.er1
12635  ac_status=$?
12636  grep -v '^ *+' conftest.er1 >conftest.err
12637  rm -f conftest.er1
12638  cat conftest.err >&5
12639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640  (exit $ac_status); } && {
12641	 test -z "$ac_c_werror_flag" ||
12642	 test ! -s conftest.err
12643       } && test -s conftest.$ac_objext; then
12644  xorg_testset_unknown_warning_option=yes
12645else
12646  echo "$as_me: failed program was:" >&5
12647sed 's/^/| /' conftest.$ac_ext >&5
12648
12649	xorg_testset_unknown_warning_option=no
12650fi
12651
12652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12653	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
12654echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
12655	CFLAGS="$xorg_testset_save_CFLAGS"
12656fi
12657
12658if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12659	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12660		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12661	fi
12662	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12663	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
12664echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
12665	cat >conftest.$ac_ext <<_ACEOF
12666/* confdefs.h.  */
12667_ACEOF
12668cat confdefs.h >>conftest.$ac_ext
12669cat >>conftest.$ac_ext <<_ACEOF
12670/* end confdefs.h.  */
12671int i;
12672_ACEOF
12673rm -f conftest.$ac_objext
12674if { (ac_try="$ac_compile"
12675case "(($ac_try" in
12676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677  *) ac_try_echo=$ac_try;;
12678esac
12679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680  (eval "$ac_compile") 2>conftest.er1
12681  ac_status=$?
12682  grep -v '^ *+' conftest.er1 >conftest.err
12683  rm -f conftest.er1
12684  cat conftest.err >&5
12685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686  (exit $ac_status); } && {
12687	 test -z "$ac_c_werror_flag" ||
12688	 test ! -s conftest.err
12689       } && test -s conftest.$ac_objext; then
12690  xorg_testset_unused_command_line_argument=yes
12691else
12692  echo "$as_me: failed program was:" >&5
12693sed 's/^/| /' conftest.$ac_ext >&5
12694
12695	xorg_testset_unused_command_line_argument=no
12696fi
12697
12698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12699	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
12700echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
12701	CFLAGS="$xorg_testset_save_CFLAGS"
12702fi
12703
12704found="no"
12705
12706	if test $found = "no" ; then
12707		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12708			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12709		fi
12710
12711		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12712			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12713		fi
12714
12715		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
12716
12717		{ echo "$as_me:$LINENO: checking if $CC supports -Wint-to-pointer-cast" >&5
12718echo $ECHO_N "checking if $CC supports -Wint-to-pointer-cast... $ECHO_C" >&6; }
12719		cat >conftest.$ac_ext <<_ACEOF
12720/* confdefs.h.  */
12721_ACEOF
12722cat confdefs.h >>conftest.$ac_ext
12723cat >>conftest.$ac_ext <<_ACEOF
12724/* end confdefs.h.  */
12725int i;
12726int
12727main ()
12728{
12729
12730  ;
12731  return 0;
12732}
12733_ACEOF
12734rm -f conftest.$ac_objext conftest$ac_exeext
12735if { (ac_try="$ac_link"
12736case "(($ac_try" in
12737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738  *) ac_try_echo=$ac_try;;
12739esac
12740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741  (eval "$ac_link") 2>conftest.er1
12742  ac_status=$?
12743  grep -v '^ *+' conftest.er1 >conftest.err
12744  rm -f conftest.er1
12745  cat conftest.err >&5
12746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747  (exit $ac_status); } && {
12748	 test -z "$ac_c_werror_flag" ||
12749	 test ! -s conftest.err
12750       } && test -s conftest$ac_exeext &&
12751       $as_test_x conftest$ac_exeext; then
12752  supported=yes
12753else
12754  echo "$as_me: failed program was:" >&5
12755sed 's/^/| /' conftest.$ac_ext >&5
12756
12757	supported=no
12758fi
12759
12760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12761      conftest$ac_exeext conftest.$ac_ext
12762		{ echo "$as_me:$LINENO: result: $supported" >&5
12763echo "${ECHO_T}$supported" >&6; }
12764		CFLAGS="$xorg_testset_save_CFLAGS"
12765
12766		if test "$supported" = "yes" ; then
12767			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
12768			found="yes"
12769		fi
12770	fi
12771
12772
12773
12774
12775
12776
12777
12778xorg_testset_save_CFLAGS="$CFLAGS"
12779
12780if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12781	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12782	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
12783echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
12784	cat >conftest.$ac_ext <<_ACEOF
12785/* confdefs.h.  */
12786_ACEOF
12787cat confdefs.h >>conftest.$ac_ext
12788cat >>conftest.$ac_ext <<_ACEOF
12789/* end confdefs.h.  */
12790int i;
12791_ACEOF
12792rm -f conftest.$ac_objext
12793if { (ac_try="$ac_compile"
12794case "(($ac_try" in
12795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796  *) ac_try_echo=$ac_try;;
12797esac
12798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799  (eval "$ac_compile") 2>conftest.er1
12800  ac_status=$?
12801  grep -v '^ *+' conftest.er1 >conftest.err
12802  rm -f conftest.er1
12803  cat conftest.err >&5
12804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805  (exit $ac_status); } && {
12806	 test -z "$ac_c_werror_flag" ||
12807	 test ! -s conftest.err
12808       } && test -s conftest.$ac_objext; then
12809  xorg_testset_unknown_warning_option=yes
12810else
12811  echo "$as_me: failed program was:" >&5
12812sed 's/^/| /' conftest.$ac_ext >&5
12813
12814	xorg_testset_unknown_warning_option=no
12815fi
12816
12817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12818	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
12819echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
12820	CFLAGS="$xorg_testset_save_CFLAGS"
12821fi
12822
12823if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12824	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12825		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12826	fi
12827	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12828	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
12829echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
12830	cat >conftest.$ac_ext <<_ACEOF
12831/* confdefs.h.  */
12832_ACEOF
12833cat confdefs.h >>conftest.$ac_ext
12834cat >>conftest.$ac_ext <<_ACEOF
12835/* end confdefs.h.  */
12836int i;
12837_ACEOF
12838rm -f conftest.$ac_objext
12839if { (ac_try="$ac_compile"
12840case "(($ac_try" in
12841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12842  *) ac_try_echo=$ac_try;;
12843esac
12844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845  (eval "$ac_compile") 2>conftest.er1
12846  ac_status=$?
12847  grep -v '^ *+' conftest.er1 >conftest.err
12848  rm -f conftest.er1
12849  cat conftest.err >&5
12850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851  (exit $ac_status); } && {
12852	 test -z "$ac_c_werror_flag" ||
12853	 test ! -s conftest.err
12854       } && test -s conftest.$ac_objext; then
12855  xorg_testset_unused_command_line_argument=yes
12856else
12857  echo "$as_me: failed program was:" >&5
12858sed 's/^/| /' conftest.$ac_ext >&5
12859
12860	xorg_testset_unused_command_line_argument=no
12861fi
12862
12863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12864	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
12865echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
12866	CFLAGS="$xorg_testset_save_CFLAGS"
12867fi
12868
12869found="no"
12870
12871	if test $found = "no" ; then
12872		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12873			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12874		fi
12875
12876		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12877			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12878		fi
12879
12880		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
12881
12882		{ echo "$as_me:$LINENO: checking if $CC supports -Wpointer-to-int-cast" >&5
12883echo $ECHO_N "checking if $CC supports -Wpointer-to-int-cast... $ECHO_C" >&6; }
12884		cat >conftest.$ac_ext <<_ACEOF
12885/* confdefs.h.  */
12886_ACEOF
12887cat confdefs.h >>conftest.$ac_ext
12888cat >>conftest.$ac_ext <<_ACEOF
12889/* end confdefs.h.  */
12890int i;
12891int
12892main ()
12893{
12894
12895  ;
12896  return 0;
12897}
12898_ACEOF
12899rm -f conftest.$ac_objext conftest$ac_exeext
12900if { (ac_try="$ac_link"
12901case "(($ac_try" in
12902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903  *) ac_try_echo=$ac_try;;
12904esac
12905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906  (eval "$ac_link") 2>conftest.er1
12907  ac_status=$?
12908  grep -v '^ *+' conftest.er1 >conftest.err
12909  rm -f conftest.er1
12910  cat conftest.err >&5
12911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912  (exit $ac_status); } && {
12913	 test -z "$ac_c_werror_flag" ||
12914	 test ! -s conftest.err
12915       } && test -s conftest$ac_exeext &&
12916       $as_test_x conftest$ac_exeext; then
12917  supported=yes
12918else
12919  echo "$as_me: failed program was:" >&5
12920sed 's/^/| /' conftest.$ac_ext >&5
12921
12922	supported=no
12923fi
12924
12925rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12926      conftest$ac_exeext conftest.$ac_ext
12927		{ echo "$as_me:$LINENO: result: $supported" >&5
12928echo "${ECHO_T}$supported" >&6; }
12929		CFLAGS="$xorg_testset_save_CFLAGS"
12930
12931		if test "$supported" = "yes" ; then
12932			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
12933			found="yes"
12934		fi
12935	fi
12936
12937
12938fi
12939
12940
12941
12942
12943
12944
12945CWARNFLAGS="$BASE_CFLAGS"
12946if  test "x$GCC" = xyes ; then
12947    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
12948fi
12949
12950
12951
12952
12953
12954
12955# Check whether --enable-strict-compilation was given.
12956if test "${enable_strict_compilation+set}" = set; then
12957  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
12958else
12959  STRICT_COMPILE=no
12960fi
12961
12962
12963STRICT_CFLAGS=""
12964
12965
12966
12967
12968
12969xorg_testset_save_CFLAGS="$CFLAGS"
12970
12971if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12972	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12973	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
12974echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
12975	cat >conftest.$ac_ext <<_ACEOF
12976/* confdefs.h.  */
12977_ACEOF
12978cat confdefs.h >>conftest.$ac_ext
12979cat >>conftest.$ac_ext <<_ACEOF
12980/* end confdefs.h.  */
12981int i;
12982_ACEOF
12983rm -f conftest.$ac_objext
12984if { (ac_try="$ac_compile"
12985case "(($ac_try" in
12986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987  *) ac_try_echo=$ac_try;;
12988esac
12989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990  (eval "$ac_compile") 2>conftest.er1
12991  ac_status=$?
12992  grep -v '^ *+' conftest.er1 >conftest.err
12993  rm -f conftest.er1
12994  cat conftest.err >&5
12995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996  (exit $ac_status); } && {
12997	 test -z "$ac_c_werror_flag" ||
12998	 test ! -s conftest.err
12999       } && test -s conftest.$ac_objext; then
13000  xorg_testset_unknown_warning_option=yes
13001else
13002  echo "$as_me: failed program was:" >&5
13003sed 's/^/| /' conftest.$ac_ext >&5
13004
13005	xorg_testset_unknown_warning_option=no
13006fi
13007
13008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13009	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
13010echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
13011	CFLAGS="$xorg_testset_save_CFLAGS"
13012fi
13013
13014if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13015	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13016		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13017	fi
13018	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13019	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
13020echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
13021	cat >conftest.$ac_ext <<_ACEOF
13022/* confdefs.h.  */
13023_ACEOF
13024cat confdefs.h >>conftest.$ac_ext
13025cat >>conftest.$ac_ext <<_ACEOF
13026/* end confdefs.h.  */
13027int i;
13028_ACEOF
13029rm -f conftest.$ac_objext
13030if { (ac_try="$ac_compile"
13031case "(($ac_try" in
13032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13033  *) ac_try_echo=$ac_try;;
13034esac
13035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13036  (eval "$ac_compile") 2>conftest.er1
13037  ac_status=$?
13038  grep -v '^ *+' conftest.er1 >conftest.err
13039  rm -f conftest.er1
13040  cat conftest.err >&5
13041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042  (exit $ac_status); } && {
13043	 test -z "$ac_c_werror_flag" ||
13044	 test ! -s conftest.err
13045       } && test -s conftest.$ac_objext; then
13046  xorg_testset_unused_command_line_argument=yes
13047else
13048  echo "$as_me: failed program was:" >&5
13049sed 's/^/| /' conftest.$ac_ext >&5
13050
13051	xorg_testset_unused_command_line_argument=no
13052fi
13053
13054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13055	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
13056echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
13057	CFLAGS="$xorg_testset_save_CFLAGS"
13058fi
13059
13060found="no"
13061
13062	if test $found = "no" ; then
13063		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13064			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13065		fi
13066
13067		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13068			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13069		fi
13070
13071		CFLAGS="$CFLAGS -pedantic"
13072
13073		{ echo "$as_me:$LINENO: checking if $CC supports -pedantic" >&5
13074echo $ECHO_N "checking if $CC supports -pedantic... $ECHO_C" >&6; }
13075		cat >conftest.$ac_ext <<_ACEOF
13076/* confdefs.h.  */
13077_ACEOF
13078cat confdefs.h >>conftest.$ac_ext
13079cat >>conftest.$ac_ext <<_ACEOF
13080/* end confdefs.h.  */
13081int i;
13082int
13083main ()
13084{
13085
13086  ;
13087  return 0;
13088}
13089_ACEOF
13090rm -f conftest.$ac_objext conftest$ac_exeext
13091if { (ac_try="$ac_link"
13092case "(($ac_try" in
13093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094  *) ac_try_echo=$ac_try;;
13095esac
13096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13097  (eval "$ac_link") 2>conftest.er1
13098  ac_status=$?
13099  grep -v '^ *+' conftest.er1 >conftest.err
13100  rm -f conftest.er1
13101  cat conftest.err >&5
13102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103  (exit $ac_status); } && {
13104	 test -z "$ac_c_werror_flag" ||
13105	 test ! -s conftest.err
13106       } && test -s conftest$ac_exeext &&
13107       $as_test_x conftest$ac_exeext; then
13108  supported=yes
13109else
13110  echo "$as_me: failed program was:" >&5
13111sed 's/^/| /' conftest.$ac_ext >&5
13112
13113	supported=no
13114fi
13115
13116rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13117      conftest$ac_exeext conftest.$ac_ext
13118		{ echo "$as_me:$LINENO: result: $supported" >&5
13119echo "${ECHO_T}$supported" >&6; }
13120		CFLAGS="$xorg_testset_save_CFLAGS"
13121
13122		if test "$supported" = "yes" ; then
13123			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
13124			found="yes"
13125		fi
13126	fi
13127
13128
13129
13130
13131
13132
13133
13134xorg_testset_save_CFLAGS="$CFLAGS"
13135
13136if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13137	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13138	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
13139echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
13140	cat >conftest.$ac_ext <<_ACEOF
13141/* confdefs.h.  */
13142_ACEOF
13143cat confdefs.h >>conftest.$ac_ext
13144cat >>conftest.$ac_ext <<_ACEOF
13145/* end confdefs.h.  */
13146int i;
13147_ACEOF
13148rm -f conftest.$ac_objext
13149if { (ac_try="$ac_compile"
13150case "(($ac_try" in
13151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13152  *) ac_try_echo=$ac_try;;
13153esac
13154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13155  (eval "$ac_compile") 2>conftest.er1
13156  ac_status=$?
13157  grep -v '^ *+' conftest.er1 >conftest.err
13158  rm -f conftest.er1
13159  cat conftest.err >&5
13160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161  (exit $ac_status); } && {
13162	 test -z "$ac_c_werror_flag" ||
13163	 test ! -s conftest.err
13164       } && test -s conftest.$ac_objext; then
13165  xorg_testset_unknown_warning_option=yes
13166else
13167  echo "$as_me: failed program was:" >&5
13168sed 's/^/| /' conftest.$ac_ext >&5
13169
13170	xorg_testset_unknown_warning_option=no
13171fi
13172
13173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13174	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
13175echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
13176	CFLAGS="$xorg_testset_save_CFLAGS"
13177fi
13178
13179if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13180	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13181		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13182	fi
13183	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13184	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
13185echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
13186	cat >conftest.$ac_ext <<_ACEOF
13187/* confdefs.h.  */
13188_ACEOF
13189cat confdefs.h >>conftest.$ac_ext
13190cat >>conftest.$ac_ext <<_ACEOF
13191/* end confdefs.h.  */
13192int i;
13193_ACEOF
13194rm -f conftest.$ac_objext
13195if { (ac_try="$ac_compile"
13196case "(($ac_try" in
13197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13198  *) ac_try_echo=$ac_try;;
13199esac
13200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13201  (eval "$ac_compile") 2>conftest.er1
13202  ac_status=$?
13203  grep -v '^ *+' conftest.er1 >conftest.err
13204  rm -f conftest.er1
13205  cat conftest.err >&5
13206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207  (exit $ac_status); } && {
13208	 test -z "$ac_c_werror_flag" ||
13209	 test ! -s conftest.err
13210       } && test -s conftest.$ac_objext; then
13211  xorg_testset_unused_command_line_argument=yes
13212else
13213  echo "$as_me: failed program was:" >&5
13214sed 's/^/| /' conftest.$ac_ext >&5
13215
13216	xorg_testset_unused_command_line_argument=no
13217fi
13218
13219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13220	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
13221echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
13222	CFLAGS="$xorg_testset_save_CFLAGS"
13223fi
13224
13225found="no"
13226
13227	if test $found = "no" ; then
13228		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13229			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13230		fi
13231
13232		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13233			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13234		fi
13235
13236		CFLAGS="$CFLAGS -Werror"
13237
13238		{ echo "$as_me:$LINENO: checking if $CC supports -Werror" >&5
13239echo $ECHO_N "checking if $CC supports -Werror... $ECHO_C" >&6; }
13240		cat >conftest.$ac_ext <<_ACEOF
13241/* confdefs.h.  */
13242_ACEOF
13243cat confdefs.h >>conftest.$ac_ext
13244cat >>conftest.$ac_ext <<_ACEOF
13245/* end confdefs.h.  */
13246int i;
13247int
13248main ()
13249{
13250
13251  ;
13252  return 0;
13253}
13254_ACEOF
13255rm -f conftest.$ac_objext conftest$ac_exeext
13256if { (ac_try="$ac_link"
13257case "(($ac_try" in
13258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259  *) ac_try_echo=$ac_try;;
13260esac
13261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262  (eval "$ac_link") 2>conftest.er1
13263  ac_status=$?
13264  grep -v '^ *+' conftest.er1 >conftest.err
13265  rm -f conftest.er1
13266  cat conftest.err >&5
13267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268  (exit $ac_status); } && {
13269	 test -z "$ac_c_werror_flag" ||
13270	 test ! -s conftest.err
13271       } && test -s conftest$ac_exeext &&
13272       $as_test_x conftest$ac_exeext; then
13273  supported=yes
13274else
13275  echo "$as_me: failed program was:" >&5
13276sed 's/^/| /' conftest.$ac_ext >&5
13277
13278	supported=no
13279fi
13280
13281rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13282      conftest$ac_exeext conftest.$ac_ext
13283		{ echo "$as_me:$LINENO: result: $supported" >&5
13284echo "${ECHO_T}$supported" >&6; }
13285		CFLAGS="$xorg_testset_save_CFLAGS"
13286
13287		if test "$supported" = "yes" ; then
13288			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
13289			found="yes"
13290		fi
13291	fi
13292
13293	if test $found = "no" ; then
13294		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13295			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13296		fi
13297
13298		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13299			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13300		fi
13301
13302		CFLAGS="$CFLAGS -errwarn"
13303
13304		{ echo "$as_me:$LINENO: checking if $CC supports -errwarn" >&5
13305echo $ECHO_N "checking if $CC supports -errwarn... $ECHO_C" >&6; }
13306		cat >conftest.$ac_ext <<_ACEOF
13307/* confdefs.h.  */
13308_ACEOF
13309cat confdefs.h >>conftest.$ac_ext
13310cat >>conftest.$ac_ext <<_ACEOF
13311/* end confdefs.h.  */
13312int i;
13313int
13314main ()
13315{
13316
13317  ;
13318  return 0;
13319}
13320_ACEOF
13321rm -f conftest.$ac_objext conftest$ac_exeext
13322if { (ac_try="$ac_link"
13323case "(($ac_try" in
13324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13325  *) ac_try_echo=$ac_try;;
13326esac
13327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13328  (eval "$ac_link") 2>conftest.er1
13329  ac_status=$?
13330  grep -v '^ *+' conftest.er1 >conftest.err
13331  rm -f conftest.er1
13332  cat conftest.err >&5
13333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334  (exit $ac_status); } && {
13335	 test -z "$ac_c_werror_flag" ||
13336	 test ! -s conftest.err
13337       } && test -s conftest$ac_exeext &&
13338       $as_test_x conftest$ac_exeext; then
13339  supported=yes
13340else
13341  echo "$as_me: failed program was:" >&5
13342sed 's/^/| /' conftest.$ac_ext >&5
13343
13344	supported=no
13345fi
13346
13347rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13348      conftest$ac_exeext conftest.$ac_ext
13349		{ echo "$as_me:$LINENO: result: $supported" >&5
13350echo "${ECHO_T}$supported" >&6; }
13351		CFLAGS="$xorg_testset_save_CFLAGS"
13352
13353		if test "$supported" = "yes" ; then
13354			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
13355			found="yes"
13356		fi
13357	fi
13358
13359
13360
13361# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
13362# activate it with -Werror, so we add it here explicitly.
13363
13364
13365
13366
13367
13368xorg_testset_save_CFLAGS="$CFLAGS"
13369
13370if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13371	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13372	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
13373echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
13374	cat >conftest.$ac_ext <<_ACEOF
13375/* confdefs.h.  */
13376_ACEOF
13377cat confdefs.h >>conftest.$ac_ext
13378cat >>conftest.$ac_ext <<_ACEOF
13379/* end confdefs.h.  */
13380int i;
13381_ACEOF
13382rm -f conftest.$ac_objext
13383if { (ac_try="$ac_compile"
13384case "(($ac_try" in
13385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13386  *) ac_try_echo=$ac_try;;
13387esac
13388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13389  (eval "$ac_compile") 2>conftest.er1
13390  ac_status=$?
13391  grep -v '^ *+' conftest.er1 >conftest.err
13392  rm -f conftest.er1
13393  cat conftest.err >&5
13394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395  (exit $ac_status); } && {
13396	 test -z "$ac_c_werror_flag" ||
13397	 test ! -s conftest.err
13398       } && test -s conftest.$ac_objext; then
13399  xorg_testset_unknown_warning_option=yes
13400else
13401  echo "$as_me: failed program was:" >&5
13402sed 's/^/| /' conftest.$ac_ext >&5
13403
13404	xorg_testset_unknown_warning_option=no
13405fi
13406
13407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13408	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
13409echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
13410	CFLAGS="$xorg_testset_save_CFLAGS"
13411fi
13412
13413if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13414	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13415		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13416	fi
13417	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13418	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
13419echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
13420	cat >conftest.$ac_ext <<_ACEOF
13421/* confdefs.h.  */
13422_ACEOF
13423cat confdefs.h >>conftest.$ac_ext
13424cat >>conftest.$ac_ext <<_ACEOF
13425/* end confdefs.h.  */
13426int i;
13427_ACEOF
13428rm -f conftest.$ac_objext
13429if { (ac_try="$ac_compile"
13430case "(($ac_try" in
13431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13432  *) ac_try_echo=$ac_try;;
13433esac
13434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13435  (eval "$ac_compile") 2>conftest.er1
13436  ac_status=$?
13437  grep -v '^ *+' conftest.er1 >conftest.err
13438  rm -f conftest.er1
13439  cat conftest.err >&5
13440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441  (exit $ac_status); } && {
13442	 test -z "$ac_c_werror_flag" ||
13443	 test ! -s conftest.err
13444       } && test -s conftest.$ac_objext; then
13445  xorg_testset_unused_command_line_argument=yes
13446else
13447  echo "$as_me: failed program was:" >&5
13448sed 's/^/| /' conftest.$ac_ext >&5
13449
13450	xorg_testset_unused_command_line_argument=no
13451fi
13452
13453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13454	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
13455echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
13456	CFLAGS="$xorg_testset_save_CFLAGS"
13457fi
13458
13459found="no"
13460
13461	if test $found = "no" ; then
13462		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13463			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13464		fi
13465
13466		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13467			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13468		fi
13469
13470		CFLAGS="$CFLAGS -Werror=attributes"
13471
13472		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=attributes" >&5
13473echo $ECHO_N "checking if $CC supports -Werror=attributes... $ECHO_C" >&6; }
13474		cat >conftest.$ac_ext <<_ACEOF
13475/* confdefs.h.  */
13476_ACEOF
13477cat confdefs.h >>conftest.$ac_ext
13478cat >>conftest.$ac_ext <<_ACEOF
13479/* end confdefs.h.  */
13480int i;
13481int
13482main ()
13483{
13484
13485  ;
13486  return 0;
13487}
13488_ACEOF
13489rm -f conftest.$ac_objext conftest$ac_exeext
13490if { (ac_try="$ac_link"
13491case "(($ac_try" in
13492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493  *) ac_try_echo=$ac_try;;
13494esac
13495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496  (eval "$ac_link") 2>conftest.er1
13497  ac_status=$?
13498  grep -v '^ *+' conftest.er1 >conftest.err
13499  rm -f conftest.er1
13500  cat conftest.err >&5
13501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502  (exit $ac_status); } && {
13503	 test -z "$ac_c_werror_flag" ||
13504	 test ! -s conftest.err
13505       } && test -s conftest$ac_exeext &&
13506       $as_test_x conftest$ac_exeext; then
13507  supported=yes
13508else
13509  echo "$as_me: failed program was:" >&5
13510sed 's/^/| /' conftest.$ac_ext >&5
13511
13512	supported=no
13513fi
13514
13515rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13516      conftest$ac_exeext conftest.$ac_ext
13517		{ echo "$as_me:$LINENO: result: $supported" >&5
13518echo "${ECHO_T}$supported" >&6; }
13519		CFLAGS="$xorg_testset_save_CFLAGS"
13520
13521		if test "$supported" = "yes" ; then
13522			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
13523			found="yes"
13524		fi
13525	fi
13526
13527
13528
13529if test "x$STRICT_COMPILE" = "xyes"; then
13530    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
13531    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
13532fi
13533
13534
13535
13536
13537
13538
13539cat >>confdefs.h <<_ACEOF
13540#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
13541_ACEOF
13542
13543	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
13544	if test "x$PVM" = "x"; then
13545		PVM="0"
13546	fi
13547
13548cat >>confdefs.h <<_ACEOF
13549#define PACKAGE_VERSION_MINOR $PVM
13550_ACEOF
13551
13552	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
13553	if test "x$PVP" = "x"; then
13554		PVP="0"
13555	fi
13556
13557cat >>confdefs.h <<_ACEOF
13558#define PACKAGE_VERSION_PATCHLEVEL $PVP
13559_ACEOF
13560
13561
13562
13563CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
13564mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
13565|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
13566echo 'git directory not found: installing possibly empty changelog.' >&2)"
13567
13568
13569
13570
13571macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
13572INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
13573mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
13574|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
13575echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
13576
13577
13578
13579
13580
13581
13582if test x$APP_MAN_SUFFIX = x    ; then
13583    APP_MAN_SUFFIX=1
13584fi
13585if test x$APP_MAN_DIR = x    ; then
13586    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
13587fi
13588
13589if test x$LIB_MAN_SUFFIX = x    ; then
13590    LIB_MAN_SUFFIX=3
13591fi
13592if test x$LIB_MAN_DIR = x    ; then
13593    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
13594fi
13595
13596if test x$FILE_MAN_SUFFIX = x    ; then
13597    case $host_os in
13598	solaris*)	FILE_MAN_SUFFIX=4  ;;
13599	*)		FILE_MAN_SUFFIX=5  ;;
13600    esac
13601fi
13602if test x$FILE_MAN_DIR = x    ; then
13603    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
13604fi
13605
13606if test x$MISC_MAN_SUFFIX = x    ; then
13607    case $host_os in
13608	solaris*)	MISC_MAN_SUFFIX=5  ;;
13609	*)		MISC_MAN_SUFFIX=7  ;;
13610    esac
13611fi
13612if test x$MISC_MAN_DIR = x    ; then
13613    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
13614fi
13615
13616if test x$DRIVER_MAN_SUFFIX = x    ; then
13617    case $host_os in
13618	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
13619	*)		DRIVER_MAN_SUFFIX=4  ;;
13620    esac
13621fi
13622if test x$DRIVER_MAN_DIR = x    ; then
13623    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
13624fi
13625
13626if test x$ADMIN_MAN_SUFFIX = x    ; then
13627    case $host_os in
13628	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
13629	*)		ADMIN_MAN_SUFFIX=8  ;;
13630    esac
13631fi
13632if test x$ADMIN_MAN_DIR = x    ; then
13633    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
13634fi
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650XORG_MAN_PAGE="X Version 11"
13651
13652MAN_SUBSTS="\
13653	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
13654	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
13655	-e 's|__xservername__|Xorg|g' \
13656	-e 's|__xconfigfile__|xorg.conf|g' \
13657	-e 's|__projectroot__|\$(prefix)|g' \
13658	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
13659	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
13660	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
13661	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
13662	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
13663	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
13664	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
13665
13666
13667
13668AM_DEFAULT_VERBOSITY=1
13669
13670
13671
13672
13673
13674
13675# Check whether --with-doxygen was given.
13676if test "${with_doxygen+set}" = set; then
13677  withval=$with_doxygen; use_doxygen=$withval
13678else
13679  use_doxygen=auto
13680fi
13681
13682
13683
13684if test "x$use_doxygen" = x"auto"; then
13685   # Extract the first word of "doxygen", so it can be a program name with args.
13686set dummy doxygen; ac_word=$2
13687{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13689if test "${ac_cv_path_DOXYGEN+set}" = set; then
13690  echo $ECHO_N "(cached) $ECHO_C" >&6
13691else
13692  case $DOXYGEN in
13693  [\\/]* | ?:[\\/]*)
13694  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
13695  ;;
13696  *)
13697  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13698for as_dir in $PATH
13699do
13700  IFS=$as_save_IFS
13701  test -z "$as_dir" && as_dir=.
13702  for ac_exec_ext in '' $ac_executable_extensions; do
13703  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13704    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
13705    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13706    break 2
13707  fi
13708done
13709done
13710IFS=$as_save_IFS
13711
13712  ;;
13713esac
13714fi
13715DOXYGEN=$ac_cv_path_DOXYGEN
13716if test -n "$DOXYGEN"; then
13717  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
13718echo "${ECHO_T}$DOXYGEN" >&6; }
13719else
13720  { echo "$as_me:$LINENO: result: no" >&5
13721echo "${ECHO_T}no" >&6; }
13722fi
13723
13724
13725   if test "x$DOXYGEN" = "x"; then
13726        { echo "$as_me:$LINENO: WARNING: doxygen not found - documentation targets will be skipped" >&5
13727echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;}
13728	have_doxygen=no
13729   else
13730        have_doxygen=yes
13731   fi
13732elif test "x$use_doxygen" = x"yes" ; then
13733   # Extract the first word of "doxygen", so it can be a program name with args.
13734set dummy doxygen; ac_word=$2
13735{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13737if test "${ac_cv_path_DOXYGEN+set}" = set; then
13738  echo $ECHO_N "(cached) $ECHO_C" >&6
13739else
13740  case $DOXYGEN in
13741  [\\/]* | ?:[\\/]*)
13742  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
13743  ;;
13744  *)
13745  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13746for as_dir in $PATH
13747do
13748  IFS=$as_save_IFS
13749  test -z "$as_dir" && as_dir=.
13750  for ac_exec_ext in '' $ac_executable_extensions; do
13751  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13752    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
13753    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13754    break 2
13755  fi
13756done
13757done
13758IFS=$as_save_IFS
13759
13760  ;;
13761esac
13762fi
13763DOXYGEN=$ac_cv_path_DOXYGEN
13764if test -n "$DOXYGEN"; then
13765  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
13766echo "${ECHO_T}$DOXYGEN" >&6; }
13767else
13768  { echo "$as_me:$LINENO: result: no" >&5
13769echo "${ECHO_T}no" >&6; }
13770fi
13771
13772
13773   if test "x$DOXYGEN" = "x"; then
13774        { { echo "$as_me:$LINENO: error: --with-doxygen=yes specified but doxygen not found in PATH" >&5
13775echo "$as_me: error: --with-doxygen=yes specified but doxygen not found in PATH" >&2;}
13776   { (exit 1); exit 1; }; }
13777   fi
13778   have_doxygen=yes
13779elif test "x$use_doxygen" = x"no" ; then
13780   if test "x$DOXYGEN" != "x"; then
13781      { echo "$as_me:$LINENO: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5
13782echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;}
13783   fi
13784   have_doxygen=no
13785else
13786   { { echo "$as_me:$LINENO: error: --with-doxygen expects 'yes' or 'no'" >&5
13787echo "$as_me: error: --with-doxygen expects 'yes' or 'no'" >&2;}
13788   { (exit 1); exit 1; }; }
13789fi
13790if test "$have_doxygen" = yes; then
13791    # scrape the doxygen version
13792    { echo "$as_me:$LINENO: checking the doxygen version" >&5
13793echo $ECHO_N "checking the doxygen version... $ECHO_C" >&6; }
13794    doxygen_version=`$DOXYGEN --version 2>/dev/null`
13795    { echo "$as_me:$LINENO: result: $doxygen_version" >&5
13796echo "${ECHO_T}$doxygen_version" >&6; }
13797    as_arg_v1=$doxygen_version
13798as_arg_v2=1.6.1
13799awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
13800case $? in
138011) if test "x$use_doxygen" = xauto; then
13802            { echo "$as_me:$LINENO: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&5
13803echo "$as_me: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&2;}
13804            have_doxygen=no
13805        else
13806            { { echo "$as_me:$LINENO: error: doxygen version $doxygen_version found, but 1.6.1 needed" >&5
13807echo "$as_me: error: doxygen version $doxygen_version found, but 1.6.1 needed" >&2;}
13808   { (exit 1); exit 1; }; }
13809        fi;;
138100) ;;
138112) ;;
13812esac
13813fi
13814 if test "$have_doxygen" = yes; then
13815  HAVE_DOXYGEN_TRUE=
13816  HAVE_DOXYGEN_FALSE='#'
13817else
13818  HAVE_DOXYGEN_TRUE='#'
13819  HAVE_DOXYGEN_FALSE=
13820fi
13821
13822
13823
13824{ echo "$as_me:$LINENO: checking for X.Org SGML entities >= 1.5" >&5
13825echo $ECHO_N "checking for X.Org SGML entities >= 1.5... $ECHO_C" >&6; }
13826XORG_SGML_PATH=
13827if test -n "$PKG_CONFIG" && \
13828    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.5\"") >&5
13829  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.5") 2>&5
13830  ac_status=$?
13831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832  (exit $ac_status); }; then
13833  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
13834else
13835  :
13836
13837fi
13838
13839# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
13840# the path and the name of the doc stylesheet
13841if test "x$XORG_SGML_PATH" != "x" ; then
13842   { echo "$as_me:$LINENO: result: $XORG_SGML_PATH" >&5
13843echo "${ECHO_T}$XORG_SGML_PATH" >&6; }
13844   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
13845   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
13846else
13847   { echo "$as_me:$LINENO: result: no" >&5
13848echo "${ECHO_T}no" >&6; }
13849fi
13850
13851
13852
13853
13854 if test "x$XSL_STYLESHEET" != "x"; then
13855  HAVE_STYLESHEETS_TRUE=
13856  HAVE_STYLESHEETS_FALSE='#'
13857else
13858  HAVE_STYLESHEETS_TRUE='#'
13859  HAVE_STYLESHEETS_FALSE=
13860fi
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876ac_config_headers="$ac_config_headers include/do-not-use-config.h"
13877
13878ac_config_headers="$ac_config_headers include/xorg-server.h"
13879
13880ac_config_headers="$ac_config_headers include/dix-config.h"
13881
13882ac_config_headers="$ac_config_headers include/xorg-config.h"
13883
13884ac_config_headers="$ac_config_headers include/xkb-config.h"
13885
13886ac_config_headers="$ac_config_headers include/xwin-config.h"
13887
13888ac_config_headers="$ac_config_headers include/kdrive-config.h"
13889
13890ac_config_headers="$ac_config_headers include/version-config.h"
13891
13892
13893# By default we simply use the C compiler to build assembly code.
13894
13895test "${CCAS+set}" = set || CCAS=$CC
13896test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
13897
13898
13899
13900depcc="$CCAS"   am_compiler_list=
13901
13902{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13903echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13904if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
13905  echo $ECHO_N "(cached) $ECHO_C" >&6
13906else
13907  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13908  # We make a subdir and do the tests there.  Otherwise we can end up
13909  # making bogus files that we don't know about and never remove.  For
13910  # instance it was reported that on HP-UX the gcc test will end up
13911  # making a dummy file named `D' -- because `-MD' means `put the output
13912  # in D'.
13913  mkdir conftest.dir
13914  # Copy depcomp to subdir because otherwise we won't find it if we're
13915  # using a relative directory.
13916  cp "$am_depcomp" conftest.dir
13917  cd conftest.dir
13918  # We will build objects and dependencies in a subdirectory because
13919  # it helps to detect inapplicable dependency modes.  For instance
13920  # both Tru64's cc and ICC support -MD to output dependencies as a
13921  # side effect of compilation, but ICC will put the dependencies in
13922  # the current directory while Tru64 will put them in the object
13923  # directory.
13924  mkdir sub
13925
13926  am_cv_CCAS_dependencies_compiler_type=none
13927  if test "$am_compiler_list" = ""; then
13928     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13929  fi
13930  for depmode in $am_compiler_list; do
13931    # Setup a source with many dependencies, because some compilers
13932    # like to wrap large dependency lists on column 80 (with \), and
13933    # we should not choose a depcomp mode which is confused by this.
13934    #
13935    # We need to recreate these files for each test, as the compiler may
13936    # overwrite some of them when testing with obscure command lines.
13937    # This happens at least with the AIX C compiler.
13938    : > sub/conftest.c
13939    for i in 1 2 3 4 5 6; do
13940      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13941      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13942      # Solaris 8's {/usr,}/bin/sh.
13943      touch sub/conftst$i.h
13944    done
13945    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13946
13947    case $depmode in
13948    nosideeffect)
13949      # after this tag, mechanisms are not by side-effect, so they'll
13950      # only be used when explicitly requested
13951      if test "x$enable_dependency_tracking" = xyes; then
13952	continue
13953      else
13954	break
13955      fi
13956      ;;
13957    none) break ;;
13958    esac
13959    # We check with `-c' and `-o' for the sake of the "dashmstdout"
13960    # mode.  It turns out that the SunPro C++ compiler does not properly
13961    # handle `-M -o', and we need to detect this.
13962    if depmode=$depmode \
13963       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13964       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13965       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13966         >/dev/null 2>conftest.err &&
13967       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13968       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13969       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13970       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13971      # icc doesn't choke on unknown options, it will just issue warnings
13972      # or remarks (even with -Werror).  So we grep stderr for any message
13973      # that says an option was ignored or not supported.
13974      # When given -MP, icc 7.0 and 7.1 complain thusly:
13975      #   icc: Command line warning: ignoring option '-M'; no argument required
13976      # The diagnosis changed in icc 8.0:
13977      #   icc: Command line remark: option '-MP' not supported
13978      if (grep 'ignoring option' conftest.err ||
13979          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13980        am_cv_CCAS_dependencies_compiler_type=$depmode
13981        break
13982      fi
13983    fi
13984  done
13985
13986  cd ..
13987  rm -rf conftest.dir
13988else
13989  am_cv_CCAS_dependencies_compiler_type=none
13990fi
13991
13992fi
13993{ echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
13994echo "${ECHO_T}$am_cv_CCAS_dependencies_compiler_type" >&6; }
13995CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
13996
13997 if
13998  test "x$enable_dependency_tracking" != xno \
13999  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
14000  am__fastdepCCAS_TRUE=
14001  am__fastdepCCAS_FALSE='#'
14002else
14003  am__fastdepCCAS_TRUE='#'
14004  am__fastdepCCAS_FALSE=
14005fi
14006
14007
14008{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
14009echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
14010LN_S=$as_ln_s
14011if test "$LN_S" = "ln -s"; then
14012  { echo "$as_me:$LINENO: result: yes" >&5
14013echo "${ECHO_T}yes" >&6; }
14014else
14015  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14016echo "${ECHO_T}no, using $LN_S" >&6; }
14017fi
14018
14019enable_win32_dll=yes
14020
14021case $host in
14022*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
14023  if test -n "$ac_tool_prefix"; then
14024  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
14025set dummy ${ac_tool_prefix}as; ac_word=$2
14026{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14028if test "${ac_cv_prog_AS+set}" = set; then
14029  echo $ECHO_N "(cached) $ECHO_C" >&6
14030else
14031  if test -n "$AS"; then
14032  ac_cv_prog_AS="$AS" # Let the user override the test.
14033else
14034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14035for as_dir in $PATH
14036do
14037  IFS=$as_save_IFS
14038  test -z "$as_dir" && as_dir=.
14039  for ac_exec_ext in '' $ac_executable_extensions; do
14040  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14041    ac_cv_prog_AS="${ac_tool_prefix}as"
14042    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14043    break 2
14044  fi
14045done
14046done
14047IFS=$as_save_IFS
14048
14049fi
14050fi
14051AS=$ac_cv_prog_AS
14052if test -n "$AS"; then
14053  { echo "$as_me:$LINENO: result: $AS" >&5
14054echo "${ECHO_T}$AS" >&6; }
14055else
14056  { echo "$as_me:$LINENO: result: no" >&5
14057echo "${ECHO_T}no" >&6; }
14058fi
14059
14060
14061fi
14062if test -z "$ac_cv_prog_AS"; then
14063  ac_ct_AS=$AS
14064  # Extract the first word of "as", so it can be a program name with args.
14065set dummy as; ac_word=$2
14066{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14068if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
14069  echo $ECHO_N "(cached) $ECHO_C" >&6
14070else
14071  if test -n "$ac_ct_AS"; then
14072  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
14073else
14074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14075for as_dir in $PATH
14076do
14077  IFS=$as_save_IFS
14078  test -z "$as_dir" && as_dir=.
14079  for ac_exec_ext in '' $ac_executable_extensions; do
14080  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14081    ac_cv_prog_ac_ct_AS="as"
14082    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14083    break 2
14084  fi
14085done
14086done
14087IFS=$as_save_IFS
14088
14089fi
14090fi
14091ac_ct_AS=$ac_cv_prog_ac_ct_AS
14092if test -n "$ac_ct_AS"; then
14093  { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
14094echo "${ECHO_T}$ac_ct_AS" >&6; }
14095else
14096  { echo "$as_me:$LINENO: result: no" >&5
14097echo "${ECHO_T}no" >&6; }
14098fi
14099
14100  if test "x$ac_ct_AS" = x; then
14101    AS="false"
14102  else
14103    case $cross_compiling:$ac_tool_warned in
14104yes:)
14105{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14106whose name does not start with the host triplet.  If you think this
14107configuration is useful to you, please write to autoconf@gnu.org." >&5
14108echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14109whose name does not start with the host triplet.  If you think this
14110configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14111ac_tool_warned=yes ;;
14112esac
14113    AS=$ac_ct_AS
14114  fi
14115else
14116  AS="$ac_cv_prog_AS"
14117fi
14118
14119  if test -n "$ac_tool_prefix"; then
14120  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14121set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14122{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14124if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14125  echo $ECHO_N "(cached) $ECHO_C" >&6
14126else
14127  if test -n "$DLLTOOL"; then
14128  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14129else
14130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14131for as_dir in $PATH
14132do
14133  IFS=$as_save_IFS
14134  test -z "$as_dir" && as_dir=.
14135  for ac_exec_ext in '' $ac_executable_extensions; do
14136  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14137    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14138    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14139    break 2
14140  fi
14141done
14142done
14143IFS=$as_save_IFS
14144
14145fi
14146fi
14147DLLTOOL=$ac_cv_prog_DLLTOOL
14148if test -n "$DLLTOOL"; then
14149  { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14150echo "${ECHO_T}$DLLTOOL" >&6; }
14151else
14152  { echo "$as_me:$LINENO: result: no" >&5
14153echo "${ECHO_T}no" >&6; }
14154fi
14155
14156
14157fi
14158if test -z "$ac_cv_prog_DLLTOOL"; then
14159  ac_ct_DLLTOOL=$DLLTOOL
14160  # Extract the first word of "dlltool", so it can be a program name with args.
14161set dummy dlltool; ac_word=$2
14162{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14164if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
14165  echo $ECHO_N "(cached) $ECHO_C" >&6
14166else
14167  if test -n "$ac_ct_DLLTOOL"; then
14168  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14169else
14170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14171for as_dir in $PATH
14172do
14173  IFS=$as_save_IFS
14174  test -z "$as_dir" && as_dir=.
14175  for ac_exec_ext in '' $ac_executable_extensions; do
14176  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14177    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14178    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14179    break 2
14180  fi
14181done
14182done
14183IFS=$as_save_IFS
14184
14185fi
14186fi
14187ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14188if test -n "$ac_ct_DLLTOOL"; then
14189  { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
14190echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
14191else
14192  { echo "$as_me:$LINENO: result: no" >&5
14193echo "${ECHO_T}no" >&6; }
14194fi
14195
14196  if test "x$ac_ct_DLLTOOL" = x; then
14197    DLLTOOL="false"
14198  else
14199    case $cross_compiling:$ac_tool_warned in
14200yes:)
14201{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14202whose name does not start with the host triplet.  If you think this
14203configuration is useful to you, please write to autoconf@gnu.org." >&5
14204echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14205whose name does not start with the host triplet.  If you think this
14206configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14207ac_tool_warned=yes ;;
14208esac
14209    DLLTOOL=$ac_ct_DLLTOOL
14210  fi
14211else
14212  DLLTOOL="$ac_cv_prog_DLLTOOL"
14213fi
14214
14215  if test -n "$ac_tool_prefix"; then
14216  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14217set dummy ${ac_tool_prefix}objdump; ac_word=$2
14218{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14220if test "${ac_cv_prog_OBJDUMP+set}" = set; then
14221  echo $ECHO_N "(cached) $ECHO_C" >&6
14222else
14223  if test -n "$OBJDUMP"; then
14224  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14225else
14226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14227for as_dir in $PATH
14228do
14229  IFS=$as_save_IFS
14230  test -z "$as_dir" && as_dir=.
14231  for ac_exec_ext in '' $ac_executable_extensions; do
14232  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14233    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14234    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14235    break 2
14236  fi
14237done
14238done
14239IFS=$as_save_IFS
14240
14241fi
14242fi
14243OBJDUMP=$ac_cv_prog_OBJDUMP
14244if test -n "$OBJDUMP"; then
14245  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
14246echo "${ECHO_T}$OBJDUMP" >&6; }
14247else
14248  { echo "$as_me:$LINENO: result: no" >&5
14249echo "${ECHO_T}no" >&6; }
14250fi
14251
14252
14253fi
14254if test -z "$ac_cv_prog_OBJDUMP"; then
14255  ac_ct_OBJDUMP=$OBJDUMP
14256  # Extract the first word of "objdump", so it can be a program name with args.
14257set dummy objdump; ac_word=$2
14258{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14260if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
14261  echo $ECHO_N "(cached) $ECHO_C" >&6
14262else
14263  if test -n "$ac_ct_OBJDUMP"; then
14264  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14265else
14266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14267for as_dir in $PATH
14268do
14269  IFS=$as_save_IFS
14270  test -z "$as_dir" && as_dir=.
14271  for ac_exec_ext in '' $ac_executable_extensions; do
14272  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14273    ac_cv_prog_ac_ct_OBJDUMP="objdump"
14274    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14275    break 2
14276  fi
14277done
14278done
14279IFS=$as_save_IFS
14280
14281fi
14282fi
14283ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14284if test -n "$ac_ct_OBJDUMP"; then
14285  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
14286echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
14287else
14288  { echo "$as_me:$LINENO: result: no" >&5
14289echo "${ECHO_T}no" >&6; }
14290fi
14291
14292  if test "x$ac_ct_OBJDUMP" = x; then
14293    OBJDUMP="false"
14294  else
14295    case $cross_compiling:$ac_tool_warned in
14296yes:)
14297{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14298whose name does not start with the host triplet.  If you think this
14299configuration is useful to you, please write to autoconf@gnu.org." >&5
14300echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14301whose name does not start with the host triplet.  If you think this
14302configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14303ac_tool_warned=yes ;;
14304esac
14305    OBJDUMP=$ac_ct_OBJDUMP
14306  fi
14307else
14308  OBJDUMP="$ac_cv_prog_OBJDUMP"
14309fi
14310
14311  ;;
14312esac
14313
14314test -z "$AS" && AS=as
14315
14316
14317
14318
14319
14320test -z "$DLLTOOL" && DLLTOOL=dlltool
14321
14322
14323
14324
14325
14326test -z "$OBJDUMP" && OBJDUMP=objdump
14327
14328
14329
14330
14331
14332
14333
14334# Check whether --enable-static was given.
14335if test "${enable_static+set}" = set; then
14336  enableval=$enable_static; p=${PACKAGE-default}
14337    case $enableval in
14338    yes) enable_static=yes ;;
14339    no) enable_static=no ;;
14340    *)
14341     enable_static=no
14342      # Look at the argument we got.  We use all the common list separators.
14343      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14344      for pkg in $enableval; do
14345	IFS="$lt_save_ifs"
14346	if test "X$pkg" = "X$p"; then
14347	  enable_static=yes
14348	fi
14349      done
14350      IFS="$lt_save_ifs"
14351      ;;
14352    esac
14353else
14354  enable_static=no
14355fi
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365case `pwd` in
14366  *\ * | *\	*)
14367    { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
14368echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
14369esac
14370
14371
14372
14373macro_version='2.2.10'
14374macro_revision='1.3175'
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388ltmain="$ac_aux_dir/ltmain.sh"
14389
14390# Backslashify metacharacters that are still active within
14391# double-quoted strings.
14392sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
14393
14394# Same as above, but do not quote variable references.
14395double_quote_subst='s/\(["`\\]\)/\\\1/g'
14396
14397# Sed substitution to delay expansion of an escaped shell variable in a
14398# double_quote_subst'ed string.
14399delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14400
14401# Sed substitution to delay expansion of an escaped single quote.
14402delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
14403
14404# Sed substitution to avoid accidental globbing in evaled expressions
14405no_glob_subst='s/\*/\\\*/g'
14406
14407ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14408ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
14409ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
14410
14411{ echo "$as_me:$LINENO: checking how to print strings" >&5
14412echo $ECHO_N "checking how to print strings... $ECHO_C" >&6; }
14413# Test print first, because it will be a builtin if present.
14414if test "X`print -r -- -n 2>/dev/null`" = X-n && \
14415   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
14416  ECHO='print -r --'
14417elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
14418  ECHO='printf %s\n'
14419else
14420  # Use this function as a fallback that always works.
14421  func_fallback_echo ()
14422  {
14423    eval 'cat <<_LTECHO_EOF
14424$1
14425_LTECHO_EOF'
14426  }
14427  ECHO='func_fallback_echo'
14428fi
14429
14430# func_echo_all arg...
14431# Invoke $ECHO with all args, space-separated.
14432func_echo_all ()
14433{
14434    $ECHO ""
14435}
14436
14437case "$ECHO" in
14438  printf*) { echo "$as_me:$LINENO: result: printf" >&5
14439echo "${ECHO_T}printf" >&6; } ;;
14440  print*) { echo "$as_me:$LINENO: result: print -r" >&5
14441echo "${ECHO_T}print -r" >&6; } ;;
14442  *) { echo "$as_me:$LINENO: result: cat" >&5
14443echo "${ECHO_T}cat" >&6; } ;;
14444esac
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14460echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
14461if test "${ac_cv_path_SED+set}" = set; then
14462  echo $ECHO_N "(cached) $ECHO_C" >&6
14463else
14464            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14465     for ac_i in 1 2 3 4 5 6 7; do
14466       ac_script="$ac_script$as_nl$ac_script"
14467     done
14468     echo "$ac_script" | sed 99q >conftest.sed
14469     $as_unset ac_script || ac_script=
14470     # Extract the first word of "sed gsed" to use in msg output
14471if test -z "$SED"; then
14472set dummy sed gsed; ac_prog_name=$2
14473if test "${ac_cv_path_SED+set}" = set; then
14474  echo $ECHO_N "(cached) $ECHO_C" >&6
14475else
14476  ac_path_SED_found=false
14477# Loop through the user's path and test for each of PROGNAME-LIST
14478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14479for as_dir in $PATH
14480do
14481  IFS=$as_save_IFS
14482  test -z "$as_dir" && as_dir=.
14483  for ac_prog in sed gsed; do
14484  for ac_exec_ext in '' $ac_executable_extensions; do
14485    ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14486    { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
14487    # Check for GNU ac_path_SED and select it if it is found.
14488  # Check for GNU $ac_path_SED
14489case `"$ac_path_SED" --version 2>&1` in
14490*GNU*)
14491  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14492*)
14493  ac_count=0
14494  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
14495  while :
14496  do
14497    cat "conftest.in" "conftest.in" >"conftest.tmp"
14498    mv "conftest.tmp" "conftest.in"
14499    cp "conftest.in" "conftest.nl"
14500    echo '' >> "conftest.nl"
14501    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14502    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14503    ac_count=`expr $ac_count + 1`
14504    if test $ac_count -gt ${ac_path_SED_max-0}; then
14505      # Best one so far, save it but keep looking for a better one
14506      ac_cv_path_SED="$ac_path_SED"
14507      ac_path_SED_max=$ac_count
14508    fi
14509    # 10*(2^10) chars as input seems more than enough
14510    test $ac_count -gt 10 && break
14511  done
14512  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14513esac
14514
14515
14516    $ac_path_SED_found && break 3
14517  done
14518done
14519
14520done
14521IFS=$as_save_IFS
14522
14523
14524fi
14525
14526SED="$ac_cv_path_SED"
14527if test -z "$SED"; then
14528  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
14529echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
14530   { (exit 1); exit 1; }; }
14531fi
14532
14533else
14534  ac_cv_path_SED=$SED
14535fi
14536
14537fi
14538{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
14539echo "${ECHO_T}$ac_cv_path_SED" >&6; }
14540 SED="$ac_cv_path_SED"
14541  rm -f conftest.sed
14542
14543test -z "$SED" && SED=sed
14544Xsed="$SED -e 1s/^X//"
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556{ echo "$as_me:$LINENO: checking for fgrep" >&5
14557echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
14558if test "${ac_cv_path_FGREP+set}" = set; then
14559  echo $ECHO_N "(cached) $ECHO_C" >&6
14560else
14561  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
14562   then ac_cv_path_FGREP="$GREP -F"
14563   else
14564     # Extract the first word of "fgrep" to use in msg output
14565if test -z "$FGREP"; then
14566set dummy fgrep; ac_prog_name=$2
14567if test "${ac_cv_path_FGREP+set}" = set; then
14568  echo $ECHO_N "(cached) $ECHO_C" >&6
14569else
14570  ac_path_FGREP_found=false
14571# Loop through the user's path and test for each of PROGNAME-LIST
14572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14573for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
14574do
14575  IFS=$as_save_IFS
14576  test -z "$as_dir" && as_dir=.
14577  for ac_prog in fgrep; do
14578  for ac_exec_ext in '' $ac_executable_extensions; do
14579    ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
14580    { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
14581    # Check for GNU ac_path_FGREP and select it if it is found.
14582  # Check for GNU $ac_path_FGREP
14583case `"$ac_path_FGREP" --version 2>&1` in
14584*GNU*)
14585  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
14586*)
14587  ac_count=0
14588  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
14589  while :
14590  do
14591    cat "conftest.in" "conftest.in" >"conftest.tmp"
14592    mv "conftest.tmp" "conftest.in"
14593    cp "conftest.in" "conftest.nl"
14594    echo 'FGREP' >> "conftest.nl"
14595    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
14596    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14597    ac_count=`expr $ac_count + 1`
14598    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
14599      # Best one so far, save it but keep looking for a better one
14600      ac_cv_path_FGREP="$ac_path_FGREP"
14601      ac_path_FGREP_max=$ac_count
14602    fi
14603    # 10*(2^10) chars as input seems more than enough
14604    test $ac_count -gt 10 && break
14605  done
14606  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14607esac
14608
14609
14610    $ac_path_FGREP_found && break 3
14611  done
14612done
14613
14614done
14615IFS=$as_save_IFS
14616
14617
14618fi
14619
14620FGREP="$ac_cv_path_FGREP"
14621if test -z "$FGREP"; then
14622  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
14623echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
14624   { (exit 1); exit 1; }; }
14625fi
14626
14627else
14628  ac_cv_path_FGREP=$FGREP
14629fi
14630
14631
14632   fi
14633fi
14634{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
14635echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
14636 FGREP="$ac_cv_path_FGREP"
14637
14638
14639test -z "$GREP" && GREP=grep
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659# Check whether --with-gnu-ld was given.
14660if test "${with_gnu_ld+set}" = set; then
14661  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14662else
14663  with_gnu_ld=no
14664fi
14665
14666ac_prog=ld
14667if test "$GCC" = yes; then
14668  # Check if gcc -print-prog-name=ld gives a path.
14669  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14670echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
14671  case $host in
14672  *-*-mingw*)
14673    # gcc leaves a trailing carriage return which upsets mingw
14674    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14675  *)
14676    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14677  esac
14678  case $ac_prog in
14679    # Accept absolute paths.
14680    [\\/]* | ?:[\\/]*)
14681      re_direlt='/[^/][^/]*/\.\./'
14682      # Canonicalize the pathname of ld
14683      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14684      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14685	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14686      done
14687      test -z "$LD" && LD="$ac_prog"
14688      ;;
14689  "")
14690    # If it fails, then pretend we aren't using GCC.
14691    ac_prog=ld
14692    ;;
14693  *)
14694    # If it is relative, then search for the first ld in PATH.
14695    with_gnu_ld=unknown
14696    ;;
14697  esac
14698elif test "$with_gnu_ld" = yes; then
14699  { echo "$as_me:$LINENO: checking for GNU ld" >&5
14700echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
14701else
14702  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14703echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
14704fi
14705if test "${lt_cv_path_LD+set}" = set; then
14706  echo $ECHO_N "(cached) $ECHO_C" >&6
14707else
14708  if test -z "$LD"; then
14709  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14710  for ac_dir in $PATH; do
14711    IFS="$lt_save_ifs"
14712    test -z "$ac_dir" && ac_dir=.
14713    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14714      lt_cv_path_LD="$ac_dir/$ac_prog"
14715      # Check to see if the program is GNU ld.  I'd rather use --version,
14716      # but apparently some variants of GNU ld only accept -v.
14717      # Break only if it was the GNU/non-GNU ld that we prefer.
14718      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14719      *GNU* | *'with BFD'*)
14720	test "$with_gnu_ld" != no && break
14721	;;
14722      *)
14723	test "$with_gnu_ld" != yes && break
14724	;;
14725      esac
14726    fi
14727  done
14728  IFS="$lt_save_ifs"
14729else
14730  lt_cv_path_LD="$LD" # Let the user override the test with a path.
14731fi
14732fi
14733
14734LD="$lt_cv_path_LD"
14735if test -n "$LD"; then
14736  { echo "$as_me:$LINENO: result: $LD" >&5
14737echo "${ECHO_T}$LD" >&6; }
14738else
14739  { echo "$as_me:$LINENO: result: no" >&5
14740echo "${ECHO_T}no" >&6; }
14741fi
14742test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14743echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14744   { (exit 1); exit 1; }; }
14745{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14746echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
14747if test "${lt_cv_prog_gnu_ld+set}" = set; then
14748  echo $ECHO_N "(cached) $ECHO_C" >&6
14749else
14750  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14751case `$LD -v 2>&1 </dev/null` in
14752*GNU* | *'with BFD'*)
14753  lt_cv_prog_gnu_ld=yes
14754  ;;
14755*)
14756  lt_cv_prog_gnu_ld=no
14757  ;;
14758esac
14759fi
14760{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14761echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
14762with_gnu_ld=$lt_cv_prog_gnu_ld
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
14773echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
14774if test "${lt_cv_path_NM+set}" = set; then
14775  echo $ECHO_N "(cached) $ECHO_C" >&6
14776else
14777  if test -n "$NM"; then
14778  # Let the user override the test.
14779  lt_cv_path_NM="$NM"
14780else
14781  lt_nm_to_check="${ac_tool_prefix}nm"
14782  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14783    lt_nm_to_check="$lt_nm_to_check nm"
14784  fi
14785  for lt_tmp_nm in $lt_nm_to_check; do
14786    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14787    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14788      IFS="$lt_save_ifs"
14789      test -z "$ac_dir" && ac_dir=.
14790      tmp_nm="$ac_dir/$lt_tmp_nm"
14791      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14792	# Check to see if the nm accepts a BSD-compat flag.
14793	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
14794	#   nm: unknown option "B" ignored
14795	# Tru64's nm complains that /dev/null is an invalid object file
14796	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14797	*/dev/null* | *'Invalid file or object type'*)
14798	  lt_cv_path_NM="$tmp_nm -B"
14799	  break
14800	  ;;
14801	*)
14802	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14803	  */dev/null*)
14804	    lt_cv_path_NM="$tmp_nm -p"
14805	    break
14806	    ;;
14807	  *)
14808	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14809	    continue # so that we can try to find one that supports BSD flags
14810	    ;;
14811	  esac
14812	  ;;
14813	esac
14814      fi
14815    done
14816    IFS="$lt_save_ifs"
14817  done
14818  : ${lt_cv_path_NM=no}
14819fi
14820fi
14821{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14822echo "${ECHO_T}$lt_cv_path_NM" >&6; }
14823if test "$lt_cv_path_NM" != "no"; then
14824  NM="$lt_cv_path_NM"
14825else
14826  # Didn't find any BSD compatible name lister, look for dumpbin.
14827  if test -n "$DUMPBIN"; then :
14828    # Let the user override the test.
14829  else
14830    if test -n "$ac_tool_prefix"; then
14831  for ac_prog in dumpbin "link -dump"
14832  do
14833    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14834set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14835{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14837if test "${ac_cv_prog_DUMPBIN+set}" = set; then
14838  echo $ECHO_N "(cached) $ECHO_C" >&6
14839else
14840  if test -n "$DUMPBIN"; then
14841  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14842else
14843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14844for as_dir in $PATH
14845do
14846  IFS=$as_save_IFS
14847  test -z "$as_dir" && as_dir=.
14848  for ac_exec_ext in '' $ac_executable_extensions; do
14849  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14850    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14851    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14852    break 2
14853  fi
14854done
14855done
14856IFS=$as_save_IFS
14857
14858fi
14859fi
14860DUMPBIN=$ac_cv_prog_DUMPBIN
14861if test -n "$DUMPBIN"; then
14862  { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
14863echo "${ECHO_T}$DUMPBIN" >&6; }
14864else
14865  { echo "$as_me:$LINENO: result: no" >&5
14866echo "${ECHO_T}no" >&6; }
14867fi
14868
14869
14870    test -n "$DUMPBIN" && break
14871  done
14872fi
14873if test -z "$DUMPBIN"; then
14874  ac_ct_DUMPBIN=$DUMPBIN
14875  for ac_prog in dumpbin "link -dump"
14876do
14877  # Extract the first word of "$ac_prog", so it can be a program name with args.
14878set dummy $ac_prog; ac_word=$2
14879{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14881if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
14882  echo $ECHO_N "(cached) $ECHO_C" >&6
14883else
14884  if test -n "$ac_ct_DUMPBIN"; then
14885  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14886else
14887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14888for as_dir in $PATH
14889do
14890  IFS=$as_save_IFS
14891  test -z "$as_dir" && as_dir=.
14892  for ac_exec_ext in '' $ac_executable_extensions; do
14893  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14894    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14895    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14896    break 2
14897  fi
14898done
14899done
14900IFS=$as_save_IFS
14901
14902fi
14903fi
14904ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14905if test -n "$ac_ct_DUMPBIN"; then
14906  { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
14907echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
14908else
14909  { echo "$as_me:$LINENO: result: no" >&5
14910echo "${ECHO_T}no" >&6; }
14911fi
14912
14913
14914  test -n "$ac_ct_DUMPBIN" && break
14915done
14916
14917  if test "x$ac_ct_DUMPBIN" = x; then
14918    DUMPBIN=":"
14919  else
14920    case $cross_compiling:$ac_tool_warned in
14921yes:)
14922{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14923whose name does not start with the host triplet.  If you think this
14924configuration is useful to you, please write to autoconf@gnu.org." >&5
14925echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14926whose name does not start with the host triplet.  If you think this
14927configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14928ac_tool_warned=yes ;;
14929esac
14930    DUMPBIN=$ac_ct_DUMPBIN
14931  fi
14932fi
14933
14934    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14935    *COFF*)
14936      DUMPBIN="$DUMPBIN -symbols"
14937      ;;
14938    *)
14939      DUMPBIN=:
14940      ;;
14941    esac
14942  fi
14943
14944  if test "$DUMPBIN" != ":"; then
14945    NM="$DUMPBIN"
14946  fi
14947fi
14948test -z "$NM" && NM=nm
14949
14950
14951
14952
14953
14954
14955{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
14956echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
14957if test "${lt_cv_nm_interface+set}" = set; then
14958  echo $ECHO_N "(cached) $ECHO_C" >&6
14959else
14960  lt_cv_nm_interface="BSD nm"
14961  echo "int some_variable = 0;" > conftest.$ac_ext
14962  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14963  (eval "$ac_compile" 2>conftest.err)
14964  cat conftest.err >&5
14965  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14966  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14967  cat conftest.err >&5
14968  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14969  cat conftest.out >&5
14970  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14971    lt_cv_nm_interface="MS dumpbin"
14972  fi
14973  rm -r -f conftest*
14974fi
14975{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
14976echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
14977
14978# find the maximum length of command line arguments
14979{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14980echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
14981if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14982  echo $ECHO_N "(cached) $ECHO_C" >&6
14983else
14984    i=0
14985  teststring="ABCD"
14986
14987  case $build_os in
14988  msdosdjgpp*)
14989    # On DJGPP, this test can blow up pretty badly due to problems in libc
14990    # (any single argument exceeding 2000 bytes causes a buffer overrun
14991    # during glob expansion).  Even if it were fixed, the result of this
14992    # check would be larger than it should be.
14993    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
14994    ;;
14995
14996  gnu*)
14997    # Under GNU Hurd, this test is not required because there is
14998    # no limit to the length of command line arguments.
14999    # Libtool will interpret -1 as no limit whatsoever
15000    lt_cv_sys_max_cmd_len=-1;
15001    ;;
15002
15003  cygwin* | mingw* | cegcc*)
15004    # On Win9x/ME, this test blows up -- it succeeds, but takes
15005    # about 5 minutes as the teststring grows exponentially.
15006    # Worse, since 9x/ME are not pre-emptively multitasking,
15007    # you end up with a "frozen" computer, even though with patience
15008    # the test eventually succeeds (with a max line length of 256k).
15009    # Instead, let's just punt: use the minimum linelength reported by
15010    # all of the supported platforms: 8192 (on NT/2K/XP).
15011    lt_cv_sys_max_cmd_len=8192;
15012    ;;
15013
15014  mint*)
15015    # On MiNT this can take a long time and run out of memory.
15016    lt_cv_sys_max_cmd_len=8192;
15017    ;;
15018
15019  amigaos*)
15020    # On AmigaOS with pdksh, this test takes hours, literally.
15021    # So we just punt and use a minimum line length of 8192.
15022    lt_cv_sys_max_cmd_len=8192;
15023    ;;
15024
15025  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
15026    # This has been around since 386BSD, at least.  Likely further.
15027    if test -x /sbin/sysctl; then
15028      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
15029    elif test -x /usr/sbin/sysctl; then
15030      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
15031    else
15032      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
15033    fi
15034    # And add a safety zone
15035    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15036    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15037    ;;
15038
15039  interix*)
15040    # We know the value 262144 and hardcode it with a safety zone (like BSD)
15041    lt_cv_sys_max_cmd_len=196608
15042    ;;
15043
15044  osf*)
15045    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
15046    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
15047    # nice to cause kernel panics so lets avoid the loop below.
15048    # First set a reasonable default.
15049    lt_cv_sys_max_cmd_len=16384
15050    #
15051    if test -x /sbin/sysconfig; then
15052      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
15053        *1*) lt_cv_sys_max_cmd_len=-1 ;;
15054      esac
15055    fi
15056    ;;
15057  sco3.2v5*)
15058    lt_cv_sys_max_cmd_len=102400
15059    ;;
15060  sysv5* | sco5v6* | sysv4.2uw2*)
15061    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
15062    if test -n "$kargmax"; then
15063      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
15064    else
15065      lt_cv_sys_max_cmd_len=32768
15066    fi
15067    ;;
15068  *)
15069    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
15070    if test -n "$lt_cv_sys_max_cmd_len"; then
15071      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15072      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15073    else
15074      # Make teststring a little bigger before we do anything with it.
15075      # a 1K string should be a reasonable start.
15076      for i in 1 2 3 4 5 6 7 8 ; do
15077        teststring=$teststring$teststring
15078      done
15079      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
15080      # If test is not a shell built-in, we'll probably end up computing a
15081      # maximum length that is only half of the actual maximum length, but
15082      # we can't tell.
15083      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
15084	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
15085	      test $i != 17 # 1/2 MB should be enough
15086      do
15087        i=`expr $i + 1`
15088        teststring=$teststring$teststring
15089      done
15090      # Only check the string length outside the loop.
15091      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
15092      teststring=
15093      # Add a significant safety factor because C++ compilers can tack on
15094      # massive amounts of additional arguments before passing them to the
15095      # linker.  It appears as though 1/2 is a usable value.
15096      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
15097    fi
15098    ;;
15099  esac
15100
15101fi
15102
15103if test -n $lt_cv_sys_max_cmd_len ; then
15104  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
15105echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
15106else
15107  { echo "$as_me:$LINENO: result: none" >&5
15108echo "${ECHO_T}none" >&6; }
15109fi
15110max_cmd_len=$lt_cv_sys_max_cmd_len
15111
15112
15113
15114
15115
15116
15117: ${CP="cp -f"}
15118: ${MV="mv -f"}
15119: ${RM="rm -f"}
15120
15121{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
15122echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
15123# Try some XSI features
15124xsi_shell=no
15125( _lt_dummy="a/b/c"
15126  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
15127      = c,a/b,, \
15128    && eval 'test $(( 1 + 1 )) -eq 2 \
15129    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
15130  && xsi_shell=yes
15131{ echo "$as_me:$LINENO: result: $xsi_shell" >&5
15132echo "${ECHO_T}$xsi_shell" >&6; }
15133
15134
15135{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
15136echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
15137lt_shell_append=no
15138( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
15139    >/dev/null 2>&1 \
15140  && lt_shell_append=yes
15141{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5
15142echo "${ECHO_T}$lt_shell_append" >&6; }
15143
15144
15145if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15146  lt_unset=unset
15147else
15148  lt_unset=false
15149fi
15150
15151
15152
15153
15154
15155# test EBCDIC or ASCII
15156case `echo X|tr X '\101'` in
15157 A) # ASCII based system
15158    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
15159  lt_SP2NL='tr \040 \012'
15160  lt_NL2SP='tr \015\012 \040\040'
15161  ;;
15162 *) # EBCDIC based system
15163  lt_SP2NL='tr \100 \n'
15164  lt_NL2SP='tr \r\n \100\100'
15165  ;;
15166esac
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
15177echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
15178if test "${lt_cv_ld_reload_flag+set}" = set; then
15179  echo $ECHO_N "(cached) $ECHO_C" >&6
15180else
15181  lt_cv_ld_reload_flag='-r'
15182fi
15183{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
15184echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
15185reload_flag=$lt_cv_ld_reload_flag
15186case $reload_flag in
15187"" | " "*) ;;
15188*) reload_flag=" $reload_flag" ;;
15189esac
15190reload_cmds='$LD$reload_flag -o $output$reload_objs'
15191case $host_os in
15192  darwin*)
15193    if test "$GCC" = yes; then
15194      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
15195    else
15196      reload_cmds='$LD$reload_flag -o $output$reload_objs'
15197    fi
15198    ;;
15199esac
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209if test -n "$ac_tool_prefix"; then
15210  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
15211set dummy ${ac_tool_prefix}objdump; ac_word=$2
15212{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15214if test "${ac_cv_prog_OBJDUMP+set}" = set; then
15215  echo $ECHO_N "(cached) $ECHO_C" >&6
15216else
15217  if test -n "$OBJDUMP"; then
15218  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
15219else
15220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15221for as_dir in $PATH
15222do
15223  IFS=$as_save_IFS
15224  test -z "$as_dir" && as_dir=.
15225  for ac_exec_ext in '' $ac_executable_extensions; do
15226  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15227    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
15228    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15229    break 2
15230  fi
15231done
15232done
15233IFS=$as_save_IFS
15234
15235fi
15236fi
15237OBJDUMP=$ac_cv_prog_OBJDUMP
15238if test -n "$OBJDUMP"; then
15239  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
15240echo "${ECHO_T}$OBJDUMP" >&6; }
15241else
15242  { echo "$as_me:$LINENO: result: no" >&5
15243echo "${ECHO_T}no" >&6; }
15244fi
15245
15246
15247fi
15248if test -z "$ac_cv_prog_OBJDUMP"; then
15249  ac_ct_OBJDUMP=$OBJDUMP
15250  # Extract the first word of "objdump", so it can be a program name with args.
15251set dummy objdump; ac_word=$2
15252{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15254if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
15255  echo $ECHO_N "(cached) $ECHO_C" >&6
15256else
15257  if test -n "$ac_ct_OBJDUMP"; then
15258  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
15259else
15260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15261for as_dir in $PATH
15262do
15263  IFS=$as_save_IFS
15264  test -z "$as_dir" && as_dir=.
15265  for ac_exec_ext in '' $ac_executable_extensions; do
15266  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15267    ac_cv_prog_ac_ct_OBJDUMP="objdump"
15268    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15269    break 2
15270  fi
15271done
15272done
15273IFS=$as_save_IFS
15274
15275fi
15276fi
15277ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
15278if test -n "$ac_ct_OBJDUMP"; then
15279  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
15280echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
15281else
15282  { echo "$as_me:$LINENO: result: no" >&5
15283echo "${ECHO_T}no" >&6; }
15284fi
15285
15286  if test "x$ac_ct_OBJDUMP" = x; then
15287    OBJDUMP="false"
15288  else
15289    case $cross_compiling:$ac_tool_warned in
15290yes:)
15291{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15292whose name does not start with the host triplet.  If you think this
15293configuration is useful to you, please write to autoconf@gnu.org." >&5
15294echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15295whose name does not start with the host triplet.  If you think this
15296configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15297ac_tool_warned=yes ;;
15298esac
15299    OBJDUMP=$ac_ct_OBJDUMP
15300  fi
15301else
15302  OBJDUMP="$ac_cv_prog_OBJDUMP"
15303fi
15304
15305test -z "$OBJDUMP" && OBJDUMP=objdump
15306
15307
15308
15309
15310
15311
15312{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
15313echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
15314if test "${lt_cv_deplibs_check_method+set}" = set; then
15315  echo $ECHO_N "(cached) $ECHO_C" >&6
15316else
15317  lt_cv_file_magic_cmd='$MAGIC_CMD'
15318lt_cv_file_magic_test_file=
15319lt_cv_deplibs_check_method='unknown'
15320# Need to set the preceding variable on all platforms that support
15321# interlibrary dependencies.
15322# 'none' -- dependencies not supported.
15323# `unknown' -- same as none, but documents that we really don't know.
15324# 'pass_all' -- all dependencies passed with no checks.
15325# 'test_compile' -- check by making test program.
15326# 'file_magic [[regex]]' -- check by looking for files in library path
15327# which responds to the $file_magic_cmd with a given extended regex.
15328# If you have `file' or equivalent on your system and you're not sure
15329# whether `pass_all' will *always* work, you probably want this one.
15330
15331case $host_os in
15332aix[4-9]*)
15333  lt_cv_deplibs_check_method=pass_all
15334  ;;
15335
15336beos*)
15337  lt_cv_deplibs_check_method=pass_all
15338  ;;
15339
15340bsdi[45]*)
15341  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
15342  lt_cv_file_magic_cmd='/usr/bin/file -L'
15343  lt_cv_file_magic_test_file=/shlib/libc.so
15344  ;;
15345
15346cygwin*)
15347  # func_win32_libid is a shell function defined in ltmain.sh
15348  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15349  lt_cv_file_magic_cmd='func_win32_libid'
15350  ;;
15351
15352mingw* | pw32*)
15353  # Base MSYS/MinGW do not provide the 'file' command needed by
15354  # func_win32_libid shell function, so use a weaker test based on 'objdump',
15355  # unless we find 'file', for example because we are cross-compiling.
15356  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
15357  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
15358    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15359    lt_cv_file_magic_cmd='func_win32_libid'
15360  else
15361    # Keep this pattern in sync with the one in func_win32_libid.
15362    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
15363    lt_cv_file_magic_cmd='$OBJDUMP -f'
15364  fi
15365  ;;
15366
15367cegcc*)
15368  # use the weaker test based on 'objdump'. See mingw*.
15369  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
15370  lt_cv_file_magic_cmd='$OBJDUMP -f'
15371  ;;
15372
15373darwin* | rhapsody*)
15374  lt_cv_deplibs_check_method=pass_all
15375  ;;
15376
15377freebsd* | dragonfly*)
15378  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15379    case $host_cpu in
15380    i*86 )
15381      # Not sure whether the presence of OpenBSD here was a mistake.
15382      # Let's accept both of them until this is cleared up.
15383      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
15384      lt_cv_file_magic_cmd=/usr/bin/file
15385      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
15386      ;;
15387    esac
15388  else
15389    lt_cv_deplibs_check_method=pass_all
15390  fi
15391  ;;
15392
15393gnu*)
15394  lt_cv_deplibs_check_method=pass_all
15395  ;;
15396
15397haiku*)
15398  lt_cv_deplibs_check_method=pass_all
15399  ;;
15400
15401hpux10.20* | hpux11*)
15402  lt_cv_file_magic_cmd=/usr/bin/file
15403  case $host_cpu in
15404  ia64*)
15405    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
15406    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
15407    ;;
15408  hppa*64*)
15409    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]'
15410    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
15411    ;;
15412  *)
15413    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
15414    lt_cv_file_magic_test_file=/usr/lib/libc.sl
15415    ;;
15416  esac
15417  ;;
15418
15419interix[3-9]*)
15420  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
15421  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
15422  ;;
15423
15424irix5* | irix6* | nonstopux*)
15425  case $LD in
15426  *-32|*"-32 ") libmagic=32-bit;;
15427  *-n32|*"-n32 ") libmagic=N32;;
15428  *-64|*"-64 ") libmagic=64-bit;;
15429  *) libmagic=never-match;;
15430  esac
15431  lt_cv_deplibs_check_method=pass_all
15432  ;;
15433
15434# This must be Linux ELF.
15435linux* | k*bsd*-gnu | kopensolaris*-gnu)
15436  lt_cv_deplibs_check_method=pass_all
15437  ;;
15438
15439netbsd*)
15440  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15441    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15442  else
15443    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
15444  fi
15445  ;;
15446
15447newos6*)
15448  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
15449  lt_cv_file_magic_cmd=/usr/bin/file
15450  lt_cv_file_magic_test_file=/usr/lib/libnls.so
15451  ;;
15452
15453*nto* | *qnx*)
15454  lt_cv_deplibs_check_method=pass_all
15455  ;;
15456
15457openbsd*)
15458  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15459    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
15460  else
15461    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15462  fi
15463  ;;
15464
15465osf3* | osf4* | osf5*)
15466  lt_cv_deplibs_check_method=pass_all
15467  ;;
15468
15469rdos*)
15470  lt_cv_deplibs_check_method=pass_all
15471  ;;
15472
15473solaris*)
15474  lt_cv_deplibs_check_method=pass_all
15475  ;;
15476
15477sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15478  lt_cv_deplibs_check_method=pass_all
15479  ;;
15480
15481sysv4 | sysv4.3*)
15482  case $host_vendor in
15483  motorola)
15484    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]'
15485    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
15486    ;;
15487  ncr)
15488    lt_cv_deplibs_check_method=pass_all
15489    ;;
15490  sequent)
15491    lt_cv_file_magic_cmd='/bin/file'
15492    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
15493    ;;
15494  sni)
15495    lt_cv_file_magic_cmd='/bin/file'
15496    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
15497    lt_cv_file_magic_test_file=/lib/libc.so
15498    ;;
15499  siemens)
15500    lt_cv_deplibs_check_method=pass_all
15501    ;;
15502  pc)
15503    lt_cv_deplibs_check_method=pass_all
15504    ;;
15505  esac
15506  ;;
15507
15508tpf*)
15509  lt_cv_deplibs_check_method=pass_all
15510  ;;
15511esac
15512
15513fi
15514{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
15515echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
15516file_magic_cmd=$lt_cv_file_magic_cmd
15517deplibs_check_method=$lt_cv_deplibs_check_method
15518test -z "$deplibs_check_method" && deplibs_check_method=unknown
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531if test -n "$ac_tool_prefix"; then
15532  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15533set dummy ${ac_tool_prefix}ar; ac_word=$2
15534{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15536if test "${ac_cv_prog_AR+set}" = set; then
15537  echo $ECHO_N "(cached) $ECHO_C" >&6
15538else
15539  if test -n "$AR"; then
15540  ac_cv_prog_AR="$AR" # Let the user override the test.
15541else
15542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15543for as_dir in $PATH
15544do
15545  IFS=$as_save_IFS
15546  test -z "$as_dir" && as_dir=.
15547  for ac_exec_ext in '' $ac_executable_extensions; do
15548  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15549    ac_cv_prog_AR="${ac_tool_prefix}ar"
15550    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15551    break 2
15552  fi
15553done
15554done
15555IFS=$as_save_IFS
15556
15557fi
15558fi
15559AR=$ac_cv_prog_AR
15560if test -n "$AR"; then
15561  { echo "$as_me:$LINENO: result: $AR" >&5
15562echo "${ECHO_T}$AR" >&6; }
15563else
15564  { echo "$as_me:$LINENO: result: no" >&5
15565echo "${ECHO_T}no" >&6; }
15566fi
15567
15568
15569fi
15570if test -z "$ac_cv_prog_AR"; then
15571  ac_ct_AR=$AR
15572  # Extract the first word of "ar", so it can be a program name with args.
15573set dummy ar; ac_word=$2
15574{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15576if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15577  echo $ECHO_N "(cached) $ECHO_C" >&6
15578else
15579  if test -n "$ac_ct_AR"; then
15580  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15581else
15582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15583for as_dir in $PATH
15584do
15585  IFS=$as_save_IFS
15586  test -z "$as_dir" && as_dir=.
15587  for ac_exec_ext in '' $ac_executable_extensions; do
15588  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15589    ac_cv_prog_ac_ct_AR="ar"
15590    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15591    break 2
15592  fi
15593done
15594done
15595IFS=$as_save_IFS
15596
15597fi
15598fi
15599ac_ct_AR=$ac_cv_prog_ac_ct_AR
15600if test -n "$ac_ct_AR"; then
15601  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15602echo "${ECHO_T}$ac_ct_AR" >&6; }
15603else
15604  { echo "$as_me:$LINENO: result: no" >&5
15605echo "${ECHO_T}no" >&6; }
15606fi
15607
15608  if test "x$ac_ct_AR" = x; then
15609    AR="false"
15610  else
15611    case $cross_compiling:$ac_tool_warned in
15612yes:)
15613{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15614whose name does not start with the host triplet.  If you think this
15615configuration is useful to you, please write to autoconf@gnu.org." >&5
15616echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15617whose name does not start with the host triplet.  If you think this
15618configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15619ac_tool_warned=yes ;;
15620esac
15621    AR=$ac_ct_AR
15622  fi
15623else
15624  AR="$ac_cv_prog_AR"
15625fi
15626
15627test -z "$AR" && AR=ar
15628test -z "$AR_FLAGS" && AR_FLAGS=cru
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640if test -n "$ac_tool_prefix"; then
15641  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15642set dummy ${ac_tool_prefix}strip; ac_word=$2
15643{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15645if test "${ac_cv_prog_STRIP+set}" = set; then
15646  echo $ECHO_N "(cached) $ECHO_C" >&6
15647else
15648  if test -n "$STRIP"; then
15649  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15650else
15651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15652for as_dir in $PATH
15653do
15654  IFS=$as_save_IFS
15655  test -z "$as_dir" && as_dir=.
15656  for ac_exec_ext in '' $ac_executable_extensions; do
15657  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15658    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15659    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15660    break 2
15661  fi
15662done
15663done
15664IFS=$as_save_IFS
15665
15666fi
15667fi
15668STRIP=$ac_cv_prog_STRIP
15669if test -n "$STRIP"; then
15670  { echo "$as_me:$LINENO: result: $STRIP" >&5
15671echo "${ECHO_T}$STRIP" >&6; }
15672else
15673  { echo "$as_me:$LINENO: result: no" >&5
15674echo "${ECHO_T}no" >&6; }
15675fi
15676
15677
15678fi
15679if test -z "$ac_cv_prog_STRIP"; then
15680  ac_ct_STRIP=$STRIP
15681  # Extract the first word of "strip", so it can be a program name with args.
15682set dummy strip; ac_word=$2
15683{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15685if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15686  echo $ECHO_N "(cached) $ECHO_C" >&6
15687else
15688  if test -n "$ac_ct_STRIP"; then
15689  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15690else
15691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15692for as_dir in $PATH
15693do
15694  IFS=$as_save_IFS
15695  test -z "$as_dir" && as_dir=.
15696  for ac_exec_ext in '' $ac_executable_extensions; do
15697  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15698    ac_cv_prog_ac_ct_STRIP="strip"
15699    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15700    break 2
15701  fi
15702done
15703done
15704IFS=$as_save_IFS
15705
15706fi
15707fi
15708ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15709if test -n "$ac_ct_STRIP"; then
15710  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15711echo "${ECHO_T}$ac_ct_STRIP" >&6; }
15712else
15713  { echo "$as_me:$LINENO: result: no" >&5
15714echo "${ECHO_T}no" >&6; }
15715fi
15716
15717  if test "x$ac_ct_STRIP" = x; then
15718    STRIP=":"
15719  else
15720    case $cross_compiling:$ac_tool_warned in
15721yes:)
15722{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15723whose name does not start with the host triplet.  If you think this
15724configuration is useful to you, please write to autoconf@gnu.org." >&5
15725echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15726whose name does not start with the host triplet.  If you think this
15727configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15728ac_tool_warned=yes ;;
15729esac
15730    STRIP=$ac_ct_STRIP
15731  fi
15732else
15733  STRIP="$ac_cv_prog_STRIP"
15734fi
15735
15736test -z "$STRIP" && STRIP=:
15737
15738
15739
15740
15741
15742
15743if test -n "$ac_tool_prefix"; then
15744  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15745set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15746{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15748if test "${ac_cv_prog_RANLIB+set}" = set; then
15749  echo $ECHO_N "(cached) $ECHO_C" >&6
15750else
15751  if test -n "$RANLIB"; then
15752  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15753else
15754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15755for as_dir in $PATH
15756do
15757  IFS=$as_save_IFS
15758  test -z "$as_dir" && as_dir=.
15759  for ac_exec_ext in '' $ac_executable_extensions; do
15760  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15761    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15762    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15763    break 2
15764  fi
15765done
15766done
15767IFS=$as_save_IFS
15768
15769fi
15770fi
15771RANLIB=$ac_cv_prog_RANLIB
15772if test -n "$RANLIB"; then
15773  { echo "$as_me:$LINENO: result: $RANLIB" >&5
15774echo "${ECHO_T}$RANLIB" >&6; }
15775else
15776  { echo "$as_me:$LINENO: result: no" >&5
15777echo "${ECHO_T}no" >&6; }
15778fi
15779
15780
15781fi
15782if test -z "$ac_cv_prog_RANLIB"; then
15783  ac_ct_RANLIB=$RANLIB
15784  # Extract the first word of "ranlib", so it can be a program name with args.
15785set dummy ranlib; ac_word=$2
15786{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15788if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15789  echo $ECHO_N "(cached) $ECHO_C" >&6
15790else
15791  if test -n "$ac_ct_RANLIB"; then
15792  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15793else
15794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15795for as_dir in $PATH
15796do
15797  IFS=$as_save_IFS
15798  test -z "$as_dir" && as_dir=.
15799  for ac_exec_ext in '' $ac_executable_extensions; do
15800  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15801    ac_cv_prog_ac_ct_RANLIB="ranlib"
15802    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15803    break 2
15804  fi
15805done
15806done
15807IFS=$as_save_IFS
15808
15809fi
15810fi
15811ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15812if test -n "$ac_ct_RANLIB"; then
15813  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15814echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
15815else
15816  { echo "$as_me:$LINENO: result: no" >&5
15817echo "${ECHO_T}no" >&6; }
15818fi
15819
15820  if test "x$ac_ct_RANLIB" = x; then
15821    RANLIB=":"
15822  else
15823    case $cross_compiling:$ac_tool_warned in
15824yes:)
15825{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15826whose name does not start with the host triplet.  If you think this
15827configuration is useful to you, please write to autoconf@gnu.org." >&5
15828echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15829whose name does not start with the host triplet.  If you think this
15830configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15831ac_tool_warned=yes ;;
15832esac
15833    RANLIB=$ac_ct_RANLIB
15834  fi
15835else
15836  RANLIB="$ac_cv_prog_RANLIB"
15837fi
15838
15839test -z "$RANLIB" && RANLIB=:
15840
15841
15842
15843
15844
15845
15846# Determine commands to create old-style static archives.
15847old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15848old_postinstall_cmds='chmod 644 $oldlib'
15849old_postuninstall_cmds=
15850
15851if test -n "$RANLIB"; then
15852  case $host_os in
15853  openbsd*)
15854    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15855    ;;
15856  *)
15857    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15858    ;;
15859  esac
15860  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15861fi
15862
15863case $host_os in
15864  darwin*)
15865    lock_old_archive_extraction=yes ;;
15866  *)
15867    lock_old_archive_extraction=no ;;
15868esac
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908# If no C compiler was specified, use CC.
15909LTCC=${LTCC-"$CC"}
15910
15911# If no C compiler flags were specified, use CFLAGS.
15912LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15913
15914# Allow CC to be a program name with arguments.
15915compiler=$CC
15916
15917
15918# Check for command to grab the raw symbol name followed by C symbol from nm.
15919{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
15920echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
15921if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15922  echo $ECHO_N "(cached) $ECHO_C" >&6
15923else
15924
15925# These are sane defaults that work on at least a few old systems.
15926# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
15927
15928# Character class describing NM global symbol codes.
15929symcode='[BCDEGRST]'
15930
15931# Regexp to match symbols that can be accessed directly from C.
15932sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15933
15934# Define system-specific variables.
15935case $host_os in
15936aix*)
15937  symcode='[BCDT]'
15938  ;;
15939cygwin* | mingw* | pw32* | cegcc*)
15940  symcode='[ABCDGISTW]'
15941  ;;
15942hpux*)
15943  if test "$host_cpu" = ia64; then
15944    symcode='[ABCDEGRST]'
15945  fi
15946  ;;
15947irix* | nonstopux*)
15948  symcode='[BCDEGRST]'
15949  ;;
15950osf*)
15951  symcode='[BCDEGQRST]'
15952  ;;
15953solaris*)
15954  symcode='[BDRT]'
15955  ;;
15956sco3.2v5*)
15957  symcode='[DT]'
15958  ;;
15959sysv4.2uw2*)
15960  symcode='[DT]'
15961  ;;
15962sysv5* | sco5v6* | unixware* | OpenUNIX*)
15963  symcode='[ABDT]'
15964  ;;
15965sysv4)
15966  symcode='[DFNSTU]'
15967  ;;
15968esac
15969
15970# If we're using GNU nm, then use its standard symbol codes.
15971case `$NM -V 2>&1` in
15972*GNU* | *'with BFD'*)
15973  symcode='[ABCDGIRSTW]' ;;
15974esac
15975
15976# Transform an extracted symbol line into a proper C declaration.
15977# Some systems (esp. on ia64) link data and code symbols differently,
15978# so use this general approach.
15979lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15980
15981# Transform an extracted symbol line into symbol name and symbol address
15982lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
15983lt_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'"
15984
15985# Handle CRLF in mingw tool chain
15986opt_cr=
15987case $build_os in
15988mingw*)
15989  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15990  ;;
15991esac
15992
15993# Try without a prefix underscore, then with it.
15994for ac_symprfx in "" "_"; do
15995
15996  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15997  symxfrm="\\1 $ac_symprfx\\2 \\2"
15998
15999  # Write the raw and C identifiers.
16000  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
16001    # Fake it for dumpbin and say T for any non-static function
16002    # and D for any global variable.
16003    # Also find C++ and __fastcall symbols from MSVC++,
16004    # which start with @ or ?.
16005    lt_cv_sys_global_symbol_pipe="$AWK '"\
16006"     {last_section=section; section=\$ 3};"\
16007"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
16008"     \$ 0!~/External *\|/{next};"\
16009"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
16010"     {if(hide[section]) next};"\
16011"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
16012"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
16013"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
16014"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
16015"     ' prfx=^$ac_symprfx"
16016  else
16017    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
16018  fi
16019
16020  # Check to see that the pipe works correctly.
16021  pipe_works=no
16022
16023  rm -r -f conftest*
16024  cat > conftest.$ac_ext <<_LT_EOF
16025#ifdef __cplusplus
16026extern "C" {
16027#endif
16028char nm_test_var;
16029void nm_test_func(void);
16030void nm_test_func(void){}
16031#ifdef __cplusplus
16032}
16033#endif
16034int main(){nm_test_var='a';nm_test_func();return(0);}
16035_LT_EOF
16036
16037  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16038  (eval $ac_compile) 2>&5
16039  ac_status=$?
16040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041  (exit $ac_status); }; then
16042    # Now try to grab the symbols.
16043    nlist=conftest.nm
16044    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\"") >&5
16045  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
16046  ac_status=$?
16047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048  (exit $ac_status); } && test -s "$nlist"; then
16049      # Try sorting and uniquifying the output.
16050      if sort "$nlist" | uniq > "$nlist"T; then
16051	mv -f "$nlist"T "$nlist"
16052      else
16053	rm -f "$nlist"T
16054      fi
16055
16056      # Make sure that we snagged all the symbols we need.
16057      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
16058	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
16059	  cat <<_LT_EOF > conftest.$ac_ext
16060#ifdef __cplusplus
16061extern "C" {
16062#endif
16063
16064_LT_EOF
16065	  # Now generate the symbol file.
16066	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
16067
16068	  cat <<_LT_EOF >> conftest.$ac_ext
16069
16070/* The mapping between symbol names and symbols.  */
16071const struct {
16072  const char *name;
16073  void       *address;
16074}
16075lt__PROGRAM__LTX_preloaded_symbols[] =
16076{
16077  { "@PROGRAM@", (void *) 0 },
16078_LT_EOF
16079	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
16080	  cat <<\_LT_EOF >> conftest.$ac_ext
16081  {0, (void *) 0}
16082};
16083
16084/* This works around a problem in FreeBSD linker */
16085#ifdef FREEBSD_WORKAROUND
16086static const void *lt_preloaded_setup() {
16087  return lt__PROGRAM__LTX_preloaded_symbols;
16088}
16089#endif
16090
16091#ifdef __cplusplus
16092}
16093#endif
16094_LT_EOF
16095	  # Now try linking the two files.
16096	  mv conftest.$ac_objext conftstm.$ac_objext
16097	  lt_save_LIBS="$LIBS"
16098	  lt_save_CFLAGS="$CFLAGS"
16099	  LIBS="conftstm.$ac_objext"
16100	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
16101	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16102  (eval $ac_link) 2>&5
16103  ac_status=$?
16104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105  (exit $ac_status); } && test -s conftest${ac_exeext}; then
16106	    pipe_works=yes
16107	  fi
16108	  LIBS="$lt_save_LIBS"
16109	  CFLAGS="$lt_save_CFLAGS"
16110	else
16111	  echo "cannot find nm_test_func in $nlist" >&5
16112	fi
16113      else
16114	echo "cannot find nm_test_var in $nlist" >&5
16115      fi
16116    else
16117      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
16118    fi
16119  else
16120    echo "$progname: failed program was:" >&5
16121    cat conftest.$ac_ext >&5
16122  fi
16123  rm -rf conftest* conftst*
16124
16125  # Do not use the global_symbol_pipe unless it works.
16126  if test "$pipe_works" = yes; then
16127    break
16128  else
16129    lt_cv_sys_global_symbol_pipe=
16130  fi
16131done
16132
16133fi
16134
16135if test -z "$lt_cv_sys_global_symbol_pipe"; then
16136  lt_cv_sys_global_symbol_to_cdecl=
16137fi
16138if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
16139  { echo "$as_me:$LINENO: result: failed" >&5
16140echo "${ECHO_T}failed" >&6; }
16141else
16142  { echo "$as_me:$LINENO: result: ok" >&5
16143echo "${ECHO_T}ok" >&6; }
16144fi
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167# Check whether --enable-libtool-lock was given.
16168if test "${enable_libtool_lock+set}" = set; then
16169  enableval=$enable_libtool_lock;
16170fi
16171
16172test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
16173
16174# Some flags need to be propagated to the compiler or linker for good
16175# libtool support.
16176case $host in
16177ia64-*-hpux*)
16178  # Find out which ABI we are using.
16179  echo 'int i;' > conftest.$ac_ext
16180  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16181  (eval $ac_compile) 2>&5
16182  ac_status=$?
16183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184  (exit $ac_status); }; then
16185    case `/usr/bin/file conftest.$ac_objext` in
16186      *ELF-32*)
16187	HPUX_IA64_MODE="32"
16188	;;
16189      *ELF-64*)
16190	HPUX_IA64_MODE="64"
16191	;;
16192    esac
16193  fi
16194  rm -rf conftest*
16195  ;;
16196*-*-irix6*)
16197  # Find out which ABI we are using.
16198  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
16199  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16200  (eval $ac_compile) 2>&5
16201  ac_status=$?
16202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203  (exit $ac_status); }; then
16204    if test "$lt_cv_prog_gnu_ld" = yes; then
16205      case `/usr/bin/file conftest.$ac_objext` in
16206	*32-bit*)
16207	  LD="${LD-ld} -melf32bsmip"
16208	  ;;
16209	*N32*)
16210	  LD="${LD-ld} -melf32bmipn32"
16211	  ;;
16212	*64-bit*)
16213	  LD="${LD-ld} -melf64bmip"
16214	;;
16215      esac
16216    else
16217      case `/usr/bin/file conftest.$ac_objext` in
16218	*32-bit*)
16219	  LD="${LD-ld} -32"
16220	  ;;
16221	*N32*)
16222	  LD="${LD-ld} -n32"
16223	  ;;
16224	*64-bit*)
16225	  LD="${LD-ld} -64"
16226	  ;;
16227      esac
16228    fi
16229  fi
16230  rm -rf conftest*
16231  ;;
16232
16233x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
16234s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
16235  # Find out which ABI we are using.
16236  echo 'int i;' > conftest.$ac_ext
16237  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16238  (eval $ac_compile) 2>&5
16239  ac_status=$?
16240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241  (exit $ac_status); }; then
16242    case `/usr/bin/file conftest.o` in
16243      *32-bit*)
16244	case $host in
16245	  x86_64-*kfreebsd*-gnu)
16246	    LD="${LD-ld} -m elf_i386_fbsd"
16247	    ;;
16248	  x86_64-*linux*)
16249	    LD="${LD-ld} -m elf_i386"
16250	    ;;
16251	  ppc64-*linux*|powerpc64-*linux*)
16252	    LD="${LD-ld} -m elf32ppclinux"
16253	    ;;
16254	  s390x-*linux*)
16255	    LD="${LD-ld} -m elf_s390"
16256	    ;;
16257	  sparc64-*linux*)
16258	    LD="${LD-ld} -m elf32_sparc"
16259	    ;;
16260	esac
16261	;;
16262      *64-bit*)
16263	case $host in
16264	  x86_64-*kfreebsd*-gnu)
16265	    LD="${LD-ld} -m elf_x86_64_fbsd"
16266	    ;;
16267	  x86_64-*linux*)
16268	    LD="${LD-ld} -m elf_x86_64"
16269	    ;;
16270	  ppc*-*linux*|powerpc*-*linux*)
16271	    LD="${LD-ld} -m elf64ppc"
16272	    ;;
16273	  s390*-*linux*|s390*-*tpf*)
16274	    LD="${LD-ld} -m elf64_s390"
16275	    ;;
16276	  sparc*-*linux*)
16277	    LD="${LD-ld} -m elf64_sparc"
16278	    ;;
16279	esac
16280	;;
16281    esac
16282  fi
16283  rm -rf conftest*
16284  ;;
16285
16286*-*-sco3.2v5*)
16287  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
16288  SAVE_CFLAGS="$CFLAGS"
16289  CFLAGS="$CFLAGS -belf"
16290  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
16291echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
16292if test "${lt_cv_cc_needs_belf+set}" = set; then
16293  echo $ECHO_N "(cached) $ECHO_C" >&6
16294else
16295  ac_ext=c
16296ac_cpp='$CPP $CPPFLAGS'
16297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16299ac_compiler_gnu=$ac_cv_c_compiler_gnu
16300
16301     cat >conftest.$ac_ext <<_ACEOF
16302/* confdefs.h.  */
16303_ACEOF
16304cat confdefs.h >>conftest.$ac_ext
16305cat >>conftest.$ac_ext <<_ACEOF
16306/* end confdefs.h.  */
16307
16308int
16309main ()
16310{
16311
16312  ;
16313  return 0;
16314}
16315_ACEOF
16316rm -f conftest.$ac_objext conftest$ac_exeext
16317if { (ac_try="$ac_link"
16318case "(($ac_try" in
16319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320  *) ac_try_echo=$ac_try;;
16321esac
16322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16323  (eval "$ac_link") 2>conftest.er1
16324  ac_status=$?
16325  grep -v '^ *+' conftest.er1 >conftest.err
16326  rm -f conftest.er1
16327  cat conftest.err >&5
16328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329  (exit $ac_status); } && {
16330	 test -z "$ac_c_werror_flag" ||
16331	 test ! -s conftest.err
16332       } && test -s conftest$ac_exeext &&
16333       $as_test_x conftest$ac_exeext; then
16334  lt_cv_cc_needs_belf=yes
16335else
16336  echo "$as_me: failed program was:" >&5
16337sed 's/^/| /' conftest.$ac_ext >&5
16338
16339	lt_cv_cc_needs_belf=no
16340fi
16341
16342rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16343      conftest$ac_exeext conftest.$ac_ext
16344     ac_ext=c
16345ac_cpp='$CPP $CPPFLAGS'
16346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16348ac_compiler_gnu=$ac_cv_c_compiler_gnu
16349
16350fi
16351{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
16352echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
16353  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
16354    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
16355    CFLAGS="$SAVE_CFLAGS"
16356  fi
16357  ;;
16358sparc*-*solaris*)
16359  # Find out which ABI we are using.
16360  echo 'int i;' > conftest.$ac_ext
16361  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16362  (eval $ac_compile) 2>&5
16363  ac_status=$?
16364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365  (exit $ac_status); }; then
16366    case `/usr/bin/file conftest.o` in
16367    *64-bit*)
16368      case $lt_cv_prog_gnu_ld in
16369      yes*) LD="${LD-ld} -m elf64_sparc" ;;
16370      *)
16371	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
16372	  LD="${LD-ld} -64"
16373	fi
16374	;;
16375      esac
16376      ;;
16377    esac
16378  fi
16379  rm -rf conftest*
16380  ;;
16381esac
16382
16383need_locks="$enable_libtool_lock"
16384
16385
16386  case $host_os in
16387    rhapsody* | darwin*)
16388    if test -n "$ac_tool_prefix"; then
16389  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
16390set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
16391{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16393if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
16394  echo $ECHO_N "(cached) $ECHO_C" >&6
16395else
16396  if test -n "$DSYMUTIL"; then
16397  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
16398else
16399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16400for as_dir in $PATH
16401do
16402  IFS=$as_save_IFS
16403  test -z "$as_dir" && as_dir=.
16404  for ac_exec_ext in '' $ac_executable_extensions; do
16405  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16406    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
16407    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16408    break 2
16409  fi
16410done
16411done
16412IFS=$as_save_IFS
16413
16414fi
16415fi
16416DSYMUTIL=$ac_cv_prog_DSYMUTIL
16417if test -n "$DSYMUTIL"; then
16418  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
16419echo "${ECHO_T}$DSYMUTIL" >&6; }
16420else
16421  { echo "$as_me:$LINENO: result: no" >&5
16422echo "${ECHO_T}no" >&6; }
16423fi
16424
16425
16426fi
16427if test -z "$ac_cv_prog_DSYMUTIL"; then
16428  ac_ct_DSYMUTIL=$DSYMUTIL
16429  # Extract the first word of "dsymutil", so it can be a program name with args.
16430set dummy dsymutil; ac_word=$2
16431{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16433if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
16434  echo $ECHO_N "(cached) $ECHO_C" >&6
16435else
16436  if test -n "$ac_ct_DSYMUTIL"; then
16437  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
16438else
16439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16440for as_dir in $PATH
16441do
16442  IFS=$as_save_IFS
16443  test -z "$as_dir" && as_dir=.
16444  for ac_exec_ext in '' $ac_executable_extensions; do
16445  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16446    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
16447    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16448    break 2
16449  fi
16450done
16451done
16452IFS=$as_save_IFS
16453
16454fi
16455fi
16456ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
16457if test -n "$ac_ct_DSYMUTIL"; then
16458  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
16459echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
16460else
16461  { echo "$as_me:$LINENO: result: no" >&5
16462echo "${ECHO_T}no" >&6; }
16463fi
16464
16465  if test "x$ac_ct_DSYMUTIL" = x; then
16466    DSYMUTIL=":"
16467  else
16468    case $cross_compiling:$ac_tool_warned in
16469yes:)
16470{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16471whose name does not start with the host triplet.  If you think this
16472configuration is useful to you, please write to autoconf@gnu.org." >&5
16473echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16474whose name does not start with the host triplet.  If you think this
16475configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16476ac_tool_warned=yes ;;
16477esac
16478    DSYMUTIL=$ac_ct_DSYMUTIL
16479  fi
16480else
16481  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
16482fi
16483
16484    if test -n "$ac_tool_prefix"; then
16485  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
16486set dummy ${ac_tool_prefix}nmedit; ac_word=$2
16487{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16489if test "${ac_cv_prog_NMEDIT+set}" = set; then
16490  echo $ECHO_N "(cached) $ECHO_C" >&6
16491else
16492  if test -n "$NMEDIT"; then
16493  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
16494else
16495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16496for as_dir in $PATH
16497do
16498  IFS=$as_save_IFS
16499  test -z "$as_dir" && as_dir=.
16500  for ac_exec_ext in '' $ac_executable_extensions; do
16501  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16502    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
16503    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16504    break 2
16505  fi
16506done
16507done
16508IFS=$as_save_IFS
16509
16510fi
16511fi
16512NMEDIT=$ac_cv_prog_NMEDIT
16513if test -n "$NMEDIT"; then
16514  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
16515echo "${ECHO_T}$NMEDIT" >&6; }
16516else
16517  { echo "$as_me:$LINENO: result: no" >&5
16518echo "${ECHO_T}no" >&6; }
16519fi
16520
16521
16522fi
16523if test -z "$ac_cv_prog_NMEDIT"; then
16524  ac_ct_NMEDIT=$NMEDIT
16525  # Extract the first word of "nmedit", so it can be a program name with args.
16526set dummy nmedit; ac_word=$2
16527{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16529if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
16530  echo $ECHO_N "(cached) $ECHO_C" >&6
16531else
16532  if test -n "$ac_ct_NMEDIT"; then
16533  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
16534else
16535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16536for as_dir in $PATH
16537do
16538  IFS=$as_save_IFS
16539  test -z "$as_dir" && as_dir=.
16540  for ac_exec_ext in '' $ac_executable_extensions; do
16541  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16542    ac_cv_prog_ac_ct_NMEDIT="nmedit"
16543    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16544    break 2
16545  fi
16546done
16547done
16548IFS=$as_save_IFS
16549
16550fi
16551fi
16552ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
16553if test -n "$ac_ct_NMEDIT"; then
16554  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
16555echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
16556else
16557  { echo "$as_me:$LINENO: result: no" >&5
16558echo "${ECHO_T}no" >&6; }
16559fi
16560
16561  if test "x$ac_ct_NMEDIT" = x; then
16562    NMEDIT=":"
16563  else
16564    case $cross_compiling:$ac_tool_warned in
16565yes:)
16566{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16567whose name does not start with the host triplet.  If you think this
16568configuration is useful to you, please write to autoconf@gnu.org." >&5
16569echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16570whose name does not start with the host triplet.  If you think this
16571configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16572ac_tool_warned=yes ;;
16573esac
16574    NMEDIT=$ac_ct_NMEDIT
16575  fi
16576else
16577  NMEDIT="$ac_cv_prog_NMEDIT"
16578fi
16579
16580    if test -n "$ac_tool_prefix"; then
16581  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
16582set dummy ${ac_tool_prefix}lipo; ac_word=$2
16583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16585if test "${ac_cv_prog_LIPO+set}" = set; then
16586  echo $ECHO_N "(cached) $ECHO_C" >&6
16587else
16588  if test -n "$LIPO"; then
16589  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
16590else
16591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16592for as_dir in $PATH
16593do
16594  IFS=$as_save_IFS
16595  test -z "$as_dir" && as_dir=.
16596  for ac_exec_ext in '' $ac_executable_extensions; do
16597  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16598    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
16599    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16600    break 2
16601  fi
16602done
16603done
16604IFS=$as_save_IFS
16605
16606fi
16607fi
16608LIPO=$ac_cv_prog_LIPO
16609if test -n "$LIPO"; then
16610  { echo "$as_me:$LINENO: result: $LIPO" >&5
16611echo "${ECHO_T}$LIPO" >&6; }
16612else
16613  { echo "$as_me:$LINENO: result: no" >&5
16614echo "${ECHO_T}no" >&6; }
16615fi
16616
16617
16618fi
16619if test -z "$ac_cv_prog_LIPO"; then
16620  ac_ct_LIPO=$LIPO
16621  # Extract the first word of "lipo", so it can be a program name with args.
16622set dummy lipo; ac_word=$2
16623{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16625if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
16626  echo $ECHO_N "(cached) $ECHO_C" >&6
16627else
16628  if test -n "$ac_ct_LIPO"; then
16629  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
16630else
16631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16632for as_dir in $PATH
16633do
16634  IFS=$as_save_IFS
16635  test -z "$as_dir" && as_dir=.
16636  for ac_exec_ext in '' $ac_executable_extensions; do
16637  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16638    ac_cv_prog_ac_ct_LIPO="lipo"
16639    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16640    break 2
16641  fi
16642done
16643done
16644IFS=$as_save_IFS
16645
16646fi
16647fi
16648ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
16649if test -n "$ac_ct_LIPO"; then
16650  { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
16651echo "${ECHO_T}$ac_ct_LIPO" >&6; }
16652else
16653  { echo "$as_me:$LINENO: result: no" >&5
16654echo "${ECHO_T}no" >&6; }
16655fi
16656
16657  if test "x$ac_ct_LIPO" = x; then
16658    LIPO=":"
16659  else
16660    case $cross_compiling:$ac_tool_warned in
16661yes:)
16662{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16663whose name does not start with the host triplet.  If you think this
16664configuration is useful to you, please write to autoconf@gnu.org." >&5
16665echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16666whose name does not start with the host triplet.  If you think this
16667configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16668ac_tool_warned=yes ;;
16669esac
16670    LIPO=$ac_ct_LIPO
16671  fi
16672else
16673  LIPO="$ac_cv_prog_LIPO"
16674fi
16675
16676    if test -n "$ac_tool_prefix"; then
16677  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
16678set dummy ${ac_tool_prefix}otool; ac_word=$2
16679{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16681if test "${ac_cv_prog_OTOOL+set}" = set; then
16682  echo $ECHO_N "(cached) $ECHO_C" >&6
16683else
16684  if test -n "$OTOOL"; then
16685  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
16686else
16687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16688for as_dir in $PATH
16689do
16690  IFS=$as_save_IFS
16691  test -z "$as_dir" && as_dir=.
16692  for ac_exec_ext in '' $ac_executable_extensions; do
16693  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16694    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
16695    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16696    break 2
16697  fi
16698done
16699done
16700IFS=$as_save_IFS
16701
16702fi
16703fi
16704OTOOL=$ac_cv_prog_OTOOL
16705if test -n "$OTOOL"; then
16706  { echo "$as_me:$LINENO: result: $OTOOL" >&5
16707echo "${ECHO_T}$OTOOL" >&6; }
16708else
16709  { echo "$as_me:$LINENO: result: no" >&5
16710echo "${ECHO_T}no" >&6; }
16711fi
16712
16713
16714fi
16715if test -z "$ac_cv_prog_OTOOL"; then
16716  ac_ct_OTOOL=$OTOOL
16717  # Extract the first word of "otool", so it can be a program name with args.
16718set dummy otool; ac_word=$2
16719{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16721if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
16722  echo $ECHO_N "(cached) $ECHO_C" >&6
16723else
16724  if test -n "$ac_ct_OTOOL"; then
16725  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16726else
16727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16728for as_dir in $PATH
16729do
16730  IFS=$as_save_IFS
16731  test -z "$as_dir" && as_dir=.
16732  for ac_exec_ext in '' $ac_executable_extensions; do
16733  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16734    ac_cv_prog_ac_ct_OTOOL="otool"
16735    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16736    break 2
16737  fi
16738done
16739done
16740IFS=$as_save_IFS
16741
16742fi
16743fi
16744ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16745if test -n "$ac_ct_OTOOL"; then
16746  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
16747echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
16748else
16749  { echo "$as_me:$LINENO: result: no" >&5
16750echo "${ECHO_T}no" >&6; }
16751fi
16752
16753  if test "x$ac_ct_OTOOL" = x; then
16754    OTOOL=":"
16755  else
16756    case $cross_compiling:$ac_tool_warned in
16757yes:)
16758{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16759whose name does not start with the host triplet.  If you think this
16760configuration is useful to you, please write to autoconf@gnu.org." >&5
16761echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16762whose name does not start with the host triplet.  If you think this
16763configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16764ac_tool_warned=yes ;;
16765esac
16766    OTOOL=$ac_ct_OTOOL
16767  fi
16768else
16769  OTOOL="$ac_cv_prog_OTOOL"
16770fi
16771
16772    if test -n "$ac_tool_prefix"; then
16773  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
16774set dummy ${ac_tool_prefix}otool64; ac_word=$2
16775{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16777if test "${ac_cv_prog_OTOOL64+set}" = set; then
16778  echo $ECHO_N "(cached) $ECHO_C" >&6
16779else
16780  if test -n "$OTOOL64"; then
16781  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16782else
16783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16784for as_dir in $PATH
16785do
16786  IFS=$as_save_IFS
16787  test -z "$as_dir" && as_dir=.
16788  for ac_exec_ext in '' $ac_executable_extensions; do
16789  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16790    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
16791    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16792    break 2
16793  fi
16794done
16795done
16796IFS=$as_save_IFS
16797
16798fi
16799fi
16800OTOOL64=$ac_cv_prog_OTOOL64
16801if test -n "$OTOOL64"; then
16802  { echo "$as_me:$LINENO: result: $OTOOL64" >&5
16803echo "${ECHO_T}$OTOOL64" >&6; }
16804else
16805  { echo "$as_me:$LINENO: result: no" >&5
16806echo "${ECHO_T}no" >&6; }
16807fi
16808
16809
16810fi
16811if test -z "$ac_cv_prog_OTOOL64"; then
16812  ac_ct_OTOOL64=$OTOOL64
16813  # Extract the first word of "otool64", so it can be a program name with args.
16814set dummy otool64; ac_word=$2
16815{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16817if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
16818  echo $ECHO_N "(cached) $ECHO_C" >&6
16819else
16820  if test -n "$ac_ct_OTOOL64"; then
16821  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16822else
16823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16824for as_dir in $PATH
16825do
16826  IFS=$as_save_IFS
16827  test -z "$as_dir" && as_dir=.
16828  for ac_exec_ext in '' $ac_executable_extensions; do
16829  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16830    ac_cv_prog_ac_ct_OTOOL64="otool64"
16831    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16832    break 2
16833  fi
16834done
16835done
16836IFS=$as_save_IFS
16837
16838fi
16839fi
16840ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16841if test -n "$ac_ct_OTOOL64"; then
16842  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
16843echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
16844else
16845  { echo "$as_me:$LINENO: result: no" >&5
16846echo "${ECHO_T}no" >&6; }
16847fi
16848
16849  if test "x$ac_ct_OTOOL64" = x; then
16850    OTOOL64=":"
16851  else
16852    case $cross_compiling:$ac_tool_warned in
16853yes:)
16854{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16855whose name does not start with the host triplet.  If you think this
16856configuration is useful to you, please write to autoconf@gnu.org." >&5
16857echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16858whose name does not start with the host triplet.  If you think this
16859configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16860ac_tool_warned=yes ;;
16861esac
16862    OTOOL64=$ac_ct_OTOOL64
16863  fi
16864else
16865  OTOOL64="$ac_cv_prog_OTOOL64"
16866fi
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
16895echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
16896if test "${lt_cv_apple_cc_single_mod+set}" = set; then
16897  echo $ECHO_N "(cached) $ECHO_C" >&6
16898else
16899  lt_cv_apple_cc_single_mod=no
16900      if test -z "${LT_MULTI_MODULE}"; then
16901	# By default we will add the -single_module flag. You can override
16902	# by either setting the environment variable LT_MULTI_MODULE
16903	# non-empty at configure time, or by adding -multi_module to the
16904	# link flags.
16905	rm -rf libconftest.dylib*
16906	echo "int foo(void){return 1;}" > conftest.c
16907	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16908-dynamiclib -Wl,-single_module conftest.c" >&5
16909	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16910	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16911        _lt_result=$?
16912	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16913	  lt_cv_apple_cc_single_mod=yes
16914	else
16915	  cat conftest.err >&5
16916	fi
16917	rm -rf libconftest.dylib*
16918	rm -f conftest.*
16919      fi
16920fi
16921{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
16922echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
16923    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
16924echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
16925if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
16926  echo $ECHO_N "(cached) $ECHO_C" >&6
16927else
16928  lt_cv_ld_exported_symbols_list=no
16929      save_LDFLAGS=$LDFLAGS
16930      echo "_main" > conftest.sym
16931      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16932      cat >conftest.$ac_ext <<_ACEOF
16933/* confdefs.h.  */
16934_ACEOF
16935cat confdefs.h >>conftest.$ac_ext
16936cat >>conftest.$ac_ext <<_ACEOF
16937/* end confdefs.h.  */
16938
16939int
16940main ()
16941{
16942
16943  ;
16944  return 0;
16945}
16946_ACEOF
16947rm -f conftest.$ac_objext conftest$ac_exeext
16948if { (ac_try="$ac_link"
16949case "(($ac_try" in
16950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16951  *) ac_try_echo=$ac_try;;
16952esac
16953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16954  (eval "$ac_link") 2>conftest.er1
16955  ac_status=$?
16956  grep -v '^ *+' conftest.er1 >conftest.err
16957  rm -f conftest.er1
16958  cat conftest.err >&5
16959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960  (exit $ac_status); } && {
16961	 test -z "$ac_c_werror_flag" ||
16962	 test ! -s conftest.err
16963       } && test -s conftest$ac_exeext &&
16964       $as_test_x conftest$ac_exeext; then
16965  lt_cv_ld_exported_symbols_list=yes
16966else
16967  echo "$as_me: failed program was:" >&5
16968sed 's/^/| /' conftest.$ac_ext >&5
16969
16970	lt_cv_ld_exported_symbols_list=no
16971fi
16972
16973rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16974      conftest$ac_exeext conftest.$ac_ext
16975	LDFLAGS="$save_LDFLAGS"
16976
16977fi
16978{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
16979echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
16980    { echo "$as_me:$LINENO: checking for -force_load linker flag" >&5
16981echo $ECHO_N "checking for -force_load linker flag... $ECHO_C" >&6; }
16982if test "${lt_cv_ld_force_load+set}" = set; then
16983  echo $ECHO_N "(cached) $ECHO_C" >&6
16984else
16985  lt_cv_ld_force_load=no
16986      cat > conftest.c << _LT_EOF
16987int forced_loaded() { return 2;}
16988_LT_EOF
16989      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
16990      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16991      echo "$AR cru libconftest.a conftest.o" >&5
16992      $AR cru libconftest.a conftest.o 2>&5
16993      echo "$RANLIB libconftest.a" >&5
16994      $RANLIB libconftest.a 2>&5
16995      cat > conftest.c << _LT_EOF
16996int main() { return 0;}
16997_LT_EOF
16998      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
16999      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
17000      _lt_result=$?
17001      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
17002	lt_cv_ld_force_load=yes
17003      else
17004	cat conftest.err >&5
17005      fi
17006        rm -f conftest.err libconftest.a conftest conftest.c
17007        rm -rf conftest.dSYM
17008
17009fi
17010{ echo "$as_me:$LINENO: result: $lt_cv_ld_force_load" >&5
17011echo "${ECHO_T}$lt_cv_ld_force_load" >&6; }
17012    case $host_os in
17013    rhapsody* | darwin1.[012])
17014      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
17015    darwin1.*)
17016      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
17017    darwin*) # darwin 5.x on
17018      # if running on 10.5 or later, the deployment target defaults
17019      # to the OS version, if on x86, and 10.4, the deployment
17020      # target defaults to 10.4. Don't you love it?
17021      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
17022	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
17023	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
17024	10.[012]*)
17025	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
17026	10.*)
17027	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
17028      esac
17029    ;;
17030  esac
17031    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
17032      _lt_dar_single_mod='$single_module'
17033    fi
17034    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
17035      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
17036    else
17037      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
17038    fi
17039    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
17040      _lt_dsymutil='~$DSYMUTIL $lib || :'
17041    else
17042      _lt_dsymutil=
17043    fi
17044    ;;
17045  esac
17046
17047
17048for ac_header in dlfcn.h
17049do
17050as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17051{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17052echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17053if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17054  echo $ECHO_N "(cached) $ECHO_C" >&6
17055else
17056  cat >conftest.$ac_ext <<_ACEOF
17057/* confdefs.h.  */
17058_ACEOF
17059cat confdefs.h >>conftest.$ac_ext
17060cat >>conftest.$ac_ext <<_ACEOF
17061/* end confdefs.h.  */
17062$ac_includes_default
17063
17064#include <$ac_header>
17065_ACEOF
17066rm -f conftest.$ac_objext
17067if { (ac_try="$ac_compile"
17068case "(($ac_try" in
17069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17070  *) ac_try_echo=$ac_try;;
17071esac
17072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17073  (eval "$ac_compile") 2>conftest.er1
17074  ac_status=$?
17075  grep -v '^ *+' conftest.er1 >conftest.err
17076  rm -f conftest.er1
17077  cat conftest.err >&5
17078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079  (exit $ac_status); } && {
17080	 test -z "$ac_c_werror_flag" ||
17081	 test ! -s conftest.err
17082       } && test -s conftest.$ac_objext; then
17083  eval "$as_ac_Header=yes"
17084else
17085  echo "$as_me: failed program was:" >&5
17086sed 's/^/| /' conftest.$ac_ext >&5
17087
17088	eval "$as_ac_Header=no"
17089fi
17090
17091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17092fi
17093ac_res=`eval echo '${'$as_ac_Header'}'`
17094	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17095echo "${ECHO_T}$ac_res" >&6; }
17096if test `eval echo '${'$as_ac_Header'}'` = yes; then
17097  cat >>confdefs.h <<_ACEOF
17098#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17099_ACEOF
17100
17101fi
17102
17103done
17104
17105
17106
17107
17108
17109# Set options
17110
17111
17112
17113        enable_dlopen=no
17114
17115
17116
17117            # Check whether --enable-shared was given.
17118if test "${enable_shared+set}" = set; then
17119  enableval=$enable_shared; p=${PACKAGE-default}
17120    case $enableval in
17121    yes) enable_shared=yes ;;
17122    no) enable_shared=no ;;
17123    *)
17124      enable_shared=no
17125      # Look at the argument we got.  We use all the common list separators.
17126      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17127      for pkg in $enableval; do
17128	IFS="$lt_save_ifs"
17129	if test "X$pkg" = "X$p"; then
17130	  enable_shared=yes
17131	fi
17132      done
17133      IFS="$lt_save_ifs"
17134      ;;
17135    esac
17136else
17137  enable_shared=yes
17138fi
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150# Check whether --with-pic was given.
17151if test "${with_pic+set}" = set; then
17152  withval=$with_pic; pic_mode="$withval"
17153else
17154  pic_mode=default
17155fi
17156
17157
17158test -z "$pic_mode" && pic_mode=default
17159
17160
17161
17162
17163
17164
17165
17166  # Check whether --enable-fast-install was given.
17167if test "${enable_fast_install+set}" = set; then
17168  enableval=$enable_fast_install; p=${PACKAGE-default}
17169    case $enableval in
17170    yes) enable_fast_install=yes ;;
17171    no) enable_fast_install=no ;;
17172    *)
17173      enable_fast_install=no
17174      # Look at the argument we got.  We use all the common list separators.
17175      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17176      for pkg in $enableval; do
17177	IFS="$lt_save_ifs"
17178	if test "X$pkg" = "X$p"; then
17179	  enable_fast_install=yes
17180	fi
17181      done
17182      IFS="$lt_save_ifs"
17183      ;;
17184    esac
17185else
17186  enable_fast_install=yes
17187fi
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199# This can be used to rebuild libtool when needed
17200LIBTOOL_DEPS="$ltmain"
17201
17202# Always use our own libtool.
17203LIBTOOL='$(SHELL) $(top_builddir)/libtool'
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230test -z "$LN_S" && LN_S="ln -s"
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245if test -n "${ZSH_VERSION+set}" ; then
17246   setopt NO_GLOB_SUBST
17247fi
17248
17249{ echo "$as_me:$LINENO: checking for objdir" >&5
17250echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
17251if test "${lt_cv_objdir+set}" = set; then
17252  echo $ECHO_N "(cached) $ECHO_C" >&6
17253else
17254  rm -f .libs 2>/dev/null
17255mkdir .libs 2>/dev/null
17256if test -d .libs; then
17257  lt_cv_objdir=.libs
17258else
17259  # MS-DOS does not allow filenames that begin with a dot.
17260  lt_cv_objdir=_libs
17261fi
17262rmdir .libs 2>/dev/null
17263fi
17264{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
17265echo "${ECHO_T}$lt_cv_objdir" >&6; }
17266objdir=$lt_cv_objdir
17267
17268
17269
17270
17271
17272cat >>confdefs.h <<_ACEOF
17273#define LT_OBJDIR "$lt_cv_objdir/"
17274_ACEOF
17275
17276
17277
17278
17279case $host_os in
17280aix3*)
17281  # AIX sometimes has problems with the GCC collect2 program.  For some
17282  # reason, if we set the COLLECT_NAMES environment variable, the problems
17283  # vanish in a puff of smoke.
17284  if test "X${COLLECT_NAMES+set}" != Xset; then
17285    COLLECT_NAMES=
17286    export COLLECT_NAMES
17287  fi
17288  ;;
17289esac
17290
17291# Global variables:
17292ofile=libtool
17293can_build_shared=yes
17294
17295# All known linkers require a `.a' archive for static linking (except MSVC,
17296# which needs '.lib').
17297libext=a
17298
17299with_gnu_ld="$lt_cv_prog_gnu_ld"
17300
17301old_CC="$CC"
17302old_CFLAGS="$CFLAGS"
17303
17304# Set sane defaults for various variables
17305test -z "$CC" && CC=cc
17306test -z "$LTCC" && LTCC=$CC
17307test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
17308test -z "$LD" && LD=ld
17309test -z "$ac_objext" && ac_objext=o
17310
17311for cc_temp in $compiler""; do
17312  case $cc_temp in
17313    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17314    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17315    \-*) ;;
17316    *) break;;
17317  esac
17318done
17319cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17320
17321
17322# Only perform the check for file, if the check method requires it
17323test -z "$MAGIC_CMD" && MAGIC_CMD=file
17324case $deplibs_check_method in
17325file_magic*)
17326  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
17327    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
17328echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
17329if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
17330  echo $ECHO_N "(cached) $ECHO_C" >&6
17331else
17332  case $MAGIC_CMD in
17333[\\/*] |  ?:[\\/]*)
17334  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
17335  ;;
17336*)
17337  lt_save_MAGIC_CMD="$MAGIC_CMD"
17338  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17339  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
17340  for ac_dir in $ac_dummy; do
17341    IFS="$lt_save_ifs"
17342    test -z "$ac_dir" && ac_dir=.
17343    if test -f $ac_dir/${ac_tool_prefix}file; then
17344      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
17345      if test -n "$file_magic_test_file"; then
17346	case $deplibs_check_method in
17347	"file_magic "*)
17348	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
17349	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17350	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
17351	    $EGREP "$file_magic_regex" > /dev/null; then
17352	    :
17353	  else
17354	    cat <<_LT_EOF 1>&2
17355
17356*** Warning: the command libtool uses to detect shared libraries,
17357*** $file_magic_cmd, produces output that libtool cannot recognize.
17358*** The result is that libtool may fail to recognize shared libraries
17359*** as such.  This will affect the creation of libtool libraries that
17360*** depend on shared libraries, but programs linked with such libtool
17361*** libraries will work regardless of this problem.  Nevertheless, you
17362*** may want to report the problem to your system manager and/or to
17363*** bug-libtool@gnu.org
17364
17365_LT_EOF
17366	  fi ;;
17367	esac
17368      fi
17369      break
17370    fi
17371  done
17372  IFS="$lt_save_ifs"
17373  MAGIC_CMD="$lt_save_MAGIC_CMD"
17374  ;;
17375esac
17376fi
17377
17378MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17379if test -n "$MAGIC_CMD"; then
17380  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
17381echo "${ECHO_T}$MAGIC_CMD" >&6; }
17382else
17383  { echo "$as_me:$LINENO: result: no" >&5
17384echo "${ECHO_T}no" >&6; }
17385fi
17386
17387
17388
17389
17390
17391if test -z "$lt_cv_path_MAGIC_CMD"; then
17392  if test -n "$ac_tool_prefix"; then
17393    { echo "$as_me:$LINENO: checking for file" >&5
17394echo $ECHO_N "checking for file... $ECHO_C" >&6; }
17395if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
17396  echo $ECHO_N "(cached) $ECHO_C" >&6
17397else
17398  case $MAGIC_CMD in
17399[\\/*] |  ?:[\\/]*)
17400  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
17401  ;;
17402*)
17403  lt_save_MAGIC_CMD="$MAGIC_CMD"
17404  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17405  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
17406  for ac_dir in $ac_dummy; do
17407    IFS="$lt_save_ifs"
17408    test -z "$ac_dir" && ac_dir=.
17409    if test -f $ac_dir/file; then
17410      lt_cv_path_MAGIC_CMD="$ac_dir/file"
17411      if test -n "$file_magic_test_file"; then
17412	case $deplibs_check_method in
17413	"file_magic "*)
17414	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
17415	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17416	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
17417	    $EGREP "$file_magic_regex" > /dev/null; then
17418	    :
17419	  else
17420	    cat <<_LT_EOF 1>&2
17421
17422*** Warning: the command libtool uses to detect shared libraries,
17423*** $file_magic_cmd, produces output that libtool cannot recognize.
17424*** The result is that libtool may fail to recognize shared libraries
17425*** as such.  This will affect the creation of libtool libraries that
17426*** depend on shared libraries, but programs linked with such libtool
17427*** libraries will work regardless of this problem.  Nevertheless, you
17428*** may want to report the problem to your system manager and/or to
17429*** bug-libtool@gnu.org
17430
17431_LT_EOF
17432	  fi ;;
17433	esac
17434      fi
17435      break
17436    fi
17437  done
17438  IFS="$lt_save_ifs"
17439  MAGIC_CMD="$lt_save_MAGIC_CMD"
17440  ;;
17441esac
17442fi
17443
17444MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17445if test -n "$MAGIC_CMD"; then
17446  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
17447echo "${ECHO_T}$MAGIC_CMD" >&6; }
17448else
17449  { echo "$as_me:$LINENO: result: no" >&5
17450echo "${ECHO_T}no" >&6; }
17451fi
17452
17453
17454  else
17455    MAGIC_CMD=:
17456  fi
17457fi
17458
17459  fi
17460  ;;
17461esac
17462
17463# Use C for the default configuration in the libtool script
17464
17465lt_save_CC="$CC"
17466ac_ext=c
17467ac_cpp='$CPP $CPPFLAGS'
17468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17470ac_compiler_gnu=$ac_cv_c_compiler_gnu
17471
17472
17473# Source file extension for C test sources.
17474ac_ext=c
17475
17476# Object file extension for compiled C test sources.
17477objext=o
17478objext=$objext
17479
17480# Code to be used in simple compile tests
17481lt_simple_compile_test_code="int some_variable = 0;"
17482
17483# Code to be used in simple link tests
17484lt_simple_link_test_code='int main(){return(0);}'
17485
17486
17487
17488
17489
17490
17491
17492# If no C compiler was specified, use CC.
17493LTCC=${LTCC-"$CC"}
17494
17495# If no C compiler flags were specified, use CFLAGS.
17496LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17497
17498# Allow CC to be a program name with arguments.
17499compiler=$CC
17500
17501# Save the default compiler, since it gets overwritten when the other
17502# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
17503compiler_DEFAULT=$CC
17504
17505# save warnings/boilerplate of simple test code
17506ac_outfile=conftest.$ac_objext
17507echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17508eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17509_lt_compiler_boilerplate=`cat conftest.err`
17510$RM -r conftest*
17511
17512ac_outfile=conftest.$ac_objext
17513echo "$lt_simple_link_test_code" >conftest.$ac_ext
17514eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17515_lt_linker_boilerplate=`cat conftest.err`
17516$RM -r conftest*
17517
17518
17519## CAVEAT EMPTOR:
17520## There is no encapsulation within the following macros, do not change
17521## the running order or otherwise move them around unless you know exactly
17522## what you are doing...
17523if test -n "$compiler"; then
17524
17525lt_prog_compiler_no_builtin_flag=
17526
17527if test "$GCC" = yes; then
17528  case $cc_basename in
17529  nvcc*)
17530    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
17531  *)
17532    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
17533  esac
17534
17535  { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17536echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17537if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17538  echo $ECHO_N "(cached) $ECHO_C" >&6
17539else
17540  lt_cv_prog_compiler_rtti_exceptions=no
17541   ac_outfile=conftest.$ac_objext
17542   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17543   lt_compiler_flag="-fno-rtti -fno-exceptions"
17544   # Insert the option either (1) after the last *FLAGS variable, or
17545   # (2) before a word containing "conftest.", or (3) at the end.
17546   # Note that $ac_compile itself does not contain backslashes and begins
17547   # with a dollar sign (not a hyphen), so the echo should work correctly.
17548   # The option is referenced via a variable to avoid confusing sed.
17549   lt_compile=`echo "$ac_compile" | $SED \
17550   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17551   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17552   -e 's:$: $lt_compiler_flag:'`
17553   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17554   (eval "$lt_compile" 2>conftest.err)
17555   ac_status=$?
17556   cat conftest.err >&5
17557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558   if (exit $ac_status) && test -s "$ac_outfile"; then
17559     # The compiler can only warn and ignore the option if not recognized
17560     # So say no if there are warnings other than the usual output.
17561     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17562     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17563     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17564       lt_cv_prog_compiler_rtti_exceptions=yes
17565     fi
17566   fi
17567   $RM -r conftest*
17568
17569fi
17570{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17571echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17572
17573if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17574    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
17575else
17576    :
17577fi
17578
17579fi
17580
17581
17582
17583
17584
17585
17586  lt_prog_compiler_wl=
17587lt_prog_compiler_pic=
17588lt_prog_compiler_static=
17589
17590{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17591echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17592
17593  if test "$GCC" = yes; then
17594    lt_prog_compiler_wl='-Wl,'
17595    lt_prog_compiler_static='-static'
17596
17597    case $host_os in
17598      aix*)
17599      # All AIX code is PIC.
17600      if test "$host_cpu" = ia64; then
17601	# AIX 5 now supports IA64 processor
17602	lt_prog_compiler_static='-Bstatic'
17603      fi
17604      ;;
17605
17606    amigaos*)
17607      case $host_cpu in
17608      powerpc)
17609            # see comment about AmigaOS4 .so support
17610            lt_prog_compiler_pic='-fPIC'
17611        ;;
17612      m68k)
17613            # FIXME: we need at least 68020 code to build shared libraries, but
17614            # adding the `-m68020' flag to GCC prevents building anything better,
17615            # like `-m68040'.
17616            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
17617        ;;
17618      esac
17619      ;;
17620
17621    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17622      # PIC is the default for these OSes.
17623      ;;
17624
17625    mingw* | cygwin* | pw32* | os2* | cegcc*)
17626      # This hack is so that the source file can tell whether it is being
17627      # built for inclusion in a dll (and should export symbols for example).
17628      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17629      # (--disable-auto-import) libraries
17630      lt_prog_compiler_pic='-DDLL_EXPORT'
17631      ;;
17632
17633    darwin* | rhapsody*)
17634      # PIC is the default on this platform
17635      # Common symbols not allowed in MH_DYLIB files
17636      lt_prog_compiler_pic='-fno-common'
17637      ;;
17638
17639    haiku*)
17640      # PIC is the default for Haiku.
17641      # The "-static" flag exists, but is broken.
17642      lt_prog_compiler_static=
17643      ;;
17644
17645    hpux*)
17646      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17647      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17648      # sets the default TLS model and affects inlining.
17649      case $host_cpu in
17650      hppa*64*)
17651	# +Z the default
17652	;;
17653      *)
17654	lt_prog_compiler_pic='-fPIC'
17655	;;
17656      esac
17657      ;;
17658
17659    interix[3-9]*)
17660      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17661      # Instead, we relocate shared libraries at runtime.
17662      ;;
17663
17664    msdosdjgpp*)
17665      # Just because we use GCC doesn't mean we suddenly get shared libraries
17666      # on systems that don't support them.
17667      lt_prog_compiler_can_build_shared=no
17668      enable_shared=no
17669      ;;
17670
17671    *nto* | *qnx*)
17672      # QNX uses GNU C++, but need to define -shared option too, otherwise
17673      # it will coredump.
17674      lt_prog_compiler_pic='-fPIC -shared'
17675      ;;
17676
17677    sysv4*MP*)
17678      if test -d /usr/nec; then
17679	lt_prog_compiler_pic=-Kconform_pic
17680      fi
17681      ;;
17682
17683    *)
17684      lt_prog_compiler_pic='-fPIC'
17685      ;;
17686    esac
17687
17688    case $cc_basename in
17689    nvcc*) # Cuda Compiler Driver 2.2
17690      lt_prog_compiler_wl='-Xlinker '
17691      lt_prog_compiler_pic='-Xcompiler -fPIC'
17692      ;;
17693    esac
17694  else
17695    # PORTME Check for flag to pass linker flags through the system compiler.
17696    case $host_os in
17697    aix*)
17698      lt_prog_compiler_wl='-Wl,'
17699      if test "$host_cpu" = ia64; then
17700	# AIX 5 now supports IA64 processor
17701	lt_prog_compiler_static='-Bstatic'
17702      else
17703	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
17704      fi
17705      ;;
17706
17707    mingw* | cygwin* | pw32* | os2* | cegcc*)
17708      # This hack is so that the source file can tell whether it is being
17709      # built for inclusion in a dll (and should export symbols for example).
17710      lt_prog_compiler_pic='-DDLL_EXPORT'
17711      ;;
17712
17713    hpux9* | hpux10* | hpux11*)
17714      lt_prog_compiler_wl='-Wl,'
17715      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17716      # not for PA HP-UX.
17717      case $host_cpu in
17718      hppa*64*|ia64*)
17719	# +Z the default
17720	;;
17721      *)
17722	lt_prog_compiler_pic='+Z'
17723	;;
17724      esac
17725      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17726      lt_prog_compiler_static='${wl}-a ${wl}archive'
17727      ;;
17728
17729    irix5* | irix6* | nonstopux*)
17730      lt_prog_compiler_wl='-Wl,'
17731      # PIC (with -KPIC) is the default.
17732      lt_prog_compiler_static='-non_shared'
17733      ;;
17734
17735    linux* | k*bsd*-gnu | kopensolaris*-gnu)
17736      case $cc_basename in
17737      # old Intel for x86_64 which still supported -KPIC.
17738      ecc*)
17739	lt_prog_compiler_wl='-Wl,'
17740	lt_prog_compiler_pic='-KPIC'
17741	lt_prog_compiler_static='-static'
17742        ;;
17743      # icc used to be incompatible with GCC.
17744      # ICC 10 doesn't accept -KPIC any more.
17745      icc* | ifort*)
17746	lt_prog_compiler_wl='-Wl,'
17747	lt_prog_compiler_pic='-fPIC'
17748	lt_prog_compiler_static='-static'
17749        ;;
17750      # Lahey Fortran 8.1.
17751      lf95*)
17752	lt_prog_compiler_wl='-Wl,'
17753	lt_prog_compiler_pic='--shared'
17754	lt_prog_compiler_static='--static'
17755	;;
17756      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17757        # Portland Group compilers (*not* the Pentium gcc compiler,
17758	# which looks to be a dead project)
17759	lt_prog_compiler_wl='-Wl,'
17760	lt_prog_compiler_pic='-fpic'
17761	lt_prog_compiler_static='-Bstatic'
17762        ;;
17763      ccc*)
17764        lt_prog_compiler_wl='-Wl,'
17765        # All Alpha code is PIC.
17766        lt_prog_compiler_static='-non_shared'
17767        ;;
17768      xl* | bgxl* | bgf* | mpixl*)
17769	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17770	lt_prog_compiler_wl='-Wl,'
17771	lt_prog_compiler_pic='-qpic'
17772	lt_prog_compiler_static='-qstaticlink'
17773	;;
17774      *)
17775	case `$CC -V 2>&1 | sed 5q` in
17776	*Sun\ F* | *Sun*Fortran*)
17777	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17778	  lt_prog_compiler_pic='-KPIC'
17779	  lt_prog_compiler_static='-Bstatic'
17780	  lt_prog_compiler_wl=''
17781	  ;;
17782	*Sun\ C*)
17783	  # Sun C 5.9
17784	  lt_prog_compiler_pic='-KPIC'
17785	  lt_prog_compiler_static='-Bstatic'
17786	  lt_prog_compiler_wl='-Wl,'
17787	  ;;
17788	esac
17789	;;
17790      esac
17791      ;;
17792
17793    newsos6)
17794      lt_prog_compiler_pic='-KPIC'
17795      lt_prog_compiler_static='-Bstatic'
17796      ;;
17797
17798    *nto* | *qnx*)
17799      # QNX uses GNU C++, but need to define -shared option too, otherwise
17800      # it will coredump.
17801      lt_prog_compiler_pic='-fPIC -shared'
17802      ;;
17803
17804    osf3* | osf4* | osf5*)
17805      lt_prog_compiler_wl='-Wl,'
17806      # All OSF/1 code is PIC.
17807      lt_prog_compiler_static='-non_shared'
17808      ;;
17809
17810    rdos*)
17811      lt_prog_compiler_static='-non_shared'
17812      ;;
17813
17814    solaris*)
17815      lt_prog_compiler_pic='-KPIC'
17816      lt_prog_compiler_static='-Bstatic'
17817      case $cc_basename in
17818      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
17819	lt_prog_compiler_wl='-Qoption ld ';;
17820      *)
17821	lt_prog_compiler_wl='-Wl,';;
17822      esac
17823      ;;
17824
17825    sunos4*)
17826      lt_prog_compiler_wl='-Qoption ld '
17827      lt_prog_compiler_pic='-PIC'
17828      lt_prog_compiler_static='-Bstatic'
17829      ;;
17830
17831    sysv4 | sysv4.2uw2* | sysv4.3*)
17832      lt_prog_compiler_wl='-Wl,'
17833      lt_prog_compiler_pic='-KPIC'
17834      lt_prog_compiler_static='-Bstatic'
17835      ;;
17836
17837    sysv4*MP*)
17838      if test -d /usr/nec ;then
17839	lt_prog_compiler_pic='-Kconform_pic'
17840	lt_prog_compiler_static='-Bstatic'
17841      fi
17842      ;;
17843
17844    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17845      lt_prog_compiler_wl='-Wl,'
17846      lt_prog_compiler_pic='-KPIC'
17847      lt_prog_compiler_static='-Bstatic'
17848      ;;
17849
17850    unicos*)
17851      lt_prog_compiler_wl='-Wl,'
17852      lt_prog_compiler_can_build_shared=no
17853      ;;
17854
17855    uts4*)
17856      lt_prog_compiler_pic='-pic'
17857      lt_prog_compiler_static='-Bstatic'
17858      ;;
17859
17860    *)
17861      lt_prog_compiler_can_build_shared=no
17862      ;;
17863    esac
17864  fi
17865
17866case $host_os in
17867  # For platforms which do not support PIC, -DPIC is meaningless:
17868  *djgpp*)
17869    lt_prog_compiler_pic=
17870    ;;
17871  *)
17872    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17873    ;;
17874esac
17875{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
17876echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
17877
17878
17879
17880
17881
17882
17883#
17884# Check to make sure the PIC flag actually works.
17885#
17886if test -n "$lt_prog_compiler_pic"; then
17887  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17888echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
17889if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
17890  echo $ECHO_N "(cached) $ECHO_C" >&6
17891else
17892  lt_cv_prog_compiler_pic_works=no
17893   ac_outfile=conftest.$ac_objext
17894   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17895   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17896   # Insert the option either (1) after the last *FLAGS variable, or
17897   # (2) before a word containing "conftest.", or (3) at the end.
17898   # Note that $ac_compile itself does not contain backslashes and begins
17899   # with a dollar sign (not a hyphen), so the echo should work correctly.
17900   # The option is referenced via a variable to avoid confusing sed.
17901   lt_compile=`echo "$ac_compile" | $SED \
17902   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17903   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17904   -e 's:$: $lt_compiler_flag:'`
17905   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17906   (eval "$lt_compile" 2>conftest.err)
17907   ac_status=$?
17908   cat conftest.err >&5
17909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910   if (exit $ac_status) && test -s "$ac_outfile"; then
17911     # The compiler can only warn and ignore the option if not recognized
17912     # So say no if there are warnings other than the usual output.
17913     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17914     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17915     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17916       lt_cv_prog_compiler_pic_works=yes
17917     fi
17918   fi
17919   $RM -r conftest*
17920
17921fi
17922{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
17923echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
17924
17925if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17926    case $lt_prog_compiler_pic in
17927     "" | " "*) ;;
17928     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17929     esac
17930else
17931    lt_prog_compiler_pic=
17932     lt_prog_compiler_can_build_shared=no
17933fi
17934
17935fi
17936
17937
17938
17939
17940
17941
17942#
17943# Check to make sure the static flag actually works.
17944#
17945wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17946{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17947echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17948if test "${lt_cv_prog_compiler_static_works+set}" = set; then
17949  echo $ECHO_N "(cached) $ECHO_C" >&6
17950else
17951  lt_cv_prog_compiler_static_works=no
17952   save_LDFLAGS="$LDFLAGS"
17953   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17954   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17955   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17956     # The linker can only warn and ignore the option if not recognized
17957     # So say no if there are warnings
17958     if test -s conftest.err; then
17959       # Append any errors to the config.log.
17960       cat conftest.err 1>&5
17961       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17962       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17963       if diff conftest.exp conftest.er2 >/dev/null; then
17964         lt_cv_prog_compiler_static_works=yes
17965       fi
17966     else
17967       lt_cv_prog_compiler_static_works=yes
17968     fi
17969   fi
17970   $RM -r conftest*
17971   LDFLAGS="$save_LDFLAGS"
17972
17973fi
17974{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
17975echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
17976
17977if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17978    :
17979else
17980    lt_prog_compiler_static=
17981fi
17982
17983
17984
17985
17986
17987
17988
17989  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17990echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17991if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17992  echo $ECHO_N "(cached) $ECHO_C" >&6
17993else
17994  lt_cv_prog_compiler_c_o=no
17995   $RM -r conftest 2>/dev/null
17996   mkdir conftest
17997   cd conftest
17998   mkdir out
17999   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18000
18001   lt_compiler_flag="-o out/conftest2.$ac_objext"
18002   # Insert the option either (1) after the last *FLAGS variable, or
18003   # (2) before a word containing "conftest.", or (3) at the end.
18004   # Note that $ac_compile itself does not contain backslashes and begins
18005   # with a dollar sign (not a hyphen), so the echo should work correctly.
18006   lt_compile=`echo "$ac_compile" | $SED \
18007   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18008   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18009   -e 's:$: $lt_compiler_flag:'`
18010   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18011   (eval "$lt_compile" 2>out/conftest.err)
18012   ac_status=$?
18013   cat out/conftest.err >&5
18014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18016   then
18017     # The compiler can only warn and ignore the option if not recognized
18018     # So say no if there are warnings
18019     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18020     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18021     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18022       lt_cv_prog_compiler_c_o=yes
18023     fi
18024   fi
18025   chmod u+w . 2>&5
18026   $RM -r conftest*
18027   # SGI C++ compiler will create directory out/ii_files/ for
18028   # template instantiation
18029   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18030   $RM out/* && rmdir out
18031   cd ..
18032   $RM -r conftest
18033   $RM -r conftest*
18034
18035fi
18036{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
18037echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
18038
18039
18040
18041
18042
18043
18044  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18045echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18046if test "${lt_cv_prog_compiler_c_o+set}" = set; then
18047  echo $ECHO_N "(cached) $ECHO_C" >&6
18048else
18049  lt_cv_prog_compiler_c_o=no
18050   $RM -r conftest 2>/dev/null
18051   mkdir conftest
18052   cd conftest
18053   mkdir out
18054   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18055
18056   lt_compiler_flag="-o out/conftest2.$ac_objext"
18057   # Insert the option either (1) after the last *FLAGS variable, or
18058   # (2) before a word containing "conftest.", or (3) at the end.
18059   # Note that $ac_compile itself does not contain backslashes and begins
18060   # with a dollar sign (not a hyphen), so the echo should work correctly.
18061   lt_compile=`echo "$ac_compile" | $SED \
18062   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18063   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18064   -e 's:$: $lt_compiler_flag:'`
18065   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18066   (eval "$lt_compile" 2>out/conftest.err)
18067   ac_status=$?
18068   cat out/conftest.err >&5
18069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18071   then
18072     # The compiler can only warn and ignore the option if not recognized
18073     # So say no if there are warnings
18074     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18075     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18076     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18077       lt_cv_prog_compiler_c_o=yes
18078     fi
18079   fi
18080   chmod u+w . 2>&5
18081   $RM -r conftest*
18082   # SGI C++ compiler will create directory out/ii_files/ for
18083   # template instantiation
18084   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18085   $RM out/* && rmdir out
18086   cd ..
18087   $RM -r conftest
18088   $RM -r conftest*
18089
18090fi
18091{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
18092echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
18093
18094
18095
18096
18097hard_links="nottested"
18098if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
18099  # do not overwrite the value of need_locks provided by the user
18100  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18101echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18102  hard_links=yes
18103  $RM -r conftest*
18104  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18105  touch conftest.a
18106  ln conftest.a conftest.b 2>&5 || hard_links=no
18107  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18108  { echo "$as_me:$LINENO: result: $hard_links" >&5
18109echo "${ECHO_T}$hard_links" >&6; }
18110  if test "$hard_links" = no; then
18111    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18112echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18113    need_locks=warn
18114  fi
18115else
18116  need_locks=no
18117fi
18118
18119
18120
18121
18122
18123
18124  { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18125echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18126
18127  runpath_var=
18128  allow_undefined_flag=
18129  always_export_symbols=no
18130  archive_cmds=
18131  archive_expsym_cmds=
18132  compiler_needs_object=no
18133  enable_shared_with_static_runtimes=no
18134  export_dynamic_flag_spec=
18135  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18136  hardcode_automatic=no
18137  hardcode_direct=no
18138  hardcode_direct_absolute=no
18139  hardcode_libdir_flag_spec=
18140  hardcode_libdir_flag_spec_ld=
18141  hardcode_libdir_separator=
18142  hardcode_minus_L=no
18143  hardcode_shlibpath_var=unsupported
18144  inherit_rpath=no
18145  link_all_deplibs=unknown
18146  module_cmds=
18147  module_expsym_cmds=
18148  old_archive_from_new_cmds=
18149  old_archive_from_expsyms_cmds=
18150  thread_safe_flag_spec=
18151  whole_archive_flag_spec=
18152  # include_expsyms should be a list of space-separated symbols to be *always*
18153  # included in the symbol list
18154  include_expsyms=
18155  # exclude_expsyms can be an extended regexp of symbols to exclude
18156  # it will be wrapped by ` (' and `)$', so one must not match beginning or
18157  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18158  # as well as any symbol that contains `d'.
18159  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18160  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18161  # platforms (ab)use it in PIC code, but their linkers get confused if
18162  # the symbol is explicitly referenced.  Since portable code cannot
18163  # rely on this symbol name, it's probably fine to never include it in
18164  # preloaded symbol tables.
18165  # Exclude shared library initialization/finalization symbols.
18166  extract_expsyms_cmds=
18167
18168  case $host_os in
18169  cygwin* | mingw* | pw32* | cegcc*)
18170    # FIXME: the MSVC++ port hasn't been tested in a loooong time
18171    # When not using gcc, we currently assume that we are using
18172    # Microsoft Visual C++.
18173    if test "$GCC" != yes; then
18174      with_gnu_ld=no
18175    fi
18176    ;;
18177  interix*)
18178    # we just hope/assume this is gcc and not c89 (= MSVC++)
18179    with_gnu_ld=yes
18180    ;;
18181  openbsd*)
18182    with_gnu_ld=no
18183    ;;
18184  esac
18185
18186  ld_shlibs=yes
18187
18188  # On some targets, GNU ld is compatible enough with the native linker
18189  # that we're better off using the native interface for both.
18190  lt_use_gnu_ld_interface=no
18191  if test "$with_gnu_ld" = yes; then
18192    case $host_os in
18193      aix*)
18194	# The AIX port of GNU ld has always aspired to compatibility
18195	# with the native linker.  However, as the warning in the GNU ld
18196	# block says, versions before 2.19.5* couldn't really create working
18197	# shared libraries, regardless of the interface used.
18198	case `$LD -v 2>&1` in
18199	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
18200	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
18201	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
18202	  *)
18203	    lt_use_gnu_ld_interface=yes
18204	    ;;
18205	esac
18206	;;
18207      *)
18208	lt_use_gnu_ld_interface=yes
18209	;;
18210    esac
18211  fi
18212
18213  if test "$lt_use_gnu_ld_interface" = yes; then
18214    # If archive_cmds runs LD, not CC, wlarc should be empty
18215    wlarc='${wl}'
18216
18217    # Set some defaults for GNU ld with shared library support. These
18218    # are reset later if shared libraries are not supported. Putting them
18219    # here allows them to be overridden if necessary.
18220    runpath_var=LD_RUN_PATH
18221    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18222    export_dynamic_flag_spec='${wl}--export-dynamic'
18223    # ancient GNU ld didn't support --whole-archive et. al.
18224    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
18225      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18226    else
18227      whole_archive_flag_spec=
18228    fi
18229    supports_anon_versioning=no
18230    case `$LD -v 2>&1` in
18231      *GNU\ gold*) supports_anon_versioning=yes ;;
18232      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18233      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18234      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18235      *\ 2.11.*) ;; # other 2.11 versions
18236      *) supports_anon_versioning=yes ;;
18237    esac
18238
18239    # See if GNU ld supports shared libraries.
18240    case $host_os in
18241    aix[3-9]*)
18242      # On AIX/PPC, the GNU linker is very broken
18243      if test "$host_cpu" != ia64; then
18244	ld_shlibs=no
18245	cat <<_LT_EOF 1>&2
18246
18247*** Warning: the GNU linker, at least up to release 2.19, is reported
18248*** to be unable to reliably create shared libraries on AIX.
18249*** Therefore, libtool is disabling shared libraries support.  If you
18250*** really care for shared libraries, you may want to install binutils
18251*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
18252*** You will then need to restart the configuration process.
18253
18254_LT_EOF
18255      fi
18256      ;;
18257
18258    amigaos*)
18259      case $host_cpu in
18260      powerpc)
18261            # see comment about AmigaOS4 .so support
18262            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18263            archive_expsym_cmds=''
18264        ;;
18265      m68k)
18266            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)'
18267            hardcode_libdir_flag_spec='-L$libdir'
18268            hardcode_minus_L=yes
18269        ;;
18270      esac
18271      ;;
18272
18273    beos*)
18274      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18275	allow_undefined_flag=unsupported
18276	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18277	# support --undefined.  This deserves some investigation.  FIXME
18278	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18279      else
18280	ld_shlibs=no
18281      fi
18282      ;;
18283
18284    cygwin* | mingw* | pw32* | cegcc*)
18285      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
18286      # as there is no search path for DLLs.
18287      hardcode_libdir_flag_spec='-L$libdir'
18288      export_dynamic_flag_spec='${wl}--export-all-symbols'
18289      allow_undefined_flag=unsupported
18290      always_export_symbols=no
18291      enable_shared_with_static_runtimes=yes
18292      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18293
18294      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18295        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18296	# If the export-symbols file already is a .def file (1st line
18297	# is EXPORTS), use it as is; otherwise, prepend...
18298	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18299	  cp $export_symbols $output_objdir/$soname.def;
18300	else
18301	  echo EXPORTS > $output_objdir/$soname.def;
18302	  cat $export_symbols >> $output_objdir/$soname.def;
18303	fi~
18304	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18305      else
18306	ld_shlibs=no
18307      fi
18308      ;;
18309
18310    haiku*)
18311      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18312      link_all_deplibs=yes
18313      ;;
18314
18315    interix[3-9]*)
18316      hardcode_direct=no
18317      hardcode_shlibpath_var=no
18318      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18319      export_dynamic_flag_spec='${wl}-E'
18320      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18321      # Instead, shared libraries are loaded at an image base (0x10000000 by
18322      # default) and relocated if they conflict, which is a slow very memory
18323      # consuming and fragmenting process.  To avoid this, we pick a random,
18324      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18325      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18326      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18327      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'
18328      ;;
18329
18330    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
18331      tmp_diet=no
18332      if test "$host_os" = linux-dietlibc; then
18333	case $cc_basename in
18334	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
18335	esac
18336      fi
18337      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18338	 && test "$tmp_diet" = no
18339      then
18340	tmp_addflag=
18341	tmp_sharedflag='-shared'
18342	case $cc_basename,$host_cpu in
18343        pgcc*)				# Portland Group C compiler
18344	  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'
18345	  tmp_addflag=' $pic_flag'
18346	  ;;
18347	pgf77* | pgf90* | pgf95* | pgfortran*)
18348					# Portland Group f77 and f90 compilers
18349	  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'
18350	  tmp_addflag=' $pic_flag -Mnomain' ;;
18351	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
18352	  tmp_addflag=' -i_dynamic' ;;
18353	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
18354	  tmp_addflag=' -i_dynamic -nofor_main' ;;
18355	ifc* | ifort*)			# Intel Fortran compiler
18356	  tmp_addflag=' -nofor_main' ;;
18357	lf95*)				# Lahey Fortran 8.1
18358	  whole_archive_flag_spec=
18359	  tmp_sharedflag='--shared' ;;
18360	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18361	  tmp_sharedflag='-qmkshrobj'
18362	  tmp_addflag= ;;
18363	nvcc*)	# Cuda Compiler Driver 2.2
18364	  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'
18365	  compiler_needs_object=yes
18366	  ;;
18367	esac
18368	case `$CC -V 2>&1 | sed 5q` in
18369	*Sun\ C*)			# Sun C 5.9
18370	  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'
18371	  compiler_needs_object=yes
18372	  tmp_sharedflag='-G' ;;
18373	*Sun\ F*)			# Sun Fortran 8.3
18374	  tmp_sharedflag='-G' ;;
18375	esac
18376	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18377
18378        if test "x$supports_anon_versioning" = xyes; then
18379          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
18380	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18381	    echo "local: *; };" >> $output_objdir/$libname.ver~
18382	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18383        fi
18384
18385	case $cc_basename in
18386	xlf* | bgf* | bgxlf* | mpixlf*)
18387	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18388	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
18389	  hardcode_libdir_flag_spec=
18390	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
18391	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
18392	  if test "x$supports_anon_versioning" = xyes; then
18393	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
18394	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18395	      echo "local: *; };" >> $output_objdir/$libname.ver~
18396	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18397	  fi
18398	  ;;
18399	esac
18400      else
18401        ld_shlibs=no
18402      fi
18403      ;;
18404
18405    netbsd*)
18406      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18407	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18408	wlarc=
18409      else
18410	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18411	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18412      fi
18413      ;;
18414
18415    solaris*)
18416      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18417	ld_shlibs=no
18418	cat <<_LT_EOF 1>&2
18419
18420*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18421*** create shared libraries on Solaris systems.  Therefore, libtool
18422*** is disabling shared libraries support.  We urge you to upgrade GNU
18423*** binutils to release 2.9.1 or newer.  Another option is to modify
18424*** your PATH or compiler configuration so that the native linker is
18425*** used, and then restart.
18426
18427_LT_EOF
18428      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18429	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18430	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18431      else
18432	ld_shlibs=no
18433      fi
18434      ;;
18435
18436    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18437      case `$LD -v 2>&1` in
18438        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18439	ld_shlibs=no
18440	cat <<_LT_EOF 1>&2
18441
18442*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18443*** reliably create shared libraries on SCO systems.  Therefore, libtool
18444*** is disabling shared libraries support.  We urge you to upgrade GNU
18445*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18446*** your PATH or compiler configuration so that the native linker is
18447*** used, and then restart.
18448
18449_LT_EOF
18450	;;
18451	*)
18452	  # For security reasons, it is highly recommended that you always
18453	  # use absolute paths for naming shared libraries, and exclude the
18454	  # DT_RUNPATH tag from executables and libraries.  But doing so
18455	  # requires that you compile everything twice, which is a pain.
18456	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18457	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18458	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18459	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18460	  else
18461	    ld_shlibs=no
18462	  fi
18463	;;
18464      esac
18465      ;;
18466
18467    sunos4*)
18468      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18469      wlarc=
18470      hardcode_direct=yes
18471      hardcode_shlibpath_var=no
18472      ;;
18473
18474    *)
18475      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18476	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18477	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18478      else
18479	ld_shlibs=no
18480      fi
18481      ;;
18482    esac
18483
18484    if test "$ld_shlibs" = no; then
18485      runpath_var=
18486      hardcode_libdir_flag_spec=
18487      export_dynamic_flag_spec=
18488      whole_archive_flag_spec=
18489    fi
18490  else
18491    # PORTME fill in a description of your system's linker (not GNU ld)
18492    case $host_os in
18493    aix3*)
18494      allow_undefined_flag=unsupported
18495      always_export_symbols=yes
18496      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'
18497      # Note: this linker hardcodes the directories in LIBPATH if there
18498      # are no directories specified by -L.
18499      hardcode_minus_L=yes
18500      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18501	# Neither direct hardcoding nor static linking is supported with a
18502	# broken collect2.
18503	hardcode_direct=unsupported
18504      fi
18505      ;;
18506
18507    aix[4-9]*)
18508      if test "$host_cpu" = ia64; then
18509	# On IA64, the linker does run time linking by default, so we don't
18510	# have to do anything special.
18511	aix_use_runtimelinking=no
18512	exp_sym_flag='-Bexport'
18513	no_entry_flag=""
18514      else
18515	# If we're using GNU nm, then we don't want the "-C" option.
18516	# -C means demangle to AIX nm, but means don't demangle with GNU nm
18517	# Also, AIX nm treats weak defined symbols like other global
18518	# defined symbols, whereas GNU nm marks them as "W".
18519	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18520	  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'
18521	else
18522	  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'
18523	fi
18524	aix_use_runtimelinking=no
18525
18526	# Test if we are trying to use run time linking or normal
18527	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18528	# need to do runtime linking.
18529	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18530	  for ld_flag in $LDFLAGS; do
18531	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18532	    aix_use_runtimelinking=yes
18533	    break
18534	  fi
18535	  done
18536	  ;;
18537	esac
18538
18539	exp_sym_flag='-bexport'
18540	no_entry_flag='-bnoentry'
18541      fi
18542
18543      # When large executables or shared objects are built, AIX ld can
18544      # have problems creating the table of contents.  If linking a library
18545      # or program results in "error TOC overflow" add -mminimal-toc to
18546      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18547      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18548
18549      archive_cmds=''
18550      hardcode_direct=yes
18551      hardcode_direct_absolute=yes
18552      hardcode_libdir_separator=':'
18553      link_all_deplibs=yes
18554      file_list_spec='${wl}-f,'
18555
18556      if test "$GCC" = yes; then
18557	case $host_os in aix4.[012]|aix4.[012].*)
18558	# We only want to do this on AIX 4.2 and lower, the check
18559	# below for broken collect2 doesn't work under 4.3+
18560	  collect2name=`${CC} -print-prog-name=collect2`
18561	  if test -f "$collect2name" &&
18562	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18563	  then
18564	  # We have reworked collect2
18565	  :
18566	  else
18567	  # We have old collect2
18568	  hardcode_direct=unsupported
18569	  # It fails to find uninstalled libraries when the uninstalled
18570	  # path is not listed in the libpath.  Setting hardcode_minus_L
18571	  # to unsupported forces relinking
18572	  hardcode_minus_L=yes
18573	  hardcode_libdir_flag_spec='-L$libdir'
18574	  hardcode_libdir_separator=
18575	  fi
18576	  ;;
18577	esac
18578	shared_flag='-shared'
18579	if test "$aix_use_runtimelinking" = yes; then
18580	  shared_flag="$shared_flag "'${wl}-G'
18581	fi
18582      else
18583	# not using gcc
18584	if test "$host_cpu" = ia64; then
18585	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18586	# chokes on -Wl,-G. The following line is correct:
18587	  shared_flag='-G'
18588	else
18589	  if test "$aix_use_runtimelinking" = yes; then
18590	    shared_flag='${wl}-G'
18591	  else
18592	    shared_flag='${wl}-bM:SRE'
18593	  fi
18594	fi
18595      fi
18596
18597      export_dynamic_flag_spec='${wl}-bexpall'
18598      # It seems that -bexpall does not export symbols beginning with
18599      # underscore (_), so it is better to generate a list of symbols to export.
18600      always_export_symbols=yes
18601      if test "$aix_use_runtimelinking" = yes; then
18602	# Warning - without using the other runtime loading flags (-brtl),
18603	# -berok will link without error, but may produce a broken library.
18604	allow_undefined_flag='-berok'
18605        # Determine the default libpath from the value encoded in an
18606        # empty executable.
18607        cat >conftest.$ac_ext <<_ACEOF
18608/* confdefs.h.  */
18609_ACEOF
18610cat confdefs.h >>conftest.$ac_ext
18611cat >>conftest.$ac_ext <<_ACEOF
18612/* end confdefs.h.  */
18613
18614int
18615main ()
18616{
18617
18618  ;
18619  return 0;
18620}
18621_ACEOF
18622rm -f conftest.$ac_objext conftest$ac_exeext
18623if { (ac_try="$ac_link"
18624case "(($ac_try" in
18625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626  *) ac_try_echo=$ac_try;;
18627esac
18628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18629  (eval "$ac_link") 2>conftest.er1
18630  ac_status=$?
18631  grep -v '^ *+' conftest.er1 >conftest.err
18632  rm -f conftest.er1
18633  cat conftest.err >&5
18634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635  (exit $ac_status); } && {
18636	 test -z "$ac_c_werror_flag" ||
18637	 test ! -s conftest.err
18638       } && test -s conftest$ac_exeext &&
18639       $as_test_x conftest$ac_exeext; then
18640
18641lt_aix_libpath_sed='
18642    /Import File Strings/,/^$/ {
18643	/^0/ {
18644	    s/^0  *\(.*\)$/\1/
18645	    p
18646	}
18647    }'
18648aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18649# Check for a 64-bit object if we didn't find anything.
18650if test -z "$aix_libpath"; then
18651  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18652fi
18653else
18654  echo "$as_me: failed program was:" >&5
18655sed 's/^/| /' conftest.$ac_ext >&5
18656
18657
18658fi
18659
18660rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18661      conftest$ac_exeext conftest.$ac_ext
18662if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18663
18664        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
18665        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"
18666      else
18667	if test "$host_cpu" = ia64; then
18668	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
18669	  allow_undefined_flag="-z nodefs"
18670	  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"
18671	else
18672	 # Determine the default libpath from the value encoded in an
18673	 # empty executable.
18674	 cat >conftest.$ac_ext <<_ACEOF
18675/* confdefs.h.  */
18676_ACEOF
18677cat confdefs.h >>conftest.$ac_ext
18678cat >>conftest.$ac_ext <<_ACEOF
18679/* end confdefs.h.  */
18680
18681int
18682main ()
18683{
18684
18685  ;
18686  return 0;
18687}
18688_ACEOF
18689rm -f conftest.$ac_objext conftest$ac_exeext
18690if { (ac_try="$ac_link"
18691case "(($ac_try" in
18692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693  *) ac_try_echo=$ac_try;;
18694esac
18695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18696  (eval "$ac_link") 2>conftest.er1
18697  ac_status=$?
18698  grep -v '^ *+' conftest.er1 >conftest.err
18699  rm -f conftest.er1
18700  cat conftest.err >&5
18701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702  (exit $ac_status); } && {
18703	 test -z "$ac_c_werror_flag" ||
18704	 test ! -s conftest.err
18705       } && test -s conftest$ac_exeext &&
18706       $as_test_x conftest$ac_exeext; then
18707
18708lt_aix_libpath_sed='
18709    /Import File Strings/,/^$/ {
18710	/^0/ {
18711	    s/^0  *\(.*\)$/\1/
18712	    p
18713	}
18714    }'
18715aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18716# Check for a 64-bit object if we didn't find anything.
18717if test -z "$aix_libpath"; then
18718  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18719fi
18720else
18721  echo "$as_me: failed program was:" >&5
18722sed 's/^/| /' conftest.$ac_ext >&5
18723
18724
18725fi
18726
18727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18728      conftest$ac_exeext conftest.$ac_ext
18729if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18730
18731	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
18732	  # Warning - without using the other run time loading flags,
18733	  # -berok will link without error, but may produce a broken library.
18734	  no_undefined_flag=' ${wl}-bernotok'
18735	  allow_undefined_flag=' ${wl}-berok'
18736	  if test "$with_gnu_ld" = yes; then
18737	    # We only use this code for GNU lds that support --whole-archive.
18738	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18739	  else
18740	    # Exported symbols can be pulled into shared objects from archives
18741	    whole_archive_flag_spec='$convenience'
18742	  fi
18743	  archive_cmds_need_lc=yes
18744	  # This is similar to how AIX traditionally builds its shared libraries.
18745	  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'
18746	fi
18747      fi
18748      ;;
18749
18750    amigaos*)
18751      case $host_cpu in
18752      powerpc)
18753            # see comment about AmigaOS4 .so support
18754            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18755            archive_expsym_cmds=''
18756        ;;
18757      m68k)
18758            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)'
18759            hardcode_libdir_flag_spec='-L$libdir'
18760            hardcode_minus_L=yes
18761        ;;
18762      esac
18763      ;;
18764
18765    bsdi[45]*)
18766      export_dynamic_flag_spec=-rdynamic
18767      ;;
18768
18769    cygwin* | mingw* | pw32* | cegcc*)
18770      # When not using gcc, we currently assume that we are using
18771      # Microsoft Visual C++.
18772      # hardcode_libdir_flag_spec is actually meaningless, as there is
18773      # no search path for DLLs.
18774      hardcode_libdir_flag_spec=' '
18775      allow_undefined_flag=unsupported
18776      # Tell ltmain to make .lib files, not .a files.
18777      libext=lib
18778      # Tell ltmain to make .dll files, not .so files.
18779      shrext_cmds=".dll"
18780      # FIXME: Setting linknames here is a bad hack.
18781      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18782      # The linker will automatically build a .lib file if we build a DLL.
18783      old_archive_from_new_cmds='true'
18784      # FIXME: Should let the user specify the lib program.
18785      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
18786      fix_srcfile_path='`cygpath -w "$srcfile"`'
18787      enable_shared_with_static_runtimes=yes
18788      ;;
18789
18790    darwin* | rhapsody*)
18791
18792
18793  archive_cmds_need_lc=no
18794  hardcode_direct=no
18795  hardcode_automatic=yes
18796  hardcode_shlibpath_var=unsupported
18797  if test "$lt_cv_ld_force_load" = "yes"; then
18798    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\"`'
18799  else
18800    whole_archive_flag_spec=''
18801  fi
18802  link_all_deplibs=yes
18803  allow_undefined_flag="$_lt_dar_allow_undefined"
18804  case $cc_basename in
18805     ifort*) _lt_dar_can_shared=yes ;;
18806     *) _lt_dar_can_shared=$GCC ;;
18807  esac
18808  if test "$_lt_dar_can_shared" = "yes"; then
18809    output_verbose_link_cmd=func_echo_all
18810    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18811    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18812    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}"
18813    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}"
18814
18815  else
18816  ld_shlibs=no
18817  fi
18818
18819      ;;
18820
18821    dgux*)
18822      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18823      hardcode_libdir_flag_spec='-L$libdir'
18824      hardcode_shlibpath_var=no
18825      ;;
18826
18827    freebsd1*)
18828      ld_shlibs=no
18829      ;;
18830
18831    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18832    # support.  Future versions do this automatically, but an explicit c++rt0.o
18833    # does not break anything, and helps significantly (at the cost of a little
18834    # extra space).
18835    freebsd2.2*)
18836      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18837      hardcode_libdir_flag_spec='-R$libdir'
18838      hardcode_direct=yes
18839      hardcode_shlibpath_var=no
18840      ;;
18841
18842    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18843    freebsd2*)
18844      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18845      hardcode_direct=yes
18846      hardcode_minus_L=yes
18847      hardcode_shlibpath_var=no
18848      ;;
18849
18850    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18851    freebsd* | dragonfly*)
18852      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18853      hardcode_libdir_flag_spec='-R$libdir'
18854      hardcode_direct=yes
18855      hardcode_shlibpath_var=no
18856      ;;
18857
18858    hpux9*)
18859      if test "$GCC" = yes; then
18860	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'
18861      else
18862	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'
18863      fi
18864      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18865      hardcode_libdir_separator=:
18866      hardcode_direct=yes
18867
18868      # hardcode_minus_L: Not really in the search PATH,
18869      # but as the default location of the library.
18870      hardcode_minus_L=yes
18871      export_dynamic_flag_spec='${wl}-E'
18872      ;;
18873
18874    hpux10*)
18875      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18876	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18877      else
18878	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18879      fi
18880      if test "$with_gnu_ld" = no; then
18881	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18882	hardcode_libdir_flag_spec_ld='+b $libdir'
18883	hardcode_libdir_separator=:
18884	hardcode_direct=yes
18885	hardcode_direct_absolute=yes
18886	export_dynamic_flag_spec='${wl}-E'
18887	# hardcode_minus_L: Not really in the search PATH,
18888	# but as the default location of the library.
18889	hardcode_minus_L=yes
18890      fi
18891      ;;
18892
18893    hpux11*)
18894      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18895	case $host_cpu in
18896	hppa*64*)
18897	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18898	  ;;
18899	ia64*)
18900	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18901	  ;;
18902	*)
18903	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18904	  ;;
18905	esac
18906      else
18907	case $host_cpu in
18908	hppa*64*)
18909	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18910	  ;;
18911	ia64*)
18912	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18913	  ;;
18914	*)
18915
18916	  # Older versions of the 11.00 compiler do not understand -b yet
18917	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18918	  { echo "$as_me:$LINENO: checking if $CC understands -b" >&5
18919echo $ECHO_N "checking if $CC understands -b... $ECHO_C" >&6; }
18920if test "${lt_cv_prog_compiler__b+set}" = set; then
18921  echo $ECHO_N "(cached) $ECHO_C" >&6
18922else
18923  lt_cv_prog_compiler__b=no
18924   save_LDFLAGS="$LDFLAGS"
18925   LDFLAGS="$LDFLAGS -b"
18926   echo "$lt_simple_link_test_code" > conftest.$ac_ext
18927   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18928     # The linker can only warn and ignore the option if not recognized
18929     # So say no if there are warnings
18930     if test -s conftest.err; then
18931       # Append any errors to the config.log.
18932       cat conftest.err 1>&5
18933       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18934       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18935       if diff conftest.exp conftest.er2 >/dev/null; then
18936         lt_cv_prog_compiler__b=yes
18937       fi
18938     else
18939       lt_cv_prog_compiler__b=yes
18940     fi
18941   fi
18942   $RM -r conftest*
18943   LDFLAGS="$save_LDFLAGS"
18944
18945fi
18946{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler__b" >&5
18947echo "${ECHO_T}$lt_cv_prog_compiler__b" >&6; }
18948
18949if test x"$lt_cv_prog_compiler__b" = xyes; then
18950    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18951else
18952    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18953fi
18954
18955	  ;;
18956	esac
18957      fi
18958      if test "$with_gnu_ld" = no; then
18959	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18960	hardcode_libdir_separator=:
18961
18962	case $host_cpu in
18963	hppa*64*|ia64*)
18964	  hardcode_direct=no
18965	  hardcode_shlibpath_var=no
18966	  ;;
18967	*)
18968	  hardcode_direct=yes
18969	  hardcode_direct_absolute=yes
18970	  export_dynamic_flag_spec='${wl}-E'
18971
18972	  # hardcode_minus_L: Not really in the search PATH,
18973	  # but as the default location of the library.
18974	  hardcode_minus_L=yes
18975	  ;;
18976	esac
18977      fi
18978      ;;
18979
18980    irix5* | irix6* | nonstopux*)
18981      if test "$GCC" = yes; then
18982	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'
18983	# Try to use the -exported_symbol ld option, if it does not
18984	# work, assume that -exports_file does not work either and
18985	# implicitly export all symbols.
18986        save_LDFLAGS="$LDFLAGS"
18987        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18988        cat >conftest.$ac_ext <<_ACEOF
18989int foo(void) {}
18990_ACEOF
18991rm -f conftest.$ac_objext conftest$ac_exeext
18992if { (ac_try="$ac_link"
18993case "(($ac_try" in
18994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18995  *) ac_try_echo=$ac_try;;
18996esac
18997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18998  (eval "$ac_link") 2>conftest.er1
18999  ac_status=$?
19000  grep -v '^ *+' conftest.er1 >conftest.err
19001  rm -f conftest.er1
19002  cat conftest.err >&5
19003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004  (exit $ac_status); } && {
19005	 test -z "$ac_c_werror_flag" ||
19006	 test ! -s conftest.err
19007       } && test -s conftest$ac_exeext &&
19008       $as_test_x conftest$ac_exeext; then
19009  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'
19010
19011else
19012  echo "$as_me: failed program was:" >&5
19013sed 's/^/| /' conftest.$ac_ext >&5
19014
19015
19016fi
19017
19018rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19019      conftest$ac_exeext conftest.$ac_ext
19020        LDFLAGS="$save_LDFLAGS"
19021      else
19022	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'
19023	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'
19024      fi
19025      archive_cmds_need_lc='no'
19026      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19027      hardcode_libdir_separator=:
19028      inherit_rpath=yes
19029      link_all_deplibs=yes
19030      ;;
19031
19032    netbsd*)
19033      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19034	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19035      else
19036	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19037      fi
19038      hardcode_libdir_flag_spec='-R$libdir'
19039      hardcode_direct=yes
19040      hardcode_shlibpath_var=no
19041      ;;
19042
19043    newsos6)
19044      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19045      hardcode_direct=yes
19046      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19047      hardcode_libdir_separator=:
19048      hardcode_shlibpath_var=no
19049      ;;
19050
19051    *nto* | *qnx*)
19052      ;;
19053
19054    openbsd*)
19055      if test -f /usr/libexec/ld.so; then
19056	hardcode_direct=yes
19057	hardcode_shlibpath_var=no
19058	hardcode_direct_absolute=yes
19059	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19060	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19061	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19062	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19063	  export_dynamic_flag_spec='${wl}-E'
19064	else
19065	  case $host_os in
19066	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19067	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19068	     hardcode_libdir_flag_spec='-R$libdir'
19069	     ;;
19070	   *)
19071	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19072	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19073	     ;;
19074	  esac
19075	fi
19076      else
19077	ld_shlibs=no
19078      fi
19079      ;;
19080
19081    os2*)
19082      hardcode_libdir_flag_spec='-L$libdir'
19083      hardcode_minus_L=yes
19084      allow_undefined_flag=unsupported
19085      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'
19086      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19087      ;;
19088
19089    osf3*)
19090      if test "$GCC" = yes; then
19091	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
19092	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'
19093      else
19094	allow_undefined_flag=' -expect_unresolved \*'
19095	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'
19096      fi
19097      archive_cmds_need_lc='no'
19098      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19099      hardcode_libdir_separator=:
19100      ;;
19101
19102    osf4* | osf5*)	# as osf3* with the addition of -msym flag
19103      if test "$GCC" = yes; then
19104	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
19105	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'
19106	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19107      else
19108	allow_undefined_flag=' -expect_unresolved \*'
19109	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'
19110	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~
19111	$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'
19112
19113	# Both c and cxx compiler support -rpath directly
19114	hardcode_libdir_flag_spec='-rpath $libdir'
19115      fi
19116      archive_cmds_need_lc='no'
19117      hardcode_libdir_separator=:
19118      ;;
19119
19120    solaris*)
19121      no_undefined_flag=' -z defs'
19122      if test "$GCC" = yes; then
19123	wlarc='${wl}'
19124	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19125	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19126	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19127      else
19128	case `$CC -V 2>&1` in
19129	*"Compilers 5.0"*)
19130	  wlarc=''
19131	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19132	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19133	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
19134	  ;;
19135	*)
19136	  wlarc='${wl}'
19137	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
19138	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19139	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19140	  ;;
19141	esac
19142      fi
19143      hardcode_libdir_flag_spec='-R$libdir'
19144      hardcode_shlibpath_var=no
19145      case $host_os in
19146      solaris2.[0-5] | solaris2.[0-5].*) ;;
19147      *)
19148	# The compiler driver will combine and reorder linker options,
19149	# but understands `-z linker_flag'.  GCC discards it without `$wl',
19150	# but is careful enough not to reorder.
19151	# Supported since Solaris 2.6 (maybe 2.5.1?)
19152	if test "$GCC" = yes; then
19153	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19154	else
19155	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
19156	fi
19157	;;
19158      esac
19159      link_all_deplibs=yes
19160      ;;
19161
19162    sunos4*)
19163      if test "x$host_vendor" = xsequent; then
19164	# Use $CC to link under sequent, because it throws in some extra .o
19165	# files that make .init and .fini sections work.
19166	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19167      else
19168	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19169      fi
19170      hardcode_libdir_flag_spec='-L$libdir'
19171      hardcode_direct=yes
19172      hardcode_minus_L=yes
19173      hardcode_shlibpath_var=no
19174      ;;
19175
19176    sysv4)
19177      case $host_vendor in
19178	sni)
19179	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19180	  hardcode_direct=yes # is this really true???
19181	;;
19182	siemens)
19183	  ## LD is ld it makes a PLAMLIB
19184	  ## CC just makes a GrossModule.
19185	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19186	  reload_cmds='$CC -r -o $output$reload_objs'
19187	  hardcode_direct=no
19188        ;;
19189	motorola)
19190	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19191	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
19192	;;
19193      esac
19194      runpath_var='LD_RUN_PATH'
19195      hardcode_shlibpath_var=no
19196      ;;
19197
19198    sysv4.3*)
19199      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19200      hardcode_shlibpath_var=no
19201      export_dynamic_flag_spec='-Bexport'
19202      ;;
19203
19204    sysv4*MP*)
19205      if test -d /usr/nec; then
19206	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19207	hardcode_shlibpath_var=no
19208	runpath_var=LD_RUN_PATH
19209	hardcode_runpath_var=yes
19210	ld_shlibs=yes
19211      fi
19212      ;;
19213
19214    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19215      no_undefined_flag='${wl}-z,text'
19216      archive_cmds_need_lc=no
19217      hardcode_shlibpath_var=no
19218      runpath_var='LD_RUN_PATH'
19219
19220      if test "$GCC" = yes; then
19221	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19222	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19223      else
19224	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19225	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19226      fi
19227      ;;
19228
19229    sysv5* | sco3.2v5* | sco5v6*)
19230      # Note: We can NOT use -z defs as we might desire, because we do not
19231      # link with -lc, and that would cause any symbols used from libc to
19232      # always be unresolved, which means just about no library would
19233      # ever link correctly.  If we're not using GNU ld we use -z text
19234      # though, which does catch some bad symbols but isn't as heavy-handed
19235      # as -z defs.
19236      no_undefined_flag='${wl}-z,text'
19237      allow_undefined_flag='${wl}-z,nodefs'
19238      archive_cmds_need_lc=no
19239      hardcode_shlibpath_var=no
19240      hardcode_libdir_flag_spec='${wl}-R,$libdir'
19241      hardcode_libdir_separator=':'
19242      link_all_deplibs=yes
19243      export_dynamic_flag_spec='${wl}-Bexport'
19244      runpath_var='LD_RUN_PATH'
19245
19246      if test "$GCC" = yes; then
19247	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19248	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19249      else
19250	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19251	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19252      fi
19253      ;;
19254
19255    uts4*)
19256      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19257      hardcode_libdir_flag_spec='-L$libdir'
19258      hardcode_shlibpath_var=no
19259      ;;
19260
19261    *)
19262      ld_shlibs=no
19263      ;;
19264    esac
19265
19266    if test x$host_vendor = xsni; then
19267      case $host in
19268      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19269	export_dynamic_flag_spec='${wl}-Blargedynsym'
19270	;;
19271      esac
19272    fi
19273  fi
19274
19275{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
19276echo "${ECHO_T}$ld_shlibs" >&6; }
19277test "$ld_shlibs" = no && can_build_shared=no
19278
19279with_gnu_ld=$with_gnu_ld
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295#
19296# Do we need to explicitly link libc?
19297#
19298case "x$archive_cmds_need_lc" in
19299x|xyes)
19300  # Assume -lc should be added
19301  archive_cmds_need_lc=yes
19302
19303  if test "$enable_shared" = yes && test "$GCC" = yes; then
19304    case $archive_cmds in
19305    *'~'*)
19306      # FIXME: we may have to deal with multi-command sequences.
19307      ;;
19308    '$CC '*)
19309      # Test whether the compiler implicitly links with -lc since on some
19310      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19311      # to ld, don't add -lc before -lgcc.
19312      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19313echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19314if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
19315  echo $ECHO_N "(cached) $ECHO_C" >&6
19316else
19317  $RM -r conftest*
19318	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19319
19320	if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19321  (eval $ac_compile) 2>&5
19322  ac_status=$?
19323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324  (exit $ac_status); } 2>conftest.err; then
19325	  soname=conftest
19326	  lib=conftest
19327	  libobjs=conftest.$ac_objext
19328	  deplibs=
19329	  wl=$lt_prog_compiler_wl
19330	  pic_flag=$lt_prog_compiler_pic
19331	  compiler_flags=-v
19332	  linker_flags=-v
19333	  verstring=
19334	  output_objdir=.
19335	  libname=conftest
19336	  lt_save_allow_undefined_flag=$allow_undefined_flag
19337	  allow_undefined_flag=
19338	  if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
19339  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19340  ac_status=$?
19341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342  (exit $ac_status); }
19343	  then
19344	    lt_cv_archive_cmds_need_lc=no
19345	  else
19346	    lt_cv_archive_cmds_need_lc=yes
19347	  fi
19348	  allow_undefined_flag=$lt_save_allow_undefined_flag
19349	else
19350	  cat conftest.err 1>&5
19351	fi
19352	$RM -r conftest*
19353
19354fi
19355{ echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
19356echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6; }
19357      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
19358      ;;
19359    esac
19360  fi
19361  ;;
19362esac
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520  { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19521echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19522
19523if test "$GCC" = yes; then
19524  case $host_os in
19525    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
19526    *) lt_awk_arg="/^libraries:/" ;;
19527  esac
19528  case $host_os in
19529    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
19530    *) lt_sed_strip_eq="s,=/,/,g" ;;
19531  esac
19532  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
19533  case $lt_search_path_spec in
19534  *\;*)
19535    # if the path contains ";" then we assume it to be the separator
19536    # otherwise default to the standard path separator (i.e. ":") - it is
19537    # assumed that no part of a normal pathname contains ";" but that should
19538    # okay in the real world where ";" in dirpaths is itself problematic.
19539    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
19540    ;;
19541  *)
19542    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
19543    ;;
19544  esac
19545  # Ok, now we have the path, separated by spaces, we can step through it
19546  # and add multilib dir if necessary.
19547  lt_tmp_lt_search_path_spec=
19548  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
19549  for lt_sys_path in $lt_search_path_spec; do
19550    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
19551      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
19552    else
19553      test -d "$lt_sys_path" && \
19554	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
19555    fi
19556  done
19557  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
19558BEGIN {RS=" "; FS="/|\n";} {
19559  lt_foo="";
19560  lt_count=0;
19561  for (lt_i = NF; lt_i > 0; lt_i--) {
19562    if ($lt_i != "" && $lt_i != ".") {
19563      if ($lt_i == "..") {
19564        lt_count++;
19565      } else {
19566        if (lt_count == 0) {
19567          lt_foo="/" $lt_i lt_foo;
19568        } else {
19569          lt_count--;
19570        }
19571      }
19572    }
19573  }
19574  if (lt_foo != "") { lt_freq[lt_foo]++; }
19575  if (lt_freq[lt_foo] == 1) { print lt_foo; }
19576}'`
19577  # AWK program above erroneously prepends '/' to C:/dos/paths
19578  # for these hosts.
19579  case $host_os in
19580    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
19581      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
19582  esac
19583  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
19584else
19585  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19586fi
19587library_names_spec=
19588libname_spec='lib$name'
19589soname_spec=
19590shrext_cmds=".so"
19591postinstall_cmds=
19592postuninstall_cmds=
19593finish_cmds=
19594finish_eval=
19595shlibpath_var=
19596shlibpath_overrides_runpath=unknown
19597version_type=none
19598dynamic_linker="$host_os ld.so"
19599sys_lib_dlsearch_path_spec="/lib /usr/lib"
19600need_lib_prefix=unknown
19601hardcode_into_libs=no
19602
19603# when you set need_version to no, make sure it does not cause -set_version
19604# flags to be left without arguments
19605need_version=unknown
19606
19607case $host_os in
19608aix3*)
19609  version_type=linux
19610  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19611  shlibpath_var=LIBPATH
19612
19613  # AIX 3 has no versioning support, so we append a major version to the name.
19614  soname_spec='${libname}${release}${shared_ext}$major'
19615  ;;
19616
19617aix[4-9]*)
19618  version_type=linux
19619  need_lib_prefix=no
19620  need_version=no
19621  hardcode_into_libs=yes
19622  if test "$host_cpu" = ia64; then
19623    # AIX 5 supports IA64
19624    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19625    shlibpath_var=LD_LIBRARY_PATH
19626  else
19627    # With GCC up to 2.95.x, collect2 would create an import file
19628    # for dependence libraries.  The import file would start with
19629    # the line `#! .'.  This would cause the generated library to
19630    # depend on `.', always an invalid library.  This was fixed in
19631    # development snapshots of GCC prior to 3.0.
19632    case $host_os in
19633      aix4 | aix4.[01] | aix4.[01].*)
19634      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19635	   echo ' yes '
19636	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19637	:
19638      else
19639	can_build_shared=no
19640      fi
19641      ;;
19642    esac
19643    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19644    # soname into executable. Probably we can add versioning support to
19645    # collect2, so additional links can be useful in future.
19646    if test "$aix_use_runtimelinking" = yes; then
19647      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19648      # instead of lib<name>.a to let people know that these are not
19649      # typical AIX shared libraries.
19650      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19651    else
19652      # We preserve .a as extension for shared libraries through AIX4.2
19653      # and later when we are not doing run time linking.
19654      library_names_spec='${libname}${release}.a $libname.a'
19655      soname_spec='${libname}${release}${shared_ext}$major'
19656    fi
19657    shlibpath_var=LIBPATH
19658  fi
19659  ;;
19660
19661amigaos*)
19662  case $host_cpu in
19663  powerpc)
19664    # Since July 2007 AmigaOS4 officially supports .so libraries.
19665    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19666    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19667    ;;
19668  m68k)
19669    library_names_spec='$libname.ixlibrary $libname.a'
19670    # Create ${libname}_ixlibrary.a entries in /sys/libs.
19671    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'
19672    ;;
19673  esac
19674  ;;
19675
19676beos*)
19677  library_names_spec='${libname}${shared_ext}'
19678  dynamic_linker="$host_os ld.so"
19679  shlibpath_var=LIBRARY_PATH
19680  ;;
19681
19682bsdi[45]*)
19683  version_type=linux
19684  need_version=no
19685  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19686  soname_spec='${libname}${release}${shared_ext}$major'
19687  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19688  shlibpath_var=LD_LIBRARY_PATH
19689  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19690  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19691  # the default ld.so.conf also contains /usr/contrib/lib and
19692  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19693  # libtool to hard-code these into programs
19694  ;;
19695
19696cygwin* | mingw* | pw32* | cegcc*)
19697  version_type=windows
19698  shrext_cmds=".dll"
19699  need_version=no
19700  need_lib_prefix=no
19701
19702  case $GCC,$host_os in
19703  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19704    library_names_spec='$libname.dll.a'
19705    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19706    postinstall_cmds='base_file=`basename \${file}`~
19707      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19708      dldir=$destdir/`dirname \$dlpath`~
19709      test -d \$dldir || mkdir -p \$dldir~
19710      $install_prog $dir/$dlname \$dldir/$dlname~
19711      chmod a+x \$dldir/$dlname~
19712      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19713        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19714      fi'
19715    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19716      dlpath=$dir/\$dldll~
19717       $RM \$dlpath'
19718    shlibpath_overrides_runpath=yes
19719
19720    case $host_os in
19721    cygwin*)
19722      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19723      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19724
19725      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
19726      ;;
19727    mingw* | cegcc*)
19728      # MinGW DLLs use traditional 'lib' prefix
19729      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19730      ;;
19731    pw32*)
19732      # pw32 DLLs use 'pw' prefix rather than 'lib'
19733      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19734      ;;
19735    esac
19736    ;;
19737
19738  *)
19739    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19740    ;;
19741  esac
19742  dynamic_linker='Win32 ld.exe'
19743  # FIXME: first we should search . and the directory the executable is in
19744  shlibpath_var=PATH
19745  ;;
19746
19747darwin* | rhapsody*)
19748  dynamic_linker="$host_os dyld"
19749  version_type=darwin
19750  need_lib_prefix=no
19751  need_version=no
19752  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
19753  soname_spec='${libname}${release}${major}$shared_ext'
19754  shlibpath_overrides_runpath=yes
19755  shlibpath_var=DYLD_LIBRARY_PATH
19756  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19757
19758  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
19759  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19760  ;;
19761
19762dgux*)
19763  version_type=linux
19764  need_lib_prefix=no
19765  need_version=no
19766  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19767  soname_spec='${libname}${release}${shared_ext}$major'
19768  shlibpath_var=LD_LIBRARY_PATH
19769  ;;
19770
19771freebsd1*)
19772  dynamic_linker=no
19773  ;;
19774
19775freebsd* | dragonfly*)
19776  # DragonFly does not have aout.  When/if they implement a new
19777  # versioning mechanism, adjust this.
19778  if test -x /usr/bin/objformat; then
19779    objformat=`/usr/bin/objformat`
19780  else
19781    case $host_os in
19782    freebsd[123]*) objformat=aout ;;
19783    *) objformat=elf ;;
19784    esac
19785  fi
19786  version_type=freebsd-$objformat
19787  case $version_type in
19788    freebsd-elf*)
19789      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19790      need_version=no
19791      need_lib_prefix=no
19792      ;;
19793    freebsd-*)
19794      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19795      need_version=yes
19796      ;;
19797  esac
19798  shlibpath_var=LD_LIBRARY_PATH
19799  case $host_os in
19800  freebsd2*)
19801    shlibpath_overrides_runpath=yes
19802    ;;
19803  freebsd3.[01]* | freebsdelf3.[01]*)
19804    shlibpath_overrides_runpath=yes
19805    hardcode_into_libs=yes
19806    ;;
19807  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19808  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19809    shlibpath_overrides_runpath=no
19810    hardcode_into_libs=yes
19811    ;;
19812  *) # from 4.6 on, and DragonFly
19813    shlibpath_overrides_runpath=yes
19814    hardcode_into_libs=yes
19815    ;;
19816  esac
19817  ;;
19818
19819gnu*)
19820  version_type=linux
19821  need_lib_prefix=no
19822  need_version=no
19823  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19824  soname_spec='${libname}${release}${shared_ext}$major'
19825  shlibpath_var=LD_LIBRARY_PATH
19826  hardcode_into_libs=yes
19827  ;;
19828
19829haiku*)
19830  version_type=linux
19831  need_lib_prefix=no
19832  need_version=no
19833  dynamic_linker="$host_os runtime_loader"
19834  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19835  soname_spec='${libname}${release}${shared_ext}$major'
19836  shlibpath_var=LIBRARY_PATH
19837  shlibpath_overrides_runpath=yes
19838  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19839  hardcode_into_libs=yes
19840  ;;
19841
19842hpux9* | hpux10* | hpux11*)
19843  # Give a soname corresponding to the major version so that dld.sl refuses to
19844  # link against other versions.
19845  version_type=sunos
19846  need_lib_prefix=no
19847  need_version=no
19848  case $host_cpu in
19849  ia64*)
19850    shrext_cmds='.so'
19851    hardcode_into_libs=yes
19852    dynamic_linker="$host_os dld.so"
19853    shlibpath_var=LD_LIBRARY_PATH
19854    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19855    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19856    soname_spec='${libname}${release}${shared_ext}$major'
19857    if test "X$HPUX_IA64_MODE" = X32; then
19858      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19859    else
19860      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19861    fi
19862    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19863    ;;
19864  hppa*64*)
19865    shrext_cmds='.sl'
19866    hardcode_into_libs=yes
19867    dynamic_linker="$host_os dld.sl"
19868    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19869    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19870    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19871    soname_spec='${libname}${release}${shared_ext}$major'
19872    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19873    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19874    ;;
19875  *)
19876    shrext_cmds='.sl'
19877    dynamic_linker="$host_os dld.sl"
19878    shlibpath_var=SHLIB_PATH
19879    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19880    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19881    soname_spec='${libname}${release}${shared_ext}$major'
19882    ;;
19883  esac
19884  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19885  postinstall_cmds='chmod 555 $lib'
19886  # or fails outright, so override atomically:
19887  install_override_mode=555
19888  ;;
19889
19890interix[3-9]*)
19891  version_type=linux
19892  need_lib_prefix=no
19893  need_version=no
19894  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19895  soname_spec='${libname}${release}${shared_ext}$major'
19896  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19897  shlibpath_var=LD_LIBRARY_PATH
19898  shlibpath_overrides_runpath=no
19899  hardcode_into_libs=yes
19900  ;;
19901
19902irix5* | irix6* | nonstopux*)
19903  case $host_os in
19904    nonstopux*) version_type=nonstopux ;;
19905    *)
19906	if test "$lt_cv_prog_gnu_ld" = yes; then
19907		version_type=linux
19908	else
19909		version_type=irix
19910	fi ;;
19911  esac
19912  need_lib_prefix=no
19913  need_version=no
19914  soname_spec='${libname}${release}${shared_ext}$major'
19915  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19916  case $host_os in
19917  irix5* | nonstopux*)
19918    libsuff= shlibsuff=
19919    ;;
19920  *)
19921    case $LD in # libtool.m4 will add one of these switches to LD
19922    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19923      libsuff= shlibsuff= libmagic=32-bit;;
19924    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19925      libsuff=32 shlibsuff=N32 libmagic=N32;;
19926    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19927      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19928    *) libsuff= shlibsuff= libmagic=never-match;;
19929    esac
19930    ;;
19931  esac
19932  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19933  shlibpath_overrides_runpath=no
19934  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19935  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19936  hardcode_into_libs=yes
19937  ;;
19938
19939# No shared lib support for Linux oldld, aout, or coff.
19940linux*oldld* | linux*aout* | linux*coff*)
19941  dynamic_linker=no
19942  ;;
19943
19944# This must be Linux ELF.
19945linux* | k*bsd*-gnu | kopensolaris*-gnu)
19946  version_type=linux
19947  need_lib_prefix=no
19948  need_version=no
19949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19950  soname_spec='${libname}${release}${shared_ext}$major'
19951  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19952  shlibpath_var=LD_LIBRARY_PATH
19953  shlibpath_overrides_runpath=no
19954
19955  # Some binutils ld are patched to set DT_RUNPATH
19956  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
19957  echo $ECHO_N "(cached) $ECHO_C" >&6
19958else
19959  lt_cv_shlibpath_overrides_runpath=no
19960    save_LDFLAGS=$LDFLAGS
19961    save_libdir=$libdir
19962    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19963	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19964    cat >conftest.$ac_ext <<_ACEOF
19965/* confdefs.h.  */
19966_ACEOF
19967cat confdefs.h >>conftest.$ac_ext
19968cat >>conftest.$ac_ext <<_ACEOF
19969/* end confdefs.h.  */
19970
19971int
19972main ()
19973{
19974
19975  ;
19976  return 0;
19977}
19978_ACEOF
19979rm -f conftest.$ac_objext conftest$ac_exeext
19980if { (ac_try="$ac_link"
19981case "(($ac_try" in
19982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983  *) ac_try_echo=$ac_try;;
19984esac
19985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986  (eval "$ac_link") 2>conftest.er1
19987  ac_status=$?
19988  grep -v '^ *+' conftest.er1 >conftest.err
19989  rm -f conftest.er1
19990  cat conftest.err >&5
19991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992  (exit $ac_status); } && {
19993	 test -z "$ac_c_werror_flag" ||
19994	 test ! -s conftest.err
19995       } && test -s conftest$ac_exeext &&
19996       $as_test_x conftest$ac_exeext; then
19997  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
19998  lt_cv_shlibpath_overrides_runpath=yes
19999fi
20000
20001else
20002  echo "$as_me: failed program was:" >&5
20003sed 's/^/| /' conftest.$ac_ext >&5
20004
20005
20006fi
20007
20008rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20009      conftest$ac_exeext conftest.$ac_ext
20010    LDFLAGS=$save_LDFLAGS
20011    libdir=$save_libdir
20012
20013fi
20014
20015  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20016
20017  # This implies no fast_install, which is unacceptable.
20018  # Some rework will be needed to allow for fast_install
20019  # before this can be enabled.
20020  hardcode_into_libs=yes
20021
20022  # Append ld.so.conf contents to the search path
20023  if test -f /etc/ld.so.conf; then
20024    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' ' '`
20025    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20026  fi
20027
20028  # We used to test for /lib/ld.so.1 and disable shared libraries on
20029  # powerpc, because MkLinux only supported shared libraries with the
20030  # GNU dynamic linker.  Since this was broken with cross compilers,
20031  # most powerpc-linux boxes support dynamic linking these days and
20032  # people can always --disable-shared, the test was removed, and we
20033  # assume the GNU/Linux dynamic linker is in use.
20034  dynamic_linker='GNU/Linux ld.so'
20035  ;;
20036
20037netbsd*)
20038  version_type=sunos
20039  need_lib_prefix=no
20040  need_version=no
20041  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20042    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20043    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20044    dynamic_linker='NetBSD (a.out) ld.so'
20045  else
20046    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20047    soname_spec='${libname}${release}${shared_ext}$major'
20048    dynamic_linker='NetBSD ld.elf_so'
20049  fi
20050  shlibpath_var=LD_LIBRARY_PATH
20051  shlibpath_overrides_runpath=yes
20052  hardcode_into_libs=yes
20053  ;;
20054
20055newsos6)
20056  version_type=linux
20057  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20058  shlibpath_var=LD_LIBRARY_PATH
20059  shlibpath_overrides_runpath=yes
20060  ;;
20061
20062*nto* | *qnx*)
20063  version_type=qnx
20064  need_lib_prefix=no
20065  need_version=no
20066  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20067  soname_spec='${libname}${release}${shared_ext}$major'
20068  shlibpath_var=LD_LIBRARY_PATH
20069  shlibpath_overrides_runpath=no
20070  hardcode_into_libs=yes
20071  dynamic_linker='ldqnx.so'
20072  ;;
20073
20074openbsd*)
20075  version_type=sunos
20076  sys_lib_dlsearch_path_spec="/usr/lib"
20077  need_lib_prefix=no
20078  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20079  case $host_os in
20080    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
20081    *)				need_version=no  ;;
20082  esac
20083  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20084  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20085  shlibpath_var=LD_LIBRARY_PATH
20086  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20087    case $host_os in
20088      openbsd2.[89] | openbsd2.[89].*)
20089	shlibpath_overrides_runpath=no
20090	;;
20091      *)
20092	shlibpath_overrides_runpath=yes
20093	;;
20094      esac
20095  else
20096    shlibpath_overrides_runpath=yes
20097  fi
20098  ;;
20099
20100os2*)
20101  libname_spec='$name'
20102  shrext_cmds=".dll"
20103  need_lib_prefix=no
20104  library_names_spec='$libname${shared_ext} $libname.a'
20105  dynamic_linker='OS/2 ld.exe'
20106  shlibpath_var=LIBPATH
20107  ;;
20108
20109osf3* | osf4* | osf5*)
20110  version_type=osf
20111  need_lib_prefix=no
20112  need_version=no
20113  soname_spec='${libname}${release}${shared_ext}$major'
20114  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20115  shlibpath_var=LD_LIBRARY_PATH
20116  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20117  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20118  ;;
20119
20120rdos*)
20121  dynamic_linker=no
20122  ;;
20123
20124solaris*)
20125  version_type=linux
20126  need_lib_prefix=no
20127  need_version=no
20128  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20129  soname_spec='${libname}${release}${shared_ext}$major'
20130  shlibpath_var=LD_LIBRARY_PATH
20131  shlibpath_overrides_runpath=yes
20132  hardcode_into_libs=yes
20133  # ldd complains unless libraries are executable
20134  postinstall_cmds='chmod +x $lib'
20135  ;;
20136
20137sunos4*)
20138  version_type=sunos
20139  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20140  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20141  shlibpath_var=LD_LIBRARY_PATH
20142  shlibpath_overrides_runpath=yes
20143  if test "$with_gnu_ld" = yes; then
20144    need_lib_prefix=no
20145  fi
20146  need_version=yes
20147  ;;
20148
20149sysv4 | sysv4.3*)
20150  version_type=linux
20151  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20152  soname_spec='${libname}${release}${shared_ext}$major'
20153  shlibpath_var=LD_LIBRARY_PATH
20154  case $host_vendor in
20155    sni)
20156      shlibpath_overrides_runpath=no
20157      need_lib_prefix=no
20158      runpath_var=LD_RUN_PATH
20159      ;;
20160    siemens)
20161      need_lib_prefix=no
20162      ;;
20163    motorola)
20164      need_lib_prefix=no
20165      need_version=no
20166      shlibpath_overrides_runpath=no
20167      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20168      ;;
20169  esac
20170  ;;
20171
20172sysv4*MP*)
20173  if test -d /usr/nec ;then
20174    version_type=linux
20175    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20176    soname_spec='$libname${shared_ext}.$major'
20177    shlibpath_var=LD_LIBRARY_PATH
20178  fi
20179  ;;
20180
20181sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20182  version_type=freebsd-elf
20183  need_lib_prefix=no
20184  need_version=no
20185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20186  soname_spec='${libname}${release}${shared_ext}$major'
20187  shlibpath_var=LD_LIBRARY_PATH
20188  shlibpath_overrides_runpath=yes
20189  hardcode_into_libs=yes
20190  if test "$with_gnu_ld" = yes; then
20191    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20192  else
20193    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20194    case $host_os in
20195      sco3.2v5*)
20196        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20197	;;
20198    esac
20199  fi
20200  sys_lib_dlsearch_path_spec='/usr/lib'
20201  ;;
20202
20203tpf*)
20204  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20205  version_type=linux
20206  need_lib_prefix=no
20207  need_version=no
20208  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20209  shlibpath_var=LD_LIBRARY_PATH
20210  shlibpath_overrides_runpath=no
20211  hardcode_into_libs=yes
20212  ;;
20213
20214uts4*)
20215  version_type=linux
20216  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20217  soname_spec='${libname}${release}${shared_ext}$major'
20218  shlibpath_var=LD_LIBRARY_PATH
20219  ;;
20220
20221*)
20222  dynamic_linker=no
20223  ;;
20224esac
20225{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20226echo "${ECHO_T}$dynamic_linker" >&6; }
20227test "$dynamic_linker" = no && can_build_shared=no
20228
20229variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20230if test "$GCC" = yes; then
20231  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20232fi
20233
20234if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20235  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20236fi
20237if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20238  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20239fi
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332  { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20333echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20334hardcode_action=
20335if test -n "$hardcode_libdir_flag_spec" ||
20336   test -n "$runpath_var" ||
20337   test "X$hardcode_automatic" = "Xyes" ; then
20338
20339  # We can hardcode non-existent directories.
20340  if test "$hardcode_direct" != no &&
20341     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20342     # have to relink, otherwise we might link with an installed library
20343     # when we should be linking with a yet-to-be-installed one
20344     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
20345     test "$hardcode_minus_L" != no; then
20346    # Linking always hardcodes the temporary library directory.
20347    hardcode_action=relink
20348  else
20349    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20350    hardcode_action=immediate
20351  fi
20352else
20353  # We cannot hardcode anything, or else we can only hardcode existing
20354  # directories.
20355  hardcode_action=unsupported
20356fi
20357{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
20358echo "${ECHO_T}$hardcode_action" >&6; }
20359
20360if test "$hardcode_action" = relink ||
20361   test "$inherit_rpath" = yes; then
20362  # Fast installation is not supported
20363  enable_fast_install=no
20364elif test "$shlibpath_overrides_runpath" = yes ||
20365     test "$enable_shared" = no; then
20366  # Fast installation is not necessary
20367  enable_fast_install=needless
20368fi
20369
20370
20371
20372
20373
20374
20375  if test "x$enable_dlopen" != xyes; then
20376  enable_dlopen=unknown
20377  enable_dlopen_self=unknown
20378  enable_dlopen_self_static=unknown
20379else
20380  lt_cv_dlopen=no
20381  lt_cv_dlopen_libs=
20382
20383  case $host_os in
20384  beos*)
20385    lt_cv_dlopen="load_add_on"
20386    lt_cv_dlopen_libs=
20387    lt_cv_dlopen_self=yes
20388    ;;
20389
20390  mingw* | pw32* | cegcc*)
20391    lt_cv_dlopen="LoadLibrary"
20392    lt_cv_dlopen_libs=
20393    ;;
20394
20395  cygwin*)
20396    lt_cv_dlopen="dlopen"
20397    lt_cv_dlopen_libs=
20398    ;;
20399
20400  darwin*)
20401  # if libdl is installed we need to link against it
20402    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20403echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20404if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20405  echo $ECHO_N "(cached) $ECHO_C" >&6
20406else
20407  ac_check_lib_save_LIBS=$LIBS
20408LIBS="-ldl  $LIBS"
20409cat >conftest.$ac_ext <<_ACEOF
20410/* confdefs.h.  */
20411_ACEOF
20412cat confdefs.h >>conftest.$ac_ext
20413cat >>conftest.$ac_ext <<_ACEOF
20414/* end confdefs.h.  */
20415
20416/* Override any GCC internal prototype to avoid an error.
20417   Use char because int might match the return type of a GCC
20418   builtin and then its argument prototype would still apply.  */
20419#ifdef __cplusplus
20420extern "C"
20421#endif
20422char dlopen ();
20423int
20424main ()
20425{
20426return dlopen ();
20427  ;
20428  return 0;
20429}
20430_ACEOF
20431rm -f conftest.$ac_objext conftest$ac_exeext
20432if { (ac_try="$ac_link"
20433case "(($ac_try" in
20434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20435  *) ac_try_echo=$ac_try;;
20436esac
20437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20438  (eval "$ac_link") 2>conftest.er1
20439  ac_status=$?
20440  grep -v '^ *+' conftest.er1 >conftest.err
20441  rm -f conftest.er1
20442  cat conftest.err >&5
20443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444  (exit $ac_status); } && {
20445	 test -z "$ac_c_werror_flag" ||
20446	 test ! -s conftest.err
20447       } && test -s conftest$ac_exeext &&
20448       $as_test_x conftest$ac_exeext; then
20449  ac_cv_lib_dl_dlopen=yes
20450else
20451  echo "$as_me: failed program was:" >&5
20452sed 's/^/| /' conftest.$ac_ext >&5
20453
20454	ac_cv_lib_dl_dlopen=no
20455fi
20456
20457rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20458      conftest$ac_exeext conftest.$ac_ext
20459LIBS=$ac_check_lib_save_LIBS
20460fi
20461{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20462echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20463if test $ac_cv_lib_dl_dlopen = yes; then
20464  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20465else
20466
20467    lt_cv_dlopen="dyld"
20468    lt_cv_dlopen_libs=
20469    lt_cv_dlopen_self=yes
20470
20471fi
20472
20473    ;;
20474
20475  *)
20476    { echo "$as_me:$LINENO: checking for shl_load" >&5
20477echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
20478if test "${ac_cv_func_shl_load+set}" = set; then
20479  echo $ECHO_N "(cached) $ECHO_C" >&6
20480else
20481  cat >conftest.$ac_ext <<_ACEOF
20482/* confdefs.h.  */
20483_ACEOF
20484cat confdefs.h >>conftest.$ac_ext
20485cat >>conftest.$ac_ext <<_ACEOF
20486/* end confdefs.h.  */
20487/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20488   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20489#define shl_load innocuous_shl_load
20490
20491/* System header to define __stub macros and hopefully few prototypes,
20492    which can conflict with char shl_load (); below.
20493    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20494    <limits.h> exists even on freestanding compilers.  */
20495
20496#ifdef __STDC__
20497# include <limits.h>
20498#else
20499# include <assert.h>
20500#endif
20501
20502#undef shl_load
20503
20504/* Override any GCC internal prototype to avoid an error.
20505   Use char because int might match the return type of a GCC
20506   builtin and then its argument prototype would still apply.  */
20507#ifdef __cplusplus
20508extern "C"
20509#endif
20510char shl_load ();
20511/* The GNU C library defines this for functions which it implements
20512    to always fail with ENOSYS.  Some functions are actually named
20513    something starting with __ and the normal name is an alias.  */
20514#if defined __stub_shl_load || defined __stub___shl_load
20515choke me
20516#endif
20517
20518int
20519main ()
20520{
20521return shl_load ();
20522  ;
20523  return 0;
20524}
20525_ACEOF
20526rm -f conftest.$ac_objext conftest$ac_exeext
20527if { (ac_try="$ac_link"
20528case "(($ac_try" in
20529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20530  *) ac_try_echo=$ac_try;;
20531esac
20532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20533  (eval "$ac_link") 2>conftest.er1
20534  ac_status=$?
20535  grep -v '^ *+' conftest.er1 >conftest.err
20536  rm -f conftest.er1
20537  cat conftest.err >&5
20538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539  (exit $ac_status); } && {
20540	 test -z "$ac_c_werror_flag" ||
20541	 test ! -s conftest.err
20542       } && test -s conftest$ac_exeext &&
20543       $as_test_x conftest$ac_exeext; then
20544  ac_cv_func_shl_load=yes
20545else
20546  echo "$as_me: failed program was:" >&5
20547sed 's/^/| /' conftest.$ac_ext >&5
20548
20549	ac_cv_func_shl_load=no
20550fi
20551
20552rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20553      conftest$ac_exeext conftest.$ac_ext
20554fi
20555{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20556echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
20557if test $ac_cv_func_shl_load = yes; then
20558  lt_cv_dlopen="shl_load"
20559else
20560  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20561echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
20562if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20563  echo $ECHO_N "(cached) $ECHO_C" >&6
20564else
20565  ac_check_lib_save_LIBS=$LIBS
20566LIBS="-ldld  $LIBS"
20567cat >conftest.$ac_ext <<_ACEOF
20568/* confdefs.h.  */
20569_ACEOF
20570cat confdefs.h >>conftest.$ac_ext
20571cat >>conftest.$ac_ext <<_ACEOF
20572/* end confdefs.h.  */
20573
20574/* Override any GCC internal prototype to avoid an error.
20575   Use char because int might match the return type of a GCC
20576   builtin and then its argument prototype would still apply.  */
20577#ifdef __cplusplus
20578extern "C"
20579#endif
20580char shl_load ();
20581int
20582main ()
20583{
20584return shl_load ();
20585  ;
20586  return 0;
20587}
20588_ACEOF
20589rm -f conftest.$ac_objext conftest$ac_exeext
20590if { (ac_try="$ac_link"
20591case "(($ac_try" in
20592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20593  *) ac_try_echo=$ac_try;;
20594esac
20595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20596  (eval "$ac_link") 2>conftest.er1
20597  ac_status=$?
20598  grep -v '^ *+' conftest.er1 >conftest.err
20599  rm -f conftest.er1
20600  cat conftest.err >&5
20601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602  (exit $ac_status); } && {
20603	 test -z "$ac_c_werror_flag" ||
20604	 test ! -s conftest.err
20605       } && test -s conftest$ac_exeext &&
20606       $as_test_x conftest$ac_exeext; then
20607  ac_cv_lib_dld_shl_load=yes
20608else
20609  echo "$as_me: failed program was:" >&5
20610sed 's/^/| /' conftest.$ac_ext >&5
20611
20612	ac_cv_lib_dld_shl_load=no
20613fi
20614
20615rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20616      conftest$ac_exeext conftest.$ac_ext
20617LIBS=$ac_check_lib_save_LIBS
20618fi
20619{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20620echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
20621if test $ac_cv_lib_dld_shl_load = yes; then
20622  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
20623else
20624  { echo "$as_me:$LINENO: checking for dlopen" >&5
20625echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
20626if test "${ac_cv_func_dlopen+set}" = set; then
20627  echo $ECHO_N "(cached) $ECHO_C" >&6
20628else
20629  cat >conftest.$ac_ext <<_ACEOF
20630/* confdefs.h.  */
20631_ACEOF
20632cat confdefs.h >>conftest.$ac_ext
20633cat >>conftest.$ac_ext <<_ACEOF
20634/* end confdefs.h.  */
20635/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20636   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20637#define dlopen innocuous_dlopen
20638
20639/* System header to define __stub macros and hopefully few prototypes,
20640    which can conflict with char dlopen (); below.
20641    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20642    <limits.h> exists even on freestanding compilers.  */
20643
20644#ifdef __STDC__
20645# include <limits.h>
20646#else
20647# include <assert.h>
20648#endif
20649
20650#undef dlopen
20651
20652/* Override any GCC internal prototype to avoid an error.
20653   Use char because int might match the return type of a GCC
20654   builtin and then its argument prototype would still apply.  */
20655#ifdef __cplusplus
20656extern "C"
20657#endif
20658char dlopen ();
20659/* The GNU C library defines this for functions which it implements
20660    to always fail with ENOSYS.  Some functions are actually named
20661    something starting with __ and the normal name is an alias.  */
20662#if defined __stub_dlopen || defined __stub___dlopen
20663choke me
20664#endif
20665
20666int
20667main ()
20668{
20669return dlopen ();
20670  ;
20671  return 0;
20672}
20673_ACEOF
20674rm -f conftest.$ac_objext conftest$ac_exeext
20675if { (ac_try="$ac_link"
20676case "(($ac_try" in
20677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20678  *) ac_try_echo=$ac_try;;
20679esac
20680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20681  (eval "$ac_link") 2>conftest.er1
20682  ac_status=$?
20683  grep -v '^ *+' conftest.er1 >conftest.err
20684  rm -f conftest.er1
20685  cat conftest.err >&5
20686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687  (exit $ac_status); } && {
20688	 test -z "$ac_c_werror_flag" ||
20689	 test ! -s conftest.err
20690       } && test -s conftest$ac_exeext &&
20691       $as_test_x conftest$ac_exeext; then
20692  ac_cv_func_dlopen=yes
20693else
20694  echo "$as_me: failed program was:" >&5
20695sed 's/^/| /' conftest.$ac_ext >&5
20696
20697	ac_cv_func_dlopen=no
20698fi
20699
20700rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20701      conftest$ac_exeext conftest.$ac_ext
20702fi
20703{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20704echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
20705if test $ac_cv_func_dlopen = yes; then
20706  lt_cv_dlopen="dlopen"
20707else
20708  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20709echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20710if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20711  echo $ECHO_N "(cached) $ECHO_C" >&6
20712else
20713  ac_check_lib_save_LIBS=$LIBS
20714LIBS="-ldl  $LIBS"
20715cat >conftest.$ac_ext <<_ACEOF
20716/* confdefs.h.  */
20717_ACEOF
20718cat confdefs.h >>conftest.$ac_ext
20719cat >>conftest.$ac_ext <<_ACEOF
20720/* end confdefs.h.  */
20721
20722/* Override any GCC internal prototype to avoid an error.
20723   Use char because int might match the return type of a GCC
20724   builtin and then its argument prototype would still apply.  */
20725#ifdef __cplusplus
20726extern "C"
20727#endif
20728char dlopen ();
20729int
20730main ()
20731{
20732return dlopen ();
20733  ;
20734  return 0;
20735}
20736_ACEOF
20737rm -f conftest.$ac_objext conftest$ac_exeext
20738if { (ac_try="$ac_link"
20739case "(($ac_try" in
20740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741  *) ac_try_echo=$ac_try;;
20742esac
20743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744  (eval "$ac_link") 2>conftest.er1
20745  ac_status=$?
20746  grep -v '^ *+' conftest.er1 >conftest.err
20747  rm -f conftest.er1
20748  cat conftest.err >&5
20749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750  (exit $ac_status); } && {
20751	 test -z "$ac_c_werror_flag" ||
20752	 test ! -s conftest.err
20753       } && test -s conftest$ac_exeext &&
20754       $as_test_x conftest$ac_exeext; then
20755  ac_cv_lib_dl_dlopen=yes
20756else
20757  echo "$as_me: failed program was:" >&5
20758sed 's/^/| /' conftest.$ac_ext >&5
20759
20760	ac_cv_lib_dl_dlopen=no
20761fi
20762
20763rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20764      conftest$ac_exeext conftest.$ac_ext
20765LIBS=$ac_check_lib_save_LIBS
20766fi
20767{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20768echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20769if test $ac_cv_lib_dl_dlopen = yes; then
20770  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20771else
20772  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20773echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
20774if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20775  echo $ECHO_N "(cached) $ECHO_C" >&6
20776else
20777  ac_check_lib_save_LIBS=$LIBS
20778LIBS="-lsvld  $LIBS"
20779cat >conftest.$ac_ext <<_ACEOF
20780/* confdefs.h.  */
20781_ACEOF
20782cat confdefs.h >>conftest.$ac_ext
20783cat >>conftest.$ac_ext <<_ACEOF
20784/* end confdefs.h.  */
20785
20786/* Override any GCC internal prototype to avoid an error.
20787   Use char because int might match the return type of a GCC
20788   builtin and then its argument prototype would still apply.  */
20789#ifdef __cplusplus
20790extern "C"
20791#endif
20792char dlopen ();
20793int
20794main ()
20795{
20796return dlopen ();
20797  ;
20798  return 0;
20799}
20800_ACEOF
20801rm -f conftest.$ac_objext conftest$ac_exeext
20802if { (ac_try="$ac_link"
20803case "(($ac_try" in
20804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20805  *) ac_try_echo=$ac_try;;
20806esac
20807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20808  (eval "$ac_link") 2>conftest.er1
20809  ac_status=$?
20810  grep -v '^ *+' conftest.er1 >conftest.err
20811  rm -f conftest.er1
20812  cat conftest.err >&5
20813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814  (exit $ac_status); } && {
20815	 test -z "$ac_c_werror_flag" ||
20816	 test ! -s conftest.err
20817       } && test -s conftest$ac_exeext &&
20818       $as_test_x conftest$ac_exeext; then
20819  ac_cv_lib_svld_dlopen=yes
20820else
20821  echo "$as_me: failed program was:" >&5
20822sed 's/^/| /' conftest.$ac_ext >&5
20823
20824	ac_cv_lib_svld_dlopen=no
20825fi
20826
20827rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20828      conftest$ac_exeext conftest.$ac_ext
20829LIBS=$ac_check_lib_save_LIBS
20830fi
20831{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20832echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
20833if test $ac_cv_lib_svld_dlopen = yes; then
20834  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20835else
20836  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20837echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
20838if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20839  echo $ECHO_N "(cached) $ECHO_C" >&6
20840else
20841  ac_check_lib_save_LIBS=$LIBS
20842LIBS="-ldld  $LIBS"
20843cat >conftest.$ac_ext <<_ACEOF
20844/* confdefs.h.  */
20845_ACEOF
20846cat confdefs.h >>conftest.$ac_ext
20847cat >>conftest.$ac_ext <<_ACEOF
20848/* end confdefs.h.  */
20849
20850/* Override any GCC internal prototype to avoid an error.
20851   Use char because int might match the return type of a GCC
20852   builtin and then its argument prototype would still apply.  */
20853#ifdef __cplusplus
20854extern "C"
20855#endif
20856char dld_link ();
20857int
20858main ()
20859{
20860return dld_link ();
20861  ;
20862  return 0;
20863}
20864_ACEOF
20865rm -f conftest.$ac_objext conftest$ac_exeext
20866if { (ac_try="$ac_link"
20867case "(($ac_try" in
20868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20869  *) ac_try_echo=$ac_try;;
20870esac
20871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20872  (eval "$ac_link") 2>conftest.er1
20873  ac_status=$?
20874  grep -v '^ *+' conftest.er1 >conftest.err
20875  rm -f conftest.er1
20876  cat conftest.err >&5
20877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878  (exit $ac_status); } && {
20879	 test -z "$ac_c_werror_flag" ||
20880	 test ! -s conftest.err
20881       } && test -s conftest$ac_exeext &&
20882       $as_test_x conftest$ac_exeext; then
20883  ac_cv_lib_dld_dld_link=yes
20884else
20885  echo "$as_me: failed program was:" >&5
20886sed 's/^/| /' conftest.$ac_ext >&5
20887
20888	ac_cv_lib_dld_dld_link=no
20889fi
20890
20891rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20892      conftest$ac_exeext conftest.$ac_ext
20893LIBS=$ac_check_lib_save_LIBS
20894fi
20895{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20896echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
20897if test $ac_cv_lib_dld_dld_link = yes; then
20898  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
20899fi
20900
20901
20902fi
20903
20904
20905fi
20906
20907
20908fi
20909
20910
20911fi
20912
20913
20914fi
20915
20916    ;;
20917  esac
20918
20919  if test "x$lt_cv_dlopen" != xno; then
20920    enable_dlopen=yes
20921  else
20922    enable_dlopen=no
20923  fi
20924
20925  case $lt_cv_dlopen in
20926  dlopen)
20927    save_CPPFLAGS="$CPPFLAGS"
20928    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20929
20930    save_LDFLAGS="$LDFLAGS"
20931    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20932
20933    save_LIBS="$LIBS"
20934    LIBS="$lt_cv_dlopen_libs $LIBS"
20935
20936    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20937echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
20938if test "${lt_cv_dlopen_self+set}" = set; then
20939  echo $ECHO_N "(cached) $ECHO_C" >&6
20940else
20941  	  if test "$cross_compiling" = yes; then :
20942  lt_cv_dlopen_self=cross
20943else
20944  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20945  lt_status=$lt_dlunknown
20946  cat > conftest.$ac_ext <<_LT_EOF
20947#line $LINENO "configure"
20948#include "confdefs.h"
20949
20950#if HAVE_DLFCN_H
20951#include <dlfcn.h>
20952#endif
20953
20954#include <stdio.h>
20955
20956#ifdef RTLD_GLOBAL
20957#  define LT_DLGLOBAL		RTLD_GLOBAL
20958#else
20959#  ifdef DL_GLOBAL
20960#    define LT_DLGLOBAL		DL_GLOBAL
20961#  else
20962#    define LT_DLGLOBAL		0
20963#  endif
20964#endif
20965
20966/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20967   find out it does not work in some platform. */
20968#ifndef LT_DLLAZY_OR_NOW
20969#  ifdef RTLD_LAZY
20970#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
20971#  else
20972#    ifdef DL_LAZY
20973#      define LT_DLLAZY_OR_NOW		DL_LAZY
20974#    else
20975#      ifdef RTLD_NOW
20976#        define LT_DLLAZY_OR_NOW	RTLD_NOW
20977#      else
20978#        ifdef DL_NOW
20979#          define LT_DLLAZY_OR_NOW	DL_NOW
20980#        else
20981#          define LT_DLLAZY_OR_NOW	0
20982#        endif
20983#      endif
20984#    endif
20985#  endif
20986#endif
20987
20988/* When -fvisbility=hidden is used, assume the code has been annotated
20989   correspondingly for the symbols needed.  */
20990#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20991void fnord () __attribute__((visibility("default")));
20992#endif
20993
20994void fnord () { int i=42; }
20995int main ()
20996{
20997  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20998  int status = $lt_dlunknown;
20999
21000  if (self)
21001    {
21002      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21003      else
21004        {
21005	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
21006          else puts (dlerror ());
21007	}
21008      /* dlclose (self); */
21009    }
21010  else
21011    puts (dlerror ());
21012
21013  return status;
21014}
21015_LT_EOF
21016  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21017  (eval $ac_link) 2>&5
21018  ac_status=$?
21019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21021    (./conftest; exit; ) >&5 2>/dev/null
21022    lt_status=$?
21023    case x$lt_status in
21024      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21025      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21026      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
21027    esac
21028  else :
21029    # compilation failed
21030    lt_cv_dlopen_self=no
21031  fi
21032fi
21033rm -fr conftest*
21034
21035
21036fi
21037{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
21038echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
21039
21040    if test "x$lt_cv_dlopen_self" = xyes; then
21041      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
21042      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
21043echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
21044if test "${lt_cv_dlopen_self_static+set}" = set; then
21045  echo $ECHO_N "(cached) $ECHO_C" >&6
21046else
21047  	  if test "$cross_compiling" = yes; then :
21048  lt_cv_dlopen_self_static=cross
21049else
21050  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21051  lt_status=$lt_dlunknown
21052  cat > conftest.$ac_ext <<_LT_EOF
21053#line $LINENO "configure"
21054#include "confdefs.h"
21055
21056#if HAVE_DLFCN_H
21057#include <dlfcn.h>
21058#endif
21059
21060#include <stdio.h>
21061
21062#ifdef RTLD_GLOBAL
21063#  define LT_DLGLOBAL		RTLD_GLOBAL
21064#else
21065#  ifdef DL_GLOBAL
21066#    define LT_DLGLOBAL		DL_GLOBAL
21067#  else
21068#    define LT_DLGLOBAL		0
21069#  endif
21070#endif
21071
21072/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21073   find out it does not work in some platform. */
21074#ifndef LT_DLLAZY_OR_NOW
21075#  ifdef RTLD_LAZY
21076#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
21077#  else
21078#    ifdef DL_LAZY
21079#      define LT_DLLAZY_OR_NOW		DL_LAZY
21080#    else
21081#      ifdef RTLD_NOW
21082#        define LT_DLLAZY_OR_NOW	RTLD_NOW
21083#      else
21084#        ifdef DL_NOW
21085#          define LT_DLLAZY_OR_NOW	DL_NOW
21086#        else
21087#          define LT_DLLAZY_OR_NOW	0
21088#        endif
21089#      endif
21090#    endif
21091#  endif
21092#endif
21093
21094/* When -fvisbility=hidden is used, assume the code has been annotated
21095   correspondingly for the symbols needed.  */
21096#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21097void fnord () __attribute__((visibility("default")));
21098#endif
21099
21100void fnord () { int i=42; }
21101int main ()
21102{
21103  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21104  int status = $lt_dlunknown;
21105
21106  if (self)
21107    {
21108      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21109      else
21110        {
21111	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
21112          else puts (dlerror ());
21113	}
21114      /* dlclose (self); */
21115    }
21116  else
21117    puts (dlerror ());
21118
21119  return status;
21120}
21121_LT_EOF
21122  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21123  (eval $ac_link) 2>&5
21124  ac_status=$?
21125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21127    (./conftest; exit; ) >&5 2>/dev/null
21128    lt_status=$?
21129    case x$lt_status in
21130      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21131      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21132      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
21133    esac
21134  else :
21135    # compilation failed
21136    lt_cv_dlopen_self_static=no
21137  fi
21138fi
21139rm -fr conftest*
21140
21141
21142fi
21143{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
21144echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
21145    fi
21146
21147    CPPFLAGS="$save_CPPFLAGS"
21148    LDFLAGS="$save_LDFLAGS"
21149    LIBS="$save_LIBS"
21150    ;;
21151  esac
21152
21153  case $lt_cv_dlopen_self in
21154  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21155  *) enable_dlopen_self=unknown ;;
21156  esac
21157
21158  case $lt_cv_dlopen_self_static in
21159  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21160  *) enable_dlopen_self_static=unknown ;;
21161  esac
21162fi
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180striplib=
21181old_striplib=
21182{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21183echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
21184if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
21185  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21186  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21187  { echo "$as_me:$LINENO: result: yes" >&5
21188echo "${ECHO_T}yes" >&6; }
21189else
21190# FIXME - insert some real tests, host_os isn't really good enough
21191  case $host_os in
21192  darwin*)
21193    if test -n "$STRIP" ; then
21194      striplib="$STRIP -x"
21195      old_striplib="$STRIP -S"
21196      { echo "$as_me:$LINENO: result: yes" >&5
21197echo "${ECHO_T}yes" >&6; }
21198    else
21199      { echo "$as_me:$LINENO: result: no" >&5
21200echo "${ECHO_T}no" >&6; }
21201    fi
21202    ;;
21203  *)
21204    { echo "$as_me:$LINENO: result: no" >&5
21205echo "${ECHO_T}no" >&6; }
21206    ;;
21207  esac
21208fi
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221  # Report which library types will actually be built
21222  { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21223echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21224  { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21225echo "${ECHO_T}$can_build_shared" >&6; }
21226
21227  { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21228echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21229  test "$can_build_shared" = "no" && enable_shared=no
21230
21231  # On AIX, shared libraries and static libraries use the same namespace, and
21232  # are all built from PIC.
21233  case $host_os in
21234  aix3*)
21235    test "$enable_shared" = yes && enable_static=no
21236    if test -n "$RANLIB"; then
21237      archive_cmds="$archive_cmds~\$RANLIB \$lib"
21238      postinstall_cmds='$RANLIB $lib'
21239    fi
21240    ;;
21241
21242  aix[4-9]*)
21243    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21244      test "$enable_shared" = yes && enable_static=no
21245    fi
21246    ;;
21247  esac
21248  { echo "$as_me:$LINENO: result: $enable_shared" >&5
21249echo "${ECHO_T}$enable_shared" >&6; }
21250
21251  { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21252echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21253  # Make sure either enable_shared or enable_static is yes.
21254  test "$enable_shared" = yes || enable_static=yes
21255  { echo "$as_me:$LINENO: result: $enable_static" >&5
21256echo "${ECHO_T}$enable_static" >&6; }
21257
21258
21259
21260
21261fi
21262ac_ext=c
21263ac_cpp='$CPP $CPPFLAGS'
21264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21266ac_compiler_gnu=$ac_cv_c_compiler_gnu
21267
21268CC="$lt_save_CC"
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280
21281
21282        ac_config_commands="$ac_config_commands libtool"
21283
21284
21285
21286
21287# Only expand once:
21288
21289
21290{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
21291echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
21292set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
21293if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
21294  echo $ECHO_N "(cached) $ECHO_C" >&6
21295else
21296  cat >conftest.make <<\_ACEOF
21297SHELL = /bin/sh
21298all:
21299	@echo '@@@%%%=$(MAKE)=@@@%%%'
21300_ACEOF
21301# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21302case `${MAKE-make} -f conftest.make 2>/dev/null` in
21303  *@@@%%%=?*=@@@%%%*)
21304    eval ac_cv_prog_make_${ac_make}_set=yes;;
21305  *)
21306    eval ac_cv_prog_make_${ac_make}_set=no;;
21307esac
21308rm -f conftest.make
21309fi
21310if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
21311  { echo "$as_me:$LINENO: result: yes" >&5
21312echo "${ECHO_T}yes" >&6; }
21313  SET_MAKE=
21314else
21315  { echo "$as_me:$LINENO: result: no" >&5
21316echo "${ECHO_T}no" >&6; }
21317  SET_MAKE="MAKE=${MAKE-make}"
21318fi
21319
21320
21321
21322
21323
21324
21325
21326if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21327	if test -n "$ac_tool_prefix"; then
21328  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21329set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21330{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21332if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21333  echo $ECHO_N "(cached) $ECHO_C" >&6
21334else
21335  case $PKG_CONFIG in
21336  [\\/]* | ?:[\\/]*)
21337  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21338  ;;
21339  *)
21340  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21341for as_dir in $PATH
21342do
21343  IFS=$as_save_IFS
21344  test -z "$as_dir" && as_dir=.
21345  for ac_exec_ext in '' $ac_executable_extensions; do
21346  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21347    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21348    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21349    break 2
21350  fi
21351done
21352done
21353IFS=$as_save_IFS
21354
21355  ;;
21356esac
21357fi
21358PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21359if test -n "$PKG_CONFIG"; then
21360  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21361echo "${ECHO_T}$PKG_CONFIG" >&6; }
21362else
21363  { echo "$as_me:$LINENO: result: no" >&5
21364echo "${ECHO_T}no" >&6; }
21365fi
21366
21367
21368fi
21369if test -z "$ac_cv_path_PKG_CONFIG"; then
21370  ac_pt_PKG_CONFIG=$PKG_CONFIG
21371  # Extract the first word of "pkg-config", so it can be a program name with args.
21372set dummy pkg-config; ac_word=$2
21373{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21375if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21376  echo $ECHO_N "(cached) $ECHO_C" >&6
21377else
21378  case $ac_pt_PKG_CONFIG in
21379  [\\/]* | ?:[\\/]*)
21380  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21381  ;;
21382  *)
21383  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21384for as_dir in $PATH
21385do
21386  IFS=$as_save_IFS
21387  test -z "$as_dir" && as_dir=.
21388  for ac_exec_ext in '' $ac_executable_extensions; do
21389  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21390    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21391    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21392    break 2
21393  fi
21394done
21395done
21396IFS=$as_save_IFS
21397
21398  ;;
21399esac
21400fi
21401ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21402if test -n "$ac_pt_PKG_CONFIG"; then
21403  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21404echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21405else
21406  { echo "$as_me:$LINENO: result: no" >&5
21407echo "${ECHO_T}no" >&6; }
21408fi
21409
21410  if test "x$ac_pt_PKG_CONFIG" = x; then
21411    PKG_CONFIG=""
21412  else
21413    case $cross_compiling:$ac_tool_warned in
21414yes:)
21415{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21416whose name does not start with the host triplet.  If you think this
21417configuration is useful to you, please write to autoconf@gnu.org." >&5
21418echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21419whose name does not start with the host triplet.  If you think this
21420configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21421ac_tool_warned=yes ;;
21422esac
21423    PKG_CONFIG=$ac_pt_PKG_CONFIG
21424  fi
21425else
21426  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21427fi
21428
21429fi
21430if test -n "$PKG_CONFIG"; then
21431	_pkg_min_version=0.9.0
21432	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21433echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21434	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21435		{ echo "$as_me:$LINENO: result: yes" >&5
21436echo "${ECHO_T}yes" >&6; }
21437	else
21438		{ echo "$as_me:$LINENO: result: no" >&5
21439echo "${ECHO_T}no" >&6; }
21440		PKG_CONFIG=""
21441	fi
21442fi
21443for ac_prog in flex lex
21444do
21445  # Extract the first word of "$ac_prog", so it can be a program name with args.
21446set dummy $ac_prog; ac_word=$2
21447{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21449if test "${ac_cv_prog_LEX+set}" = set; then
21450  echo $ECHO_N "(cached) $ECHO_C" >&6
21451else
21452  if test -n "$LEX"; then
21453  ac_cv_prog_LEX="$LEX" # Let the user override the test.
21454else
21455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21456for as_dir in $PATH
21457do
21458  IFS=$as_save_IFS
21459  test -z "$as_dir" && as_dir=.
21460  for ac_exec_ext in '' $ac_executable_extensions; do
21461  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21462    ac_cv_prog_LEX="$ac_prog"
21463    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21464    break 2
21465  fi
21466done
21467done
21468IFS=$as_save_IFS
21469
21470fi
21471fi
21472LEX=$ac_cv_prog_LEX
21473if test -n "$LEX"; then
21474  { echo "$as_me:$LINENO: result: $LEX" >&5
21475echo "${ECHO_T}$LEX" >&6; }
21476else
21477  { echo "$as_me:$LINENO: result: no" >&5
21478echo "${ECHO_T}no" >&6; }
21479fi
21480
21481
21482  test -n "$LEX" && break
21483done
21484test -n "$LEX" || LEX=":"
21485
21486if test "x$LEX" != "x:"; then
21487  cat >conftest.l <<_ACEOF
21488%%
21489a { ECHO; }
21490b { REJECT; }
21491c { yymore (); }
21492d { yyless (1); }
21493e { yyless (input () != 0); }
21494f { unput (yytext[0]); }
21495. { BEGIN INITIAL; }
21496%%
21497#ifdef YYTEXT_POINTER
21498extern char *yytext;
21499#endif
21500int
21501main (void)
21502{
21503  return ! yylex () + ! yywrap ();
21504}
21505_ACEOF
21506{ (ac_try="$LEX conftest.l"
21507case "(($ac_try" in
21508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21509  *) ac_try_echo=$ac_try;;
21510esac
21511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21512  (eval "$LEX conftest.l") 2>&5
21513  ac_status=$?
21514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515  (exit $ac_status); }
21516{ echo "$as_me:$LINENO: checking lex output file root" >&5
21517echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
21518if test "${ac_cv_prog_lex_root+set}" = set; then
21519  echo $ECHO_N "(cached) $ECHO_C" >&6
21520else
21521
21522if test -f lex.yy.c; then
21523  ac_cv_prog_lex_root=lex.yy
21524elif test -f lexyy.c; then
21525  ac_cv_prog_lex_root=lexyy
21526else
21527  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
21528echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
21529   { (exit 1); exit 1; }; }
21530fi
21531fi
21532{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
21533echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
21534LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
21535
21536if test -z "${LEXLIB+set}"; then
21537  { echo "$as_me:$LINENO: checking lex library" >&5
21538echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
21539if test "${ac_cv_lib_lex+set}" = set; then
21540  echo $ECHO_N "(cached) $ECHO_C" >&6
21541else
21542
21543    ac_save_LIBS=$LIBS
21544    ac_cv_lib_lex='none needed'
21545    for ac_lib in '' -lfl -ll; do
21546      LIBS="$ac_lib $ac_save_LIBS"
21547      cat >conftest.$ac_ext <<_ACEOF
21548`cat $LEX_OUTPUT_ROOT.c`
21549_ACEOF
21550rm -f conftest.$ac_objext conftest$ac_exeext
21551if { (ac_try="$ac_link"
21552case "(($ac_try" in
21553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21554  *) ac_try_echo=$ac_try;;
21555esac
21556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21557  (eval "$ac_link") 2>conftest.er1
21558  ac_status=$?
21559  grep -v '^ *+' conftest.er1 >conftest.err
21560  rm -f conftest.er1
21561  cat conftest.err >&5
21562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563  (exit $ac_status); } && {
21564	 test -z "$ac_c_werror_flag" ||
21565	 test ! -s conftest.err
21566       } && test -s conftest$ac_exeext &&
21567       $as_test_x conftest$ac_exeext; then
21568  ac_cv_lib_lex=$ac_lib
21569else
21570  echo "$as_me: failed program was:" >&5
21571sed 's/^/| /' conftest.$ac_ext >&5
21572
21573
21574fi
21575
21576rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21577      conftest$ac_exeext conftest.$ac_ext
21578      test "$ac_cv_lib_lex" != 'none needed' && break
21579    done
21580    LIBS=$ac_save_LIBS
21581
21582fi
21583{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
21584echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
21585  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
21586fi
21587
21588
21589{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
21590echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
21591if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
21592  echo $ECHO_N "(cached) $ECHO_C" >&6
21593else
21594  # POSIX says lex can declare yytext either as a pointer or an array; the
21595# default is implementation-dependent.  Figure out which it is, since
21596# not all implementations provide the %pointer and %array declarations.
21597ac_cv_prog_lex_yytext_pointer=no
21598ac_save_LIBS=$LIBS
21599LIBS="$LEXLIB $ac_save_LIBS"
21600cat >conftest.$ac_ext <<_ACEOF
21601#define YYTEXT_POINTER 1
21602`cat $LEX_OUTPUT_ROOT.c`
21603_ACEOF
21604rm -f conftest.$ac_objext conftest$ac_exeext
21605if { (ac_try="$ac_link"
21606case "(($ac_try" in
21607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21608  *) ac_try_echo=$ac_try;;
21609esac
21610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21611  (eval "$ac_link") 2>conftest.er1
21612  ac_status=$?
21613  grep -v '^ *+' conftest.er1 >conftest.err
21614  rm -f conftest.er1
21615  cat conftest.err >&5
21616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617  (exit $ac_status); } && {
21618	 test -z "$ac_c_werror_flag" ||
21619	 test ! -s conftest.err
21620       } && test -s conftest$ac_exeext &&
21621       $as_test_x conftest$ac_exeext; then
21622  ac_cv_prog_lex_yytext_pointer=yes
21623else
21624  echo "$as_me: failed program was:" >&5
21625sed 's/^/| /' conftest.$ac_ext >&5
21626
21627
21628fi
21629
21630rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21631      conftest$ac_exeext conftest.$ac_ext
21632LIBS=$ac_save_LIBS
21633
21634fi
21635{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
21636echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
21637if test $ac_cv_prog_lex_yytext_pointer = yes; then
21638
21639cat >>confdefs.h <<\_ACEOF
21640#define YYTEXT_POINTER 1
21641_ACEOF
21642
21643fi
21644rm -f conftest.l $LEX_OUTPUT_ROOT.c
21645
21646fi
21647for ac_prog in 'bison -y' byacc
21648do
21649  # Extract the first word of "$ac_prog", so it can be a program name with args.
21650set dummy $ac_prog; ac_word=$2
21651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21653if test "${ac_cv_prog_YACC+set}" = set; then
21654  echo $ECHO_N "(cached) $ECHO_C" >&6
21655else
21656  if test -n "$YACC"; then
21657  ac_cv_prog_YACC="$YACC" # Let the user override the test.
21658else
21659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21660for as_dir in $PATH
21661do
21662  IFS=$as_save_IFS
21663  test -z "$as_dir" && as_dir=.
21664  for ac_exec_ext in '' $ac_executable_extensions; do
21665  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21666    ac_cv_prog_YACC="$ac_prog"
21667    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21668    break 2
21669  fi
21670done
21671done
21672IFS=$as_save_IFS
21673
21674fi
21675fi
21676YACC=$ac_cv_prog_YACC
21677if test -n "$YACC"; then
21678  { echo "$as_me:$LINENO: result: $YACC" >&5
21679echo "${ECHO_T}$YACC" >&6; }
21680else
21681  { echo "$as_me:$LINENO: result: no" >&5
21682echo "${ECHO_T}no" >&6; }
21683fi
21684
21685
21686  test -n "$YACC" && break
21687done
21688test -n "$YACC" || YACC="yacc"
21689
21690# Check whether --enable-largefile was given.
21691if test "${enable_largefile+set}" = set; then
21692  enableval=$enable_largefile;
21693fi
21694
21695if test "$enable_largefile" != no; then
21696
21697  { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
21698echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
21699if test "${ac_cv_sys_largefile_CC+set}" = set; then
21700  echo $ECHO_N "(cached) $ECHO_C" >&6
21701else
21702  ac_cv_sys_largefile_CC=no
21703     if test "$GCC" != yes; then
21704       ac_save_CC=$CC
21705       while :; do
21706	 # IRIX 6.2 and later do not support large files by default,
21707	 # so use the C compiler's -n32 option if that helps.
21708	 cat >conftest.$ac_ext <<_ACEOF
21709/* confdefs.h.  */
21710_ACEOF
21711cat confdefs.h >>conftest.$ac_ext
21712cat >>conftest.$ac_ext <<_ACEOF
21713/* end confdefs.h.  */
21714#include <sys/types.h>
21715 /* Check that off_t can represent 2**63 - 1 correctly.
21716    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21717    since some C++ compilers masquerading as C compilers
21718    incorrectly reject 9223372036854775807.  */
21719#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21720  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21721		       && LARGE_OFF_T % 2147483647 == 1)
21722		      ? 1 : -1];
21723int
21724main ()
21725{
21726
21727  ;
21728  return 0;
21729}
21730_ACEOF
21731	 rm -f conftest.$ac_objext
21732if { (ac_try="$ac_compile"
21733case "(($ac_try" in
21734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21735  *) ac_try_echo=$ac_try;;
21736esac
21737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21738  (eval "$ac_compile") 2>conftest.er1
21739  ac_status=$?
21740  grep -v '^ *+' conftest.er1 >conftest.err
21741  rm -f conftest.er1
21742  cat conftest.err >&5
21743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744  (exit $ac_status); } && {
21745	 test -z "$ac_c_werror_flag" ||
21746	 test ! -s conftest.err
21747       } && test -s conftest.$ac_objext; then
21748  break
21749else
21750  echo "$as_me: failed program was:" >&5
21751sed 's/^/| /' conftest.$ac_ext >&5
21752
21753
21754fi
21755
21756rm -f core conftest.err conftest.$ac_objext
21757	 CC="$CC -n32"
21758	 rm -f conftest.$ac_objext
21759if { (ac_try="$ac_compile"
21760case "(($ac_try" in
21761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21762  *) ac_try_echo=$ac_try;;
21763esac
21764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21765  (eval "$ac_compile") 2>conftest.er1
21766  ac_status=$?
21767  grep -v '^ *+' conftest.er1 >conftest.err
21768  rm -f conftest.er1
21769  cat conftest.err >&5
21770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771  (exit $ac_status); } && {
21772	 test -z "$ac_c_werror_flag" ||
21773	 test ! -s conftest.err
21774       } && test -s conftest.$ac_objext; then
21775  ac_cv_sys_largefile_CC=' -n32'; break
21776else
21777  echo "$as_me: failed program was:" >&5
21778sed 's/^/| /' conftest.$ac_ext >&5
21779
21780
21781fi
21782
21783rm -f core conftest.err conftest.$ac_objext
21784	 break
21785       done
21786       CC=$ac_save_CC
21787       rm -f conftest.$ac_ext
21788    fi
21789fi
21790{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
21791echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
21792  if test "$ac_cv_sys_largefile_CC" != no; then
21793    CC=$CC$ac_cv_sys_largefile_CC
21794  fi
21795
21796  { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21797echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
21798if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21799  echo $ECHO_N "(cached) $ECHO_C" >&6
21800else
21801  while :; do
21802  cat >conftest.$ac_ext <<_ACEOF
21803/* confdefs.h.  */
21804_ACEOF
21805cat confdefs.h >>conftest.$ac_ext
21806cat >>conftest.$ac_ext <<_ACEOF
21807/* end confdefs.h.  */
21808#include <sys/types.h>
21809 /* Check that off_t can represent 2**63 - 1 correctly.
21810    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21811    since some C++ compilers masquerading as C compilers
21812    incorrectly reject 9223372036854775807.  */
21813#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21814  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21815		       && LARGE_OFF_T % 2147483647 == 1)
21816		      ? 1 : -1];
21817int
21818main ()
21819{
21820
21821  ;
21822  return 0;
21823}
21824_ACEOF
21825rm -f conftest.$ac_objext
21826if { (ac_try="$ac_compile"
21827case "(($ac_try" in
21828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21829  *) ac_try_echo=$ac_try;;
21830esac
21831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21832  (eval "$ac_compile") 2>conftest.er1
21833  ac_status=$?
21834  grep -v '^ *+' conftest.er1 >conftest.err
21835  rm -f conftest.er1
21836  cat conftest.err >&5
21837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838  (exit $ac_status); } && {
21839	 test -z "$ac_c_werror_flag" ||
21840	 test ! -s conftest.err
21841       } && test -s conftest.$ac_objext; then
21842  ac_cv_sys_file_offset_bits=no; break
21843else
21844  echo "$as_me: failed program was:" >&5
21845sed 's/^/| /' conftest.$ac_ext >&5
21846
21847
21848fi
21849
21850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21851  cat >conftest.$ac_ext <<_ACEOF
21852/* confdefs.h.  */
21853_ACEOF
21854cat confdefs.h >>conftest.$ac_ext
21855cat >>conftest.$ac_ext <<_ACEOF
21856/* end confdefs.h.  */
21857#define _FILE_OFFSET_BITS 64
21858#include <sys/types.h>
21859 /* Check that off_t can represent 2**63 - 1 correctly.
21860    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21861    since some C++ compilers masquerading as C compilers
21862    incorrectly reject 9223372036854775807.  */
21863#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21864  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21865		       && LARGE_OFF_T % 2147483647 == 1)
21866		      ? 1 : -1];
21867int
21868main ()
21869{
21870
21871  ;
21872  return 0;
21873}
21874_ACEOF
21875rm -f conftest.$ac_objext
21876if { (ac_try="$ac_compile"
21877case "(($ac_try" in
21878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21879  *) ac_try_echo=$ac_try;;
21880esac
21881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21882  (eval "$ac_compile") 2>conftest.er1
21883  ac_status=$?
21884  grep -v '^ *+' conftest.er1 >conftest.err
21885  rm -f conftest.er1
21886  cat conftest.err >&5
21887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888  (exit $ac_status); } && {
21889	 test -z "$ac_c_werror_flag" ||
21890	 test ! -s conftest.err
21891       } && test -s conftest.$ac_objext; then
21892  ac_cv_sys_file_offset_bits=64; break
21893else
21894  echo "$as_me: failed program was:" >&5
21895sed 's/^/| /' conftest.$ac_ext >&5
21896
21897
21898fi
21899
21900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21901  ac_cv_sys_file_offset_bits=unknown
21902  break
21903done
21904fi
21905{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21906echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
21907case $ac_cv_sys_file_offset_bits in #(
21908  no | unknown) ;;
21909  *)
21910cat >>confdefs.h <<_ACEOF
21911#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21912_ACEOF
21913;;
21914esac
21915rm -f -r conftest*
21916  if test $ac_cv_sys_file_offset_bits = unknown; then
21917    { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21918echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
21919if test "${ac_cv_sys_large_files+set}" = set; then
21920  echo $ECHO_N "(cached) $ECHO_C" >&6
21921else
21922  while :; do
21923  cat >conftest.$ac_ext <<_ACEOF
21924/* confdefs.h.  */
21925_ACEOF
21926cat confdefs.h >>conftest.$ac_ext
21927cat >>conftest.$ac_ext <<_ACEOF
21928/* end confdefs.h.  */
21929#include <sys/types.h>
21930 /* Check that off_t can represent 2**63 - 1 correctly.
21931    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21932    since some C++ compilers masquerading as C compilers
21933    incorrectly reject 9223372036854775807.  */
21934#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21935  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21936		       && LARGE_OFF_T % 2147483647 == 1)
21937		      ? 1 : -1];
21938int
21939main ()
21940{
21941
21942  ;
21943  return 0;
21944}
21945_ACEOF
21946rm -f conftest.$ac_objext
21947if { (ac_try="$ac_compile"
21948case "(($ac_try" in
21949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21950  *) ac_try_echo=$ac_try;;
21951esac
21952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21953  (eval "$ac_compile") 2>conftest.er1
21954  ac_status=$?
21955  grep -v '^ *+' conftest.er1 >conftest.err
21956  rm -f conftest.er1
21957  cat conftest.err >&5
21958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959  (exit $ac_status); } && {
21960	 test -z "$ac_c_werror_flag" ||
21961	 test ! -s conftest.err
21962       } && test -s conftest.$ac_objext; then
21963  ac_cv_sys_large_files=no; break
21964else
21965  echo "$as_me: failed program was:" >&5
21966sed 's/^/| /' conftest.$ac_ext >&5
21967
21968
21969fi
21970
21971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21972  cat >conftest.$ac_ext <<_ACEOF
21973/* confdefs.h.  */
21974_ACEOF
21975cat confdefs.h >>conftest.$ac_ext
21976cat >>conftest.$ac_ext <<_ACEOF
21977/* end confdefs.h.  */
21978#define _LARGE_FILES 1
21979#include <sys/types.h>
21980 /* Check that off_t can represent 2**63 - 1 correctly.
21981    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21982    since some C++ compilers masquerading as C compilers
21983    incorrectly reject 9223372036854775807.  */
21984#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21985  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21986		       && LARGE_OFF_T % 2147483647 == 1)
21987		      ? 1 : -1];
21988int
21989main ()
21990{
21991
21992  ;
21993  return 0;
21994}
21995_ACEOF
21996rm -f conftest.$ac_objext
21997if { (ac_try="$ac_compile"
21998case "(($ac_try" in
21999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22000  *) ac_try_echo=$ac_try;;
22001esac
22002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22003  (eval "$ac_compile") 2>conftest.er1
22004  ac_status=$?
22005  grep -v '^ *+' conftest.er1 >conftest.err
22006  rm -f conftest.er1
22007  cat conftest.err >&5
22008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009  (exit $ac_status); } && {
22010	 test -z "$ac_c_werror_flag" ||
22011	 test ! -s conftest.err
22012       } && test -s conftest.$ac_objext; then
22013  ac_cv_sys_large_files=1; break
22014else
22015  echo "$as_me: failed program was:" >&5
22016sed 's/^/| /' conftest.$ac_ext >&5
22017
22018
22019fi
22020
22021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22022  ac_cv_sys_large_files=unknown
22023  break
22024done
22025fi
22026{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22027echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
22028case $ac_cv_sys_large_files in #(
22029  no | unknown) ;;
22030  *)
22031cat >>confdefs.h <<_ACEOF
22032#define _LARGE_FILES $ac_cv_sys_large_files
22033_ACEOF
22034;;
22035esac
22036rm -f -r conftest*
22037  fi
22038fi
22039
22040
22041
22042for ac_prog in cpp
22043do
22044  # Extract the first word of "$ac_prog", so it can be a program name with args.
22045set dummy $ac_prog; ac_word=$2
22046{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22048if test "${ac_cv_path_RAWCPP+set}" = set; then
22049  echo $ECHO_N "(cached) $ECHO_C" >&6
22050else
22051  case $RAWCPP in
22052  [\\/]* | ?:[\\/]*)
22053  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
22054  ;;
22055  *)
22056  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22057as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
22058for as_dir in $as_dummy
22059do
22060  IFS=$as_save_IFS
22061  test -z "$as_dir" && as_dir=.
22062  for ac_exec_ext in '' $ac_executable_extensions; do
22063  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22064    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
22065    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22066    break 2
22067  fi
22068done
22069done
22070IFS=$as_save_IFS
22071
22072  ;;
22073esac
22074fi
22075RAWCPP=$ac_cv_path_RAWCPP
22076if test -n "$RAWCPP"; then
22077  { echo "$as_me:$LINENO: result: $RAWCPP" >&5
22078echo "${ECHO_T}$RAWCPP" >&6; }
22079else
22080  { echo "$as_me:$LINENO: result: no" >&5
22081echo "${ECHO_T}no" >&6; }
22082fi
22083
22084
22085  test -n "$RAWCPP" && break
22086done
22087test -n "$RAWCPP" || RAWCPP="${CPP}"
22088
22089
22090# Check for flag to avoid builtin definitions - assumes unix is predefined,
22091# which is not the best choice for supporting other OS'es, but covers most
22092# of the ones we need for now.
22093{ echo "$as_me:$LINENO: checking if $RAWCPP requires -undef" >&5
22094echo $ECHO_N "checking if $RAWCPP requires -undef... $ECHO_C" >&6; }
22095cat >conftest.$ac_ext <<_ACEOF
22096/* confdefs.h.  */
22097_ACEOF
22098cat confdefs.h >>conftest.$ac_ext
22099cat >>conftest.$ac_ext <<_ACEOF
22100/* end confdefs.h.  */
22101Does cpp redefine unix ?
22102_ACEOF
22103if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
22104	{ echo "$as_me:$LINENO: result: no" >&5
22105echo "${ECHO_T}no" >&6; }
22106else
22107	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
22108		RAWCPPFLAGS=-undef
22109		{ echo "$as_me:$LINENO: result: yes" >&5
22110echo "${ECHO_T}yes" >&6; }
22111	# under Cygwin unix is still defined even with -undef
22112	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
22113		RAWCPPFLAGS="-undef -ansi"
22114		{ echo "$as_me:$LINENO: result: yes, with -ansi" >&5
22115echo "${ECHO_T}yes, with -ansi" >&6; }
22116	else
22117		{ { echo "$as_me:$LINENO: error: ${RAWCPP} defines unix with or without -undef.  I don't know what to do." >&5
22118echo "$as_me: error: ${RAWCPP} defines unix with or without -undef.  I don't know what to do." >&2;}
22119   { (exit 1); exit 1; }; }
22120	fi
22121fi
22122rm -f conftest.$ac_ext
22123
22124{ echo "$as_me:$LINENO: checking if $RAWCPP requires -traditional" >&5
22125echo $ECHO_N "checking if $RAWCPP requires -traditional... $ECHO_C" >&6; }
22126cat >conftest.$ac_ext <<_ACEOF
22127/* confdefs.h.  */
22128_ACEOF
22129cat confdefs.h >>conftest.$ac_ext
22130cat >>conftest.$ac_ext <<_ACEOF
22131/* end confdefs.h.  */
22132Does cpp preserve   "whitespace"?
22133_ACEOF
22134if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
22135	{ echo "$as_me:$LINENO: result: no" >&5
22136echo "${ECHO_T}no" >&6; }
22137else
22138	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
22139		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
22140		{ echo "$as_me:$LINENO: result: yes" >&5
22141echo "${ECHO_T}yes" >&6; }
22142	else
22143		{ { echo "$as_me:$LINENO: error: ${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." >&5
22144echo "$as_me: error: ${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." >&2;}
22145   { (exit 1); exit 1; }; }
22146	fi
22147fi
22148rm -f conftest.$ac_ext
22149
22150
22151
22152# Quoted so that make will expand $(CWARNFLAGS) in makefiles to allow
22153# easier overrides at build time.
22154XSERVER_CFLAGS='$(CWARNFLAGS)'
22155
22156
22157# Check whether --with-dtrace was given.
22158if test "${with_dtrace+set}" = set; then
22159  withval=$with_dtrace; WDTRACE=$withval
22160else
22161  WDTRACE=auto
22162fi
22163
22164if test "x$WDTRACE" = "xyes" -o "x$WDTRACE" = "xauto" ; then
22165	# Extract the first word of "dtrace", so it can be a program name with args.
22166set dummy dtrace; ac_word=$2
22167{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22169if test "${ac_cv_path_DTRACE+set}" = set; then
22170  echo $ECHO_N "(cached) $ECHO_C" >&6
22171else
22172  case $DTRACE in
22173  [\\/]* | ?:[\\/]*)
22174  ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
22175  ;;
22176  *)
22177  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22178as_dummy="$PATH:/usr/sbin"
22179for as_dir in $as_dummy
22180do
22181  IFS=$as_save_IFS
22182  test -z "$as_dir" && as_dir=.
22183  for ac_exec_ext in '' $ac_executable_extensions; do
22184  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22185    ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
22186    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22187    break 2
22188  fi
22189done
22190done
22191IFS=$as_save_IFS
22192
22193  test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not_found"
22194  ;;
22195esac
22196fi
22197DTRACE=$ac_cv_path_DTRACE
22198if test -n "$DTRACE"; then
22199  { echo "$as_me:$LINENO: result: $DTRACE" >&5
22200echo "${ECHO_T}$DTRACE" >&6; }
22201else
22202  { echo "$as_me:$LINENO: result: no" >&5
22203echo "${ECHO_T}no" >&6; }
22204fi
22205
22206
22207	if test "x$DTRACE" = "xnot_found" ; then
22208		if test "x$WDTRACE" = "xyes" ; then
22209			{ { echo "$as_me:$LINENO: error: dtrace requested but not found
22210See \`config.log' for more details." >&5
22211echo "$as_me: error: dtrace requested but not found
22212See \`config.log' for more details." >&2;}
22213   { (exit 1); exit 1; }; }
22214		fi
22215		WDTRACE="no"
22216	else
22217		if test "${ac_cv_header_sys_sdt_h+set}" = set; then
22218  { echo "$as_me:$LINENO: checking for sys/sdt.h" >&5
22219echo $ECHO_N "checking for sys/sdt.h... $ECHO_C" >&6; }
22220if test "${ac_cv_header_sys_sdt_h+set}" = set; then
22221  echo $ECHO_N "(cached) $ECHO_C" >&6
22222fi
22223{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sdt_h" >&5
22224echo "${ECHO_T}$ac_cv_header_sys_sdt_h" >&6; }
22225else
22226  # Is the header compilable?
22227{ echo "$as_me:$LINENO: checking sys/sdt.h usability" >&5
22228echo $ECHO_N "checking sys/sdt.h usability... $ECHO_C" >&6; }
22229cat >conftest.$ac_ext <<_ACEOF
22230/* confdefs.h.  */
22231_ACEOF
22232cat confdefs.h >>conftest.$ac_ext
22233cat >>conftest.$ac_ext <<_ACEOF
22234/* end confdefs.h.  */
22235$ac_includes_default
22236#include <sys/sdt.h>
22237_ACEOF
22238rm -f conftest.$ac_objext
22239if { (ac_try="$ac_compile"
22240case "(($ac_try" in
22241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22242  *) ac_try_echo=$ac_try;;
22243esac
22244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22245  (eval "$ac_compile") 2>conftest.er1
22246  ac_status=$?
22247  grep -v '^ *+' conftest.er1 >conftest.err
22248  rm -f conftest.er1
22249  cat conftest.err >&5
22250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251  (exit $ac_status); } && {
22252	 test -z "$ac_c_werror_flag" ||
22253	 test ! -s conftest.err
22254       } && test -s conftest.$ac_objext; then
22255  ac_header_compiler=yes
22256else
22257  echo "$as_me: failed program was:" >&5
22258sed 's/^/| /' conftest.$ac_ext >&5
22259
22260	ac_header_compiler=no
22261fi
22262
22263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22264{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22265echo "${ECHO_T}$ac_header_compiler" >&6; }
22266
22267# Is the header present?
22268{ echo "$as_me:$LINENO: checking sys/sdt.h presence" >&5
22269echo $ECHO_N "checking sys/sdt.h presence... $ECHO_C" >&6; }
22270cat >conftest.$ac_ext <<_ACEOF
22271/* confdefs.h.  */
22272_ACEOF
22273cat confdefs.h >>conftest.$ac_ext
22274cat >>conftest.$ac_ext <<_ACEOF
22275/* end confdefs.h.  */
22276#include <sys/sdt.h>
22277_ACEOF
22278if { (ac_try="$ac_cpp conftest.$ac_ext"
22279case "(($ac_try" in
22280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22281  *) ac_try_echo=$ac_try;;
22282esac
22283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22284  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22285  ac_status=$?
22286  grep -v '^ *+' conftest.er1 >conftest.err
22287  rm -f conftest.er1
22288  cat conftest.err >&5
22289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290  (exit $ac_status); } >/dev/null && {
22291	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22292	 test ! -s conftest.err
22293       }; then
22294  ac_header_preproc=yes
22295else
22296  echo "$as_me: failed program was:" >&5
22297sed 's/^/| /' conftest.$ac_ext >&5
22298
22299  ac_header_preproc=no
22300fi
22301
22302rm -f conftest.err conftest.$ac_ext
22303{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22304echo "${ECHO_T}$ac_header_preproc" >&6; }
22305
22306# So?  What about this header?
22307case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22308  yes:no: )
22309    { echo "$as_me:$LINENO: WARNING: sys/sdt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22310echo "$as_me: WARNING: sys/sdt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22311    { echo "$as_me:$LINENO: WARNING: sys/sdt.h: proceeding with the compiler's result" >&5
22312echo "$as_me: WARNING: sys/sdt.h: proceeding with the compiler's result" >&2;}
22313    ac_header_preproc=yes
22314    ;;
22315  no:yes:* )
22316    { echo "$as_me:$LINENO: WARNING: sys/sdt.h: present but cannot be compiled" >&5
22317echo "$as_me: WARNING: sys/sdt.h: present but cannot be compiled" >&2;}
22318    { echo "$as_me:$LINENO: WARNING: sys/sdt.h:     check for missing prerequisite headers?" >&5
22319echo "$as_me: WARNING: sys/sdt.h:     check for missing prerequisite headers?" >&2;}
22320    { echo "$as_me:$LINENO: WARNING: sys/sdt.h: see the Autoconf documentation" >&5
22321echo "$as_me: WARNING: sys/sdt.h: see the Autoconf documentation" >&2;}
22322    { echo "$as_me:$LINENO: WARNING: sys/sdt.h:     section \"Present But Cannot Be Compiled\"" >&5
22323echo "$as_me: WARNING: sys/sdt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22324    { echo "$as_me:$LINENO: WARNING: sys/sdt.h: proceeding with the preprocessor's result" >&5
22325echo "$as_me: WARNING: sys/sdt.h: proceeding with the preprocessor's result" >&2;}
22326    { echo "$as_me:$LINENO: WARNING: sys/sdt.h: in the future, the compiler will take precedence" >&5
22327echo "$as_me: WARNING: sys/sdt.h: in the future, the compiler will take precedence" >&2;}
22328    ( cat <<\_ASBOX
22329## ---------------------------------------------------------------------- ##
22330## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
22331## ---------------------------------------------------------------------- ##
22332_ASBOX
22333     ) | sed "s/^/$as_me: WARNING:     /" >&2
22334    ;;
22335esac
22336{ echo "$as_me:$LINENO: checking for sys/sdt.h" >&5
22337echo $ECHO_N "checking for sys/sdt.h... $ECHO_C" >&6; }
22338if test "${ac_cv_header_sys_sdt_h+set}" = set; then
22339  echo $ECHO_N "(cached) $ECHO_C" >&6
22340else
22341  ac_cv_header_sys_sdt_h=$ac_header_preproc
22342fi
22343{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sdt_h" >&5
22344echo "${ECHO_T}$ac_cv_header_sys_sdt_h" >&6; }
22345
22346fi
22347if test $ac_cv_header_sys_sdt_h = yes; then
22348  HAS_SDT_H="yes"
22349else
22350  HAS_SDT_H="no"
22351fi
22352
22353
22354		if test "x$WDTRACE" = "xauto" -a "x$HAS_SDT_H" = "xno" ; then
22355			WDTRACE="no"
22356		fi
22357	fi
22358fi
22359if test "x$WDTRACE" != "xno" ; then
22360
22361cat >>confdefs.h <<\_ACEOF
22362#define XSERVER_DTRACE 1
22363_ACEOF
22364
22365
22366# Solaris/OpenSolaris require dtrace -G to build dtrace probe information into
22367# object files, and require linking with those as relocatable objects, not .a
22368# archives. MacOS X handles all this in the normal compiler toolchain, and on
22369# some releases (like Tiger), will error out on dtrace -G.  For now, other
22370# platforms with Dtrace ports are assumed to support -G (the FreeBSD and Linux
22371# ports appear to, based on my web searches, but have not yet been tested).
22372	case $host_os in
22373		darwin*)	SPECIAL_DTRACE_OBJECTS=no ;;
22374		*)		SPECIAL_DTRACE_OBJECTS=yes ;;
22375	esac
22376fi
22377 if test "x$WDTRACE" != "xno"; then
22378  XSERVER_DTRACE_TRUE=
22379  XSERVER_DTRACE_FALSE='#'
22380else
22381  XSERVER_DTRACE_TRUE='#'
22382  XSERVER_DTRACE_FALSE=
22383fi
22384
22385 if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes"; then
22386  SPECIAL_DTRACE_OBJECTS_TRUE=
22387  SPECIAL_DTRACE_OBJECTS_FALSE='#'
22388else
22389  SPECIAL_DTRACE_OBJECTS_TRUE='#'
22390  SPECIAL_DTRACE_OBJECTS_FALSE=
22391fi
22392
22393
22394
22395
22396
22397
22398
22399ac_header_dirent=no
22400for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22401  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22402{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22403echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22404if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22405  echo $ECHO_N "(cached) $ECHO_C" >&6
22406else
22407  cat >conftest.$ac_ext <<_ACEOF
22408/* confdefs.h.  */
22409_ACEOF
22410cat confdefs.h >>conftest.$ac_ext
22411cat >>conftest.$ac_ext <<_ACEOF
22412/* end confdefs.h.  */
22413#include <sys/types.h>
22414#include <$ac_hdr>
22415
22416int
22417main ()
22418{
22419if ((DIR *) 0)
22420return 0;
22421  ;
22422  return 0;
22423}
22424_ACEOF
22425rm -f conftest.$ac_objext
22426if { (ac_try="$ac_compile"
22427case "(($ac_try" in
22428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22429  *) ac_try_echo=$ac_try;;
22430esac
22431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22432  (eval "$ac_compile") 2>conftest.er1
22433  ac_status=$?
22434  grep -v '^ *+' conftest.er1 >conftest.err
22435  rm -f conftest.er1
22436  cat conftest.err >&5
22437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438  (exit $ac_status); } && {
22439	 test -z "$ac_c_werror_flag" ||
22440	 test ! -s conftest.err
22441       } && test -s conftest.$ac_objext; then
22442  eval "$as_ac_Header=yes"
22443else
22444  echo "$as_me: failed program was:" >&5
22445sed 's/^/| /' conftest.$ac_ext >&5
22446
22447	eval "$as_ac_Header=no"
22448fi
22449
22450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22451fi
22452ac_res=`eval echo '${'$as_ac_Header'}'`
22453	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22454echo "${ECHO_T}$ac_res" >&6; }
22455if test `eval echo '${'$as_ac_Header'}'` = yes; then
22456  cat >>confdefs.h <<_ACEOF
22457#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22458_ACEOF
22459
22460ac_header_dirent=$ac_hdr; break
22461fi
22462
22463done
22464# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22465if test $ac_header_dirent = dirent.h; then
22466  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22467echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22468if test "${ac_cv_search_opendir+set}" = set; then
22469  echo $ECHO_N "(cached) $ECHO_C" >&6
22470else
22471  ac_func_search_save_LIBS=$LIBS
22472cat >conftest.$ac_ext <<_ACEOF
22473/* confdefs.h.  */
22474_ACEOF
22475cat confdefs.h >>conftest.$ac_ext
22476cat >>conftest.$ac_ext <<_ACEOF
22477/* end confdefs.h.  */
22478
22479/* Override any GCC internal prototype to avoid an error.
22480   Use char because int might match the return type of a GCC
22481   builtin and then its argument prototype would still apply.  */
22482#ifdef __cplusplus
22483extern "C"
22484#endif
22485char opendir ();
22486int
22487main ()
22488{
22489return opendir ();
22490  ;
22491  return 0;
22492}
22493_ACEOF
22494for ac_lib in '' dir; do
22495  if test -z "$ac_lib"; then
22496    ac_res="none required"
22497  else
22498    ac_res=-l$ac_lib
22499    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22500  fi
22501  rm -f conftest.$ac_objext conftest$ac_exeext
22502if { (ac_try="$ac_link"
22503case "(($ac_try" in
22504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22505  *) ac_try_echo=$ac_try;;
22506esac
22507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22508  (eval "$ac_link") 2>conftest.er1
22509  ac_status=$?
22510  grep -v '^ *+' conftest.er1 >conftest.err
22511  rm -f conftest.er1
22512  cat conftest.err >&5
22513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514  (exit $ac_status); } && {
22515	 test -z "$ac_c_werror_flag" ||
22516	 test ! -s conftest.err
22517       } && test -s conftest$ac_exeext &&
22518       $as_test_x conftest$ac_exeext; then
22519  ac_cv_search_opendir=$ac_res
22520else
22521  echo "$as_me: failed program was:" >&5
22522sed 's/^/| /' conftest.$ac_ext >&5
22523
22524
22525fi
22526
22527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22528      conftest$ac_exeext
22529  if test "${ac_cv_search_opendir+set}" = set; then
22530  break
22531fi
22532done
22533if test "${ac_cv_search_opendir+set}" = set; then
22534  :
22535else
22536  ac_cv_search_opendir=no
22537fi
22538rm conftest.$ac_ext
22539LIBS=$ac_func_search_save_LIBS
22540fi
22541{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22542echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22543ac_res=$ac_cv_search_opendir
22544if test "$ac_res" != no; then
22545  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22546
22547fi
22548
22549else
22550  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22551echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22552if test "${ac_cv_search_opendir+set}" = set; then
22553  echo $ECHO_N "(cached) $ECHO_C" >&6
22554else
22555  ac_func_search_save_LIBS=$LIBS
22556cat >conftest.$ac_ext <<_ACEOF
22557/* confdefs.h.  */
22558_ACEOF
22559cat confdefs.h >>conftest.$ac_ext
22560cat >>conftest.$ac_ext <<_ACEOF
22561/* end confdefs.h.  */
22562
22563/* Override any GCC internal prototype to avoid an error.
22564   Use char because int might match the return type of a GCC
22565   builtin and then its argument prototype would still apply.  */
22566#ifdef __cplusplus
22567extern "C"
22568#endif
22569char opendir ();
22570int
22571main ()
22572{
22573return opendir ();
22574  ;
22575  return 0;
22576}
22577_ACEOF
22578for ac_lib in '' x; do
22579  if test -z "$ac_lib"; then
22580    ac_res="none required"
22581  else
22582    ac_res=-l$ac_lib
22583    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22584  fi
22585  rm -f conftest.$ac_objext conftest$ac_exeext
22586if { (ac_try="$ac_link"
22587case "(($ac_try" in
22588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22589  *) ac_try_echo=$ac_try;;
22590esac
22591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22592  (eval "$ac_link") 2>conftest.er1
22593  ac_status=$?
22594  grep -v '^ *+' conftest.er1 >conftest.err
22595  rm -f conftest.er1
22596  cat conftest.err >&5
22597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598  (exit $ac_status); } && {
22599	 test -z "$ac_c_werror_flag" ||
22600	 test ! -s conftest.err
22601       } && test -s conftest$ac_exeext &&
22602       $as_test_x conftest$ac_exeext; then
22603  ac_cv_search_opendir=$ac_res
22604else
22605  echo "$as_me: failed program was:" >&5
22606sed 's/^/| /' conftest.$ac_ext >&5
22607
22608
22609fi
22610
22611rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22612      conftest$ac_exeext
22613  if test "${ac_cv_search_opendir+set}" = set; then
22614  break
22615fi
22616done
22617if test "${ac_cv_search_opendir+set}" = set; then
22618  :
22619else
22620  ac_cv_search_opendir=no
22621fi
22622rm conftest.$ac_ext
22623LIBS=$ac_func_search_save_LIBS
22624fi
22625{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22626echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22627ac_res=$ac_cv_search_opendir
22628if test "$ac_res" != no; then
22629  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22630
22631fi
22632
22633fi
22634
22635{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22636echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22637if test "${ac_cv_header_stdc+set}" = set; then
22638  echo $ECHO_N "(cached) $ECHO_C" >&6
22639else
22640  cat >conftest.$ac_ext <<_ACEOF
22641/* confdefs.h.  */
22642_ACEOF
22643cat confdefs.h >>conftest.$ac_ext
22644cat >>conftest.$ac_ext <<_ACEOF
22645/* end confdefs.h.  */
22646#include <stdlib.h>
22647#include <stdarg.h>
22648#include <string.h>
22649#include <float.h>
22650
22651int
22652main ()
22653{
22654
22655  ;
22656  return 0;
22657}
22658_ACEOF
22659rm -f conftest.$ac_objext
22660if { (ac_try="$ac_compile"
22661case "(($ac_try" in
22662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22663  *) ac_try_echo=$ac_try;;
22664esac
22665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22666  (eval "$ac_compile") 2>conftest.er1
22667  ac_status=$?
22668  grep -v '^ *+' conftest.er1 >conftest.err
22669  rm -f conftest.er1
22670  cat conftest.err >&5
22671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672  (exit $ac_status); } && {
22673	 test -z "$ac_c_werror_flag" ||
22674	 test ! -s conftest.err
22675       } && test -s conftest.$ac_objext; then
22676  ac_cv_header_stdc=yes
22677else
22678  echo "$as_me: failed program was:" >&5
22679sed 's/^/| /' conftest.$ac_ext >&5
22680
22681	ac_cv_header_stdc=no
22682fi
22683
22684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22685
22686if test $ac_cv_header_stdc = yes; then
22687  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22688  cat >conftest.$ac_ext <<_ACEOF
22689/* confdefs.h.  */
22690_ACEOF
22691cat confdefs.h >>conftest.$ac_ext
22692cat >>conftest.$ac_ext <<_ACEOF
22693/* end confdefs.h.  */
22694#include <string.h>
22695
22696_ACEOF
22697if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22698  $EGREP "memchr" >/dev/null 2>&1; then
22699  :
22700else
22701  ac_cv_header_stdc=no
22702fi
22703rm -f -r conftest*
22704
22705fi
22706
22707if test $ac_cv_header_stdc = yes; then
22708  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22709  cat >conftest.$ac_ext <<_ACEOF
22710/* confdefs.h.  */
22711_ACEOF
22712cat confdefs.h >>conftest.$ac_ext
22713cat >>conftest.$ac_ext <<_ACEOF
22714/* end confdefs.h.  */
22715#include <stdlib.h>
22716
22717_ACEOF
22718if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22719  $EGREP "free" >/dev/null 2>&1; then
22720  :
22721else
22722  ac_cv_header_stdc=no
22723fi
22724rm -f -r conftest*
22725
22726fi
22727
22728if test $ac_cv_header_stdc = yes; then
22729  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22730  if test "$cross_compiling" = yes; then
22731  :
22732else
22733  cat >conftest.$ac_ext <<_ACEOF
22734/* confdefs.h.  */
22735_ACEOF
22736cat confdefs.h >>conftest.$ac_ext
22737cat >>conftest.$ac_ext <<_ACEOF
22738/* end confdefs.h.  */
22739#include <ctype.h>
22740#include <stdlib.h>
22741#if ((' ' & 0x0FF) == 0x020)
22742# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22743# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22744#else
22745# define ISLOWER(c) \
22746		   (('a' <= (c) && (c) <= 'i') \
22747		     || ('j' <= (c) && (c) <= 'r') \
22748		     || ('s' <= (c) && (c) <= 'z'))
22749# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22750#endif
22751
22752#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22753int
22754main ()
22755{
22756  int i;
22757  for (i = 0; i < 256; i++)
22758    if (XOR (islower (i), ISLOWER (i))
22759	|| toupper (i) != TOUPPER (i))
22760      return 2;
22761  return 0;
22762}
22763_ACEOF
22764rm -f conftest$ac_exeext
22765if { (ac_try="$ac_link"
22766case "(($ac_try" in
22767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22768  *) ac_try_echo=$ac_try;;
22769esac
22770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22771  (eval "$ac_link") 2>&5
22772  ac_status=$?
22773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22775  { (case "(($ac_try" in
22776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22777  *) ac_try_echo=$ac_try;;
22778esac
22779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22780  (eval "$ac_try") 2>&5
22781  ac_status=$?
22782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22783  (exit $ac_status); }; }; then
22784  :
22785else
22786  echo "$as_me: program exited with status $ac_status" >&5
22787echo "$as_me: failed program was:" >&5
22788sed 's/^/| /' conftest.$ac_ext >&5
22789
22790( exit $ac_status )
22791ac_cv_header_stdc=no
22792fi
22793rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22794fi
22795
22796
22797fi
22798fi
22799{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22800echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22801if test $ac_cv_header_stdc = yes; then
22802
22803cat >>confdefs.h <<\_ACEOF
22804#define STDC_HEADERS 1
22805_ACEOF
22806
22807fi
22808
22809
22810
22811
22812
22813
22814
22815
22816
22817for ac_header in fcntl.h stdlib.h string.h unistd.h dlfcn.h stropts.h fnmatch.h sys/utsname.h
22818do
22819as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22820if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22821  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22823if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22824  echo $ECHO_N "(cached) $ECHO_C" >&6
22825fi
22826ac_res=`eval echo '${'$as_ac_Header'}'`
22827	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22828echo "${ECHO_T}$ac_res" >&6; }
22829else
22830  # Is the header compilable?
22831{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22832echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22833cat >conftest.$ac_ext <<_ACEOF
22834/* confdefs.h.  */
22835_ACEOF
22836cat confdefs.h >>conftest.$ac_ext
22837cat >>conftest.$ac_ext <<_ACEOF
22838/* end confdefs.h.  */
22839$ac_includes_default
22840#include <$ac_header>
22841_ACEOF
22842rm -f conftest.$ac_objext
22843if { (ac_try="$ac_compile"
22844case "(($ac_try" in
22845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22846  *) ac_try_echo=$ac_try;;
22847esac
22848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22849  (eval "$ac_compile") 2>conftest.er1
22850  ac_status=$?
22851  grep -v '^ *+' conftest.er1 >conftest.err
22852  rm -f conftest.er1
22853  cat conftest.err >&5
22854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855  (exit $ac_status); } && {
22856	 test -z "$ac_c_werror_flag" ||
22857	 test ! -s conftest.err
22858       } && test -s conftest.$ac_objext; then
22859  ac_header_compiler=yes
22860else
22861  echo "$as_me: failed program was:" >&5
22862sed 's/^/| /' conftest.$ac_ext >&5
22863
22864	ac_header_compiler=no
22865fi
22866
22867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22868{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22869echo "${ECHO_T}$ac_header_compiler" >&6; }
22870
22871# Is the header present?
22872{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22873echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22874cat >conftest.$ac_ext <<_ACEOF
22875/* confdefs.h.  */
22876_ACEOF
22877cat confdefs.h >>conftest.$ac_ext
22878cat >>conftest.$ac_ext <<_ACEOF
22879/* end confdefs.h.  */
22880#include <$ac_header>
22881_ACEOF
22882if { (ac_try="$ac_cpp conftest.$ac_ext"
22883case "(($ac_try" in
22884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22885  *) ac_try_echo=$ac_try;;
22886esac
22887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22888  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22889  ac_status=$?
22890  grep -v '^ *+' conftest.er1 >conftest.err
22891  rm -f conftest.er1
22892  cat conftest.err >&5
22893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894  (exit $ac_status); } >/dev/null && {
22895	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22896	 test ! -s conftest.err
22897       }; then
22898  ac_header_preproc=yes
22899else
22900  echo "$as_me: failed program was:" >&5
22901sed 's/^/| /' conftest.$ac_ext >&5
22902
22903  ac_header_preproc=no
22904fi
22905
22906rm -f conftest.err conftest.$ac_ext
22907{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22908echo "${ECHO_T}$ac_header_preproc" >&6; }
22909
22910# So?  What about this header?
22911case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22912  yes:no: )
22913    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22914echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22915    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22916echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22917    ac_header_preproc=yes
22918    ;;
22919  no:yes:* )
22920    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22921echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22922    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22923echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22924    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22925echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22926    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22927echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22928    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22929echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22930    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22931echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22932    ( cat <<\_ASBOX
22933## ---------------------------------------------------------------------- ##
22934## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
22935## ---------------------------------------------------------------------- ##
22936_ASBOX
22937     ) | sed "s/^/$as_me: WARNING:     /" >&2
22938    ;;
22939esac
22940{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22942if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22943  echo $ECHO_N "(cached) $ECHO_C" >&6
22944else
22945  eval "$as_ac_Header=\$ac_header_preproc"
22946fi
22947ac_res=`eval echo '${'$as_ac_Header'}'`
22948	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22949echo "${ECHO_T}$ac_res" >&6; }
22950
22951fi
22952if test `eval echo '${'$as_ac_Header'}'` = yes; then
22953  cat >>confdefs.h <<_ACEOF
22954#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22955_ACEOF
22956
22957fi
22958
22959done
22960
22961
22962{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22963echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22964if test "${ac_cv_c_const+set}" = set; then
22965  echo $ECHO_N "(cached) $ECHO_C" >&6
22966else
22967  cat >conftest.$ac_ext <<_ACEOF
22968/* confdefs.h.  */
22969_ACEOF
22970cat confdefs.h >>conftest.$ac_ext
22971cat >>conftest.$ac_ext <<_ACEOF
22972/* end confdefs.h.  */
22973
22974int
22975main ()
22976{
22977/* FIXME: Include the comments suggested by Paul. */
22978#ifndef __cplusplus
22979  /* Ultrix mips cc rejects this.  */
22980  typedef int charset[2];
22981  const charset cs;
22982  /* SunOS 4.1.1 cc rejects this.  */
22983  char const *const *pcpcc;
22984  char **ppc;
22985  /* NEC SVR4.0.2 mips cc rejects this.  */
22986  struct point {int x, y;};
22987  static struct point const zero = {0,0};
22988  /* AIX XL C 1.02.0.0 rejects this.
22989     It does not let you subtract one const X* pointer from another in
22990     an arm of an if-expression whose if-part is not a constant
22991     expression */
22992  const char *g = "string";
22993  pcpcc = &g + (g ? g-g : 0);
22994  /* HPUX 7.0 cc rejects these. */
22995  ++pcpcc;
22996  ppc = (char**) pcpcc;
22997  pcpcc = (char const *const *) ppc;
22998  { /* SCO 3.2v4 cc rejects this.  */
22999    char *t;
23000    char const *s = 0 ? (char *) 0 : (char const *) 0;
23001
23002    *t++ = 0;
23003    if (s) return 0;
23004  }
23005  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23006    int x[] = {25, 17};
23007    const int *foo = &x[0];
23008    ++foo;
23009  }
23010  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23011    typedef const int *iptr;
23012    iptr p = 0;
23013    ++p;
23014  }
23015  { /* AIX XL C 1.02.0.0 rejects this saying
23016       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23017    struct s { int j; const int *ap[3]; };
23018    struct s *b; b->j = 5;
23019  }
23020  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23021    const int foo = 10;
23022    if (!foo) return 0;
23023  }
23024  return !cs[0] && !zero.x;
23025#endif
23026
23027  ;
23028  return 0;
23029}
23030_ACEOF
23031rm -f conftest.$ac_objext
23032if { (ac_try="$ac_compile"
23033case "(($ac_try" in
23034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23035  *) ac_try_echo=$ac_try;;
23036esac
23037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23038  (eval "$ac_compile") 2>conftest.er1
23039  ac_status=$?
23040  grep -v '^ *+' conftest.er1 >conftest.err
23041  rm -f conftest.er1
23042  cat conftest.err >&5
23043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044  (exit $ac_status); } && {
23045	 test -z "$ac_c_werror_flag" ||
23046	 test ! -s conftest.err
23047       } && test -s conftest.$ac_objext; then
23048  ac_cv_c_const=yes
23049else
23050  echo "$as_me: failed program was:" >&5
23051sed 's/^/| /' conftest.$ac_ext >&5
23052
23053	ac_cv_c_const=no
23054fi
23055
23056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23057fi
23058{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23059echo "${ECHO_T}$ac_cv_c_const" >&6; }
23060if test $ac_cv_c_const = no; then
23061
23062cat >>confdefs.h <<\_ACEOF
23063#define const
23064_ACEOF
23065
23066fi
23067
23068{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23069echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23070if test "${ac_cv_c_bigendian+set}" = set; then
23071  echo $ECHO_N "(cached) $ECHO_C" >&6
23072else
23073  # See if sys/param.h defines the BYTE_ORDER macro.
23074cat >conftest.$ac_ext <<_ACEOF
23075/* confdefs.h.  */
23076_ACEOF
23077cat confdefs.h >>conftest.$ac_ext
23078cat >>conftest.$ac_ext <<_ACEOF
23079/* end confdefs.h.  */
23080#include <sys/types.h>
23081#include <sys/param.h>
23082
23083int
23084main ()
23085{
23086#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23087	&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23088 bogus endian macros
23089#endif
23090
23091  ;
23092  return 0;
23093}
23094_ACEOF
23095rm -f conftest.$ac_objext
23096if { (ac_try="$ac_compile"
23097case "(($ac_try" in
23098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23099  *) ac_try_echo=$ac_try;;
23100esac
23101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23102  (eval "$ac_compile") 2>conftest.er1
23103  ac_status=$?
23104  grep -v '^ *+' conftest.er1 >conftest.err
23105  rm -f conftest.er1
23106  cat conftest.err >&5
23107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108  (exit $ac_status); } && {
23109	 test -z "$ac_c_werror_flag" ||
23110	 test ! -s conftest.err
23111       } && test -s conftest.$ac_objext; then
23112  # It does; now see whether it defined to BIG_ENDIAN or not.
23113cat >conftest.$ac_ext <<_ACEOF
23114/* confdefs.h.  */
23115_ACEOF
23116cat confdefs.h >>conftest.$ac_ext
23117cat >>conftest.$ac_ext <<_ACEOF
23118/* end confdefs.h.  */
23119#include <sys/types.h>
23120#include <sys/param.h>
23121
23122int
23123main ()
23124{
23125#if BYTE_ORDER != BIG_ENDIAN
23126 not big endian
23127#endif
23128
23129  ;
23130  return 0;
23131}
23132_ACEOF
23133rm -f conftest.$ac_objext
23134if { (ac_try="$ac_compile"
23135case "(($ac_try" in
23136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23137  *) ac_try_echo=$ac_try;;
23138esac
23139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23140  (eval "$ac_compile") 2>conftest.er1
23141  ac_status=$?
23142  grep -v '^ *+' conftest.er1 >conftest.err
23143  rm -f conftest.er1
23144  cat conftest.err >&5
23145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146  (exit $ac_status); } && {
23147	 test -z "$ac_c_werror_flag" ||
23148	 test ! -s conftest.err
23149       } && test -s conftest.$ac_objext; then
23150  ac_cv_c_bigendian=yes
23151else
23152  echo "$as_me: failed program was:" >&5
23153sed 's/^/| /' conftest.$ac_ext >&5
23154
23155	ac_cv_c_bigendian=no
23156fi
23157
23158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23159else
23160  echo "$as_me: failed program was:" >&5
23161sed 's/^/| /' conftest.$ac_ext >&5
23162
23163	# It does not; compile a test program.
23164if test "$cross_compiling" = yes; then
23165  # try to guess the endianness by grepping values into an object file
23166  ac_cv_c_bigendian=unknown
23167  cat >conftest.$ac_ext <<_ACEOF
23168/* confdefs.h.  */
23169_ACEOF
23170cat confdefs.h >>conftest.$ac_ext
23171cat >>conftest.$ac_ext <<_ACEOF
23172/* end confdefs.h.  */
23173short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23174short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23175void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23176short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23177short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23178void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23179int
23180main ()
23181{
23182 _ascii (); _ebcdic ();
23183  ;
23184  return 0;
23185}
23186_ACEOF
23187rm -f conftest.$ac_objext
23188if { (ac_try="$ac_compile"
23189case "(($ac_try" in
23190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23191  *) ac_try_echo=$ac_try;;
23192esac
23193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23194  (eval "$ac_compile") 2>conftest.er1
23195  ac_status=$?
23196  grep -v '^ *+' conftest.er1 >conftest.err
23197  rm -f conftest.er1
23198  cat conftest.err >&5
23199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200  (exit $ac_status); } && {
23201	 test -z "$ac_c_werror_flag" ||
23202	 test ! -s conftest.err
23203       } && test -s conftest.$ac_objext; then
23204  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23205  ac_cv_c_bigendian=yes
23206fi
23207if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23208  if test "$ac_cv_c_bigendian" = unknown; then
23209    ac_cv_c_bigendian=no
23210  else
23211    # finding both strings is unlikely to happen, but who knows?
23212    ac_cv_c_bigendian=unknown
23213  fi
23214fi
23215else
23216  echo "$as_me: failed program was:" >&5
23217sed 's/^/| /' conftest.$ac_ext >&5
23218
23219
23220fi
23221
23222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23223else
23224  cat >conftest.$ac_ext <<_ACEOF
23225/* confdefs.h.  */
23226_ACEOF
23227cat confdefs.h >>conftest.$ac_ext
23228cat >>conftest.$ac_ext <<_ACEOF
23229/* end confdefs.h.  */
23230$ac_includes_default
23231int
23232main ()
23233{
23234
23235  /* Are we little or big endian?  From Harbison&Steele.  */
23236  union
23237  {
23238    long int l;
23239    char c[sizeof (long int)];
23240  } u;
23241  u.l = 1;
23242  return u.c[sizeof (long int) - 1] == 1;
23243
23244  ;
23245  return 0;
23246}
23247_ACEOF
23248rm -f conftest$ac_exeext
23249if { (ac_try="$ac_link"
23250case "(($ac_try" in
23251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23252  *) ac_try_echo=$ac_try;;
23253esac
23254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23255  (eval "$ac_link") 2>&5
23256  ac_status=$?
23257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23259  { (case "(($ac_try" in
23260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23261  *) ac_try_echo=$ac_try;;
23262esac
23263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23264  (eval "$ac_try") 2>&5
23265  ac_status=$?
23266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267  (exit $ac_status); }; }; then
23268  ac_cv_c_bigendian=no
23269else
23270  echo "$as_me: program exited with status $ac_status" >&5
23271echo "$as_me: failed program was:" >&5
23272sed 's/^/| /' conftest.$ac_ext >&5
23273
23274( exit $ac_status )
23275ac_cv_c_bigendian=yes
23276fi
23277rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23278fi
23279
23280
23281fi
23282
23283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23284fi
23285{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23286echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23287case $ac_cv_c_bigendian in
23288  yes)
23289    ENDIAN="X_BIG_ENDIAN" ;;
23290  no)
23291    ENDIAN="X_LITTLE_ENDIAN" ;;
23292  *)
23293    { { echo "$as_me:$LINENO: error: unknown endianness
23294presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23295echo "$as_me: error: unknown endianness
23296presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23297   { (exit 1); exit 1; }; } ;;
23298esac
23299
23300
23301{ echo "$as_me:$LINENO: checking for unsigned long" >&5
23302echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
23303if test "${ac_cv_type_unsigned_long+set}" = set; then
23304  echo $ECHO_N "(cached) $ECHO_C" >&6
23305else
23306  cat >conftest.$ac_ext <<_ACEOF
23307/* confdefs.h.  */
23308_ACEOF
23309cat confdefs.h >>conftest.$ac_ext
23310cat >>conftest.$ac_ext <<_ACEOF
23311/* end confdefs.h.  */
23312$ac_includes_default
23313typedef unsigned long ac__type_new_;
23314int
23315main ()
23316{
23317if ((ac__type_new_ *) 0)
23318  return 0;
23319if (sizeof (ac__type_new_))
23320  return 0;
23321  ;
23322  return 0;
23323}
23324_ACEOF
23325rm -f conftest.$ac_objext
23326if { (ac_try="$ac_compile"
23327case "(($ac_try" in
23328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23329  *) ac_try_echo=$ac_try;;
23330esac
23331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23332  (eval "$ac_compile") 2>conftest.er1
23333  ac_status=$?
23334  grep -v '^ *+' conftest.er1 >conftest.err
23335  rm -f conftest.er1
23336  cat conftest.err >&5
23337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338  (exit $ac_status); } && {
23339	 test -z "$ac_c_werror_flag" ||
23340	 test ! -s conftest.err
23341       } && test -s conftest.$ac_objext; then
23342  ac_cv_type_unsigned_long=yes
23343else
23344  echo "$as_me: failed program was:" >&5
23345sed 's/^/| /' conftest.$ac_ext >&5
23346
23347	ac_cv_type_unsigned_long=no
23348fi
23349
23350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23351fi
23352{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
23353echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
23354
23355# The cast to long int works around a bug in the HP C Compiler
23356# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23357# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23358# This bug is HP SR number 8606223364.
23359{ echo "$as_me:$LINENO: checking size of unsigned long" >&5
23360echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
23361if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
23362  echo $ECHO_N "(cached) $ECHO_C" >&6
23363else
23364  if test "$cross_compiling" = yes; then
23365  # Depending upon the size, compute the lo and hi bounds.
23366cat >conftest.$ac_ext <<_ACEOF
23367/* confdefs.h.  */
23368_ACEOF
23369cat confdefs.h >>conftest.$ac_ext
23370cat >>conftest.$ac_ext <<_ACEOF
23371/* end confdefs.h.  */
23372$ac_includes_default
23373   typedef unsigned long ac__type_sizeof_;
23374int
23375main ()
23376{
23377static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23378test_array [0] = 0
23379
23380  ;
23381  return 0;
23382}
23383_ACEOF
23384rm -f conftest.$ac_objext
23385if { (ac_try="$ac_compile"
23386case "(($ac_try" in
23387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23388  *) ac_try_echo=$ac_try;;
23389esac
23390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23391  (eval "$ac_compile") 2>conftest.er1
23392  ac_status=$?
23393  grep -v '^ *+' conftest.er1 >conftest.err
23394  rm -f conftest.er1
23395  cat conftest.err >&5
23396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397  (exit $ac_status); } && {
23398	 test -z "$ac_c_werror_flag" ||
23399	 test ! -s conftest.err
23400       } && test -s conftest.$ac_objext; then
23401  ac_lo=0 ac_mid=0
23402  while :; do
23403    cat >conftest.$ac_ext <<_ACEOF
23404/* confdefs.h.  */
23405_ACEOF
23406cat confdefs.h >>conftest.$ac_ext
23407cat >>conftest.$ac_ext <<_ACEOF
23408/* end confdefs.h.  */
23409$ac_includes_default
23410   typedef unsigned long ac__type_sizeof_;
23411int
23412main ()
23413{
23414static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23415test_array [0] = 0
23416
23417  ;
23418  return 0;
23419}
23420_ACEOF
23421rm -f conftest.$ac_objext
23422if { (ac_try="$ac_compile"
23423case "(($ac_try" in
23424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23425  *) ac_try_echo=$ac_try;;
23426esac
23427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23428  (eval "$ac_compile") 2>conftest.er1
23429  ac_status=$?
23430  grep -v '^ *+' conftest.er1 >conftest.err
23431  rm -f conftest.er1
23432  cat conftest.err >&5
23433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434  (exit $ac_status); } && {
23435	 test -z "$ac_c_werror_flag" ||
23436	 test ! -s conftest.err
23437       } && test -s conftest.$ac_objext; then
23438  ac_hi=$ac_mid; break
23439else
23440  echo "$as_me: failed program was:" >&5
23441sed 's/^/| /' conftest.$ac_ext >&5
23442
23443	ac_lo=`expr $ac_mid + 1`
23444			if test $ac_lo -le $ac_mid; then
23445			  ac_lo= ac_hi=
23446			  break
23447			fi
23448			ac_mid=`expr 2 '*' $ac_mid + 1`
23449fi
23450
23451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23452  done
23453else
23454  echo "$as_me: failed program was:" >&5
23455sed 's/^/| /' conftest.$ac_ext >&5
23456
23457	cat >conftest.$ac_ext <<_ACEOF
23458/* confdefs.h.  */
23459_ACEOF
23460cat confdefs.h >>conftest.$ac_ext
23461cat >>conftest.$ac_ext <<_ACEOF
23462/* end confdefs.h.  */
23463$ac_includes_default
23464   typedef unsigned long ac__type_sizeof_;
23465int
23466main ()
23467{
23468static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23469test_array [0] = 0
23470
23471  ;
23472  return 0;
23473}
23474_ACEOF
23475rm -f conftest.$ac_objext
23476if { (ac_try="$ac_compile"
23477case "(($ac_try" in
23478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23479  *) ac_try_echo=$ac_try;;
23480esac
23481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23482  (eval "$ac_compile") 2>conftest.er1
23483  ac_status=$?
23484  grep -v '^ *+' conftest.er1 >conftest.err
23485  rm -f conftest.er1
23486  cat conftest.err >&5
23487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23488  (exit $ac_status); } && {
23489	 test -z "$ac_c_werror_flag" ||
23490	 test ! -s conftest.err
23491       } && test -s conftest.$ac_objext; then
23492  ac_hi=-1 ac_mid=-1
23493  while :; do
23494    cat >conftest.$ac_ext <<_ACEOF
23495/* confdefs.h.  */
23496_ACEOF
23497cat confdefs.h >>conftest.$ac_ext
23498cat >>conftest.$ac_ext <<_ACEOF
23499/* end confdefs.h.  */
23500$ac_includes_default
23501   typedef unsigned long ac__type_sizeof_;
23502int
23503main ()
23504{
23505static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23506test_array [0] = 0
23507
23508  ;
23509  return 0;
23510}
23511_ACEOF
23512rm -f conftest.$ac_objext
23513if { (ac_try="$ac_compile"
23514case "(($ac_try" in
23515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23516  *) ac_try_echo=$ac_try;;
23517esac
23518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23519  (eval "$ac_compile") 2>conftest.er1
23520  ac_status=$?
23521  grep -v '^ *+' conftest.er1 >conftest.err
23522  rm -f conftest.er1
23523  cat conftest.err >&5
23524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525  (exit $ac_status); } && {
23526	 test -z "$ac_c_werror_flag" ||
23527	 test ! -s conftest.err
23528       } && test -s conftest.$ac_objext; then
23529  ac_lo=$ac_mid; break
23530else
23531  echo "$as_me: failed program was:" >&5
23532sed 's/^/| /' conftest.$ac_ext >&5
23533
23534	ac_hi=`expr '(' $ac_mid ')' - 1`
23535			if test $ac_mid -le $ac_hi; then
23536			  ac_lo= ac_hi=
23537			  break
23538			fi
23539			ac_mid=`expr 2 '*' $ac_mid`
23540fi
23541
23542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23543  done
23544else
23545  echo "$as_me: failed program was:" >&5
23546sed 's/^/| /' conftest.$ac_ext >&5
23547
23548	ac_lo= ac_hi=
23549fi
23550
23551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23552fi
23553
23554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23555# Binary search between lo and hi bounds.
23556while test "x$ac_lo" != "x$ac_hi"; do
23557  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23558  cat >conftest.$ac_ext <<_ACEOF
23559/* confdefs.h.  */
23560_ACEOF
23561cat confdefs.h >>conftest.$ac_ext
23562cat >>conftest.$ac_ext <<_ACEOF
23563/* end confdefs.h.  */
23564$ac_includes_default
23565   typedef unsigned long ac__type_sizeof_;
23566int
23567main ()
23568{
23569static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23570test_array [0] = 0
23571
23572  ;
23573  return 0;
23574}
23575_ACEOF
23576rm -f conftest.$ac_objext
23577if { (ac_try="$ac_compile"
23578case "(($ac_try" in
23579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23580  *) ac_try_echo=$ac_try;;
23581esac
23582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23583  (eval "$ac_compile") 2>conftest.er1
23584  ac_status=$?
23585  grep -v '^ *+' conftest.er1 >conftest.err
23586  rm -f conftest.er1
23587  cat conftest.err >&5
23588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589  (exit $ac_status); } && {
23590	 test -z "$ac_c_werror_flag" ||
23591	 test ! -s conftest.err
23592       } && test -s conftest.$ac_objext; then
23593  ac_hi=$ac_mid
23594else
23595  echo "$as_me: failed program was:" >&5
23596sed 's/^/| /' conftest.$ac_ext >&5
23597
23598	ac_lo=`expr '(' $ac_mid ')' + 1`
23599fi
23600
23601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23602done
23603case $ac_lo in
23604?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
23605'') if test "$ac_cv_type_unsigned_long" = yes; then
23606     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
23607See \`config.log' for more details." >&5
23608echo "$as_me: error: cannot compute sizeof (unsigned long)
23609See \`config.log' for more details." >&2;}
23610   { (exit 77); exit 77; }; }
23611   else
23612     ac_cv_sizeof_unsigned_long=0
23613   fi ;;
23614esac
23615else
23616  cat >conftest.$ac_ext <<_ACEOF
23617/* confdefs.h.  */
23618_ACEOF
23619cat confdefs.h >>conftest.$ac_ext
23620cat >>conftest.$ac_ext <<_ACEOF
23621/* end confdefs.h.  */
23622$ac_includes_default
23623   typedef unsigned long ac__type_sizeof_;
23624static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23625static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23626#include <stdio.h>
23627#include <stdlib.h>
23628int
23629main ()
23630{
23631
23632  FILE *f = fopen ("conftest.val", "w");
23633  if (! f)
23634    return 1;
23635  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23636    {
23637      long int i = longval ();
23638      if (i != ((long int) (sizeof (ac__type_sizeof_))))
23639	return 1;
23640      fprintf (f, "%ld\n", i);
23641    }
23642  else
23643    {
23644      unsigned long int i = ulongval ();
23645      if (i != ((long int) (sizeof (ac__type_sizeof_))))
23646	return 1;
23647      fprintf (f, "%lu\n", i);
23648    }
23649  return ferror (f) || fclose (f) != 0;
23650
23651  ;
23652  return 0;
23653}
23654_ACEOF
23655rm -f conftest$ac_exeext
23656if { (ac_try="$ac_link"
23657case "(($ac_try" in
23658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23659  *) ac_try_echo=$ac_try;;
23660esac
23661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23662  (eval "$ac_link") 2>&5
23663  ac_status=$?
23664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23666  { (case "(($ac_try" in
23667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23668  *) ac_try_echo=$ac_try;;
23669esac
23670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23671  (eval "$ac_try") 2>&5
23672  ac_status=$?
23673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674  (exit $ac_status); }; }; then
23675  ac_cv_sizeof_unsigned_long=`cat conftest.val`
23676else
23677  echo "$as_me: program exited with status $ac_status" >&5
23678echo "$as_me: failed program was:" >&5
23679sed 's/^/| /' conftest.$ac_ext >&5
23680
23681( exit $ac_status )
23682if test "$ac_cv_type_unsigned_long" = yes; then
23683     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
23684See \`config.log' for more details." >&5
23685echo "$as_me: error: cannot compute sizeof (unsigned long)
23686See \`config.log' for more details." >&2;}
23687   { (exit 77); exit 77; }; }
23688   else
23689     ac_cv_sizeof_unsigned_long=0
23690   fi
23691fi
23692rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23693fi
23694rm -f conftest.val
23695fi
23696{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
23697echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
23698
23699
23700
23701cat >>confdefs.h <<_ACEOF
23702#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23703_ACEOF
23704
23705
23706if test "$ac_cv_sizeof_unsigned_long" = 8; then
23707
23708cat >>confdefs.h <<\_ACEOF
23709#define _XSERVER64 1
23710_ACEOF
23711
23712fi
23713
23714{ echo "$as_me:$LINENO: checking for pid_t" >&5
23715echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23716if test "${ac_cv_type_pid_t+set}" = set; then
23717  echo $ECHO_N "(cached) $ECHO_C" >&6
23718else
23719  cat >conftest.$ac_ext <<_ACEOF
23720/* confdefs.h.  */
23721_ACEOF
23722cat confdefs.h >>conftest.$ac_ext
23723cat >>conftest.$ac_ext <<_ACEOF
23724/* end confdefs.h.  */
23725$ac_includes_default
23726typedef pid_t ac__type_new_;
23727int
23728main ()
23729{
23730if ((ac__type_new_ *) 0)
23731  return 0;
23732if (sizeof (ac__type_new_))
23733  return 0;
23734  ;
23735  return 0;
23736}
23737_ACEOF
23738rm -f conftest.$ac_objext
23739if { (ac_try="$ac_compile"
23740case "(($ac_try" in
23741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23742  *) ac_try_echo=$ac_try;;
23743esac
23744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23745  (eval "$ac_compile") 2>conftest.er1
23746  ac_status=$?
23747  grep -v '^ *+' conftest.er1 >conftest.err
23748  rm -f conftest.er1
23749  cat conftest.err >&5
23750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751  (exit $ac_status); } && {
23752	 test -z "$ac_c_werror_flag" ||
23753	 test ! -s conftest.err
23754       } && test -s conftest.$ac_objext; then
23755  ac_cv_type_pid_t=yes
23756else
23757  echo "$as_me: failed program was:" >&5
23758sed 's/^/| /' conftest.$ac_ext >&5
23759
23760	ac_cv_type_pid_t=no
23761fi
23762
23763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23764fi
23765{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23766echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23767if test $ac_cv_type_pid_t = yes; then
23768  :
23769else
23770
23771cat >>confdefs.h <<_ACEOF
23772#define pid_t int
23773_ACEOF
23774
23775fi
23776
23777
23778# Checks for headers/macros for byte swapping
23779# Known variants:
23780#	<byteswap.h> bswap_16, bswap_32, bswap_64  (glibc)
23781#	<sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
23782#	<sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
23783#	and a fallback to local macros if none of the above are found
23784
23785# if <byteswap.h> is found, assume it's the correct version
23786
23787for ac_header in byteswap.h
23788do
23789as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23790if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23791  { echo "$as_me:$LINENO: checking for $ac_header" >&5
23792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23794  echo $ECHO_N "(cached) $ECHO_C" >&6
23795fi
23796ac_res=`eval echo '${'$as_ac_Header'}'`
23797	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23798echo "${ECHO_T}$ac_res" >&6; }
23799else
23800  # Is the header compilable?
23801{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23802echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23803cat >conftest.$ac_ext <<_ACEOF
23804/* confdefs.h.  */
23805_ACEOF
23806cat confdefs.h >>conftest.$ac_ext
23807cat >>conftest.$ac_ext <<_ACEOF
23808/* end confdefs.h.  */
23809$ac_includes_default
23810#include <$ac_header>
23811_ACEOF
23812rm -f conftest.$ac_objext
23813if { (ac_try="$ac_compile"
23814case "(($ac_try" in
23815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23816  *) ac_try_echo=$ac_try;;
23817esac
23818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23819  (eval "$ac_compile") 2>conftest.er1
23820  ac_status=$?
23821  grep -v '^ *+' conftest.er1 >conftest.err
23822  rm -f conftest.er1
23823  cat conftest.err >&5
23824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23825  (exit $ac_status); } && {
23826	 test -z "$ac_c_werror_flag" ||
23827	 test ! -s conftest.err
23828       } && test -s conftest.$ac_objext; then
23829  ac_header_compiler=yes
23830else
23831  echo "$as_me: failed program was:" >&5
23832sed 's/^/| /' conftest.$ac_ext >&5
23833
23834	ac_header_compiler=no
23835fi
23836
23837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23838{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23839echo "${ECHO_T}$ac_header_compiler" >&6; }
23840
23841# Is the header present?
23842{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23843echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23844cat >conftest.$ac_ext <<_ACEOF
23845/* confdefs.h.  */
23846_ACEOF
23847cat confdefs.h >>conftest.$ac_ext
23848cat >>conftest.$ac_ext <<_ACEOF
23849/* end confdefs.h.  */
23850#include <$ac_header>
23851_ACEOF
23852if { (ac_try="$ac_cpp conftest.$ac_ext"
23853case "(($ac_try" in
23854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23855  *) ac_try_echo=$ac_try;;
23856esac
23857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23858  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23859  ac_status=$?
23860  grep -v '^ *+' conftest.er1 >conftest.err
23861  rm -f conftest.er1
23862  cat conftest.err >&5
23863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864  (exit $ac_status); } >/dev/null && {
23865	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23866	 test ! -s conftest.err
23867       }; then
23868  ac_header_preproc=yes
23869else
23870  echo "$as_me: failed program was:" >&5
23871sed 's/^/| /' conftest.$ac_ext >&5
23872
23873  ac_header_preproc=no
23874fi
23875
23876rm -f conftest.err conftest.$ac_ext
23877{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23878echo "${ECHO_T}$ac_header_preproc" >&6; }
23879
23880# So?  What about this header?
23881case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23882  yes:no: )
23883    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23884echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23885    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23886echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23887    ac_header_preproc=yes
23888    ;;
23889  no:yes:* )
23890    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23891echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23892    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23893echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23894    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23895echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23896    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23897echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23898    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23899echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23900    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23901echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23902    ( cat <<\_ASBOX
23903## ---------------------------------------------------------------------- ##
23904## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
23905## ---------------------------------------------------------------------- ##
23906_ASBOX
23907     ) | sed "s/^/$as_me: WARNING:     /" >&2
23908    ;;
23909esac
23910{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23912if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23913  echo $ECHO_N "(cached) $ECHO_C" >&6
23914else
23915  eval "$as_ac_Header=\$ac_header_preproc"
23916fi
23917ac_res=`eval echo '${'$as_ac_Header'}'`
23918	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23919echo "${ECHO_T}$ac_res" >&6; }
23920
23921fi
23922if test `eval echo '${'$as_ac_Header'}'` = yes; then
23923  cat >>confdefs.h <<_ACEOF
23924#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23925_ACEOF
23926
23927fi
23928
23929done
23930
23931
23932# if <sys/endian.h> is found, have to check which version
23933if test "${ac_cv_header_sys_endian_h+set}" = set; then
23934  { echo "$as_me:$LINENO: checking for sys/endian.h" >&5
23935echo $ECHO_N "checking for sys/endian.h... $ECHO_C" >&6; }
23936if test "${ac_cv_header_sys_endian_h+set}" = set; then
23937  echo $ECHO_N "(cached) $ECHO_C" >&6
23938fi
23939{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_endian_h" >&5
23940echo "${ECHO_T}$ac_cv_header_sys_endian_h" >&6; }
23941else
23942  # Is the header compilable?
23943{ echo "$as_me:$LINENO: checking sys/endian.h usability" >&5
23944echo $ECHO_N "checking sys/endian.h usability... $ECHO_C" >&6; }
23945cat >conftest.$ac_ext <<_ACEOF
23946/* confdefs.h.  */
23947_ACEOF
23948cat confdefs.h >>conftest.$ac_ext
23949cat >>conftest.$ac_ext <<_ACEOF
23950/* end confdefs.h.  */
23951$ac_includes_default
23952#include <sys/endian.h>
23953_ACEOF
23954rm -f conftest.$ac_objext
23955if { (ac_try="$ac_compile"
23956case "(($ac_try" in
23957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23958  *) ac_try_echo=$ac_try;;
23959esac
23960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23961  (eval "$ac_compile") 2>conftest.er1
23962  ac_status=$?
23963  grep -v '^ *+' conftest.er1 >conftest.err
23964  rm -f conftest.er1
23965  cat conftest.err >&5
23966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967  (exit $ac_status); } && {
23968	 test -z "$ac_c_werror_flag" ||
23969	 test ! -s conftest.err
23970       } && test -s conftest.$ac_objext; then
23971  ac_header_compiler=yes
23972else
23973  echo "$as_me: failed program was:" >&5
23974sed 's/^/| /' conftest.$ac_ext >&5
23975
23976	ac_header_compiler=no
23977fi
23978
23979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23980{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23981echo "${ECHO_T}$ac_header_compiler" >&6; }
23982
23983# Is the header present?
23984{ echo "$as_me:$LINENO: checking sys/endian.h presence" >&5
23985echo $ECHO_N "checking sys/endian.h presence... $ECHO_C" >&6; }
23986cat >conftest.$ac_ext <<_ACEOF
23987/* confdefs.h.  */
23988_ACEOF
23989cat confdefs.h >>conftest.$ac_ext
23990cat >>conftest.$ac_ext <<_ACEOF
23991/* end confdefs.h.  */
23992#include <sys/endian.h>
23993_ACEOF
23994if { (ac_try="$ac_cpp conftest.$ac_ext"
23995case "(($ac_try" in
23996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23997  *) ac_try_echo=$ac_try;;
23998esac
23999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24000  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24001  ac_status=$?
24002  grep -v '^ *+' conftest.er1 >conftest.err
24003  rm -f conftest.er1
24004  cat conftest.err >&5
24005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24006  (exit $ac_status); } >/dev/null && {
24007	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24008	 test ! -s conftest.err
24009       }; then
24010  ac_header_preproc=yes
24011else
24012  echo "$as_me: failed program was:" >&5
24013sed 's/^/| /' conftest.$ac_ext >&5
24014
24015  ac_header_preproc=no
24016fi
24017
24018rm -f conftest.err conftest.$ac_ext
24019{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24020echo "${ECHO_T}$ac_header_preproc" >&6; }
24021
24022# So?  What about this header?
24023case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24024  yes:no: )
24025    { echo "$as_me:$LINENO: WARNING: sys/endian.h: accepted by the compiler, rejected by the preprocessor!" >&5
24026echo "$as_me: WARNING: sys/endian.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24027    { echo "$as_me:$LINENO: WARNING: sys/endian.h: proceeding with the compiler's result" >&5
24028echo "$as_me: WARNING: sys/endian.h: proceeding with the compiler's result" >&2;}
24029    ac_header_preproc=yes
24030    ;;
24031  no:yes:* )
24032    { echo "$as_me:$LINENO: WARNING: sys/endian.h: present but cannot be compiled" >&5
24033echo "$as_me: WARNING: sys/endian.h: present but cannot be compiled" >&2;}
24034    { echo "$as_me:$LINENO: WARNING: sys/endian.h:     check for missing prerequisite headers?" >&5
24035echo "$as_me: WARNING: sys/endian.h:     check for missing prerequisite headers?" >&2;}
24036    { echo "$as_me:$LINENO: WARNING: sys/endian.h: see the Autoconf documentation" >&5
24037echo "$as_me: WARNING: sys/endian.h: see the Autoconf documentation" >&2;}
24038    { echo "$as_me:$LINENO: WARNING: sys/endian.h:     section \"Present But Cannot Be Compiled\"" >&5
24039echo "$as_me: WARNING: sys/endian.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24040    { echo "$as_me:$LINENO: WARNING: sys/endian.h: proceeding with the preprocessor's result" >&5
24041echo "$as_me: WARNING: sys/endian.h: proceeding with the preprocessor's result" >&2;}
24042    { echo "$as_me:$LINENO: WARNING: sys/endian.h: in the future, the compiler will take precedence" >&5
24043echo "$as_me: WARNING: sys/endian.h: in the future, the compiler will take precedence" >&2;}
24044    ( cat <<\_ASBOX
24045## ---------------------------------------------------------------------- ##
24046## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
24047## ---------------------------------------------------------------------- ##
24048_ASBOX
24049     ) | sed "s/^/$as_me: WARNING:     /" >&2
24050    ;;
24051esac
24052{ echo "$as_me:$LINENO: checking for sys/endian.h" >&5
24053echo $ECHO_N "checking for sys/endian.h... $ECHO_C" >&6; }
24054if test "${ac_cv_header_sys_endian_h+set}" = set; then
24055  echo $ECHO_N "(cached) $ECHO_C" >&6
24056else
24057  ac_cv_header_sys_endian_h=$ac_header_preproc
24058fi
24059{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_endian_h" >&5
24060echo "${ECHO_T}$ac_cv_header_sys_endian_h" >&6; }
24061
24062fi
24063if test $ac_cv_header_sys_endian_h = yes; then
24064  HAVE_SYS_ENDIAN_H="yes"
24065else
24066  HAVE_SYS_ENDIAN_H="no"
24067fi
24068
24069
24070
24071if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
24072	{ echo "$as_me:$LINENO: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
24073echo $ECHO_N "checking for __swap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; }
24074	cat >conftest.$ac_ext <<_ACEOF
24075/* confdefs.h.  */
24076_ACEOF
24077cat confdefs.h >>conftest.$ac_ext
24078cat >>conftest.$ac_ext <<_ACEOF
24079/* end confdefs.h.  */
24080
24081#include <sys/types.h>
24082#include <sys/endian.h>
24083
24084int
24085main ()
24086{
24087
24088int a = 1, b;
24089b = __swap16(a);
24090
24091  ;
24092  return 0;
24093}
24094
24095_ACEOF
24096rm -f conftest.$ac_objext conftest$ac_exeext
24097if { (ac_try="$ac_link"
24098case "(($ac_try" in
24099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24100  *) ac_try_echo=$ac_try;;
24101esac
24102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24103  (eval "$ac_link") 2>conftest.er1
24104  ac_status=$?
24105  grep -v '^ *+' conftest.er1 >conftest.err
24106  rm -f conftest.er1
24107  cat conftest.err >&5
24108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109  (exit $ac_status); } && {
24110	 test -z "$ac_c_werror_flag" ||
24111	 test ! -s conftest.err
24112       } && test -s conftest$ac_exeext &&
24113       $as_test_x conftest$ac_exeext; then
24114  SYS_ENDIAN__SWAP='yes'
24115else
24116  echo "$as_me: failed program was:" >&5
24117sed 's/^/| /' conftest.$ac_ext >&5
24118
24119	SYS_ENDIAN__SWAP='no'
24120fi
24121
24122rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24123      conftest$ac_exeext conftest.$ac_ext
24124	{ echo "$as_me:$LINENO: result: $SYS_ENDIAN__SWAP" >&5
24125echo "${ECHO_T}$SYS_ENDIAN__SWAP" >&6; }
24126
24127	{ echo "$as_me:$LINENO: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
24128echo $ECHO_N "checking for bswap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; }
24129	cat >conftest.$ac_ext <<_ACEOF
24130/* confdefs.h.  */
24131_ACEOF
24132cat confdefs.h >>conftest.$ac_ext
24133cat >>conftest.$ac_ext <<_ACEOF
24134/* end confdefs.h.  */
24135
24136#include <sys/types.h>
24137#include <sys/endian.h>
24138
24139int
24140main ()
24141{
24142
24143int a = 1, b;
24144b = bswap16(a);
24145
24146  ;
24147  return 0;
24148}
24149
24150_ACEOF
24151rm -f conftest.$ac_objext conftest$ac_exeext
24152if { (ac_try="$ac_link"
24153case "(($ac_try" in
24154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24155  *) ac_try_echo=$ac_try;;
24156esac
24157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24158  (eval "$ac_link") 2>conftest.er1
24159  ac_status=$?
24160  grep -v '^ *+' conftest.er1 >conftest.err
24161  rm -f conftest.er1
24162  cat conftest.err >&5
24163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164  (exit $ac_status); } && {
24165	 test -z "$ac_c_werror_flag" ||
24166	 test ! -s conftest.err
24167       } && test -s conftest$ac_exeext &&
24168       $as_test_x conftest$ac_exeext; then
24169  SYS_ENDIAN_BSWAP='yes'
24170else
24171  echo "$as_me: failed program was:" >&5
24172sed 's/^/| /' conftest.$ac_ext >&5
24173
24174	SYS_ENDIAN_BSWAP='no'
24175fi
24176
24177rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24178      conftest$ac_exeext conftest.$ac_ext
24179	{ echo "$as_me:$LINENO: result: $SYS_ENDIAN_BSWAP" >&5
24180echo "${ECHO_T}$SYS_ENDIAN_BSWAP" >&6; }
24181
24182    	if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
24183		USE_SYS_ENDIAN_H=yes
24184		BSWAP=bswap
24185	else
24186	    	if test "$SYS_ENDIAN__SWAP" = "yes" ; then
24187			USE_SYS_ENDIAN_H=yes
24188			BSWAP=__swap
24189		else
24190			USE_SYS_ENDIAN_H=no
24191		fi
24192	fi
24193
24194	if test "$USE_SYS_ENDIAN_H" = "yes" ; then
24195
24196cat >>confdefs.h <<\_ACEOF
24197#define USE_SYS_ENDIAN_H 1
24198_ACEOF
24199
24200
24201cat >>confdefs.h <<_ACEOF
24202#define bswap_16 ${BSWAP}16
24203_ACEOF
24204
24205
24206cat >>confdefs.h <<_ACEOF
24207#define bswap_32 ${BSWAP}32
24208_ACEOF
24209
24210
24211cat >>confdefs.h <<_ACEOF
24212#define bswap_64 ${BSWAP}64
24213_ACEOF
24214
24215	fi
24216fi
24217
24218{ echo "$as_me:$LINENO: checking for dlopen" >&5
24219echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
24220if test "${ac_cv_func_dlopen+set}" = set; then
24221  echo $ECHO_N "(cached) $ECHO_C" >&6
24222else
24223  cat >conftest.$ac_ext <<_ACEOF
24224/* confdefs.h.  */
24225_ACEOF
24226cat confdefs.h >>conftest.$ac_ext
24227cat >>conftest.$ac_ext <<_ACEOF
24228/* end confdefs.h.  */
24229/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
24230   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24231#define dlopen innocuous_dlopen
24232
24233/* System header to define __stub macros and hopefully few prototypes,
24234    which can conflict with char dlopen (); below.
24235    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24236    <limits.h> exists even on freestanding compilers.  */
24237
24238#ifdef __STDC__
24239# include <limits.h>
24240#else
24241# include <assert.h>
24242#endif
24243
24244#undef dlopen
24245
24246/* Override any GCC internal prototype to avoid an error.
24247   Use char because int might match the return type of a GCC
24248   builtin and then its argument prototype would still apply.  */
24249#ifdef __cplusplus
24250extern "C"
24251#endif
24252char dlopen ();
24253/* The GNU C library defines this for functions which it implements
24254    to always fail with ENOSYS.  Some functions are actually named
24255    something starting with __ and the normal name is an alias.  */
24256#if defined __stub_dlopen || defined __stub___dlopen
24257choke me
24258#endif
24259
24260int
24261main ()
24262{
24263return dlopen ();
24264  ;
24265  return 0;
24266}
24267_ACEOF
24268rm -f conftest.$ac_objext conftest$ac_exeext
24269if { (ac_try="$ac_link"
24270case "(($ac_try" in
24271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24272  *) ac_try_echo=$ac_try;;
24273esac
24274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24275  (eval "$ac_link") 2>conftest.er1
24276  ac_status=$?
24277  grep -v '^ *+' conftest.er1 >conftest.err
24278  rm -f conftest.er1
24279  cat conftest.err >&5
24280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24281  (exit $ac_status); } && {
24282	 test -z "$ac_c_werror_flag" ||
24283	 test ! -s conftest.err
24284       } && test -s conftest$ac_exeext &&
24285       $as_test_x conftest$ac_exeext; then
24286  ac_cv_func_dlopen=yes
24287else
24288  echo "$as_me: failed program was:" >&5
24289sed 's/^/| /' conftest.$ac_ext >&5
24290
24291	ac_cv_func_dlopen=no
24292fi
24293
24294rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24295      conftest$ac_exeext conftest.$ac_ext
24296fi
24297{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
24298echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
24299if test $ac_cv_func_dlopen = yes; then
24300  :
24301else
24302  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24303echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
24304if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24305  echo $ECHO_N "(cached) $ECHO_C" >&6
24306else
24307  ac_check_lib_save_LIBS=$LIBS
24308LIBS="-ldl  $LIBS"
24309cat >conftest.$ac_ext <<_ACEOF
24310/* confdefs.h.  */
24311_ACEOF
24312cat confdefs.h >>conftest.$ac_ext
24313cat >>conftest.$ac_ext <<_ACEOF
24314/* end confdefs.h.  */
24315
24316/* Override any GCC internal prototype to avoid an error.
24317   Use char because int might match the return type of a GCC
24318   builtin and then its argument prototype would still apply.  */
24319#ifdef __cplusplus
24320extern "C"
24321#endif
24322char dlopen ();
24323int
24324main ()
24325{
24326return dlopen ();
24327  ;
24328  return 0;
24329}
24330_ACEOF
24331rm -f conftest.$ac_objext conftest$ac_exeext
24332if { (ac_try="$ac_link"
24333case "(($ac_try" in
24334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24335  *) ac_try_echo=$ac_try;;
24336esac
24337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24338  (eval "$ac_link") 2>conftest.er1
24339  ac_status=$?
24340  grep -v '^ *+' conftest.er1 >conftest.err
24341  rm -f conftest.er1
24342  cat conftest.err >&5
24343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344  (exit $ac_status); } && {
24345	 test -z "$ac_c_werror_flag" ||
24346	 test ! -s conftest.err
24347       } && test -s conftest$ac_exeext &&
24348       $as_test_x conftest$ac_exeext; then
24349  ac_cv_lib_dl_dlopen=yes
24350else
24351  echo "$as_me: failed program was:" >&5
24352sed 's/^/| /' conftest.$ac_ext >&5
24353
24354	ac_cv_lib_dl_dlopen=no
24355fi
24356
24357rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24358      conftest$ac_exeext conftest.$ac_ext
24359LIBS=$ac_check_lib_save_LIBS
24360fi
24361{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24362echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
24363if test $ac_cv_lib_dl_dlopen = yes; then
24364  DLOPEN_LIBS="-ldl"
24365fi
24366
24367fi
24368
24369
24370
24371
24372for ac_func in vprintf
24373do
24374as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24375{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24376echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24377if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24378  echo $ECHO_N "(cached) $ECHO_C" >&6
24379else
24380  cat >conftest.$ac_ext <<_ACEOF
24381/* confdefs.h.  */
24382_ACEOF
24383cat confdefs.h >>conftest.$ac_ext
24384cat >>conftest.$ac_ext <<_ACEOF
24385/* end confdefs.h.  */
24386/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24387   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24388#define $ac_func innocuous_$ac_func
24389
24390/* System header to define __stub macros and hopefully few prototypes,
24391    which can conflict with char $ac_func (); below.
24392    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24393    <limits.h> exists even on freestanding compilers.  */
24394
24395#ifdef __STDC__
24396# include <limits.h>
24397#else
24398# include <assert.h>
24399#endif
24400
24401#undef $ac_func
24402
24403/* Override any GCC internal prototype to avoid an error.
24404   Use char because int might match the return type of a GCC
24405   builtin and then its argument prototype would still apply.  */
24406#ifdef __cplusplus
24407extern "C"
24408#endif
24409char $ac_func ();
24410/* The GNU C library defines this for functions which it implements
24411    to always fail with ENOSYS.  Some functions are actually named
24412    something starting with __ and the normal name is an alias.  */
24413#if defined __stub_$ac_func || defined __stub___$ac_func
24414choke me
24415#endif
24416
24417int
24418main ()
24419{
24420return $ac_func ();
24421  ;
24422  return 0;
24423}
24424_ACEOF
24425rm -f conftest.$ac_objext conftest$ac_exeext
24426if { (ac_try="$ac_link"
24427case "(($ac_try" in
24428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24429  *) ac_try_echo=$ac_try;;
24430esac
24431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24432  (eval "$ac_link") 2>conftest.er1
24433  ac_status=$?
24434  grep -v '^ *+' conftest.er1 >conftest.err
24435  rm -f conftest.er1
24436  cat conftest.err >&5
24437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438  (exit $ac_status); } && {
24439	 test -z "$ac_c_werror_flag" ||
24440	 test ! -s conftest.err
24441       } && test -s conftest$ac_exeext &&
24442       $as_test_x conftest$ac_exeext; then
24443  eval "$as_ac_var=yes"
24444else
24445  echo "$as_me: failed program was:" >&5
24446sed 's/^/| /' conftest.$ac_ext >&5
24447
24448	eval "$as_ac_var=no"
24449fi
24450
24451rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24452      conftest$ac_exeext conftest.$ac_ext
24453fi
24454ac_res=`eval echo '${'$as_ac_var'}'`
24455	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24456echo "${ECHO_T}$ac_res" >&6; }
24457if test `eval echo '${'$as_ac_var'}'` = yes; then
24458  cat >>confdefs.h <<_ACEOF
24459#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24460_ACEOF
24461
24462{ echo "$as_me:$LINENO: checking for _doprnt" >&5
24463echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
24464if test "${ac_cv_func__doprnt+set}" = set; then
24465  echo $ECHO_N "(cached) $ECHO_C" >&6
24466else
24467  cat >conftest.$ac_ext <<_ACEOF
24468/* confdefs.h.  */
24469_ACEOF
24470cat confdefs.h >>conftest.$ac_ext
24471cat >>conftest.$ac_ext <<_ACEOF
24472/* end confdefs.h.  */
24473/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
24474   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24475#define _doprnt innocuous__doprnt
24476
24477/* System header to define __stub macros and hopefully few prototypes,
24478    which can conflict with char _doprnt (); below.
24479    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24480    <limits.h> exists even on freestanding compilers.  */
24481
24482#ifdef __STDC__
24483# include <limits.h>
24484#else
24485# include <assert.h>
24486#endif
24487
24488#undef _doprnt
24489
24490/* Override any GCC internal prototype to avoid an error.
24491   Use char because int might match the return type of a GCC
24492   builtin and then its argument prototype would still apply.  */
24493#ifdef __cplusplus
24494extern "C"
24495#endif
24496char _doprnt ();
24497/* The GNU C library defines this for functions which it implements
24498    to always fail with ENOSYS.  Some functions are actually named
24499    something starting with __ and the normal name is an alias.  */
24500#if defined __stub__doprnt || defined __stub____doprnt
24501choke me
24502#endif
24503
24504int
24505main ()
24506{
24507return _doprnt ();
24508  ;
24509  return 0;
24510}
24511_ACEOF
24512rm -f conftest.$ac_objext conftest$ac_exeext
24513if { (ac_try="$ac_link"
24514case "(($ac_try" in
24515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24516  *) ac_try_echo=$ac_try;;
24517esac
24518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24519  (eval "$ac_link") 2>conftest.er1
24520  ac_status=$?
24521  grep -v '^ *+' conftest.er1 >conftest.err
24522  rm -f conftest.er1
24523  cat conftest.err >&5
24524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525  (exit $ac_status); } && {
24526	 test -z "$ac_c_werror_flag" ||
24527	 test ! -s conftest.err
24528       } && test -s conftest$ac_exeext &&
24529       $as_test_x conftest$ac_exeext; then
24530  ac_cv_func__doprnt=yes
24531else
24532  echo "$as_me: failed program was:" >&5
24533sed 's/^/| /' conftest.$ac_ext >&5
24534
24535	ac_cv_func__doprnt=no
24536fi
24537
24538rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24539      conftest$ac_exeext conftest.$ac_ext
24540fi
24541{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
24542echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
24543if test $ac_cv_func__doprnt = yes; then
24544
24545cat >>confdefs.h <<\_ACEOF
24546#define HAVE_DOPRNT 1
24547_ACEOF
24548
24549fi
24550
24551fi
24552done
24553
24554
24555
24556
24557
24558
24559
24560
24561
24562
24563
24564
24565
24566
24567
24568
24569
24570
24571
24572
24573
24574
24575for ac_func in geteuid getuid link memmove memset mkstemp strchr strrchr \
24576		strtol getopt getopt_long vsnprintf walkcontext backtrace \
24577		getisax getzoneid shmctl64 strcasestr ffs vasprintf
24578do
24579as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24580{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24581echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24582if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24583  echo $ECHO_N "(cached) $ECHO_C" >&6
24584else
24585  cat >conftest.$ac_ext <<_ACEOF
24586/* confdefs.h.  */
24587_ACEOF
24588cat confdefs.h >>conftest.$ac_ext
24589cat >>conftest.$ac_ext <<_ACEOF
24590/* end confdefs.h.  */
24591/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24592   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24593#define $ac_func innocuous_$ac_func
24594
24595/* System header to define __stub macros and hopefully few prototypes,
24596    which can conflict with char $ac_func (); below.
24597    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24598    <limits.h> exists even on freestanding compilers.  */
24599
24600#ifdef __STDC__
24601# include <limits.h>
24602#else
24603# include <assert.h>
24604#endif
24605
24606#undef $ac_func
24607
24608/* Override any GCC internal prototype to avoid an error.
24609   Use char because int might match the return type of a GCC
24610   builtin and then its argument prototype would still apply.  */
24611#ifdef __cplusplus
24612extern "C"
24613#endif
24614char $ac_func ();
24615/* The GNU C library defines this for functions which it implements
24616    to always fail with ENOSYS.  Some functions are actually named
24617    something starting with __ and the normal name is an alias.  */
24618#if defined __stub_$ac_func || defined __stub___$ac_func
24619choke me
24620#endif
24621
24622int
24623main ()
24624{
24625return $ac_func ();
24626  ;
24627  return 0;
24628}
24629_ACEOF
24630rm -f conftest.$ac_objext conftest$ac_exeext
24631if { (ac_try="$ac_link"
24632case "(($ac_try" in
24633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24634  *) ac_try_echo=$ac_try;;
24635esac
24636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24637  (eval "$ac_link") 2>conftest.er1
24638  ac_status=$?
24639  grep -v '^ *+' conftest.er1 >conftest.err
24640  rm -f conftest.er1
24641  cat conftest.err >&5
24642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643  (exit $ac_status); } && {
24644	 test -z "$ac_c_werror_flag" ||
24645	 test ! -s conftest.err
24646       } && test -s conftest$ac_exeext &&
24647       $as_test_x conftest$ac_exeext; then
24648  eval "$as_ac_var=yes"
24649else
24650  echo "$as_me: failed program was:" >&5
24651sed 's/^/| /' conftest.$ac_ext >&5
24652
24653	eval "$as_ac_var=no"
24654fi
24655
24656rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24657      conftest$ac_exeext conftest.$ac_ext
24658fi
24659ac_res=`eval echo '${'$as_ac_var'}'`
24660	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24661echo "${ECHO_T}$ac_res" >&6; }
24662if test `eval echo '${'$as_ac_var'}'` = yes; then
24663  cat >>confdefs.h <<_ACEOF
24664#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24665_ACEOF
24666
24667fi
24668done
24669
24670# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24671# for constant arguments.  Useless!
24672{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
24673echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24674if test "${ac_cv_working_alloca_h+set}" = set; then
24675  echo $ECHO_N "(cached) $ECHO_C" >&6
24676else
24677  cat >conftest.$ac_ext <<_ACEOF
24678/* confdefs.h.  */
24679_ACEOF
24680cat confdefs.h >>conftest.$ac_ext
24681cat >>conftest.$ac_ext <<_ACEOF
24682/* end confdefs.h.  */
24683#include <alloca.h>
24684int
24685main ()
24686{
24687char *p = (char *) alloca (2 * sizeof (int));
24688			  if (p) return 0;
24689  ;
24690  return 0;
24691}
24692_ACEOF
24693rm -f conftest.$ac_objext conftest$ac_exeext
24694if { (ac_try="$ac_link"
24695case "(($ac_try" in
24696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24697  *) ac_try_echo=$ac_try;;
24698esac
24699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24700  (eval "$ac_link") 2>conftest.er1
24701  ac_status=$?
24702  grep -v '^ *+' conftest.er1 >conftest.err
24703  rm -f conftest.er1
24704  cat conftest.err >&5
24705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24706  (exit $ac_status); } && {
24707	 test -z "$ac_c_werror_flag" ||
24708	 test ! -s conftest.err
24709       } && test -s conftest$ac_exeext &&
24710       $as_test_x conftest$ac_exeext; then
24711  ac_cv_working_alloca_h=yes
24712else
24713  echo "$as_me: failed program was:" >&5
24714sed 's/^/| /' conftest.$ac_ext >&5
24715
24716	ac_cv_working_alloca_h=no
24717fi
24718
24719rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24720      conftest$ac_exeext conftest.$ac_ext
24721fi
24722{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24723echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24724if test $ac_cv_working_alloca_h = yes; then
24725
24726cat >>confdefs.h <<\_ACEOF
24727#define HAVE_ALLOCA_H 1
24728_ACEOF
24729
24730fi
24731
24732{ echo "$as_me:$LINENO: checking for alloca" >&5
24733echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24734if test "${ac_cv_func_alloca_works+set}" = set; then
24735  echo $ECHO_N "(cached) $ECHO_C" >&6
24736else
24737  cat >conftest.$ac_ext <<_ACEOF
24738/* confdefs.h.  */
24739_ACEOF
24740cat confdefs.h >>conftest.$ac_ext
24741cat >>conftest.$ac_ext <<_ACEOF
24742/* end confdefs.h.  */
24743#ifdef __GNUC__
24744# define alloca __builtin_alloca
24745#else
24746# ifdef _MSC_VER
24747#  include <malloc.h>
24748#  define alloca _alloca
24749# else
24750#  ifdef HAVE_ALLOCA_H
24751#   include <alloca.h>
24752#  else
24753#   ifdef _AIX
24754 #pragma alloca
24755#   else
24756#    ifndef alloca /* predefined by HP cc +Olibcalls */
24757char *alloca ();
24758#    endif
24759#   endif
24760#  endif
24761# endif
24762#endif
24763
24764int
24765main ()
24766{
24767char *p = (char *) alloca (1);
24768				    if (p) return 0;
24769  ;
24770  return 0;
24771}
24772_ACEOF
24773rm -f conftest.$ac_objext conftest$ac_exeext
24774if { (ac_try="$ac_link"
24775case "(($ac_try" in
24776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24777  *) ac_try_echo=$ac_try;;
24778esac
24779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24780  (eval "$ac_link") 2>conftest.er1
24781  ac_status=$?
24782  grep -v '^ *+' conftest.er1 >conftest.err
24783  rm -f conftest.er1
24784  cat conftest.err >&5
24785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786  (exit $ac_status); } && {
24787	 test -z "$ac_c_werror_flag" ||
24788	 test ! -s conftest.err
24789       } && test -s conftest$ac_exeext &&
24790       $as_test_x conftest$ac_exeext; then
24791  ac_cv_func_alloca_works=yes
24792else
24793  echo "$as_me: failed program was:" >&5
24794sed 's/^/| /' conftest.$ac_ext >&5
24795
24796	ac_cv_func_alloca_works=no
24797fi
24798
24799rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24800      conftest$ac_exeext conftest.$ac_ext
24801fi
24802{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24803echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24804
24805if test $ac_cv_func_alloca_works = yes; then
24806
24807cat >>confdefs.h <<\_ACEOF
24808#define HAVE_ALLOCA 1
24809_ACEOF
24810
24811else
24812  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24813# that cause trouble.  Some versions do not even contain alloca or
24814# contain a buggy version.  If you still want to use their alloca,
24815# use ar to extract alloca.o from them instead of compiling alloca.c.
24816
24817ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24818
24819cat >>confdefs.h <<\_ACEOF
24820#define C_ALLOCA 1
24821_ACEOF
24822
24823
24824{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24825echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
24826if test "${ac_cv_os_cray+set}" = set; then
24827  echo $ECHO_N "(cached) $ECHO_C" >&6
24828else
24829  cat >conftest.$ac_ext <<_ACEOF
24830/* confdefs.h.  */
24831_ACEOF
24832cat confdefs.h >>conftest.$ac_ext
24833cat >>conftest.$ac_ext <<_ACEOF
24834/* end confdefs.h.  */
24835#if defined CRAY && ! defined CRAY2
24836webecray
24837#else
24838wenotbecray
24839#endif
24840
24841_ACEOF
24842if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24843  $EGREP "webecray" >/dev/null 2>&1; then
24844  ac_cv_os_cray=yes
24845else
24846  ac_cv_os_cray=no
24847fi
24848rm -f -r conftest*
24849
24850fi
24851{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24852echo "${ECHO_T}$ac_cv_os_cray" >&6; }
24853if test $ac_cv_os_cray = yes; then
24854  for ac_func in _getb67 GETB67 getb67; do
24855    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24856{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24857echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24858if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24859  echo $ECHO_N "(cached) $ECHO_C" >&6
24860else
24861  cat >conftest.$ac_ext <<_ACEOF
24862/* confdefs.h.  */
24863_ACEOF
24864cat confdefs.h >>conftest.$ac_ext
24865cat >>conftest.$ac_ext <<_ACEOF
24866/* end confdefs.h.  */
24867/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24868   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24869#define $ac_func innocuous_$ac_func
24870
24871/* System header to define __stub macros and hopefully few prototypes,
24872    which can conflict with char $ac_func (); below.
24873    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24874    <limits.h> exists even on freestanding compilers.  */
24875
24876#ifdef __STDC__
24877# include <limits.h>
24878#else
24879# include <assert.h>
24880#endif
24881
24882#undef $ac_func
24883
24884/* Override any GCC internal prototype to avoid an error.
24885   Use char because int might match the return type of a GCC
24886   builtin and then its argument prototype would still apply.  */
24887#ifdef __cplusplus
24888extern "C"
24889#endif
24890char $ac_func ();
24891/* The GNU C library defines this for functions which it implements
24892    to always fail with ENOSYS.  Some functions are actually named
24893    something starting with __ and the normal name is an alias.  */
24894#if defined __stub_$ac_func || defined __stub___$ac_func
24895choke me
24896#endif
24897
24898int
24899main ()
24900{
24901return $ac_func ();
24902  ;
24903  return 0;
24904}
24905_ACEOF
24906rm -f conftest.$ac_objext conftest$ac_exeext
24907if { (ac_try="$ac_link"
24908case "(($ac_try" in
24909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24910  *) ac_try_echo=$ac_try;;
24911esac
24912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24913  (eval "$ac_link") 2>conftest.er1
24914  ac_status=$?
24915  grep -v '^ *+' conftest.er1 >conftest.err
24916  rm -f conftest.er1
24917  cat conftest.err >&5
24918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919  (exit $ac_status); } && {
24920	 test -z "$ac_c_werror_flag" ||
24921	 test ! -s conftest.err
24922       } && test -s conftest$ac_exeext &&
24923       $as_test_x conftest$ac_exeext; then
24924  eval "$as_ac_var=yes"
24925else
24926  echo "$as_me: failed program was:" >&5
24927sed 's/^/| /' conftest.$ac_ext >&5
24928
24929	eval "$as_ac_var=no"
24930fi
24931
24932rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24933      conftest$ac_exeext conftest.$ac_ext
24934fi
24935ac_res=`eval echo '${'$as_ac_var'}'`
24936	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24937echo "${ECHO_T}$ac_res" >&6; }
24938if test `eval echo '${'$as_ac_var'}'` = yes; then
24939
24940cat >>confdefs.h <<_ACEOF
24941#define CRAY_STACKSEG_END $ac_func
24942_ACEOF
24943
24944    break
24945fi
24946
24947  done
24948fi
24949
24950{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24951echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
24952if test "${ac_cv_c_stack_direction+set}" = set; then
24953  echo $ECHO_N "(cached) $ECHO_C" >&6
24954else
24955  if test "$cross_compiling" = yes; then
24956  ac_cv_c_stack_direction=0
24957else
24958  cat >conftest.$ac_ext <<_ACEOF
24959/* confdefs.h.  */
24960_ACEOF
24961cat confdefs.h >>conftest.$ac_ext
24962cat >>conftest.$ac_ext <<_ACEOF
24963/* end confdefs.h.  */
24964$ac_includes_default
24965int
24966find_stack_direction ()
24967{
24968  static char *addr = 0;
24969  auto char dummy;
24970  if (addr == 0)
24971    {
24972      addr = &dummy;
24973      return find_stack_direction ();
24974    }
24975  else
24976    return (&dummy > addr) ? 1 : -1;
24977}
24978
24979int
24980main ()
24981{
24982  return find_stack_direction () < 0;
24983}
24984_ACEOF
24985rm -f conftest$ac_exeext
24986if { (ac_try="$ac_link"
24987case "(($ac_try" in
24988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24989  *) ac_try_echo=$ac_try;;
24990esac
24991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24992  (eval "$ac_link") 2>&5
24993  ac_status=$?
24994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24995  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24996  { (case "(($ac_try" in
24997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24998  *) ac_try_echo=$ac_try;;
24999esac
25000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25001  (eval "$ac_try") 2>&5
25002  ac_status=$?
25003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25004  (exit $ac_status); }; }; then
25005  ac_cv_c_stack_direction=1
25006else
25007  echo "$as_me: program exited with status $ac_status" >&5
25008echo "$as_me: failed program was:" >&5
25009sed 's/^/| /' conftest.$ac_ext >&5
25010
25011( exit $ac_status )
25012ac_cv_c_stack_direction=-1
25013fi
25014rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25015fi
25016
25017
25018fi
25019{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
25020echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
25021
25022cat >>confdefs.h <<_ACEOF
25023#define STACK_DIRECTION $ac_cv_c_stack_direction
25024_ACEOF
25025
25026
25027fi
25028
25029{ echo "$as_me:$LINENO: checking for getdtablesize" >&5
25030echo $ECHO_N "checking for getdtablesize... $ECHO_C" >&6; }
25031if test "${ac_cv_func_getdtablesize+set}" = set; then
25032  echo $ECHO_N "(cached) $ECHO_C" >&6
25033else
25034  cat >conftest.$ac_ext <<_ACEOF
25035/* confdefs.h.  */
25036_ACEOF
25037cat confdefs.h >>conftest.$ac_ext
25038cat >>conftest.$ac_ext <<_ACEOF
25039/* end confdefs.h.  */
25040/* Define getdtablesize to an innocuous variant, in case <limits.h> declares getdtablesize.
25041   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25042#define getdtablesize innocuous_getdtablesize
25043
25044/* System header to define __stub macros and hopefully few prototypes,
25045    which can conflict with char getdtablesize (); below.
25046    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25047    <limits.h> exists even on freestanding compilers.  */
25048
25049#ifdef __STDC__
25050# include <limits.h>
25051#else
25052# include <assert.h>
25053#endif
25054
25055#undef getdtablesize
25056
25057/* Override any GCC internal prototype to avoid an error.
25058   Use char because int might match the return type of a GCC
25059   builtin and then its argument prototype would still apply.  */
25060#ifdef __cplusplus
25061extern "C"
25062#endif
25063char getdtablesize ();
25064/* The GNU C library defines this for functions which it implements
25065    to always fail with ENOSYS.  Some functions are actually named
25066    something starting with __ and the normal name is an alias.  */
25067#if defined __stub_getdtablesize || defined __stub___getdtablesize
25068choke me
25069#endif
25070
25071int
25072main ()
25073{
25074return getdtablesize ();
25075  ;
25076  return 0;
25077}
25078_ACEOF
25079rm -f conftest.$ac_objext conftest$ac_exeext
25080if { (ac_try="$ac_link"
25081case "(($ac_try" in
25082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25083  *) ac_try_echo=$ac_try;;
25084esac
25085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25086  (eval "$ac_link") 2>conftest.er1
25087  ac_status=$?
25088  grep -v '^ *+' conftest.er1 >conftest.err
25089  rm -f conftest.er1
25090  cat conftest.err >&5
25091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25092  (exit $ac_status); } && {
25093	 test -z "$ac_c_werror_flag" ||
25094	 test ! -s conftest.err
25095       } && test -s conftest$ac_exeext &&
25096       $as_test_x conftest$ac_exeext; then
25097  ac_cv_func_getdtablesize=yes
25098else
25099  echo "$as_me: failed program was:" >&5
25100sed 's/^/| /' conftest.$ac_ext >&5
25101
25102	ac_cv_func_getdtablesize=no
25103fi
25104
25105rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25106      conftest$ac_exeext conftest.$ac_ext
25107fi
25108{ echo "$as_me:$LINENO: result: $ac_cv_func_getdtablesize" >&5
25109echo "${ECHO_T}$ac_cv_func_getdtablesize" >&6; }
25110if test $ac_cv_func_getdtablesize = yes; then
25111
25112cat >>confdefs.h <<\_ACEOF
25113#define HAS_GETDTABLESIZE 1
25114_ACEOF
25115
25116fi
25117
25118{ echo "$as_me:$LINENO: checking for getifaddrs" >&5
25119echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
25120if test "${ac_cv_func_getifaddrs+set}" = set; then
25121  echo $ECHO_N "(cached) $ECHO_C" >&6
25122else
25123  cat >conftest.$ac_ext <<_ACEOF
25124/* confdefs.h.  */
25125_ACEOF
25126cat confdefs.h >>conftest.$ac_ext
25127cat >>conftest.$ac_ext <<_ACEOF
25128/* end confdefs.h.  */
25129/* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
25130   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25131#define getifaddrs innocuous_getifaddrs
25132
25133/* System header to define __stub macros and hopefully few prototypes,
25134    which can conflict with char getifaddrs (); below.
25135    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25136    <limits.h> exists even on freestanding compilers.  */
25137
25138#ifdef __STDC__
25139# include <limits.h>
25140#else
25141# include <assert.h>
25142#endif
25143
25144#undef getifaddrs
25145
25146/* Override any GCC internal prototype to avoid an error.
25147   Use char because int might match the return type of a GCC
25148   builtin and then its argument prototype would still apply.  */
25149#ifdef __cplusplus
25150extern "C"
25151#endif
25152char getifaddrs ();
25153/* The GNU C library defines this for functions which it implements
25154    to always fail with ENOSYS.  Some functions are actually named
25155    something starting with __ and the normal name is an alias.  */
25156#if defined __stub_getifaddrs || defined __stub___getifaddrs
25157choke me
25158#endif
25159
25160int
25161main ()
25162{
25163return getifaddrs ();
25164  ;
25165  return 0;
25166}
25167_ACEOF
25168rm -f conftest.$ac_objext conftest$ac_exeext
25169if { (ac_try="$ac_link"
25170case "(($ac_try" in
25171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25172  *) ac_try_echo=$ac_try;;
25173esac
25174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25175  (eval "$ac_link") 2>conftest.er1
25176  ac_status=$?
25177  grep -v '^ *+' conftest.er1 >conftest.err
25178  rm -f conftest.er1
25179  cat conftest.err >&5
25180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181  (exit $ac_status); } && {
25182	 test -z "$ac_c_werror_flag" ||
25183	 test ! -s conftest.err
25184       } && test -s conftest$ac_exeext &&
25185       $as_test_x conftest$ac_exeext; then
25186  ac_cv_func_getifaddrs=yes
25187else
25188  echo "$as_me: failed program was:" >&5
25189sed 's/^/| /' conftest.$ac_ext >&5
25190
25191	ac_cv_func_getifaddrs=no
25192fi
25193
25194rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25195      conftest$ac_exeext conftest.$ac_ext
25196fi
25197{ echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
25198echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
25199if test $ac_cv_func_getifaddrs = yes; then
25200
25201cat >>confdefs.h <<\_ACEOF
25202#define HAS_GETIFADDRS 1
25203_ACEOF
25204
25205fi
25206
25207{ echo "$as_me:$LINENO: checking for getpeereid" >&5
25208echo $ECHO_N "checking for getpeereid... $ECHO_C" >&6; }
25209if test "${ac_cv_func_getpeereid+set}" = set; then
25210  echo $ECHO_N "(cached) $ECHO_C" >&6
25211else
25212  cat >conftest.$ac_ext <<_ACEOF
25213/* confdefs.h.  */
25214_ACEOF
25215cat confdefs.h >>conftest.$ac_ext
25216cat >>conftest.$ac_ext <<_ACEOF
25217/* end confdefs.h.  */
25218/* Define getpeereid to an innocuous variant, in case <limits.h> declares getpeereid.
25219   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25220#define getpeereid innocuous_getpeereid
25221
25222/* System header to define __stub macros and hopefully few prototypes,
25223    which can conflict with char getpeereid (); below.
25224    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25225    <limits.h> exists even on freestanding compilers.  */
25226
25227#ifdef __STDC__
25228# include <limits.h>
25229#else
25230# include <assert.h>
25231#endif
25232
25233#undef getpeereid
25234
25235/* Override any GCC internal prototype to avoid an error.
25236   Use char because int might match the return type of a GCC
25237   builtin and then its argument prototype would still apply.  */
25238#ifdef __cplusplus
25239extern "C"
25240#endif
25241char getpeereid ();
25242/* The GNU C library defines this for functions which it implements
25243    to always fail with ENOSYS.  Some functions are actually named
25244    something starting with __ and the normal name is an alias.  */
25245#if defined __stub_getpeereid || defined __stub___getpeereid
25246choke me
25247#endif
25248
25249int
25250main ()
25251{
25252return getpeereid ();
25253  ;
25254  return 0;
25255}
25256_ACEOF
25257rm -f conftest.$ac_objext conftest$ac_exeext
25258if { (ac_try="$ac_link"
25259case "(($ac_try" in
25260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25261  *) ac_try_echo=$ac_try;;
25262esac
25263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25264  (eval "$ac_link") 2>conftest.er1
25265  ac_status=$?
25266  grep -v '^ *+' conftest.er1 >conftest.err
25267  rm -f conftest.er1
25268  cat conftest.err >&5
25269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270  (exit $ac_status); } && {
25271	 test -z "$ac_c_werror_flag" ||
25272	 test ! -s conftest.err
25273       } && test -s conftest$ac_exeext &&
25274       $as_test_x conftest$ac_exeext; then
25275  ac_cv_func_getpeereid=yes
25276else
25277  echo "$as_me: failed program was:" >&5
25278sed 's/^/| /' conftest.$ac_ext >&5
25279
25280	ac_cv_func_getpeereid=no
25281fi
25282
25283rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25284      conftest$ac_exeext conftest.$ac_ext
25285fi
25286{ echo "$as_me:$LINENO: result: $ac_cv_func_getpeereid" >&5
25287echo "${ECHO_T}$ac_cv_func_getpeereid" >&6; }
25288if test $ac_cv_func_getpeereid = yes; then
25289
25290cat >>confdefs.h <<\_ACEOF
25291#define HAS_GETPEEREID 1
25292_ACEOF
25293
25294fi
25295
25296{ echo "$as_me:$LINENO: checking for getpeerucred" >&5
25297echo $ECHO_N "checking for getpeerucred... $ECHO_C" >&6; }
25298if test "${ac_cv_func_getpeerucred+set}" = set; then
25299  echo $ECHO_N "(cached) $ECHO_C" >&6
25300else
25301  cat >conftest.$ac_ext <<_ACEOF
25302/* confdefs.h.  */
25303_ACEOF
25304cat confdefs.h >>conftest.$ac_ext
25305cat >>conftest.$ac_ext <<_ACEOF
25306/* end confdefs.h.  */
25307/* Define getpeerucred to an innocuous variant, in case <limits.h> declares getpeerucred.
25308   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25309#define getpeerucred innocuous_getpeerucred
25310
25311/* System header to define __stub macros and hopefully few prototypes,
25312    which can conflict with char getpeerucred (); below.
25313    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25314    <limits.h> exists even on freestanding compilers.  */
25315
25316#ifdef __STDC__
25317# include <limits.h>
25318#else
25319# include <assert.h>
25320#endif
25321
25322#undef getpeerucred
25323
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
25328extern "C"
25329#endif
25330char getpeerucred ();
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_getpeerucred || defined __stub___getpeerucred
25335choke me
25336#endif
25337
25338int
25339main ()
25340{
25341return getpeerucred ();
25342  ;
25343  return 0;
25344}
25345_ACEOF
25346rm -f conftest.$ac_objext conftest$ac_exeext
25347if { (ac_try="$ac_link"
25348case "(($ac_try" in
25349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25350  *) ac_try_echo=$ac_try;;
25351esac
25352eval "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  ac_cv_func_getpeerucred=yes
25365else
25366  echo "$as_me: failed program was:" >&5
25367sed 's/^/| /' conftest.$ac_ext >&5
25368
25369	ac_cv_func_getpeerucred=no
25370fi
25371
25372rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25373      conftest$ac_exeext conftest.$ac_ext
25374fi
25375{ echo "$as_me:$LINENO: result: $ac_cv_func_getpeerucred" >&5
25376echo "${ECHO_T}$ac_cv_func_getpeerucred" >&6; }
25377if test $ac_cv_func_getpeerucred = yes; then
25378
25379cat >>confdefs.h <<\_ACEOF
25380#define HAS_GETPEERUCRED 1
25381_ACEOF
25382
25383fi
25384
25385{ echo "$as_me:$LINENO: checking for strlcat" >&5
25386echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; }
25387if test "${ac_cv_func_strlcat+set}" = set; then
25388  echo $ECHO_N "(cached) $ECHO_C" >&6
25389else
25390  cat >conftest.$ac_ext <<_ACEOF
25391/* confdefs.h.  */
25392_ACEOF
25393cat confdefs.h >>conftest.$ac_ext
25394cat >>conftest.$ac_ext <<_ACEOF
25395/* end confdefs.h.  */
25396/* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat.
25397   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25398#define strlcat innocuous_strlcat
25399
25400/* System header to define __stub macros and hopefully few prototypes,
25401    which can conflict with char strlcat (); below.
25402    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25403    <limits.h> exists even on freestanding compilers.  */
25404
25405#ifdef __STDC__
25406# include <limits.h>
25407#else
25408# include <assert.h>
25409#endif
25410
25411#undef strlcat
25412
25413/* Override any GCC internal prototype to avoid an error.
25414   Use char because int might match the return type of a GCC
25415   builtin and then its argument prototype would still apply.  */
25416#ifdef __cplusplus
25417extern "C"
25418#endif
25419char strlcat ();
25420/* The GNU C library defines this for functions which it implements
25421    to always fail with ENOSYS.  Some functions are actually named
25422    something starting with __ and the normal name is an alias.  */
25423#if defined __stub_strlcat || defined __stub___strlcat
25424choke me
25425#endif
25426
25427int
25428main ()
25429{
25430return strlcat ();
25431  ;
25432  return 0;
25433}
25434_ACEOF
25435rm -f conftest.$ac_objext conftest$ac_exeext
25436if { (ac_try="$ac_link"
25437case "(($ac_try" in
25438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25439  *) ac_try_echo=$ac_try;;
25440esac
25441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25442  (eval "$ac_link") 2>conftest.er1
25443  ac_status=$?
25444  grep -v '^ *+' conftest.er1 >conftest.err
25445  rm -f conftest.er1
25446  cat conftest.err >&5
25447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25448  (exit $ac_status); } && {
25449	 test -z "$ac_c_werror_flag" ||
25450	 test ! -s conftest.err
25451       } && test -s conftest$ac_exeext &&
25452       $as_test_x conftest$ac_exeext; then
25453  ac_cv_func_strlcat=yes
25454else
25455  echo "$as_me: failed program was:" >&5
25456sed 's/^/| /' conftest.$ac_ext >&5
25457
25458	ac_cv_func_strlcat=no
25459fi
25460
25461rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25462      conftest$ac_exeext conftest.$ac_ext
25463fi
25464{ echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
25465echo "${ECHO_T}$ac_cv_func_strlcat" >&6; }
25466if test $ac_cv_func_strlcat = yes; then
25467  HAVE_STRLCAT=yes
25468else
25469  HAVE_STRLCAT=no
25470fi
25471
25472 if test x$HAVE_STRLCAT = xno; then
25473  NEED_STRLCAT_TRUE=
25474  NEED_STRLCAT_FALSE='#'
25475else
25476  NEED_STRLCAT_TRUE='#'
25477  NEED_STRLCAT_FALSE=
25478fi
25479
25480{ echo "$as_me:$LINENO: checking for strlcpy" >&5
25481echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; }
25482if test "${ac_cv_func_strlcpy+set}" = set; then
25483  echo $ECHO_N "(cached) $ECHO_C" >&6
25484else
25485  cat >conftest.$ac_ext <<_ACEOF
25486/* confdefs.h.  */
25487_ACEOF
25488cat confdefs.h >>conftest.$ac_ext
25489cat >>conftest.$ac_ext <<_ACEOF
25490/* end confdefs.h.  */
25491/* Define strlcpy to an innocuous variant, in case <limits.h> declares strlcpy.
25492   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25493#define strlcpy innocuous_strlcpy
25494
25495/* System header to define __stub macros and hopefully few prototypes,
25496    which can conflict with char strlcpy (); below.
25497    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25498    <limits.h> exists even on freestanding compilers.  */
25499
25500#ifdef __STDC__
25501# include <limits.h>
25502#else
25503# include <assert.h>
25504#endif
25505
25506#undef strlcpy
25507
25508/* Override any GCC internal prototype to avoid an error.
25509   Use char because int might match the return type of a GCC
25510   builtin and then its argument prototype would still apply.  */
25511#ifdef __cplusplus
25512extern "C"
25513#endif
25514char strlcpy ();
25515/* The GNU C library defines this for functions which it implements
25516    to always fail with ENOSYS.  Some functions are actually named
25517    something starting with __ and the normal name is an alias.  */
25518#if defined __stub_strlcpy || defined __stub___strlcpy
25519choke me
25520#endif
25521
25522int
25523main ()
25524{
25525return strlcpy ();
25526  ;
25527  return 0;
25528}
25529_ACEOF
25530rm -f conftest.$ac_objext conftest$ac_exeext
25531if { (ac_try="$ac_link"
25532case "(($ac_try" in
25533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25534  *) ac_try_echo=$ac_try;;
25535esac
25536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25537  (eval "$ac_link") 2>conftest.er1
25538  ac_status=$?
25539  grep -v '^ *+' conftest.er1 >conftest.err
25540  rm -f conftest.er1
25541  cat conftest.err >&5
25542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543  (exit $ac_status); } && {
25544	 test -z "$ac_c_werror_flag" ||
25545	 test ! -s conftest.err
25546       } && test -s conftest$ac_exeext &&
25547       $as_test_x conftest$ac_exeext; then
25548  ac_cv_func_strlcpy=yes
25549else
25550  echo "$as_me: failed program was:" >&5
25551sed 's/^/| /' conftest.$ac_ext >&5
25552
25553	ac_cv_func_strlcpy=no
25554fi
25555
25556rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25557      conftest$ac_exeext conftest.$ac_ext
25558fi
25559{ echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
25560echo "${ECHO_T}$ac_cv_func_strlcpy" >&6; }
25561if test $ac_cv_func_strlcpy = yes; then
25562
25563cat >>confdefs.h <<\_ACEOF
25564#define HAS_STRLCPY 1
25565_ACEOF
25566
25567fi
25568
25569
25570 if test x$HAVE_VSNPRINTF = xno; then
25571  NEED_VSNPRINTF_TRUE=
25572  NEED_VSNPRINTF_FALSE='#'
25573else
25574  NEED_VSNPRINTF_TRUE='#'
25575  NEED_VSNPRINTF_FALSE=
25576fi
25577
25578
25579{ echo "$as_me:$LINENO: checking for mmap" >&5
25580echo $ECHO_N "checking for mmap... $ECHO_C" >&6; }
25581if test "${ac_cv_func_mmap+set}" = set; then
25582  echo $ECHO_N "(cached) $ECHO_C" >&6
25583else
25584  cat >conftest.$ac_ext <<_ACEOF
25585/* confdefs.h.  */
25586_ACEOF
25587cat confdefs.h >>conftest.$ac_ext
25588cat >>conftest.$ac_ext <<_ACEOF
25589/* end confdefs.h.  */
25590/* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
25591   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25592#define mmap innocuous_mmap
25593
25594/* System header to define __stub macros and hopefully few prototypes,
25595    which can conflict with char mmap (); below.
25596    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25597    <limits.h> exists even on freestanding compilers.  */
25598
25599#ifdef __STDC__
25600# include <limits.h>
25601#else
25602# include <assert.h>
25603#endif
25604
25605#undef mmap
25606
25607/* Override any GCC internal prototype to avoid an error.
25608   Use char because int might match the return type of a GCC
25609   builtin and then its argument prototype would still apply.  */
25610#ifdef __cplusplus
25611extern "C"
25612#endif
25613char mmap ();
25614/* The GNU C library defines this for functions which it implements
25615    to always fail with ENOSYS.  Some functions are actually named
25616    something starting with __ and the normal name is an alias.  */
25617#if defined __stub_mmap || defined __stub___mmap
25618choke me
25619#endif
25620
25621int
25622main ()
25623{
25624return mmap ();
25625  ;
25626  return 0;
25627}
25628_ACEOF
25629rm -f conftest.$ac_objext conftest$ac_exeext
25630if { (ac_try="$ac_link"
25631case "(($ac_try" in
25632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25633  *) ac_try_echo=$ac_try;;
25634esac
25635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25636  (eval "$ac_link") 2>conftest.er1
25637  ac_status=$?
25638  grep -v '^ *+' conftest.er1 >conftest.err
25639  rm -f conftest.er1
25640  cat conftest.err >&5
25641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642  (exit $ac_status); } && {
25643	 test -z "$ac_c_werror_flag" ||
25644	 test ! -s conftest.err
25645       } && test -s conftest$ac_exeext &&
25646       $as_test_x conftest$ac_exeext; then
25647  ac_cv_func_mmap=yes
25648else
25649  echo "$as_me: failed program was:" >&5
25650sed 's/^/| /' conftest.$ac_ext >&5
25651
25652	ac_cv_func_mmap=no
25653fi
25654
25655rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25656      conftest$ac_exeext conftest.$ac_ext
25657fi
25658{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
25659echo "${ECHO_T}$ac_cv_func_mmap" >&6; }
25660if test $ac_cv_func_mmap = yes; then
25661
25662cat >>confdefs.h <<\_ACEOF
25663#define HAS_MMAP 1
25664_ACEOF
25665
25666fi
25667
25668
25669
25670{ echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
25671echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
25672if test "${ac_cv_lib_m_sqrt+set}" = set; then
25673  echo $ECHO_N "(cached) $ECHO_C" >&6
25674else
25675  ac_check_lib_save_LIBS=$LIBS
25676LIBS="-lm  $LIBS"
25677cat >conftest.$ac_ext <<_ACEOF
25678/* confdefs.h.  */
25679_ACEOF
25680cat confdefs.h >>conftest.$ac_ext
25681cat >>conftest.$ac_ext <<_ACEOF
25682/* end confdefs.h.  */
25683
25684/* Override any GCC internal prototype to avoid an error.
25685   Use char because int might match the return type of a GCC
25686   builtin and then its argument prototype would still apply.  */
25687#ifdef __cplusplus
25688extern "C"
25689#endif
25690char sqrt ();
25691int
25692main ()
25693{
25694return sqrt ();
25695  ;
25696  return 0;
25697}
25698_ACEOF
25699rm -f conftest.$ac_objext conftest$ac_exeext
25700if { (ac_try="$ac_link"
25701case "(($ac_try" in
25702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25703  *) ac_try_echo=$ac_try;;
25704esac
25705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25706  (eval "$ac_link") 2>conftest.er1
25707  ac_status=$?
25708  grep -v '^ *+' conftest.er1 >conftest.err
25709  rm -f conftest.er1
25710  cat conftest.err >&5
25711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712  (exit $ac_status); } && {
25713	 test -z "$ac_c_werror_flag" ||
25714	 test ! -s conftest.err
25715       } && test -s conftest$ac_exeext &&
25716       $as_test_x conftest$ac_exeext; then
25717  ac_cv_lib_m_sqrt=yes
25718else
25719  echo "$as_me: failed program was:" >&5
25720sed 's/^/| /' conftest.$ac_ext >&5
25721
25722	ac_cv_lib_m_sqrt=no
25723fi
25724
25725rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25726      conftest$ac_exeext conftest.$ac_ext
25727LIBS=$ac_check_lib_save_LIBS
25728fi
25729{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
25730echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
25731if test $ac_cv_lib_m_sqrt = yes; then
25732  cat >>confdefs.h <<_ACEOF
25733#define HAVE_LIBM 1
25734_ACEOF
25735
25736  LIBS="-lm $LIBS"
25737
25738fi
25739
25740{ echo "$as_me:$LINENO: checking for cbrt in -lm" >&5
25741echo $ECHO_N "checking for cbrt in -lm... $ECHO_C" >&6; }
25742if test "${ac_cv_lib_m_cbrt+set}" = set; then
25743  echo $ECHO_N "(cached) $ECHO_C" >&6
25744else
25745  ac_check_lib_save_LIBS=$LIBS
25746LIBS="-lm  $LIBS"
25747cat >conftest.$ac_ext <<_ACEOF
25748/* confdefs.h.  */
25749_ACEOF
25750cat confdefs.h >>conftest.$ac_ext
25751cat >>conftest.$ac_ext <<_ACEOF
25752/* end confdefs.h.  */
25753
25754/* Override any GCC internal prototype to avoid an error.
25755   Use char because int might match the return type of a GCC
25756   builtin and then its argument prototype would still apply.  */
25757#ifdef __cplusplus
25758extern "C"
25759#endif
25760char cbrt ();
25761int
25762main ()
25763{
25764return cbrt ();
25765  ;
25766  return 0;
25767}
25768_ACEOF
25769rm -f conftest.$ac_objext conftest$ac_exeext
25770if { (ac_try="$ac_link"
25771case "(($ac_try" in
25772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25773  *) ac_try_echo=$ac_try;;
25774esac
25775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25776  (eval "$ac_link") 2>conftest.er1
25777  ac_status=$?
25778  grep -v '^ *+' conftest.er1 >conftest.err
25779  rm -f conftest.er1
25780  cat conftest.err >&5
25781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782  (exit $ac_status); } && {
25783	 test -z "$ac_c_werror_flag" ||
25784	 test ! -s conftest.err
25785       } && test -s conftest$ac_exeext &&
25786       $as_test_x conftest$ac_exeext; then
25787  ac_cv_lib_m_cbrt=yes
25788else
25789  echo "$as_me: failed program was:" >&5
25790sed 's/^/| /' conftest.$ac_ext >&5
25791
25792	ac_cv_lib_m_cbrt=no
25793fi
25794
25795rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25796      conftest$ac_exeext conftest.$ac_ext
25797LIBS=$ac_check_lib_save_LIBS
25798fi
25799{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_cbrt" >&5
25800echo "${ECHO_T}$ac_cv_lib_m_cbrt" >&6; }
25801if test $ac_cv_lib_m_cbrt = yes; then
25802
25803cat >>confdefs.h <<\_ACEOF
25804#define HAVE_CBRT 1
25805_ACEOF
25806
25807fi
25808
25809
25810
25811
25812
25813for ac_header in ndbm.h dbm.h rpcsvc/dbm.h
25814do
25815as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25816if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25817  { echo "$as_me:$LINENO: checking for $ac_header" >&5
25818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25820  echo $ECHO_N "(cached) $ECHO_C" >&6
25821fi
25822ac_res=`eval echo '${'$as_ac_Header'}'`
25823	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25824echo "${ECHO_T}$ac_res" >&6; }
25825else
25826  # Is the header compilable?
25827{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
25828echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25829cat >conftest.$ac_ext <<_ACEOF
25830/* confdefs.h.  */
25831_ACEOF
25832cat confdefs.h >>conftest.$ac_ext
25833cat >>conftest.$ac_ext <<_ACEOF
25834/* end confdefs.h.  */
25835$ac_includes_default
25836#include <$ac_header>
25837_ACEOF
25838rm -f conftest.$ac_objext
25839if { (ac_try="$ac_compile"
25840case "(($ac_try" in
25841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25842  *) ac_try_echo=$ac_try;;
25843esac
25844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25845  (eval "$ac_compile") 2>conftest.er1
25846  ac_status=$?
25847  grep -v '^ *+' conftest.er1 >conftest.err
25848  rm -f conftest.er1
25849  cat conftest.err >&5
25850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851  (exit $ac_status); } && {
25852	 test -z "$ac_c_werror_flag" ||
25853	 test ! -s conftest.err
25854       } && test -s conftest.$ac_objext; then
25855  ac_header_compiler=yes
25856else
25857  echo "$as_me: failed program was:" >&5
25858sed 's/^/| /' conftest.$ac_ext >&5
25859
25860	ac_header_compiler=no
25861fi
25862
25863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25864{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25865echo "${ECHO_T}$ac_header_compiler" >&6; }
25866
25867# Is the header present?
25868{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
25869echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25870cat >conftest.$ac_ext <<_ACEOF
25871/* confdefs.h.  */
25872_ACEOF
25873cat confdefs.h >>conftest.$ac_ext
25874cat >>conftest.$ac_ext <<_ACEOF
25875/* end confdefs.h.  */
25876#include <$ac_header>
25877_ACEOF
25878if { (ac_try="$ac_cpp conftest.$ac_ext"
25879case "(($ac_try" in
25880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25881  *) ac_try_echo=$ac_try;;
25882esac
25883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25884  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25885  ac_status=$?
25886  grep -v '^ *+' conftest.er1 >conftest.err
25887  rm -f conftest.er1
25888  cat conftest.err >&5
25889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25890  (exit $ac_status); } >/dev/null && {
25891	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25892	 test ! -s conftest.err
25893       }; then
25894  ac_header_preproc=yes
25895else
25896  echo "$as_me: failed program was:" >&5
25897sed 's/^/| /' conftest.$ac_ext >&5
25898
25899  ac_header_preproc=no
25900fi
25901
25902rm -f conftest.err conftest.$ac_ext
25903{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25904echo "${ECHO_T}$ac_header_preproc" >&6; }
25905
25906# So?  What about this header?
25907case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25908  yes:no: )
25909    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25910echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25911    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25912echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25913    ac_header_preproc=yes
25914    ;;
25915  no:yes:* )
25916    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25917echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25918    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25919echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25920    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25921echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25922    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25923echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25924    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25925echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25926    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25927echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25928    ( cat <<\_ASBOX
25929## ---------------------------------------------------------------------- ##
25930## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
25931## ---------------------------------------------------------------------- ##
25932_ASBOX
25933     ) | sed "s/^/$as_me: WARNING:     /" >&2
25934    ;;
25935esac
25936{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25938if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25939  echo $ECHO_N "(cached) $ECHO_C" >&6
25940else
25941  eval "$as_ac_Header=\$ac_header_preproc"
25942fi
25943ac_res=`eval echo '${'$as_ac_Header'}'`
25944	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25945echo "${ECHO_T}$ac_res" >&6; }
25946
25947fi
25948if test `eval echo '${'$as_ac_Header'}'` = yes; then
25949  cat >>confdefs.h <<_ACEOF
25950#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25951_ACEOF
25952
25953fi
25954
25955done
25956
25957
25958
25959
25960
25961for ac_header in linux/agpgart.h sys/agpio.h sys/agpgart.h
25962do
25963as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25964if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25965  { echo "$as_me:$LINENO: checking for $ac_header" >&5
25966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25967if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25968  echo $ECHO_N "(cached) $ECHO_C" >&6
25969fi
25970ac_res=`eval echo '${'$as_ac_Header'}'`
25971	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25972echo "${ECHO_T}$ac_res" >&6; }
25973else
25974  # Is the header compilable?
25975{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
25976echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25977cat >conftest.$ac_ext <<_ACEOF
25978/* confdefs.h.  */
25979_ACEOF
25980cat confdefs.h >>conftest.$ac_ext
25981cat >>conftest.$ac_ext <<_ACEOF
25982/* end confdefs.h.  */
25983$ac_includes_default
25984#include <$ac_header>
25985_ACEOF
25986rm -f conftest.$ac_objext
25987if { (ac_try="$ac_compile"
25988case "(($ac_try" in
25989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25990  *) ac_try_echo=$ac_try;;
25991esac
25992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25993  (eval "$ac_compile") 2>conftest.er1
25994  ac_status=$?
25995  grep -v '^ *+' conftest.er1 >conftest.err
25996  rm -f conftest.er1
25997  cat conftest.err >&5
25998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25999  (exit $ac_status); } && {
26000	 test -z "$ac_c_werror_flag" ||
26001	 test ! -s conftest.err
26002       } && test -s conftest.$ac_objext; then
26003  ac_header_compiler=yes
26004else
26005  echo "$as_me: failed program was:" >&5
26006sed 's/^/| /' conftest.$ac_ext >&5
26007
26008	ac_header_compiler=no
26009fi
26010
26011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26012{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26013echo "${ECHO_T}$ac_header_compiler" >&6; }
26014
26015# Is the header present?
26016{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26017echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26018cat >conftest.$ac_ext <<_ACEOF
26019/* confdefs.h.  */
26020_ACEOF
26021cat confdefs.h >>conftest.$ac_ext
26022cat >>conftest.$ac_ext <<_ACEOF
26023/* end confdefs.h.  */
26024#include <$ac_header>
26025_ACEOF
26026if { (ac_try="$ac_cpp conftest.$ac_ext"
26027case "(($ac_try" in
26028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26029  *) ac_try_echo=$ac_try;;
26030esac
26031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26032  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26033  ac_status=$?
26034  grep -v '^ *+' conftest.er1 >conftest.err
26035  rm -f conftest.er1
26036  cat conftest.err >&5
26037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038  (exit $ac_status); } >/dev/null && {
26039	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26040	 test ! -s conftest.err
26041       }; then
26042  ac_header_preproc=yes
26043else
26044  echo "$as_me: failed program was:" >&5
26045sed 's/^/| /' conftest.$ac_ext >&5
26046
26047  ac_header_preproc=no
26048fi
26049
26050rm -f conftest.err conftest.$ac_ext
26051{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26052echo "${ECHO_T}$ac_header_preproc" >&6; }
26053
26054# So?  What about this header?
26055case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26056  yes:no: )
26057    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26058echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26059    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26060echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26061    ac_header_preproc=yes
26062    ;;
26063  no:yes:* )
26064    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26065echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26066    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26067echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26068    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26069echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26070    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26071echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26072    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26073echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26074    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26075echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26076    ( cat <<\_ASBOX
26077## ---------------------------------------------------------------------- ##
26078## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
26079## ---------------------------------------------------------------------- ##
26080_ASBOX
26081     ) | sed "s/^/$as_me: WARNING:     /" >&2
26082    ;;
26083esac
26084{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26086if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26087  echo $ECHO_N "(cached) $ECHO_C" >&6
26088else
26089  eval "$as_ac_Header=\$ac_header_preproc"
26090fi
26091ac_res=`eval echo '${'$as_ac_Header'}'`
26092	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26093echo "${ECHO_T}$ac_res" >&6; }
26094
26095fi
26096if test `eval echo '${'$as_ac_Header'}'` = yes; then
26097  cat >>confdefs.h <<_ACEOF
26098#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26099_ACEOF
26100 AGP=yes
26101fi
26102
26103done
26104
26105 if test "x$AGP" = xyes; then
26106  AGP_TRUE=
26107  AGP_FALSE='#'
26108else
26109  AGP_TRUE='#'
26110  AGP_FALSE=
26111fi
26112
26113
26114
26115for ac_header in linux/apm_bios.h
26116do
26117as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26118if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26119  { echo "$as_me:$LINENO: checking for $ac_header" >&5
26120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26121if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26122  echo $ECHO_N "(cached) $ECHO_C" >&6
26123fi
26124ac_res=`eval echo '${'$as_ac_Header'}'`
26125	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26126echo "${ECHO_T}$ac_res" >&6; }
26127else
26128  # Is the header compilable?
26129{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
26130echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26131cat >conftest.$ac_ext <<_ACEOF
26132/* confdefs.h.  */
26133_ACEOF
26134cat confdefs.h >>conftest.$ac_ext
26135cat >>conftest.$ac_ext <<_ACEOF
26136/* end confdefs.h.  */
26137$ac_includes_default
26138#include <$ac_header>
26139_ACEOF
26140rm -f conftest.$ac_objext
26141if { (ac_try="$ac_compile"
26142case "(($ac_try" in
26143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26144  *) ac_try_echo=$ac_try;;
26145esac
26146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26147  (eval "$ac_compile") 2>conftest.er1
26148  ac_status=$?
26149  grep -v '^ *+' conftest.er1 >conftest.err
26150  rm -f conftest.er1
26151  cat conftest.err >&5
26152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26153  (exit $ac_status); } && {
26154	 test -z "$ac_c_werror_flag" ||
26155	 test ! -s conftest.err
26156       } && test -s conftest.$ac_objext; then
26157  ac_header_compiler=yes
26158else
26159  echo "$as_me: failed program was:" >&5
26160sed 's/^/| /' conftest.$ac_ext >&5
26161
26162	ac_header_compiler=no
26163fi
26164
26165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26166{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26167echo "${ECHO_T}$ac_header_compiler" >&6; }
26168
26169# Is the header present?
26170{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26171echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26172cat >conftest.$ac_ext <<_ACEOF
26173/* confdefs.h.  */
26174_ACEOF
26175cat confdefs.h >>conftest.$ac_ext
26176cat >>conftest.$ac_ext <<_ACEOF
26177/* end confdefs.h.  */
26178#include <$ac_header>
26179_ACEOF
26180if { (ac_try="$ac_cpp conftest.$ac_ext"
26181case "(($ac_try" in
26182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26183  *) ac_try_echo=$ac_try;;
26184esac
26185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26186  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26187  ac_status=$?
26188  grep -v '^ *+' conftest.er1 >conftest.err
26189  rm -f conftest.er1
26190  cat conftest.err >&5
26191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192  (exit $ac_status); } >/dev/null && {
26193	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26194	 test ! -s conftest.err
26195       }; then
26196  ac_header_preproc=yes
26197else
26198  echo "$as_me: failed program was:" >&5
26199sed 's/^/| /' conftest.$ac_ext >&5
26200
26201  ac_header_preproc=no
26202fi
26203
26204rm -f conftest.err conftest.$ac_ext
26205{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26206echo "${ECHO_T}$ac_header_preproc" >&6; }
26207
26208# So?  What about this header?
26209case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26210  yes:no: )
26211    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26212echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26213    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26214echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26215    ac_header_preproc=yes
26216    ;;
26217  no:yes:* )
26218    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26219echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26220    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26221echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26222    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26223echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26224    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26225echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26226    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26227echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26228    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26229echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26230    ( cat <<\_ASBOX
26231## ---------------------------------------------------------------------- ##
26232## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
26233## ---------------------------------------------------------------------- ##
26234_ASBOX
26235     ) | sed "s/^/$as_me: WARNING:     /" >&2
26236    ;;
26237esac
26238{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26241  echo $ECHO_N "(cached) $ECHO_C" >&6
26242else
26243  eval "$as_ac_Header=\$ac_header_preproc"
26244fi
26245ac_res=`eval echo '${'$as_ac_Header'}'`
26246	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26247echo "${ECHO_T}$ac_res" >&6; }
26248
26249fi
26250if test `eval echo '${'$as_ac_Header'}'` = yes; then
26251  cat >>confdefs.h <<_ACEOF
26252#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26253_ACEOF
26254 LNXAPM=yes
26255fi
26256
26257done
26258
26259 if test "x$LNXAPM" = xyes; then
26260  LNXAPM_TRUE=
26261  LNXAPM_FALSE='#'
26262else
26263  LNXAPM_TRUE='#'
26264  LNXAPM_FALSE=
26265fi
26266
26267
26268
26269for ac_header in linux/fb.h
26270do
26271as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26272if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26273  { echo "$as_me:$LINENO: checking for $ac_header" >&5
26274echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26275if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26276  echo $ECHO_N "(cached) $ECHO_C" >&6
26277fi
26278ac_res=`eval echo '${'$as_ac_Header'}'`
26279	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26280echo "${ECHO_T}$ac_res" >&6; }
26281else
26282  # Is the header compilable?
26283{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
26284echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26285cat >conftest.$ac_ext <<_ACEOF
26286/* confdefs.h.  */
26287_ACEOF
26288cat confdefs.h >>conftest.$ac_ext
26289cat >>conftest.$ac_ext <<_ACEOF
26290/* end confdefs.h.  */
26291$ac_includes_default
26292#include <$ac_header>
26293_ACEOF
26294rm -f conftest.$ac_objext
26295if { (ac_try="$ac_compile"
26296case "(($ac_try" in
26297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26298  *) ac_try_echo=$ac_try;;
26299esac
26300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26301  (eval "$ac_compile") 2>conftest.er1
26302  ac_status=$?
26303  grep -v '^ *+' conftest.er1 >conftest.err
26304  rm -f conftest.er1
26305  cat conftest.err >&5
26306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307  (exit $ac_status); } && {
26308	 test -z "$ac_c_werror_flag" ||
26309	 test ! -s conftest.err
26310       } && test -s conftest.$ac_objext; then
26311  ac_header_compiler=yes
26312else
26313  echo "$as_me: failed program was:" >&5
26314sed 's/^/| /' conftest.$ac_ext >&5
26315
26316	ac_header_compiler=no
26317fi
26318
26319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26320{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26321echo "${ECHO_T}$ac_header_compiler" >&6; }
26322
26323# Is the header present?
26324{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26325echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26326cat >conftest.$ac_ext <<_ACEOF
26327/* confdefs.h.  */
26328_ACEOF
26329cat confdefs.h >>conftest.$ac_ext
26330cat >>conftest.$ac_ext <<_ACEOF
26331/* end confdefs.h.  */
26332#include <$ac_header>
26333_ACEOF
26334if { (ac_try="$ac_cpp conftest.$ac_ext"
26335case "(($ac_try" in
26336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26337  *) ac_try_echo=$ac_try;;
26338esac
26339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26340  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26341  ac_status=$?
26342  grep -v '^ *+' conftest.er1 >conftest.err
26343  rm -f conftest.er1
26344  cat conftest.err >&5
26345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346  (exit $ac_status); } >/dev/null && {
26347	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26348	 test ! -s conftest.err
26349       }; then
26350  ac_header_preproc=yes
26351else
26352  echo "$as_me: failed program was:" >&5
26353sed 's/^/| /' conftest.$ac_ext >&5
26354
26355  ac_header_preproc=no
26356fi
26357
26358rm -f conftest.err conftest.$ac_ext
26359{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26360echo "${ECHO_T}$ac_header_preproc" >&6; }
26361
26362# So?  What about this header?
26363case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26364  yes:no: )
26365    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26366echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26367    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26368echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26369    ac_header_preproc=yes
26370    ;;
26371  no:yes:* )
26372    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26373echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26374    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26375echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26376    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26377echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26378    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26379echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26380    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26381echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26382    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26383echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26384    ( cat <<\_ASBOX
26385## ---------------------------------------------------------------------- ##
26386## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
26387## ---------------------------------------------------------------------- ##
26388_ASBOX
26389     ) | sed "s/^/$as_me: WARNING:     /" >&2
26390    ;;
26391esac
26392{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26393echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26394if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26395  echo $ECHO_N "(cached) $ECHO_C" >&6
26396else
26397  eval "$as_ac_Header=\$ac_header_preproc"
26398fi
26399ac_res=`eval echo '${'$as_ac_Header'}'`
26400	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26401echo "${ECHO_T}$ac_res" >&6; }
26402
26403fi
26404if test `eval echo '${'$as_ac_Header'}'` = yes; then
26405  cat >>confdefs.h <<_ACEOF
26406#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26407_ACEOF
26408 FBDEV=yes
26409fi
26410
26411done
26412
26413 if test "x$FBDEV" = xyes; then
26414  FBDEVHW_TRUE=
26415  FBDEVHW_FALSE='#'
26416else
26417  FBDEVHW_TRUE='#'
26418  FBDEVHW_FALSE=
26419fi
26420
26421
26422
26423for ac_header in asm/mtrr.h
26424do
26425as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26426if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26427  { echo "$as_me:$LINENO: checking for $ac_header" >&5
26428echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26429if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26430  echo $ECHO_N "(cached) $ECHO_C" >&6
26431fi
26432ac_res=`eval echo '${'$as_ac_Header'}'`
26433	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26434echo "${ECHO_T}$ac_res" >&6; }
26435else
26436  # Is the header compilable?
26437{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
26438echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26439cat >conftest.$ac_ext <<_ACEOF
26440/* confdefs.h.  */
26441_ACEOF
26442cat confdefs.h >>conftest.$ac_ext
26443cat >>conftest.$ac_ext <<_ACEOF
26444/* end confdefs.h.  */
26445$ac_includes_default
26446#include <$ac_header>
26447_ACEOF
26448rm -f conftest.$ac_objext
26449if { (ac_try="$ac_compile"
26450case "(($ac_try" in
26451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26452  *) ac_try_echo=$ac_try;;
26453esac
26454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26455  (eval "$ac_compile") 2>conftest.er1
26456  ac_status=$?
26457  grep -v '^ *+' conftest.er1 >conftest.err
26458  rm -f conftest.er1
26459  cat conftest.err >&5
26460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26461  (exit $ac_status); } && {
26462	 test -z "$ac_c_werror_flag" ||
26463	 test ! -s conftest.err
26464       } && test -s conftest.$ac_objext; then
26465  ac_header_compiler=yes
26466else
26467  echo "$as_me: failed program was:" >&5
26468sed 's/^/| /' conftest.$ac_ext >&5
26469
26470	ac_header_compiler=no
26471fi
26472
26473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26474{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26475echo "${ECHO_T}$ac_header_compiler" >&6; }
26476
26477# Is the header present?
26478{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26479echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26480cat >conftest.$ac_ext <<_ACEOF
26481/* confdefs.h.  */
26482_ACEOF
26483cat confdefs.h >>conftest.$ac_ext
26484cat >>conftest.$ac_ext <<_ACEOF
26485/* end confdefs.h.  */
26486#include <$ac_header>
26487_ACEOF
26488if { (ac_try="$ac_cpp conftest.$ac_ext"
26489case "(($ac_try" in
26490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26491  *) ac_try_echo=$ac_try;;
26492esac
26493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26494  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26495  ac_status=$?
26496  grep -v '^ *+' conftest.er1 >conftest.err
26497  rm -f conftest.er1
26498  cat conftest.err >&5
26499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26500  (exit $ac_status); } >/dev/null && {
26501	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26502	 test ! -s conftest.err
26503       }; then
26504  ac_header_preproc=yes
26505else
26506  echo "$as_me: failed program was:" >&5
26507sed 's/^/| /' conftest.$ac_ext >&5
26508
26509  ac_header_preproc=no
26510fi
26511
26512rm -f conftest.err conftest.$ac_ext
26513{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26514echo "${ECHO_T}$ac_header_preproc" >&6; }
26515
26516# So?  What about this header?
26517case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26518  yes:no: )
26519    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26520echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26521    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26522echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26523    ac_header_preproc=yes
26524    ;;
26525  no:yes:* )
26526    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26527echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26528    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26529echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26530    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26531echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26532    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26533echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26534    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26535echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26536    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26537echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26538    ( cat <<\_ASBOX
26539## ---------------------------------------------------------------------- ##
26540## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
26541## ---------------------------------------------------------------------- ##
26542_ASBOX
26543     ) | sed "s/^/$as_me: WARNING:     /" >&2
26544    ;;
26545esac
26546{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26548if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26549  echo $ECHO_N "(cached) $ECHO_C" >&6
26550else
26551  eval "$as_ac_Header=\$ac_header_preproc"
26552fi
26553ac_res=`eval echo '${'$as_ac_Header'}'`
26554	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26555echo "${ECHO_T}$ac_res" >&6; }
26556
26557fi
26558if test `eval echo '${'$as_ac_Header'}'` = yes; then
26559  cat >>confdefs.h <<_ACEOF
26560#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26561_ACEOF
26562 ac_cv_asm_mtrr_h=yes
26563fi
26564
26565done
26566
26567if test "x$ac_cv_asm_mtrr_h" = xyes; then
26568	HAVE_MTRR=yes
26569fi
26570
26571
26572for ac_header in sys/memrange.h
26573do
26574as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26575if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26576  { echo "$as_me:$LINENO: checking for $ac_header" >&5
26577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26578if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26579  echo $ECHO_N "(cached) $ECHO_C" >&6
26580fi
26581ac_res=`eval echo '${'$as_ac_Header'}'`
26582	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26583echo "${ECHO_T}$ac_res" >&6; }
26584else
26585  # Is the header compilable?
26586{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
26587echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26588cat >conftest.$ac_ext <<_ACEOF
26589/* confdefs.h.  */
26590_ACEOF
26591cat confdefs.h >>conftest.$ac_ext
26592cat >>conftest.$ac_ext <<_ACEOF
26593/* end confdefs.h.  */
26594$ac_includes_default
26595#include <$ac_header>
26596_ACEOF
26597rm -f conftest.$ac_objext
26598if { (ac_try="$ac_compile"
26599case "(($ac_try" in
26600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26601  *) ac_try_echo=$ac_try;;
26602esac
26603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26604  (eval "$ac_compile") 2>conftest.er1
26605  ac_status=$?
26606  grep -v '^ *+' conftest.er1 >conftest.err
26607  rm -f conftest.er1
26608  cat conftest.err >&5
26609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26610  (exit $ac_status); } && {
26611	 test -z "$ac_c_werror_flag" ||
26612	 test ! -s conftest.err
26613       } && test -s conftest.$ac_objext; then
26614  ac_header_compiler=yes
26615else
26616  echo "$as_me: failed program was:" >&5
26617sed 's/^/| /' conftest.$ac_ext >&5
26618
26619	ac_header_compiler=no
26620fi
26621
26622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26623{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26624echo "${ECHO_T}$ac_header_compiler" >&6; }
26625
26626# Is the header present?
26627{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26628echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26629cat >conftest.$ac_ext <<_ACEOF
26630/* confdefs.h.  */
26631_ACEOF
26632cat confdefs.h >>conftest.$ac_ext
26633cat >>conftest.$ac_ext <<_ACEOF
26634/* end confdefs.h.  */
26635#include <$ac_header>
26636_ACEOF
26637if { (ac_try="$ac_cpp conftest.$ac_ext"
26638case "(($ac_try" in
26639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26640  *) ac_try_echo=$ac_try;;
26641esac
26642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26643  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26644  ac_status=$?
26645  grep -v '^ *+' conftest.er1 >conftest.err
26646  rm -f conftest.er1
26647  cat conftest.err >&5
26648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26649  (exit $ac_status); } >/dev/null && {
26650	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26651	 test ! -s conftest.err
26652       }; then
26653  ac_header_preproc=yes
26654else
26655  echo "$as_me: failed program was:" >&5
26656sed 's/^/| /' conftest.$ac_ext >&5
26657
26658  ac_header_preproc=no
26659fi
26660
26661rm -f conftest.err conftest.$ac_ext
26662{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26663echo "${ECHO_T}$ac_header_preproc" >&6; }
26664
26665# So?  What about this header?
26666case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26667  yes:no: )
26668    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26669echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26670    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26671echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26672    ac_header_preproc=yes
26673    ;;
26674  no:yes:* )
26675    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26676echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26677    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26678echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26679    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26680echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26681    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26682echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26683    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26684echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26685    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26686echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26687    ( cat <<\_ASBOX
26688## ---------------------------------------------------------------------- ##
26689## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
26690## ---------------------------------------------------------------------- ##
26691_ASBOX
26692     ) | sed "s/^/$as_me: WARNING:     /" >&2
26693    ;;
26694esac
26695{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26698  echo $ECHO_N "(cached) $ECHO_C" >&6
26699else
26700  eval "$as_ac_Header=\$ac_header_preproc"
26701fi
26702ac_res=`eval echo '${'$as_ac_Header'}'`
26703	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26704echo "${ECHO_T}$ac_res" >&6; }
26705
26706fi
26707if test `eval echo '${'$as_ac_Header'}'` = yes; then
26708  cat >>confdefs.h <<_ACEOF
26709#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26710_ACEOF
26711 ac_cv_memrange_h=yes
26712fi
26713
26714done
26715
26716if test "x$ac_cv_memrange_h" = xyes; then
26717	HAVE_MTRR=yes
26718fi
26719
26720if test "x$HAVE_MTRR" = xyes; then
26721
26722cat >>confdefs.h <<\_ACEOF
26723#define HAS_MTRR_SUPPORT 1
26724_ACEOF
26725
26726fi
26727
26728
26729for ac_header in machine/mtrr.h
26730do
26731as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26733  { echo "$as_me:$LINENO: checking for $ac_header" >&5
26734echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26735if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26736  echo $ECHO_N "(cached) $ECHO_C" >&6
26737fi
26738ac_res=`eval echo '${'$as_ac_Header'}'`
26739	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26740echo "${ECHO_T}$ac_res" >&6; }
26741else
26742  # Is the header compilable?
26743{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
26744echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26745cat >conftest.$ac_ext <<_ACEOF
26746/* confdefs.h.  */
26747_ACEOF
26748cat confdefs.h >>conftest.$ac_ext
26749cat >>conftest.$ac_ext <<_ACEOF
26750/* end confdefs.h.  */
26751$ac_includes_default
26752#include <$ac_header>
26753_ACEOF
26754rm -f conftest.$ac_objext
26755if { (ac_try="$ac_compile"
26756case "(($ac_try" in
26757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26758  *) ac_try_echo=$ac_try;;
26759esac
26760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26761  (eval "$ac_compile") 2>conftest.er1
26762  ac_status=$?
26763  grep -v '^ *+' conftest.er1 >conftest.err
26764  rm -f conftest.er1
26765  cat conftest.err >&5
26766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767  (exit $ac_status); } && {
26768	 test -z "$ac_c_werror_flag" ||
26769	 test ! -s conftest.err
26770       } && test -s conftest.$ac_objext; then
26771  ac_header_compiler=yes
26772else
26773  echo "$as_me: failed program was:" >&5
26774sed 's/^/| /' conftest.$ac_ext >&5
26775
26776	ac_header_compiler=no
26777fi
26778
26779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26780{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26781echo "${ECHO_T}$ac_header_compiler" >&6; }
26782
26783# Is the header present?
26784{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26785echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26786cat >conftest.$ac_ext <<_ACEOF
26787/* confdefs.h.  */
26788_ACEOF
26789cat confdefs.h >>conftest.$ac_ext
26790cat >>conftest.$ac_ext <<_ACEOF
26791/* end confdefs.h.  */
26792#include <$ac_header>
26793_ACEOF
26794if { (ac_try="$ac_cpp conftest.$ac_ext"
26795case "(($ac_try" in
26796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26797  *) ac_try_echo=$ac_try;;
26798esac
26799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26800  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26801  ac_status=$?
26802  grep -v '^ *+' conftest.er1 >conftest.err
26803  rm -f conftest.er1
26804  cat conftest.err >&5
26805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26806  (exit $ac_status); } >/dev/null && {
26807	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26808	 test ! -s conftest.err
26809       }; then
26810  ac_header_preproc=yes
26811else
26812  echo "$as_me: failed program was:" >&5
26813sed 's/^/| /' conftest.$ac_ext >&5
26814
26815  ac_header_preproc=no
26816fi
26817
26818rm -f conftest.err conftest.$ac_ext
26819{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26820echo "${ECHO_T}$ac_header_preproc" >&6; }
26821
26822# So?  What about this header?
26823case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26824  yes:no: )
26825    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26826echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26827    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26828echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26829    ac_header_preproc=yes
26830    ;;
26831  no:yes:* )
26832    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26833echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26834    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26835echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26836    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26837echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26838    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26839echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26840    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26841echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26842    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26843echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26844    ( cat <<\_ASBOX
26845## ---------------------------------------------------------------------- ##
26846## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
26847## ---------------------------------------------------------------------- ##
26848_ASBOX
26849     ) | sed "s/^/$as_me: WARNING:     /" >&2
26850    ;;
26851esac
26852{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26853echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26854if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26855  echo $ECHO_N "(cached) $ECHO_C" >&6
26856else
26857  eval "$as_ac_Header=\$ac_header_preproc"
26858fi
26859ac_res=`eval echo '${'$as_ac_Header'}'`
26860	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26861echo "${ECHO_T}$ac_res" >&6; }
26862
26863fi
26864if test `eval echo '${'$as_ac_Header'}'` = yes; then
26865  cat >>confdefs.h <<_ACEOF
26866#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26867_ACEOF
26868 ac_cv_machine_mtrr_h=yes
26869fi
26870
26871done
26872
26873if test "x$ac_cv_machine_mtrr_h" = xyes; then
26874
26875cat >>confdefs.h <<\_ACEOF
26876#define HAS_MTRR_BUILTIN 1
26877_ACEOF
26878
26879fi
26880
26881
26882for ac_header in sys/linker.h
26883do
26884as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26885{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26887if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26888  echo $ECHO_N "(cached) $ECHO_C" >&6
26889else
26890  cat >conftest.$ac_ext <<_ACEOF
26891/* confdefs.h.  */
26892_ACEOF
26893cat confdefs.h >>conftest.$ac_ext
26894cat >>conftest.$ac_ext <<_ACEOF
26895/* end confdefs.h.  */
26896#include <sys/param.h>
26897
26898#include <$ac_header>
26899_ACEOF
26900rm -f conftest.$ac_objext
26901if { (ac_try="$ac_compile"
26902case "(($ac_try" in
26903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26904  *) ac_try_echo=$ac_try;;
26905esac
26906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26907  (eval "$ac_compile") 2>conftest.er1
26908  ac_status=$?
26909  grep -v '^ *+' conftest.er1 >conftest.err
26910  rm -f conftest.er1
26911  cat conftest.err >&5
26912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913  (exit $ac_status); } && {
26914	 test -z "$ac_c_werror_flag" ||
26915	 test ! -s conftest.err
26916       } && test -s conftest.$ac_objext; then
26917  eval "$as_ac_Header=yes"
26918else
26919  echo "$as_me: failed program was:" >&5
26920sed 's/^/| /' conftest.$ac_ext >&5
26921
26922	eval "$as_ac_Header=no"
26923fi
26924
26925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26926fi
26927ac_res=`eval echo '${'$as_ac_Header'}'`
26928	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26929echo "${ECHO_T}$ac_res" >&6; }
26930if test `eval echo '${'$as_ac_Header'}'` = yes; then
26931  cat >>confdefs.h <<_ACEOF
26932#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26933_ACEOF
26934 ac_cv_sys_linker_h=yes
26935else
26936  ac_cv_sys_linker_h=no
26937fi
26938
26939done
26940
26941 if test "x$ac_cv_sys_linker_h" = xyes; then
26942  FREEBSD_KLDLOAD_TRUE=
26943  FREEBSD_KLDLOAD_FALSE='#'
26944else
26945  FREEBSD_KLDLOAD_TRUE='#'
26946  FREEBSD_KLDLOAD_FALSE=
26947fi
26948
26949
26950{ echo "$as_me:$LINENO: checking for SYSV IPC" >&5
26951echo $ECHO_N "checking for SYSV IPC... $ECHO_C" >&6; }
26952if test "${ac_cv_sysv_ipc+set}" = set; then
26953  echo $ECHO_N "(cached) $ECHO_C" >&6
26954else
26955  cat >conftest.$ac_ext <<_ACEOF
26956/* confdefs.h.  */
26957_ACEOF
26958cat confdefs.h >>conftest.$ac_ext
26959cat >>conftest.$ac_ext <<_ACEOF
26960/* end confdefs.h.  */
26961
26962#include <sys/types.h>
26963#include <sys/ipc.h>
26964#include <sys/shm.h>
26965
26966int
26967main ()
26968{
26969
26970{
26971    int id;
26972    id = shmget(IPC_PRIVATE, 512, SHM_W | SHM_R);
26973    if (id < 0) return -1;
26974    return shmctl(id, IPC_RMID, 0);
26975}
26976  ;
26977  return 0;
26978}
26979_ACEOF
26980rm -f conftest.$ac_objext conftest$ac_exeext
26981if { (ac_try="$ac_link"
26982case "(($ac_try" in
26983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26984  *) ac_try_echo=$ac_try;;
26985esac
26986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26987  (eval "$ac_link") 2>conftest.er1
26988  ac_status=$?
26989  grep -v '^ *+' conftest.er1 >conftest.err
26990  rm -f conftest.er1
26991  cat conftest.err >&5
26992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993  (exit $ac_status); } && {
26994	 test -z "$ac_c_werror_flag" ||
26995	 test ! -s conftest.err
26996       } && test -s conftest$ac_exeext &&
26997       $as_test_x conftest$ac_exeext; then
26998  ac_cv_sysv_ipc=yes
26999else
27000  echo "$as_me: failed program was:" >&5
27001sed 's/^/| /' conftest.$ac_ext >&5
27002
27003	ac_cv_sysv_ipc=no
27004fi
27005
27006rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27007      conftest$ac_exeext conftest.$ac_ext
27008fi
27009{ echo "$as_me:$LINENO: result: $ac_cv_sysv_ipc" >&5
27010echo "${ECHO_T}$ac_cv_sysv_ipc" >&6; }
27011if test "x$ac_cv_sysv_ipc" = xyes; then
27012
27013cat >>confdefs.h <<\_ACEOF
27014#define HAVE_SYSV_IPC 1
27015_ACEOF
27016
27017fi
27018
27019if test -c /dev/xf86 ; then
27020
27021cat >>confdefs.h <<\_ACEOF
27022#define HAS_APERTURE_DRV 1
27023_ACEOF
27024
27025fi
27026
27027if test "${ac_cv_header_machine_apmvar_h+set}" = set; then
27028  { echo "$as_me:$LINENO: checking for machine/apmvar.h" >&5
27029echo $ECHO_N "checking for machine/apmvar.h... $ECHO_C" >&6; }
27030if test "${ac_cv_header_machine_apmvar_h+set}" = set; then
27031  echo $ECHO_N "(cached) $ECHO_C" >&6
27032fi
27033{ echo "$as_me:$LINENO: result: $ac_cv_header_machine_apmvar_h" >&5
27034echo "${ECHO_T}$ac_cv_header_machine_apmvar_h" >&6; }
27035else
27036  # Is the header compilable?
27037{ echo "$as_me:$LINENO: checking machine/apmvar.h usability" >&5
27038echo $ECHO_N "checking machine/apmvar.h usability... $ECHO_C" >&6; }
27039cat >conftest.$ac_ext <<_ACEOF
27040/* confdefs.h.  */
27041_ACEOF
27042cat confdefs.h >>conftest.$ac_ext
27043cat >>conftest.$ac_ext <<_ACEOF
27044/* end confdefs.h.  */
27045$ac_includes_default
27046#include <machine/apmvar.h>
27047_ACEOF
27048rm -f conftest.$ac_objext
27049if { (ac_try="$ac_compile"
27050case "(($ac_try" in
27051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27052  *) ac_try_echo=$ac_try;;
27053esac
27054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27055  (eval "$ac_compile") 2>conftest.er1
27056  ac_status=$?
27057  grep -v '^ *+' conftest.er1 >conftest.err
27058  rm -f conftest.er1
27059  cat conftest.err >&5
27060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061  (exit $ac_status); } && {
27062	 test -z "$ac_c_werror_flag" ||
27063	 test ! -s conftest.err
27064       } && test -s conftest.$ac_objext; then
27065  ac_header_compiler=yes
27066else
27067  echo "$as_me: failed program was:" >&5
27068sed 's/^/| /' conftest.$ac_ext >&5
27069
27070	ac_header_compiler=no
27071fi
27072
27073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27074{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27075echo "${ECHO_T}$ac_header_compiler" >&6; }
27076
27077# Is the header present?
27078{ echo "$as_me:$LINENO: checking machine/apmvar.h presence" >&5
27079echo $ECHO_N "checking machine/apmvar.h presence... $ECHO_C" >&6; }
27080cat >conftest.$ac_ext <<_ACEOF
27081/* confdefs.h.  */
27082_ACEOF
27083cat confdefs.h >>conftest.$ac_ext
27084cat >>conftest.$ac_ext <<_ACEOF
27085/* end confdefs.h.  */
27086#include <machine/apmvar.h>
27087_ACEOF
27088if { (ac_try="$ac_cpp conftest.$ac_ext"
27089case "(($ac_try" in
27090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27091  *) ac_try_echo=$ac_try;;
27092esac
27093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27094  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27095  ac_status=$?
27096  grep -v '^ *+' conftest.er1 >conftest.err
27097  rm -f conftest.er1
27098  cat conftest.err >&5
27099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27100  (exit $ac_status); } >/dev/null && {
27101	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27102	 test ! -s conftest.err
27103       }; then
27104  ac_header_preproc=yes
27105else
27106  echo "$as_me: failed program was:" >&5
27107sed 's/^/| /' conftest.$ac_ext >&5
27108
27109  ac_header_preproc=no
27110fi
27111
27112rm -f conftest.err conftest.$ac_ext
27113{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27114echo "${ECHO_T}$ac_header_preproc" >&6; }
27115
27116# So?  What about this header?
27117case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27118  yes:no: )
27119    { echo "$as_me:$LINENO: WARNING: machine/apmvar.h: accepted by the compiler, rejected by the preprocessor!" >&5
27120echo "$as_me: WARNING: machine/apmvar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27121    { echo "$as_me:$LINENO: WARNING: machine/apmvar.h: proceeding with the compiler's result" >&5
27122echo "$as_me: WARNING: machine/apmvar.h: proceeding with the compiler's result" >&2;}
27123    ac_header_preproc=yes
27124    ;;
27125  no:yes:* )
27126    { echo "$as_me:$LINENO: WARNING: machine/apmvar.h: present but cannot be compiled" >&5
27127echo "$as_me: WARNING: machine/apmvar.h: present but cannot be compiled" >&2;}
27128    { echo "$as_me:$LINENO: WARNING: machine/apmvar.h:     check for missing prerequisite headers?" >&5
27129echo "$as_me: WARNING: machine/apmvar.h:     check for missing prerequisite headers?" >&2;}
27130    { echo "$as_me:$LINENO: WARNING: machine/apmvar.h: see the Autoconf documentation" >&5
27131echo "$as_me: WARNING: machine/apmvar.h: see the Autoconf documentation" >&2;}
27132    { echo "$as_me:$LINENO: WARNING: machine/apmvar.h:     section \"Present But Cannot Be Compiled\"" >&5
27133echo "$as_me: WARNING: machine/apmvar.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27134    { echo "$as_me:$LINENO: WARNING: machine/apmvar.h: proceeding with the preprocessor's result" >&5
27135echo "$as_me: WARNING: machine/apmvar.h: proceeding with the preprocessor's result" >&2;}
27136    { echo "$as_me:$LINENO: WARNING: machine/apmvar.h: in the future, the compiler will take precedence" >&5
27137echo "$as_me: WARNING: machine/apmvar.h: in the future, the compiler will take precedence" >&2;}
27138    ( cat <<\_ASBOX
27139## ---------------------------------------------------------------------- ##
27140## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
27141## ---------------------------------------------------------------------- ##
27142_ASBOX
27143     ) | sed "s/^/$as_me: WARNING:     /" >&2
27144    ;;
27145esac
27146{ echo "$as_me:$LINENO: checking for machine/apmvar.h" >&5
27147echo $ECHO_N "checking for machine/apmvar.h... $ECHO_C" >&6; }
27148if test "${ac_cv_header_machine_apmvar_h+set}" = set; then
27149  echo $ECHO_N "(cached) $ECHO_C" >&6
27150else
27151  ac_cv_header_machine_apmvar_h=$ac_header_preproc
27152fi
27153{ echo "$as_me:$LINENO: result: $ac_cv_header_machine_apmvar_h" >&5
27154echo "${ECHO_T}$ac_cv_header_machine_apmvar_h" >&6; }
27155
27156fi
27157if test $ac_cv_header_machine_apmvar_h = yes; then
27158
27159	if test "${ac_cv_header_sys_event_h+set}" = set; then
27160  { echo "$as_me:$LINENO: checking for sys/event.h" >&5
27161echo $ECHO_N "checking for sys/event.h... $ECHO_C" >&6; }
27162if test "${ac_cv_header_sys_event_h+set}" = set; then
27163  echo $ECHO_N "(cached) $ECHO_C" >&6
27164fi
27165{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_event_h" >&5
27166echo "${ECHO_T}$ac_cv_header_sys_event_h" >&6; }
27167else
27168  # Is the header compilable?
27169{ echo "$as_me:$LINENO: checking sys/event.h usability" >&5
27170echo $ECHO_N "checking sys/event.h usability... $ECHO_C" >&6; }
27171cat >conftest.$ac_ext <<_ACEOF
27172/* confdefs.h.  */
27173_ACEOF
27174cat confdefs.h >>conftest.$ac_ext
27175cat >>conftest.$ac_ext <<_ACEOF
27176/* end confdefs.h.  */
27177$ac_includes_default
27178#include <sys/event.h>
27179_ACEOF
27180rm -f conftest.$ac_objext
27181if { (ac_try="$ac_compile"
27182case "(($ac_try" in
27183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27184  *) ac_try_echo=$ac_try;;
27185esac
27186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27187  (eval "$ac_compile") 2>conftest.er1
27188  ac_status=$?
27189  grep -v '^ *+' conftest.er1 >conftest.err
27190  rm -f conftest.er1
27191  cat conftest.err >&5
27192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193  (exit $ac_status); } && {
27194	 test -z "$ac_c_werror_flag" ||
27195	 test ! -s conftest.err
27196       } && test -s conftest.$ac_objext; then
27197  ac_header_compiler=yes
27198else
27199  echo "$as_me: failed program was:" >&5
27200sed 's/^/| /' conftest.$ac_ext >&5
27201
27202	ac_header_compiler=no
27203fi
27204
27205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27206{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27207echo "${ECHO_T}$ac_header_compiler" >&6; }
27208
27209# Is the header present?
27210{ echo "$as_me:$LINENO: checking sys/event.h presence" >&5
27211echo $ECHO_N "checking sys/event.h presence... $ECHO_C" >&6; }
27212cat >conftest.$ac_ext <<_ACEOF
27213/* confdefs.h.  */
27214_ACEOF
27215cat confdefs.h >>conftest.$ac_ext
27216cat >>conftest.$ac_ext <<_ACEOF
27217/* end confdefs.h.  */
27218#include <sys/event.h>
27219_ACEOF
27220if { (ac_try="$ac_cpp conftest.$ac_ext"
27221case "(($ac_try" in
27222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27223  *) ac_try_echo=$ac_try;;
27224esac
27225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27226  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27227  ac_status=$?
27228  grep -v '^ *+' conftest.er1 >conftest.err
27229  rm -f conftest.er1
27230  cat conftest.err >&5
27231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232  (exit $ac_status); } >/dev/null && {
27233	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27234	 test ! -s conftest.err
27235       }; then
27236  ac_header_preproc=yes
27237else
27238  echo "$as_me: failed program was:" >&5
27239sed 's/^/| /' conftest.$ac_ext >&5
27240
27241  ac_header_preproc=no
27242fi
27243
27244rm -f conftest.err conftest.$ac_ext
27245{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27246echo "${ECHO_T}$ac_header_preproc" >&6; }
27247
27248# So?  What about this header?
27249case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27250  yes:no: )
27251    { echo "$as_me:$LINENO: WARNING: sys/event.h: accepted by the compiler, rejected by the preprocessor!" >&5
27252echo "$as_me: WARNING: sys/event.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27253    { echo "$as_me:$LINENO: WARNING: sys/event.h: proceeding with the compiler's result" >&5
27254echo "$as_me: WARNING: sys/event.h: proceeding with the compiler's result" >&2;}
27255    ac_header_preproc=yes
27256    ;;
27257  no:yes:* )
27258    { echo "$as_me:$LINENO: WARNING: sys/event.h: present but cannot be compiled" >&5
27259echo "$as_me: WARNING: sys/event.h: present but cannot be compiled" >&2;}
27260    { echo "$as_me:$LINENO: WARNING: sys/event.h:     check for missing prerequisite headers?" >&5
27261echo "$as_me: WARNING: sys/event.h:     check for missing prerequisite headers?" >&2;}
27262    { echo "$as_me:$LINENO: WARNING: sys/event.h: see the Autoconf documentation" >&5
27263echo "$as_me: WARNING: sys/event.h: see the Autoconf documentation" >&2;}
27264    { echo "$as_me:$LINENO: WARNING: sys/event.h:     section \"Present But Cannot Be Compiled\"" >&5
27265echo "$as_me: WARNING: sys/event.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27266    { echo "$as_me:$LINENO: WARNING: sys/event.h: proceeding with the preprocessor's result" >&5
27267echo "$as_me: WARNING: sys/event.h: proceeding with the preprocessor's result" >&2;}
27268    { echo "$as_me:$LINENO: WARNING: sys/event.h: in the future, the compiler will take precedence" >&5
27269echo "$as_me: WARNING: sys/event.h: in the future, the compiler will take precedence" >&2;}
27270    ( cat <<\_ASBOX
27271## ---------------------------------------------------------------------- ##
27272## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
27273## ---------------------------------------------------------------------- ##
27274_ASBOX
27275     ) | sed "s/^/$as_me: WARNING:     /" >&2
27276    ;;
27277esac
27278{ echo "$as_me:$LINENO: checking for sys/event.h" >&5
27279echo $ECHO_N "checking for sys/event.h... $ECHO_C" >&6; }
27280if test "${ac_cv_header_sys_event_h+set}" = set; then
27281  echo $ECHO_N "(cached) $ECHO_C" >&6
27282else
27283  ac_cv_header_sys_event_h=$ac_header_preproc
27284fi
27285{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_event_h" >&5
27286echo "${ECHO_T}$ac_cv_header_sys_event_h" >&6; }
27287
27288fi
27289if test $ac_cv_header_sys_event_h = yes; then
27290  ac_cv_BSD_KQUEUE_APM=yes
27291else
27292  ac_cv_BSD_APM=yes
27293fi
27294
27295
27296fi
27297
27298
27299
27300 if test "x$ac_cv_BSD_APM" = xyes; then
27301  BSD_APM_TRUE=
27302  BSD_APM_FALSE='#'
27303else
27304  BSD_APM_TRUE='#'
27305  BSD_APM_FALSE=
27306fi
27307
27308 if test "x$ac_cv_BSD_KQUEUE_APM" = xyes; then
27309  BSD_KQUEUE_APM_TRUE=
27310  BSD_KQUEUE_APM_FALSE='#'
27311else
27312  BSD_KQUEUE_APM_TRUE='#'
27313  BSD_KQUEUE_APM_FALSE=
27314fi
27315
27316
27317if test "${ac_cv_header_execinfo_h+set}" = set; then
27318  { echo "$as_me:$LINENO: checking for execinfo.h" >&5
27319echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
27320if test "${ac_cv_header_execinfo_h+set}" = set; then
27321  echo $ECHO_N "(cached) $ECHO_C" >&6
27322fi
27323{ echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
27324echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
27325else
27326  # Is the header compilable?
27327{ echo "$as_me:$LINENO: checking execinfo.h usability" >&5
27328echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6; }
27329cat >conftest.$ac_ext <<_ACEOF
27330/* confdefs.h.  */
27331_ACEOF
27332cat confdefs.h >>conftest.$ac_ext
27333cat >>conftest.$ac_ext <<_ACEOF
27334/* end confdefs.h.  */
27335$ac_includes_default
27336#include <execinfo.h>
27337_ACEOF
27338rm -f conftest.$ac_objext
27339if { (ac_try="$ac_compile"
27340case "(($ac_try" in
27341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27342  *) ac_try_echo=$ac_try;;
27343esac
27344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27345  (eval "$ac_compile") 2>conftest.er1
27346  ac_status=$?
27347  grep -v '^ *+' conftest.er1 >conftest.err
27348  rm -f conftest.er1
27349  cat conftest.err >&5
27350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27351  (exit $ac_status); } && {
27352	 test -z "$ac_c_werror_flag" ||
27353	 test ! -s conftest.err
27354       } && test -s conftest.$ac_objext; then
27355  ac_header_compiler=yes
27356else
27357  echo "$as_me: failed program was:" >&5
27358sed 's/^/| /' conftest.$ac_ext >&5
27359
27360	ac_header_compiler=no
27361fi
27362
27363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27364{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27365echo "${ECHO_T}$ac_header_compiler" >&6; }
27366
27367# Is the header present?
27368{ echo "$as_me:$LINENO: checking execinfo.h presence" >&5
27369echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6; }
27370cat >conftest.$ac_ext <<_ACEOF
27371/* confdefs.h.  */
27372_ACEOF
27373cat confdefs.h >>conftest.$ac_ext
27374cat >>conftest.$ac_ext <<_ACEOF
27375/* end confdefs.h.  */
27376#include <execinfo.h>
27377_ACEOF
27378if { (ac_try="$ac_cpp conftest.$ac_ext"
27379case "(($ac_try" in
27380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27381  *) ac_try_echo=$ac_try;;
27382esac
27383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27384  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27385  ac_status=$?
27386  grep -v '^ *+' conftest.er1 >conftest.err
27387  rm -f conftest.er1
27388  cat conftest.err >&5
27389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390  (exit $ac_status); } >/dev/null && {
27391	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27392	 test ! -s conftest.err
27393       }; then
27394  ac_header_preproc=yes
27395else
27396  echo "$as_me: failed program was:" >&5
27397sed 's/^/| /' conftest.$ac_ext >&5
27398
27399  ac_header_preproc=no
27400fi
27401
27402rm -f conftest.err conftest.$ac_ext
27403{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27404echo "${ECHO_T}$ac_header_preproc" >&6; }
27405
27406# So?  What about this header?
27407case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27408  yes:no: )
27409    { echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
27410echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27411    { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
27412echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
27413    ac_header_preproc=yes
27414    ;;
27415  no:yes:* )
27416    { echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
27417echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
27418    { echo "$as_me:$LINENO: WARNING: execinfo.h:     check for missing prerequisite headers?" >&5
27419echo "$as_me: WARNING: execinfo.h:     check for missing prerequisite headers?" >&2;}
27420    { echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
27421echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
27422    { echo "$as_me:$LINENO: WARNING: execinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
27423echo "$as_me: WARNING: execinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27424    { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
27425echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
27426    { echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
27427echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
27428    ( cat <<\_ASBOX
27429## ---------------------------------------------------------------------- ##
27430## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
27431## ---------------------------------------------------------------------- ##
27432_ASBOX
27433     ) | sed "s/^/$as_me: WARNING:     /" >&2
27434    ;;
27435esac
27436{ echo "$as_me:$LINENO: checking for execinfo.h" >&5
27437echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
27438if test "${ac_cv_header_execinfo_h+set}" = set; then
27439  echo $ECHO_N "(cached) $ECHO_C" >&6
27440else
27441  ac_cv_header_execinfo_h=$ac_header_preproc
27442fi
27443{ echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
27444echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
27445
27446fi
27447if test $ac_cv_header_execinfo_h = yes; then
27448
27449    { echo "$as_me:$LINENO: checking for backtrace in -lc" >&5
27450echo $ECHO_N "checking for backtrace in -lc... $ECHO_C" >&6; }
27451if test "${ac_cv_lib_c_backtrace+set}" = set; then
27452  echo $ECHO_N "(cached) $ECHO_C" >&6
27453else
27454  ac_check_lib_save_LIBS=$LIBS
27455LIBS="-lc  $LIBS"
27456cat >conftest.$ac_ext <<_ACEOF
27457/* confdefs.h.  */
27458_ACEOF
27459cat confdefs.h >>conftest.$ac_ext
27460cat >>conftest.$ac_ext <<_ACEOF
27461/* end confdefs.h.  */
27462
27463/* Override any GCC internal prototype to avoid an error.
27464   Use char because int might match the return type of a GCC
27465   builtin and then its argument prototype would still apply.  */
27466#ifdef __cplusplus
27467extern "C"
27468#endif
27469char backtrace ();
27470int
27471main ()
27472{
27473return backtrace ();
27474  ;
27475  return 0;
27476}
27477_ACEOF
27478rm -f conftest.$ac_objext conftest$ac_exeext
27479if { (ac_try="$ac_link"
27480case "(($ac_try" in
27481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27482  *) ac_try_echo=$ac_try;;
27483esac
27484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27485  (eval "$ac_link") 2>conftest.er1
27486  ac_status=$?
27487  grep -v '^ *+' conftest.er1 >conftest.err
27488  rm -f conftest.er1
27489  cat conftest.err >&5
27490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27491  (exit $ac_status); } && {
27492	 test -z "$ac_c_werror_flag" ||
27493	 test ! -s conftest.err
27494       } && test -s conftest$ac_exeext &&
27495       $as_test_x conftest$ac_exeext; then
27496  ac_cv_lib_c_backtrace=yes
27497else
27498  echo "$as_me: failed program was:" >&5
27499sed 's/^/| /' conftest.$ac_ext >&5
27500
27501	ac_cv_lib_c_backtrace=no
27502fi
27503
27504rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27505      conftest$ac_exeext conftest.$ac_ext
27506LIBS=$ac_check_lib_save_LIBS
27507fi
27508{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_backtrace" >&5
27509echo "${ECHO_T}$ac_cv_lib_c_backtrace" >&6; }
27510if test $ac_cv_lib_c_backtrace = yes; then
27511
27512
27513cat >>confdefs.h <<\_ACEOF
27514#define HAVE_BACKTRACE 1
27515_ACEOF
27516
27517
27518cat >>confdefs.h <<\_ACEOF
27519#define HAVE_EXECINFO_H 1
27520_ACEOF
27521
27522
27523fi
27524
27525
27526fi
27527
27528
27529
27530DEFAULT_INT10="x86emu"
27531
27532
27533case $host_cpu in
27534  alpha*)
27535	ALPHA_VIDEO=yes
27536	case $host_os in
27537	        *freebsd*)	SYS_LIBS=-lio ;;
27538		*netbsd*)
27539cat >>confdefs.h <<\_ACEOF
27540#define USE_ALPHA_PIO 1
27541_ACEOF
27542 ;;
27543	esac
27544	GLX_ARCH_DEFINES="-D__GLX_ALIGN64 -mieee"
27545	;;
27546  arm*)
27547	ARM_VIDEO=yes
27548	;;
27549  i*86)
27550	I386_VIDEO=yes
27551	case $host_os in
27552		*freebsd*)	cat >>confdefs.h <<\_ACEOF
27553#define USE_DEV_IO 1
27554_ACEOF
27555 ;;
27556		*dragonfly*)	cat >>confdefs.h <<\_ACEOF
27557#define USE_DEV_IO 1
27558_ACEOF
27559 ;;
27560		*netbsd*)	cat >>confdefs.h <<\_ACEOF
27561#define USE_I386_IOPL 1
27562_ACEOF
27563
27564				SYS_LIBS=-li386
27565				;;
27566		*openbsd*)	cat >>confdefs.h <<\_ACEOF
27567#define USE_I386_IOPL 1
27568_ACEOF
27569
27570				SYS_LIBS=-li386
27571				;;
27572	esac
27573        ;;
27574  powerpc*)
27575	PPC_VIDEO=yes
27576	case $host_os in
27577		*freebsd*)	DEFAULT_INT10=stub ;;
27578	esac
27579	;;
27580  sparc*)
27581	SPARC64_VIDEO=yes
27582	BSD_ARCH_SOURCES="sparc64_video.c ioperm_noop.c"
27583	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
27584	;;
27585  x86_64*|amd64*)
27586	I386_VIDEO=yes
27587	case $host_os in
27588		*freebsd*)
27589cat >>confdefs.h <<\_ACEOF
27590#define USE_DEV_IO 1
27591_ACEOF
27592 ;;
27593		*dragonfly*)
27594cat >>confdefs.h <<\_ACEOF
27595#define USE_DEV_IO 1
27596_ACEOF
27597 ;;
27598		*netbsd*)
27599cat >>confdefs.h <<\_ACEOF
27600#define USE_I386_IOPL 1
27601_ACEOF
27602
27603				SYS_LIBS=-lx86_64
27604				;;
27605		*openbsd*)
27606cat >>confdefs.h <<\_ACEOF
27607#define USE_AMD64_IOPL 1
27608_ACEOF
27609
27610				SYS_LIBS=-lamd64
27611				;;
27612	esac
27613	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
27614	;;
27615  ia64*)
27616  	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
27617	;;
27618  s390*)
27619  	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
27620	;;
27621esac
27622
27623
27624 if test "x$ALPHA_VIDEO" = xyes; then
27625  ALPHA_VIDEO_TRUE=
27626  ALPHA_VIDEO_FALSE='#'
27627else
27628  ALPHA_VIDEO_TRUE='#'
27629  ALPHA_VIDEO_FALSE=
27630fi
27631
27632 if test "x$ARM_VIDEO" = xyes; then
27633  ARM_VIDEO_TRUE=
27634  ARM_VIDEO_FALSE='#'
27635else
27636  ARM_VIDEO_TRUE='#'
27637  ARM_VIDEO_FALSE=
27638fi
27639
27640 if test "x$I386_VIDEO" = xyes; then
27641  I386_VIDEO_TRUE=
27642  I386_VIDEO_FALSE='#'
27643else
27644  I386_VIDEO_TRUE='#'
27645  I386_VIDEO_FALSE=
27646fi
27647
27648 if test "x$PPC_VIDEO" = xyes; then
27649  PPC_VIDEO_TRUE=
27650  PPC_VIDEO_FALSE='#'
27651else
27652  PPC_VIDEO_TRUE='#'
27653  PPC_VIDEO_FALSE=
27654fi
27655
27656 if test "x$SPARC64_VIDEO" = xyes; then
27657  SPARC64_VIDEO_TRUE=
27658  SPARC64_VIDEO_FALSE='#'
27659else
27660  SPARC64_VIDEO_TRUE='#'
27661  SPARC64_VIDEO_FALSE=
27662fi
27663
27664
27665DRI=no
27666USE_SIGIO_BY_DEFAULT="yes"
27667case $host_os in
27668  *freebsd* | *dragonfly*)
27669	case $host_os in
27670		kfreebsd*-gnu) ;;
27671		*)
27672cat >>confdefs.h <<\_ACEOF
27673#define CSRG_BASED 1
27674_ACEOF
27675 ;;
27676	esac
27677
27678cat >>confdefs.h <<\_ACEOF
27679#define PCCONS_SUPPORT 1
27680_ACEOF
27681
27682
27683cat >>confdefs.h <<\_ACEOF
27684#define PCVT_SUPPORT 1
27685_ACEOF
27686
27687
27688cat >>confdefs.h <<\_ACEOF
27689#define SYSCONS_SUPPORT 1
27690_ACEOF
27691
27692	DRI=yes
27693	;;
27694  *netbsd*)
27695
27696cat >>confdefs.h <<\_ACEOF
27697#define CSRG_BASED 1
27698_ACEOF
27699
27700
27701cat >>confdefs.h <<\_ACEOF
27702#define PCCONS_SUPPORT 1
27703_ACEOF
27704
27705
27706cat >>confdefs.h <<\_ACEOF
27707#define PCVT_SUPPORT 1
27708_ACEOF
27709
27710
27711cat >>confdefs.h <<\_ACEOF
27712#define WSCONS_SUPPORT 1
27713_ACEOF
27714
27715	DRI=yes
27716	;;
27717  *openbsd*)
27718
27719cat >>confdefs.h <<\_ACEOF
27720#define CSRG_BASED 1
27721_ACEOF
27722
27723
27724cat >>confdefs.h <<\_ACEOF
27725#define PCVT_SUPPORT 1
27726_ACEOF
27727
27728
27729cat >>confdefs.h <<\_ACEOF
27730#define WSCONS_SUPPORT 1
27731_ACEOF
27732
27733	;;
27734  *linux*)
27735	DRI=yes
27736	;;
27737  *solaris*)
27738	if test -n "$PKG_CONFIG" && \
27739    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm\"") >&5
27740  ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5
27741  ac_status=$?
27742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27743  (exit $ac_status); }; then
27744  DRI=yes
27745else
27746  DRI=no
27747fi
27748	# Disable use of SIGIO by default until some system bugs are
27749	# fixed - see Sun/OpenSolaris bug id 6879897
27750	USE_SIGIO_BY_DEFAULT="no"
27751	;;
27752  darwin*)
27753
27754cat >>confdefs.h <<\_ACEOF
27755#define CSRG_BASED 1
27756_ACEOF
27757
27758	;;
27759  cygwin*)
27760	CFLAGS="$CFLAGS -DFD_SETSIZE=256"
27761	;;
27762esac
27763
27764PVMAJOR=`echo $PACKAGE_VERSION | cut -d . -f 1`
27765PVS=`echo $PACKAGE_VERSION | cut -d . -f 4 | cut -d - -f 1`
27766if test "x$PVS" = "x"; then
27767	PVS="0"
27768fi
27769
27770VENDOR_RELEASE="((($PVMAJOR) * 10000000) + (($PVM) * 100000) + (($PVP) * 1000) + $PVS)"
27771VENDOR_MAN_VERSION="Version ${PACKAGE_VERSION}"
27772
27773VENDOR_NAME="The X.Org Foundation"
27774VENDOR_NAME_SHORT="X.Org"
27775VENDOR_WEB="http://wiki.x.org"
27776
27777
27778
27779# Check whether --enable-werror was given.
27780if test "${enable_werror+set}" = set; then
27781  enableval=$enable_werror; { { echo "$as_me:$LINENO: error: --enable-werror has been replaced by --enable-strict-compilation" >&5
27782echo "$as_me: error: --enable-werror has been replaced by --enable-strict-compilation" >&2;}
27783   { (exit 1); exit 1; }; }
27784fi
27785
27786
27787# Check whether --enable-debug was given.
27788if test "${enable_debug+set}" = set; then
27789  enableval=$enable_debug; DEBUGGING=$enableval
27790else
27791  DEBUGGING=no
27792fi
27793
27794# Check whether --enable-unit-tests was given.
27795if test "${enable_unit_tests+set}" = set; then
27796  enableval=$enable_unit_tests; UNITTESTS=$enableval
27797else
27798  UNITTESTS=auto
27799fi
27800
27801# Check whether --enable-use-sigio-by-default was given.
27802if test "${enable_use_sigio_by_default+set}" = set; then
27803  enableval=$enable_use_sigio_by_default; USE_SIGIO_BY_DEFAULT=$enableval
27804fi
27805
27806
27807# Check whether --with-int10 was given.
27808if test "${with_int10+set}" = set; then
27809  withval=$with_int10; INT10="$withval"
27810else
27811  INT10="$DEFAULT_INT10"
27812fi
27813
27814
27815# Check whether --with-vendor-name was given.
27816if test "${with_vendor_name+set}" = set; then
27817  withval=$with_vendor_name;  VENDOR_NAME="$withval"
27818fi
27819
27820
27821# Check whether --with-vendor-name-short was given.
27822if test "${with_vendor_name_short+set}" = set; then
27823  withval=$with_vendor_name_short;  VENDOR_NAME_SHORT="$withval"
27824fi
27825
27826
27827# Check whether --with-vendor-web was given.
27828if test "${with_vendor_web+set}" = set; then
27829  withval=$with_vendor_web;  VENDOR_WEB="$withval"
27830fi
27831
27832
27833# Check whether --with-module-dir was given.
27834if test "${with_module_dir+set}" = set; then
27835  withval=$with_module_dir;  moduledir="$withval"
27836else
27837   moduledir="${libdir}/xorg/modules"
27838fi
27839
27840
27841# Check whether --with-log-dir was given.
27842if test "${with_log_dir+set}" = set; then
27843  withval=$with_log_dir;  logdir="$withval"
27844else
27845   logdir="$localstatedir/log"
27846fi
27847
27848
27849# Check whether --with-builder-addr was given.
27850if test "${with_builder_addr+set}" = set; then
27851  withval=$with_builder_addr;  BUILDERADDR="$withval"
27852else
27853   BUILDERADDR="xorg@lists.freedesktop.org"
27854fi
27855
27856
27857# Check whether --with-os-name was given.
27858if test "${with_os_name+set}" = set; then
27859  withval=$with_os_name;  OSNAME="$withval"
27860else
27861   OSNAME=`uname -srm`
27862fi
27863
27864
27865# Check whether --with-os-vendor was given.
27866if test "${with_os_vendor+set}" = set; then
27867  withval=$with_os_vendor;  OSVENDOR="$withval"
27868else
27869   OSVENDOR=""
27870fi
27871
27872
27873# Check whether --with-builderstring was given.
27874if test "${with_builderstring+set}" = set; then
27875  withval=$with_builderstring;  BUILDERSTRING="$withval"
27876
27877fi
27878
27879
27880
27881
27882
27883	{ echo "$as_me:$LINENO: checking for root directory for font files" >&5
27884echo $ECHO_N "checking for root directory for font files... $ECHO_C" >&6; }
27885
27886# Check whether --with-fontrootdir was given.
27887if test "${with_fontrootdir+set}" = set; then
27888  withval=$with_fontrootdir; FONTROOTDIR="$withval"
27889fi
27890
27891	# if --with-fontrootdir not specified...
27892	if test "x${FONTROOTDIR}" = "x"; then
27893		FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
27894	fi
27895	# ...and if pkg-config didn't find fontdir in fontutil.pc...
27896	if test "x${FONTROOTDIR}" = "x"; then
27897		FONTROOTDIR="${datadir}/fonts/X11"
27898	fi
27899
27900	{ echo "$as_me:$LINENO: result: ${FONTROOTDIR}" >&5
27901echo "${ECHO_T}${FONTROOTDIR}" >&6; }
27902
27903
27904
27905
27906	{ echo "$as_me:$LINENO: checking for directory for misc files" >&5
27907echo $ECHO_N "checking for directory for misc files... $ECHO_C" >&6; }
27908
27909# Check whether --with-fontmiscdir was given.
27910if test "${with_fontmiscdir+set}" = set; then
27911  withval=$with_fontmiscdir; FONTMISCDIR="${withval}"
27912else
27913  FONTMISCDIR='${FONTROOTDIR}/misc'
27914fi
27915
27916
27917	{ echo "$as_me:$LINENO: result: ${FONTMISCDIR}" >&5
27918echo "${ECHO_T}${FONTMISCDIR}" >&6; }
27919
27920
27921
27922
27923	{ echo "$as_me:$LINENO: checking for directory for OTF files" >&5
27924echo $ECHO_N "checking for directory for OTF files... $ECHO_C" >&6; }
27925
27926# Check whether --with-fontotfdir was given.
27927if test "${with_fontotfdir+set}" = set; then
27928  withval=$with_fontotfdir; FONTOTFDIR="${withval}"
27929else
27930  FONTOTFDIR='${FONTROOTDIR}/OTF'
27931fi
27932
27933
27934	{ echo "$as_me:$LINENO: result: ${FONTOTFDIR}" >&5
27935echo "${ECHO_T}${FONTOTFDIR}" >&6; }
27936
27937
27938
27939
27940	{ echo "$as_me:$LINENO: checking for directory for TTF files" >&5
27941echo $ECHO_N "checking for directory for TTF files... $ECHO_C" >&6; }
27942
27943# Check whether --with-fontttfdir was given.
27944if test "${with_fontttfdir+set}" = set; then
27945  withval=$with_fontttfdir; FONTTTFDIR="${withval}"
27946else
27947  FONTTTFDIR='${FONTROOTDIR}/TTF'
27948fi
27949
27950
27951	{ echo "$as_me:$LINENO: result: ${FONTTTFDIR}" >&5
27952echo "${ECHO_T}${FONTTTFDIR}" >&6; }
27953
27954
27955
27956
27957	{ echo "$as_me:$LINENO: checking for directory for Type1 files" >&5
27958echo $ECHO_N "checking for directory for Type1 files... $ECHO_C" >&6; }
27959
27960# Check whether --with-fonttype1dir was given.
27961if test "${with_fonttype1dir+set}" = set; then
27962  withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}"
27963else
27964  FONTTYPE1DIR='${FONTROOTDIR}/Type1'
27965fi
27966
27967
27968	{ echo "$as_me:$LINENO: result: ${FONTTYPE1DIR}" >&5
27969echo "${ECHO_T}${FONTTYPE1DIR}" >&6; }
27970
27971
27972
27973
27974	{ echo "$as_me:$LINENO: checking for directory for 75dpi files" >&5
27975echo $ECHO_N "checking for directory for 75dpi files... $ECHO_C" >&6; }
27976
27977# Check whether --with-font75dpidir was given.
27978if test "${with_font75dpidir+set}" = set; then
27979  withval=$with_font75dpidir; FONT75DPIDIR="${withval}"
27980else
27981  FONT75DPIDIR='${FONTROOTDIR}/75dpi'
27982fi
27983
27984
27985	{ echo "$as_me:$LINENO: result: ${FONT75DPIDIR}" >&5
27986echo "${ECHO_T}${FONT75DPIDIR}" >&6; }
27987
27988
27989
27990
27991	{ echo "$as_me:$LINENO: checking for directory for 100dpi files" >&5
27992echo $ECHO_N "checking for directory for 100dpi files... $ECHO_C" >&6; }
27993
27994# Check whether --with-font100dpidir was given.
27995if test "${with_font100dpidir+set}" = set; then
27996  withval=$with_font100dpidir; FONT100DPIDIR="${withval}"
27997else
27998  FONT100DPIDIR='${FONTROOTDIR}/100dpi'
27999fi
28000
28001
28002	{ echo "$as_me:$LINENO: result: ${FONT100DPIDIR}" >&5
28003echo "${ECHO_T}${FONT100DPIDIR}" >&6; }
28004
28005
28006DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/"
28007if test "$cross_compiling" != yes; then
28008	as_ac_File=`echo "ac_cv_file_${sysconfdir}/X11/fontpath.d" | $as_tr_sh`
28009{ echo "$as_me:$LINENO: checking for ${sysconfdir}/X11/fontpath.d" >&5
28010echo $ECHO_N "checking for ${sysconfdir}/X11/fontpath.d... $ECHO_C" >&6; }
28011if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
28012  echo $ECHO_N "(cached) $ECHO_C" >&6
28013else
28014  test "$cross_compiling" = yes &&
28015  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28016echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28017   { (exit 1); exit 1; }; }
28018if test -r "${sysconfdir}/X11/fontpath.d"; then
28019  eval "$as_ac_File=yes"
28020else
28021  eval "$as_ac_File=no"
28022fi
28023fi
28024ac_res=`eval echo '${'$as_ac_File'}'`
28025	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28026echo "${ECHO_T}$ac_res" >&6; }
28027if test `eval echo '${'$as_ac_File'}'` = yes; then
28028  DEFAULT_FONT_PATH='catalogue:${sysconfdir}/X11/fontpath.d'
28029else
28030  case $host_os in
28031			darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;;
28032		esac
28033fi
28034
28035fi
28036
28037# Check whether --with-default-font-path was given.
28038if test "${with_default_font_path+set}" = set; then
28039  withval=$with_default_font_path;  FONTPATH="$withval"
28040else
28041   FONTPATH="${DEFAULT_FONT_PATH}"
28042fi
28043
28044
28045{ echo "$as_me:$LINENO: checking for default font path" >&5
28046echo $ECHO_N "checking for default font path... $ECHO_C" >&6; }
28047{ echo "$as_me:$LINENO: result: $FONTPATH" >&5
28048echo "${ECHO_T}$FONTPATH" >&6; }
28049
28050
28051# Check whether --with-xkb-path was given.
28052if test "${with_xkb_path+set}" = set; then
28053  withval=$with_xkb_path;  XKBPATH="$withval"
28054else
28055   XKBPATH="${datadir}/X11/xkb"
28056fi
28057
28058
28059# Check whether --with-xkb-output was given.
28060if test "${with_xkb_output+set}" = set; then
28061  withval=$with_xkb_output;  XKBOUTPUT="$withval"
28062else
28063   XKBOUTPUT="compiled"
28064fi
28065
28066
28067# Check whether --with-default-xkb-rules was given.
28068if test "${with_default_xkb_rules+set}" = set; then
28069  withval=$with_default_xkb_rules;  XKB_DFLT_RULES="$withval"
28070else
28071   XKB_DFLT_RULES=""
28072fi
28073
28074
28075# Check whether --with-default-xkb-model was given.
28076if test "${with_default_xkb_model+set}" = set; then
28077  withval=$with_default_xkb_model;  XKB_DFLT_MODEL="$withval"
28078else
28079   XKB_DFLT_MODEL="pc105"
28080fi
28081
28082
28083# Check whether --with-default-xkb-layout was given.
28084if test "${with_default_xkb_layout+set}" = set; then
28085  withval=$with_default_xkb_layout;  XKB_DFLT_LAYOUT="$withval"
28086else
28087   XKB_DFLT_LAYOUT="us"
28088fi
28089
28090
28091# Check whether --with-default-xkb-variant was given.
28092if test "${with_default_xkb_variant+set}" = set; then
28093  withval=$with_default_xkb_variant;  XKB_DFLT_VARIANT="$withval"
28094else
28095   XKB_DFLT_VARIANT=""
28096fi
28097
28098
28099# Check whether --with-default-xkb-options was given.
28100if test "${with_default_xkb_options+set}" = set; then
28101  withval=$with_default_xkb_options;  XKB_DFLT_OPTIONS="$withval"
28102else
28103   XKB_DFLT_OPTIONS=""
28104fi
28105
28106
28107# Check whether --with-serverconfig-path was given.
28108if test "${with_serverconfig_path+set}" = set; then
28109  withval=$with_serverconfig_path;  SERVERCONFIG="$withval"
28110else
28111   SERVERCONFIG="${libdir}/xorg"
28112fi
28113
28114
28115# Check whether --with-apple-applications-dir was given.
28116if test "${with_apple_applications_dir+set}" = set; then
28117  withval=$with_apple_applications_dir;  APPLE_APPLICATIONS_DIR="${withval}"
28118else
28119   APPLE_APPLICATIONS_DIR="/Applications/Utilities"
28120fi
28121
28122
28123
28124# Check whether --with-apple-application-name was given.
28125if test "${with_apple_application_name+set}" = set; then
28126  withval=$with_apple_application_name;  APPLE_APPLICATION_NAME="${withval}"
28127else
28128   APPLE_APPLICATION_NAME="X11"
28129fi
28130
28131
28132
28133# Check whether --with-launchd-id-prefix was given.
28134if test "${with_launchd_id_prefix+set}" = set; then
28135  withval=$with_launchd_id_prefix;  LAUNCHD_ID_PREFIX="${withval}"
28136else
28137   LAUNCHD_ID_PREFIX="org.x"
28138fi
28139
28140
28141
28142cat >>confdefs.h <<_ACEOF
28143#define LAUNCHD_ID_PREFIX "$LAUNCHD_ID_PREFIX"
28144_ACEOF
28145
28146# Check whether --enable-sparkle was given.
28147if test "${enable_sparkle+set}" = set; then
28148  enableval=$enable_sparkle;  XQUARTZ_SPARKLE="${enableval}"
28149else
28150   XQUARTZ_SPARKLE="no"
28151fi
28152
28153
28154# Check whether --enable-install-libxf86config was given.
28155if test "${enable_install_libxf86config+set}" = set; then
28156  enableval=$enable_install_libxf86config; INSTALL_LIBXF86CONFIG=$enableval
28157else
28158  INSTALL_LIBXF86CONFIG=no
28159fi
28160
28161# Check whether --enable-visibility was given.
28162if test "${enable_visibility+set}" = set; then
28163  enableval=$enable_visibility; SYMBOL_VISIBILITY=$enableval
28164else
28165  SYMBOL_VISIBILITY=auto
28166fi
28167
28168# Check whether --enable-pc98 was given.
28169if test "${enable_pc98+set}" = set; then
28170  enableval=$enable_pc98; SUPPORT_PC98=$enableval
28171else
28172  SUPPORT_PC98=auto
28173fi
28174
28175
28176# Check whether --enable-aiglx was given.
28177if test "${enable_aiglx+set}" = set; then
28178  enableval=$enable_aiglx; AIGLX=$enableval
28179else
28180  AIGLX=yes
28181fi
28182
28183
28184  { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
28185echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
28186  if test "${ac_cv_tls+set}" = set; then
28187  echo $ECHO_N "(cached) $ECHO_C" >&6
28188else
28189
28190    ax_tls_keywords="__thread __declspec(thread) none"
28191    for ax_tls_keyword in $ax_tls_keywords; do
28192       case $ax_tls_keyword in
28193          none) ac_cv_tls=none ; break ;;
28194          *)
28195             cat >conftest.$ac_ext <<_ACEOF
28196/* confdefs.h.  */
28197_ACEOF
28198cat confdefs.h >>conftest.$ac_ext
28199cat >>conftest.$ac_ext <<_ACEOF
28200/* end confdefs.h.  */
28201#include <stdlib.h>
28202                 static void
28203                 foo(void) {
28204                 static  $ax_tls_keyword  int bar;
28205                 exit(1);
28206                 }
28207int
28208main ()
28209{
28210
28211  ;
28212  return 0;
28213}
28214_ACEOF
28215rm -f conftest.$ac_objext
28216if { (ac_try="$ac_compile"
28217case "(($ac_try" in
28218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28219  *) ac_try_echo=$ac_try;;
28220esac
28221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28222  (eval "$ac_compile") 2>conftest.er1
28223  ac_status=$?
28224  grep -v '^ *+' conftest.er1 >conftest.err
28225  rm -f conftest.er1
28226  cat conftest.err >&5
28227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28228  (exit $ac_status); } && {
28229	 test -z "$ac_c_werror_flag" ||
28230	 test ! -s conftest.err
28231       } && test -s conftest.$ac_objext; then
28232  ac_cv_tls=$ax_tls_keyword ; break
28233else
28234  echo "$as_me: failed program was:" >&5
28235sed 's/^/| /' conftest.$ac_ext >&5
28236
28237	ac_cv_tls=none
28238
28239fi
28240
28241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28242       esac
28243    done
28244
28245fi
28246
28247
28248  if test "$ac_cv_tls" != "none"; then
28249
28250cat >>confdefs.h <<_ACEOF
28251#define TLS $ac_cv_tls
28252_ACEOF
28253
28254  fi
28255  { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
28256echo "${ECHO_T}$ac_cv_tls" >&6; }
28257
28258# Check whether --enable-glx-tls was given.
28259if test "${enable_glx_tls+set}" = set; then
28260  enableval=$enable_glx_tls; GLX_USE_TLS=$enableval
28261                                 if test "x$GLX_USE_TLS" = "xyes" && test "${ac_cv_tls}" = "none" ; then
28262                                   { { echo "$as_me:$LINENO: error: GLX with TLS support requested, but the compiler does not support it." >&5
28263echo "$as_me: error: GLX with TLS support requested, but the compiler does not support it." >&2;}
28264   { (exit 1); exit 1; }; }
28265                                 fi
28266else
28267  GLX_USE_TLS=no
28268                                 if test "${ac_cv_tls}" != "none" ; then
28269                                   GLX_USE_TLS=yes
28270                                 fi
28271fi
28272
28273GLX_TLS=${GLX_USE_TLS}
28274
28275
28276# Check whether --enable-registry was given.
28277if test "${enable_registry+set}" = set; then
28278  enableval=$enable_registry; XREGISTRY=$enableval
28279else
28280  XREGISTRY=yes
28281fi
28282
28283# Check whether --enable-composite was given.
28284if test "${enable_composite+set}" = set; then
28285  enableval=$enable_composite; COMPOSITE=$enableval
28286else
28287  COMPOSITE=yes
28288fi
28289
28290# Check whether --enable-mitshm was given.
28291if test "${enable_mitshm+set}" = set; then
28292  enableval=$enable_mitshm; MITSHM=$enableval
28293else
28294  MITSHM=yes
28295fi
28296
28297# Check whether --enable-xres was given.
28298if test "${enable_xres+set}" = set; then
28299  enableval=$enable_xres; RES=$enableval
28300else
28301  RES=yes
28302fi
28303
28304# Check whether --enable-record was given.
28305if test "${enable_record+set}" = set; then
28306  enableval=$enable_record; RECORD=$enableval
28307else
28308  RECORD=yes
28309fi
28310
28311# Check whether --enable-xv was given.
28312if test "${enable_xv+set}" = set; then
28313  enableval=$enable_xv; XV=$enableval
28314else
28315  XV=yes
28316fi
28317
28318# Check whether --enable-xvmc was given.
28319if test "${enable_xvmc+set}" = set; then
28320  enableval=$enable_xvmc; XVMC=$enableval
28321else
28322  XVMC=yes
28323fi
28324
28325# Check whether --enable-dga was given.
28326if test "${enable_dga+set}" = set; then
28327  enableval=$enable_dga; DGA=$enableval
28328else
28329  DGA=auto
28330fi
28331
28332# Check whether --enable-screensaver was given.
28333if test "${enable_screensaver+set}" = set; then
28334  enableval=$enable_screensaver; SCREENSAVER=$enableval
28335else
28336  SCREENSAVER=yes
28337fi
28338
28339# Check whether --enable-xdmcp was given.
28340if test "${enable_xdmcp+set}" = set; then
28341  enableval=$enable_xdmcp; XDMCP=$enableval
28342else
28343  XDMCP=auto
28344fi
28345
28346# Check whether --enable-xdm-auth-1 was given.
28347if test "${enable_xdm_auth_1+set}" = set; then
28348  enableval=$enable_xdm_auth_1; XDMAUTH=$enableval
28349else
28350  XDMAUTH=auto
28351fi
28352
28353# Check whether --enable-glx was given.
28354if test "${enable_glx+set}" = set; then
28355  enableval=$enable_glx; GLX=$enableval
28356else
28357  GLX=yes
28358fi
28359
28360# Check whether --enable-dri was given.
28361if test "${enable_dri+set}" = set; then
28362  enableval=$enable_dri; DRI=$enableval
28363fi
28364
28365# Check whether --enable-dri2 was given.
28366if test "${enable_dri2+set}" = set; then
28367  enableval=$enable_dri2; DRI2=$enableval
28368else
28369  DRI2=auto
28370fi
28371
28372# Check whether --enable-xinerama was given.
28373if test "${enable_xinerama+set}" = set; then
28374  enableval=$enable_xinerama; XINERAMA=$enableval
28375else
28376  XINERAMA=yes
28377fi
28378
28379# Check whether --enable-xf86vidmode was given.
28380if test "${enable_xf86vidmode+set}" = set; then
28381  enableval=$enable_xf86vidmode; XF86VIDMODE=$enableval
28382else
28383  XF86VIDMODE=auto
28384fi
28385
28386# Check whether --enable-xace was given.
28387if test "${enable_xace+set}" = set; then
28388  enableval=$enable_xace; XACE=$enableval
28389else
28390  XACE=yes
28391fi
28392
28393# Check whether --enable-xselinux was given.
28394if test "${enable_xselinux+set}" = set; then
28395  enableval=$enable_xselinux; XSELINUX=$enableval
28396else
28397  XSELINUX=no
28398fi
28399
28400# Check whether --enable-xcsecurity was given.
28401if test "${enable_xcsecurity+set}" = set; then
28402  enableval=$enable_xcsecurity; XCSECURITY=$enableval
28403else
28404  XCSECURITY=no
28405fi
28406
28407# Check whether --enable-xcalibrate was given.
28408if test "${enable_xcalibrate+set}" = set; then
28409  enableval=$enable_xcalibrate; XCALIBRATE=$enableval
28410else
28411  XCALIBRATE=no
28412fi
28413
28414# Check whether --enable-tslib was given.
28415if test "${enable_tslib+set}" = set; then
28416  enableval=$enable_tslib; TSLIB=$enableval
28417else
28418  TSLIB=no
28419fi
28420
28421# Check whether --enable-dbe was given.
28422if test "${enable_dbe+set}" = set; then
28423  enableval=$enable_dbe; DBE=$enableval
28424else
28425  DBE=yes
28426fi
28427
28428# Check whether --enable-xf86bigfont was given.
28429if test "${enable_xf86bigfont+set}" = set; then
28430  enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
28431else
28432  XF86BIGFONT=no
28433fi
28434
28435# Check whether --enable-dpms was given.
28436if test "${enable_dpms+set}" = set; then
28437  enableval=$enable_dpms; DPMSExtension=$enableval
28438else
28439  DPMSExtension=yes
28440fi
28441
28442# Check whether --enable-config-udev was given.
28443if test "${enable_config_udev+set}" = set; then
28444  enableval=$enable_config_udev; CONFIG_UDEV=$enableval
28445else
28446  CONFIG_UDEV=auto
28447fi
28448
28449# Check whether --enable-config-dbus was given.
28450if test "${enable_config_dbus+set}" = set; then
28451  enableval=$enable_config_dbus; CONFIG_DBUS_API=$enableval
28452else
28453  CONFIG_DBUS_API=no
28454fi
28455
28456# Check whether --enable-config-hal was given.
28457if test "${enable_config_hal+set}" = set; then
28458  enableval=$enable_config_hal; CONFIG_HAL=$enableval
28459else
28460  CONFIG_HAL=auto
28461fi
28462
28463# Check whether --enable-xfree86-utils was given.
28464if test "${enable_xfree86_utils+set}" = set; then
28465  enableval=$enable_xfree86_utils; XF86UTILS=$enableval
28466else
28467  XF86UTILS=yes
28468fi
28469
28470# Check whether --enable-xaa was given.
28471if test "${enable_xaa+set}" = set; then
28472  enableval=$enable_xaa; XAA=$enableval
28473else
28474  XAA=yes
28475fi
28476
28477# Check whether --enable-vgahw was given.
28478if test "${enable_vgahw+set}" = set; then
28479  enableval=$enable_vgahw; VGAHW=$enableval
28480else
28481  VGAHW=yes
28482fi
28483
28484# Check whether --enable-vbe was given.
28485if test "${enable_vbe+set}" = set; then
28486  enableval=$enable_vbe; VBE=$enableval
28487else
28488  VBE=yes
28489fi
28490
28491# Check whether --enable-int10-module was given.
28492if test "${enable_int10_module+set}" = set; then
28493  enableval=$enable_int10_module; INT10MODULE=$enableval
28494else
28495  INT10MODULE=yes
28496fi
28497
28498# Check whether --enable-windowswm was given.
28499if test "${enable_windowswm+set}" = set; then
28500  enableval=$enable_windowswm; WINDOWSWM=$enableval
28501else
28502  WINDOWSWM=no
28503fi
28504
28505# Check whether --enable-libdrm was given.
28506if test "${enable_libdrm+set}" = set; then
28507  enableval=$enable_libdrm; DRM=$enableval
28508else
28509  DRM=yes
28510fi
28511
28512
28513# Check whether --enable-xorg was given.
28514if test "${enable_xorg+set}" = set; then
28515  enableval=$enable_xorg; XORG=$enableval
28516else
28517  XORG=auto
28518fi
28519
28520# Check whether --enable-dmx was given.
28521if test "${enable_dmx+set}" = set; then
28522  enableval=$enable_dmx; DMX=$enableval
28523else
28524  DMX=auto
28525fi
28526
28527# Check whether --enable-xvfb was given.
28528if test "${enable_xvfb+set}" = set; then
28529  enableval=$enable_xvfb; XVFB=$enableval
28530else
28531  XVFB=yes
28532fi
28533
28534# Check whether --enable-xnest was given.
28535if test "${enable_xnest+set}" = set; then
28536  enableval=$enable_xnest; XNEST=$enableval
28537else
28538  XNEST=auto
28539fi
28540
28541# Check whether --enable-xquartz was given.
28542if test "${enable_xquartz+set}" = set; then
28543  enableval=$enable_xquartz; XQUARTZ=$enableval
28544else
28545  XQUARTZ=auto
28546fi
28547
28548# Check whether --enable-standalone-xpbproxy was given.
28549if test "${enable_standalone_xpbproxy+set}" = set; then
28550  enableval=$enable_standalone_xpbproxy; STANDALONE_XPBPROXY=$enableval
28551else
28552  STANDALONE_XPBPROXY=no
28553fi
28554
28555# Check whether --enable-xwin was given.
28556if test "${enable_xwin+set}" = set; then
28557  enableval=$enable_xwin; XWIN=$enableval
28558else
28559  XWIN=auto
28560fi
28561
28562# Check whether --enable-kdrive was given.
28563if test "${enable_kdrive+set}" = set; then
28564  enableval=$enable_kdrive; KDRIVE=$enableval
28565else
28566  KDRIVE=no
28567fi
28568
28569# Check whether --enable-xephyr was given.
28570if test "${enable_xephyr+set}" = set; then
28571  enableval=$enable_xephyr; XEPHYR=$enableval
28572else
28573  XEPHYR=auto
28574fi
28575
28576# Check whether --enable-xfake was given.
28577if test "${enable_xfake+set}" = set; then
28578  enableval=$enable_xfake; XFAKE=$enableval
28579else
28580  XFAKE=auto
28581fi
28582
28583# Check whether --enable-xfbdev was given.
28584if test "${enable_xfbdev+set}" = set; then
28585  enableval=$enable_xfbdev; XFBDEV=$enableval
28586else
28587  XFBDEV=auto
28588fi
28589
28590# Check whether --enable-kdrive-kbd was given.
28591if test "${enable_kdrive_kbd+set}" = set; then
28592  enableval=$enable_kdrive_kbd; KDRIVE_KBD=$enableval
28593else
28594  KDRIVE_KBD=auto
28595fi
28596
28597# Check whether --enable-kdrive-mouse was given.
28598if test "${enable_kdrive_mouse+set}" = set; then
28599  enableval=$enable_kdrive_mouse; KDRIVE_MOUSE=$enableval
28600else
28601  KDRIVE_MOUSE=auto
28602fi
28603
28604# Check whether --enable-kdrive-evdev was given.
28605if test "${enable_kdrive_evdev+set}" = set; then
28606  enableval=$enable_kdrive_evdev; KDRIVE_EVDEV=$enableval
28607else
28608  KDRIVE_EVDEV=auto
28609fi
28610
28611
28612
28613# Check whether --enable-install-setuid was given.
28614if test "${enable_install_setuid+set}" = set; then
28615  enableval=$enable_install_setuid; SETUID=$enableval
28616else
28617  SETUID=auto
28618fi
28619
28620{ echo "$as_me:$LINENO: checking to see if we can install the Xorg server as root" >&5
28621echo $ECHO_N "checking to see if we can install the Xorg server as root... $ECHO_C" >&6; }
28622if test "x$SETUID" = "xauto" ; then
28623	case $host_os in
28624	    cygwin*)		SETUID="no"  ;;
28625	    darwin*)		SETUID="no"  ;;
28626	    *)
28627	   	case $host_cpu in
28628		    sparc)	SETUID="no"  ;;
28629		    *)		SETUID="yes" ;;
28630		esac
28631	esac
28632	if test "x$SETUID" = xyes; then
28633		touch testfile
28634		chown root testfile > /dev/null 2>&1 || SETUID="no"
28635		rm -f testfile
28636	fi
28637fi
28638{ echo "$as_me:$LINENO: result: $SETUID" >&5
28639echo "${ECHO_T}$SETUID" >&6; }
28640 if test "x$SETUID" = "xyes"; then
28641  INSTALL_SETUID_TRUE=
28642  INSTALL_SETUID_FALSE='#'
28643else
28644  INSTALL_SETUID_TRUE='#'
28645  INSTALL_SETUID_FALSE=
28646fi
28647
28648
28649
28650
28651# Transport selection macro from xtrans.m4
28652{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
28653echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
28654if test "${ac_cv_type_signal+set}" = set; then
28655  echo $ECHO_N "(cached) $ECHO_C" >&6
28656else
28657  cat >conftest.$ac_ext <<_ACEOF
28658/* confdefs.h.  */
28659_ACEOF
28660cat confdefs.h >>conftest.$ac_ext
28661cat >>conftest.$ac_ext <<_ACEOF
28662/* end confdefs.h.  */
28663#include <sys/types.h>
28664#include <signal.h>
28665
28666int
28667main ()
28668{
28669return *(signal (0, 0)) (0) == 1;
28670  ;
28671  return 0;
28672}
28673_ACEOF
28674rm -f conftest.$ac_objext
28675if { (ac_try="$ac_compile"
28676case "(($ac_try" in
28677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28678  *) ac_try_echo=$ac_try;;
28679esac
28680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28681  (eval "$ac_compile") 2>conftest.er1
28682  ac_status=$?
28683  grep -v '^ *+' conftest.er1 >conftest.err
28684  rm -f conftest.er1
28685  cat conftest.err >&5
28686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28687  (exit $ac_status); } && {
28688	 test -z "$ac_c_werror_flag" ||
28689	 test ! -s conftest.err
28690       } && test -s conftest.$ac_objext; then
28691  ac_cv_type_signal=int
28692else
28693  echo "$as_me: failed program was:" >&5
28694sed 's/^/| /' conftest.$ac_ext >&5
28695
28696	ac_cv_type_signal=void
28697fi
28698
28699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28700fi
28701{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
28702echo "${ECHO_T}$ac_cv_type_signal" >&6; }
28703
28704cat >>confdefs.h <<_ACEOF
28705#define RETSIGTYPE $ac_cv_type_signal
28706_ACEOF
28707
28708
28709
28710
28711
28712 case $host_os in
28713	mingw*)	unixdef="no"   ;;
28714	*)	unixdef="yes"  ;;
28715 esac
28716 # Check whether --enable-unix-transport was given.
28717if test "${enable_unix_transport+set}" = set; then
28718  enableval=$enable_unix_transport; UNIXCONN=$enableval
28719else
28720  UNIXCONN=$unixdef
28721fi
28722
28723 { echo "$as_me:$LINENO: checking if Xtrans should support UNIX socket connections" >&5
28724echo $ECHO_N "checking if Xtrans should support UNIX socket connections... $ECHO_C" >&6; }
28725 if test "$UNIXCONN" = "yes"; then
28726
28727cat >>confdefs.h <<\_ACEOF
28728#define UNIXCONN 1
28729_ACEOF
28730
28731 fi
28732 { echo "$as_me:$LINENO: result: $UNIXCONN" >&5
28733echo "${ECHO_T}$UNIXCONN" >&6; }
28734 # Check whether --enable-tcp-transport was given.
28735if test "${enable_tcp_transport+set}" = set; then
28736  enableval=$enable_tcp_transport; TCPCONN=$enableval
28737else
28738  TCPCONN=yes
28739fi
28740
28741 { echo "$as_me:$LINENO: checking if Xtrans should support TCP socket connections" >&5
28742echo $ECHO_N "checking if Xtrans should support TCP socket connections... $ECHO_C" >&6; }
28743 { echo "$as_me:$LINENO: result: $TCPCONN" >&5
28744echo "${ECHO_T}$TCPCONN" >&6; }
28745 if test "$TCPCONN" = "yes"; then
28746
28747cat >>confdefs.h <<\_ACEOF
28748#define TCPCONN 1
28749_ACEOF
28750
28751
28752 # SVR4 hides these in libraries other than libc
28753 { echo "$as_me:$LINENO: checking for library containing socket" >&5
28754echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
28755if test "${ac_cv_search_socket+set}" = set; then
28756  echo $ECHO_N "(cached) $ECHO_C" >&6
28757else
28758  ac_func_search_save_LIBS=$LIBS
28759cat >conftest.$ac_ext <<_ACEOF
28760/* confdefs.h.  */
28761_ACEOF
28762cat confdefs.h >>conftest.$ac_ext
28763cat >>conftest.$ac_ext <<_ACEOF
28764/* end confdefs.h.  */
28765
28766/* Override any GCC internal prototype to avoid an error.
28767   Use char because int might match the return type of a GCC
28768   builtin and then its argument prototype would still apply.  */
28769#ifdef __cplusplus
28770extern "C"
28771#endif
28772char socket ();
28773int
28774main ()
28775{
28776return socket ();
28777  ;
28778  return 0;
28779}
28780_ACEOF
28781for ac_lib in '' socket; do
28782  if test -z "$ac_lib"; then
28783    ac_res="none required"
28784  else
28785    ac_res=-l$ac_lib
28786    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28787  fi
28788  rm -f conftest.$ac_objext conftest$ac_exeext
28789if { (ac_try="$ac_link"
28790case "(($ac_try" in
28791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28792  *) ac_try_echo=$ac_try;;
28793esac
28794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28795  (eval "$ac_link") 2>conftest.er1
28796  ac_status=$?
28797  grep -v '^ *+' conftest.er1 >conftest.err
28798  rm -f conftest.er1
28799  cat conftest.err >&5
28800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801  (exit $ac_status); } && {
28802	 test -z "$ac_c_werror_flag" ||
28803	 test ! -s conftest.err
28804       } && test -s conftest$ac_exeext &&
28805       $as_test_x conftest$ac_exeext; then
28806  ac_cv_search_socket=$ac_res
28807else
28808  echo "$as_me: failed program was:" >&5
28809sed 's/^/| /' conftest.$ac_ext >&5
28810
28811
28812fi
28813
28814rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28815      conftest$ac_exeext
28816  if test "${ac_cv_search_socket+set}" = set; then
28817  break
28818fi
28819done
28820if test "${ac_cv_search_socket+set}" = set; then
28821  :
28822else
28823  ac_cv_search_socket=no
28824fi
28825rm conftest.$ac_ext
28826LIBS=$ac_func_search_save_LIBS
28827fi
28828{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
28829echo "${ECHO_T}$ac_cv_search_socket" >&6; }
28830ac_res=$ac_cv_search_socket
28831if test "$ac_res" != no; then
28832  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28833
28834fi
28835
28836 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
28837echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
28838if test "${ac_cv_search_gethostbyname+set}" = set; then
28839  echo $ECHO_N "(cached) $ECHO_C" >&6
28840else
28841  ac_func_search_save_LIBS=$LIBS
28842cat >conftest.$ac_ext <<_ACEOF
28843/* confdefs.h.  */
28844_ACEOF
28845cat confdefs.h >>conftest.$ac_ext
28846cat >>conftest.$ac_ext <<_ACEOF
28847/* end confdefs.h.  */
28848
28849/* Override any GCC internal prototype to avoid an error.
28850   Use char because int might match the return type of a GCC
28851   builtin and then its argument prototype would still apply.  */
28852#ifdef __cplusplus
28853extern "C"
28854#endif
28855char gethostbyname ();
28856int
28857main ()
28858{
28859return gethostbyname ();
28860  ;
28861  return 0;
28862}
28863_ACEOF
28864for ac_lib in '' nsl; do
28865  if test -z "$ac_lib"; then
28866    ac_res="none required"
28867  else
28868    ac_res=-l$ac_lib
28869    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28870  fi
28871  rm -f conftest.$ac_objext conftest$ac_exeext
28872if { (ac_try="$ac_link"
28873case "(($ac_try" in
28874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28875  *) ac_try_echo=$ac_try;;
28876esac
28877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28878  (eval "$ac_link") 2>conftest.er1
28879  ac_status=$?
28880  grep -v '^ *+' conftest.er1 >conftest.err
28881  rm -f conftest.er1
28882  cat conftest.err >&5
28883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28884  (exit $ac_status); } && {
28885	 test -z "$ac_c_werror_flag" ||
28886	 test ! -s conftest.err
28887       } && test -s conftest$ac_exeext &&
28888       $as_test_x conftest$ac_exeext; then
28889  ac_cv_search_gethostbyname=$ac_res
28890else
28891  echo "$as_me: failed program was:" >&5
28892sed 's/^/| /' conftest.$ac_ext >&5
28893
28894
28895fi
28896
28897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28898      conftest$ac_exeext
28899  if test "${ac_cv_search_gethostbyname+set}" = set; then
28900  break
28901fi
28902done
28903if test "${ac_cv_search_gethostbyname+set}" = set; then
28904  :
28905else
28906  ac_cv_search_gethostbyname=no
28907fi
28908rm conftest.$ac_ext
28909LIBS=$ac_func_search_save_LIBS
28910fi
28911{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
28912echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
28913ac_res=$ac_cv_search_gethostbyname
28914if test "$ac_res" != no; then
28915  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28916
28917fi
28918
28919 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
28920
28921{ echo "$as_me:$LINENO: checking for main in -lws2_32" >&5
28922echo $ECHO_N "checking for main in -lws2_32... $ECHO_C" >&6; }
28923if test "${ac_cv_lib_ws2_32_main+set}" = set; then
28924  echo $ECHO_N "(cached) $ECHO_C" >&6
28925else
28926  ac_check_lib_save_LIBS=$LIBS
28927LIBS="-lws2_32  $LIBS"
28928cat >conftest.$ac_ext <<_ACEOF
28929/* confdefs.h.  */
28930_ACEOF
28931cat confdefs.h >>conftest.$ac_ext
28932cat >>conftest.$ac_ext <<_ACEOF
28933/* end confdefs.h.  */
28934
28935
28936int
28937main ()
28938{
28939return main ();
28940  ;
28941  return 0;
28942}
28943_ACEOF
28944rm -f conftest.$ac_objext conftest$ac_exeext
28945if { (ac_try="$ac_link"
28946case "(($ac_try" in
28947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28948  *) ac_try_echo=$ac_try;;
28949esac
28950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28951  (eval "$ac_link") 2>conftest.er1
28952  ac_status=$?
28953  grep -v '^ *+' conftest.er1 >conftest.err
28954  rm -f conftest.er1
28955  cat conftest.err >&5
28956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957  (exit $ac_status); } && {
28958	 test -z "$ac_c_werror_flag" ||
28959	 test ! -s conftest.err
28960       } && test -s conftest$ac_exeext &&
28961       $as_test_x conftest$ac_exeext; then
28962  ac_cv_lib_ws2_32_main=yes
28963else
28964  echo "$as_me: failed program was:" >&5
28965sed 's/^/| /' conftest.$ac_ext >&5
28966
28967	ac_cv_lib_ws2_32_main=no
28968fi
28969
28970rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28971      conftest$ac_exeext conftest.$ac_ext
28972LIBS=$ac_check_lib_save_LIBS
28973fi
28974{ echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_main" >&5
28975echo "${ECHO_T}$ac_cv_lib_ws2_32_main" >&6; }
28976if test $ac_cv_lib_ws2_32_main = yes; then
28977  cat >>confdefs.h <<_ACEOF
28978#define HAVE_LIBWS2_32 1
28979_ACEOF
28980
28981  LIBS="-lws2_32 $LIBS"
28982
28983fi
28984ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
28985
28986 fi
28987
28988 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
28989 # Check whether --enable-ipv6 was given.
28990if test "${enable_ipv6+set}" = set; then
28991  enableval=$enable_ipv6; IPV6CONN=$enableval
28992else
28993  { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
28994echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
28995if test "${ac_cv_func_getaddrinfo+set}" = set; then
28996  echo $ECHO_N "(cached) $ECHO_C" >&6
28997else
28998  cat >conftest.$ac_ext <<_ACEOF
28999/* confdefs.h.  */
29000_ACEOF
29001cat confdefs.h >>conftest.$ac_ext
29002cat >>conftest.$ac_ext <<_ACEOF
29003/* end confdefs.h.  */
29004/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
29005   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29006#define getaddrinfo innocuous_getaddrinfo
29007
29008/* System header to define __stub macros and hopefully few prototypes,
29009    which can conflict with char getaddrinfo (); below.
29010    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29011    <limits.h> exists even on freestanding compilers.  */
29012
29013#ifdef __STDC__
29014# include <limits.h>
29015#else
29016# include <assert.h>
29017#endif
29018
29019#undef getaddrinfo
29020
29021/* Override any GCC internal prototype to avoid an error.
29022   Use char because int might match the return type of a GCC
29023   builtin and then its argument prototype would still apply.  */
29024#ifdef __cplusplus
29025extern "C"
29026#endif
29027char getaddrinfo ();
29028/* The GNU C library defines this for functions which it implements
29029    to always fail with ENOSYS.  Some functions are actually named
29030    something starting with __ and the normal name is an alias.  */
29031#if defined __stub_getaddrinfo || defined __stub___getaddrinfo
29032choke me
29033#endif
29034
29035int
29036main ()
29037{
29038return getaddrinfo ();
29039  ;
29040  return 0;
29041}
29042_ACEOF
29043rm -f conftest.$ac_objext conftest$ac_exeext
29044if { (ac_try="$ac_link"
29045case "(($ac_try" in
29046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29047  *) ac_try_echo=$ac_try;;
29048esac
29049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29050  (eval "$ac_link") 2>conftest.er1
29051  ac_status=$?
29052  grep -v '^ *+' conftest.er1 >conftest.err
29053  rm -f conftest.er1
29054  cat conftest.err >&5
29055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056  (exit $ac_status); } && {
29057	 test -z "$ac_c_werror_flag" ||
29058	 test ! -s conftest.err
29059       } && test -s conftest$ac_exeext &&
29060       $as_test_x conftest$ac_exeext; then
29061  ac_cv_func_getaddrinfo=yes
29062else
29063  echo "$as_me: failed program was:" >&5
29064sed 's/^/| /' conftest.$ac_ext >&5
29065
29066	ac_cv_func_getaddrinfo=no
29067fi
29068
29069rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29070      conftest$ac_exeext conftest.$ac_ext
29071fi
29072{ echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
29073echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
29074if test $ac_cv_func_getaddrinfo = yes; then
29075  IPV6CONN=yes
29076else
29077  IPV6CONN=no
29078fi
29079
29080fi
29081
29082 { echo "$as_me:$LINENO: checking if IPv6 support should be built" >&5
29083echo $ECHO_N "checking if IPv6 support should be built... $ECHO_C" >&6; }
29084 if test "$IPV6CONN" = "yes"; then
29085
29086cat >>confdefs.h <<\_ACEOF
29087#define IPv6 1
29088_ACEOF
29089
29090 fi
29091 { echo "$as_me:$LINENO: result: $IPV6CONN" >&5
29092echo "${ECHO_T}$IPV6CONN" >&6; }
29093
29094 # 4.3BSD-Reno added a new member to struct sockaddr_in
29095 { echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
29096echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6; }
29097if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
29098  echo $ECHO_N "(cached) $ECHO_C" >&6
29099else
29100  cat >conftest.$ac_ext <<_ACEOF
29101/* confdefs.h.  */
29102_ACEOF
29103cat confdefs.h >>conftest.$ac_ext
29104cat >>conftest.$ac_ext <<_ACEOF
29105/* end confdefs.h.  */
29106
29107#include <sys/types.h>
29108#include <sys/socket.h>
29109#include <netinet/in.h>
29110
29111
29112int
29113main ()
29114{
29115static struct sockaddr_in ac_aggr;
29116if (ac_aggr.sin_len)
29117return 0;
29118  ;
29119  return 0;
29120}
29121_ACEOF
29122rm -f conftest.$ac_objext
29123if { (ac_try="$ac_compile"
29124case "(($ac_try" in
29125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29126  *) ac_try_echo=$ac_try;;
29127esac
29128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29129  (eval "$ac_compile") 2>conftest.er1
29130  ac_status=$?
29131  grep -v '^ *+' conftest.er1 >conftest.err
29132  rm -f conftest.er1
29133  cat conftest.err >&5
29134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29135  (exit $ac_status); } && {
29136	 test -z "$ac_c_werror_flag" ||
29137	 test ! -s conftest.err
29138       } && test -s conftest.$ac_objext; then
29139  ac_cv_member_struct_sockaddr_in_sin_len=yes
29140else
29141  echo "$as_me: failed program was:" >&5
29142sed 's/^/| /' conftest.$ac_ext >&5
29143
29144	cat >conftest.$ac_ext <<_ACEOF
29145/* confdefs.h.  */
29146_ACEOF
29147cat confdefs.h >>conftest.$ac_ext
29148cat >>conftest.$ac_ext <<_ACEOF
29149/* end confdefs.h.  */
29150
29151#include <sys/types.h>
29152#include <sys/socket.h>
29153#include <netinet/in.h>
29154
29155
29156int
29157main ()
29158{
29159static struct sockaddr_in ac_aggr;
29160if (sizeof ac_aggr.sin_len)
29161return 0;
29162  ;
29163  return 0;
29164}
29165_ACEOF
29166rm -f conftest.$ac_objext
29167if { (ac_try="$ac_compile"
29168case "(($ac_try" in
29169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29170  *) ac_try_echo=$ac_try;;
29171esac
29172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29173  (eval "$ac_compile") 2>conftest.er1
29174  ac_status=$?
29175  grep -v '^ *+' conftest.er1 >conftest.err
29176  rm -f conftest.er1
29177  cat conftest.err >&5
29178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179  (exit $ac_status); } && {
29180	 test -z "$ac_c_werror_flag" ||
29181	 test ! -s conftest.err
29182       } && test -s conftest.$ac_objext; then
29183  ac_cv_member_struct_sockaddr_in_sin_len=yes
29184else
29185  echo "$as_me: failed program was:" >&5
29186sed 's/^/| /' conftest.$ac_ext >&5
29187
29188	ac_cv_member_struct_sockaddr_in_sin_len=no
29189fi
29190
29191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29192fi
29193
29194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29195fi
29196{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
29197echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
29198if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then
29199
29200cat >>confdefs.h <<\_ACEOF
29201#define BSD44SOCKETS 1
29202_ACEOF
29203
29204fi
29205
29206
29207 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
29208 { echo "$as_me:$LINENO: checking for socklen_t" >&5
29209echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
29210if test "${ac_cv_type_socklen_t+set}" = set; then
29211  echo $ECHO_N "(cached) $ECHO_C" >&6
29212else
29213  cat >conftest.$ac_ext <<_ACEOF
29214/* confdefs.h.  */
29215_ACEOF
29216cat confdefs.h >>conftest.$ac_ext
29217cat >>conftest.$ac_ext <<_ACEOF
29218/* end confdefs.h.  */
29219
29220$ac_includes_default
29221#include <sys/socket.h>
29222
29223typedef socklen_t ac__type_new_;
29224int
29225main ()
29226{
29227if ((ac__type_new_ *) 0)
29228  return 0;
29229if (sizeof (ac__type_new_))
29230  return 0;
29231  ;
29232  return 0;
29233}
29234_ACEOF
29235rm -f conftest.$ac_objext
29236if { (ac_try="$ac_compile"
29237case "(($ac_try" in
29238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29239  *) ac_try_echo=$ac_try;;
29240esac
29241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29242  (eval "$ac_compile") 2>conftest.er1
29243  ac_status=$?
29244  grep -v '^ *+' conftest.er1 >conftest.err
29245  rm -f conftest.er1
29246  cat conftest.err >&5
29247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29248  (exit $ac_status); } && {
29249	 test -z "$ac_c_werror_flag" ||
29250	 test ! -s conftest.err
29251       } && test -s conftest.$ac_objext; then
29252  ac_cv_type_socklen_t=yes
29253else
29254  echo "$as_me: failed program was:" >&5
29255sed 's/^/| /' conftest.$ac_ext >&5
29256
29257	ac_cv_type_socklen_t=no
29258fi
29259
29260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29261fi
29262{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29263echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
29264if test $ac_cv_type_socklen_t = yes; then
29265
29266cat >>confdefs.h <<_ACEOF
29267#define HAVE_SOCKLEN_T 1
29268_ACEOF
29269
29270
29271fi
29272
29273
29274
29275 fi
29276 case $host_os in
29277	solaris*|sco*|sysv4*)	localdef="yes" ;;
29278	*)			localdef="no"  ;;
29279 esac
29280 # Check whether --enable-local-transport was given.
29281if test "${enable_local_transport+set}" = set; then
29282  enableval=$enable_local_transport; LOCALCONN=$enableval
29283else
29284  LOCALCONN=$localdef
29285fi
29286
29287 { echo "$as_me:$LINENO: checking if Xtrans should support os-specific local connections" >&5
29288echo $ECHO_N "checking if Xtrans should support os-specific local connections... $ECHO_C" >&6; }
29289 { echo "$as_me:$LINENO: result: $LOCALCONN" >&5
29290echo "${ECHO_T}$LOCALCONN" >&6; }
29291 if test "$LOCALCONN" = "yes"; then
29292
29293cat >>confdefs.h <<\_ACEOF
29294#define LOCALCONN 1
29295_ACEOF
29296
29297 fi
29298
29299
29300
29301# Secure RPC detection macro from xtrans.m4
29302
29303 # Check whether --enable-secure-rpc was given.
29304if test "${enable_secure_rpc+set}" = set; then
29305  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
29306else
29307  SECURE_RPC="try"
29308fi
29309
29310
29311 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
29312	FOUND_SECURE_RPC="no"
29313
29314
29315for ac_func in authdes_seccreate authdes_create
29316do
29317as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29318{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29319echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29320if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29321  echo $ECHO_N "(cached) $ECHO_C" >&6
29322else
29323  cat >conftest.$ac_ext <<_ACEOF
29324/* confdefs.h.  */
29325_ACEOF
29326cat confdefs.h >>conftest.$ac_ext
29327cat >>conftest.$ac_ext <<_ACEOF
29328/* end confdefs.h.  */
29329/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29330   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29331#define $ac_func innocuous_$ac_func
29332
29333/* System header to define __stub macros and hopefully few prototypes,
29334    which can conflict with char $ac_func (); below.
29335    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29336    <limits.h> exists even on freestanding compilers.  */
29337
29338#ifdef __STDC__
29339# include <limits.h>
29340#else
29341# include <assert.h>
29342#endif
29343
29344#undef $ac_func
29345
29346/* Override any GCC internal prototype to avoid an error.
29347   Use char because int might match the return type of a GCC
29348   builtin and then its argument prototype would still apply.  */
29349#ifdef __cplusplus
29350extern "C"
29351#endif
29352char $ac_func ();
29353/* The GNU C library defines this for functions which it implements
29354    to always fail with ENOSYS.  Some functions are actually named
29355    something starting with __ and the normal name is an alias.  */
29356#if defined __stub_$ac_func || defined __stub___$ac_func
29357choke me
29358#endif
29359
29360int
29361main ()
29362{
29363return $ac_func ();
29364  ;
29365  return 0;
29366}
29367_ACEOF
29368rm -f conftest.$ac_objext conftest$ac_exeext
29369if { (ac_try="$ac_link"
29370case "(($ac_try" in
29371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29372  *) ac_try_echo=$ac_try;;
29373esac
29374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29375  (eval "$ac_link") 2>conftest.er1
29376  ac_status=$?
29377  grep -v '^ *+' conftest.er1 >conftest.err
29378  rm -f conftest.er1
29379  cat conftest.err >&5
29380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29381  (exit $ac_status); } && {
29382	 test -z "$ac_c_werror_flag" ||
29383	 test ! -s conftest.err
29384       } && test -s conftest$ac_exeext &&
29385       $as_test_x conftest$ac_exeext; then
29386  eval "$as_ac_var=yes"
29387else
29388  echo "$as_me: failed program was:" >&5
29389sed 's/^/| /' conftest.$ac_ext >&5
29390
29391	eval "$as_ac_var=no"
29392fi
29393
29394rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29395      conftest$ac_exeext conftest.$ac_ext
29396fi
29397ac_res=`eval echo '${'$as_ac_var'}'`
29398	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29399echo "${ECHO_T}$ac_res" >&6; }
29400if test `eval echo '${'$as_ac_var'}'` = yes; then
29401  cat >>confdefs.h <<_ACEOF
29402#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29403_ACEOF
29404 FOUND_SECURE_RPC="yes"
29405fi
29406done
29407
29408	if test "x$FOUND_SECURE_RPC" = "xno" ; then
29409		if test "x$SECURE_RPC" = "xyes" ; then
29410	{ { echo "$as_me:$LINENO: error: Secure RPC requested, but required functions not found" >&5
29411echo "$as_me: error: Secure RPC requested, but required functions not found" >&2;}
29412   { (exit 1); exit 1; }; }
29413		fi
29414		SECURE_RPC="no"
29415	else
29416				{ echo "$as_me:$LINENO: checking for library containing getsecretkey" >&5
29417echo $ECHO_N "checking for library containing getsecretkey... $ECHO_C" >&6; }
29418if test "${ac_cv_search_getsecretkey+set}" = set; then
29419  echo $ECHO_N "(cached) $ECHO_C" >&6
29420else
29421  ac_func_search_save_LIBS=$LIBS
29422cat >conftest.$ac_ext <<_ACEOF
29423/* confdefs.h.  */
29424_ACEOF
29425cat confdefs.h >>conftest.$ac_ext
29426cat >>conftest.$ac_ext <<_ACEOF
29427/* end confdefs.h.  */
29428
29429/* Override any GCC internal prototype to avoid an error.
29430   Use char because int might match the return type of a GCC
29431   builtin and then its argument prototype would still apply.  */
29432#ifdef __cplusplus
29433extern "C"
29434#endif
29435char getsecretkey ();
29436int
29437main ()
29438{
29439return getsecretkey ();
29440  ;
29441  return 0;
29442}
29443_ACEOF
29444for ac_lib in '' rpcsvc; do
29445  if test -z "$ac_lib"; then
29446    ac_res="none required"
29447  else
29448    ac_res=-l$ac_lib
29449    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29450  fi
29451  rm -f conftest.$ac_objext conftest$ac_exeext
29452if { (ac_try="$ac_link"
29453case "(($ac_try" in
29454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29455  *) ac_try_echo=$ac_try;;
29456esac
29457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29458  (eval "$ac_link") 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_exeext &&
29468       $as_test_x conftest$ac_exeext; then
29469  ac_cv_search_getsecretkey=$ac_res
29470else
29471  echo "$as_me: failed program was:" >&5
29472sed 's/^/| /' conftest.$ac_ext >&5
29473
29474
29475fi
29476
29477rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29478      conftest$ac_exeext
29479  if test "${ac_cv_search_getsecretkey+set}" = set; then
29480  break
29481fi
29482done
29483if test "${ac_cv_search_getsecretkey+set}" = set; then
29484  :
29485else
29486  ac_cv_search_getsecretkey=no
29487fi
29488rm conftest.$ac_ext
29489LIBS=$ac_func_search_save_LIBS
29490fi
29491{ echo "$as_me:$LINENO: result: $ac_cv_search_getsecretkey" >&5
29492echo "${ECHO_T}$ac_cv_search_getsecretkey" >&6; }
29493ac_res=$ac_cv_search_getsecretkey
29494if test "$ac_res" != no; then
29495  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29496
29497fi
29498
29499		SECURE_RPC="yes"
29500	fi
29501 fi
29502 { echo "$as_me:$LINENO: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
29503echo $ECHO_N "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... $ECHO_C" >&6; }
29504 if test "x$SECURE_RPC" = "xyes" ; then
29505
29506cat >>confdefs.h <<\_ACEOF
29507#define SECURE_RPC 1
29508_ACEOF
29509
29510 fi
29511 { echo "$as_me:$LINENO: result: $SECURE_RPC" >&5
29512echo "${ECHO_T}$SECURE_RPC" >&6; }
29513
29514 if test "x$SECURE_RPC" = xyes; then
29515  SECURE_RPC_TRUE=
29516  SECURE_RPC_FALSE='#'
29517else
29518  SECURE_RPC_TRUE='#'
29519  SECURE_RPC_FALSE=
29520fi
29521
29522
29523 if test "x$INT10" = xvm86; then
29524  INT10_VM86_TRUE=
29525  INT10_VM86_FALSE='#'
29526else
29527  INT10_VM86_TRUE='#'
29528  INT10_VM86_FALSE=
29529fi
29530
29531 if test "x$INT10" = xx86emu; then
29532  INT10_X86EMU_TRUE=
29533  INT10_X86EMU_FALSE='#'
29534else
29535  INT10_X86EMU_TRUE='#'
29536  INT10_X86EMU_FALSE=
29537fi
29538
29539 if test "x$INT10" = xstub; then
29540  INT10_STUB_TRUE=
29541  INT10_STUB_FALSE='#'
29542else
29543  INT10_STUB_TRUE='#'
29544  INT10_STUB_FALSE=
29545fi
29546
29547if test "x$INT10" = xyes; then
29548
29549
29550for ac_header in sys/vm86.h sys/io.h
29551do
29552as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29554  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29555echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29556if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29557  echo $ECHO_N "(cached) $ECHO_C" >&6
29558fi
29559ac_res=`eval echo '${'$as_ac_Header'}'`
29560	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29561echo "${ECHO_T}$ac_res" >&6; }
29562else
29563  # Is the header compilable?
29564{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29565echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29566cat >conftest.$ac_ext <<_ACEOF
29567/* confdefs.h.  */
29568_ACEOF
29569cat confdefs.h >>conftest.$ac_ext
29570cat >>conftest.$ac_ext <<_ACEOF
29571/* end confdefs.h.  */
29572$ac_includes_default
29573#include <$ac_header>
29574_ACEOF
29575rm -f conftest.$ac_objext
29576if { (ac_try="$ac_compile"
29577case "(($ac_try" in
29578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29579  *) ac_try_echo=$ac_try;;
29580esac
29581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29582  (eval "$ac_compile") 2>conftest.er1
29583  ac_status=$?
29584  grep -v '^ *+' conftest.er1 >conftest.err
29585  rm -f conftest.er1
29586  cat conftest.err >&5
29587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29588  (exit $ac_status); } && {
29589	 test -z "$ac_c_werror_flag" ||
29590	 test ! -s conftest.err
29591       } && test -s conftest.$ac_objext; then
29592  ac_header_compiler=yes
29593else
29594  echo "$as_me: failed program was:" >&5
29595sed 's/^/| /' conftest.$ac_ext >&5
29596
29597	ac_header_compiler=no
29598fi
29599
29600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29601{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29602echo "${ECHO_T}$ac_header_compiler" >&6; }
29603
29604# Is the header present?
29605{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29606echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29607cat >conftest.$ac_ext <<_ACEOF
29608/* confdefs.h.  */
29609_ACEOF
29610cat confdefs.h >>conftest.$ac_ext
29611cat >>conftest.$ac_ext <<_ACEOF
29612/* end confdefs.h.  */
29613#include <$ac_header>
29614_ACEOF
29615if { (ac_try="$ac_cpp conftest.$ac_ext"
29616case "(($ac_try" in
29617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29618  *) ac_try_echo=$ac_try;;
29619esac
29620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29621  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29622  ac_status=$?
29623  grep -v '^ *+' conftest.er1 >conftest.err
29624  rm -f conftest.er1
29625  cat conftest.err >&5
29626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29627  (exit $ac_status); } >/dev/null && {
29628	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29629	 test ! -s conftest.err
29630       }; then
29631  ac_header_preproc=yes
29632else
29633  echo "$as_me: failed program was:" >&5
29634sed 's/^/| /' conftest.$ac_ext >&5
29635
29636  ac_header_preproc=no
29637fi
29638
29639rm -f conftest.err conftest.$ac_ext
29640{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29641echo "${ECHO_T}$ac_header_preproc" >&6; }
29642
29643# So?  What about this header?
29644case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29645  yes:no: )
29646    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29647echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29648    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29649echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29650    ac_header_preproc=yes
29651    ;;
29652  no:yes:* )
29653    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29654echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29655    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29656echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29657    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29658echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29659    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29660echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29661    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29662echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29663    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29664echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29665    ( cat <<\_ASBOX
29666## ---------------------------------------------------------------------- ##
29667## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
29668## ---------------------------------------------------------------------- ##
29669_ASBOX
29670     ) | sed "s/^/$as_me: WARNING:     /" >&2
29671    ;;
29672esac
29673{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29675if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29676  echo $ECHO_N "(cached) $ECHO_C" >&6
29677else
29678  eval "$as_ac_Header=\$ac_header_preproc"
29679fi
29680ac_res=`eval echo '${'$as_ac_Header'}'`
29681	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29682echo "${ECHO_T}$ac_res" >&6; }
29683
29684fi
29685if test `eval echo '${'$as_ac_Header'}'` = yes; then
29686  cat >>confdefs.h <<_ACEOF
29687#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29688_ACEOF
29689
29690fi
29691
29692done
29693
29694fi
29695
29696
29697
29698# Check whether --enable-docs was given.
29699if test "${enable_docs+set}" = set; then
29700  enableval=$enable_docs; build_docs=$enableval
29701else
29702  build_docs=yes
29703fi
29704
29705
29706 if test x$build_docs = xyes; then
29707  ENABLE_DOCS_TRUE=
29708  ENABLE_DOCS_FALSE='#'
29709else
29710  ENABLE_DOCS_TRUE='#'
29711  ENABLE_DOCS_FALSE=
29712fi
29713
29714{ echo "$as_me:$LINENO: checking whether to build documentation" >&5
29715echo $ECHO_N "checking whether to build documentation... $ECHO_C" >&6; }
29716{ echo "$as_me:$LINENO: result: $build_docs" >&5
29717echo "${ECHO_T}$build_docs" >&6; }
29718
29719
29720
29721# Check whether --enable-devel-docs was given.
29722if test "${enable_devel_docs+set}" = set; then
29723  enableval=$enable_devel_docs; build_devel_docs=$enableval
29724else
29725  build_devel_docs=yes
29726fi
29727
29728
29729 if test x$build_devel_docs = xyes; then
29730  ENABLE_DEVEL_DOCS_TRUE=
29731  ENABLE_DEVEL_DOCS_FALSE='#'
29732else
29733  ENABLE_DEVEL_DOCS_TRUE='#'
29734  ENABLE_DEVEL_DOCS_FALSE=
29735fi
29736
29737{ echo "$as_me:$LINENO: checking whether to build developer documentation" >&5
29738echo $ECHO_N "checking whether to build developer documentation... $ECHO_C" >&6; }
29739{ echo "$as_me:$LINENO: result: $build_devel_docs" >&5
29740echo "${ECHO_T}$build_devel_docs" >&6; }
29741
29742
29743
29744
29745
29746# Check whether --with-xmlto was given.
29747if test "${with_xmlto+set}" = set; then
29748  withval=$with_xmlto; use_xmlto=$withval
29749else
29750  use_xmlto=auto
29751fi
29752
29753
29754
29755if test "x$use_xmlto" = x"auto"; then
29756   # Extract the first word of "xmlto", so it can be a program name with args.
29757set dummy xmlto; ac_word=$2
29758{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29760if test "${ac_cv_path_XMLTO+set}" = set; then
29761  echo $ECHO_N "(cached) $ECHO_C" >&6
29762else
29763  case $XMLTO in
29764  [\\/]* | ?:[\\/]*)
29765  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
29766  ;;
29767  *)
29768  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29769for as_dir in $PATH
29770do
29771  IFS=$as_save_IFS
29772  test -z "$as_dir" && as_dir=.
29773  for ac_exec_ext in '' $ac_executable_extensions; do
29774  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29775    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
29776    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29777    break 2
29778  fi
29779done
29780done
29781IFS=$as_save_IFS
29782
29783  ;;
29784esac
29785fi
29786XMLTO=$ac_cv_path_XMLTO
29787if test -n "$XMLTO"; then
29788  { echo "$as_me:$LINENO: result: $XMLTO" >&5
29789echo "${ECHO_T}$XMLTO" >&6; }
29790else
29791  { echo "$as_me:$LINENO: result: no" >&5
29792echo "${ECHO_T}no" >&6; }
29793fi
29794
29795
29796   if test "x$XMLTO" = "x"; then
29797        { echo "$as_me:$LINENO: WARNING: xmlto not found - documentation targets will be skipped" >&5
29798echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
29799	have_xmlto=no
29800   else
29801        have_xmlto=yes
29802   fi
29803elif test "x$use_xmlto" = x"yes" ; then
29804   # Extract the first word of "xmlto", so it can be a program name with args.
29805set dummy xmlto; ac_word=$2
29806{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29808if test "${ac_cv_path_XMLTO+set}" = set; then
29809  echo $ECHO_N "(cached) $ECHO_C" >&6
29810else
29811  case $XMLTO in
29812  [\\/]* | ?:[\\/]*)
29813  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
29814  ;;
29815  *)
29816  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29817for as_dir in $PATH
29818do
29819  IFS=$as_save_IFS
29820  test -z "$as_dir" && as_dir=.
29821  for ac_exec_ext in '' $ac_executable_extensions; do
29822  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29823    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
29824    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29825    break 2
29826  fi
29827done
29828done
29829IFS=$as_save_IFS
29830
29831  ;;
29832esac
29833fi
29834XMLTO=$ac_cv_path_XMLTO
29835if test -n "$XMLTO"; then
29836  { echo "$as_me:$LINENO: result: $XMLTO" >&5
29837echo "${ECHO_T}$XMLTO" >&6; }
29838else
29839  { echo "$as_me:$LINENO: result: no" >&5
29840echo "${ECHO_T}no" >&6; }
29841fi
29842
29843
29844   if test "x$XMLTO" = "x"; then
29845        { { echo "$as_me:$LINENO: error: --with-xmlto=yes specified but xmlto not found in PATH" >&5
29846echo "$as_me: error: --with-xmlto=yes specified but xmlto not found in PATH" >&2;}
29847   { (exit 1); exit 1; }; }
29848   fi
29849   have_xmlto=yes
29850elif test "x$use_xmlto" = x"no" ; then
29851   if test "x$XMLTO" != "x"; then
29852      { echo "$as_me:$LINENO: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
29853echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
29854   fi
29855   have_xmlto=no
29856else
29857   { { echo "$as_me:$LINENO: error: --with-xmlto expects 'yes' or 'no'" >&5
29858echo "$as_me: error: --with-xmlto expects 'yes' or 'no'" >&2;}
29859   { (exit 1); exit 1; }; }
29860fi
29861
29862# Test for a minimum version of xmlto, if provided.
29863if test "$have_xmlto" = yes; then
29864    # scrape the xmlto version
29865    { echo "$as_me:$LINENO: checking the xmlto version" >&5
29866echo $ECHO_N "checking the xmlto version... $ECHO_C" >&6; }
29867    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
29868    { echo "$as_me:$LINENO: result: $xmlto_version" >&5
29869echo "${ECHO_T}$xmlto_version" >&6; }
29870    as_arg_v1=$xmlto_version
29871as_arg_v2=0.0.20
29872awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
29873case $? in
298741) if test "x$use_xmlto" = xauto; then
29875            { echo "$as_me:$LINENO: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
29876echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
29877            have_xmlto=no
29878        else
29879            { { echo "$as_me:$LINENO: error: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
29880echo "$as_me: error: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
29881   { (exit 1); exit 1; }; }
29882        fi;;
298830) ;;
298842) ;;
29885esac
29886fi
29887
29888# Test for the ability of xmlto to generate a text target
29889have_xmlto_text=no
29890cat > conftest.xml << "EOF"
29891EOF
29892if test "$have_xmlto" = yes; then
29893  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then
29894  have_xmlto_text=yes
29895else
29896  { echo "$as_me:$LINENO: WARNING: xmlto cannot generate text format, this format skipped" >&5
29897echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
29898fi
29899
29900fi
29901
29902rm -f conftest.xml
29903 if test $have_xmlto_text = yes; then
29904  HAVE_XMLTO_TEXT_TRUE=
29905  HAVE_XMLTO_TEXT_FALSE='#'
29906else
29907  HAVE_XMLTO_TEXT_TRUE='#'
29908  HAVE_XMLTO_TEXT_FALSE=
29909fi
29910
29911 if test "$have_xmlto" = yes; then
29912  HAVE_XMLTO_TRUE=
29913  HAVE_XMLTO_FALSE='#'
29914else
29915  HAVE_XMLTO_TRUE='#'
29916  HAVE_XMLTO_FALSE=
29917fi
29918
29919
29920
29921
29922
29923
29924# Check whether --with-fop was given.
29925if test "${with_fop+set}" = set; then
29926  withval=$with_fop; use_fop=$withval
29927else
29928  use_fop=auto
29929fi
29930
29931
29932
29933if test "x$use_fop" = x"auto"; then
29934   # Extract the first word of "fop", so it can be a program name with args.
29935set dummy fop; ac_word=$2
29936{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29938if test "${ac_cv_path_FOP+set}" = set; then
29939  echo $ECHO_N "(cached) $ECHO_C" >&6
29940else
29941  case $FOP in
29942  [\\/]* | ?:[\\/]*)
29943  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
29944  ;;
29945  *)
29946  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29947for as_dir in $PATH
29948do
29949  IFS=$as_save_IFS
29950  test -z "$as_dir" && as_dir=.
29951  for ac_exec_ext in '' $ac_executable_extensions; do
29952  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29953    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
29954    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29955    break 2
29956  fi
29957done
29958done
29959IFS=$as_save_IFS
29960
29961  ;;
29962esac
29963fi
29964FOP=$ac_cv_path_FOP
29965if test -n "$FOP"; then
29966  { echo "$as_me:$LINENO: result: $FOP" >&5
29967echo "${ECHO_T}$FOP" >&6; }
29968else
29969  { echo "$as_me:$LINENO: result: no" >&5
29970echo "${ECHO_T}no" >&6; }
29971fi
29972
29973
29974   if test "x$FOP" = "x"; then
29975        { echo "$as_me:$LINENO: WARNING: fop not found - documentation targets will be skipped" >&5
29976echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
29977	have_fop=no
29978   else
29979        have_fop=yes
29980   fi
29981elif test "x$use_fop" = x"yes" ; then
29982   # Extract the first word of "fop", so it can be a program name with args.
29983set dummy fop; ac_word=$2
29984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29986if test "${ac_cv_path_FOP+set}" = set; then
29987  echo $ECHO_N "(cached) $ECHO_C" >&6
29988else
29989  case $FOP in
29990  [\\/]* | ?:[\\/]*)
29991  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
29992  ;;
29993  *)
29994  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29995for as_dir in $PATH
29996do
29997  IFS=$as_save_IFS
29998  test -z "$as_dir" && as_dir=.
29999  for ac_exec_ext in '' $ac_executable_extensions; do
30000  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30001    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
30002    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30003    break 2
30004  fi
30005done
30006done
30007IFS=$as_save_IFS
30008
30009  ;;
30010esac
30011fi
30012FOP=$ac_cv_path_FOP
30013if test -n "$FOP"; then
30014  { echo "$as_me:$LINENO: result: $FOP" >&5
30015echo "${ECHO_T}$FOP" >&6; }
30016else
30017  { echo "$as_me:$LINENO: result: no" >&5
30018echo "${ECHO_T}no" >&6; }
30019fi
30020
30021
30022   if test "x$FOP" = "x"; then
30023        { { echo "$as_me:$LINENO: error: --with-fop=yes specified but fop not found in PATH" >&5
30024echo "$as_me: error: --with-fop=yes specified but fop not found in PATH" >&2;}
30025   { (exit 1); exit 1; }; }
30026   fi
30027   have_fop=yes
30028elif test "x$use_fop" = x"no" ; then
30029   if test "x$FOP" != "x"; then
30030      { echo "$as_me:$LINENO: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
30031echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
30032   fi
30033   have_fop=no
30034else
30035   { { echo "$as_me:$LINENO: error: --with-fop expects 'yes' or 'no'" >&5
30036echo "$as_me: error: --with-fop expects 'yes' or 'no'" >&2;}
30037   { (exit 1); exit 1; }; }
30038fi
30039
30040# Test for a minimum version of fop, if provided.
30041
30042 if test "$have_fop" = yes; then
30043  HAVE_FOP_TRUE=
30044  HAVE_FOP_FALSE='#'
30045else
30046  HAVE_FOP_TRUE='#'
30047  HAVE_FOP_FALSE=
30048fi
30049
30050
30051
30052 if test "x$INSTALL_LIBXF86CONFIG" = xyes; then
30053  INSTALL_LIBXF86CONFIG_TRUE=
30054  INSTALL_LIBXF86CONFIG_FALSE='#'
30055else
30056  INSTALL_LIBXF86CONFIG_TRUE='#'
30057  INSTALL_LIBXF86CONFIG_FALSE=
30058fi
30059
30060
30061case $host_os in
30062	cygwin*)
30063		DGA=no
30064		DRI2=no
30065		XF86VIDMODE=no
30066		XSELINUX=no
30067		XV=no
30068		;;
30069	darwin*)
30070		DRI2=no
30071
30072		if test x$XQUARTZ = xauto; then
30073			{ echo "$as_me:$LINENO: checking whether to build Xquartz" >&5
30074echo $ECHO_N "checking whether to build Xquartz... $ECHO_C" >&6; }
30075if test "${xorg_cv_Carbon_framework+set}" = set; then
30076  echo $ECHO_N "(cached) $ECHO_C" >&6
30077else
30078
30079		 		save_LDFLAGS=$LDFLAGS
30080				LDFLAGS="$LDFLAGS -framework Carbon"
30081				cat >conftest.$ac_ext <<_ACEOF
30082char FSFindFolder(); int main() { FSFindFolder(); return 0;}
30083_ACEOF
30084rm -f conftest.$ac_objext conftest$ac_exeext
30085if { (ac_try="$ac_link"
30086case "(($ac_try" in
30087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30088  *) ac_try_echo=$ac_try;;
30089esac
30090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30091  (eval "$ac_link") 2>conftest.er1
30092  ac_status=$?
30093  grep -v '^ *+' conftest.er1 >conftest.err
30094  rm -f conftest.er1
30095  cat conftest.err >&5
30096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30097  (exit $ac_status); } && {
30098	 test -z "$ac_c_werror_flag" ||
30099	 test ! -s conftest.err
30100       } && test -s conftest$ac_exeext &&
30101       $as_test_x conftest$ac_exeext; then
30102  xorg_cv_Carbon_framework=yes
30103else
30104  echo "$as_me: failed program was:" >&5
30105sed 's/^/| /' conftest.$ac_ext >&5
30106
30107	xorg_cv_Carbon_framework=no
30108fi
30109
30110rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30111      conftest$ac_exeext conftest.$ac_ext
30112			LDFLAGS=$save_LDFLAGS
30113fi
30114{ echo "$as_me:$LINENO: result: $xorg_cv_Carbon_framework" >&5
30115echo "${ECHO_T}$xorg_cv_Carbon_framework" >&6; }
30116
30117			if test "X$xorg_cv_Carbon_framework" = Xyes; then
30118				XQUARTZ=yes
30119			else
30120				XQUARTZ=no
30121			fi
30122		fi
30123
30124		if test "x$XQUARTZ" = xyes ; then
30125			XQUARTZ=yes
30126			XVFB=no
30127			XNEST=no
30128
30129			COMPOSITE=no
30130			DGA=no
30131			DPMSExtension=no
30132			XF86VIDMODE=no
30133		fi
30134		;;
30135	*) XQUARTZ=no ;;
30136esac
30137
30138XEXT_INC='-I$(top_srcdir)/Xext'
30139XEXT_LIB='$(top_builddir)/Xext/libXext.la'
30140XEXTXORG_LIB='$(top_builddir)/Xext/libXextbuiltin.la'
30141
30142VIDEOPROTO="videoproto"
30143COMPOSITEPROTO="compositeproto >= 0.4"
30144RECORDPROTO="recordproto >= 1.13.99.1"
30145SCRNSAVERPROTO="scrnsaverproto >= 1.1"
30146RESOURCEPROTO="resourceproto"
30147DRIPROTO="xf86driproto >= 2.1.0"
30148DRI2PROTO="dri2proto >= 2.3"
30149XINERAMAPROTO="xineramaproto"
30150BIGFONTPROTO="xf86bigfontproto >= 1.2.0"
30151XCALIBRATEPROTO="xcalibrateproto"
30152DGAPROTO="xf86dgaproto >= 2.0.99.1"
30153GLPROTO="glproto >= 1.4.10"
30154DMXPROTO="dmxproto >= 2.2.99.1"
30155VIDMODEPROTO="xf86vidmodeproto >= 2.2.99.1"
30156WINDOWSWMPROTO="windowswmproto"
30157APPLEWMPROTO="applewmproto >= 1.4"
30158
30159SDK_REQUIRED_MODULES="xproto >= 7.0.17 randrproto >= 1.2.99.3 renderproto >= 0.11 xextproto >= 7.1.99 inputproto >= 1.9.99.902 kbproto >= 1.0.3 fontsproto"
30160# Make SDK_REQUIRED_MODULES available for inclusion in xorg-server.pc
30161
30162
30163LIBAPPLEWM="applewm >= 1.4"
30164LIBDMX="dmx >= 1.0.99.1"
30165LIBDRI="dri >= 7.8.0"
30166LIBDRM="libdrm >= 2.3.0"
30167LIBGL="gl >= 7.1.0"
30168LIBXEXT="xext >= 1.0.99.4"
30169LIBXFONT="xfont >= 1.4.2"
30170LIBXI="xi >= 1.2.99.1"
30171LIBXTST="xtst >= 1.0.99.2"
30172LIBPCIACCESS="pciaccess >= 0.8.0"
30173LIBGLIB="glib-2.0 >= 2.16"
30174LIBUDEV="libudev >= 143"
30175LIBSELINUX="libselinux >= 2.0.86"
30176LIBDBUS="dbus-1 >= 1.0"
30177LIBPIXMAN="pixman-1 >= 0.15.20"
30178
30179
30180pkg_failed=no
30181{ echo "$as_me:$LINENO: checking for PIXMAN" >&5
30182echo $ECHO_N "checking for PIXMAN... $ECHO_C" >&6; }
30183
30184if test -n "$PIXMAN_CFLAGS"; then
30185    pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS"
30186 elif test -n "$PKG_CONFIG"; then
30187    if test -n "$PKG_CONFIG" && \
30188    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\"") >&5
30189  ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5
30190  ac_status=$?
30191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30192  (exit $ac_status); }; then
30193  pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "$LIBPIXMAN" 2>/dev/null`
30194else
30195  pkg_failed=yes
30196fi
30197 else
30198    pkg_failed=untried
30199fi
30200if test -n "$PIXMAN_LIBS"; then
30201    pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS"
30202 elif test -n "$PKG_CONFIG"; then
30203    if test -n "$PKG_CONFIG" && \
30204    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\"") >&5
30205  ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5
30206  ac_status=$?
30207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30208  (exit $ac_status); }; then
30209  pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "$LIBPIXMAN" 2>/dev/null`
30210else
30211  pkg_failed=yes
30212fi
30213 else
30214    pkg_failed=untried
30215fi
30216
30217
30218
30219if test $pkg_failed = yes; then
30220   	{ echo "$as_me:$LINENO: result: no" >&5
30221echo "${ECHO_T}no" >&6; }
30222
30223if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30224        _pkg_short_errors_supported=yes
30225else
30226        _pkg_short_errors_supported=no
30227fi
30228        if test $_pkg_short_errors_supported = yes; then
30229	        PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBPIXMAN" 2>&1`
30230        else
30231	        PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBPIXMAN" 2>&1`
30232        fi
30233	# Put the nasty error message in config.log where it belongs
30234	echo "$PIXMAN_PKG_ERRORS" >&5
30235
30236	{ { echo "$as_me:$LINENO: error: Package requirements ($LIBPIXMAN) were not met:
30237
30238$PIXMAN_PKG_ERRORS
30239
30240Consider adjusting the PKG_CONFIG_PATH environment variable if you
30241installed software in a non-standard prefix.
30242
30243Alternatively, you may set the environment variables PIXMAN_CFLAGS
30244and PIXMAN_LIBS to avoid the need to call pkg-config.
30245See the pkg-config man page for more details." >&5
30246echo "$as_me: error: Package requirements ($LIBPIXMAN) were not met:
30247
30248$PIXMAN_PKG_ERRORS
30249
30250Consider adjusting the PKG_CONFIG_PATH environment variable if you
30251installed software in a non-standard prefix.
30252
30253Alternatively, you may set the environment variables PIXMAN_CFLAGS
30254and PIXMAN_LIBS to avoid the need to call pkg-config.
30255See the pkg-config man page for more details." >&2;}
30256   { (exit 1); exit 1; }; }
30257elif test $pkg_failed = untried; then
30258     	{ echo "$as_me:$LINENO: result: no" >&5
30259echo "${ECHO_T}no" >&6; }
30260	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
30261is in your PATH or set the PKG_CONFIG environment variable to the full
30262path to pkg-config.
30263
30264Alternatively, you may set the environment variables PIXMAN_CFLAGS
30265and PIXMAN_LIBS to avoid the need to call pkg-config.
30266See the pkg-config man page for more details.
30267
30268To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30269See \`config.log' for more details." >&5
30270echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
30271is in your PATH or set the PKG_CONFIG environment variable to the full
30272path to pkg-config.
30273
30274Alternatively, you may set the environment variables PIXMAN_CFLAGS
30275and PIXMAN_LIBS to avoid the need to call pkg-config.
30276See the pkg-config man page for more details.
30277
30278To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30279See \`config.log' for more details." >&2;}
30280   { (exit 1); exit 1; }; }
30281else
30282	PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS
30283	PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS
30284        { echo "$as_me:$LINENO: result: yes" >&5
30285echo "${ECHO_T}yes" >&6; }
30286
30287fi
30288REQUIRED_LIBS="$REQUIRED_LIBS $LIBPIXMAN $LIBXFONT xau"
30289
30290REQUIRED_MODULES="fixesproto >= 4.1 damageproto >= 1.1 xcmiscproto >= 1.2.0 xtrans >= 1.2.2 bigreqsproto >= 1.1.0 $SDK_REQUIRED_MODULES"
30291
30292if test "x$CONFIG_UDEV" = xyes &&
30293 { test "x$CONFIG_DBUS_API" = xyes || test "x$CONFIG_HAL" = xyes; }; then
30294	{ { echo "$as_me:$LINENO: error: Hotplugging through both libudev and dbus/hal not allowed" >&5
30295echo "$as_me: error: Hotplugging through both libudev and dbus/hal not allowed" >&2;}
30296   { (exit 1); exit 1; }; }
30297fi
30298
30299
30300pkg_failed=no
30301{ echo "$as_me:$LINENO: checking for UDEV" >&5
30302echo $ECHO_N "checking for UDEV... $ECHO_C" >&6; }
30303
30304if test -n "$UDEV_CFLAGS"; then
30305    pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
30306 elif test -n "$PKG_CONFIG"; then
30307    if test -n "$PKG_CONFIG" && \
30308    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\"") >&5
30309  ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5
30310  ac_status=$?
30311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30312  (exit $ac_status); }; then
30313  pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "$LIBUDEV" 2>/dev/null`
30314else
30315  pkg_failed=yes
30316fi
30317 else
30318    pkg_failed=untried
30319fi
30320if test -n "$UDEV_LIBS"; then
30321    pkg_cv_UDEV_LIBS="$UDEV_LIBS"
30322 elif test -n "$PKG_CONFIG"; then
30323    if test -n "$PKG_CONFIG" && \
30324    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\"") >&5
30325  ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5
30326  ac_status=$?
30327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30328  (exit $ac_status); }; then
30329  pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "$LIBUDEV" 2>/dev/null`
30330else
30331  pkg_failed=yes
30332fi
30333 else
30334    pkg_failed=untried
30335fi
30336
30337
30338
30339if test $pkg_failed = yes; then
30340   	{ echo "$as_me:$LINENO: result: no" >&5
30341echo "${ECHO_T}no" >&6; }
30342
30343if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30344        _pkg_short_errors_supported=yes
30345else
30346        _pkg_short_errors_supported=no
30347fi
30348        if test $_pkg_short_errors_supported = yes; then
30349	        UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBUDEV" 2>&1`
30350        else
30351	        UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBUDEV" 2>&1`
30352        fi
30353	# Put the nasty error message in config.log where it belongs
30354	echo "$UDEV_PKG_ERRORS" >&5
30355
30356	HAVE_LIBUDEV=no
30357elif test $pkg_failed = untried; then
30358     	{ echo "$as_me:$LINENO: result: no" >&5
30359echo "${ECHO_T}no" >&6; }
30360	HAVE_LIBUDEV=no
30361else
30362	UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
30363	UDEV_LIBS=$pkg_cv_UDEV_LIBS
30364        { echo "$as_me:$LINENO: result: yes" >&5
30365echo "${ECHO_T}yes" >&6; }
30366	HAVE_LIBUDEV=yes
30367fi
30368if test "x$CONFIG_UDEV" = xauto; then
30369	CONFIG_UDEV="$HAVE_LIBUDEV"
30370fi
30371 if test "x$CONFIG_UDEV" = xyes; then
30372  CONFIG_UDEV_TRUE=
30373  CONFIG_UDEV_FALSE='#'
30374else
30375  CONFIG_UDEV_TRUE='#'
30376  CONFIG_UDEV_FALSE=
30377fi
30378
30379if test "x$CONFIG_UDEV" = xyes; then
30380	CONFIG_DBUS_API=no
30381	CONFIG_HAL=no
30382	if ! test "x$HAVE_LIBUDEV" = xyes; then
30383		{ { echo "$as_me:$LINENO: error: udev configuration API requested, but libudev is not installed" >&5
30384echo "$as_me: error: udev configuration API requested, but libudev is not installed" >&2;}
30385   { (exit 1); exit 1; }; }
30386	fi
30387
30388cat >>confdefs.h <<\_ACEOF
30389#define CONFIG_UDEV 1
30390_ACEOF
30391
30392fi
30393
30394
30395pkg_failed=no
30396{ echo "$as_me:$LINENO: checking for DBUS" >&5
30397echo $ECHO_N "checking for DBUS... $ECHO_C" >&6; }
30398
30399if test -n "$DBUS_CFLAGS"; then
30400    pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
30401 elif test -n "$PKG_CONFIG"; then
30402    if test -n "$PKG_CONFIG" && \
30403    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\"") >&5
30404  ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5
30405  ac_status=$?
30406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30407  (exit $ac_status); }; then
30408  pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "$LIBDBUS" 2>/dev/null`
30409else
30410  pkg_failed=yes
30411fi
30412 else
30413    pkg_failed=untried
30414fi
30415if test -n "$DBUS_LIBS"; then
30416    pkg_cv_DBUS_LIBS="$DBUS_LIBS"
30417 elif test -n "$PKG_CONFIG"; then
30418    if test -n "$PKG_CONFIG" && \
30419    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\"") >&5
30420  ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5
30421  ac_status=$?
30422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423  (exit $ac_status); }; then
30424  pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "$LIBDBUS" 2>/dev/null`
30425else
30426  pkg_failed=yes
30427fi
30428 else
30429    pkg_failed=untried
30430fi
30431
30432
30433
30434if test $pkg_failed = yes; then
30435   	{ echo "$as_me:$LINENO: result: no" >&5
30436echo "${ECHO_T}no" >&6; }
30437
30438if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30439        _pkg_short_errors_supported=yes
30440else
30441        _pkg_short_errors_supported=no
30442fi
30443        if test $_pkg_short_errors_supported = yes; then
30444	        DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBDBUS" 2>&1`
30445        else
30446	        DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBDBUS" 2>&1`
30447        fi
30448	# Put the nasty error message in config.log where it belongs
30449	echo "$DBUS_PKG_ERRORS" >&5
30450
30451	HAVE_DBUS=no
30452elif test $pkg_failed = untried; then
30453     	{ echo "$as_me:$LINENO: result: no" >&5
30454echo "${ECHO_T}no" >&6; }
30455	HAVE_DBUS=no
30456else
30457	DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
30458	DBUS_LIBS=$pkg_cv_DBUS_LIBS
30459        { echo "$as_me:$LINENO: result: yes" >&5
30460echo "${ECHO_T}yes" >&6; }
30461	HAVE_DBUS=yes
30462fi
30463if test "x$HAVE_DBUS" = xyes; then
30464
30465cat >>confdefs.h <<\_ACEOF
30466#define HAVE_DBUS 1
30467_ACEOF
30468
30469fi
30470 if test "x$HAVE_DBUS" = xyes; then
30471  HAVE_DBUS_TRUE=
30472  HAVE_DBUS_FALSE='#'
30473else
30474  HAVE_DBUS_TRUE='#'
30475  HAVE_DBUS_FALSE=
30476fi
30477
30478
30479if test "x$CONFIG_DBUS_API" = xauto; then
30480	CONFIG_DBUS_API="$HAVE_DBUS"
30481fi
30482if test "x$CONFIG_DBUS_API" = xyes; then
30483	if ! test "x$HAVE_DBUS" = xyes; then
30484		{ { echo "$as_me:$LINENO: error: D-Bus configuration API requested, but D-Bus is not installed." >&5
30485echo "$as_me: error: D-Bus configuration API requested, but D-Bus is not installed." >&2;}
30486   { (exit 1); exit 1; }; }
30487	fi
30488
30489
30490cat >>confdefs.h <<\_ACEOF
30491#define CONFIG_DBUS_API 1
30492_ACEOF
30493
30494	CONFIG_NEED_DBUS="yes"
30495fi
30496 if test "x$CONFIG_DBUS_API" = xyes; then
30497  CONFIG_DBUS_API_TRUE=
30498  CONFIG_DBUS_API_FALSE='#'
30499else
30500  CONFIG_DBUS_API_TRUE='#'
30501  CONFIG_DBUS_API_FALSE=
30502fi
30503
30504
30505
30506pkg_failed=no
30507{ echo "$as_me:$LINENO: checking for HAL" >&5
30508echo $ECHO_N "checking for HAL... $ECHO_C" >&6; }
30509
30510if test -n "$HAL_CFLAGS"; then
30511    pkg_cv_HAL_CFLAGS="$HAL_CFLAGS"
30512 elif test -n "$PKG_CONFIG"; then
30513    if test -n "$PKG_CONFIG" && \
30514    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hal\"") >&5
30515  ($PKG_CONFIG --exists --print-errors "hal") 2>&5
30516  ac_status=$?
30517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518  (exit $ac_status); }; then
30519  pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "hal" 2>/dev/null`
30520else
30521  pkg_failed=yes
30522fi
30523 else
30524    pkg_failed=untried
30525fi
30526if test -n "$HAL_LIBS"; then
30527    pkg_cv_HAL_LIBS="$HAL_LIBS"
30528 elif test -n "$PKG_CONFIG"; then
30529    if test -n "$PKG_CONFIG" && \
30530    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hal\"") >&5
30531  ($PKG_CONFIG --exists --print-errors "hal") 2>&5
30532  ac_status=$?
30533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30534  (exit $ac_status); }; then
30535  pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "hal" 2>/dev/null`
30536else
30537  pkg_failed=yes
30538fi
30539 else
30540    pkg_failed=untried
30541fi
30542
30543
30544
30545if test $pkg_failed = yes; then
30546   	{ echo "$as_me:$LINENO: result: no" >&5
30547echo "${ECHO_T}no" >&6; }
30548
30549if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30550        _pkg_short_errors_supported=yes
30551else
30552        _pkg_short_errors_supported=no
30553fi
30554        if test $_pkg_short_errors_supported = yes; then
30555	        HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "hal" 2>&1`
30556        else
30557	        HAL_PKG_ERRORS=`$PKG_CONFIG --print-errors "hal" 2>&1`
30558        fi
30559	# Put the nasty error message in config.log where it belongs
30560	echo "$HAL_PKG_ERRORS" >&5
30561
30562	HAVE_HAL=no
30563elif test $pkg_failed = untried; then
30564     	{ echo "$as_me:$LINENO: result: no" >&5
30565echo "${ECHO_T}no" >&6; }
30566	HAVE_HAL=no
30567else
30568	HAL_CFLAGS=$pkg_cv_HAL_CFLAGS
30569	HAL_LIBS=$pkg_cv_HAL_LIBS
30570        { echo "$as_me:$LINENO: result: yes" >&5
30571echo "${ECHO_T}yes" >&6; }
30572	HAVE_HAL=yes
30573fi
30574if test "x$CONFIG_HAL" = xauto; then
30575	CONFIG_HAL="$HAVE_HAL"
30576fi
30577if test "x$CONFIG_HAL" = xyes; then
30578	if ! test "x$HAVE_HAL" = xyes; then
30579		{ { echo "$as_me:$LINENO: error: HAL hotplug API requested, but HAL is not installed." >&5
30580echo "$as_me: error: HAL hotplug API requested, but HAL is not installed." >&2;}
30581   { (exit 1); exit 1; }; }
30582	fi
30583
30584
30585cat >>confdefs.h <<\_ACEOF
30586#define CONFIG_HAL 1
30587_ACEOF
30588
30589	CONFIG_NEED_DBUS="yes"
30590fi
30591 if test "x$CONFIG_HAL" = xyes; then
30592  CONFIG_HAL_TRUE=
30593  CONFIG_HAL_FALSE='#'
30594else
30595  CONFIG_HAL_TRUE='#'
30596  CONFIG_HAL_FALSE=
30597fi
30598
30599
30600if test "x$CONFIG_NEED_DBUS" = xyes; then
30601
30602cat >>confdefs.h <<\_ACEOF
30603#define CONFIG_NEED_DBUS 1
30604_ACEOF
30605
30606fi
30607 if test "x$CONFIG_NEED_DBUS" = xyes; then
30608  CONFIG_NEED_DBUS_TRUE=
30609  CONFIG_NEED_DBUS_FALSE='#'
30610else
30611  CONFIG_NEED_DBUS_TRUE='#'
30612  CONFIG_NEED_DBUS_FALSE=
30613fi
30614
30615
30616if test "x$USE_SIGIO_BY_DEFAULT" = xyes; then
30617	USE_SIGIO_BY_DEFAULT_VALUE=TRUE
30618else
30619	USE_SIGIO_BY_DEFAULT_VALUE=FALSE
30620fi
30621
30622cat >>confdefs.h <<_ACEOF
30623#define USE_SIGIO_BY_DEFAULT $USE_SIGIO_BY_DEFAULT_VALUE
30624_ACEOF
30625
30626
30627{ echo "$as_me:$LINENO: checking for glibc..." >&5
30628echo $ECHO_N "checking for glibc...... $ECHO_C" >&6; }
30629cat >conftest.$ac_ext <<_ACEOF
30630
30631#include <features.h>
30632#ifndef __GLIBC__
30633#error
30634#endif
30635
30636_ACEOF
30637if { (ac_try="$ac_cpp conftest.$ac_ext"
30638case "(($ac_try" in
30639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30640  *) ac_try_echo=$ac_try;;
30641esac
30642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30643  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30644  ac_status=$?
30645  grep -v '^ *+' conftest.er1 >conftest.err
30646  rm -f conftest.er1
30647  cat conftest.err >&5
30648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30649  (exit $ac_status); } >/dev/null && {
30650	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30651	 test ! -s conftest.err
30652       }; then
30653  glibc=yes
30654else
30655  echo "$as_me: failed program was:" >&5
30656sed 's/^/| /' conftest.$ac_ext >&5
30657
30658  glibc=no
30659fi
30660
30661rm -f conftest.err conftest.$ac_ext
30662{ echo "$as_me:$LINENO: result: $glibc" >&5
30663echo "${ECHO_T}$glibc" >&6; }
30664
30665
30666for ac_func in clock_gettime
30667do
30668as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30669{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30670echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30671if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30672  echo $ECHO_N "(cached) $ECHO_C" >&6
30673else
30674  cat >conftest.$ac_ext <<_ACEOF
30675/* confdefs.h.  */
30676_ACEOF
30677cat confdefs.h >>conftest.$ac_ext
30678cat >>conftest.$ac_ext <<_ACEOF
30679/* end confdefs.h.  */
30680/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30681   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30682#define $ac_func innocuous_$ac_func
30683
30684/* System header to define __stub macros and hopefully few prototypes,
30685    which can conflict with char $ac_func (); below.
30686    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30687    <limits.h> exists even on freestanding compilers.  */
30688
30689#ifdef __STDC__
30690# include <limits.h>
30691#else
30692# include <assert.h>
30693#endif
30694
30695#undef $ac_func
30696
30697/* Override any GCC internal prototype to avoid an error.
30698   Use char because int might match the return type of a GCC
30699   builtin and then its argument prototype would still apply.  */
30700#ifdef __cplusplus
30701extern "C"
30702#endif
30703char $ac_func ();
30704/* The GNU C library defines this for functions which it implements
30705    to always fail with ENOSYS.  Some functions are actually named
30706    something starting with __ and the normal name is an alias.  */
30707#if defined __stub_$ac_func || defined __stub___$ac_func
30708choke me
30709#endif
30710
30711int
30712main ()
30713{
30714return $ac_func ();
30715  ;
30716  return 0;
30717}
30718_ACEOF
30719rm -f conftest.$ac_objext conftest$ac_exeext
30720if { (ac_try="$ac_link"
30721case "(($ac_try" in
30722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30723  *) ac_try_echo=$ac_try;;
30724esac
30725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30726  (eval "$ac_link") 2>conftest.er1
30727  ac_status=$?
30728  grep -v '^ *+' conftest.er1 >conftest.err
30729  rm -f conftest.er1
30730  cat conftest.err >&5
30731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30732  (exit $ac_status); } && {
30733	 test -z "$ac_c_werror_flag" ||
30734	 test ! -s conftest.err
30735       } && test -s conftest$ac_exeext &&
30736       $as_test_x conftest$ac_exeext; then
30737  eval "$as_ac_var=yes"
30738else
30739  echo "$as_me: failed program was:" >&5
30740sed 's/^/| /' conftest.$ac_ext >&5
30741
30742	eval "$as_ac_var=no"
30743fi
30744
30745rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30746      conftest$ac_exeext conftest.$ac_ext
30747fi
30748ac_res=`eval echo '${'$as_ac_var'}'`
30749	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30750echo "${ECHO_T}$ac_res" >&6; }
30751if test `eval echo '${'$as_ac_var'}'` = yes; then
30752  cat >>confdefs.h <<_ACEOF
30753#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30754_ACEOF
30755 have_clock_gettime=yes
30756else
30757  { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
30758echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
30759if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
30760  echo $ECHO_N "(cached) $ECHO_C" >&6
30761else
30762  ac_check_lib_save_LIBS=$LIBS
30763LIBS="-lrt  $LIBS"
30764cat >conftest.$ac_ext <<_ACEOF
30765/* confdefs.h.  */
30766_ACEOF
30767cat confdefs.h >>conftest.$ac_ext
30768cat >>conftest.$ac_ext <<_ACEOF
30769/* end confdefs.h.  */
30770
30771/* Override any GCC internal prototype to avoid an error.
30772   Use char because int might match the return type of a GCC
30773   builtin and then its argument prototype would still apply.  */
30774#ifdef __cplusplus
30775extern "C"
30776#endif
30777char clock_gettime ();
30778int
30779main ()
30780{
30781return clock_gettime ();
30782  ;
30783  return 0;
30784}
30785_ACEOF
30786rm -f conftest.$ac_objext conftest$ac_exeext
30787if { (ac_try="$ac_link"
30788case "(($ac_try" in
30789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30790  *) ac_try_echo=$ac_try;;
30791esac
30792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30793  (eval "$ac_link") 2>conftest.er1
30794  ac_status=$?
30795  grep -v '^ *+' conftest.er1 >conftest.err
30796  rm -f conftest.er1
30797  cat conftest.err >&5
30798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30799  (exit $ac_status); } && {
30800	 test -z "$ac_c_werror_flag" ||
30801	 test ! -s conftest.err
30802       } && test -s conftest$ac_exeext &&
30803       $as_test_x conftest$ac_exeext; then
30804  ac_cv_lib_rt_clock_gettime=yes
30805else
30806  echo "$as_me: failed program was:" >&5
30807sed 's/^/| /' conftest.$ac_ext >&5
30808
30809	ac_cv_lib_rt_clock_gettime=no
30810fi
30811
30812rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30813      conftest$ac_exeext conftest.$ac_ext
30814LIBS=$ac_check_lib_save_LIBS
30815fi
30816{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
30817echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
30818if test $ac_cv_lib_rt_clock_gettime = yes; then
30819  have_clock_gettime=-lrt
30820else
30821  have_clock_gettime=no
30822fi
30823
30824fi
30825done
30826
30827
30828{ echo "$as_me:$LINENO: checking for a useful monotonic clock ..." >&5
30829echo $ECHO_N "checking for a useful monotonic clock ...... $ECHO_C" >&6; }
30830
30831if ! test "x$have_clock_gettime" = xno; then
30832    if ! test "x$have_clock_gettime" = xyes; then
30833        CLOCK_LIBS="$have_clock_gettime"
30834    else
30835        CLOCK_LIBS=""
30836    fi
30837
30838    LIBS_SAVE="$LIBS"
30839    LIBS="$CLOCK_LIBS"
30840    CPPFLAGS_SAVE="$CPPFLAGS"
30841
30842    if test x"$glibc" = xyes; then
30843        CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L"
30844    fi
30845
30846    if test "$cross_compiling" = yes; then
30847  MONOTONIC_CLOCK="cross compiling"
30848else
30849  cat >conftest.$ac_ext <<_ACEOF
30850
30851#include <time.h>
30852
30853int main(int argc, char *argv[]) {
30854    struct timespec tp;
30855
30856    if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0)
30857        return 0;
30858    else
30859        return 1;
30860}
30861
30862_ACEOF
30863rm -f conftest$ac_exeext
30864if { (ac_try="$ac_link"
30865case "(($ac_try" in
30866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30867  *) ac_try_echo=$ac_try;;
30868esac
30869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30870  (eval "$ac_link") 2>&5
30871  ac_status=$?
30872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30873  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30874  { (case "(($ac_try" in
30875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30876  *) ac_try_echo=$ac_try;;
30877esac
30878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30879  (eval "$ac_try") 2>&5
30880  ac_status=$?
30881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30882  (exit $ac_status); }; }; then
30883  MONOTONIC_CLOCK=yes
30884else
30885  echo "$as_me: program exited with status $ac_status" >&5
30886echo "$as_me: failed program was:" >&5
30887sed 's/^/| /' conftest.$ac_ext >&5
30888
30889( exit $ac_status )
30890MONOTONIC_CLOCK=no
30891fi
30892rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30893fi
30894
30895
30896
30897    LIBS="$LIBS_SAVE"
30898    CPPFLAGS="$CPPFLAGS_SAVE"
30899else
30900    MONOTONIC_CLOCK=no
30901fi
30902
30903{ echo "$as_me:$LINENO: result: $MONOTONIC_CLOCK" >&5
30904echo "${ECHO_T}$MONOTONIC_CLOCK" >&6; }
30905
30906if test "x$MONOTONIC_CLOCK" = xyes; then
30907
30908cat >>confdefs.h <<\_ACEOF
30909#define MONOTONIC_CLOCK 1
30910_ACEOF
30911
30912    LIBS="$LIBS $CLOCK_LIBS"
30913fi
30914
30915 if test "x$XV" = xyes; then
30916  XV_TRUE=
30917  XV_FALSE='#'
30918else
30919  XV_TRUE='#'
30920  XV_FALSE=
30921fi
30922
30923if test "x$XV" = xyes; then
30924
30925cat >>confdefs.h <<\_ACEOF
30926#define XV 1
30927_ACEOF
30928
30929
30930cat >>confdefs.h <<\_ACEOF
30931#define XvExtension 1
30932_ACEOF
30933
30934	REQUIRED_MODULES="$REQUIRED_MODULES $VIDEOPROTO"
30935	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $VIDEOPROTO"
30936else
30937	XVMC=no
30938fi
30939
30940 if test "x$XVMC" = xyes; then
30941  XVMC_TRUE=
30942  XVMC_FALSE='#'
30943else
30944  XVMC_TRUE='#'
30945  XVMC_FALSE=
30946fi
30947
30948if test "x$XVMC" = xyes; then
30949
30950cat >>confdefs.h <<\_ACEOF
30951#define XvMCExtension 1
30952_ACEOF
30953
30954fi
30955
30956 if test "x$XREGISTRY" = xyes; then
30957  XREGISTRY_TRUE=
30958  XREGISTRY_FALSE='#'
30959else
30960  XREGISTRY_TRUE='#'
30961  XREGISTRY_FALSE=
30962fi
30963
30964if test "x$XREGISTRY" = xyes; then
30965
30966cat >>confdefs.h <<\_ACEOF
30967#define XREGISTRY 1
30968_ACEOF
30969
30970fi
30971
30972 if test "x$COMPOSITE" = xyes; then
30973  COMPOSITE_TRUE=
30974  COMPOSITE_FALSE='#'
30975else
30976  COMPOSITE_TRUE='#'
30977  COMPOSITE_FALSE=
30978fi
30979
30980if test "x$COMPOSITE" = xyes; then
30981
30982cat >>confdefs.h <<\_ACEOF
30983#define COMPOSITE 1
30984_ACEOF
30985
30986	REQUIRED_MODULES="$REQUIRED_MODULES $COMPOSITEPROTO"
30987	COMPOSITE_LIB='$(top_builddir)/composite/libcomposite.la'
30988	COMPOSITE_INC='-I$(top_srcdir)/composite'
30989fi
30990
30991 if test "x$MITSHM" = xyes; then
30992  MITSHM_TRUE=
30993  MITSHM_FALSE='#'
30994else
30995  MITSHM_TRUE='#'
30996  MITSHM_FALSE=
30997fi
30998
30999if test "x$MITSHM" = xyes; then
31000
31001cat >>confdefs.h <<\_ACEOF
31002#define MITSHM 1
31003_ACEOF
31004
31005
31006cat >>confdefs.h <<\_ACEOF
31007#define HAS_SHM 1
31008_ACEOF
31009
31010fi
31011
31012 if test "x$RECORD" = xyes; then
31013  RECORD_TRUE=
31014  RECORD_FALSE='#'
31015else
31016  RECORD_TRUE='#'
31017  RECORD_FALSE=
31018fi
31019
31020if test "x$RECORD" = xyes; then
31021
31022cat >>confdefs.h <<\_ACEOF
31023#define XRECORD 1
31024_ACEOF
31025
31026	REQUIRED_MODULES="$REQUIRED_MODULES $RECORDPROTO"
31027	RECORD_LIB='$(top_builddir)/record/librecord.la'
31028fi
31029
31030 if test "x$SCREENSAVER" = xyes; then
31031  SCREENSAVER_TRUE=
31032  SCREENSAVER_FALSE='#'
31033else
31034  SCREENSAVER_TRUE='#'
31035  SCREENSAVER_FALSE=
31036fi
31037
31038if test "x$SCREENSAVER" = xyes; then
31039
31040cat >>confdefs.h <<\_ACEOF
31041#define SCREENSAVER 1
31042_ACEOF
31043
31044	REQUIRED_MODULES="$REQUIRED_MODULES $SCRNSAVERPROTO"
31045fi
31046
31047 if test "x$RES" = xyes; then
31048  RES_TRUE=
31049  RES_FALSE='#'
31050else
31051  RES_TRUE='#'
31052  RES_FALSE=
31053fi
31054
31055if test "x$RES" = xyes; then
31056
31057cat >>confdefs.h <<\_ACEOF
31058#define RES 1
31059_ACEOF
31060
31061	REQUIRED_MODULES="$REQUIRED_MODULES $RESOURCEPROTO"
31062fi
31063
31064if test "x$GLX" = xyes; then
31065
31066pkg_failed=no
31067{ echo "$as_me:$LINENO: checking for XLIB" >&5
31068echo $ECHO_N "checking for XLIB... $ECHO_C" >&6; }
31069
31070if test -n "$XLIB_CFLAGS"; then
31071    pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
31072 elif test -n "$PKG_CONFIG"; then
31073    if test -n "$PKG_CONFIG" && \
31074    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
31075  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
31076  ac_status=$?
31077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31078  (exit $ac_status); }; then
31079  pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
31080else
31081  pkg_failed=yes
31082fi
31083 else
31084    pkg_failed=untried
31085fi
31086if test -n "$XLIB_LIBS"; then
31087    pkg_cv_XLIB_LIBS="$XLIB_LIBS"
31088 elif test -n "$PKG_CONFIG"; then
31089    if test -n "$PKG_CONFIG" && \
31090    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
31091  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
31092  ac_status=$?
31093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31094  (exit $ac_status); }; then
31095  pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
31096else
31097  pkg_failed=yes
31098fi
31099 else
31100    pkg_failed=untried
31101fi
31102
31103
31104
31105if test $pkg_failed = yes; then
31106   	{ echo "$as_me:$LINENO: result: no" >&5
31107echo "${ECHO_T}no" >&6; }
31108
31109if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31110        _pkg_short_errors_supported=yes
31111else
31112        _pkg_short_errors_supported=no
31113fi
31114        if test $_pkg_short_errors_supported = yes; then
31115	        XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
31116        else
31117	        XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
31118        fi
31119	# Put the nasty error message in config.log where it belongs
31120	echo "$XLIB_PKG_ERRORS" >&5
31121
31122	{ { echo "$as_me:$LINENO: error: Package requirements (x11) were not met:
31123
31124$XLIB_PKG_ERRORS
31125
31126Consider adjusting the PKG_CONFIG_PATH environment variable if you
31127installed software in a non-standard prefix.
31128
31129Alternatively, you may set the environment variables XLIB_CFLAGS
31130and XLIB_LIBS to avoid the need to call pkg-config.
31131See the pkg-config man page for more details." >&5
31132echo "$as_me: error: Package requirements (x11) were not met:
31133
31134$XLIB_PKG_ERRORS
31135
31136Consider adjusting the PKG_CONFIG_PATH environment variable if you
31137installed software in a non-standard prefix.
31138
31139Alternatively, you may set the environment variables XLIB_CFLAGS
31140and XLIB_LIBS to avoid the need to call pkg-config.
31141See the pkg-config man page for more details." >&2;}
31142   { (exit 1); exit 1; }; }
31143elif test $pkg_failed = untried; then
31144     	{ echo "$as_me:$LINENO: result: no" >&5
31145echo "${ECHO_T}no" >&6; }
31146	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
31147is in your PATH or set the PKG_CONFIG environment variable to the full
31148path to pkg-config.
31149
31150Alternatively, you may set the environment variables XLIB_CFLAGS
31151and XLIB_LIBS to avoid the need to call pkg-config.
31152See the pkg-config man page for more details.
31153
31154To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31155See \`config.log' for more details." >&5
31156echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
31157is in your PATH or set the PKG_CONFIG environment variable to the full
31158path to pkg-config.
31159
31160Alternatively, you may set the environment variables XLIB_CFLAGS
31161and XLIB_LIBS to avoid the need to call pkg-config.
31162See the pkg-config man page for more details.
31163
31164To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31165See \`config.log' for more details." >&2;}
31166   { (exit 1); exit 1; }; }
31167else
31168	XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS
31169	XLIB_LIBS=$pkg_cv_XLIB_LIBS
31170        { echo "$as_me:$LINENO: result: yes" >&5
31171echo "${ECHO_T}yes" >&6; }
31172
31173fi
31174
31175pkg_failed=no
31176{ echo "$as_me:$LINENO: checking for GL" >&5
31177echo $ECHO_N "checking for GL... $ECHO_C" >&6; }
31178
31179if test -n "$GL_CFLAGS"; then
31180    pkg_cv_GL_CFLAGS="$GL_CFLAGS"
31181 elif test -n "$PKG_CONFIG"; then
31182    if test -n "$PKG_CONFIG" && \
31183    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\"") >&5
31184  ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5
31185  ac_status=$?
31186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31187  (exit $ac_status); }; then
31188  pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "$GLPROTO $LIBGL" 2>/dev/null`
31189else
31190  pkg_failed=yes
31191fi
31192 else
31193    pkg_failed=untried
31194fi
31195if test -n "$GL_LIBS"; then
31196    pkg_cv_GL_LIBS="$GL_LIBS"
31197 elif test -n "$PKG_CONFIG"; then
31198    if test -n "$PKG_CONFIG" && \
31199    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\"") >&5
31200  ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5
31201  ac_status=$?
31202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31203  (exit $ac_status); }; then
31204  pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "$GLPROTO $LIBGL" 2>/dev/null`
31205else
31206  pkg_failed=yes
31207fi
31208 else
31209    pkg_failed=untried
31210fi
31211
31212
31213
31214if test $pkg_failed = yes; then
31215   	{ echo "$as_me:$LINENO: result: no" >&5
31216echo "${ECHO_T}no" >&6; }
31217
31218if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31219        _pkg_short_errors_supported=yes
31220else
31221        _pkg_short_errors_supported=no
31222fi
31223        if test $_pkg_short_errors_supported = yes; then
31224	        GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$GLPROTO $LIBGL" 2>&1`
31225        else
31226	        GL_PKG_ERRORS=`$PKG_CONFIG --print-errors "$GLPROTO $LIBGL" 2>&1`
31227        fi
31228	# Put the nasty error message in config.log where it belongs
31229	echo "$GL_PKG_ERRORS" >&5
31230
31231	{ { echo "$as_me:$LINENO: error: Package requirements ($GLPROTO $LIBGL) were not met:
31232
31233$GL_PKG_ERRORS
31234
31235Consider adjusting the PKG_CONFIG_PATH environment variable if you
31236installed software in a non-standard prefix.
31237
31238Alternatively, you may set the environment variables GL_CFLAGS
31239and GL_LIBS to avoid the need to call pkg-config.
31240See the pkg-config man page for more details." >&5
31241echo "$as_me: error: Package requirements ($GLPROTO $LIBGL) were not met:
31242
31243$GL_PKG_ERRORS
31244
31245Consider adjusting the PKG_CONFIG_PATH environment variable if you
31246installed software in a non-standard prefix.
31247
31248Alternatively, you may set the environment variables GL_CFLAGS
31249and GL_LIBS to avoid the need to call pkg-config.
31250See the pkg-config man page for more details." >&2;}
31251   { (exit 1); exit 1; }; }
31252elif test $pkg_failed = untried; then
31253     	{ echo "$as_me:$LINENO: result: no" >&5
31254echo "${ECHO_T}no" >&6; }
31255	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
31256is in your PATH or set the PKG_CONFIG environment variable to the full
31257path to pkg-config.
31258
31259Alternatively, you may set the environment variables GL_CFLAGS
31260and GL_LIBS to avoid the need to call pkg-config.
31261See the pkg-config man page for more details.
31262
31263To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31264See \`config.log' for more details." >&5
31265echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
31266is in your PATH or set the PKG_CONFIG environment variable to the full
31267path to pkg-config.
31268
31269Alternatively, you may set the environment variables GL_CFLAGS
31270and GL_LIBS to avoid the need to call pkg-config.
31271See the pkg-config man page for more details.
31272
31273To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31274See \`config.log' for more details." >&2;}
31275   { (exit 1); exit 1; }; }
31276else
31277	GL_CFLAGS=$pkg_cv_GL_CFLAGS
31278	GL_LIBS=$pkg_cv_GL_LIBS
31279        { echo "$as_me:$LINENO: result: yes" >&5
31280echo "${ECHO_T}yes" >&6; }
31281
31282fi
31283
31284
31285cat >>confdefs.h <<\_ACEOF
31286#define GLXEXT 1
31287_ACEOF
31288
31289	GLX_LIBS='$(top_builddir)/glx/libglx.la'
31290	GLX_SYS_LIBS="$GLX_SYS_LIBS"
31291else
31292        GLX=no
31293fi
31294 if test "x$GLX" = xyes; then
31295  GLX_TRUE=
31296  GLX_FALSE='#'
31297else
31298  GLX_TRUE='#'
31299  GLX_FALSE=
31300fi
31301
31302
31303if test "x$AIGLX" = xyes -a "x$GLX" = xyes -a \( "x$DRI" = xyes -o "x$DRI2" = xyes \); then
31304
31305cat >>confdefs.h <<\_ACEOF
31306#define AIGLX 1
31307_ACEOF
31308
31309else
31310	AIGLX=no
31311fi
31312 if test "x$AIGLX" = xyes; then
31313  AIGLX_TRUE=
31314  AIGLX_FALSE='#'
31315else
31316  AIGLX_TRUE='#'
31317  AIGLX_FALSE=
31318fi
31319
31320
31321if test "x$GLX_USE_TLS" = xyes ; then
31322	GLX_DEFINES="-DGLX_USE_TLS -DPTHREADS"
31323	GLX_SYS_LIBS="$GLX_SYS_LIBS -lpthread"
31324fi
31325
31326
31327 if test "x$DRI" = xyes; then
31328  DRI_TRUE=
31329  DRI_FALSE='#'
31330else
31331  DRI_TRUE='#'
31332  DRI_FALSE=
31333fi
31334
31335if test "x$DRI" = xyes; then
31336
31337cat >>confdefs.h <<\_ACEOF
31338#define XF86DRI 1
31339_ACEOF
31340
31341
31342pkg_failed=no
31343{ echo "$as_me:$LINENO: checking for DRIPROTO" >&5
31344echo $ECHO_N "checking for DRIPROTO... $ECHO_C" >&6; }
31345
31346if test -n "$DRIPROTO_CFLAGS"; then
31347    pkg_cv_DRIPROTO_CFLAGS="$DRIPROTO_CFLAGS"
31348 elif test -n "$PKG_CONFIG"; then
31349    if test -n "$PKG_CONFIG" && \
31350    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$DRIPROTO\"") >&5
31351  ($PKG_CONFIG --exists --print-errors "$DRIPROTO") 2>&5
31352  ac_status=$?
31353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31354  (exit $ac_status); }; then
31355  pkg_cv_DRIPROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRIPROTO" 2>/dev/null`
31356else
31357  pkg_failed=yes
31358fi
31359 else
31360    pkg_failed=untried
31361fi
31362if test -n "$DRIPROTO_LIBS"; then
31363    pkg_cv_DRIPROTO_LIBS="$DRIPROTO_LIBS"
31364 elif test -n "$PKG_CONFIG"; then
31365    if test -n "$PKG_CONFIG" && \
31366    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$DRIPROTO\"") >&5
31367  ($PKG_CONFIG --exists --print-errors "$DRIPROTO") 2>&5
31368  ac_status=$?
31369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31370  (exit $ac_status); }; then
31371  pkg_cv_DRIPROTO_LIBS=`$PKG_CONFIG --libs "$DRIPROTO" 2>/dev/null`
31372else
31373  pkg_failed=yes
31374fi
31375 else
31376    pkg_failed=untried
31377fi
31378
31379
31380
31381if test $pkg_failed = yes; then
31382   	{ echo "$as_me:$LINENO: result: no" >&5
31383echo "${ECHO_T}no" >&6; }
31384
31385if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31386        _pkg_short_errors_supported=yes
31387else
31388        _pkg_short_errors_supported=no
31389fi
31390        if test $_pkg_short_errors_supported = yes; then
31391	        DRIPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$DRIPROTO" 2>&1`
31392        else
31393	        DRIPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors "$DRIPROTO" 2>&1`
31394        fi
31395	# Put the nasty error message in config.log where it belongs
31396	echo "$DRIPROTO_PKG_ERRORS" >&5
31397
31398	{ { echo "$as_me:$LINENO: error: Package requirements ($DRIPROTO) were not met:
31399
31400$DRIPROTO_PKG_ERRORS
31401
31402Consider adjusting the PKG_CONFIG_PATH environment variable if you
31403installed software in a non-standard prefix.
31404
31405Alternatively, you may set the environment variables DRIPROTO_CFLAGS
31406and DRIPROTO_LIBS to avoid the need to call pkg-config.
31407See the pkg-config man page for more details." >&5
31408echo "$as_me: error: Package requirements ($DRIPROTO) were not met:
31409
31410$DRIPROTO_PKG_ERRORS
31411
31412Consider adjusting the PKG_CONFIG_PATH environment variable if you
31413installed software in a non-standard prefix.
31414
31415Alternatively, you may set the environment variables DRIPROTO_CFLAGS
31416and DRIPROTO_LIBS to avoid the need to call pkg-config.
31417See the pkg-config man page for more details." >&2;}
31418   { (exit 1); exit 1; }; }
31419elif test $pkg_failed = untried; then
31420     	{ echo "$as_me:$LINENO: result: no" >&5
31421echo "${ECHO_T}no" >&6; }
31422	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
31423is in your PATH or set the PKG_CONFIG environment variable to the full
31424path to pkg-config.
31425
31426Alternatively, you may set the environment variables DRIPROTO_CFLAGS
31427and DRIPROTO_LIBS to avoid the need to call pkg-config.
31428See the pkg-config man page for more details.
31429
31430To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31431See \`config.log' for more details." >&5
31432echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
31433is in your PATH or set the PKG_CONFIG environment variable to the full
31434path to pkg-config.
31435
31436Alternatively, you may set the environment variables DRIPROTO_CFLAGS
31437and DRIPROTO_LIBS to avoid the need to call pkg-config.
31438See the pkg-config man page for more details.
31439
31440To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31441See \`config.log' for more details." >&2;}
31442   { (exit 1); exit 1; }; }
31443else
31444	DRIPROTO_CFLAGS=$pkg_cv_DRIPROTO_CFLAGS
31445	DRIPROTO_LIBS=$pkg_cv_DRIPROTO_LIBS
31446        { echo "$as_me:$LINENO: result: yes" >&5
31447echo "${ECHO_T}yes" >&6; }
31448
31449fi
31450
31451pkg_failed=no
31452{ echo "$as_me:$LINENO: checking for DRI" >&5
31453echo $ECHO_N "checking for DRI... $ECHO_C" >&6; }
31454
31455if test -n "$DRI_CFLAGS"; then
31456    pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
31457 elif test -n "$PKG_CONFIG"; then
31458    if test -n "$PKG_CONFIG" && \
31459    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBDRI\"") >&5
31460  ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBDRI") 2>&5
31461  ac_status=$?
31462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31463  (exit $ac_status); }; then
31464  pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "$GLPROTO $LIBDRI" 2>/dev/null`
31465else
31466  pkg_failed=yes
31467fi
31468 else
31469    pkg_failed=untried
31470fi
31471if test -n "$DRI_LIBS"; then
31472    pkg_cv_DRI_LIBS="$DRI_LIBS"
31473 elif test -n "$PKG_CONFIG"; then
31474    if test -n "$PKG_CONFIG" && \
31475    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBDRI\"") >&5
31476  ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBDRI") 2>&5
31477  ac_status=$?
31478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31479  (exit $ac_status); }; then
31480  pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "$GLPROTO $LIBDRI" 2>/dev/null`
31481else
31482  pkg_failed=yes
31483fi
31484 else
31485    pkg_failed=untried
31486fi
31487
31488
31489
31490if test $pkg_failed = yes; then
31491   	{ echo "$as_me:$LINENO: result: no" >&5
31492echo "${ECHO_T}no" >&6; }
31493
31494if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31495        _pkg_short_errors_supported=yes
31496else
31497        _pkg_short_errors_supported=no
31498fi
31499        if test $_pkg_short_errors_supported = yes; then
31500	        DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$GLPROTO $LIBDRI" 2>&1`
31501        else
31502	        DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "$GLPROTO $LIBDRI" 2>&1`
31503        fi
31504	# Put the nasty error message in config.log where it belongs
31505	echo "$DRI_PKG_ERRORS" >&5
31506
31507	{ { echo "$as_me:$LINENO: error: Package requirements ($GLPROTO $LIBDRI) were not met:
31508
31509$DRI_PKG_ERRORS
31510
31511Consider adjusting the PKG_CONFIG_PATH environment variable if you
31512installed software in a non-standard prefix.
31513
31514Alternatively, you may set the environment variables DRI_CFLAGS
31515and DRI_LIBS to avoid the need to call pkg-config.
31516See the pkg-config man page for more details." >&5
31517echo "$as_me: error: Package requirements ($GLPROTO $LIBDRI) were not met:
31518
31519$DRI_PKG_ERRORS
31520
31521Consider adjusting the PKG_CONFIG_PATH environment variable if you
31522installed software in a non-standard prefix.
31523
31524Alternatively, you may set the environment variables DRI_CFLAGS
31525and DRI_LIBS to avoid the need to call pkg-config.
31526See the pkg-config man page for more details." >&2;}
31527   { (exit 1); exit 1; }; }
31528elif test $pkg_failed = untried; then
31529     	{ echo "$as_me:$LINENO: result: no" >&5
31530echo "${ECHO_T}no" >&6; }
31531	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
31532is in your PATH or set the PKG_CONFIG environment variable to the full
31533path to pkg-config.
31534
31535Alternatively, you may set the environment variables DRI_CFLAGS
31536and DRI_LIBS to avoid the need to call pkg-config.
31537See the pkg-config man page for more details.
31538
31539To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31540See \`config.log' for more details." >&5
31541echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
31542is in your PATH or set the PKG_CONFIG environment variable to the full
31543path to pkg-config.
31544
31545Alternatively, you may set the environment variables DRI_CFLAGS
31546and DRI_LIBS to avoid the need to call pkg-config.
31547See the pkg-config man page for more details.
31548
31549To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31550See \`config.log' for more details." >&2;}
31551   { (exit 1); exit 1; }; }
31552else
31553	DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
31554	DRI_LIBS=$pkg_cv_DRI_LIBS
31555        { echo "$as_me:$LINENO: result: yes" >&5
31556echo "${ECHO_T}yes" >&6; }
31557
31558fi
31559
31560fi
31561
31562
31563pkg_failed=no
31564{ echo "$as_me:$LINENO: checking for DRI2PROTO" >&5
31565echo $ECHO_N "checking for DRI2PROTO... $ECHO_C" >&6; }
31566
31567if test -n "$DRI2PROTO_CFLAGS"; then
31568    pkg_cv_DRI2PROTO_CFLAGS="$DRI2PROTO_CFLAGS"
31569 elif test -n "$PKG_CONFIG"; then
31570    if test -n "$PKG_CONFIG" && \
31571    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\"") >&5
31572  ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5
31573  ac_status=$?
31574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31575  (exit $ac_status); }; then
31576  pkg_cv_DRI2PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI2PROTO" 2>/dev/null`
31577else
31578  pkg_failed=yes
31579fi
31580 else
31581    pkg_failed=untried
31582fi
31583if test -n "$DRI2PROTO_LIBS"; then
31584    pkg_cv_DRI2PROTO_LIBS="$DRI2PROTO_LIBS"
31585 elif test -n "$PKG_CONFIG"; then
31586    if test -n "$PKG_CONFIG" && \
31587    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\"") >&5
31588  ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5
31589  ac_status=$?
31590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31591  (exit $ac_status); }; then
31592  pkg_cv_DRI2PROTO_LIBS=`$PKG_CONFIG --libs "$DRI2PROTO" 2>/dev/null`
31593else
31594  pkg_failed=yes
31595fi
31596 else
31597    pkg_failed=untried
31598fi
31599
31600
31601
31602if test $pkg_failed = yes; then
31603   	{ echo "$as_me:$LINENO: result: no" >&5
31604echo "${ECHO_T}no" >&6; }
31605
31606if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31607        _pkg_short_errors_supported=yes
31608else
31609        _pkg_short_errors_supported=no
31610fi
31611        if test $_pkg_short_errors_supported = yes; then
31612	        DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$DRI2PROTO" 2>&1`
31613        else
31614	        DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors "$DRI2PROTO" 2>&1`
31615        fi
31616	# Put the nasty error message in config.log where it belongs
31617	echo "$DRI2PROTO_PKG_ERRORS" >&5
31618
31619	HAVE_DRI2PROTO=no
31620elif test $pkg_failed = untried; then
31621     	{ echo "$as_me:$LINENO: result: no" >&5
31622echo "${ECHO_T}no" >&6; }
31623	HAVE_DRI2PROTO=no
31624else
31625	DRI2PROTO_CFLAGS=$pkg_cv_DRI2PROTO_CFLAGS
31626	DRI2PROTO_LIBS=$pkg_cv_DRI2PROTO_LIBS
31627        { echo "$as_me:$LINENO: result: yes" >&5
31628echo "${ECHO_T}yes" >&6; }
31629	HAVE_DRI2PROTO=yes
31630fi
31631case "$DRI2,$HAVE_DRI2PROTO" in
31632	yes,no)
31633		{ { echo "$as_me:$LINENO: error: DRI2 requested, but dri2proto not found." >&5
31634echo "$as_me: error: DRI2 requested, but dri2proto not found." >&2;}
31635   { (exit 1); exit 1; }; }
31636		;;
31637	yes,yes | auto,yes)
31638
31639cat >>confdefs.h <<\_ACEOF
31640#define DRI2 1
31641_ACEOF
31642
31643		DRI2=yes
31644		SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI2PROTO"
31645		;;
31646esac
31647 if test "x$DRI2" = xyes; then
31648  DRI2_TRUE=
31649  DRI2_FALSE='#'
31650else
31651  DRI2_TRUE='#'
31652  DRI2_FALSE=
31653fi
31654
31655
31656if test "x$DRI" = xyes || test "x$DRI2" = xyes; then
31657	if test "x$DRM" = xyes; then
31658
31659cat >>confdefs.h <<\_ACEOF
31660#define WITH_LIBDRM 1
31661_ACEOF
31662
31663
31664pkg_failed=no
31665{ echo "$as_me:$LINENO: checking for LIBDRM" >&5
31666echo $ECHO_N "checking for LIBDRM... $ECHO_C" >&6; }
31667
31668if test -n "$LIBDRM_CFLAGS"; then
31669    pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
31670 elif test -n "$PKG_CONFIG"; then
31671    if test -n "$PKG_CONFIG" && \
31672    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\"") >&5
31673  ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5
31674  ac_status=$?
31675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31676  (exit $ac_status); }; then
31677  pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "$LIBDRM" 2>/dev/null`
31678else
31679  pkg_failed=yes
31680fi
31681 else
31682    pkg_failed=untried
31683fi
31684if test -n "$LIBDRM_LIBS"; then
31685    pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
31686 elif test -n "$PKG_CONFIG"; then
31687    if test -n "$PKG_CONFIG" && \
31688    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\"") >&5
31689  ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5
31690  ac_status=$?
31691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31692  (exit $ac_status); }; then
31693  pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "$LIBDRM" 2>/dev/null`
31694else
31695  pkg_failed=yes
31696fi
31697 else
31698    pkg_failed=untried
31699fi
31700
31701
31702
31703if test $pkg_failed = yes; then
31704   	{ echo "$as_me:$LINENO: result: no" >&5
31705echo "${ECHO_T}no" >&6; }
31706
31707if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31708        _pkg_short_errors_supported=yes
31709else
31710        _pkg_short_errors_supported=no
31711fi
31712        if test $_pkg_short_errors_supported = yes; then
31713	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBDRM" 2>&1`
31714        else
31715	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBDRM" 2>&1`
31716        fi
31717	# Put the nasty error message in config.log where it belongs
31718	echo "$LIBDRM_PKG_ERRORS" >&5
31719
31720	{ { echo "$as_me:$LINENO: error: Package requirements ($LIBDRM) were not met:
31721
31722$LIBDRM_PKG_ERRORS
31723
31724Consider adjusting the PKG_CONFIG_PATH environment variable if you
31725installed software in a non-standard prefix.
31726
31727Alternatively, you may set the environment variables LIBDRM_CFLAGS
31728and LIBDRM_LIBS to avoid the need to call pkg-config.
31729See the pkg-config man page for more details." >&5
31730echo "$as_me: error: Package requirements ($LIBDRM) were not met:
31731
31732$LIBDRM_PKG_ERRORS
31733
31734Consider adjusting the PKG_CONFIG_PATH environment variable if you
31735installed software in a non-standard prefix.
31736
31737Alternatively, you may set the environment variables LIBDRM_CFLAGS
31738and LIBDRM_LIBS to avoid the need to call pkg-config.
31739See the pkg-config man page for more details." >&2;}
31740   { (exit 1); exit 1; }; }
31741elif test $pkg_failed = untried; then
31742     	{ echo "$as_me:$LINENO: result: no" >&5
31743echo "${ECHO_T}no" >&6; }
31744	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
31745is in your PATH or set the PKG_CONFIG environment variable to the full
31746path to pkg-config.
31747
31748Alternatively, you may set the environment variables LIBDRM_CFLAGS
31749and LIBDRM_LIBS to avoid the need to call pkg-config.
31750See the pkg-config man page for more details.
31751
31752To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31753See \`config.log' for more details." >&5
31754echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
31755is in your PATH or set the PKG_CONFIG environment variable to the full
31756path to pkg-config.
31757
31758Alternatively, you may set the environment variables LIBDRM_CFLAGS
31759and LIBDRM_LIBS to avoid the need to call pkg-config.
31760See the pkg-config man page for more details.
31761
31762To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31763See \`config.log' for more details." >&2;}
31764   { (exit 1); exit 1; }; }
31765else
31766	LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
31767	LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
31768        { echo "$as_me:$LINENO: result: yes" >&5
31769echo "${ECHO_T}yes" >&6; }
31770
31771fi
31772	fi
31773fi
31774
31775if test "x$DRI2" = xyes; then
31776	save_CFLAGS=$CFLAGS
31777	CFLAGS="$GL_CFLAGS $LIBDRM_CFLAGS"
31778	cat >conftest.$ac_ext <<_ACEOF
31779/* confdefs.h.  */
31780_ACEOF
31781cat confdefs.h >>conftest.$ac_ext
31782cat >>conftest.$ac_ext <<_ACEOF
31783/* end confdefs.h.  */
31784#include <GL/gl.h>
31785#include <GL/internal/dri_interface.h>
31786#ifndef __DRI_DRI2
31787#error DRI2 extension not available.
31788#endif
31789_ACEOF
31790rm -f conftest.$ac_objext
31791if { (ac_try="$ac_compile"
31792case "(($ac_try" in
31793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31794  *) ac_try_echo=$ac_try;;
31795esac
31796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31797  (eval "$ac_compile") 2>conftest.er1
31798  ac_status=$?
31799  grep -v '^ *+' conftest.er1 >conftest.err
31800  rm -f conftest.er1
31801  cat conftest.err >&5
31802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31803  (exit $ac_status); } && {
31804	 test -z "$ac_c_werror_flag" ||
31805	 test ! -s conftest.err
31806       } && test -s conftest.$ac_objext; then
31807  HAVE_DRI2EXTENSION=yes
31808else
31809  echo "$as_me: failed program was:" >&5
31810sed 's/^/| /' conftest.$ac_ext >&5
31811
31812	HAVE_DRI2EXTENSION=no
31813fi
31814
31815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31816	CFLAGS=$save_CFLAGS
31817	if test "x$HAVE_DRI2EXTENSION" = xyes; then
31818
31819cat >>confdefs.h <<\_ACEOF
31820#define DRI2_AIGLX 1
31821_ACEOF
31822
31823		DRI2_AIGLX=yes
31824	else
31825		{ echo "$as_me:$LINENO: DRI2 AIGLX disabled, __DRI_DRI2 not defined in dri_interface.h." >&5
31826echo "$as_me: DRI2 AIGLX disabled, __DRI_DRI2 not defined in dri_interface.h." >&6;}
31827		DRI2_AIGLX=no
31828	fi
31829fi
31830 if test "x$DRI2_AIGLX" = xyes; then
31831  DRI2_AIGLX_TRUE=
31832  DRI2_AIGLX_FALSE='#'
31833else
31834  DRI2_AIGLX_TRUE='#'
31835  DRI2_AIGLX_FALSE=
31836fi
31837
31838
31839
31840 if test "x$XINERAMA" = xyes; then
31841  XINERAMA_TRUE=
31842  XINERAMA_FALSE='#'
31843else
31844  XINERAMA_TRUE='#'
31845  XINERAMA_FALSE=
31846fi
31847
31848if test "x$XINERAMA" = xyes; then
31849
31850cat >>confdefs.h <<\_ACEOF
31851#define XINERAMA 1
31852_ACEOF
31853
31854
31855cat >>confdefs.h <<\_ACEOF
31856#define PANORAMIX 1
31857_ACEOF
31858
31859	REQUIRED_MODULES="$REQUIRED_MODULES $XINERAMAPROTO"
31860	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $XINERAMAPROTO"
31861fi
31862
31863 if test "x$XACE" = xyes; then
31864  XACE_TRUE=
31865  XACE_FALSE='#'
31866else
31867  XACE_TRUE='#'
31868  XACE_FALSE=
31869fi
31870
31871if test "x$XACE" = xyes; then
31872
31873cat >>confdefs.h <<\_ACEOF
31874#define XACE 1
31875_ACEOF
31876
31877fi
31878
31879 if test "x$XSELINUX" = xyes; then
31880  XSELINUX_TRUE=
31881  XSELINUX_FALSE='#'
31882else
31883  XSELINUX_TRUE='#'
31884  XSELINUX_FALSE=
31885fi
31886
31887if test "x$XSELINUX" = xyes; then
31888	if test "x$XACE" != xyes; then
31889		{ { echo "$as_me:$LINENO: error: cannot build SELinux extension without X-ACE" >&5
31890echo "$as_me: error: cannot build SELinux extension without X-ACE" >&2;}
31891   { (exit 1); exit 1; }; }
31892	fi
31893
31894for ac_header in libaudit.h
31895do
31896as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31897if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31898  { echo "$as_me:$LINENO: checking for $ac_header" >&5
31899echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31900if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31901  echo $ECHO_N "(cached) $ECHO_C" >&6
31902fi
31903ac_res=`eval echo '${'$as_ac_Header'}'`
31904	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31905echo "${ECHO_T}$ac_res" >&6; }
31906else
31907  # Is the header compilable?
31908{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
31909echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31910cat >conftest.$ac_ext <<_ACEOF
31911/* confdefs.h.  */
31912_ACEOF
31913cat confdefs.h >>conftest.$ac_ext
31914cat >>conftest.$ac_ext <<_ACEOF
31915/* end confdefs.h.  */
31916$ac_includes_default
31917#include <$ac_header>
31918_ACEOF
31919rm -f conftest.$ac_objext
31920if { (ac_try="$ac_compile"
31921case "(($ac_try" in
31922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31923  *) ac_try_echo=$ac_try;;
31924esac
31925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31926  (eval "$ac_compile") 2>conftest.er1
31927  ac_status=$?
31928  grep -v '^ *+' conftest.er1 >conftest.err
31929  rm -f conftest.er1
31930  cat conftest.err >&5
31931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31932  (exit $ac_status); } && {
31933	 test -z "$ac_c_werror_flag" ||
31934	 test ! -s conftest.err
31935       } && test -s conftest.$ac_objext; then
31936  ac_header_compiler=yes
31937else
31938  echo "$as_me: failed program was:" >&5
31939sed 's/^/| /' conftest.$ac_ext >&5
31940
31941	ac_header_compiler=no
31942fi
31943
31944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31945{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31946echo "${ECHO_T}$ac_header_compiler" >&6; }
31947
31948# Is the header present?
31949{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
31950echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31951cat >conftest.$ac_ext <<_ACEOF
31952/* confdefs.h.  */
31953_ACEOF
31954cat confdefs.h >>conftest.$ac_ext
31955cat >>conftest.$ac_ext <<_ACEOF
31956/* end confdefs.h.  */
31957#include <$ac_header>
31958_ACEOF
31959if { (ac_try="$ac_cpp conftest.$ac_ext"
31960case "(($ac_try" in
31961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31962  *) ac_try_echo=$ac_try;;
31963esac
31964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31965  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31966  ac_status=$?
31967  grep -v '^ *+' conftest.er1 >conftest.err
31968  rm -f conftest.er1
31969  cat conftest.err >&5
31970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31971  (exit $ac_status); } >/dev/null && {
31972	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31973	 test ! -s conftest.err
31974       }; then
31975  ac_header_preproc=yes
31976else
31977  echo "$as_me: failed program was:" >&5
31978sed 's/^/| /' conftest.$ac_ext >&5
31979
31980  ac_header_preproc=no
31981fi
31982
31983rm -f conftest.err conftest.$ac_ext
31984{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31985echo "${ECHO_T}$ac_header_preproc" >&6; }
31986
31987# So?  What about this header?
31988case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31989  yes:no: )
31990    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31991echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31992    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31993echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31994    ac_header_preproc=yes
31995    ;;
31996  no:yes:* )
31997    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31998echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31999    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32000echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32001    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32002echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32003    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32004echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32005    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32006echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32007    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32008echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32009    ( cat <<\_ASBOX
32010## ---------------------------------------------------------------------- ##
32011## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
32012## ---------------------------------------------------------------------- ##
32013_ASBOX
32014     ) | sed "s/^/$as_me: WARNING:     /" >&2
32015    ;;
32016esac
32017{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32018echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32019if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32020  echo $ECHO_N "(cached) $ECHO_C" >&6
32021else
32022  eval "$as_ac_Header=\$ac_header_preproc"
32023fi
32024ac_res=`eval echo '${'$as_ac_Header'}'`
32025	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32026echo "${ECHO_T}$ac_res" >&6; }
32027
32028fi
32029if test `eval echo '${'$as_ac_Header'}'` = yes; then
32030  cat >>confdefs.h <<_ACEOF
32031#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32032_ACEOF
32033
32034else
32035  { { echo "$as_me:$LINENO: error: SELinux extension requires audit system headers" >&5
32036echo "$as_me: error: SELinux extension requires audit system headers" >&2;}
32037   { (exit 1); exit 1; }; }
32038fi
32039
32040done
32041
32042
32043{ echo "$as_me:$LINENO: checking for audit_open in -laudit" >&5
32044echo $ECHO_N "checking for audit_open in -laudit... $ECHO_C" >&6; }
32045if test "${ac_cv_lib_audit_audit_open+set}" = set; then
32046  echo $ECHO_N "(cached) $ECHO_C" >&6
32047else
32048  ac_check_lib_save_LIBS=$LIBS
32049LIBS="-laudit  $LIBS"
32050cat >conftest.$ac_ext <<_ACEOF
32051/* confdefs.h.  */
32052_ACEOF
32053cat confdefs.h >>conftest.$ac_ext
32054cat >>conftest.$ac_ext <<_ACEOF
32055/* end confdefs.h.  */
32056
32057/* Override any GCC internal prototype to avoid an error.
32058   Use char because int might match the return type of a GCC
32059   builtin and then its argument prototype would still apply.  */
32060#ifdef __cplusplus
32061extern "C"
32062#endif
32063char audit_open ();
32064int
32065main ()
32066{
32067return audit_open ();
32068  ;
32069  return 0;
32070}
32071_ACEOF
32072rm -f conftest.$ac_objext conftest$ac_exeext
32073if { (ac_try="$ac_link"
32074case "(($ac_try" in
32075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32076  *) ac_try_echo=$ac_try;;
32077esac
32078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32079  (eval "$ac_link") 2>conftest.er1
32080  ac_status=$?
32081  grep -v '^ *+' conftest.er1 >conftest.err
32082  rm -f conftest.er1
32083  cat conftest.err >&5
32084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32085  (exit $ac_status); } && {
32086	 test -z "$ac_c_werror_flag" ||
32087	 test ! -s conftest.err
32088       } && test -s conftest$ac_exeext &&
32089       $as_test_x conftest$ac_exeext; then
32090  ac_cv_lib_audit_audit_open=yes
32091else
32092  echo "$as_me: failed program was:" >&5
32093sed 's/^/| /' conftest.$ac_ext >&5
32094
32095	ac_cv_lib_audit_audit_open=no
32096fi
32097
32098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32099      conftest$ac_exeext conftest.$ac_ext
32100LIBS=$ac_check_lib_save_LIBS
32101fi
32102{ echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_open" >&5
32103echo "${ECHO_T}$ac_cv_lib_audit_audit_open" >&6; }
32104if test $ac_cv_lib_audit_audit_open = yes; then
32105  cat >>confdefs.h <<_ACEOF
32106#define HAVE_LIBAUDIT 1
32107_ACEOF
32108
32109  LIBS="-laudit $LIBS"
32110
32111else
32112  { { echo "$as_me:$LINENO: error: SELinux extension requires audit system library" >&5
32113echo "$as_me: error: SELinux extension requires audit system library" >&2;}
32114   { (exit 1); exit 1; }; }
32115fi
32116
32117
32118pkg_failed=no
32119{ echo "$as_me:$LINENO: checking for SELINUX" >&5
32120echo $ECHO_N "checking for SELINUX... $ECHO_C" >&6; }
32121
32122if test -n "$SELINUX_CFLAGS"; then
32123    pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS"
32124 elif test -n "$PKG_CONFIG"; then
32125    if test -n "$PKG_CONFIG" && \
32126    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\"") >&5
32127  ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5
32128  ac_status=$?
32129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130  (exit $ac_status); }; then
32131  pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "$LIBSELINUX" 2>/dev/null`
32132else
32133  pkg_failed=yes
32134fi
32135 else
32136    pkg_failed=untried
32137fi
32138if test -n "$SELINUX_LIBS"; then
32139    pkg_cv_SELINUX_LIBS="$SELINUX_LIBS"
32140 elif test -n "$PKG_CONFIG"; then
32141    if test -n "$PKG_CONFIG" && \
32142    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\"") >&5
32143  ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5
32144  ac_status=$?
32145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32146  (exit $ac_status); }; then
32147  pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "$LIBSELINUX" 2>/dev/null`
32148else
32149  pkg_failed=yes
32150fi
32151 else
32152    pkg_failed=untried
32153fi
32154
32155
32156
32157if test $pkg_failed = yes; then
32158   	{ echo "$as_me:$LINENO: result: no" >&5
32159echo "${ECHO_T}no" >&6; }
32160
32161if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32162        _pkg_short_errors_supported=yes
32163else
32164        _pkg_short_errors_supported=no
32165fi
32166        if test $_pkg_short_errors_supported = yes; then
32167	        SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBSELINUX" 2>&1`
32168        else
32169	        SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBSELINUX" 2>&1`
32170        fi
32171	# Put the nasty error message in config.log where it belongs
32172	echo "$SELINUX_PKG_ERRORS" >&5
32173
32174	{ { echo "$as_me:$LINENO: error: Package requirements ($LIBSELINUX) were not met:
32175
32176$SELINUX_PKG_ERRORS
32177
32178Consider adjusting the PKG_CONFIG_PATH environment variable if you
32179installed software in a non-standard prefix.
32180
32181Alternatively, you may set the environment variables SELINUX_CFLAGS
32182and SELINUX_LIBS to avoid the need to call pkg-config.
32183See the pkg-config man page for more details." >&5
32184echo "$as_me: error: Package requirements ($LIBSELINUX) were not met:
32185
32186$SELINUX_PKG_ERRORS
32187
32188Consider adjusting the PKG_CONFIG_PATH environment variable if you
32189installed software in a non-standard prefix.
32190
32191Alternatively, you may set the environment variables SELINUX_CFLAGS
32192and SELINUX_LIBS to avoid the need to call pkg-config.
32193See the pkg-config man page for more details." >&2;}
32194   { (exit 1); exit 1; }; }
32195elif test $pkg_failed = untried; then
32196     	{ echo "$as_me:$LINENO: result: no" >&5
32197echo "${ECHO_T}no" >&6; }
32198	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
32199is in your PATH or set the PKG_CONFIG environment variable to the full
32200path to pkg-config.
32201
32202Alternatively, you may set the environment variables SELINUX_CFLAGS
32203and SELINUX_LIBS to avoid the need to call pkg-config.
32204See the pkg-config man page for more details.
32205
32206To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32207See \`config.log' for more details." >&5
32208echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
32209is in your PATH or set the PKG_CONFIG environment variable to the full
32210path to pkg-config.
32211
32212Alternatively, you may set the environment variables SELINUX_CFLAGS
32213and SELINUX_LIBS to avoid the need to call pkg-config.
32214See the pkg-config man page for more details.
32215
32216To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32217See \`config.log' for more details." >&2;}
32218   { (exit 1); exit 1; }; }
32219else
32220	SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS
32221	SELINUX_LIBS=$pkg_cv_SELINUX_LIBS
32222        { echo "$as_me:$LINENO: result: yes" >&5
32223echo "${ECHO_T}yes" >&6; }
32224
32225fi
32226	SELINUX_LIBS="$SELINUX_LIBS -laudit"
32227
32228cat >>confdefs.h <<\_ACEOF
32229#define XSELINUX 1
32230_ACEOF
32231
32232fi
32233
32234 if test "x$XCSECURITY" = xyes; then
32235  XCSECURITY_TRUE=
32236  XCSECURITY_FALSE='#'
32237else
32238  XCSECURITY_TRUE='#'
32239  XCSECURITY_FALSE=
32240fi
32241
32242if test "x$XCSECURITY" = xyes; then
32243	if test "x$XACE" != xyes; then
32244		{ { echo "$as_me:$LINENO: error: cannot build Security extension without X-ACE" >&5
32245echo "$as_me: error: cannot build Security extension without X-ACE" >&2;}
32246   { (exit 1); exit 1; }; }
32247	fi
32248
32249cat >>confdefs.h <<\_ACEOF
32250#define XCSECURITY 1
32251_ACEOF
32252
32253fi
32254
32255 if test "x$DBE" = xyes; then
32256  DBE_TRUE=
32257  DBE_FALSE='#'
32258else
32259  DBE_TRUE='#'
32260  DBE_FALSE=
32261fi
32262
32263if test "x$DBE" = xyes; then
32264
32265cat >>confdefs.h <<\_ACEOF
32266#define DBE 1
32267_ACEOF
32268
32269	DBE_LIB='$(top_builddir)/dbe/libdbe.la'
32270fi
32271
32272 if test "x$XF86BIGFONT" = xyes; then
32273  XF86BIGFONT_TRUE=
32274  XF86BIGFONT_FALSE='#'
32275else
32276  XF86BIGFONT_TRUE='#'
32277  XF86BIGFONT_FALSE=
32278fi
32279
32280if test "x$XF86BIGFONT" = xyes; then
32281
32282cat >>confdefs.h <<\_ACEOF
32283#define XF86BIGFONT 1
32284_ACEOF
32285
32286	REQUIRED_MODULES="$REQUIRED_MODULES $BIGFONTPROTO"
32287fi
32288
32289 if test "x$DPMSExtension" = xyes; then
32290  DPMSExtension_TRUE=
32291  DPMSExtension_FALSE='#'
32292else
32293  DPMSExtension_TRUE='#'
32294  DPMSExtension_FALSE=
32295fi
32296
32297if test "x$DPMSExtension" = xyes; then
32298
32299cat >>confdefs.h <<\_ACEOF
32300#define DPMSExtension 1
32301_ACEOF
32302
32303fi
32304
32305if test "x$XCALIBRATE" = xyes && test "$KDRIVE" = yes; then
32306
32307cat >>confdefs.h <<\_ACEOF
32308#define XCALIBRATE 1
32309_ACEOF
32310
32311   REQUIRED_MODULES="$REQUIRED_MODULES $XCALIBRATEPROTO"
32312else
32313   XCALIBRATE=no
32314fi
32315 if test "x$XCALIBRATE" = xyes; then
32316  XCALIBRATE_TRUE=
32317  XCALIBRATE_FALSE='#'
32318else
32319  XCALIBRATE_TRUE='#'
32320  XCALIBRATE_FALSE=
32321fi
32322
32323
32324
32325cat >>confdefs.h <<\_ACEOF
32326#define RENDER 1
32327_ACEOF
32328
32329RENDER_LIB='$(top_builddir)/render/librender.la'
32330RENDER_INC='-I$(top_srcdir)/render'
32331
32332
32333cat >>confdefs.h <<\_ACEOF
32334#define RANDR 1
32335_ACEOF
32336
32337RANDR_LIB='$(top_builddir)/randr/librandr.la'
32338RANDR_INC='-I$(top_srcdir)/randr'
32339
32340
32341cat >>confdefs.h <<\_ACEOF
32342#define XFIXES 1
32343_ACEOF
32344
32345FIXES_LIB='$(top_builddir)/xfixes/libxfixes.la'
32346FIXES_INC='-I$(top_srcdir)/xfixes'
32347
32348
32349cat >>confdefs.h <<\_ACEOF
32350#define DAMAGE 1
32351_ACEOF
32352
32353DAMAGE_LIB='$(top_builddir)/damageext/libdamageext.la'
32354DAMAGE_INC='-I$(top_srcdir)/damageext'
32355MIEXT_DAMAGE_LIB='$(top_builddir)/miext/damage/libdamage.la'
32356MIEXT_DAMAGE_INC='-I$(top_srcdir)/miext/damage'
32357
32358# XINPUT extension is integral part of the server
32359
32360cat >>confdefs.h <<\_ACEOF
32361#define XINPUT 1
32362_ACEOF
32363
32364XI_LIB='$(top_builddir)/Xi/libXi.la'
32365XI_INC='-I$(top_srcdir)/Xi'
32366
32367 if test "x$XF86UTILS" = xyes; then
32368  XF86UTILS_TRUE=
32369  XF86UTILS_FALSE='#'
32370else
32371  XF86UTILS_TRUE='#'
32372  XF86UTILS_FALSE=
32373fi
32374
32375 if test "x$XAA" = xyes; then
32376  XAA_TRUE=
32377  XAA_FALSE='#'
32378else
32379  XAA_TRUE='#'
32380  XAA_FALSE=
32381fi
32382
32383 if test "x$VGAHW" = xyes; then
32384  VGAHW_TRUE=
32385  VGAHW_FALSE='#'
32386else
32387  VGAHW_TRUE='#'
32388  VGAHW_FALSE=
32389fi
32390
32391 if test "x$VBE" = xyes; then
32392  VBE_TRUE=
32393  VBE_FALSE='#'
32394else
32395  VBE_TRUE='#'
32396  VBE_FALSE=
32397fi
32398
32399 if test "x$INT10MODULE" = xyes; then
32400  INT10MODULE_TRUE=
32401  INT10MODULE_FALSE='#'
32402else
32403  INT10MODULE_TRUE='#'
32404  INT10MODULE_FALSE=
32405fi
32406
32407
32408
32409cat >>confdefs.h <<\_ACEOF
32410#define SHAPE 1
32411_ACEOF
32412
32413
32414
32415  prefix_NONE=
32416  exec_prefix_NONE=
32417  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32418  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32419  eval ac_define_dir="\"$XKBPATH\""
32420  eval ac_define_dir="\"$ac_define_dir\""
32421  XKB_BASE_DIRECTORY="$ac_define_dir"
32422
32423
32424cat >>confdefs.h <<_ACEOF
32425#define XKB_BASE_DIRECTORY "$ac_define_dir"
32426_ACEOF
32427
32428  test "$prefix_NONE" && prefix=NONE
32429  test "$exec_prefix_NONE" && exec_prefix=NONE
32430
32431
32432# Check whether --with-xkb-bin-directory was given.
32433if test "${with_xkb_bin_directory+set}" = set; then
32434  withval=$with_xkb_bin_directory; XKB_BIN_DIRECTORY="$withval"
32435else
32436  XKB_BIN_DIRECTORY="$bindir"
32437fi
32438
32439
32440
32441  prefix_NONE=
32442  exec_prefix_NONE=
32443  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32444  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32445  eval ac_define_dir="\"$XKB_BIN_DIRECTORY\""
32446  eval ac_define_dir="\"$ac_define_dir\""
32447  XKB_BIN_DIRECTORY="$ac_define_dir"
32448
32449
32450cat >>confdefs.h <<_ACEOF
32451#define XKB_BIN_DIRECTORY "$ac_define_dir"
32452_ACEOF
32453
32454  test "$prefix_NONE" && prefix=NONE
32455  test "$exec_prefix_NONE" && exec_prefix=NONE
32456
32457
32458XKBOUTPUT_FIRSTCHAR=`echo $XKBOUTPUT | cut -b 1`
32459if [ x$XKBOUTPUT_FIRSTCHAR != x/ -a x$XKBOUTPUT_FIRSTCHAR != 'x$' ] ; then
32460   XKBOUTPUT="$XKB_BASE_DIRECTORY/$XKBOUTPUT"
32461fi
32462
32463
32464XKBOUTPUT=`echo $XKBOUTPUT/ | $SED 's|/*$|/|'`
32465XKB_COMPILED_DIR=`echo $XKBOUTPUT | $SED 's|/*$||'`
32466
32467  prefix_NONE=
32468  exec_prefix_NONE=
32469  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32470  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32471  eval ac_define_dir="\"$XKBOUTPUT\""
32472  eval ac_define_dir="\"$ac_define_dir\""
32473  XKM_OUTPUT_DIR="$ac_define_dir"
32474
32475
32476cat >>confdefs.h <<_ACEOF
32477#define XKM_OUTPUT_DIR "$ac_define_dir"
32478_ACEOF
32479
32480  test "$prefix_NONE" && prefix=NONE
32481  test "$exec_prefix_NONE" && exec_prefix=NONE
32482
32483
32484
32485if test "x$XKB_DFLT_RULES" = x; then
32486    case $host_os in
32487    linux*)
32488                if test "x$CONFIG_HAL" = xyes; then
32489            XKB_DFLT_RULES="evdev"
32490        else
32491            XKB_DFLT_RULES="base"
32492        fi
32493        ;;
32494    *)
32495        XKB_DFLT_RULES="base"
32496        ;;
32497    esac
32498fi
32499
32500cat >>confdefs.h <<_ACEOF
32501#define XKB_DFLT_RULES "$XKB_DFLT_RULES"
32502_ACEOF
32503
32504
32505cat >>confdefs.h <<_ACEOF
32506#define XKB_DFLT_MODEL "$XKB_DFLT_MODEL"
32507_ACEOF
32508
32509
32510cat >>confdefs.h <<_ACEOF
32511#define XKB_DFLT_LAYOUT "$XKB_DFLT_LAYOUT"
32512_ACEOF
32513
32514
32515cat >>confdefs.h <<_ACEOF
32516#define XKB_DFLT_VARIANT "$XKB_DFLT_VARIANT"
32517_ACEOF
32518
32519
32520cat >>confdefs.h <<_ACEOF
32521#define XKB_DFLT_OPTIONS "$XKB_DFLT_OPTIONS"
32522_ACEOF
32523
32524
32525XKB_LIB='$(top_builddir)/xkb/libxkb.la'
32526XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la'
32527REQUIRED_MODULES="$REQUIRED_MODULES xkbfile"
32528
32529{ echo "$as_me:$LINENO: checking for strcasecmp" >&5
32530echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
32531if test "${ac_cv_func_strcasecmp+set}" = set; then
32532  echo $ECHO_N "(cached) $ECHO_C" >&6
32533else
32534  cat >conftest.$ac_ext <<_ACEOF
32535/* confdefs.h.  */
32536_ACEOF
32537cat confdefs.h >>conftest.$ac_ext
32538cat >>conftest.$ac_ext <<_ACEOF
32539/* end confdefs.h.  */
32540/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
32541   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32542#define strcasecmp innocuous_strcasecmp
32543
32544/* System header to define __stub macros and hopefully few prototypes,
32545    which can conflict with char strcasecmp (); below.
32546    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32547    <limits.h> exists even on freestanding compilers.  */
32548
32549#ifdef __STDC__
32550# include <limits.h>
32551#else
32552# include <assert.h>
32553#endif
32554
32555#undef strcasecmp
32556
32557/* Override any GCC internal prototype to avoid an error.
32558   Use char because int might match the return type of a GCC
32559   builtin and then its argument prototype would still apply.  */
32560#ifdef __cplusplus
32561extern "C"
32562#endif
32563char strcasecmp ();
32564/* The GNU C library defines this for functions which it implements
32565    to always fail with ENOSYS.  Some functions are actually named
32566    something starting with __ and the normal name is an alias.  */
32567#if defined __stub_strcasecmp || defined __stub___strcasecmp
32568choke me
32569#endif
32570
32571int
32572main ()
32573{
32574return strcasecmp ();
32575  ;
32576  return 0;
32577}
32578_ACEOF
32579rm -f conftest.$ac_objext conftest$ac_exeext
32580if { (ac_try="$ac_link"
32581case "(($ac_try" in
32582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32583  *) ac_try_echo=$ac_try;;
32584esac
32585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32586  (eval "$ac_link") 2>conftest.er1
32587  ac_status=$?
32588  grep -v '^ *+' conftest.er1 >conftest.err
32589  rm -f conftest.er1
32590  cat conftest.err >&5
32591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32592  (exit $ac_status); } && {
32593	 test -z "$ac_c_werror_flag" ||
32594	 test ! -s conftest.err
32595       } && test -s conftest$ac_exeext &&
32596       $as_test_x conftest$ac_exeext; then
32597  ac_cv_func_strcasecmp=yes
32598else
32599  echo "$as_me: failed program was:" >&5
32600sed 's/^/| /' conftest.$ac_ext >&5
32601
32602	ac_cv_func_strcasecmp=no
32603fi
32604
32605rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32606      conftest$ac_exeext conftest.$ac_ext
32607fi
32608{ echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
32609echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
32610if test $ac_cv_func_strcasecmp = yes; then
32611  :
32612else
32613
32614cat >>confdefs.h <<\_ACEOF
32615#define NEED_STRCASECMP 1
32616_ACEOF
32617
32618fi
32619
32620{ echo "$as_me:$LINENO: checking for strncasecmp" >&5
32621echo $ECHO_N "checking for strncasecmp... $ECHO_C" >&6; }
32622if test "${ac_cv_func_strncasecmp+set}" = set; then
32623  echo $ECHO_N "(cached) $ECHO_C" >&6
32624else
32625  cat >conftest.$ac_ext <<_ACEOF
32626/* confdefs.h.  */
32627_ACEOF
32628cat confdefs.h >>conftest.$ac_ext
32629cat >>conftest.$ac_ext <<_ACEOF
32630/* end confdefs.h.  */
32631/* Define strncasecmp to an innocuous variant, in case <limits.h> declares strncasecmp.
32632   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32633#define strncasecmp innocuous_strncasecmp
32634
32635/* System header to define __stub macros and hopefully few prototypes,
32636    which can conflict with char strncasecmp (); below.
32637    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32638    <limits.h> exists even on freestanding compilers.  */
32639
32640#ifdef __STDC__
32641# include <limits.h>
32642#else
32643# include <assert.h>
32644#endif
32645
32646#undef strncasecmp
32647
32648/* Override any GCC internal prototype to avoid an error.
32649   Use char because int might match the return type of a GCC
32650   builtin and then its argument prototype would still apply.  */
32651#ifdef __cplusplus
32652extern "C"
32653#endif
32654char strncasecmp ();
32655/* The GNU C library defines this for functions which it implements
32656    to always fail with ENOSYS.  Some functions are actually named
32657    something starting with __ and the normal name is an alias.  */
32658#if defined __stub_strncasecmp || defined __stub___strncasecmp
32659choke me
32660#endif
32661
32662int
32663main ()
32664{
32665return strncasecmp ();
32666  ;
32667  return 0;
32668}
32669_ACEOF
32670rm -f conftest.$ac_objext conftest$ac_exeext
32671if { (ac_try="$ac_link"
32672case "(($ac_try" in
32673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32674  *) ac_try_echo=$ac_try;;
32675esac
32676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32677  (eval "$ac_link") 2>conftest.er1
32678  ac_status=$?
32679  grep -v '^ *+' conftest.er1 >conftest.err
32680  rm -f conftest.er1
32681  cat conftest.err >&5
32682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32683  (exit $ac_status); } && {
32684	 test -z "$ac_c_werror_flag" ||
32685	 test ! -s conftest.err
32686       } && test -s conftest$ac_exeext &&
32687       $as_test_x conftest$ac_exeext; then
32688  ac_cv_func_strncasecmp=yes
32689else
32690  echo "$as_me: failed program was:" >&5
32691sed 's/^/| /' conftest.$ac_ext >&5
32692
32693	ac_cv_func_strncasecmp=no
32694fi
32695
32696rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32697      conftest$ac_exeext conftest.$ac_ext
32698fi
32699{ echo "$as_me:$LINENO: result: $ac_cv_func_strncasecmp" >&5
32700echo "${ECHO_T}$ac_cv_func_strncasecmp" >&6; }
32701if test $ac_cv_func_strncasecmp = yes; then
32702  :
32703else
32704
32705cat >>confdefs.h <<\_ACEOF
32706#define NEED_STRNCASECMP 1
32707_ACEOF
32708
32709fi
32710
32711{ echo "$as_me:$LINENO: checking for strcasestr" >&5
32712echo $ECHO_N "checking for strcasestr... $ECHO_C" >&6; }
32713if test "${ac_cv_func_strcasestr+set}" = set; then
32714  echo $ECHO_N "(cached) $ECHO_C" >&6
32715else
32716  cat >conftest.$ac_ext <<_ACEOF
32717/* confdefs.h.  */
32718_ACEOF
32719cat confdefs.h >>conftest.$ac_ext
32720cat >>conftest.$ac_ext <<_ACEOF
32721/* end confdefs.h.  */
32722/* Define strcasestr to an innocuous variant, in case <limits.h> declares strcasestr.
32723   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32724#define strcasestr innocuous_strcasestr
32725
32726/* System header to define __stub macros and hopefully few prototypes,
32727    which can conflict with char strcasestr (); below.
32728    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32729    <limits.h> exists even on freestanding compilers.  */
32730
32731#ifdef __STDC__
32732# include <limits.h>
32733#else
32734# include <assert.h>
32735#endif
32736
32737#undef strcasestr
32738
32739/* Override any GCC internal prototype to avoid an error.
32740   Use char because int might match the return type of a GCC
32741   builtin and then its argument prototype would still apply.  */
32742#ifdef __cplusplus
32743extern "C"
32744#endif
32745char strcasestr ();
32746/* The GNU C library defines this for functions which it implements
32747    to always fail with ENOSYS.  Some functions are actually named
32748    something starting with __ and the normal name is an alias.  */
32749#if defined __stub_strcasestr || defined __stub___strcasestr
32750choke me
32751#endif
32752
32753int
32754main ()
32755{
32756return strcasestr ();
32757  ;
32758  return 0;
32759}
32760_ACEOF
32761rm -f conftest.$ac_objext conftest$ac_exeext
32762if { (ac_try="$ac_link"
32763case "(($ac_try" in
32764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32765  *) ac_try_echo=$ac_try;;
32766esac
32767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32768  (eval "$ac_link") 2>conftest.er1
32769  ac_status=$?
32770  grep -v '^ *+' conftest.er1 >conftest.err
32771  rm -f conftest.er1
32772  cat conftest.err >&5
32773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32774  (exit $ac_status); } && {
32775	 test -z "$ac_c_werror_flag" ||
32776	 test ! -s conftest.err
32777       } && test -s conftest$ac_exeext &&
32778       $as_test_x conftest$ac_exeext; then
32779  ac_cv_func_strcasestr=yes
32780else
32781  echo "$as_me: failed program was:" >&5
32782sed 's/^/| /' conftest.$ac_ext >&5
32783
32784	ac_cv_func_strcasestr=no
32785fi
32786
32787rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32788      conftest$ac_exeext conftest.$ac_ext
32789fi
32790{ echo "$as_me:$LINENO: result: $ac_cv_func_strcasestr" >&5
32791echo "${ECHO_T}$ac_cv_func_strcasestr" >&6; }
32792if test $ac_cv_func_strcasestr = yes; then
32793  :
32794else
32795
32796cat >>confdefs.h <<\_ACEOF
32797#define NEED_STRCASESTR 1
32798_ACEOF
32799
32800fi
32801
32802
32803
32804pkg_failed=no
32805{ echo "$as_me:$LINENO: checking for XDMCP" >&5
32806echo $ECHO_N "checking for XDMCP... $ECHO_C" >&6; }
32807
32808if test -n "$XDMCP_CFLAGS"; then
32809    pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
32810 elif test -n "$PKG_CONFIG"; then
32811    if test -n "$PKG_CONFIG" && \
32812    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xdmcp\"") >&5
32813  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
32814  ac_status=$?
32815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32816  (exit $ac_status); }; then
32817  pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
32818else
32819  pkg_failed=yes
32820fi
32821 else
32822    pkg_failed=untried
32823fi
32824if test -n "$XDMCP_LIBS"; then
32825    pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
32826 elif test -n "$PKG_CONFIG"; then
32827    if test -n "$PKG_CONFIG" && \
32828    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xdmcp\"") >&5
32829  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
32830  ac_status=$?
32831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32832  (exit $ac_status); }; then
32833  pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
32834else
32835  pkg_failed=yes
32836fi
32837 else
32838    pkg_failed=untried
32839fi
32840
32841
32842
32843if test $pkg_failed = yes; then
32844   	{ echo "$as_me:$LINENO: result: no" >&5
32845echo "${ECHO_T}no" >&6; }
32846
32847if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32848        _pkg_short_errors_supported=yes
32849else
32850        _pkg_short_errors_supported=no
32851fi
32852        if test $_pkg_short_errors_supported = yes; then
32853	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xdmcp" 2>&1`
32854        else
32855	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xdmcp" 2>&1`
32856        fi
32857	# Put the nasty error message in config.log where it belongs
32858	echo "$XDMCP_PKG_ERRORS" >&5
32859
32860	have_libxdmcp="no"
32861elif test $pkg_failed = untried; then
32862     	{ echo "$as_me:$LINENO: result: no" >&5
32863echo "${ECHO_T}no" >&6; }
32864	have_libxdmcp="no"
32865else
32866	XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
32867	XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
32868        { echo "$as_me:$LINENO: result: yes" >&5
32869echo "${ECHO_T}yes" >&6; }
32870	have_libxdmcp="yes"
32871fi
32872if test "x$have_libxdmcp" = xyes; then
32873	{ echo "$as_me:$LINENO: checking for XdmcpWrap in -lXdmcp" >&5
32874echo $ECHO_N "checking for XdmcpWrap in -lXdmcp... $ECHO_C" >&6; }
32875if test "${ac_cv_lib_Xdmcp_XdmcpWrap+set}" = set; then
32876  echo $ECHO_N "(cached) $ECHO_C" >&6
32877else
32878  ac_check_lib_save_LIBS=$LIBS
32879LIBS="-lXdmcp $XDMCP_LIBS $LIBS"
32880cat >conftest.$ac_ext <<_ACEOF
32881/* confdefs.h.  */
32882_ACEOF
32883cat confdefs.h >>conftest.$ac_ext
32884cat >>conftest.$ac_ext <<_ACEOF
32885/* end confdefs.h.  */
32886
32887/* Override any GCC internal prototype to avoid an error.
32888   Use char because int might match the return type of a GCC
32889   builtin and then its argument prototype would still apply.  */
32890#ifdef __cplusplus
32891extern "C"
32892#endif
32893char XdmcpWrap ();
32894int
32895main ()
32896{
32897return XdmcpWrap ();
32898  ;
32899  return 0;
32900}
32901_ACEOF
32902rm -f conftest.$ac_objext conftest$ac_exeext
32903if { (ac_try="$ac_link"
32904case "(($ac_try" in
32905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32906  *) ac_try_echo=$ac_try;;
32907esac
32908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32909  (eval "$ac_link") 2>conftest.er1
32910  ac_status=$?
32911  grep -v '^ *+' conftest.er1 >conftest.err
32912  rm -f conftest.er1
32913  cat conftest.err >&5
32914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32915  (exit $ac_status); } && {
32916	 test -z "$ac_c_werror_flag" ||
32917	 test ! -s conftest.err
32918       } && test -s conftest$ac_exeext &&
32919       $as_test_x conftest$ac_exeext; then
32920  ac_cv_lib_Xdmcp_XdmcpWrap=yes
32921else
32922  echo "$as_me: failed program was:" >&5
32923sed 's/^/| /' conftest.$ac_ext >&5
32924
32925	ac_cv_lib_Xdmcp_XdmcpWrap=no
32926fi
32927
32928rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32929      conftest$ac_exeext conftest.$ac_ext
32930LIBS=$ac_check_lib_save_LIBS
32931fi
32932{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
32933echo "${ECHO_T}$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
32934if test $ac_cv_lib_Xdmcp_XdmcpWrap = yes; then
32935  have_xdmcpwrap="yes"
32936else
32937  have_xdmcpwrap="no"
32938fi
32939
32940fi
32941if test "x$XDMCP" = xauto; then
32942	if test "x$have_libxdmcp" = xyes; then
32943		XDMCP=yes
32944	else
32945		XDMCP=no
32946	fi
32947fi
32948if test "x$XDMAUTH" = xauto; then
32949	if test "x$have_libxdmcp" = xyes && test "x$have_xdmcpwrap" = xyes; then
32950		XDMAUTH=yes
32951	else
32952		XDMAUTH=no
32953	fi
32954fi
32955
32956 if test "x$XDMCP" = xyes; then
32957  XDMCP_TRUE=
32958  XDMCP_FALSE='#'
32959else
32960  XDMCP_TRUE='#'
32961  XDMCP_FALSE=
32962fi
32963
32964if test "x$XDMCP" = xyes; then
32965
32966cat >>confdefs.h <<\_ACEOF
32967#define XDMCP 1
32968_ACEOF
32969
32970	REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
32971	XDMCP_MODULES="xdmcp"
32972fi
32973
32974 if test "x$XDMAUTH" = xyes; then
32975  XDMAUTH_TRUE=
32976  XDMAUTH_FALSE='#'
32977else
32978  XDMAUTH_TRUE='#'
32979  XDMAUTH_FALSE=
32980fi
32981
32982if test "x$XDMAUTH" = xyes; then
32983
32984cat >>confdefs.h <<\_ACEOF
32985#define HASXDMAUTH 1
32986_ACEOF
32987
32988	if ! test "x$XDMCP" = xyes; then
32989		REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
32990		XDMCP_MODULES="xdmcp"
32991	fi
32992fi
32993
32994
32995  prefix_NONE=
32996  exec_prefix_NONE=
32997  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32998  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32999  eval ac_define_dir="\"$FONTPATH\""
33000  eval ac_define_dir="\"$ac_define_dir\""
33001  COMPILEDDEFAULTFONTPATH="$ac_define_dir"
33002
33003
33004cat >>confdefs.h <<_ACEOF
33005#define COMPILEDDEFAULTFONTPATH "$ac_define_dir"
33006_ACEOF
33007
33008  test "$prefix_NONE" && prefix=NONE
33009  test "$exec_prefix_NONE" && exec_prefix=NONE
33010
33011
33012  prefix_NONE=
33013  exec_prefix_NONE=
33014  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33015  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33016  eval ac_define_dir="\"$PCI_TXT_IDS_DIR\""
33017  eval ac_define_dir="\"$ac_define_dir\""
33018  PCI_TXT_IDS_PATH="$ac_define_dir"
33019
33020
33021cat >>confdefs.h <<_ACEOF
33022#define PCI_TXT_IDS_PATH "$ac_define_dir"
33023_ACEOF
33024
33025  test "$prefix_NONE" && prefix=NONE
33026  test "$exec_prefix_NONE" && exec_prefix=NONE
33027
33028
33029  prefix_NONE=
33030  exec_prefix_NONE=
33031  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33032  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33033  eval ac_define_dir="\"$SERVERCONFIG\""
33034  eval ac_define_dir="\"$ac_define_dir\""
33035  SERVER_MISC_CONFIG_PATH="$ac_define_dir"
33036
33037
33038cat >>confdefs.h <<_ACEOF
33039#define SERVER_MISC_CONFIG_PATH "$ac_define_dir"
33040_ACEOF
33041
33042  test "$prefix_NONE" && prefix=NONE
33043  test "$exec_prefix_NONE" && exec_prefix=NONE
33044
33045
33046  prefix_NONE=
33047  exec_prefix_NONE=
33048  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33049  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33050  eval ac_define_dir="\"$FONTROOTDIR\""
33051  eval ac_define_dir="\"$ac_define_dir\""
33052  BASE_FONT_PATH="$ac_define_dir"
33053
33054
33055cat >>confdefs.h <<_ACEOF
33056#define BASE_FONT_PATH "$ac_define_dir"
33057_ACEOF
33058
33059  test "$prefix_NONE" && prefix=NONE
33060  test "$exec_prefix_NONE" && exec_prefix=NONE
33061
33062dridriverdir=`$PKG_CONFIG --variable=dridriverdir dri`
33063
33064  prefix_NONE=
33065  exec_prefix_NONE=
33066  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33067  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33068  eval ac_define_dir="\"$dridriverdir\""
33069  eval ac_define_dir="\"$ac_define_dir\""
33070  DRI_DRIVER_PATH="$ac_define_dir"
33071
33072
33073cat >>confdefs.h <<_ACEOF
33074#define DRI_DRIVER_PATH "$ac_define_dir"
33075_ACEOF
33076
33077  test "$prefix_NONE" && prefix=NONE
33078  test "$exec_prefix_NONE" && exec_prefix=NONE
33079
33080
33081cat >>confdefs.h <<_ACEOF
33082#define XVENDORNAME "$VENDOR_NAME"
33083_ACEOF
33084
33085
33086cat >>confdefs.h <<_ACEOF
33087#define XVENDORNAMESHORT "$VENDOR_NAME_SHORT"
33088_ACEOF
33089
33090
33091cat >>confdefs.h <<_ACEOF
33092#define XORG_DATE "$RELEASE_DATE"
33093_ACEOF
33094
33095
33096cat >>confdefs.h <<_ACEOF
33097#define XORG_MAN_VERSION "$VENDOR_MAN_VERSION"
33098_ACEOF
33099
33100
33101cat >>confdefs.h <<_ACEOF
33102#define BUILDERADDR "$BUILDERADDR"
33103_ACEOF
33104
33105
33106if test -z "$OSNAME"; then
33107    OSNAME="UNKNOWN"
33108fi
33109
33110
33111cat >>confdefs.h <<_ACEOF
33112#define OSNAME "$OSNAME"
33113_ACEOF
33114
33115
33116cat >>confdefs.h <<_ACEOF
33117#define OSVENDOR "$OSVENDOR"
33118_ACEOF
33119
33120
33121cat >>confdefs.h <<_ACEOF
33122#define BUILDERSTRING "$BUILDERSTRING"
33123_ACEOF
33124
33125
33126
33127
33128cat >>confdefs.h <<_ACEOF
33129#define VENDOR_NAME "$VENDOR_NAME"
33130_ACEOF
33131
33132
33133cat >>confdefs.h <<_ACEOF
33134#define VENDOR_NAME_SHORT "$VENDOR_NAME_SHORT"
33135_ACEOF
33136
33137
33138cat >>confdefs.h <<_ACEOF
33139#define VENDOR_RELEASE $VENDOR_RELEASE
33140_ACEOF
33141
33142
33143cat >>confdefs.h <<_ACEOF
33144#define VENDOR_MAN_VERSION "$VENDOR_MAN_VERSION"
33145_ACEOF
33146
33147
33148
33149cat >>confdefs.h <<\_ACEOF
33150#define NO_LIBCWRAPPER 1
33151_ACEOF
33152
33153
33154if test "x$DEBUGGING" = xyes; then
33155
33156cat >>confdefs.h <<\_ACEOF
33157#define DEBUG 1
33158_ACEOF
33159
33160fi
33161 if test "x$DEBUGGING" = xyes; then
33162  DEBUG_TRUE=
33163  DEBUG_FALSE='#'
33164else
33165  DEBUG_TRUE='#'
33166  DEBUG_FALSE=
33167fi
33168
33169
33170# If unittests aren't explicitly disabled, check for required support
33171if test "x$UNITTESTS" != xno ; then
33172
33173pkg_failed=no
33174{ echo "$as_me:$LINENO: checking for GLIB" >&5
33175echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
33176
33177if test -n "$GLIB_CFLAGS"; then
33178    pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
33179 elif test -n "$PKG_CONFIG"; then
33180    if test -n "$PKG_CONFIG" && \
33181    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBGLIB\"") >&5
33182  ($PKG_CONFIG --exists --print-errors "$LIBGLIB") 2>&5
33183  ac_status=$?
33184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33185  (exit $ac_status); }; then
33186  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$LIBGLIB" 2>/dev/null`
33187else
33188  pkg_failed=yes
33189fi
33190 else
33191    pkg_failed=untried
33192fi
33193if test -n "$GLIB_LIBS"; then
33194    pkg_cv_GLIB_LIBS="$GLIB_LIBS"
33195 elif test -n "$PKG_CONFIG"; then
33196    if test -n "$PKG_CONFIG" && \
33197    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBGLIB\"") >&5
33198  ($PKG_CONFIG --exists --print-errors "$LIBGLIB") 2>&5
33199  ac_status=$?
33200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33201  (exit $ac_status); }; then
33202  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$LIBGLIB" 2>/dev/null`
33203else
33204  pkg_failed=yes
33205fi
33206 else
33207    pkg_failed=untried
33208fi
33209
33210
33211
33212if test $pkg_failed = yes; then
33213   	{ echo "$as_me:$LINENO: result: no" >&5
33214echo "${ECHO_T}no" >&6; }
33215
33216if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33217        _pkg_short_errors_supported=yes
33218else
33219        _pkg_short_errors_supported=no
33220fi
33221        if test $_pkg_short_errors_supported = yes; then
33222	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBGLIB" 2>&1`
33223        else
33224	        GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBGLIB" 2>&1`
33225        fi
33226	# Put the nasty error message in config.log where it belongs
33227	echo "$GLIB_PKG_ERRORS" >&5
33228
33229	HAVE_GLIB=no
33230elif test $pkg_failed = untried; then
33231     	{ echo "$as_me:$LINENO: result: no" >&5
33232echo "${ECHO_T}no" >&6; }
33233	HAVE_GLIB=no
33234else
33235	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
33236	GLIB_LIBS=$pkg_cv_GLIB_LIBS
33237        { echo "$as_me:$LINENO: result: yes" >&5
33238echo "${ECHO_T}yes" >&6; }
33239	HAVE_GLIB=yes
33240fi
33241
33242       # Check if linker supports -wrap, passed via compiler flags
33243       # When cross-compiling, reports no, since unit tests run from
33244       # "make check", so would be running on build machine,  not target
33245       { echo "$as_me:$LINENO: checking whether the linker supports -wrap" >&5
33246echo $ECHO_N "checking whether the linker supports -wrap... $ECHO_C" >&6; }
33247       save_LDFLAGS="$LDFLAGS"
33248       LDFLAGS="$LDFLAGS -Wl,-wrap,exit"
33249       if test "$cross_compiling" = yes; then
33250  linker_can_wrap="no"
33251else
33252  cat >conftest.$ac_ext <<_ACEOF
33253/* confdefs.h.  */
33254_ACEOF
33255cat confdefs.h >>conftest.$ac_ext
33256cat >>conftest.$ac_ext <<_ACEOF
33257/* end confdefs.h.  */
33258
33259	void __wrap_exit (int s)
33260	{
33261	    __real_exit (0);
33262	}
33263int
33264main ()
33265{
33266exit (1);
33267  ;
33268  return 0;
33269}
33270_ACEOF
33271rm -f conftest$ac_exeext
33272if { (ac_try="$ac_link"
33273case "(($ac_try" in
33274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33275  *) ac_try_echo=$ac_try;;
33276esac
33277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33278  (eval "$ac_link") 2>&5
33279  ac_status=$?
33280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33281  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33282  { (case "(($ac_try" in
33283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33284  *) ac_try_echo=$ac_try;;
33285esac
33286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33287  (eval "$ac_try") 2>&5
33288  ac_status=$?
33289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290  (exit $ac_status); }; }; then
33291  linker_can_wrap="yes"
33292else
33293  echo "$as_me: program exited with status $ac_status" >&5
33294echo "$as_me: failed program was:" >&5
33295sed 's/^/| /' conftest.$ac_ext >&5
33296
33297( exit $ac_status )
33298linker_can_wrap="no"
33299fi
33300rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33301fi
33302
33303
33304       { echo "$as_me:$LINENO: result: $linker_can_wrap" >&5
33305echo "${ECHO_T}$linker_can_wrap" >&6; }
33306       LDFLAGS="$save_LDFLAGS"
33307fi
33308
33309if test "x$UNITTESTS" = xauto; then
33310       if test "x$HAVE_GLIB" = xyes && test "x$linker_can_wrap" = xyes; then
33311           UNITTESTS=yes
33312       else
33313           UNITTESTS=no
33314       fi
33315fi
33316if test "x$UNITTESTS" = xyes; then
33317       if test "x$HAVE_GLIB" = xno; then
33318           { { echo "$as_me:$LINENO: error: glib required to build unit tests" >&5
33319echo "$as_me: error: glib required to build unit tests" >&2;}
33320   { (exit 1); exit 1; }; }
33321       fi
33322       if test "x$linker_can_wrap" = xno; then
33323           { { echo "$as_me:$LINENO: error: ld -wrap support required to build unit tests" >&5
33324echo "$as_me: error: ld -wrap support required to build unit tests" >&2;}
33325   { (exit 1); exit 1; }; }
33326       fi
33327
33328cat >>confdefs.h <<\_ACEOF
33329#define UNITTESTS 1
33330_ACEOF
33331
33332
33333
33334fi
33335 if test "x$UNITTESTS" = xyes; then
33336  UNITTESTS_TRUE=
33337  UNITTESTS_FALSE='#'
33338else
33339  UNITTESTS_TRUE='#'
33340  UNITTESTS_FALSE=
33341fi
33342
33343
33344
33345cat >>confdefs.h <<\_ACEOF
33346#define XTEST 1
33347_ACEOF
33348
33349
33350cat >>confdefs.h <<\_ACEOF
33351#define XSYNC 1
33352_ACEOF
33353
33354
33355cat >>confdefs.h <<\_ACEOF
33356#define XCMISC 1
33357_ACEOF
33358
33359
33360cat >>confdefs.h <<\_ACEOF
33361#define BIGREQS 1
33362_ACEOF
33363
33364
33365if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes" ; then
33366  DIX_LIB='$(top_builddir)/dix/dix.O'
33367  OS_LIB='$(top_builddir)/os/os.O $(SHA1_LIBS) $(DLOPEN_LIBS)'
33368else
33369  DIX_LIB='$(top_builddir)/dix/libdix.la'
33370  OS_LIB='$(top_builddir)/os/libos.la'
33371fi
33372
33373
33374
33375MAIN_LIB='$(top_builddir)/dix/libmain.la'
33376
33377
33378MI_LIB='$(top_builddir)/mi/libmi.la'
33379MI_EXT_LIB='$(top_builddir)/mi/libmiext.la'
33380MI_INC='-I$(top_srcdir)/mi'
33381FB_LIB='$(top_builddir)/fb/libfb.la'
33382FB_INC='-I$(top_srcdir)/fb'
33383MIEXT_SHADOW_INC='-I$(top_srcdir)/miext/shadow'
33384MIEXT_SHADOW_LIB='$(top_builddir)/miext/shadow/libshadow.la'
33385MIEXT_SYNC_INC='-I$(top_srcdir)/miext/sync'
33386MIEXT_SYNC_LIB='$(top_builddir)/miext/sync/libsync.la'
33387CORE_INCS='-I$(top_srcdir)/include -I$(top_builddir)/include'
33388
33389# SHA1 hashing
33390
33391# Check whether --with-sha1 was given.
33392if test "${with_sha1+set}" = set; then
33393  withval=$with_sha1;
33394fi
33395
33396{ echo "$as_me:$LINENO: checking for SHA1Init" >&5
33397echo $ECHO_N "checking for SHA1Init... $ECHO_C" >&6; }
33398if test "${ac_cv_func_SHA1Init+set}" = set; then
33399  echo $ECHO_N "(cached) $ECHO_C" >&6
33400else
33401  cat >conftest.$ac_ext <<_ACEOF
33402/* confdefs.h.  */
33403_ACEOF
33404cat confdefs.h >>conftest.$ac_ext
33405cat >>conftest.$ac_ext <<_ACEOF
33406/* end confdefs.h.  */
33407/* Define SHA1Init to an innocuous variant, in case <limits.h> declares SHA1Init.
33408   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33409#define SHA1Init innocuous_SHA1Init
33410
33411/* System header to define __stub macros and hopefully few prototypes,
33412    which can conflict with char SHA1Init (); below.
33413    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33414    <limits.h> exists even on freestanding compilers.  */
33415
33416#ifdef __STDC__
33417# include <limits.h>
33418#else
33419# include <assert.h>
33420#endif
33421
33422#undef SHA1Init
33423
33424/* Override any GCC internal prototype to avoid an error.
33425   Use char because int might match the return type of a GCC
33426   builtin and then its argument prototype would still apply.  */
33427#ifdef __cplusplus
33428extern "C"
33429#endif
33430char SHA1Init ();
33431/* The GNU C library defines this for functions which it implements
33432    to always fail with ENOSYS.  Some functions are actually named
33433    something starting with __ and the normal name is an alias.  */
33434#if defined __stub_SHA1Init || defined __stub___SHA1Init
33435choke me
33436#endif
33437
33438int
33439main ()
33440{
33441return SHA1Init ();
33442  ;
33443  return 0;
33444}
33445_ACEOF
33446rm -f conftest.$ac_objext conftest$ac_exeext
33447if { (ac_try="$ac_link"
33448case "(($ac_try" in
33449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33450  *) ac_try_echo=$ac_try;;
33451esac
33452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33453  (eval "$ac_link") 2>conftest.er1
33454  ac_status=$?
33455  grep -v '^ *+' conftest.er1 >conftest.err
33456  rm -f conftest.er1
33457  cat conftest.err >&5
33458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33459  (exit $ac_status); } && {
33460	 test -z "$ac_c_werror_flag" ||
33461	 test ! -s conftest.err
33462       } && test -s conftest$ac_exeext &&
33463       $as_test_x conftest$ac_exeext; then
33464  ac_cv_func_SHA1Init=yes
33465else
33466  echo "$as_me: failed program was:" >&5
33467sed 's/^/| /' conftest.$ac_ext >&5
33468
33469	ac_cv_func_SHA1Init=no
33470fi
33471
33472rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33473      conftest$ac_exeext conftest.$ac_ext
33474fi
33475{ echo "$as_me:$LINENO: result: $ac_cv_func_SHA1Init" >&5
33476echo "${ECHO_T}$ac_cv_func_SHA1Init" >&6; }
33477if test $ac_cv_func_SHA1Init = yes; then
33478  HAVE_SHA1_IN_LIBC=yes
33479fi
33480
33481if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_LIBC" = xyes; then
33482	with_sha1=libc
33483fi
33484if test "x$with_sha1" = xlibc && test "x$HAVE_SHA1_IN_LIBC" != xyes; then
33485	{ { echo "$as_me:$LINENO: error: libc requested but not found" >&5
33486echo "$as_me: error: libc requested but not found" >&2;}
33487   { (exit 1); exit 1; }; }
33488fi
33489if test "x$with_sha1" = xlibc; then
33490
33491cat >>confdefs.h <<\_ACEOF
33492#define HAVE_SHA1_IN_LIBC 1
33493_ACEOF
33494
33495	SHA1_LIBS=""
33496fi
33497{ echo "$as_me:$LINENO: checking for CC_SHA1_Init" >&5
33498echo $ECHO_N "checking for CC_SHA1_Init... $ECHO_C" >&6; }
33499if test "${ac_cv_func_CC_SHA1_Init+set}" = set; then
33500  echo $ECHO_N "(cached) $ECHO_C" >&6
33501else
33502  cat >conftest.$ac_ext <<_ACEOF
33503/* confdefs.h.  */
33504_ACEOF
33505cat confdefs.h >>conftest.$ac_ext
33506cat >>conftest.$ac_ext <<_ACEOF
33507/* end confdefs.h.  */
33508/* Define CC_SHA1_Init to an innocuous variant, in case <limits.h> declares CC_SHA1_Init.
33509   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33510#define CC_SHA1_Init innocuous_CC_SHA1_Init
33511
33512/* System header to define __stub macros and hopefully few prototypes,
33513    which can conflict with char CC_SHA1_Init (); below.
33514    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33515    <limits.h> exists even on freestanding compilers.  */
33516
33517#ifdef __STDC__
33518# include <limits.h>
33519#else
33520# include <assert.h>
33521#endif
33522
33523#undef CC_SHA1_Init
33524
33525/* Override any GCC internal prototype to avoid an error.
33526   Use char because int might match the return type of a GCC
33527   builtin and then its argument prototype would still apply.  */
33528#ifdef __cplusplus
33529extern "C"
33530#endif
33531char CC_SHA1_Init ();
33532/* The GNU C library defines this for functions which it implements
33533    to always fail with ENOSYS.  Some functions are actually named
33534    something starting with __ and the normal name is an alias.  */
33535#if defined __stub_CC_SHA1_Init || defined __stub___CC_SHA1_Init
33536choke me
33537#endif
33538
33539int
33540main ()
33541{
33542return CC_SHA1_Init ();
33543  ;
33544  return 0;
33545}
33546_ACEOF
33547rm -f conftest.$ac_objext conftest$ac_exeext
33548if { (ac_try="$ac_link"
33549case "(($ac_try" in
33550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33551  *) ac_try_echo=$ac_try;;
33552esac
33553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33554  (eval "$ac_link") 2>conftest.er1
33555  ac_status=$?
33556  grep -v '^ *+' conftest.er1 >conftest.err
33557  rm -f conftest.er1
33558  cat conftest.err >&5
33559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33560  (exit $ac_status); } && {
33561	 test -z "$ac_c_werror_flag" ||
33562	 test ! -s conftest.err
33563       } && test -s conftest$ac_exeext &&
33564       $as_test_x conftest$ac_exeext; then
33565  ac_cv_func_CC_SHA1_Init=yes
33566else
33567  echo "$as_me: failed program was:" >&5
33568sed 's/^/| /' conftest.$ac_ext >&5
33569
33570	ac_cv_func_CC_SHA1_Init=no
33571fi
33572
33573rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33574      conftest$ac_exeext conftest.$ac_ext
33575fi
33576{ echo "$as_me:$LINENO: result: $ac_cv_func_CC_SHA1_Init" >&5
33577echo "${ECHO_T}$ac_cv_func_CC_SHA1_Init" >&6; }
33578if test $ac_cv_func_CC_SHA1_Init = yes; then
33579  HAVE_SHA1_IN_COMMONCRYPTO=yes
33580fi
33581
33582if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_COMMONCRYPTO" = xyes; then
33583	with_sha1=CommonCrypto
33584fi
33585if test "x$with_sha1" = xCommonCrypto && test "x$HAVE_SHA1_IN_COMMONCRYPTO" != xyes; then
33586	{ { echo "$as_me:$LINENO: error: CommonCrypto requested but not found" >&5
33587echo "$as_me: error: CommonCrypto requested but not found" >&2;}
33588   { (exit 1); exit 1; }; }
33589fi
33590if test "x$with_sha1" = xCommonCrypto; then
33591
33592cat >>confdefs.h <<\_ACEOF
33593#define HAVE_SHA1_IN_COMMONCRYPTO 1
33594_ACEOF
33595
33596	SHA1_LIBS=""
33597fi
33598{ echo "$as_me:$LINENO: checking for SHA1Init in -lmd" >&5
33599echo $ECHO_N "checking for SHA1Init in -lmd... $ECHO_C" >&6; }
33600if test "${ac_cv_lib_md_SHA1Init+set}" = set; then
33601  echo $ECHO_N "(cached) $ECHO_C" >&6
33602else
33603  ac_check_lib_save_LIBS=$LIBS
33604LIBS="-lmd  $LIBS"
33605cat >conftest.$ac_ext <<_ACEOF
33606/* confdefs.h.  */
33607_ACEOF
33608cat confdefs.h >>conftest.$ac_ext
33609cat >>conftest.$ac_ext <<_ACEOF
33610/* end confdefs.h.  */
33611
33612/* Override any GCC internal prototype to avoid an error.
33613   Use char because int might match the return type of a GCC
33614   builtin and then its argument prototype would still apply.  */
33615#ifdef __cplusplus
33616extern "C"
33617#endif
33618char SHA1Init ();
33619int
33620main ()
33621{
33622return SHA1Init ();
33623  ;
33624  return 0;
33625}
33626_ACEOF
33627rm -f conftest.$ac_objext conftest$ac_exeext
33628if { (ac_try="$ac_link"
33629case "(($ac_try" in
33630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33631  *) ac_try_echo=$ac_try;;
33632esac
33633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33634  (eval "$ac_link") 2>conftest.er1
33635  ac_status=$?
33636  grep -v '^ *+' conftest.er1 >conftest.err
33637  rm -f conftest.er1
33638  cat conftest.err >&5
33639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33640  (exit $ac_status); } && {
33641	 test -z "$ac_c_werror_flag" ||
33642	 test ! -s conftest.err
33643       } && test -s conftest$ac_exeext &&
33644       $as_test_x conftest$ac_exeext; then
33645  ac_cv_lib_md_SHA1Init=yes
33646else
33647  echo "$as_me: failed program was:" >&5
33648sed 's/^/| /' conftest.$ac_ext >&5
33649
33650	ac_cv_lib_md_SHA1Init=no
33651fi
33652
33653rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33654      conftest$ac_exeext conftest.$ac_ext
33655LIBS=$ac_check_lib_save_LIBS
33656fi
33657{ echo "$as_me:$LINENO: result: $ac_cv_lib_md_SHA1Init" >&5
33658echo "${ECHO_T}$ac_cv_lib_md_SHA1Init" >&6; }
33659if test $ac_cv_lib_md_SHA1Init = yes; then
33660  HAVE_LIBMD=yes
33661fi
33662
33663if test "x$with_sha1" = x && test "x$HAVE_LIBMD" = xyes; then
33664	with_sha1=libmd
33665fi
33666if test "x$with_sha1" = xlibmd && test "x$HAVE_LIBMD" != xyes; then
33667	{ { echo "$as_me:$LINENO: error: libmd requested but not found" >&5
33668echo "$as_me: error: libmd requested but not found" >&2;}
33669   { (exit 1); exit 1; }; }
33670fi
33671if test "x$with_sha1" = xlibmd; then
33672
33673cat >>confdefs.h <<\_ACEOF
33674#define HAVE_SHA1_IN_LIBMD 1
33675_ACEOF
33676
33677	SHA1_LIBS=-lmd
33678fi
33679
33680pkg_failed=no
33681{ echo "$as_me:$LINENO: checking for LIBSHA1" >&5
33682echo $ECHO_N "checking for LIBSHA1... $ECHO_C" >&6; }
33683
33684if test -n "$LIBSHA1_CFLAGS"; then
33685    pkg_cv_LIBSHA1_CFLAGS="$LIBSHA1_CFLAGS"
33686 elif test -n "$PKG_CONFIG"; then
33687    if test -n "$PKG_CONFIG" && \
33688    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsha1\"") >&5
33689  ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5
33690  ac_status=$?
33691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33692  (exit $ac_status); }; then
33693  pkg_cv_LIBSHA1_CFLAGS=`$PKG_CONFIG --cflags "libsha1" 2>/dev/null`
33694else
33695  pkg_failed=yes
33696fi
33697 else
33698    pkg_failed=untried
33699fi
33700if test -n "$LIBSHA1_LIBS"; then
33701    pkg_cv_LIBSHA1_LIBS="$LIBSHA1_LIBS"
33702 elif test -n "$PKG_CONFIG"; then
33703    if test -n "$PKG_CONFIG" && \
33704    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsha1\"") >&5
33705  ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5
33706  ac_status=$?
33707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33708  (exit $ac_status); }; then
33709  pkg_cv_LIBSHA1_LIBS=`$PKG_CONFIG --libs "libsha1" 2>/dev/null`
33710else
33711  pkg_failed=yes
33712fi
33713 else
33714    pkg_failed=untried
33715fi
33716
33717
33718
33719if test $pkg_failed = yes; then
33720   	{ echo "$as_me:$LINENO: result: no" >&5
33721echo "${ECHO_T}no" >&6; }
33722
33723if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33724        _pkg_short_errors_supported=yes
33725else
33726        _pkg_short_errors_supported=no
33727fi
33728        if test $_pkg_short_errors_supported = yes; then
33729	        LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libsha1" 2>&1`
33730        else
33731	        LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --print-errors "libsha1" 2>&1`
33732        fi
33733	# Put the nasty error message in config.log where it belongs
33734	echo "$LIBSHA1_PKG_ERRORS" >&5
33735
33736	HAVE_LIBSHA1=no
33737elif test $pkg_failed = untried; then
33738     	{ echo "$as_me:$LINENO: result: no" >&5
33739echo "${ECHO_T}no" >&6; }
33740	HAVE_LIBSHA1=no
33741else
33742	LIBSHA1_CFLAGS=$pkg_cv_LIBSHA1_CFLAGS
33743	LIBSHA1_LIBS=$pkg_cv_LIBSHA1_LIBS
33744        { echo "$as_me:$LINENO: result: yes" >&5
33745echo "${ECHO_T}yes" >&6; }
33746	HAVE_LIBSHA1=yes
33747fi
33748if test "x$with_sha1" = x && test "x$HAVE_LIBSHA1" = xyes; then
33749   with_sha1=libsha1
33750fi
33751if test "x$with_sha1" = xlibsha1 && test "x$HAVE_LIBSHA1" != xyes; then
33752	{ { echo "$as_me:$LINENO: error: libsha1 requested but not found" >&5
33753echo "$as_me: error: libsha1 requested but not found" >&2;}
33754   { (exit 1); exit 1; }; }
33755fi
33756if test "x$with_sha1" = xlibsha1; then
33757
33758cat >>confdefs.h <<\_ACEOF
33759#define HAVE_SHA1_IN_LIBSHA1 1
33760_ACEOF
33761
33762	SHA1_LIBS=-lsha1
33763fi
33764{ echo "$as_me:$LINENO: checking for gcry_md_open in -lgcrypt" >&5
33765echo $ECHO_N "checking for gcry_md_open in -lgcrypt... $ECHO_C" >&6; }
33766if test "${ac_cv_lib_gcrypt_gcry_md_open+set}" = set; then
33767  echo $ECHO_N "(cached) $ECHO_C" >&6
33768else
33769  ac_check_lib_save_LIBS=$LIBS
33770LIBS="-lgcrypt  $LIBS"
33771cat >conftest.$ac_ext <<_ACEOF
33772/* confdefs.h.  */
33773_ACEOF
33774cat confdefs.h >>conftest.$ac_ext
33775cat >>conftest.$ac_ext <<_ACEOF
33776/* end confdefs.h.  */
33777
33778/* Override any GCC internal prototype to avoid an error.
33779   Use char because int might match the return type of a GCC
33780   builtin and then its argument prototype would still apply.  */
33781#ifdef __cplusplus
33782extern "C"
33783#endif
33784char gcry_md_open ();
33785int
33786main ()
33787{
33788return gcry_md_open ();
33789  ;
33790  return 0;
33791}
33792_ACEOF
33793rm -f conftest.$ac_objext conftest$ac_exeext
33794if { (ac_try="$ac_link"
33795case "(($ac_try" in
33796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33797  *) ac_try_echo=$ac_try;;
33798esac
33799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33800  (eval "$ac_link") 2>conftest.er1
33801  ac_status=$?
33802  grep -v '^ *+' conftest.er1 >conftest.err
33803  rm -f conftest.er1
33804  cat conftest.err >&5
33805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33806  (exit $ac_status); } && {
33807	 test -z "$ac_c_werror_flag" ||
33808	 test ! -s conftest.err
33809       } && test -s conftest$ac_exeext &&
33810       $as_test_x conftest$ac_exeext; then
33811  ac_cv_lib_gcrypt_gcry_md_open=yes
33812else
33813  echo "$as_me: failed program was:" >&5
33814sed 's/^/| /' conftest.$ac_ext >&5
33815
33816	ac_cv_lib_gcrypt_gcry_md_open=no
33817fi
33818
33819rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33820      conftest$ac_exeext conftest.$ac_ext
33821LIBS=$ac_check_lib_save_LIBS
33822fi
33823{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcrypt_gcry_md_open" >&5
33824echo "${ECHO_T}$ac_cv_lib_gcrypt_gcry_md_open" >&6; }
33825if test $ac_cv_lib_gcrypt_gcry_md_open = yes; then
33826  HAVE_LIBGCRYPT=yes
33827fi
33828
33829if test "x$with_sha1" = x && test "x$HAVE_LIBGCRYPT" = xyes; then
33830	with_sha1=libgcrypt
33831fi
33832if test "x$with_sha1" = xlibgcrypt && test "x$HAVE_LIBGCRYPT" != xyes; then
33833	{ { echo "$as_me:$LINENO: error: libgcrypt requested but not found" >&5
33834echo "$as_me: error: libgcrypt requested but not found" >&2;}
33835   { (exit 1); exit 1; }; }
33836fi
33837if test "x$with_sha1" = xlibgcrypt; then
33838
33839cat >>confdefs.h <<\_ACEOF
33840#define HAVE_SHA1_IN_LIBGCRYPT 1
33841_ACEOF
33842
33843	SHA1_LIBS=-lgcrypt
33844fi
33845# We don't need all of the OpenSSL libraries, just libcrypto
33846{ echo "$as_me:$LINENO: checking for SHA1_Init in -lcrypto" >&5
33847echo $ECHO_N "checking for SHA1_Init in -lcrypto... $ECHO_C" >&6; }
33848if test "${ac_cv_lib_crypto_SHA1_Init+set}" = set; then
33849  echo $ECHO_N "(cached) $ECHO_C" >&6
33850else
33851  ac_check_lib_save_LIBS=$LIBS
33852LIBS="-lcrypto  $LIBS"
33853cat >conftest.$ac_ext <<_ACEOF
33854/* confdefs.h.  */
33855_ACEOF
33856cat confdefs.h >>conftest.$ac_ext
33857cat >>conftest.$ac_ext <<_ACEOF
33858/* end confdefs.h.  */
33859
33860/* Override any GCC internal prototype to avoid an error.
33861   Use char because int might match the return type of a GCC
33862   builtin and then its argument prototype would still apply.  */
33863#ifdef __cplusplus
33864extern "C"
33865#endif
33866char SHA1_Init ();
33867int
33868main ()
33869{
33870return SHA1_Init ();
33871  ;
33872  return 0;
33873}
33874_ACEOF
33875rm -f conftest.$ac_objext conftest$ac_exeext
33876if { (ac_try="$ac_link"
33877case "(($ac_try" in
33878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33879  *) ac_try_echo=$ac_try;;
33880esac
33881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33882  (eval "$ac_link") 2>conftest.er1
33883  ac_status=$?
33884  grep -v '^ *+' conftest.er1 >conftest.err
33885  rm -f conftest.er1
33886  cat conftest.err >&5
33887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33888  (exit $ac_status); } && {
33889	 test -z "$ac_c_werror_flag" ||
33890	 test ! -s conftest.err
33891       } && test -s conftest$ac_exeext &&
33892       $as_test_x conftest$ac_exeext; then
33893  ac_cv_lib_crypto_SHA1_Init=yes
33894else
33895  echo "$as_me: failed program was:" >&5
33896sed 's/^/| /' conftest.$ac_ext >&5
33897
33898	ac_cv_lib_crypto_SHA1_Init=no
33899fi
33900
33901rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33902      conftest$ac_exeext conftest.$ac_ext
33903LIBS=$ac_check_lib_save_LIBS
33904fi
33905{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_SHA1_Init" >&5
33906echo "${ECHO_T}$ac_cv_lib_crypto_SHA1_Init" >&6; }
33907if test $ac_cv_lib_crypto_SHA1_Init = yes; then
33908  HAVE_LIBCRYPTO=yes
33909fi
33910
33911
33912pkg_failed=no
33913{ echo "$as_me:$LINENO: checking for OPENSSL" >&5
33914echo $ECHO_N "checking for OPENSSL... $ECHO_C" >&6; }
33915
33916if test -n "$OPENSSL_CFLAGS"; then
33917    pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
33918 elif test -n "$PKG_CONFIG"; then
33919    if test -n "$PKG_CONFIG" && \
33920    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openssl\"") >&5
33921  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
33922  ac_status=$?
33923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33924  (exit $ac_status); }; then
33925  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
33926else
33927  pkg_failed=yes
33928fi
33929 else
33930    pkg_failed=untried
33931fi
33932if test -n "$OPENSSL_LIBS"; then
33933    pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
33934 elif test -n "$PKG_CONFIG"; then
33935    if test -n "$PKG_CONFIG" && \
33936    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openssl\"") >&5
33937  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
33938  ac_status=$?
33939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33940  (exit $ac_status); }; then
33941  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
33942else
33943  pkg_failed=yes
33944fi
33945 else
33946    pkg_failed=untried
33947fi
33948
33949
33950
33951if test $pkg_failed = yes; then
33952   	{ echo "$as_me:$LINENO: result: no" >&5
33953echo "${ECHO_T}no" >&6; }
33954
33955if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33956        _pkg_short_errors_supported=yes
33957else
33958        _pkg_short_errors_supported=no
33959fi
33960        if test $_pkg_short_errors_supported = yes; then
33961	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "openssl" 2>&1`
33962        else
33963	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors "openssl" 2>&1`
33964        fi
33965	# Put the nasty error message in config.log where it belongs
33966	echo "$OPENSSL_PKG_ERRORS" >&5
33967
33968	HAVE_OPENSSL_PKC=no
33969elif test $pkg_failed = untried; then
33970     	{ echo "$as_me:$LINENO: result: no" >&5
33971echo "${ECHO_T}no" >&6; }
33972	HAVE_OPENSSL_PKC=no
33973else
33974	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
33975	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
33976        { echo "$as_me:$LINENO: result: yes" >&5
33977echo "${ECHO_T}yes" >&6; }
33978	HAVE_OPENSSL_PKC=yes
33979fi
33980if test "x$HAVE_LIBCRYPTO" = xyes || test "x$HAVE_OPENSSL_PKC" = xyes; then
33981	if test "x$with_sha1" = x; then
33982		with_sha1=libcrypto
33983	fi
33984else
33985	if test "x$with_sha1" = xlibcrypto; then
33986		{ { echo "$as_me:$LINENO: error: OpenSSL libcrypto requested but not found" >&5
33987echo "$as_me: error: OpenSSL libcrypto requested but not found" >&2;}
33988   { (exit 1); exit 1; }; }
33989	fi
33990fi
33991if test "x$with_sha1" = xlibcrypto; then
33992	if test "x$HAVE_LIBCRYPTO" = xyes; then
33993		SHA1_LIBS=-lcrypto
33994	else
33995		SHA1_LIBS="$OPENSSL_LIBS"
33996		SHA1_CFLAGS="$OPENSSL_CFLAGS"
33997	fi
33998fi
33999{ echo "$as_me:$LINENO: checking for SHA1 implementation" >&5
34000echo $ECHO_N "checking for SHA1 implementation... $ECHO_C" >&6; }
34001if test "x$with_sha1" = x; then
34002	{ { echo "$as_me:$LINENO: error: No suitable SHA1 implementation found" >&5
34003echo "$as_me: error: No suitable SHA1 implementation found" >&2;}
34004   { (exit 1); exit 1; }; }
34005fi
34006{ echo "$as_me:$LINENO: result: $with_sha1" >&5
34007echo "${ECHO_T}$with_sha1" >&6; }
34008
34009
34010
34011
34012pkg_failed=no
34013{ echo "$as_me:$LINENO: checking for XSERVERCFLAGS" >&5
34014echo $ECHO_N "checking for XSERVERCFLAGS... $ECHO_C" >&6; }
34015
34016if test -n "$XSERVERCFLAGS_CFLAGS"; then
34017    pkg_cv_XSERVERCFLAGS_CFLAGS="$XSERVERCFLAGS_CFLAGS"
34018 elif test -n "$PKG_CONFIG"; then
34019    if test -n "$PKG_CONFIG" && \
34020    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\"") >&5
34021  ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5
34022  ac_status=$?
34023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34024  (exit $ac_status); }; then
34025  pkg_cv_XSERVERCFLAGS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null`
34026else
34027  pkg_failed=yes
34028fi
34029 else
34030    pkg_failed=untried
34031fi
34032if test -n "$XSERVERCFLAGS_LIBS"; then
34033    pkg_cv_XSERVERCFLAGS_LIBS="$XSERVERCFLAGS_LIBS"
34034 elif test -n "$PKG_CONFIG"; then
34035    if test -n "$PKG_CONFIG" && \
34036    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\"") >&5
34037  ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5
34038  ac_status=$?
34039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34040  (exit $ac_status); }; then
34041  pkg_cv_XSERVERCFLAGS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null`
34042else
34043  pkg_failed=yes
34044fi
34045 else
34046    pkg_failed=untried
34047fi
34048
34049
34050
34051if test $pkg_failed = yes; then
34052   	{ echo "$as_me:$LINENO: result: no" >&5
34053echo "${ECHO_T}no" >&6; }
34054
34055if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34056        _pkg_short_errors_supported=yes
34057else
34058        _pkg_short_errors_supported=no
34059fi
34060        if test $_pkg_short_errors_supported = yes; then
34061	        XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1`
34062        else
34063	        XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1`
34064        fi
34065	# Put the nasty error message in config.log where it belongs
34066	echo "$XSERVERCFLAGS_PKG_ERRORS" >&5
34067
34068	{ { echo "$as_me:$LINENO: error: Package requirements ($REQUIRED_MODULES $REQUIRED_LIBS) were not met:
34069
34070$XSERVERCFLAGS_PKG_ERRORS
34071
34072Consider adjusting the PKG_CONFIG_PATH environment variable if you
34073installed software in a non-standard prefix.
34074
34075Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
34076and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
34077See the pkg-config man page for more details." >&5
34078echo "$as_me: error: Package requirements ($REQUIRED_MODULES $REQUIRED_LIBS) were not met:
34079
34080$XSERVERCFLAGS_PKG_ERRORS
34081
34082Consider adjusting the PKG_CONFIG_PATH environment variable if you
34083installed software in a non-standard prefix.
34084
34085Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
34086and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
34087See the pkg-config man page for more details." >&2;}
34088   { (exit 1); exit 1; }; }
34089elif test $pkg_failed = untried; then
34090     	{ echo "$as_me:$LINENO: result: no" >&5
34091echo "${ECHO_T}no" >&6; }
34092	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
34093is in your PATH or set the PKG_CONFIG environment variable to the full
34094path to pkg-config.
34095
34096Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
34097and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
34098See the pkg-config man page for more details.
34099
34100To get pkg-config, see <http://pkg-config.freedesktop.org/>.
34101See \`config.log' for more details." >&5
34102echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
34103is in your PATH or set the PKG_CONFIG environment variable to the full
34104path to pkg-config.
34105
34106Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
34107and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
34108See the pkg-config man page for more details.
34109
34110To get pkg-config, see <http://pkg-config.freedesktop.org/>.
34111See \`config.log' for more details." >&2;}
34112   { (exit 1); exit 1; }; }
34113else
34114	XSERVERCFLAGS_CFLAGS=$pkg_cv_XSERVERCFLAGS_CFLAGS
34115	XSERVERCFLAGS_LIBS=$pkg_cv_XSERVERCFLAGS_LIBS
34116        { echo "$as_me:$LINENO: result: yes" >&5
34117echo "${ECHO_T}yes" >&6; }
34118
34119fi
34120
34121pkg_failed=no
34122{ echo "$as_me:$LINENO: checking for XSERVERLIBS" >&5
34123echo $ECHO_N "checking for XSERVERLIBS... $ECHO_C" >&6; }
34124
34125if test -n "$XSERVERLIBS_CFLAGS"; then
34126    pkg_cv_XSERVERLIBS_CFLAGS="$XSERVERLIBS_CFLAGS"
34127 elif test -n "$PKG_CONFIG"; then
34128    if test -n "$PKG_CONFIG" && \
34129    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\"") >&5
34130  ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5
34131  ac_status=$?
34132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34133  (exit $ac_status); }; then
34134  pkg_cv_XSERVERLIBS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_LIBS" 2>/dev/null`
34135else
34136  pkg_failed=yes
34137fi
34138 else
34139    pkg_failed=untried
34140fi
34141if test -n "$XSERVERLIBS_LIBS"; then
34142    pkg_cv_XSERVERLIBS_LIBS="$XSERVERLIBS_LIBS"
34143 elif test -n "$PKG_CONFIG"; then
34144    if test -n "$PKG_CONFIG" && \
34145    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\"") >&5
34146  ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5
34147  ac_status=$?
34148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34149  (exit $ac_status); }; then
34150  pkg_cv_XSERVERLIBS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_LIBS" 2>/dev/null`
34151else
34152  pkg_failed=yes
34153fi
34154 else
34155    pkg_failed=untried
34156fi
34157
34158
34159
34160if test $pkg_failed = yes; then
34161   	{ echo "$as_me:$LINENO: result: no" >&5
34162echo "${ECHO_T}no" >&6; }
34163
34164if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34165        _pkg_short_errors_supported=yes
34166else
34167        _pkg_short_errors_supported=no
34168fi
34169        if test $_pkg_short_errors_supported = yes; then
34170	        XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$REQUIRED_LIBS" 2>&1`
34171        else
34172	        XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --print-errors "$REQUIRED_LIBS" 2>&1`
34173        fi
34174	# Put the nasty error message in config.log where it belongs
34175	echo "$XSERVERLIBS_PKG_ERRORS" >&5
34176
34177	{ { echo "$as_me:$LINENO: error: Package requirements ($REQUIRED_LIBS) were not met:
34178
34179$XSERVERLIBS_PKG_ERRORS
34180
34181Consider adjusting the PKG_CONFIG_PATH environment variable if you
34182installed software in a non-standard prefix.
34183
34184Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
34185and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
34186See the pkg-config man page for more details." >&5
34187echo "$as_me: error: Package requirements ($REQUIRED_LIBS) were not met:
34188
34189$XSERVERLIBS_PKG_ERRORS
34190
34191Consider adjusting the PKG_CONFIG_PATH environment variable if you
34192installed software in a non-standard prefix.
34193
34194Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
34195and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
34196See the pkg-config man page for more details." >&2;}
34197   { (exit 1); exit 1; }; }
34198elif test $pkg_failed = untried; then
34199     	{ echo "$as_me:$LINENO: result: no" >&5
34200echo "${ECHO_T}no" >&6; }
34201	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
34202is in your PATH or set the PKG_CONFIG environment variable to the full
34203path to pkg-config.
34204
34205Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
34206and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
34207See the pkg-config man page for more details.
34208
34209To get pkg-config, see <http://pkg-config.freedesktop.org/>.
34210See \`config.log' for more details." >&5
34211echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
34212is in your PATH or set the PKG_CONFIG environment variable to the full
34213path to pkg-config.
34214
34215Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
34216and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
34217See the pkg-config man page for more details.
34218
34219To get pkg-config, see <http://pkg-config.freedesktop.org/>.
34220See \`config.log' for more details." >&2;}
34221   { (exit 1); exit 1; }; }
34222else
34223	XSERVERLIBS_CFLAGS=$pkg_cv_XSERVERLIBS_CFLAGS
34224	XSERVERLIBS_LIBS=$pkg_cv_XSERVERLIBS_LIBS
34225        { echo "$as_me:$LINENO: result: yes" >&5
34226echo "${ECHO_T}yes" >&6; }
34227
34228fi
34229
34230# Autotools has some unfortunate issues with library handling.  In order to
34231# get a server to rebuild when a dependency in the tree is changed, it must
34232# be listed in SERVERNAME_DEPENDENCIES.  However, no system libraries may be
34233# listed there, or some versions of autotools will break (especially if a -L
34234# is required to find the library).  So, we keep two sets of libraries
34235# detected: NAMESPACE_LIBS for in-tree libraries to be linked against, which
34236# will go into the _DEPENDENCIES and _LDADD of the server, and
34237# NAMESPACE_SYS_LIBS which will go into only the _LDADD.  The
34238# NAMESPACEMODULES_LIBS detected from pkgconfig should always go in
34239# NAMESPACE_SYS_LIBS.
34240#
34241# XSERVER_LIBS is the set of in-tree libraries which all servers require.
34242# XSERVER_SYS_LIBS is the set of out-of-tree libraries which all servers
34243# require.
34244#
34245XSERVER_CFLAGS="${XSERVER_CFLAGS} ${XSERVERCFLAGS_CFLAGS}"
34246XSERVER_LIBS="$DIX_LIB $MI_LIB $OS_LIB"
34247XSERVER_SYS_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} ${LIBS}"
34248
34249
34250
34251UTILS_SYS_LIBS="${SYS_LIBS}"
34252
34253
34254# The Xorg binary needs to export symbols so that they can be used from modules
34255# Some platforms require extra flags to do this.   libtool should set the
34256# necessary flags for each platform when -export-dynamic is passed to it.
34257LD_EXPORT_SYMBOLS_FLAG="-export-dynamic"
34258
34259
34260{ echo "$as_me:$LINENO: checking if SVR4 needs to be defined" >&5
34261echo $ECHO_N "checking if SVR4 needs to be defined... $ECHO_C" >&6; }
34262cat >conftest.$ac_ext <<_ACEOF
34263/* confdefs.h.  */
34264_ACEOF
34265cat confdefs.h >>conftest.$ac_ext
34266cat >>conftest.$ac_ext <<_ACEOF
34267/* end confdefs.h.  */
34268
34269#if defined(SVR4) || defined(__svr4__) || defined(__SVR4)
34270 I_AM_SVR4
34271#endif
34272
34273_ACEOF
34274if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34275  $EGREP "I_AM_SVR4" >/dev/null 2>&1; then
34276
34277
34278cat >>confdefs.h <<\_ACEOF
34279#define SVR4 1
34280_ACEOF
34281
34282{ echo "$as_me:$LINENO: result: yes" >&5
34283echo "${ECHO_T}yes" >&6; }
34284else
34285  { echo "$as_me:$LINENO: result: no" >&5
34286echo "${ECHO_T}no" >&6; }
34287fi
34288rm -f -r conftest*
34289
34290
34291XSERVER_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"
34292
34293
34294
34295{ echo "$as_me:$LINENO: checking whether to build Xvfb DDX" >&5
34296echo $ECHO_N "checking whether to build Xvfb DDX... $ECHO_C" >&6; }
34297{ echo "$as_me:$LINENO: result: $XVFB" >&5
34298echo "${ECHO_T}$XVFB" >&6; }
34299 if test "x$XVFB" = xyes; then
34300  XVFB_TRUE=
34301  XVFB_FALSE='#'
34302else
34303  XVFB_TRUE='#'
34304  XVFB_FALSE=
34305fi
34306
34307
34308if test "x$XVFB" = xyes; then
34309	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"
34310	XVFB_SYS_LIBS="$XVFBMODULES_LIBS $GLX_SYS_LIBS"
34311
34312
34313fi
34314
34315
34316
34317
34318pkg_failed=no
34319{ echo "$as_me:$LINENO: checking for XNESTMODULES" >&5
34320echo $ECHO_N "checking for XNESTMODULES... $ECHO_C" >&6; }
34321
34322if test -n "$XNESTMODULES_CFLAGS"; then
34323    pkg_cv_XNESTMODULES_CFLAGS="$XNESTMODULES_CFLAGS"
34324 elif test -n "$PKG_CONFIG"; then
34325    if test -n "$PKG_CONFIG" && \
34326    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\"") >&5
34327  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5
34328  ac_status=$?
34329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34330  (exit $ac_status); }; then
34331  pkg_cv_XNESTMODULES_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null`
34332else
34333  pkg_failed=yes
34334fi
34335 else
34336    pkg_failed=untried
34337fi
34338if test -n "$XNESTMODULES_LIBS"; then
34339    pkg_cv_XNESTMODULES_LIBS="$XNESTMODULES_LIBS"
34340 elif test -n "$PKG_CONFIG"; then
34341    if test -n "$PKG_CONFIG" && \
34342    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\"") >&5
34343  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5
34344  ac_status=$?
34345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34346  (exit $ac_status); }; then
34347  pkg_cv_XNESTMODULES_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null`
34348else
34349  pkg_failed=yes
34350fi
34351 else
34352    pkg_failed=untried
34353fi
34354
34355
34356
34357if test $pkg_failed = yes; then
34358   	{ echo "$as_me:$LINENO: result: no" >&5
34359echo "${ECHO_T}no" >&6; }
34360
34361if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34362        _pkg_short_errors_supported=yes
34363else
34364        _pkg_short_errors_supported=no
34365fi
34366        if test $_pkg_short_errors_supported = yes; then
34367	        XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1`
34368        else
34369	        XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1`
34370        fi
34371	# Put the nasty error message in config.log where it belongs
34372	echo "$XNESTMODULES_PKG_ERRORS" >&5
34373
34374	have_xnest=no
34375elif test $pkg_failed = untried; then
34376     	{ echo "$as_me:$LINENO: result: no" >&5
34377echo "${ECHO_T}no" >&6; }
34378	have_xnest=no
34379else
34380	XNESTMODULES_CFLAGS=$pkg_cv_XNESTMODULES_CFLAGS
34381	XNESTMODULES_LIBS=$pkg_cv_XNESTMODULES_LIBS
34382        { echo "$as_me:$LINENO: result: yes" >&5
34383echo "${ECHO_T}yes" >&6; }
34384	have_xnest=yes
34385fi
34386{ echo "$as_me:$LINENO: checking whether to build Xnest DDX" >&5
34387echo $ECHO_N "checking whether to build Xnest DDX... $ECHO_C" >&6; }
34388if test "x$XNEST" = xauto; then
34389	XNEST="$have_xnest"
34390fi
34391{ echo "$as_me:$LINENO: result: $XNEST" >&5
34392echo "${ECHO_T}$XNEST" >&6; }
34393 if test "x$XNEST" = xyes; then
34394  XNEST_TRUE=
34395  XNEST_FALSE='#'
34396else
34397  XNEST_TRUE='#'
34398  XNEST_FALSE=
34399fi
34400
34401
34402if test "x$XNEST" = xyes; then
34403	if test "x$have_xnest" = xno; then
34404		{ { echo "$as_me:$LINENO: error: Xnest build explicitly requested, but required modules not found." >&5
34405echo "$as_me: error: Xnest build explicitly requested, but required modules not found." >&2;}
34406   { (exit 1); exit 1; }; }
34407	fi
34408	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 $DIX_LIB $MAIN_LIB $OS_LIB"
34409	XNEST_SYS_LIBS="$XNESTMODULES_LIBS $GLX_SYS_LIBS"
34410
34411
34412fi
34413
34414
34415
34416{ echo "$as_me:$LINENO: checking whether to build Xorg DDX" >&5
34417echo $ECHO_N "checking whether to build Xorg DDX... $ECHO_C" >&6; }
34418if test "x$XORG" = xauto; then
34419	XORG="yes"
34420	case $host_os in
34421		cygwin*) XORG="no" ;;
34422		darwin*) XORG="no" ;;
34423	esac
34424fi
34425{ echo "$as_me:$LINENO: result: $XORG" >&5
34426echo "${ECHO_T}$XORG" >&6; }
34427
34428xorg_bus_linuxpci=no
34429xorg_bus_bsdpci=no
34430xorg_bus_sparc=no
34431
34432if test "x$XORG" = xyes; then
34433	XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common'
34434	XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os'
34435	XORG_INCS="$XORG_DDXINCS $XORG_OSINCS"
34436	XORG_CFLAGS="$XORGSERVER_CFLAGS -DHAVE_XORG_CONFIG_H"
34437	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"
34438
34439			symbol_visibility=
34440	have_visibility=disabled
34441	if test x$SYMBOL_VISIBILITY != xno; then
34442	    { echo "$as_me:$LINENO: checking for symbol visibility support" >&5
34443echo $ECHO_N "checking for symbol visibility support... $ECHO_C" >&6; }
34444	    if test x$GCC = xyes; then
34445		VISIBILITY_CFLAGS="-fvisibility=hidden"
34446	    else
34447		{ echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
34448echo $ECHO_N "checking whether __SUNPRO_C is declared... $ECHO_C" >&6; }
34449if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
34450  echo $ECHO_N "(cached) $ECHO_C" >&6
34451else
34452  cat >conftest.$ac_ext <<_ACEOF
34453/* confdefs.h.  */
34454_ACEOF
34455cat confdefs.h >>conftest.$ac_ext
34456cat >>conftest.$ac_ext <<_ACEOF
34457/* end confdefs.h.  */
34458$ac_includes_default
34459int
34460main ()
34461{
34462#ifndef __SUNPRO_C
34463  (void) __SUNPRO_C;
34464#endif
34465
34466  ;
34467  return 0;
34468}
34469_ACEOF
34470rm -f conftest.$ac_objext
34471if { (ac_try="$ac_compile"
34472case "(($ac_try" in
34473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34474  *) ac_try_echo=$ac_try;;
34475esac
34476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34477  (eval "$ac_compile") 2>conftest.er1
34478  ac_status=$?
34479  grep -v '^ *+' conftest.er1 >conftest.err
34480  rm -f conftest.er1
34481  cat conftest.err >&5
34482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34483  (exit $ac_status); } && {
34484	 test -z "$ac_c_werror_flag" ||
34485	 test ! -s conftest.err
34486       } && test -s conftest.$ac_objext; then
34487  ac_cv_have_decl___SUNPRO_C=yes
34488else
34489  echo "$as_me: failed program was:" >&5
34490sed 's/^/| /' conftest.$ac_ext >&5
34491
34492	ac_cv_have_decl___SUNPRO_C=no
34493fi
34494
34495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34496fi
34497{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
34498echo "${ECHO_T}$ac_cv_have_decl___SUNPRO_C" >&6; }
34499if test $ac_cv_have_decl___SUNPRO_C = yes; then
34500  SUNCC="yes"
34501else
34502  SUNCC="no"
34503fi
34504
34505		if test x$SUNCC = xyes; then
34506		    VISIBILITY_CFLAGS="-xldscope=hidden"
34507		else
34508		    have_visibility=no
34509		fi
34510	    fi
34511	    if test x$have_visibility != xno; then
34512		save_CFLAGS="$CFLAGS"
34513		CFLAGS="$CFLAGS $VISIBILITY_CFLAGS"
34514		cat >conftest.$ac_ext <<_ACEOF
34515/* confdefs.h.  */
34516_ACEOF
34517cat confdefs.h >>conftest.$ac_ext
34518cat >>conftest.$ac_ext <<_ACEOF
34519/* end confdefs.h.  */
34520#include <X11/Xfuncproto.h>
34521		     extern _X_HIDDEN int hidden_int;
34522		     extern _X_EXPORT int public_int;
34523		     extern _X_HIDDEN int hidden_int_func(void);
34524		     extern _X_EXPORT int public_int_func(void);
34525int
34526main ()
34527{
34528
34529  ;
34530  return 0;
34531}
34532_ACEOF
34533rm -f conftest.$ac_objext
34534if { (ac_try="$ac_compile"
34535case "(($ac_try" in
34536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34537  *) ac_try_echo=$ac_try;;
34538esac
34539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34540  (eval "$ac_compile") 2>conftest.er1
34541  ac_status=$?
34542  grep -v '^ *+' conftest.er1 >conftest.err
34543  rm -f conftest.er1
34544  cat conftest.err >&5
34545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34546  (exit $ac_status); } && {
34547	 test -z "$ac_c_werror_flag" ||
34548	 test ! -s conftest.err
34549       } && test -s conftest.$ac_objext; then
34550  have_visibility=yes
34551else
34552  echo "$as_me: failed program was:" >&5
34553sed 's/^/| /' conftest.$ac_ext >&5
34554
34555	have_visibility=no
34556fi
34557
34558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34559		CFLAGS=$save_CFLAGS
34560	    fi
34561	    { echo "$as_me:$LINENO: result: $have_visibility" >&5
34562echo "${ECHO_T}$have_visibility" >&6; }
34563	    if test x$have_visibility != xno; then
34564		symbol_visibility=$VISIBILITY_CFLAGS
34565		XORG_CFLAGS="$XORG_CFLAGS $VISIBILITY_CFLAGS"
34566		XSERVER_CFLAGS="$XSERVER_CFLAGS $VISIBILITY_CFLAGS"
34567	    fi
34568	fi
34569
34570
34571
34572pkg_failed=no
34573{ echo "$as_me:$LINENO: checking for PCIACCESS" >&5
34574echo $ECHO_N "checking for PCIACCESS... $ECHO_C" >&6; }
34575
34576if test -n "$PCIACCESS_CFLAGS"; then
34577    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
34578 elif test -n "$PKG_CONFIG"; then
34579    if test -n "$PKG_CONFIG" && \
34580    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\"") >&5
34581  ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5
34582  ac_status=$?
34583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34584  (exit $ac_status); }; then
34585  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "$LIBPCIACCESS" 2>/dev/null`
34586else
34587  pkg_failed=yes
34588fi
34589 else
34590    pkg_failed=untried
34591fi
34592if test -n "$PCIACCESS_LIBS"; then
34593    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
34594 elif test -n "$PKG_CONFIG"; then
34595    if test -n "$PKG_CONFIG" && \
34596    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\"") >&5
34597  ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5
34598  ac_status=$?
34599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34600  (exit $ac_status); }; then
34601  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "$LIBPCIACCESS" 2>/dev/null`
34602else
34603  pkg_failed=yes
34604fi
34605 else
34606    pkg_failed=untried
34607fi
34608
34609
34610
34611if test $pkg_failed = yes; then
34612   	{ echo "$as_me:$LINENO: result: no" >&5
34613echo "${ECHO_T}no" >&6; }
34614
34615if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34616        _pkg_short_errors_supported=yes
34617else
34618        _pkg_short_errors_supported=no
34619fi
34620        if test $_pkg_short_errors_supported = yes; then
34621	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBPCIACCESS" 2>&1`
34622        else
34623	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBPCIACCESS" 2>&1`
34624        fi
34625	# Put the nasty error message in config.log where it belongs
34626	echo "$PCIACCESS_PKG_ERRORS" >&5
34627
34628	{ { echo "$as_me:$LINENO: error: Package requirements ($LIBPCIACCESS) were not met:
34629
34630$PCIACCESS_PKG_ERRORS
34631
34632Consider adjusting the PKG_CONFIG_PATH environment variable if you
34633installed software in a non-standard prefix.
34634
34635Alternatively, you may set the environment variables PCIACCESS_CFLAGS
34636and PCIACCESS_LIBS to avoid the need to call pkg-config.
34637See the pkg-config man page for more details." >&5
34638echo "$as_me: error: Package requirements ($LIBPCIACCESS) were not met:
34639
34640$PCIACCESS_PKG_ERRORS
34641
34642Consider adjusting the PKG_CONFIG_PATH environment variable if you
34643installed software in a non-standard prefix.
34644
34645Alternatively, you may set the environment variables PCIACCESS_CFLAGS
34646and PCIACCESS_LIBS to avoid the need to call pkg-config.
34647See the pkg-config man page for more details." >&2;}
34648   { (exit 1); exit 1; }; }
34649elif test $pkg_failed = untried; then
34650     	{ echo "$as_me:$LINENO: result: no" >&5
34651echo "${ECHO_T}no" >&6; }
34652	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
34653is in your PATH or set the PKG_CONFIG environment variable to the full
34654path to pkg-config.
34655
34656Alternatively, you may set the environment variables PCIACCESS_CFLAGS
34657and PCIACCESS_LIBS to avoid the need to call pkg-config.
34658See the pkg-config man page for more details.
34659
34660To get pkg-config, see <http://pkg-config.freedesktop.org/>.
34661See \`config.log' for more details." >&5
34662echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
34663is in your PATH or set the PKG_CONFIG environment variable to the full
34664path to pkg-config.
34665
34666Alternatively, you may set the environment variables PCIACCESS_CFLAGS
34667and PCIACCESS_LIBS to avoid the need to call pkg-config.
34668See the pkg-config man page for more details.
34669
34670To get pkg-config, see <http://pkg-config.freedesktop.org/>.
34671See \`config.log' for more details." >&2;}
34672   { (exit 1); exit 1; }; }
34673else
34674	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
34675	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
34676        { echo "$as_me:$LINENO: result: yes" >&5
34677echo "${ECHO_T}yes" >&6; }
34678
34679fi
34680	SAVE_LIBS=$LIBS
34681	SAVE_CFLAGS=$CFLAGS
34682	CFLAGS=$PCIACCESS_CFLAGS
34683	LIBS=$PCIACCESS_LIBS
34684
34685for ac_func in pci_system_init_dev_mem
34686do
34687as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34688{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34689echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34690if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34691  echo $ECHO_N "(cached) $ECHO_C" >&6
34692else
34693  cat >conftest.$ac_ext <<_ACEOF
34694/* confdefs.h.  */
34695_ACEOF
34696cat confdefs.h >>conftest.$ac_ext
34697cat >>conftest.$ac_ext <<_ACEOF
34698/* end confdefs.h.  */
34699/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34700   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34701#define $ac_func innocuous_$ac_func
34702
34703/* System header to define __stub macros and hopefully few prototypes,
34704    which can conflict with char $ac_func (); below.
34705    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34706    <limits.h> exists even on freestanding compilers.  */
34707
34708#ifdef __STDC__
34709# include <limits.h>
34710#else
34711# include <assert.h>
34712#endif
34713
34714#undef $ac_func
34715
34716/* Override any GCC internal prototype to avoid an error.
34717   Use char because int might match the return type of a GCC
34718   builtin and then its argument prototype would still apply.  */
34719#ifdef __cplusplus
34720extern "C"
34721#endif
34722char $ac_func ();
34723/* The GNU C library defines this for functions which it implements
34724    to always fail with ENOSYS.  Some functions are actually named
34725    something starting with __ and the normal name is an alias.  */
34726#if defined __stub_$ac_func || defined __stub___$ac_func
34727choke me
34728#endif
34729
34730int
34731main ()
34732{
34733return $ac_func ();
34734  ;
34735  return 0;
34736}
34737_ACEOF
34738rm -f conftest.$ac_objext conftest$ac_exeext
34739if { (ac_try="$ac_link"
34740case "(($ac_try" in
34741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34742  *) ac_try_echo=$ac_try;;
34743esac
34744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34745  (eval "$ac_link") 2>conftest.er1
34746  ac_status=$?
34747  grep -v '^ *+' conftest.er1 >conftest.err
34748  rm -f conftest.er1
34749  cat conftest.err >&5
34750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34751  (exit $ac_status); } && {
34752	 test -z "$ac_c_werror_flag" ||
34753	 test ! -s conftest.err
34754       } && test -s conftest$ac_exeext &&
34755       $as_test_x conftest$ac_exeext; then
34756  eval "$as_ac_var=yes"
34757else
34758  echo "$as_me: failed program was:" >&5
34759sed 's/^/| /' conftest.$ac_ext >&5
34760
34761	eval "$as_ac_var=no"
34762fi
34763
34764rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34765      conftest$ac_exeext conftest.$ac_ext
34766fi
34767ac_res=`eval echo '${'$as_ac_var'}'`
34768	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34769echo "${ECHO_T}$ac_res" >&6; }
34770if test `eval echo '${'$as_ac_var'}'` = yes; then
34771  cat >>confdefs.h <<_ACEOF
34772#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34773_ACEOF
34774
34775fi
34776done
34777
34778
34779for ac_func in pci_device_enable
34780do
34781as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34782{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34783echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34784if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34785  echo $ECHO_N "(cached) $ECHO_C" >&6
34786else
34787  cat >conftest.$ac_ext <<_ACEOF
34788/* confdefs.h.  */
34789_ACEOF
34790cat confdefs.h >>conftest.$ac_ext
34791cat >>conftest.$ac_ext <<_ACEOF
34792/* end confdefs.h.  */
34793/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34794   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34795#define $ac_func innocuous_$ac_func
34796
34797/* System header to define __stub macros and hopefully few prototypes,
34798    which can conflict with char $ac_func (); below.
34799    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34800    <limits.h> exists even on freestanding compilers.  */
34801
34802#ifdef __STDC__
34803# include <limits.h>
34804#else
34805# include <assert.h>
34806#endif
34807
34808#undef $ac_func
34809
34810/* Override any GCC internal prototype to avoid an error.
34811   Use char because int might match the return type of a GCC
34812   builtin and then its argument prototype would still apply.  */
34813#ifdef __cplusplus
34814extern "C"
34815#endif
34816char $ac_func ();
34817/* The GNU C library defines this for functions which it implements
34818    to always fail with ENOSYS.  Some functions are actually named
34819    something starting with __ and the normal name is an alias.  */
34820#if defined __stub_$ac_func || defined __stub___$ac_func
34821choke me
34822#endif
34823
34824int
34825main ()
34826{
34827return $ac_func ();
34828  ;
34829  return 0;
34830}
34831_ACEOF
34832rm -f conftest.$ac_objext conftest$ac_exeext
34833if { (ac_try="$ac_link"
34834case "(($ac_try" in
34835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34836  *) ac_try_echo=$ac_try;;
34837esac
34838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34839  (eval "$ac_link") 2>conftest.er1
34840  ac_status=$?
34841  grep -v '^ *+' conftest.er1 >conftest.err
34842  rm -f conftest.er1
34843  cat conftest.err >&5
34844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34845  (exit $ac_status); } && {
34846	 test -z "$ac_c_werror_flag" ||
34847	 test ! -s conftest.err
34848       } && test -s conftest$ac_exeext &&
34849       $as_test_x conftest$ac_exeext; then
34850  eval "$as_ac_var=yes"
34851else
34852  echo "$as_me: failed program was:" >&5
34853sed 's/^/| /' conftest.$ac_ext >&5
34854
34855	eval "$as_ac_var=no"
34856fi
34857
34858rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34859      conftest$ac_exeext conftest.$ac_ext
34860fi
34861ac_res=`eval echo '${'$as_ac_var'}'`
34862	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34863echo "${ECHO_T}$ac_res" >&6; }
34864if test `eval echo '${'$as_ac_var'}'` = yes; then
34865  cat >>confdefs.h <<_ACEOF
34866#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34867_ACEOF
34868
34869fi
34870done
34871
34872
34873for ac_func in pci_device_is_boot_vga
34874do
34875as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34876{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34878if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34879  echo $ECHO_N "(cached) $ECHO_C" >&6
34880else
34881  cat >conftest.$ac_ext <<_ACEOF
34882/* confdefs.h.  */
34883_ACEOF
34884cat confdefs.h >>conftest.$ac_ext
34885cat >>conftest.$ac_ext <<_ACEOF
34886/* end confdefs.h.  */
34887/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34888   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34889#define $ac_func innocuous_$ac_func
34890
34891/* System header to define __stub macros and hopefully few prototypes,
34892    which can conflict with char $ac_func (); below.
34893    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34894    <limits.h> exists even on freestanding compilers.  */
34895
34896#ifdef __STDC__
34897# include <limits.h>
34898#else
34899# include <assert.h>
34900#endif
34901
34902#undef $ac_func
34903
34904/* Override any GCC internal prototype to avoid an error.
34905   Use char because int might match the return type of a GCC
34906   builtin and then its argument prototype would still apply.  */
34907#ifdef __cplusplus
34908extern "C"
34909#endif
34910char $ac_func ();
34911/* The GNU C library defines this for functions which it implements
34912    to always fail with ENOSYS.  Some functions are actually named
34913    something starting with __ and the normal name is an alias.  */
34914#if defined __stub_$ac_func || defined __stub___$ac_func
34915choke me
34916#endif
34917
34918int
34919main ()
34920{
34921return $ac_func ();
34922  ;
34923  return 0;
34924}
34925_ACEOF
34926rm -f conftest.$ac_objext conftest$ac_exeext
34927if { (ac_try="$ac_link"
34928case "(($ac_try" in
34929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34930  *) ac_try_echo=$ac_try;;
34931esac
34932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34933  (eval "$ac_link") 2>conftest.er1
34934  ac_status=$?
34935  grep -v '^ *+' conftest.er1 >conftest.err
34936  rm -f conftest.er1
34937  cat conftest.err >&5
34938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34939  (exit $ac_status); } && {
34940	 test -z "$ac_c_werror_flag" ||
34941	 test ! -s conftest.err
34942       } && test -s conftest$ac_exeext &&
34943       $as_test_x conftest$ac_exeext; then
34944  eval "$as_ac_var=yes"
34945else
34946  echo "$as_me: failed program was:" >&5
34947sed 's/^/| /' conftest.$ac_ext >&5
34948
34949	eval "$as_ac_var=no"
34950fi
34951
34952rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34953      conftest$ac_exeext conftest.$ac_ext
34954fi
34955ac_res=`eval echo '${'$as_ac_var'}'`
34956	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34957echo "${ECHO_T}$ac_res" >&6; }
34958if test `eval echo '${'$as_ac_var'}'` = yes; then
34959  cat >>confdefs.h <<_ACEOF
34960#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34961_ACEOF
34962
34963fi
34964done
34965
34966
34967for ac_func in pci_device_vgaarb_init
34968do
34969as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34970{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34971echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34972if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34973  echo $ECHO_N "(cached) $ECHO_C" >&6
34974else
34975  cat >conftest.$ac_ext <<_ACEOF
34976/* confdefs.h.  */
34977_ACEOF
34978cat confdefs.h >>conftest.$ac_ext
34979cat >>conftest.$ac_ext <<_ACEOF
34980/* end confdefs.h.  */
34981/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34982   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34983#define $ac_func innocuous_$ac_func
34984
34985/* System header to define __stub macros and hopefully few prototypes,
34986    which can conflict with char $ac_func (); below.
34987    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34988    <limits.h> exists even on freestanding compilers.  */
34989
34990#ifdef __STDC__
34991# include <limits.h>
34992#else
34993# include <assert.h>
34994#endif
34995
34996#undef $ac_func
34997
34998/* Override any GCC internal prototype to avoid an error.
34999   Use char because int might match the return type of a GCC
35000   builtin and then its argument prototype would still apply.  */
35001#ifdef __cplusplus
35002extern "C"
35003#endif
35004char $ac_func ();
35005/* The GNU C library defines this for functions which it implements
35006    to always fail with ENOSYS.  Some functions are actually named
35007    something starting with __ and the normal name is an alias.  */
35008#if defined __stub_$ac_func || defined __stub___$ac_func
35009choke me
35010#endif
35011
35012int
35013main ()
35014{
35015return $ac_func ();
35016  ;
35017  return 0;
35018}
35019_ACEOF
35020rm -f conftest.$ac_objext conftest$ac_exeext
35021if { (ac_try="$ac_link"
35022case "(($ac_try" in
35023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35024  *) ac_try_echo=$ac_try;;
35025esac
35026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35027  (eval "$ac_link") 2>conftest.er1
35028  ac_status=$?
35029  grep -v '^ *+' conftest.er1 >conftest.err
35030  rm -f conftest.er1
35031  cat conftest.err >&5
35032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35033  (exit $ac_status); } && {
35034	 test -z "$ac_c_werror_flag" ||
35035	 test ! -s conftest.err
35036       } && test -s conftest$ac_exeext &&
35037       $as_test_x conftest$ac_exeext; then
35038  eval "$as_ac_var=yes"
35039else
35040  echo "$as_me: failed program was:" >&5
35041sed 's/^/| /' conftest.$ac_ext >&5
35042
35043	eval "$as_ac_var=no"
35044fi
35045
35046rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35047      conftest$ac_exeext conftest.$ac_ext
35048fi
35049ac_res=`eval echo '${'$as_ac_var'}'`
35050	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35051echo "${ECHO_T}$ac_res" >&6; }
35052if test `eval echo '${'$as_ac_var'}'` = yes; then
35053  cat >>confdefs.h <<_ACEOF
35054#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35055_ACEOF
35056
35057fi
35058done
35059
35060	LIBS=$SAVE_LIBS
35061	CFLAGS=$SAVE_CFLAGS
35062	XORG_SYS_LIBS="$XORG_SYS_LIBS $PCIACCESS_LIBS $GLX_SYS_LIBS"
35063	XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
35064
35065	case $host_os in
35066	  linux*)
35067		if test "x$LNXAPM" = xyes; then
35068			XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
35069		fi
35070	  	XORG_OS="linux"
35071		XORG_OS_SUBDIR="linux"
35072		xorg_bus_linuxpci="yes"
35073		linux_acpi="no"
35074		case $host_cpu in
35075		  ia64*)
35076			linux_ia64=yes
35077			linux_acpi="yes"
35078			;;
35079		  alpha*)
35080		  	linux_alpha=yes
35081			;;
35082		  i*86|amd64*|x86_64*)
35083			linux_acpi="yes"
35084			;;
35085		  *)
35086			;;
35087		esac
35088		;;
35089	  freebsd* | kfreebsd*-gnu | dragonfly*)
35090	  	XORG_OS="freebsd"
35091		XORG_OS_SUBDIR="bsd"
35092		xorg_bus_bsdpci="yes"
35093		;;
35094	  netbsd*)
35095	  	XORG_OS="netbsd"
35096		XORG_OS_SUBDIR="bsd"
35097		xorg_bus_bsdpci="yes"
35098		;;
35099	  openbsd*)
35100		if test "x$ac_cv_BSD_APM" = xyes \
35101			-o "x$ac_cv_BSD_KQUEUE_APM" = xyes; then
35102			XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
35103		fi
35104	  	XORG_OS="openbsd"
35105		XORG_OS_SUBDIR="bsd"
35106		xorg_bus_bsdpci="yes"
35107		;;
35108	  solaris*)
35109	  	XORG_OS="solaris"
35110		XORG_OS_SUBDIR="solaris"
35111		XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
35112		# Use the same stubs as BSD for old functions, since we now
35113		# use libpciaccess for PCI
35114		xorg_bus_bsdpci="yes"
35115
35116for ac_header in sys/kd.h
35117do
35118as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35119if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35120  { echo "$as_me:$LINENO: checking for $ac_header" >&5
35121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35122if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35123  echo $ECHO_N "(cached) $ECHO_C" >&6
35124fi
35125ac_res=`eval echo '${'$as_ac_Header'}'`
35126	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35127echo "${ECHO_T}$ac_res" >&6; }
35128else
35129  # Is the header compilable?
35130{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
35131echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35132cat >conftest.$ac_ext <<_ACEOF
35133/* confdefs.h.  */
35134_ACEOF
35135cat confdefs.h >>conftest.$ac_ext
35136cat >>conftest.$ac_ext <<_ACEOF
35137/* end confdefs.h.  */
35138$ac_includes_default
35139#include <$ac_header>
35140_ACEOF
35141rm -f conftest.$ac_objext
35142if { (ac_try="$ac_compile"
35143case "(($ac_try" in
35144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35145  *) ac_try_echo=$ac_try;;
35146esac
35147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35148  (eval "$ac_compile") 2>conftest.er1
35149  ac_status=$?
35150  grep -v '^ *+' conftest.er1 >conftest.err
35151  rm -f conftest.er1
35152  cat conftest.err >&5
35153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35154  (exit $ac_status); } && {
35155	 test -z "$ac_c_werror_flag" ||
35156	 test ! -s conftest.err
35157       } && test -s conftest.$ac_objext; then
35158  ac_header_compiler=yes
35159else
35160  echo "$as_me: failed program was:" >&5
35161sed 's/^/| /' conftest.$ac_ext >&5
35162
35163	ac_header_compiler=no
35164fi
35165
35166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35167{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35168echo "${ECHO_T}$ac_header_compiler" >&6; }
35169
35170# Is the header present?
35171{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
35172echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35173cat >conftest.$ac_ext <<_ACEOF
35174/* confdefs.h.  */
35175_ACEOF
35176cat confdefs.h >>conftest.$ac_ext
35177cat >>conftest.$ac_ext <<_ACEOF
35178/* end confdefs.h.  */
35179#include <$ac_header>
35180_ACEOF
35181if { (ac_try="$ac_cpp conftest.$ac_ext"
35182case "(($ac_try" in
35183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35184  *) ac_try_echo=$ac_try;;
35185esac
35186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35187  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35188  ac_status=$?
35189  grep -v '^ *+' conftest.er1 >conftest.err
35190  rm -f conftest.er1
35191  cat conftest.err >&5
35192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35193  (exit $ac_status); } >/dev/null && {
35194	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35195	 test ! -s conftest.err
35196       }; then
35197  ac_header_preproc=yes
35198else
35199  echo "$as_me: failed program was:" >&5
35200sed 's/^/| /' conftest.$ac_ext >&5
35201
35202  ac_header_preproc=no
35203fi
35204
35205rm -f conftest.err conftest.$ac_ext
35206{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35207echo "${ECHO_T}$ac_header_preproc" >&6; }
35208
35209# So?  What about this header?
35210case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35211  yes:no: )
35212    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35213echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35214    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35215echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35216    ac_header_preproc=yes
35217    ;;
35218  no:yes:* )
35219    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35220echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35221    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35222echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35223    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35224echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35225    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35226echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35227    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35228echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35229    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35230echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35231    ( cat <<\_ASBOX
35232## ---------------------------------------------------------------------- ##
35233## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
35234## ---------------------------------------------------------------------- ##
35235_ASBOX
35236     ) | sed "s/^/$as_me: WARNING:     /" >&2
35237    ;;
35238esac
35239{ echo "$as_me:$LINENO: checking for $ac_header" >&5
35240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35241if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35242  echo $ECHO_N "(cached) $ECHO_C" >&6
35243else
35244  eval "$as_ac_Header=\$ac_header_preproc"
35245fi
35246ac_res=`eval echo '${'$as_ac_Header'}'`
35247	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35248echo "${ECHO_T}$ac_res" >&6; }
35249
35250fi
35251if test `eval echo '${'$as_ac_Header'}'` = yes; then
35252  cat >>confdefs.h <<_ACEOF
35253#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35254_ACEOF
35255
35256fi
35257
35258done
35259
35260
35261for ac_header in sys/vt.h
35262do
35263as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35264if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35265  { echo "$as_me:$LINENO: checking for $ac_header" >&5
35266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35267if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35268  echo $ECHO_N "(cached) $ECHO_C" >&6
35269fi
35270ac_res=`eval echo '${'$as_ac_Header'}'`
35271	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35272echo "${ECHO_T}$ac_res" >&6; }
35273else
35274  # Is the header compilable?
35275{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
35276echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35277cat >conftest.$ac_ext <<_ACEOF
35278/* confdefs.h.  */
35279_ACEOF
35280cat confdefs.h >>conftest.$ac_ext
35281cat >>conftest.$ac_ext <<_ACEOF
35282/* end confdefs.h.  */
35283$ac_includes_default
35284#include <$ac_header>
35285_ACEOF
35286rm -f conftest.$ac_objext
35287if { (ac_try="$ac_compile"
35288case "(($ac_try" in
35289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35290  *) ac_try_echo=$ac_try;;
35291esac
35292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35293  (eval "$ac_compile") 2>conftest.er1
35294  ac_status=$?
35295  grep -v '^ *+' conftest.er1 >conftest.err
35296  rm -f conftest.er1
35297  cat conftest.err >&5
35298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35299  (exit $ac_status); } && {
35300	 test -z "$ac_c_werror_flag" ||
35301	 test ! -s conftest.err
35302       } && test -s conftest.$ac_objext; then
35303  ac_header_compiler=yes
35304else
35305  echo "$as_me: failed program was:" >&5
35306sed 's/^/| /' conftest.$ac_ext >&5
35307
35308	ac_header_compiler=no
35309fi
35310
35311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35312{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35313echo "${ECHO_T}$ac_header_compiler" >&6; }
35314
35315# Is the header present?
35316{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
35317echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35318cat >conftest.$ac_ext <<_ACEOF
35319/* confdefs.h.  */
35320_ACEOF
35321cat confdefs.h >>conftest.$ac_ext
35322cat >>conftest.$ac_ext <<_ACEOF
35323/* end confdefs.h.  */
35324#include <$ac_header>
35325_ACEOF
35326if { (ac_try="$ac_cpp conftest.$ac_ext"
35327case "(($ac_try" in
35328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35329  *) ac_try_echo=$ac_try;;
35330esac
35331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35332  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35333  ac_status=$?
35334  grep -v '^ *+' conftest.er1 >conftest.err
35335  rm -f conftest.er1
35336  cat conftest.err >&5
35337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35338  (exit $ac_status); } >/dev/null && {
35339	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35340	 test ! -s conftest.err
35341       }; then
35342  ac_header_preproc=yes
35343else
35344  echo "$as_me: failed program was:" >&5
35345sed 's/^/| /' conftest.$ac_ext >&5
35346
35347  ac_header_preproc=no
35348fi
35349
35350rm -f conftest.err conftest.$ac_ext
35351{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35352echo "${ECHO_T}$ac_header_preproc" >&6; }
35353
35354# So?  What about this header?
35355case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35356  yes:no: )
35357    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35358echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35359    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35360echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35361    ac_header_preproc=yes
35362    ;;
35363  no:yes:* )
35364    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35365echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35366    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35367echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35368    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35369echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35370    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35371echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35372    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35373echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35374    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35375echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35376    ( cat <<\_ASBOX
35377## ---------------------------------------------------------------------- ##
35378## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
35379## ---------------------------------------------------------------------- ##
35380_ASBOX
35381     ) | sed "s/^/$as_me: WARNING:     /" >&2
35382    ;;
35383esac
35384{ echo "$as_me:$LINENO: checking for $ac_header" >&5
35385echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35386if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35387  echo $ECHO_N "(cached) $ECHO_C" >&6
35388else
35389  eval "$as_ac_Header=\$ac_header_preproc"
35390fi
35391ac_res=`eval echo '${'$as_ac_Header'}'`
35392	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35393echo "${ECHO_T}$ac_res" >&6; }
35394
35395fi
35396if test `eval echo '${'$as_ac_Header'}'` = yes; then
35397  cat >>confdefs.h <<_ACEOF
35398#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35399_ACEOF
35400 solaris_vt=yes
35401else
35402  solaris_vt=no
35403fi
35404
35405done
35406
35407		# Check for minimum supported release
35408		{ echo "$as_me:$LINENO: checking Solaris version" >&5
35409echo $ECHO_N "checking Solaris version... $ECHO_C" >&6; }
35410	        OS_MINOR=`echo ${host_os}|$SED -e 's/^.*solaris2\.//' -e s'/\..*$//'`
35411		if test "${OS_MINOR}" -ge 7 ; then
35412	        	{ echo "$as_me:$LINENO: result: Solaris ${OS_MINOR}" >&5
35413echo "${ECHO_T}Solaris ${OS_MINOR}" >&6; }
35414		else
35415			{ echo "$as_me:$LINENO: result: Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&5
35416echo "${ECHO_T}Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&6; }
35417		fi
35418		if test "${OS_MINOR}" -lt 8 ; then
35419			{ { echo "$as_me:$LINENO: error: This release no longer supports Solaris versions older than Solaris 8." >&5
35420echo "$as_me: error: This release no longer supports Solaris versions older than Solaris 8." >&2;}
35421   { (exit 1); exit 1; }; }
35422		fi
35423		{ echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
35424echo $ECHO_N "checking whether __SUNPRO_C is declared... $ECHO_C" >&6; }
35425if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
35426  echo $ECHO_N "(cached) $ECHO_C" >&6
35427else
35428  cat >conftest.$ac_ext <<_ACEOF
35429/* confdefs.h.  */
35430_ACEOF
35431cat confdefs.h >>conftest.$ac_ext
35432cat >>conftest.$ac_ext <<_ACEOF
35433/* end confdefs.h.  */
35434$ac_includes_default
35435int
35436main ()
35437{
35438#ifndef __SUNPRO_C
35439  (void) __SUNPRO_C;
35440#endif
35441
35442  ;
35443  return 0;
35444}
35445_ACEOF
35446rm -f conftest.$ac_objext
35447if { (ac_try="$ac_compile"
35448case "(($ac_try" in
35449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35450  *) ac_try_echo=$ac_try;;
35451esac
35452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35453  (eval "$ac_compile") 2>conftest.er1
35454  ac_status=$?
35455  grep -v '^ *+' conftest.er1 >conftest.err
35456  rm -f conftest.er1
35457  cat conftest.err >&5
35458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35459  (exit $ac_status); } && {
35460	 test -z "$ac_c_werror_flag" ||
35461	 test ! -s conftest.err
35462       } && test -s conftest.$ac_objext; then
35463  ac_cv_have_decl___SUNPRO_C=yes
35464else
35465  echo "$as_me: failed program was:" >&5
35466sed 's/^/| /' conftest.$ac_ext >&5
35467
35468	ac_cv_have_decl___SUNPRO_C=no
35469fi
35470
35471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35472fi
35473{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
35474echo "${ECHO_T}$ac_cv_have_decl___SUNPRO_C" >&6; }
35475if test $ac_cv_have_decl___SUNPRO_C = yes; then
35476  SUNCC="yes"
35477else
35478  SUNCC="no"
35479fi
35480
35481		if test "x$SUNCC" = "xyes"; then
35482			solaris_asm_inline="yes"
35483		fi
35484		{ echo "$as_me:$LINENO: checking whether _LP64 is declared" >&5
35485echo $ECHO_N "checking whether _LP64 is declared... $ECHO_C" >&6; }
35486if test "${ac_cv_have_decl__LP64+set}" = set; then
35487  echo $ECHO_N "(cached) $ECHO_C" >&6
35488else
35489  cat >conftest.$ac_ext <<_ACEOF
35490/* confdefs.h.  */
35491_ACEOF
35492cat confdefs.h >>conftest.$ac_ext
35493cat >>conftest.$ac_ext <<_ACEOF
35494/* end confdefs.h.  */
35495$ac_includes_default
35496int
35497main ()
35498{
35499#ifndef _LP64
35500  (void) _LP64;
35501#endif
35502
35503  ;
35504  return 0;
35505}
35506_ACEOF
35507rm -f conftest.$ac_objext
35508if { (ac_try="$ac_compile"
35509case "(($ac_try" in
35510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35511  *) ac_try_echo=$ac_try;;
35512esac
35513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35514  (eval "$ac_compile") 2>conftest.er1
35515  ac_status=$?
35516  grep -v '^ *+' conftest.er1 >conftest.err
35517  rm -f conftest.er1
35518  cat conftest.err >&5
35519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35520  (exit $ac_status); } && {
35521	 test -z "$ac_c_werror_flag" ||
35522	 test ! -s conftest.err
35523       } && test -s conftest.$ac_objext; then
35524  ac_cv_have_decl__LP64=yes
35525else
35526  echo "$as_me: failed program was:" >&5
35527sed 's/^/| /' conftest.$ac_ext >&5
35528
35529	ac_cv_have_decl__LP64=no
35530fi
35531
35532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35533fi
35534{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__LP64" >&5
35535echo "${ECHO_T}$ac_cv_have_decl__LP64" >&6; }
35536if test $ac_cv_have_decl__LP64 = yes; then
35537  SOLARIS_64="yes"
35538else
35539  SOLARIS_64="no"
35540fi
35541
35542
35543		case $host_cpu in
35544		  sparc*)
35545			SOLARIS_INOUT_ARCH="sparcv8plus"
35546			;;
35547		  i*86)
35548			if test x$SOLARIS_64 = xyes ; then
35549				SOLARIS_INOUT_ARCH="amd64"
35550			else
35551				SOLARIS_INOUT_ARCH="ia32"
35552			fi
35553			;;
35554		  *)
35555			{ { echo "$as_me:$LINENO: error: Unsupported Solaris platform. Only SPARC & x86 \
35556			are supported on Solaris in this release.   If you are \
35557			interested in porting Xorg to your platform, please email \
35558			xorg@lists.freedesktop.org." >&5
35559echo "$as_me: error: Unsupported Solaris platform. Only SPARC & x86 \
35560			are supported on Solaris in this release.   If you are \
35561			interested in porting Xorg to your platform, please email \
35562			xorg@lists.freedesktop.org." >&2;}
35563   { (exit 1); exit 1; }; } ;;
35564		esac
35565
35566		if test x$solaris_asm_inline = xyes ; then
35567			SOLARIS_ASM_CFLAGS='$(top_srcdir)/hw/xfree86/os-support/solaris/solaris-$(SOLARIS_INOUT_ARCH).il'
35568			XORG_CFLAGS="${XORG_CFLAGS} "'$(SOLARIS_ASM_CFLAGS)'
35569		fi
35570
35571		if test "x$SUPPORT_PC98" = xauto; then
35572			SUPPORT_PC98="no"
35573		fi
35574		;;
35575	  gnu*)
35576	  	XORG_OS="gnu"
35577		XORG_OS_SUBDIR="hurd"
35578		# Use the same stubs as BSD for old functions, since we now
35579		# use libpciaccess for PCI
35580		xorg_bus_bsdpci="yes"
35581		;;
35582	  *)
35583	  	XORG_OS="unknown"
35584		XORG_OS_SUBDIR="unknown"
35585		{ { echo "$as_me:$LINENO: error: Your OS is unknown. Xorg currently only supports Linux,
35586Free/Open/Net/DragonFlyBSD, Solaris/OpenSolaris, & GNU Hurd. If you are
35587interested in porting Xorg to your platform, please email
35588xorg@lists.freedesktop.org." >&5
35589echo "$as_me: error: Your OS is unknown. Xorg currently only supports Linux,
35590Free/Open/Net/DragonFlyBSD, Solaris/OpenSolaris, & GNU Hurd. If you are
35591interested in porting Xorg to your platform, please email
35592xorg@lists.freedesktop.org." >&2;}
35593   { (exit 1); exit 1; }; }
35594		;;
35595	esac
35596
35597	case $host_cpu in
35598	  sparc*)
35599		xorg_bus_sparc="yes"
35600		;;
35601	  i*86)
35602		if test "x$SUPPORT_PC98" = xauto; then
35603			SUPPORT_PC98="yes"
35604		fi
35605		;;
35606	esac
35607
35608	if test "x$SUPPORT_PC98" = xauto; then
35609		SUPPORT_PC98="no"
35610	fi
35611	if test "x$SUPPORT_PC98" = xyes; then
35612
35613cat >>confdefs.h <<\_ACEOF
35614#define SUPPORT_PC98 1
35615_ACEOF
35616
35617	fi
35618	if test "x$XORG_OS_PCI" = x ; then
35619		XORG_OS_PCI=$XORG_OS
35620	fi
35621	if test "x$DGA" = xauto; then
35622
35623pkg_failed=no
35624{ echo "$as_me:$LINENO: checking for DGA" >&5
35625echo $ECHO_N "checking for DGA... $ECHO_C" >&6; }
35626
35627if test -n "$DGA_CFLAGS"; then
35628    pkg_cv_DGA_CFLAGS="$DGA_CFLAGS"
35629 elif test -n "$PKG_CONFIG"; then
35630    if test -n "$PKG_CONFIG" && \
35631    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\"") >&5
35632  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
35633  ac_status=$?
35634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35635  (exit $ac_status); }; then
35636  pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null`
35637else
35638  pkg_failed=yes
35639fi
35640 else
35641    pkg_failed=untried
35642fi
35643if test -n "$DGA_LIBS"; then
35644    pkg_cv_DGA_LIBS="$DGA_LIBS"
35645 elif test -n "$PKG_CONFIG"; then
35646    if test -n "$PKG_CONFIG" && \
35647    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\"") >&5
35648  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
35649  ac_status=$?
35650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35651  (exit $ac_status); }; then
35652  pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null`
35653else
35654  pkg_failed=yes
35655fi
35656 else
35657    pkg_failed=untried
35658fi
35659
35660
35661
35662if test $pkg_failed = yes; then
35663   	{ echo "$as_me:$LINENO: result: no" >&5
35664echo "${ECHO_T}no" >&6; }
35665
35666if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35667        _pkg_short_errors_supported=yes
35668else
35669        _pkg_short_errors_supported=no
35670fi
35671        if test $_pkg_short_errors_supported = yes; then
35672	        DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$DGAPROTO" 2>&1`
35673        else
35674	        DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors "$DGAPROTO" 2>&1`
35675        fi
35676	# Put the nasty error message in config.log where it belongs
35677	echo "$DGA_PKG_ERRORS" >&5
35678
35679	DGA=no
35680elif test $pkg_failed = untried; then
35681     	{ echo "$as_me:$LINENO: result: no" >&5
35682echo "${ECHO_T}no" >&6; }
35683	DGA=no
35684else
35685	DGA_CFLAGS=$pkg_cv_DGA_CFLAGS
35686	DGA_LIBS=$pkg_cv_DGA_LIBS
35687        { echo "$as_me:$LINENO: result: yes" >&5
35688echo "${ECHO_T}yes" >&6; }
35689	DGA=yes
35690fi
35691	fi
35692	if test "x$DGA" = xyes; then
35693		XORG_MODULES="$XORG_MODULES $DGAPROTO"
35694
35695pkg_failed=no
35696{ echo "$as_me:$LINENO: checking for DGA" >&5
35697echo $ECHO_N "checking for DGA... $ECHO_C" >&6; }
35698
35699if test -n "$DGA_CFLAGS"; then
35700    pkg_cv_DGA_CFLAGS="$DGA_CFLAGS"
35701 elif test -n "$PKG_CONFIG"; then
35702    if test -n "$PKG_CONFIG" && \
35703    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\"") >&5
35704  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
35705  ac_status=$?
35706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35707  (exit $ac_status); }; then
35708  pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null`
35709else
35710  pkg_failed=yes
35711fi
35712 else
35713    pkg_failed=untried
35714fi
35715if test -n "$DGA_LIBS"; then
35716    pkg_cv_DGA_LIBS="$DGA_LIBS"
35717 elif test -n "$PKG_CONFIG"; then
35718    if test -n "$PKG_CONFIG" && \
35719    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\"") >&5
35720  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
35721  ac_status=$?
35722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35723  (exit $ac_status); }; then
35724  pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null`
35725else
35726  pkg_failed=yes
35727fi
35728 else
35729    pkg_failed=untried
35730fi
35731
35732
35733
35734if test $pkg_failed = yes; then
35735   	{ echo "$as_me:$LINENO: result: no" >&5
35736echo "${ECHO_T}no" >&6; }
35737
35738if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35739        _pkg_short_errors_supported=yes
35740else
35741        _pkg_short_errors_supported=no
35742fi
35743        if test $_pkg_short_errors_supported = yes; then
35744	        DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$DGAPROTO" 2>&1`
35745        else
35746	        DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors "$DGAPROTO" 2>&1`
35747        fi
35748	# Put the nasty error message in config.log where it belongs
35749	echo "$DGA_PKG_ERRORS" >&5
35750
35751	{ { echo "$as_me:$LINENO: error: Package requirements ($DGAPROTO) were not met:
35752
35753$DGA_PKG_ERRORS
35754
35755Consider adjusting the PKG_CONFIG_PATH environment variable if you
35756installed software in a non-standard prefix.
35757
35758Alternatively, you may set the environment variables DGA_CFLAGS
35759and DGA_LIBS to avoid the need to call pkg-config.
35760See the pkg-config man page for more details." >&5
35761echo "$as_me: error: Package requirements ($DGAPROTO) were not met:
35762
35763$DGA_PKG_ERRORS
35764
35765Consider adjusting the PKG_CONFIG_PATH environment variable if you
35766installed software in a non-standard prefix.
35767
35768Alternatively, you may set the environment variables DGA_CFLAGS
35769and DGA_LIBS to avoid the need to call pkg-config.
35770See the pkg-config man page for more details." >&2;}
35771   { (exit 1); exit 1; }; }
35772elif test $pkg_failed = untried; then
35773     	{ echo "$as_me:$LINENO: result: no" >&5
35774echo "${ECHO_T}no" >&6; }
35775	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
35776is in your PATH or set the PKG_CONFIG environment variable to the full
35777path to pkg-config.
35778
35779Alternatively, you may set the environment variables DGA_CFLAGS
35780and DGA_LIBS to avoid the need to call pkg-config.
35781See the pkg-config man page for more details.
35782
35783To get pkg-config, see <http://pkg-config.freedesktop.org/>.
35784See \`config.log' for more details." >&5
35785echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
35786is in your PATH or set the PKG_CONFIG environment variable to the full
35787path to pkg-config.
35788
35789Alternatively, you may set the environment variables DGA_CFLAGS
35790and DGA_LIBS to avoid the need to call pkg-config.
35791See the pkg-config man page for more details.
35792
35793To get pkg-config, see <http://pkg-config.freedesktop.org/>.
35794See \`config.log' for more details." >&2;}
35795   { (exit 1); exit 1; }; }
35796else
35797	DGA_CFLAGS=$pkg_cv_DGA_CFLAGS
35798	DGA_LIBS=$pkg_cv_DGA_LIBS
35799        { echo "$as_me:$LINENO: result: yes" >&5
35800echo "${ECHO_T}yes" >&6; }
35801
35802fi
35803
35804cat >>confdefs.h <<\_ACEOF
35805#define DGA 1
35806_ACEOF
35807
35808
35809cat >>confdefs.h <<\_ACEOF
35810#define XFreeXDGA 1
35811_ACEOF
35812
35813	fi
35814
35815	if test "x$XF86VIDMODE" = xauto; then
35816
35817pkg_failed=no
35818{ echo "$as_me:$LINENO: checking for XF86VIDMODE" >&5
35819echo $ECHO_N "checking for XF86VIDMODE... $ECHO_C" >&6; }
35820
35821if test -n "$XF86VIDMODE_CFLAGS"; then
35822    pkg_cv_XF86VIDMODE_CFLAGS="$XF86VIDMODE_CFLAGS"
35823 elif test -n "$PKG_CONFIG"; then
35824    if test -n "$PKG_CONFIG" && \
35825    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\"") >&5
35826  ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5
35827  ac_status=$?
35828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35829  (exit $ac_status); }; then
35830  pkg_cv_XF86VIDMODE_CFLAGS=`$PKG_CONFIG --cflags "$VIDMODEPROTO" 2>/dev/null`
35831else
35832  pkg_failed=yes
35833fi
35834 else
35835    pkg_failed=untried
35836fi
35837if test -n "$XF86VIDMODE_LIBS"; then
35838    pkg_cv_XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS"
35839 elif test -n "$PKG_CONFIG"; then
35840    if test -n "$PKG_CONFIG" && \
35841    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\"") >&5
35842  ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5
35843  ac_status=$?
35844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35845  (exit $ac_status); }; then
35846  pkg_cv_XF86VIDMODE_LIBS=`$PKG_CONFIG --libs "$VIDMODEPROTO" 2>/dev/null`
35847else
35848  pkg_failed=yes
35849fi
35850 else
35851    pkg_failed=untried
35852fi
35853
35854
35855
35856if test $pkg_failed = yes; then
35857   	{ echo "$as_me:$LINENO: result: no" >&5
35858echo "${ECHO_T}no" >&6; }
35859
35860if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35861        _pkg_short_errors_supported=yes
35862else
35863        _pkg_short_errors_supported=no
35864fi
35865        if test $_pkg_short_errors_supported = yes; then
35866	        XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$VIDMODEPROTO" 2>&1`
35867        else
35868	        XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --print-errors "$VIDMODEPROTO" 2>&1`
35869        fi
35870	# Put the nasty error message in config.log where it belongs
35871	echo "$XF86VIDMODE_PKG_ERRORS" >&5
35872
35873	XF86VIDMODE=no
35874elif test $pkg_failed = untried; then
35875     	{ echo "$as_me:$LINENO: result: no" >&5
35876echo "${ECHO_T}no" >&6; }
35877	XF86VIDMODE=no
35878else
35879	XF86VIDMODE_CFLAGS=$pkg_cv_XF86VIDMODE_CFLAGS
35880	XF86VIDMODE_LIBS=$pkg_cv_XF86VIDMODE_LIBS
35881        { echo "$as_me:$LINENO: result: yes" >&5
35882echo "${ECHO_T}yes" >&6; }
35883	XF86VIDMODE=yes
35884fi
35885	fi
35886	if test "x$XF86VIDMODE" = xyes; then
35887		XORG_MODULES="$XORG_MODULES $VIDMODEPROTO"
35888
35889pkg_failed=no
35890{ echo "$as_me:$LINENO: checking for XF86VIDMODE" >&5
35891echo $ECHO_N "checking for XF86VIDMODE... $ECHO_C" >&6; }
35892
35893if test -n "$XF86VIDMODE_CFLAGS"; then
35894    pkg_cv_XF86VIDMODE_CFLAGS="$XF86VIDMODE_CFLAGS"
35895 elif test -n "$PKG_CONFIG"; then
35896    if test -n "$PKG_CONFIG" && \
35897    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\"") >&5
35898  ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5
35899  ac_status=$?
35900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35901  (exit $ac_status); }; then
35902  pkg_cv_XF86VIDMODE_CFLAGS=`$PKG_CONFIG --cflags "$VIDMODEPROTO" 2>/dev/null`
35903else
35904  pkg_failed=yes
35905fi
35906 else
35907    pkg_failed=untried
35908fi
35909if test -n "$XF86VIDMODE_LIBS"; then
35910    pkg_cv_XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS"
35911 elif test -n "$PKG_CONFIG"; then
35912    if test -n "$PKG_CONFIG" && \
35913    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\"") >&5
35914  ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5
35915  ac_status=$?
35916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35917  (exit $ac_status); }; then
35918  pkg_cv_XF86VIDMODE_LIBS=`$PKG_CONFIG --libs "$VIDMODEPROTO" 2>/dev/null`
35919else
35920  pkg_failed=yes
35921fi
35922 else
35923    pkg_failed=untried
35924fi
35925
35926
35927
35928if test $pkg_failed = yes; then
35929   	{ echo "$as_me:$LINENO: result: no" >&5
35930echo "${ECHO_T}no" >&6; }
35931
35932if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35933        _pkg_short_errors_supported=yes
35934else
35935        _pkg_short_errors_supported=no
35936fi
35937        if test $_pkg_short_errors_supported = yes; then
35938	        XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$VIDMODEPROTO" 2>&1`
35939        else
35940	        XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --print-errors "$VIDMODEPROTO" 2>&1`
35941        fi
35942	# Put the nasty error message in config.log where it belongs
35943	echo "$XF86VIDMODE_PKG_ERRORS" >&5
35944
35945	{ { echo "$as_me:$LINENO: error: Package requirements ($VIDMODEPROTO) were not met:
35946
35947$XF86VIDMODE_PKG_ERRORS
35948
35949Consider adjusting the PKG_CONFIG_PATH environment variable if you
35950installed software in a non-standard prefix.
35951
35952Alternatively, you may set the environment variables XF86VIDMODE_CFLAGS
35953and XF86VIDMODE_LIBS to avoid the need to call pkg-config.
35954See the pkg-config man page for more details." >&5
35955echo "$as_me: error: Package requirements ($VIDMODEPROTO) were not met:
35956
35957$XF86VIDMODE_PKG_ERRORS
35958
35959Consider adjusting the PKG_CONFIG_PATH environment variable if you
35960installed software in a non-standard prefix.
35961
35962Alternatively, you may set the environment variables XF86VIDMODE_CFLAGS
35963and XF86VIDMODE_LIBS to avoid the need to call pkg-config.
35964See the pkg-config man page for more details." >&2;}
35965   { (exit 1); exit 1; }; }
35966elif test $pkg_failed = untried; then
35967     	{ echo "$as_me:$LINENO: result: no" >&5
35968echo "${ECHO_T}no" >&6; }
35969	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
35970is in your PATH or set the PKG_CONFIG environment variable to the full
35971path to pkg-config.
35972
35973Alternatively, you may set the environment variables XF86VIDMODE_CFLAGS
35974and XF86VIDMODE_LIBS to avoid the need to call pkg-config.
35975See the pkg-config man page for more details.
35976
35977To get pkg-config, see <http://pkg-config.freedesktop.org/>.
35978See \`config.log' for more details." >&5
35979echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
35980is in your PATH or set the PKG_CONFIG environment variable to the full
35981path to pkg-config.
35982
35983Alternatively, you may set the environment variables XF86VIDMODE_CFLAGS
35984and XF86VIDMODE_LIBS to avoid the need to call pkg-config.
35985See the pkg-config man page for more details.
35986
35987To get pkg-config, see <http://pkg-config.freedesktop.org/>.
35988See \`config.log' for more details." >&2;}
35989   { (exit 1); exit 1; }; }
35990else
35991	XF86VIDMODE_CFLAGS=$pkg_cv_XF86VIDMODE_CFLAGS
35992	XF86VIDMODE_LIBS=$pkg_cv_XF86VIDMODE_LIBS
35993        { echo "$as_me:$LINENO: result: yes" >&5
35994echo "${ECHO_T}yes" >&6; }
35995
35996fi
35997
35998cat >>confdefs.h <<\_ACEOF
35999#define XF86VIDMODE 1
36000_ACEOF
36001
36002	fi
36003
36004	if test -n "$XORG_MODULES"; then
36005
36006pkg_failed=no
36007{ echo "$as_me:$LINENO: checking for XORG_MODULES" >&5
36008echo $ECHO_N "checking for XORG_MODULES... $ECHO_C" >&6; }
36009
36010if test -n "$XORG_MODULES_CFLAGS"; then
36011    pkg_cv_XORG_MODULES_CFLAGS="$XORG_MODULES_CFLAGS"
36012 elif test -n "$PKG_CONFIG"; then
36013    if test -n "$PKG_CONFIG" && \
36014    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\"") >&5
36015  ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5
36016  ac_status=$?
36017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36018  (exit $ac_status); }; then
36019  pkg_cv_XORG_MODULES_CFLAGS=`$PKG_CONFIG --cflags "$XORG_MODULES" 2>/dev/null`
36020else
36021  pkg_failed=yes
36022fi
36023 else
36024    pkg_failed=untried
36025fi
36026if test -n "$XORG_MODULES_LIBS"; then
36027    pkg_cv_XORG_MODULES_LIBS="$XORG_MODULES_LIBS"
36028 elif test -n "$PKG_CONFIG"; then
36029    if test -n "$PKG_CONFIG" && \
36030    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\"") >&5
36031  ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5
36032  ac_status=$?
36033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36034  (exit $ac_status); }; then
36035  pkg_cv_XORG_MODULES_LIBS=`$PKG_CONFIG --libs "$XORG_MODULES" 2>/dev/null`
36036else
36037  pkg_failed=yes
36038fi
36039 else
36040    pkg_failed=untried
36041fi
36042
36043
36044
36045if test $pkg_failed = yes; then
36046   	{ echo "$as_me:$LINENO: result: no" >&5
36047echo "${ECHO_T}no" >&6; }
36048
36049if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36050        _pkg_short_errors_supported=yes
36051else
36052        _pkg_short_errors_supported=no
36053fi
36054        if test $_pkg_short_errors_supported = yes; then
36055	        XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$XORG_MODULES" 2>&1`
36056        else
36057	        XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors "$XORG_MODULES" 2>&1`
36058        fi
36059	# Put the nasty error message in config.log where it belongs
36060	echo "$XORG_MODULES_PKG_ERRORS" >&5
36061
36062	{ { echo "$as_me:$LINENO: error: Package requirements ($XORG_MODULES) were not met:
36063
36064$XORG_MODULES_PKG_ERRORS
36065
36066Consider adjusting the PKG_CONFIG_PATH environment variable if you
36067installed software in a non-standard prefix.
36068
36069Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
36070and XORG_MODULES_LIBS to avoid the need to call pkg-config.
36071See the pkg-config man page for more details." >&5
36072echo "$as_me: error: Package requirements ($XORG_MODULES) were not met:
36073
36074$XORG_MODULES_PKG_ERRORS
36075
36076Consider adjusting the PKG_CONFIG_PATH environment variable if you
36077installed software in a non-standard prefix.
36078
36079Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
36080and XORG_MODULES_LIBS to avoid the need to call pkg-config.
36081See the pkg-config man page for more details." >&2;}
36082   { (exit 1); exit 1; }; }
36083elif test $pkg_failed = untried; then
36084     	{ echo "$as_me:$LINENO: result: no" >&5
36085echo "${ECHO_T}no" >&6; }
36086	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
36087is in your PATH or set the PKG_CONFIG environment variable to the full
36088path to pkg-config.
36089
36090Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
36091and XORG_MODULES_LIBS to avoid the need to call pkg-config.
36092See the pkg-config man page for more details.
36093
36094To get pkg-config, see <http://pkg-config.freedesktop.org/>.
36095See \`config.log' for more details." >&5
36096echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
36097is in your PATH or set the PKG_CONFIG environment variable to the full
36098path to pkg-config.
36099
36100Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
36101and XORG_MODULES_LIBS to avoid the need to call pkg-config.
36102See the pkg-config man page for more details.
36103
36104To get pkg-config, see <http://pkg-config.freedesktop.org/>.
36105See \`config.log' for more details." >&2;}
36106   { (exit 1); exit 1; }; }
36107else
36108	XORG_MODULES_CFLAGS=$pkg_cv_XORG_MODULES_CFLAGS
36109	XORG_MODULES_LIBS=$pkg_cv_XORG_MODULES_LIBS
36110        { echo "$as_me:$LINENO: result: yes" >&5
36111echo "${ECHO_T}yes" >&6; }
36112
36113fi
36114	        XORG_CFLAGS="$XORG_CFLAGS $XORG_MODULES_CFLAGS"
36115	        XORG_SYS_LIBS="$XORG_SYS_LIBS $XORG_MODULES_LIBS"
36116	fi
36117
36118
36119
36120
36121
36122
36123
36124	# Extract the first word of "perl", so it can be a program name with args.
36125set dummy perl; ac_word=$2
36126{ echo "$as_me:$LINENO: checking for $ac_word" >&5
36127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36128if test "${ac_cv_path_PERL+set}" = set; then
36129  echo $ECHO_N "(cached) $ECHO_C" >&6
36130else
36131  case $PERL in
36132  [\\/]* | ?:[\\/]*)
36133  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
36134  ;;
36135  *)
36136  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36137for as_dir in $PATH
36138do
36139  IFS=$as_save_IFS
36140  test -z "$as_dir" && as_dir=.
36141  for ac_exec_ext in '' $ac_executable_extensions; do
36142  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36143    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
36144    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36145    break 2
36146  fi
36147done
36148done
36149IFS=$as_save_IFS
36150
36151  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
36152  ;;
36153esac
36154fi
36155PERL=$ac_cv_path_PERL
36156if test -n "$PERL"; then
36157  { echo "$as_me:$LINENO: result: $PERL" >&5
36158echo "${ECHO_T}$PERL" >&6; }
36159else
36160  { echo "$as_me:$LINENO: result: no" >&5
36161echo "${ECHO_T}no" >&6; }
36162fi
36163
36164
36165		if test "x$PERL" = xno; then
36166		{ { echo "$as_me:$LINENO: error: Perl is required to build the XFree86/Xorg DDX." >&5
36167echo "$as_me: error: Perl is required to build the XFree86/Xorg DDX." >&2;}
36168   { (exit 1); exit 1; }; }
36169	fi
36170
36171
36172
36173
36174		XF86CONFIGFILE="xorg.conf"
36175	XF86CONFIGDIR="xorg.conf.d"
36176
36177	CONFIGFILE="$sysconfdir/$XF86CONFIGFILE"
36178	LOGPREFIX="$logdir/Xorg."
36179
36180cat >>confdefs.h <<\_ACEOF
36181#define XORG_SERVER 1
36182_ACEOF
36183
36184
36185cat >>confdefs.h <<\_ACEOF
36186#define XORGSERVER 1
36187_ACEOF
36188
36189
36190cat >>confdefs.h <<\_ACEOF
36191#define XFree86Server 1
36192_ACEOF
36193
36194
36195cat >>confdefs.h <<\_ACEOF
36196#define XFree86LOADER 1
36197_ACEOF
36198
36199
36200cat >>confdefs.h <<_ACEOF
36201#define XORG_VERSION_CURRENT $VENDOR_RELEASE
36202_ACEOF
36203
36204
36205cat >>confdefs.h <<\_ACEOF
36206#define NEED_XF86_TYPES 1
36207_ACEOF
36208
36209
36210cat >>confdefs.h <<\_ACEOF
36211#define NEED_XF86_PROTOTYPES 1
36212_ACEOF
36213
36214
36215cat >>confdefs.h <<\_ACEOF
36216#define __XSERVERNAME__ "Xorg"
36217_ACEOF
36218
36219
36220  prefix_NONE=
36221  exec_prefix_NONE=
36222  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
36223  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
36224  eval ac_define_dir="\"$XF86CONFIGFILE\""
36225  eval ac_define_dir="\"$ac_define_dir\""
36226  __XCONFIGFILE__="$ac_define_dir"
36227
36228
36229cat >>confdefs.h <<_ACEOF
36230#define __XCONFIGFILE__ "$ac_define_dir"
36231_ACEOF
36232
36233  test "$prefix_NONE" && prefix=NONE
36234  test "$exec_prefix_NONE" && exec_prefix=NONE
36235
36236
36237  prefix_NONE=
36238  exec_prefix_NONE=
36239  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
36240  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
36241  eval ac_define_dir="\"$XF86CONFIGFILE\""
36242  eval ac_define_dir="\"$ac_define_dir\""
36243  XF86CONFIGFILE="$ac_define_dir"
36244
36245
36246cat >>confdefs.h <<_ACEOF
36247#define XF86CONFIGFILE "$ac_define_dir"
36248_ACEOF
36249
36250  test "$prefix_NONE" && prefix=NONE
36251  test "$exec_prefix_NONE" && exec_prefix=NONE
36252
36253
36254  prefix_NONE=
36255  exec_prefix_NONE=
36256  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
36257  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
36258  eval ac_define_dir="\"$XF86CONFIGDIR\""
36259  eval ac_define_dir="\"$ac_define_dir\""
36260  __XCONFIGDIR__="$ac_define_dir"
36261
36262
36263cat >>confdefs.h <<_ACEOF
36264#define __XCONFIGDIR__ "$ac_define_dir"
36265_ACEOF
36266
36267  test "$prefix_NONE" && prefix=NONE
36268  test "$exec_prefix_NONE" && exec_prefix=NONE
36269
36270
36271  prefix_NONE=
36272  exec_prefix_NONE=
36273  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
36274  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
36275  eval ac_define_dir="\"$moduledir\""
36276  eval ac_define_dir="\"$ac_define_dir\""
36277  DEFAULT_MODULE_PATH="$ac_define_dir"
36278
36279
36280cat >>confdefs.h <<_ACEOF
36281#define DEFAULT_MODULE_PATH "$ac_define_dir"
36282_ACEOF
36283
36284  test "$prefix_NONE" && prefix=NONE
36285  test "$exec_prefix_NONE" && exec_prefix=NONE
36286
36287
36288  prefix_NONE=
36289  exec_prefix_NONE=
36290  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
36291  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
36292  eval ac_define_dir="\"$libdir\""
36293  eval ac_define_dir="\"$ac_define_dir\""
36294  DEFAULT_LIBRARY_PATH="$ac_define_dir"
36295
36296
36297cat >>confdefs.h <<_ACEOF
36298#define DEFAULT_LIBRARY_PATH "$ac_define_dir"
36299_ACEOF
36300
36301  test "$prefix_NONE" && prefix=NONE
36302  test "$exec_prefix_NONE" && exec_prefix=NONE
36303
36304
36305  prefix_NONE=
36306  exec_prefix_NONE=
36307  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
36308  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
36309  eval ac_define_dir="\"$LOGPREFIX\""
36310  eval ac_define_dir="\"$ac_define_dir\""
36311  DEFAULT_LOGPREFIX="$ac_define_dir"
36312
36313
36314cat >>confdefs.h <<_ACEOF
36315#define DEFAULT_LOGPREFIX "$ac_define_dir"
36316_ACEOF
36317
36318  test "$prefix_NONE" && prefix=NONE
36319  test "$exec_prefix_NONE" && exec_prefix=NONE
36320
36321
36322cat >>confdefs.h <<_ACEOF
36323#define __VENDORDWEBSUPPORT__ "$VENDOR_WEB"
36324_ACEOF
36325
36326
36327cat >>confdefs.h <<\_ACEOF
36328#define XSERVER_LIBPCIACCESS 1
36329_ACEOF
36330
36331	if test "x$VGAHW" = xyes; then
36332
36333cat >>confdefs.h <<\_ACEOF
36334#define WITH_VGAHW 1
36335_ACEOF
36336
36337	fi
36338
36339	driverdir="$moduledir/drivers"
36340
36341
36342	sdkdir="$includedir/xorg"
36343	extdir="$includedir/X11/extensions"
36344	sysconfigdir="$datadir/X11/$XF86CONFIGDIR"
36345
36346
36347
36348
36349
36350	# stuff the ABI versions into the pc file too
36351	extract_abi() {
36352	    grep ^.define.*${1}_VERSION ${srcdir}/hw/xfree86/common/xf86Module.h | tr '(),' '  .' | awk '{ print $4$5 }'
36353	}
36354	abi_ansic=`extract_abi ANSIC`
36355	abi_videodrv=`extract_abi VIDEODRV`
36356	abi_xinput=`extract_abi XINPUT`
36357	abi_extension=`extract_abi EXTENSION`
36358
36359
36360
36361
36362fi
36363 if test "x$XORG" = xyes; then
36364  XORG_TRUE=
36365  XORG_FALSE='#'
36366else
36367  XORG_TRUE='#'
36368  XORG_FALSE=
36369fi
36370
36371 if test "x$xorg_bus_linuxpci" = xyes; then
36372  XORG_BUS_LINUXPCI_TRUE=
36373  XORG_BUS_LINUXPCI_FALSE='#'
36374else
36375  XORG_BUS_LINUXPCI_TRUE='#'
36376  XORG_BUS_LINUXPCI_FALSE=
36377fi
36378
36379 if test "x$xorg_bus_bsdpci" = xyes; then
36380  XORG_BUS_BSDPCI_TRUE=
36381  XORG_BUS_BSDPCI_FALSE='#'
36382else
36383  XORG_BUS_BSDPCI_TRUE='#'
36384  XORG_BUS_BSDPCI_FALSE=
36385fi
36386
36387 if test "x$xorg_bus_sparc" = xyes; then
36388  XORG_BUS_SPARC_TRUE=
36389  XORG_BUS_SPARC_FALSE='#'
36390else
36391  XORG_BUS_SPARC_TRUE='#'
36392  XORG_BUS_SPARC_FALSE=
36393fi
36394
36395 if test "x$linux_ia64" = xyes; then
36396  LINUX_IA64_TRUE=
36397  LINUX_IA64_FALSE='#'
36398else
36399  LINUX_IA64_TRUE='#'
36400  LINUX_IA64_FALSE=
36401fi
36402
36403 if test "x$linux_alpha" = xyes; then
36404  LINUX_ALPHA_TRUE=
36405  LINUX_ALPHA_FALSE='#'
36406else
36407  LINUX_ALPHA_TRUE='#'
36408  LINUX_ALPHA_FALSE=
36409fi
36410
36411 if test "x$linux_acpi" = xyes; then
36412  LNXACPI_TRUE=
36413  LNXACPI_FALSE='#'
36414else
36415  LNXACPI_TRUE='#'
36416  LNXACPI_FALSE=
36417fi
36418
36419 if test "x$solaris_asm_inline" = xyes; then
36420  SOLARIS_ASM_INLINE_TRUE=
36421  SOLARIS_ASM_INLINE_FALSE='#'
36422else
36423  SOLARIS_ASM_INLINE_TRUE='#'
36424  SOLARIS_ASM_INLINE_FALSE=
36425fi
36426
36427 if test "x$solaris_vt" = xyes; then
36428  SOLARIS_VT_TRUE=
36429  SOLARIS_VT_FALSE='#'
36430else
36431  SOLARIS_VT_TRUE='#'
36432  SOLARIS_VT_FALSE=
36433fi
36434
36435 if test "x$DGA" = xyes; then
36436  DGA_TRUE=
36437  DGA_FALSE='#'
36438else
36439  DGA_TRUE='#'
36440  DGA_FALSE=
36441fi
36442
36443 if test "x$XF86VIDMODE" = xyes; then
36444  XF86VIDMODE_TRUE=
36445  XF86VIDMODE_FALSE='#'
36446else
36447  XF86VIDMODE_TRUE='#'
36448  XF86VIDMODE_FALSE=
36449fi
36450
36451
36452
36453{ echo "$as_me:$LINENO: checking whether to build XWin DDX" >&5
36454echo $ECHO_N "checking whether to build XWin DDX... $ECHO_C" >&6; }
36455if test "x$XWIN" = xauto; then
36456	case $host_os in
36457		cygwin*) XWIN="yes" ;;
36458		mingw*) XWIN="yes" ;;
36459		*) XWIN="no" ;;
36460	esac
36461fi
36462{ echo "$as_me:$LINENO: result: $XWIN" >&5
36463echo "${ECHO_T}$XWIN" >&6; }
36464
36465if test "x$XWIN" = xyes; then
36466
36467  prefix_NONE=
36468  exec_prefix_NONE=
36469  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
36470  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
36471  eval ac_define_dir="\"$sysconfdir\""
36472  eval ac_define_dir="\"$ac_define_dir\""
36473  SYSCONFDIR="$ac_define_dir"
36474
36475
36476cat >>confdefs.h <<_ACEOF
36477#define SYSCONFDIR "$ac_define_dir"
36478_ACEOF
36479
36480  test "$prefix_NONE" && prefix=NONE
36481  test "$exec_prefix_NONE" && exec_prefix=NONE
36482
36483
36484  prefix_NONE=
36485  exec_prefix_NONE=
36486  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
36487  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
36488  eval ac_define_dir="\"$logdir\""
36489  eval ac_define_dir="\"$ac_define_dir\""
36490  DEFAULT_LOGDIR="$ac_define_dir"
36491
36492
36493cat >>confdefs.h <<_ACEOF
36494#define DEFAULT_LOGDIR "$ac_define_dir"
36495_ACEOF
36496
36497  test "$prefix_NONE" && prefix=NONE
36498  test "$exec_prefix_NONE" && exec_prefix=NONE
36499
36500
36501cat >>confdefs.h <<_ACEOF
36502#define XORG_VERSION_CURRENT $VENDOR_RELEASE
36503_ACEOF
36504
36505
36506cat >>confdefs.h <<_ACEOF
36507#define __VENDORDWEBSUPPORT__ "$VENDOR_WEB"
36508_ACEOF
36509
36510	if test -n "$ac_tool_prefix"; then
36511  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
36512set dummy ${ac_tool_prefix}windres; ac_word=$2
36513{ echo "$as_me:$LINENO: checking for $ac_word" >&5
36514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36515if test "${ac_cv_prog_WINDRES+set}" = set; then
36516  echo $ECHO_N "(cached) $ECHO_C" >&6
36517else
36518  if test -n "$WINDRES"; then
36519  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
36520else
36521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36522for as_dir in $PATH
36523do
36524  IFS=$as_save_IFS
36525  test -z "$as_dir" && as_dir=.
36526  for ac_exec_ext in '' $ac_executable_extensions; do
36527  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36528    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
36529    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36530    break 2
36531  fi
36532done
36533done
36534IFS=$as_save_IFS
36535
36536fi
36537fi
36538WINDRES=$ac_cv_prog_WINDRES
36539if test -n "$WINDRES"; then
36540  { echo "$as_me:$LINENO: result: $WINDRES" >&5
36541echo "${ECHO_T}$WINDRES" >&6; }
36542else
36543  { echo "$as_me:$LINENO: result: no" >&5
36544echo "${ECHO_T}no" >&6; }
36545fi
36546
36547
36548fi
36549if test -z "$ac_cv_prog_WINDRES"; then
36550  ac_ct_WINDRES=$WINDRES
36551  # Extract the first word of "windres", so it can be a program name with args.
36552set dummy windres; ac_word=$2
36553{ echo "$as_me:$LINENO: checking for $ac_word" >&5
36554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36555if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
36556  echo $ECHO_N "(cached) $ECHO_C" >&6
36557else
36558  if test -n "$ac_ct_WINDRES"; then
36559  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
36560else
36561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36562for as_dir in $PATH
36563do
36564  IFS=$as_save_IFS
36565  test -z "$as_dir" && as_dir=.
36566  for ac_exec_ext in '' $ac_executable_extensions; do
36567  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36568    ac_cv_prog_ac_ct_WINDRES="windres"
36569    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36570    break 2
36571  fi
36572done
36573done
36574IFS=$as_save_IFS
36575
36576fi
36577fi
36578ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
36579if test -n "$ac_ct_WINDRES"; then
36580  { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
36581echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
36582else
36583  { echo "$as_me:$LINENO: result: no" >&5
36584echo "${ECHO_T}no" >&6; }
36585fi
36586
36587  if test "x$ac_ct_WINDRES" = x; then
36588    WINDRES=""
36589  else
36590    case $cross_compiling:$ac_tool_warned in
36591yes:)
36592{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
36593whose name does not start with the host triplet.  If you think this
36594configuration is useful to you, please write to autoconf@gnu.org." >&5
36595echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
36596whose name does not start with the host triplet.  If you think this
36597configuration is useful to you, please write to autoconf@gnu.org." >&2;}
36598ac_tool_warned=yes ;;
36599esac
36600    WINDRES=$ac_ct_WINDRES
36601  fi
36602else
36603  WINDRES="$ac_cv_prog_WINDRES"
36604fi
36605
36606
36607
36608pkg_failed=no
36609{ echo "$as_me:$LINENO: checking for XWINMODULES" >&5
36610echo $ECHO_N "checking for XWINMODULES... $ECHO_C" >&6; }
36611
36612if test -n "$XWINMODULES_CFLAGS"; then
36613    pkg_cv_XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS"
36614 elif test -n "$PKG_CONFIG"; then
36615    if test -n "$PKG_CONFIG" && \
36616    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau\"") >&5
36617  ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau") 2>&5
36618  ac_status=$?
36619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36620  (exit $ac_status); }; then
36621  pkg_cv_XWINMODULES_CFLAGS=`$PKG_CONFIG --cflags "x11 xdmcp xau" 2>/dev/null`
36622else
36623  pkg_failed=yes
36624fi
36625 else
36626    pkg_failed=untried
36627fi
36628if test -n "$XWINMODULES_LIBS"; then
36629    pkg_cv_XWINMODULES_LIBS="$XWINMODULES_LIBS"
36630 elif test -n "$PKG_CONFIG"; then
36631    if test -n "$PKG_CONFIG" && \
36632    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau\"") >&5
36633  ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau") 2>&5
36634  ac_status=$?
36635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36636  (exit $ac_status); }; then
36637  pkg_cv_XWINMODULES_LIBS=`$PKG_CONFIG --libs "x11 xdmcp xau" 2>/dev/null`
36638else
36639  pkg_failed=yes
36640fi
36641 else
36642    pkg_failed=untried
36643fi
36644
36645
36646
36647if test $pkg_failed = yes; then
36648   	{ echo "$as_me:$LINENO: result: no" >&5
36649echo "${ECHO_T}no" >&6; }
36650
36651if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36652        _pkg_short_errors_supported=yes
36653else
36654        _pkg_short_errors_supported=no
36655fi
36656        if test $_pkg_short_errors_supported = yes; then
36657	        XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xdmcp xau" 2>&1`
36658        else
36659	        XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xdmcp xau" 2>&1`
36660        fi
36661	# Put the nasty error message in config.log where it belongs
36662	echo "$XWINMODULES_PKG_ERRORS" >&5
36663
36664	{ { echo "$as_me:$LINENO: error: Package requirements (x11 xdmcp xau) were not met:
36665
36666$XWINMODULES_PKG_ERRORS
36667
36668Consider adjusting the PKG_CONFIG_PATH environment variable if you
36669installed software in a non-standard prefix.
36670
36671Alternatively, you may set the environment variables XWINMODULES_CFLAGS
36672and XWINMODULES_LIBS to avoid the need to call pkg-config.
36673See the pkg-config man page for more details." >&5
36674echo "$as_me: error: Package requirements (x11 xdmcp xau) were not met:
36675
36676$XWINMODULES_PKG_ERRORS
36677
36678Consider adjusting the PKG_CONFIG_PATH environment variable if you
36679installed software in a non-standard prefix.
36680
36681Alternatively, you may set the environment variables XWINMODULES_CFLAGS
36682and XWINMODULES_LIBS to avoid the need to call pkg-config.
36683See the pkg-config man page for more details." >&2;}
36684   { (exit 1); exit 1; }; }
36685elif test $pkg_failed = untried; then
36686     	{ echo "$as_me:$LINENO: result: no" >&5
36687echo "${ECHO_T}no" >&6; }
36688	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
36689is in your PATH or set the PKG_CONFIG environment variable to the full
36690path to pkg-config.
36691
36692Alternatively, you may set the environment variables XWINMODULES_CFLAGS
36693and XWINMODULES_LIBS to avoid the need to call pkg-config.
36694See the pkg-config man page for more details.
36695
36696To get pkg-config, see <http://pkg-config.freedesktop.org/>.
36697See \`config.log' for more details." >&5
36698echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
36699is in your PATH or set the PKG_CONFIG environment variable to the full
36700path to pkg-config.
36701
36702Alternatively, you may set the environment variables XWINMODULES_CFLAGS
36703and XWINMODULES_LIBS to avoid the need to call pkg-config.
36704See the pkg-config man page for more details.
36705
36706To get pkg-config, see <http://pkg-config.freedesktop.org/>.
36707See \`config.log' for more details." >&2;}
36708   { (exit 1); exit 1; }; }
36709else
36710	XWINMODULES_CFLAGS=$pkg_cv_XWINMODULES_CFLAGS
36711	XWINMODULES_LIBS=$pkg_cv_XWINMODULES_LIBS
36712        { echo "$as_me:$LINENO: result: yes" >&5
36713echo "${ECHO_T}yes" >&6; }
36714
36715fi
36716
36717	if test "x$WINDOWSWM" = xauto; then
36718		if test -n "$PKG_CONFIG" && \
36719    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\"") >&5
36720  ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5
36721  ac_status=$?
36722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36723  (exit $ac_status); }; then
36724  WINDOWSWM=yes
36725else
36726  WINDOWSWM=no
36727fi
36728	fi
36729	if test "x$WINDOWSWM" = xyes ; then
36730
36731pkg_failed=no
36732{ echo "$as_me:$LINENO: checking for WINDOWSWM" >&5
36733echo $ECHO_N "checking for WINDOWSWM... $ECHO_C" >&6; }
36734
36735if test -n "$WINDOWSWM_CFLAGS"; then
36736    pkg_cv_WINDOWSWM_CFLAGS="$WINDOWSWM_CFLAGS"
36737 elif test -n "$PKG_CONFIG"; then
36738    if test -n "$PKG_CONFIG" && \
36739    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\"") >&5
36740  ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5
36741  ac_status=$?
36742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36743  (exit $ac_status); }; then
36744  pkg_cv_WINDOWSWM_CFLAGS=`$PKG_CONFIG --cflags "$WINDOWSWMPROTO" 2>/dev/null`
36745else
36746  pkg_failed=yes
36747fi
36748 else
36749    pkg_failed=untried
36750fi
36751if test -n "$WINDOWSWM_LIBS"; then
36752    pkg_cv_WINDOWSWM_LIBS="$WINDOWSWM_LIBS"
36753 elif test -n "$PKG_CONFIG"; then
36754    if test -n "$PKG_CONFIG" && \
36755    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\"") >&5
36756  ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5
36757  ac_status=$?
36758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36759  (exit $ac_status); }; then
36760  pkg_cv_WINDOWSWM_LIBS=`$PKG_CONFIG --libs "$WINDOWSWMPROTO" 2>/dev/null`
36761else
36762  pkg_failed=yes
36763fi
36764 else
36765    pkg_failed=untried
36766fi
36767
36768
36769
36770if test $pkg_failed = yes; then
36771   	{ echo "$as_me:$LINENO: result: no" >&5
36772echo "${ECHO_T}no" >&6; }
36773
36774if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36775        _pkg_short_errors_supported=yes
36776else
36777        _pkg_short_errors_supported=no
36778fi
36779        if test $_pkg_short_errors_supported = yes; then
36780	        WINDOWSWM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$WINDOWSWMPROTO" 2>&1`
36781        else
36782	        WINDOWSWM_PKG_ERRORS=`$PKG_CONFIG --print-errors "$WINDOWSWMPROTO" 2>&1`
36783        fi
36784	# Put the nasty error message in config.log where it belongs
36785	echo "$WINDOWSWM_PKG_ERRORS" >&5
36786
36787	{ { echo "$as_me:$LINENO: error: Package requirements ($WINDOWSWMPROTO) were not met:
36788
36789$WINDOWSWM_PKG_ERRORS
36790
36791Consider adjusting the PKG_CONFIG_PATH environment variable if you
36792installed software in a non-standard prefix.
36793
36794Alternatively, you may set the environment variables WINDOWSWM_CFLAGS
36795and WINDOWSWM_LIBS to avoid the need to call pkg-config.
36796See the pkg-config man page for more details." >&5
36797echo "$as_me: error: Package requirements ($WINDOWSWMPROTO) were not met:
36798
36799$WINDOWSWM_PKG_ERRORS
36800
36801Consider adjusting the PKG_CONFIG_PATH environment variable if you
36802installed software in a non-standard prefix.
36803
36804Alternatively, you may set the environment variables WINDOWSWM_CFLAGS
36805and WINDOWSWM_LIBS to avoid the need to call pkg-config.
36806See the pkg-config man page for more details." >&2;}
36807   { (exit 1); exit 1; }; }
36808elif test $pkg_failed = untried; then
36809     	{ echo "$as_me:$LINENO: result: no" >&5
36810echo "${ECHO_T}no" >&6; }
36811	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
36812is in your PATH or set the PKG_CONFIG environment variable to the full
36813path to pkg-config.
36814
36815Alternatively, you may set the environment variables WINDOWSWM_CFLAGS
36816and WINDOWSWM_LIBS to avoid the need to call pkg-config.
36817See the pkg-config man page for more details.
36818
36819To get pkg-config, see <http://pkg-config.freedesktop.org/>.
36820See \`config.log' for more details." >&5
36821echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
36822is in your PATH or set the PKG_CONFIG environment variable to the full
36823path to pkg-config.
36824
36825Alternatively, you may set the environment variables WINDOWSWM_CFLAGS
36826and WINDOWSWM_LIBS to avoid the need to call pkg-config.
36827See the pkg-config man page for more details.
36828
36829To get pkg-config, see <http://pkg-config.freedesktop.org/>.
36830See \`config.log' for more details." >&2;}
36831   { (exit 1); exit 1; }; }
36832else
36833	WINDOWSWM_CFLAGS=$pkg_cv_WINDOWSWM_CFLAGS
36834	WINDOWSWM_LIBS=$pkg_cv_WINDOWSWM_LIBS
36835        { echo "$as_me:$LINENO: result: yes" >&5
36836echo "${ECHO_T}yes" >&6; }
36837
36838fi
36839		XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS $WINDOWSWM_CFLAGS"
36840
36841cat >>confdefs.h <<\_ACEOF
36842#define ROOTLESS 1
36843_ACEOF
36844
36845	fi
36846
36847	case $host_os in
36848		cygwin*)
36849			XWIN_SERVER_NAME=XWin
36850
36851cat >>confdefs.h <<\_ACEOF
36852#define HAS_DEVWINDOWS 1
36853_ACEOF
36854
36855			;;
36856		mingw*)
36857			XWIN_SERVER_NAME=Xming
36858
36859cat >>confdefs.h <<\_ACEOF
36860#define RELOCATE_PROJECTROOT 1
36861_ACEOF
36862
36863
36864cat >>confdefs.h <<\_ACEOF
36865#define HAS_WINSOCK 1
36866_ACEOF
36867
36868			XWIN_SYS_LIBS=-lwinsock2
36869			;;
36870	esac
36871	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"
36872	XWIN_SYS_LIBS="$XWIN_SYS_LIBS $XWINMODULES_LIBS"
36873
36874
36875
36876
36877	if test "x$DEBUGGING" = xyes; then
36878
36879cat >>confdefs.h <<\_ACEOF
36880#define CYGDEBUG 1
36881_ACEOF
36882
36883
36884cat >>confdefs.h <<\_ACEOF
36885#define CYGWINDOWING_DEBUG 1
36886_ACEOF
36887
36888
36889cat >>confdefs.h <<\_ACEOF
36890#define CYGMULTIWINDOW_DEBUG 1
36891_ACEOF
36892
36893	fi
36894
36895
36896cat >>confdefs.h <<\_ACEOF
36897#define DDXOSVERRORF 1
36898_ACEOF
36899
36900
36901cat >>confdefs.h <<\_ACEOF
36902#define DDXBEFORERESET 1
36903_ACEOF
36904
36905fi
36906 if test "x$XWIN" = xyes; then
36907  XWIN_TRUE=
36908  XWIN_FALSE='#'
36909else
36910  XWIN_TRUE='#'
36911  XWIN_FALSE=
36912fi
36913
36914 if test "x$XWIN" = xyes; then
36915  XWIN_MULTIWINDOW_TRUE=
36916  XWIN_MULTIWINDOW_FALSE='#'
36917else
36918  XWIN_MULTIWINDOW_TRUE='#'
36919  XWIN_MULTIWINDOW_FALSE=
36920fi
36921
36922 if test "x$XWIN" = xyes && test "x$WINDOWSWM" = xyes; then
36923  XWIN_MULTIWINDOWEXTWM_TRUE=
36924  XWIN_MULTIWINDOWEXTWM_FALSE='#'
36925else
36926  XWIN_MULTIWINDOWEXTWM_TRUE='#'
36927  XWIN_MULTIWINDOWEXTWM_FALSE=
36928fi
36929
36930 if test "x$XWIN" = xyes; then
36931  XWIN_CLIPBOARD_TRUE=
36932  XWIN_CLIPBOARD_FALSE='#'
36933else
36934  XWIN_CLIPBOARD_TRUE='#'
36935  XWIN_CLIPBOARD_FALSE=
36936fi
36937
36938 if test "x$XWIN" = xyes && false; then
36939  XWIN_GLX_WINDOWS_TRUE=
36940  XWIN_GLX_WINDOWS_FALSE='#'
36941else
36942  XWIN_GLX_WINDOWS_TRUE='#'
36943  XWIN_GLX_WINDOWS_FALSE=
36944fi
36945
36946 if test "x$XWIN" = xyes; then
36947  XWIN_NATIVEGDI_TRUE=
36948  XWIN_NATIVEGDI_FALSE='#'
36949else
36950  XWIN_NATIVEGDI_TRUE='#'
36951  XWIN_NATIVEGDI_FALSE=
36952fi
36953
36954 if test "x$XWIN" = xyes; then
36955  XWIN_PRIMARYFB_TRUE=
36956  XWIN_PRIMARYFB_FALSE='#'
36957else
36958  XWIN_PRIMARYFB_TRUE='#'
36959  XWIN_PRIMARYFB_FALSE=
36960fi
36961
36962 if test "x$XWIN" = xyes; then
36963  XWIN_RANDR_TRUE=
36964  XWIN_RANDR_FALSE='#'
36965else
36966  XWIN_RANDR_TRUE='#'
36967  XWIN_RANDR_FALSE=
36968fi
36969
36970 if test "x$XWIN" = xyes && test "x$XV" = xyes; then
36971  XWIN_XV_TRUE=
36972  XWIN_XV_FALSE='#'
36973else
36974  XWIN_XV_TRUE='#'
36975  XWIN_XV_FALSE=
36976fi
36977
36978
36979if test "x$XQUARTZ" = xyes; then
36980
36981cat >>confdefs.h <<\_ACEOF
36982#define XQUARTZ 1
36983_ACEOF
36984
36985
36986cat >>confdefs.h <<\_ACEOF
36987#define ROOTLESS 1
36988_ACEOF
36989
36990
36991	DARWIN_LIBS="$MI_LIB $OS_LIB $DIX_LIB $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"
36992
36993
36994	{ echo "$as_me:$LINENO: checking for xp_init in -lXplugin" >&5
36995echo $ECHO_N "checking for xp_init in -lXplugin... $ECHO_C" >&6; }
36996if test "${ac_cv_lib_Xplugin_xp_init+set}" = set; then
36997  echo $ECHO_N "(cached) $ECHO_C" >&6
36998else
36999  ac_check_lib_save_LIBS=$LIBS
37000LIBS="-lXplugin  $LIBS"
37001cat >conftest.$ac_ext <<_ACEOF
37002/* confdefs.h.  */
37003_ACEOF
37004cat confdefs.h >>conftest.$ac_ext
37005cat >>conftest.$ac_ext <<_ACEOF
37006/* end confdefs.h.  */
37007
37008/* Override any GCC internal prototype to avoid an error.
37009   Use char because int might match the return type of a GCC
37010   builtin and then its argument prototype would still apply.  */
37011#ifdef __cplusplus
37012extern "C"
37013#endif
37014char xp_init ();
37015int
37016main ()
37017{
37018return xp_init ();
37019  ;
37020  return 0;
37021}
37022_ACEOF
37023rm -f conftest.$ac_objext conftest$ac_exeext
37024if { (ac_try="$ac_link"
37025case "(($ac_try" in
37026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37027  *) ac_try_echo=$ac_try;;
37028esac
37029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37030  (eval "$ac_link") 2>conftest.er1
37031  ac_status=$?
37032  grep -v '^ *+' conftest.er1 >conftest.err
37033  rm -f conftest.er1
37034  cat conftest.err >&5
37035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37036  (exit $ac_status); } && {
37037	 test -z "$ac_c_werror_flag" ||
37038	 test ! -s conftest.err
37039       } && test -s conftest$ac_exeext &&
37040       $as_test_x conftest$ac_exeext; then
37041  ac_cv_lib_Xplugin_xp_init=yes
37042else
37043  echo "$as_me: failed program was:" >&5
37044sed 's/^/| /' conftest.$ac_ext >&5
37045
37046	ac_cv_lib_Xplugin_xp_init=no
37047fi
37048
37049rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37050      conftest$ac_exeext conftest.$ac_ext
37051LIBS=$ac_check_lib_save_LIBS
37052fi
37053{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xplugin_xp_init" >&5
37054echo "${ECHO_T}$ac_cv_lib_Xplugin_xp_init" >&6; }
37055if test $ac_cv_lib_Xplugin_xp_init = yes; then
37056  :
37057fi
37058
37059
37060	CFLAGS="${CFLAGS} -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA"
37061
37062
37063pkg_failed=no
37064{ echo "$as_me:$LINENO: checking for XPBPROXY" >&5
37065echo $ECHO_N "checking for XPBPROXY... $ECHO_C" >&6; }
37066
37067if test -n "$XPBPROXY_CFLAGS"; then
37068    pkg_cv_XPBPROXY_CFLAGS="$XPBPROXY_CFLAGS"
37069 elif test -n "$PKG_CONFIG"; then
37070    if test -n "$PKG_CONFIG" && \
37071    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\"") >&5
37072  ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5
37073  ac_status=$?
37074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37075  (exit $ac_status); }; then
37076  pkg_cv_XPBPROXY_CFLAGS=`$PKG_CONFIG --cflags "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null`
37077else
37078  pkg_failed=yes
37079fi
37080 else
37081    pkg_failed=untried
37082fi
37083if test -n "$XPBPROXY_LIBS"; then
37084    pkg_cv_XPBPROXY_LIBS="$XPBPROXY_LIBS"
37085 elif test -n "$PKG_CONFIG"; then
37086    if test -n "$PKG_CONFIG" && \
37087    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\"") >&5
37088  ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5
37089  ac_status=$?
37090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37091  (exit $ac_status); }; then
37092  pkg_cv_XPBPROXY_LIBS=`$PKG_CONFIG --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null`
37093else
37094  pkg_failed=yes
37095fi
37096 else
37097    pkg_failed=untried
37098fi
37099
37100
37101
37102if test $pkg_failed = yes; then
37103   	{ echo "$as_me:$LINENO: result: no" >&5
37104echo "${ECHO_T}no" >&6; }
37105
37106if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37107        _pkg_short_errors_supported=yes
37108else
37109        _pkg_short_errors_supported=no
37110fi
37111        if test $_pkg_short_errors_supported = yes; then
37112	        XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1`
37113        else
37114	        XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1`
37115        fi
37116	# Put the nasty error message in config.log where it belongs
37117	echo "$XPBPROXY_PKG_ERRORS" >&5
37118
37119	{ { echo "$as_me:$LINENO: error: Package requirements ($APPLEWMPROTO $LIBAPPLEWM xfixes x11) were not met:
37120
37121$XPBPROXY_PKG_ERRORS
37122
37123Consider adjusting the PKG_CONFIG_PATH environment variable if you
37124installed software in a non-standard prefix.
37125
37126Alternatively, you may set the environment variables XPBPROXY_CFLAGS
37127and XPBPROXY_LIBS to avoid the need to call pkg-config.
37128See the pkg-config man page for more details." >&5
37129echo "$as_me: error: Package requirements ($APPLEWMPROTO $LIBAPPLEWM xfixes x11) were not met:
37130
37131$XPBPROXY_PKG_ERRORS
37132
37133Consider adjusting the PKG_CONFIG_PATH environment variable if you
37134installed software in a non-standard prefix.
37135
37136Alternatively, you may set the environment variables XPBPROXY_CFLAGS
37137and XPBPROXY_LIBS to avoid the need to call pkg-config.
37138See the pkg-config man page for more details." >&2;}
37139   { (exit 1); exit 1; }; }
37140elif test $pkg_failed = untried; then
37141     	{ echo "$as_me:$LINENO: result: no" >&5
37142echo "${ECHO_T}no" >&6; }
37143	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
37144is in your PATH or set the PKG_CONFIG environment variable to the full
37145path to pkg-config.
37146
37147Alternatively, you may set the environment variables XPBPROXY_CFLAGS
37148and XPBPROXY_LIBS to avoid the need to call pkg-config.
37149See the pkg-config man page for more details.
37150
37151To get pkg-config, see <http://pkg-config.freedesktop.org/>.
37152See \`config.log' for more details." >&5
37153echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
37154is in your PATH or set the PKG_CONFIG environment variable to the full
37155path to pkg-config.
37156
37157Alternatively, you may set the environment variables XPBPROXY_CFLAGS
37158and XPBPROXY_LIBS to avoid the need to call pkg-config.
37159See the pkg-config man page for more details.
37160
37161To get pkg-config, see <http://pkg-config.freedesktop.org/>.
37162See \`config.log' for more details." >&2;}
37163   { (exit 1); exit 1; }; }
37164else
37165	XPBPROXY_CFLAGS=$pkg_cv_XPBPROXY_CFLAGS
37166	XPBPROXY_LIBS=$pkg_cv_XPBPROXY_LIBS
37167        { echo "$as_me:$LINENO: result: yes" >&5
37168echo "${ECHO_T}yes" >&6; }
37169
37170fi
37171
37172        if test "x$XQUARTZ_SPARKLE" = xyes ; then
37173
37174cat >>confdefs.h <<\_ACEOF
37175#define XQUARTZ_SPARKLE 1
37176_ACEOF
37177
37178        fi
37179
37180	if test "x$STANDALONE_XPBPROXY" = xyes ; then
37181
37182cat >>confdefs.h <<\_ACEOF
37183#define STANDALONE_XPBPROXY 1
37184_ACEOF
37185
37186	fi
37187fi
37188
37189# Support for objc in autotools is minimal and not documented.
37190OBJC='$(CC)'
37191OBJCLD='$(CCLD)'
37192OBJCLINK='$(LINK)'
37193OBJCFLAGS='$(CFLAGS)'
37194
37195
37196
37197
37198# internal, undocumented automake func follows :(
37199
37200depcc="$OBJC" am_compiler_list='gcc3 gcc'
37201
37202{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
37203echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
37204if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
37205  echo $ECHO_N "(cached) $ECHO_C" >&6
37206else
37207  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
37208  # We make a subdir and do the tests there.  Otherwise we can end up
37209  # making bogus files that we don't know about and never remove.  For
37210  # instance it was reported that on HP-UX the gcc test will end up
37211  # making a dummy file named `D' -- because `-MD' means `put the output
37212  # in D'.
37213  mkdir conftest.dir
37214  # Copy depcomp to subdir because otherwise we won't find it if we're
37215  # using a relative directory.
37216  cp "$am_depcomp" conftest.dir
37217  cd conftest.dir
37218  # We will build objects and dependencies in a subdirectory because
37219  # it helps to detect inapplicable dependency modes.  For instance
37220  # both Tru64's cc and ICC support -MD to output dependencies as a
37221  # side effect of compilation, but ICC will put the dependencies in
37222  # the current directory while Tru64 will put them in the object
37223  # directory.
37224  mkdir sub
37225
37226  am_cv_OBJC_dependencies_compiler_type=none
37227  if test "$am_compiler_list" = ""; then
37228     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
37229  fi
37230  for depmode in $am_compiler_list; do
37231    # Setup a source with many dependencies, because some compilers
37232    # like to wrap large dependency lists on column 80 (with \), and
37233    # we should not choose a depcomp mode which is confused by this.
37234    #
37235    # We need to recreate these files for each test, as the compiler may
37236    # overwrite some of them when testing with obscure command lines.
37237    # This happens at least with the AIX C compiler.
37238    : > sub/conftest.c
37239    for i in 1 2 3 4 5 6; do
37240      echo '#include "conftst'$i'.h"' >> sub/conftest.c
37241      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
37242      # Solaris 8's {/usr,}/bin/sh.
37243      touch sub/conftst$i.h
37244    done
37245    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
37246
37247    case $depmode in
37248    nosideeffect)
37249      # after this tag, mechanisms are not by side-effect, so they'll
37250      # only be used when explicitly requested
37251      if test "x$enable_dependency_tracking" = xyes; then
37252	continue
37253      else
37254	break
37255      fi
37256      ;;
37257    none) break ;;
37258    esac
37259    # We check with `-c' and `-o' for the sake of the "dashmstdout"
37260    # mode.  It turns out that the SunPro C++ compiler does not properly
37261    # handle `-M -o', and we need to detect this.
37262    if depmode=$depmode \
37263       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
37264       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
37265       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
37266         >/dev/null 2>conftest.err &&
37267       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
37268       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
37269       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
37270       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
37271      # icc doesn't choke on unknown options, it will just issue warnings
37272      # or remarks (even with -Werror).  So we grep stderr for any message
37273      # that says an option was ignored or not supported.
37274      # When given -MP, icc 7.0 and 7.1 complain thusly:
37275      #   icc: Command line warning: ignoring option '-M'; no argument required
37276      # The diagnosis changed in icc 8.0:
37277      #   icc: Command line remark: option '-MP' not supported
37278      if (grep 'ignoring option' conftest.err ||
37279          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
37280        am_cv_OBJC_dependencies_compiler_type=$depmode
37281        break
37282      fi
37283    fi
37284  done
37285
37286  cd ..
37287  rm -rf conftest.dir
37288else
37289  am_cv_OBJC_dependencies_compiler_type=none
37290fi
37291
37292fi
37293{ echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
37294echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
37295OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
37296
37297 if
37298  test "x$enable_dependency_tracking" != xno \
37299  && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
37300  am__fastdepOBJC_TRUE=
37301  am__fastdepOBJC_FALSE='#'
37302else
37303  am__fastdepOBJC_TRUE='#'
37304  am__fastdepOBJC_FALSE=
37305fi
37306
37307
37308 if test "x$XQUARTZ" = xyes; then
37309  XQUARTZ_TRUE=
37310  XQUARTZ_FALSE='#'
37311else
37312  XQUARTZ_TRUE='#'
37313  XQUARTZ_FALSE=
37314fi
37315
37316 if test "x$XQUARTZ_SPARKLE" != "xno"; then
37317  XQUARTZ_SPARKLE_TRUE=
37318  XQUARTZ_SPARKLE_FALSE='#'
37319else
37320  XQUARTZ_SPARKLE_TRUE='#'
37321  XQUARTZ_SPARKLE_FALSE=
37322fi
37323
37324 if test "x$STANDALONE_XPBPROXY" = xyes; then
37325  STANDALONE_XPBPROXY_TRUE=
37326  STANDALONE_XPBPROXY_FALSE='#'
37327else
37328  STANDALONE_XPBPROXY_TRUE='#'
37329  STANDALONE_XPBPROXY_FALSE=
37330fi
37331
37332
37333
37334pkg_failed=no
37335{ echo "$as_me:$LINENO: checking for DMXMODULES" >&5
37336echo $ECHO_N "checking for DMXMODULES... $ECHO_C" >&6; }
37337
37338if test -n "$DMXMODULES_CFLAGS"; then
37339    pkg_cv_DMXMODULES_CFLAGS="$DMXMODULES_CFLAGS"
37340 elif test -n "$PKG_CONFIG"; then
37341    if test -n "$PKG_CONFIG" && \
37342    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xmuu \$LIBXEXT x11 xrender xfixes \$LIBXI \$DMXPROTO xau \$XDMCP_MODULES\"") >&5
37343  ($PKG_CONFIG --exists --print-errors "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES") 2>&5
37344  ac_status=$?
37345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37346  (exit $ac_status); }; then
37347  pkg_cv_DMXMODULES_CFLAGS=`$PKG_CONFIG --cflags "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>/dev/null`
37348else
37349  pkg_failed=yes
37350fi
37351 else
37352    pkg_failed=untried
37353fi
37354if test -n "$DMXMODULES_LIBS"; then
37355    pkg_cv_DMXMODULES_LIBS="$DMXMODULES_LIBS"
37356 elif test -n "$PKG_CONFIG"; then
37357    if test -n "$PKG_CONFIG" && \
37358    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xmuu \$LIBXEXT x11 xrender xfixes \$LIBXI \$DMXPROTO xau \$XDMCP_MODULES\"") >&5
37359  ($PKG_CONFIG --exists --print-errors "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES") 2>&5
37360  ac_status=$?
37361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37362  (exit $ac_status); }; then
37363  pkg_cv_DMXMODULES_LIBS=`$PKG_CONFIG --libs "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>/dev/null`
37364else
37365  pkg_failed=yes
37366fi
37367 else
37368    pkg_failed=untried
37369fi
37370
37371
37372
37373if test $pkg_failed = yes; then
37374   	{ echo "$as_me:$LINENO: result: no" >&5
37375echo "${ECHO_T}no" >&6; }
37376
37377if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37378        _pkg_short_errors_supported=yes
37379else
37380        _pkg_short_errors_supported=no
37381fi
37382        if test $_pkg_short_errors_supported = yes; then
37383	        DMXMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>&1`
37384        else
37385	        DMXMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>&1`
37386        fi
37387	# Put the nasty error message in config.log where it belongs
37388	echo "$DMXMODULES_PKG_ERRORS" >&5
37389
37390	have_dmx=no
37391elif test $pkg_failed = untried; then
37392     	{ echo "$as_me:$LINENO: result: no" >&5
37393echo "${ECHO_T}no" >&6; }
37394	have_dmx=no
37395else
37396	DMXMODULES_CFLAGS=$pkg_cv_DMXMODULES_CFLAGS
37397	DMXMODULES_LIBS=$pkg_cv_DMXMODULES_LIBS
37398        { echo "$as_me:$LINENO: result: yes" >&5
37399echo "${ECHO_T}yes" >&6; }
37400
37401pkg_failed=no
37402{ echo "$as_me:$LINENO: checking for XDMXCONFIG_DEP" >&5
37403echo $ECHO_N "checking for XDMXCONFIG_DEP... $ECHO_C" >&6; }
37404
37405if test -n "$XDMXCONFIG_DEP_CFLAGS"; then
37406    pkg_cv_XDMXCONFIG_DEP_CFLAGS="$XDMXCONFIG_DEP_CFLAGS"
37407 elif test -n "$PKG_CONFIG"; then
37408    if test -n "$PKG_CONFIG" && \
37409    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\"") >&5
37410  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5
37411  ac_status=$?
37412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37413  (exit $ac_status); }; then
37414  pkg_cv_XDMXCONFIG_DEP_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt xpm x11" 2>/dev/null`
37415else
37416  pkg_failed=yes
37417fi
37418 else
37419    pkg_failed=untried
37420fi
37421if test -n "$XDMXCONFIG_DEP_LIBS"; then
37422    pkg_cv_XDMXCONFIG_DEP_LIBS="$XDMXCONFIG_DEP_LIBS"
37423 elif test -n "$PKG_CONFIG"; then
37424    if test -n "$PKG_CONFIG" && \
37425    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\"") >&5
37426  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5
37427  ac_status=$?
37428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37429  (exit $ac_status); }; then
37430  pkg_cv_XDMXCONFIG_DEP_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt xpm x11" 2>/dev/null`
37431else
37432  pkg_failed=yes
37433fi
37434 else
37435    pkg_failed=untried
37436fi
37437
37438
37439
37440if test $pkg_failed = yes; then
37441   	{ echo "$as_me:$LINENO: result: no" >&5
37442echo "${ECHO_T}no" >&6; }
37443
37444if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37445        _pkg_short_errors_supported=yes
37446else
37447        _pkg_short_errors_supported=no
37448fi
37449        if test $_pkg_short_errors_supported = yes; then
37450	        XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xmu xt xpm x11" 2>&1`
37451        else
37452	        XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xmu xt xpm x11" 2>&1`
37453        fi
37454	# Put the nasty error message in config.log where it belongs
37455	echo "$XDMXCONFIG_DEP_PKG_ERRORS" >&5
37456
37457	have_dmx=no
37458elif test $pkg_failed = untried; then
37459     	{ echo "$as_me:$LINENO: result: no" >&5
37460echo "${ECHO_T}no" >&6; }
37461	have_dmx=no
37462else
37463	XDMXCONFIG_DEP_CFLAGS=$pkg_cv_XDMXCONFIG_DEP_CFLAGS
37464	XDMXCONFIG_DEP_LIBS=$pkg_cv_XDMXCONFIG_DEP_LIBS
37465        { echo "$as_me:$LINENO: result: yes" >&5
37466echo "${ECHO_T}yes" >&6; }
37467	have_dmx=yes
37468fi
37469fi
37470{ echo "$as_me:$LINENO: checking whether to build Xdmx DDX" >&5
37471echo $ECHO_N "checking whether to build Xdmx DDX... $ECHO_C" >&6; }
37472if test "x$DMX" = xauto; then
37473	DMX="$have_dmx"
37474	case $host_os in
37475		cygwin*) DMX="no" ;;
37476		darwin*) DMX="no" ;;
37477	esac
37478fi
37479{ echo "$as_me:$LINENO: result: $DMX" >&5
37480echo "${ECHO_T}$DMX" >&6; }
37481 if test "x$DMX" = xyes; then
37482  DMX_TRUE=
37483  DMX_FALSE='#'
37484else
37485  DMX_TRUE='#'
37486  DMX_FALSE=
37487fi
37488
37489
37490if test "x$DMX" = xyes; then
37491	if test "x$have_dmx" = xno; then
37492		{ { echo "$as_me:$LINENO: error: Xdmx build explicitly requested, but required
37493		              modules not found." >&5
37494echo "$as_me: error: Xdmx build explicitly requested, but required
37495		              modules not found." >&2;}
37496   { (exit 1); exit 1; }; }
37497	fi
37498	DMX_INCLUDES="$XEXT_INC $RENDER_INC $RECORD_INC"
37499	XDMX_CFLAGS="$DMXMODULES_CFLAGS"
37500	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"
37501	XDMX_SYS_LIBS="$DMXMODULES_LIBS"
37502
37503
37504
37505
37506	if test "${ac_cv_header_linux_input_h+set}" = set; then
37507  { echo "$as_me:$LINENO: checking for linux/input.h" >&5
37508echo $ECHO_N "checking for linux/input.h... $ECHO_C" >&6; }
37509if test "${ac_cv_header_linux_input_h+set}" = set; then
37510  echo $ECHO_N "(cached) $ECHO_C" >&6
37511fi
37512{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_input_h" >&5
37513echo "${ECHO_T}$ac_cv_header_linux_input_h" >&6; }
37514else
37515  # Is the header compilable?
37516{ echo "$as_me:$LINENO: checking linux/input.h usability" >&5
37517echo $ECHO_N "checking linux/input.h usability... $ECHO_C" >&6; }
37518cat >conftest.$ac_ext <<_ACEOF
37519/* confdefs.h.  */
37520_ACEOF
37521cat confdefs.h >>conftest.$ac_ext
37522cat >>conftest.$ac_ext <<_ACEOF
37523/* end confdefs.h.  */
37524$ac_includes_default
37525#include <linux/input.h>
37526_ACEOF
37527rm -f conftest.$ac_objext
37528if { (ac_try="$ac_compile"
37529case "(($ac_try" in
37530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37531  *) ac_try_echo=$ac_try;;
37532esac
37533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37534  (eval "$ac_compile") 2>conftest.er1
37535  ac_status=$?
37536  grep -v '^ *+' conftest.er1 >conftest.err
37537  rm -f conftest.er1
37538  cat conftest.err >&5
37539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37540  (exit $ac_status); } && {
37541	 test -z "$ac_c_werror_flag" ||
37542	 test ! -s conftest.err
37543       } && test -s conftest.$ac_objext; then
37544  ac_header_compiler=yes
37545else
37546  echo "$as_me: failed program was:" >&5
37547sed 's/^/| /' conftest.$ac_ext >&5
37548
37549	ac_header_compiler=no
37550fi
37551
37552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37553{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37554echo "${ECHO_T}$ac_header_compiler" >&6; }
37555
37556# Is the header present?
37557{ echo "$as_me:$LINENO: checking linux/input.h presence" >&5
37558echo $ECHO_N "checking linux/input.h presence... $ECHO_C" >&6; }
37559cat >conftest.$ac_ext <<_ACEOF
37560/* confdefs.h.  */
37561_ACEOF
37562cat confdefs.h >>conftest.$ac_ext
37563cat >>conftest.$ac_ext <<_ACEOF
37564/* end confdefs.h.  */
37565#include <linux/input.h>
37566_ACEOF
37567if { (ac_try="$ac_cpp conftest.$ac_ext"
37568case "(($ac_try" in
37569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37570  *) ac_try_echo=$ac_try;;
37571esac
37572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37573  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37574  ac_status=$?
37575  grep -v '^ *+' conftest.er1 >conftest.err
37576  rm -f conftest.er1
37577  cat conftest.err >&5
37578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37579  (exit $ac_status); } >/dev/null && {
37580	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37581	 test ! -s conftest.err
37582       }; then
37583  ac_header_preproc=yes
37584else
37585  echo "$as_me: failed program was:" >&5
37586sed 's/^/| /' conftest.$ac_ext >&5
37587
37588  ac_header_preproc=no
37589fi
37590
37591rm -f conftest.err conftest.$ac_ext
37592{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37593echo "${ECHO_T}$ac_header_preproc" >&6; }
37594
37595# So?  What about this header?
37596case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37597  yes:no: )
37598    { echo "$as_me:$LINENO: WARNING: linux/input.h: accepted by the compiler, rejected by the preprocessor!" >&5
37599echo "$as_me: WARNING: linux/input.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37600    { echo "$as_me:$LINENO: WARNING: linux/input.h: proceeding with the compiler's result" >&5
37601echo "$as_me: WARNING: linux/input.h: proceeding with the compiler's result" >&2;}
37602    ac_header_preproc=yes
37603    ;;
37604  no:yes:* )
37605    { echo "$as_me:$LINENO: WARNING: linux/input.h: present but cannot be compiled" >&5
37606echo "$as_me: WARNING: linux/input.h: present but cannot be compiled" >&2;}
37607    { echo "$as_me:$LINENO: WARNING: linux/input.h:     check for missing prerequisite headers?" >&5
37608echo "$as_me: WARNING: linux/input.h:     check for missing prerequisite headers?" >&2;}
37609    { echo "$as_me:$LINENO: WARNING: linux/input.h: see the Autoconf documentation" >&5
37610echo "$as_me: WARNING: linux/input.h: see the Autoconf documentation" >&2;}
37611    { echo "$as_me:$LINENO: WARNING: linux/input.h:     section \"Present But Cannot Be Compiled\"" >&5
37612echo "$as_me: WARNING: linux/input.h:     section \"Present But Cannot Be Compiled\"" >&2;}
37613    { echo "$as_me:$LINENO: WARNING: linux/input.h: proceeding with the preprocessor's result" >&5
37614echo "$as_me: WARNING: linux/input.h: proceeding with the preprocessor's result" >&2;}
37615    { echo "$as_me:$LINENO: WARNING: linux/input.h: in the future, the compiler will take precedence" >&5
37616echo "$as_me: WARNING: linux/input.h: in the future, the compiler will take precedence" >&2;}
37617    ( cat <<\_ASBOX
37618## ---------------------------------------------------------------------- ##
37619## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
37620## ---------------------------------------------------------------------- ##
37621_ASBOX
37622     ) | sed "s/^/$as_me: WARNING:     /" >&2
37623    ;;
37624esac
37625{ echo "$as_me:$LINENO: checking for linux/input.h" >&5
37626echo $ECHO_N "checking for linux/input.h... $ECHO_C" >&6; }
37627if test "${ac_cv_header_linux_input_h+set}" = set; then
37628  echo $ECHO_N "(cached) $ECHO_C" >&6
37629else
37630  ac_cv_header_linux_input_h=$ac_header_preproc
37631fi
37632{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_input_h" >&5
37633echo "${ECHO_T}$ac_cv_header_linux_input_h" >&6; }
37634
37635fi
37636if test $ac_cv_header_linux_input_h = yes; then
37637  DMX_BUILD_USB="yes"
37638else
37639  DMX_BUILD_USB="no"
37640fi
37641
37642
37643	if test "${ac_cv_header_linux_keyboard_h+set}" = set; then
37644  { echo "$as_me:$LINENO: checking for linux/keyboard.h" >&5
37645echo $ECHO_N "checking for linux/keyboard.h... $ECHO_C" >&6; }
37646if test "${ac_cv_header_linux_keyboard_h+set}" = set; then
37647  echo $ECHO_N "(cached) $ECHO_C" >&6
37648fi
37649{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_keyboard_h" >&5
37650echo "${ECHO_T}$ac_cv_header_linux_keyboard_h" >&6; }
37651else
37652  # Is the header compilable?
37653{ echo "$as_me:$LINENO: checking linux/keyboard.h usability" >&5
37654echo $ECHO_N "checking linux/keyboard.h usability... $ECHO_C" >&6; }
37655cat >conftest.$ac_ext <<_ACEOF
37656/* confdefs.h.  */
37657_ACEOF
37658cat confdefs.h >>conftest.$ac_ext
37659cat >>conftest.$ac_ext <<_ACEOF
37660/* end confdefs.h.  */
37661$ac_includes_default
37662#include <linux/keyboard.h>
37663_ACEOF
37664rm -f conftest.$ac_objext
37665if { (ac_try="$ac_compile"
37666case "(($ac_try" in
37667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37668  *) ac_try_echo=$ac_try;;
37669esac
37670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37671  (eval "$ac_compile") 2>conftest.er1
37672  ac_status=$?
37673  grep -v '^ *+' conftest.er1 >conftest.err
37674  rm -f conftest.er1
37675  cat conftest.err >&5
37676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37677  (exit $ac_status); } && {
37678	 test -z "$ac_c_werror_flag" ||
37679	 test ! -s conftest.err
37680       } && test -s conftest.$ac_objext; then
37681  ac_header_compiler=yes
37682else
37683  echo "$as_me: failed program was:" >&5
37684sed 's/^/| /' conftest.$ac_ext >&5
37685
37686	ac_header_compiler=no
37687fi
37688
37689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37690{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37691echo "${ECHO_T}$ac_header_compiler" >&6; }
37692
37693# Is the header present?
37694{ echo "$as_me:$LINENO: checking linux/keyboard.h presence" >&5
37695echo $ECHO_N "checking linux/keyboard.h presence... $ECHO_C" >&6; }
37696cat >conftest.$ac_ext <<_ACEOF
37697/* confdefs.h.  */
37698_ACEOF
37699cat confdefs.h >>conftest.$ac_ext
37700cat >>conftest.$ac_ext <<_ACEOF
37701/* end confdefs.h.  */
37702#include <linux/keyboard.h>
37703_ACEOF
37704if { (ac_try="$ac_cpp conftest.$ac_ext"
37705case "(($ac_try" in
37706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37707  *) ac_try_echo=$ac_try;;
37708esac
37709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37710  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37711  ac_status=$?
37712  grep -v '^ *+' conftest.er1 >conftest.err
37713  rm -f conftest.er1
37714  cat conftest.err >&5
37715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37716  (exit $ac_status); } >/dev/null && {
37717	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37718	 test ! -s conftest.err
37719       }; then
37720  ac_header_preproc=yes
37721else
37722  echo "$as_me: failed program was:" >&5
37723sed 's/^/| /' conftest.$ac_ext >&5
37724
37725  ac_header_preproc=no
37726fi
37727
37728rm -f conftest.err conftest.$ac_ext
37729{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37730echo "${ECHO_T}$ac_header_preproc" >&6; }
37731
37732# So?  What about this header?
37733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37734  yes:no: )
37735    { echo "$as_me:$LINENO: WARNING: linux/keyboard.h: accepted by the compiler, rejected by the preprocessor!" >&5
37736echo "$as_me: WARNING: linux/keyboard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37737    { echo "$as_me:$LINENO: WARNING: linux/keyboard.h: proceeding with the compiler's result" >&5
37738echo "$as_me: WARNING: linux/keyboard.h: proceeding with the compiler's result" >&2;}
37739    ac_header_preproc=yes
37740    ;;
37741  no:yes:* )
37742    { echo "$as_me:$LINENO: WARNING: linux/keyboard.h: present but cannot be compiled" >&5
37743echo "$as_me: WARNING: linux/keyboard.h: present but cannot be compiled" >&2;}
37744    { echo "$as_me:$LINENO: WARNING: linux/keyboard.h:     check for missing prerequisite headers?" >&5
37745echo "$as_me: WARNING: linux/keyboard.h:     check for missing prerequisite headers?" >&2;}
37746    { echo "$as_me:$LINENO: WARNING: linux/keyboard.h: see the Autoconf documentation" >&5
37747echo "$as_me: WARNING: linux/keyboard.h: see the Autoconf documentation" >&2;}
37748    { echo "$as_me:$LINENO: WARNING: linux/keyboard.h:     section \"Present But Cannot Be Compiled\"" >&5
37749echo "$as_me: WARNING: linux/keyboard.h:     section \"Present But Cannot Be Compiled\"" >&2;}
37750    { echo "$as_me:$LINENO: WARNING: linux/keyboard.h: proceeding with the preprocessor's result" >&5
37751echo "$as_me: WARNING: linux/keyboard.h: proceeding with the preprocessor's result" >&2;}
37752    { echo "$as_me:$LINENO: WARNING: linux/keyboard.h: in the future, the compiler will take precedence" >&5
37753echo "$as_me: WARNING: linux/keyboard.h: in the future, the compiler will take precedence" >&2;}
37754    ( cat <<\_ASBOX
37755## ---------------------------------------------------------------------- ##
37756## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
37757## ---------------------------------------------------------------------- ##
37758_ASBOX
37759     ) | sed "s/^/$as_me: WARNING:     /" >&2
37760    ;;
37761esac
37762{ echo "$as_me:$LINENO: checking for linux/keyboard.h" >&5
37763echo $ECHO_N "checking for linux/keyboard.h... $ECHO_C" >&6; }
37764if test "${ac_cv_header_linux_keyboard_h+set}" = set; then
37765  echo $ECHO_N "(cached) $ECHO_C" >&6
37766else
37767  ac_cv_header_linux_keyboard_h=$ac_header_preproc
37768fi
37769{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_keyboard_h" >&5
37770echo "${ECHO_T}$ac_cv_header_linux_keyboard_h" >&6; }
37771
37772fi
37773if test $ac_cv_header_linux_keyboard_h = yes; then
37774  DMX_BUILD_LNX="yes"
37775else
37776  DMX_BUILD_LNX="no"
37777fi
37778
37779
37780
37781
37782
37783pkg_failed=no
37784{ echo "$as_me:$LINENO: checking for DMXEXAMPLES_DEP" >&5
37785echo $ECHO_N "checking for DMXEXAMPLES_DEP... $ECHO_C" >&6; }
37786
37787if test -n "$DMXEXAMPLES_DEP_CFLAGS"; then
37788    pkg_cv_DMXEXAMPLES_DEP_CFLAGS="$DMXEXAMPLES_DEP_CFLAGS"
37789 elif test -n "$PKG_CONFIG"; then
37790    if test -n "$PKG_CONFIG" && \
37791    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXEXT x11\"") >&5
37792  ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXEXT x11") 2>&5
37793  ac_status=$?
37794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37795  (exit $ac_status); }; then
37796  pkg_cv_DMXEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX $LIBXEXT x11" 2>/dev/null`
37797else
37798  pkg_failed=yes
37799fi
37800 else
37801    pkg_failed=untried
37802fi
37803if test -n "$DMXEXAMPLES_DEP_LIBS"; then
37804    pkg_cv_DMXEXAMPLES_DEP_LIBS="$DMXEXAMPLES_DEP_LIBS"
37805 elif test -n "$PKG_CONFIG"; then
37806    if test -n "$PKG_CONFIG" && \
37807    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXEXT x11\"") >&5
37808  ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXEXT x11") 2>&5
37809  ac_status=$?
37810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37811  (exit $ac_status); }; then
37812  pkg_cv_DMXEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX $LIBXEXT x11" 2>/dev/null`
37813else
37814  pkg_failed=yes
37815fi
37816 else
37817    pkg_failed=untried
37818fi
37819
37820
37821
37822if test $pkg_failed = yes; then
37823   	{ echo "$as_me:$LINENO: result: no" >&5
37824echo "${ECHO_T}no" >&6; }
37825
37826if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37827        _pkg_short_errors_supported=yes
37828else
37829        _pkg_short_errors_supported=no
37830fi
37831        if test $_pkg_short_errors_supported = yes; then
37832	        DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBDMX $LIBXEXT x11" 2>&1`
37833        else
37834	        DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBDMX $LIBXEXT x11" 2>&1`
37835        fi
37836	# Put the nasty error message in config.log where it belongs
37837	echo "$DMXEXAMPLES_DEP_PKG_ERRORS" >&5
37838
37839	{ { echo "$as_me:$LINENO: error: Package requirements ($LIBDMX $LIBXEXT x11) were not met:
37840
37841$DMXEXAMPLES_DEP_PKG_ERRORS
37842
37843Consider adjusting the PKG_CONFIG_PATH environment variable if you
37844installed software in a non-standard prefix.
37845
37846Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS
37847and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
37848See the pkg-config man page for more details." >&5
37849echo "$as_me: error: Package requirements ($LIBDMX $LIBXEXT x11) were not met:
37850
37851$DMXEXAMPLES_DEP_PKG_ERRORS
37852
37853Consider adjusting the PKG_CONFIG_PATH environment variable if you
37854installed software in a non-standard prefix.
37855
37856Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS
37857and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
37858See the pkg-config man page for more details." >&2;}
37859   { (exit 1); exit 1; }; }
37860elif test $pkg_failed = untried; then
37861     	{ echo "$as_me:$LINENO: result: no" >&5
37862echo "${ECHO_T}no" >&6; }
37863	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
37864is in your PATH or set the PKG_CONFIG environment variable to the full
37865path to pkg-config.
37866
37867Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS
37868and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
37869See the pkg-config man page for more details.
37870
37871To get pkg-config, see <http://pkg-config.freedesktop.org/>.
37872See \`config.log' for more details." >&5
37873echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
37874is in your PATH or set the PKG_CONFIG environment variable to the full
37875path to pkg-config.
37876
37877Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS
37878and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
37879See the pkg-config man page for more details.
37880
37881To get pkg-config, see <http://pkg-config.freedesktop.org/>.
37882See \`config.log' for more details." >&2;}
37883   { (exit 1); exit 1; }; }
37884else
37885	DMXEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXEXAMPLES_DEP_CFLAGS
37886	DMXEXAMPLES_DEP_LIBS=$pkg_cv_DMXEXAMPLES_DEP_LIBS
37887        { echo "$as_me:$LINENO: result: yes" >&5
37888echo "${ECHO_T}yes" >&6; }
37889
37890fi
37891
37892
37893pkg_failed=no
37894{ echo "$as_me:$LINENO: checking for DMXXMUEXAMPLES_DEP" >&5
37895echo $ECHO_N "checking for DMXXMUEXAMPLES_DEP... $ECHO_C" >&6; }
37896
37897if test -n "$DMXXMUEXAMPLES_DEP_CFLAGS"; then
37898    pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS="$DMXXMUEXAMPLES_DEP_CFLAGS"
37899 elif test -n "$PKG_CONFIG"; then
37900    if test -n "$PKG_CONFIG" && \
37901    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX xmu \$LIBXEXT x11\"") >&5
37902  ($PKG_CONFIG --exists --print-errors "$LIBDMX xmu $LIBXEXT x11") 2>&5
37903  ac_status=$?
37904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37905  (exit $ac_status); }; then
37906  pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX xmu $LIBXEXT x11" 2>/dev/null`
37907else
37908  pkg_failed=yes
37909fi
37910 else
37911    pkg_failed=untried
37912fi
37913if test -n "$DMXXMUEXAMPLES_DEP_LIBS"; then
37914    pkg_cv_DMXXMUEXAMPLES_DEP_LIBS="$DMXXMUEXAMPLES_DEP_LIBS"
37915 elif test -n "$PKG_CONFIG"; then
37916    if test -n "$PKG_CONFIG" && \
37917    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX xmu \$LIBXEXT x11\"") >&5
37918  ($PKG_CONFIG --exists --print-errors "$LIBDMX xmu $LIBXEXT x11") 2>&5
37919  ac_status=$?
37920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37921  (exit $ac_status); }; then
37922  pkg_cv_DMXXMUEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX xmu $LIBXEXT x11" 2>/dev/null`
37923else
37924  pkg_failed=yes
37925fi
37926 else
37927    pkg_failed=untried
37928fi
37929
37930
37931
37932if test $pkg_failed = yes; then
37933   	{ echo "$as_me:$LINENO: result: no" >&5
37934echo "${ECHO_T}no" >&6; }
37935
37936if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37937        _pkg_short_errors_supported=yes
37938else
37939        _pkg_short_errors_supported=no
37940fi
37941        if test $_pkg_short_errors_supported = yes; then
37942	        DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBDMX xmu $LIBXEXT x11" 2>&1`
37943        else
37944	        DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBDMX xmu $LIBXEXT x11" 2>&1`
37945        fi
37946	# Put the nasty error message in config.log where it belongs
37947	echo "$DMXXMUEXAMPLES_DEP_PKG_ERRORS" >&5
37948
37949	{ { echo "$as_me:$LINENO: error: Package requirements ($LIBDMX xmu $LIBXEXT x11) were not met:
37950
37951$DMXXMUEXAMPLES_DEP_PKG_ERRORS
37952
37953Consider adjusting the PKG_CONFIG_PATH environment variable if you
37954installed software in a non-standard prefix.
37955
37956Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS
37957and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
37958See the pkg-config man page for more details." >&5
37959echo "$as_me: error: Package requirements ($LIBDMX xmu $LIBXEXT x11) were not met:
37960
37961$DMXXMUEXAMPLES_DEP_PKG_ERRORS
37962
37963Consider adjusting the PKG_CONFIG_PATH environment variable if you
37964installed software in a non-standard prefix.
37965
37966Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS
37967and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
37968See the pkg-config man page for more details." >&2;}
37969   { (exit 1); exit 1; }; }
37970elif test $pkg_failed = untried; then
37971     	{ echo "$as_me:$LINENO: result: no" >&5
37972echo "${ECHO_T}no" >&6; }
37973	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
37974is in your PATH or set the PKG_CONFIG environment variable to the full
37975path to pkg-config.
37976
37977Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS
37978and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
37979See the pkg-config man page for more details.
37980
37981To get pkg-config, see <http://pkg-config.freedesktop.org/>.
37982See \`config.log' for more details." >&5
37983echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
37984is in your PATH or set the PKG_CONFIG environment variable to the full
37985path to pkg-config.
37986
37987Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS
37988and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
37989See the pkg-config man page for more details.
37990
37991To get pkg-config, see <http://pkg-config.freedesktop.org/>.
37992See \`config.log' for more details." >&2;}
37993   { (exit 1); exit 1; }; }
37994else
37995	DMXXMUEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS
37996	DMXXMUEXAMPLES_DEP_LIBS=$pkg_cv_DMXXMUEXAMPLES_DEP_LIBS
37997        { echo "$as_me:$LINENO: result: yes" >&5
37998echo "${ECHO_T}yes" >&6; }
37999
38000fi
38001
38002
38003pkg_failed=no
38004{ echo "$as_me:$LINENO: checking for DMXXIEXAMPLES_DEP" >&5
38005echo $ECHO_N "checking for DMXXIEXAMPLES_DEP... $ECHO_C" >&6; }
38006
38007if test -n "$DMXXIEXAMPLES_DEP_CFLAGS"; then
38008    pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS="$DMXXIEXAMPLES_DEP_CFLAGS"
38009 elif test -n "$PKG_CONFIG"; then
38010    if test -n "$PKG_CONFIG" && \
38011    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXI \$LIBXEXT x11\"") >&5
38012  ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXI $LIBXEXT x11") 2>&5
38013  ac_status=$?
38014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38015  (exit $ac_status); }; then
38016  pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX $LIBXI $LIBXEXT x11" 2>/dev/null`
38017else
38018  pkg_failed=yes
38019fi
38020 else
38021    pkg_failed=untried
38022fi
38023if test -n "$DMXXIEXAMPLES_DEP_LIBS"; then
38024    pkg_cv_DMXXIEXAMPLES_DEP_LIBS="$DMXXIEXAMPLES_DEP_LIBS"
38025 elif test -n "$PKG_CONFIG"; then
38026    if test -n "$PKG_CONFIG" && \
38027    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXI \$LIBXEXT x11\"") >&5
38028  ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXI $LIBXEXT x11") 2>&5
38029  ac_status=$?
38030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38031  (exit $ac_status); }; then
38032  pkg_cv_DMXXIEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>/dev/null`
38033else
38034  pkg_failed=yes
38035fi
38036 else
38037    pkg_failed=untried
38038fi
38039
38040
38041
38042if test $pkg_failed = yes; then
38043   	{ echo "$as_me:$LINENO: result: no" >&5
38044echo "${ECHO_T}no" >&6; }
38045
38046if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38047        _pkg_short_errors_supported=yes
38048else
38049        _pkg_short_errors_supported=no
38050fi
38051        if test $_pkg_short_errors_supported = yes; then
38052	        DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBDMX $LIBXI $LIBXEXT x11" 2>&1`
38053        else
38054	        DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBDMX $LIBXI $LIBXEXT x11" 2>&1`
38055        fi
38056	# Put the nasty error message in config.log where it belongs
38057	echo "$DMXXIEXAMPLES_DEP_PKG_ERRORS" >&5
38058
38059	{ { echo "$as_me:$LINENO: error: Package requirements ($LIBDMX $LIBXI $LIBXEXT x11) were not met:
38060
38061$DMXXIEXAMPLES_DEP_PKG_ERRORS
38062
38063Consider adjusting the PKG_CONFIG_PATH environment variable if you
38064installed software in a non-standard prefix.
38065
38066Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS
38067and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38068See the pkg-config man page for more details." >&5
38069echo "$as_me: error: Package requirements ($LIBDMX $LIBXI $LIBXEXT x11) were not met:
38070
38071$DMXXIEXAMPLES_DEP_PKG_ERRORS
38072
38073Consider adjusting the PKG_CONFIG_PATH environment variable if you
38074installed software in a non-standard prefix.
38075
38076Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS
38077and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38078See the pkg-config man page for more details." >&2;}
38079   { (exit 1); exit 1; }; }
38080elif test $pkg_failed = untried; then
38081     	{ echo "$as_me:$LINENO: result: no" >&5
38082echo "${ECHO_T}no" >&6; }
38083	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
38084is in your PATH or set the PKG_CONFIG environment variable to the full
38085path to pkg-config.
38086
38087Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS
38088and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38089See the pkg-config man page for more details.
38090
38091To get pkg-config, see <http://pkg-config.freedesktop.org/>.
38092See \`config.log' for more details." >&5
38093echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
38094is in your PATH or set the PKG_CONFIG environment variable to the full
38095path to pkg-config.
38096
38097Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS
38098and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38099See the pkg-config man page for more details.
38100
38101To get pkg-config, see <http://pkg-config.freedesktop.org/>.
38102See \`config.log' for more details." >&2;}
38103   { (exit 1); exit 1; }; }
38104else
38105	DMXXIEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS
38106	DMXXIEXAMPLES_DEP_LIBS=$pkg_cv_DMXXIEXAMPLES_DEP_LIBS
38107        { echo "$as_me:$LINENO: result: yes" >&5
38108echo "${ECHO_T}yes" >&6; }
38109
38110fi
38111
38112
38113pkg_failed=no
38114{ echo "$as_me:$LINENO: checking for XTSTEXAMPLES_DEP" >&5
38115echo $ECHO_N "checking for XTSTEXAMPLES_DEP... $ECHO_C" >&6; }
38116
38117if test -n "$XTSTEXAMPLES_DEP_CFLAGS"; then
38118    pkg_cv_XTSTEXAMPLES_DEP_CFLAGS="$XTSTEXAMPLES_DEP_CFLAGS"
38119 elif test -n "$PKG_CONFIG"; then
38120    if test -n "$PKG_CONFIG" && \
38121    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBXTST \$LIBXEXT x11\"") >&5
38122  ($PKG_CONFIG --exists --print-errors "$LIBXTST $LIBXEXT x11") 2>&5
38123  ac_status=$?
38124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38125  (exit $ac_status); }; then
38126  pkg_cv_XTSTEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBXTST $LIBXEXT x11" 2>/dev/null`
38127else
38128  pkg_failed=yes
38129fi
38130 else
38131    pkg_failed=untried
38132fi
38133if test -n "$XTSTEXAMPLES_DEP_LIBS"; then
38134    pkg_cv_XTSTEXAMPLES_DEP_LIBS="$XTSTEXAMPLES_DEP_LIBS"
38135 elif test -n "$PKG_CONFIG"; then
38136    if test -n "$PKG_CONFIG" && \
38137    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBXTST \$LIBXEXT x11\"") >&5
38138  ($PKG_CONFIG --exists --print-errors "$LIBXTST $LIBXEXT x11") 2>&5
38139  ac_status=$?
38140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38141  (exit $ac_status); }; then
38142  pkg_cv_XTSTEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBXTST $LIBXEXT x11" 2>/dev/null`
38143else
38144  pkg_failed=yes
38145fi
38146 else
38147    pkg_failed=untried
38148fi
38149
38150
38151
38152if test $pkg_failed = yes; then
38153   	{ echo "$as_me:$LINENO: result: no" >&5
38154echo "${ECHO_T}no" >&6; }
38155
38156if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38157        _pkg_short_errors_supported=yes
38158else
38159        _pkg_short_errors_supported=no
38160fi
38161        if test $_pkg_short_errors_supported = yes; then
38162	        XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBXTST $LIBXEXT x11" 2>&1`
38163        else
38164	        XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBXTST $LIBXEXT x11" 2>&1`
38165        fi
38166	# Put the nasty error message in config.log where it belongs
38167	echo "$XTSTEXAMPLES_DEP_PKG_ERRORS" >&5
38168
38169	{ { echo "$as_me:$LINENO: error: Package requirements ($LIBXTST $LIBXEXT x11) were not met:
38170
38171$XTSTEXAMPLES_DEP_PKG_ERRORS
38172
38173Consider adjusting the PKG_CONFIG_PATH environment variable if you
38174installed software in a non-standard prefix.
38175
38176Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS
38177and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38178See the pkg-config man page for more details." >&5
38179echo "$as_me: error: Package requirements ($LIBXTST $LIBXEXT x11) were not met:
38180
38181$XTSTEXAMPLES_DEP_PKG_ERRORS
38182
38183Consider adjusting the PKG_CONFIG_PATH environment variable if you
38184installed software in a non-standard prefix.
38185
38186Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS
38187and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38188See the pkg-config man page for more details." >&2;}
38189   { (exit 1); exit 1; }; }
38190elif test $pkg_failed = untried; then
38191     	{ echo "$as_me:$LINENO: result: no" >&5
38192echo "${ECHO_T}no" >&6; }
38193	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
38194is in your PATH or set the PKG_CONFIG environment variable to the full
38195path to pkg-config.
38196
38197Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS
38198and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38199See the pkg-config man page for more details.
38200
38201To get pkg-config, see <http://pkg-config.freedesktop.org/>.
38202See \`config.log' for more details." >&5
38203echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
38204is in your PATH or set the PKG_CONFIG environment variable to the full
38205path to pkg-config.
38206
38207Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS
38208and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38209See the pkg-config man page for more details.
38210
38211To get pkg-config, see <http://pkg-config.freedesktop.org/>.
38212See \`config.log' for more details." >&2;}
38213   { (exit 1); exit 1; }; }
38214else
38215	XTSTEXAMPLES_DEP_CFLAGS=$pkg_cv_XTSTEXAMPLES_DEP_CFLAGS
38216	XTSTEXAMPLES_DEP_LIBS=$pkg_cv_XTSTEXAMPLES_DEP_LIBS
38217        { echo "$as_me:$LINENO: result: yes" >&5
38218echo "${ECHO_T}yes" >&6; }
38219
38220fi
38221
38222
38223pkg_failed=no
38224{ echo "$as_me:$LINENO: checking for XRESEXAMPLES_DEP" >&5
38225echo $ECHO_N "checking for XRESEXAMPLES_DEP... $ECHO_C" >&6; }
38226
38227if test -n "$XRESEXAMPLES_DEP_CFLAGS"; then
38228    pkg_cv_XRESEXAMPLES_DEP_CFLAGS="$XRESEXAMPLES_DEP_CFLAGS"
38229 elif test -n "$PKG_CONFIG"; then
38230    if test -n "$PKG_CONFIG" && \
38231    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xres \$LIBXEXT x11\"") >&5
38232  ($PKG_CONFIG --exists --print-errors "xres $LIBXEXT x11") 2>&5
38233  ac_status=$?
38234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38235  (exit $ac_status); }; then
38236  pkg_cv_XRESEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "xres $LIBXEXT x11" 2>/dev/null`
38237else
38238  pkg_failed=yes
38239fi
38240 else
38241    pkg_failed=untried
38242fi
38243if test -n "$XRESEXAMPLES_DEP_LIBS"; then
38244    pkg_cv_XRESEXAMPLES_DEP_LIBS="$XRESEXAMPLES_DEP_LIBS"
38245 elif test -n "$PKG_CONFIG"; then
38246    if test -n "$PKG_CONFIG" && \
38247    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xres \$LIBXEXT x11\"") >&5
38248  ($PKG_CONFIG --exists --print-errors "xres $LIBXEXT x11") 2>&5
38249  ac_status=$?
38250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38251  (exit $ac_status); }; then
38252  pkg_cv_XRESEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "xres $LIBXEXT x11" 2>/dev/null`
38253else
38254  pkg_failed=yes
38255fi
38256 else
38257    pkg_failed=untried
38258fi
38259
38260
38261
38262if test $pkg_failed = yes; then
38263   	{ echo "$as_me:$LINENO: result: no" >&5
38264echo "${ECHO_T}no" >&6; }
38265
38266if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38267        _pkg_short_errors_supported=yes
38268else
38269        _pkg_short_errors_supported=no
38270fi
38271        if test $_pkg_short_errors_supported = yes; then
38272	        XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xres $LIBXEXT x11" 2>&1`
38273        else
38274	        XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xres $LIBXEXT x11" 2>&1`
38275        fi
38276	# Put the nasty error message in config.log where it belongs
38277	echo "$XRESEXAMPLES_DEP_PKG_ERRORS" >&5
38278
38279	{ { echo "$as_me:$LINENO: error: Package requirements (xres $LIBXEXT x11) were not met:
38280
38281$XRESEXAMPLES_DEP_PKG_ERRORS
38282
38283Consider adjusting the PKG_CONFIG_PATH environment variable if you
38284installed software in a non-standard prefix.
38285
38286Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS
38287and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38288See the pkg-config man page for more details." >&5
38289echo "$as_me: error: Package requirements (xres $LIBXEXT x11) were not met:
38290
38291$XRESEXAMPLES_DEP_PKG_ERRORS
38292
38293Consider adjusting the PKG_CONFIG_PATH environment variable if you
38294installed software in a non-standard prefix.
38295
38296Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS
38297and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38298See the pkg-config man page for more details." >&2;}
38299   { (exit 1); exit 1; }; }
38300elif test $pkg_failed = untried; then
38301     	{ echo "$as_me:$LINENO: result: no" >&5
38302echo "${ECHO_T}no" >&6; }
38303	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
38304is in your PATH or set the PKG_CONFIG environment variable to the full
38305path to pkg-config.
38306
38307Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS
38308and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38309See the pkg-config man page for more details.
38310
38311To get pkg-config, see <http://pkg-config.freedesktop.org/>.
38312See \`config.log' for more details." >&5
38313echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
38314is in your PATH or set the PKG_CONFIG environment variable to the full
38315path to pkg-config.
38316
38317Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS
38318and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38319See the pkg-config man page for more details.
38320
38321To get pkg-config, see <http://pkg-config.freedesktop.org/>.
38322See \`config.log' for more details." >&2;}
38323   { (exit 1); exit 1; }; }
38324else
38325	XRESEXAMPLES_DEP_CFLAGS=$pkg_cv_XRESEXAMPLES_DEP_CFLAGS
38326	XRESEXAMPLES_DEP_LIBS=$pkg_cv_XRESEXAMPLES_DEP_LIBS
38327        { echo "$as_me:$LINENO: result: yes" >&5
38328echo "${ECHO_T}yes" >&6; }
38329
38330fi
38331
38332
38333pkg_failed=no
38334{ echo "$as_me:$LINENO: checking for X11EXAMPLES_DEP" >&5
38335echo $ECHO_N "checking for X11EXAMPLES_DEP... $ECHO_C" >&6; }
38336
38337if test -n "$X11EXAMPLES_DEP_CFLAGS"; then
38338    pkg_cv_X11EXAMPLES_DEP_CFLAGS="$X11EXAMPLES_DEP_CFLAGS"
38339 elif test -n "$PKG_CONFIG"; then
38340    if test -n "$PKG_CONFIG" && \
38341    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11\"") >&5
38342  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11") 2>&5
38343  ac_status=$?
38344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38345  (exit $ac_status); }; then
38346  pkg_cv_X11EXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11" 2>/dev/null`
38347else
38348  pkg_failed=yes
38349fi
38350 else
38351    pkg_failed=untried
38352fi
38353if test -n "$X11EXAMPLES_DEP_LIBS"; then
38354    pkg_cv_X11EXAMPLES_DEP_LIBS="$X11EXAMPLES_DEP_LIBS"
38355 elif test -n "$PKG_CONFIG"; then
38356    if test -n "$PKG_CONFIG" && \
38357    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11\"") >&5
38358  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11") 2>&5
38359  ac_status=$?
38360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38361  (exit $ac_status); }; then
38362  pkg_cv_X11EXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11" 2>/dev/null`
38363else
38364  pkg_failed=yes
38365fi
38366 else
38367    pkg_failed=untried
38368fi
38369
38370
38371
38372if test $pkg_failed = yes; then
38373   	{ echo "$as_me:$LINENO: result: no" >&5
38374echo "${ECHO_T}no" >&6; }
38375
38376if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38377        _pkg_short_errors_supported=yes
38378else
38379        _pkg_short_errors_supported=no
38380fi
38381        if test $_pkg_short_errors_supported = yes; then
38382	        X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBXEXT x11" 2>&1`
38383        else
38384	        X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBXEXT x11" 2>&1`
38385        fi
38386	# Put the nasty error message in config.log where it belongs
38387	echo "$X11EXAMPLES_DEP_PKG_ERRORS" >&5
38388
38389	{ { echo "$as_me:$LINENO: error: Package requirements ($LIBXEXT x11) were not met:
38390
38391$X11EXAMPLES_DEP_PKG_ERRORS
38392
38393Consider adjusting the PKG_CONFIG_PATH environment variable if you
38394installed software in a non-standard prefix.
38395
38396Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS
38397and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38398See the pkg-config man page for more details." >&5
38399echo "$as_me: error: Package requirements ($LIBXEXT x11) were not met:
38400
38401$X11EXAMPLES_DEP_PKG_ERRORS
38402
38403Consider adjusting the PKG_CONFIG_PATH environment variable if you
38404installed software in a non-standard prefix.
38405
38406Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS
38407and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38408See the pkg-config man page for more details." >&2;}
38409   { (exit 1); exit 1; }; }
38410elif test $pkg_failed = untried; then
38411     	{ echo "$as_me:$LINENO: result: no" >&5
38412echo "${ECHO_T}no" >&6; }
38413	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
38414is in your PATH or set the PKG_CONFIG environment variable to the full
38415path to pkg-config.
38416
38417Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS
38418and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38419See the pkg-config man page for more details.
38420
38421To get pkg-config, see <http://pkg-config.freedesktop.org/>.
38422See \`config.log' for more details." >&5
38423echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
38424is in your PATH or set the PKG_CONFIG environment variable to the full
38425path to pkg-config.
38426
38427Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS
38428and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
38429See the pkg-config man page for more details.
38430
38431To get pkg-config, see <http://pkg-config.freedesktop.org/>.
38432See \`config.log' for more details." >&2;}
38433   { (exit 1); exit 1; }; }
38434else
38435	X11EXAMPLES_DEP_CFLAGS=$pkg_cv_X11EXAMPLES_DEP_CFLAGS
38436	X11EXAMPLES_DEP_LIBS=$pkg_cv_X11EXAMPLES_DEP_LIBS
38437        { echo "$as_me:$LINENO: result: yes" >&5
38438echo "${ECHO_T}yes" >&6; }
38439
38440fi
38441
38442
38443fi
38444 if test "x$DMX_BUILD_LNX" = xyes; then
38445  DMX_BUILD_LNX_TRUE=
38446  DMX_BUILD_LNX_FALSE='#'
38447else
38448  DMX_BUILD_LNX_TRUE='#'
38449  DMX_BUILD_LNX_FALSE=
38450fi
38451
38452 if test "x$DMX_BUILD_USB" = xyes; then
38453  DMX_BUILD_USB_TRUE=
38454  DMX_BUILD_USB_FALSE='#'
38455else
38456  DMX_BUILD_USB_TRUE='#'
38457  DMX_BUILD_USB_FALSE=
38458fi
38459
38460
38461
38462XEPHYR_LIBS=
38463XEPHYR_INCS=
38464
38465 if test x$KDRIVE = xyes; then
38466  KDRIVE_TRUE=
38467  KDRIVE_FALSE='#'
38468else
38469  KDRIVE_TRUE='#'
38470  KDRIVE_FALSE=
38471fi
38472
38473
38474if test "$KDRIVE" = yes; then
38475
38476cat >>confdefs.h <<\_ACEOF
38477#define KDRIVESERVER 1
38478_ACEOF
38479
38480
38481cat >>confdefs.h <<\_ACEOF
38482#define KDRIVEDDXACTIONS
38483_ACEOF
38484
38485
38486
38487for ac_header in linux/fb.h
38488do
38489as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38490if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38491  { echo "$as_me:$LINENO: checking for $ac_header" >&5
38492echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38493if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38494  echo $ECHO_N "(cached) $ECHO_C" >&6
38495fi
38496ac_res=`eval echo '${'$as_ac_Header'}'`
38497	       { echo "$as_me:$LINENO: result: $ac_res" >&5
38498echo "${ECHO_T}$ac_res" >&6; }
38499else
38500  # Is the header compilable?
38501{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
38502echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
38503cat >conftest.$ac_ext <<_ACEOF
38504/* confdefs.h.  */
38505_ACEOF
38506cat confdefs.h >>conftest.$ac_ext
38507cat >>conftest.$ac_ext <<_ACEOF
38508/* end confdefs.h.  */
38509$ac_includes_default
38510#include <$ac_header>
38511_ACEOF
38512rm -f conftest.$ac_objext
38513if { (ac_try="$ac_compile"
38514case "(($ac_try" in
38515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38516  *) ac_try_echo=$ac_try;;
38517esac
38518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38519  (eval "$ac_compile") 2>conftest.er1
38520  ac_status=$?
38521  grep -v '^ *+' conftest.er1 >conftest.err
38522  rm -f conftest.er1
38523  cat conftest.err >&5
38524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38525  (exit $ac_status); } && {
38526	 test -z "$ac_c_werror_flag" ||
38527	 test ! -s conftest.err
38528       } && test -s conftest.$ac_objext; then
38529  ac_header_compiler=yes
38530else
38531  echo "$as_me: failed program was:" >&5
38532sed 's/^/| /' conftest.$ac_ext >&5
38533
38534	ac_header_compiler=no
38535fi
38536
38537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38538{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38539echo "${ECHO_T}$ac_header_compiler" >&6; }
38540
38541# Is the header present?
38542{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
38543echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
38544cat >conftest.$ac_ext <<_ACEOF
38545/* confdefs.h.  */
38546_ACEOF
38547cat confdefs.h >>conftest.$ac_ext
38548cat >>conftest.$ac_ext <<_ACEOF
38549/* end confdefs.h.  */
38550#include <$ac_header>
38551_ACEOF
38552if { (ac_try="$ac_cpp conftest.$ac_ext"
38553case "(($ac_try" in
38554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38555  *) ac_try_echo=$ac_try;;
38556esac
38557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38558  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38559  ac_status=$?
38560  grep -v '^ *+' conftest.er1 >conftest.err
38561  rm -f conftest.er1
38562  cat conftest.err >&5
38563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38564  (exit $ac_status); } >/dev/null && {
38565	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38566	 test ! -s conftest.err
38567       }; then
38568  ac_header_preproc=yes
38569else
38570  echo "$as_me: failed program was:" >&5
38571sed 's/^/| /' conftest.$ac_ext >&5
38572
38573  ac_header_preproc=no
38574fi
38575
38576rm -f conftest.err conftest.$ac_ext
38577{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38578echo "${ECHO_T}$ac_header_preproc" >&6; }
38579
38580# So?  What about this header?
38581case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38582  yes:no: )
38583    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38584echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38585    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38586echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38587    ac_header_preproc=yes
38588    ;;
38589  no:yes:* )
38590    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38591echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38592    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38593echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38594    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38595echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38596    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38597echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38598    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38599echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38600    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38601echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38602    ( cat <<\_ASBOX
38603## ---------------------------------------------------------------------- ##
38604## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
38605## ---------------------------------------------------------------------- ##
38606_ASBOX
38607     ) | sed "s/^/$as_me: WARNING:     /" >&2
38608    ;;
38609esac
38610{ echo "$as_me:$LINENO: checking for $ac_header" >&5
38611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38612if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38613  echo $ECHO_N "(cached) $ECHO_C" >&6
38614else
38615  eval "$as_ac_Header=\$ac_header_preproc"
38616fi
38617ac_res=`eval echo '${'$as_ac_Header'}'`
38618	       { echo "$as_me:$LINENO: result: $ac_res" >&5
38619echo "${ECHO_T}$ac_res" >&6; }
38620
38621fi
38622if test `eval echo '${'$as_ac_Header'}'` = yes; then
38623  cat >>confdefs.h <<_ACEOF
38624#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38625_ACEOF
38626
38627fi
38628
38629done
38630
38631    if test "$ac_cv_header_linux_fb_h" = yes && test "x$XFBDEV" = xauto; then
38632        XFBDEV=yes
38633    fi
38634
38635    if test "x$XFBDEV" = xyes; then
38636        KDRIVEFBDEVLIB=yes
38637
38638cat >>confdefs.h <<\_ACEOF
38639#define KDRIVEFBDEV 1
38640_ACEOF
38641
38642    fi
38643
38644
38645
38646pkg_failed=no
38647{ echo "$as_me:$LINENO: checking for TSLIB" >&5
38648echo $ECHO_N "checking for TSLIB... $ECHO_C" >&6; }
38649
38650if test -n "$TSLIB_CFLAGS"; then
38651    pkg_cv_TSLIB_CFLAGS="$TSLIB_CFLAGS"
38652 elif test -n "$PKG_CONFIG"; then
38653    if test -n "$PKG_CONFIG" && \
38654    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"tslib-0.0\"") >&5
38655  ($PKG_CONFIG --exists --print-errors "tslib-0.0") 2>&5
38656  ac_status=$?
38657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38658  (exit $ac_status); }; then
38659  pkg_cv_TSLIB_CFLAGS=`$PKG_CONFIG --cflags "tslib-0.0" 2>/dev/null`
38660else
38661  pkg_failed=yes
38662fi
38663 else
38664    pkg_failed=untried
38665fi
38666if test -n "$TSLIB_LIBS"; then
38667    pkg_cv_TSLIB_LIBS="$TSLIB_LIBS"
38668 elif test -n "$PKG_CONFIG"; then
38669    if test -n "$PKG_CONFIG" && \
38670    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"tslib-0.0\"") >&5
38671  ($PKG_CONFIG --exists --print-errors "tslib-0.0") 2>&5
38672  ac_status=$?
38673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38674  (exit $ac_status); }; then
38675  pkg_cv_TSLIB_LIBS=`$PKG_CONFIG --libs "tslib-0.0" 2>/dev/null`
38676else
38677  pkg_failed=yes
38678fi
38679 else
38680    pkg_failed=untried
38681fi
38682
38683
38684
38685if test $pkg_failed = yes; then
38686   	{ echo "$as_me:$LINENO: result: no" >&5
38687echo "${ECHO_T}no" >&6; }
38688
38689if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38690        _pkg_short_errors_supported=yes
38691else
38692        _pkg_short_errors_supported=no
38693fi
38694        if test $_pkg_short_errors_supported = yes; then
38695	        TSLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "tslib-0.0" 2>&1`
38696        else
38697	        TSLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "tslib-0.0" 2>&1`
38698        fi
38699	# Put the nasty error message in config.log where it belongs
38700	echo "$TSLIB_PKG_ERRORS" >&5
38701
38702	HAVE_TSLIB="no"
38703elif test $pkg_failed = untried; then
38704     	{ echo "$as_me:$LINENO: result: no" >&5
38705echo "${ECHO_T}no" >&6; }
38706	HAVE_TSLIB="no"
38707else
38708	TSLIB_CFLAGS=$pkg_cv_TSLIB_CFLAGS
38709	TSLIB_LIBS=$pkg_cv_TSLIB_LIBS
38710        { echo "$as_me:$LINENO: result: yes" >&5
38711echo "${ECHO_T}yes" >&6; }
38712	HAVE_TSLIB="yes"
38713fi
38714    if test "x$HAVE_TSLIB" = xno; then
38715        { echo "$as_me:$LINENO: checking for ts_open in -lts" >&5
38716echo $ECHO_N "checking for ts_open in -lts... $ECHO_C" >&6; }
38717if test "${ac_cv_lib_ts_ts_open+set}" = set; then
38718  echo $ECHO_N "(cached) $ECHO_C" >&6
38719else
38720  ac_check_lib_save_LIBS=$LIBS
38721LIBS="-lts  $LIBS"
38722cat >conftest.$ac_ext <<_ACEOF
38723/* confdefs.h.  */
38724_ACEOF
38725cat confdefs.h >>conftest.$ac_ext
38726cat >>conftest.$ac_ext <<_ACEOF
38727/* end confdefs.h.  */
38728
38729/* Override any GCC internal prototype to avoid an error.
38730   Use char because int might match the return type of a GCC
38731   builtin and then its argument prototype would still apply.  */
38732#ifdef __cplusplus
38733extern "C"
38734#endif
38735char ts_open ();
38736int
38737main ()
38738{
38739return ts_open ();
38740  ;
38741  return 0;
38742}
38743_ACEOF
38744rm -f conftest.$ac_objext conftest$ac_exeext
38745if { (ac_try="$ac_link"
38746case "(($ac_try" in
38747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38748  *) ac_try_echo=$ac_try;;
38749esac
38750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38751  (eval "$ac_link") 2>conftest.er1
38752  ac_status=$?
38753  grep -v '^ *+' conftest.er1 >conftest.err
38754  rm -f conftest.er1
38755  cat conftest.err >&5
38756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38757  (exit $ac_status); } && {
38758	 test -z "$ac_c_werror_flag" ||
38759	 test ! -s conftest.err
38760       } && test -s conftest$ac_exeext &&
38761       $as_test_x conftest$ac_exeext; then
38762  ac_cv_lib_ts_ts_open=yes
38763else
38764  echo "$as_me: failed program was:" >&5
38765sed 's/^/| /' conftest.$ac_ext >&5
38766
38767	ac_cv_lib_ts_ts_open=no
38768fi
38769
38770rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38771      conftest$ac_exeext conftest.$ac_ext
38772LIBS=$ac_check_lib_save_LIBS
38773fi
38774{ echo "$as_me:$LINENO: result: $ac_cv_lib_ts_ts_open" >&5
38775echo "${ECHO_T}$ac_cv_lib_ts_ts_open" >&6; }
38776if test $ac_cv_lib_ts_ts_open = yes; then
38777
38778			HAVE_TSLIB="yes"
38779			TSLIB_LIBS="-lts"
38780
38781fi
38782
38783    fi
38784
38785    if test "xTSLIB" = xauto; then
38786        TSLIB="$HAVE_TSLIB"
38787    fi
38788
38789    if test "x$TSLIB" = xyes; then
38790        if ! test "x$HAVE_TSLIB" = xyes; then
38791            { { echo "$as_me:$LINENO: error: tslib must be installed to build the tslib driver. See http://tslib.berlios.de/" >&5
38792echo "$as_me: error: tslib must be installed to build the tslib driver. See http://tslib.berlios.de/" >&2;}
38793   { (exit 1); exit 1; }; }
38794        else
38795
38796cat >>confdefs.h <<\_ACEOF
38797#define TSLIB 1
38798_ACEOF
38799
38800        fi
38801    fi
38802
38803    if test "x$KDRIVE_KBD" = xyes; then
38804
38805cat >>confdefs.h <<\_ACEOF
38806#define KDRIVE_KBD 1
38807_ACEOF
38808
38809    fi
38810    if test "x$KDRIVE_EVDEV" = xyes; then
38811
38812cat >>confdefs.h <<\_ACEOF
38813#define KDRIVE_EVDEV 1
38814_ACEOF
38815
38816    fi
38817    if test "x$KDRIVE_MOUSE" = xyes; then
38818
38819cat >>confdefs.h <<\_ACEOF
38820#define KDRIVE_MOUSE 1
38821_ACEOF
38822
38823    fi
38824
38825    XEPHYR_REQUIRED_LIBS="x11 $LIBXEXT xau xdmcp"
38826    if test "x$XV" = xyes; then
38827        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS xv"
38828    fi
38829    if test "x$DRI" = xyes && test "x$GLX" = xyes; then
38830        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS $LIBGL libdrm"
38831    fi
38832
38833    if test "x$XEPHYR" = xauto; then
38834
38835pkg_failed=no
38836{ echo "$as_me:$LINENO: checking for XEPHYR" >&5
38837echo $ECHO_N "checking for XEPHYR... $ECHO_C" >&6; }
38838
38839if test -n "$XEPHYR_CFLAGS"; then
38840    pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS"
38841 elif test -n "$PKG_CONFIG"; then
38842    if test -n "$PKG_CONFIG" && \
38843    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\"") >&5
38844  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
38845  ac_status=$?
38846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38847  (exit $ac_status); }; then
38848  pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
38849else
38850  pkg_failed=yes
38851fi
38852 else
38853    pkg_failed=untried
38854fi
38855if test -n "$XEPHYR_LIBS"; then
38856    pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS"
38857 elif test -n "$PKG_CONFIG"; then
38858    if test -n "$PKG_CONFIG" && \
38859    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\"") >&5
38860  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
38861  ac_status=$?
38862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38863  (exit $ac_status); }; then
38864  pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
38865else
38866  pkg_failed=yes
38867fi
38868 else
38869    pkg_failed=untried
38870fi
38871
38872
38873
38874if test $pkg_failed = yes; then
38875   	{ echo "$as_me:$LINENO: result: no" >&5
38876echo "${ECHO_T}no" >&6; }
38877
38878if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38879        _pkg_short_errors_supported=yes
38880else
38881        _pkg_short_errors_supported=no
38882fi
38883        if test $_pkg_short_errors_supported = yes; then
38884	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$XEPHYR_REQUIRED_LIBS" 2>&1`
38885        else
38886	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors "$XEPHYR_REQUIRED_LIBS" 2>&1`
38887        fi
38888	# Put the nasty error message in config.log where it belongs
38889	echo "$XEPHYR_PKG_ERRORS" >&5
38890
38891	XEPHYR="no"
38892elif test $pkg_failed = untried; then
38893     	{ echo "$as_me:$LINENO: result: no" >&5
38894echo "${ECHO_T}no" >&6; }
38895	XEPHYR="no"
38896else
38897	XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS
38898	XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS
38899        { echo "$as_me:$LINENO: result: yes" >&5
38900echo "${ECHO_T}yes" >&6; }
38901	XEPHYR="yes"
38902fi
38903    elif test "x$XEPHYR" = xyes ; then
38904
38905pkg_failed=no
38906{ echo "$as_me:$LINENO: checking for XEPHYR" >&5
38907echo $ECHO_N "checking for XEPHYR... $ECHO_C" >&6; }
38908
38909if test -n "$XEPHYR_CFLAGS"; then
38910    pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS"
38911 elif test -n "$PKG_CONFIG"; then
38912    if test -n "$PKG_CONFIG" && \
38913    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\"") >&5
38914  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
38915  ac_status=$?
38916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38917  (exit $ac_status); }; then
38918  pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
38919else
38920  pkg_failed=yes
38921fi
38922 else
38923    pkg_failed=untried
38924fi
38925if test -n "$XEPHYR_LIBS"; then
38926    pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS"
38927 elif test -n "$PKG_CONFIG"; then
38928    if test -n "$PKG_CONFIG" && \
38929    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\"") >&5
38930  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
38931  ac_status=$?
38932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38933  (exit $ac_status); }; then
38934  pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
38935else
38936  pkg_failed=yes
38937fi
38938 else
38939    pkg_failed=untried
38940fi
38941
38942
38943
38944if test $pkg_failed = yes; then
38945   	{ echo "$as_me:$LINENO: result: no" >&5
38946echo "${ECHO_T}no" >&6; }
38947
38948if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38949        _pkg_short_errors_supported=yes
38950else
38951        _pkg_short_errors_supported=no
38952fi
38953        if test $_pkg_short_errors_supported = yes; then
38954	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$XEPHYR_REQUIRED_LIBS" 2>&1`
38955        else
38956	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors "$XEPHYR_REQUIRED_LIBS" 2>&1`
38957        fi
38958	# Put the nasty error message in config.log where it belongs
38959	echo "$XEPHYR_PKG_ERRORS" >&5
38960
38961	{ { echo "$as_me:$LINENO: error: Package requirements ($XEPHYR_REQUIRED_LIBS) were not met:
38962
38963$XEPHYR_PKG_ERRORS
38964
38965Consider adjusting the PKG_CONFIG_PATH environment variable if you
38966installed software in a non-standard prefix.
38967
38968Alternatively, you may set the environment variables XEPHYR_CFLAGS
38969and XEPHYR_LIBS to avoid the need to call pkg-config.
38970See the pkg-config man page for more details." >&5
38971echo "$as_me: error: Package requirements ($XEPHYR_REQUIRED_LIBS) were not met:
38972
38973$XEPHYR_PKG_ERRORS
38974
38975Consider adjusting the PKG_CONFIG_PATH environment variable if you
38976installed software in a non-standard prefix.
38977
38978Alternatively, you may set the environment variables XEPHYR_CFLAGS
38979and XEPHYR_LIBS to avoid the need to call pkg-config.
38980See the pkg-config man page for more details." >&2;}
38981   { (exit 1); exit 1; }; }
38982elif test $pkg_failed = untried; then
38983     	{ echo "$as_me:$LINENO: result: no" >&5
38984echo "${ECHO_T}no" >&6; }
38985	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
38986is in your PATH or set the PKG_CONFIG environment variable to the full
38987path to pkg-config.
38988
38989Alternatively, you may set the environment variables XEPHYR_CFLAGS
38990and XEPHYR_LIBS to avoid the need to call pkg-config.
38991See the pkg-config man page for more details.
38992
38993To get pkg-config, see <http://pkg-config.freedesktop.org/>.
38994See \`config.log' for more details." >&5
38995echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
38996is in your PATH or set the PKG_CONFIG environment variable to the full
38997path to pkg-config.
38998
38999Alternatively, you may set the environment variables XEPHYR_CFLAGS
39000and XEPHYR_LIBS to avoid the need to call pkg-config.
39001See the pkg-config man page for more details.
39002
39003To get pkg-config, see <http://pkg-config.freedesktop.org/>.
39004See \`config.log' for more details." >&2;}
39005   { (exit 1); exit 1; }; }
39006else
39007	XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS
39008	XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS
39009        { echo "$as_me:$LINENO: result: yes" >&5
39010echo "${ECHO_T}yes" >&6; }
39011
39012fi
39013    fi
39014
39015    # Xephyr needs nanosleep() which is in librt on Solaris
39016    { echo "$as_me:$LINENO: checking for nanosleep" >&5
39017echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
39018if test "${ac_cv_func_nanosleep+set}" = set; then
39019  echo $ECHO_N "(cached) $ECHO_C" >&6
39020else
39021  cat >conftest.$ac_ext <<_ACEOF
39022/* confdefs.h.  */
39023_ACEOF
39024cat confdefs.h >>conftest.$ac_ext
39025cat >>conftest.$ac_ext <<_ACEOF
39026/* end confdefs.h.  */
39027/* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
39028   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39029#define nanosleep innocuous_nanosleep
39030
39031/* System header to define __stub macros and hopefully few prototypes,
39032    which can conflict with char nanosleep (); below.
39033    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39034    <limits.h> exists even on freestanding compilers.  */
39035
39036#ifdef __STDC__
39037# include <limits.h>
39038#else
39039# include <assert.h>
39040#endif
39041
39042#undef nanosleep
39043
39044/* Override any GCC internal prototype to avoid an error.
39045   Use char because int might match the return type of a GCC
39046   builtin and then its argument prototype would still apply.  */
39047#ifdef __cplusplus
39048extern "C"
39049#endif
39050char nanosleep ();
39051/* The GNU C library defines this for functions which it implements
39052    to always fail with ENOSYS.  Some functions are actually named
39053    something starting with __ and the normal name is an alias.  */
39054#if defined __stub_nanosleep || defined __stub___nanosleep
39055choke me
39056#endif
39057
39058int
39059main ()
39060{
39061return nanosleep ();
39062  ;
39063  return 0;
39064}
39065_ACEOF
39066rm -f conftest.$ac_objext conftest$ac_exeext
39067if { (ac_try="$ac_link"
39068case "(($ac_try" in
39069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39070  *) ac_try_echo=$ac_try;;
39071esac
39072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39073  (eval "$ac_link") 2>conftest.er1
39074  ac_status=$?
39075  grep -v '^ *+' conftest.er1 >conftest.err
39076  rm -f conftest.er1
39077  cat conftest.err >&5
39078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39079  (exit $ac_status); } && {
39080	 test -z "$ac_c_werror_flag" ||
39081	 test ! -s conftest.err
39082       } && test -s conftest$ac_exeext &&
39083       $as_test_x conftest$ac_exeext; then
39084  ac_cv_func_nanosleep=yes
39085else
39086  echo "$as_me: failed program was:" >&5
39087sed 's/^/| /' conftest.$ac_ext >&5
39088
39089	ac_cv_func_nanosleep=no
39090fi
39091
39092rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39093      conftest$ac_exeext conftest.$ac_ext
39094fi
39095{ echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
39096echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; }
39097if test $ac_cv_func_nanosleep = yes; then
39098  :
39099else
39100  { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
39101echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
39102if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
39103  echo $ECHO_N "(cached) $ECHO_C" >&6
39104else
39105  ac_check_lib_save_LIBS=$LIBS
39106LIBS="-lrt  $LIBS"
39107cat >conftest.$ac_ext <<_ACEOF
39108/* confdefs.h.  */
39109_ACEOF
39110cat confdefs.h >>conftest.$ac_ext
39111cat >>conftest.$ac_ext <<_ACEOF
39112/* end confdefs.h.  */
39113
39114/* Override any GCC internal prototype to avoid an error.
39115   Use char because int might match the return type of a GCC
39116   builtin and then its argument prototype would still apply.  */
39117#ifdef __cplusplus
39118extern "C"
39119#endif
39120char nanosleep ();
39121int
39122main ()
39123{
39124return nanosleep ();
39125  ;
39126  return 0;
39127}
39128_ACEOF
39129rm -f conftest.$ac_objext conftest$ac_exeext
39130if { (ac_try="$ac_link"
39131case "(($ac_try" in
39132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39133  *) ac_try_echo=$ac_try;;
39134esac
39135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39136  (eval "$ac_link") 2>conftest.er1
39137  ac_status=$?
39138  grep -v '^ *+' conftest.er1 >conftest.err
39139  rm -f conftest.er1
39140  cat conftest.err >&5
39141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39142  (exit $ac_status); } && {
39143	 test -z "$ac_c_werror_flag" ||
39144	 test ! -s conftest.err
39145       } && test -s conftest$ac_exeext &&
39146       $as_test_x conftest$ac_exeext; then
39147  ac_cv_lib_rt_nanosleep=yes
39148else
39149  echo "$as_me: failed program was:" >&5
39150sed 's/^/| /' conftest.$ac_ext >&5
39151
39152	ac_cv_lib_rt_nanosleep=no
39153fi
39154
39155rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39156      conftest$ac_exeext conftest.$ac_ext
39157LIBS=$ac_check_lib_save_LIBS
39158fi
39159{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
39160echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
39161if test $ac_cv_lib_rt_nanosleep = yes; then
39162  XEPHYR_LIBS="$XEPHYR_LIBS -lrt"
39163fi
39164
39165fi
39166
39167
39168    # damage shadow extension glx (NOTYET) fb mi
39169    KDRIVE_INC='-I$(top_srcdir)/hw/kdrive/src'
39170    KDRIVE_PURE_INCS="$KDRIVE_INC $MIEXT_SYNC_INC $MIEXT_DAMAGE_INC $MIEXT_SHADOW_INC $XEXT_INC $FB_INC $MI_INC"
39171    KDRIVE_OS_INC='-I$(top_srcdir)/hw/kdrive/linux'
39172    KDRIVE_INCS="$KDRIVE_PURE_INCS $KDRIVE_OS_INC"
39173
39174    KDRIVE_CFLAGS="$XSERVER_CFLAGS -DHAVE_KDRIVE_CONFIG_H $TSLIB_CFLAGS"
39175
39176    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"
39177    KDRIVE_LIB='$(top_builddir)/hw/kdrive/src/libkdrive.la'
39178    case $host_os in
39179	*linux*)
39180	    KDRIVE_OS_LIB='$(top_builddir)/hw/kdrive/linux/liblinux.la'
39181            KDRIVELINUX=yes
39182	    if test "x$KDRIVE_EVDEV" = xauto; then
39183		KDRIVE_EVDEV=yes
39184	    fi
39185	    if test "x$KDRIVE_KBD" = xauto; then
39186		KDRIVE_KBD=yes
39187	    fi
39188	    if test "x$KDRIVE_MOUSE" = xauto; then
39189		KDRIVE_MOUSE=yes
39190	    fi
39191	    ;;
39192	*)
39193	    if test "x$KDRIVE_EVDEV" = xauto; then
39194		KDRIVE_EVDEV=no
39195	    fi
39196	    if test "x$KDRIVE_KBD" = xauto; then
39197		KDRIVE_KBD=no
39198	    fi
39199	    if test "x$KDRIVE_MOUSE" = xauto; then
39200		KDRIVE_MOUSE=no
39201	    fi
39202	    ;;
39203    esac
39204    KDRIVE_STUB_LIB='$(top_builddir)/hw/kdrive/src/libkdrivestubs.la'
39205    KDRIVE_LOCAL_LIBS="$MAIN_LIB $DIX_LIB $KDRIVE_LIB $KDRIVE_STUB_LIB"
39206    KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $FB_LIB $MI_LIB $KDRIVE_PURE_LIBS"
39207    KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $KDRIVE_OS_LIB"
39208    KDRIVE_LIBS="$KDRIVE_LOCAL_LIBS $XSERVER_SYS_LIBS $GLX_SYS_LIBS $DLOPEN_LIBS $TSLIB_LIBS"
39209
39210
39211
39212fi
39213
39214
39215
39216
39217
39218
39219 if test "x$KDRIVELINUX" = xyes; then
39220  KDRIVELINUX_TRUE=
39221  KDRIVELINUX_FALSE='#'
39222else
39223  KDRIVELINUX_TRUE='#'
39224  KDRIVELINUX_FALSE=
39225fi
39226
39227 if test "x$KDRIVE_EVDEV" = xyes; then
39228  KDRIVE_EVDEV_TRUE=
39229  KDRIVE_EVDEV_FALSE='#'
39230else
39231  KDRIVE_EVDEV_TRUE='#'
39232  KDRIVE_EVDEV_FALSE=
39233fi
39234
39235 if test "x$KDRIVE_KBD" = xyes; then
39236  KDRIVE_KBD_TRUE=
39237  KDRIVE_KBD_FALSE='#'
39238else
39239  KDRIVE_KBD_TRUE='#'
39240  KDRIVE_KBD_FALSE=
39241fi
39242
39243 if test "x$KDRIVE_MOUSE" = xyes; then
39244  KDRIVE_MOUSE_TRUE=
39245  KDRIVE_MOUSE_FALSE='#'
39246else
39247  KDRIVE_MOUSE_TRUE='#'
39248  KDRIVE_MOUSE_FALSE=
39249fi
39250
39251 if test "x$HAVE_TSLIB" = xyes; then
39252  TSLIB_TRUE=
39253  TSLIB_FALSE='#'
39254else
39255  TSLIB_TRUE='#'
39256  TSLIB_FALSE=
39257fi
39258
39259 if test "x$XFBDEV" = xyes; then
39260  KDRIVEFBDEV_TRUE=
39261  KDRIVEFBDEV_FALSE='#'
39262else
39263  KDRIVEFBDEV_TRUE='#'
39264  KDRIVEFBDEV_FALSE=
39265fi
39266
39267 if test "x$KDRIVE" = xyes && test "x$XEPHYR" = xyes; then
39268  XEPHYR_TRUE=
39269  XEPHYR_FALSE='#'
39270else
39271  XEPHYR_TRUE='#'
39272  XEPHYR_FALSE=
39273fi
39274
39275 if test "x$KDRIVE" = xyes && test "x$KDRIVEFBDEVLIB" = xyes; then
39276  BUILD_KDRIVEFBDEVLIB_TRUE=
39277  BUILD_KDRIVEFBDEVLIB_FALSE='#'
39278else
39279  BUILD_KDRIVEFBDEVLIB_TRUE='#'
39280  BUILD_KDRIVEFBDEVLIB_FALSE=
39281fi
39282
39283 if test "x$KDRIVE" = xyes && test "x$XFAKE" = xyes; then
39284  XFAKESERVER_TRUE=
39285  XFAKESERVER_FALSE='#'
39286else
39287  XFAKESERVER_TRUE='#'
39288  XFAKESERVER_FALSE=
39289fi
39290
39291
39292
39293cat >conftest.$ac_ext <<_ACEOF
39294/* confdefs.h.  */
39295_ACEOF
39296cat confdefs.h >>conftest.$ac_ext
39297cat >>conftest.$ac_ext <<_ACEOF
39298/* end confdefs.h.  */
39299
39300#include <features.h>
39301#ifndef __GLIBC__
39302#error not glibc
39303#endif
39304
39305int
39306main ()
39307{
39308
39309  ;
39310  return 0;
39311}
39312_ACEOF
39313rm -f conftest.$ac_objext
39314if { (ac_try="$ac_compile"
39315case "(($ac_try" in
39316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39317  *) ac_try_echo=$ac_try;;
39318esac
39319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39320  (eval "$ac_compile") 2>conftest.er1
39321  ac_status=$?
39322  grep -v '^ *+' conftest.er1 >conftest.err
39323  rm -f conftest.er1
39324  cat conftest.err >&5
39325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39326  (exit $ac_status); } && {
39327	 test -z "$ac_c_werror_flag" ||
39328	 test ! -s conftest.err
39329       } && test -s conftest.$ac_objext; then
39330
39331cat >>confdefs.h <<\_ACEOF
39332#define _GNU_SOURCE 1
39333_ACEOF
39334
39335else
39336  echo "$as_me: failed program was:" >&5
39337sed 's/^/| /' conftest.$ac_ext >&5
39338
39339
39340fi
39341
39342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39343
39344
39345  prefix_NONE=
39346  exec_prefix_NONE=
39347  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
39348  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
39349  eval ac_define_dir="\"$prefix\""
39350  eval ac_define_dir="\"$ac_define_dir\""
39351  PROJECTROOT="$ac_define_dir"
39352
39353
39354cat >>confdefs.h <<_ACEOF
39355#define PROJECTROOT "$ac_define_dir"
39356_ACEOF
39357
39358  test "$prefix_NONE" && prefix=NONE
39359  test "$exec_prefix_NONE" && exec_prefix=NONE
39360
39361
39362
39363BUILD_DATE="`date +'%Y%m%d'`"
39364
39365BUILD_TIME="`date +'1%H%M%S'`"
39366
39367
39368DIX_CFLAGS="-DHAVE_DIX_CONFIG_H $XSERVER_CFLAGS"
39369
39370
39371
39372
39373
39374
39375
39376ac_config_commands="$ac_config_commands sdksyms"
39377
39378
39379ac_config_files="$ac_config_files Makefile glx/Makefile include/Makefile composite/Makefile damageext/Makefile dbe/Makefile dix/Makefile doc/Makefile doc/man/Makefile doc/xml/Makefile doc/xml/dtrace/Makefile doc/xml/xserver.ent 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/doc/devel/Makefile hw/xfree86/doc/man/Makefile hw/xfree86/doc/sgml/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/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/doc/doxygen.conf 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/xi1/Makefile test/xi2/Makefile xorg-server.pc"
39380
39381cat >confcache <<\_ACEOF
39382# This file is a shell script that caches the results of configure
39383# tests run on this system so they can be shared between configure
39384# scripts and configure runs, see configure's option --config-cache.
39385# It is not useful on other systems.  If it contains results you don't
39386# want to keep, you may remove or edit it.
39387#
39388# config.status only pays attention to the cache file if you give it
39389# the --recheck option to rerun configure.
39390#
39391# `ac_cv_env_foo' variables (set or unset) will be overridden when
39392# loading this file, other *unset* `ac_cv_foo' will be assigned the
39393# following values.
39394
39395_ACEOF
39396
39397# The following way of writing the cache mishandles newlines in values,
39398# but we know of no workaround that is simple, portable, and efficient.
39399# So, we kill variables containing newlines.
39400# Ultrix sh set writes to stderr and can't be redirected directly,
39401# and sets the high bit in the cache file unless we assign to the vars.
39402(
39403  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
39404    eval ac_val=\$$ac_var
39405    case $ac_val in #(
39406    *${as_nl}*)
39407      case $ac_var in #(
39408      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
39409echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
39410      esac
39411      case $ac_var in #(
39412      _ | IFS | as_nl) ;; #(
39413      *) $as_unset $ac_var ;;
39414      esac ;;
39415    esac
39416  done
39417
39418  (set) 2>&1 |
39419    case $as_nl`(ac_space=' '; set) 2>&1` in #(
39420    *${as_nl}ac_space=\ *)
39421      # `set' does not quote correctly, so add quotes (double-quote
39422      # substitution turns \\\\ into \\, and sed turns \\ into \).
39423      sed -n \
39424	"s/'/'\\\\''/g;
39425	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39426      ;; #(
39427    *)
39428      # `set' quotes correctly as required by POSIX, so do not add quotes.
39429      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
39430      ;;
39431    esac |
39432    sort
39433) |
39434  sed '
39435     /^ac_cv_env_/b end
39436     t clear
39437     :clear
39438     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39439     t end
39440     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39441     :end' >>confcache
39442if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
39443  if test -w "$cache_file"; then
39444    test "x$cache_file" != "x/dev/null" &&
39445      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
39446echo "$as_me: updating cache $cache_file" >&6;}
39447    cat confcache >$cache_file
39448  else
39449    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
39450echo "$as_me: not updating unwritable cache $cache_file" >&6;}
39451  fi
39452fi
39453rm -f confcache
39454
39455test "x$prefix" = xNONE && prefix=$ac_default_prefix
39456# Let make expand exec_prefix.
39457test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39458
39459DEFS=-DHAVE_CONFIG_H
39460
39461ac_libobjs=
39462ac_ltlibobjs=
39463for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39464  # 1. Remove the extension, and $U if already installed.
39465  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39466  ac_i=`echo "$ac_i" | sed "$ac_script"`
39467  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
39468  #    will be set to the directory where LIBOBJS objects are built.
39469  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
39470  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
39471done
39472LIBOBJS=$ac_libobjs
39473
39474LTLIBOBJS=$ac_ltlibobjs
39475
39476
39477if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
39478  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
39479Usually this means the macro was only invoked conditionally." >&5
39480echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
39481Usually this means the macro was only invoked conditionally." >&2;}
39482   { (exit 1); exit 1; }; }
39483fi
39484if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39485  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39486Usually this means the macro was only invoked conditionally." >&5
39487echo "$as_me: error: conditional \"AMDEP\" was never defined.
39488Usually this means the macro was only invoked conditionally." >&2;}
39489   { (exit 1); exit 1; }; }
39490fi
39491if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39492  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39493Usually this means the macro was only invoked conditionally." >&5
39494echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39495Usually this means the macro was only invoked conditionally." >&2;}
39496   { (exit 1); exit 1; }; }
39497fi
39498if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
39499  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOXYGEN\" was never defined.
39500Usually this means the macro was only invoked conditionally." >&5
39501echo "$as_me: error: conditional \"HAVE_DOXYGEN\" was never defined.
39502Usually this means the macro was only invoked conditionally." >&2;}
39503   { (exit 1); exit 1; }; }
39504fi
39505if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
39506  { { echo "$as_me:$LINENO: error: conditional \"HAVE_STYLESHEETS\" was never defined.
39507Usually this means the macro was only invoked conditionally." >&5
39508echo "$as_me: error: conditional \"HAVE_STYLESHEETS\" was never defined.
39509Usually this means the macro was only invoked conditionally." >&2;}
39510   { (exit 1); exit 1; }; }
39511fi
39512if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
39513  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
39514Usually this means the macro was only invoked conditionally." >&5
39515echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
39516Usually this means the macro was only invoked conditionally." >&2;}
39517   { (exit 1); exit 1; }; }
39518fi
39519if test -z "${XSERVER_DTRACE_TRUE}" && test -z "${XSERVER_DTRACE_FALSE}"; then
39520  { { echo "$as_me:$LINENO: error: conditional \"XSERVER_DTRACE\" was never defined.
39521Usually this means the macro was only invoked conditionally." >&5
39522echo "$as_me: error: conditional \"XSERVER_DTRACE\" was never defined.
39523Usually this means the macro was only invoked conditionally." >&2;}
39524   { (exit 1); exit 1; }; }
39525fi
39526if test -z "${SPECIAL_DTRACE_OBJECTS_TRUE}" && test -z "${SPECIAL_DTRACE_OBJECTS_FALSE}"; then
39527  { { echo "$as_me:$LINENO: error: conditional \"SPECIAL_DTRACE_OBJECTS\" was never defined.
39528Usually this means the macro was only invoked conditionally." >&5
39529echo "$as_me: error: conditional \"SPECIAL_DTRACE_OBJECTS\" was never defined.
39530Usually this means the macro was only invoked conditionally." >&2;}
39531   { (exit 1); exit 1; }; }
39532fi
39533if test -z "${NEED_STRLCAT_TRUE}" && test -z "${NEED_STRLCAT_FALSE}"; then
39534  { { echo "$as_me:$LINENO: error: conditional \"NEED_STRLCAT\" was never defined.
39535Usually this means the macro was only invoked conditionally." >&5
39536echo "$as_me: error: conditional \"NEED_STRLCAT\" was never defined.
39537Usually this means the macro was only invoked conditionally." >&2;}
39538   { (exit 1); exit 1; }; }
39539fi
39540if test -z "${NEED_VSNPRINTF_TRUE}" && test -z "${NEED_VSNPRINTF_FALSE}"; then
39541  { { echo "$as_me:$LINENO: error: conditional \"NEED_VSNPRINTF\" was never defined.
39542Usually this means the macro was only invoked conditionally." >&5
39543echo "$as_me: error: conditional \"NEED_VSNPRINTF\" was never defined.
39544Usually this means the macro was only invoked conditionally." >&2;}
39545   { (exit 1); exit 1; }; }
39546fi
39547if test -z "${AGP_TRUE}" && test -z "${AGP_FALSE}"; then
39548  { { echo "$as_me:$LINENO: error: conditional \"AGP\" was never defined.
39549Usually this means the macro was only invoked conditionally." >&5
39550echo "$as_me: error: conditional \"AGP\" was never defined.
39551Usually this means the macro was only invoked conditionally." >&2;}
39552   { (exit 1); exit 1; }; }
39553fi
39554if test -z "${LNXAPM_TRUE}" && test -z "${LNXAPM_FALSE}"; then
39555  { { echo "$as_me:$LINENO: error: conditional \"LNXAPM\" was never defined.
39556Usually this means the macro was only invoked conditionally." >&5
39557echo "$as_me: error: conditional \"LNXAPM\" was never defined.
39558Usually this means the macro was only invoked conditionally." >&2;}
39559   { (exit 1); exit 1; }; }
39560fi
39561if test -z "${FBDEVHW_TRUE}" && test -z "${FBDEVHW_FALSE}"; then
39562  { { echo "$as_me:$LINENO: error: conditional \"FBDEVHW\" was never defined.
39563Usually this means the macro was only invoked conditionally." >&5
39564echo "$as_me: error: conditional \"FBDEVHW\" was never defined.
39565Usually this means the macro was only invoked conditionally." >&2;}
39566   { (exit 1); exit 1; }; }
39567fi
39568if test -z "${FREEBSD_KLDLOAD_TRUE}" && test -z "${FREEBSD_KLDLOAD_FALSE}"; then
39569  { { echo "$as_me:$LINENO: error: conditional \"FREEBSD_KLDLOAD\" was never defined.
39570Usually this means the macro was only invoked conditionally." >&5
39571echo "$as_me: error: conditional \"FREEBSD_KLDLOAD\" was never defined.
39572Usually this means the macro was only invoked conditionally." >&2;}
39573   { (exit 1); exit 1; }; }
39574fi
39575if test -z "${BSD_APM_TRUE}" && test -z "${BSD_APM_FALSE}"; then
39576  { { echo "$as_me:$LINENO: error: conditional \"BSD_APM\" was never defined.
39577Usually this means the macro was only invoked conditionally." >&5
39578echo "$as_me: error: conditional \"BSD_APM\" was never defined.
39579Usually this means the macro was only invoked conditionally." >&2;}
39580   { (exit 1); exit 1; }; }
39581fi
39582if test -z "${BSD_KQUEUE_APM_TRUE}" && test -z "${BSD_KQUEUE_APM_FALSE}"; then
39583  { { echo "$as_me:$LINENO: error: conditional \"BSD_KQUEUE_APM\" was never defined.
39584Usually this means the macro was only invoked conditionally." >&5
39585echo "$as_me: error: conditional \"BSD_KQUEUE_APM\" was never defined.
39586Usually this means the macro was only invoked conditionally." >&2;}
39587   { (exit 1); exit 1; }; }
39588fi
39589if test -z "${ALPHA_VIDEO_TRUE}" && test -z "${ALPHA_VIDEO_FALSE}"; then
39590  { { echo "$as_me:$LINENO: error: conditional \"ALPHA_VIDEO\" was never defined.
39591Usually this means the macro was only invoked conditionally." >&5
39592echo "$as_me: error: conditional \"ALPHA_VIDEO\" was never defined.
39593Usually this means the macro was only invoked conditionally." >&2;}
39594   { (exit 1); exit 1; }; }
39595fi
39596if test -z "${ARM_VIDEO_TRUE}" && test -z "${ARM_VIDEO_FALSE}"; then
39597  { { echo "$as_me:$LINENO: error: conditional \"ARM_VIDEO\" was never defined.
39598Usually this means the macro was only invoked conditionally." >&5
39599echo "$as_me: error: conditional \"ARM_VIDEO\" was never defined.
39600Usually this means the macro was only invoked conditionally." >&2;}
39601   { (exit 1); exit 1; }; }
39602fi
39603if test -z "${I386_VIDEO_TRUE}" && test -z "${I386_VIDEO_FALSE}"; then
39604  { { echo "$as_me:$LINENO: error: conditional \"I386_VIDEO\" was never defined.
39605Usually this means the macro was only invoked conditionally." >&5
39606echo "$as_me: error: conditional \"I386_VIDEO\" was never defined.
39607Usually this means the macro was only invoked conditionally." >&2;}
39608   { (exit 1); exit 1; }; }
39609fi
39610if test -z "${PPC_VIDEO_TRUE}" && test -z "${PPC_VIDEO_FALSE}"; then
39611  { { echo "$as_me:$LINENO: error: conditional \"PPC_VIDEO\" was never defined.
39612Usually this means the macro was only invoked conditionally." >&5
39613echo "$as_me: error: conditional \"PPC_VIDEO\" was never defined.
39614Usually this means the macro was only invoked conditionally." >&2;}
39615   { (exit 1); exit 1; }; }
39616fi
39617if test -z "${SPARC64_VIDEO_TRUE}" && test -z "${SPARC64_VIDEO_FALSE}"; then
39618  { { echo "$as_me:$LINENO: error: conditional \"SPARC64_VIDEO\" was never defined.
39619Usually this means the macro was only invoked conditionally." >&5
39620echo "$as_me: error: conditional \"SPARC64_VIDEO\" was never defined.
39621Usually this means the macro was only invoked conditionally." >&2;}
39622   { (exit 1); exit 1; }; }
39623fi
39624if test -z "${INSTALL_SETUID_TRUE}" && test -z "${INSTALL_SETUID_FALSE}"; then
39625  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_SETUID\" was never defined.
39626Usually this means the macro was only invoked conditionally." >&5
39627echo "$as_me: error: conditional \"INSTALL_SETUID\" was never defined.
39628Usually this means the macro was only invoked conditionally." >&2;}
39629   { (exit 1); exit 1; }; }
39630fi
39631if test -z "${SECURE_RPC_TRUE}" && test -z "${SECURE_RPC_FALSE}"; then
39632  { { echo "$as_me:$LINENO: error: conditional \"SECURE_RPC\" was never defined.
39633Usually this means the macro was only invoked conditionally." >&5
39634echo "$as_me: error: conditional \"SECURE_RPC\" was never defined.
39635Usually this means the macro was only invoked conditionally." >&2;}
39636   { (exit 1); exit 1; }; }
39637fi
39638if test -z "${INT10_VM86_TRUE}" && test -z "${INT10_VM86_FALSE}"; then
39639  { { echo "$as_me:$LINENO: error: conditional \"INT10_VM86\" was never defined.
39640Usually this means the macro was only invoked conditionally." >&5
39641echo "$as_me: error: conditional \"INT10_VM86\" was never defined.
39642Usually this means the macro was only invoked conditionally." >&2;}
39643   { (exit 1); exit 1; }; }
39644fi
39645if test -z "${INT10_X86EMU_TRUE}" && test -z "${INT10_X86EMU_FALSE}"; then
39646  { { echo "$as_me:$LINENO: error: conditional \"INT10_X86EMU\" was never defined.
39647Usually this means the macro was only invoked conditionally." >&5
39648echo "$as_me: error: conditional \"INT10_X86EMU\" was never defined.
39649Usually this means the macro was only invoked conditionally." >&2;}
39650   { (exit 1); exit 1; }; }
39651fi
39652if test -z "${INT10_STUB_TRUE}" && test -z "${INT10_STUB_FALSE}"; then
39653  { { echo "$as_me:$LINENO: error: conditional \"INT10_STUB\" was never defined.
39654Usually this means the macro was only invoked conditionally." >&5
39655echo "$as_me: error: conditional \"INT10_STUB\" was never defined.
39656Usually this means the macro was only invoked conditionally." >&2;}
39657   { (exit 1); exit 1; }; }
39658fi
39659if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
39660  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DOCS\" was never defined.
39661Usually this means the macro was only invoked conditionally." >&5
39662echo "$as_me: error: conditional \"ENABLE_DOCS\" was never defined.
39663Usually this means the macro was only invoked conditionally." >&2;}
39664   { (exit 1); exit 1; }; }
39665fi
39666if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
39667  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DEVEL_DOCS\" was never defined.
39668Usually this means the macro was only invoked conditionally." >&5
39669echo "$as_me: error: conditional \"ENABLE_DEVEL_DOCS\" was never defined.
39670Usually this means the macro was only invoked conditionally." >&2;}
39671   { (exit 1); exit 1; }; }
39672fi
39673if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
39674  { { echo "$as_me:$LINENO: error: conditional \"HAVE_XMLTO_TEXT\" was never defined.
39675Usually this means the macro was only invoked conditionally." >&5
39676echo "$as_me: error: conditional \"HAVE_XMLTO_TEXT\" was never defined.
39677Usually this means the macro was only invoked conditionally." >&2;}
39678   { (exit 1); exit 1; }; }
39679fi
39680if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
39681  { { echo "$as_me:$LINENO: error: conditional \"HAVE_XMLTO\" was never defined.
39682Usually this means the macro was only invoked conditionally." >&5
39683echo "$as_me: error: conditional \"HAVE_XMLTO\" was never defined.
39684Usually this means the macro was only invoked conditionally." >&2;}
39685   { (exit 1); exit 1; }; }
39686fi
39687if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
39688  { { echo "$as_me:$LINENO: error: conditional \"HAVE_FOP\" was never defined.
39689Usually this means the macro was only invoked conditionally." >&5
39690echo "$as_me: error: conditional \"HAVE_FOP\" was never defined.
39691Usually this means the macro was only invoked conditionally." >&2;}
39692   { (exit 1); exit 1; }; }
39693fi
39694if test -z "${INSTALL_LIBXF86CONFIG_TRUE}" && test -z "${INSTALL_LIBXF86CONFIG_FALSE}"; then
39695  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBXF86CONFIG\" was never defined.
39696Usually this means the macro was only invoked conditionally." >&5
39697echo "$as_me: error: conditional \"INSTALL_LIBXF86CONFIG\" was never defined.
39698Usually this means the macro was only invoked conditionally." >&2;}
39699   { (exit 1); exit 1; }; }
39700fi
39701if test -z "${CONFIG_UDEV_TRUE}" && test -z "${CONFIG_UDEV_FALSE}"; then
39702  { { echo "$as_me:$LINENO: error: conditional \"CONFIG_UDEV\" was never defined.
39703Usually this means the macro was only invoked conditionally." >&5
39704echo "$as_me: error: conditional \"CONFIG_UDEV\" was never defined.
39705Usually this means the macro was only invoked conditionally." >&2;}
39706   { (exit 1); exit 1; }; }
39707fi
39708if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then
39709  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DBUS\" was never defined.
39710Usually this means the macro was only invoked conditionally." >&5
39711echo "$as_me: error: conditional \"HAVE_DBUS\" was never defined.
39712Usually this means the macro was only invoked conditionally." >&2;}
39713   { (exit 1); exit 1; }; }
39714fi
39715if test -z "${CONFIG_DBUS_API_TRUE}" && test -z "${CONFIG_DBUS_API_FALSE}"; then
39716  { { echo "$as_me:$LINENO: error: conditional \"CONFIG_DBUS_API\" was never defined.
39717Usually this means the macro was only invoked conditionally." >&5
39718echo "$as_me: error: conditional \"CONFIG_DBUS_API\" was never defined.
39719Usually this means the macro was only invoked conditionally." >&2;}
39720   { (exit 1); exit 1; }; }
39721fi
39722if test -z "${CONFIG_HAL_TRUE}" && test -z "${CONFIG_HAL_FALSE}"; then
39723  { { echo "$as_me:$LINENO: error: conditional \"CONFIG_HAL\" was never defined.
39724Usually this means the macro was only invoked conditionally." >&5
39725echo "$as_me: error: conditional \"CONFIG_HAL\" was never defined.
39726Usually this means the macro was only invoked conditionally." >&2;}
39727   { (exit 1); exit 1; }; }
39728fi
39729if test -z "${CONFIG_NEED_DBUS_TRUE}" && test -z "${CONFIG_NEED_DBUS_FALSE}"; then
39730  { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NEED_DBUS\" was never defined.
39731Usually this means the macro was only invoked conditionally." >&5
39732echo "$as_me: error: conditional \"CONFIG_NEED_DBUS\" was never defined.
39733Usually this means the macro was only invoked conditionally." >&2;}
39734   { (exit 1); exit 1; }; }
39735fi
39736if test -z "${XV_TRUE}" && test -z "${XV_FALSE}"; then
39737  { { echo "$as_me:$LINENO: error: conditional \"XV\" was never defined.
39738Usually this means the macro was only invoked conditionally." >&5
39739echo "$as_me: error: conditional \"XV\" was never defined.
39740Usually this means the macro was only invoked conditionally." >&2;}
39741   { (exit 1); exit 1; }; }
39742fi
39743if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
39744  { { echo "$as_me:$LINENO: error: conditional \"XVMC\" was never defined.
39745Usually this means the macro was only invoked conditionally." >&5
39746echo "$as_me: error: conditional \"XVMC\" was never defined.
39747Usually this means the macro was only invoked conditionally." >&2;}
39748   { (exit 1); exit 1; }; }
39749fi
39750if test -z "${XREGISTRY_TRUE}" && test -z "${XREGISTRY_FALSE}"; then
39751  { { echo "$as_me:$LINENO: error: conditional \"XREGISTRY\" was never defined.
39752Usually this means the macro was only invoked conditionally." >&5
39753echo "$as_me: error: conditional \"XREGISTRY\" was never defined.
39754Usually this means the macro was only invoked conditionally." >&2;}
39755   { (exit 1); exit 1; }; }
39756fi
39757if test -z "${COMPOSITE_TRUE}" && test -z "${COMPOSITE_FALSE}"; then
39758  { { echo "$as_me:$LINENO: error: conditional \"COMPOSITE\" was never defined.
39759Usually this means the macro was only invoked conditionally." >&5
39760echo "$as_me: error: conditional \"COMPOSITE\" was never defined.
39761Usually this means the macro was only invoked conditionally." >&2;}
39762   { (exit 1); exit 1; }; }
39763fi
39764if test -z "${MITSHM_TRUE}" && test -z "${MITSHM_FALSE}"; then
39765  { { echo "$as_me:$LINENO: error: conditional \"MITSHM\" was never defined.
39766Usually this means the macro was only invoked conditionally." >&5
39767echo "$as_me: error: conditional \"MITSHM\" was never defined.
39768Usually this means the macro was only invoked conditionally." >&2;}
39769   { (exit 1); exit 1; }; }
39770fi
39771if test -z "${RECORD_TRUE}" && test -z "${RECORD_FALSE}"; then
39772  { { echo "$as_me:$LINENO: error: conditional \"RECORD\" was never defined.
39773Usually this means the macro was only invoked conditionally." >&5
39774echo "$as_me: error: conditional \"RECORD\" was never defined.
39775Usually this means the macro was only invoked conditionally." >&2;}
39776   { (exit 1); exit 1; }; }
39777fi
39778if test -z "${SCREENSAVER_TRUE}" && test -z "${SCREENSAVER_FALSE}"; then
39779  { { echo "$as_me:$LINENO: error: conditional \"SCREENSAVER\" was never defined.
39780Usually this means the macro was only invoked conditionally." >&5
39781echo "$as_me: error: conditional \"SCREENSAVER\" was never defined.
39782Usually this means the macro was only invoked conditionally." >&2;}
39783   { (exit 1); exit 1; }; }
39784fi
39785if test -z "${RES_TRUE}" && test -z "${RES_FALSE}"; then
39786  { { echo "$as_me:$LINENO: error: conditional \"RES\" was never defined.
39787Usually this means the macro was only invoked conditionally." >&5
39788echo "$as_me: error: conditional \"RES\" was never defined.
39789Usually this means the macro was only invoked conditionally." >&2;}
39790   { (exit 1); exit 1; }; }
39791fi
39792if test -z "${GLX_TRUE}" && test -z "${GLX_FALSE}"; then
39793  { { echo "$as_me:$LINENO: error: conditional \"GLX\" was never defined.
39794Usually this means the macro was only invoked conditionally." >&5
39795echo "$as_me: error: conditional \"GLX\" was never defined.
39796Usually this means the macro was only invoked conditionally." >&2;}
39797   { (exit 1); exit 1; }; }
39798fi
39799if test -z "${AIGLX_TRUE}" && test -z "${AIGLX_FALSE}"; then
39800  { { echo "$as_me:$LINENO: error: conditional \"AIGLX\" was never defined.
39801Usually this means the macro was only invoked conditionally." >&5
39802echo "$as_me: error: conditional \"AIGLX\" was never defined.
39803Usually this means the macro was only invoked conditionally." >&2;}
39804   { (exit 1); exit 1; }; }
39805fi
39806if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
39807  { { echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined.
39808Usually this means the macro was only invoked conditionally." >&5
39809echo "$as_me: error: conditional \"DRI\" was never defined.
39810Usually this means the macro was only invoked conditionally." >&2;}
39811   { (exit 1); exit 1; }; }
39812fi
39813if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then
39814  { { echo "$as_me:$LINENO: error: conditional \"DRI2\" was never defined.
39815Usually this means the macro was only invoked conditionally." >&5
39816echo "$as_me: error: conditional \"DRI2\" was never defined.
39817Usually this means the macro was only invoked conditionally." >&2;}
39818   { (exit 1); exit 1; }; }
39819fi
39820if test -z "${DRI2_AIGLX_TRUE}" && test -z "${DRI2_AIGLX_FALSE}"; then
39821  { { echo "$as_me:$LINENO: error: conditional \"DRI2_AIGLX\" was never defined.
39822Usually this means the macro was only invoked conditionally." >&5
39823echo "$as_me: error: conditional \"DRI2_AIGLX\" was never defined.
39824Usually this means the macro was only invoked conditionally." >&2;}
39825   { (exit 1); exit 1; }; }
39826fi
39827if test -z "${XINERAMA_TRUE}" && test -z "${XINERAMA_FALSE}"; then
39828  { { echo "$as_me:$LINENO: error: conditional \"XINERAMA\" was never defined.
39829Usually this means the macro was only invoked conditionally." >&5
39830echo "$as_me: error: conditional \"XINERAMA\" was never defined.
39831Usually this means the macro was only invoked conditionally." >&2;}
39832   { (exit 1); exit 1; }; }
39833fi
39834if test -z "${XACE_TRUE}" && test -z "${XACE_FALSE}"; then
39835  { { echo "$as_me:$LINENO: error: conditional \"XACE\" was never defined.
39836Usually this means the macro was only invoked conditionally." >&5
39837echo "$as_me: error: conditional \"XACE\" was never defined.
39838Usually this means the macro was only invoked conditionally." >&2;}
39839   { (exit 1); exit 1; }; }
39840fi
39841if test -z "${XSELINUX_TRUE}" && test -z "${XSELINUX_FALSE}"; then
39842  { { echo "$as_me:$LINENO: error: conditional \"XSELINUX\" was never defined.
39843Usually this means the macro was only invoked conditionally." >&5
39844echo "$as_me: error: conditional \"XSELINUX\" was never defined.
39845Usually this means the macro was only invoked conditionally." >&2;}
39846   { (exit 1); exit 1; }; }
39847fi
39848if test -z "${XCSECURITY_TRUE}" && test -z "${XCSECURITY_FALSE}"; then
39849  { { echo "$as_me:$LINENO: error: conditional \"XCSECURITY\" was never defined.
39850Usually this means the macro was only invoked conditionally." >&5
39851echo "$as_me: error: conditional \"XCSECURITY\" was never defined.
39852Usually this means the macro was only invoked conditionally." >&2;}
39853   { (exit 1); exit 1; }; }
39854fi
39855if test -z "${DBE_TRUE}" && test -z "${DBE_FALSE}"; then
39856  { { echo "$as_me:$LINENO: error: conditional \"DBE\" was never defined.
39857Usually this means the macro was only invoked conditionally." >&5
39858echo "$as_me: error: conditional \"DBE\" was never defined.
39859Usually this means the macro was only invoked conditionally." >&2;}
39860   { (exit 1); exit 1; }; }
39861fi
39862if test -z "${XF86BIGFONT_TRUE}" && test -z "${XF86BIGFONT_FALSE}"; then
39863  { { echo "$as_me:$LINENO: error: conditional \"XF86BIGFONT\" was never defined.
39864Usually this means the macro was only invoked conditionally." >&5
39865echo "$as_me: error: conditional \"XF86BIGFONT\" was never defined.
39866Usually this means the macro was only invoked conditionally." >&2;}
39867   { (exit 1); exit 1; }; }
39868fi
39869if test -z "${DPMSExtension_TRUE}" && test -z "${DPMSExtension_FALSE}"; then
39870  { { echo "$as_me:$LINENO: error: conditional \"DPMSExtension\" was never defined.
39871Usually this means the macro was only invoked conditionally." >&5
39872echo "$as_me: error: conditional \"DPMSExtension\" was never defined.
39873Usually this means the macro was only invoked conditionally." >&2;}
39874   { (exit 1); exit 1; }; }
39875fi
39876if test -z "${XCALIBRATE_TRUE}" && test -z "${XCALIBRATE_FALSE}"; then
39877  { { echo "$as_me:$LINENO: error: conditional \"XCALIBRATE\" was never defined.
39878Usually this means the macro was only invoked conditionally." >&5
39879echo "$as_me: error: conditional \"XCALIBRATE\" was never defined.
39880Usually this means the macro was only invoked conditionally." >&2;}
39881   { (exit 1); exit 1; }; }
39882fi
39883if test -z "${XF86UTILS_TRUE}" && test -z "${XF86UTILS_FALSE}"; then
39884  { { echo "$as_me:$LINENO: error: conditional \"XF86UTILS\" was never defined.
39885Usually this means the macro was only invoked conditionally." >&5
39886echo "$as_me: error: conditional \"XF86UTILS\" was never defined.
39887Usually this means the macro was only invoked conditionally." >&2;}
39888   { (exit 1); exit 1; }; }
39889fi
39890if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
39891  { { echo "$as_me:$LINENO: error: conditional \"XAA\" was never defined.
39892Usually this means the macro was only invoked conditionally." >&5
39893echo "$as_me: error: conditional \"XAA\" was never defined.
39894Usually this means the macro was only invoked conditionally." >&2;}
39895   { (exit 1); exit 1; }; }
39896fi
39897if test -z "${VGAHW_TRUE}" && test -z "${VGAHW_FALSE}"; then
39898  { { echo "$as_me:$LINENO: error: conditional \"VGAHW\" was never defined.
39899Usually this means the macro was only invoked conditionally." >&5
39900echo "$as_me: error: conditional \"VGAHW\" was never defined.
39901Usually this means the macro was only invoked conditionally." >&2;}
39902   { (exit 1); exit 1; }; }
39903fi
39904if test -z "${VBE_TRUE}" && test -z "${VBE_FALSE}"; then
39905  { { echo "$as_me:$LINENO: error: conditional \"VBE\" was never defined.
39906Usually this means the macro was only invoked conditionally." >&5
39907echo "$as_me: error: conditional \"VBE\" was never defined.
39908Usually this means the macro was only invoked conditionally." >&2;}
39909   { (exit 1); exit 1; }; }
39910fi
39911if test -z "${INT10MODULE_TRUE}" && test -z "${INT10MODULE_FALSE}"; then
39912  { { echo "$as_me:$LINENO: error: conditional \"INT10MODULE\" was never defined.
39913Usually this means the macro was only invoked conditionally." >&5
39914echo "$as_me: error: conditional \"INT10MODULE\" was never defined.
39915Usually this means the macro was only invoked conditionally." >&2;}
39916   { (exit 1); exit 1; }; }
39917fi
39918if test -z "${XDMCP_TRUE}" && test -z "${XDMCP_FALSE}"; then
39919  { { echo "$as_me:$LINENO: error: conditional \"XDMCP\" was never defined.
39920Usually this means the macro was only invoked conditionally." >&5
39921echo "$as_me: error: conditional \"XDMCP\" was never defined.
39922Usually this means the macro was only invoked conditionally." >&2;}
39923   { (exit 1); exit 1; }; }
39924fi
39925if test -z "${XDMAUTH_TRUE}" && test -z "${XDMAUTH_FALSE}"; then
39926  { { echo "$as_me:$LINENO: error: conditional \"XDMAUTH\" was never defined.
39927Usually this means the macro was only invoked conditionally." >&5
39928echo "$as_me: error: conditional \"XDMAUTH\" was never defined.
39929Usually this means the macro was only invoked conditionally." >&2;}
39930   { (exit 1); exit 1; }; }
39931fi
39932if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
39933  { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
39934Usually this means the macro was only invoked conditionally." >&5
39935echo "$as_me: error: conditional \"DEBUG\" was never defined.
39936Usually this means the macro was only invoked conditionally." >&2;}
39937   { (exit 1); exit 1; }; }
39938fi
39939if test -z "${UNITTESTS_TRUE}" && test -z "${UNITTESTS_FALSE}"; then
39940  { { echo "$as_me:$LINENO: error: conditional \"UNITTESTS\" was never defined.
39941Usually this means the macro was only invoked conditionally." >&5
39942echo "$as_me: error: conditional \"UNITTESTS\" was never defined.
39943Usually this means the macro was only invoked conditionally." >&2;}
39944   { (exit 1); exit 1; }; }
39945fi
39946if test -z "${XVFB_TRUE}" && test -z "${XVFB_FALSE}"; then
39947  { { echo "$as_me:$LINENO: error: conditional \"XVFB\" was never defined.
39948Usually this means the macro was only invoked conditionally." >&5
39949echo "$as_me: error: conditional \"XVFB\" was never defined.
39950Usually this means the macro was only invoked conditionally." >&2;}
39951   { (exit 1); exit 1; }; }
39952fi
39953if test -z "${XNEST_TRUE}" && test -z "${XNEST_FALSE}"; then
39954  { { echo "$as_me:$LINENO: error: conditional \"XNEST\" was never defined.
39955Usually this means the macro was only invoked conditionally." >&5
39956echo "$as_me: error: conditional \"XNEST\" was never defined.
39957Usually this means the macro was only invoked conditionally." >&2;}
39958   { (exit 1); exit 1; }; }
39959fi
39960if test -z "${XORG_TRUE}" && test -z "${XORG_FALSE}"; then
39961  { { echo "$as_me:$LINENO: error: conditional \"XORG\" was never defined.
39962Usually this means the macro was only invoked conditionally." >&5
39963echo "$as_me: error: conditional \"XORG\" was never defined.
39964Usually this means the macro was only invoked conditionally." >&2;}
39965   { (exit 1); exit 1; }; }
39966fi
39967if test -z "${XORG_BUS_LINUXPCI_TRUE}" && test -z "${XORG_BUS_LINUXPCI_FALSE}"; then
39968  { { echo "$as_me:$LINENO: error: conditional \"XORG_BUS_LINUXPCI\" was never defined.
39969Usually this means the macro was only invoked conditionally." >&5
39970echo "$as_me: error: conditional \"XORG_BUS_LINUXPCI\" was never defined.
39971Usually this means the macro was only invoked conditionally." >&2;}
39972   { (exit 1); exit 1; }; }
39973fi
39974if test -z "${XORG_BUS_BSDPCI_TRUE}" && test -z "${XORG_BUS_BSDPCI_FALSE}"; then
39975  { { echo "$as_me:$LINENO: error: conditional \"XORG_BUS_BSDPCI\" was never defined.
39976Usually this means the macro was only invoked conditionally." >&5
39977echo "$as_me: error: conditional \"XORG_BUS_BSDPCI\" was never defined.
39978Usually this means the macro was only invoked conditionally." >&2;}
39979   { (exit 1); exit 1; }; }
39980fi
39981if test -z "${XORG_BUS_SPARC_TRUE}" && test -z "${XORG_BUS_SPARC_FALSE}"; then
39982  { { echo "$as_me:$LINENO: error: conditional \"XORG_BUS_SPARC\" was never defined.
39983Usually this means the macro was only invoked conditionally." >&5
39984echo "$as_me: error: conditional \"XORG_BUS_SPARC\" was never defined.
39985Usually this means the macro was only invoked conditionally." >&2;}
39986   { (exit 1); exit 1; }; }
39987fi
39988if test -z "${LINUX_IA64_TRUE}" && test -z "${LINUX_IA64_FALSE}"; then
39989  { { echo "$as_me:$LINENO: error: conditional \"LINUX_IA64\" was never defined.
39990Usually this means the macro was only invoked conditionally." >&5
39991echo "$as_me: error: conditional \"LINUX_IA64\" was never defined.
39992Usually this means the macro was only invoked conditionally." >&2;}
39993   { (exit 1); exit 1; }; }
39994fi
39995if test -z "${LINUX_ALPHA_TRUE}" && test -z "${LINUX_ALPHA_FALSE}"; then
39996  { { echo "$as_me:$LINENO: error: conditional \"LINUX_ALPHA\" was never defined.
39997Usually this means the macro was only invoked conditionally." >&5
39998echo "$as_me: error: conditional \"LINUX_ALPHA\" was never defined.
39999Usually this means the macro was only invoked conditionally." >&2;}
40000   { (exit 1); exit 1; }; }
40001fi
40002if test -z "${LNXACPI_TRUE}" && test -z "${LNXACPI_FALSE}"; then
40003  { { echo "$as_me:$LINENO: error: conditional \"LNXACPI\" was never defined.
40004Usually this means the macro was only invoked conditionally." >&5
40005echo "$as_me: error: conditional \"LNXACPI\" was never defined.
40006Usually this means the macro was only invoked conditionally." >&2;}
40007   { (exit 1); exit 1; }; }
40008fi
40009if test -z "${SOLARIS_ASM_INLINE_TRUE}" && test -z "${SOLARIS_ASM_INLINE_FALSE}"; then
40010  { { echo "$as_me:$LINENO: error: conditional \"SOLARIS_ASM_INLINE\" was never defined.
40011Usually this means the macro was only invoked conditionally." >&5
40012echo "$as_me: error: conditional \"SOLARIS_ASM_INLINE\" was never defined.
40013Usually this means the macro was only invoked conditionally." >&2;}
40014   { (exit 1); exit 1; }; }
40015fi
40016if test -z "${SOLARIS_VT_TRUE}" && test -z "${SOLARIS_VT_FALSE}"; then
40017  { { echo "$as_me:$LINENO: error: conditional \"SOLARIS_VT\" was never defined.
40018Usually this means the macro was only invoked conditionally." >&5
40019echo "$as_me: error: conditional \"SOLARIS_VT\" was never defined.
40020Usually this means the macro was only invoked conditionally." >&2;}
40021   { (exit 1); exit 1; }; }
40022fi
40023if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then
40024  { { echo "$as_me:$LINENO: error: conditional \"DGA\" was never defined.
40025Usually this means the macro was only invoked conditionally." >&5
40026echo "$as_me: error: conditional \"DGA\" was never defined.
40027Usually this means the macro was only invoked conditionally." >&2;}
40028   { (exit 1); exit 1; }; }
40029fi
40030if test -z "${XF86VIDMODE_TRUE}" && test -z "${XF86VIDMODE_FALSE}"; then
40031  { { echo "$as_me:$LINENO: error: conditional \"XF86VIDMODE\" was never defined.
40032Usually this means the macro was only invoked conditionally." >&5
40033echo "$as_me: error: conditional \"XF86VIDMODE\" was never defined.
40034Usually this means the macro was only invoked conditionally." >&2;}
40035   { (exit 1); exit 1; }; }
40036fi
40037if test -z "${XWIN_TRUE}" && test -z "${XWIN_FALSE}"; then
40038  { { echo "$as_me:$LINENO: error: conditional \"XWIN\" was never defined.
40039Usually this means the macro was only invoked conditionally." >&5
40040echo "$as_me: error: conditional \"XWIN\" was never defined.
40041Usually this means the macro was only invoked conditionally." >&2;}
40042   { (exit 1); exit 1; }; }
40043fi
40044if test -z "${XWIN_MULTIWINDOW_TRUE}" && test -z "${XWIN_MULTIWINDOW_FALSE}"; then
40045  { { echo "$as_me:$LINENO: error: conditional \"XWIN_MULTIWINDOW\" was never defined.
40046Usually this means the macro was only invoked conditionally." >&5
40047echo "$as_me: error: conditional \"XWIN_MULTIWINDOW\" was never defined.
40048Usually this means the macro was only invoked conditionally." >&2;}
40049   { (exit 1); exit 1; }; }
40050fi
40051if test -z "${XWIN_MULTIWINDOWEXTWM_TRUE}" && test -z "${XWIN_MULTIWINDOWEXTWM_FALSE}"; then
40052  { { echo "$as_me:$LINENO: error: conditional \"XWIN_MULTIWINDOWEXTWM\" was never defined.
40053Usually this means the macro was only invoked conditionally." >&5
40054echo "$as_me: error: conditional \"XWIN_MULTIWINDOWEXTWM\" was never defined.
40055Usually this means the macro was only invoked conditionally." >&2;}
40056   { (exit 1); exit 1; }; }
40057fi
40058if test -z "${XWIN_CLIPBOARD_TRUE}" && test -z "${XWIN_CLIPBOARD_FALSE}"; then
40059  { { echo "$as_me:$LINENO: error: conditional \"XWIN_CLIPBOARD\" was never defined.
40060Usually this means the macro was only invoked conditionally." >&5
40061echo "$as_me: error: conditional \"XWIN_CLIPBOARD\" was never defined.
40062Usually this means the macro was only invoked conditionally." >&2;}
40063   { (exit 1); exit 1; }; }
40064fi
40065if test -z "${XWIN_GLX_WINDOWS_TRUE}" && test -z "${XWIN_GLX_WINDOWS_FALSE}"; then
40066  { { echo "$as_me:$LINENO: error: conditional \"XWIN_GLX_WINDOWS\" was never defined.
40067Usually this means the macro was only invoked conditionally." >&5
40068echo "$as_me: error: conditional \"XWIN_GLX_WINDOWS\" was never defined.
40069Usually this means the macro was only invoked conditionally." >&2;}
40070   { (exit 1); exit 1; }; }
40071fi
40072if test -z "${XWIN_NATIVEGDI_TRUE}" && test -z "${XWIN_NATIVEGDI_FALSE}"; then
40073  { { echo "$as_me:$LINENO: error: conditional \"XWIN_NATIVEGDI\" was never defined.
40074Usually this means the macro was only invoked conditionally." >&5
40075echo "$as_me: error: conditional \"XWIN_NATIVEGDI\" was never defined.
40076Usually this means the macro was only invoked conditionally." >&2;}
40077   { (exit 1); exit 1; }; }
40078fi
40079if test -z "${XWIN_PRIMARYFB_TRUE}" && test -z "${XWIN_PRIMARYFB_FALSE}"; then
40080  { { echo "$as_me:$LINENO: error: conditional \"XWIN_PRIMARYFB\" was never defined.
40081Usually this means the macro was only invoked conditionally." >&5
40082echo "$as_me: error: conditional \"XWIN_PRIMARYFB\" was never defined.
40083Usually this means the macro was only invoked conditionally." >&2;}
40084   { (exit 1); exit 1; }; }
40085fi
40086if test -z "${XWIN_RANDR_TRUE}" && test -z "${XWIN_RANDR_FALSE}"; then
40087  { { echo "$as_me:$LINENO: error: conditional \"XWIN_RANDR\" was never defined.
40088Usually this means the macro was only invoked conditionally." >&5
40089echo "$as_me: error: conditional \"XWIN_RANDR\" was never defined.
40090Usually this means the macro was only invoked conditionally." >&2;}
40091   { (exit 1); exit 1; }; }
40092fi
40093if test -z "${XWIN_XV_TRUE}" && test -z "${XWIN_XV_FALSE}"; then
40094  { { echo "$as_me:$LINENO: error: conditional \"XWIN_XV\" was never defined.
40095Usually this means the macro was only invoked conditionally." >&5
40096echo "$as_me: error: conditional \"XWIN_XV\" was never defined.
40097Usually this means the macro was only invoked conditionally." >&2;}
40098   { (exit 1); exit 1; }; }
40099fi
40100if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
40101  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
40102Usually this means the macro was only invoked conditionally." >&5
40103echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
40104Usually this means the macro was only invoked conditionally." >&2;}
40105   { (exit 1); exit 1; }; }
40106fi
40107if test -z "${XQUARTZ_TRUE}" && test -z "${XQUARTZ_FALSE}"; then
40108  { { echo "$as_me:$LINENO: error: conditional \"XQUARTZ\" was never defined.
40109Usually this means the macro was only invoked conditionally." >&5
40110echo "$as_me: error: conditional \"XQUARTZ\" was never defined.
40111Usually this means the macro was only invoked conditionally." >&2;}
40112   { (exit 1); exit 1; }; }
40113fi
40114if test -z "${XQUARTZ_SPARKLE_TRUE}" && test -z "${XQUARTZ_SPARKLE_FALSE}"; then
40115  { { echo "$as_me:$LINENO: error: conditional \"XQUARTZ_SPARKLE\" was never defined.
40116Usually this means the macro was only invoked conditionally." >&5
40117echo "$as_me: error: conditional \"XQUARTZ_SPARKLE\" was never defined.
40118Usually this means the macro was only invoked conditionally." >&2;}
40119   { (exit 1); exit 1; }; }
40120fi
40121if test -z "${STANDALONE_XPBPROXY_TRUE}" && test -z "${STANDALONE_XPBPROXY_FALSE}"; then
40122  { { echo "$as_me:$LINENO: error: conditional \"STANDALONE_XPBPROXY\" was never defined.
40123Usually this means the macro was only invoked conditionally." >&5
40124echo "$as_me: error: conditional \"STANDALONE_XPBPROXY\" was never defined.
40125Usually this means the macro was only invoked conditionally." >&2;}
40126   { (exit 1); exit 1; }; }
40127fi
40128if test -z "${DMX_TRUE}" && test -z "${DMX_FALSE}"; then
40129  { { echo "$as_me:$LINENO: error: conditional \"DMX\" was never defined.
40130Usually this means the macro was only invoked conditionally." >&5
40131echo "$as_me: error: conditional \"DMX\" was never defined.
40132Usually this means the macro was only invoked conditionally." >&2;}
40133   { (exit 1); exit 1; }; }
40134fi
40135if test -z "${DMX_BUILD_LNX_TRUE}" && test -z "${DMX_BUILD_LNX_FALSE}"; then
40136  { { echo "$as_me:$LINENO: error: conditional \"DMX_BUILD_LNX\" was never defined.
40137Usually this means the macro was only invoked conditionally." >&5
40138echo "$as_me: error: conditional \"DMX_BUILD_LNX\" was never defined.
40139Usually this means the macro was only invoked conditionally." >&2;}
40140   { (exit 1); exit 1; }; }
40141fi
40142if test -z "${DMX_BUILD_USB_TRUE}" && test -z "${DMX_BUILD_USB_FALSE}"; then
40143  { { echo "$as_me:$LINENO: error: conditional \"DMX_BUILD_USB\" was never defined.
40144Usually this means the macro was only invoked conditionally." >&5
40145echo "$as_me: error: conditional \"DMX_BUILD_USB\" was never defined.
40146Usually this means the macro was only invoked conditionally." >&2;}
40147   { (exit 1); exit 1; }; }
40148fi
40149if test -z "${KDRIVE_TRUE}" && test -z "${KDRIVE_FALSE}"; then
40150  { { echo "$as_me:$LINENO: error: conditional \"KDRIVE\" was never defined.
40151Usually this means the macro was only invoked conditionally." >&5
40152echo "$as_me: error: conditional \"KDRIVE\" was never defined.
40153Usually this means the macro was only invoked conditionally." >&2;}
40154   { (exit 1); exit 1; }; }
40155fi
40156if test -z "${KDRIVELINUX_TRUE}" && test -z "${KDRIVELINUX_FALSE}"; then
40157  { { echo "$as_me:$LINENO: error: conditional \"KDRIVELINUX\" was never defined.
40158Usually this means the macro was only invoked conditionally." >&5
40159echo "$as_me: error: conditional \"KDRIVELINUX\" was never defined.
40160Usually this means the macro was only invoked conditionally." >&2;}
40161   { (exit 1); exit 1; }; }
40162fi
40163if test -z "${KDRIVE_EVDEV_TRUE}" && test -z "${KDRIVE_EVDEV_FALSE}"; then
40164  { { echo "$as_me:$LINENO: error: conditional \"KDRIVE_EVDEV\" was never defined.
40165Usually this means the macro was only invoked conditionally." >&5
40166echo "$as_me: error: conditional \"KDRIVE_EVDEV\" was never defined.
40167Usually this means the macro was only invoked conditionally." >&2;}
40168   { (exit 1); exit 1; }; }
40169fi
40170if test -z "${KDRIVE_KBD_TRUE}" && test -z "${KDRIVE_KBD_FALSE}"; then
40171  { { echo "$as_me:$LINENO: error: conditional \"KDRIVE_KBD\" was never defined.
40172Usually this means the macro was only invoked conditionally." >&5
40173echo "$as_me: error: conditional \"KDRIVE_KBD\" was never defined.
40174Usually this means the macro was only invoked conditionally." >&2;}
40175   { (exit 1); exit 1; }; }
40176fi
40177if test -z "${KDRIVE_MOUSE_TRUE}" && test -z "${KDRIVE_MOUSE_FALSE}"; then
40178  { { echo "$as_me:$LINENO: error: conditional \"KDRIVE_MOUSE\" was never defined.
40179Usually this means the macro was only invoked conditionally." >&5
40180echo "$as_me: error: conditional \"KDRIVE_MOUSE\" was never defined.
40181Usually this means the macro was only invoked conditionally." >&2;}
40182   { (exit 1); exit 1; }; }
40183fi
40184if test -z "${TSLIB_TRUE}" && test -z "${TSLIB_FALSE}"; then
40185  { { echo "$as_me:$LINENO: error: conditional \"TSLIB\" was never defined.
40186Usually this means the macro was only invoked conditionally." >&5
40187echo "$as_me: error: conditional \"TSLIB\" was never defined.
40188Usually this means the macro was only invoked conditionally." >&2;}
40189   { (exit 1); exit 1; }; }
40190fi
40191if test -z "${KDRIVEFBDEV_TRUE}" && test -z "${KDRIVEFBDEV_FALSE}"; then
40192  { { echo "$as_me:$LINENO: error: conditional \"KDRIVEFBDEV\" was never defined.
40193Usually this means the macro was only invoked conditionally." >&5
40194echo "$as_me: error: conditional \"KDRIVEFBDEV\" was never defined.
40195Usually this means the macro was only invoked conditionally." >&2;}
40196   { (exit 1); exit 1; }; }
40197fi
40198if test -z "${XEPHYR_TRUE}" && test -z "${XEPHYR_FALSE}"; then
40199  { { echo "$as_me:$LINENO: error: conditional \"XEPHYR\" was never defined.
40200Usually this means the macro was only invoked conditionally." >&5
40201echo "$as_me: error: conditional \"XEPHYR\" was never defined.
40202Usually this means the macro was only invoked conditionally." >&2;}
40203   { (exit 1); exit 1; }; }
40204fi
40205if test -z "${BUILD_KDRIVEFBDEVLIB_TRUE}" && test -z "${BUILD_KDRIVEFBDEVLIB_FALSE}"; then
40206  { { echo "$as_me:$LINENO: error: conditional \"BUILD_KDRIVEFBDEVLIB\" was never defined.
40207Usually this means the macro was only invoked conditionally." >&5
40208echo "$as_me: error: conditional \"BUILD_KDRIVEFBDEVLIB\" was never defined.
40209Usually this means the macro was only invoked conditionally." >&2;}
40210   { (exit 1); exit 1; }; }
40211fi
40212if test -z "${XFAKESERVER_TRUE}" && test -z "${XFAKESERVER_FALSE}"; then
40213  { { echo "$as_me:$LINENO: error: conditional \"XFAKESERVER\" was never defined.
40214Usually this means the macro was only invoked conditionally." >&5
40215echo "$as_me: error: conditional \"XFAKESERVER\" was never defined.
40216Usually this means the macro was only invoked conditionally." >&2;}
40217   { (exit 1); exit 1; }; }
40218fi
40219
40220: ${CONFIG_STATUS=./config.status}
40221ac_clean_files_save=$ac_clean_files
40222ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40223{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40224echo "$as_me: creating $CONFIG_STATUS" >&6;}
40225cat >$CONFIG_STATUS <<_ACEOF
40226#! $SHELL
40227# Generated by $as_me.
40228# Run this file to recreate the current configuration.
40229# Compiler output produced by configure, useful for debugging
40230# configure, is in config.log if it exists.
40231
40232debug=false
40233ac_cs_recheck=false
40234ac_cs_silent=false
40235SHELL=\${CONFIG_SHELL-$SHELL}
40236_ACEOF
40237
40238cat >>$CONFIG_STATUS <<\_ACEOF
40239## --------------------- ##
40240## M4sh Initialization.  ##
40241## --------------------- ##
40242
40243# Be more Bourne compatible
40244DUALCASE=1; export DUALCASE # for MKS sh
40245if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40246  emulate sh
40247  NULLCMD=:
40248  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40249  # is contrary to our usage.  Disable this feature.
40250  alias -g '${1+"$@"}'='"$@"'
40251  setopt NO_GLOB_SUBST
40252else
40253  case `(set -o) 2>/dev/null` in
40254  *posix*) set -o posix ;;
40255esac
40256
40257fi
40258
40259
40260
40261
40262# PATH needs CR
40263# Avoid depending upon Character Ranges.
40264as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40265as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40266as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40267as_cr_digits='0123456789'
40268as_cr_alnum=$as_cr_Letters$as_cr_digits
40269
40270# The user is always right.
40271if test "${PATH_SEPARATOR+set}" != set; then
40272  echo "#! /bin/sh" >conf$$.sh
40273  echo  "exit 0"   >>conf$$.sh
40274  chmod +x conf$$.sh
40275  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40276    PATH_SEPARATOR=';'
40277  else
40278    PATH_SEPARATOR=:
40279  fi
40280  rm -f conf$$.sh
40281fi
40282
40283# Support unset when possible.
40284if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
40285  as_unset=unset
40286else
40287  as_unset=false
40288fi
40289
40290
40291# IFS
40292# We need space, tab and new line, in precisely that order.  Quoting is
40293# there to prevent editors from complaining about space-tab.
40294# (If _AS_PATH_WALK were called with IFS unset, it would disable word
40295# splitting by setting IFS to empty value.)
40296as_nl='
40297'
40298IFS=" ""	$as_nl"
40299
40300# Find who we are.  Look in the path if we contain no directory separator.
40301case $0 in
40302  *[\\/]* ) as_myself=$0 ;;
40303  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40304for as_dir in $PATH
40305do
40306  IFS=$as_save_IFS
40307  test -z "$as_dir" && as_dir=.
40308  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
40309done
40310IFS=$as_save_IFS
40311
40312     ;;
40313esac
40314# We did not find ourselves, most probably we were run as `sh COMMAND'
40315# in which case we are not to be found in the path.
40316if test "x$as_myself" = x; then
40317  as_myself=$0
40318fi
40319if test ! -f "$as_myself"; then
40320  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
40321  { (exit 1); exit 1; }
40322fi
40323
40324# Work around bugs in pre-3.0 UWIN ksh.
40325for as_var in ENV MAIL MAILPATH
40326do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
40327done
40328PS1='$ '
40329PS2='> '
40330PS4='+ '
40331
40332# NLS nuisances.
40333for as_var in \
40334  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40335  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40336  LC_TELEPHONE LC_TIME
40337do
40338  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
40339    eval $as_var=C; export $as_var
40340  else
40341    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
40342  fi
40343done
40344
40345# Required to use basename.
40346if expr a : '\(a\)' >/dev/null 2>&1 &&
40347   test "X`expr 00001 : '.*\(...\)'`" = X001; then
40348  as_expr=expr
40349else
40350  as_expr=false
40351fi
40352
40353if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
40354  as_basename=basename
40355else
40356  as_basename=false
40357fi
40358
40359
40360# Name of the executable.
40361as_me=`$as_basename -- "$0" ||
40362$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40363	 X"$0" : 'X\(//\)$' \| \
40364	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
40365echo X/"$0" |
40366    sed '/^.*\/\([^/][^/]*\)\/*$/{
40367	    s//\1/
40368	    q
40369	  }
40370	  /^X\/\(\/\/\)$/{
40371	    s//\1/
40372	    q
40373	  }
40374	  /^X\/\(\/\).*/{
40375	    s//\1/
40376	    q
40377	  }
40378	  s/.*/./; q'`
40379
40380# CDPATH.
40381$as_unset CDPATH
40382
40383
40384
40385  as_lineno_1=$LINENO
40386  as_lineno_2=$LINENO
40387  test "x$as_lineno_1" != "x$as_lineno_2" &&
40388  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
40389
40390  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
40391  # uniformly replaced by the line number.  The first 'sed' inserts a
40392  # line-number line after each line using $LINENO; the second 'sed'
40393  # does the real work.  The second script uses 'N' to pair each
40394  # line-number line with the line containing $LINENO, and appends
40395  # trailing '-' during substitution so that $LINENO is not a special
40396  # case at line end.
40397  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
40398  # scripts with optimization help from Paolo Bonzini.  Blame Lee
40399  # E. McMahon (1931-1989) for sed's syntax.  :-)
40400  sed -n '
40401    p
40402    /[$]LINENO/=
40403  ' <$as_myself |
40404    sed '
40405      s/[$]LINENO.*/&-/
40406      t lineno
40407      b
40408      :lineno
40409      N
40410      :loop
40411      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
40412      t loop
40413      s/-\n.*//
40414    ' >$as_me.lineno &&
40415  chmod +x "$as_me.lineno" ||
40416    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
40417   { (exit 1); exit 1; }; }
40418
40419  # Don't try to exec as it changes $[0], causing all sort of problems
40420  # (the dirname of $[0] is not the place where we might find the
40421  # original and so on.  Autoconf is especially sensitive to this).
40422  . "./$as_me.lineno"
40423  # Exit status is that of the last command.
40424  exit
40425}
40426
40427
40428if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
40429  as_dirname=dirname
40430else
40431  as_dirname=false
40432fi
40433
40434ECHO_C= ECHO_N= ECHO_T=
40435case `echo -n x` in
40436-n*)
40437  case `echo 'x\c'` in
40438  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
40439  *)   ECHO_C='\c';;
40440  esac;;
40441*)
40442  ECHO_N='-n';;
40443esac
40444
40445if expr a : '\(a\)' >/dev/null 2>&1 &&
40446   test "X`expr 00001 : '.*\(...\)'`" = X001; then
40447  as_expr=expr
40448else
40449  as_expr=false
40450fi
40451
40452rm -f conf$$ conf$$.exe conf$$.file
40453if test -d conf$$.dir; then
40454  rm -f conf$$.dir/conf$$.file
40455else
40456  rm -f conf$$.dir
40457  mkdir conf$$.dir
40458fi
40459echo >conf$$.file
40460if ln -s conf$$.file conf$$ 2>/dev/null; then
40461  as_ln_s='ln -s'
40462  # ... but there are two gotchas:
40463  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
40464  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
40465  # In both cases, we have to default to `cp -p'.
40466  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
40467    as_ln_s='cp -p'
40468elif ln conf$$.file conf$$ 2>/dev/null; then
40469  as_ln_s=ln
40470else
40471  as_ln_s='cp -p'
40472fi
40473rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
40474rmdir conf$$.dir 2>/dev/null
40475
40476if mkdir -p . 2>/dev/null; then
40477  as_mkdir_p=:
40478else
40479  test -d ./-p && rmdir ./-p
40480  as_mkdir_p=false
40481fi
40482
40483if test -x / >/dev/null 2>&1; then
40484  as_test_x='test -x'
40485else
40486  if ls -dL / >/dev/null 2>&1; then
40487    as_ls_L_option=L
40488  else
40489    as_ls_L_option=
40490  fi
40491  as_test_x='
40492    eval sh -c '\''
40493      if test -d "$1"; then
40494        test -d "$1/.";
40495      else
40496	case $1 in
40497        -*)set "./$1";;
40498	esac;
40499	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
40500	???[sx]*):;;*)false;;esac;fi
40501    '\'' sh
40502  '
40503fi
40504as_executable_p=$as_test_x
40505
40506# Sed expression to map a string onto a valid CPP name.
40507as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
40508
40509# Sed expression to map a string onto a valid variable name.
40510as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
40511
40512
40513exec 6>&1
40514
40515# Save the log message, to keep $[0] and so on meaningful, and to
40516# report actual input values of CONFIG_FILES etc. instead of their
40517# values after options handling.
40518ac_log="
40519This file was extended by xorg-server $as_me 1.10.6, which was
40520generated by GNU Autoconf 2.61.  Invocation command line was
40521
40522  CONFIG_FILES    = $CONFIG_FILES
40523  CONFIG_HEADERS  = $CONFIG_HEADERS
40524  CONFIG_LINKS    = $CONFIG_LINKS
40525  CONFIG_COMMANDS = $CONFIG_COMMANDS
40526  $ $0 $@
40527
40528on `(hostname || uname -n) 2>/dev/null | sed 1q`
40529"
40530
40531_ACEOF
40532
40533cat >>$CONFIG_STATUS <<_ACEOF
40534# Files that config.status was made for.
40535config_files="$ac_config_files"
40536config_headers="$ac_config_headers"
40537config_commands="$ac_config_commands"
40538
40539_ACEOF
40540
40541cat >>$CONFIG_STATUS <<\_ACEOF
40542ac_cs_usage="\
40543\`$as_me' instantiates files from templates according to the
40544current configuration.
40545
40546Usage: $0 [OPTIONS] [FILE]...
40547
40548  -h, --help       print this help, then exit
40549  -V, --version    print version number and configuration settings, then exit
40550  -q, --quiet      do not print progress messages
40551  -d, --debug      don't remove temporary files
40552      --recheck    update $as_me by reconfiguring in the same conditions
40553  --file=FILE[:TEMPLATE]
40554		   instantiate the configuration file FILE
40555  --header=FILE[:TEMPLATE]
40556		   instantiate the configuration header FILE
40557
40558Configuration files:
40559$config_files
40560
40561Configuration headers:
40562$config_headers
40563
40564Configuration commands:
40565$config_commands
40566
40567Report bugs to <bug-autoconf@gnu.org>."
40568
40569_ACEOF
40570cat >>$CONFIG_STATUS <<_ACEOF
40571ac_cs_version="\\
40572xorg-server config.status 1.10.6
40573configured by $0, generated by GNU Autoconf 2.61,
40574  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
40575
40576Copyright (C) 2006 Free Software Foundation, Inc.
40577This config.status script is free software; the Free Software Foundation
40578gives unlimited permission to copy, distribute and modify it."
40579
40580ac_pwd='$ac_pwd'
40581srcdir='$srcdir'
40582INSTALL='$INSTALL'
40583MKDIR_P='$MKDIR_P'
40584_ACEOF
40585
40586cat >>$CONFIG_STATUS <<\_ACEOF
40587# If no file are specified by the user, then we need to provide default
40588# value.  By we need to know if files were specified by the user.
40589ac_need_defaults=:
40590while test $# != 0
40591do
40592  case $1 in
40593  --*=*)
40594    ac_option=`expr "X$1" : 'X\([^=]*\)='`
40595    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
40596    ac_shift=:
40597    ;;
40598  *)
40599    ac_option=$1
40600    ac_optarg=$2
40601    ac_shift=shift
40602    ;;
40603  esac
40604
40605  case $ac_option in
40606  # Handling of the options.
40607  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40608    ac_cs_recheck=: ;;
40609  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
40610    echo "$ac_cs_version"; exit ;;
40611  --debug | --debu | --deb | --de | --d | -d )
40612    debug=: ;;
40613  --file | --fil | --fi | --f )
40614    $ac_shift
40615    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
40616    ac_need_defaults=false;;
40617  --header | --heade | --head | --hea )
40618    $ac_shift
40619    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
40620    ac_need_defaults=false;;
40621  --he | --h)
40622    # Conflict between --help and --header
40623    { echo "$as_me: error: ambiguous option: $1
40624Try \`$0 --help' for more information." >&2
40625   { (exit 1); exit 1; }; };;
40626  --help | --hel | -h )
40627    echo "$ac_cs_usage"; exit ;;
40628  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40629  | -silent | --silent | --silen | --sile | --sil | --si | --s)
40630    ac_cs_silent=: ;;
40631
40632  # This is an error.
40633  -*) { echo "$as_me: error: unrecognized option: $1
40634Try \`$0 --help' for more information." >&2
40635   { (exit 1); exit 1; }; } ;;
40636
40637  *) ac_config_targets="$ac_config_targets $1"
40638     ac_need_defaults=false ;;
40639
40640  esac
40641  shift
40642done
40643
40644ac_configure_extra_args=
40645
40646if $ac_cs_silent; then
40647  exec 6>/dev/null
40648  ac_configure_extra_args="$ac_configure_extra_args --silent"
40649fi
40650
40651_ACEOF
40652cat >>$CONFIG_STATUS <<_ACEOF
40653if \$ac_cs_recheck; then
40654  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
40655  CONFIG_SHELL=$SHELL
40656  export CONFIG_SHELL
40657  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
40658fi
40659
40660_ACEOF
40661cat >>$CONFIG_STATUS <<\_ACEOF
40662exec 5>>config.log
40663{
40664  echo
40665  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40666## Running $as_me. ##
40667_ASBOX
40668  echo "$ac_log"
40669} >&5
40670
40671_ACEOF
40672cat >>$CONFIG_STATUS <<_ACEOF
40673#
40674# INIT-COMMANDS
40675#
40676AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
40677
40678
40679# The HP-UX ksh and POSIX shell print the target directory to stdout
40680# if CDPATH is set.
40681(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
40682
40683sed_quote_subst='$sed_quote_subst'
40684double_quote_subst='$double_quote_subst'
40685delay_variable_subst='$delay_variable_subst'
40686AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
40687DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
40688OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
40689enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
40690macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
40691macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
40692enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
40693pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
40694enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
40695SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
40696ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
40697host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
40698host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
40699host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
40700build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
40701build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
40702build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
40703SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
40704Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
40705GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
40706EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
40707FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
40708LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
40709NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
40710LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
40711max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
40712ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
40713exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
40714lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
40715lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
40716lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
40717reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
40718reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
40719deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
40720file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
40721AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
40722AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
40723STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
40724RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
40725old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
40726old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
40727old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
40728lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
40729CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
40730CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
40731compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
40732GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
40733lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
40734lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
40735lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
40736lt_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"`'
40737objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
40738MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
40739lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
40740lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
40741lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
40742lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
40743lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
40744need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
40745DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
40746NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
40747LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
40748OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
40749OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
40750libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
40751shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
40752extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
40753archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
40754enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
40755export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
40756whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
40757compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
40758old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
40759old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
40760archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
40761archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
40762module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
40763module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
40764with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
40765allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
40766no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
40767hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
40768hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
40769hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
40770hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
40771hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
40772hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
40773hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
40774hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
40775inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
40776link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
40777fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
40778always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
40779export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
40780exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
40781include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
40782prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
40783file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
40784variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
40785need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
40786need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
40787version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
40788runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
40789shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
40790shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
40791libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
40792library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
40793soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
40794install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
40795postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
40796postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
40797finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
40798finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
40799hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
40800sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
40801sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
40802hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
40803enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
40804enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
40805enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
40806old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
40807striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
40808
40809LTCC='$LTCC'
40810LTCFLAGS='$LTCFLAGS'
40811compiler='$compiler_DEFAULT'
40812
40813# A function that is used when there is no print builtin or printf.
40814func_fallback_echo ()
40815{
40816  eval 'cat <<_LTECHO_EOF
40817\$1
40818_LTECHO_EOF'
40819}
40820
40821# Quote evaled strings.
40822for var in AS \
40823DLLTOOL \
40824OBJDUMP \
40825SHELL \
40826ECHO \
40827SED \
40828GREP \
40829EGREP \
40830FGREP \
40831LD \
40832NM \
40833LN_S \
40834lt_SP2NL \
40835lt_NL2SP \
40836reload_flag \
40837deplibs_check_method \
40838file_magic_cmd \
40839AR \
40840AR_FLAGS \
40841STRIP \
40842RANLIB \
40843CC \
40844CFLAGS \
40845compiler \
40846lt_cv_sys_global_symbol_pipe \
40847lt_cv_sys_global_symbol_to_cdecl \
40848lt_cv_sys_global_symbol_to_c_name_address \
40849lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
40850lt_prog_compiler_no_builtin_flag \
40851lt_prog_compiler_wl \
40852lt_prog_compiler_pic \
40853lt_prog_compiler_static \
40854lt_cv_prog_compiler_c_o \
40855need_locks \
40856DSYMUTIL \
40857NMEDIT \
40858LIPO \
40859OTOOL \
40860OTOOL64 \
40861shrext_cmds \
40862export_dynamic_flag_spec \
40863whole_archive_flag_spec \
40864compiler_needs_object \
40865with_gnu_ld \
40866allow_undefined_flag \
40867no_undefined_flag \
40868hardcode_libdir_flag_spec \
40869hardcode_libdir_flag_spec_ld \
40870hardcode_libdir_separator \
40871fix_srcfile_path \
40872exclude_expsyms \
40873include_expsyms \
40874file_list_spec \
40875variables_saved_for_relink \
40876libname_spec \
40877library_names_spec \
40878soname_spec \
40879install_override_mode \
40880finish_eval \
40881old_striplib \
40882striplib; do
40883    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
40884    *[\\\\\\\`\\"\\\$]*)
40885      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
40886      ;;
40887    *)
40888      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
40889      ;;
40890    esac
40891done
40892
40893# Double-quote double-evaled strings.
40894for var in reload_cmds \
40895old_postinstall_cmds \
40896old_postuninstall_cmds \
40897old_archive_cmds \
40898extract_expsyms_cmds \
40899old_archive_from_new_cmds \
40900old_archive_from_expsyms_cmds \
40901archive_cmds \
40902archive_expsym_cmds \
40903module_cmds \
40904module_expsym_cmds \
40905export_symbols_cmds \
40906prelink_cmds \
40907postinstall_cmds \
40908postuninstall_cmds \
40909finish_cmds \
40910sys_lib_search_path_spec \
40911sys_lib_dlsearch_path_spec; do
40912    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
40913    *[\\\\\\\`\\"\\\$]*)
40914      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
40915      ;;
40916    *)
40917      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
40918      ;;
40919    esac
40920done
40921
40922ac_aux_dir='$ac_aux_dir'
40923xsi_shell='$xsi_shell'
40924lt_shell_append='$lt_shell_append'
40925
40926# See if we are running on zsh, and set the options which allow our
40927# commands through without removal of \ escapes INIT.
40928if test -n "\${ZSH_VERSION+set}" ; then
40929   setopt NO_GLOB_SUBST
40930fi
40931
40932
40933    PACKAGE='$PACKAGE'
40934    VERSION='$VERSION'
40935    TIMESTAMP='$TIMESTAMP'
40936    RM='$RM'
40937    ofile='$ofile'
40938
40939
40940
40941
40942_ACEOF
40943
40944cat >>$CONFIG_STATUS <<\_ACEOF
40945
40946# Handling of arguments.
40947for ac_config_target in $ac_config_targets
40948do
40949  case $ac_config_target in
40950    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
40951    "include/do-not-use-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/do-not-use-config.h" ;;
40952    "include/xorg-server.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-server.h" ;;
40953    "include/dix-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/dix-config.h" ;;
40954    "include/xorg-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-config.h" ;;
40955    "include/xkb-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xkb-config.h" ;;
40956    "include/xwin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwin-config.h" ;;
40957    "include/kdrive-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/kdrive-config.h" ;;
40958    "include/version-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/version-config.h" ;;
40959    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
40960    "sdksyms") CONFIG_COMMANDS="$CONFIG_COMMANDS sdksyms" ;;
40961    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
40962    "glx/Makefile") CONFIG_FILES="$CONFIG_FILES glx/Makefile" ;;
40963    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
40964    "composite/Makefile") CONFIG_FILES="$CONFIG_FILES composite/Makefile" ;;
40965    "damageext/Makefile") CONFIG_FILES="$CONFIG_FILES damageext/Makefile" ;;
40966    "dbe/Makefile") CONFIG_FILES="$CONFIG_FILES dbe/Makefile" ;;
40967    "dix/Makefile") CONFIG_FILES="$CONFIG_FILES dix/Makefile" ;;
40968    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
40969    "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
40970    "doc/xml/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xml/Makefile" ;;
40971    "doc/xml/dtrace/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xml/dtrace/Makefile" ;;
40972    "doc/xml/xserver.ent") CONFIG_FILES="$CONFIG_FILES doc/xml/xserver.ent" ;;
40973    "fb/Makefile") CONFIG_FILES="$CONFIG_FILES fb/Makefile" ;;
40974    "record/Makefile") CONFIG_FILES="$CONFIG_FILES record/Makefile" ;;
40975    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
40976    "mi/Makefile") CONFIG_FILES="$CONFIG_FILES mi/Makefile" ;;
40977    "miext/Makefile") CONFIG_FILES="$CONFIG_FILES miext/Makefile" ;;
40978    "miext/sync/Makefile") CONFIG_FILES="$CONFIG_FILES miext/sync/Makefile" ;;
40979    "miext/damage/Makefile") CONFIG_FILES="$CONFIG_FILES miext/damage/Makefile" ;;
40980    "miext/shadow/Makefile") CONFIG_FILES="$CONFIG_FILES miext/shadow/Makefile" ;;
40981    "miext/cw/Makefile") CONFIG_FILES="$CONFIG_FILES miext/cw/Makefile" ;;
40982    "miext/rootless/Makefile") CONFIG_FILES="$CONFIG_FILES miext/rootless/Makefile" ;;
40983    "os/Makefile") CONFIG_FILES="$CONFIG_FILES os/Makefile" ;;
40984    "randr/Makefile") CONFIG_FILES="$CONFIG_FILES randr/Makefile" ;;
40985    "render/Makefile") CONFIG_FILES="$CONFIG_FILES render/Makefile" ;;
40986    "xkb/Makefile") CONFIG_FILES="$CONFIG_FILES xkb/Makefile" ;;
40987    "Xext/Makefile") CONFIG_FILES="$CONFIG_FILES Xext/Makefile" ;;
40988    "Xi/Makefile") CONFIG_FILES="$CONFIG_FILES Xi/Makefile" ;;
40989    "xfixes/Makefile") CONFIG_FILES="$CONFIG_FILES xfixes/Makefile" ;;
40990    "exa/Makefile") CONFIG_FILES="$CONFIG_FILES exa/Makefile" ;;
40991    "hw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/Makefile" ;;
40992    "hw/xfree86/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Makefile" ;;
40993    "hw/xfree86/common/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/Makefile" ;;
40994    "hw/xfree86/common/xf86Build.h") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/xf86Build.h" ;;
40995    "hw/xfree86/ddc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ddc/Makefile" ;;
40996    "hw/xfree86/dixmods/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/Makefile" ;;
40997    "hw/xfree86/dixmods/extmod/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/extmod/Makefile" ;;
40998    "hw/xfree86/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/Makefile" ;;
40999    "hw/xfree86/doc/devel/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/devel/Makefile" ;;
41000    "hw/xfree86/doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/man/Makefile" ;;
41001    "hw/xfree86/doc/sgml/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/sgml/Makefile" ;;
41002    "hw/xfree86/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri/Makefile" ;;
41003    "hw/xfree86/dri2/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/Makefile" ;;
41004    "hw/xfree86/exa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/Makefile" ;;
41005    "hw/xfree86/exa/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/man/Makefile" ;;
41006    "hw/xfree86/fbdevhw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/Makefile" ;;
41007    "hw/xfree86/fbdevhw/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/man/Makefile" ;;
41008    "hw/xfree86/i2c/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/i2c/Makefile" ;;
41009    "hw/xfree86/int10/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/int10/Makefile" ;;
41010    "hw/xfree86/loader/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/loader/Makefile" ;;
41011    "hw/xfree86/modes/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/modes/Makefile" ;;
41012    "hw/xfree86/os-support/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/Makefile" ;;
41013    "hw/xfree86/os-support/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bsd/Makefile" ;;
41014    "hw/xfree86/os-support/bus/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bus/Makefile" ;;
41015    "hw/xfree86/os-support/hurd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/hurd/Makefile" ;;
41016    "hw/xfree86/os-support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/misc/Makefile" ;;
41017    "hw/xfree86/os-support/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/linux/Makefile" ;;
41018    "hw/xfree86/os-support/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/solaris/Makefile" ;;
41019    "hw/xfree86/parser/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/parser/Makefile" ;;
41020    "hw/xfree86/ramdac/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ramdac/Makefile" ;;
41021    "hw/xfree86/shadowfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/shadowfb/Makefile" ;;
41022    "hw/xfree86/vbe/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vbe/Makefile" ;;
41023    "hw/xfree86/vgahw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vgahw/Makefile" ;;
41024    "hw/xfree86/x86emu/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/x86emu/Makefile" ;;
41025    "hw/xfree86/xaa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xaa/Makefile" ;;
41026    "hw/xfree86/utils/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/Makefile" ;;
41027    "hw/xfree86/utils/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/man/Makefile" ;;
41028    "hw/xfree86/utils/cvt/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/cvt/Makefile" ;;
41029    "hw/xfree86/utils/gtf/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/gtf/Makefile" ;;
41030    "hw/dmx/config/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/config/Makefile" ;;
41031    "hw/dmx/config/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/config/man/Makefile" ;;
41032    "hw/dmx/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/doc/Makefile" ;;
41033    "hw/dmx/doc/doxygen.conf") CONFIG_FILES="$CONFIG_FILES hw/dmx/doc/doxygen.conf" ;;
41034    "hw/dmx/examples/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/examples/Makefile" ;;
41035    "hw/dmx/input/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/input/Makefile" ;;
41036    "hw/dmx/glxProxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/glxProxy/Makefile" ;;
41037    "hw/dmx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/Makefile" ;;
41038    "hw/dmx/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/man/Makefile" ;;
41039    "hw/vfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/Makefile" ;;
41040    "hw/vfb/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/man/Makefile" ;;
41041    "hw/xnest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/Makefile" ;;
41042    "hw/xnest/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/man/Makefile" ;;
41043    "hw/xwin/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/Makefile" ;;
41044    "hw/xwin/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/glx/Makefile" ;;
41045    "hw/xwin/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/man/Makefile" ;;
41046    "hw/xquartz/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/Makefile" ;;
41047    "hw/xquartz/GL/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/GL/Makefile" ;;
41048    "hw/xquartz/bundle/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/bundle/Makefile" ;;
41049    "hw/xquartz/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/man/Makefile" ;;
41050    "hw/xquartz/mach-startup/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/mach-startup/Makefile" ;;
41051    "hw/xquartz/pbproxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/pbproxy/Makefile" ;;
41052    "hw/xquartz/xpr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/xpr/Makefile" ;;
41053    "hw/kdrive/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/Makefile" ;;
41054    "hw/kdrive/ephyr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/Makefile" ;;
41055    "hw/kdrive/ephyr/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/man/Makefile" ;;
41056    "hw/kdrive/fake/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/fake/Makefile" ;;
41057    "hw/kdrive/fbdev/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/fbdev/Makefile" ;;
41058    "hw/kdrive/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/linux/Makefile" ;;
41059    "hw/kdrive/src/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/src/Makefile" ;;
41060    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
41061    "test/xi1/Makefile") CONFIG_FILES="$CONFIG_FILES test/xi1/Makefile" ;;
41062    "test/xi2/Makefile") CONFIG_FILES="$CONFIG_FILES test/xi2/Makefile" ;;
41063    "xorg-server.pc") CONFIG_FILES="$CONFIG_FILES xorg-server.pc" ;;
41064
41065  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41066echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41067   { (exit 1); exit 1; }; };;
41068  esac
41069done
41070
41071
41072# If the user did not use the arguments to specify the items to instantiate,
41073# then the envvar interface is used.  Set only those that are not.
41074# We use the long form for the default assignment because of an extremely
41075# bizarre bug on SunOS 4.1.3.
41076if $ac_need_defaults; then
41077  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41078  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41079  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41080fi
41081
41082# Have a temporary directory for convenience.  Make it in the build tree
41083# simply because there is no reason against having it here, and in addition,
41084# creating and moving files from /tmp can sometimes cause problems.
41085# Hook for its removal unless debugging.
41086# Note that there is a small window in which the directory will not be cleaned:
41087# after its creation but before its name has been assigned to `$tmp'.
41088$debug ||
41089{
41090  tmp=
41091  trap 'exit_status=$?
41092  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
41093' 0
41094  trap '{ (exit 1); exit 1; }' 1 2 13 15
41095}
41096# Create a (secure) tmp directory for tmp files.
41097
41098{
41099  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
41100  test -n "$tmp" && test -d "$tmp"
41101}  ||
41102{
41103  tmp=./conf$$-$RANDOM
41104  (umask 077 && mkdir "$tmp")
41105} ||
41106{
41107   echo "$me: cannot create a temporary directory in ." >&2
41108   { (exit 1); exit 1; }
41109}
41110
41111#
41112# Set up the sed scripts for CONFIG_FILES section.
41113#
41114
41115# No need to generate the scripts if there are no CONFIG_FILES.
41116# This happens for instance when ./config.status config.h
41117if test -n "$CONFIG_FILES"; then
41118
41119_ACEOF
41120
41121
41122
41123ac_delim='%!_!# '
41124for ac_last_try in false false false false false :; do
41125  cat >conf$$subs.sed <<_ACEOF
41126SHELL!$SHELL$ac_delim
41127PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
41128PACKAGE_NAME!$PACKAGE_NAME$ac_delim
41129PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
41130PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
41131PACKAGE_STRING!$PACKAGE_STRING$ac_delim
41132PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
41133exec_prefix!$exec_prefix$ac_delim
41134prefix!$prefix$ac_delim
41135program_transform_name!$program_transform_name$ac_delim
41136bindir!$bindir$ac_delim
41137sbindir!$sbindir$ac_delim
41138libexecdir!$libexecdir$ac_delim
41139datarootdir!$datarootdir$ac_delim
41140datadir!$datadir$ac_delim
41141sysconfdir!$sysconfdir$ac_delim
41142sharedstatedir!$sharedstatedir$ac_delim
41143localstatedir!$localstatedir$ac_delim
41144includedir!$includedir$ac_delim
41145oldincludedir!$oldincludedir$ac_delim
41146docdir!$docdir$ac_delim
41147infodir!$infodir$ac_delim
41148htmldir!$htmldir$ac_delim
41149dvidir!$dvidir$ac_delim
41150pdfdir!$pdfdir$ac_delim
41151psdir!$psdir$ac_delim
41152libdir!$libdir$ac_delim
41153localedir!$localedir$ac_delim
41154mandir!$mandir$ac_delim
41155DEFS!$DEFS$ac_delim
41156ECHO_C!$ECHO_C$ac_delim
41157ECHO_N!$ECHO_N$ac_delim
41158ECHO_T!$ECHO_T$ac_delim
41159LIBS!$LIBS$ac_delim
41160build_alias!$build_alias$ac_delim
41161host_alias!$host_alias$ac_delim
41162target_alias!$target_alias$ac_delim
41163INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
41164INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
41165INSTALL_DATA!$INSTALL_DATA$ac_delim
41166am__isrc!$am__isrc$ac_delim
41167CYGPATH_W!$CYGPATH_W$ac_delim
41168PACKAGE!$PACKAGE$ac_delim
41169VERSION!$VERSION$ac_delim
41170ACLOCAL!$ACLOCAL$ac_delim
41171AUTOCONF!$AUTOCONF$ac_delim
41172AUTOMAKE!$AUTOMAKE$ac_delim
41173AUTOHEADER!$AUTOHEADER$ac_delim
41174MAKEINFO!$MAKEINFO$ac_delim
41175install_sh!$install_sh$ac_delim
41176STRIP!$STRIP$ac_delim
41177INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
41178mkdir_p!$mkdir_p$ac_delim
41179AWK!$AWK$ac_delim
41180SET_MAKE!$SET_MAKE$ac_delim
41181am__leading_dot!$am__leading_dot$ac_delim
41182AMTAR!$AMTAR$ac_delim
41183am__tar!$am__tar$ac_delim
41184am__untar!$am__untar$ac_delim
41185MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
41186MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
41187MAINT!$MAINT$ac_delim
41188CC!$CC$ac_delim
41189CFLAGS!$CFLAGS$ac_delim
41190LDFLAGS!$LDFLAGS$ac_delim
41191CPPFLAGS!$CPPFLAGS$ac_delim
41192ac_ct_CC!$ac_ct_CC$ac_delim
41193EXEEXT!$EXEEXT$ac_delim
41194OBJEXT!$OBJEXT$ac_delim
41195DEPDIR!$DEPDIR$ac_delim
41196am__include!$am__include$ac_delim
41197am__quote!$am__quote$ac_delim
41198AMDEP_TRUE!$AMDEP_TRUE$ac_delim
41199AMDEP_FALSE!$AMDEP_FALSE$ac_delim
41200AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
41201CCDEPMODE!$CCDEPMODE$ac_delim
41202am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
41203am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
41204CPP!$CPP$ac_delim
41205GREP!$GREP$ac_delim
41206EGREP!$EGREP$ac_delim
41207BASE_CFLAGS!$BASE_CFLAGS$ac_delim
41208CWARNFLAGS!$CWARNFLAGS$ac_delim
41209STRICT_CFLAGS!$STRICT_CFLAGS$ac_delim
41210CHANGELOG_CMD!$CHANGELOG_CMD$ac_delim
41211PKG_CONFIG!$PKG_CONFIG$ac_delim
41212PKG_CONFIG_PATH!$PKG_CONFIG_PATH$ac_delim
41213PKG_CONFIG_LIBDIR!$PKG_CONFIG_LIBDIR$ac_delim
41214INSTALL_CMD!$INSTALL_CMD$ac_delim
41215build!$build$ac_delim
41216build_cpu!$build_cpu$ac_delim
41217build_vendor!$build_vendor$ac_delim
41218build_os!$build_os$ac_delim
41219host!$host$ac_delim
41220host_cpu!$host_cpu$ac_delim
41221host_vendor!$host_vendor$ac_delim
41222host_os!$host_os$ac_delim
41223_ACEOF
41224
41225  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
41226    break
41227  elif $ac_last_try; then
41228    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
41229echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
41230   { (exit 1); exit 1; }; }
41231  else
41232    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
41233  fi
41234done
41235
41236ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
41237if test -n "$ac_eof"; then
41238  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
41239  ac_eof=`expr $ac_eof + 1`
41240fi
41241
41242cat >>$CONFIG_STATUS <<_ACEOF
41243cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
41244/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41245_ACEOF
41246sed '
41247s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
41248s/^/s,@/; s/!/@,|#_!!_#|/
41249:n
41250t n
41251s/'"$ac_delim"'$/,g/; t
41252s/$/\\/; p
41253N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
41254' >>$CONFIG_STATUS <conf$$subs.sed
41255rm -f conf$$subs.sed
41256cat >>$CONFIG_STATUS <<_ACEOF
41257CEOF$ac_eof
41258_ACEOF
41259
41260
41261ac_delim='%!_!# '
41262for ac_last_try in false false false false false :; do
41263  cat >conf$$subs.sed <<_ACEOF
41264SED!$SED$ac_delim
41265APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
41266LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
41267FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
41268MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
41269DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
41270ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
41271APP_MAN_DIR!$APP_MAN_DIR$ac_delim
41272LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
41273FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
41274MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
41275DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
41276ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
41277XORG_MAN_PAGE!$XORG_MAN_PAGE$ac_delim
41278MAN_SUBSTS!$MAN_SUBSTS$ac_delim
41279AM_DEFAULT_VERBOSITY!$AM_DEFAULT_VERBOSITY$ac_delim
41280DOXYGEN!$DOXYGEN$ac_delim
41281HAVE_DOXYGEN_TRUE!$HAVE_DOXYGEN_TRUE$ac_delim
41282HAVE_DOXYGEN_FALSE!$HAVE_DOXYGEN_FALSE$ac_delim
41283XORG_SGML_PATH!$XORG_SGML_PATH$ac_delim
41284STYLESHEET_SRCDIR!$STYLESHEET_SRCDIR$ac_delim
41285XSL_STYLESHEET!$XSL_STYLESHEET$ac_delim
41286HAVE_STYLESHEETS_TRUE!$HAVE_STYLESHEETS_TRUE$ac_delim
41287HAVE_STYLESHEETS_FALSE!$HAVE_STYLESHEETS_FALSE$ac_delim
41288CCAS!$CCAS$ac_delim
41289CCASFLAGS!$CCASFLAGS$ac_delim
41290CCASDEPMODE!$CCASDEPMODE$ac_delim
41291am__fastdepCCAS_TRUE!$am__fastdepCCAS_TRUE$ac_delim
41292am__fastdepCCAS_FALSE!$am__fastdepCCAS_FALSE$ac_delim
41293LN_S!$LN_S$ac_delim
41294AS!$AS$ac_delim
41295DLLTOOL!$DLLTOOL$ac_delim
41296OBJDUMP!$OBJDUMP$ac_delim
41297LIBTOOL!$LIBTOOL$ac_delim
41298FGREP!$FGREP$ac_delim
41299LD!$LD$ac_delim
41300DUMPBIN!$DUMPBIN$ac_delim
41301ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
41302NM!$NM$ac_delim
41303AR!$AR$ac_delim
41304RANLIB!$RANLIB$ac_delim
41305DSYMUTIL!$DSYMUTIL$ac_delim
41306NMEDIT!$NMEDIT$ac_delim
41307LIPO!$LIPO$ac_delim
41308OTOOL!$OTOOL$ac_delim
41309OTOOL64!$OTOOL64$ac_delim
41310LEX!$LEX$ac_delim
41311LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
41312LEXLIB!$LEXLIB$ac_delim
41313YACC!$YACC$ac_delim
41314YFLAGS!$YFLAGS$ac_delim
41315RAWCPP!$RAWCPP$ac_delim
41316RAWCPPFLAGS!$RAWCPPFLAGS$ac_delim
41317DTRACE!$DTRACE$ac_delim
41318XSERVER_DTRACE_TRUE!$XSERVER_DTRACE_TRUE$ac_delim
41319XSERVER_DTRACE_FALSE!$XSERVER_DTRACE_FALSE$ac_delim
41320SPECIAL_DTRACE_OBJECTS_TRUE!$SPECIAL_DTRACE_OBJECTS_TRUE$ac_delim
41321SPECIAL_DTRACE_OBJECTS_FALSE!$SPECIAL_DTRACE_OBJECTS_FALSE$ac_delim
41322DLOPEN_LIBS!$DLOPEN_LIBS$ac_delim
41323ALLOCA!$ALLOCA$ac_delim
41324NEED_STRLCAT_TRUE!$NEED_STRLCAT_TRUE$ac_delim
41325NEED_STRLCAT_FALSE!$NEED_STRLCAT_FALSE$ac_delim
41326NEED_VSNPRINTF_TRUE!$NEED_VSNPRINTF_TRUE$ac_delim
41327NEED_VSNPRINTF_FALSE!$NEED_VSNPRINTF_FALSE$ac_delim
41328AGP_TRUE!$AGP_TRUE$ac_delim
41329AGP_FALSE!$AGP_FALSE$ac_delim
41330LNXAPM_TRUE!$LNXAPM_TRUE$ac_delim
41331LNXAPM_FALSE!$LNXAPM_FALSE$ac_delim
41332FBDEVHW_TRUE!$FBDEVHW_TRUE$ac_delim
41333FBDEVHW_FALSE!$FBDEVHW_FALSE$ac_delim
41334FREEBSD_KLDLOAD_TRUE!$FREEBSD_KLDLOAD_TRUE$ac_delim
41335FREEBSD_KLDLOAD_FALSE!$FREEBSD_KLDLOAD_FALSE$ac_delim
41336BSD_APM_TRUE!$BSD_APM_TRUE$ac_delim
41337BSD_APM_FALSE!$BSD_APM_FALSE$ac_delim
41338BSD_KQUEUE_APM_TRUE!$BSD_KQUEUE_APM_TRUE$ac_delim
41339BSD_KQUEUE_APM_FALSE!$BSD_KQUEUE_APM_FALSE$ac_delim
41340GLX_ARCH_DEFINES!$GLX_ARCH_DEFINES$ac_delim
41341ALPHA_VIDEO_TRUE!$ALPHA_VIDEO_TRUE$ac_delim
41342ALPHA_VIDEO_FALSE!$ALPHA_VIDEO_FALSE$ac_delim
41343ARM_VIDEO_TRUE!$ARM_VIDEO_TRUE$ac_delim
41344ARM_VIDEO_FALSE!$ARM_VIDEO_FALSE$ac_delim
41345I386_VIDEO_TRUE!$I386_VIDEO_TRUE$ac_delim
41346I386_VIDEO_FALSE!$I386_VIDEO_FALSE$ac_delim
41347PPC_VIDEO_TRUE!$PPC_VIDEO_TRUE$ac_delim
41348PPC_VIDEO_FALSE!$PPC_VIDEO_FALSE$ac_delim
41349SPARC64_VIDEO_TRUE!$SPARC64_VIDEO_TRUE$ac_delim
41350SPARC64_VIDEO_FALSE!$SPARC64_VIDEO_FALSE$ac_delim
41351FONTROOTDIR!$FONTROOTDIR$ac_delim
41352FONTMISCDIR!$FONTMISCDIR$ac_delim
41353FONTOTFDIR!$FONTOTFDIR$ac_delim
41354FONTTTFDIR!$FONTTTFDIR$ac_delim
41355FONTTYPE1DIR!$FONTTYPE1DIR$ac_delim
41356FONT75DPIDIR!$FONT75DPIDIR$ac_delim
41357FONT100DPIDIR!$FONT100DPIDIR$ac_delim
41358APPLE_APPLICATIONS_DIR!$APPLE_APPLICATIONS_DIR$ac_delim
41359APPLE_APPLICATION_NAME!$APPLE_APPLICATION_NAME$ac_delim
41360LAUNCHD_ID_PREFIX!$LAUNCHD_ID_PREFIX$ac_delim
41361_ACEOF
41362
41363  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
41364    break
41365  elif $ac_last_try; then
41366    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
41367echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
41368   { (exit 1); exit 1; }; }
41369  else
41370    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
41371  fi
41372done
41373
41374ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
41375if test -n "$ac_eof"; then
41376  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
41377  ac_eof=`expr $ac_eof + 1`
41378fi
41379
41380cat >>$CONFIG_STATUS <<_ACEOF
41381cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
41382/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41383_ACEOF
41384sed '
41385s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
41386s/^/s,@/; s/!/@,|#_!!_#|/
41387:n
41388t n
41389s/'"$ac_delim"'$/,g/; t
41390s/$/\\/; p
41391N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
41392' >>$CONFIG_STATUS <conf$$subs.sed
41393rm -f conf$$subs.sed
41394cat >>$CONFIG_STATUS <<_ACEOF
41395CEOF$ac_eof
41396_ACEOF
41397
41398
41399ac_delim='%!_!# '
41400for ac_last_try in false false false false false :; do
41401  cat >conf$$subs.sed <<_ACEOF
41402XQUARTZ_SPARKLE!$XQUARTZ_SPARKLE$ac_delim
41403GLX_TLS!$GLX_TLS$ac_delim
41404INSTALL_SETUID_TRUE!$INSTALL_SETUID_TRUE$ac_delim
41405INSTALL_SETUID_FALSE!$INSTALL_SETUID_FALSE$ac_delim
41406SECURE_RPC_TRUE!$SECURE_RPC_TRUE$ac_delim
41407SECURE_RPC_FALSE!$SECURE_RPC_FALSE$ac_delim
41408INT10_VM86_TRUE!$INT10_VM86_TRUE$ac_delim
41409INT10_VM86_FALSE!$INT10_VM86_FALSE$ac_delim
41410INT10_X86EMU_TRUE!$INT10_X86EMU_TRUE$ac_delim
41411INT10_X86EMU_FALSE!$INT10_X86EMU_FALSE$ac_delim
41412INT10_STUB_TRUE!$INT10_STUB_TRUE$ac_delim
41413INT10_STUB_FALSE!$INT10_STUB_FALSE$ac_delim
41414ENABLE_DOCS_TRUE!$ENABLE_DOCS_TRUE$ac_delim
41415ENABLE_DOCS_FALSE!$ENABLE_DOCS_FALSE$ac_delim
41416ENABLE_DEVEL_DOCS_TRUE!$ENABLE_DEVEL_DOCS_TRUE$ac_delim
41417ENABLE_DEVEL_DOCS_FALSE!$ENABLE_DEVEL_DOCS_FALSE$ac_delim
41418XMLTO!$XMLTO$ac_delim
41419HAVE_XMLTO_TEXT_TRUE!$HAVE_XMLTO_TEXT_TRUE$ac_delim
41420HAVE_XMLTO_TEXT_FALSE!$HAVE_XMLTO_TEXT_FALSE$ac_delim
41421HAVE_XMLTO_TRUE!$HAVE_XMLTO_TRUE$ac_delim
41422HAVE_XMLTO_FALSE!$HAVE_XMLTO_FALSE$ac_delim
41423FOP!$FOP$ac_delim
41424HAVE_FOP_TRUE!$HAVE_FOP_TRUE$ac_delim
41425HAVE_FOP_FALSE!$HAVE_FOP_FALSE$ac_delim
41426INSTALL_LIBXF86CONFIG_TRUE!$INSTALL_LIBXF86CONFIG_TRUE$ac_delim
41427INSTALL_LIBXF86CONFIG_FALSE!$INSTALL_LIBXF86CONFIG_FALSE$ac_delim
41428SDK_REQUIRED_MODULES!$SDK_REQUIRED_MODULES$ac_delim
41429PIXMAN_CFLAGS!$PIXMAN_CFLAGS$ac_delim
41430PIXMAN_LIBS!$PIXMAN_LIBS$ac_delim
41431UDEV_CFLAGS!$UDEV_CFLAGS$ac_delim
41432UDEV_LIBS!$UDEV_LIBS$ac_delim
41433CONFIG_UDEV_TRUE!$CONFIG_UDEV_TRUE$ac_delim
41434CONFIG_UDEV_FALSE!$CONFIG_UDEV_FALSE$ac_delim
41435DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
41436DBUS_LIBS!$DBUS_LIBS$ac_delim
41437HAVE_DBUS_TRUE!$HAVE_DBUS_TRUE$ac_delim
41438HAVE_DBUS_FALSE!$HAVE_DBUS_FALSE$ac_delim
41439CONFIG_DBUS_API_TRUE!$CONFIG_DBUS_API_TRUE$ac_delim
41440CONFIG_DBUS_API_FALSE!$CONFIG_DBUS_API_FALSE$ac_delim
41441HAL_CFLAGS!$HAL_CFLAGS$ac_delim
41442HAL_LIBS!$HAL_LIBS$ac_delim
41443CONFIG_HAL_TRUE!$CONFIG_HAL_TRUE$ac_delim
41444CONFIG_HAL_FALSE!$CONFIG_HAL_FALSE$ac_delim
41445CONFIG_NEED_DBUS_TRUE!$CONFIG_NEED_DBUS_TRUE$ac_delim
41446CONFIG_NEED_DBUS_FALSE!$CONFIG_NEED_DBUS_FALSE$ac_delim
41447XV_TRUE!$XV_TRUE$ac_delim
41448XV_FALSE!$XV_FALSE$ac_delim
41449XVMC_TRUE!$XVMC_TRUE$ac_delim
41450XVMC_FALSE!$XVMC_FALSE$ac_delim
41451XREGISTRY_TRUE!$XREGISTRY_TRUE$ac_delim
41452XREGISTRY_FALSE!$XREGISTRY_FALSE$ac_delim
41453COMPOSITE_TRUE!$COMPOSITE_TRUE$ac_delim
41454COMPOSITE_FALSE!$COMPOSITE_FALSE$ac_delim
41455MITSHM_TRUE!$MITSHM_TRUE$ac_delim
41456MITSHM_FALSE!$MITSHM_FALSE$ac_delim
41457RECORD_TRUE!$RECORD_TRUE$ac_delim
41458RECORD_FALSE!$RECORD_FALSE$ac_delim
41459SCREENSAVER_TRUE!$SCREENSAVER_TRUE$ac_delim
41460SCREENSAVER_FALSE!$SCREENSAVER_FALSE$ac_delim
41461RES_TRUE!$RES_TRUE$ac_delim
41462RES_FALSE!$RES_FALSE$ac_delim
41463XLIB_CFLAGS!$XLIB_CFLAGS$ac_delim
41464XLIB_LIBS!$XLIB_LIBS$ac_delim
41465GL_CFLAGS!$GL_CFLAGS$ac_delim
41466GL_LIBS!$GL_LIBS$ac_delim
41467GLX_TRUE!$GLX_TRUE$ac_delim
41468GLX_FALSE!$GLX_FALSE$ac_delim
41469AIGLX_TRUE!$AIGLX_TRUE$ac_delim
41470AIGLX_FALSE!$AIGLX_FALSE$ac_delim
41471GLX_DEFINES!$GLX_DEFINES$ac_delim
41472DRI_TRUE!$DRI_TRUE$ac_delim
41473DRI_FALSE!$DRI_FALSE$ac_delim
41474DRIPROTO_CFLAGS!$DRIPROTO_CFLAGS$ac_delim
41475DRIPROTO_LIBS!$DRIPROTO_LIBS$ac_delim
41476DRI_CFLAGS!$DRI_CFLAGS$ac_delim
41477DRI_LIBS!$DRI_LIBS$ac_delim
41478DRI2PROTO_CFLAGS!$DRI2PROTO_CFLAGS$ac_delim
41479DRI2PROTO_LIBS!$DRI2PROTO_LIBS$ac_delim
41480DRI2_TRUE!$DRI2_TRUE$ac_delim
41481DRI2_FALSE!$DRI2_FALSE$ac_delim
41482LIBDRM_CFLAGS!$LIBDRM_CFLAGS$ac_delim
41483LIBDRM_LIBS!$LIBDRM_LIBS$ac_delim
41484DRI2_AIGLX_TRUE!$DRI2_AIGLX_TRUE$ac_delim
41485DRI2_AIGLX_FALSE!$DRI2_AIGLX_FALSE$ac_delim
41486XINERAMA_TRUE!$XINERAMA_TRUE$ac_delim
41487XINERAMA_FALSE!$XINERAMA_FALSE$ac_delim
41488XACE_TRUE!$XACE_TRUE$ac_delim
41489XACE_FALSE!$XACE_FALSE$ac_delim
41490XSELINUX_TRUE!$XSELINUX_TRUE$ac_delim
41491XSELINUX_FALSE!$XSELINUX_FALSE$ac_delim
41492SELINUX_CFLAGS!$SELINUX_CFLAGS$ac_delim
41493SELINUX_LIBS!$SELINUX_LIBS$ac_delim
41494XCSECURITY_TRUE!$XCSECURITY_TRUE$ac_delim
41495XCSECURITY_FALSE!$XCSECURITY_FALSE$ac_delim
41496DBE_TRUE!$DBE_TRUE$ac_delim
41497DBE_FALSE!$DBE_FALSE$ac_delim
41498XF86BIGFONT_TRUE!$XF86BIGFONT_TRUE$ac_delim
41499_ACEOF
41500
41501  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
41502    break
41503  elif $ac_last_try; then
41504    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
41505echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
41506   { (exit 1); exit 1; }; }
41507  else
41508    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
41509  fi
41510done
41511
41512ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
41513if test -n "$ac_eof"; then
41514  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
41515  ac_eof=`expr $ac_eof + 1`
41516fi
41517
41518cat >>$CONFIG_STATUS <<_ACEOF
41519cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
41520/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41521_ACEOF
41522sed '
41523s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
41524s/^/s,@/; s/!/@,|#_!!_#|/
41525:n
41526t n
41527s/'"$ac_delim"'$/,g/; t
41528s/$/\\/; p
41529N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
41530' >>$CONFIG_STATUS <conf$$subs.sed
41531rm -f conf$$subs.sed
41532cat >>$CONFIG_STATUS <<_ACEOF
41533CEOF$ac_eof
41534_ACEOF
41535
41536
41537ac_delim='%!_!# '
41538for ac_last_try in false false false false false :; do
41539  cat >conf$$subs.sed <<_ACEOF
41540XF86BIGFONT_FALSE!$XF86BIGFONT_FALSE$ac_delim
41541DPMSExtension_TRUE!$DPMSExtension_TRUE$ac_delim
41542DPMSExtension_FALSE!$DPMSExtension_FALSE$ac_delim
41543XCALIBRATE_TRUE!$XCALIBRATE_TRUE$ac_delim
41544XCALIBRATE_FALSE!$XCALIBRATE_FALSE$ac_delim
41545XF86UTILS_TRUE!$XF86UTILS_TRUE$ac_delim
41546XF86UTILS_FALSE!$XF86UTILS_FALSE$ac_delim
41547XAA_TRUE!$XAA_TRUE$ac_delim
41548XAA_FALSE!$XAA_FALSE$ac_delim
41549VGAHW_TRUE!$VGAHW_TRUE$ac_delim
41550VGAHW_FALSE!$VGAHW_FALSE$ac_delim
41551VBE_TRUE!$VBE_TRUE$ac_delim
41552VBE_FALSE!$VBE_FALSE$ac_delim
41553INT10MODULE_TRUE!$INT10MODULE_TRUE$ac_delim
41554INT10MODULE_FALSE!$INT10MODULE_FALSE$ac_delim
41555XKB_BASE_DIRECTORY!$XKB_BASE_DIRECTORY$ac_delim
41556XKB_BIN_DIRECTORY!$XKB_BIN_DIRECTORY$ac_delim
41557XKM_OUTPUT_DIR!$XKM_OUTPUT_DIR$ac_delim
41558XKB_COMPILED_DIR!$XKB_COMPILED_DIR$ac_delim
41559XDMCP_CFLAGS!$XDMCP_CFLAGS$ac_delim
41560XDMCP_LIBS!$XDMCP_LIBS$ac_delim
41561XDMCP_TRUE!$XDMCP_TRUE$ac_delim
41562XDMCP_FALSE!$XDMCP_FALSE$ac_delim
41563XDMAUTH_TRUE!$XDMAUTH_TRUE$ac_delim
41564XDMAUTH_FALSE!$XDMAUTH_FALSE$ac_delim
41565COMPILEDDEFAULTFONTPATH!$COMPILEDDEFAULTFONTPATH$ac_delim
41566PCI_TXT_IDS_PATH!$PCI_TXT_IDS_PATH$ac_delim
41567SERVER_MISC_CONFIG_PATH!$SERVER_MISC_CONFIG_PATH$ac_delim
41568BASE_FONT_PATH!$BASE_FONT_PATH$ac_delim
41569DRI_DRIVER_PATH!$DRI_DRIVER_PATH$ac_delim
41570VENDOR_NAME_SHORT!$VENDOR_NAME_SHORT$ac_delim
41571DEBUG_TRUE!$DEBUG_TRUE$ac_delim
41572DEBUG_FALSE!$DEBUG_FALSE$ac_delim
41573GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
41574GLIB_LIBS!$GLIB_LIBS$ac_delim
41575UNITTESTS_TRUE!$UNITTESTS_TRUE$ac_delim
41576UNITTESTS_FALSE!$UNITTESTS_FALSE$ac_delim
41577DIX_LIB!$DIX_LIB$ac_delim
41578OS_LIB!$OS_LIB$ac_delim
41579MAIN_LIB!$MAIN_LIB$ac_delim
41580LIBSHA1_CFLAGS!$LIBSHA1_CFLAGS$ac_delim
41581LIBSHA1_LIBS!$LIBSHA1_LIBS$ac_delim
41582OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
41583OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
41584SHA1_LIBS!$SHA1_LIBS$ac_delim
41585SHA1_CFLAGS!$SHA1_CFLAGS$ac_delim
41586XSERVERCFLAGS_CFLAGS!$XSERVERCFLAGS_CFLAGS$ac_delim
41587XSERVERCFLAGS_LIBS!$XSERVERCFLAGS_LIBS$ac_delim
41588XSERVERLIBS_CFLAGS!$XSERVERLIBS_CFLAGS$ac_delim
41589XSERVERLIBS_LIBS!$XSERVERLIBS_LIBS$ac_delim
41590XSERVER_LIBS!$XSERVER_LIBS$ac_delim
41591XSERVER_SYS_LIBS!$XSERVER_SYS_LIBS$ac_delim
41592UTILS_SYS_LIBS!$UTILS_SYS_LIBS$ac_delim
41593LD_EXPORT_SYMBOLS_FLAG!$LD_EXPORT_SYMBOLS_FLAG$ac_delim
41594XVFB_TRUE!$XVFB_TRUE$ac_delim
41595XVFB_FALSE!$XVFB_FALSE$ac_delim
41596XVFB_LIBS!$XVFB_LIBS$ac_delim
41597XVFB_SYS_LIBS!$XVFB_SYS_LIBS$ac_delim
41598XNESTMODULES_CFLAGS!$XNESTMODULES_CFLAGS$ac_delim
41599XNESTMODULES_LIBS!$XNESTMODULES_LIBS$ac_delim
41600XNEST_TRUE!$XNEST_TRUE$ac_delim
41601XNEST_FALSE!$XNEST_FALSE$ac_delim
41602XNEST_LIBS!$XNEST_LIBS$ac_delim
41603XNEST_SYS_LIBS!$XNEST_SYS_LIBS$ac_delim
41604symbol_visibility!$symbol_visibility$ac_delim
41605PCIACCESS_CFLAGS!$PCIACCESS_CFLAGS$ac_delim
41606PCIACCESS_LIBS!$PCIACCESS_LIBS$ac_delim
41607SOLARIS_INOUT_ARCH!$SOLARIS_INOUT_ARCH$ac_delim
41608SOLARIS_ASM_CFLAGS!$SOLARIS_ASM_CFLAGS$ac_delim
41609DGA_CFLAGS!$DGA_CFLAGS$ac_delim
41610DGA_LIBS!$DGA_LIBS$ac_delim
41611XF86VIDMODE_CFLAGS!$XF86VIDMODE_CFLAGS$ac_delim
41612XF86VIDMODE_LIBS!$XF86VIDMODE_LIBS$ac_delim
41613XORG_MODULES_CFLAGS!$XORG_MODULES_CFLAGS$ac_delim
41614XORG_MODULES_LIBS!$XORG_MODULES_LIBS$ac_delim
41615XORG_LIBS!$XORG_LIBS$ac_delim
41616XORG_SYS_LIBS!$XORG_SYS_LIBS$ac_delim
41617XORG_INCS!$XORG_INCS$ac_delim
41618XORG_OS!$XORG_OS$ac_delim
41619XORG_OS_SUBDIR!$XORG_OS_SUBDIR$ac_delim
41620PERL!$PERL$ac_delim
41621XORG_CFLAGS!$XORG_CFLAGS$ac_delim
41622XF86CONFIGDIR!$XF86CONFIGDIR$ac_delim
41623__XCONFIGFILE__!$__XCONFIGFILE__$ac_delim
41624XF86CONFIGFILE!$XF86CONFIGFILE$ac_delim
41625__XCONFIGDIR__!$__XCONFIGDIR__$ac_delim
41626DEFAULT_MODULE_PATH!$DEFAULT_MODULE_PATH$ac_delim
41627DEFAULT_LIBRARY_PATH!$DEFAULT_LIBRARY_PATH$ac_delim
41628DEFAULT_LOGPREFIX!$DEFAULT_LOGPREFIX$ac_delim
41629moduledir!$moduledir$ac_delim
41630driverdir!$driverdir$ac_delim
41631sdkdir!$sdkdir$ac_delim
41632extdir!$extdir$ac_delim
41633sysconfigdir!$sysconfigdir$ac_delim
41634logdir!$logdir$ac_delim
41635abi_ansic!$abi_ansic$ac_delim
41636abi_videodrv!$abi_videodrv$ac_delim
41637_ACEOF
41638
41639  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
41640    break
41641  elif $ac_last_try; then
41642    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
41643echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
41644   { (exit 1); exit 1; }; }
41645  else
41646    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
41647  fi
41648done
41649
41650ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
41651if test -n "$ac_eof"; then
41652  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
41653  ac_eof=`expr $ac_eof + 1`
41654fi
41655
41656cat >>$CONFIG_STATUS <<_ACEOF
41657cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
41658/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41659_ACEOF
41660sed '
41661s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
41662s/^/s,@/; s/!/@,|#_!!_#|/
41663:n
41664t n
41665s/'"$ac_delim"'$/,g/; t
41666s/$/\\/; p
41667N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
41668' >>$CONFIG_STATUS <conf$$subs.sed
41669rm -f conf$$subs.sed
41670cat >>$CONFIG_STATUS <<_ACEOF
41671CEOF$ac_eof
41672_ACEOF
41673
41674
41675ac_delim='%!_!# '
41676for ac_last_try in false false false false false :; do
41677  cat >conf$$subs.sed <<_ACEOF
41678abi_xinput!$abi_xinput$ac_delim
41679abi_extension!$abi_extension$ac_delim
41680XORG_TRUE!$XORG_TRUE$ac_delim
41681XORG_FALSE!$XORG_FALSE$ac_delim
41682XORG_BUS_LINUXPCI_TRUE!$XORG_BUS_LINUXPCI_TRUE$ac_delim
41683XORG_BUS_LINUXPCI_FALSE!$XORG_BUS_LINUXPCI_FALSE$ac_delim
41684XORG_BUS_BSDPCI_TRUE!$XORG_BUS_BSDPCI_TRUE$ac_delim
41685XORG_BUS_BSDPCI_FALSE!$XORG_BUS_BSDPCI_FALSE$ac_delim
41686XORG_BUS_SPARC_TRUE!$XORG_BUS_SPARC_TRUE$ac_delim
41687XORG_BUS_SPARC_FALSE!$XORG_BUS_SPARC_FALSE$ac_delim
41688LINUX_IA64_TRUE!$LINUX_IA64_TRUE$ac_delim
41689LINUX_IA64_FALSE!$LINUX_IA64_FALSE$ac_delim
41690LINUX_ALPHA_TRUE!$LINUX_ALPHA_TRUE$ac_delim
41691LINUX_ALPHA_FALSE!$LINUX_ALPHA_FALSE$ac_delim
41692LNXACPI_TRUE!$LNXACPI_TRUE$ac_delim
41693LNXACPI_FALSE!$LNXACPI_FALSE$ac_delim
41694SOLARIS_ASM_INLINE_TRUE!$SOLARIS_ASM_INLINE_TRUE$ac_delim
41695SOLARIS_ASM_INLINE_FALSE!$SOLARIS_ASM_INLINE_FALSE$ac_delim
41696SOLARIS_VT_TRUE!$SOLARIS_VT_TRUE$ac_delim
41697SOLARIS_VT_FALSE!$SOLARIS_VT_FALSE$ac_delim
41698DGA_TRUE!$DGA_TRUE$ac_delim
41699DGA_FALSE!$DGA_FALSE$ac_delim
41700XF86VIDMODE_TRUE!$XF86VIDMODE_TRUE$ac_delim
41701XF86VIDMODE_FALSE!$XF86VIDMODE_FALSE$ac_delim
41702SYSCONFDIR!$SYSCONFDIR$ac_delim
41703DEFAULT_LOGDIR!$DEFAULT_LOGDIR$ac_delim
41704WINDRES!$WINDRES$ac_delim
41705XWINMODULES_CFLAGS!$XWINMODULES_CFLAGS$ac_delim
41706XWINMODULES_LIBS!$XWINMODULES_LIBS$ac_delim
41707WINDOWSWM_CFLAGS!$WINDOWSWM_CFLAGS$ac_delim
41708WINDOWSWM_LIBS!$WINDOWSWM_LIBS$ac_delim
41709XWIN_LIBS!$XWIN_LIBS$ac_delim
41710XWIN_SERVER_NAME!$XWIN_SERVER_NAME$ac_delim
41711XWIN_SYS_LIBS!$XWIN_SYS_LIBS$ac_delim
41712XWIN_TRUE!$XWIN_TRUE$ac_delim
41713XWIN_FALSE!$XWIN_FALSE$ac_delim
41714XWIN_MULTIWINDOW_TRUE!$XWIN_MULTIWINDOW_TRUE$ac_delim
41715XWIN_MULTIWINDOW_FALSE!$XWIN_MULTIWINDOW_FALSE$ac_delim
41716XWIN_MULTIWINDOWEXTWM_TRUE!$XWIN_MULTIWINDOWEXTWM_TRUE$ac_delim
41717XWIN_MULTIWINDOWEXTWM_FALSE!$XWIN_MULTIWINDOWEXTWM_FALSE$ac_delim
41718XWIN_CLIPBOARD_TRUE!$XWIN_CLIPBOARD_TRUE$ac_delim
41719XWIN_CLIPBOARD_FALSE!$XWIN_CLIPBOARD_FALSE$ac_delim
41720XWIN_GLX_WINDOWS_TRUE!$XWIN_GLX_WINDOWS_TRUE$ac_delim
41721XWIN_GLX_WINDOWS_FALSE!$XWIN_GLX_WINDOWS_FALSE$ac_delim
41722XWIN_NATIVEGDI_TRUE!$XWIN_NATIVEGDI_TRUE$ac_delim
41723XWIN_NATIVEGDI_FALSE!$XWIN_NATIVEGDI_FALSE$ac_delim
41724XWIN_PRIMARYFB_TRUE!$XWIN_PRIMARYFB_TRUE$ac_delim
41725XWIN_PRIMARYFB_FALSE!$XWIN_PRIMARYFB_FALSE$ac_delim
41726XWIN_RANDR_TRUE!$XWIN_RANDR_TRUE$ac_delim
41727XWIN_RANDR_FALSE!$XWIN_RANDR_FALSE$ac_delim
41728XWIN_XV_TRUE!$XWIN_XV_TRUE$ac_delim
41729XWIN_XV_FALSE!$XWIN_XV_FALSE$ac_delim
41730DARWIN_LIBS!$DARWIN_LIBS$ac_delim
41731XPBPROXY_CFLAGS!$XPBPROXY_CFLAGS$ac_delim
41732XPBPROXY_LIBS!$XPBPROXY_LIBS$ac_delim
41733OBJC!$OBJC$ac_delim
41734OBJCCLD!$OBJCCLD$ac_delim
41735OBJCLINK!$OBJCLINK$ac_delim
41736OBJCFLAGS!$OBJCFLAGS$ac_delim
41737OBJCDEPMODE!$OBJCDEPMODE$ac_delim
41738am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
41739am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
41740XQUARTZ_TRUE!$XQUARTZ_TRUE$ac_delim
41741XQUARTZ_FALSE!$XQUARTZ_FALSE$ac_delim
41742XQUARTZ_SPARKLE_TRUE!$XQUARTZ_SPARKLE_TRUE$ac_delim
41743XQUARTZ_SPARKLE_FALSE!$XQUARTZ_SPARKLE_FALSE$ac_delim
41744STANDALONE_XPBPROXY_TRUE!$STANDALONE_XPBPROXY_TRUE$ac_delim
41745STANDALONE_XPBPROXY_FALSE!$STANDALONE_XPBPROXY_FALSE$ac_delim
41746DMXMODULES_CFLAGS!$DMXMODULES_CFLAGS$ac_delim
41747DMXMODULES_LIBS!$DMXMODULES_LIBS$ac_delim
41748XDMXCONFIG_DEP_CFLAGS!$XDMXCONFIG_DEP_CFLAGS$ac_delim
41749XDMXCONFIG_DEP_LIBS!$XDMXCONFIG_DEP_LIBS$ac_delim
41750DMX_TRUE!$DMX_TRUE$ac_delim
41751DMX_FALSE!$DMX_FALSE$ac_delim
41752XDMX_CFLAGS!$XDMX_CFLAGS$ac_delim
41753XDMX_LIBS!$XDMX_LIBS$ac_delim
41754XDMX_SYS_LIBS!$XDMX_SYS_LIBS$ac_delim
41755DMXEXAMPLES_DEP_CFLAGS!$DMXEXAMPLES_DEP_CFLAGS$ac_delim
41756DMXEXAMPLES_DEP_LIBS!$DMXEXAMPLES_DEP_LIBS$ac_delim
41757DMXXMUEXAMPLES_DEP_CFLAGS!$DMXXMUEXAMPLES_DEP_CFLAGS$ac_delim
41758DMXXMUEXAMPLES_DEP_LIBS!$DMXXMUEXAMPLES_DEP_LIBS$ac_delim
41759DMXXIEXAMPLES_DEP_CFLAGS!$DMXXIEXAMPLES_DEP_CFLAGS$ac_delim
41760DMXXIEXAMPLES_DEP_LIBS!$DMXXIEXAMPLES_DEP_LIBS$ac_delim
41761XTSTEXAMPLES_DEP_CFLAGS!$XTSTEXAMPLES_DEP_CFLAGS$ac_delim
41762XTSTEXAMPLES_DEP_LIBS!$XTSTEXAMPLES_DEP_LIBS$ac_delim
41763XRESEXAMPLES_DEP_CFLAGS!$XRESEXAMPLES_DEP_CFLAGS$ac_delim
41764XRESEXAMPLES_DEP_LIBS!$XRESEXAMPLES_DEP_LIBS$ac_delim
41765X11EXAMPLES_DEP_CFLAGS!$X11EXAMPLES_DEP_CFLAGS$ac_delim
41766X11EXAMPLES_DEP_LIBS!$X11EXAMPLES_DEP_LIBS$ac_delim
41767DMX_BUILD_LNX_TRUE!$DMX_BUILD_LNX_TRUE$ac_delim
41768DMX_BUILD_LNX_FALSE!$DMX_BUILD_LNX_FALSE$ac_delim
41769DMX_BUILD_USB_TRUE!$DMX_BUILD_USB_TRUE$ac_delim
41770DMX_BUILD_USB_FALSE!$DMX_BUILD_USB_FALSE$ac_delim
41771KDRIVE_TRUE!$KDRIVE_TRUE$ac_delim
41772KDRIVE_FALSE!$KDRIVE_FALSE$ac_delim
41773TSLIB_CFLAGS!$TSLIB_CFLAGS$ac_delim
41774TSLIB_LIBS!$TSLIB_LIBS$ac_delim
41775_ACEOF
41776
41777  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
41778    break
41779  elif $ac_last_try; then
41780    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
41781echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
41782   { (exit 1); exit 1; }; }
41783  else
41784    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
41785  fi
41786done
41787
41788ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
41789if test -n "$ac_eof"; then
41790  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
41791  ac_eof=`expr $ac_eof + 1`
41792fi
41793
41794cat >>$CONFIG_STATUS <<_ACEOF
41795cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
41796/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41797_ACEOF
41798sed '
41799s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
41800s/^/s,@/; s/!/@,|#_!!_#|/
41801:n
41802t n
41803s/'"$ac_delim"'$/,g/; t
41804s/$/\\/; p
41805N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
41806' >>$CONFIG_STATUS <conf$$subs.sed
41807rm -f conf$$subs.sed
41808cat >>$CONFIG_STATUS <<_ACEOF
41809CEOF$ac_eof
41810_ACEOF
41811
41812
41813ac_delim='%!_!# '
41814for ac_last_try in false false false false false :; do
41815  cat >conf$$subs.sed <<_ACEOF
41816XEPHYR_CFLAGS!$XEPHYR_CFLAGS$ac_delim
41817XEPHYR_LIBS!$XEPHYR_LIBS$ac_delim
41818XEPHYR_INCS!$XEPHYR_INCS$ac_delim
41819KDRIVE_INCS!$KDRIVE_INCS$ac_delim
41820KDRIVE_PURE_INCS!$KDRIVE_PURE_INCS$ac_delim
41821KDRIVE_CFLAGS!$KDRIVE_CFLAGS$ac_delim
41822KDRIVE_PURE_LIBS!$KDRIVE_PURE_LIBS$ac_delim
41823KDRIVE_LOCAL_LIBS!$KDRIVE_LOCAL_LIBS$ac_delim
41824KDRIVE_LIBS!$KDRIVE_LIBS$ac_delim
41825KDRIVELINUX_TRUE!$KDRIVELINUX_TRUE$ac_delim
41826KDRIVELINUX_FALSE!$KDRIVELINUX_FALSE$ac_delim
41827KDRIVE_EVDEV_TRUE!$KDRIVE_EVDEV_TRUE$ac_delim
41828KDRIVE_EVDEV_FALSE!$KDRIVE_EVDEV_FALSE$ac_delim
41829KDRIVE_KBD_TRUE!$KDRIVE_KBD_TRUE$ac_delim
41830KDRIVE_KBD_FALSE!$KDRIVE_KBD_FALSE$ac_delim
41831KDRIVE_MOUSE_TRUE!$KDRIVE_MOUSE_TRUE$ac_delim
41832KDRIVE_MOUSE_FALSE!$KDRIVE_MOUSE_FALSE$ac_delim
41833TSLIB_TRUE!$TSLIB_TRUE$ac_delim
41834TSLIB_FALSE!$TSLIB_FALSE$ac_delim
41835KDRIVEFBDEV_TRUE!$KDRIVEFBDEV_TRUE$ac_delim
41836KDRIVEFBDEV_FALSE!$KDRIVEFBDEV_FALSE$ac_delim
41837XEPHYR_TRUE!$XEPHYR_TRUE$ac_delim
41838XEPHYR_FALSE!$XEPHYR_FALSE$ac_delim
41839BUILD_KDRIVEFBDEVLIB_TRUE!$BUILD_KDRIVEFBDEVLIB_TRUE$ac_delim
41840BUILD_KDRIVEFBDEVLIB_FALSE!$BUILD_KDRIVEFBDEVLIB_FALSE$ac_delim
41841XFAKESERVER_TRUE!$XFAKESERVER_TRUE$ac_delim
41842XFAKESERVER_FALSE!$XFAKESERVER_FALSE$ac_delim
41843PROJECTROOT!$PROJECTROOT$ac_delim
41844RELEASE_DATE!$RELEASE_DATE$ac_delim
41845BUILD_DATE!$BUILD_DATE$ac_delim
41846BUILD_TIME!$BUILD_TIME$ac_delim
41847DIX_CFLAGS!$DIX_CFLAGS$ac_delim
41848LIBOBJS!$LIBOBJS$ac_delim
41849LTLIBOBJS!$LTLIBOBJS$ac_delim
41850_ACEOF
41851
41852  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 34; then
41853    break
41854  elif $ac_last_try; then
41855    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
41856echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
41857   { (exit 1); exit 1; }; }
41858  else
41859    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
41860  fi
41861done
41862
41863ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
41864if test -n "$ac_eof"; then
41865  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
41866  ac_eof=`expr $ac_eof + 1`
41867fi
41868
41869cat >>$CONFIG_STATUS <<_ACEOF
41870cat >"\$tmp/subs-6.sed" <<\CEOF$ac_eof
41871/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
41872_ACEOF
41873sed '
41874s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
41875s/^/s,@/; s/!/@,|#_!!_#|/
41876:n
41877t n
41878s/'"$ac_delim"'$/,g/; t
41879s/$/\\/; p
41880N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
41881' >>$CONFIG_STATUS <conf$$subs.sed
41882rm -f conf$$subs.sed
41883cat >>$CONFIG_STATUS <<_ACEOF
41884:end
41885s/|#_!!_#|//g
41886CEOF$ac_eof
41887_ACEOF
41888
41889
41890# VPATH may cause trouble with some makes, so we remove $(srcdir),
41891# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41892# trailing colons and then remove the whole line if VPATH becomes empty
41893# (actually we leave an empty line to preserve line numbers).
41894if test "x$srcdir" = x.; then
41895  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
41896s/:*\$(srcdir):*/:/
41897s/:*\${srcdir}:*/:/
41898s/:*@srcdir@:*/:/
41899s/^\([^=]*=[	 ]*\):*/\1/
41900s/:*$//
41901s/^[^=]*=[	 ]*$//
41902}'
41903fi
41904
41905cat >>$CONFIG_STATUS <<\_ACEOF
41906fi # test -n "$CONFIG_FILES"
41907
41908
41909for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
41910do
41911  case $ac_tag in
41912  :[FHLC]) ac_mode=$ac_tag; continue;;
41913  esac
41914  case $ac_mode$ac_tag in
41915  :[FHL]*:*);;
41916  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
41917echo "$as_me: error: Invalid tag $ac_tag." >&2;}
41918   { (exit 1); exit 1; }; };;
41919  :[FH]-) ac_tag=-:-;;
41920  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
41921  esac
41922  ac_save_IFS=$IFS
41923  IFS=:
41924  set x $ac_tag
41925  IFS=$ac_save_IFS
41926  shift
41927  ac_file=$1
41928  shift
41929
41930  case $ac_mode in
41931  :L) ac_source=$1;;
41932  :[FH])
41933    ac_file_inputs=
41934    for ac_f
41935    do
41936      case $ac_f in
41937      -) ac_f="$tmp/stdin";;
41938      *) # Look for the file first in the build tree, then in the source tree
41939	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
41940	 # because $ac_f cannot contain `:'.
41941	 test -f "$ac_f" ||
41942	   case $ac_f in
41943	   [\\/$]*) false;;
41944	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
41945	   esac ||
41946	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
41947echo "$as_me: error: cannot find input file: $ac_f" >&2;}
41948   { (exit 1); exit 1; }; };;
41949      esac
41950      ac_file_inputs="$ac_file_inputs $ac_f"
41951    done
41952
41953    # Let's still pretend it is `configure' which instantiates (i.e., don't
41954    # use $as_me), people would be surprised to read:
41955    #    /* config.h.  Generated by config.status.  */
41956    configure_input="Generated from "`IFS=:
41957	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
41958    if test x"$ac_file" != x-; then
41959      configure_input="$ac_file.  $configure_input"
41960      { echo "$as_me:$LINENO: creating $ac_file" >&5
41961echo "$as_me: creating $ac_file" >&6;}
41962    fi
41963
41964    case $ac_tag in
41965    *:-:* | *:-) cat >"$tmp/stdin";;
41966    esac
41967    ;;
41968  esac
41969
41970  ac_dir=`$as_dirname -- "$ac_file" ||
41971$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41972	 X"$ac_file" : 'X\(//\)[^/]' \| \
41973	 X"$ac_file" : 'X\(//\)$' \| \
41974	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
41975echo X"$ac_file" |
41976    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41977	    s//\1/
41978	    q
41979	  }
41980	  /^X\(\/\/\)[^/].*/{
41981	    s//\1/
41982	    q
41983	  }
41984	  /^X\(\/\/\)$/{
41985	    s//\1/
41986	    q
41987	  }
41988	  /^X\(\/\).*/{
41989	    s//\1/
41990	    q
41991	  }
41992	  s/.*/./; q'`
41993  { as_dir="$ac_dir"
41994  case $as_dir in #(
41995  -*) as_dir=./$as_dir;;
41996  esac
41997  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
41998    as_dirs=
41999    while :; do
42000      case $as_dir in #(
42001      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
42002      *) as_qdir=$as_dir;;
42003      esac
42004      as_dirs="'$as_qdir' $as_dirs"
42005      as_dir=`$as_dirname -- "$as_dir" ||
42006$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42007	 X"$as_dir" : 'X\(//\)[^/]' \| \
42008	 X"$as_dir" : 'X\(//\)$' \| \
42009	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42010echo X"$as_dir" |
42011    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42012	    s//\1/
42013	    q
42014	  }
42015	  /^X\(\/\/\)[^/].*/{
42016	    s//\1/
42017	    q
42018	  }
42019	  /^X\(\/\/\)$/{
42020	    s//\1/
42021	    q
42022	  }
42023	  /^X\(\/\).*/{
42024	    s//\1/
42025	    q
42026	  }
42027	  s/.*/./; q'`
42028      test -d "$as_dir" && break
42029    done
42030    test -z "$as_dirs" || eval "mkdir $as_dirs"
42031  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
42032echo "$as_me: error: cannot create directory $as_dir" >&2;}
42033   { (exit 1); exit 1; }; }; }
42034  ac_builddir=.
42035
42036case "$ac_dir" in
42037.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42038*)
42039  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42040  # A ".." for each directory in $ac_dir_suffix.
42041  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
42042  case $ac_top_builddir_sub in
42043  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42044  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42045  esac ;;
42046esac
42047ac_abs_top_builddir=$ac_pwd
42048ac_abs_builddir=$ac_pwd$ac_dir_suffix
42049# for backward compatibility:
42050ac_top_builddir=$ac_top_build_prefix
42051
42052case $srcdir in
42053  .)  # We are building in place.
42054    ac_srcdir=.
42055    ac_top_srcdir=$ac_top_builddir_sub
42056    ac_abs_top_srcdir=$ac_pwd ;;
42057  [\\/]* | ?:[\\/]* )  # Absolute name.
42058    ac_srcdir=$srcdir$ac_dir_suffix;
42059    ac_top_srcdir=$srcdir
42060    ac_abs_top_srcdir=$srcdir ;;
42061  *) # Relative name.
42062    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42063    ac_top_srcdir=$ac_top_build_prefix$srcdir
42064    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42065esac
42066ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42067
42068
42069  case $ac_mode in
42070  :F)
42071  #
42072  # CONFIG_FILE
42073  #
42074
42075  case $INSTALL in
42076  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42077  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42078  esac
42079  ac_MKDIR_P=$MKDIR_P
42080  case $MKDIR_P in
42081  [\\/$]* | ?:[\\/]* ) ;;
42082  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
42083  esac
42084_ACEOF
42085
42086cat >>$CONFIG_STATUS <<\_ACEOF
42087# If the template does not know about datarootdir, expand it.
42088# FIXME: This hack should be removed a few years after 2.60.
42089ac_datarootdir_hack=; ac_datarootdir_seen=
42090
42091case `sed -n '/datarootdir/ {
42092  p
42093  q
42094}
42095/@datadir@/p
42096/@docdir@/p
42097/@infodir@/p
42098/@localedir@/p
42099/@mandir@/p
42100' $ac_file_inputs` in
42101*datarootdir*) ac_datarootdir_seen=yes;;
42102*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42103  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42104echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42105_ACEOF
42106cat >>$CONFIG_STATUS <<_ACEOF
42107  ac_datarootdir_hack='
42108  s&@datadir@&$datadir&g
42109  s&@docdir@&$docdir&g
42110  s&@infodir@&$infodir&g
42111  s&@localedir@&$localedir&g
42112  s&@mandir@&$mandir&g
42113    s&\\\${datarootdir}&$datarootdir&g' ;;
42114esac
42115_ACEOF
42116
42117# Neutralize VPATH when `$srcdir' = `.'.
42118# Shell code in configure.ac might set extrasub.
42119# FIXME: do we really want to maintain this feature?
42120cat >>$CONFIG_STATUS <<_ACEOF
42121  sed "$ac_vpsub
42122$extrasub
42123_ACEOF
42124cat >>$CONFIG_STATUS <<\_ACEOF
42125:t
42126/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42127s&@configure_input@&$configure_input&;t t
42128s&@top_builddir@&$ac_top_builddir_sub&;t t
42129s&@srcdir@&$ac_srcdir&;t t
42130s&@abs_srcdir@&$ac_abs_srcdir&;t t
42131s&@top_srcdir@&$ac_top_srcdir&;t t
42132s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42133s&@builddir@&$ac_builddir&;t t
42134s&@abs_builddir@&$ac_abs_builddir&;t t
42135s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42136s&@INSTALL@&$ac_INSTALL&;t t
42137s&@MKDIR_P@&$ac_MKDIR_P&;t t
42138$ac_datarootdir_hack
42139" $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
42140
42141test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42142  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
42143  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
42144  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42145which seems to be undefined.  Please make sure it is defined." >&5
42146echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42147which seems to be undefined.  Please make sure it is defined." >&2;}
42148
42149  rm -f "$tmp/stdin"
42150  case $ac_file in
42151  -) cat "$tmp/out"; rm -f "$tmp/out";;
42152  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
42153  esac
42154 ;;
42155  :H)
42156  #
42157  # CONFIG_HEADER
42158  #
42159_ACEOF
42160
42161# Transform confdefs.h into a sed script `conftest.defines', that
42162# substitutes the proper values into config.h.in to produce config.h.
42163rm -f conftest.defines conftest.tail
42164# First, append a space to every undef/define line, to ease matching.
42165echo 's/$/ /' >conftest.defines
42166# Then, protect against being on the right side of a sed subst, or in
42167# an unquoted here document, in config.status.  If some macros were
42168# called several times there might be several #defines for the same
42169# symbol, which is useless.  But do not sort them, since the last
42170# AC_DEFINE must be honored.
42171ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42172# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
42173# NAME is the cpp macro being defined, VALUE is the value it is being given.
42174# PARAMS is the parameter list in the macro definition--in most cases, it's
42175# just an empty string.
42176ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
42177ac_dB='\\)[	 (].*,\\1define\\2'
42178ac_dC=' '
42179ac_dD=' ,'
42180
42181uniq confdefs.h |
42182  sed -n '
42183	t rset
42184	:rset
42185	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
42186	t ok
42187	d
42188	:ok
42189	s/[\\&,]/\\&/g
42190	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
42191	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
42192  ' >>conftest.defines
42193
42194# Remove the space that was appended to ease matching.
42195# Then replace #undef with comments.  This is necessary, for
42196# example, in the case of _POSIX_SOURCE, which is predefined and required
42197# on some systems where configure will not decide to define it.
42198# (The regexp can be short, since the line contains either #define or #undef.)
42199echo 's/ $//
42200s,^[	 #]*u.*,/* & */,' >>conftest.defines
42201
42202# Break up conftest.defines:
42203ac_max_sed_lines=50
42204
42205# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
42206# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
42207# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
42208# et cetera.
42209ac_in='$ac_file_inputs'
42210ac_out='"$tmp/out1"'
42211ac_nxt='"$tmp/out2"'
42212
42213while :
42214do
42215  # Write a here document:
42216    cat >>$CONFIG_STATUS <<_ACEOF
42217    # First, check the format of the line:
42218    cat >"\$tmp/defines.sed" <<\\CEOF
42219/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*/b def
42220/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
42221b
42222:def
42223_ACEOF
42224  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
42225  echo 'CEOF
42226    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
42227  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
42228  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
42229  grep . conftest.tail >/dev/null || break
42230  rm -f conftest.defines
42231  mv conftest.tail conftest.defines
42232done
42233rm -f conftest.defines conftest.tail
42234
42235echo "ac_result=$ac_in" >>$CONFIG_STATUS
42236cat >>$CONFIG_STATUS <<\_ACEOF
42237  if test x"$ac_file" != x-; then
42238    echo "/* $configure_input  */" >"$tmp/config.h"
42239    cat "$ac_result" >>"$tmp/config.h"
42240    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
42241      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42242echo "$as_me: $ac_file is unchanged" >&6;}
42243    else
42244      rm -f $ac_file
42245      mv "$tmp/config.h" $ac_file
42246    fi
42247  else
42248    echo "/* $configure_input  */"
42249    cat "$ac_result"
42250  fi
42251  rm -f "$tmp/out12"
42252# Compute $ac_file's index in $config_headers.
42253_am_stamp_count=1
42254for _am_header in $config_headers :; do
42255  case $_am_header in
42256    $ac_file | $ac_file:* )
42257      break ;;
42258    * )
42259      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42260  esac
42261done
42262echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
42263$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42264	 X$ac_file : 'X\(//\)[^/]' \| \
42265	 X$ac_file : 'X\(//\)$' \| \
42266	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
42267echo X$ac_file |
42268    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42269	    s//\1/
42270	    q
42271	  }
42272	  /^X\(\/\/\)[^/].*/{
42273	    s//\1/
42274	    q
42275	  }
42276	  /^X\(\/\/\)$/{
42277	    s//\1/
42278	    q
42279	  }
42280	  /^X\(\/\).*/{
42281	    s//\1/
42282	    q
42283	  }
42284	  s/.*/./; q'`/stamp-h$_am_stamp_count
42285 ;;
42286
42287  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
42288echo "$as_me: executing $ac_file commands" >&6;}
42289 ;;
42290  esac
42291
42292
42293  case $ac_file$ac_mode in
42294    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
42295  # Strip MF so we end up with the name of the file.
42296  mf=`echo "$mf" | sed -e 's/:.*$//'`
42297  # Check whether this is an Automake generated Makefile or not.
42298  # We used to match only the files named `Makefile.in', but
42299  # some people rename them; so instead we look at the file content.
42300  # Grep'ing the first line is not enough: some people post-process
42301  # each Makefile.in and add a new line on top of each file to say so.
42302  # Grep'ing the whole file is not good either: AIX grep has a line
42303  # limit of 2048, but all sed's we know have understand at least 4000.
42304  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
42305    dirpart=`$as_dirname -- "$mf" ||
42306$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42307	 X"$mf" : 'X\(//\)[^/]' \| \
42308	 X"$mf" : 'X\(//\)$' \| \
42309	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
42310echo X"$mf" |
42311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42312	    s//\1/
42313	    q
42314	  }
42315	  /^X\(\/\/\)[^/].*/{
42316	    s//\1/
42317	    q
42318	  }
42319	  /^X\(\/\/\)$/{
42320	    s//\1/
42321	    q
42322	  }
42323	  /^X\(\/\).*/{
42324	    s//\1/
42325	    q
42326	  }
42327	  s/.*/./; q'`
42328  else
42329    continue
42330  fi
42331  # Extract the definition of DEPDIR, am__include, and am__quote
42332  # from the Makefile without running `make'.
42333  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42334  test -z "$DEPDIR" && continue
42335  am__include=`sed -n 's/^am__include = //p' < "$mf"`
42336  test -z "am__include" && continue
42337  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42338  # When using ansi2knr, U may be empty or an underscore; expand it
42339  U=`sed -n 's/^U = //p' < "$mf"`
42340  # Find all dependency output files, they are included files with
42341  # $(DEPDIR) in their names.  We invoke sed twice because it is the
42342  # simplest approach to changing $(DEPDIR) to its actual value in the
42343  # expansion.
42344  for file in `sed -n "
42345    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42346       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42347    # Make sure the directory exists.
42348    test -f "$dirpart/$file" && continue
42349    fdir=`$as_dirname -- "$file" ||
42350$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42351	 X"$file" : 'X\(//\)[^/]' \| \
42352	 X"$file" : 'X\(//\)$' \| \
42353	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
42354echo X"$file" |
42355    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42356	    s//\1/
42357	    q
42358	  }
42359	  /^X\(\/\/\)[^/].*/{
42360	    s//\1/
42361	    q
42362	  }
42363	  /^X\(\/\/\)$/{
42364	    s//\1/
42365	    q
42366	  }
42367	  /^X\(\/\).*/{
42368	    s//\1/
42369	    q
42370	  }
42371	  s/.*/./; q'`
42372    { as_dir=$dirpart/$fdir
42373  case $as_dir in #(
42374  -*) as_dir=./$as_dir;;
42375  esac
42376  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
42377    as_dirs=
42378    while :; do
42379      case $as_dir in #(
42380      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
42381      *) as_qdir=$as_dir;;
42382      esac
42383      as_dirs="'$as_qdir' $as_dirs"
42384      as_dir=`$as_dirname -- "$as_dir" ||
42385$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42386	 X"$as_dir" : 'X\(//\)[^/]' \| \
42387	 X"$as_dir" : 'X\(//\)$' \| \
42388	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42389echo X"$as_dir" |
42390    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42391	    s//\1/
42392	    q
42393	  }
42394	  /^X\(\/\/\)[^/].*/{
42395	    s//\1/
42396	    q
42397	  }
42398	  /^X\(\/\/\)$/{
42399	    s//\1/
42400	    q
42401	  }
42402	  /^X\(\/\).*/{
42403	    s//\1/
42404	    q
42405	  }
42406	  s/.*/./; q'`
42407      test -d "$as_dir" && break
42408    done
42409    test -z "$as_dirs" || eval "mkdir $as_dirs"
42410  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
42411echo "$as_me: error: cannot create directory $as_dir" >&2;}
42412   { (exit 1); exit 1; }; }; }
42413    # echo "creating $dirpart/$file"
42414    echo '# dummy' > "$dirpart/$file"
42415  done
42416done
42417 ;;
42418    "libtool":C)
42419
42420    # See if we are running on zsh, and set the options which allow our
42421    # commands through without removal of \ escapes.
42422    if test -n "${ZSH_VERSION+set}" ; then
42423      setopt NO_GLOB_SUBST
42424    fi
42425
42426    cfgfile="${ofile}T"
42427    trap "$RM -f \"$cfgfile\"; exit 1" 1 2 15
42428    $RM -f "$cfgfile"
42429
42430    cat <<_LT_EOF >> "$cfgfile"
42431#! $SHELL
42432
42433# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
42434# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
42435# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
42436# NOTE: Changes made to this file will be lost: look at ltmain.sh.
42437#
42438#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
42439#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
42440#                 Inc.
42441#   Written by Gordon Matzigkeit, 1996
42442#
42443#   This file is part of GNU Libtool.
42444#
42445# GNU Libtool is free software; you can redistribute it and/or
42446# modify it under the terms of the GNU General Public License as
42447# published by the Free Software Foundation; either version 2 of
42448# the License, or (at your option) any later version.
42449#
42450# As a special exception to the GNU General Public License,
42451# if you distribute this file as part of a program or library that
42452# is built using GNU Libtool, you may include this file under the
42453# same distribution terms that you use for the rest of that program.
42454#
42455# GNU Libtool is distributed in the hope that it will be useful,
42456# but WITHOUT ANY WARRANTY; without even the implied warranty of
42457# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
42458# GNU General Public License for more details.
42459#
42460# You should have received a copy of the GNU General Public License
42461# along with GNU Libtool; see the file COPYING.  If not, a copy
42462# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
42463# obtained by writing to the Free Software Foundation, Inc.,
42464# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
42465
42466
42467# The names of the tagged configurations supported by this script.
42468available_tags=""
42469
42470# ### BEGIN LIBTOOL CONFIG
42471
42472# Assembler program.
42473AS=$lt_AS
42474
42475# DLL creation program.
42476DLLTOOL=$lt_DLLTOOL
42477
42478# Object dumper program.
42479OBJDUMP=$lt_OBJDUMP
42480
42481# Whether or not to build static libraries.
42482build_old_libs=$enable_static
42483
42484# Which release of libtool.m4 was used?
42485macro_version=$macro_version
42486macro_revision=$macro_revision
42487
42488# Whether or not to build shared libraries.
42489build_libtool_libs=$enable_shared
42490
42491# What type of objects to build.
42492pic_mode=$pic_mode
42493
42494# Whether or not to optimize for fast installation.
42495fast_install=$enable_fast_install
42496
42497# Shell to use when invoking shell scripts.
42498SHELL=$lt_SHELL
42499
42500# An echo program that protects backslashes.
42501ECHO=$lt_ECHO
42502
42503# The host system.
42504host_alias=$host_alias
42505host=$host
42506host_os=$host_os
42507
42508# The build system.
42509build_alias=$build_alias
42510build=$build
42511build_os=$build_os
42512
42513# A sed program that does not truncate output.
42514SED=$lt_SED
42515
42516# Sed that helps us avoid accidentally triggering echo(1) options like -n.
42517Xsed="\$SED -e 1s/^X//"
42518
42519# A grep program that handles long lines.
42520GREP=$lt_GREP
42521
42522# An ERE matcher.
42523EGREP=$lt_EGREP
42524
42525# A literal string matcher.
42526FGREP=$lt_FGREP
42527
42528# A BSD- or MS-compatible name lister.
42529NM=$lt_NM
42530
42531# Whether we need soft or hard links.
42532LN_S=$lt_LN_S
42533
42534# What is the maximum length of a command?
42535max_cmd_len=$max_cmd_len
42536
42537# Object file suffix (normally "o").
42538objext=$ac_objext
42539
42540# Executable file suffix (normally "").
42541exeext=$exeext
42542
42543# whether the shell understands "unset".
42544lt_unset=$lt_unset
42545
42546# turn spaces into newlines.
42547SP2NL=$lt_lt_SP2NL
42548
42549# turn newlines into spaces.
42550NL2SP=$lt_lt_NL2SP
42551
42552# Method to check whether dependent libraries are shared objects.
42553deplibs_check_method=$lt_deplibs_check_method
42554
42555# Command to use when deplibs_check_method == "file_magic".
42556file_magic_cmd=$lt_file_magic_cmd
42557
42558# The archiver.
42559AR=$lt_AR
42560AR_FLAGS=$lt_AR_FLAGS
42561
42562# A symbol stripping program.
42563STRIP=$lt_STRIP
42564
42565# Commands used to install an old-style archive.
42566RANLIB=$lt_RANLIB
42567old_postinstall_cmds=$lt_old_postinstall_cmds
42568old_postuninstall_cmds=$lt_old_postuninstall_cmds
42569
42570# Whether to use a lock for old archive extraction.
42571lock_old_archive_extraction=$lock_old_archive_extraction
42572
42573# A C compiler.
42574LTCC=$lt_CC
42575
42576# LTCC compiler flags.
42577LTCFLAGS=$lt_CFLAGS
42578
42579# Take the output of nm and produce a listing of raw symbols and C names.
42580global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
42581
42582# Transform the output of nm in a proper C declaration.
42583global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
42584
42585# Transform the output of nm in a C name address pair.
42586global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
42587
42588# Transform the output of nm in a C name address pair when lib prefix is needed.
42589global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
42590
42591# The name of the directory that contains temporary libtool files.
42592objdir=$objdir
42593
42594# Used to examine libraries when file_magic_cmd begins with "file".
42595MAGIC_CMD=$MAGIC_CMD
42596
42597# Must we lock files when doing compilation?
42598need_locks=$lt_need_locks
42599
42600# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
42601DSYMUTIL=$lt_DSYMUTIL
42602
42603# Tool to change global to local symbols on Mac OS X.
42604NMEDIT=$lt_NMEDIT
42605
42606# Tool to manipulate fat objects and archives on Mac OS X.
42607LIPO=$lt_LIPO
42608
42609# ldd/readelf like tool for Mach-O binaries on Mac OS X.
42610OTOOL=$lt_OTOOL
42611
42612# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
42613OTOOL64=$lt_OTOOL64
42614
42615# Old archive suffix (normally "a").
42616libext=$libext
42617
42618# Shared library suffix (normally ".so").
42619shrext_cmds=$lt_shrext_cmds
42620
42621# The commands to extract the exported symbol list from a shared archive.
42622extract_expsyms_cmds=$lt_extract_expsyms_cmds
42623
42624# Variables whose values should be saved in libtool wrapper scripts and
42625# restored at link time.
42626variables_saved_for_relink=$lt_variables_saved_for_relink
42627
42628# Do we need the "lib" prefix for modules?
42629need_lib_prefix=$need_lib_prefix
42630
42631# Do we need a version for libraries?
42632need_version=$need_version
42633
42634# Library versioning type.
42635version_type=$version_type
42636
42637# Shared library runtime path variable.
42638runpath_var=$runpath_var
42639
42640# Shared library path variable.
42641shlibpath_var=$shlibpath_var
42642
42643# Is shlibpath searched before the hard-coded library search path?
42644shlibpath_overrides_runpath=$shlibpath_overrides_runpath
42645
42646# Format of library name prefix.
42647libname_spec=$lt_libname_spec
42648
42649# List of archive names.  First name is the real one, the rest are links.
42650# The last name is the one that the linker finds with -lNAME
42651library_names_spec=$lt_library_names_spec
42652
42653# The coded name of the library, if different from the real name.
42654soname_spec=$lt_soname_spec
42655
42656# Permission mode override for installation of shared libraries.
42657install_override_mode=$lt_install_override_mode
42658
42659# Command to use after installation of a shared archive.
42660postinstall_cmds=$lt_postinstall_cmds
42661
42662# Command to use after uninstallation of a shared archive.
42663postuninstall_cmds=$lt_postuninstall_cmds
42664
42665# Commands used to finish a libtool library installation in a directory.
42666finish_cmds=$lt_finish_cmds
42667
42668# As "finish_cmds", except a single script fragment to be evaled but
42669# not shown.
42670finish_eval=$lt_finish_eval
42671
42672# Whether we should hardcode library paths into libraries.
42673hardcode_into_libs=$hardcode_into_libs
42674
42675# Compile-time system search path for libraries.
42676sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
42677
42678# Run-time system search path for libraries.
42679sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
42680
42681# Whether dlopen is supported.
42682dlopen_support=$enable_dlopen
42683
42684# Whether dlopen of programs is supported.
42685dlopen_self=$enable_dlopen_self
42686
42687# Whether dlopen of statically linked programs is supported.
42688dlopen_self_static=$enable_dlopen_self_static
42689
42690# Commands to strip libraries.
42691old_striplib=$lt_old_striplib
42692striplib=$lt_striplib
42693
42694
42695# The linker used to build libraries.
42696LD=$lt_LD
42697
42698# How to create reloadable object files.
42699reload_flag=$lt_reload_flag
42700reload_cmds=$lt_reload_cmds
42701
42702# Commands used to build an old-style archive.
42703old_archive_cmds=$lt_old_archive_cmds
42704
42705# A language specific compiler.
42706CC=$lt_compiler
42707
42708# Is the compiler the GNU compiler?
42709with_gcc=$GCC
42710
42711# Compiler flag to turn off builtin functions.
42712no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
42713
42714# How to pass a linker flag through the compiler.
42715wl=$lt_lt_prog_compiler_wl
42716
42717# Additional compiler flags for building library objects.
42718pic_flag=$lt_lt_prog_compiler_pic
42719
42720# Compiler flag to prevent dynamic linking.
42721link_static_flag=$lt_lt_prog_compiler_static
42722
42723# Does compiler simultaneously support -c and -o options?
42724compiler_c_o=$lt_lt_cv_prog_compiler_c_o
42725
42726# Whether or not to add -lc for building shared libraries.
42727build_libtool_need_lc=$archive_cmds_need_lc
42728
42729# Whether or not to disallow shared libs when runtime libs are static.
42730allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
42731
42732# Compiler flag to allow reflexive dlopens.
42733export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
42734
42735# Compiler flag to generate shared objects directly from archives.
42736whole_archive_flag_spec=$lt_whole_archive_flag_spec
42737
42738# Whether the compiler copes with passing no objects directly.
42739compiler_needs_object=$lt_compiler_needs_object
42740
42741# Create an old-style archive from a shared archive.
42742old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
42743
42744# Create a temporary old-style archive to link instead of a shared archive.
42745old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
42746
42747# Commands used to build a shared archive.
42748archive_cmds=$lt_archive_cmds
42749archive_expsym_cmds=$lt_archive_expsym_cmds
42750
42751# Commands used to build a loadable module if different from building
42752# a shared archive.
42753module_cmds=$lt_module_cmds
42754module_expsym_cmds=$lt_module_expsym_cmds
42755
42756# Whether we are building with GNU ld or not.
42757with_gnu_ld=$lt_with_gnu_ld
42758
42759# Flag that allows shared libraries with undefined symbols to be built.
42760allow_undefined_flag=$lt_allow_undefined_flag
42761
42762# Flag that enforces no undefined symbols.
42763no_undefined_flag=$lt_no_undefined_flag
42764
42765# Flag to hardcode \$libdir into a binary during linking.
42766# This must work even if \$libdir does not exist
42767hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
42768
42769# If ld is used when linking, flag to hardcode \$libdir into a binary
42770# during linking.  This must work even if \$libdir does not exist.
42771hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
42772
42773# Whether we need a single "-rpath" flag with a separated argument.
42774hardcode_libdir_separator=$lt_hardcode_libdir_separator
42775
42776# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
42777# DIR into the resulting binary.
42778hardcode_direct=$hardcode_direct
42779
42780# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
42781# DIR into the resulting binary and the resulting library dependency is
42782# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
42783# library is relocated.
42784hardcode_direct_absolute=$hardcode_direct_absolute
42785
42786# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
42787# into the resulting binary.
42788hardcode_minus_L=$hardcode_minus_L
42789
42790# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
42791# into the resulting binary.
42792hardcode_shlibpath_var=$hardcode_shlibpath_var
42793
42794# Set to "yes" if building a shared library automatically hardcodes DIR
42795# into the library and all subsequent libraries and executables linked
42796# against it.
42797hardcode_automatic=$hardcode_automatic
42798
42799# Set to yes if linker adds runtime paths of dependent libraries
42800# to runtime path list.
42801inherit_rpath=$inherit_rpath
42802
42803# Whether libtool must link a program against all its dependency libraries.
42804link_all_deplibs=$link_all_deplibs
42805
42806# Fix the shell variable \$srcfile for the compiler.
42807fix_srcfile_path=$lt_fix_srcfile_path
42808
42809# Set to "yes" if exported symbols are required.
42810always_export_symbols=$always_export_symbols
42811
42812# The commands to list exported symbols.
42813export_symbols_cmds=$lt_export_symbols_cmds
42814
42815# Symbols that should not be listed in the preloaded symbols.
42816exclude_expsyms=$lt_exclude_expsyms
42817
42818# Symbols that must always be exported.
42819include_expsyms=$lt_include_expsyms
42820
42821# Commands necessary for linking programs (against libraries) with templates.
42822prelink_cmds=$lt_prelink_cmds
42823
42824# Specify filename containing input files.
42825file_list_spec=$lt_file_list_spec
42826
42827# How to hardcode a shared library path into an executable.
42828hardcode_action=$hardcode_action
42829
42830# ### END LIBTOOL CONFIG
42831
42832_LT_EOF
42833
42834  case $host_os in
42835  aix3*)
42836    cat <<\_LT_EOF >> "$cfgfile"
42837# AIX sometimes has problems with the GCC collect2 program.  For some
42838# reason, if we set the COLLECT_NAMES environment variable, the problems
42839# vanish in a puff of smoke.
42840if test "X${COLLECT_NAMES+set}" != Xset; then
42841  COLLECT_NAMES=
42842  export COLLECT_NAMES
42843fi
42844_LT_EOF
42845    ;;
42846  esac
42847
42848
42849ltmain="$ac_aux_dir/ltmain.sh"
42850
42851
42852  # We use sed instead of cat because bash on DJGPP gets confused if
42853  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
42854  # text mode, it properly converts lines to CR/LF.  This bash problem
42855  # is reportedly fixed, but why not run on old versions too?
42856  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
42857    || (rm -f "$cfgfile"; exit 1)
42858
42859  case $xsi_shell in
42860  yes)
42861    cat << \_LT_EOF >> "$cfgfile"
42862
42863# func_dirname file append nondir_replacement
42864# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
42865# otherwise set result to NONDIR_REPLACEMENT.
42866func_dirname ()
42867{
42868  case ${1} in
42869    */*) func_dirname_result="${1%/*}${2}" ;;
42870    *  ) func_dirname_result="${3}" ;;
42871  esac
42872}
42873
42874# func_basename file
42875func_basename ()
42876{
42877  func_basename_result="${1##*/}"
42878}
42879
42880# func_dirname_and_basename file append nondir_replacement
42881# perform func_basename and func_dirname in a single function
42882# call:
42883#   dirname:  Compute the dirname of FILE.  If nonempty,
42884#             add APPEND to the result, otherwise set result
42885#             to NONDIR_REPLACEMENT.
42886#             value returned in "$func_dirname_result"
42887#   basename: Compute filename of FILE.
42888#             value retuned in "$func_basename_result"
42889# Implementation must be kept synchronized with func_dirname
42890# and func_basename. For efficiency, we do not delegate to
42891# those functions but instead duplicate the functionality here.
42892func_dirname_and_basename ()
42893{
42894  case ${1} in
42895    */*) func_dirname_result="${1%/*}${2}" ;;
42896    *  ) func_dirname_result="${3}" ;;
42897  esac
42898  func_basename_result="${1##*/}"
42899}
42900
42901# func_stripname prefix suffix name
42902# strip PREFIX and SUFFIX off of NAME.
42903# PREFIX and SUFFIX must not contain globbing or regex special
42904# characters, hashes, percent signs, but SUFFIX may contain a leading
42905# dot (in which case that matches only a dot).
42906func_stripname ()
42907{
42908  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
42909  # positional parameters, so assign one to ordinary parameter first.
42910  func_stripname_result=${3}
42911  func_stripname_result=${func_stripname_result#"${1}"}
42912  func_stripname_result=${func_stripname_result%"${2}"}
42913}
42914
42915# func_opt_split
42916func_opt_split ()
42917{
42918  func_opt_split_opt=${1%%=*}
42919  func_opt_split_arg=${1#*=}
42920}
42921
42922# func_lo2o object
42923func_lo2o ()
42924{
42925  case ${1} in
42926    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
42927    *)    func_lo2o_result=${1} ;;
42928  esac
42929}
42930
42931# func_xform libobj-or-source
42932func_xform ()
42933{
42934  func_xform_result=${1%.*}.lo
42935}
42936
42937# func_arith arithmetic-term...
42938func_arith ()
42939{
42940  func_arith_result=$(( $* ))
42941}
42942
42943# func_len string
42944# STRING may not start with a hyphen.
42945func_len ()
42946{
42947  func_len_result=${#1}
42948}
42949
42950_LT_EOF
42951    ;;
42952  *) # Bourne compatible functions.
42953    cat << \_LT_EOF >> "$cfgfile"
42954
42955# func_dirname file append nondir_replacement
42956# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
42957# otherwise set result to NONDIR_REPLACEMENT.
42958func_dirname ()
42959{
42960  # Extract subdirectory from the argument.
42961  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
42962  if test "X$func_dirname_result" = "X${1}"; then
42963    func_dirname_result="${3}"
42964  else
42965    func_dirname_result="$func_dirname_result${2}"
42966  fi
42967}
42968
42969# func_basename file
42970func_basename ()
42971{
42972  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
42973}
42974
42975
42976# func_stripname prefix suffix name
42977# strip PREFIX and SUFFIX off of NAME.
42978# PREFIX and SUFFIX must not contain globbing or regex special
42979# characters, hashes, percent signs, but SUFFIX may contain a leading
42980# dot (in which case that matches only a dot).
42981# func_strip_suffix prefix name
42982func_stripname ()
42983{
42984  case ${2} in
42985    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
42986    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
42987  esac
42988}
42989
42990# sed scripts:
42991my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
42992my_sed_long_arg='1s/^-[^=]*=//'
42993
42994# func_opt_split
42995func_opt_split ()
42996{
42997  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
42998  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
42999}
43000
43001# func_lo2o object
43002func_lo2o ()
43003{
43004  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
43005}
43006
43007# func_xform libobj-or-source
43008func_xform ()
43009{
43010  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
43011}
43012
43013# func_arith arithmetic-term...
43014func_arith ()
43015{
43016  func_arith_result=`expr "$@"`
43017}
43018
43019# func_len string
43020# STRING may not start with a hyphen.
43021func_len ()
43022{
43023  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
43024}
43025
43026_LT_EOF
43027esac
43028
43029case $lt_shell_append in
43030  yes)
43031    cat << \_LT_EOF >> "$cfgfile"
43032
43033# func_append var value
43034# Append VALUE to the end of shell variable VAR.
43035func_append ()
43036{
43037  eval "$1+=\$2"
43038}
43039_LT_EOF
43040    ;;
43041  *)
43042    cat << \_LT_EOF >> "$cfgfile"
43043
43044# func_append var value
43045# Append VALUE to the end of shell variable VAR.
43046func_append ()
43047{
43048  eval "$1=\$$1\$2"
43049}
43050
43051_LT_EOF
43052    ;;
43053  esac
43054
43055
43056  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
43057    || (rm -f "$cfgfile"; exit 1)
43058
43059  mv -f "$cfgfile" "$ofile" ||
43060    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43061  chmod +x "$ofile"
43062
43063 ;;
43064    "sdksyms":C) touch hw/xfree86/loader/sdksyms.dep ;;
43065
43066  esac
43067done # for ac_tag
43068
43069
43070{ (exit 0); exit 0; }
43071_ACEOF
43072chmod +x $CONFIG_STATUS
43073ac_clean_files=$ac_clean_files_save
43074
43075
43076# configure is writing to config.log, and then calls config.status.
43077# config.status does its own redirection, appending to config.log.
43078# Unfortunately, on DOS this fails, as config.log is still kept open
43079# by configure, so config.status won't be able to write to it; its
43080# output is simply discarded.  So we exec the FD to /dev/null,
43081# effectively closing config.log, so it can be properly (re)opened and
43082# appended to by config.status.  When coming back to configure, we
43083# need to make the FD available again.
43084if test "$no_create" != yes; then
43085  ac_cs_success=:
43086  ac_config_status_args=
43087  test "$silent" = yes &&
43088    ac_config_status_args="$ac_config_status_args --quiet"
43089  exec 5>/dev/null
43090  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43091  exec 5>>config.log
43092  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43093  # would make configure fail if this is the last instruction.
43094  $ac_cs_success || { (exit 1); exit 1; }
43095fi
43096
43097