xref: /OK3568_Linux_fs/external/xserver/configure (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xorg-server 1.20.11.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://gitlab.freedesktop.org/xorg/xserver/issues
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568as_awk_strverscmp='
569  # Use only awk features that work with 7th edition Unix awk (1978).
570  # My, what an old awk you have, Mr. Solaris!
571  END {
572    while (length(v1) && length(v2)) {
573      # Set d1 to be the next thing to compare from v1, and likewise for d2.
574      # Normally this is a single character, but if v1 and v2 contain digits,
575      # compare them as integers and fractions as strverscmp does.
576      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
577	# Split v1 and v2 into their leading digit string components d1 and d2,
578	# and advance v1 and v2 past the leading digit strings.
579	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
580	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
581	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
582	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
583	if (d1 ~ /^0/) {
584	  if (d2 ~ /^0/) {
585	    # Compare two fractions.
586	    while (d1 ~ /^0/ && d2 ~ /^0/) {
587	      d1 = substr(d1, 2); len1--
588	      d2 = substr(d2, 2); len2--
589	    }
590	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
591	      # The two components differ in length, and the common prefix
592	      # contains only leading zeros.  Consider the longer to be less.
593	      d1 = -len1
594	      d2 = -len2
595	    } else {
596	      # Otherwise, compare as strings.
597	      d1 = "x" d1
598	      d2 = "x" d2
599	    }
600	  } else {
601	    # A fraction is less than an integer.
602	    exit 1
603	  }
604	} else {
605	  if (d2 ~ /^0/) {
606	    # An integer is greater than a fraction.
607	    exit 2
608	  } else {
609	    # Compare two integers.
610	    d1 += 0
611	    d2 += 0
612	  }
613	}
614      } else {
615	# The normal case, without worrying about digits.
616	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
617	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
618      }
619      if (d1 < d2) exit 1
620      if (d1 > d2) exit 2
621    }
622    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
623    # which mishandles some comparisons of empty strings to integers.
624    if (length(v2)) exit 1
625    if (length(v1)) exit 2
626  }
627'
628SHELL=${CONFIG_SHELL-/bin/sh}
629
630
631test -n "$DJDIR" || exec 7<&0 </dev/null
632exec 6>&1
633
634# Name of the host.
635# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
636# so uname gets run too.
637ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
638
639#
640# Initializations.
641#
642ac_default_prefix=/usr/local
643ac_clean_files=
644ac_config_libobj_dir=.
645LIBOBJS=
646cross_compiling=no
647subdirs=
648MFLAGS=
649MAKEFLAGS=
650
651# Identity of this package.
652PACKAGE_NAME='xorg-server'
653PACKAGE_TARNAME='xorg-server'
654PACKAGE_VERSION='1.20.11'
655PACKAGE_STRING='xorg-server 1.20.11'
656PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/xserver/issues'
657PACKAGE_URL=''
658
659ac_unique_file="Makefile.am"
660# Factoring default headers for most tests.
661ac_includes_default="\
662#include <stdio.h>
663#ifdef HAVE_SYS_TYPES_H
664# include <sys/types.h>
665#endif
666#ifdef HAVE_SYS_STAT_H
667# include <sys/stat.h>
668#endif
669#ifdef STDC_HEADERS
670# include <stdlib.h>
671# include <stddef.h>
672#else
673# ifdef HAVE_STDLIB_H
674#  include <stdlib.h>
675# endif
676#endif
677#ifdef HAVE_STRING_H
678# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
679#  include <memory.h>
680# endif
681# include <string.h>
682#endif
683#ifdef HAVE_STRINGS_H
684# include <strings.h>
685#endif
686#ifdef HAVE_INTTYPES_H
687# include <inttypes.h>
688#endif
689#ifdef HAVE_STDINT_H
690# include <stdint.h>
691#endif
692#ifdef HAVE_UNISTD_H
693# include <unistd.h>
694#endif"
695
696ac_config_libobj_dir=os
697ac_subst_vars='am__EXEEXT_FALSE
698am__EXEEXT_TRUE
699LTLIBOBJS
700DIX_CFLAGS
701BUILD_TIME
702BUILD_DATE
703RELEASE_DATE
704SYSCONFDIR
705PROJECTROOT
706XWAYLAND_EGLSTREAM_FALSE
707XWAYLAND_EGLSTREAM_TRUE
708WAYLAND_PROTOCOLS_DATADIR
709SCANNER_ARG
710WAYLAND_SCANNER_LIBS
711WAYLAND_SCANNER_CFLAGS
712WAYLAND_SCANNER
713XWAYLAND_SYS_LIBS
714XWAYLAND_LIBS
715WAYLAND_EGLSTREAM_DATADIR
716WAYLAND_EGLSTREAM_LIBS
717WAYLAND_EGLSTREAM_CFLAGS
718XWAYLAND_FALSE
719XWAYLAND_TRUE
720XWAYLANDMODULES_LIBS
721XWAYLANDMODULES_CFLAGS
722XEPHYR_FALSE
723XEPHYR_TRUE
724KDRIVE_LIBS
725KDRIVE_LOCAL_LIBS
726KDRIVE_MAIN_LIB
727KDRIVE_PURE_LIBS
728KDRIVE_CFLAGS
729KDRIVE_PURE_INCS
730KDRIVE_INCS
731XEPHYR_INCS
732XEPHYR_LIBS
733XEPHYR_CFLAGS
734KDRIVE_FALSE
735KDRIVE_TRUE
736DMX_BUILD_USB_FALSE
737DMX_BUILD_USB_TRUE
738X11EXAMPLES_DEP_LIBS
739X11EXAMPLES_DEP_CFLAGS
740XRESEXAMPLES_DEP_LIBS
741XRESEXAMPLES_DEP_CFLAGS
742XTSTEXAMPLES_DEP_LIBS
743XTSTEXAMPLES_DEP_CFLAGS
744DMXXIEXAMPLES_DEP_LIBS
745DMXXIEXAMPLES_DEP_CFLAGS
746DMXXMUEXAMPLES_DEP_LIBS
747DMXXMUEXAMPLES_DEP_CFLAGS
748DMXEXAMPLES_DEP_LIBS
749DMXEXAMPLES_DEP_CFLAGS
750XDMX_SYS_LIBS
751XDMX_LIBS
752XDMX_CFLAGS
753DMX_FALSE
754DMX_TRUE
755XDMXCONFIG_DEP_LIBS
756XDMXCONFIG_DEP_CFLAGS
757DMXMODULES_LIBS
758DMXMODULES_CFLAGS
759STANDALONE_XPBPROXY_FALSE
760STANDALONE_XPBPROXY_TRUE
761XQUARTZ_SPARKLE_FALSE
762XQUARTZ_SPARKLE_TRUE
763XQUARTZ_FALSE
764XQUARTZ_TRUE
765am__fastdepOBJC_FALSE
766am__fastdepOBJC_TRUE
767OBJCDEPMODE
768OBJCFLAGS
769OBJCLINK
770OBJCCLD
771OBJC
772PSEUDORAMIX_FALSE
773PSEUDORAMIX_TRUE
774XPBPROXY_LIBS
775XPBPROXY_CFLAGS
776XQUARTZ_LIBS
777XWIN_WINDOWS_DRI_FALSE
778XWIN_WINDOWS_DRI_TRUE
779XWIN_GLX_WINDOWS_FALSE
780XWIN_GLX_WINDOWS_TRUE
781XWIN_MULTIWINDOWEXTWM_FALSE
782XWIN_MULTIWINDOWEXTWM_TRUE
783XWIN_FALSE
784XWIN_TRUE
785KHRONOS_SPEC_DIR
786KHRONOS_OPENGL_REGISTRY_LIBS
787KHRONOS_OPENGL_REGISTRY_CFLAGS
788PYTHON3
789XWIN_SYS_LIBS
790XWIN_SERVER_NAME
791XWIN_LIBS
792WINDOWSDRI_LIBS
793WINDOWSDRI_CFLAGS
794WINDOWSWM_LIBS
795WINDOWSWM_CFLAGS
796XWINMODULES_LIBS
797XWINMODULES_CFLAGS
798WINDRES
799GLAMOR_EGL_FALSE
800GLAMOR_EGL_TRUE
801GBM_LIBS
802GBM_CFLAGS
803GLAMOR_LIBS
804GLAMOR_CFLAGS
805GLAMOR_FALSE
806GLAMOR_TRUE
807XORG_DRIVER_MODESETTING_FALSE
808XORG_DRIVER_MODESETTING_TRUE
809XORG_BUS_PLATFORM_FALSE
810XORG_BUS_PLATFORM_TRUE
811DGA_FALSE
812DGA_TRUE
813SOLARIS_VT_FALSE
814SOLARIS_VT_TRUE
815LNXAPM_FALSE
816LNXAPM_TRUE
817LNXACPI_FALSE
818LNXACPI_TRUE
819XORG_BUS_SPARC_FALSE
820XORG_BUS_SPARC_TRUE
821XORG_BUS_BSDPCI_FALSE
822XORG_BUS_BSDPCI_TRUE
823XORG_BUS_PCI_FALSE
824XORG_BUS_PCI_TRUE
825XORG_FALSE
826XORG_TRUE
827abi_extension
828abi_xinput
829abi_videodrv
830abi_ansic
831logdir
832sysconfigdir
833extdir
834sdkdir
835driverdir
836moduledir
837DEFAULT_XDG_DATA_HOME_LOGDIR
838DEFAULT_XDG_DATA_HOME
839DEFAULT_LOGPREFIX
840DEFAULT_LOGDIR
841DEFAULT_LIBRARY_PATH
842DEFAULT_MODULE_PATH
843XCONFIGDIR
844XF86CONFIGFILE
845XCONFIGFILE
846XF86CONFIGDIR
847XORG_CFLAGS
848XORG_OS_SUBDIR
849XORG_INCS
850XORG_SYS_LIBS
851XORG_LIBS
852XORG_MODULES_LIBS
853XORG_MODULES_CFLAGS
854DGA_LIBS
855DGA_CFLAGS
856SOLARIS_INOUT_ARCH
857PCI_TXT_IDS_PATH
858PCIACCESS_LIBS
859PCIACCESS_CFLAGS
860symbol_visibility
861XNEST_SYS_LIBS
862XNEST_LIBS
863XNEST_FALSE
864XNEST_TRUE
865XNESTMODULES_LIBS
866XNESTMODULES_CFLAGS
867XVFB_SYS_LIBS
868XVFB_LIBS
869XVFB_FALSE
870XVFB_TRUE
871NO_UNDEFINED_FALSE
872NO_UNDEFINED_TRUE
873CYGWIN_FALSE
874CYGWIN_TRUE
875XORG_DRIVER_LIBS
876LD_NO_UNDEFINED_FLAG
877LD_EXPORT_SYMBOLS_FLAG
878UTILS_SYS_LIBS
879XSERVER_SYS_LIBS
880XSERVER_LIBS
881HAVE_LIBUNWIND_FALSE
882HAVE_LIBUNWIND_TRUE
883LIBUNWIND_LIBS
884LIBUNWIND_CFLAGS
885XSERVERLIBS_LIBS
886XSERVERLIBS_CFLAGS
887XSERVERCFLAGS_LIBS
888XSERVERCFLAGS_CFLAGS
889SHA1_CFLAGS
890SHA1_LIBS
891OPENSSL_LIBS
892OPENSSL_CFLAGS
893LIBSHA1_LIBS
894LIBSHA1_CFLAGS
895MAIN_LIB
896OS_LIB
897DIX_LIB
898DEBUG_FALSE
899DEBUG_TRUE
900VENDOR_NAME_SHORT
901DRI_DRIVER_PATH
902BASE_FONT_PATH
903SERVER_MISC_CONFIG_PATH
904COMPILEDDEFAULTFONTPATH
905XF86VIDMODE_FALSE
906XF86VIDMODE_TRUE
907XDMAUTH_FALSE
908XDMAUTH_TRUE
909XDMCP_FALSE
910XDMCP_TRUE
911XDMCP_LIBS
912XDMCP_CFLAGS
913XKB_DFLT_OPTIONS
914XKB_DFLT_VARIANT
915XKB_DFLT_LAYOUT
916XKB_DFLT_MODEL
917XKB_DFLT_RULES
918XKB_COMPILED_DIR
919XKM_OUTPUT_DIR
920XKB_BIN_DIRECTORY
921XKB_BASE_DIRECTORY
922INT10MODULE_FALSE
923INT10MODULE_TRUE
924VBE_FALSE
925VBE_TRUE
926VGAHW_FALSE
927VGAHW_TRUE
928XF86UTILS_FALSE
929XF86UTILS_TRUE
930DPMSExtension_FALSE
931DPMSExtension_TRUE
932XF86BIGFONT_FALSE
933XF86BIGFONT_TRUE
934DBE_FALSE
935DBE_TRUE
936XCSECURITY_FALSE
937XCSECURITY_TRUE
938SELINUX_LIBS
939SELINUX_CFLAGS
940XSELINUX_FALSE
941XSELINUX_TRUE
942XACE_FALSE
943XACE_TRUE
944XINERAMA_FALSE
945XINERAMA_TRUE
946PRESENT_FALSE
947PRESENT_TRUE
948GLX_SYS_LIBS
949GLX_DEFINES
950HASHTABLE_FALSE
951HASHTABLE_TRUE
952GLX_FALSE
953GLX_TRUE
954GL_LIBS
955GL_CFLAGS
956XLIB_LIBS
957XLIB_CFLAGS
958LIBDRM_LIBS
959LIBDRM_CFLAGS
960DRI3_FALSE
961DRI3_TRUE
962XSHMFENCE_FALSE
963XSHMFENCE_TRUE
964XSHMFENCE_LIBS
965XSHMFENCE_CFLAGS
966BUSFAULT_FALSE
967BUSFAULT_TRUE
968DRI3PROTO_LIBS
969DRI3PROTO_CFLAGS
970DRI2_FALSE
971DRI2_TRUE
972DRI2PROTO_LIBS
973DRI2PROTO_CFLAGS
974DRI_FALSE
975DRI_TRUE
976CLIENTIDS_FALSE
977CLIENTIDS_TRUE
978RES_FALSE
979RES_TRUE
980SCREENSAVER_FALSE
981SCREENSAVER_TRUE
982RECORD_FALSE
983RECORD_TRUE
984MITSHM_FALSE
985MITSHM_TRUE
986COMPOSITE_FALSE
987COMPOSITE_TRUE
988XVMC_FALSE
989XVMC_TRUE
990XV_FALSE
991XV_TRUE
992CONFIG_WSCONS_FALSE
993CONFIG_WSCONS_TRUE
994NEED_DBUS_FALSE
995NEED_DBUS_TRUE
996SUID_WRAPPER_FALSE
997SUID_WRAPPER_TRUE
998SUID_WRAPPER_DIR
999SYSTEMD_LOGIND_FALSE
1000SYSTEMD_LOGIND_TRUE
1001CONFIG_HAL_FALSE
1002CONFIG_HAL_TRUE
1003HAL_LIBS
1004HAL_CFLAGS
1005HAVE_DBUS_FALSE
1006HAVE_DBUS_TRUE
1007DBUS_LIBS
1008DBUS_CFLAGS
1009CONFIG_UDEV_KMS_FALSE
1010CONFIG_UDEV_KMS_TRUE
1011CONFIG_UDEV_FALSE
1012CONFIG_UDEV_TRUE
1013UDEV_LIBS
1014UDEV_CFLAGS
1015HAVE_SYSTEMD_DAEMON_FALSE
1016HAVE_SYSTEMD_DAEMON_TRUE
1017SYSTEMD_DAEMON_LIBS
1018SYSTEMD_DAEMON_CFLAGS
1019PTHREAD_CFLAGS
1020PTHREAD_LIBS
1021PTHREAD_CC
1022ax_pthread_config
1023SDK_REQUIRED_MODULES
1024PIXMAN_LIBS
1025PIXMAN_CFLAGS
1026INT10_STUB_FALSE
1027INT10_STUB_TRUE
1028INT10_X86EMU_FALSE
1029INT10_X86EMU_TRUE
1030INT10_VM86_FALSE
1031INT10_VM86_TRUE
1032SECURE_RPC_FALSE
1033SECURE_RPC_TRUE
1034INSTALL_SETUID_FALSE
1035INSTALL_SETUID_TRUE
1036XQUARTZ_SPARKLE_FEED_URL
1037XQUARTZ_SPARKLE
1038BUNDLE_VERSION_STRING
1039BUNDLE_VERSION
1040BUNDLE_ID_PREFIX
1041APPLE_APPLICATION_NAME
1042APPLE_APPLICATIONS_DIR
1043FONT100DPIDIR
1044FONT75DPIDIR
1045FONTTYPE1DIR
1046FONTTTFDIR
1047FONTOTFDIR
1048FONTMISCDIR
1049FONTROOTDIR
1050SPARC64_VIDEO_FALSE
1051SPARC64_VIDEO_TRUE
1052PPC_VIDEO_FALSE
1053PPC_VIDEO_TRUE
1054I386_VIDEO_FALSE
1055I386_VIDEO_TRUE
1056ARM_VIDEO_FALSE
1057ARM_VIDEO_TRUE
1058ALPHA_VIDEO_FALSE
1059ALPHA_VIDEO_TRUE
1060GLX_ARCH_DEFINES
1061BSD_KQUEUE_APM_FALSE
1062BSD_KQUEUE_APM_TRUE
1063BSD_APM_FALSE
1064BSD_APM_TRUE
1065FREEBSD_KLDLOAD_FALSE
1066FREEBSD_KLDLOAD_TRUE
1067FBDEVHW_FALSE
1068FBDEVHW_TRUE
1069AGP_FALSE
1070AGP_TRUE
1071POLL_FALSE
1072POLL_TRUE
1073LIBOBJS
1074DLOPEN_LIBS
1075SPECIAL_DTRACE_OBJECTS_FALSE
1076SPECIAL_DTRACE_OBJECTS_TRUE
1077XSERVER_DTRACE_FALSE
1078XSERVER_DTRACE_TRUE
1079DTRACE
1080TRADITIONALCPPFLAGS
1081RAWCPPFLAGS
1082RAWCPP
1083YFLAGS
1084YACC
1085LEXLIB
1086LEX_OUTPUT_ROOT
1087LEX
1088LT_SYS_LIBRARY_PATH
1089OTOOL64
1090OTOOL
1091LIPO
1092NMEDIT
1093DSYMUTIL
1094MANIFEST_TOOL
1095RANLIB
1096ac_ct_AR
1097AR
1098NM
1099ac_ct_DUMPBIN
1100DUMPBIN
1101LD
1102FGREP
1103LIBTOOL
1104OBJDUMP
1105DLLTOOL
1106AS
1107LN_S
1108am__fastdepCCAS_FALSE
1109am__fastdepCCAS_TRUE
1110CCASDEPMODE
1111CCASFLAGS
1112CCAS
1113HAVE_LD_WRAP_FALSE
1114HAVE_LD_WRAP_TRUE
1115ENABLE_UNIT_TESTS_FALSE
1116ENABLE_UNIT_TESTS_TRUE
1117XORG_MALLOC_DEBUG_ENV
1118HAVE_XSLTPROC_FALSE
1119HAVE_XSLTPROC_TRUE
1120XSLTPROC
1121HAVE_FOP_FALSE
1122HAVE_FOP_TRUE
1123FOP
1124HAVE_XMLTO_FALSE
1125HAVE_XMLTO_TRUE
1126HAVE_XMLTO_TEXT_FALSE
1127HAVE_XMLTO_TEXT_TRUE
1128XMLTO
1129ENABLE_DEVEL_DOCS_FALSE
1130ENABLE_DEVEL_DOCS_TRUE
1131ENABLE_DOCS_FALSE
1132ENABLE_DOCS_TRUE
1133HAVE_STYLESHEETS_FALSE
1134HAVE_STYLESHEETS_TRUE
1135XSL_STYLESHEET
1136STYLESHEET_SRCDIR
1137XORG_SGML_PATH
1138HAVE_DOXYGEN_FALSE
1139HAVE_DOXYGEN_TRUE
1140HAVE_DOT_FALSE
1141HAVE_DOT_TRUE
1142HAVE_DOT
1143DOT
1144DOXYGEN
1145MAN_SUBSTS
1146XORG_MAN_PAGE
1147ADMIN_MAN_DIR
1148DRIVER_MAN_DIR
1149MISC_MAN_DIR
1150FILE_MAN_DIR
1151LIB_MAN_DIR
1152APP_MAN_DIR
1153ADMIN_MAN_SUFFIX
1154DRIVER_MAN_SUFFIX
1155MISC_MAN_SUFFIX
1156FILE_MAN_SUFFIX
1157LIB_MAN_SUFFIX
1158APP_MAN_SUFFIX
1159SED
1160host_os
1161host_vendor
1162host_cpu
1163host
1164build_os
1165build_vendor
1166build_cpu
1167build
1168INSTALL_CMD
1169PKG_CONFIG_LIBDIR
1170PKG_CONFIG_PATH
1171PKG_CONFIG
1172CHANGELOG_CMD
1173STRICT_CFLAGS
1174CWARNFLAGS
1175BASE_CFLAGS
1176EGREP
1177GREP
1178CPP
1179am__fastdepCC_FALSE
1180am__fastdepCC_TRUE
1181CCDEPMODE
1182am__nodep
1183AMDEPBACKSLASH
1184AMDEP_FALSE
1185AMDEP_TRUE
1186am__include
1187DEPDIR
1188OBJEXT
1189EXEEXT
1190ac_ct_CC
1191CPPFLAGS
1192LDFLAGS
1193CFLAGS
1194CC
1195AM_BACKSLASH
1196AM_DEFAULT_VERBOSITY
1197AM_DEFAULT_V
1198AM_V
1199am__untar
1200am__tar
1201AMTAR
1202am__leading_dot
1203SET_MAKE
1204AWK
1205mkdir_p
1206MKDIR_P
1207INSTALL_STRIP_PROGRAM
1208STRIP
1209install_sh
1210MAKEINFO
1211AUTOHEADER
1212AUTOMAKE
1213AUTOCONF
1214ACLOCAL
1215VERSION
1216PACKAGE
1217CYGPATH_W
1218am__isrc
1219INSTALL_DATA
1220INSTALL_SCRIPT
1221INSTALL_PROGRAM
1222target_alias
1223host_alias
1224build_alias
1225LIBS
1226ECHO_T
1227ECHO_N
1228ECHO_C
1229DEFS
1230mandir
1231localedir
1232libdir
1233psdir
1234pdfdir
1235dvidir
1236htmldir
1237infodir
1238docdir
1239oldincludedir
1240includedir
1241runstatedir
1242localstatedir
1243sharedstatedir
1244sysconfdir
1245datadir
1246datarootdir
1247libexecdir
1248sbindir
1249bindir
1250program_transform_name
1251prefix
1252exec_prefix
1253PACKAGE_URL
1254PACKAGE_BUGREPORT
1255PACKAGE_STRING
1256PACKAGE_VERSION
1257PACKAGE_TARNAME
1258PACKAGE_NAME
1259PATH_SEPARATOR
1260SHELL
1261am__quote'
1262ac_subst_files=''
1263ac_user_opts='
1264enable_option_checking
1265enable_silent_rules
1266enable_dependency_tracking
1267enable_selective_werror
1268enable_strict_compilation
1269with_doxygen
1270enable_docs
1271enable_devel_docs
1272with_xmlto
1273with_fop
1274with_xsltproc
1275enable_unit_tests
1276enable_static
1277enable_shared
1278with_pic
1279enable_fast_install
1280with_aix_soname
1281with_gnu_ld
1282with_sysroot
1283enable_libtool_lock
1284enable_largefile
1285with_dtrace
1286enable_werror
1287enable_debug
1288with_int10
1289with_vendor_name
1290with_vendor_name_short
1291with_vendor_web
1292with_module_dir
1293with_log_dir
1294with_builder_addr
1295with_os_name
1296with_os_vendor
1297with_builderstring
1298enable_listen_tcp
1299enable_listen_unix
1300enable_listen_local
1301with_fallback_input_driver
1302with_fontrootdir
1303with_fontmiscdir
1304with_fontotfdir
1305with_fontttfdir
1306with_fonttype1dir
1307with_font75dpidir
1308with_font100dpidir
1309with_default_font_path
1310with_xkb_path
1311with_xkb_output
1312with_default_xkb_rules
1313with_default_xkb_model
1314with_default_xkb_layout
1315with_default_xkb_variant
1316with_default_xkb_options
1317with_serverconfig_path
1318with_apple_applications_dir
1319with_apple_application_name
1320with_bundle_id_prefix
1321with_bundle_version
1322with_bundle_version_string
1323enable_sparkle
1324with_sparkle_feed_url
1325enable_visibility
1326with_khronos_spec_dir
1327enable_composite
1328enable_mitshm
1329enable_xres
1330enable_record
1331enable_xv
1332enable_xvmc
1333enable_dga
1334enable_screensaver
1335enable_xdmcp
1336enable_xdm_auth_1
1337enable_glx
1338enable_dri
1339enable_dri2
1340enable_dri3
1341enable_present
1342enable_xinerama
1343enable_xf86vidmode
1344enable_xace
1345enable_xselinux
1346enable_xcsecurity
1347enable_dbe
1348enable_xf86bigfont
1349enable_dpms
1350enable_config_udev
1351enable_config_udev_kms
1352enable_config_hal
1353enable_config_wscons
1354enable_xfree86_utils
1355enable_vgahw
1356enable_vbe
1357enable_int10_module
1358enable_windowswm
1359enable_windowsdri
1360enable_libdrm
1361enable_clientids
1362enable_pciaccess
1363enable_linux_acpi
1364enable_linux_apm
1365enable_systemd_logind
1366enable_suid_wrapper
1367enable_xorg
1368enable_dmx
1369enable_xvfb
1370enable_xnest
1371enable_xquartz
1372enable_xwayland
1373enable_xwayland_eglstream
1374enable_standalone_xpbproxy
1375enable_xwin
1376enable_glamor
1377enable_kdrive
1378enable_xephyr
1379enable_libunwind
1380enable_xshmfence
1381enable_install_setuid
1382enable_unix_transport
1383enable_tcp_transport
1384enable_ipv6
1385enable_local_transport
1386enable_secure_rpc
1387enable_input_thread
1388with_systemd_daemon
1389enable_xtrans_send_fds
1390with_xkb_bin_directory
1391with_sha1
1392'
1393      ac_precious_vars='build_alias
1394host_alias
1395target_alias
1396CC
1397CFLAGS
1398LDFLAGS
1399LIBS
1400CPPFLAGS
1401CPP
1402PKG_CONFIG
1403PKG_CONFIG_PATH
1404PKG_CONFIG_LIBDIR
1405DOXYGEN
1406DOT
1407XMLTO
1408FOP
1409XSLTPROC
1410XORG_MALLOC_DEBUG_ENV
1411CCAS
1412CCASFLAGS
1413LT_SYS_LIBRARY_PATH
1414YACC
1415YFLAGS
1416PIXMAN_CFLAGS
1417PIXMAN_LIBS
1418SYSTEMD_DAEMON_CFLAGS
1419SYSTEMD_DAEMON_LIBS
1420UDEV_CFLAGS
1421UDEV_LIBS
1422DBUS_CFLAGS
1423DBUS_LIBS
1424HAL_CFLAGS
1425HAL_LIBS
1426DRI2PROTO_CFLAGS
1427DRI2PROTO_LIBS
1428DRI3PROTO_CFLAGS
1429DRI3PROTO_LIBS
1430XSHMFENCE_CFLAGS
1431XSHMFENCE_LIBS
1432LIBDRM_CFLAGS
1433LIBDRM_LIBS
1434XLIB_CFLAGS
1435XLIB_LIBS
1436GL_CFLAGS
1437GL_LIBS
1438SELINUX_CFLAGS
1439SELINUX_LIBS
1440XDMCP_CFLAGS
1441XDMCP_LIBS
1442LIBSHA1_CFLAGS
1443LIBSHA1_LIBS
1444OPENSSL_CFLAGS
1445OPENSSL_LIBS
1446XSERVERCFLAGS_CFLAGS
1447XSERVERCFLAGS_LIBS
1448XSERVERLIBS_CFLAGS
1449XSERVERLIBS_LIBS
1450LIBUNWIND_CFLAGS
1451LIBUNWIND_LIBS
1452XNESTMODULES_CFLAGS
1453XNESTMODULES_LIBS
1454PCIACCESS_CFLAGS
1455PCIACCESS_LIBS
1456DGA_CFLAGS
1457DGA_LIBS
1458XORG_MODULES_CFLAGS
1459XORG_MODULES_LIBS
1460GLAMOR_CFLAGS
1461GLAMOR_LIBS
1462GBM_CFLAGS
1463GBM_LIBS
1464XWINMODULES_CFLAGS
1465XWINMODULES_LIBS
1466WINDOWSWM_CFLAGS
1467WINDOWSWM_LIBS
1468WINDOWSDRI_CFLAGS
1469WINDOWSDRI_LIBS
1470KHRONOS_OPENGL_REGISTRY_CFLAGS
1471KHRONOS_OPENGL_REGISTRY_LIBS
1472XPBPROXY_CFLAGS
1473XPBPROXY_LIBS
1474DMXMODULES_CFLAGS
1475DMXMODULES_LIBS
1476XDMXCONFIG_DEP_CFLAGS
1477XDMXCONFIG_DEP_LIBS
1478DMXEXAMPLES_DEP_CFLAGS
1479DMXEXAMPLES_DEP_LIBS
1480DMXXMUEXAMPLES_DEP_CFLAGS
1481DMXXMUEXAMPLES_DEP_LIBS
1482DMXXIEXAMPLES_DEP_CFLAGS
1483DMXXIEXAMPLES_DEP_LIBS
1484XTSTEXAMPLES_DEP_CFLAGS
1485XTSTEXAMPLES_DEP_LIBS
1486XRESEXAMPLES_DEP_CFLAGS
1487XRESEXAMPLES_DEP_LIBS
1488X11EXAMPLES_DEP_CFLAGS
1489X11EXAMPLES_DEP_LIBS
1490XEPHYR_CFLAGS
1491XEPHYR_LIBS
1492XWAYLANDMODULES_CFLAGS
1493XWAYLANDMODULES_LIBS
1494WAYLAND_EGLSTREAM_CFLAGS
1495WAYLAND_EGLSTREAM_LIBS
1496WAYLAND_SCANNER_CFLAGS
1497WAYLAND_SCANNER_LIBS'
1498
1499
1500# Initialize some variables set by options.
1501ac_init_help=
1502ac_init_version=false
1503ac_unrecognized_opts=
1504ac_unrecognized_sep=
1505# The variables have the same names as the options, with
1506# dashes changed to underlines.
1507cache_file=/dev/null
1508exec_prefix=NONE
1509no_create=
1510no_recursion=
1511prefix=NONE
1512program_prefix=NONE
1513program_suffix=NONE
1514program_transform_name=s,x,x,
1515silent=
1516site=
1517srcdir=
1518verbose=
1519x_includes=NONE
1520x_libraries=NONE
1521
1522# Installation directory options.
1523# These are left unexpanded so users can "make install exec_prefix=/foo"
1524# and all the variables that are supposed to be based on exec_prefix
1525# by default will actually change.
1526# Use braces instead of parens because sh, perl, etc. also accept them.
1527# (The list follows the same order as the GNU Coding Standards.)
1528bindir='${exec_prefix}/bin'
1529sbindir='${exec_prefix}/sbin'
1530libexecdir='${exec_prefix}/libexec'
1531datarootdir='${prefix}/share'
1532datadir='${datarootdir}'
1533sysconfdir='${prefix}/etc'
1534sharedstatedir='${prefix}/com'
1535localstatedir='${prefix}/var'
1536runstatedir='${localstatedir}/run'
1537includedir='${prefix}/include'
1538oldincludedir='/usr/include'
1539docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1540infodir='${datarootdir}/info'
1541htmldir='${docdir}'
1542dvidir='${docdir}'
1543pdfdir='${docdir}'
1544psdir='${docdir}'
1545libdir='${exec_prefix}/lib'
1546localedir='${datarootdir}/locale'
1547mandir='${datarootdir}/man'
1548
1549ac_prev=
1550ac_dashdash=
1551for ac_option
1552do
1553  # If the previous option needs an argument, assign it.
1554  if test -n "$ac_prev"; then
1555    eval $ac_prev=\$ac_option
1556    ac_prev=
1557    continue
1558  fi
1559
1560  case $ac_option in
1561  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1562  *=)   ac_optarg= ;;
1563  *)    ac_optarg=yes ;;
1564  esac
1565
1566  # Accept the important Cygnus configure options, so we can diagnose typos.
1567
1568  case $ac_dashdash$ac_option in
1569  --)
1570    ac_dashdash=yes ;;
1571
1572  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1573    ac_prev=bindir ;;
1574  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1575    bindir=$ac_optarg ;;
1576
1577  -build | --build | --buil | --bui | --bu)
1578    ac_prev=build_alias ;;
1579  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1580    build_alias=$ac_optarg ;;
1581
1582  -cache-file | --cache-file | --cache-fil | --cache-fi \
1583  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1584    ac_prev=cache_file ;;
1585  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1586  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1587    cache_file=$ac_optarg ;;
1588
1589  --config-cache | -C)
1590    cache_file=config.cache ;;
1591
1592  -datadir | --datadir | --datadi | --datad)
1593    ac_prev=datadir ;;
1594  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1595    datadir=$ac_optarg ;;
1596
1597  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1598  | --dataroo | --dataro | --datar)
1599    ac_prev=datarootdir ;;
1600  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1601  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1602    datarootdir=$ac_optarg ;;
1603
1604  -disable-* | --disable-*)
1605    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1606    # Reject names that are not valid shell variable names.
1607    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1608      as_fn_error $? "invalid feature name: $ac_useropt"
1609    ac_useropt_orig=$ac_useropt
1610    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1611    case $ac_user_opts in
1612      *"
1613"enable_$ac_useropt"
1614"*) ;;
1615      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1616	 ac_unrecognized_sep=', ';;
1617    esac
1618    eval enable_$ac_useropt=no ;;
1619
1620  -docdir | --docdir | --docdi | --doc | --do)
1621    ac_prev=docdir ;;
1622  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1623    docdir=$ac_optarg ;;
1624
1625  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1626    ac_prev=dvidir ;;
1627  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1628    dvidir=$ac_optarg ;;
1629
1630  -enable-* | --enable-*)
1631    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1632    # Reject names that are not valid shell variable names.
1633    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1634      as_fn_error $? "invalid feature name: $ac_useropt"
1635    ac_useropt_orig=$ac_useropt
1636    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1637    case $ac_user_opts in
1638      *"
1639"enable_$ac_useropt"
1640"*) ;;
1641      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1642	 ac_unrecognized_sep=', ';;
1643    esac
1644    eval enable_$ac_useropt=\$ac_optarg ;;
1645
1646  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1647  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1648  | --exec | --exe | --ex)
1649    ac_prev=exec_prefix ;;
1650  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1651  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1652  | --exec=* | --exe=* | --ex=*)
1653    exec_prefix=$ac_optarg ;;
1654
1655  -gas | --gas | --ga | --g)
1656    # Obsolete; use --with-gas.
1657    with_gas=yes ;;
1658
1659  -help | --help | --hel | --he | -h)
1660    ac_init_help=long ;;
1661  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1662    ac_init_help=recursive ;;
1663  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1664    ac_init_help=short ;;
1665
1666  -host | --host | --hos | --ho)
1667    ac_prev=host_alias ;;
1668  -host=* | --host=* | --hos=* | --ho=*)
1669    host_alias=$ac_optarg ;;
1670
1671  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1672    ac_prev=htmldir ;;
1673  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1674  | --ht=*)
1675    htmldir=$ac_optarg ;;
1676
1677  -includedir | --includedir | --includedi | --included | --include \
1678  | --includ | --inclu | --incl | --inc)
1679    ac_prev=includedir ;;
1680  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1681  | --includ=* | --inclu=* | --incl=* | --inc=*)
1682    includedir=$ac_optarg ;;
1683
1684  -infodir | --infodir | --infodi | --infod | --info | --inf)
1685    ac_prev=infodir ;;
1686  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1687    infodir=$ac_optarg ;;
1688
1689  -libdir | --libdir | --libdi | --libd)
1690    ac_prev=libdir ;;
1691  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1692    libdir=$ac_optarg ;;
1693
1694  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1695  | --libexe | --libex | --libe)
1696    ac_prev=libexecdir ;;
1697  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1698  | --libexe=* | --libex=* | --libe=*)
1699    libexecdir=$ac_optarg ;;
1700
1701  -localedir | --localedir | --localedi | --localed | --locale)
1702    ac_prev=localedir ;;
1703  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1704    localedir=$ac_optarg ;;
1705
1706  -localstatedir | --localstatedir | --localstatedi | --localstated \
1707  | --localstate | --localstat | --localsta | --localst | --locals)
1708    ac_prev=localstatedir ;;
1709  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1710  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1711    localstatedir=$ac_optarg ;;
1712
1713  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1714    ac_prev=mandir ;;
1715  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1716    mandir=$ac_optarg ;;
1717
1718  -nfp | --nfp | --nf)
1719    # Obsolete; use --without-fp.
1720    with_fp=no ;;
1721
1722  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1723  | --no-cr | --no-c | -n)
1724    no_create=yes ;;
1725
1726  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1727  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1728    no_recursion=yes ;;
1729
1730  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1731  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1732  | --oldin | --oldi | --old | --ol | --o)
1733    ac_prev=oldincludedir ;;
1734  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1735  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1736  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1737    oldincludedir=$ac_optarg ;;
1738
1739  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1740    ac_prev=prefix ;;
1741  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1742    prefix=$ac_optarg ;;
1743
1744  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1745  | --program-pre | --program-pr | --program-p)
1746    ac_prev=program_prefix ;;
1747  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1748  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1749    program_prefix=$ac_optarg ;;
1750
1751  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1752  | --program-suf | --program-su | --program-s)
1753    ac_prev=program_suffix ;;
1754  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1755  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1756    program_suffix=$ac_optarg ;;
1757
1758  -program-transform-name | --program-transform-name \
1759  | --program-transform-nam | --program-transform-na \
1760  | --program-transform-n | --program-transform- \
1761  | --program-transform | --program-transfor \
1762  | --program-transfo | --program-transf \
1763  | --program-trans | --program-tran \
1764  | --progr-tra | --program-tr | --program-t)
1765    ac_prev=program_transform_name ;;
1766  -program-transform-name=* | --program-transform-name=* \
1767  | --program-transform-nam=* | --program-transform-na=* \
1768  | --program-transform-n=* | --program-transform-=* \
1769  | --program-transform=* | --program-transfor=* \
1770  | --program-transfo=* | --program-transf=* \
1771  | --program-trans=* | --program-tran=* \
1772  | --progr-tra=* | --program-tr=* | --program-t=*)
1773    program_transform_name=$ac_optarg ;;
1774
1775  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1776    ac_prev=pdfdir ;;
1777  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1778    pdfdir=$ac_optarg ;;
1779
1780  -psdir | --psdir | --psdi | --psd | --ps)
1781    ac_prev=psdir ;;
1782  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1783    psdir=$ac_optarg ;;
1784
1785  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1786  | -silent | --silent | --silen | --sile | --sil)
1787    silent=yes ;;
1788
1789  -runstatedir | --runstatedir | --runstatedi | --runstated \
1790  | --runstate | --runstat | --runsta | --runst | --runs \
1791  | --run | --ru | --r)
1792    ac_prev=runstatedir ;;
1793  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1794  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1795  | --run=* | --ru=* | --r=*)
1796    runstatedir=$ac_optarg ;;
1797
1798  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1799    ac_prev=sbindir ;;
1800  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1801  | --sbi=* | --sb=*)
1802    sbindir=$ac_optarg ;;
1803
1804  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1805  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1806  | --sharedst | --shareds | --shared | --share | --shar \
1807  | --sha | --sh)
1808    ac_prev=sharedstatedir ;;
1809  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1810  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1811  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1812  | --sha=* | --sh=*)
1813    sharedstatedir=$ac_optarg ;;
1814
1815  -site | --site | --sit)
1816    ac_prev=site ;;
1817  -site=* | --site=* | --sit=*)
1818    site=$ac_optarg ;;
1819
1820  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1821    ac_prev=srcdir ;;
1822  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1823    srcdir=$ac_optarg ;;
1824
1825  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1826  | --syscon | --sysco | --sysc | --sys | --sy)
1827    ac_prev=sysconfdir ;;
1828  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1829  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1830    sysconfdir=$ac_optarg ;;
1831
1832  -target | --target | --targe | --targ | --tar | --ta | --t)
1833    ac_prev=target_alias ;;
1834  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1835    target_alias=$ac_optarg ;;
1836
1837  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1838    verbose=yes ;;
1839
1840  -version | --version | --versio | --versi | --vers | -V)
1841    ac_init_version=: ;;
1842
1843  -with-* | --with-*)
1844    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1845    # Reject names that are not valid shell variable names.
1846    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1847      as_fn_error $? "invalid package name: $ac_useropt"
1848    ac_useropt_orig=$ac_useropt
1849    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1850    case $ac_user_opts in
1851      *"
1852"with_$ac_useropt"
1853"*) ;;
1854      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1855	 ac_unrecognized_sep=', ';;
1856    esac
1857    eval with_$ac_useropt=\$ac_optarg ;;
1858
1859  -without-* | --without-*)
1860    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1861    # Reject names that are not valid shell variable names.
1862    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1863      as_fn_error $? "invalid package name: $ac_useropt"
1864    ac_useropt_orig=$ac_useropt
1865    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1866    case $ac_user_opts in
1867      *"
1868"with_$ac_useropt"
1869"*) ;;
1870      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1871	 ac_unrecognized_sep=', ';;
1872    esac
1873    eval with_$ac_useropt=no ;;
1874
1875  --x)
1876    # Obsolete; use --with-x.
1877    with_x=yes ;;
1878
1879  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1880  | --x-incl | --x-inc | --x-in | --x-i)
1881    ac_prev=x_includes ;;
1882  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1883  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1884    x_includes=$ac_optarg ;;
1885
1886  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1887  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1888    ac_prev=x_libraries ;;
1889  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1890  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1891    x_libraries=$ac_optarg ;;
1892
1893  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1894Try \`$0 --help' for more information"
1895    ;;
1896
1897  *=*)
1898    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1899    # Reject names that are not valid shell variable names.
1900    case $ac_envvar in #(
1901      '' | [0-9]* | *[!_$as_cr_alnum]* )
1902      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1903    esac
1904    eval $ac_envvar=\$ac_optarg
1905    export $ac_envvar ;;
1906
1907  *)
1908    # FIXME: should be removed in autoconf 3.0.
1909    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1910    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1911      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1912    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1913    ;;
1914
1915  esac
1916done
1917
1918if test -n "$ac_prev"; then
1919  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1920  as_fn_error $? "missing argument to $ac_option"
1921fi
1922
1923if test -n "$ac_unrecognized_opts"; then
1924  case $enable_option_checking in
1925    no) ;;
1926    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1927    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1928  esac
1929fi
1930
1931# Check all directory arguments for consistency.
1932for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1933		datadir sysconfdir sharedstatedir localstatedir includedir \
1934		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1935		libdir localedir mandir runstatedir
1936do
1937  eval ac_val=\$$ac_var
1938  # Remove trailing slashes.
1939  case $ac_val in
1940    */ )
1941      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1942      eval $ac_var=\$ac_val;;
1943  esac
1944  # Be sure to have absolute directory names.
1945  case $ac_val in
1946    [\\/$]* | ?:[\\/]* )  continue;;
1947    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1948  esac
1949  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1950done
1951
1952# There might be people who depend on the old broken behavior: `$host'
1953# used to hold the argument of --host etc.
1954# FIXME: To remove some day.
1955build=$build_alias
1956host=$host_alias
1957target=$target_alias
1958
1959# FIXME: To remove some day.
1960if test "x$host_alias" != x; then
1961  if test "x$build_alias" = x; then
1962    cross_compiling=maybe
1963  elif test "x$build_alias" != "x$host_alias"; then
1964    cross_compiling=yes
1965  fi
1966fi
1967
1968ac_tool_prefix=
1969test -n "$host_alias" && ac_tool_prefix=$host_alias-
1970
1971test "$silent" = yes && exec 6>/dev/null
1972
1973
1974ac_pwd=`pwd` && test -n "$ac_pwd" &&
1975ac_ls_di=`ls -di .` &&
1976ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1977  as_fn_error $? "working directory cannot be determined"
1978test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1979  as_fn_error $? "pwd does not report name of working directory"
1980
1981
1982# Find the source files, if location was not specified.
1983if test -z "$srcdir"; then
1984  ac_srcdir_defaulted=yes
1985  # Try the directory containing this script, then the parent directory.
1986  ac_confdir=`$as_dirname -- "$as_myself" ||
1987$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1988	 X"$as_myself" : 'X\(//\)[^/]' \| \
1989	 X"$as_myself" : 'X\(//\)$' \| \
1990	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1991$as_echo X"$as_myself" |
1992    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1993	    s//\1/
1994	    q
1995	  }
1996	  /^X\(\/\/\)[^/].*/{
1997	    s//\1/
1998	    q
1999	  }
2000	  /^X\(\/\/\)$/{
2001	    s//\1/
2002	    q
2003	  }
2004	  /^X\(\/\).*/{
2005	    s//\1/
2006	    q
2007	  }
2008	  s/.*/./; q'`
2009  srcdir=$ac_confdir
2010  if test ! -r "$srcdir/$ac_unique_file"; then
2011    srcdir=..
2012  fi
2013else
2014  ac_srcdir_defaulted=no
2015fi
2016if test ! -r "$srcdir/$ac_unique_file"; then
2017  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2018  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2019fi
2020ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2021ac_abs_confdir=`(
2022	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2023	pwd)`
2024# When building in place, set srcdir=.
2025if test "$ac_abs_confdir" = "$ac_pwd"; then
2026  srcdir=.
2027fi
2028# Remove unnecessary trailing slashes from srcdir.
2029# Double slashes in file names in object file debugging info
2030# mess up M-x gdb in Emacs.
2031case $srcdir in
2032*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2033esac
2034for ac_var in $ac_precious_vars; do
2035  eval ac_env_${ac_var}_set=\${${ac_var}+set}
2036  eval ac_env_${ac_var}_value=\$${ac_var}
2037  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2038  eval ac_cv_env_${ac_var}_value=\$${ac_var}
2039done
2040
2041#
2042# Report the --help message.
2043#
2044if test "$ac_init_help" = "long"; then
2045  # Omit some internal or obsolete options to make the list less imposing.
2046  # This message is too long to be a string in the A/UX 3.1 sh.
2047  cat <<_ACEOF
2048\`configure' configures xorg-server 1.20.11 to adapt to many kinds of systems.
2049
2050Usage: $0 [OPTION]... [VAR=VALUE]...
2051
2052To assign environment variables (e.g., CC, CFLAGS...), specify them as
2053VAR=VALUE.  See below for descriptions of some of the useful variables.
2054
2055Defaults for the options are specified in brackets.
2056
2057Configuration:
2058  -h, --help              display this help and exit
2059      --help=short        display options specific to this package
2060      --help=recursive    display the short help of all the included packages
2061  -V, --version           display version information and exit
2062  -q, --quiet, --silent   do not print \`checking ...' messages
2063      --cache-file=FILE   cache test results in FILE [disabled]
2064  -C, --config-cache      alias for \`--cache-file=config.cache'
2065  -n, --no-create         do not create output files
2066      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2067
2068Installation directories:
2069  --prefix=PREFIX         install architecture-independent files in PREFIX
2070                          [$ac_default_prefix]
2071  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2072                          [PREFIX]
2073
2074By default, \`make install' will install all the files in
2075\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2076an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2077for instance \`--prefix=\$HOME'.
2078
2079For better control, use the options below.
2080
2081Fine tuning of the installation directories:
2082  --bindir=DIR            user executables [EPREFIX/bin]
2083  --sbindir=DIR           system admin executables [EPREFIX/sbin]
2084  --libexecdir=DIR        program executables [EPREFIX/libexec]
2085  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2086  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2087  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2088  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
2089  --libdir=DIR            object code libraries [EPREFIX/lib]
2090  --includedir=DIR        C header files [PREFIX/include]
2091  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2092  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2093  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2094  --infodir=DIR           info documentation [DATAROOTDIR/info]
2095  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2096  --mandir=DIR            man documentation [DATAROOTDIR/man]
2097  --docdir=DIR            documentation root [DATAROOTDIR/doc/xorg-server]
2098  --htmldir=DIR           html documentation [DOCDIR]
2099  --dvidir=DIR            dvi documentation [DOCDIR]
2100  --pdfdir=DIR            pdf documentation [DOCDIR]
2101  --psdir=DIR             ps documentation [DOCDIR]
2102_ACEOF
2103
2104  cat <<\_ACEOF
2105
2106Program names:
2107  --program-prefix=PREFIX            prepend PREFIX to installed program names
2108  --program-suffix=SUFFIX            append SUFFIX to installed program names
2109  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2110
2111System types:
2112  --build=BUILD     configure for building on BUILD [guessed]
2113  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2114_ACEOF
2115fi
2116
2117if test -n "$ac_init_help"; then
2118  case $ac_init_help in
2119     short | recursive ) echo "Configuration of xorg-server 1.20.11:";;
2120   esac
2121  cat <<\_ACEOF
2122
2123Optional Features:
2124  --disable-option-checking  ignore unrecognized --enable/--with options
2125  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2126  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2127  --enable-silent-rules   less verbose build output (undo: "make V=1")
2128  --disable-silent-rules  verbose build output (undo: "make V=0")
2129  --enable-dependency-tracking
2130                          do not reject slow dependency extractors
2131  --disable-dependency-tracking
2132                          speeds up one-time build
2133  --disable-selective-werror
2134                          Turn off selective compiler errors. (default:
2135                          enabled)
2136  --enable-strict-compilation
2137                          Enable all warnings from compiler and make them
2138                          errors (default: disabled)
2139  --enable-docs           Enable building the documentation (default: yes)
2140  --enable-devel-docs     Enable building the developer documentation
2141                          (default: yes)
2142  --enable-unit-tests     Enable building unit test cases (default: auto)
2143  --enable-static[=PKGS]  build static libraries [default=no]
2144  --enable-shared[=PKGS]  build shared libraries [default=yes]
2145  --enable-fast-install[=PKGS]
2146                          optimize for fast installation [default=yes]
2147  --disable-libtool-lock  avoid locking (might break parallel builds)
2148  --disable-largefile     omit support for large files
2149  --enable-werror         Obsolete - use --enable-strict-compilation instead
2150  --enable-debug          Enable debugging (default: disabled)
2151  --enable-listen-tcp     Listen on TCP by default (default:disabled)
2152  --disable-listen-unix   Listen on Unix by default (default:enabled)
2153  --disable-listen-local  Listen on local by default (default:enabled)
2154  --enable-sparkle        Enable updating of X11.app using the Sparkle
2155                          Framework (default: disabled)
2156  --enable-visibility     Enable symbol visibility (default: auto)
2157  --disable-composite     Build Composite extension (default: enabled)
2158  --disable-mitshm        Build SHM extension (default: auto)
2159  --disable-xres          Build XRes extension (default: enabled)
2160  --disable-record        Build Record extension (default: enabled)
2161  --disable-xv            Build Xv extension (default: enabled)
2162  --disable-xvmc          Build XvMC extension (default: enabled)
2163  --disable-dga           Build DGA extension (default: auto)
2164  --disable-screensaver   Build ScreenSaver extension (default: enabled)
2165  --disable-xdmcp         Build XDMCP extension (default: auto)
2166  --disable-xdm-auth-1    Build XDM-Auth-1 extension (default: auto)
2167  --disable-glx           Build GLX extension (default: enabled)
2168  --enable-dri            Build DRI extension (default: auto)
2169  --enable-dri2           Build DRI2 extension (default: auto)
2170  --enable-dri3           Build DRI3 extension (default: auto)
2171  --disable-present       Build Present extension (default: enabled)
2172  --disable-xinerama      Build Xinerama extension (default: enabled)
2173  --disable-xf86vidmode   Build XF86VidMode extension (default: auto)
2174  --disable-xace          Build X-ACE extension (default: enabled)
2175  --enable-xselinux       Build SELinux extension (default: disabled)
2176  --enable-xcsecurity     Build Security extension (default: disabled)
2177  --disable-dbe           Build DBE extension (default: enabled)
2178  --enable-xf86bigfont    Build XF86 Big Font extension (default: disabled)
2179  --disable-dpms          Build DPMS extension (default: enabled)
2180  --enable-config-udev    Build udev support (default: auto)
2181  --enable-config-udev-kms
2182                          Build udev kms support (default: auto)
2183  --disable-config-hal    Build HAL support (default: auto)
2184  --enable-config-wscons  Build wscons config support (default: auto)
2185  --enable-xfree86-utils  Build xfree86 DDX utilities (default: enabled)
2186  --enable-vgahw          Build Xorg with vga access (default: enabled)
2187  --enable-vbe            Build Xorg with VBE module (default: enabled)
2188  --enable-int10-module   Build Xorg with int10 module (default: enabled)
2189  --enable-windowswm      Build XWin with WindowsWM extension (default: no)
2190  --enable-windowsdri     Build XWin with WindowsDRI extension (default: auto)
2191  --enable-libdrm         Build Xorg with libdrm support (default: enabled)
2192  --disable-clientids     Build Xorg with client ID tracking (default:
2193                          enabled)
2194  --enable-pciaccess      Build Xorg with pciaccess library (default: enabled)
2195  --disable-linux-acpi    Disable building ACPI support on Linux (if
2196                          available).
2197  --disable-linux-apm     Disable building APM support on Linux (if
2198                          available).
2199  --enable-systemd-logind Build systemd-logind support (default: auto)
2200  --enable-suid-wrapper   Build suid-root wrapper for legacy driver support on
2201                          rootless xserver systems (default: no)
2202  --enable-xorg           Build Xorg server (default: auto)
2203  --enable-dmx            Build DMX server (default: no)
2204  --enable-xvfb           Build Xvfb server (default: yes)
2205  --enable-xnest          Build Xnest server (default: auto)
2206  --enable-xquartz        Build Xquartz server for OS-X (default: auto)
2207  --enable-xwayland       Build Xwayland server (default: auto)
2208  --enable-xwayland-eglstream
2209                          Build Xwayland eglstream support (default: no)
2210  --enable-standalone-xpbproxy
2211                          Build a standalone xpbproxy (in addition to the one
2212                          integrated into Xquartz as a separate thread)
2213                          (default: no)
2214  --enable-xwin           Build XWin server (default: auto)
2215  --enable-glamor         Build glamor dix module (default: auto)
2216  --enable-kdrive         Build kdrive servers (default: no)
2217  --enable-xephyr         Build the kdrive Xephyr server (default: auto)
2218  --enable-libunwind      Use libunwind for backtracing (default: auto)
2219  --disable-xshmfence     Disable xshmfence (default: auto)
2220  --enable-install-setuid Install Xorg server as owned by root with setuid bit
2221                          (default: auto)
2222  --enable-unix-transport Enable UNIX domain socket transport
2223  --enable-tcp-transport  Enable TCP socket transport
2224  --enable-ipv6           Enable IPv6 support
2225  --enable-local-transport
2226                          Enable os-specific local transport
2227  --enable-secure-rpc     Enable Secure RPC
2228  --enable-input-thread   Enable input threads
2229  --disable-xtrans-send-fds
2230                          Use Xtrans support for fd passing (default: auto)
2231
2232Optional Packages:
2233  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2234  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2235  --with-doxygen          Use doxygen to regenerate documentation (default:
2236                          auto)
2237  --with-xmlto            Use xmlto to regenerate documentation (default:
2238                          auto)
2239  --with-fop              Use fop to regenerate documentation (default: auto)
2240  --with-xsltproc         Use xsltproc for the transformation of XML documents
2241                          (default: auto)
2242  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2243                          both]
2244  --with-aix-soname=aix|svr4|both
2245                          shared library versioning (aka "SONAME") variant to
2246                          provide on AIX, [default=aix].
2247  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2248  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2249                          compiler's sysroot if not specified).
2250  --with-dtrace=PATH      Enable dtrace probes (default: enabled if dtrace
2251                          found)
2252  --with-int10=BACKEND    int10 backend: vm86, x86emu or stub
2253  --with-vendor-name=VENDOR
2254                          Vendor string reported by the server
2255  --with-vendor-name-short=VENDOR
2256                          Short version of vendor string reported by the
2257                          server
2258  --with-vendor-web=URL   Vendor web address reported by the server
2259  --with-module-dir=DIR   Directory where modules are installed (default:
2260                          $libdir/xorg/modules)
2261  --with-log-dir=DIR      Directory where log files are kept (default:
2262                          $localstatedir/log)
2263  --with-builder-addr=ADDRESS
2264                          Builder address (default:
2265                          xorg@lists.freedesktop.org)
2266  --with-os-name=OSNAME   Name of OS (default: output of "uname -srm")
2267  --with-os-vendor=OSVENDOR
2268                          Name of OS vendor
2269  --with-builderstring=BUILDERSTRING
2270                          Additional builder string
2271  --with-fallback-input-driver=$FALLBACK_INPUT_DRIVER
2272                          Input driver fallback if the requested driver for a
2273                          device is unavailable
2274  --with-fontrootdir=DIR  Path to root directory for font files
2275  --with-fontmiscdir=DIR  Path to misc files [FONTROOTDIR/misc]
2276  --with-fontotfdir=DIR   Path to OTF files [FONTROOTDIR/OTF]
2277  --with-fontttfdir=DIR   Path to TTF files [FONTROOTDIR/TTF]
2278  --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1]
2279  --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi]
2280  --with-font100dpidir=DIR
2281                          Path to 100dpi files [FONTROOTDIR/100dpi]
2282  --with-default-font-path=PATH
2283                          Comma separated list of font dirs
2284  --with-xkb-path=PATH    Path to XKB base dir (default: auto)
2285  --with-xkb-output=PATH  Path to XKB output dir (default:
2286                          ${datadir}/X11/xkb/compiled)
2287  --with-default-xkb-rules=RULES
2288                          Keyboard ruleset (default: base/evdev)
2289  --with-default-xkb-model=MODEL
2290                          Keyboard model (default: pc105)
2291  --with-default-xkb-layout=LAYOUT
2292                          Keyboard layout (default: us)
2293  --with-default-xkb-variant=VARIANT
2294                          Keyboard variant (default: (none))
2295  --with-default-xkb-options=OPTIONS
2296                          Keyboard layout options (default: (none))
2297  --with-serverconfig-path=PATH
2298                          Directory where ancillary server config files are
2299                          installed (default: ${libdir}/xorg)
2300  --with-apple-applications-dir=PATH
2301                          Path to the Applications directory (default:
2302                          /Applications/Utilities)
2303  --with-apple-application-name=NAME
2304                          Name for the .app (default: X11)
2305  --with-bundle-id-prefix=RDNS_PREFIX
2306                          Prefix to use for bundle identifiers (default:
2307                          org.x)
2308  --with-bundle-version=VERSION
2309                          Version to use for X11.app's CFBundleVersion
2310                          (default: 1.20.11)
2311  --with-bundle-version-string=VERSION
2312                          Version to use for X11.app's
2313                          CFBundleShortVersionString (default: 1.20.11)
2314  --with-sparkle-feed-url=URL
2315                          URL for the Sparkle feed (default:
2316                          https://www.xquartz.org/releases/sparkle/release.xml)
2317  --with-khronos-spec-dir=PATH
2318                          Path to Khronos OpenGL registry database files
2319                          (default: auto)
2320  --with-systemd-daemon   support systemd socket activation (default: auto)
2321  --with-xkb-bin-directory=DIR
2322                          Directory containing xkbcomp program (default: auto)
2323  --with-sha1=libc|libmd|libnettle|libgcrypt|libcrypto|libsha1|CommonCrypto|CryptoAPI
2324                          choose SHA1 implementation
2325
2326Some influential environment variables:
2327  CC          C compiler command
2328  CFLAGS      C compiler flags
2329  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2330              nonstandard directory <lib dir>
2331  LIBS        libraries to pass to the linker, e.g. -l<library>
2332  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2333              you have headers in a nonstandard directory <include dir>
2334  CPP         C preprocessor
2335  PKG_CONFIG  path to pkg-config utility
2336  PKG_CONFIG_PATH
2337              directories to add to pkg-config's search path
2338  PKG_CONFIG_LIBDIR
2339              path overriding pkg-config's built-in search path
2340  DOXYGEN     Path to doxygen command
2341  DOT         Path to the dot graphics utility
2342  XMLTO       Path to xmlto command
2343  FOP         Path to fop command
2344  XSLTPROC    Path to xsltproc command
2345  XORG_MALLOC_DEBUG_ENV
2346              Environment variables to enable memory checking in tests
2347  CCAS        assembler compiler command (defaults to CC)
2348  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
2349  LT_SYS_LIBRARY_PATH
2350              User-defined run-time library search path.
2351  YACC        The `Yet Another Compiler Compiler' implementation to use.
2352              Defaults to the first program found out of: `bison -y', `byacc',
2353              `yacc'.
2354  YFLAGS      The list of arguments that will be passed by default to $YACC.
2355              This script will default YFLAGS to the empty string to avoid a
2356              default value of `-d' given by some make applications.
2357  PIXMAN_CFLAGS
2358              C compiler flags for PIXMAN, overriding pkg-config
2359  PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config
2360  SYSTEMD_DAEMON_CFLAGS
2361              C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
2362  SYSTEMD_DAEMON_LIBS
2363              linker flags for SYSTEMD_DAEMON, overriding pkg-config
2364  UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
2365  UDEV_LIBS   linker flags for UDEV, overriding pkg-config
2366  DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
2367  DBUS_LIBS   linker flags for DBUS, overriding pkg-config
2368  HAL_CFLAGS  C compiler flags for HAL, overriding pkg-config
2369  HAL_LIBS    linker flags for HAL, overriding pkg-config
2370  DRI2PROTO_CFLAGS
2371              C compiler flags for DRI2PROTO, overriding pkg-config
2372  DRI2PROTO_LIBS
2373              linker flags for DRI2PROTO, overriding pkg-config
2374  DRI3PROTO_CFLAGS
2375              C compiler flags for DRI3PROTO, overriding pkg-config
2376  DRI3PROTO_LIBS
2377              linker flags for DRI3PROTO, overriding pkg-config
2378  XSHMFENCE_CFLAGS
2379              C compiler flags for XSHMFENCE, overriding pkg-config
2380  XSHMFENCE_LIBS
2381              linker flags for XSHMFENCE, overriding pkg-config
2382  LIBDRM_CFLAGS
2383              C compiler flags for LIBDRM, overriding pkg-config
2384  LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
2385  XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config
2386  XLIB_LIBS   linker flags for XLIB, overriding pkg-config
2387  GL_CFLAGS   C compiler flags for GL, overriding pkg-config
2388  GL_LIBS     linker flags for GL, overriding pkg-config
2389  SELINUX_CFLAGS
2390              C compiler flags for SELINUX, overriding pkg-config
2391  SELINUX_LIBS
2392              linker flags for SELINUX, overriding pkg-config
2393  XDMCP_CFLAGS
2394              C compiler flags for XDMCP, overriding pkg-config
2395  XDMCP_LIBS  linker flags for XDMCP, overriding pkg-config
2396  LIBSHA1_CFLAGS
2397              C compiler flags for LIBSHA1, overriding pkg-config
2398  LIBSHA1_LIBS
2399              linker flags for LIBSHA1, overriding pkg-config
2400  OPENSSL_CFLAGS
2401              C compiler flags for OPENSSL, overriding pkg-config
2402  OPENSSL_LIBS
2403              linker flags for OPENSSL, overriding pkg-config
2404  XSERVERCFLAGS_CFLAGS
2405              C compiler flags for XSERVERCFLAGS, overriding pkg-config
2406  XSERVERCFLAGS_LIBS
2407              linker flags for XSERVERCFLAGS, overriding pkg-config
2408  XSERVERLIBS_CFLAGS
2409              C compiler flags for XSERVERLIBS, overriding pkg-config
2410  XSERVERLIBS_LIBS
2411              linker flags for XSERVERLIBS, overriding pkg-config
2412  LIBUNWIND_CFLAGS
2413              C compiler flags for LIBUNWIND, overriding pkg-config
2414  LIBUNWIND_LIBS
2415              linker flags for LIBUNWIND, overriding pkg-config
2416  XNESTMODULES_CFLAGS
2417              C compiler flags for XNESTMODULES, overriding pkg-config
2418  XNESTMODULES_LIBS
2419              linker flags for XNESTMODULES, overriding pkg-config
2420  PCIACCESS_CFLAGS
2421              C compiler flags for PCIACCESS, overriding pkg-config
2422  PCIACCESS_LIBS
2423              linker flags for PCIACCESS, overriding pkg-config
2424  DGA_CFLAGS  C compiler flags for DGA, overriding pkg-config
2425  DGA_LIBS    linker flags for DGA, overriding pkg-config
2426  XORG_MODULES_CFLAGS
2427              C compiler flags for XORG_MODULES, overriding pkg-config
2428  XORG_MODULES_LIBS
2429              linker flags for XORG_MODULES, overriding pkg-config
2430  GLAMOR_CFLAGS
2431              C compiler flags for GLAMOR, overriding pkg-config
2432  GLAMOR_LIBS linker flags for GLAMOR, overriding pkg-config
2433  GBM_CFLAGS  C compiler flags for GBM, overriding pkg-config
2434  GBM_LIBS    linker flags for GBM, overriding pkg-config
2435  XWINMODULES_CFLAGS
2436              C compiler flags for XWINMODULES, overriding pkg-config
2437  XWINMODULES_LIBS
2438              linker flags for XWINMODULES, overriding pkg-config
2439  WINDOWSWM_CFLAGS
2440              C compiler flags for WINDOWSWM, overriding pkg-config
2441  WINDOWSWM_LIBS
2442              linker flags for WINDOWSWM, overriding pkg-config
2443  WINDOWSDRI_CFLAGS
2444              C compiler flags for WINDOWSDRI, overriding pkg-config
2445  WINDOWSDRI_LIBS
2446              linker flags for WINDOWSDRI, overriding pkg-config
2447  KHRONOS_OPENGL_REGISTRY_CFLAGS
2448              C compiler flags for KHRONOS_OPENGL_REGISTRY, overriding
2449              pkg-config
2450  KHRONOS_OPENGL_REGISTRY_LIBS
2451              linker flags for KHRONOS_OPENGL_REGISTRY, overriding pkg-config
2452  XPBPROXY_CFLAGS
2453              C compiler flags for XPBPROXY, overriding pkg-config
2454  XPBPROXY_LIBS
2455              linker flags for XPBPROXY, overriding pkg-config
2456  DMXMODULES_CFLAGS
2457              C compiler flags for DMXMODULES, overriding pkg-config
2458  DMXMODULES_LIBS
2459              linker flags for DMXMODULES, overriding pkg-config
2460  XDMXCONFIG_DEP_CFLAGS
2461              C compiler flags for XDMXCONFIG_DEP, overriding pkg-config
2462  XDMXCONFIG_DEP_LIBS
2463              linker flags for XDMXCONFIG_DEP, overriding pkg-config
2464  DMXEXAMPLES_DEP_CFLAGS
2465              C compiler flags for DMXEXAMPLES_DEP, overriding pkg-config
2466  DMXEXAMPLES_DEP_LIBS
2467              linker flags for DMXEXAMPLES_DEP, overriding pkg-config
2468  DMXXMUEXAMPLES_DEP_CFLAGS
2469              C compiler flags for DMXXMUEXAMPLES_DEP, overriding pkg-config
2470  DMXXMUEXAMPLES_DEP_LIBS
2471              linker flags for DMXXMUEXAMPLES_DEP, overriding pkg-config
2472  DMXXIEXAMPLES_DEP_CFLAGS
2473              C compiler flags for DMXXIEXAMPLES_DEP, overriding pkg-config
2474  DMXXIEXAMPLES_DEP_LIBS
2475              linker flags for DMXXIEXAMPLES_DEP, overriding pkg-config
2476  XTSTEXAMPLES_DEP_CFLAGS
2477              C compiler flags for XTSTEXAMPLES_DEP, overriding pkg-config
2478  XTSTEXAMPLES_DEP_LIBS
2479              linker flags for XTSTEXAMPLES_DEP, overriding pkg-config
2480  XRESEXAMPLES_DEP_CFLAGS
2481              C compiler flags for XRESEXAMPLES_DEP, overriding pkg-config
2482  XRESEXAMPLES_DEP_LIBS
2483              linker flags for XRESEXAMPLES_DEP, overriding pkg-config
2484  X11EXAMPLES_DEP_CFLAGS
2485              C compiler flags for X11EXAMPLES_DEP, overriding pkg-config
2486  X11EXAMPLES_DEP_LIBS
2487              linker flags for X11EXAMPLES_DEP, overriding pkg-config
2488  XEPHYR_CFLAGS
2489              C compiler flags for XEPHYR, overriding pkg-config
2490  XEPHYR_LIBS linker flags for XEPHYR, overriding pkg-config
2491  XWAYLANDMODULES_CFLAGS
2492              C compiler flags for XWAYLANDMODULES, overriding pkg-config
2493  XWAYLANDMODULES_LIBS
2494              linker flags for XWAYLANDMODULES, overriding pkg-config
2495  WAYLAND_EGLSTREAM_CFLAGS
2496              C compiler flags for WAYLAND_EGLSTREAM, overriding pkg-config
2497  WAYLAND_EGLSTREAM_LIBS
2498              linker flags for WAYLAND_EGLSTREAM, overriding pkg-config
2499  WAYLAND_SCANNER_CFLAGS
2500              C compiler flags for WAYLAND_SCANNER, overriding pkg-config
2501  WAYLAND_SCANNER_LIBS
2502              linker flags for WAYLAND_SCANNER, overriding pkg-config
2503
2504Use these variables to override the choices made by `configure' or to help
2505it to find libraries and programs with nonstandard names/locations.
2506
2507Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>.
2508_ACEOF
2509ac_status=$?
2510fi
2511
2512if test "$ac_init_help" = "recursive"; then
2513  # If there are subdirs, report their specific --help.
2514  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2515    test -d "$ac_dir" ||
2516      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2517      continue
2518    ac_builddir=.
2519
2520case "$ac_dir" in
2521.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2522*)
2523  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2524  # A ".." for each directory in $ac_dir_suffix.
2525  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2526  case $ac_top_builddir_sub in
2527  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2528  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2529  esac ;;
2530esac
2531ac_abs_top_builddir=$ac_pwd
2532ac_abs_builddir=$ac_pwd$ac_dir_suffix
2533# for backward compatibility:
2534ac_top_builddir=$ac_top_build_prefix
2535
2536case $srcdir in
2537  .)  # We are building in place.
2538    ac_srcdir=.
2539    ac_top_srcdir=$ac_top_builddir_sub
2540    ac_abs_top_srcdir=$ac_pwd ;;
2541  [\\/]* | ?:[\\/]* )  # Absolute name.
2542    ac_srcdir=$srcdir$ac_dir_suffix;
2543    ac_top_srcdir=$srcdir
2544    ac_abs_top_srcdir=$srcdir ;;
2545  *) # Relative name.
2546    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2547    ac_top_srcdir=$ac_top_build_prefix$srcdir
2548    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2549esac
2550ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2551
2552    cd "$ac_dir" || { ac_status=$?; continue; }
2553    # Check for guested configure.
2554    if test -f "$ac_srcdir/configure.gnu"; then
2555      echo &&
2556      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2557    elif test -f "$ac_srcdir/configure"; then
2558      echo &&
2559      $SHELL "$ac_srcdir/configure" --help=recursive
2560    else
2561      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2562    fi || ac_status=$?
2563    cd "$ac_pwd" || { ac_status=$?; break; }
2564  done
2565fi
2566
2567test -n "$ac_init_help" && exit $ac_status
2568if $ac_init_version; then
2569  cat <<\_ACEOF
2570xorg-server configure 1.20.11
2571generated by GNU Autoconf 2.69
2572
2573Copyright (C) 2012 Free Software Foundation, Inc.
2574This configure script is free software; the Free Software Foundation
2575gives unlimited permission to copy, distribute and modify it.
2576_ACEOF
2577  exit
2578fi
2579
2580## ------------------------ ##
2581## Autoconf initialization. ##
2582## ------------------------ ##
2583
2584# ac_fn_c_try_compile LINENO
2585# --------------------------
2586# Try to compile conftest.$ac_ext, and return whether this succeeded.
2587ac_fn_c_try_compile ()
2588{
2589  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2590  rm -f conftest.$ac_objext
2591  if { { ac_try="$ac_compile"
2592case "(($ac_try" in
2593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594  *) ac_try_echo=$ac_try;;
2595esac
2596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2597$as_echo "$ac_try_echo"; } >&5
2598  (eval "$ac_compile") 2>conftest.err
2599  ac_status=$?
2600  if test -s conftest.err; then
2601    grep -v '^ *+' conftest.err >conftest.er1
2602    cat conftest.er1 >&5
2603    mv -f conftest.er1 conftest.err
2604  fi
2605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2606  test $ac_status = 0; } && {
2607	 test -z "$ac_c_werror_flag" ||
2608	 test ! -s conftest.err
2609       } && test -s conftest.$ac_objext; then :
2610  ac_retval=0
2611else
2612  $as_echo "$as_me: failed program was:" >&5
2613sed 's/^/| /' conftest.$ac_ext >&5
2614
2615	ac_retval=1
2616fi
2617  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2618  as_fn_set_status $ac_retval
2619
2620} # ac_fn_c_try_compile
2621
2622# ac_fn_c_try_cpp LINENO
2623# ----------------------
2624# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2625ac_fn_c_try_cpp ()
2626{
2627  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2628  if { { ac_try="$ac_cpp conftest.$ac_ext"
2629case "(($ac_try" in
2630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631  *) ac_try_echo=$ac_try;;
2632esac
2633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2634$as_echo "$ac_try_echo"; } >&5
2635  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2636  ac_status=$?
2637  if test -s conftest.err; then
2638    grep -v '^ *+' conftest.err >conftest.er1
2639    cat conftest.er1 >&5
2640    mv -f conftest.er1 conftest.err
2641  fi
2642  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2643  test $ac_status = 0; } > conftest.i && {
2644	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2645	 test ! -s conftest.err
2646       }; then :
2647  ac_retval=0
2648else
2649  $as_echo "$as_me: failed program was:" >&5
2650sed 's/^/| /' conftest.$ac_ext >&5
2651
2652    ac_retval=1
2653fi
2654  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2655  as_fn_set_status $ac_retval
2656
2657} # ac_fn_c_try_cpp
2658
2659# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2660# -------------------------------------------------------
2661# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2662# the include files in INCLUDES and setting the cache variable VAR
2663# accordingly.
2664ac_fn_c_check_header_mongrel ()
2665{
2666  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2667  if eval \${$3+:} false; then :
2668  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2669$as_echo_n "checking for $2... " >&6; }
2670if eval \${$3+:} false; then :
2671  $as_echo_n "(cached) " >&6
2672fi
2673eval ac_res=\$$3
2674	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2675$as_echo "$ac_res" >&6; }
2676else
2677  # Is the header compilable?
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2679$as_echo_n "checking $2 usability... " >&6; }
2680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2681/* end confdefs.h.  */
2682$4
2683#include <$2>
2684_ACEOF
2685if ac_fn_c_try_compile "$LINENO"; then :
2686  ac_header_compiler=yes
2687else
2688  ac_header_compiler=no
2689fi
2690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2692$as_echo "$ac_header_compiler" >&6; }
2693
2694# Is the header present?
2695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2696$as_echo_n "checking $2 presence... " >&6; }
2697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2698/* end confdefs.h.  */
2699#include <$2>
2700_ACEOF
2701if ac_fn_c_try_cpp "$LINENO"; then :
2702  ac_header_preproc=yes
2703else
2704  ac_header_preproc=no
2705fi
2706rm -f conftest.err conftest.i conftest.$ac_ext
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2708$as_echo "$ac_header_preproc" >&6; }
2709
2710# So?  What about this header?
2711case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2712  yes:no: )
2713    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2714$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2715    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2716$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2717    ;;
2718  no:yes:* )
2719    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2720$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2721    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2722$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2723    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2724$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2725    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2726$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2727    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2728$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2729( $as_echo "## ----------------------------------------------------------------- ##
2730## Report this to https://gitlab.freedesktop.org/xorg/xserver/issues ##
2731## ----------------------------------------------------------------- ##"
2732     ) | sed "s/^/$as_me: WARNING:     /" >&2
2733    ;;
2734esac
2735  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2736$as_echo_n "checking for $2... " >&6; }
2737if eval \${$3+:} false; then :
2738  $as_echo_n "(cached) " >&6
2739else
2740  eval "$3=\$ac_header_compiler"
2741fi
2742eval ac_res=\$$3
2743	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2744$as_echo "$ac_res" >&6; }
2745fi
2746  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2747
2748} # ac_fn_c_check_header_mongrel
2749
2750# ac_fn_c_try_run LINENO
2751# ----------------------
2752# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2753# that executables *can* be run.
2754ac_fn_c_try_run ()
2755{
2756  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2757  if { { ac_try="$ac_link"
2758case "(($ac_try" in
2759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760  *) ac_try_echo=$ac_try;;
2761esac
2762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2763$as_echo "$ac_try_echo"; } >&5
2764  (eval "$ac_link") 2>&5
2765  ac_status=$?
2766  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2767  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2768  { { case "(($ac_try" in
2769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770  *) ac_try_echo=$ac_try;;
2771esac
2772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2773$as_echo "$ac_try_echo"; } >&5
2774  (eval "$ac_try") 2>&5
2775  ac_status=$?
2776  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2777  test $ac_status = 0; }; }; then :
2778  ac_retval=0
2779else
2780  $as_echo "$as_me: program exited with status $ac_status" >&5
2781       $as_echo "$as_me: failed program was:" >&5
2782sed 's/^/| /' conftest.$ac_ext >&5
2783
2784       ac_retval=$ac_status
2785fi
2786  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2787  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2788  as_fn_set_status $ac_retval
2789
2790} # ac_fn_c_try_run
2791
2792# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2793# -------------------------------------------------------
2794# Tests whether HEADER exists and can be compiled using the include files in
2795# INCLUDES, setting the cache variable VAR accordingly.
2796ac_fn_c_check_header_compile ()
2797{
2798  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2800$as_echo_n "checking for $2... " >&6; }
2801if eval \${$3+:} false; then :
2802  $as_echo_n "(cached) " >&6
2803else
2804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2805/* end confdefs.h.  */
2806$4
2807#include <$2>
2808_ACEOF
2809if ac_fn_c_try_compile "$LINENO"; then :
2810  eval "$3=yes"
2811else
2812  eval "$3=no"
2813fi
2814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2815fi
2816eval ac_res=\$$3
2817	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2818$as_echo "$ac_res" >&6; }
2819  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2820
2821} # ac_fn_c_check_header_compile
2822
2823# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2824# ---------------------------------------------
2825# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2826# accordingly.
2827ac_fn_c_check_decl ()
2828{
2829  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2830  as_decl_name=`echo $2|sed 's/ *(.*//'`
2831  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2832  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2833$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2834if eval \${$3+:} false; then :
2835  $as_echo_n "(cached) " >&6
2836else
2837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2838/* end confdefs.h.  */
2839$4
2840int
2841main ()
2842{
2843#ifndef $as_decl_name
2844#ifdef __cplusplus
2845  (void) $as_decl_use;
2846#else
2847  (void) $as_decl_name;
2848#endif
2849#endif
2850
2851  ;
2852  return 0;
2853}
2854_ACEOF
2855if ac_fn_c_try_compile "$LINENO"; then :
2856  eval "$3=yes"
2857else
2858  eval "$3=no"
2859fi
2860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2861fi
2862eval ac_res=\$$3
2863	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2864$as_echo "$ac_res" >&6; }
2865  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2866
2867} # ac_fn_c_check_decl
2868
2869# ac_fn_c_try_link LINENO
2870# -----------------------
2871# Try to link conftest.$ac_ext, and return whether this succeeded.
2872ac_fn_c_try_link ()
2873{
2874  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2875  rm -f conftest.$ac_objext conftest$ac_exeext
2876  if { { ac_try="$ac_link"
2877case "(($ac_try" in
2878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879  *) ac_try_echo=$ac_try;;
2880esac
2881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2882$as_echo "$ac_try_echo"; } >&5
2883  (eval "$ac_link") 2>conftest.err
2884  ac_status=$?
2885  if test -s conftest.err; then
2886    grep -v '^ *+' conftest.err >conftest.er1
2887    cat conftest.er1 >&5
2888    mv -f conftest.er1 conftest.err
2889  fi
2890  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2891  test $ac_status = 0; } && {
2892	 test -z "$ac_c_werror_flag" ||
2893	 test ! -s conftest.err
2894       } && test -s conftest$ac_exeext && {
2895	 test "$cross_compiling" = yes ||
2896	 test -x conftest$ac_exeext
2897       }; then :
2898  ac_retval=0
2899else
2900  $as_echo "$as_me: failed program was:" >&5
2901sed 's/^/| /' conftest.$ac_ext >&5
2902
2903	ac_retval=1
2904fi
2905  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2906  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2907  # interfere with the next link command; also delete a directory that is
2908  # left behind by Apple's compiler.  We do this before executing the actions.
2909  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2910  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2911  as_fn_set_status $ac_retval
2912
2913} # ac_fn_c_try_link
2914
2915# ac_fn_c_check_func LINENO FUNC VAR
2916# ----------------------------------
2917# Tests whether FUNC exists, setting the cache variable VAR accordingly
2918ac_fn_c_check_func ()
2919{
2920  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2921  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2922$as_echo_n "checking for $2... " >&6; }
2923if eval \${$3+:} false; then :
2924  $as_echo_n "(cached) " >&6
2925else
2926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2927/* end confdefs.h.  */
2928/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2929   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2930#define $2 innocuous_$2
2931
2932/* System header to define __stub macros and hopefully few prototypes,
2933    which can conflict with char $2 (); below.
2934    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2935    <limits.h> exists even on freestanding compilers.  */
2936
2937#ifdef __STDC__
2938# include <limits.h>
2939#else
2940# include <assert.h>
2941#endif
2942
2943#undef $2
2944
2945/* Override any GCC internal prototype to avoid an error.
2946   Use char because int might match the return type of a GCC
2947   builtin and then its argument prototype would still apply.  */
2948#ifdef __cplusplus
2949extern "C"
2950#endif
2951char $2 ();
2952/* The GNU C library defines this for functions which it implements
2953    to always fail with ENOSYS.  Some functions are actually named
2954    something starting with __ and the normal name is an alias.  */
2955#if defined __stub_$2 || defined __stub___$2
2956choke me
2957#endif
2958
2959int
2960main ()
2961{
2962return $2 ();
2963  ;
2964  return 0;
2965}
2966_ACEOF
2967if ac_fn_c_try_link "$LINENO"; then :
2968  eval "$3=yes"
2969else
2970  eval "$3=no"
2971fi
2972rm -f core conftest.err conftest.$ac_objext \
2973    conftest$ac_exeext conftest.$ac_ext
2974fi
2975eval ac_res=\$$3
2976	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2977$as_echo "$ac_res" >&6; }
2978  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2979
2980} # ac_fn_c_check_func
2981
2982# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2983# --------------------------------------------
2984# Tries to find the compile-time value of EXPR in a program that includes
2985# INCLUDES, setting VAR accordingly. Returns whether the value could be
2986# computed
2987ac_fn_c_compute_int ()
2988{
2989  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2990  if test "$cross_compiling" = yes; then
2991    # Depending upon the size, compute the lo and hi bounds.
2992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2993/* end confdefs.h.  */
2994$4
2995int
2996main ()
2997{
2998static int test_array [1 - 2 * !(($2) >= 0)];
2999test_array [0] = 0;
3000return test_array [0];
3001
3002  ;
3003  return 0;
3004}
3005_ACEOF
3006if ac_fn_c_try_compile "$LINENO"; then :
3007  ac_lo=0 ac_mid=0
3008  while :; do
3009    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010/* end confdefs.h.  */
3011$4
3012int
3013main ()
3014{
3015static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3016test_array [0] = 0;
3017return test_array [0];
3018
3019  ;
3020  return 0;
3021}
3022_ACEOF
3023if ac_fn_c_try_compile "$LINENO"; then :
3024  ac_hi=$ac_mid; break
3025else
3026  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3027			if test $ac_lo -le $ac_mid; then
3028			  ac_lo= ac_hi=
3029			  break
3030			fi
3031			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3032fi
3033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3034  done
3035else
3036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3037/* end confdefs.h.  */
3038$4
3039int
3040main ()
3041{
3042static int test_array [1 - 2 * !(($2) < 0)];
3043test_array [0] = 0;
3044return test_array [0];
3045
3046  ;
3047  return 0;
3048}
3049_ACEOF
3050if ac_fn_c_try_compile "$LINENO"; then :
3051  ac_hi=-1 ac_mid=-1
3052  while :; do
3053    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3054/* end confdefs.h.  */
3055$4
3056int
3057main ()
3058{
3059static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3060test_array [0] = 0;
3061return test_array [0];
3062
3063  ;
3064  return 0;
3065}
3066_ACEOF
3067if ac_fn_c_try_compile "$LINENO"; then :
3068  ac_lo=$ac_mid; break
3069else
3070  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3071			if test $ac_mid -le $ac_hi; then
3072			  ac_lo= ac_hi=
3073			  break
3074			fi
3075			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3076fi
3077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3078  done
3079else
3080  ac_lo= ac_hi=
3081fi
3082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3083fi
3084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3085# Binary search between lo and hi bounds.
3086while test "x$ac_lo" != "x$ac_hi"; do
3087  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089/* end confdefs.h.  */
3090$4
3091int
3092main ()
3093{
3094static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3095test_array [0] = 0;
3096return test_array [0];
3097
3098  ;
3099  return 0;
3100}
3101_ACEOF
3102if ac_fn_c_try_compile "$LINENO"; then :
3103  ac_hi=$ac_mid
3104else
3105  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3106fi
3107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3108done
3109case $ac_lo in #((
3110?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3111'') ac_retval=1 ;;
3112esac
3113  else
3114    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3115/* end confdefs.h.  */
3116$4
3117static long int longval () { return $2; }
3118static unsigned long int ulongval () { return $2; }
3119#include <stdio.h>
3120#include <stdlib.h>
3121int
3122main ()
3123{
3124
3125  FILE *f = fopen ("conftest.val", "w");
3126  if (! f)
3127    return 1;
3128  if (($2) < 0)
3129    {
3130      long int i = longval ();
3131      if (i != ($2))
3132	return 1;
3133      fprintf (f, "%ld", i);
3134    }
3135  else
3136    {
3137      unsigned long int i = ulongval ();
3138      if (i != ($2))
3139	return 1;
3140      fprintf (f, "%lu", i);
3141    }
3142  /* Do not output a trailing newline, as this causes \r\n confusion
3143     on some platforms.  */
3144  return ferror (f) || fclose (f) != 0;
3145
3146  ;
3147  return 0;
3148}
3149_ACEOF
3150if ac_fn_c_try_run "$LINENO"; then :
3151  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3152else
3153  ac_retval=1
3154fi
3155rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3156  conftest.$ac_objext conftest.beam conftest.$ac_ext
3157rm -f conftest.val
3158
3159  fi
3160  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3161  as_fn_set_status $ac_retval
3162
3163} # ac_fn_c_compute_int
3164
3165# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3166# -------------------------------------------
3167# Tests whether TYPE exists after having included INCLUDES, setting cache
3168# variable VAR accordingly.
3169ac_fn_c_check_type ()
3170{
3171  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3172  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3173$as_echo_n "checking for $2... " >&6; }
3174if eval \${$3+:} false; then :
3175  $as_echo_n "(cached) " >&6
3176else
3177  eval "$3=no"
3178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3179/* end confdefs.h.  */
3180$4
3181int
3182main ()
3183{
3184if (sizeof ($2))
3185	 return 0;
3186  ;
3187  return 0;
3188}
3189_ACEOF
3190if ac_fn_c_try_compile "$LINENO"; then :
3191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192/* end confdefs.h.  */
3193$4
3194int
3195main ()
3196{
3197if (sizeof (($2)))
3198	    return 0;
3199  ;
3200  return 0;
3201}
3202_ACEOF
3203if ac_fn_c_try_compile "$LINENO"; then :
3204
3205else
3206  eval "$3=yes"
3207fi
3208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209fi
3210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211fi
3212eval ac_res=\$$3
3213	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3214$as_echo "$ac_res" >&6; }
3215  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3216
3217} # ac_fn_c_check_type
3218
3219# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3220# ----------------------------------------------------
3221# Tries to find if the field MEMBER exists in type AGGR, after including
3222# INCLUDES, setting cache variable VAR accordingly.
3223ac_fn_c_check_member ()
3224{
3225  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3226  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3227$as_echo_n "checking for $2.$3... " >&6; }
3228if eval \${$4+:} false; then :
3229  $as_echo_n "(cached) " >&6
3230else
3231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232/* end confdefs.h.  */
3233$5
3234int
3235main ()
3236{
3237static $2 ac_aggr;
3238if (ac_aggr.$3)
3239return 0;
3240  ;
3241  return 0;
3242}
3243_ACEOF
3244if ac_fn_c_try_compile "$LINENO"; then :
3245  eval "$4=yes"
3246else
3247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248/* end confdefs.h.  */
3249$5
3250int
3251main ()
3252{
3253static $2 ac_aggr;
3254if (sizeof ac_aggr.$3)
3255return 0;
3256  ;
3257  return 0;
3258}
3259_ACEOF
3260if ac_fn_c_try_compile "$LINENO"; then :
3261  eval "$4=yes"
3262else
3263  eval "$4=no"
3264fi
3265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266fi
3267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268fi
3269eval ac_res=\$$4
3270	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3271$as_echo "$ac_res" >&6; }
3272  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3273
3274} # ac_fn_c_check_member
3275cat >config.log <<_ACEOF
3276This file contains any messages produced by compilers while
3277running configure, to aid debugging if configure makes a mistake.
3278
3279It was created by xorg-server $as_me 1.20.11, which was
3280generated by GNU Autoconf 2.69.  Invocation command line was
3281
3282  $ $0 $@
3283
3284_ACEOF
3285exec 5>>config.log
3286{
3287cat <<_ASUNAME
3288## --------- ##
3289## Platform. ##
3290## --------- ##
3291
3292hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3293uname -m = `(uname -m) 2>/dev/null || echo unknown`
3294uname -r = `(uname -r) 2>/dev/null || echo unknown`
3295uname -s = `(uname -s) 2>/dev/null || echo unknown`
3296uname -v = `(uname -v) 2>/dev/null || echo unknown`
3297
3298/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3299/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3300
3301/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3302/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3303/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3304/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3305/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3306/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3307/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3308
3309_ASUNAME
3310
3311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312for as_dir in $PATH
3313do
3314  IFS=$as_save_IFS
3315  test -z "$as_dir" && as_dir=.
3316    $as_echo "PATH: $as_dir"
3317  done
3318IFS=$as_save_IFS
3319
3320} >&5
3321
3322cat >&5 <<_ACEOF
3323
3324
3325## ----------- ##
3326## Core tests. ##
3327## ----------- ##
3328
3329_ACEOF
3330
3331
3332# Keep a trace of the command line.
3333# Strip out --no-create and --no-recursion so they do not pile up.
3334# Strip out --silent because we don't want to record it for future runs.
3335# Also quote any args containing shell meta-characters.
3336# Make two passes to allow for proper duplicate-argument suppression.
3337ac_configure_args=
3338ac_configure_args0=
3339ac_configure_args1=
3340ac_must_keep_next=false
3341for ac_pass in 1 2
3342do
3343  for ac_arg
3344  do
3345    case $ac_arg in
3346    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3347    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3348    | -silent | --silent | --silen | --sile | --sil)
3349      continue ;;
3350    *\'*)
3351      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3352    esac
3353    case $ac_pass in
3354    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3355    2)
3356      as_fn_append ac_configure_args1 " '$ac_arg'"
3357      if test $ac_must_keep_next = true; then
3358	ac_must_keep_next=false # Got value, back to normal.
3359      else
3360	case $ac_arg in
3361	  *=* | --config-cache | -C | -disable-* | --disable-* \
3362	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3363	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3364	  | -with-* | --with-* | -without-* | --without-* | --x)
3365	    case "$ac_configure_args0 " in
3366	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3367	    esac
3368	    ;;
3369	  -* ) ac_must_keep_next=true ;;
3370	esac
3371      fi
3372      as_fn_append ac_configure_args " '$ac_arg'"
3373      ;;
3374    esac
3375  done
3376done
3377{ ac_configure_args0=; unset ac_configure_args0;}
3378{ ac_configure_args1=; unset ac_configure_args1;}
3379
3380# When interrupted or exit'd, cleanup temporary files, and complete
3381# config.log.  We remove comments because anyway the quotes in there
3382# would cause problems or look ugly.
3383# WARNING: Use '\'' to represent an apostrophe within the trap.
3384# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3385trap 'exit_status=$?
3386  # Save into config.log some information that might help in debugging.
3387  {
3388    echo
3389
3390    $as_echo "## ---------------- ##
3391## Cache variables. ##
3392## ---------------- ##"
3393    echo
3394    # The following way of writing the cache mishandles newlines in values,
3395(
3396  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3397    eval ac_val=\$$ac_var
3398    case $ac_val in #(
3399    *${as_nl}*)
3400      case $ac_var in #(
3401      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3402$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3403      esac
3404      case $ac_var in #(
3405      _ | IFS | as_nl) ;; #(
3406      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3407      *) { eval $ac_var=; unset $ac_var;} ;;
3408      esac ;;
3409    esac
3410  done
3411  (set) 2>&1 |
3412    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3413    *${as_nl}ac_space=\ *)
3414      sed -n \
3415	"s/'\''/'\''\\\\'\'''\''/g;
3416	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3417      ;; #(
3418    *)
3419      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3420      ;;
3421    esac |
3422    sort
3423)
3424    echo
3425
3426    $as_echo "## ----------------- ##
3427## Output variables. ##
3428## ----------------- ##"
3429    echo
3430    for ac_var in $ac_subst_vars
3431    do
3432      eval ac_val=\$$ac_var
3433      case $ac_val in
3434      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3435      esac
3436      $as_echo "$ac_var='\''$ac_val'\''"
3437    done | sort
3438    echo
3439
3440    if test -n "$ac_subst_files"; then
3441      $as_echo "## ------------------- ##
3442## File substitutions. ##
3443## ------------------- ##"
3444      echo
3445      for ac_var in $ac_subst_files
3446      do
3447	eval ac_val=\$$ac_var
3448	case $ac_val in
3449	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3450	esac
3451	$as_echo "$ac_var='\''$ac_val'\''"
3452      done | sort
3453      echo
3454    fi
3455
3456    if test -s confdefs.h; then
3457      $as_echo "## ----------- ##
3458## confdefs.h. ##
3459## ----------- ##"
3460      echo
3461      cat confdefs.h
3462      echo
3463    fi
3464    test "$ac_signal" != 0 &&
3465      $as_echo "$as_me: caught signal $ac_signal"
3466    $as_echo "$as_me: exit $exit_status"
3467  } >&5
3468  rm -f core *.core core.conftest.* &&
3469    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3470    exit $exit_status
3471' 0
3472for ac_signal in 1 2 13 15; do
3473  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3474done
3475ac_signal=0
3476
3477# confdefs.h avoids OS command line length limits that DEFS can exceed.
3478rm -f -r conftest* confdefs.h
3479
3480$as_echo "/* confdefs.h */" > confdefs.h
3481
3482# Predefined preprocessor variables.
3483
3484cat >>confdefs.h <<_ACEOF
3485#define PACKAGE_NAME "$PACKAGE_NAME"
3486_ACEOF
3487
3488cat >>confdefs.h <<_ACEOF
3489#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3490_ACEOF
3491
3492cat >>confdefs.h <<_ACEOF
3493#define PACKAGE_VERSION "$PACKAGE_VERSION"
3494_ACEOF
3495
3496cat >>confdefs.h <<_ACEOF
3497#define PACKAGE_STRING "$PACKAGE_STRING"
3498_ACEOF
3499
3500cat >>confdefs.h <<_ACEOF
3501#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3502_ACEOF
3503
3504cat >>confdefs.h <<_ACEOF
3505#define PACKAGE_URL "$PACKAGE_URL"
3506_ACEOF
3507
3508
3509# Let the site file select an alternate cache file if it wants to.
3510# Prefer an explicitly selected file to automatically selected ones.
3511ac_site_file1=NONE
3512ac_site_file2=NONE
3513if test -n "$CONFIG_SITE"; then
3514  # We do not want a PATH search for config.site.
3515  case $CONFIG_SITE in #((
3516    -*)  ac_site_file1=./$CONFIG_SITE;;
3517    */*) ac_site_file1=$CONFIG_SITE;;
3518    *)   ac_site_file1=./$CONFIG_SITE;;
3519  esac
3520elif test "x$prefix" != xNONE; then
3521  ac_site_file1=$prefix/share/config.site
3522  ac_site_file2=$prefix/etc/config.site
3523else
3524  ac_site_file1=$ac_default_prefix/share/config.site
3525  ac_site_file2=$ac_default_prefix/etc/config.site
3526fi
3527for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3528do
3529  test "x$ac_site_file" = xNONE && continue
3530  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3531    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3532$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3533    sed 's/^/| /' "$ac_site_file" >&5
3534    . "$ac_site_file" \
3535      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537as_fn_error $? "failed to load site script $ac_site_file
3538See \`config.log' for more details" "$LINENO" 5; }
3539  fi
3540done
3541
3542if test -r "$cache_file"; then
3543  # Some versions of bash will fail to source /dev/null (special files
3544  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3545  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3546    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3547$as_echo "$as_me: loading cache $cache_file" >&6;}
3548    case $cache_file in
3549      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3550      *)                      . "./$cache_file";;
3551    esac
3552  fi
3553else
3554  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3555$as_echo "$as_me: creating cache $cache_file" >&6;}
3556  >$cache_file
3557fi
3558
3559# Check that the precious variables saved in the cache have kept the same
3560# value.
3561ac_cache_corrupted=false
3562for ac_var in $ac_precious_vars; do
3563  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3564  eval ac_new_set=\$ac_env_${ac_var}_set
3565  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3566  eval ac_new_val=\$ac_env_${ac_var}_value
3567  case $ac_old_set,$ac_new_set in
3568    set,)
3569      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3570$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3571      ac_cache_corrupted=: ;;
3572    ,set)
3573      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3574$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3575      ac_cache_corrupted=: ;;
3576    ,);;
3577    *)
3578      if test "x$ac_old_val" != "x$ac_new_val"; then
3579	# differences in whitespace do not lead to failure.
3580	ac_old_val_w=`echo x $ac_old_val`
3581	ac_new_val_w=`echo x $ac_new_val`
3582	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3583	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3584$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3585	  ac_cache_corrupted=:
3586	else
3587	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3588$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3589	  eval $ac_var=\$ac_old_val
3590	fi
3591	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3592$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3593	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3594$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3595      fi;;
3596  esac
3597  # Pass precious variables to config.status.
3598  if test "$ac_new_set" = set; then
3599    case $ac_new_val in
3600    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3601    *) ac_arg=$ac_var=$ac_new_val ;;
3602    esac
3603    case " $ac_configure_args " in
3604      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3605      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3606    esac
3607  fi
3608done
3609if $ac_cache_corrupted; then
3610  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3613$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3614  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3615fi
3616## -------------------- ##
3617## Main body of script. ##
3618## -------------------- ##
3619
3620ac_ext=c
3621ac_cpp='$CPP $CPPFLAGS'
3622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625
3626
3627RELEASE_DATE="2021-04-13"
3628RELEASE_NAME="Arroz con Pollo"
3629
3630
3631am__api_version='1.16'
3632
3633ac_aux_dir=
3634for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3635  if test -f "$ac_dir/install-sh"; then
3636    ac_aux_dir=$ac_dir
3637    ac_install_sh="$ac_aux_dir/install-sh -c"
3638    break
3639  elif test -f "$ac_dir/install.sh"; then
3640    ac_aux_dir=$ac_dir
3641    ac_install_sh="$ac_aux_dir/install.sh -c"
3642    break
3643  elif test -f "$ac_dir/shtool"; then
3644    ac_aux_dir=$ac_dir
3645    ac_install_sh="$ac_aux_dir/shtool install -c"
3646    break
3647  fi
3648done
3649if test -z "$ac_aux_dir"; then
3650  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3651fi
3652
3653# These three variables are undocumented and unsupported,
3654# and are intended to be withdrawn in a future Autoconf release.
3655# They can cause serious problems if a builder's source tree is in a directory
3656# whose full name contains unusual characters.
3657ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3658ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3659ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3660
3661
3662# Find a good install program.  We prefer a C program (faster),
3663# so one script is as good as another.  But avoid the broken or
3664# incompatible versions:
3665# SysV /etc/install, /usr/sbin/install
3666# SunOS /usr/etc/install
3667# IRIX /sbin/install
3668# AIX /bin/install
3669# AmigaOS /C/install, which installs bootblocks on floppy discs
3670# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3671# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3672# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3673# OS/2's system install, which has a completely different semantic
3674# ./install, which can be erroneously created by make from ./install.sh.
3675# Reject install programs that cannot install multiple files.
3676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3677$as_echo_n "checking for a BSD-compatible install... " >&6; }
3678if test -z "$INSTALL"; then
3679if ${ac_cv_path_install+:} false; then :
3680  $as_echo_n "(cached) " >&6
3681else
3682  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683for as_dir in $PATH
3684do
3685  IFS=$as_save_IFS
3686  test -z "$as_dir" && as_dir=.
3687    # Account for people who put trailing slashes in PATH elements.
3688case $as_dir/ in #((
3689  ./ | .// | /[cC]/* | \
3690  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3691  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3692  /usr/ucb/* ) ;;
3693  *)
3694    # OSF1 and SCO ODT 3.0 have their own names for install.
3695    # Don't use installbsd from OSF since it installs stuff as root
3696    # by default.
3697    for ac_prog in ginstall scoinst install; do
3698      for ac_exec_ext in '' $ac_executable_extensions; do
3699	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3700	  if test $ac_prog = install &&
3701	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3702	    # AIX install.  It has an incompatible calling convention.
3703	    :
3704	  elif test $ac_prog = install &&
3705	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3706	    # program-specific install script used by HP pwplus--don't use.
3707	    :
3708	  else
3709	    rm -rf conftest.one conftest.two conftest.dir
3710	    echo one > conftest.one
3711	    echo two > conftest.two
3712	    mkdir conftest.dir
3713	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3714	      test -s conftest.one && test -s conftest.two &&
3715	      test -s conftest.dir/conftest.one &&
3716	      test -s conftest.dir/conftest.two
3717	    then
3718	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3719	      break 3
3720	    fi
3721	  fi
3722	fi
3723      done
3724    done
3725    ;;
3726esac
3727
3728  done
3729IFS=$as_save_IFS
3730
3731rm -rf conftest.one conftest.two conftest.dir
3732
3733fi
3734  if test "${ac_cv_path_install+set}" = set; then
3735    INSTALL=$ac_cv_path_install
3736  else
3737    # As a last resort, use the slow shell script.  Don't cache a
3738    # value for INSTALL within a source directory, because that will
3739    # break other packages using the cache if that directory is
3740    # removed, or if the value is a relative name.
3741    INSTALL=$ac_install_sh
3742  fi
3743fi
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3745$as_echo "$INSTALL" >&6; }
3746
3747# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3748# It thinks the first close brace ends the variable substitution.
3749test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3750
3751test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3752
3753test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3754
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3756$as_echo_n "checking whether build environment is sane... " >&6; }
3757# Reject unsafe characters in $srcdir or the absolute working directory
3758# name.  Accept space and tab only in the latter.
3759am_lf='
3760'
3761case `pwd` in
3762  *[\\\"\#\$\&\'\`$am_lf]*)
3763    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3764esac
3765case $srcdir in
3766  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3767    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3768esac
3769
3770# Do 'set' in a subshell so we don't clobber the current shell's
3771# arguments.  Must try -L first in case configure is actually a
3772# symlink; some systems play weird games with the mod time of symlinks
3773# (eg FreeBSD returns the mod time of the symlink's containing
3774# directory).
3775if (
3776   am_has_slept=no
3777   for am_try in 1 2; do
3778     echo "timestamp, slept: $am_has_slept" > conftest.file
3779     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3780     if test "$*" = "X"; then
3781	# -L didn't work.
3782	set X `ls -t "$srcdir/configure" conftest.file`
3783     fi
3784     if test "$*" != "X $srcdir/configure conftest.file" \
3785	&& test "$*" != "X conftest.file $srcdir/configure"; then
3786
3787	# If neither matched, then we have a broken ls.  This can happen
3788	# if, for instance, CONFIG_SHELL is bash and it inherits a
3789	# broken ls alias from the environment.  This has actually
3790	# happened.  Such a system could not be considered "sane".
3791	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3792  alias in your environment" "$LINENO" 5
3793     fi
3794     if test "$2" = conftest.file || test $am_try -eq 2; then
3795       break
3796     fi
3797     # Just in case.
3798     sleep 1
3799     am_has_slept=yes
3800   done
3801   test "$2" = conftest.file
3802   )
3803then
3804   # Ok.
3805   :
3806else
3807   as_fn_error $? "newly created file is older than distributed files!
3808Check your system clock" "$LINENO" 5
3809fi
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3811$as_echo "yes" >&6; }
3812# If we didn't sleep, we still need to ensure time stamps of config.status and
3813# generated files are strictly newer.
3814am_sleep_pid=
3815if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3816  ( sleep 1 ) &
3817  am_sleep_pid=$!
3818fi
3819
3820rm -f conftest.file
3821
3822test "$program_prefix" != NONE &&
3823  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3824# Use a double $ so make ignores it.
3825test "$program_suffix" != NONE &&
3826  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3827# Double any \ or $.
3828# By default was `s,x,x', remove it if useless.
3829ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3830program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3831
3832# Expand $ac_aux_dir to an absolute path.
3833am_aux_dir=`cd "$ac_aux_dir" && pwd`
3834
3835if test x"${MISSING+set}" != xset; then
3836  case $am_aux_dir in
3837  *\ * | *\	*)
3838    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3839  *)
3840    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3841  esac
3842fi
3843# Use eval to expand $SHELL
3844if eval "$MISSING --is-lightweight"; then
3845  am_missing_run="$MISSING "
3846else
3847  am_missing_run=
3848  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3849$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3850fi
3851
3852if test x"${install_sh+set}" != xset; then
3853  case $am_aux_dir in
3854  *\ * | *\	*)
3855    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3856  *)
3857    install_sh="\${SHELL} $am_aux_dir/install-sh"
3858  esac
3859fi
3860
3861# Installed binaries are usually stripped using 'strip' when the user
3862# run "make install-strip".  However 'strip' might not be the right
3863# tool to use in cross-compilation environments, therefore Automake
3864# will honor the 'STRIP' environment variable to overrule this program.
3865if test "$cross_compiling" != no; then
3866  if test -n "$ac_tool_prefix"; then
3867  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3868set dummy ${ac_tool_prefix}strip; ac_word=$2
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870$as_echo_n "checking for $ac_word... " >&6; }
3871if ${ac_cv_prog_STRIP+:} false; then :
3872  $as_echo_n "(cached) " >&6
3873else
3874  if test -n "$STRIP"; then
3875  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3876else
3877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878for as_dir in $PATH
3879do
3880  IFS=$as_save_IFS
3881  test -z "$as_dir" && as_dir=.
3882    for ac_exec_ext in '' $ac_executable_extensions; do
3883  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3884    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3885    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3886    break 2
3887  fi
3888done
3889  done
3890IFS=$as_save_IFS
3891
3892fi
3893fi
3894STRIP=$ac_cv_prog_STRIP
3895if test -n "$STRIP"; then
3896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3897$as_echo "$STRIP" >&6; }
3898else
3899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900$as_echo "no" >&6; }
3901fi
3902
3903
3904fi
3905if test -z "$ac_cv_prog_STRIP"; then
3906  ac_ct_STRIP=$STRIP
3907  # Extract the first word of "strip", so it can be a program name with args.
3908set dummy strip; ac_word=$2
3909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3910$as_echo_n "checking for $ac_word... " >&6; }
3911if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3912  $as_echo_n "(cached) " >&6
3913else
3914  if test -n "$ac_ct_STRIP"; then
3915  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3916else
3917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918for as_dir in $PATH
3919do
3920  IFS=$as_save_IFS
3921  test -z "$as_dir" && as_dir=.
3922    for ac_exec_ext in '' $ac_executable_extensions; do
3923  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3924    ac_cv_prog_ac_ct_STRIP="strip"
3925    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3926    break 2
3927  fi
3928done
3929  done
3930IFS=$as_save_IFS
3931
3932fi
3933fi
3934ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3935if test -n "$ac_ct_STRIP"; then
3936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3937$as_echo "$ac_ct_STRIP" >&6; }
3938else
3939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3940$as_echo "no" >&6; }
3941fi
3942
3943  if test "x$ac_ct_STRIP" = x; then
3944    STRIP=":"
3945  else
3946    case $cross_compiling:$ac_tool_warned in
3947yes:)
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3950ac_tool_warned=yes ;;
3951esac
3952    STRIP=$ac_ct_STRIP
3953  fi
3954else
3955  STRIP="$ac_cv_prog_STRIP"
3956fi
3957
3958fi
3959INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3960
3961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3962$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3963if test -z "$MKDIR_P"; then
3964  if ${ac_cv_path_mkdir+:} false; then :
3965  $as_echo_n "(cached) " >&6
3966else
3967  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3969do
3970  IFS=$as_save_IFS
3971  test -z "$as_dir" && as_dir=.
3972    for ac_prog in mkdir gmkdir; do
3973	 for ac_exec_ext in '' $ac_executable_extensions; do
3974	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3975	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3976	     'mkdir (GNU coreutils) '* | \
3977	     'mkdir (coreutils) '* | \
3978	     'mkdir (fileutils) '4.1*)
3979	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3980	       break 3;;
3981	   esac
3982	 done
3983       done
3984  done
3985IFS=$as_save_IFS
3986
3987fi
3988
3989  test -d ./--version && rmdir ./--version
3990  if test "${ac_cv_path_mkdir+set}" = set; then
3991    MKDIR_P="$ac_cv_path_mkdir -p"
3992  else
3993    # As a last resort, use the slow shell script.  Don't cache a
3994    # value for MKDIR_P within a source directory, because that will
3995    # break other packages using the cache if that directory is
3996    # removed, or if the value is a relative name.
3997    MKDIR_P="$ac_install_sh -d"
3998  fi
3999fi
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4001$as_echo "$MKDIR_P" >&6; }
4002
4003for ac_prog in gawk mawk nawk awk
4004do
4005  # Extract the first word of "$ac_prog", so it can be a program name with args.
4006set dummy $ac_prog; ac_word=$2
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4008$as_echo_n "checking for $ac_word... " >&6; }
4009if ${ac_cv_prog_AWK+:} false; then :
4010  $as_echo_n "(cached) " >&6
4011else
4012  if test -n "$AWK"; then
4013  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4014else
4015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016for as_dir in $PATH
4017do
4018  IFS=$as_save_IFS
4019  test -z "$as_dir" && as_dir=.
4020    for ac_exec_ext in '' $ac_executable_extensions; do
4021  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4022    ac_cv_prog_AWK="$ac_prog"
4023    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4024    break 2
4025  fi
4026done
4027  done
4028IFS=$as_save_IFS
4029
4030fi
4031fi
4032AWK=$ac_cv_prog_AWK
4033if test -n "$AWK"; then
4034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4035$as_echo "$AWK" >&6; }
4036else
4037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038$as_echo "no" >&6; }
4039fi
4040
4041
4042  test -n "$AWK" && break
4043done
4044
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4046$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4047set x ${MAKE-make}
4048ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4049if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4050  $as_echo_n "(cached) " >&6
4051else
4052  cat >conftest.make <<\_ACEOF
4053SHELL = /bin/sh
4054all:
4055	@echo '@@@%%%=$(MAKE)=@@@%%%'
4056_ACEOF
4057# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4058case `${MAKE-make} -f conftest.make 2>/dev/null` in
4059  *@@@%%%=?*=@@@%%%*)
4060    eval ac_cv_prog_make_${ac_make}_set=yes;;
4061  *)
4062    eval ac_cv_prog_make_${ac_make}_set=no;;
4063esac
4064rm -f conftest.make
4065fi
4066if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4068$as_echo "yes" >&6; }
4069  SET_MAKE=
4070else
4071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4072$as_echo "no" >&6; }
4073  SET_MAKE="MAKE=${MAKE-make}"
4074fi
4075
4076rm -rf .tst 2>/dev/null
4077mkdir .tst 2>/dev/null
4078if test -d .tst; then
4079  am__leading_dot=.
4080else
4081  am__leading_dot=_
4082fi
4083rmdir .tst 2>/dev/null
4084
4085# Check whether --enable-silent-rules was given.
4086if test "${enable_silent_rules+set}" = set; then :
4087  enableval=$enable_silent_rules;
4088fi
4089
4090case $enable_silent_rules in # (((
4091  yes) AM_DEFAULT_VERBOSITY=0;;
4092   no) AM_DEFAULT_VERBOSITY=1;;
4093    *) AM_DEFAULT_VERBOSITY=1;;
4094esac
4095am_make=${MAKE-make}
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4097$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4098if ${am_cv_make_support_nested_variables+:} false; then :
4099  $as_echo_n "(cached) " >&6
4100else
4101  if $as_echo 'TRUE=$(BAR$(V))
4102BAR0=false
4103BAR1=true
4104V=1
4105am__doit:
4106	@$(TRUE)
4107.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4108  am_cv_make_support_nested_variables=yes
4109else
4110  am_cv_make_support_nested_variables=no
4111fi
4112fi
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4114$as_echo "$am_cv_make_support_nested_variables" >&6; }
4115if test $am_cv_make_support_nested_variables = yes; then
4116    AM_V='$(V)'
4117  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4118else
4119  AM_V=$AM_DEFAULT_VERBOSITY
4120  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4121fi
4122AM_BACKSLASH='\'
4123
4124if test "`cd $srcdir && pwd`" != "`pwd`"; then
4125  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4126  # is not polluted with repeated "-I."
4127  am__isrc=' -I$(srcdir)'
4128  # test to see if srcdir already configured
4129  if test -f $srcdir/config.status; then
4130    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4131  fi
4132fi
4133
4134# test whether we have cygpath
4135if test -z "$CYGPATH_W"; then
4136  if (cygpath --version) >/dev/null 2>/dev/null; then
4137    CYGPATH_W='cygpath -w'
4138  else
4139    CYGPATH_W=echo
4140  fi
4141fi
4142
4143
4144# Define the identity of the package.
4145 PACKAGE='xorg-server'
4146 VERSION='1.20.11'
4147
4148
4149cat >>confdefs.h <<_ACEOF
4150#define PACKAGE "$PACKAGE"
4151_ACEOF
4152
4153
4154cat >>confdefs.h <<_ACEOF
4155#define VERSION "$VERSION"
4156_ACEOF
4157
4158# Some tools Automake needs.
4159
4160ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4161
4162
4163AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4164
4165
4166AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4167
4168
4169AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4170
4171
4172MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4173
4174# For better backward compatibility.  To be removed once Automake 1.9.x
4175# dies out for good.  For more background, see:
4176# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4177# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4178mkdir_p='$(MKDIR_P)'
4179
4180# We need awk for the "check" target (and possibly the TAP driver).  The
4181# system "awk" is bad on some platforms.
4182# Always define AMTAR for backward compatibility.  Yes, it's still used
4183# in the wild :-(  We should find a proper way to deprecate it ...
4184AMTAR='$${TAR-tar}'
4185
4186
4187# We'll loop over all known methods to create a tar archive until one works.
4188_am_tools='gnutar  pax cpio none'
4189
4190am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4191
4192
4193
4194
4195
4196
4197# POSIX will say in a future version that running "rm -f" with no argument
4198# is OK; and we want to be able to make that assumption in our Makefile
4199# recipes.  So use an aggressive probe to check that the usage we want is
4200# actually supported "in the wild" to an acceptable degree.
4201# See automake bug#10828.
4202# To make any issue more visible, cause the running configure to be aborted
4203# by default if the 'rm' program in use doesn't match our expectations; the
4204# user can still override this though.
4205if rm -f && rm -fr && rm -rf; then : OK; else
4206  cat >&2 <<'END'
4207Oops!
4208
4209Your 'rm' program seems unable to run without file operands specified
4210on the command line, even when the '-f' option is present.  This is contrary
4211to the behaviour of most rm programs out there, and not conforming with
4212the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4213
4214Please tell bug-automake@gnu.org about your system, including the value
4215of your $PATH and any error possibly output before this message.  This
4216can help us improve future automake versions.
4217
4218END
4219  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4220    echo 'Configuration will proceed anyway, since you have set the' >&2
4221    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4222    echo >&2
4223  else
4224    cat >&2 <<'END'
4225Aborting the configuration process, to ensure you take notice of the issue.
4226
4227You can download and install GNU coreutils to get an 'rm' implementation
4228that behaves properly: <https://www.gnu.org/software/coreutils/>.
4229
4230If you want to complete the configuration process using your problematic
4231'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4232to "yes", and re-run configure.
4233
4234END
4235    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4236  fi
4237fi
4238
4239DEPDIR="${am__leading_dot}deps"
4240
4241ac_config_commands="$ac_config_commands depfiles"
4242
4243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4244$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4245cat > confinc.mk << 'END'
4246am__doit:
4247	@echo this is the am__doit target >confinc.out
4248.PHONY: am__doit
4249END
4250am__include="#"
4251am__quote=
4252# BSD make does it like this.
4253echo '.include "confinc.mk" # ignored' > confmf.BSD
4254# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4255echo 'include confinc.mk # ignored' > confmf.GNU
4256_am_result=no
4257for s in GNU BSD; do
4258  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4259   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4260   ac_status=$?
4261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262   (exit $ac_status); }
4263  case $?:`cat confinc.out 2>/dev/null` in #(
4264  '0:this is the am__doit target') :
4265    case $s in #(
4266  BSD) :
4267    am__include='.include' am__quote='"' ;; #(
4268  *) :
4269    am__include='include' am__quote='' ;;
4270esac ;; #(
4271  *) :
4272     ;;
4273esac
4274  if test "$am__include" != "#"; then
4275    _am_result="yes ($s style)"
4276    break
4277  fi
4278done
4279rm -f confinc.* confmf.*
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4281$as_echo "${_am_result}" >&6; }
4282
4283# Check whether --enable-dependency-tracking was given.
4284if test "${enable_dependency_tracking+set}" = set; then :
4285  enableval=$enable_dependency_tracking;
4286fi
4287
4288if test "x$enable_dependency_tracking" != xno; then
4289  am_depcomp="$ac_aux_dir/depcomp"
4290  AMDEPBACKSLASH='\'
4291  am__nodep='_no'
4292fi
4293 if test "x$enable_dependency_tracking" != xno; then
4294  AMDEP_TRUE=
4295  AMDEP_FALSE='#'
4296else
4297  AMDEP_TRUE='#'
4298  AMDEP_FALSE=
4299fi
4300
4301
4302ac_ext=c
4303ac_cpp='$CPP $CPPFLAGS'
4304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307if test -n "$ac_tool_prefix"; then
4308  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4309set dummy ${ac_tool_prefix}gcc; ac_word=$2
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4311$as_echo_n "checking for $ac_word... " >&6; }
4312if ${ac_cv_prog_CC+:} false; then :
4313  $as_echo_n "(cached) " >&6
4314else
4315  if test -n "$CC"; then
4316  ac_cv_prog_CC="$CC" # Let the user override the test.
4317else
4318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319for as_dir in $PATH
4320do
4321  IFS=$as_save_IFS
4322  test -z "$as_dir" && as_dir=.
4323    for ac_exec_ext in '' $ac_executable_extensions; do
4324  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4325    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4326    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4327    break 2
4328  fi
4329done
4330  done
4331IFS=$as_save_IFS
4332
4333fi
4334fi
4335CC=$ac_cv_prog_CC
4336if test -n "$CC"; then
4337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4338$as_echo "$CC" >&6; }
4339else
4340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341$as_echo "no" >&6; }
4342fi
4343
4344
4345fi
4346if test -z "$ac_cv_prog_CC"; then
4347  ac_ct_CC=$CC
4348  # Extract the first word of "gcc", so it can be a program name with args.
4349set dummy gcc; ac_word=$2
4350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4351$as_echo_n "checking for $ac_word... " >&6; }
4352if ${ac_cv_prog_ac_ct_CC+:} false; then :
4353  $as_echo_n "(cached) " >&6
4354else
4355  if test -n "$ac_ct_CC"; then
4356  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4357else
4358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359for as_dir in $PATH
4360do
4361  IFS=$as_save_IFS
4362  test -z "$as_dir" && as_dir=.
4363    for ac_exec_ext in '' $ac_executable_extensions; do
4364  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4365    ac_cv_prog_ac_ct_CC="gcc"
4366    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4367    break 2
4368  fi
4369done
4370  done
4371IFS=$as_save_IFS
4372
4373fi
4374fi
4375ac_ct_CC=$ac_cv_prog_ac_ct_CC
4376if test -n "$ac_ct_CC"; then
4377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4378$as_echo "$ac_ct_CC" >&6; }
4379else
4380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4381$as_echo "no" >&6; }
4382fi
4383
4384  if test "x$ac_ct_CC" = x; then
4385    CC=""
4386  else
4387    case $cross_compiling:$ac_tool_warned in
4388yes:)
4389{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4390$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4391ac_tool_warned=yes ;;
4392esac
4393    CC=$ac_ct_CC
4394  fi
4395else
4396  CC="$ac_cv_prog_CC"
4397fi
4398
4399if test -z "$CC"; then
4400          if test -n "$ac_tool_prefix"; then
4401    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4402set dummy ${ac_tool_prefix}cc; ac_word=$2
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404$as_echo_n "checking for $ac_word... " >&6; }
4405if ${ac_cv_prog_CC+:} false; then :
4406  $as_echo_n "(cached) " >&6
4407else
4408  if test -n "$CC"; then
4409  ac_cv_prog_CC="$CC" # Let the user override the test.
4410else
4411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412for as_dir in $PATH
4413do
4414  IFS=$as_save_IFS
4415  test -z "$as_dir" && as_dir=.
4416    for ac_exec_ext in '' $ac_executable_extensions; do
4417  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4418    ac_cv_prog_CC="${ac_tool_prefix}cc"
4419    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420    break 2
4421  fi
4422done
4423  done
4424IFS=$as_save_IFS
4425
4426fi
4427fi
4428CC=$ac_cv_prog_CC
4429if test -n "$CC"; then
4430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4431$as_echo "$CC" >&6; }
4432else
4433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434$as_echo "no" >&6; }
4435fi
4436
4437
4438  fi
4439fi
4440if test -z "$CC"; then
4441  # Extract the first word of "cc", so it can be a program name with args.
4442set dummy cc; ac_word=$2
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4444$as_echo_n "checking for $ac_word... " >&6; }
4445if ${ac_cv_prog_CC+:} false; then :
4446  $as_echo_n "(cached) " >&6
4447else
4448  if test -n "$CC"; then
4449  ac_cv_prog_CC="$CC" # Let the user override the test.
4450else
4451  ac_prog_rejected=no
4452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453for as_dir in $PATH
4454do
4455  IFS=$as_save_IFS
4456  test -z "$as_dir" && as_dir=.
4457    for ac_exec_ext in '' $ac_executable_extensions; do
4458  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4459    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4460       ac_prog_rejected=yes
4461       continue
4462     fi
4463    ac_cv_prog_CC="cc"
4464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4465    break 2
4466  fi
4467done
4468  done
4469IFS=$as_save_IFS
4470
4471if test $ac_prog_rejected = yes; then
4472  # We found a bogon in the path, so make sure we never use it.
4473  set dummy $ac_cv_prog_CC
4474  shift
4475  if test $# != 0; then
4476    # We chose a different compiler from the bogus one.
4477    # However, it has the same basename, so the bogon will be chosen
4478    # first if we set CC to just the basename; use the full file name.
4479    shift
4480    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4481  fi
4482fi
4483fi
4484fi
4485CC=$ac_cv_prog_CC
4486if test -n "$CC"; then
4487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4488$as_echo "$CC" >&6; }
4489else
4490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491$as_echo "no" >&6; }
4492fi
4493
4494
4495fi
4496if test -z "$CC"; then
4497  if test -n "$ac_tool_prefix"; then
4498  for ac_prog in cl.exe
4499  do
4500    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4501set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503$as_echo_n "checking for $ac_word... " >&6; }
4504if ${ac_cv_prog_CC+:} false; then :
4505  $as_echo_n "(cached) " >&6
4506else
4507  if test -n "$CC"; then
4508  ac_cv_prog_CC="$CC" # Let the user override the test.
4509else
4510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511for as_dir in $PATH
4512do
4513  IFS=$as_save_IFS
4514  test -z "$as_dir" && as_dir=.
4515    for ac_exec_ext in '' $ac_executable_extensions; do
4516  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4518    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519    break 2
4520  fi
4521done
4522  done
4523IFS=$as_save_IFS
4524
4525fi
4526fi
4527CC=$ac_cv_prog_CC
4528if test -n "$CC"; then
4529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4530$as_echo "$CC" >&6; }
4531else
4532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533$as_echo "no" >&6; }
4534fi
4535
4536
4537    test -n "$CC" && break
4538  done
4539fi
4540if test -z "$CC"; then
4541  ac_ct_CC=$CC
4542  for ac_prog in cl.exe
4543do
4544  # Extract the first word of "$ac_prog", so it can be a program name with args.
4545set dummy $ac_prog; ac_word=$2
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547$as_echo_n "checking for $ac_word... " >&6; }
4548if ${ac_cv_prog_ac_ct_CC+:} false; then :
4549  $as_echo_n "(cached) " >&6
4550else
4551  if test -n "$ac_ct_CC"; then
4552  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4553else
4554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555for as_dir in $PATH
4556do
4557  IFS=$as_save_IFS
4558  test -z "$as_dir" && as_dir=.
4559    for ac_exec_ext in '' $ac_executable_extensions; do
4560  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4561    ac_cv_prog_ac_ct_CC="$ac_prog"
4562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563    break 2
4564  fi
4565done
4566  done
4567IFS=$as_save_IFS
4568
4569fi
4570fi
4571ac_ct_CC=$ac_cv_prog_ac_ct_CC
4572if test -n "$ac_ct_CC"; then
4573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4574$as_echo "$ac_ct_CC" >&6; }
4575else
4576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577$as_echo "no" >&6; }
4578fi
4579
4580
4581  test -n "$ac_ct_CC" && break
4582done
4583
4584  if test "x$ac_ct_CC" = x; then
4585    CC=""
4586  else
4587    case $cross_compiling:$ac_tool_warned in
4588yes:)
4589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4591ac_tool_warned=yes ;;
4592esac
4593    CC=$ac_ct_CC
4594  fi
4595fi
4596
4597fi
4598
4599
4600test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4602as_fn_error $? "no acceptable C compiler found in \$PATH
4603See \`config.log' for more details" "$LINENO" 5; }
4604
4605# Provide some information about the compiler.
4606$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4607set X $ac_compile
4608ac_compiler=$2
4609for ac_option in --version -v -V -qversion; do
4610  { { ac_try="$ac_compiler $ac_option >&5"
4611case "(($ac_try" in
4612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613  *) ac_try_echo=$ac_try;;
4614esac
4615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4616$as_echo "$ac_try_echo"; } >&5
4617  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4618  ac_status=$?
4619  if test -s conftest.err; then
4620    sed '10a\
4621... rest of stderr output deleted ...
4622         10q' conftest.err >conftest.er1
4623    cat conftest.er1 >&5
4624  fi
4625  rm -f conftest.er1 conftest.err
4626  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4627  test $ac_status = 0; }
4628done
4629
4630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631/* end confdefs.h.  */
4632
4633int
4634main ()
4635{
4636
4637  ;
4638  return 0;
4639}
4640_ACEOF
4641ac_clean_files_save=$ac_clean_files
4642ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4643# Try to create an executable without -o first, disregard a.out.
4644# It will help us diagnose broken compilers, and finding out an intuition
4645# of exeext.
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4647$as_echo_n "checking whether the C compiler works... " >&6; }
4648ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4649
4650# The possible output files:
4651ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4652
4653ac_rmfiles=
4654for ac_file in $ac_files
4655do
4656  case $ac_file in
4657    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4658    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4659  esac
4660done
4661rm -f $ac_rmfiles
4662
4663if { { ac_try="$ac_link_default"
4664case "(($ac_try" in
4665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4666  *) ac_try_echo=$ac_try;;
4667esac
4668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4669$as_echo "$ac_try_echo"; } >&5
4670  (eval "$ac_link_default") 2>&5
4671  ac_status=$?
4672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4673  test $ac_status = 0; }; then :
4674  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4675# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4676# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4677# so that the user can short-circuit this test for compilers unknown to
4678# Autoconf.
4679for ac_file in $ac_files ''
4680do
4681  test -f "$ac_file" || continue
4682  case $ac_file in
4683    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4684	;;
4685    [ab].out )
4686	# We found the default executable, but exeext='' is most
4687	# certainly right.
4688	break;;
4689    *.* )
4690	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4691	then :; else
4692	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4693	fi
4694	# We set ac_cv_exeext here because the later test for it is not
4695	# safe: cross compilers may not add the suffix if given an `-o'
4696	# argument, so we may need to know it at that point already.
4697	# Even if this section looks crufty: it has the advantage of
4698	# actually working.
4699	break;;
4700    * )
4701	break;;
4702  esac
4703done
4704test "$ac_cv_exeext" = no && ac_cv_exeext=
4705
4706else
4707  ac_file=''
4708fi
4709if test -z "$ac_file"; then :
4710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711$as_echo "no" >&6; }
4712$as_echo "$as_me: failed program was:" >&5
4713sed 's/^/| /' conftest.$ac_ext >&5
4714
4715{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4717as_fn_error 77 "C compiler cannot create executables
4718See \`config.log' for more details" "$LINENO" 5; }
4719else
4720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4721$as_echo "yes" >&6; }
4722fi
4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4724$as_echo_n "checking for C compiler default output file name... " >&6; }
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4726$as_echo "$ac_file" >&6; }
4727ac_exeext=$ac_cv_exeext
4728
4729rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4730ac_clean_files=$ac_clean_files_save
4731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4732$as_echo_n "checking for suffix of executables... " >&6; }
4733if { { ac_try="$ac_link"
4734case "(($ac_try" in
4735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736  *) ac_try_echo=$ac_try;;
4737esac
4738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4739$as_echo "$ac_try_echo"; } >&5
4740  (eval "$ac_link") 2>&5
4741  ac_status=$?
4742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4743  test $ac_status = 0; }; then :
4744  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4745# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4746# work properly (i.e., refer to `conftest.exe'), while it won't with
4747# `rm'.
4748for ac_file in conftest.exe conftest conftest.*; do
4749  test -f "$ac_file" || continue
4750  case $ac_file in
4751    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4752    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4753	  break;;
4754    * ) break;;
4755  esac
4756done
4757else
4758  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4760as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4761See \`config.log' for more details" "$LINENO" 5; }
4762fi
4763rm -f conftest conftest$ac_cv_exeext
4764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4765$as_echo "$ac_cv_exeext" >&6; }
4766
4767rm -f conftest.$ac_ext
4768EXEEXT=$ac_cv_exeext
4769ac_exeext=$EXEEXT
4770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771/* end confdefs.h.  */
4772#include <stdio.h>
4773int
4774main ()
4775{
4776FILE *f = fopen ("conftest.out", "w");
4777 return ferror (f) || fclose (f) != 0;
4778
4779  ;
4780  return 0;
4781}
4782_ACEOF
4783ac_clean_files="$ac_clean_files conftest.out"
4784# Check that the compiler produces executables we can run.  If not, either
4785# the compiler is broken, or we cross compile.
4786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4787$as_echo_n "checking whether we are cross compiling... " >&6; }
4788if test "$cross_compiling" != yes; then
4789  { { ac_try="$ac_link"
4790case "(($ac_try" in
4791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4792  *) ac_try_echo=$ac_try;;
4793esac
4794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4795$as_echo "$ac_try_echo"; } >&5
4796  (eval "$ac_link") 2>&5
4797  ac_status=$?
4798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4799  test $ac_status = 0; }
4800  if { ac_try='./conftest$ac_cv_exeext'
4801  { { case "(($ac_try" in
4802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4803  *) ac_try_echo=$ac_try;;
4804esac
4805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4806$as_echo "$ac_try_echo"; } >&5
4807  (eval "$ac_try") 2>&5
4808  ac_status=$?
4809  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4810  test $ac_status = 0; }; }; then
4811    cross_compiling=no
4812  else
4813    if test "$cross_compiling" = maybe; then
4814	cross_compiling=yes
4815    else
4816	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4818as_fn_error $? "cannot run C compiled programs.
4819If you meant to cross compile, use \`--host'.
4820See \`config.log' for more details" "$LINENO" 5; }
4821    fi
4822  fi
4823fi
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4825$as_echo "$cross_compiling" >&6; }
4826
4827rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4828ac_clean_files=$ac_clean_files_save
4829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4830$as_echo_n "checking for suffix of object files... " >&6; }
4831if ${ac_cv_objext+:} false; then :
4832  $as_echo_n "(cached) " >&6
4833else
4834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835/* end confdefs.h.  */
4836
4837int
4838main ()
4839{
4840
4841  ;
4842  return 0;
4843}
4844_ACEOF
4845rm -f conftest.o conftest.obj
4846if { { ac_try="$ac_compile"
4847case "(($ac_try" in
4848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4849  *) ac_try_echo=$ac_try;;
4850esac
4851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4852$as_echo "$ac_try_echo"; } >&5
4853  (eval "$ac_compile") 2>&5
4854  ac_status=$?
4855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4856  test $ac_status = 0; }; then :
4857  for ac_file in conftest.o conftest.obj conftest.*; do
4858  test -f "$ac_file" || continue;
4859  case $ac_file in
4860    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4861    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4862       break;;
4863  esac
4864done
4865else
4866  $as_echo "$as_me: failed program was:" >&5
4867sed 's/^/| /' conftest.$ac_ext >&5
4868
4869{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4871as_fn_error $? "cannot compute suffix of object files: cannot compile
4872See \`config.log' for more details" "$LINENO" 5; }
4873fi
4874rm -f conftest.$ac_cv_objext conftest.$ac_ext
4875fi
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4877$as_echo "$ac_cv_objext" >&6; }
4878OBJEXT=$ac_cv_objext
4879ac_objext=$OBJEXT
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4881$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4882if ${ac_cv_c_compiler_gnu+:} false; then :
4883  $as_echo_n "(cached) " >&6
4884else
4885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886/* end confdefs.h.  */
4887
4888int
4889main ()
4890{
4891#ifndef __GNUC__
4892       choke me
4893#endif
4894
4895  ;
4896  return 0;
4897}
4898_ACEOF
4899if ac_fn_c_try_compile "$LINENO"; then :
4900  ac_compiler_gnu=yes
4901else
4902  ac_compiler_gnu=no
4903fi
4904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905ac_cv_c_compiler_gnu=$ac_compiler_gnu
4906
4907fi
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4909$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4910if test $ac_compiler_gnu = yes; then
4911  GCC=yes
4912else
4913  GCC=
4914fi
4915ac_test_CFLAGS=${CFLAGS+set}
4916ac_save_CFLAGS=$CFLAGS
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4918$as_echo_n "checking whether $CC accepts -g... " >&6; }
4919if ${ac_cv_prog_cc_g+:} false; then :
4920  $as_echo_n "(cached) " >&6
4921else
4922  ac_save_c_werror_flag=$ac_c_werror_flag
4923   ac_c_werror_flag=yes
4924   ac_cv_prog_cc_g=no
4925   CFLAGS="-g"
4926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927/* end confdefs.h.  */
4928
4929int
4930main ()
4931{
4932
4933  ;
4934  return 0;
4935}
4936_ACEOF
4937if ac_fn_c_try_compile "$LINENO"; then :
4938  ac_cv_prog_cc_g=yes
4939else
4940  CFLAGS=""
4941      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942/* end confdefs.h.  */
4943
4944int
4945main ()
4946{
4947
4948  ;
4949  return 0;
4950}
4951_ACEOF
4952if ac_fn_c_try_compile "$LINENO"; then :
4953
4954else
4955  ac_c_werror_flag=$ac_save_c_werror_flag
4956	 CFLAGS="-g"
4957	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958/* end confdefs.h.  */
4959
4960int
4961main ()
4962{
4963
4964  ;
4965  return 0;
4966}
4967_ACEOF
4968if ac_fn_c_try_compile "$LINENO"; then :
4969  ac_cv_prog_cc_g=yes
4970fi
4971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972fi
4973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974fi
4975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4976   ac_c_werror_flag=$ac_save_c_werror_flag
4977fi
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4979$as_echo "$ac_cv_prog_cc_g" >&6; }
4980if test "$ac_test_CFLAGS" = set; then
4981  CFLAGS=$ac_save_CFLAGS
4982elif test $ac_cv_prog_cc_g = yes; then
4983  if test "$GCC" = yes; then
4984    CFLAGS="-g -O2"
4985  else
4986    CFLAGS="-g"
4987  fi
4988else
4989  if test "$GCC" = yes; then
4990    CFLAGS="-O2"
4991  else
4992    CFLAGS=
4993  fi
4994fi
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4996$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4997if ${ac_cv_prog_cc_c89+:} false; then :
4998  $as_echo_n "(cached) " >&6
4999else
5000  ac_cv_prog_cc_c89=no
5001ac_save_CC=$CC
5002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003/* end confdefs.h.  */
5004#include <stdarg.h>
5005#include <stdio.h>
5006struct stat;
5007/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5008struct buf { int x; };
5009FILE * (*rcsopen) (struct buf *, struct stat *, int);
5010static char *e (p, i)
5011     char **p;
5012     int i;
5013{
5014  return p[i];
5015}
5016static char *f (char * (*g) (char **, int), char **p, ...)
5017{
5018  char *s;
5019  va_list v;
5020  va_start (v,p);
5021  s = g (p, va_arg (v,int));
5022  va_end (v);
5023  return s;
5024}
5025
5026/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5027   function prototypes and stuff, but not '\xHH' hex character constants.
5028   These don't provoke an error unfortunately, instead are silently treated
5029   as 'x'.  The following induces an error, until -std is added to get
5030   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5031   array size at least.  It's necessary to write '\x00'==0 to get something
5032   that's true only with -std.  */
5033int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5034
5035/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5036   inside strings and character constants.  */
5037#define FOO(x) 'x'
5038int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5039
5040int test (int i, double x);
5041struct s1 {int (*f) (int a);};
5042struct s2 {int (*f) (double a);};
5043int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5044int argc;
5045char **argv;
5046int
5047main ()
5048{
5049return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5050  ;
5051  return 0;
5052}
5053_ACEOF
5054for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5055	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5056do
5057  CC="$ac_save_CC $ac_arg"
5058  if ac_fn_c_try_compile "$LINENO"; then :
5059  ac_cv_prog_cc_c89=$ac_arg
5060fi
5061rm -f core conftest.err conftest.$ac_objext
5062  test "x$ac_cv_prog_cc_c89" != "xno" && break
5063done
5064rm -f conftest.$ac_ext
5065CC=$ac_save_CC
5066
5067fi
5068# AC_CACHE_VAL
5069case "x$ac_cv_prog_cc_c89" in
5070  x)
5071    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5072$as_echo "none needed" >&6; } ;;
5073  xno)
5074    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5075$as_echo "unsupported" >&6; } ;;
5076  *)
5077    CC="$CC $ac_cv_prog_cc_c89"
5078    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5079$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5080esac
5081if test "x$ac_cv_prog_cc_c89" != xno; then :
5082
5083fi
5084
5085ac_ext=c
5086ac_cpp='$CPP $CPPFLAGS'
5087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089ac_compiler_gnu=$ac_cv_c_compiler_gnu
5090
5091ac_ext=c
5092ac_cpp='$CPP $CPPFLAGS'
5093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5095ac_compiler_gnu=$ac_cv_c_compiler_gnu
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5097$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5098if ${am_cv_prog_cc_c_o+:} false; then :
5099  $as_echo_n "(cached) " >&6
5100else
5101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102/* end confdefs.h.  */
5103
5104int
5105main ()
5106{
5107
5108  ;
5109  return 0;
5110}
5111_ACEOF
5112  # Make sure it works both with $CC and with simple cc.
5113  # Following AC_PROG_CC_C_O, we do the test twice because some
5114  # compilers refuse to overwrite an existing .o file with -o,
5115  # though they will create one.
5116  am_cv_prog_cc_c_o=yes
5117  for am_i in 1 2; do
5118    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5119   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5120   ac_status=$?
5121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122   (exit $ac_status); } \
5123         && test -f conftest2.$ac_objext; then
5124      : OK
5125    else
5126      am_cv_prog_cc_c_o=no
5127      break
5128    fi
5129  done
5130  rm -f core conftest*
5131  unset am_i
5132fi
5133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5134$as_echo "$am_cv_prog_cc_c_o" >&6; }
5135if test "$am_cv_prog_cc_c_o" != yes; then
5136   # Losing compiler, so override with the script.
5137   # FIXME: It is wrong to rewrite CC.
5138   # But if we don't then we get into trouble of one sort or another.
5139   # A longer-term fix would be to have automake use am__CC in this case,
5140   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5141   CC="$am_aux_dir/compile $CC"
5142fi
5143ac_ext=c
5144ac_cpp='$CPP $CPPFLAGS'
5145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5147ac_compiler_gnu=$ac_cv_c_compiler_gnu
5148
5149
5150depcc="$CC"   am_compiler_list=
5151
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5153$as_echo_n "checking dependency style of $depcc... " >&6; }
5154if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5155  $as_echo_n "(cached) " >&6
5156else
5157  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5158  # We make a subdir and do the tests there.  Otherwise we can end up
5159  # making bogus files that we don't know about and never remove.  For
5160  # instance it was reported that on HP-UX the gcc test will end up
5161  # making a dummy file named 'D' -- because '-MD' means "put the output
5162  # in D".
5163  rm -rf conftest.dir
5164  mkdir conftest.dir
5165  # Copy depcomp to subdir because otherwise we won't find it if we're
5166  # using a relative directory.
5167  cp "$am_depcomp" conftest.dir
5168  cd conftest.dir
5169  # We will build objects and dependencies in a subdirectory because
5170  # it helps to detect inapplicable dependency modes.  For instance
5171  # both Tru64's cc and ICC support -MD to output dependencies as a
5172  # side effect of compilation, but ICC will put the dependencies in
5173  # the current directory while Tru64 will put them in the object
5174  # directory.
5175  mkdir sub
5176
5177  am_cv_CC_dependencies_compiler_type=none
5178  if test "$am_compiler_list" = ""; then
5179     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5180  fi
5181  am__universal=false
5182  case " $depcc " in #(
5183     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5184     esac
5185
5186  for depmode in $am_compiler_list; do
5187    # Setup a source with many dependencies, because some compilers
5188    # like to wrap large dependency lists on column 80 (with \), and
5189    # we should not choose a depcomp mode which is confused by this.
5190    #
5191    # We need to recreate these files for each test, as the compiler may
5192    # overwrite some of them when testing with obscure command lines.
5193    # This happens at least with the AIX C compiler.
5194    : > sub/conftest.c
5195    for i in 1 2 3 4 5 6; do
5196      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5197      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5198      # Solaris 10 /bin/sh.
5199      echo '/* dummy */' > sub/conftst$i.h
5200    done
5201    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5202
5203    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5204    # mode.  It turns out that the SunPro C++ compiler does not properly
5205    # handle '-M -o', and we need to detect this.  Also, some Intel
5206    # versions had trouble with output in subdirs.
5207    am__obj=sub/conftest.${OBJEXT-o}
5208    am__minus_obj="-o $am__obj"
5209    case $depmode in
5210    gcc)
5211      # This depmode causes a compiler race in universal mode.
5212      test "$am__universal" = false || continue
5213      ;;
5214    nosideeffect)
5215      # After this tag, mechanisms are not by side-effect, so they'll
5216      # only be used when explicitly requested.
5217      if test "x$enable_dependency_tracking" = xyes; then
5218	continue
5219      else
5220	break
5221      fi
5222      ;;
5223    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5224      # This compiler won't grok '-c -o', but also, the minuso test has
5225      # not run yet.  These depmodes are late enough in the game, and
5226      # so weak that their functioning should not be impacted.
5227      am__obj=conftest.${OBJEXT-o}
5228      am__minus_obj=
5229      ;;
5230    none) break ;;
5231    esac
5232    if depmode=$depmode \
5233       source=sub/conftest.c object=$am__obj \
5234       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5235       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5236         >/dev/null 2>conftest.err &&
5237       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5238       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5239       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5240       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5241      # icc doesn't choke on unknown options, it will just issue warnings
5242      # or remarks (even with -Werror).  So we grep stderr for any message
5243      # that says an option was ignored or not supported.
5244      # When given -MP, icc 7.0 and 7.1 complain thusly:
5245      #   icc: Command line warning: ignoring option '-M'; no argument required
5246      # The diagnosis changed in icc 8.0:
5247      #   icc: Command line remark: option '-MP' not supported
5248      if (grep 'ignoring option' conftest.err ||
5249          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5250        am_cv_CC_dependencies_compiler_type=$depmode
5251        break
5252      fi
5253    fi
5254  done
5255
5256  cd ..
5257  rm -rf conftest.dir
5258else
5259  am_cv_CC_dependencies_compiler_type=none
5260fi
5261
5262fi
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5264$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5265CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5266
5267 if
5268  test "x$enable_dependency_tracking" != xno \
5269  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5270  am__fastdepCC_TRUE=
5271  am__fastdepCC_FALSE='#'
5272else
5273  am__fastdepCC_TRUE='#'
5274  am__fastdepCC_FALSE=
5275fi
5276
5277
5278
5279ac_ext=c
5280ac_cpp='$CPP $CPPFLAGS'
5281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5283ac_compiler_gnu=$ac_cv_c_compiler_gnu
5284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5285$as_echo_n "checking how to run the C preprocessor... " >&6; }
5286# On Suns, sometimes $CPP names a directory.
5287if test -n "$CPP" && test -d "$CPP"; then
5288  CPP=
5289fi
5290if test -z "$CPP"; then
5291  if ${ac_cv_prog_CPP+:} false; then :
5292  $as_echo_n "(cached) " >&6
5293else
5294      # Double quotes because CPP needs to be expanded
5295    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5296    do
5297      ac_preproc_ok=false
5298for ac_c_preproc_warn_flag in '' yes
5299do
5300  # Use a header file that comes with gcc, so configuring glibc
5301  # with a fresh cross-compiler works.
5302  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5303  # <limits.h> exists even on freestanding compilers.
5304  # On the NeXT, cc -E runs the code through the compiler's parser,
5305  # not just through cpp. "Syntax error" is here to catch this case.
5306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307/* end confdefs.h.  */
5308#ifdef __STDC__
5309# include <limits.h>
5310#else
5311# include <assert.h>
5312#endif
5313		     Syntax error
5314_ACEOF
5315if ac_fn_c_try_cpp "$LINENO"; then :
5316
5317else
5318  # Broken: fails on valid input.
5319continue
5320fi
5321rm -f conftest.err conftest.i conftest.$ac_ext
5322
5323  # OK, works on sane cases.  Now check whether nonexistent headers
5324  # can be detected and how.
5325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326/* end confdefs.h.  */
5327#include <ac_nonexistent.h>
5328_ACEOF
5329if ac_fn_c_try_cpp "$LINENO"; then :
5330  # Broken: success on invalid input.
5331continue
5332else
5333  # Passes both tests.
5334ac_preproc_ok=:
5335break
5336fi
5337rm -f conftest.err conftest.i conftest.$ac_ext
5338
5339done
5340# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5341rm -f conftest.i conftest.err conftest.$ac_ext
5342if $ac_preproc_ok; then :
5343  break
5344fi
5345
5346    done
5347    ac_cv_prog_CPP=$CPP
5348
5349fi
5350  CPP=$ac_cv_prog_CPP
5351else
5352  ac_cv_prog_CPP=$CPP
5353fi
5354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5355$as_echo "$CPP" >&6; }
5356ac_preproc_ok=false
5357for ac_c_preproc_warn_flag in '' yes
5358do
5359  # Use a header file that comes with gcc, so configuring glibc
5360  # with a fresh cross-compiler works.
5361  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5362  # <limits.h> exists even on freestanding compilers.
5363  # On the NeXT, cc -E runs the code through the compiler's parser,
5364  # not just through cpp. "Syntax error" is here to catch this case.
5365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366/* end confdefs.h.  */
5367#ifdef __STDC__
5368# include <limits.h>
5369#else
5370# include <assert.h>
5371#endif
5372		     Syntax error
5373_ACEOF
5374if ac_fn_c_try_cpp "$LINENO"; then :
5375
5376else
5377  # Broken: fails on valid input.
5378continue
5379fi
5380rm -f conftest.err conftest.i conftest.$ac_ext
5381
5382  # OK, works on sane cases.  Now check whether nonexistent headers
5383  # can be detected and how.
5384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385/* end confdefs.h.  */
5386#include <ac_nonexistent.h>
5387_ACEOF
5388if ac_fn_c_try_cpp "$LINENO"; then :
5389  # Broken: success on invalid input.
5390continue
5391else
5392  # Passes both tests.
5393ac_preproc_ok=:
5394break
5395fi
5396rm -f conftest.err conftest.i conftest.$ac_ext
5397
5398done
5399# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5400rm -f conftest.i conftest.err conftest.$ac_ext
5401if $ac_preproc_ok; then :
5402
5403else
5404  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5406as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5407See \`config.log' for more details" "$LINENO" 5; }
5408fi
5409
5410ac_ext=c
5411ac_cpp='$CPP $CPPFLAGS'
5412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5414ac_compiler_gnu=$ac_cv_c_compiler_gnu
5415
5416
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5418$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5419if ${ac_cv_path_GREP+:} false; then :
5420  $as_echo_n "(cached) " >&6
5421else
5422  if test -z "$GREP"; then
5423  ac_path_GREP_found=false
5424  # Loop through the user's path and test for each of PROGNAME-LIST
5425  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5427do
5428  IFS=$as_save_IFS
5429  test -z "$as_dir" && as_dir=.
5430    for ac_prog in grep ggrep; do
5431    for ac_exec_ext in '' $ac_executable_extensions; do
5432      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5433      as_fn_executable_p "$ac_path_GREP" || continue
5434# Check for GNU ac_path_GREP and select it if it is found.
5435  # Check for GNU $ac_path_GREP
5436case `"$ac_path_GREP" --version 2>&1` in
5437*GNU*)
5438  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5439*)
5440  ac_count=0
5441  $as_echo_n 0123456789 >"conftest.in"
5442  while :
5443  do
5444    cat "conftest.in" "conftest.in" >"conftest.tmp"
5445    mv "conftest.tmp" "conftest.in"
5446    cp "conftest.in" "conftest.nl"
5447    $as_echo 'GREP' >> "conftest.nl"
5448    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5449    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5450    as_fn_arith $ac_count + 1 && ac_count=$as_val
5451    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5452      # Best one so far, save it but keep looking for a better one
5453      ac_cv_path_GREP="$ac_path_GREP"
5454      ac_path_GREP_max=$ac_count
5455    fi
5456    # 10*(2^10) chars as input seems more than enough
5457    test $ac_count -gt 10 && break
5458  done
5459  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5460esac
5461
5462      $ac_path_GREP_found && break 3
5463    done
5464  done
5465  done
5466IFS=$as_save_IFS
5467  if test -z "$ac_cv_path_GREP"; then
5468    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5469  fi
5470else
5471  ac_cv_path_GREP=$GREP
5472fi
5473
5474fi
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5476$as_echo "$ac_cv_path_GREP" >&6; }
5477 GREP="$ac_cv_path_GREP"
5478
5479
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5481$as_echo_n "checking for egrep... " >&6; }
5482if ${ac_cv_path_EGREP+:} false; then :
5483  $as_echo_n "(cached) " >&6
5484else
5485  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5486   then ac_cv_path_EGREP="$GREP -E"
5487   else
5488     if test -z "$EGREP"; then
5489  ac_path_EGREP_found=false
5490  # Loop through the user's path and test for each of PROGNAME-LIST
5491  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5493do
5494  IFS=$as_save_IFS
5495  test -z "$as_dir" && as_dir=.
5496    for ac_prog in egrep; do
5497    for ac_exec_ext in '' $ac_executable_extensions; do
5498      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5499      as_fn_executable_p "$ac_path_EGREP" || continue
5500# Check for GNU ac_path_EGREP and select it if it is found.
5501  # Check for GNU $ac_path_EGREP
5502case `"$ac_path_EGREP" --version 2>&1` in
5503*GNU*)
5504  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5505*)
5506  ac_count=0
5507  $as_echo_n 0123456789 >"conftest.in"
5508  while :
5509  do
5510    cat "conftest.in" "conftest.in" >"conftest.tmp"
5511    mv "conftest.tmp" "conftest.in"
5512    cp "conftest.in" "conftest.nl"
5513    $as_echo 'EGREP' >> "conftest.nl"
5514    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5515    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5516    as_fn_arith $ac_count + 1 && ac_count=$as_val
5517    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5518      # Best one so far, save it but keep looking for a better one
5519      ac_cv_path_EGREP="$ac_path_EGREP"
5520      ac_path_EGREP_max=$ac_count
5521    fi
5522    # 10*(2^10) chars as input seems more than enough
5523    test $ac_count -gt 10 && break
5524  done
5525  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5526esac
5527
5528      $ac_path_EGREP_found && break 3
5529    done
5530  done
5531  done
5532IFS=$as_save_IFS
5533  if test -z "$ac_cv_path_EGREP"; then
5534    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5535  fi
5536else
5537  ac_cv_path_EGREP=$EGREP
5538fi
5539
5540   fi
5541fi
5542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5543$as_echo "$ac_cv_path_EGREP" >&6; }
5544 EGREP="$ac_cv_path_EGREP"
5545
5546
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5548$as_echo_n "checking for ANSI C header files... " >&6; }
5549if ${ac_cv_header_stdc+:} false; then :
5550  $as_echo_n "(cached) " >&6
5551else
5552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553/* end confdefs.h.  */
5554#include <stdlib.h>
5555#include <stdarg.h>
5556#include <string.h>
5557#include <float.h>
5558
5559int
5560main ()
5561{
5562
5563  ;
5564  return 0;
5565}
5566_ACEOF
5567if ac_fn_c_try_compile "$LINENO"; then :
5568  ac_cv_header_stdc=yes
5569else
5570  ac_cv_header_stdc=no
5571fi
5572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573
5574if test $ac_cv_header_stdc = yes; then
5575  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577/* end confdefs.h.  */
5578#include <string.h>
5579
5580_ACEOF
5581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5582  $EGREP "memchr" >/dev/null 2>&1; then :
5583
5584else
5585  ac_cv_header_stdc=no
5586fi
5587rm -f conftest*
5588
5589fi
5590
5591if test $ac_cv_header_stdc = yes; then
5592  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594/* end confdefs.h.  */
5595#include <stdlib.h>
5596
5597_ACEOF
5598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5599  $EGREP "free" >/dev/null 2>&1; then :
5600
5601else
5602  ac_cv_header_stdc=no
5603fi
5604rm -f conftest*
5605
5606fi
5607
5608if test $ac_cv_header_stdc = yes; then
5609  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5610  if test "$cross_compiling" = yes; then :
5611  :
5612else
5613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614/* end confdefs.h.  */
5615#include <ctype.h>
5616#include <stdlib.h>
5617#if ((' ' & 0x0FF) == 0x020)
5618# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5619# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5620#else
5621# define ISLOWER(c) \
5622		   (('a' <= (c) && (c) <= 'i') \
5623		     || ('j' <= (c) && (c) <= 'r') \
5624		     || ('s' <= (c) && (c) <= 'z'))
5625# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5626#endif
5627
5628#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5629int
5630main ()
5631{
5632  int i;
5633  for (i = 0; i < 256; i++)
5634    if (XOR (islower (i), ISLOWER (i))
5635	|| toupper (i) != TOUPPER (i))
5636      return 2;
5637  return 0;
5638}
5639_ACEOF
5640if ac_fn_c_try_run "$LINENO"; then :
5641
5642else
5643  ac_cv_header_stdc=no
5644fi
5645rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5646  conftest.$ac_objext conftest.beam conftest.$ac_ext
5647fi
5648
5649fi
5650fi
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5652$as_echo "$ac_cv_header_stdc" >&6; }
5653if test $ac_cv_header_stdc = yes; then
5654
5655$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5656
5657fi
5658
5659# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5660for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5661		  inttypes.h stdint.h unistd.h
5662do :
5663  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5664ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5665"
5666if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5667  cat >>confdefs.h <<_ACEOF
5668#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5669_ACEOF
5670
5671fi
5672
5673done
5674
5675
5676
5677  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5678if test "x$ac_cv_header_minix_config_h" = xyes; then :
5679  MINIX=yes
5680else
5681  MINIX=
5682fi
5683
5684
5685  if test "$MINIX" = yes; then
5686
5687$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5688
5689
5690$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5691
5692
5693$as_echo "#define _MINIX 1" >>confdefs.h
5694
5695  fi
5696
5697
5698  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5699$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5700if ${ac_cv_safe_to_define___extensions__+:} false; then :
5701  $as_echo_n "(cached) " >&6
5702else
5703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5704/* end confdefs.h.  */
5705
5706#         define __EXTENSIONS__ 1
5707          $ac_includes_default
5708int
5709main ()
5710{
5711
5712  ;
5713  return 0;
5714}
5715_ACEOF
5716if ac_fn_c_try_compile "$LINENO"; then :
5717  ac_cv_safe_to_define___extensions__=yes
5718else
5719  ac_cv_safe_to_define___extensions__=no
5720fi
5721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722fi
5723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5724$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5725  test $ac_cv_safe_to_define___extensions__ = yes &&
5726    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5727
5728  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5729
5730  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5731
5732  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5733
5734  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5735
5736
5737
5738# Require xorg-macros minimum of 1.14 for XORG_COMPILER_BRAND in XORG_DEFAULT_OPTIONS
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5751$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5752if ${ac_cv_prog_cc_c99+:} false; then :
5753  $as_echo_n "(cached) " >&6
5754else
5755  ac_cv_prog_cc_c99=no
5756ac_save_CC=$CC
5757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758/* end confdefs.h.  */
5759#include <stdarg.h>
5760#include <stdbool.h>
5761#include <stdlib.h>
5762#include <wchar.h>
5763#include <stdio.h>
5764
5765// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5766#define debug(...) fprintf (stderr, __VA_ARGS__)
5767#define showlist(...) puts (#__VA_ARGS__)
5768#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5769static void
5770test_varargs_macros (void)
5771{
5772  int x = 1234;
5773  int y = 5678;
5774  debug ("Flag");
5775  debug ("X = %d\n", x);
5776  showlist (The first, second, and third items.);
5777  report (x>y, "x is %d but y is %d", x, y);
5778}
5779
5780// Check long long types.
5781#define BIG64 18446744073709551615ull
5782#define BIG32 4294967295ul
5783#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5784#if !BIG_OK
5785  your preprocessor is broken;
5786#endif
5787#if BIG_OK
5788#else
5789  your preprocessor is broken;
5790#endif
5791static long long int bignum = -9223372036854775807LL;
5792static unsigned long long int ubignum = BIG64;
5793
5794struct incomplete_array
5795{
5796  int datasize;
5797  double data[];
5798};
5799
5800struct named_init {
5801  int number;
5802  const wchar_t *name;
5803  double average;
5804};
5805
5806typedef const char *ccp;
5807
5808static inline int
5809test_restrict (ccp restrict text)
5810{
5811  // See if C++-style comments work.
5812  // Iterate through items via the restricted pointer.
5813  // Also check for declarations in for loops.
5814  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5815    continue;
5816  return 0;
5817}
5818
5819// Check varargs and va_copy.
5820static void
5821test_varargs (const char *format, ...)
5822{
5823  va_list args;
5824  va_start (args, format);
5825  va_list args_copy;
5826  va_copy (args_copy, args);
5827
5828  const char *str;
5829  int number;
5830  float fnumber;
5831
5832  while (*format)
5833    {
5834      switch (*format++)
5835	{
5836	case 's': // string
5837	  str = va_arg (args_copy, const char *);
5838	  break;
5839	case 'd': // int
5840	  number = va_arg (args_copy, int);
5841	  break;
5842	case 'f': // float
5843	  fnumber = va_arg (args_copy, double);
5844	  break;
5845	default:
5846	  break;
5847	}
5848    }
5849  va_end (args_copy);
5850  va_end (args);
5851}
5852
5853int
5854main ()
5855{
5856
5857  // Check bool.
5858  _Bool success = false;
5859
5860  // Check restrict.
5861  if (test_restrict ("String literal") == 0)
5862    success = true;
5863  char *restrict newvar = "Another string";
5864
5865  // Check varargs.
5866  test_varargs ("s, d' f .", "string", 65, 34.234);
5867  test_varargs_macros ();
5868
5869  // Check flexible array members.
5870  struct incomplete_array *ia =
5871    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5872  ia->datasize = 10;
5873  for (int i = 0; i < ia->datasize; ++i)
5874    ia->data[i] = i * 1.234;
5875
5876  // Check named initializers.
5877  struct named_init ni = {
5878    .number = 34,
5879    .name = L"Test wide string",
5880    .average = 543.34343,
5881  };
5882
5883  ni.number = 58;
5884
5885  int dynamic_array[ni.number];
5886  dynamic_array[ni.number - 1] = 543;
5887
5888  // work around unused variable warnings
5889  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5890	  || dynamic_array[ni.number - 1] != 543);
5891
5892  ;
5893  return 0;
5894}
5895_ACEOF
5896for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5897do
5898  CC="$ac_save_CC $ac_arg"
5899  if ac_fn_c_try_compile "$LINENO"; then :
5900  ac_cv_prog_cc_c99=$ac_arg
5901fi
5902rm -f core conftest.err conftest.$ac_objext
5903  test "x$ac_cv_prog_cc_c99" != "xno" && break
5904done
5905rm -f conftest.$ac_ext
5906CC=$ac_save_CC
5907
5908fi
5909# AC_CACHE_VAL
5910case "x$ac_cv_prog_cc_c99" in
5911  x)
5912    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5913$as_echo "none needed" >&6; } ;;
5914  xno)
5915    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5916$as_echo "unsupported" >&6; } ;;
5917  *)
5918    CC="$CC $ac_cv_prog_cc_c99"
5919    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5920$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5921esac
5922if test "x$ac_cv_prog_cc_c99" != xno; then :
5923
5924fi
5925
5926
5927
5928
5929
5930
5931ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
5932if test "x$ac_cv_have_decl___clang__" = xyes; then :
5933  CLANGCC="yes"
5934else
5935  CLANGCC="no"
5936fi
5937
5938ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
5939if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
5940  INTELCC="yes"
5941else
5942  INTELCC="no"
5943fi
5944
5945ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
5946if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
5947  SUNCC="yes"
5948else
5949  SUNCC="no"
5950fi
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5961	if test -n "$ac_tool_prefix"; then
5962  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5963set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5965$as_echo_n "checking for $ac_word... " >&6; }
5966if ${ac_cv_path_PKG_CONFIG+:} false; then :
5967  $as_echo_n "(cached) " >&6
5968else
5969  case $PKG_CONFIG in
5970  [\\/]* | ?:[\\/]*)
5971  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5972  ;;
5973  *)
5974  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975for as_dir in $PATH
5976do
5977  IFS=$as_save_IFS
5978  test -z "$as_dir" && as_dir=.
5979    for ac_exec_ext in '' $ac_executable_extensions; do
5980  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5981    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5982    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5983    break 2
5984  fi
5985done
5986  done
5987IFS=$as_save_IFS
5988
5989  ;;
5990esac
5991fi
5992PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5993if test -n "$PKG_CONFIG"; then
5994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5995$as_echo "$PKG_CONFIG" >&6; }
5996else
5997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5998$as_echo "no" >&6; }
5999fi
6000
6001
6002fi
6003if test -z "$ac_cv_path_PKG_CONFIG"; then
6004  ac_pt_PKG_CONFIG=$PKG_CONFIG
6005  # Extract the first word of "pkg-config", so it can be a program name with args.
6006set dummy pkg-config; ac_word=$2
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008$as_echo_n "checking for $ac_word... " >&6; }
6009if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6010  $as_echo_n "(cached) " >&6
6011else
6012  case $ac_pt_PKG_CONFIG in
6013  [\\/]* | ?:[\\/]*)
6014  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6015  ;;
6016  *)
6017  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018for as_dir in $PATH
6019do
6020  IFS=$as_save_IFS
6021  test -z "$as_dir" && as_dir=.
6022    for ac_exec_ext in '' $ac_executable_extensions; do
6023  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6024    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6026    break 2
6027  fi
6028done
6029  done
6030IFS=$as_save_IFS
6031
6032  ;;
6033esac
6034fi
6035ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6036if test -n "$ac_pt_PKG_CONFIG"; then
6037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6038$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6039else
6040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041$as_echo "no" >&6; }
6042fi
6043
6044  if test "x$ac_pt_PKG_CONFIG" = x; then
6045    PKG_CONFIG=""
6046  else
6047    case $cross_compiling:$ac_tool_warned in
6048yes:)
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6051ac_tool_warned=yes ;;
6052esac
6053    PKG_CONFIG=$ac_pt_PKG_CONFIG
6054  fi
6055else
6056  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6057fi
6058
6059fi
6060if test -n "$PKG_CONFIG"; then
6061	_pkg_min_version=0.9.0
6062	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6063$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6064	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6065		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6066$as_echo "yes" >&6; }
6067	else
6068		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6069$as_echo "no" >&6; }
6070		PKG_CONFIG=""
6071	fi
6072fi
6073# Make sure we can run config.sub.
6074$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6075  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6076
6077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6078$as_echo_n "checking build system type... " >&6; }
6079if ${ac_cv_build+:} false; then :
6080  $as_echo_n "(cached) " >&6
6081else
6082  ac_build_alias=$build_alias
6083test "x$ac_build_alias" = x &&
6084  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6085test "x$ac_build_alias" = x &&
6086  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6087ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6088  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6089
6090fi
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6092$as_echo "$ac_cv_build" >&6; }
6093case $ac_cv_build in
6094*-*-*) ;;
6095*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6096esac
6097build=$ac_cv_build
6098ac_save_IFS=$IFS; IFS='-'
6099set x $ac_cv_build
6100shift
6101build_cpu=$1
6102build_vendor=$2
6103shift; shift
6104# Remember, the first character of IFS is used to create $*,
6105# except with old shells:
6106build_os=$*
6107IFS=$ac_save_IFS
6108case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6109
6110
6111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6112$as_echo_n "checking host system type... " >&6; }
6113if ${ac_cv_host+:} false; then :
6114  $as_echo_n "(cached) " >&6
6115else
6116  if test "x$host_alias" = x; then
6117  ac_cv_host=$ac_cv_build
6118else
6119  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6120    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6121fi
6122
6123fi
6124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6125$as_echo "$ac_cv_host" >&6; }
6126case $ac_cv_host in
6127*-*-*) ;;
6128*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6129esac
6130host=$ac_cv_host
6131ac_save_IFS=$IFS; IFS='-'
6132set x $ac_cv_host
6133shift
6134host_cpu=$1
6135host_vendor=$2
6136shift; shift
6137# Remember, the first character of IFS is used to create $*,
6138# except with old shells:
6139host_os=$*
6140IFS=$ac_save_IFS
6141case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6142
6143
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6145$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6146if ${ac_cv_path_SED+:} false; then :
6147  $as_echo_n "(cached) " >&6
6148else
6149            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6150     for ac_i in 1 2 3 4 5 6 7; do
6151       ac_script="$ac_script$as_nl$ac_script"
6152     done
6153     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6154     { ac_script=; unset ac_script;}
6155     if test -z "$SED"; then
6156  ac_path_SED_found=false
6157  # Loop through the user's path and test for each of PROGNAME-LIST
6158  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159for as_dir in $PATH
6160do
6161  IFS=$as_save_IFS
6162  test -z "$as_dir" && as_dir=.
6163    for ac_prog in sed gsed; do
6164    for ac_exec_ext in '' $ac_executable_extensions; do
6165      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6166      as_fn_executable_p "$ac_path_SED" || continue
6167# Check for GNU ac_path_SED and select it if it is found.
6168  # Check for GNU $ac_path_SED
6169case `"$ac_path_SED" --version 2>&1` in
6170*GNU*)
6171  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6172*)
6173  ac_count=0
6174  $as_echo_n 0123456789 >"conftest.in"
6175  while :
6176  do
6177    cat "conftest.in" "conftest.in" >"conftest.tmp"
6178    mv "conftest.tmp" "conftest.in"
6179    cp "conftest.in" "conftest.nl"
6180    $as_echo '' >> "conftest.nl"
6181    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6182    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6183    as_fn_arith $ac_count + 1 && ac_count=$as_val
6184    if test $ac_count -gt ${ac_path_SED_max-0}; then
6185      # Best one so far, save it but keep looking for a better one
6186      ac_cv_path_SED="$ac_path_SED"
6187      ac_path_SED_max=$ac_count
6188    fi
6189    # 10*(2^10) chars as input seems more than enough
6190    test $ac_count -gt 10 && break
6191  done
6192  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6193esac
6194
6195      $ac_path_SED_found && break 3
6196    done
6197  done
6198  done
6199IFS=$as_save_IFS
6200  if test -z "$ac_cv_path_SED"; then
6201    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6202  fi
6203else
6204  ac_cv_path_SED=$SED
6205fi
6206
6207fi
6208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6209$as_echo "$ac_cv_path_SED" >&6; }
6210 SED="$ac_cv_path_SED"
6211  rm -f conftest.sed
6212
6213
6214
6215
6216
6217
6218# Check whether --enable-selective-werror was given.
6219if test "${enable_selective_werror+set}" = set; then :
6220  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
6221else
6222  SELECTIVE_WERROR=yes
6223fi
6224
6225
6226
6227
6228
6229# -v is too short to test reliably with XORG_TESTSET_CFLAG
6230if test "x$SUNCC" = "xyes"; then
6231    BASE_CFLAGS="-v"
6232else
6233    BASE_CFLAGS=""
6234fi
6235
6236# This chunk of warnings were those that existed in the legacy CWARNFLAGS
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250xorg_testset_save_CFLAGS="$CFLAGS"
6251
6252if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6253	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6254	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6255$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6256if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6257  $as_echo_n "(cached) " >&6
6258else
6259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260/* end confdefs.h.  */
6261int i;
6262_ACEOF
6263if ac_fn_c_try_compile "$LINENO"; then :
6264  xorg_cv_cc_flag_unknown_warning_option=yes
6265else
6266  xorg_cv_cc_flag_unknown_warning_option=no
6267fi
6268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6269fi
6270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6271$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6272	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6273	CFLAGS="$xorg_testset_save_CFLAGS"
6274fi
6275
6276if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6277	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6278		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6279	fi
6280	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6281	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6282$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6283if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6284  $as_echo_n "(cached) " >&6
6285else
6286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287/* end confdefs.h.  */
6288int i;
6289_ACEOF
6290if ac_fn_c_try_compile "$LINENO"; then :
6291  xorg_cv_cc_flag_unused_command_line_argument=yes
6292else
6293  xorg_cv_cc_flag_unused_command_line_argument=no
6294fi
6295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296fi
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6298$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6299	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6300	CFLAGS="$xorg_testset_save_CFLAGS"
6301fi
6302
6303found="no"
6304
6305	if test $found = "no" ; then
6306		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6307			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6308		fi
6309
6310		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6311			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6312		fi
6313
6314		CFLAGS="$CFLAGS -Wall"
6315
6316		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
6317$as_echo_n "checking if $CC supports -Wall... " >&6; }
6318		cacheid=xorg_cv_cc_flag__Wall
6319		if eval \${$cacheid+:} false; then :
6320  $as_echo_n "(cached) " >&6
6321else
6322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323/* end confdefs.h.  */
6324int i;
6325int
6326main ()
6327{
6328
6329  ;
6330  return 0;
6331}
6332_ACEOF
6333if ac_fn_c_try_link "$LINENO"; then :
6334  eval $cacheid=yes
6335else
6336  eval $cacheid=no
6337fi
6338rm -f core conftest.err conftest.$ac_objext \
6339    conftest$ac_exeext conftest.$ac_ext
6340fi
6341
6342
6343		CFLAGS="$xorg_testset_save_CFLAGS"
6344
6345		eval supported=\$$cacheid
6346		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6347$as_echo "$supported" >&6; }
6348		if test "$supported" = "yes" ; then
6349			BASE_CFLAGS="$BASE_CFLAGS -Wall"
6350			found="yes"
6351		fi
6352	fi
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368xorg_testset_save_CFLAGS="$CFLAGS"
6369
6370if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6371	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6372	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6373$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6374if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6375  $as_echo_n "(cached) " >&6
6376else
6377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378/* end confdefs.h.  */
6379int i;
6380_ACEOF
6381if ac_fn_c_try_compile "$LINENO"; then :
6382  xorg_cv_cc_flag_unknown_warning_option=yes
6383else
6384  xorg_cv_cc_flag_unknown_warning_option=no
6385fi
6386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6387fi
6388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6389$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6390	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6391	CFLAGS="$xorg_testset_save_CFLAGS"
6392fi
6393
6394if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6395	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6396		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6397	fi
6398	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6399	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6400$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6401if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6402  $as_echo_n "(cached) " >&6
6403else
6404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405/* end confdefs.h.  */
6406int i;
6407_ACEOF
6408if ac_fn_c_try_compile "$LINENO"; then :
6409  xorg_cv_cc_flag_unused_command_line_argument=yes
6410else
6411  xorg_cv_cc_flag_unused_command_line_argument=no
6412fi
6413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6414fi
6415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6416$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6417	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6418	CFLAGS="$xorg_testset_save_CFLAGS"
6419fi
6420
6421found="no"
6422
6423	if test $found = "no" ; then
6424		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6425			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6426		fi
6427
6428		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6429			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6430		fi
6431
6432		CFLAGS="$CFLAGS -Wpointer-arith"
6433
6434		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
6435$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
6436		cacheid=xorg_cv_cc_flag__Wpointer_arith
6437		if eval \${$cacheid+:} false; then :
6438  $as_echo_n "(cached) " >&6
6439else
6440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441/* end confdefs.h.  */
6442int i;
6443int
6444main ()
6445{
6446
6447  ;
6448  return 0;
6449}
6450_ACEOF
6451if ac_fn_c_try_link "$LINENO"; then :
6452  eval $cacheid=yes
6453else
6454  eval $cacheid=no
6455fi
6456rm -f core conftest.err conftest.$ac_objext \
6457    conftest$ac_exeext conftest.$ac_ext
6458fi
6459
6460
6461		CFLAGS="$xorg_testset_save_CFLAGS"
6462
6463		eval supported=\$$cacheid
6464		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6465$as_echo "$supported" >&6; }
6466		if test "$supported" = "yes" ; then
6467			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
6468			found="yes"
6469		fi
6470	fi
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486xorg_testset_save_CFLAGS="$CFLAGS"
6487
6488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6489	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6490	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6491$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6492if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6493  $as_echo_n "(cached) " >&6
6494else
6495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496/* end confdefs.h.  */
6497int i;
6498_ACEOF
6499if ac_fn_c_try_compile "$LINENO"; then :
6500  xorg_cv_cc_flag_unknown_warning_option=yes
6501else
6502  xorg_cv_cc_flag_unknown_warning_option=no
6503fi
6504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6505fi
6506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6507$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6508	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6509	CFLAGS="$xorg_testset_save_CFLAGS"
6510fi
6511
6512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6513	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6514		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6515	fi
6516	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6517	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6518$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6519if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6520  $as_echo_n "(cached) " >&6
6521else
6522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523/* end confdefs.h.  */
6524int i;
6525_ACEOF
6526if ac_fn_c_try_compile "$LINENO"; then :
6527  xorg_cv_cc_flag_unused_command_line_argument=yes
6528else
6529  xorg_cv_cc_flag_unused_command_line_argument=no
6530fi
6531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6532fi
6533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6534$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6535	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6536	CFLAGS="$xorg_testset_save_CFLAGS"
6537fi
6538
6539found="no"
6540
6541	if test $found = "no" ; then
6542		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6543			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6544		fi
6545
6546		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6547			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6548		fi
6549
6550		CFLAGS="$CFLAGS -Wmissing-declarations"
6551
6552		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
6553$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
6554		cacheid=xorg_cv_cc_flag__Wmissing_declarations
6555		if eval \${$cacheid+:} false; then :
6556  $as_echo_n "(cached) " >&6
6557else
6558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559/* end confdefs.h.  */
6560int i;
6561int
6562main ()
6563{
6564
6565  ;
6566  return 0;
6567}
6568_ACEOF
6569if ac_fn_c_try_link "$LINENO"; then :
6570  eval $cacheid=yes
6571else
6572  eval $cacheid=no
6573fi
6574rm -f core conftest.err conftest.$ac_objext \
6575    conftest$ac_exeext conftest.$ac_ext
6576fi
6577
6578
6579		CFLAGS="$xorg_testset_save_CFLAGS"
6580
6581		eval supported=\$$cacheid
6582		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6583$as_echo "$supported" >&6; }
6584		if test "$supported" = "yes" ; then
6585			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
6586			found="yes"
6587		fi
6588	fi
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604xorg_testset_save_CFLAGS="$CFLAGS"
6605
6606if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6607	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6608	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6609$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6610if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6611  $as_echo_n "(cached) " >&6
6612else
6613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614/* end confdefs.h.  */
6615int i;
6616_ACEOF
6617if ac_fn_c_try_compile "$LINENO"; then :
6618  xorg_cv_cc_flag_unknown_warning_option=yes
6619else
6620  xorg_cv_cc_flag_unknown_warning_option=no
6621fi
6622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6623fi
6624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6625$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6626	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6627	CFLAGS="$xorg_testset_save_CFLAGS"
6628fi
6629
6630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6631	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6632		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6633	fi
6634	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6635	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6636$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6637if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6638  $as_echo_n "(cached) " >&6
6639else
6640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641/* end confdefs.h.  */
6642int i;
6643_ACEOF
6644if ac_fn_c_try_compile "$LINENO"; then :
6645  xorg_cv_cc_flag_unused_command_line_argument=yes
6646else
6647  xorg_cv_cc_flag_unused_command_line_argument=no
6648fi
6649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6650fi
6651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6652$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6653	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6654	CFLAGS="$xorg_testset_save_CFLAGS"
6655fi
6656
6657found="no"
6658
6659	if test $found = "no" ; then
6660		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6661			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6662		fi
6663
6664		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6665			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6666		fi
6667
6668		CFLAGS="$CFLAGS -Wformat=2"
6669
6670		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
6671$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
6672		cacheid=xorg_cv_cc_flag__Wformat_2
6673		if eval \${$cacheid+:} false; then :
6674  $as_echo_n "(cached) " >&6
6675else
6676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677/* end confdefs.h.  */
6678int i;
6679int
6680main ()
6681{
6682
6683  ;
6684  return 0;
6685}
6686_ACEOF
6687if ac_fn_c_try_link "$LINENO"; then :
6688  eval $cacheid=yes
6689else
6690  eval $cacheid=no
6691fi
6692rm -f core conftest.err conftest.$ac_objext \
6693    conftest$ac_exeext conftest.$ac_ext
6694fi
6695
6696
6697		CFLAGS="$xorg_testset_save_CFLAGS"
6698
6699		eval supported=\$$cacheid
6700		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6701$as_echo "$supported" >&6; }
6702		if test "$supported" = "yes" ; then
6703			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
6704			found="yes"
6705		fi
6706	fi
6707
6708	if test $found = "no" ; then
6709		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6710			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6711		fi
6712
6713		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6714			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6715		fi
6716
6717		CFLAGS="$CFLAGS -Wformat"
6718
6719		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
6720$as_echo_n "checking if $CC supports -Wformat... " >&6; }
6721		cacheid=xorg_cv_cc_flag__Wformat
6722		if eval \${$cacheid+:} false; then :
6723  $as_echo_n "(cached) " >&6
6724else
6725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726/* end confdefs.h.  */
6727int i;
6728int
6729main ()
6730{
6731
6732  ;
6733  return 0;
6734}
6735_ACEOF
6736if ac_fn_c_try_link "$LINENO"; then :
6737  eval $cacheid=yes
6738else
6739  eval $cacheid=no
6740fi
6741rm -f core conftest.err conftest.$ac_objext \
6742    conftest$ac_exeext conftest.$ac_ext
6743fi
6744
6745
6746		CFLAGS="$xorg_testset_save_CFLAGS"
6747
6748		eval supported=\$$cacheid
6749		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6750$as_echo "$supported" >&6; }
6751		if test "$supported" = "yes" ; then
6752			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
6753			found="yes"
6754		fi
6755	fi
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773xorg_testset_save_CFLAGS="$CFLAGS"
6774
6775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6776	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6777	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6778$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6779if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6780  $as_echo_n "(cached) " >&6
6781else
6782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783/* end confdefs.h.  */
6784int i;
6785_ACEOF
6786if ac_fn_c_try_compile "$LINENO"; then :
6787  xorg_cv_cc_flag_unknown_warning_option=yes
6788else
6789  xorg_cv_cc_flag_unknown_warning_option=no
6790fi
6791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6792fi
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6794$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6795	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6796	CFLAGS="$xorg_testset_save_CFLAGS"
6797fi
6798
6799if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6800	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6801		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6802	fi
6803	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6804	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6805$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6806if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6807  $as_echo_n "(cached) " >&6
6808else
6809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6810/* end confdefs.h.  */
6811int i;
6812_ACEOF
6813if ac_fn_c_try_compile "$LINENO"; then :
6814  xorg_cv_cc_flag_unused_command_line_argument=yes
6815else
6816  xorg_cv_cc_flag_unused_command_line_argument=no
6817fi
6818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6819fi
6820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6821$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6822	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6823	CFLAGS="$xorg_testset_save_CFLAGS"
6824fi
6825
6826found="no"
6827
6828	if test $found = "no" ; then
6829		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6830			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6831		fi
6832
6833		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6834			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6835		fi
6836
6837		CFLAGS="$CFLAGS -Wstrict-prototypes"
6838
6839		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
6840$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
6841		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
6842		if eval \${$cacheid+:} false; then :
6843  $as_echo_n "(cached) " >&6
6844else
6845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846/* end confdefs.h.  */
6847int i;
6848int
6849main ()
6850{
6851
6852  ;
6853  return 0;
6854}
6855_ACEOF
6856if ac_fn_c_try_link "$LINENO"; then :
6857  eval $cacheid=yes
6858else
6859  eval $cacheid=no
6860fi
6861rm -f core conftest.err conftest.$ac_objext \
6862    conftest$ac_exeext conftest.$ac_ext
6863fi
6864
6865
6866		CFLAGS="$xorg_testset_save_CFLAGS"
6867
6868		eval supported=\$$cacheid
6869		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6870$as_echo "$supported" >&6; }
6871		if test "$supported" = "yes" ; then
6872			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
6873			found="yes"
6874		fi
6875	fi
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891xorg_testset_save_CFLAGS="$CFLAGS"
6892
6893if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6894	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6895	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6896$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6897if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6898  $as_echo_n "(cached) " >&6
6899else
6900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901/* end confdefs.h.  */
6902int i;
6903_ACEOF
6904if ac_fn_c_try_compile "$LINENO"; then :
6905  xorg_cv_cc_flag_unknown_warning_option=yes
6906else
6907  xorg_cv_cc_flag_unknown_warning_option=no
6908fi
6909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6910fi
6911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6912$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6913	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6914	CFLAGS="$xorg_testset_save_CFLAGS"
6915fi
6916
6917if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6918	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6919		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6920	fi
6921	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6922	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6923$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6924if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6925  $as_echo_n "(cached) " >&6
6926else
6927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928/* end confdefs.h.  */
6929int i;
6930_ACEOF
6931if ac_fn_c_try_compile "$LINENO"; then :
6932  xorg_cv_cc_flag_unused_command_line_argument=yes
6933else
6934  xorg_cv_cc_flag_unused_command_line_argument=no
6935fi
6936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6937fi
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6939$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6940	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6941	CFLAGS="$xorg_testset_save_CFLAGS"
6942fi
6943
6944found="no"
6945
6946	if test $found = "no" ; then
6947		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6948			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6949		fi
6950
6951		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6952			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6953		fi
6954
6955		CFLAGS="$CFLAGS -Wmissing-prototypes"
6956
6957		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
6958$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
6959		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
6960		if eval \${$cacheid+:} false; then :
6961  $as_echo_n "(cached) " >&6
6962else
6963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964/* end confdefs.h.  */
6965int i;
6966int
6967main ()
6968{
6969
6970  ;
6971  return 0;
6972}
6973_ACEOF
6974if ac_fn_c_try_link "$LINENO"; then :
6975  eval $cacheid=yes
6976else
6977  eval $cacheid=no
6978fi
6979rm -f core conftest.err conftest.$ac_objext \
6980    conftest$ac_exeext conftest.$ac_ext
6981fi
6982
6983
6984		CFLAGS="$xorg_testset_save_CFLAGS"
6985
6986		eval supported=\$$cacheid
6987		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6988$as_echo "$supported" >&6; }
6989		if test "$supported" = "yes" ; then
6990			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
6991			found="yes"
6992		fi
6993	fi
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009xorg_testset_save_CFLAGS="$CFLAGS"
7010
7011if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7012	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7013	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7014$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7015if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7016  $as_echo_n "(cached) " >&6
7017else
7018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019/* end confdefs.h.  */
7020int i;
7021_ACEOF
7022if ac_fn_c_try_compile "$LINENO"; then :
7023  xorg_cv_cc_flag_unknown_warning_option=yes
7024else
7025  xorg_cv_cc_flag_unknown_warning_option=no
7026fi
7027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7028fi
7029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7030$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7031	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7032	CFLAGS="$xorg_testset_save_CFLAGS"
7033fi
7034
7035if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7036	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7037		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7038	fi
7039	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7040	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7041$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7042if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7043  $as_echo_n "(cached) " >&6
7044else
7045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046/* end confdefs.h.  */
7047int i;
7048_ACEOF
7049if ac_fn_c_try_compile "$LINENO"; then :
7050  xorg_cv_cc_flag_unused_command_line_argument=yes
7051else
7052  xorg_cv_cc_flag_unused_command_line_argument=no
7053fi
7054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7055fi
7056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7057$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7058	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7059	CFLAGS="$xorg_testset_save_CFLAGS"
7060fi
7061
7062found="no"
7063
7064	if test $found = "no" ; then
7065		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7066			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7067		fi
7068
7069		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7070			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7071		fi
7072
7073		CFLAGS="$CFLAGS -Wnested-externs"
7074
7075		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
7076$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
7077		cacheid=xorg_cv_cc_flag__Wnested_externs
7078		if eval \${$cacheid+:} false; then :
7079  $as_echo_n "(cached) " >&6
7080else
7081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082/* end confdefs.h.  */
7083int i;
7084int
7085main ()
7086{
7087
7088  ;
7089  return 0;
7090}
7091_ACEOF
7092if ac_fn_c_try_link "$LINENO"; then :
7093  eval $cacheid=yes
7094else
7095  eval $cacheid=no
7096fi
7097rm -f core conftest.err conftest.$ac_objext \
7098    conftest$ac_exeext conftest.$ac_ext
7099fi
7100
7101
7102		CFLAGS="$xorg_testset_save_CFLAGS"
7103
7104		eval supported=\$$cacheid
7105		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7106$as_echo "$supported" >&6; }
7107		if test "$supported" = "yes" ; then
7108			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
7109			found="yes"
7110		fi
7111	fi
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127xorg_testset_save_CFLAGS="$CFLAGS"
7128
7129if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7130	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7131	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7132$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7133if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7134  $as_echo_n "(cached) " >&6
7135else
7136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137/* end confdefs.h.  */
7138int i;
7139_ACEOF
7140if ac_fn_c_try_compile "$LINENO"; then :
7141  xorg_cv_cc_flag_unknown_warning_option=yes
7142else
7143  xorg_cv_cc_flag_unknown_warning_option=no
7144fi
7145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7146fi
7147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7148$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7149	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7150	CFLAGS="$xorg_testset_save_CFLAGS"
7151fi
7152
7153if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7154	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7155		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7156	fi
7157	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7158	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7159$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7160if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7161  $as_echo_n "(cached) " >&6
7162else
7163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164/* end confdefs.h.  */
7165int i;
7166_ACEOF
7167if ac_fn_c_try_compile "$LINENO"; then :
7168  xorg_cv_cc_flag_unused_command_line_argument=yes
7169else
7170  xorg_cv_cc_flag_unused_command_line_argument=no
7171fi
7172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7173fi
7174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7175$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7176	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7177	CFLAGS="$xorg_testset_save_CFLAGS"
7178fi
7179
7180found="no"
7181
7182	if test $found = "no" ; then
7183		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7184			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7185		fi
7186
7187		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7188			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7189		fi
7190
7191		CFLAGS="$CFLAGS -Wbad-function-cast"
7192
7193		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
7194$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
7195		cacheid=xorg_cv_cc_flag__Wbad_function_cast
7196		if eval \${$cacheid+:} false; then :
7197  $as_echo_n "(cached) " >&6
7198else
7199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200/* end confdefs.h.  */
7201int i;
7202int
7203main ()
7204{
7205
7206  ;
7207  return 0;
7208}
7209_ACEOF
7210if ac_fn_c_try_link "$LINENO"; then :
7211  eval $cacheid=yes
7212else
7213  eval $cacheid=no
7214fi
7215rm -f core conftest.err conftest.$ac_objext \
7216    conftest$ac_exeext conftest.$ac_ext
7217fi
7218
7219
7220		CFLAGS="$xorg_testset_save_CFLAGS"
7221
7222		eval supported=\$$cacheid
7223		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7224$as_echo "$supported" >&6; }
7225		if test "$supported" = "yes" ; then
7226			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
7227			found="yes"
7228		fi
7229	fi
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245xorg_testset_save_CFLAGS="$CFLAGS"
7246
7247if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7248	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7249	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7250$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7251if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7252  $as_echo_n "(cached) " >&6
7253else
7254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255/* end confdefs.h.  */
7256int i;
7257_ACEOF
7258if ac_fn_c_try_compile "$LINENO"; then :
7259  xorg_cv_cc_flag_unknown_warning_option=yes
7260else
7261  xorg_cv_cc_flag_unknown_warning_option=no
7262fi
7263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7264fi
7265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7266$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7267	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7268	CFLAGS="$xorg_testset_save_CFLAGS"
7269fi
7270
7271if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7272	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7273		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7274	fi
7275	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7276	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7277$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7278if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7279  $as_echo_n "(cached) " >&6
7280else
7281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282/* end confdefs.h.  */
7283int i;
7284_ACEOF
7285if ac_fn_c_try_compile "$LINENO"; then :
7286  xorg_cv_cc_flag_unused_command_line_argument=yes
7287else
7288  xorg_cv_cc_flag_unused_command_line_argument=no
7289fi
7290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7291fi
7292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7293$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7294	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7295	CFLAGS="$xorg_testset_save_CFLAGS"
7296fi
7297
7298found="no"
7299
7300	if test $found = "no" ; then
7301		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7302			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7303		fi
7304
7305		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7306			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7307		fi
7308
7309		CFLAGS="$CFLAGS -Wold-style-definition"
7310
7311		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
7312$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
7313		cacheid=xorg_cv_cc_flag__Wold_style_definition
7314		if eval \${$cacheid+:} false; then :
7315  $as_echo_n "(cached) " >&6
7316else
7317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318/* end confdefs.h.  */
7319int i;
7320int
7321main ()
7322{
7323
7324  ;
7325  return 0;
7326}
7327_ACEOF
7328if ac_fn_c_try_link "$LINENO"; then :
7329  eval $cacheid=yes
7330else
7331  eval $cacheid=no
7332fi
7333rm -f core conftest.err conftest.$ac_objext \
7334    conftest$ac_exeext conftest.$ac_ext
7335fi
7336
7337
7338		CFLAGS="$xorg_testset_save_CFLAGS"
7339
7340		eval supported=\$$cacheid
7341		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7342$as_echo "$supported" >&6; }
7343		if test "$supported" = "yes" ; then
7344			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
7345			found="yes"
7346		fi
7347	fi
7348
7349	if test $found = "no" ; then
7350		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7351			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7352		fi
7353
7354		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7355			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7356		fi
7357
7358		CFLAGS="$CFLAGS -fd"
7359
7360		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
7361$as_echo_n "checking if $CC supports -fd... " >&6; }
7362		cacheid=xorg_cv_cc_flag__fd
7363		if eval \${$cacheid+:} false; then :
7364  $as_echo_n "(cached) " >&6
7365else
7366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367/* end confdefs.h.  */
7368int i;
7369int
7370main ()
7371{
7372
7373  ;
7374  return 0;
7375}
7376_ACEOF
7377if ac_fn_c_try_link "$LINENO"; then :
7378  eval $cacheid=yes
7379else
7380  eval $cacheid=no
7381fi
7382rm -f core conftest.err conftest.$ac_objext \
7383    conftest$ac_exeext conftest.$ac_ext
7384fi
7385
7386
7387		CFLAGS="$xorg_testset_save_CFLAGS"
7388
7389		eval supported=\$$cacheid
7390		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7391$as_echo "$supported" >&6; }
7392		if test "$supported" = "yes" ; then
7393			BASE_CFLAGS="$BASE_CFLAGS -fd"
7394			found="yes"
7395		fi
7396	fi
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412xorg_testset_save_CFLAGS="$CFLAGS"
7413
7414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7415	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7416	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7417$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7418if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7419  $as_echo_n "(cached) " >&6
7420else
7421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422/* end confdefs.h.  */
7423int i;
7424_ACEOF
7425if ac_fn_c_try_compile "$LINENO"; then :
7426  xorg_cv_cc_flag_unknown_warning_option=yes
7427else
7428  xorg_cv_cc_flag_unknown_warning_option=no
7429fi
7430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7431fi
7432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7433$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7434	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7435	CFLAGS="$xorg_testset_save_CFLAGS"
7436fi
7437
7438if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7439	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7440		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7441	fi
7442	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7443	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7444$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7445if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7446  $as_echo_n "(cached) " >&6
7447else
7448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449/* end confdefs.h.  */
7450int i;
7451_ACEOF
7452if ac_fn_c_try_compile "$LINENO"; then :
7453  xorg_cv_cc_flag_unused_command_line_argument=yes
7454else
7455  xorg_cv_cc_flag_unused_command_line_argument=no
7456fi
7457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7458fi
7459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7460$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7461	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7462	CFLAGS="$xorg_testset_save_CFLAGS"
7463fi
7464
7465found="no"
7466
7467	if test $found = "no" ; then
7468		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7469			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7470		fi
7471
7472		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7473			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7474		fi
7475
7476		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
7477
7478		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
7479$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
7480		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
7481		if eval \${$cacheid+:} false; then :
7482  $as_echo_n "(cached) " >&6
7483else
7484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7485/* end confdefs.h.  */
7486int i;
7487int
7488main ()
7489{
7490
7491  ;
7492  return 0;
7493}
7494_ACEOF
7495if ac_fn_c_try_link "$LINENO"; then :
7496  eval $cacheid=yes
7497else
7498  eval $cacheid=no
7499fi
7500rm -f core conftest.err conftest.$ac_objext \
7501    conftest$ac_exeext conftest.$ac_ext
7502fi
7503
7504
7505		CFLAGS="$xorg_testset_save_CFLAGS"
7506
7507		eval supported=\$$cacheid
7508		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7509$as_echo "$supported" >&6; }
7510		if test "$supported" = "yes" ; then
7511			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
7512			found="yes"
7513		fi
7514	fi
7515
7516
7517
7518
7519
7520# This chunk adds additional warnings that could catch undesired effects.
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534xorg_testset_save_CFLAGS="$CFLAGS"
7535
7536if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7537	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7538	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7539$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7540if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7541  $as_echo_n "(cached) " >&6
7542else
7543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544/* end confdefs.h.  */
7545int i;
7546_ACEOF
7547if ac_fn_c_try_compile "$LINENO"; then :
7548  xorg_cv_cc_flag_unknown_warning_option=yes
7549else
7550  xorg_cv_cc_flag_unknown_warning_option=no
7551fi
7552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7553fi
7554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7555$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7556	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7557	CFLAGS="$xorg_testset_save_CFLAGS"
7558fi
7559
7560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7561	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7562		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7563	fi
7564	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7565	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7566$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7567if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7568  $as_echo_n "(cached) " >&6
7569else
7570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571/* end confdefs.h.  */
7572int i;
7573_ACEOF
7574if ac_fn_c_try_compile "$LINENO"; then :
7575  xorg_cv_cc_flag_unused_command_line_argument=yes
7576else
7577  xorg_cv_cc_flag_unused_command_line_argument=no
7578fi
7579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580fi
7581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7582$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7583	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7584	CFLAGS="$xorg_testset_save_CFLAGS"
7585fi
7586
7587found="no"
7588
7589	if test $found = "no" ; then
7590		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7591			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7592		fi
7593
7594		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7595			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7596		fi
7597
7598		CFLAGS="$CFLAGS -Wunused"
7599
7600		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
7601$as_echo_n "checking if $CC supports -Wunused... " >&6; }
7602		cacheid=xorg_cv_cc_flag__Wunused
7603		if eval \${$cacheid+:} false; then :
7604  $as_echo_n "(cached) " >&6
7605else
7606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607/* end confdefs.h.  */
7608int i;
7609int
7610main ()
7611{
7612
7613  ;
7614  return 0;
7615}
7616_ACEOF
7617if ac_fn_c_try_link "$LINENO"; then :
7618  eval $cacheid=yes
7619else
7620  eval $cacheid=no
7621fi
7622rm -f core conftest.err conftest.$ac_objext \
7623    conftest$ac_exeext conftest.$ac_ext
7624fi
7625
7626
7627		CFLAGS="$xorg_testset_save_CFLAGS"
7628
7629		eval supported=\$$cacheid
7630		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7631$as_echo "$supported" >&6; }
7632		if test "$supported" = "yes" ; then
7633			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
7634			found="yes"
7635		fi
7636	fi
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652xorg_testset_save_CFLAGS="$CFLAGS"
7653
7654if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7655	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7656	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7657$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7658if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7659  $as_echo_n "(cached) " >&6
7660else
7661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662/* end confdefs.h.  */
7663int i;
7664_ACEOF
7665if ac_fn_c_try_compile "$LINENO"; then :
7666  xorg_cv_cc_flag_unknown_warning_option=yes
7667else
7668  xorg_cv_cc_flag_unknown_warning_option=no
7669fi
7670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7671fi
7672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7673$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7674	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7675	CFLAGS="$xorg_testset_save_CFLAGS"
7676fi
7677
7678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7679	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7680		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7681	fi
7682	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7683	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7684$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7685if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7686  $as_echo_n "(cached) " >&6
7687else
7688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689/* end confdefs.h.  */
7690int i;
7691_ACEOF
7692if ac_fn_c_try_compile "$LINENO"; then :
7693  xorg_cv_cc_flag_unused_command_line_argument=yes
7694else
7695  xorg_cv_cc_flag_unused_command_line_argument=no
7696fi
7697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7698fi
7699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7700$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7701	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7702	CFLAGS="$xorg_testset_save_CFLAGS"
7703fi
7704
7705found="no"
7706
7707	if test $found = "no" ; then
7708		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7709			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7710		fi
7711
7712		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7713			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7714		fi
7715
7716		CFLAGS="$CFLAGS -Wuninitialized"
7717
7718		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
7719$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
7720		cacheid=xorg_cv_cc_flag__Wuninitialized
7721		if eval \${$cacheid+:} false; then :
7722  $as_echo_n "(cached) " >&6
7723else
7724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725/* end confdefs.h.  */
7726int i;
7727int
7728main ()
7729{
7730
7731  ;
7732  return 0;
7733}
7734_ACEOF
7735if ac_fn_c_try_link "$LINENO"; then :
7736  eval $cacheid=yes
7737else
7738  eval $cacheid=no
7739fi
7740rm -f core conftest.err conftest.$ac_objext \
7741    conftest$ac_exeext conftest.$ac_ext
7742fi
7743
7744
7745		CFLAGS="$xorg_testset_save_CFLAGS"
7746
7747		eval supported=\$$cacheid
7748		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7749$as_echo "$supported" >&6; }
7750		if test "$supported" = "yes" ; then
7751			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
7752			found="yes"
7753		fi
7754	fi
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770xorg_testset_save_CFLAGS="$CFLAGS"
7771
7772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7773	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7774	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7775$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7776if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7777  $as_echo_n "(cached) " >&6
7778else
7779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780/* end confdefs.h.  */
7781int i;
7782_ACEOF
7783if ac_fn_c_try_compile "$LINENO"; then :
7784  xorg_cv_cc_flag_unknown_warning_option=yes
7785else
7786  xorg_cv_cc_flag_unknown_warning_option=no
7787fi
7788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789fi
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7791$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7792	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7793	CFLAGS="$xorg_testset_save_CFLAGS"
7794fi
7795
7796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7797	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7798		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7799	fi
7800	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7801	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7802$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7803if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7804  $as_echo_n "(cached) " >&6
7805else
7806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807/* end confdefs.h.  */
7808int i;
7809_ACEOF
7810if ac_fn_c_try_compile "$LINENO"; then :
7811  xorg_cv_cc_flag_unused_command_line_argument=yes
7812else
7813  xorg_cv_cc_flag_unused_command_line_argument=no
7814fi
7815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816fi
7817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7818$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7819	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7820	CFLAGS="$xorg_testset_save_CFLAGS"
7821fi
7822
7823found="no"
7824
7825	if test $found = "no" ; then
7826		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7827			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7828		fi
7829
7830		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7831			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7832		fi
7833
7834		CFLAGS="$CFLAGS -Wshadow"
7835
7836		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
7837$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
7838		cacheid=xorg_cv_cc_flag__Wshadow
7839		if eval \${$cacheid+:} false; then :
7840  $as_echo_n "(cached) " >&6
7841else
7842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843/* end confdefs.h.  */
7844int i;
7845int
7846main ()
7847{
7848
7849  ;
7850  return 0;
7851}
7852_ACEOF
7853if ac_fn_c_try_link "$LINENO"; then :
7854  eval $cacheid=yes
7855else
7856  eval $cacheid=no
7857fi
7858rm -f core conftest.err conftest.$ac_objext \
7859    conftest$ac_exeext conftest.$ac_ext
7860fi
7861
7862
7863		CFLAGS="$xorg_testset_save_CFLAGS"
7864
7865		eval supported=\$$cacheid
7866		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7867$as_echo "$supported" >&6; }
7868		if test "$supported" = "yes" ; then
7869			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
7870			found="yes"
7871		fi
7872	fi
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888xorg_testset_save_CFLAGS="$CFLAGS"
7889
7890if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7891	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7892	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7893$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7894if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7895  $as_echo_n "(cached) " >&6
7896else
7897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898/* end confdefs.h.  */
7899int i;
7900_ACEOF
7901if ac_fn_c_try_compile "$LINENO"; then :
7902  xorg_cv_cc_flag_unknown_warning_option=yes
7903else
7904  xorg_cv_cc_flag_unknown_warning_option=no
7905fi
7906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7907fi
7908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7909$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7910	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7911	CFLAGS="$xorg_testset_save_CFLAGS"
7912fi
7913
7914if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7915	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7916		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7917	fi
7918	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7919	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7920$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7921if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7922  $as_echo_n "(cached) " >&6
7923else
7924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925/* end confdefs.h.  */
7926int i;
7927_ACEOF
7928if ac_fn_c_try_compile "$LINENO"; then :
7929  xorg_cv_cc_flag_unused_command_line_argument=yes
7930else
7931  xorg_cv_cc_flag_unused_command_line_argument=no
7932fi
7933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7934fi
7935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7936$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7937	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7938	CFLAGS="$xorg_testset_save_CFLAGS"
7939fi
7940
7941found="no"
7942
7943	if test $found = "no" ; then
7944		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7945			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7946		fi
7947
7948		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7949			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7950		fi
7951
7952		CFLAGS="$CFLAGS -Wmissing-noreturn"
7953
7954		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7955$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
7956		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7957		if eval \${$cacheid+:} false; then :
7958  $as_echo_n "(cached) " >&6
7959else
7960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961/* end confdefs.h.  */
7962int i;
7963int
7964main ()
7965{
7966
7967  ;
7968  return 0;
7969}
7970_ACEOF
7971if ac_fn_c_try_link "$LINENO"; then :
7972  eval $cacheid=yes
7973else
7974  eval $cacheid=no
7975fi
7976rm -f core conftest.err conftest.$ac_objext \
7977    conftest$ac_exeext conftest.$ac_ext
7978fi
7979
7980
7981		CFLAGS="$xorg_testset_save_CFLAGS"
7982
7983		eval supported=\$$cacheid
7984		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7985$as_echo "$supported" >&6; }
7986		if test "$supported" = "yes" ; then
7987			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7988			found="yes"
7989		fi
7990	fi
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006xorg_testset_save_CFLAGS="$CFLAGS"
8007
8008if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8009	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8010	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8011$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8012if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8013  $as_echo_n "(cached) " >&6
8014else
8015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016/* end confdefs.h.  */
8017int i;
8018_ACEOF
8019if ac_fn_c_try_compile "$LINENO"; then :
8020  xorg_cv_cc_flag_unknown_warning_option=yes
8021else
8022  xorg_cv_cc_flag_unknown_warning_option=no
8023fi
8024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8025fi
8026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8027$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8028	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8029	CFLAGS="$xorg_testset_save_CFLAGS"
8030fi
8031
8032if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8033	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8034		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8035	fi
8036	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8037	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8038$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8039if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8040  $as_echo_n "(cached) " >&6
8041else
8042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043/* end confdefs.h.  */
8044int i;
8045_ACEOF
8046if ac_fn_c_try_compile "$LINENO"; then :
8047  xorg_cv_cc_flag_unused_command_line_argument=yes
8048else
8049  xorg_cv_cc_flag_unused_command_line_argument=no
8050fi
8051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8052fi
8053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8054$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8055	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8056	CFLAGS="$xorg_testset_save_CFLAGS"
8057fi
8058
8059found="no"
8060
8061	if test $found = "no" ; then
8062		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8063			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8064		fi
8065
8066		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8067			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8068		fi
8069
8070		CFLAGS="$CFLAGS -Wmissing-format-attribute"
8071
8072		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
8073$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
8074		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
8075		if eval \${$cacheid+:} false; then :
8076  $as_echo_n "(cached) " >&6
8077else
8078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8079/* end confdefs.h.  */
8080int i;
8081int
8082main ()
8083{
8084
8085  ;
8086  return 0;
8087}
8088_ACEOF
8089if ac_fn_c_try_link "$LINENO"; then :
8090  eval $cacheid=yes
8091else
8092  eval $cacheid=no
8093fi
8094rm -f core conftest.err conftest.$ac_objext \
8095    conftest$ac_exeext conftest.$ac_ext
8096fi
8097
8098
8099		CFLAGS="$xorg_testset_save_CFLAGS"
8100
8101		eval supported=\$$cacheid
8102		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8103$as_echo "$supported" >&6; }
8104		if test "$supported" = "yes" ; then
8105			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
8106			found="yes"
8107		fi
8108	fi
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124xorg_testset_save_CFLAGS="$CFLAGS"
8125
8126if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8127	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8128	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8129$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8130if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8131  $as_echo_n "(cached) " >&6
8132else
8133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134/* end confdefs.h.  */
8135int i;
8136_ACEOF
8137if ac_fn_c_try_compile "$LINENO"; then :
8138  xorg_cv_cc_flag_unknown_warning_option=yes
8139else
8140  xorg_cv_cc_flag_unknown_warning_option=no
8141fi
8142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8143fi
8144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8145$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8146	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8147	CFLAGS="$xorg_testset_save_CFLAGS"
8148fi
8149
8150if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8151	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8152		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8153	fi
8154	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8155	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8156$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8157if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8158  $as_echo_n "(cached) " >&6
8159else
8160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161/* end confdefs.h.  */
8162int i;
8163_ACEOF
8164if ac_fn_c_try_compile "$LINENO"; then :
8165  xorg_cv_cc_flag_unused_command_line_argument=yes
8166else
8167  xorg_cv_cc_flag_unused_command_line_argument=no
8168fi
8169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8170fi
8171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8172$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8173	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8174	CFLAGS="$xorg_testset_save_CFLAGS"
8175fi
8176
8177found="no"
8178
8179	if test $found = "no" ; then
8180		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8181			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8182		fi
8183
8184		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8185			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8186		fi
8187
8188		CFLAGS="$CFLAGS -Wredundant-decls"
8189
8190		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
8191$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
8192		cacheid=xorg_cv_cc_flag__Wredundant_decls
8193		if eval \${$cacheid+:} false; then :
8194  $as_echo_n "(cached) " >&6
8195else
8196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197/* end confdefs.h.  */
8198int i;
8199int
8200main ()
8201{
8202
8203  ;
8204  return 0;
8205}
8206_ACEOF
8207if ac_fn_c_try_link "$LINENO"; then :
8208  eval $cacheid=yes
8209else
8210  eval $cacheid=no
8211fi
8212rm -f core conftest.err conftest.$ac_objext \
8213    conftest$ac_exeext conftest.$ac_ext
8214fi
8215
8216
8217		CFLAGS="$xorg_testset_save_CFLAGS"
8218
8219		eval supported=\$$cacheid
8220		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8221$as_echo "$supported" >&6; }
8222		if test "$supported" = "yes" ; then
8223			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
8224			found="yes"
8225		fi
8226	fi
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242xorg_testset_save_CFLAGS="$CFLAGS"
8243
8244if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8245	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8246	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8247$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8248if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8249  $as_echo_n "(cached) " >&6
8250else
8251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8252/* end confdefs.h.  */
8253int i;
8254_ACEOF
8255if ac_fn_c_try_compile "$LINENO"; then :
8256  xorg_cv_cc_flag_unknown_warning_option=yes
8257else
8258  xorg_cv_cc_flag_unknown_warning_option=no
8259fi
8260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8261fi
8262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8263$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8264	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8265	CFLAGS="$xorg_testset_save_CFLAGS"
8266fi
8267
8268if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8269	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8270		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8271	fi
8272	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8273	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8274$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8275if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8276  $as_echo_n "(cached) " >&6
8277else
8278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279/* end confdefs.h.  */
8280int i;
8281_ACEOF
8282if ac_fn_c_try_compile "$LINENO"; then :
8283  xorg_cv_cc_flag_unused_command_line_argument=yes
8284else
8285  xorg_cv_cc_flag_unused_command_line_argument=no
8286fi
8287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8288fi
8289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8290$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8291	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8292	CFLAGS="$xorg_testset_save_CFLAGS"
8293fi
8294
8295found="no"
8296
8297	if test $found = "no" ; then
8298		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8299			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8300		fi
8301
8302		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8303			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8304		fi
8305
8306		CFLAGS="$CFLAGS -Wlogical-op"
8307
8308		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
8309$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
8310		cacheid=xorg_cv_cc_flag__Wlogical_op
8311		if eval \${$cacheid+:} false; then :
8312  $as_echo_n "(cached) " >&6
8313else
8314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8315/* end confdefs.h.  */
8316int i;
8317int
8318main ()
8319{
8320
8321  ;
8322  return 0;
8323}
8324_ACEOF
8325if ac_fn_c_try_link "$LINENO"; then :
8326  eval $cacheid=yes
8327else
8328  eval $cacheid=no
8329fi
8330rm -f core conftest.err conftest.$ac_objext \
8331    conftest$ac_exeext conftest.$ac_ext
8332fi
8333
8334
8335		CFLAGS="$xorg_testset_save_CFLAGS"
8336
8337		eval supported=\$$cacheid
8338		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8339$as_echo "$supported" >&6; }
8340		if test "$supported" = "yes" ; then
8341			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
8342			found="yes"
8343		fi
8344	fi
8345
8346
8347
8348# These are currently disabled because they are noisy.  They will be enabled
8349# in the future once the codebase is sufficiently modernized to silence
8350# them.  For now, I don't want them to drown out the other warnings.
8351# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
8352# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
8353# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
8354
8355# Turn some warnings into errors, so we don't accidently get successful builds
8356# when there are problems that should be fixed.
8357
8358if test "x$SELECTIVE_WERROR" = "xyes" ; then
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372xorg_testset_save_CFLAGS="$CFLAGS"
8373
8374if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8375	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8376	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8377$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8378if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8379  $as_echo_n "(cached) " >&6
8380else
8381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382/* end confdefs.h.  */
8383int i;
8384_ACEOF
8385if ac_fn_c_try_compile "$LINENO"; then :
8386  xorg_cv_cc_flag_unknown_warning_option=yes
8387else
8388  xorg_cv_cc_flag_unknown_warning_option=no
8389fi
8390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8391fi
8392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8393$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8394	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8395	CFLAGS="$xorg_testset_save_CFLAGS"
8396fi
8397
8398if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8399	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8400		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8401	fi
8402	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8403	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8404$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8405if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8406  $as_echo_n "(cached) " >&6
8407else
8408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409/* end confdefs.h.  */
8410int i;
8411_ACEOF
8412if ac_fn_c_try_compile "$LINENO"; then :
8413  xorg_cv_cc_flag_unused_command_line_argument=yes
8414else
8415  xorg_cv_cc_flag_unused_command_line_argument=no
8416fi
8417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8418fi
8419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8420$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8421	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8422	CFLAGS="$xorg_testset_save_CFLAGS"
8423fi
8424
8425found="no"
8426
8427	if test $found = "no" ; then
8428		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8429			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8430		fi
8431
8432		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8433			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8434		fi
8435
8436		CFLAGS="$CFLAGS -Werror=implicit"
8437
8438		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
8439$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
8440		cacheid=xorg_cv_cc_flag__Werror_implicit
8441		if eval \${$cacheid+:} false; then :
8442  $as_echo_n "(cached) " >&6
8443else
8444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8445/* end confdefs.h.  */
8446int i;
8447int
8448main ()
8449{
8450
8451  ;
8452  return 0;
8453}
8454_ACEOF
8455if ac_fn_c_try_link "$LINENO"; then :
8456  eval $cacheid=yes
8457else
8458  eval $cacheid=no
8459fi
8460rm -f core conftest.err conftest.$ac_objext \
8461    conftest$ac_exeext conftest.$ac_ext
8462fi
8463
8464
8465		CFLAGS="$xorg_testset_save_CFLAGS"
8466
8467		eval supported=\$$cacheid
8468		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8469$as_echo "$supported" >&6; }
8470		if test "$supported" = "yes" ; then
8471			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
8472			found="yes"
8473		fi
8474	fi
8475
8476	if test $found = "no" ; then
8477		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8478			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8479		fi
8480
8481		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8482			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8483		fi
8484
8485		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
8486
8487		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
8488$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
8489		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
8490		if eval \${$cacheid+:} false; then :
8491  $as_echo_n "(cached) " >&6
8492else
8493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494/* end confdefs.h.  */
8495int i;
8496int
8497main ()
8498{
8499
8500  ;
8501  return 0;
8502}
8503_ACEOF
8504if ac_fn_c_try_link "$LINENO"; then :
8505  eval $cacheid=yes
8506else
8507  eval $cacheid=no
8508fi
8509rm -f core conftest.err conftest.$ac_objext \
8510    conftest$ac_exeext conftest.$ac_ext
8511fi
8512
8513
8514		CFLAGS="$xorg_testset_save_CFLAGS"
8515
8516		eval supported=\$$cacheid
8517		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8518$as_echo "$supported" >&6; }
8519		if test "$supported" = "yes" ; then
8520			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
8521			found="yes"
8522		fi
8523	fi
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539xorg_testset_save_CFLAGS="$CFLAGS"
8540
8541if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8542	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8543	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8544$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8545if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8546  $as_echo_n "(cached) " >&6
8547else
8548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549/* end confdefs.h.  */
8550int i;
8551_ACEOF
8552if ac_fn_c_try_compile "$LINENO"; then :
8553  xorg_cv_cc_flag_unknown_warning_option=yes
8554else
8555  xorg_cv_cc_flag_unknown_warning_option=no
8556fi
8557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8558fi
8559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8560$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8561	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8562	CFLAGS="$xorg_testset_save_CFLAGS"
8563fi
8564
8565if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8566	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8567		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8568	fi
8569	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8570	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8571$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8572if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8573  $as_echo_n "(cached) " >&6
8574else
8575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576/* end confdefs.h.  */
8577int i;
8578_ACEOF
8579if ac_fn_c_try_compile "$LINENO"; then :
8580  xorg_cv_cc_flag_unused_command_line_argument=yes
8581else
8582  xorg_cv_cc_flag_unused_command_line_argument=no
8583fi
8584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8585fi
8586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8587$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8588	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8589	CFLAGS="$xorg_testset_save_CFLAGS"
8590fi
8591
8592found="no"
8593
8594	if test $found = "no" ; then
8595		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8596			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8597		fi
8598
8599		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8600			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8601		fi
8602
8603		CFLAGS="$CFLAGS -Werror=nonnull"
8604
8605		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
8606$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
8607		cacheid=xorg_cv_cc_flag__Werror_nonnull
8608		if eval \${$cacheid+:} false; then :
8609  $as_echo_n "(cached) " >&6
8610else
8611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612/* end confdefs.h.  */
8613int i;
8614int
8615main ()
8616{
8617
8618  ;
8619  return 0;
8620}
8621_ACEOF
8622if ac_fn_c_try_link "$LINENO"; then :
8623  eval $cacheid=yes
8624else
8625  eval $cacheid=no
8626fi
8627rm -f core conftest.err conftest.$ac_objext \
8628    conftest$ac_exeext conftest.$ac_ext
8629fi
8630
8631
8632		CFLAGS="$xorg_testset_save_CFLAGS"
8633
8634		eval supported=\$$cacheid
8635		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8636$as_echo "$supported" >&6; }
8637		if test "$supported" = "yes" ; then
8638			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
8639			found="yes"
8640		fi
8641	fi
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657xorg_testset_save_CFLAGS="$CFLAGS"
8658
8659if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8660	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8661	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8662$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8663if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8664  $as_echo_n "(cached) " >&6
8665else
8666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8667/* end confdefs.h.  */
8668int i;
8669_ACEOF
8670if ac_fn_c_try_compile "$LINENO"; then :
8671  xorg_cv_cc_flag_unknown_warning_option=yes
8672else
8673  xorg_cv_cc_flag_unknown_warning_option=no
8674fi
8675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8676fi
8677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8678$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8679	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8680	CFLAGS="$xorg_testset_save_CFLAGS"
8681fi
8682
8683if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8684	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8685		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8686	fi
8687	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8688	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8689$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8690if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8691  $as_echo_n "(cached) " >&6
8692else
8693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8694/* end confdefs.h.  */
8695int i;
8696_ACEOF
8697if ac_fn_c_try_compile "$LINENO"; then :
8698  xorg_cv_cc_flag_unused_command_line_argument=yes
8699else
8700  xorg_cv_cc_flag_unused_command_line_argument=no
8701fi
8702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8703fi
8704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8705$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8706	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8707	CFLAGS="$xorg_testset_save_CFLAGS"
8708fi
8709
8710found="no"
8711
8712	if test $found = "no" ; then
8713		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8714			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8715		fi
8716
8717		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8718			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8719		fi
8720
8721		CFLAGS="$CFLAGS -Werror=init-self"
8722
8723		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
8724$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
8725		cacheid=xorg_cv_cc_flag__Werror_init_self
8726		if eval \${$cacheid+:} false; then :
8727  $as_echo_n "(cached) " >&6
8728else
8729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730/* end confdefs.h.  */
8731int i;
8732int
8733main ()
8734{
8735
8736  ;
8737  return 0;
8738}
8739_ACEOF
8740if ac_fn_c_try_link "$LINENO"; then :
8741  eval $cacheid=yes
8742else
8743  eval $cacheid=no
8744fi
8745rm -f core conftest.err conftest.$ac_objext \
8746    conftest$ac_exeext conftest.$ac_ext
8747fi
8748
8749
8750		CFLAGS="$xorg_testset_save_CFLAGS"
8751
8752		eval supported=\$$cacheid
8753		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8754$as_echo "$supported" >&6; }
8755		if test "$supported" = "yes" ; then
8756			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
8757			found="yes"
8758		fi
8759	fi
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775xorg_testset_save_CFLAGS="$CFLAGS"
8776
8777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8778	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8779	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8780$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8781if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8782  $as_echo_n "(cached) " >&6
8783else
8784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8785/* end confdefs.h.  */
8786int i;
8787_ACEOF
8788if ac_fn_c_try_compile "$LINENO"; then :
8789  xorg_cv_cc_flag_unknown_warning_option=yes
8790else
8791  xorg_cv_cc_flag_unknown_warning_option=no
8792fi
8793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8794fi
8795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8796$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8797	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8798	CFLAGS="$xorg_testset_save_CFLAGS"
8799fi
8800
8801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8802	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8803		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8804	fi
8805	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8806	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8807$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8808if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8809  $as_echo_n "(cached) " >&6
8810else
8811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812/* end confdefs.h.  */
8813int i;
8814_ACEOF
8815if ac_fn_c_try_compile "$LINENO"; then :
8816  xorg_cv_cc_flag_unused_command_line_argument=yes
8817else
8818  xorg_cv_cc_flag_unused_command_line_argument=no
8819fi
8820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8821fi
8822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8823$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8824	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8825	CFLAGS="$xorg_testset_save_CFLAGS"
8826fi
8827
8828found="no"
8829
8830	if test $found = "no" ; then
8831		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8832			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8833		fi
8834
8835		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8836			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8837		fi
8838
8839		CFLAGS="$CFLAGS -Werror=main"
8840
8841		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
8842$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
8843		cacheid=xorg_cv_cc_flag__Werror_main
8844		if eval \${$cacheid+:} false; then :
8845  $as_echo_n "(cached) " >&6
8846else
8847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848/* end confdefs.h.  */
8849int i;
8850int
8851main ()
8852{
8853
8854  ;
8855  return 0;
8856}
8857_ACEOF
8858if ac_fn_c_try_link "$LINENO"; then :
8859  eval $cacheid=yes
8860else
8861  eval $cacheid=no
8862fi
8863rm -f core conftest.err conftest.$ac_objext \
8864    conftest$ac_exeext conftest.$ac_ext
8865fi
8866
8867
8868		CFLAGS="$xorg_testset_save_CFLAGS"
8869
8870		eval supported=\$$cacheid
8871		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8872$as_echo "$supported" >&6; }
8873		if test "$supported" = "yes" ; then
8874			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8875			found="yes"
8876		fi
8877	fi
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893xorg_testset_save_CFLAGS="$CFLAGS"
8894
8895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8896	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8897	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8898$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8899if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8900  $as_echo_n "(cached) " >&6
8901else
8902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8903/* end confdefs.h.  */
8904int i;
8905_ACEOF
8906if ac_fn_c_try_compile "$LINENO"; then :
8907  xorg_cv_cc_flag_unknown_warning_option=yes
8908else
8909  xorg_cv_cc_flag_unknown_warning_option=no
8910fi
8911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8912fi
8913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8914$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8915	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8916	CFLAGS="$xorg_testset_save_CFLAGS"
8917fi
8918
8919if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8920	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8921		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8922	fi
8923	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8924	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8925$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8926if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8927  $as_echo_n "(cached) " >&6
8928else
8929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930/* end confdefs.h.  */
8931int i;
8932_ACEOF
8933if ac_fn_c_try_compile "$LINENO"; then :
8934  xorg_cv_cc_flag_unused_command_line_argument=yes
8935else
8936  xorg_cv_cc_flag_unused_command_line_argument=no
8937fi
8938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8939fi
8940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8941$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8942	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8943	CFLAGS="$xorg_testset_save_CFLAGS"
8944fi
8945
8946found="no"
8947
8948	if test $found = "no" ; then
8949		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8950			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8951		fi
8952
8953		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8954			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8955		fi
8956
8957		CFLAGS="$CFLAGS -Werror=missing-braces"
8958
8959		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8960$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
8961		cacheid=xorg_cv_cc_flag__Werror_missing_braces
8962		if eval \${$cacheid+:} false; then :
8963  $as_echo_n "(cached) " >&6
8964else
8965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966/* end confdefs.h.  */
8967int i;
8968int
8969main ()
8970{
8971
8972  ;
8973  return 0;
8974}
8975_ACEOF
8976if ac_fn_c_try_link "$LINENO"; then :
8977  eval $cacheid=yes
8978else
8979  eval $cacheid=no
8980fi
8981rm -f core conftest.err conftest.$ac_objext \
8982    conftest$ac_exeext conftest.$ac_ext
8983fi
8984
8985
8986		CFLAGS="$xorg_testset_save_CFLAGS"
8987
8988		eval supported=\$$cacheid
8989		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8990$as_echo "$supported" >&6; }
8991		if test "$supported" = "yes" ; then
8992			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8993			found="yes"
8994		fi
8995	fi
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011xorg_testset_save_CFLAGS="$CFLAGS"
9012
9013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9014	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9015	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9016$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9017if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9018  $as_echo_n "(cached) " >&6
9019else
9020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021/* end confdefs.h.  */
9022int i;
9023_ACEOF
9024if ac_fn_c_try_compile "$LINENO"; then :
9025  xorg_cv_cc_flag_unknown_warning_option=yes
9026else
9027  xorg_cv_cc_flag_unknown_warning_option=no
9028fi
9029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9030fi
9031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9032$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9033	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9034	CFLAGS="$xorg_testset_save_CFLAGS"
9035fi
9036
9037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9038	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9039		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9040	fi
9041	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9042	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9043$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9044if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9045  $as_echo_n "(cached) " >&6
9046else
9047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048/* end confdefs.h.  */
9049int i;
9050_ACEOF
9051if ac_fn_c_try_compile "$LINENO"; then :
9052  xorg_cv_cc_flag_unused_command_line_argument=yes
9053else
9054  xorg_cv_cc_flag_unused_command_line_argument=no
9055fi
9056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9057fi
9058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9059$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9060	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9061	CFLAGS="$xorg_testset_save_CFLAGS"
9062fi
9063
9064found="no"
9065
9066	if test $found = "no" ; then
9067		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9068			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9069		fi
9070
9071		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9072			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9073		fi
9074
9075		CFLAGS="$CFLAGS -Werror=sequence-point"
9076
9077		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
9078$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
9079		cacheid=xorg_cv_cc_flag__Werror_sequence_point
9080		if eval \${$cacheid+:} false; then :
9081  $as_echo_n "(cached) " >&6
9082else
9083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9084/* end confdefs.h.  */
9085int i;
9086int
9087main ()
9088{
9089
9090  ;
9091  return 0;
9092}
9093_ACEOF
9094if ac_fn_c_try_link "$LINENO"; then :
9095  eval $cacheid=yes
9096else
9097  eval $cacheid=no
9098fi
9099rm -f core conftest.err conftest.$ac_objext \
9100    conftest$ac_exeext conftest.$ac_ext
9101fi
9102
9103
9104		CFLAGS="$xorg_testset_save_CFLAGS"
9105
9106		eval supported=\$$cacheid
9107		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9108$as_echo "$supported" >&6; }
9109		if test "$supported" = "yes" ; then
9110			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
9111			found="yes"
9112		fi
9113	fi
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129xorg_testset_save_CFLAGS="$CFLAGS"
9130
9131if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9132	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9133	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9134$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9135if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9136  $as_echo_n "(cached) " >&6
9137else
9138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139/* end confdefs.h.  */
9140int i;
9141_ACEOF
9142if ac_fn_c_try_compile "$LINENO"; then :
9143  xorg_cv_cc_flag_unknown_warning_option=yes
9144else
9145  xorg_cv_cc_flag_unknown_warning_option=no
9146fi
9147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9148fi
9149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9150$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9151	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9152	CFLAGS="$xorg_testset_save_CFLAGS"
9153fi
9154
9155if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9156	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9157		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9158	fi
9159	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9160	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9161$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9162if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9163  $as_echo_n "(cached) " >&6
9164else
9165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166/* end confdefs.h.  */
9167int i;
9168_ACEOF
9169if ac_fn_c_try_compile "$LINENO"; then :
9170  xorg_cv_cc_flag_unused_command_line_argument=yes
9171else
9172  xorg_cv_cc_flag_unused_command_line_argument=no
9173fi
9174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9175fi
9176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9177$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9178	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9179	CFLAGS="$xorg_testset_save_CFLAGS"
9180fi
9181
9182found="no"
9183
9184	if test $found = "no" ; then
9185		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9186			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9187		fi
9188
9189		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9190			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9191		fi
9192
9193		CFLAGS="$CFLAGS -Werror=return-type"
9194
9195		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
9196$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
9197		cacheid=xorg_cv_cc_flag__Werror_return_type
9198		if eval \${$cacheid+:} false; then :
9199  $as_echo_n "(cached) " >&6
9200else
9201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202/* end confdefs.h.  */
9203int i;
9204int
9205main ()
9206{
9207
9208  ;
9209  return 0;
9210}
9211_ACEOF
9212if ac_fn_c_try_link "$LINENO"; then :
9213  eval $cacheid=yes
9214else
9215  eval $cacheid=no
9216fi
9217rm -f core conftest.err conftest.$ac_objext \
9218    conftest$ac_exeext conftest.$ac_ext
9219fi
9220
9221
9222		CFLAGS="$xorg_testset_save_CFLAGS"
9223
9224		eval supported=\$$cacheid
9225		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9226$as_echo "$supported" >&6; }
9227		if test "$supported" = "yes" ; then
9228			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
9229			found="yes"
9230		fi
9231	fi
9232
9233	if test $found = "no" ; then
9234		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9235			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9236		fi
9237
9238		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9239			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9240		fi
9241
9242		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
9243
9244		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
9245$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
9246		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
9247		if eval \${$cacheid+:} false; then :
9248  $as_echo_n "(cached) " >&6
9249else
9250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9251/* end confdefs.h.  */
9252int i;
9253int
9254main ()
9255{
9256
9257  ;
9258  return 0;
9259}
9260_ACEOF
9261if ac_fn_c_try_link "$LINENO"; then :
9262  eval $cacheid=yes
9263else
9264  eval $cacheid=no
9265fi
9266rm -f core conftest.err conftest.$ac_objext \
9267    conftest$ac_exeext conftest.$ac_ext
9268fi
9269
9270
9271		CFLAGS="$xorg_testset_save_CFLAGS"
9272
9273		eval supported=\$$cacheid
9274		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9275$as_echo "$supported" >&6; }
9276		if test "$supported" = "yes" ; then
9277			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
9278			found="yes"
9279		fi
9280	fi
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296xorg_testset_save_CFLAGS="$CFLAGS"
9297
9298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9299	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9300	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9301$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9302if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9303  $as_echo_n "(cached) " >&6
9304else
9305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9306/* end confdefs.h.  */
9307int i;
9308_ACEOF
9309if ac_fn_c_try_compile "$LINENO"; then :
9310  xorg_cv_cc_flag_unknown_warning_option=yes
9311else
9312  xorg_cv_cc_flag_unknown_warning_option=no
9313fi
9314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9315fi
9316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9317$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9318	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9319	CFLAGS="$xorg_testset_save_CFLAGS"
9320fi
9321
9322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9323	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9324		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9325	fi
9326	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9327	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9328$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9329if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9330  $as_echo_n "(cached) " >&6
9331else
9332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9333/* end confdefs.h.  */
9334int i;
9335_ACEOF
9336if ac_fn_c_try_compile "$LINENO"; then :
9337  xorg_cv_cc_flag_unused_command_line_argument=yes
9338else
9339  xorg_cv_cc_flag_unused_command_line_argument=no
9340fi
9341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9342fi
9343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9344$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9345	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9346	CFLAGS="$xorg_testset_save_CFLAGS"
9347fi
9348
9349found="no"
9350
9351	if test $found = "no" ; then
9352		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9353			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9354		fi
9355
9356		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9357			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9358		fi
9359
9360		CFLAGS="$CFLAGS -Werror=trigraphs"
9361
9362		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
9363$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
9364		cacheid=xorg_cv_cc_flag__Werror_trigraphs
9365		if eval \${$cacheid+:} false; then :
9366  $as_echo_n "(cached) " >&6
9367else
9368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9369/* end confdefs.h.  */
9370int i;
9371int
9372main ()
9373{
9374
9375  ;
9376  return 0;
9377}
9378_ACEOF
9379if ac_fn_c_try_link "$LINENO"; then :
9380  eval $cacheid=yes
9381else
9382  eval $cacheid=no
9383fi
9384rm -f core conftest.err conftest.$ac_objext \
9385    conftest$ac_exeext conftest.$ac_ext
9386fi
9387
9388
9389		CFLAGS="$xorg_testset_save_CFLAGS"
9390
9391		eval supported=\$$cacheid
9392		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9393$as_echo "$supported" >&6; }
9394		if test "$supported" = "yes" ; then
9395			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
9396			found="yes"
9397		fi
9398	fi
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414xorg_testset_save_CFLAGS="$CFLAGS"
9415
9416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9417	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9418	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9419$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9420if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9421  $as_echo_n "(cached) " >&6
9422else
9423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424/* end confdefs.h.  */
9425int i;
9426_ACEOF
9427if ac_fn_c_try_compile "$LINENO"; then :
9428  xorg_cv_cc_flag_unknown_warning_option=yes
9429else
9430  xorg_cv_cc_flag_unknown_warning_option=no
9431fi
9432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9433fi
9434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9435$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9436	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9437	CFLAGS="$xorg_testset_save_CFLAGS"
9438fi
9439
9440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9441	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9442		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9443	fi
9444	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9445	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9446$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9447if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9448  $as_echo_n "(cached) " >&6
9449else
9450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451/* end confdefs.h.  */
9452int i;
9453_ACEOF
9454if ac_fn_c_try_compile "$LINENO"; then :
9455  xorg_cv_cc_flag_unused_command_line_argument=yes
9456else
9457  xorg_cv_cc_flag_unused_command_line_argument=no
9458fi
9459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9460fi
9461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9462$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9463	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9464	CFLAGS="$xorg_testset_save_CFLAGS"
9465fi
9466
9467found="no"
9468
9469	if test $found = "no" ; then
9470		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9471			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9472		fi
9473
9474		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9475			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9476		fi
9477
9478		CFLAGS="$CFLAGS -Werror=array-bounds"
9479
9480		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
9481$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
9482		cacheid=xorg_cv_cc_flag__Werror_array_bounds
9483		if eval \${$cacheid+:} false; then :
9484  $as_echo_n "(cached) " >&6
9485else
9486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9487/* end confdefs.h.  */
9488int i;
9489int
9490main ()
9491{
9492
9493  ;
9494  return 0;
9495}
9496_ACEOF
9497if ac_fn_c_try_link "$LINENO"; then :
9498  eval $cacheid=yes
9499else
9500  eval $cacheid=no
9501fi
9502rm -f core conftest.err conftest.$ac_objext \
9503    conftest$ac_exeext conftest.$ac_ext
9504fi
9505
9506
9507		CFLAGS="$xorg_testset_save_CFLAGS"
9508
9509		eval supported=\$$cacheid
9510		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9511$as_echo "$supported" >&6; }
9512		if test "$supported" = "yes" ; then
9513			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
9514			found="yes"
9515		fi
9516	fi
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532xorg_testset_save_CFLAGS="$CFLAGS"
9533
9534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9535	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9536	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9537$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9538if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9539  $as_echo_n "(cached) " >&6
9540else
9541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542/* end confdefs.h.  */
9543int i;
9544_ACEOF
9545if ac_fn_c_try_compile "$LINENO"; then :
9546  xorg_cv_cc_flag_unknown_warning_option=yes
9547else
9548  xorg_cv_cc_flag_unknown_warning_option=no
9549fi
9550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9551fi
9552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9553$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9554	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9555	CFLAGS="$xorg_testset_save_CFLAGS"
9556fi
9557
9558if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9559	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9560		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9561	fi
9562	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9563	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9564$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9565if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9566  $as_echo_n "(cached) " >&6
9567else
9568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569/* end confdefs.h.  */
9570int i;
9571_ACEOF
9572if ac_fn_c_try_compile "$LINENO"; then :
9573  xorg_cv_cc_flag_unused_command_line_argument=yes
9574else
9575  xorg_cv_cc_flag_unused_command_line_argument=no
9576fi
9577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9578fi
9579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9580$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9581	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9582	CFLAGS="$xorg_testset_save_CFLAGS"
9583fi
9584
9585found="no"
9586
9587	if test $found = "no" ; then
9588		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9589			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9590		fi
9591
9592		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9593			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9594		fi
9595
9596		CFLAGS="$CFLAGS -Werror=write-strings"
9597
9598		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
9599$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
9600		cacheid=xorg_cv_cc_flag__Werror_write_strings
9601		if eval \${$cacheid+:} false; then :
9602  $as_echo_n "(cached) " >&6
9603else
9604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9605/* end confdefs.h.  */
9606int i;
9607int
9608main ()
9609{
9610
9611  ;
9612  return 0;
9613}
9614_ACEOF
9615if ac_fn_c_try_link "$LINENO"; then :
9616  eval $cacheid=yes
9617else
9618  eval $cacheid=no
9619fi
9620rm -f core conftest.err conftest.$ac_objext \
9621    conftest$ac_exeext conftest.$ac_ext
9622fi
9623
9624
9625		CFLAGS="$xorg_testset_save_CFLAGS"
9626
9627		eval supported=\$$cacheid
9628		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9629$as_echo "$supported" >&6; }
9630		if test "$supported" = "yes" ; then
9631			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
9632			found="yes"
9633		fi
9634	fi
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650xorg_testset_save_CFLAGS="$CFLAGS"
9651
9652if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9653	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9654	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9655$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9656if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9657  $as_echo_n "(cached) " >&6
9658else
9659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660/* end confdefs.h.  */
9661int i;
9662_ACEOF
9663if ac_fn_c_try_compile "$LINENO"; then :
9664  xorg_cv_cc_flag_unknown_warning_option=yes
9665else
9666  xorg_cv_cc_flag_unknown_warning_option=no
9667fi
9668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9669fi
9670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9671$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9672	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9673	CFLAGS="$xorg_testset_save_CFLAGS"
9674fi
9675
9676if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9677	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9678		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9679	fi
9680	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9681	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9682$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9683if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9684  $as_echo_n "(cached) " >&6
9685else
9686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687/* end confdefs.h.  */
9688int i;
9689_ACEOF
9690if ac_fn_c_try_compile "$LINENO"; then :
9691  xorg_cv_cc_flag_unused_command_line_argument=yes
9692else
9693  xorg_cv_cc_flag_unused_command_line_argument=no
9694fi
9695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9696fi
9697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9698$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9699	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9700	CFLAGS="$xorg_testset_save_CFLAGS"
9701fi
9702
9703found="no"
9704
9705	if test $found = "no" ; then
9706		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9707			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9708		fi
9709
9710		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9711			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9712		fi
9713
9714		CFLAGS="$CFLAGS -Werror=address"
9715
9716		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
9717$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
9718		cacheid=xorg_cv_cc_flag__Werror_address
9719		if eval \${$cacheid+:} false; then :
9720  $as_echo_n "(cached) " >&6
9721else
9722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9723/* end confdefs.h.  */
9724int i;
9725int
9726main ()
9727{
9728
9729  ;
9730  return 0;
9731}
9732_ACEOF
9733if ac_fn_c_try_link "$LINENO"; then :
9734  eval $cacheid=yes
9735else
9736  eval $cacheid=no
9737fi
9738rm -f core conftest.err conftest.$ac_objext \
9739    conftest$ac_exeext conftest.$ac_ext
9740fi
9741
9742
9743		CFLAGS="$xorg_testset_save_CFLAGS"
9744
9745		eval supported=\$$cacheid
9746		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9747$as_echo "$supported" >&6; }
9748		if test "$supported" = "yes" ; then
9749			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
9750			found="yes"
9751		fi
9752	fi
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768xorg_testset_save_CFLAGS="$CFLAGS"
9769
9770if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9771	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9772	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9773$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9774if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9775  $as_echo_n "(cached) " >&6
9776else
9777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778/* end confdefs.h.  */
9779int i;
9780_ACEOF
9781if ac_fn_c_try_compile "$LINENO"; then :
9782  xorg_cv_cc_flag_unknown_warning_option=yes
9783else
9784  xorg_cv_cc_flag_unknown_warning_option=no
9785fi
9786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9787fi
9788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9789$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9790	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9791	CFLAGS="$xorg_testset_save_CFLAGS"
9792fi
9793
9794if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9795	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9796		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9797	fi
9798	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9799	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9800$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9801if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9802  $as_echo_n "(cached) " >&6
9803else
9804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805/* end confdefs.h.  */
9806int i;
9807_ACEOF
9808if ac_fn_c_try_compile "$LINENO"; then :
9809  xorg_cv_cc_flag_unused_command_line_argument=yes
9810else
9811  xorg_cv_cc_flag_unused_command_line_argument=no
9812fi
9813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9814fi
9815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9816$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9817	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9818	CFLAGS="$xorg_testset_save_CFLAGS"
9819fi
9820
9821found="no"
9822
9823	if test $found = "no" ; then
9824		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9825			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9826		fi
9827
9828		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9829			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9830		fi
9831
9832		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9833
9834		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9835$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9836		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9837		if eval \${$cacheid+:} false; then :
9838  $as_echo_n "(cached) " >&6
9839else
9840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9841/* end confdefs.h.  */
9842int i;
9843int
9844main ()
9845{
9846
9847  ;
9848  return 0;
9849}
9850_ACEOF
9851if ac_fn_c_try_link "$LINENO"; then :
9852  eval $cacheid=yes
9853else
9854  eval $cacheid=no
9855fi
9856rm -f core conftest.err conftest.$ac_objext \
9857    conftest$ac_exeext conftest.$ac_ext
9858fi
9859
9860
9861		CFLAGS="$xorg_testset_save_CFLAGS"
9862
9863		eval supported=\$$cacheid
9864		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9865$as_echo "$supported" >&6; }
9866		if test "$supported" = "yes" ; then
9867			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9868			found="yes"
9869		fi
9870	fi
9871
9872	if test $found = "no" ; then
9873		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9874			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9875		fi
9876
9877		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9878			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9879		fi
9880
9881		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9882
9883		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9884$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9885		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9886		if eval \${$cacheid+:} false; then :
9887  $as_echo_n "(cached) " >&6
9888else
9889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890/* end confdefs.h.  */
9891int i;
9892int
9893main ()
9894{
9895
9896  ;
9897  return 0;
9898}
9899_ACEOF
9900if ac_fn_c_try_link "$LINENO"; then :
9901  eval $cacheid=yes
9902else
9903  eval $cacheid=no
9904fi
9905rm -f core conftest.err conftest.$ac_objext \
9906    conftest$ac_exeext conftest.$ac_ext
9907fi
9908
9909
9910		CFLAGS="$xorg_testset_save_CFLAGS"
9911
9912		eval supported=\$$cacheid
9913		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9914$as_echo "$supported" >&6; }
9915		if test "$supported" = "yes" ; then
9916			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9917			found="yes"
9918		fi
9919	fi
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935xorg_testset_save_CFLAGS="$CFLAGS"
9936
9937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9938	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9939	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9940$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9941if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9942  $as_echo_n "(cached) " >&6
9943else
9944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9945/* end confdefs.h.  */
9946int i;
9947_ACEOF
9948if ac_fn_c_try_compile "$LINENO"; then :
9949  xorg_cv_cc_flag_unknown_warning_option=yes
9950else
9951  xorg_cv_cc_flag_unknown_warning_option=no
9952fi
9953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9954fi
9955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9956$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9957	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9958	CFLAGS="$xorg_testset_save_CFLAGS"
9959fi
9960
9961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9962	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9963		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9964	fi
9965	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9966	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9967$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9968if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9969  $as_echo_n "(cached) " >&6
9970else
9971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9972/* end confdefs.h.  */
9973int i;
9974_ACEOF
9975if ac_fn_c_try_compile "$LINENO"; then :
9976  xorg_cv_cc_flag_unused_command_line_argument=yes
9977else
9978  xorg_cv_cc_flag_unused_command_line_argument=no
9979fi
9980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9981fi
9982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9983$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9984	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9985	CFLAGS="$xorg_testset_save_CFLAGS"
9986fi
9987
9988found="no"
9989
9990	if test $found = "no" ; then
9991		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9992			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9993		fi
9994
9995		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9996			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9997		fi
9998
9999		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
10000
10001		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
10002$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
10003		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
10004		if eval \${$cacheid+:} false; then :
10005  $as_echo_n "(cached) " >&6
10006else
10007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10008/* end confdefs.h.  */
10009int i;
10010int
10011main ()
10012{
10013
10014  ;
10015  return 0;
10016}
10017_ACEOF
10018if ac_fn_c_try_link "$LINENO"; then :
10019  eval $cacheid=yes
10020else
10021  eval $cacheid=no
10022fi
10023rm -f core conftest.err conftest.$ac_objext \
10024    conftest$ac_exeext conftest.$ac_ext
10025fi
10026
10027
10028		CFLAGS="$xorg_testset_save_CFLAGS"
10029
10030		eval supported=\$$cacheid
10031		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10032$as_echo "$supported" >&6; }
10033		if test "$supported" = "yes" ; then
10034			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
10035			found="yes"
10036		fi
10037	fi
10038
10039 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
10040else
10041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
10042$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056xorg_testset_save_CFLAGS="$CFLAGS"
10057
10058if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10059	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10060	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10061$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10062if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10063  $as_echo_n "(cached) " >&6
10064else
10065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10066/* end confdefs.h.  */
10067int i;
10068_ACEOF
10069if ac_fn_c_try_compile "$LINENO"; then :
10070  xorg_cv_cc_flag_unknown_warning_option=yes
10071else
10072  xorg_cv_cc_flag_unknown_warning_option=no
10073fi
10074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10075fi
10076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10077$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10078	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10079	CFLAGS="$xorg_testset_save_CFLAGS"
10080fi
10081
10082if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10083	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10084		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10085	fi
10086	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10087	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10088$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10089if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10090  $as_echo_n "(cached) " >&6
10091else
10092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10093/* end confdefs.h.  */
10094int i;
10095_ACEOF
10096if ac_fn_c_try_compile "$LINENO"; then :
10097  xorg_cv_cc_flag_unused_command_line_argument=yes
10098else
10099  xorg_cv_cc_flag_unused_command_line_argument=no
10100fi
10101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10102fi
10103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10104$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10105	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10106	CFLAGS="$xorg_testset_save_CFLAGS"
10107fi
10108
10109found="no"
10110
10111	if test $found = "no" ; then
10112		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10113			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10114		fi
10115
10116		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10117			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10118		fi
10119
10120		CFLAGS="$CFLAGS -Wimplicit"
10121
10122		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
10123$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
10124		cacheid=xorg_cv_cc_flag__Wimplicit
10125		if eval \${$cacheid+:} false; then :
10126  $as_echo_n "(cached) " >&6
10127else
10128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129/* end confdefs.h.  */
10130int i;
10131int
10132main ()
10133{
10134
10135  ;
10136  return 0;
10137}
10138_ACEOF
10139if ac_fn_c_try_link "$LINENO"; then :
10140  eval $cacheid=yes
10141else
10142  eval $cacheid=no
10143fi
10144rm -f core conftest.err conftest.$ac_objext \
10145    conftest$ac_exeext conftest.$ac_ext
10146fi
10147
10148
10149		CFLAGS="$xorg_testset_save_CFLAGS"
10150
10151		eval supported=\$$cacheid
10152		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10153$as_echo "$supported" >&6; }
10154		if test "$supported" = "yes" ; then
10155			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
10156			found="yes"
10157		fi
10158	fi
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174xorg_testset_save_CFLAGS="$CFLAGS"
10175
10176if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10177	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10178	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10179$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10180if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10181  $as_echo_n "(cached) " >&6
10182else
10183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184/* end confdefs.h.  */
10185int i;
10186_ACEOF
10187if ac_fn_c_try_compile "$LINENO"; then :
10188  xorg_cv_cc_flag_unknown_warning_option=yes
10189else
10190  xorg_cv_cc_flag_unknown_warning_option=no
10191fi
10192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10193fi
10194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10195$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10196	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10197	CFLAGS="$xorg_testset_save_CFLAGS"
10198fi
10199
10200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10201	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10202		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10203	fi
10204	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10205	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10206$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10207if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10208  $as_echo_n "(cached) " >&6
10209else
10210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211/* end confdefs.h.  */
10212int i;
10213_ACEOF
10214if ac_fn_c_try_compile "$LINENO"; then :
10215  xorg_cv_cc_flag_unused_command_line_argument=yes
10216else
10217  xorg_cv_cc_flag_unused_command_line_argument=no
10218fi
10219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10220fi
10221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10222$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10223	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10224	CFLAGS="$xorg_testset_save_CFLAGS"
10225fi
10226
10227found="no"
10228
10229	if test $found = "no" ; then
10230		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10231			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10232		fi
10233
10234		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10235			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10236		fi
10237
10238		CFLAGS="$CFLAGS -Wnonnull"
10239
10240		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
10241$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
10242		cacheid=xorg_cv_cc_flag__Wnonnull
10243		if eval \${$cacheid+:} false; then :
10244  $as_echo_n "(cached) " >&6
10245else
10246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247/* end confdefs.h.  */
10248int i;
10249int
10250main ()
10251{
10252
10253  ;
10254  return 0;
10255}
10256_ACEOF
10257if ac_fn_c_try_link "$LINENO"; then :
10258  eval $cacheid=yes
10259else
10260  eval $cacheid=no
10261fi
10262rm -f core conftest.err conftest.$ac_objext \
10263    conftest$ac_exeext conftest.$ac_ext
10264fi
10265
10266
10267		CFLAGS="$xorg_testset_save_CFLAGS"
10268
10269		eval supported=\$$cacheid
10270		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10271$as_echo "$supported" >&6; }
10272		if test "$supported" = "yes" ; then
10273			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
10274			found="yes"
10275		fi
10276	fi
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292xorg_testset_save_CFLAGS="$CFLAGS"
10293
10294if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10295	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10296	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10297$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10298if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10299  $as_echo_n "(cached) " >&6
10300else
10301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10302/* end confdefs.h.  */
10303int i;
10304_ACEOF
10305if ac_fn_c_try_compile "$LINENO"; then :
10306  xorg_cv_cc_flag_unknown_warning_option=yes
10307else
10308  xorg_cv_cc_flag_unknown_warning_option=no
10309fi
10310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10311fi
10312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10313$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10314	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10315	CFLAGS="$xorg_testset_save_CFLAGS"
10316fi
10317
10318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10319	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10320		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10321	fi
10322	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10323	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10324$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10325if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10326  $as_echo_n "(cached) " >&6
10327else
10328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329/* end confdefs.h.  */
10330int i;
10331_ACEOF
10332if ac_fn_c_try_compile "$LINENO"; then :
10333  xorg_cv_cc_flag_unused_command_line_argument=yes
10334else
10335  xorg_cv_cc_flag_unused_command_line_argument=no
10336fi
10337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10338fi
10339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10340$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10341	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10342	CFLAGS="$xorg_testset_save_CFLAGS"
10343fi
10344
10345found="no"
10346
10347	if test $found = "no" ; then
10348		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10349			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10350		fi
10351
10352		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10353			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10354		fi
10355
10356		CFLAGS="$CFLAGS -Winit-self"
10357
10358		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
10359$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
10360		cacheid=xorg_cv_cc_flag__Winit_self
10361		if eval \${$cacheid+:} false; then :
10362  $as_echo_n "(cached) " >&6
10363else
10364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365/* end confdefs.h.  */
10366int i;
10367int
10368main ()
10369{
10370
10371  ;
10372  return 0;
10373}
10374_ACEOF
10375if ac_fn_c_try_link "$LINENO"; then :
10376  eval $cacheid=yes
10377else
10378  eval $cacheid=no
10379fi
10380rm -f core conftest.err conftest.$ac_objext \
10381    conftest$ac_exeext conftest.$ac_ext
10382fi
10383
10384
10385		CFLAGS="$xorg_testset_save_CFLAGS"
10386
10387		eval supported=\$$cacheid
10388		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10389$as_echo "$supported" >&6; }
10390		if test "$supported" = "yes" ; then
10391			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
10392			found="yes"
10393		fi
10394	fi
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410xorg_testset_save_CFLAGS="$CFLAGS"
10411
10412if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10413	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10414	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10415$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10416if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10417  $as_echo_n "(cached) " >&6
10418else
10419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10420/* end confdefs.h.  */
10421int i;
10422_ACEOF
10423if ac_fn_c_try_compile "$LINENO"; then :
10424  xorg_cv_cc_flag_unknown_warning_option=yes
10425else
10426  xorg_cv_cc_flag_unknown_warning_option=no
10427fi
10428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10429fi
10430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10431$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10432	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10433	CFLAGS="$xorg_testset_save_CFLAGS"
10434fi
10435
10436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10437	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10438		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10439	fi
10440	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10441	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10442$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10443if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10444  $as_echo_n "(cached) " >&6
10445else
10446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447/* end confdefs.h.  */
10448int i;
10449_ACEOF
10450if ac_fn_c_try_compile "$LINENO"; then :
10451  xorg_cv_cc_flag_unused_command_line_argument=yes
10452else
10453  xorg_cv_cc_flag_unused_command_line_argument=no
10454fi
10455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10456fi
10457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10458$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10459	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10460	CFLAGS="$xorg_testset_save_CFLAGS"
10461fi
10462
10463found="no"
10464
10465	if test $found = "no" ; then
10466		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10467			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10468		fi
10469
10470		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10471			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10472		fi
10473
10474		CFLAGS="$CFLAGS -Wmain"
10475
10476		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
10477$as_echo_n "checking if $CC supports -Wmain... " >&6; }
10478		cacheid=xorg_cv_cc_flag__Wmain
10479		if eval \${$cacheid+:} false; then :
10480  $as_echo_n "(cached) " >&6
10481else
10482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483/* end confdefs.h.  */
10484int i;
10485int
10486main ()
10487{
10488
10489  ;
10490  return 0;
10491}
10492_ACEOF
10493if ac_fn_c_try_link "$LINENO"; then :
10494  eval $cacheid=yes
10495else
10496  eval $cacheid=no
10497fi
10498rm -f core conftest.err conftest.$ac_objext \
10499    conftest$ac_exeext conftest.$ac_ext
10500fi
10501
10502
10503		CFLAGS="$xorg_testset_save_CFLAGS"
10504
10505		eval supported=\$$cacheid
10506		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10507$as_echo "$supported" >&6; }
10508		if test "$supported" = "yes" ; then
10509			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
10510			found="yes"
10511		fi
10512	fi
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528xorg_testset_save_CFLAGS="$CFLAGS"
10529
10530if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10531	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10532	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10533$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10534if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10535  $as_echo_n "(cached) " >&6
10536else
10537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10538/* end confdefs.h.  */
10539int i;
10540_ACEOF
10541if ac_fn_c_try_compile "$LINENO"; then :
10542  xorg_cv_cc_flag_unknown_warning_option=yes
10543else
10544  xorg_cv_cc_flag_unknown_warning_option=no
10545fi
10546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10547fi
10548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10549$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10550	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10551	CFLAGS="$xorg_testset_save_CFLAGS"
10552fi
10553
10554if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10555	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10556		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10557	fi
10558	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10559	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10560$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10561if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10562  $as_echo_n "(cached) " >&6
10563else
10564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10565/* end confdefs.h.  */
10566int i;
10567_ACEOF
10568if ac_fn_c_try_compile "$LINENO"; then :
10569  xorg_cv_cc_flag_unused_command_line_argument=yes
10570else
10571  xorg_cv_cc_flag_unused_command_line_argument=no
10572fi
10573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10574fi
10575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10576$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10577	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10578	CFLAGS="$xorg_testset_save_CFLAGS"
10579fi
10580
10581found="no"
10582
10583	if test $found = "no" ; then
10584		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10585			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10586		fi
10587
10588		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10589			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10590		fi
10591
10592		CFLAGS="$CFLAGS -Wmissing-braces"
10593
10594		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
10595$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
10596		cacheid=xorg_cv_cc_flag__Wmissing_braces
10597		if eval \${$cacheid+:} false; then :
10598  $as_echo_n "(cached) " >&6
10599else
10600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10601/* end confdefs.h.  */
10602int i;
10603int
10604main ()
10605{
10606
10607  ;
10608  return 0;
10609}
10610_ACEOF
10611if ac_fn_c_try_link "$LINENO"; then :
10612  eval $cacheid=yes
10613else
10614  eval $cacheid=no
10615fi
10616rm -f core conftest.err conftest.$ac_objext \
10617    conftest$ac_exeext conftest.$ac_ext
10618fi
10619
10620
10621		CFLAGS="$xorg_testset_save_CFLAGS"
10622
10623		eval supported=\$$cacheid
10624		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10625$as_echo "$supported" >&6; }
10626		if test "$supported" = "yes" ; then
10627			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
10628			found="yes"
10629		fi
10630	fi
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646xorg_testset_save_CFLAGS="$CFLAGS"
10647
10648if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10649	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10650	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10651$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10652if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10653  $as_echo_n "(cached) " >&6
10654else
10655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656/* end confdefs.h.  */
10657int i;
10658_ACEOF
10659if ac_fn_c_try_compile "$LINENO"; then :
10660  xorg_cv_cc_flag_unknown_warning_option=yes
10661else
10662  xorg_cv_cc_flag_unknown_warning_option=no
10663fi
10664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10665fi
10666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10667$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10668	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10669	CFLAGS="$xorg_testset_save_CFLAGS"
10670fi
10671
10672if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10673	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10674		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10675	fi
10676	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10677	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10678$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10679if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10680  $as_echo_n "(cached) " >&6
10681else
10682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683/* end confdefs.h.  */
10684int i;
10685_ACEOF
10686if ac_fn_c_try_compile "$LINENO"; then :
10687  xorg_cv_cc_flag_unused_command_line_argument=yes
10688else
10689  xorg_cv_cc_flag_unused_command_line_argument=no
10690fi
10691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10692fi
10693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10694$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10695	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10696	CFLAGS="$xorg_testset_save_CFLAGS"
10697fi
10698
10699found="no"
10700
10701	if test $found = "no" ; then
10702		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10703			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10704		fi
10705
10706		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10707			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10708		fi
10709
10710		CFLAGS="$CFLAGS -Wsequence-point"
10711
10712		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10713$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
10714		cacheid=xorg_cv_cc_flag__Wsequence_point
10715		if eval \${$cacheid+:} false; then :
10716  $as_echo_n "(cached) " >&6
10717else
10718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10719/* end confdefs.h.  */
10720int i;
10721int
10722main ()
10723{
10724
10725  ;
10726  return 0;
10727}
10728_ACEOF
10729if ac_fn_c_try_link "$LINENO"; then :
10730  eval $cacheid=yes
10731else
10732  eval $cacheid=no
10733fi
10734rm -f core conftest.err conftest.$ac_objext \
10735    conftest$ac_exeext conftest.$ac_ext
10736fi
10737
10738
10739		CFLAGS="$xorg_testset_save_CFLAGS"
10740
10741		eval supported=\$$cacheid
10742		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10743$as_echo "$supported" >&6; }
10744		if test "$supported" = "yes" ; then
10745			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10746			found="yes"
10747		fi
10748	fi
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764xorg_testset_save_CFLAGS="$CFLAGS"
10765
10766if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10767	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10768	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10769$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10770if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10771  $as_echo_n "(cached) " >&6
10772else
10773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10774/* end confdefs.h.  */
10775int i;
10776_ACEOF
10777if ac_fn_c_try_compile "$LINENO"; then :
10778  xorg_cv_cc_flag_unknown_warning_option=yes
10779else
10780  xorg_cv_cc_flag_unknown_warning_option=no
10781fi
10782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10783fi
10784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10785$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10786	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10787	CFLAGS="$xorg_testset_save_CFLAGS"
10788fi
10789
10790if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10791	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10792		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10793	fi
10794	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10795	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10796$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10797if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10798  $as_echo_n "(cached) " >&6
10799else
10800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10801/* end confdefs.h.  */
10802int i;
10803_ACEOF
10804if ac_fn_c_try_compile "$LINENO"; then :
10805  xorg_cv_cc_flag_unused_command_line_argument=yes
10806else
10807  xorg_cv_cc_flag_unused_command_line_argument=no
10808fi
10809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10810fi
10811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10812$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10813	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10814	CFLAGS="$xorg_testset_save_CFLAGS"
10815fi
10816
10817found="no"
10818
10819	if test $found = "no" ; then
10820		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10821			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10822		fi
10823
10824		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10825			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10826		fi
10827
10828		CFLAGS="$CFLAGS -Wreturn-type"
10829
10830		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10831$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
10832		cacheid=xorg_cv_cc_flag__Wreturn_type
10833		if eval \${$cacheid+:} false; then :
10834  $as_echo_n "(cached) " >&6
10835else
10836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837/* end confdefs.h.  */
10838int i;
10839int
10840main ()
10841{
10842
10843  ;
10844  return 0;
10845}
10846_ACEOF
10847if ac_fn_c_try_link "$LINENO"; then :
10848  eval $cacheid=yes
10849else
10850  eval $cacheid=no
10851fi
10852rm -f core conftest.err conftest.$ac_objext \
10853    conftest$ac_exeext conftest.$ac_ext
10854fi
10855
10856
10857		CFLAGS="$xorg_testset_save_CFLAGS"
10858
10859		eval supported=\$$cacheid
10860		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10861$as_echo "$supported" >&6; }
10862		if test "$supported" = "yes" ; then
10863			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10864			found="yes"
10865		fi
10866	fi
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882xorg_testset_save_CFLAGS="$CFLAGS"
10883
10884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10885	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10886	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10887$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10888if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10889  $as_echo_n "(cached) " >&6
10890else
10891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10892/* end confdefs.h.  */
10893int i;
10894_ACEOF
10895if ac_fn_c_try_compile "$LINENO"; then :
10896  xorg_cv_cc_flag_unknown_warning_option=yes
10897else
10898  xorg_cv_cc_flag_unknown_warning_option=no
10899fi
10900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10901fi
10902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10903$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10904	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10905	CFLAGS="$xorg_testset_save_CFLAGS"
10906fi
10907
10908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10909	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10910		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10911	fi
10912	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10913	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10914$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10915if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10916  $as_echo_n "(cached) " >&6
10917else
10918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10919/* end confdefs.h.  */
10920int i;
10921_ACEOF
10922if ac_fn_c_try_compile "$LINENO"; then :
10923  xorg_cv_cc_flag_unused_command_line_argument=yes
10924else
10925  xorg_cv_cc_flag_unused_command_line_argument=no
10926fi
10927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10928fi
10929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10930$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10931	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10932	CFLAGS="$xorg_testset_save_CFLAGS"
10933fi
10934
10935found="no"
10936
10937	if test $found = "no" ; then
10938		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10939			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10940		fi
10941
10942		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10943			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10944		fi
10945
10946		CFLAGS="$CFLAGS -Wtrigraphs"
10947
10948		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10949$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
10950		cacheid=xorg_cv_cc_flag__Wtrigraphs
10951		if eval \${$cacheid+:} false; then :
10952  $as_echo_n "(cached) " >&6
10953else
10954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10955/* end confdefs.h.  */
10956int i;
10957int
10958main ()
10959{
10960
10961  ;
10962  return 0;
10963}
10964_ACEOF
10965if ac_fn_c_try_link "$LINENO"; then :
10966  eval $cacheid=yes
10967else
10968  eval $cacheid=no
10969fi
10970rm -f core conftest.err conftest.$ac_objext \
10971    conftest$ac_exeext conftest.$ac_ext
10972fi
10973
10974
10975		CFLAGS="$xorg_testset_save_CFLAGS"
10976
10977		eval supported=\$$cacheid
10978		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10979$as_echo "$supported" >&6; }
10980		if test "$supported" = "yes" ; then
10981			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10982			found="yes"
10983		fi
10984	fi
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000xorg_testset_save_CFLAGS="$CFLAGS"
11001
11002if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11003	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11004	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11005$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11006if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11007  $as_echo_n "(cached) " >&6
11008else
11009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11010/* end confdefs.h.  */
11011int i;
11012_ACEOF
11013if ac_fn_c_try_compile "$LINENO"; then :
11014  xorg_cv_cc_flag_unknown_warning_option=yes
11015else
11016  xorg_cv_cc_flag_unknown_warning_option=no
11017fi
11018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11019fi
11020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11021$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11022	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11023	CFLAGS="$xorg_testset_save_CFLAGS"
11024fi
11025
11026if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11027	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11028		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11029	fi
11030	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11031	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11032$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11033if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11034  $as_echo_n "(cached) " >&6
11035else
11036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11037/* end confdefs.h.  */
11038int i;
11039_ACEOF
11040if ac_fn_c_try_compile "$LINENO"; then :
11041  xorg_cv_cc_flag_unused_command_line_argument=yes
11042else
11043  xorg_cv_cc_flag_unused_command_line_argument=no
11044fi
11045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11046fi
11047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11048$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11049	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11050	CFLAGS="$xorg_testset_save_CFLAGS"
11051fi
11052
11053found="no"
11054
11055	if test $found = "no" ; then
11056		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11057			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11058		fi
11059
11060		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11061			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11062		fi
11063
11064		CFLAGS="$CFLAGS -Warray-bounds"
11065
11066		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
11067$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
11068		cacheid=xorg_cv_cc_flag__Warray_bounds
11069		if eval \${$cacheid+:} false; then :
11070  $as_echo_n "(cached) " >&6
11071else
11072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073/* end confdefs.h.  */
11074int i;
11075int
11076main ()
11077{
11078
11079  ;
11080  return 0;
11081}
11082_ACEOF
11083if ac_fn_c_try_link "$LINENO"; then :
11084  eval $cacheid=yes
11085else
11086  eval $cacheid=no
11087fi
11088rm -f core conftest.err conftest.$ac_objext \
11089    conftest$ac_exeext conftest.$ac_ext
11090fi
11091
11092
11093		CFLAGS="$xorg_testset_save_CFLAGS"
11094
11095		eval supported=\$$cacheid
11096		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11097$as_echo "$supported" >&6; }
11098		if test "$supported" = "yes" ; then
11099			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
11100			found="yes"
11101		fi
11102	fi
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118xorg_testset_save_CFLAGS="$CFLAGS"
11119
11120if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11121	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11122	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11123$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11124if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11125  $as_echo_n "(cached) " >&6
11126else
11127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11128/* end confdefs.h.  */
11129int i;
11130_ACEOF
11131if ac_fn_c_try_compile "$LINENO"; then :
11132  xorg_cv_cc_flag_unknown_warning_option=yes
11133else
11134  xorg_cv_cc_flag_unknown_warning_option=no
11135fi
11136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11137fi
11138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11139$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11140	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11141	CFLAGS="$xorg_testset_save_CFLAGS"
11142fi
11143
11144if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11145	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11146		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11147	fi
11148	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11149	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11150$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11151if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11152  $as_echo_n "(cached) " >&6
11153else
11154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11155/* end confdefs.h.  */
11156int i;
11157_ACEOF
11158if ac_fn_c_try_compile "$LINENO"; then :
11159  xorg_cv_cc_flag_unused_command_line_argument=yes
11160else
11161  xorg_cv_cc_flag_unused_command_line_argument=no
11162fi
11163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11164fi
11165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11166$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11167	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11168	CFLAGS="$xorg_testset_save_CFLAGS"
11169fi
11170
11171found="no"
11172
11173	if test $found = "no" ; then
11174		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11175			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11176		fi
11177
11178		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11179			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11180		fi
11181
11182		CFLAGS="$CFLAGS -Wwrite-strings"
11183
11184		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
11185$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
11186		cacheid=xorg_cv_cc_flag__Wwrite_strings
11187		if eval \${$cacheid+:} false; then :
11188  $as_echo_n "(cached) " >&6
11189else
11190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11191/* end confdefs.h.  */
11192int i;
11193int
11194main ()
11195{
11196
11197  ;
11198  return 0;
11199}
11200_ACEOF
11201if ac_fn_c_try_link "$LINENO"; then :
11202  eval $cacheid=yes
11203else
11204  eval $cacheid=no
11205fi
11206rm -f core conftest.err conftest.$ac_objext \
11207    conftest$ac_exeext conftest.$ac_ext
11208fi
11209
11210
11211		CFLAGS="$xorg_testset_save_CFLAGS"
11212
11213		eval supported=\$$cacheid
11214		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11215$as_echo "$supported" >&6; }
11216		if test "$supported" = "yes" ; then
11217			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
11218			found="yes"
11219		fi
11220	fi
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236xorg_testset_save_CFLAGS="$CFLAGS"
11237
11238if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11239	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11240	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11241$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11242if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11243  $as_echo_n "(cached) " >&6
11244else
11245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11246/* end confdefs.h.  */
11247int i;
11248_ACEOF
11249if ac_fn_c_try_compile "$LINENO"; then :
11250  xorg_cv_cc_flag_unknown_warning_option=yes
11251else
11252  xorg_cv_cc_flag_unknown_warning_option=no
11253fi
11254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11255fi
11256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11257$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11258	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11259	CFLAGS="$xorg_testset_save_CFLAGS"
11260fi
11261
11262if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11263	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11264		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11265	fi
11266	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11267	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11268$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11269if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11270  $as_echo_n "(cached) " >&6
11271else
11272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11273/* end confdefs.h.  */
11274int i;
11275_ACEOF
11276if ac_fn_c_try_compile "$LINENO"; then :
11277  xorg_cv_cc_flag_unused_command_line_argument=yes
11278else
11279  xorg_cv_cc_flag_unused_command_line_argument=no
11280fi
11281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11282fi
11283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11284$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11285	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11286	CFLAGS="$xorg_testset_save_CFLAGS"
11287fi
11288
11289found="no"
11290
11291	if test $found = "no" ; then
11292		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11293			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11294		fi
11295
11296		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11297			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11298		fi
11299
11300		CFLAGS="$CFLAGS -Waddress"
11301
11302		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
11303$as_echo_n "checking if $CC supports -Waddress... " >&6; }
11304		cacheid=xorg_cv_cc_flag__Waddress
11305		if eval \${$cacheid+:} false; then :
11306  $as_echo_n "(cached) " >&6
11307else
11308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11309/* end confdefs.h.  */
11310int i;
11311int
11312main ()
11313{
11314
11315  ;
11316  return 0;
11317}
11318_ACEOF
11319if ac_fn_c_try_link "$LINENO"; then :
11320  eval $cacheid=yes
11321else
11322  eval $cacheid=no
11323fi
11324rm -f core conftest.err conftest.$ac_objext \
11325    conftest$ac_exeext conftest.$ac_ext
11326fi
11327
11328
11329		CFLAGS="$xorg_testset_save_CFLAGS"
11330
11331		eval supported=\$$cacheid
11332		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11333$as_echo "$supported" >&6; }
11334		if test "$supported" = "yes" ; then
11335			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
11336			found="yes"
11337		fi
11338	fi
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354xorg_testset_save_CFLAGS="$CFLAGS"
11355
11356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11357	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11358	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11359$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11360if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11361  $as_echo_n "(cached) " >&6
11362else
11363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11364/* end confdefs.h.  */
11365int i;
11366_ACEOF
11367if ac_fn_c_try_compile "$LINENO"; then :
11368  xorg_cv_cc_flag_unknown_warning_option=yes
11369else
11370  xorg_cv_cc_flag_unknown_warning_option=no
11371fi
11372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11373fi
11374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11375$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11376	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11377	CFLAGS="$xorg_testset_save_CFLAGS"
11378fi
11379
11380if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11381	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11382		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11383	fi
11384	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11385	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11386$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11387if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11388  $as_echo_n "(cached) " >&6
11389else
11390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11391/* end confdefs.h.  */
11392int i;
11393_ACEOF
11394if ac_fn_c_try_compile "$LINENO"; then :
11395  xorg_cv_cc_flag_unused_command_line_argument=yes
11396else
11397  xorg_cv_cc_flag_unused_command_line_argument=no
11398fi
11399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11400fi
11401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11402$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11403	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11404	CFLAGS="$xorg_testset_save_CFLAGS"
11405fi
11406
11407found="no"
11408
11409	if test $found = "no" ; then
11410		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11411			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11412		fi
11413
11414		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11415			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11416		fi
11417
11418		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
11419
11420		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
11421$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
11422		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
11423		if eval \${$cacheid+:} false; then :
11424  $as_echo_n "(cached) " >&6
11425else
11426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427/* end confdefs.h.  */
11428int i;
11429int
11430main ()
11431{
11432
11433  ;
11434  return 0;
11435}
11436_ACEOF
11437if ac_fn_c_try_link "$LINENO"; then :
11438  eval $cacheid=yes
11439else
11440  eval $cacheid=no
11441fi
11442rm -f core conftest.err conftest.$ac_objext \
11443    conftest$ac_exeext conftest.$ac_ext
11444fi
11445
11446
11447		CFLAGS="$xorg_testset_save_CFLAGS"
11448
11449		eval supported=\$$cacheid
11450		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11451$as_echo "$supported" >&6; }
11452		if test "$supported" = "yes" ; then
11453			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
11454			found="yes"
11455		fi
11456	fi
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472xorg_testset_save_CFLAGS="$CFLAGS"
11473
11474if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11475	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11476	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11477$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11478if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11479  $as_echo_n "(cached) " >&6
11480else
11481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11482/* end confdefs.h.  */
11483int i;
11484_ACEOF
11485if ac_fn_c_try_compile "$LINENO"; then :
11486  xorg_cv_cc_flag_unknown_warning_option=yes
11487else
11488  xorg_cv_cc_flag_unknown_warning_option=no
11489fi
11490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11491fi
11492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11493$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11494	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11495	CFLAGS="$xorg_testset_save_CFLAGS"
11496fi
11497
11498if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11499	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11500		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11501	fi
11502	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11503	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11504$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11505if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11506  $as_echo_n "(cached) " >&6
11507else
11508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11509/* end confdefs.h.  */
11510int i;
11511_ACEOF
11512if ac_fn_c_try_compile "$LINENO"; then :
11513  xorg_cv_cc_flag_unused_command_line_argument=yes
11514else
11515  xorg_cv_cc_flag_unused_command_line_argument=no
11516fi
11517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11518fi
11519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11520$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11521	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11522	CFLAGS="$xorg_testset_save_CFLAGS"
11523fi
11524
11525found="no"
11526
11527	if test $found = "no" ; then
11528		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11529			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11530		fi
11531
11532		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11533			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11534		fi
11535
11536		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
11537
11538		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
11539$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
11540		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
11541		if eval \${$cacheid+:} false; then :
11542  $as_echo_n "(cached) " >&6
11543else
11544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11545/* end confdefs.h.  */
11546int i;
11547int
11548main ()
11549{
11550
11551  ;
11552  return 0;
11553}
11554_ACEOF
11555if ac_fn_c_try_link "$LINENO"; then :
11556  eval $cacheid=yes
11557else
11558  eval $cacheid=no
11559fi
11560rm -f core conftest.err conftest.$ac_objext \
11561    conftest$ac_exeext conftest.$ac_ext
11562fi
11563
11564
11565		CFLAGS="$xorg_testset_save_CFLAGS"
11566
11567		eval supported=\$$cacheid
11568		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11569$as_echo "$supported" >&6; }
11570		if test "$supported" = "yes" ; then
11571			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
11572			found="yes"
11573		fi
11574	fi
11575
11576
11577fi
11578
11579
11580
11581
11582
11583
11584
11585		CWARNFLAGS="$BASE_CFLAGS"
11586		if  test "x$GCC" = xyes ; then
11587		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
11588		fi
11589
11590
11591
11592
11593
11594
11595
11596
11597# Check whether --enable-strict-compilation was given.
11598if test "${enable_strict_compilation+set}" = set; then :
11599  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11600else
11601  STRICT_COMPILE=no
11602fi
11603
11604
11605
11606
11607
11608
11609STRICT_CFLAGS=""
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623xorg_testset_save_CFLAGS="$CFLAGS"
11624
11625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11626	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11627	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11628$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11629if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11630  $as_echo_n "(cached) " >&6
11631else
11632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11633/* end confdefs.h.  */
11634int i;
11635_ACEOF
11636if ac_fn_c_try_compile "$LINENO"; then :
11637  xorg_cv_cc_flag_unknown_warning_option=yes
11638else
11639  xorg_cv_cc_flag_unknown_warning_option=no
11640fi
11641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11642fi
11643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11644$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11645	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11646	CFLAGS="$xorg_testset_save_CFLAGS"
11647fi
11648
11649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11650	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11651		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11652	fi
11653	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11654	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11655$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11656if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11657  $as_echo_n "(cached) " >&6
11658else
11659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11660/* end confdefs.h.  */
11661int i;
11662_ACEOF
11663if ac_fn_c_try_compile "$LINENO"; then :
11664  xorg_cv_cc_flag_unused_command_line_argument=yes
11665else
11666  xorg_cv_cc_flag_unused_command_line_argument=no
11667fi
11668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11669fi
11670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11671$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11672	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11673	CFLAGS="$xorg_testset_save_CFLAGS"
11674fi
11675
11676found="no"
11677
11678	if test $found = "no" ; then
11679		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11680			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11681		fi
11682
11683		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11684			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11685		fi
11686
11687		CFLAGS="$CFLAGS -pedantic"
11688
11689		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11690$as_echo_n "checking if $CC supports -pedantic... " >&6; }
11691		cacheid=xorg_cv_cc_flag__pedantic
11692		if eval \${$cacheid+:} false; then :
11693  $as_echo_n "(cached) " >&6
11694else
11695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11696/* end confdefs.h.  */
11697int i;
11698int
11699main ()
11700{
11701
11702  ;
11703  return 0;
11704}
11705_ACEOF
11706if ac_fn_c_try_link "$LINENO"; then :
11707  eval $cacheid=yes
11708else
11709  eval $cacheid=no
11710fi
11711rm -f core conftest.err conftest.$ac_objext \
11712    conftest$ac_exeext conftest.$ac_ext
11713fi
11714
11715
11716		CFLAGS="$xorg_testset_save_CFLAGS"
11717
11718		eval supported=\$$cacheid
11719		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11720$as_echo "$supported" >&6; }
11721		if test "$supported" = "yes" ; then
11722			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11723			found="yes"
11724		fi
11725	fi
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741xorg_testset_save_CFLAGS="$CFLAGS"
11742
11743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11744	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11745	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11746$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11747if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11748  $as_echo_n "(cached) " >&6
11749else
11750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11751/* end confdefs.h.  */
11752int i;
11753_ACEOF
11754if ac_fn_c_try_compile "$LINENO"; then :
11755  xorg_cv_cc_flag_unknown_warning_option=yes
11756else
11757  xorg_cv_cc_flag_unknown_warning_option=no
11758fi
11759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11760fi
11761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11762$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11763	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11764	CFLAGS="$xorg_testset_save_CFLAGS"
11765fi
11766
11767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11768	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11769		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11770	fi
11771	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11772	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11773$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11774if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11775  $as_echo_n "(cached) " >&6
11776else
11777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11778/* end confdefs.h.  */
11779int i;
11780_ACEOF
11781if ac_fn_c_try_compile "$LINENO"; then :
11782  xorg_cv_cc_flag_unused_command_line_argument=yes
11783else
11784  xorg_cv_cc_flag_unused_command_line_argument=no
11785fi
11786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11787fi
11788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11789$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11790	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11791	CFLAGS="$xorg_testset_save_CFLAGS"
11792fi
11793
11794found="no"
11795
11796	if test $found = "no" ; then
11797		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11798			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11799		fi
11800
11801		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11802			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11803		fi
11804
11805		CFLAGS="$CFLAGS -Werror"
11806
11807		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11808$as_echo_n "checking if $CC supports -Werror... " >&6; }
11809		cacheid=xorg_cv_cc_flag__Werror
11810		if eval \${$cacheid+:} false; then :
11811  $as_echo_n "(cached) " >&6
11812else
11813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11814/* end confdefs.h.  */
11815int i;
11816int
11817main ()
11818{
11819
11820  ;
11821  return 0;
11822}
11823_ACEOF
11824if ac_fn_c_try_link "$LINENO"; then :
11825  eval $cacheid=yes
11826else
11827  eval $cacheid=no
11828fi
11829rm -f core conftest.err conftest.$ac_objext \
11830    conftest$ac_exeext conftest.$ac_ext
11831fi
11832
11833
11834		CFLAGS="$xorg_testset_save_CFLAGS"
11835
11836		eval supported=\$$cacheid
11837		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11838$as_echo "$supported" >&6; }
11839		if test "$supported" = "yes" ; then
11840			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11841			found="yes"
11842		fi
11843	fi
11844
11845	if test $found = "no" ; then
11846		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11847			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11848		fi
11849
11850		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11851			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11852		fi
11853
11854		CFLAGS="$CFLAGS -errwarn"
11855
11856		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11857$as_echo_n "checking if $CC supports -errwarn... " >&6; }
11858		cacheid=xorg_cv_cc_flag__errwarn
11859		if eval \${$cacheid+:} false; then :
11860  $as_echo_n "(cached) " >&6
11861else
11862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11863/* end confdefs.h.  */
11864int i;
11865int
11866main ()
11867{
11868
11869  ;
11870  return 0;
11871}
11872_ACEOF
11873if ac_fn_c_try_link "$LINENO"; then :
11874  eval $cacheid=yes
11875else
11876  eval $cacheid=no
11877fi
11878rm -f core conftest.err conftest.$ac_objext \
11879    conftest$ac_exeext conftest.$ac_ext
11880fi
11881
11882
11883		CFLAGS="$xorg_testset_save_CFLAGS"
11884
11885		eval supported=\$$cacheid
11886		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11887$as_echo "$supported" >&6; }
11888		if test "$supported" = "yes" ; then
11889			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11890			found="yes"
11891		fi
11892	fi
11893
11894
11895
11896# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11897# activate it with -Werror, so we add it here explicitly.
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911xorg_testset_save_CFLAGS="$CFLAGS"
11912
11913if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11914	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11916$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11917if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11918  $as_echo_n "(cached) " >&6
11919else
11920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11921/* end confdefs.h.  */
11922int i;
11923_ACEOF
11924if ac_fn_c_try_compile "$LINENO"; then :
11925  xorg_cv_cc_flag_unknown_warning_option=yes
11926else
11927  xorg_cv_cc_flag_unknown_warning_option=no
11928fi
11929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11930fi
11931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11932$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11933	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11934	CFLAGS="$xorg_testset_save_CFLAGS"
11935fi
11936
11937if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11938	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11939		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11940	fi
11941	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11942	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11943$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11944if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11945  $as_echo_n "(cached) " >&6
11946else
11947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948/* end confdefs.h.  */
11949int i;
11950_ACEOF
11951if ac_fn_c_try_compile "$LINENO"; then :
11952  xorg_cv_cc_flag_unused_command_line_argument=yes
11953else
11954  xorg_cv_cc_flag_unused_command_line_argument=no
11955fi
11956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11957fi
11958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11959$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11960	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11961	CFLAGS="$xorg_testset_save_CFLAGS"
11962fi
11963
11964found="no"
11965
11966	if test $found = "no" ; then
11967		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11968			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11969		fi
11970
11971		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11972			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11973		fi
11974
11975		CFLAGS="$CFLAGS -Werror=attributes"
11976
11977		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11978$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
11979		cacheid=xorg_cv_cc_flag__Werror_attributes
11980		if eval \${$cacheid+:} false; then :
11981  $as_echo_n "(cached) " >&6
11982else
11983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11984/* end confdefs.h.  */
11985int i;
11986int
11987main ()
11988{
11989
11990  ;
11991  return 0;
11992}
11993_ACEOF
11994if ac_fn_c_try_link "$LINENO"; then :
11995  eval $cacheid=yes
11996else
11997  eval $cacheid=no
11998fi
11999rm -f core conftest.err conftest.$ac_objext \
12000    conftest$ac_exeext conftest.$ac_ext
12001fi
12002
12003
12004		CFLAGS="$xorg_testset_save_CFLAGS"
12005
12006		eval supported=\$$cacheid
12007		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12008$as_echo "$supported" >&6; }
12009		if test "$supported" = "yes" ; then
12010			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
12011			found="yes"
12012		fi
12013	fi
12014
12015
12016
12017if test "x$STRICT_COMPILE" = "xyes"; then
12018    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
12019    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
12020fi
12021
12022
12023
12024
12025
12026
12027cat >>confdefs.h <<_ACEOF
12028#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
12029_ACEOF
12030
12031	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
12032	if test "x$PVM" = "x"; then
12033		PVM="0"
12034	fi
12035
12036cat >>confdefs.h <<_ACEOF
12037#define PACKAGE_VERSION_MINOR $PVM
12038_ACEOF
12039
12040	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
12041	if test "x$PVP" = "x"; then
12042		PVP="0"
12043	fi
12044
12045cat >>confdefs.h <<_ACEOF
12046#define PACKAGE_VERSION_PATCHLEVEL $PVP
12047_ACEOF
12048
12049
12050
12051CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
12052mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
12053|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
12054touch \$(top_srcdir)/ChangeLog; \
12055echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
12056
12057
12058
12059
12060macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
12061INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
12062mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
12063|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
12064touch \$(top_srcdir)/INSTALL; \
12065echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
12066
12067
12068
12069
12070
12071
12072case $host_os in
12073    solaris*)
12074        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
12075        # check for a man page file found in later versions that use
12076        # traditional section numbers instead
12077        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
12078$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
12079if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
12080  $as_echo_n "(cached) " >&6
12081else
12082  test "$cross_compiling" = yes &&
12083  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
12084if test -r "/usr/share/man/man7/attributes.7"; then
12085  ac_cv_file__usr_share_man_man7_attributes_7=yes
12086else
12087  ac_cv_file__usr_share_man_man7_attributes_7=no
12088fi
12089fi
12090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
12091$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
12092if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
12093  SYSV_MAN_SECTIONS=false
12094else
12095  SYSV_MAN_SECTIONS=true
12096fi
12097
12098        ;;
12099    *) SYSV_MAN_SECTIONS=false ;;
12100esac
12101
12102if test x$APP_MAN_SUFFIX = x    ; then
12103    APP_MAN_SUFFIX=1
12104fi
12105if test x$APP_MAN_DIR = x    ; then
12106    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
12107fi
12108
12109if test x$LIB_MAN_SUFFIX = x    ; then
12110    LIB_MAN_SUFFIX=3
12111fi
12112if test x$LIB_MAN_DIR = x    ; then
12113    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
12114fi
12115
12116if test x$FILE_MAN_SUFFIX = x    ; then
12117    case $SYSV_MAN_SECTIONS in
12118	true)				FILE_MAN_SUFFIX=4  ;;
12119	*)				FILE_MAN_SUFFIX=5  ;;
12120    esac
12121fi
12122if test x$FILE_MAN_DIR = x    ; then
12123    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
12124fi
12125
12126if test x$MISC_MAN_SUFFIX = x    ; then
12127    case $SYSV_MAN_SECTIONS in
12128	true)				MISC_MAN_SUFFIX=5  ;;
12129	*)				MISC_MAN_SUFFIX=7  ;;
12130    esac
12131fi
12132if test x$MISC_MAN_DIR = x    ; then
12133    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
12134fi
12135
12136if test x$DRIVER_MAN_SUFFIX = x    ; then
12137    case $SYSV_MAN_SECTIONS in
12138	true)				DRIVER_MAN_SUFFIX=7  ;;
12139	*)				DRIVER_MAN_SUFFIX=4  ;;
12140    esac
12141fi
12142if test x$DRIVER_MAN_DIR = x    ; then
12143    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
12144fi
12145
12146if test x$ADMIN_MAN_SUFFIX = x    ; then
12147    case $SYSV_MAN_SECTIONS in
12148	true)				ADMIN_MAN_SUFFIX=1m ;;
12149	*)				ADMIN_MAN_SUFFIX=8  ;;
12150    esac
12151fi
12152if test x$ADMIN_MAN_DIR = x    ; then
12153    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
12154fi
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170XORG_MAN_PAGE="X Version 11"
12171
12172MAN_SUBSTS="\
12173	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12174	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12175	-e 's|__xservername__|Xorg|g' \
12176	-e 's|__xconfigfile__|xorg.conf|g' \
12177	-e 's|__projectroot__|\$(prefix)|g' \
12178	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
12179	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
12180	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
12181	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
12182	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
12183	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
12184	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
12185
12186
12187
12188# Check whether --enable-silent-rules was given.
12189if test "${enable_silent_rules+set}" = set; then :
12190  enableval=$enable_silent_rules;
12191fi
12192
12193case $enable_silent_rules in # (((
12194  yes) AM_DEFAULT_VERBOSITY=0;;
12195   no) AM_DEFAULT_VERBOSITY=1;;
12196    *) AM_DEFAULT_VERBOSITY=0;;
12197esac
12198am_make=${MAKE-make}
12199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12200$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12201if ${am_cv_make_support_nested_variables+:} false; then :
12202  $as_echo_n "(cached) " >&6
12203else
12204  if $as_echo 'TRUE=$(BAR$(V))
12205BAR0=false
12206BAR1=true
12207V=1
12208am__doit:
12209	@$(TRUE)
12210.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12211  am_cv_make_support_nested_variables=yes
12212else
12213  am_cv_make_support_nested_variables=no
12214fi
12215fi
12216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12217$as_echo "$am_cv_make_support_nested_variables" >&6; }
12218if test $am_cv_make_support_nested_variables = yes; then
12219    AM_V='$(V)'
12220  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12221else
12222  AM_V=$AM_DEFAULT_VERBOSITY
12223  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12224fi
12225AM_BACKSLASH='\'
12226
12227
12228
12229
12230
12231
12232
12233# Check whether --with-doxygen was given.
12234if test "${with_doxygen+set}" = set; then :
12235  withval=$with_doxygen; use_doxygen=$withval
12236else
12237  use_doxygen=auto
12238fi
12239
12240
12241
12242if test "x$use_doxygen" = x"auto"; then
12243   # Extract the first word of "doxygen", so it can be a program name with args.
12244set dummy doxygen; ac_word=$2
12245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12246$as_echo_n "checking for $ac_word... " >&6; }
12247if ${ac_cv_path_DOXYGEN+:} false; then :
12248  $as_echo_n "(cached) " >&6
12249else
12250  case $DOXYGEN in
12251  [\\/]* | ?:[\\/]*)
12252  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
12253  ;;
12254  *)
12255  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256for as_dir in $PATH
12257do
12258  IFS=$as_save_IFS
12259  test -z "$as_dir" && as_dir=.
12260    for ac_exec_ext in '' $ac_executable_extensions; do
12261  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12262    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
12263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12264    break 2
12265  fi
12266done
12267  done
12268IFS=$as_save_IFS
12269
12270  ;;
12271esac
12272fi
12273DOXYGEN=$ac_cv_path_DOXYGEN
12274if test -n "$DOXYGEN"; then
12275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
12276$as_echo "$DOXYGEN" >&6; }
12277else
12278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12279$as_echo "no" >&6; }
12280fi
12281
12282
12283   if test "x$DOXYGEN" = "x"; then
12284        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5
12285$as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;}
12286	have_doxygen=no
12287   else
12288        have_doxygen=yes
12289   fi
12290elif test "x$use_doxygen" = x"yes" ; then
12291   # Extract the first word of "doxygen", so it can be a program name with args.
12292set dummy doxygen; ac_word=$2
12293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12294$as_echo_n "checking for $ac_word... " >&6; }
12295if ${ac_cv_path_DOXYGEN+:} false; then :
12296  $as_echo_n "(cached) " >&6
12297else
12298  case $DOXYGEN in
12299  [\\/]* | ?:[\\/]*)
12300  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
12301  ;;
12302  *)
12303  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12304for as_dir in $PATH
12305do
12306  IFS=$as_save_IFS
12307  test -z "$as_dir" && as_dir=.
12308    for ac_exec_ext in '' $ac_executable_extensions; do
12309  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12310    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
12311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12312    break 2
12313  fi
12314done
12315  done
12316IFS=$as_save_IFS
12317
12318  ;;
12319esac
12320fi
12321DOXYGEN=$ac_cv_path_DOXYGEN
12322if test -n "$DOXYGEN"; then
12323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
12324$as_echo "$DOXYGEN" >&6; }
12325else
12326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327$as_echo "no" >&6; }
12328fi
12329
12330
12331   if test "x$DOXYGEN" = "x"; then
12332        as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5
12333   fi
12334   have_doxygen=yes
12335elif test "x$use_doxygen" = x"no" ; then
12336   if test "x$DOXYGEN" != "x"; then
12337      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5
12338$as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;}
12339   fi
12340   have_doxygen=no
12341else
12342   as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5
12343fi
12344if test "$have_doxygen" = yes; then
12345    # scrape the doxygen version
12346    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the doxygen version" >&5
12347$as_echo_n "checking the doxygen version... " >&6; }
12348    doxygen_version=`$DOXYGEN --version 2>/dev/null`
12349    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen_version" >&5
12350$as_echo "$doxygen_version" >&6; }
12351    as_arg_v1=$doxygen_version
12352as_arg_v2=1.6.1
12353awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12354case $? in #(
12355  1) :
12356    if test "x$use_doxygen" = xauto; then
12357            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&5
12358$as_echo "$as_me: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&2;}
12359            have_doxygen=no
12360        else
12361            as_fn_error $? "doxygen version $doxygen_version found, but 1.6.1 needed" "$LINENO" 5
12362        fi ;; #(
12363  0) :
12364     ;; #(
12365  2) :
12366     ;; #(
12367  *) :
12368     ;;
12369esac
12370fi
12371
12372HAVE_DOT=no
12373if test "x$have_doxygen" = "xyes"; then
12374  # Extract the first word of "dot", so it can be a program name with args.
12375set dummy dot; ac_word=$2
12376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12377$as_echo_n "checking for $ac_word... " >&6; }
12378if ${ac_cv_path_DOT+:} false; then :
12379  $as_echo_n "(cached) " >&6
12380else
12381  case $DOT in
12382  [\\/]* | ?:[\\/]*)
12383  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
12384  ;;
12385  *)
12386  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12387for as_dir in $PATH
12388do
12389  IFS=$as_save_IFS
12390  test -z "$as_dir" && as_dir=.
12391    for ac_exec_ext in '' $ac_executable_extensions; do
12392  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12393    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
12394    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12395    break 2
12396  fi
12397done
12398  done
12399IFS=$as_save_IFS
12400
12401  ;;
12402esac
12403fi
12404DOT=$ac_cv_path_DOT
12405if test -n "$DOT"; then
12406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
12407$as_echo "$DOT" >&6; }
12408else
12409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12410$as_echo "no" >&6; }
12411fi
12412
12413
12414    if test "x$DOT" != "x"; then
12415      HAVE_DOT=yes
12416    fi
12417fi
12418
12419
12420 if test "$HAVE_DOT" = "yes"; then
12421  HAVE_DOT_TRUE=
12422  HAVE_DOT_FALSE='#'
12423else
12424  HAVE_DOT_TRUE='#'
12425  HAVE_DOT_FALSE=
12426fi
12427
12428 if test "$have_doxygen" = yes; then
12429  HAVE_DOXYGEN_TRUE=
12430  HAVE_DOXYGEN_FALSE='#'
12431else
12432  HAVE_DOXYGEN_TRUE='#'
12433  HAVE_DOXYGEN_FALSE=
12434fi
12435
12436
12437
12438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
12439$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
12440XORG_SGML_PATH=
12441if test -n "$PKG_CONFIG" && \
12442    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
12443  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
12444  ac_status=$?
12445  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12446  test $ac_status = 0; }; then
12447  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
12448else
12449  :
12450
12451fi
12452
12453# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
12454# the path and the name of the doc stylesheet
12455if test "x$XORG_SGML_PATH" != "x" ; then
12456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
12457$as_echo "$XORG_SGML_PATH" >&6; }
12458   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
12459   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
12460else
12461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12462$as_echo "no" >&6; }
12463fi
12464
12465
12466
12467
12468 if test "x$XSL_STYLESHEET" != "x"; then
12469  HAVE_STYLESHEETS_TRUE=
12470  HAVE_STYLESHEETS_FALSE='#'
12471else
12472  HAVE_STYLESHEETS_TRUE='#'
12473  HAVE_STYLESHEETS_FALSE=
12474fi
12475
12476
12477
12478
12479# Check whether --enable-docs was given.
12480if test "${enable_docs+set}" = set; then :
12481  enableval=$enable_docs; build_docs=$enableval
12482else
12483  build_docs=yes
12484fi
12485
12486
12487 if test x$build_docs = xyes; then
12488  ENABLE_DOCS_TRUE=
12489  ENABLE_DOCS_FALSE='#'
12490else
12491  ENABLE_DOCS_TRUE='#'
12492  ENABLE_DOCS_FALSE=
12493fi
12494
12495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
12496$as_echo_n "checking whether to build documentation... " >&6; }
12497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
12498$as_echo "$build_docs" >&6; }
12499
12500
12501
12502# Check whether --enable-devel-docs was given.
12503if test "${enable_devel_docs+set}" = set; then :
12504  enableval=$enable_devel_docs; build_devel_docs=$enableval
12505else
12506  build_devel_docs=yes
12507fi
12508
12509
12510 if test x$build_devel_docs = xyes; then
12511  ENABLE_DEVEL_DOCS_TRUE=
12512  ENABLE_DEVEL_DOCS_FALSE='#'
12513else
12514  ENABLE_DEVEL_DOCS_TRUE='#'
12515  ENABLE_DEVEL_DOCS_FALSE=
12516fi
12517
12518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
12519$as_echo_n "checking whether to build developer documentation... " >&6; }
12520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
12521$as_echo "$build_devel_docs" >&6; }
12522
12523
12524
12525
12526
12527# Check whether --with-xmlto was given.
12528if test "${with_xmlto+set}" = set; then :
12529  withval=$with_xmlto; use_xmlto=$withval
12530else
12531  use_xmlto=auto
12532fi
12533
12534
12535
12536if test "x$use_xmlto" = x"auto"; then
12537   # Extract the first word of "xmlto", so it can be a program name with args.
12538set dummy xmlto; ac_word=$2
12539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12540$as_echo_n "checking for $ac_word... " >&6; }
12541if ${ac_cv_path_XMLTO+:} false; then :
12542  $as_echo_n "(cached) " >&6
12543else
12544  case $XMLTO in
12545  [\\/]* | ?:[\\/]*)
12546  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
12547  ;;
12548  *)
12549  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12550for as_dir in $PATH
12551do
12552  IFS=$as_save_IFS
12553  test -z "$as_dir" && as_dir=.
12554    for ac_exec_ext in '' $ac_executable_extensions; do
12555  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12556    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
12557    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12558    break 2
12559  fi
12560done
12561  done
12562IFS=$as_save_IFS
12563
12564  ;;
12565esac
12566fi
12567XMLTO=$ac_cv_path_XMLTO
12568if test -n "$XMLTO"; then
12569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
12570$as_echo "$XMLTO" >&6; }
12571else
12572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12573$as_echo "no" >&6; }
12574fi
12575
12576
12577   if test "x$XMLTO" = "x"; then
12578        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
12579$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
12580	have_xmlto=no
12581   else
12582        have_xmlto=yes
12583   fi
12584elif test "x$use_xmlto" = x"yes" ; then
12585   # Extract the first word of "xmlto", so it can be a program name with args.
12586set dummy xmlto; ac_word=$2
12587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12588$as_echo_n "checking for $ac_word... " >&6; }
12589if ${ac_cv_path_XMLTO+:} false; then :
12590  $as_echo_n "(cached) " >&6
12591else
12592  case $XMLTO in
12593  [\\/]* | ?:[\\/]*)
12594  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
12595  ;;
12596  *)
12597  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598for as_dir in $PATH
12599do
12600  IFS=$as_save_IFS
12601  test -z "$as_dir" && as_dir=.
12602    for ac_exec_ext in '' $ac_executable_extensions; do
12603  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12604    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
12605    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12606    break 2
12607  fi
12608done
12609  done
12610IFS=$as_save_IFS
12611
12612  ;;
12613esac
12614fi
12615XMLTO=$ac_cv_path_XMLTO
12616if test -n "$XMLTO"; then
12617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
12618$as_echo "$XMLTO" >&6; }
12619else
12620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621$as_echo "no" >&6; }
12622fi
12623
12624
12625   if test "x$XMLTO" = "x"; then
12626        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
12627   fi
12628   have_xmlto=yes
12629elif test "x$use_xmlto" = x"no" ; then
12630   if test "x$XMLTO" != "x"; then
12631      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
12632$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
12633   fi
12634   have_xmlto=no
12635else
12636   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
12637fi
12638
12639# Test for a minimum version of xmlto, if provided.
12640if test "$have_xmlto" = yes; then
12641    # scrape the xmlto version
12642    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
12643$as_echo_n "checking the xmlto version... " >&6; }
12644    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
12645    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
12646$as_echo "$xmlto_version" >&6; }
12647    as_arg_v1=$xmlto_version
12648as_arg_v2=0.0.20
12649awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12650case $? in #(
12651  1) :
12652    if test "x$use_xmlto" = xauto; then
12653            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
12654$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
12655            have_xmlto=no
12656        else
12657            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5
12658        fi ;; #(
12659  0) :
12660     ;; #(
12661  2) :
12662     ;; #(
12663  *) :
12664     ;;
12665esac
12666fi
12667
12668# Test for the ability of xmlto to generate a text target
12669#
12670# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
12671# following test for empty XML docbook files.
12672# For compatibility reasons use the following empty XML docbook file and if
12673# it fails try it again with a non-empty XML file.
12674have_xmlto_text=no
12675cat > conftest.xml << "EOF"
12676EOF
12677if test "$have_xmlto" = yes; then :
12678  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
12679  have_xmlto_text=yes
12680else
12681  # Try it again with a non-empty XML file.
12682              cat > conftest.xml << "EOF"
12683<x></x>
12684EOF
12685              if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
12686  have_xmlto_text=yes
12687else
12688  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
12689$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
12690fi
12691fi
12692fi
12693rm -f conftest.xml
12694 if test $have_xmlto_text = yes; then
12695  HAVE_XMLTO_TEXT_TRUE=
12696  HAVE_XMLTO_TEXT_FALSE='#'
12697else
12698  HAVE_XMLTO_TEXT_TRUE='#'
12699  HAVE_XMLTO_TEXT_FALSE=
12700fi
12701
12702 if test "$have_xmlto" = yes; then
12703  HAVE_XMLTO_TRUE=
12704  HAVE_XMLTO_FALSE='#'
12705else
12706  HAVE_XMLTO_TRUE='#'
12707  HAVE_XMLTO_FALSE=
12708fi
12709
12710
12711
12712
12713
12714
12715# Check whether --with-fop was given.
12716if test "${with_fop+set}" = set; then :
12717  withval=$with_fop; use_fop=$withval
12718else
12719  use_fop=auto
12720fi
12721
12722
12723
12724if test "x$use_fop" = x"auto"; then
12725   # Extract the first word of "fop", so it can be a program name with args.
12726set dummy fop; ac_word=$2
12727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12728$as_echo_n "checking for $ac_word... " >&6; }
12729if ${ac_cv_path_FOP+:} false; then :
12730  $as_echo_n "(cached) " >&6
12731else
12732  case $FOP in
12733  [\\/]* | ?:[\\/]*)
12734  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
12735  ;;
12736  *)
12737  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12738for as_dir in $PATH
12739do
12740  IFS=$as_save_IFS
12741  test -z "$as_dir" && as_dir=.
12742    for ac_exec_ext in '' $ac_executable_extensions; do
12743  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12744    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
12745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12746    break 2
12747  fi
12748done
12749  done
12750IFS=$as_save_IFS
12751
12752  ;;
12753esac
12754fi
12755FOP=$ac_cv_path_FOP
12756if test -n "$FOP"; then
12757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
12758$as_echo "$FOP" >&6; }
12759else
12760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12761$as_echo "no" >&6; }
12762fi
12763
12764
12765   if test "x$FOP" = "x"; then
12766        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
12767$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
12768	have_fop=no
12769   else
12770        have_fop=yes
12771   fi
12772elif test "x$use_fop" = x"yes" ; then
12773   # Extract the first word of "fop", so it can be a program name with args.
12774set dummy fop; ac_word=$2
12775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12776$as_echo_n "checking for $ac_word... " >&6; }
12777if ${ac_cv_path_FOP+:} false; then :
12778  $as_echo_n "(cached) " >&6
12779else
12780  case $FOP in
12781  [\\/]* | ?:[\\/]*)
12782  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
12783  ;;
12784  *)
12785  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786for as_dir in $PATH
12787do
12788  IFS=$as_save_IFS
12789  test -z "$as_dir" && as_dir=.
12790    for ac_exec_ext in '' $ac_executable_extensions; do
12791  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12792    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
12793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12794    break 2
12795  fi
12796done
12797  done
12798IFS=$as_save_IFS
12799
12800  ;;
12801esac
12802fi
12803FOP=$ac_cv_path_FOP
12804if test -n "$FOP"; then
12805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
12806$as_echo "$FOP" >&6; }
12807else
12808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809$as_echo "no" >&6; }
12810fi
12811
12812
12813   if test "x$FOP" = "x"; then
12814        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
12815   fi
12816   have_fop=yes
12817elif test "x$use_fop" = x"no" ; then
12818   if test "x$FOP" != "x"; then
12819      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
12820$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
12821   fi
12822   have_fop=no
12823else
12824   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
12825fi
12826
12827# Test for a minimum version of fop, if provided.
12828
12829 if test "$have_fop" = yes; then
12830  HAVE_FOP_TRUE=
12831  HAVE_FOP_FALSE='#'
12832else
12833  HAVE_FOP_TRUE='#'
12834  HAVE_FOP_FALSE=
12835fi
12836
12837
12838
12839
12840# Preserves the interface, should it be implemented later
12841
12842
12843
12844# Check whether --with-xsltproc was given.
12845if test "${with_xsltproc+set}" = set; then :
12846  withval=$with_xsltproc; use_xsltproc=$withval
12847else
12848  use_xsltproc=auto
12849fi
12850
12851
12852
12853if test "x$use_xsltproc" = x"auto"; then
12854   # Extract the first word of "xsltproc", so it can be a program name with args.
12855set dummy xsltproc; ac_word=$2
12856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12857$as_echo_n "checking for $ac_word... " >&6; }
12858if ${ac_cv_path_XSLTPROC+:} false; then :
12859  $as_echo_n "(cached) " >&6
12860else
12861  case $XSLTPROC in
12862  [\\/]* | ?:[\\/]*)
12863  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
12864  ;;
12865  *)
12866  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12867for as_dir in $PATH
12868do
12869  IFS=$as_save_IFS
12870  test -z "$as_dir" && as_dir=.
12871    for ac_exec_ext in '' $ac_executable_extensions; do
12872  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12873    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
12874    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12875    break 2
12876  fi
12877done
12878  done
12879IFS=$as_save_IFS
12880
12881  ;;
12882esac
12883fi
12884XSLTPROC=$ac_cv_path_XSLTPROC
12885if test -n "$XSLTPROC"; then
12886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
12887$as_echo "$XSLTPROC" >&6; }
12888else
12889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890$as_echo "no" >&6; }
12891fi
12892
12893
12894   if test "x$XSLTPROC" = "x"; then
12895        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
12896$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
12897	have_xsltproc=no
12898   else
12899        have_xsltproc=yes
12900   fi
12901elif test "x$use_xsltproc" = x"yes" ; then
12902   # Extract the first word of "xsltproc", so it can be a program name with args.
12903set dummy xsltproc; ac_word=$2
12904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12905$as_echo_n "checking for $ac_word... " >&6; }
12906if ${ac_cv_path_XSLTPROC+:} false; then :
12907  $as_echo_n "(cached) " >&6
12908else
12909  case $XSLTPROC in
12910  [\\/]* | ?:[\\/]*)
12911  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
12912  ;;
12913  *)
12914  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12915for as_dir in $PATH
12916do
12917  IFS=$as_save_IFS
12918  test -z "$as_dir" && as_dir=.
12919    for ac_exec_ext in '' $ac_executable_extensions; do
12920  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12921    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
12922    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12923    break 2
12924  fi
12925done
12926  done
12927IFS=$as_save_IFS
12928
12929  ;;
12930esac
12931fi
12932XSLTPROC=$ac_cv_path_XSLTPROC
12933if test -n "$XSLTPROC"; then
12934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
12935$as_echo "$XSLTPROC" >&6; }
12936else
12937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12938$as_echo "no" >&6; }
12939fi
12940
12941
12942   if test "x$XSLTPROC" = "x"; then
12943        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
12944   fi
12945   have_xsltproc=yes
12946elif test "x$use_xsltproc" = x"no" ; then
12947   if test "x$XSLTPROC" != "x"; then
12948      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
12949$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
12950   fi
12951   have_xsltproc=no
12952else
12953   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
12954fi
12955
12956 if test "$have_xsltproc" = yes; then
12957  HAVE_XSLTPROC_TRUE=
12958  HAVE_XSLTPROC_FALSE='#'
12959else
12960  HAVE_XSLTPROC_TRUE='#'
12961  HAVE_XSLTPROC_FALSE=
12962fi
12963
12964
12965
12966
12967
12968
12969
12970# Check for different types of support on different platforms
12971case $host_os in
12972    solaris*)
12973        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
12974$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
12975if ${ac_cv_lib_umem_umem_alloc+:} false; then :
12976  $as_echo_n "(cached) " >&6
12977else
12978  ac_check_lib_save_LIBS=$LIBS
12979LIBS="-lumem  $LIBS"
12980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981/* end confdefs.h.  */
12982
12983/* Override any GCC internal prototype to avoid an error.
12984   Use char because int might match the return type of a GCC
12985   builtin and then its argument prototype would still apply.  */
12986#ifdef __cplusplus
12987extern "C"
12988#endif
12989char umem_alloc ();
12990int
12991main ()
12992{
12993return umem_alloc ();
12994  ;
12995  return 0;
12996}
12997_ACEOF
12998if ac_fn_c_try_link "$LINENO"; then :
12999  ac_cv_lib_umem_umem_alloc=yes
13000else
13001  ac_cv_lib_umem_umem_alloc=no
13002fi
13003rm -f core conftest.err conftest.$ac_objext \
13004    conftest$ac_exeext conftest.$ac_ext
13005LIBS=$ac_check_lib_save_LIBS
13006fi
13007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
13008$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
13009if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
13010  malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default'
13011fi
13012
13013        ;;
13014    *-gnu*) # GNU libc - Value is used as a single byte bit pattern,
13015        # both directly and inverted, so should not be 0 or 255.
13016        malloc_debug_env='MALLOC_PERTURB_=15'
13017        ;;
13018    darwin*)
13019        malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib'
13020        ;;
13021    *bsd*)
13022        malloc_debug_env='MallocPreScribble=1 MallocScribble=1'
13023        ;;
13024esac
13025
13026# User supplied flags override default flags
13027if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then
13028    malloc_debug_env="$XORG_MALLOC_DEBUG_ENV"
13029fi
13030
13031XORG_MALLOC_DEBUG_ENV=$malloc_debug_env
13032
13033
13034
13035
13036
13037
13038
13039# Check whether --enable-unit-tests was given.
13040if test "${enable_unit_tests+set}" = set; then :
13041  enableval=$enable_unit_tests; enable_unit_tests=$enableval
13042else
13043  enable_unit_tests=auto
13044fi
13045
13046
13047 if test "x$enable_unit_tests" != xno; then
13048  ENABLE_UNIT_TESTS_TRUE=
13049  ENABLE_UNIT_TESTS_FALSE='#'
13050else
13051  ENABLE_UNIT_TESTS_TRUE='#'
13052  ENABLE_UNIT_TESTS_FALSE=
13053fi
13054
13055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5
13056$as_echo_n "checking whether to build unit test cases... " >&6; }
13057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5
13058$as_echo "$enable_unit_tests" >&6; }
13059
13060
13061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-wrap,exit" >&5
13062$as_echo_n "checking whether the linker accepts -Wl,-wrap,exit... " >&6; }
13063if ${xorg_cv_linker_flags__Wl__wrap_exit+:} false; then :
13064  $as_echo_n "(cached) " >&6
13065else
13066
13067      ax_save_FLAGS=$LDFLAGS
13068      LDFLAGS="-Wl,-wrap,exit"
13069      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13070/* end confdefs.h.  */
13071#include <stdlib.h>
13072                      void __wrap_exit(int status) { return; }
13073int
13074main ()
13075{
13076exit(0);
13077  ;
13078  return 0;
13079}
13080_ACEOF
13081if ac_fn_c_try_link "$LINENO"; then :
13082  xorg_cv_linker_flags__Wl__wrap_exit=yes
13083else
13084  xorg_cv_linker_flags__Wl__wrap_exit=no
13085fi
13086rm -f core conftest.err conftest.$ac_objext \
13087    conftest$ac_exeext conftest.$ac_ext
13088      LDFLAGS=$ax_save_FLAGS
13089fi
13090
13091eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__wrap_exit
13092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5
13093$as_echo "$xorg_check_linker_flags" >&6; }
13094if test "x$xorg_check_linker_flags" = xyes; then
13095	have_ld_wrap=yes
13096else
13097	have_ld_wrap=no
13098fi
13099
13100# Not having ld wrap when unit testing has been explicitly requested is an error
13101if test "x$enable_unit_tests" = x"yes" -a "xoptional" != "xoptional"; then
13102  if test "x$have_ld_wrap" = x"no"; then
13103    as_fn_error $? "--enable-unit-tests=yes specified but ld -wrap support is not available" "$LINENO" 5
13104  fi
13105fi
13106 if test "$have_ld_wrap" = yes; then
13107  HAVE_LD_WRAP_TRUE=
13108  HAVE_LD_WRAP_FALSE='#'
13109else
13110  HAVE_LD_WRAP_TRUE='#'
13111  HAVE_LD_WRAP_FALSE=
13112fi
13113
13114#
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129ac_config_headers="$ac_config_headers include/do-not-use-config.h"
13130
13131ac_config_headers="$ac_config_headers include/xorg-server.h"
13132
13133ac_config_headers="$ac_config_headers include/dix-config.h"
13134
13135ac_config_headers="$ac_config_headers include/xorg-config.h"
13136
13137ac_config_headers="$ac_config_headers include/xkb-config.h"
13138
13139ac_config_headers="$ac_config_headers include/xwin-config.h"
13140
13141ac_config_headers="$ac_config_headers include/xwayland-config.h"
13142
13143ac_config_headers="$ac_config_headers include/version-config.h"
13144
13145
13146# By default we simply use the C compiler to build assembly code.
13147
13148test "${CCAS+set}" = set || CCAS=$CC
13149test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
13150
13151
13152
13153depcc="$CCAS"   am_compiler_list=
13154
13155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13156$as_echo_n "checking dependency style of $depcc... " >&6; }
13157if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
13158  $as_echo_n "(cached) " >&6
13159else
13160  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13161  # We make a subdir and do the tests there.  Otherwise we can end up
13162  # making bogus files that we don't know about and never remove.  For
13163  # instance it was reported that on HP-UX the gcc test will end up
13164  # making a dummy file named 'D' -- because '-MD' means "put the output
13165  # in D".
13166  rm -rf conftest.dir
13167  mkdir conftest.dir
13168  # Copy depcomp to subdir because otherwise we won't find it if we're
13169  # using a relative directory.
13170  cp "$am_depcomp" conftest.dir
13171  cd conftest.dir
13172  # We will build objects and dependencies in a subdirectory because
13173  # it helps to detect inapplicable dependency modes.  For instance
13174  # both Tru64's cc and ICC support -MD to output dependencies as a
13175  # side effect of compilation, but ICC will put the dependencies in
13176  # the current directory while Tru64 will put them in the object
13177  # directory.
13178  mkdir sub
13179
13180  am_cv_CCAS_dependencies_compiler_type=none
13181  if test "$am_compiler_list" = ""; then
13182     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13183  fi
13184  am__universal=false
13185
13186
13187  for depmode in $am_compiler_list; do
13188    # Setup a source with many dependencies, because some compilers
13189    # like to wrap large dependency lists on column 80 (with \), and
13190    # we should not choose a depcomp mode which is confused by this.
13191    #
13192    # We need to recreate these files for each test, as the compiler may
13193    # overwrite some of them when testing with obscure command lines.
13194    # This happens at least with the AIX C compiler.
13195    : > sub/conftest.c
13196    for i in 1 2 3 4 5 6; do
13197      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13198      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13199      # Solaris 10 /bin/sh.
13200      echo '/* dummy */' > sub/conftst$i.h
13201    done
13202    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13203
13204    # We check with '-c' and '-o' for the sake of the "dashmstdout"
13205    # mode.  It turns out that the SunPro C++ compiler does not properly
13206    # handle '-M -o', and we need to detect this.  Also, some Intel
13207    # versions had trouble with output in subdirs.
13208    am__obj=sub/conftest.${OBJEXT-o}
13209    am__minus_obj="-o $am__obj"
13210    case $depmode in
13211    gcc)
13212      # This depmode causes a compiler race in universal mode.
13213      test "$am__universal" = false || continue
13214      ;;
13215    nosideeffect)
13216      # After this tag, mechanisms are not by side-effect, so they'll
13217      # only be used when explicitly requested.
13218      if test "x$enable_dependency_tracking" = xyes; then
13219	continue
13220      else
13221	break
13222      fi
13223      ;;
13224    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13225      # This compiler won't grok '-c -o', but also, the minuso test has
13226      # not run yet.  These depmodes are late enough in the game, and
13227      # so weak that their functioning should not be impacted.
13228      am__obj=conftest.${OBJEXT-o}
13229      am__minus_obj=
13230      ;;
13231    none) break ;;
13232    esac
13233    if depmode=$depmode \
13234       source=sub/conftest.c object=$am__obj \
13235       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13236       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13237         >/dev/null 2>conftest.err &&
13238       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13239       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13240       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13241       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13242      # icc doesn't choke on unknown options, it will just issue warnings
13243      # or remarks (even with -Werror).  So we grep stderr for any message
13244      # that says an option was ignored or not supported.
13245      # When given -MP, icc 7.0 and 7.1 complain thusly:
13246      #   icc: Command line warning: ignoring option '-M'; no argument required
13247      # The diagnosis changed in icc 8.0:
13248      #   icc: Command line remark: option '-MP' not supported
13249      if (grep 'ignoring option' conftest.err ||
13250          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13251        am_cv_CCAS_dependencies_compiler_type=$depmode
13252        break
13253      fi
13254    fi
13255  done
13256
13257  cd ..
13258  rm -rf conftest.dir
13259else
13260  am_cv_CCAS_dependencies_compiler_type=none
13261fi
13262
13263fi
13264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
13265$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
13266CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
13267
13268 if
13269  test "x$enable_dependency_tracking" != xno \
13270  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
13271  am__fastdepCCAS_TRUE=
13272  am__fastdepCCAS_FALSE='#'
13273else
13274  am__fastdepCCAS_TRUE='#'
13275  am__fastdepCCAS_FALSE=
13276fi
13277
13278
13279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13280$as_echo_n "checking whether ln -s works... " >&6; }
13281LN_S=$as_ln_s
13282if test "$LN_S" = "ln -s"; then
13283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13284$as_echo "yes" >&6; }
13285else
13286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13287$as_echo "no, using $LN_S" >&6; }
13288fi
13289
13290
13291case `pwd` in
13292  *\ * | *\	*)
13293    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13294$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13295esac
13296
13297
13298
13299macro_version='2.4.6'
13300macro_revision='2.4.6'
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314ltmain=$ac_aux_dir/ltmain.sh
13315
13316# Backslashify metacharacters that are still active within
13317# double-quoted strings.
13318sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13319
13320# Same as above, but do not quote variable references.
13321double_quote_subst='s/\(["`\\]\)/\\\1/g'
13322
13323# Sed substitution to delay expansion of an escaped shell variable in a
13324# double_quote_subst'ed string.
13325delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13326
13327# Sed substitution to delay expansion of an escaped single quote.
13328delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13329
13330# Sed substitution to avoid accidental globbing in evaled expressions
13331no_glob_subst='s/\*/\\\*/g'
13332
13333ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13334ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13335ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13336
13337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13338$as_echo_n "checking how to print strings... " >&6; }
13339# Test print first, because it will be a builtin if present.
13340if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
13341   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13342  ECHO='print -r --'
13343elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13344  ECHO='printf %s\n'
13345else
13346  # Use this function as a fallback that always works.
13347  func_fallback_echo ()
13348  {
13349    eval 'cat <<_LTECHO_EOF
13350$1
13351_LTECHO_EOF'
13352  }
13353  ECHO='func_fallback_echo'
13354fi
13355
13356# func_echo_all arg...
13357# Invoke $ECHO with all args, space-separated.
13358func_echo_all ()
13359{
13360    $ECHO ""
13361}
13362
13363case $ECHO in
13364  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13365$as_echo "printf" >&6; } ;;
13366  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13367$as_echo "print -r" >&6; } ;;
13368  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13369$as_echo "cat" >&6; } ;;
13370esac
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13386$as_echo_n "checking for a sed that does not truncate output... " >&6; }
13387if ${ac_cv_path_SED+:} false; then :
13388  $as_echo_n "(cached) " >&6
13389else
13390            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13391     for ac_i in 1 2 3 4 5 6 7; do
13392       ac_script="$ac_script$as_nl$ac_script"
13393     done
13394     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13395     { ac_script=; unset ac_script;}
13396     if test -z "$SED"; then
13397  ac_path_SED_found=false
13398  # Loop through the user's path and test for each of PROGNAME-LIST
13399  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13400for as_dir in $PATH
13401do
13402  IFS=$as_save_IFS
13403  test -z "$as_dir" && as_dir=.
13404    for ac_prog in sed gsed; do
13405    for ac_exec_ext in '' $ac_executable_extensions; do
13406      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13407      as_fn_executable_p "$ac_path_SED" || continue
13408# Check for GNU ac_path_SED and select it if it is found.
13409  # Check for GNU $ac_path_SED
13410case `"$ac_path_SED" --version 2>&1` in
13411*GNU*)
13412  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13413*)
13414  ac_count=0
13415  $as_echo_n 0123456789 >"conftest.in"
13416  while :
13417  do
13418    cat "conftest.in" "conftest.in" >"conftest.tmp"
13419    mv "conftest.tmp" "conftest.in"
13420    cp "conftest.in" "conftest.nl"
13421    $as_echo '' >> "conftest.nl"
13422    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13423    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13424    as_fn_arith $ac_count + 1 && ac_count=$as_val
13425    if test $ac_count -gt ${ac_path_SED_max-0}; then
13426      # Best one so far, save it but keep looking for a better one
13427      ac_cv_path_SED="$ac_path_SED"
13428      ac_path_SED_max=$ac_count
13429    fi
13430    # 10*(2^10) chars as input seems more than enough
13431    test $ac_count -gt 10 && break
13432  done
13433  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13434esac
13435
13436      $ac_path_SED_found && break 3
13437    done
13438  done
13439  done
13440IFS=$as_save_IFS
13441  if test -z "$ac_cv_path_SED"; then
13442    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13443  fi
13444else
13445  ac_cv_path_SED=$SED
13446fi
13447
13448fi
13449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13450$as_echo "$ac_cv_path_SED" >&6; }
13451 SED="$ac_cv_path_SED"
13452  rm -f conftest.sed
13453
13454test -z "$SED" && SED=sed
13455Xsed="$SED -e 1s/^X//"
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13468$as_echo_n "checking for fgrep... " >&6; }
13469if ${ac_cv_path_FGREP+:} false; then :
13470  $as_echo_n "(cached) " >&6
13471else
13472  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13473   then ac_cv_path_FGREP="$GREP -F"
13474   else
13475     if test -z "$FGREP"; then
13476  ac_path_FGREP_found=false
13477  # Loop through the user's path and test for each of PROGNAME-LIST
13478  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13479for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13480do
13481  IFS=$as_save_IFS
13482  test -z "$as_dir" && as_dir=.
13483    for ac_prog in fgrep; do
13484    for ac_exec_ext in '' $ac_executable_extensions; do
13485      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13486      as_fn_executable_p "$ac_path_FGREP" || continue
13487# Check for GNU ac_path_FGREP and select it if it is found.
13488  # Check for GNU $ac_path_FGREP
13489case `"$ac_path_FGREP" --version 2>&1` in
13490*GNU*)
13491  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13492*)
13493  ac_count=0
13494  $as_echo_n 0123456789 >"conftest.in"
13495  while :
13496  do
13497    cat "conftest.in" "conftest.in" >"conftest.tmp"
13498    mv "conftest.tmp" "conftest.in"
13499    cp "conftest.in" "conftest.nl"
13500    $as_echo 'FGREP' >> "conftest.nl"
13501    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13502    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13503    as_fn_arith $ac_count + 1 && ac_count=$as_val
13504    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13505      # Best one so far, save it but keep looking for a better one
13506      ac_cv_path_FGREP="$ac_path_FGREP"
13507      ac_path_FGREP_max=$ac_count
13508    fi
13509    # 10*(2^10) chars as input seems more than enough
13510    test $ac_count -gt 10 && break
13511  done
13512  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13513esac
13514
13515      $ac_path_FGREP_found && break 3
13516    done
13517  done
13518  done
13519IFS=$as_save_IFS
13520  if test -z "$ac_cv_path_FGREP"; then
13521    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13522  fi
13523else
13524  ac_cv_path_FGREP=$FGREP
13525fi
13526
13527   fi
13528fi
13529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13530$as_echo "$ac_cv_path_FGREP" >&6; }
13531 FGREP="$ac_cv_path_FGREP"
13532
13533
13534test -z "$GREP" && GREP=grep
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554# Check whether --with-gnu-ld was given.
13555if test "${with_gnu_ld+set}" = set; then :
13556  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13557else
13558  with_gnu_ld=no
13559fi
13560
13561ac_prog=ld
13562if test yes = "$GCC"; then
13563  # Check if gcc -print-prog-name=ld gives a path.
13564  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13565$as_echo_n "checking for ld used by $CC... " >&6; }
13566  case $host in
13567  *-*-mingw*)
13568    # gcc leaves a trailing carriage return, which upsets mingw
13569    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13570  *)
13571    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13572  esac
13573  case $ac_prog in
13574    # Accept absolute paths.
13575    [\\/]* | ?:[\\/]*)
13576      re_direlt='/[^/][^/]*/\.\./'
13577      # Canonicalize the pathname of ld
13578      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13579      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13580	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13581      done
13582      test -z "$LD" && LD=$ac_prog
13583      ;;
13584  "")
13585    # If it fails, then pretend we aren't using GCC.
13586    ac_prog=ld
13587    ;;
13588  *)
13589    # If it is relative, then search for the first ld in PATH.
13590    with_gnu_ld=unknown
13591    ;;
13592  esac
13593elif test yes = "$with_gnu_ld"; then
13594  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13595$as_echo_n "checking for GNU ld... " >&6; }
13596else
13597  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13598$as_echo_n "checking for non-GNU ld... " >&6; }
13599fi
13600if ${lt_cv_path_LD+:} false; then :
13601  $as_echo_n "(cached) " >&6
13602else
13603  if test -z "$LD"; then
13604  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13605  for ac_dir in $PATH; do
13606    IFS=$lt_save_ifs
13607    test -z "$ac_dir" && ac_dir=.
13608    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13609      lt_cv_path_LD=$ac_dir/$ac_prog
13610      # Check to see if the program is GNU ld.  I'd rather use --version,
13611      # but apparently some variants of GNU ld only accept -v.
13612      # Break only if it was the GNU/non-GNU ld that we prefer.
13613      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13614      *GNU* | *'with BFD'*)
13615	test no != "$with_gnu_ld" && break
13616	;;
13617      *)
13618	test yes != "$with_gnu_ld" && break
13619	;;
13620      esac
13621    fi
13622  done
13623  IFS=$lt_save_ifs
13624else
13625  lt_cv_path_LD=$LD # Let the user override the test with a path.
13626fi
13627fi
13628
13629LD=$lt_cv_path_LD
13630if test -n "$LD"; then
13631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13632$as_echo "$LD" >&6; }
13633else
13634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13635$as_echo "no" >&6; }
13636fi
13637test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13639$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13640if ${lt_cv_prog_gnu_ld+:} false; then :
13641  $as_echo_n "(cached) " >&6
13642else
13643  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13644case `$LD -v 2>&1 </dev/null` in
13645*GNU* | *'with BFD'*)
13646  lt_cv_prog_gnu_ld=yes
13647  ;;
13648*)
13649  lt_cv_prog_gnu_ld=no
13650  ;;
13651esac
13652fi
13653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13654$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13655with_gnu_ld=$lt_cv_prog_gnu_ld
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13666$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13667if ${lt_cv_path_NM+:} false; then :
13668  $as_echo_n "(cached) " >&6
13669else
13670  if test -n "$NM"; then
13671  # Let the user override the test.
13672  lt_cv_path_NM=$NM
13673else
13674  lt_nm_to_check=${ac_tool_prefix}nm
13675  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13676    lt_nm_to_check="$lt_nm_to_check nm"
13677  fi
13678  for lt_tmp_nm in $lt_nm_to_check; do
13679    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13680    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13681      IFS=$lt_save_ifs
13682      test -z "$ac_dir" && ac_dir=.
13683      tmp_nm=$ac_dir/$lt_tmp_nm
13684      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
13685	# Check to see if the nm accepts a BSD-compat flag.
13686	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
13687	#   nm: unknown option "B" ignored
13688	# Tru64's nm complains that /dev/null is an invalid object file
13689	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
13690	case $build_os in
13691	mingw*) lt_bad_file=conftest.nm/nofile ;;
13692	*) lt_bad_file=/dev/null ;;
13693	esac
13694	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
13695	*$lt_bad_file* | *'Invalid file or object type'*)
13696	  lt_cv_path_NM="$tmp_nm -B"
13697	  break 2
13698	  ;;
13699	*)
13700	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13701	  */dev/null*)
13702	    lt_cv_path_NM="$tmp_nm -p"
13703	    break 2
13704	    ;;
13705	  *)
13706	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13707	    continue # so that we can try to find one that supports BSD flags
13708	    ;;
13709	  esac
13710	  ;;
13711	esac
13712      fi
13713    done
13714    IFS=$lt_save_ifs
13715  done
13716  : ${lt_cv_path_NM=no}
13717fi
13718fi
13719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13720$as_echo "$lt_cv_path_NM" >&6; }
13721if test no != "$lt_cv_path_NM"; then
13722  NM=$lt_cv_path_NM
13723else
13724  # Didn't find any BSD compatible name lister, look for dumpbin.
13725  if test -n "$DUMPBIN"; then :
13726    # Let the user override the test.
13727  else
13728    if test -n "$ac_tool_prefix"; then
13729  for ac_prog in dumpbin "link -dump"
13730  do
13731    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13732set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13734$as_echo_n "checking for $ac_word... " >&6; }
13735if ${ac_cv_prog_DUMPBIN+:} false; then :
13736  $as_echo_n "(cached) " >&6
13737else
13738  if test -n "$DUMPBIN"; then
13739  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13740else
13741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13742for as_dir in $PATH
13743do
13744  IFS=$as_save_IFS
13745  test -z "$as_dir" && as_dir=.
13746    for ac_exec_ext in '' $ac_executable_extensions; do
13747  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13748    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13749    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13750    break 2
13751  fi
13752done
13753  done
13754IFS=$as_save_IFS
13755
13756fi
13757fi
13758DUMPBIN=$ac_cv_prog_DUMPBIN
13759if test -n "$DUMPBIN"; then
13760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13761$as_echo "$DUMPBIN" >&6; }
13762else
13763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13764$as_echo "no" >&6; }
13765fi
13766
13767
13768    test -n "$DUMPBIN" && break
13769  done
13770fi
13771if test -z "$DUMPBIN"; then
13772  ac_ct_DUMPBIN=$DUMPBIN
13773  for ac_prog in dumpbin "link -dump"
13774do
13775  # Extract the first word of "$ac_prog", so it can be a program name with args.
13776set dummy $ac_prog; ac_word=$2
13777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13778$as_echo_n "checking for $ac_word... " >&6; }
13779if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13780  $as_echo_n "(cached) " >&6
13781else
13782  if test -n "$ac_ct_DUMPBIN"; then
13783  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13784else
13785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13786for as_dir in $PATH
13787do
13788  IFS=$as_save_IFS
13789  test -z "$as_dir" && as_dir=.
13790    for ac_exec_ext in '' $ac_executable_extensions; do
13791  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13792    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13794    break 2
13795  fi
13796done
13797  done
13798IFS=$as_save_IFS
13799
13800fi
13801fi
13802ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13803if test -n "$ac_ct_DUMPBIN"; then
13804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13805$as_echo "$ac_ct_DUMPBIN" >&6; }
13806else
13807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13808$as_echo "no" >&6; }
13809fi
13810
13811
13812  test -n "$ac_ct_DUMPBIN" && break
13813done
13814
13815  if test "x$ac_ct_DUMPBIN" = x; then
13816    DUMPBIN=":"
13817  else
13818    case $cross_compiling:$ac_tool_warned in
13819yes:)
13820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13822ac_tool_warned=yes ;;
13823esac
13824    DUMPBIN=$ac_ct_DUMPBIN
13825  fi
13826fi
13827
13828    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
13829    *COFF*)
13830      DUMPBIN="$DUMPBIN -symbols -headers"
13831      ;;
13832    *)
13833      DUMPBIN=:
13834      ;;
13835    esac
13836  fi
13837
13838  if test : != "$DUMPBIN"; then
13839    NM=$DUMPBIN
13840  fi
13841fi
13842test -z "$NM" && NM=nm
13843
13844
13845
13846
13847
13848
13849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13850$as_echo_n "checking the name lister ($NM) interface... " >&6; }
13851if ${lt_cv_nm_interface+:} false; then :
13852  $as_echo_n "(cached) " >&6
13853else
13854  lt_cv_nm_interface="BSD nm"
13855  echo "int some_variable = 0;" > conftest.$ac_ext
13856  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13857  (eval "$ac_compile" 2>conftest.err)
13858  cat conftest.err >&5
13859  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13860  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13861  cat conftest.err >&5
13862  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13863  cat conftest.out >&5
13864  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13865    lt_cv_nm_interface="MS dumpbin"
13866  fi
13867  rm -f conftest*
13868fi
13869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13870$as_echo "$lt_cv_nm_interface" >&6; }
13871
13872# find the maximum length of command line arguments
13873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13874$as_echo_n "checking the maximum length of command line arguments... " >&6; }
13875if ${lt_cv_sys_max_cmd_len+:} false; then :
13876  $as_echo_n "(cached) " >&6
13877else
13878    i=0
13879  teststring=ABCD
13880
13881  case $build_os in
13882  msdosdjgpp*)
13883    # On DJGPP, this test can blow up pretty badly due to problems in libc
13884    # (any single argument exceeding 2000 bytes causes a buffer overrun
13885    # during glob expansion).  Even if it were fixed, the result of this
13886    # check would be larger than it should be.
13887    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13888    ;;
13889
13890  gnu*)
13891    # Under GNU Hurd, this test is not required because there is
13892    # no limit to the length of command line arguments.
13893    # Libtool will interpret -1 as no limit whatsoever
13894    lt_cv_sys_max_cmd_len=-1;
13895    ;;
13896
13897  cygwin* | mingw* | cegcc*)
13898    # On Win9x/ME, this test blows up -- it succeeds, but takes
13899    # about 5 minutes as the teststring grows exponentially.
13900    # Worse, since 9x/ME are not pre-emptively multitasking,
13901    # you end up with a "frozen" computer, even though with patience
13902    # the test eventually succeeds (with a max line length of 256k).
13903    # Instead, let's just punt: use the minimum linelength reported by
13904    # all of the supported platforms: 8192 (on NT/2K/XP).
13905    lt_cv_sys_max_cmd_len=8192;
13906    ;;
13907
13908  mint*)
13909    # On MiNT this can take a long time and run out of memory.
13910    lt_cv_sys_max_cmd_len=8192;
13911    ;;
13912
13913  mint*)
13914    # On MiNT this can take a long time and run out of memory.
13915    lt_cv_sys_max_cmd_len=8192;
13916    ;;
13917
13918  amigaos*)
13919    # On AmigaOS with pdksh, this test takes hours, literally.
13920    # So we just punt and use a minimum line length of 8192.
13921    lt_cv_sys_max_cmd_len=8192;
13922    ;;
13923
13924  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
13925    # This has been around since 386BSD, at least.  Likely further.
13926    if test -x /sbin/sysctl; then
13927      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13928    elif test -x /usr/sbin/sysctl; then
13929      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13930    else
13931      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
13932    fi
13933    # And add a safety zone
13934    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13935    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13936    ;;
13937
13938  interix*)
13939    # We know the value 262144 and hardcode it with a safety zone (like BSD)
13940    lt_cv_sys_max_cmd_len=196608
13941    ;;
13942
13943  os2*)
13944    # The test takes a long time on OS/2.
13945    lt_cv_sys_max_cmd_len=8192
13946    ;;
13947
13948  osf*)
13949    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13950    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13951    # nice to cause kernel panics so lets avoid the loop below.
13952    # First set a reasonable default.
13953    lt_cv_sys_max_cmd_len=16384
13954    #
13955    if test -x /sbin/sysconfig; then
13956      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13957        *1*) lt_cv_sys_max_cmd_len=-1 ;;
13958      esac
13959    fi
13960    ;;
13961  sco3.2v5*)
13962    lt_cv_sys_max_cmd_len=102400
13963    ;;
13964  sysv5* | sco5v6* | sysv4.2uw2*)
13965    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13966    if test -n "$kargmax"; then
13967      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
13968    else
13969      lt_cv_sys_max_cmd_len=32768
13970    fi
13971    ;;
13972  *)
13973    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13974    if test -n "$lt_cv_sys_max_cmd_len" && \
13975       test undefined != "$lt_cv_sys_max_cmd_len"; then
13976      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13977      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13978    else
13979      # Make teststring a little bigger before we do anything with it.
13980      # a 1K string should be a reasonable start.
13981      for i in 1 2 3 4 5 6 7 8; do
13982        teststring=$teststring$teststring
13983      done
13984      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13985      # If test is not a shell built-in, we'll probably end up computing a
13986      # maximum length that is only half of the actual maximum length, but
13987      # we can't tell.
13988      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
13989	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13990	      test 17 != "$i" # 1/2 MB should be enough
13991      do
13992        i=`expr $i + 1`
13993        teststring=$teststring$teststring
13994      done
13995      # Only check the string length outside the loop.
13996      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13997      teststring=
13998      # Add a significant safety factor because C++ compilers can tack on
13999      # massive amounts of additional arguments before passing them to the
14000      # linker.  It appears as though 1/2 is a usable value.
14001      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14002    fi
14003    ;;
14004  esac
14005
14006fi
14007
14008if test -n "$lt_cv_sys_max_cmd_len"; then
14009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14010$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14011else
14012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14013$as_echo "none" >&6; }
14014fi
14015max_cmd_len=$lt_cv_sys_max_cmd_len
14016
14017
14018
14019
14020
14021
14022: ${CP="cp -f"}
14023: ${MV="mv -f"}
14024: ${RM="rm -f"}
14025
14026if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14027  lt_unset=unset
14028else
14029  lt_unset=false
14030fi
14031
14032
14033
14034
14035
14036# test EBCDIC or ASCII
14037case `echo X|tr X '\101'` in
14038 A) # ASCII based system
14039    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14040  lt_SP2NL='tr \040 \012'
14041  lt_NL2SP='tr \015\012 \040\040'
14042  ;;
14043 *) # EBCDIC based system
14044  lt_SP2NL='tr \100 \n'
14045  lt_NL2SP='tr \r\n \100\100'
14046  ;;
14047esac
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
14058$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
14059if ${lt_cv_to_host_file_cmd+:} false; then :
14060  $as_echo_n "(cached) " >&6
14061else
14062  case $host in
14063  *-*-mingw* )
14064    case $build in
14065      *-*-mingw* ) # actually msys
14066        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
14067        ;;
14068      *-*-cygwin* )
14069        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
14070        ;;
14071      * ) # otherwise, assume *nix
14072        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
14073        ;;
14074    esac
14075    ;;
14076  *-*-cygwin* )
14077    case $build in
14078      *-*-mingw* ) # actually msys
14079        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
14080        ;;
14081      *-*-cygwin* )
14082        lt_cv_to_host_file_cmd=func_convert_file_noop
14083        ;;
14084      * ) # otherwise, assume *nix
14085        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
14086        ;;
14087    esac
14088    ;;
14089  * ) # unhandled hosts (and "normal" native builds)
14090    lt_cv_to_host_file_cmd=func_convert_file_noop
14091    ;;
14092esac
14093
14094fi
14095
14096to_host_file_cmd=$lt_cv_to_host_file_cmd
14097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
14098$as_echo "$lt_cv_to_host_file_cmd" >&6; }
14099
14100
14101
14102
14103
14104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
14105$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
14106if ${lt_cv_to_tool_file_cmd+:} false; then :
14107  $as_echo_n "(cached) " >&6
14108else
14109  #assume ordinary cross tools, or native build.
14110lt_cv_to_tool_file_cmd=func_convert_file_noop
14111case $host in
14112  *-*-mingw* )
14113    case $build in
14114      *-*-mingw* ) # actually msys
14115        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
14116        ;;
14117    esac
14118    ;;
14119esac
14120
14121fi
14122
14123to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
14125$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
14126
14127
14128
14129
14130
14131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
14132$as_echo_n "checking for $LD option to reload object files... " >&6; }
14133if ${lt_cv_ld_reload_flag+:} false; then :
14134  $as_echo_n "(cached) " >&6
14135else
14136  lt_cv_ld_reload_flag='-r'
14137fi
14138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
14139$as_echo "$lt_cv_ld_reload_flag" >&6; }
14140reload_flag=$lt_cv_ld_reload_flag
14141case $reload_flag in
14142"" | " "*) ;;
14143*) reload_flag=" $reload_flag" ;;
14144esac
14145reload_cmds='$LD$reload_flag -o $output$reload_objs'
14146case $host_os in
14147  cygwin* | mingw* | pw32* | cegcc*)
14148    if test yes != "$GCC"; then
14149      reload_cmds=false
14150    fi
14151    ;;
14152  darwin*)
14153    if test yes = "$GCC"; then
14154      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
14155    else
14156      reload_cmds='$LD$reload_flag -o $output$reload_objs'
14157    fi
14158    ;;
14159esac
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169if test -n "$ac_tool_prefix"; then
14170  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14171set dummy ${ac_tool_prefix}objdump; ac_word=$2
14172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14173$as_echo_n "checking for $ac_word... " >&6; }
14174if ${ac_cv_prog_OBJDUMP+:} false; then :
14175  $as_echo_n "(cached) " >&6
14176else
14177  if test -n "$OBJDUMP"; then
14178  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14179else
14180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14181for as_dir in $PATH
14182do
14183  IFS=$as_save_IFS
14184  test -z "$as_dir" && as_dir=.
14185    for ac_exec_ext in '' $ac_executable_extensions; do
14186  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14187    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14189    break 2
14190  fi
14191done
14192  done
14193IFS=$as_save_IFS
14194
14195fi
14196fi
14197OBJDUMP=$ac_cv_prog_OBJDUMP
14198if test -n "$OBJDUMP"; then
14199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14200$as_echo "$OBJDUMP" >&6; }
14201else
14202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14203$as_echo "no" >&6; }
14204fi
14205
14206
14207fi
14208if test -z "$ac_cv_prog_OBJDUMP"; then
14209  ac_ct_OBJDUMP=$OBJDUMP
14210  # Extract the first word of "objdump", so it can be a program name with args.
14211set dummy objdump; ac_word=$2
14212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14213$as_echo_n "checking for $ac_word... " >&6; }
14214if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14215  $as_echo_n "(cached) " >&6
14216else
14217  if test -n "$ac_ct_OBJDUMP"; then
14218  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14219else
14220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14221for as_dir in $PATH
14222do
14223  IFS=$as_save_IFS
14224  test -z "$as_dir" && as_dir=.
14225    for ac_exec_ext in '' $ac_executable_extensions; do
14226  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14227    ac_cv_prog_ac_ct_OBJDUMP="objdump"
14228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14229    break 2
14230  fi
14231done
14232  done
14233IFS=$as_save_IFS
14234
14235fi
14236fi
14237ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14238if test -n "$ac_ct_OBJDUMP"; then
14239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14240$as_echo "$ac_ct_OBJDUMP" >&6; }
14241else
14242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14243$as_echo "no" >&6; }
14244fi
14245
14246  if test "x$ac_ct_OBJDUMP" = x; then
14247    OBJDUMP="false"
14248  else
14249    case $cross_compiling:$ac_tool_warned in
14250yes:)
14251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14253ac_tool_warned=yes ;;
14254esac
14255    OBJDUMP=$ac_ct_OBJDUMP
14256  fi
14257else
14258  OBJDUMP="$ac_cv_prog_OBJDUMP"
14259fi
14260
14261test -z "$OBJDUMP" && OBJDUMP=objdump
14262
14263
14264
14265
14266
14267
14268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
14269$as_echo_n "checking how to recognize dependent libraries... " >&6; }
14270if ${lt_cv_deplibs_check_method+:} false; then :
14271  $as_echo_n "(cached) " >&6
14272else
14273  lt_cv_file_magic_cmd='$MAGIC_CMD'
14274lt_cv_file_magic_test_file=
14275lt_cv_deplibs_check_method='unknown'
14276# Need to set the preceding variable on all platforms that support
14277# interlibrary dependencies.
14278# 'none' -- dependencies not supported.
14279# 'unknown' -- same as none, but documents that we really don't know.
14280# 'pass_all' -- all dependencies passed with no checks.
14281# 'test_compile' -- check by making test program.
14282# 'file_magic [[regex]]' -- check by looking for files in library path
14283# that responds to the $file_magic_cmd with a given extended regex.
14284# If you have 'file' or equivalent on your system and you're not sure
14285# whether 'pass_all' will *always* work, you probably want this one.
14286
14287case $host_os in
14288aix[4-9]*)
14289  lt_cv_deplibs_check_method=pass_all
14290  ;;
14291
14292beos*)
14293  lt_cv_deplibs_check_method=pass_all
14294  ;;
14295
14296bsdi[45]*)
14297  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14298  lt_cv_file_magic_cmd='/usr/bin/file -L'
14299  lt_cv_file_magic_test_file=/shlib/libc.so
14300  ;;
14301
14302cygwin*)
14303  # func_win32_libid is a shell function defined in ltmain.sh
14304  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14305  lt_cv_file_magic_cmd='func_win32_libid'
14306  ;;
14307
14308mingw* | pw32*)
14309  # Base MSYS/MinGW do not provide the 'file' command needed by
14310  # func_win32_libid shell function, so use a weaker test based on 'objdump',
14311  # unless we find 'file', for example because we are cross-compiling.
14312  if ( file / ) >/dev/null 2>&1; then
14313    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14314    lt_cv_file_magic_cmd='func_win32_libid'
14315  else
14316    # Keep this pattern in sync with the one in func_win32_libid.
14317    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
14318    lt_cv_file_magic_cmd='$OBJDUMP -f'
14319  fi
14320  ;;
14321
14322cegcc*)
14323  # use the weaker test based on 'objdump'. See mingw*.
14324  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14325  lt_cv_file_magic_cmd='$OBJDUMP -f'
14326  ;;
14327
14328darwin* | rhapsody*)
14329  lt_cv_deplibs_check_method=pass_all
14330  ;;
14331
14332freebsd* | dragonfly*)
14333  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14334    case $host_cpu in
14335    i*86 )
14336      # Not sure whether the presence of OpenBSD here was a mistake.
14337      # Let's accept both of them until this is cleared up.
14338      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14339      lt_cv_file_magic_cmd=/usr/bin/file
14340      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14341      ;;
14342    esac
14343  else
14344    lt_cv_deplibs_check_method=pass_all
14345  fi
14346  ;;
14347
14348haiku*)
14349  lt_cv_deplibs_check_method=pass_all
14350  ;;
14351
14352hpux10.20* | hpux11*)
14353  lt_cv_file_magic_cmd=/usr/bin/file
14354  case $host_cpu in
14355  ia64*)
14356    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14357    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14358    ;;
14359  hppa*64*)
14360    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]'
14361    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14362    ;;
14363  *)
14364    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14365    lt_cv_file_magic_test_file=/usr/lib/libc.sl
14366    ;;
14367  esac
14368  ;;
14369
14370interix[3-9]*)
14371  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14372  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14373  ;;
14374
14375irix5* | irix6* | nonstopux*)
14376  case $LD in
14377  *-32|*"-32 ") libmagic=32-bit;;
14378  *-n32|*"-n32 ") libmagic=N32;;
14379  *-64|*"-64 ") libmagic=64-bit;;
14380  *) libmagic=never-match;;
14381  esac
14382  lt_cv_deplibs_check_method=pass_all
14383  ;;
14384
14385# This must be glibc/ELF.
14386linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14387  lt_cv_deplibs_check_method=pass_all
14388  ;;
14389
14390netbsd*)
14391  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14392    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14393  else
14394    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14395  fi
14396  ;;
14397
14398newos6*)
14399  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14400  lt_cv_file_magic_cmd=/usr/bin/file
14401  lt_cv_file_magic_test_file=/usr/lib/libnls.so
14402  ;;
14403
14404*nto* | *qnx*)
14405  lt_cv_deplibs_check_method=pass_all
14406  ;;
14407
14408openbsd* | bitrig*)
14409  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14410    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14411  else
14412    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14413  fi
14414  ;;
14415
14416osf3* | osf4* | osf5*)
14417  lt_cv_deplibs_check_method=pass_all
14418  ;;
14419
14420rdos*)
14421  lt_cv_deplibs_check_method=pass_all
14422  ;;
14423
14424solaris*)
14425  lt_cv_deplibs_check_method=pass_all
14426  ;;
14427
14428sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14429  lt_cv_deplibs_check_method=pass_all
14430  ;;
14431
14432sysv4 | sysv4.3*)
14433  case $host_vendor in
14434  motorola)
14435    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]'
14436    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14437    ;;
14438  ncr)
14439    lt_cv_deplibs_check_method=pass_all
14440    ;;
14441  sequent)
14442    lt_cv_file_magic_cmd='/bin/file'
14443    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14444    ;;
14445  sni)
14446    lt_cv_file_magic_cmd='/bin/file'
14447    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14448    lt_cv_file_magic_test_file=/lib/libc.so
14449    ;;
14450  siemens)
14451    lt_cv_deplibs_check_method=pass_all
14452    ;;
14453  pc)
14454    lt_cv_deplibs_check_method=pass_all
14455    ;;
14456  esac
14457  ;;
14458
14459tpf*)
14460  lt_cv_deplibs_check_method=pass_all
14461  ;;
14462os2*)
14463  lt_cv_deplibs_check_method=pass_all
14464  ;;
14465esac
14466
14467fi
14468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14469$as_echo "$lt_cv_deplibs_check_method" >&6; }
14470
14471file_magic_glob=
14472want_nocaseglob=no
14473if test "$build" = "$host"; then
14474  case $host_os in
14475  mingw* | pw32*)
14476    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
14477      want_nocaseglob=yes
14478    else
14479      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
14480    fi
14481    ;;
14482  esac
14483fi
14484
14485file_magic_cmd=$lt_cv_file_magic_cmd
14486deplibs_check_method=$lt_cv_deplibs_check_method
14487test -z "$deplibs_check_method" && deplibs_check_method=unknown
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510if test -n "$ac_tool_prefix"; then
14511  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14512set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14514$as_echo_n "checking for $ac_word... " >&6; }
14515if ${ac_cv_prog_DLLTOOL+:} false; then :
14516  $as_echo_n "(cached) " >&6
14517else
14518  if test -n "$DLLTOOL"; then
14519  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14520else
14521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14522for as_dir in $PATH
14523do
14524  IFS=$as_save_IFS
14525  test -z "$as_dir" && as_dir=.
14526    for ac_exec_ext in '' $ac_executable_extensions; do
14527  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14528    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14530    break 2
14531  fi
14532done
14533  done
14534IFS=$as_save_IFS
14535
14536fi
14537fi
14538DLLTOOL=$ac_cv_prog_DLLTOOL
14539if test -n "$DLLTOOL"; then
14540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14541$as_echo "$DLLTOOL" >&6; }
14542else
14543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14544$as_echo "no" >&6; }
14545fi
14546
14547
14548fi
14549if test -z "$ac_cv_prog_DLLTOOL"; then
14550  ac_ct_DLLTOOL=$DLLTOOL
14551  # Extract the first word of "dlltool", so it can be a program name with args.
14552set dummy dlltool; ac_word=$2
14553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14554$as_echo_n "checking for $ac_word... " >&6; }
14555if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
14556  $as_echo_n "(cached) " >&6
14557else
14558  if test -n "$ac_ct_DLLTOOL"; then
14559  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14560else
14561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14562for as_dir in $PATH
14563do
14564  IFS=$as_save_IFS
14565  test -z "$as_dir" && as_dir=.
14566    for ac_exec_ext in '' $ac_executable_extensions; do
14567  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14568    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14570    break 2
14571  fi
14572done
14573  done
14574IFS=$as_save_IFS
14575
14576fi
14577fi
14578ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14579if test -n "$ac_ct_DLLTOOL"; then
14580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14581$as_echo "$ac_ct_DLLTOOL" >&6; }
14582else
14583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14584$as_echo "no" >&6; }
14585fi
14586
14587  if test "x$ac_ct_DLLTOOL" = x; then
14588    DLLTOOL="false"
14589  else
14590    case $cross_compiling:$ac_tool_warned in
14591yes:)
14592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14594ac_tool_warned=yes ;;
14595esac
14596    DLLTOOL=$ac_ct_DLLTOOL
14597  fi
14598else
14599  DLLTOOL="$ac_cv_prog_DLLTOOL"
14600fi
14601
14602test -z "$DLLTOOL" && DLLTOOL=dlltool
14603
14604
14605
14606
14607
14608
14609
14610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
14611$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
14612if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
14613  $as_echo_n "(cached) " >&6
14614else
14615  lt_cv_sharedlib_from_linklib_cmd='unknown'
14616
14617case $host_os in
14618cygwin* | mingw* | pw32* | cegcc*)
14619  # two different shell functions defined in ltmain.sh;
14620  # decide which one to use based on capabilities of $DLLTOOL
14621  case `$DLLTOOL --help 2>&1` in
14622  *--identify-strict*)
14623    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
14624    ;;
14625  *)
14626    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
14627    ;;
14628  esac
14629  ;;
14630*)
14631  # fallback: assume linklib IS sharedlib
14632  lt_cv_sharedlib_from_linklib_cmd=$ECHO
14633  ;;
14634esac
14635
14636fi
14637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
14638$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
14639sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
14640test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
14641
14642
14643
14644
14645
14646
14647
14648if test -n "$ac_tool_prefix"; then
14649  for ac_prog in ar
14650  do
14651    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14652set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14654$as_echo_n "checking for $ac_word... " >&6; }
14655if ${ac_cv_prog_AR+:} false; then :
14656  $as_echo_n "(cached) " >&6
14657else
14658  if test -n "$AR"; then
14659  ac_cv_prog_AR="$AR" # Let the user override the test.
14660else
14661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14662for as_dir in $PATH
14663do
14664  IFS=$as_save_IFS
14665  test -z "$as_dir" && as_dir=.
14666    for ac_exec_ext in '' $ac_executable_extensions; do
14667  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14668    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
14669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14670    break 2
14671  fi
14672done
14673  done
14674IFS=$as_save_IFS
14675
14676fi
14677fi
14678AR=$ac_cv_prog_AR
14679if test -n "$AR"; then
14680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14681$as_echo "$AR" >&6; }
14682else
14683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14684$as_echo "no" >&6; }
14685fi
14686
14687
14688    test -n "$AR" && break
14689  done
14690fi
14691if test -z "$AR"; then
14692  ac_ct_AR=$AR
14693  for ac_prog in ar
14694do
14695  # Extract the first word of "$ac_prog", so it can be a program name with args.
14696set dummy $ac_prog; ac_word=$2
14697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14698$as_echo_n "checking for $ac_word... " >&6; }
14699if ${ac_cv_prog_ac_ct_AR+:} false; then :
14700  $as_echo_n "(cached) " >&6
14701else
14702  if test -n "$ac_ct_AR"; then
14703  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14704else
14705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14706for as_dir in $PATH
14707do
14708  IFS=$as_save_IFS
14709  test -z "$as_dir" && as_dir=.
14710    for ac_exec_ext in '' $ac_executable_extensions; do
14711  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14712    ac_cv_prog_ac_ct_AR="$ac_prog"
14713    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14714    break 2
14715  fi
14716done
14717  done
14718IFS=$as_save_IFS
14719
14720fi
14721fi
14722ac_ct_AR=$ac_cv_prog_ac_ct_AR
14723if test -n "$ac_ct_AR"; then
14724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14725$as_echo "$ac_ct_AR" >&6; }
14726else
14727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14728$as_echo "no" >&6; }
14729fi
14730
14731
14732  test -n "$ac_ct_AR" && break
14733done
14734
14735  if test "x$ac_ct_AR" = x; then
14736    AR="false"
14737  else
14738    case $cross_compiling:$ac_tool_warned in
14739yes:)
14740{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14742ac_tool_warned=yes ;;
14743esac
14744    AR=$ac_ct_AR
14745  fi
14746fi
14747
14748: ${AR=ar}
14749: ${AR_FLAGS=cru}
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
14762$as_echo_n "checking for archiver @FILE support... " >&6; }
14763if ${lt_cv_ar_at_file+:} false; then :
14764  $as_echo_n "(cached) " >&6
14765else
14766  lt_cv_ar_at_file=no
14767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14768/* end confdefs.h.  */
14769
14770int
14771main ()
14772{
14773
14774  ;
14775  return 0;
14776}
14777_ACEOF
14778if ac_fn_c_try_compile "$LINENO"; then :
14779  echo conftest.$ac_objext > conftest.lst
14780      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
14781      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
14782  (eval $lt_ar_try) 2>&5
14783  ac_status=$?
14784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14785  test $ac_status = 0; }
14786      if test 0 -eq "$ac_status"; then
14787	# Ensure the archiver fails upon bogus file names.
14788	rm -f conftest.$ac_objext libconftest.a
14789	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
14790  (eval $lt_ar_try) 2>&5
14791  ac_status=$?
14792  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14793  test $ac_status = 0; }
14794	if test 0 -ne "$ac_status"; then
14795          lt_cv_ar_at_file=@
14796        fi
14797      fi
14798      rm -f conftest.* libconftest.a
14799
14800fi
14801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14802
14803fi
14804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
14805$as_echo "$lt_cv_ar_at_file" >&6; }
14806
14807if test no = "$lt_cv_ar_at_file"; then
14808  archiver_list_spec=
14809else
14810  archiver_list_spec=$lt_cv_ar_at_file
14811fi
14812
14813
14814
14815
14816
14817
14818
14819if test -n "$ac_tool_prefix"; then
14820  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14821set dummy ${ac_tool_prefix}strip; ac_word=$2
14822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14823$as_echo_n "checking for $ac_word... " >&6; }
14824if ${ac_cv_prog_STRIP+:} false; then :
14825  $as_echo_n "(cached) " >&6
14826else
14827  if test -n "$STRIP"; then
14828  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14829else
14830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14831for as_dir in $PATH
14832do
14833  IFS=$as_save_IFS
14834  test -z "$as_dir" && as_dir=.
14835    for ac_exec_ext in '' $ac_executable_extensions; do
14836  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14837    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14838    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14839    break 2
14840  fi
14841done
14842  done
14843IFS=$as_save_IFS
14844
14845fi
14846fi
14847STRIP=$ac_cv_prog_STRIP
14848if test -n "$STRIP"; then
14849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14850$as_echo "$STRIP" >&6; }
14851else
14852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14853$as_echo "no" >&6; }
14854fi
14855
14856
14857fi
14858if test -z "$ac_cv_prog_STRIP"; then
14859  ac_ct_STRIP=$STRIP
14860  # Extract the first word of "strip", so it can be a program name with args.
14861set dummy strip; ac_word=$2
14862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14863$as_echo_n "checking for $ac_word... " >&6; }
14864if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14865  $as_echo_n "(cached) " >&6
14866else
14867  if test -n "$ac_ct_STRIP"; then
14868  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14869else
14870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14871for as_dir in $PATH
14872do
14873  IFS=$as_save_IFS
14874  test -z "$as_dir" && as_dir=.
14875    for ac_exec_ext in '' $ac_executable_extensions; do
14876  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14877    ac_cv_prog_ac_ct_STRIP="strip"
14878    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14879    break 2
14880  fi
14881done
14882  done
14883IFS=$as_save_IFS
14884
14885fi
14886fi
14887ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14888if test -n "$ac_ct_STRIP"; then
14889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14890$as_echo "$ac_ct_STRIP" >&6; }
14891else
14892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14893$as_echo "no" >&6; }
14894fi
14895
14896  if test "x$ac_ct_STRIP" = x; then
14897    STRIP=":"
14898  else
14899    case $cross_compiling:$ac_tool_warned in
14900yes:)
14901{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14902$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14903ac_tool_warned=yes ;;
14904esac
14905    STRIP=$ac_ct_STRIP
14906  fi
14907else
14908  STRIP="$ac_cv_prog_STRIP"
14909fi
14910
14911test -z "$STRIP" && STRIP=:
14912
14913
14914
14915
14916
14917
14918if test -n "$ac_tool_prefix"; then
14919  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14920set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14922$as_echo_n "checking for $ac_word... " >&6; }
14923if ${ac_cv_prog_RANLIB+:} false; then :
14924  $as_echo_n "(cached) " >&6
14925else
14926  if test -n "$RANLIB"; then
14927  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14928else
14929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14930for as_dir in $PATH
14931do
14932  IFS=$as_save_IFS
14933  test -z "$as_dir" && as_dir=.
14934    for ac_exec_ext in '' $ac_executable_extensions; do
14935  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14936    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14937    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14938    break 2
14939  fi
14940done
14941  done
14942IFS=$as_save_IFS
14943
14944fi
14945fi
14946RANLIB=$ac_cv_prog_RANLIB
14947if test -n "$RANLIB"; then
14948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14949$as_echo "$RANLIB" >&6; }
14950else
14951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14952$as_echo "no" >&6; }
14953fi
14954
14955
14956fi
14957if test -z "$ac_cv_prog_RANLIB"; then
14958  ac_ct_RANLIB=$RANLIB
14959  # Extract the first word of "ranlib", so it can be a program name with args.
14960set dummy ranlib; ac_word=$2
14961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14962$as_echo_n "checking for $ac_word... " >&6; }
14963if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14964  $as_echo_n "(cached) " >&6
14965else
14966  if test -n "$ac_ct_RANLIB"; then
14967  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14968else
14969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14970for as_dir in $PATH
14971do
14972  IFS=$as_save_IFS
14973  test -z "$as_dir" && as_dir=.
14974    for ac_exec_ext in '' $ac_executable_extensions; do
14975  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14976    ac_cv_prog_ac_ct_RANLIB="ranlib"
14977    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14978    break 2
14979  fi
14980done
14981  done
14982IFS=$as_save_IFS
14983
14984fi
14985fi
14986ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14987if test -n "$ac_ct_RANLIB"; then
14988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14989$as_echo "$ac_ct_RANLIB" >&6; }
14990else
14991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14992$as_echo "no" >&6; }
14993fi
14994
14995  if test "x$ac_ct_RANLIB" = x; then
14996    RANLIB=":"
14997  else
14998    case $cross_compiling:$ac_tool_warned in
14999yes:)
15000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15002ac_tool_warned=yes ;;
15003esac
15004    RANLIB=$ac_ct_RANLIB
15005  fi
15006else
15007  RANLIB="$ac_cv_prog_RANLIB"
15008fi
15009
15010test -z "$RANLIB" && RANLIB=:
15011
15012
15013
15014
15015
15016
15017# Determine commands to create old-style static archives.
15018old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15019old_postinstall_cmds='chmod 644 $oldlib'
15020old_postuninstall_cmds=
15021
15022if test -n "$RANLIB"; then
15023  case $host_os in
15024  bitrig* | openbsd*)
15025    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
15026    ;;
15027  *)
15028    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
15029    ;;
15030  esac
15031  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
15032fi
15033
15034case $host_os in
15035  darwin*)
15036    lock_old_archive_extraction=yes ;;
15037  *)
15038    lock_old_archive_extraction=no ;;
15039esac
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079# If no C compiler was specified, use CC.
15080LTCC=${LTCC-"$CC"}
15081
15082# If no C compiler flags were specified, use CFLAGS.
15083LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15084
15085# Allow CC to be a program name with arguments.
15086compiler=$CC
15087
15088
15089# Check for command to grab the raw symbol name followed by C symbol from nm.
15090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
15091$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
15092if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15093  $as_echo_n "(cached) " >&6
15094else
15095
15096# These are sane defaults that work on at least a few old systems.
15097# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
15098
15099# Character class describing NM global symbol codes.
15100symcode='[BCDEGRST]'
15101
15102# Regexp to match symbols that can be accessed directly from C.
15103sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15104
15105# Define system-specific variables.
15106case $host_os in
15107aix*)
15108  symcode='[BCDT]'
15109  ;;
15110cygwin* | mingw* | pw32* | cegcc*)
15111  symcode='[ABCDGISTW]'
15112  ;;
15113hpux*)
15114  if test ia64 = "$host_cpu"; then
15115    symcode='[ABCDEGRST]'
15116  fi
15117  ;;
15118irix* | nonstopux*)
15119  symcode='[BCDEGRST]'
15120  ;;
15121osf*)
15122  symcode='[BCDEGQRST]'
15123  ;;
15124solaris*)
15125  symcode='[BDRT]'
15126  ;;
15127sco3.2v5*)
15128  symcode='[DT]'
15129  ;;
15130sysv4.2uw2*)
15131  symcode='[DT]'
15132  ;;
15133sysv5* | sco5v6* | unixware* | OpenUNIX*)
15134  symcode='[ABDT]'
15135  ;;
15136sysv4)
15137  symcode='[DFNSTU]'
15138  ;;
15139esac
15140
15141# If we're using GNU nm, then use its standard symbol codes.
15142case `$NM -V 2>&1` in
15143*GNU* | *'with BFD'*)
15144  symcode='[ABCDGIRSTW]' ;;
15145esac
15146
15147if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15148  # Gets list of data symbols to import.
15149  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
15150  # Adjust the below global symbol transforms to fixup imported variables.
15151  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
15152  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
15153  lt_c_name_lib_hook="\
15154  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
15155  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
15156else
15157  # Disable hooks by default.
15158  lt_cv_sys_global_symbol_to_import=
15159  lt_cdecl_hook=
15160  lt_c_name_hook=
15161  lt_c_name_lib_hook=
15162fi
15163
15164# Transform an extracted symbol line into a proper C declaration.
15165# Some systems (esp. on ia64) link data and code symbols differently,
15166# so use this general approach.
15167lt_cv_sys_global_symbol_to_cdecl="sed -n"\
15168$lt_cdecl_hook\
15169" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
15170" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
15171
15172# Transform an extracted symbol line into symbol name and symbol address
15173lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
15174$lt_c_name_hook\
15175" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
15176" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
15177
15178# Transform an extracted symbol line into symbol name with lib prefix and
15179# symbol address.
15180lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
15181$lt_c_name_lib_hook\
15182" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
15183" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
15184" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
15185
15186# Handle CRLF in mingw tool chain
15187opt_cr=
15188case $build_os in
15189mingw*)
15190  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15191  ;;
15192esac
15193
15194# Try without a prefix underscore, then with it.
15195for ac_symprfx in "" "_"; do
15196
15197  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15198  symxfrm="\\1 $ac_symprfx\\2 \\2"
15199
15200  # Write the raw and C identifiers.
15201  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15202    # Fake it for dumpbin and say T for any non-static function,
15203    # D for any global variable and I for any imported variable.
15204    # Also find C++ and __fastcall symbols from MSVC++,
15205    # which start with @ or ?.
15206    lt_cv_sys_global_symbol_pipe="$AWK '"\
15207"     {last_section=section; section=\$ 3};"\
15208"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
15209"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15210"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
15211"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
15212"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
15213"     \$ 0!~/External *\|/{next};"\
15214"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15215"     {if(hide[section]) next};"\
15216"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
15217"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
15218"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
15219"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
15220"     ' prfx=^$ac_symprfx"
15221  else
15222    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15223  fi
15224  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
15225
15226  # Check to see that the pipe works correctly.
15227  pipe_works=no
15228
15229  rm -f conftest*
15230  cat > conftest.$ac_ext <<_LT_EOF
15231#ifdef __cplusplus
15232extern "C" {
15233#endif
15234char nm_test_var;
15235void nm_test_func(void);
15236void nm_test_func(void){}
15237#ifdef __cplusplus
15238}
15239#endif
15240int main(){nm_test_var='a';nm_test_func();return(0);}
15241_LT_EOF
15242
15243  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15244  (eval $ac_compile) 2>&5
15245  ac_status=$?
15246  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15247  test $ac_status = 0; }; then
15248    # Now try to grab the symbols.
15249    nlist=conftest.nm
15250    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
15251  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15252  ac_status=$?
15253  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15254  test $ac_status = 0; } && test -s "$nlist"; then
15255      # Try sorting and uniquifying the output.
15256      if sort "$nlist" | uniq > "$nlist"T; then
15257	mv -f "$nlist"T "$nlist"
15258      else
15259	rm -f "$nlist"T
15260      fi
15261
15262      # Make sure that we snagged all the symbols we need.
15263      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15264	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15265	  cat <<_LT_EOF > conftest.$ac_ext
15266/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
15267#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
15268/* DATA imports from DLLs on WIN32 can't be const, because runtime
15269   relocations are performed -- see ld's documentation on pseudo-relocs.  */
15270# define LT_DLSYM_CONST
15271#elif defined __osf__
15272/* This system does not cope well with relocations in const data.  */
15273# define LT_DLSYM_CONST
15274#else
15275# define LT_DLSYM_CONST const
15276#endif
15277
15278#ifdef __cplusplus
15279extern "C" {
15280#endif
15281
15282_LT_EOF
15283	  # Now generate the symbol file.
15284	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15285
15286	  cat <<_LT_EOF >> conftest.$ac_ext
15287
15288/* The mapping between symbol names and symbols.  */
15289LT_DLSYM_CONST struct {
15290  const char *name;
15291  void       *address;
15292}
15293lt__PROGRAM__LTX_preloaded_symbols[] =
15294{
15295  { "@PROGRAM@", (void *) 0 },
15296_LT_EOF
15297	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15298	  cat <<\_LT_EOF >> conftest.$ac_ext
15299  {0, (void *) 0}
15300};
15301
15302/* This works around a problem in FreeBSD linker */
15303#ifdef FREEBSD_WORKAROUND
15304static const void *lt_preloaded_setup() {
15305  return lt__PROGRAM__LTX_preloaded_symbols;
15306}
15307#endif
15308
15309#ifdef __cplusplus
15310}
15311#endif
15312_LT_EOF
15313	  # Now try linking the two files.
15314	  mv conftest.$ac_objext conftstm.$ac_objext
15315	  lt_globsym_save_LIBS=$LIBS
15316	  lt_globsym_save_CFLAGS=$CFLAGS
15317	  LIBS=conftstm.$ac_objext
15318	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15319	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15320  (eval $ac_link) 2>&5
15321  ac_status=$?
15322  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15323  test $ac_status = 0; } && test -s conftest$ac_exeext; then
15324	    pipe_works=yes
15325	  fi
15326	  LIBS=$lt_globsym_save_LIBS
15327	  CFLAGS=$lt_globsym_save_CFLAGS
15328	else
15329	  echo "cannot find nm_test_func in $nlist" >&5
15330	fi
15331      else
15332	echo "cannot find nm_test_var in $nlist" >&5
15333      fi
15334    else
15335      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15336    fi
15337  else
15338    echo "$progname: failed program was:" >&5
15339    cat conftest.$ac_ext >&5
15340  fi
15341  rm -rf conftest* conftst*
15342
15343  # Do not use the global_symbol_pipe unless it works.
15344  if test yes = "$pipe_works"; then
15345    break
15346  else
15347    lt_cv_sys_global_symbol_pipe=
15348  fi
15349done
15350
15351fi
15352
15353if test -z "$lt_cv_sys_global_symbol_pipe"; then
15354  lt_cv_sys_global_symbol_to_cdecl=
15355fi
15356if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15358$as_echo "failed" >&6; }
15359else
15360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15361$as_echo "ok" >&6; }
15362fi
15363
15364# Response file support.
15365if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15366  nm_file_list_spec='@'
15367elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
15368  nm_file_list_spec='@'
15369fi
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
15408$as_echo_n "checking for sysroot... " >&6; }
15409
15410# Check whether --with-sysroot was given.
15411if test "${with_sysroot+set}" = set; then :
15412  withval=$with_sysroot;
15413else
15414  with_sysroot=no
15415fi
15416
15417
15418lt_sysroot=
15419case $with_sysroot in #(
15420 yes)
15421   if test yes = "$GCC"; then
15422     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
15423   fi
15424   ;; #(
15425 /*)
15426   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
15427   ;; #(
15428 no|'')
15429   ;; #(
15430 *)
15431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
15432$as_echo "$with_sysroot" >&6; }
15433   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
15434   ;;
15435esac
15436
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
15438$as_echo "${lt_sysroot:-no}" >&6; }
15439
15440
15441
15442
15443
15444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
15445$as_echo_n "checking for a working dd... " >&6; }
15446if ${ac_cv_path_lt_DD+:} false; then :
15447  $as_echo_n "(cached) " >&6
15448else
15449  printf 0123456789abcdef0123456789abcdef >conftest.i
15450cat conftest.i conftest.i >conftest2.i
15451: ${lt_DD:=$DD}
15452if test -z "$lt_DD"; then
15453  ac_path_lt_DD_found=false
15454  # Loop through the user's path and test for each of PROGNAME-LIST
15455  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15456for as_dir in $PATH
15457do
15458  IFS=$as_save_IFS
15459  test -z "$as_dir" && as_dir=.
15460    for ac_prog in dd; do
15461    for ac_exec_ext in '' $ac_executable_extensions; do
15462      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
15463      as_fn_executable_p "$ac_path_lt_DD" || continue
15464if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
15465  cmp -s conftest.i conftest.out \
15466  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
15467fi
15468      $ac_path_lt_DD_found && break 3
15469    done
15470  done
15471  done
15472IFS=$as_save_IFS
15473  if test -z "$ac_cv_path_lt_DD"; then
15474    :
15475  fi
15476else
15477  ac_cv_path_lt_DD=$lt_DD
15478fi
15479
15480rm -f conftest.i conftest2.i conftest.out
15481fi
15482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
15483$as_echo "$ac_cv_path_lt_DD" >&6; }
15484
15485
15486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
15487$as_echo_n "checking how to truncate binary pipes... " >&6; }
15488if ${lt_cv_truncate_bin+:} false; then :
15489  $as_echo_n "(cached) " >&6
15490else
15491  printf 0123456789abcdef0123456789abcdef >conftest.i
15492cat conftest.i conftest.i >conftest2.i
15493lt_cv_truncate_bin=
15494if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
15495  cmp -s conftest.i conftest.out \
15496  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
15497fi
15498rm -f conftest.i conftest2.i conftest.out
15499test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
15500fi
15501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
15502$as_echo "$lt_cv_truncate_bin" >&6; }
15503
15504
15505
15506
15507
15508
15509
15510# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15511func_cc_basename ()
15512{
15513    for cc_temp in $*""; do
15514      case $cc_temp in
15515        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15516        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15517        \-*) ;;
15518        *) break;;
15519      esac
15520    done
15521    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15522}
15523
15524# Check whether --enable-libtool-lock was given.
15525if test "${enable_libtool_lock+set}" = set; then :
15526  enableval=$enable_libtool_lock;
15527fi
15528
15529test no = "$enable_libtool_lock" || enable_libtool_lock=yes
15530
15531# Some flags need to be propagated to the compiler or linker for good
15532# libtool support.
15533case $host in
15534ia64-*-hpux*)
15535  # Find out what ABI is being produced by ac_compile, and set mode
15536  # options accordingly.
15537  echo 'int i;' > conftest.$ac_ext
15538  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15539  (eval $ac_compile) 2>&5
15540  ac_status=$?
15541  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15542  test $ac_status = 0; }; then
15543    case `/usr/bin/file conftest.$ac_objext` in
15544      *ELF-32*)
15545	HPUX_IA64_MODE=32
15546	;;
15547      *ELF-64*)
15548	HPUX_IA64_MODE=64
15549	;;
15550    esac
15551  fi
15552  rm -rf conftest*
15553  ;;
15554*-*-irix6*)
15555  # Find out what ABI is being produced by ac_compile, and set linker
15556  # options accordingly.
15557  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15558  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15559  (eval $ac_compile) 2>&5
15560  ac_status=$?
15561  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15562  test $ac_status = 0; }; then
15563    if test yes = "$lt_cv_prog_gnu_ld"; then
15564      case `/usr/bin/file conftest.$ac_objext` in
15565	*32-bit*)
15566	  LD="${LD-ld} -melf32bsmip"
15567	  ;;
15568	*N32*)
15569	  LD="${LD-ld} -melf32bmipn32"
15570	  ;;
15571	*64-bit*)
15572	  LD="${LD-ld} -melf64bmip"
15573	;;
15574      esac
15575    else
15576      case `/usr/bin/file conftest.$ac_objext` in
15577	*32-bit*)
15578	  LD="${LD-ld} -32"
15579	  ;;
15580	*N32*)
15581	  LD="${LD-ld} -n32"
15582	  ;;
15583	*64-bit*)
15584	  LD="${LD-ld} -64"
15585	  ;;
15586      esac
15587    fi
15588  fi
15589  rm -rf conftest*
15590  ;;
15591
15592mips64*-*linux*)
15593  # Find out what ABI is being produced by ac_compile, and set linker
15594  # options accordingly.
15595  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15596  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15597  (eval $ac_compile) 2>&5
15598  ac_status=$?
15599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15600  test $ac_status = 0; }; then
15601    emul=elf
15602    case `/usr/bin/file conftest.$ac_objext` in
15603      *32-bit*)
15604	emul="${emul}32"
15605	;;
15606      *64-bit*)
15607	emul="${emul}64"
15608	;;
15609    esac
15610    case `/usr/bin/file conftest.$ac_objext` in
15611      *MSB*)
15612	emul="${emul}btsmip"
15613	;;
15614      *LSB*)
15615	emul="${emul}ltsmip"
15616	;;
15617    esac
15618    case `/usr/bin/file conftest.$ac_objext` in
15619      *N32*)
15620	emul="${emul}n32"
15621	;;
15622    esac
15623    LD="${LD-ld} -m $emul"
15624  fi
15625  rm -rf conftest*
15626  ;;
15627
15628x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15629s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15630  # Find out what ABI is being produced by ac_compile, and set linker
15631  # options accordingly.  Note that the listed cases only cover the
15632  # situations where additional linker options are needed (such as when
15633  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
15634  # vice versa); the common cases where no linker options are needed do
15635  # not appear in the list.
15636  echo 'int i;' > conftest.$ac_ext
15637  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15638  (eval $ac_compile) 2>&5
15639  ac_status=$?
15640  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15641  test $ac_status = 0; }; then
15642    case `/usr/bin/file conftest.o` in
15643      *32-bit*)
15644	case $host in
15645	  x86_64-*kfreebsd*-gnu)
15646	    LD="${LD-ld} -m elf_i386_fbsd"
15647	    ;;
15648	  x86_64-*linux*)
15649	    case `/usr/bin/file conftest.o` in
15650	      *x86-64*)
15651		LD="${LD-ld} -m elf32_x86_64"
15652		;;
15653	      *)
15654		LD="${LD-ld} -m elf_i386"
15655		;;
15656	    esac
15657	    ;;
15658	  powerpc64le-*linux*)
15659	    LD="${LD-ld} -m elf32lppclinux"
15660	    ;;
15661	  powerpc64-*linux*)
15662	    LD="${LD-ld} -m elf32ppclinux"
15663	    ;;
15664	  s390x-*linux*)
15665	    LD="${LD-ld} -m elf_s390"
15666	    ;;
15667	  sparc64-*linux*)
15668	    LD="${LD-ld} -m elf32_sparc"
15669	    ;;
15670	esac
15671	;;
15672      *64-bit*)
15673	case $host in
15674	  x86_64-*kfreebsd*-gnu)
15675	    LD="${LD-ld} -m elf_x86_64_fbsd"
15676	    ;;
15677	  x86_64-*linux*)
15678	    LD="${LD-ld} -m elf_x86_64"
15679	    ;;
15680	  powerpcle-*linux*|powerpc64le-*linux*)
15681	    LD="${LD-ld} -m elf64lppc"
15682	    ;;
15683	  powerpc-*linux*|powerpc64-*linux*)
15684	    LD="${LD-ld} -m elf64ppc"
15685	    ;;
15686	  s390*-*linux*|s390*-*tpf*)
15687	    LD="${LD-ld} -m elf64_s390"
15688	    ;;
15689	  sparc*-*linux*)
15690	    LD="${LD-ld} -m elf64_sparc"
15691	    ;;
15692	esac
15693	;;
15694    esac
15695  fi
15696  rm -rf conftest*
15697  ;;
15698
15699*-*-sco3.2v5*)
15700  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15701  SAVE_CFLAGS=$CFLAGS
15702  CFLAGS="$CFLAGS -belf"
15703  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
15704$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
15705if ${lt_cv_cc_needs_belf+:} false; then :
15706  $as_echo_n "(cached) " >&6
15707else
15708  ac_ext=c
15709ac_cpp='$CPP $CPPFLAGS'
15710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15712ac_compiler_gnu=$ac_cv_c_compiler_gnu
15713
15714     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15715/* end confdefs.h.  */
15716
15717int
15718main ()
15719{
15720
15721  ;
15722  return 0;
15723}
15724_ACEOF
15725if ac_fn_c_try_link "$LINENO"; then :
15726  lt_cv_cc_needs_belf=yes
15727else
15728  lt_cv_cc_needs_belf=no
15729fi
15730rm -f core conftest.err conftest.$ac_objext \
15731    conftest$ac_exeext conftest.$ac_ext
15732     ac_ext=c
15733ac_cpp='$CPP $CPPFLAGS'
15734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15736ac_compiler_gnu=$ac_cv_c_compiler_gnu
15737
15738fi
15739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15740$as_echo "$lt_cv_cc_needs_belf" >&6; }
15741  if test yes != "$lt_cv_cc_needs_belf"; then
15742    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15743    CFLAGS=$SAVE_CFLAGS
15744  fi
15745  ;;
15746*-*solaris*)
15747  # Find out what ABI is being produced by ac_compile, and set linker
15748  # options accordingly.
15749  echo 'int i;' > conftest.$ac_ext
15750  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15751  (eval $ac_compile) 2>&5
15752  ac_status=$?
15753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15754  test $ac_status = 0; }; then
15755    case `/usr/bin/file conftest.o` in
15756    *64-bit*)
15757      case $lt_cv_prog_gnu_ld in
15758      yes*)
15759        case $host in
15760        i?86-*-solaris*|x86_64-*-solaris*)
15761          LD="${LD-ld} -m elf_x86_64"
15762          ;;
15763        sparc*-*-solaris*)
15764          LD="${LD-ld} -m elf64_sparc"
15765          ;;
15766        esac
15767        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
15768        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
15769          LD=${LD-ld}_sol2
15770        fi
15771        ;;
15772      *)
15773	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15774	  LD="${LD-ld} -64"
15775	fi
15776	;;
15777      esac
15778      ;;
15779    esac
15780  fi
15781  rm -rf conftest*
15782  ;;
15783esac
15784
15785need_locks=$enable_libtool_lock
15786
15787if test -n "$ac_tool_prefix"; then
15788  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
15789set dummy ${ac_tool_prefix}mt; ac_word=$2
15790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15791$as_echo_n "checking for $ac_word... " >&6; }
15792if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
15793  $as_echo_n "(cached) " >&6
15794else
15795  if test -n "$MANIFEST_TOOL"; then
15796  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
15797else
15798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15799for as_dir in $PATH
15800do
15801  IFS=$as_save_IFS
15802  test -z "$as_dir" && as_dir=.
15803    for ac_exec_ext in '' $ac_executable_extensions; do
15804  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15805    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
15806    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15807    break 2
15808  fi
15809done
15810  done
15811IFS=$as_save_IFS
15812
15813fi
15814fi
15815MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
15816if test -n "$MANIFEST_TOOL"; then
15817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
15818$as_echo "$MANIFEST_TOOL" >&6; }
15819else
15820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15821$as_echo "no" >&6; }
15822fi
15823
15824
15825fi
15826if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
15827  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
15828  # Extract the first word of "mt", so it can be a program name with args.
15829set dummy mt; ac_word=$2
15830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15831$as_echo_n "checking for $ac_word... " >&6; }
15832if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
15833  $as_echo_n "(cached) " >&6
15834else
15835  if test -n "$ac_ct_MANIFEST_TOOL"; then
15836  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
15837else
15838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15839for as_dir in $PATH
15840do
15841  IFS=$as_save_IFS
15842  test -z "$as_dir" && as_dir=.
15843    for ac_exec_ext in '' $ac_executable_extensions; do
15844  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15845    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
15846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15847    break 2
15848  fi
15849done
15850  done
15851IFS=$as_save_IFS
15852
15853fi
15854fi
15855ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
15856if test -n "$ac_ct_MANIFEST_TOOL"; then
15857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
15858$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
15859else
15860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15861$as_echo "no" >&6; }
15862fi
15863
15864  if test "x$ac_ct_MANIFEST_TOOL" = x; then
15865    MANIFEST_TOOL=":"
15866  else
15867    case $cross_compiling:$ac_tool_warned in
15868yes:)
15869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15871ac_tool_warned=yes ;;
15872esac
15873    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
15874  fi
15875else
15876  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
15877fi
15878
15879test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
15880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
15881$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
15882if ${lt_cv_path_mainfest_tool+:} false; then :
15883  $as_echo_n "(cached) " >&6
15884else
15885  lt_cv_path_mainfest_tool=no
15886  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
15887  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
15888  cat conftest.err >&5
15889  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
15890    lt_cv_path_mainfest_tool=yes
15891  fi
15892  rm -f conftest*
15893fi
15894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
15895$as_echo "$lt_cv_path_mainfest_tool" >&6; }
15896if test yes != "$lt_cv_path_mainfest_tool"; then
15897  MANIFEST_TOOL=:
15898fi
15899
15900
15901
15902
15903
15904
15905  case $host_os in
15906    rhapsody* | darwin*)
15907    if test -n "$ac_tool_prefix"; then
15908  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15909set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15911$as_echo_n "checking for $ac_word... " >&6; }
15912if ${ac_cv_prog_DSYMUTIL+:} false; then :
15913  $as_echo_n "(cached) " >&6
15914else
15915  if test -n "$DSYMUTIL"; then
15916  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15917else
15918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15919for as_dir in $PATH
15920do
15921  IFS=$as_save_IFS
15922  test -z "$as_dir" && as_dir=.
15923    for ac_exec_ext in '' $ac_executable_extensions; do
15924  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15925    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15926    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15927    break 2
15928  fi
15929done
15930  done
15931IFS=$as_save_IFS
15932
15933fi
15934fi
15935DSYMUTIL=$ac_cv_prog_DSYMUTIL
15936if test -n "$DSYMUTIL"; then
15937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15938$as_echo "$DSYMUTIL" >&6; }
15939else
15940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15941$as_echo "no" >&6; }
15942fi
15943
15944
15945fi
15946if test -z "$ac_cv_prog_DSYMUTIL"; then
15947  ac_ct_DSYMUTIL=$DSYMUTIL
15948  # Extract the first word of "dsymutil", so it can be a program name with args.
15949set dummy dsymutil; ac_word=$2
15950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15951$as_echo_n "checking for $ac_word... " >&6; }
15952if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15953  $as_echo_n "(cached) " >&6
15954else
15955  if test -n "$ac_ct_DSYMUTIL"; then
15956  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15957else
15958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15959for as_dir in $PATH
15960do
15961  IFS=$as_save_IFS
15962  test -z "$as_dir" && as_dir=.
15963    for ac_exec_ext in '' $ac_executable_extensions; do
15964  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15965    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15966    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15967    break 2
15968  fi
15969done
15970  done
15971IFS=$as_save_IFS
15972
15973fi
15974fi
15975ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15976if test -n "$ac_ct_DSYMUTIL"; then
15977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15978$as_echo "$ac_ct_DSYMUTIL" >&6; }
15979else
15980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15981$as_echo "no" >&6; }
15982fi
15983
15984  if test "x$ac_ct_DSYMUTIL" = x; then
15985    DSYMUTIL=":"
15986  else
15987    case $cross_compiling:$ac_tool_warned in
15988yes:)
15989{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15991ac_tool_warned=yes ;;
15992esac
15993    DSYMUTIL=$ac_ct_DSYMUTIL
15994  fi
15995else
15996  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15997fi
15998
15999    if test -n "$ac_tool_prefix"; then
16000  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
16001set dummy ${ac_tool_prefix}nmedit; ac_word=$2
16002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16003$as_echo_n "checking for $ac_word... " >&6; }
16004if ${ac_cv_prog_NMEDIT+:} false; then :
16005  $as_echo_n "(cached) " >&6
16006else
16007  if test -n "$NMEDIT"; then
16008  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
16009else
16010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16011for as_dir in $PATH
16012do
16013  IFS=$as_save_IFS
16014  test -z "$as_dir" && as_dir=.
16015    for ac_exec_ext in '' $ac_executable_extensions; do
16016  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16017    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
16018    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16019    break 2
16020  fi
16021done
16022  done
16023IFS=$as_save_IFS
16024
16025fi
16026fi
16027NMEDIT=$ac_cv_prog_NMEDIT
16028if test -n "$NMEDIT"; then
16029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
16030$as_echo "$NMEDIT" >&6; }
16031else
16032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16033$as_echo "no" >&6; }
16034fi
16035
16036
16037fi
16038if test -z "$ac_cv_prog_NMEDIT"; then
16039  ac_ct_NMEDIT=$NMEDIT
16040  # Extract the first word of "nmedit", so it can be a program name with args.
16041set dummy nmedit; ac_word=$2
16042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16043$as_echo_n "checking for $ac_word... " >&6; }
16044if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
16045  $as_echo_n "(cached) " >&6
16046else
16047  if test -n "$ac_ct_NMEDIT"; then
16048  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
16049else
16050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16051for as_dir in $PATH
16052do
16053  IFS=$as_save_IFS
16054  test -z "$as_dir" && as_dir=.
16055    for ac_exec_ext in '' $ac_executable_extensions; do
16056  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16057    ac_cv_prog_ac_ct_NMEDIT="nmedit"
16058    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16059    break 2
16060  fi
16061done
16062  done
16063IFS=$as_save_IFS
16064
16065fi
16066fi
16067ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
16068if test -n "$ac_ct_NMEDIT"; then
16069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
16070$as_echo "$ac_ct_NMEDIT" >&6; }
16071else
16072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16073$as_echo "no" >&6; }
16074fi
16075
16076  if test "x$ac_ct_NMEDIT" = x; then
16077    NMEDIT=":"
16078  else
16079    case $cross_compiling:$ac_tool_warned in
16080yes:)
16081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16083ac_tool_warned=yes ;;
16084esac
16085    NMEDIT=$ac_ct_NMEDIT
16086  fi
16087else
16088  NMEDIT="$ac_cv_prog_NMEDIT"
16089fi
16090
16091    if test -n "$ac_tool_prefix"; then
16092  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
16093set dummy ${ac_tool_prefix}lipo; ac_word=$2
16094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16095$as_echo_n "checking for $ac_word... " >&6; }
16096if ${ac_cv_prog_LIPO+:} false; then :
16097  $as_echo_n "(cached) " >&6
16098else
16099  if test -n "$LIPO"; then
16100  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
16101else
16102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16103for as_dir in $PATH
16104do
16105  IFS=$as_save_IFS
16106  test -z "$as_dir" && as_dir=.
16107    for ac_exec_ext in '' $ac_executable_extensions; do
16108  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16109    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
16110    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16111    break 2
16112  fi
16113done
16114  done
16115IFS=$as_save_IFS
16116
16117fi
16118fi
16119LIPO=$ac_cv_prog_LIPO
16120if test -n "$LIPO"; then
16121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
16122$as_echo "$LIPO" >&6; }
16123else
16124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16125$as_echo "no" >&6; }
16126fi
16127
16128
16129fi
16130if test -z "$ac_cv_prog_LIPO"; then
16131  ac_ct_LIPO=$LIPO
16132  # Extract the first word of "lipo", so it can be a program name with args.
16133set dummy lipo; ac_word=$2
16134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16135$as_echo_n "checking for $ac_word... " >&6; }
16136if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
16137  $as_echo_n "(cached) " >&6
16138else
16139  if test -n "$ac_ct_LIPO"; then
16140  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
16141else
16142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16143for as_dir in $PATH
16144do
16145  IFS=$as_save_IFS
16146  test -z "$as_dir" && as_dir=.
16147    for ac_exec_ext in '' $ac_executable_extensions; do
16148  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16149    ac_cv_prog_ac_ct_LIPO="lipo"
16150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16151    break 2
16152  fi
16153done
16154  done
16155IFS=$as_save_IFS
16156
16157fi
16158fi
16159ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
16160if test -n "$ac_ct_LIPO"; then
16161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
16162$as_echo "$ac_ct_LIPO" >&6; }
16163else
16164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16165$as_echo "no" >&6; }
16166fi
16167
16168  if test "x$ac_ct_LIPO" = x; then
16169    LIPO=":"
16170  else
16171    case $cross_compiling:$ac_tool_warned in
16172yes:)
16173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16175ac_tool_warned=yes ;;
16176esac
16177    LIPO=$ac_ct_LIPO
16178  fi
16179else
16180  LIPO="$ac_cv_prog_LIPO"
16181fi
16182
16183    if test -n "$ac_tool_prefix"; then
16184  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
16185set dummy ${ac_tool_prefix}otool; ac_word=$2
16186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16187$as_echo_n "checking for $ac_word... " >&6; }
16188if ${ac_cv_prog_OTOOL+:} false; then :
16189  $as_echo_n "(cached) " >&6
16190else
16191  if test -n "$OTOOL"; then
16192  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
16193else
16194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16195for as_dir in $PATH
16196do
16197  IFS=$as_save_IFS
16198  test -z "$as_dir" && as_dir=.
16199    for ac_exec_ext in '' $ac_executable_extensions; do
16200  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16201    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
16202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16203    break 2
16204  fi
16205done
16206  done
16207IFS=$as_save_IFS
16208
16209fi
16210fi
16211OTOOL=$ac_cv_prog_OTOOL
16212if test -n "$OTOOL"; then
16213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
16214$as_echo "$OTOOL" >&6; }
16215else
16216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16217$as_echo "no" >&6; }
16218fi
16219
16220
16221fi
16222if test -z "$ac_cv_prog_OTOOL"; then
16223  ac_ct_OTOOL=$OTOOL
16224  # Extract the first word of "otool", so it can be a program name with args.
16225set dummy otool; ac_word=$2
16226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16227$as_echo_n "checking for $ac_word... " >&6; }
16228if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
16229  $as_echo_n "(cached) " >&6
16230else
16231  if test -n "$ac_ct_OTOOL"; then
16232  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16233else
16234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16235for as_dir in $PATH
16236do
16237  IFS=$as_save_IFS
16238  test -z "$as_dir" && as_dir=.
16239    for ac_exec_ext in '' $ac_executable_extensions; do
16240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16241    ac_cv_prog_ac_ct_OTOOL="otool"
16242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16243    break 2
16244  fi
16245done
16246  done
16247IFS=$as_save_IFS
16248
16249fi
16250fi
16251ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16252if test -n "$ac_ct_OTOOL"; then
16253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
16254$as_echo "$ac_ct_OTOOL" >&6; }
16255else
16256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16257$as_echo "no" >&6; }
16258fi
16259
16260  if test "x$ac_ct_OTOOL" = x; then
16261    OTOOL=":"
16262  else
16263    case $cross_compiling:$ac_tool_warned in
16264yes:)
16265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16267ac_tool_warned=yes ;;
16268esac
16269    OTOOL=$ac_ct_OTOOL
16270  fi
16271else
16272  OTOOL="$ac_cv_prog_OTOOL"
16273fi
16274
16275    if test -n "$ac_tool_prefix"; then
16276  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
16277set dummy ${ac_tool_prefix}otool64; ac_word=$2
16278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16279$as_echo_n "checking for $ac_word... " >&6; }
16280if ${ac_cv_prog_OTOOL64+:} false; then :
16281  $as_echo_n "(cached) " >&6
16282else
16283  if test -n "$OTOOL64"; then
16284  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16285else
16286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16287for as_dir in $PATH
16288do
16289  IFS=$as_save_IFS
16290  test -z "$as_dir" && as_dir=.
16291    for ac_exec_ext in '' $ac_executable_extensions; do
16292  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16293    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
16294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16295    break 2
16296  fi
16297done
16298  done
16299IFS=$as_save_IFS
16300
16301fi
16302fi
16303OTOOL64=$ac_cv_prog_OTOOL64
16304if test -n "$OTOOL64"; then
16305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
16306$as_echo "$OTOOL64" >&6; }
16307else
16308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16309$as_echo "no" >&6; }
16310fi
16311
16312
16313fi
16314if test -z "$ac_cv_prog_OTOOL64"; then
16315  ac_ct_OTOOL64=$OTOOL64
16316  # Extract the first word of "otool64", so it can be a program name with args.
16317set dummy otool64; ac_word=$2
16318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16319$as_echo_n "checking for $ac_word... " >&6; }
16320if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16321  $as_echo_n "(cached) " >&6
16322else
16323  if test -n "$ac_ct_OTOOL64"; then
16324  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16325else
16326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16327for as_dir in $PATH
16328do
16329  IFS=$as_save_IFS
16330  test -z "$as_dir" && as_dir=.
16331    for ac_exec_ext in '' $ac_executable_extensions; do
16332  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16333    ac_cv_prog_ac_ct_OTOOL64="otool64"
16334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16335    break 2
16336  fi
16337done
16338  done
16339IFS=$as_save_IFS
16340
16341fi
16342fi
16343ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16344if test -n "$ac_ct_OTOOL64"; then
16345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
16346$as_echo "$ac_ct_OTOOL64" >&6; }
16347else
16348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16349$as_echo "no" >&6; }
16350fi
16351
16352  if test "x$ac_ct_OTOOL64" = x; then
16353    OTOOL64=":"
16354  else
16355    case $cross_compiling:$ac_tool_warned in
16356yes:)
16357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16359ac_tool_warned=yes ;;
16360esac
16361    OTOOL64=$ac_ct_OTOOL64
16362  fi
16363else
16364  OTOOL64="$ac_cv_prog_OTOOL64"
16365fi
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
16394$as_echo_n "checking for -single_module linker flag... " >&6; }
16395if ${lt_cv_apple_cc_single_mod+:} false; then :
16396  $as_echo_n "(cached) " >&6
16397else
16398  lt_cv_apple_cc_single_mod=no
16399      if test -z "$LT_MULTI_MODULE"; then
16400	# By default we will add the -single_module flag. You can override
16401	# by either setting the environment variable LT_MULTI_MODULE
16402	# non-empty at configure time, or by adding -multi_module to the
16403	# link flags.
16404	rm -rf libconftest.dylib*
16405	echo "int foo(void){return 1;}" > conftest.c
16406	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16407-dynamiclib -Wl,-single_module conftest.c" >&5
16408	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16409	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16410        _lt_result=$?
16411	# If there is a non-empty error log, and "single_module"
16412	# appears in it, assume the flag caused a linker warning
16413        if test -s conftest.err && $GREP single_module conftest.err; then
16414	  cat conftest.err >&5
16415	# Otherwise, if the output was created with a 0 exit code from
16416	# the compiler, it worked.
16417	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
16418	  lt_cv_apple_cc_single_mod=yes
16419	else
16420	  cat conftest.err >&5
16421	fi
16422	rm -rf libconftest.dylib*
16423	rm -f conftest.*
16424      fi
16425fi
16426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
16427$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16428
16429    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
16430$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
16431if ${lt_cv_ld_exported_symbols_list+:} false; then :
16432  $as_echo_n "(cached) " >&6
16433else
16434  lt_cv_ld_exported_symbols_list=no
16435      save_LDFLAGS=$LDFLAGS
16436      echo "_main" > conftest.sym
16437      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16438      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16439/* end confdefs.h.  */
16440
16441int
16442main ()
16443{
16444
16445  ;
16446  return 0;
16447}
16448_ACEOF
16449if ac_fn_c_try_link "$LINENO"; then :
16450  lt_cv_ld_exported_symbols_list=yes
16451else
16452  lt_cv_ld_exported_symbols_list=no
16453fi
16454rm -f core conftest.err conftest.$ac_objext \
16455    conftest$ac_exeext conftest.$ac_ext
16456	LDFLAGS=$save_LDFLAGS
16457
16458fi
16459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
16460$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16461
16462    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
16463$as_echo_n "checking for -force_load linker flag... " >&6; }
16464if ${lt_cv_ld_force_load+:} false; then :
16465  $as_echo_n "(cached) " >&6
16466else
16467  lt_cv_ld_force_load=no
16468      cat > conftest.c << _LT_EOF
16469int forced_loaded() { return 2;}
16470_LT_EOF
16471      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
16472      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16473      echo "$AR cru libconftest.a conftest.o" >&5
16474      $AR cru libconftest.a conftest.o 2>&5
16475      echo "$RANLIB libconftest.a" >&5
16476      $RANLIB libconftest.a 2>&5
16477      cat > conftest.c << _LT_EOF
16478int main() { return 0;}
16479_LT_EOF
16480      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
16481      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16482      _lt_result=$?
16483      if test -s conftest.err && $GREP force_load conftest.err; then
16484	cat conftest.err >&5
16485      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
16486	lt_cv_ld_force_load=yes
16487      else
16488	cat conftest.err >&5
16489      fi
16490        rm -f conftest.err libconftest.a conftest conftest.c
16491        rm -rf conftest.dSYM
16492
16493fi
16494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
16495$as_echo "$lt_cv_ld_force_load" >&6; }
16496    case $host_os in
16497    rhapsody* | darwin1.[012])
16498      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
16499    darwin1.*)
16500      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
16501    darwin*) # darwin 5.x on
16502      # if running on 10.5 or later, the deployment target defaults
16503      # to the OS version, if on x86, and 10.4, the deployment
16504      # target defaults to 10.4. Don't you love it?
16505      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
16506	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
16507	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
16508	10.[012][,.]*)
16509	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
16510	10.*)
16511	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
16512      esac
16513    ;;
16514  esac
16515    if test yes = "$lt_cv_apple_cc_single_mod"; then
16516      _lt_dar_single_mod='$single_module'
16517    fi
16518    if test yes = "$lt_cv_ld_exported_symbols_list"; then
16519      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
16520    else
16521      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
16522    fi
16523    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
16524      _lt_dsymutil='~$DSYMUTIL $lib || :'
16525    else
16526      _lt_dsymutil=
16527    fi
16528    ;;
16529  esac
16530
16531# func_munge_path_list VARIABLE PATH
16532# -----------------------------------
16533# VARIABLE is name of variable containing _space_ separated list of
16534# directories to be munged by the contents of PATH, which is string
16535# having a format:
16536# "DIR[:DIR]:"
16537#       string "DIR[ DIR]" will be prepended to VARIABLE
16538# ":DIR[:DIR]"
16539#       string "DIR[ DIR]" will be appended to VARIABLE
16540# "DIRP[:DIRP]::[DIRA:]DIRA"
16541#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16542#       "DIRA[ DIRA]" will be appended to VARIABLE
16543# "DIR[:DIR]"
16544#       VARIABLE will be replaced by "DIR[ DIR]"
16545func_munge_path_list ()
16546{
16547    case x$2 in
16548    x)
16549        ;;
16550    *:)
16551        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16552        ;;
16553    x:*)
16554        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16555        ;;
16556    *::*)
16557        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16558        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16559        ;;
16560    *)
16561        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16562        ;;
16563    esac
16564}
16565
16566for ac_header in dlfcn.h
16567do :
16568  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
16569"
16570if test "x$ac_cv_header_dlfcn_h" = xyes; then :
16571  cat >>confdefs.h <<_ACEOF
16572#define HAVE_DLFCN_H 1
16573_ACEOF
16574
16575fi
16576
16577done
16578
16579
16580
16581
16582
16583# Set options
16584# Check whether --enable-static was given.
16585if test "${enable_static+set}" = set; then :
16586  enableval=$enable_static; p=${PACKAGE-default}
16587    case $enableval in
16588    yes) enable_static=yes ;;
16589    no) enable_static=no ;;
16590    *)
16591     enable_static=no
16592      # Look at the argument we got.  We use all the common list separators.
16593      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16594      for pkg in $enableval; do
16595	IFS=$lt_save_ifs
16596	if test "X$pkg" = "X$p"; then
16597	  enable_static=yes
16598	fi
16599      done
16600      IFS=$lt_save_ifs
16601      ;;
16602    esac
16603else
16604  enable_static=no
16605fi
16606
16607
16608
16609
16610
16611
16612
16613enable_win32_dll=yes
16614
16615case $host in
16616*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
16617  if test -n "$ac_tool_prefix"; then
16618  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
16619set dummy ${ac_tool_prefix}as; ac_word=$2
16620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16621$as_echo_n "checking for $ac_word... " >&6; }
16622if ${ac_cv_prog_AS+:} false; then :
16623  $as_echo_n "(cached) " >&6
16624else
16625  if test -n "$AS"; then
16626  ac_cv_prog_AS="$AS" # Let the user override the test.
16627else
16628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16629for as_dir in $PATH
16630do
16631  IFS=$as_save_IFS
16632  test -z "$as_dir" && as_dir=.
16633    for ac_exec_ext in '' $ac_executable_extensions; do
16634  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16635    ac_cv_prog_AS="${ac_tool_prefix}as"
16636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16637    break 2
16638  fi
16639done
16640  done
16641IFS=$as_save_IFS
16642
16643fi
16644fi
16645AS=$ac_cv_prog_AS
16646if test -n "$AS"; then
16647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
16648$as_echo "$AS" >&6; }
16649else
16650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16651$as_echo "no" >&6; }
16652fi
16653
16654
16655fi
16656if test -z "$ac_cv_prog_AS"; then
16657  ac_ct_AS=$AS
16658  # Extract the first word of "as", so it can be a program name with args.
16659set dummy as; ac_word=$2
16660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16661$as_echo_n "checking for $ac_word... " >&6; }
16662if ${ac_cv_prog_ac_ct_AS+:} false; then :
16663  $as_echo_n "(cached) " >&6
16664else
16665  if test -n "$ac_ct_AS"; then
16666  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
16667else
16668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16669for as_dir in $PATH
16670do
16671  IFS=$as_save_IFS
16672  test -z "$as_dir" && as_dir=.
16673    for ac_exec_ext in '' $ac_executable_extensions; do
16674  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16675    ac_cv_prog_ac_ct_AS="as"
16676    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16677    break 2
16678  fi
16679done
16680  done
16681IFS=$as_save_IFS
16682
16683fi
16684fi
16685ac_ct_AS=$ac_cv_prog_ac_ct_AS
16686if test -n "$ac_ct_AS"; then
16687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
16688$as_echo "$ac_ct_AS" >&6; }
16689else
16690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16691$as_echo "no" >&6; }
16692fi
16693
16694  if test "x$ac_ct_AS" = x; then
16695    AS="false"
16696  else
16697    case $cross_compiling:$ac_tool_warned in
16698yes:)
16699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16701ac_tool_warned=yes ;;
16702esac
16703    AS=$ac_ct_AS
16704  fi
16705else
16706  AS="$ac_cv_prog_AS"
16707fi
16708
16709  if test -n "$ac_tool_prefix"; then
16710  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
16711set dummy ${ac_tool_prefix}dlltool; ac_word=$2
16712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16713$as_echo_n "checking for $ac_word... " >&6; }
16714if ${ac_cv_prog_DLLTOOL+:} false; then :
16715  $as_echo_n "(cached) " >&6
16716else
16717  if test -n "$DLLTOOL"; then
16718  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
16719else
16720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16721for as_dir in $PATH
16722do
16723  IFS=$as_save_IFS
16724  test -z "$as_dir" && as_dir=.
16725    for ac_exec_ext in '' $ac_executable_extensions; do
16726  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16727    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
16728    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16729    break 2
16730  fi
16731done
16732  done
16733IFS=$as_save_IFS
16734
16735fi
16736fi
16737DLLTOOL=$ac_cv_prog_DLLTOOL
16738if test -n "$DLLTOOL"; then
16739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
16740$as_echo "$DLLTOOL" >&6; }
16741else
16742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16743$as_echo "no" >&6; }
16744fi
16745
16746
16747fi
16748if test -z "$ac_cv_prog_DLLTOOL"; then
16749  ac_ct_DLLTOOL=$DLLTOOL
16750  # Extract the first word of "dlltool", so it can be a program name with args.
16751set dummy dlltool; ac_word=$2
16752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16753$as_echo_n "checking for $ac_word... " >&6; }
16754if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
16755  $as_echo_n "(cached) " >&6
16756else
16757  if test -n "$ac_ct_DLLTOOL"; then
16758  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
16759else
16760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16761for as_dir in $PATH
16762do
16763  IFS=$as_save_IFS
16764  test -z "$as_dir" && as_dir=.
16765    for ac_exec_ext in '' $ac_executable_extensions; do
16766  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16767    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
16768    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16769    break 2
16770  fi
16771done
16772  done
16773IFS=$as_save_IFS
16774
16775fi
16776fi
16777ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
16778if test -n "$ac_ct_DLLTOOL"; then
16779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
16780$as_echo "$ac_ct_DLLTOOL" >&6; }
16781else
16782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16783$as_echo "no" >&6; }
16784fi
16785
16786  if test "x$ac_ct_DLLTOOL" = x; then
16787    DLLTOOL="false"
16788  else
16789    case $cross_compiling:$ac_tool_warned in
16790yes:)
16791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16793ac_tool_warned=yes ;;
16794esac
16795    DLLTOOL=$ac_ct_DLLTOOL
16796  fi
16797else
16798  DLLTOOL="$ac_cv_prog_DLLTOOL"
16799fi
16800
16801  if test -n "$ac_tool_prefix"; then
16802  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
16803set dummy ${ac_tool_prefix}objdump; ac_word=$2
16804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16805$as_echo_n "checking for $ac_word... " >&6; }
16806if ${ac_cv_prog_OBJDUMP+:} false; then :
16807  $as_echo_n "(cached) " >&6
16808else
16809  if test -n "$OBJDUMP"; then
16810  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16811else
16812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16813for as_dir in $PATH
16814do
16815  IFS=$as_save_IFS
16816  test -z "$as_dir" && as_dir=.
16817    for ac_exec_ext in '' $ac_executable_extensions; do
16818  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16819    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
16820    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16821    break 2
16822  fi
16823done
16824  done
16825IFS=$as_save_IFS
16826
16827fi
16828fi
16829OBJDUMP=$ac_cv_prog_OBJDUMP
16830if test -n "$OBJDUMP"; then
16831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
16832$as_echo "$OBJDUMP" >&6; }
16833else
16834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16835$as_echo "no" >&6; }
16836fi
16837
16838
16839fi
16840if test -z "$ac_cv_prog_OBJDUMP"; then
16841  ac_ct_OBJDUMP=$OBJDUMP
16842  # Extract the first word of "objdump", so it can be a program name with args.
16843set dummy objdump; ac_word=$2
16844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16845$as_echo_n "checking for $ac_word... " >&6; }
16846if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
16847  $as_echo_n "(cached) " >&6
16848else
16849  if test -n "$ac_ct_OBJDUMP"; then
16850  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16851else
16852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16853for as_dir in $PATH
16854do
16855  IFS=$as_save_IFS
16856  test -z "$as_dir" && as_dir=.
16857    for ac_exec_ext in '' $ac_executable_extensions; do
16858  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16859    ac_cv_prog_ac_ct_OBJDUMP="objdump"
16860    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16861    break 2
16862  fi
16863done
16864  done
16865IFS=$as_save_IFS
16866
16867fi
16868fi
16869ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16870if test -n "$ac_ct_OBJDUMP"; then
16871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
16872$as_echo "$ac_ct_OBJDUMP" >&6; }
16873else
16874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16875$as_echo "no" >&6; }
16876fi
16877
16878  if test "x$ac_ct_OBJDUMP" = x; then
16879    OBJDUMP="false"
16880  else
16881    case $cross_compiling:$ac_tool_warned in
16882yes:)
16883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16885ac_tool_warned=yes ;;
16886esac
16887    OBJDUMP=$ac_ct_OBJDUMP
16888  fi
16889else
16890  OBJDUMP="$ac_cv_prog_OBJDUMP"
16891fi
16892
16893  ;;
16894esac
16895
16896test -z "$AS" && AS=as
16897
16898
16899
16900
16901
16902test -z "$DLLTOOL" && DLLTOOL=dlltool
16903
16904
16905
16906
16907
16908test -z "$OBJDUMP" && OBJDUMP=objdump
16909
16910
16911
16912
16913
16914
16915
16916        enable_dlopen=no
16917
16918
16919
16920            # Check whether --enable-shared was given.
16921if test "${enable_shared+set}" = set; then :
16922  enableval=$enable_shared; p=${PACKAGE-default}
16923    case $enableval in
16924    yes) enable_shared=yes ;;
16925    no) enable_shared=no ;;
16926    *)
16927      enable_shared=no
16928      # Look at the argument we got.  We use all the common list separators.
16929      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16930      for pkg in $enableval; do
16931	IFS=$lt_save_ifs
16932	if test "X$pkg" = "X$p"; then
16933	  enable_shared=yes
16934	fi
16935      done
16936      IFS=$lt_save_ifs
16937      ;;
16938    esac
16939else
16940  enable_shared=yes
16941fi
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953# Check whether --with-pic was given.
16954if test "${with_pic+set}" = set; then :
16955  withval=$with_pic; lt_p=${PACKAGE-default}
16956    case $withval in
16957    yes|no) pic_mode=$withval ;;
16958    *)
16959      pic_mode=default
16960      # Look at the argument we got.  We use all the common list separators.
16961      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16962      for lt_pkg in $withval; do
16963	IFS=$lt_save_ifs
16964	if test "X$lt_pkg" = "X$lt_p"; then
16965	  pic_mode=yes
16966	fi
16967      done
16968      IFS=$lt_save_ifs
16969      ;;
16970    esac
16971else
16972  pic_mode=default
16973fi
16974
16975
16976
16977
16978
16979
16980
16981
16982  # Check whether --enable-fast-install was given.
16983if test "${enable_fast_install+set}" = set; then :
16984  enableval=$enable_fast_install; p=${PACKAGE-default}
16985    case $enableval in
16986    yes) enable_fast_install=yes ;;
16987    no) enable_fast_install=no ;;
16988    *)
16989      enable_fast_install=no
16990      # Look at the argument we got.  We use all the common list separators.
16991      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16992      for pkg in $enableval; do
16993	IFS=$lt_save_ifs
16994	if test "X$pkg" = "X$p"; then
16995	  enable_fast_install=yes
16996	fi
16997      done
16998      IFS=$lt_save_ifs
16999      ;;
17000    esac
17001else
17002  enable_fast_install=yes
17003fi
17004
17005
17006
17007
17008
17009
17010
17011
17012  shared_archive_member_spec=
17013case $host,$enable_shared in
17014power*-*-aix[5-9]*,yes)
17015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
17016$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
17017
17018# Check whether --with-aix-soname was given.
17019if test "${with_aix_soname+set}" = set; then :
17020  withval=$with_aix_soname; case $withval in
17021    aix|svr4|both)
17022      ;;
17023    *)
17024      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
17025      ;;
17026    esac
17027    lt_cv_with_aix_soname=$with_aix_soname
17028else
17029  if ${lt_cv_with_aix_soname+:} false; then :
17030  $as_echo_n "(cached) " >&6
17031else
17032  lt_cv_with_aix_soname=aix
17033fi
17034
17035    with_aix_soname=$lt_cv_with_aix_soname
17036fi
17037
17038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
17039$as_echo "$with_aix_soname" >&6; }
17040  if test aix != "$with_aix_soname"; then
17041    # For the AIX way of multilib, we name the shared archive member
17042    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
17043    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
17044    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
17045    # the AIX toolchain works better with OBJECT_MODE set (default 32).
17046    if test 64 = "${OBJECT_MODE-32}"; then
17047      shared_archive_member_spec=shr_64
17048    else
17049      shared_archive_member_spec=shr
17050    fi
17051  fi
17052  ;;
17053*)
17054  with_aix_soname=aix
17055  ;;
17056esac
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067# This can be used to rebuild libtool when needed
17068LIBTOOL_DEPS=$ltmain
17069
17070# Always use our own libtool.
17071LIBTOOL='$(SHELL) $(top_builddir)/libtool'
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102test -z "$LN_S" && LN_S="ln -s"
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117if test -n "${ZSH_VERSION+set}"; then
17118   setopt NO_GLOB_SUBST
17119fi
17120
17121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
17122$as_echo_n "checking for objdir... " >&6; }
17123if ${lt_cv_objdir+:} false; then :
17124  $as_echo_n "(cached) " >&6
17125else
17126  rm -f .libs 2>/dev/null
17127mkdir .libs 2>/dev/null
17128if test -d .libs; then
17129  lt_cv_objdir=.libs
17130else
17131  # MS-DOS does not allow filenames that begin with a dot.
17132  lt_cv_objdir=_libs
17133fi
17134rmdir .libs 2>/dev/null
17135fi
17136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
17137$as_echo "$lt_cv_objdir" >&6; }
17138objdir=$lt_cv_objdir
17139
17140
17141
17142
17143
17144cat >>confdefs.h <<_ACEOF
17145#define LT_OBJDIR "$lt_cv_objdir/"
17146_ACEOF
17147
17148
17149
17150
17151case $host_os in
17152aix3*)
17153  # AIX sometimes has problems with the GCC collect2 program.  For some
17154  # reason, if we set the COLLECT_NAMES environment variable, the problems
17155  # vanish in a puff of smoke.
17156  if test set != "${COLLECT_NAMES+set}"; then
17157    COLLECT_NAMES=
17158    export COLLECT_NAMES
17159  fi
17160  ;;
17161esac
17162
17163# Global variables:
17164ofile=libtool
17165can_build_shared=yes
17166
17167# All known linkers require a '.a' archive for static linking (except MSVC,
17168# which needs '.lib').
17169libext=a
17170
17171with_gnu_ld=$lt_cv_prog_gnu_ld
17172
17173old_CC=$CC
17174old_CFLAGS=$CFLAGS
17175
17176# Set sane defaults for various variables
17177test -z "$CC" && CC=cc
17178test -z "$LTCC" && LTCC=$CC
17179test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
17180test -z "$LD" && LD=ld
17181test -z "$ac_objext" && ac_objext=o
17182
17183func_cc_basename $compiler
17184cc_basename=$func_cc_basename_result
17185
17186
17187# Only perform the check for file, if the check method requires it
17188test -z "$MAGIC_CMD" && MAGIC_CMD=file
17189case $deplibs_check_method in
17190file_magic*)
17191  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
17192    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
17193$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
17194if ${lt_cv_path_MAGIC_CMD+:} false; then :
17195  $as_echo_n "(cached) " >&6
17196else
17197  case $MAGIC_CMD in
17198[\\/*] |  ?:[\\/]*)
17199  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
17200  ;;
17201*)
17202  lt_save_MAGIC_CMD=$MAGIC_CMD
17203  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
17204  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
17205  for ac_dir in $ac_dummy; do
17206    IFS=$lt_save_ifs
17207    test -z "$ac_dir" && ac_dir=.
17208    if test -f "$ac_dir/${ac_tool_prefix}file"; then
17209      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
17210      if test -n "$file_magic_test_file"; then
17211	case $deplibs_check_method in
17212	"file_magic "*)
17213	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
17214	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
17215	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
17216	    $EGREP "$file_magic_regex" > /dev/null; then
17217	    :
17218	  else
17219	    cat <<_LT_EOF 1>&2
17220
17221*** Warning: the command libtool uses to detect shared libraries,
17222*** $file_magic_cmd, produces output that libtool cannot recognize.
17223*** The result is that libtool may fail to recognize shared libraries
17224*** as such.  This will affect the creation of libtool libraries that
17225*** depend on shared libraries, but programs linked with such libtool
17226*** libraries will work regardless of this problem.  Nevertheless, you
17227*** may want to report the problem to your system manager and/or to
17228*** bug-libtool@gnu.org
17229
17230_LT_EOF
17231	  fi ;;
17232	esac
17233      fi
17234      break
17235    fi
17236  done
17237  IFS=$lt_save_ifs
17238  MAGIC_CMD=$lt_save_MAGIC_CMD
17239  ;;
17240esac
17241fi
17242
17243MAGIC_CMD=$lt_cv_path_MAGIC_CMD
17244if test -n "$MAGIC_CMD"; then
17245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
17246$as_echo "$MAGIC_CMD" >&6; }
17247else
17248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17249$as_echo "no" >&6; }
17250fi
17251
17252
17253
17254
17255
17256if test -z "$lt_cv_path_MAGIC_CMD"; then
17257  if test -n "$ac_tool_prefix"; then
17258    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
17259$as_echo_n "checking for file... " >&6; }
17260if ${lt_cv_path_MAGIC_CMD+:} false; then :
17261  $as_echo_n "(cached) " >&6
17262else
17263  case $MAGIC_CMD in
17264[\\/*] |  ?:[\\/]*)
17265  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
17266  ;;
17267*)
17268  lt_save_MAGIC_CMD=$MAGIC_CMD
17269  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
17270  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
17271  for ac_dir in $ac_dummy; do
17272    IFS=$lt_save_ifs
17273    test -z "$ac_dir" && ac_dir=.
17274    if test -f "$ac_dir/file"; then
17275      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
17276      if test -n "$file_magic_test_file"; then
17277	case $deplibs_check_method in
17278	"file_magic "*)
17279	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
17280	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
17281	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
17282	    $EGREP "$file_magic_regex" > /dev/null; then
17283	    :
17284	  else
17285	    cat <<_LT_EOF 1>&2
17286
17287*** Warning: the command libtool uses to detect shared libraries,
17288*** $file_magic_cmd, produces output that libtool cannot recognize.
17289*** The result is that libtool may fail to recognize shared libraries
17290*** as such.  This will affect the creation of libtool libraries that
17291*** depend on shared libraries, but programs linked with such libtool
17292*** libraries will work regardless of this problem.  Nevertheless, you
17293*** may want to report the problem to your system manager and/or to
17294*** bug-libtool@gnu.org
17295
17296_LT_EOF
17297	  fi ;;
17298	esac
17299      fi
17300      break
17301    fi
17302  done
17303  IFS=$lt_save_ifs
17304  MAGIC_CMD=$lt_save_MAGIC_CMD
17305  ;;
17306esac
17307fi
17308
17309MAGIC_CMD=$lt_cv_path_MAGIC_CMD
17310if test -n "$MAGIC_CMD"; then
17311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
17312$as_echo "$MAGIC_CMD" >&6; }
17313else
17314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17315$as_echo "no" >&6; }
17316fi
17317
17318
17319  else
17320    MAGIC_CMD=:
17321  fi
17322fi
17323
17324  fi
17325  ;;
17326esac
17327
17328# Use C for the default configuration in the libtool script
17329
17330lt_save_CC=$CC
17331ac_ext=c
17332ac_cpp='$CPP $CPPFLAGS'
17333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17335ac_compiler_gnu=$ac_cv_c_compiler_gnu
17336
17337
17338# Source file extension for C test sources.
17339ac_ext=c
17340
17341# Object file extension for compiled C test sources.
17342objext=o
17343objext=$objext
17344
17345# Code to be used in simple compile tests
17346lt_simple_compile_test_code="int some_variable = 0;"
17347
17348# Code to be used in simple link tests
17349lt_simple_link_test_code='int main(){return(0);}'
17350
17351
17352
17353
17354
17355
17356
17357# If no C compiler was specified, use CC.
17358LTCC=${LTCC-"$CC"}
17359
17360# If no C compiler flags were specified, use CFLAGS.
17361LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17362
17363# Allow CC to be a program name with arguments.
17364compiler=$CC
17365
17366# Save the default compiler, since it gets overwritten when the other
17367# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
17368compiler_DEFAULT=$CC
17369
17370# save warnings/boilerplate of simple test code
17371ac_outfile=conftest.$ac_objext
17372echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17373eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17374_lt_compiler_boilerplate=`cat conftest.err`
17375$RM conftest*
17376
17377ac_outfile=conftest.$ac_objext
17378echo "$lt_simple_link_test_code" >conftest.$ac_ext
17379eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17380_lt_linker_boilerplate=`cat conftest.err`
17381$RM -r conftest*
17382
17383
17384## CAVEAT EMPTOR:
17385## There is no encapsulation within the following macros, do not change
17386## the running order or otherwise move them around unless you know exactly
17387## what you are doing...
17388if test -n "$compiler"; then
17389
17390lt_prog_compiler_no_builtin_flag=
17391
17392if test yes = "$GCC"; then
17393  case $cc_basename in
17394  nvcc*)
17395    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
17396  *)
17397    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
17398  esac
17399
17400  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17401$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17402if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
17403  $as_echo_n "(cached) " >&6
17404else
17405  lt_cv_prog_compiler_rtti_exceptions=no
17406   ac_outfile=conftest.$ac_objext
17407   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17408   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
17409   # Insert the option either (1) after the last *FLAGS variable, or
17410   # (2) before a word containing "conftest.", or (3) at the end.
17411   # Note that $ac_compile itself does not contain backslashes and begins
17412   # with a dollar sign (not a hyphen), so the echo should work correctly.
17413   # The option is referenced via a variable to avoid confusing sed.
17414   lt_compile=`echo "$ac_compile" | $SED \
17415   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17416   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17417   -e 's:$: $lt_compiler_flag:'`
17418   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17419   (eval "$lt_compile" 2>conftest.err)
17420   ac_status=$?
17421   cat conftest.err >&5
17422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423   if (exit $ac_status) && test -s "$ac_outfile"; then
17424     # The compiler can only warn and ignore the option if not recognized
17425     # So say no if there are warnings other than the usual output.
17426     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17427     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17428     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17429       lt_cv_prog_compiler_rtti_exceptions=yes
17430     fi
17431   fi
17432   $RM conftest*
17433
17434fi
17435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17436$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17437
17438if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
17439    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
17440else
17441    :
17442fi
17443
17444fi
17445
17446
17447
17448
17449
17450
17451  lt_prog_compiler_wl=
17452lt_prog_compiler_pic=
17453lt_prog_compiler_static=
17454
17455
17456  if test yes = "$GCC"; then
17457    lt_prog_compiler_wl='-Wl,'
17458    lt_prog_compiler_static='-static'
17459
17460    case $host_os in
17461      aix*)
17462      # All AIX code is PIC.
17463      if test ia64 = "$host_cpu"; then
17464	# AIX 5 now supports IA64 processor
17465	lt_prog_compiler_static='-Bstatic'
17466      fi
17467      lt_prog_compiler_pic='-fPIC'
17468      ;;
17469
17470    amigaos*)
17471      case $host_cpu in
17472      powerpc)
17473            # see comment about AmigaOS4 .so support
17474            lt_prog_compiler_pic='-fPIC'
17475        ;;
17476      m68k)
17477            # FIXME: we need at least 68020 code to build shared libraries, but
17478            # adding the '-m68020' flag to GCC prevents building anything better,
17479            # like '-m68040'.
17480            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
17481        ;;
17482      esac
17483      ;;
17484
17485    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17486      # PIC is the default for these OSes.
17487      ;;
17488
17489    mingw* | cygwin* | pw32* | os2* | cegcc*)
17490      # This hack is so that the source file can tell whether it is being
17491      # built for inclusion in a dll (and should export symbols for example).
17492      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17493      # (--disable-auto-import) libraries
17494      lt_prog_compiler_pic='-DDLL_EXPORT'
17495      case $host_os in
17496      os2*)
17497	lt_prog_compiler_static='$wl-static'
17498	;;
17499      esac
17500      ;;
17501
17502    darwin* | rhapsody*)
17503      # PIC is the default on this platform
17504      # Common symbols not allowed in MH_DYLIB files
17505      lt_prog_compiler_pic='-fno-common'
17506      ;;
17507
17508    haiku*)
17509      # PIC is the default for Haiku.
17510      # The "-static" flag exists, but is broken.
17511      lt_prog_compiler_static=
17512      ;;
17513
17514    hpux*)
17515      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17516      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17517      # sets the default TLS model and affects inlining.
17518      case $host_cpu in
17519      hppa*64*)
17520	# +Z the default
17521	;;
17522      *)
17523	lt_prog_compiler_pic='-fPIC'
17524	;;
17525      esac
17526      ;;
17527
17528    interix[3-9]*)
17529      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17530      # Instead, we relocate shared libraries at runtime.
17531      ;;
17532
17533    msdosdjgpp*)
17534      # Just because we use GCC doesn't mean we suddenly get shared libraries
17535      # on systems that don't support them.
17536      lt_prog_compiler_can_build_shared=no
17537      enable_shared=no
17538      ;;
17539
17540    *nto* | *qnx*)
17541      # QNX uses GNU C++, but need to define -shared option too, otherwise
17542      # it will coredump.
17543      lt_prog_compiler_pic='-fPIC -shared'
17544      ;;
17545
17546    sysv4*MP*)
17547      if test -d /usr/nec; then
17548	lt_prog_compiler_pic=-Kconform_pic
17549      fi
17550      ;;
17551
17552    *)
17553      lt_prog_compiler_pic='-fPIC'
17554      ;;
17555    esac
17556
17557    case $cc_basename in
17558    nvcc*) # Cuda Compiler Driver 2.2
17559      lt_prog_compiler_wl='-Xlinker '
17560      if test -n "$lt_prog_compiler_pic"; then
17561        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
17562      fi
17563      ;;
17564    esac
17565  else
17566    # PORTME Check for flag to pass linker flags through the system compiler.
17567    case $host_os in
17568    aix*)
17569      lt_prog_compiler_wl='-Wl,'
17570      if test ia64 = "$host_cpu"; then
17571	# AIX 5 now supports IA64 processor
17572	lt_prog_compiler_static='-Bstatic'
17573      else
17574	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
17575      fi
17576      ;;
17577
17578    darwin* | rhapsody*)
17579      # PIC is the default on this platform
17580      # Common symbols not allowed in MH_DYLIB files
17581      lt_prog_compiler_pic='-fno-common'
17582      case $cc_basename in
17583      nagfor*)
17584        # NAG Fortran compiler
17585        lt_prog_compiler_wl='-Wl,-Wl,,'
17586        lt_prog_compiler_pic='-PIC'
17587        lt_prog_compiler_static='-Bstatic'
17588        ;;
17589      esac
17590      ;;
17591
17592    mingw* | cygwin* | pw32* | os2* | cegcc*)
17593      # This hack is so that the source file can tell whether it is being
17594      # built for inclusion in a dll (and should export symbols for example).
17595      lt_prog_compiler_pic='-DDLL_EXPORT'
17596      case $host_os in
17597      os2*)
17598	lt_prog_compiler_static='$wl-static'
17599	;;
17600      esac
17601      ;;
17602
17603    hpux9* | hpux10* | hpux11*)
17604      lt_prog_compiler_wl='-Wl,'
17605      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17606      # not for PA HP-UX.
17607      case $host_cpu in
17608      hppa*64*|ia64*)
17609	# +Z the default
17610	;;
17611      *)
17612	lt_prog_compiler_pic='+Z'
17613	;;
17614      esac
17615      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17616      lt_prog_compiler_static='$wl-a ${wl}archive'
17617      ;;
17618
17619    irix5* | irix6* | nonstopux*)
17620      lt_prog_compiler_wl='-Wl,'
17621      # PIC (with -KPIC) is the default.
17622      lt_prog_compiler_static='-non_shared'
17623      ;;
17624
17625    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17626      case $cc_basename in
17627      # old Intel for x86_64, which still supported -KPIC.
17628      ecc*)
17629	lt_prog_compiler_wl='-Wl,'
17630	lt_prog_compiler_pic='-KPIC'
17631	lt_prog_compiler_static='-static'
17632        ;;
17633      # icc used to be incompatible with GCC.
17634      # ICC 10 doesn't accept -KPIC any more.
17635      icc* | ifort*)
17636	lt_prog_compiler_wl='-Wl,'
17637	lt_prog_compiler_pic='-fPIC'
17638	lt_prog_compiler_static='-static'
17639        ;;
17640      # Lahey Fortran 8.1.
17641      lf95*)
17642	lt_prog_compiler_wl='-Wl,'
17643	lt_prog_compiler_pic='--shared'
17644	lt_prog_compiler_static='--static'
17645	;;
17646      nagfor*)
17647	# NAG Fortran compiler
17648	lt_prog_compiler_wl='-Wl,-Wl,,'
17649	lt_prog_compiler_pic='-PIC'
17650	lt_prog_compiler_static='-Bstatic'
17651	;;
17652      tcc*)
17653	# Fabrice Bellard et al's Tiny C Compiler
17654	lt_prog_compiler_wl='-Wl,'
17655	lt_prog_compiler_pic='-fPIC'
17656	lt_prog_compiler_static='-static'
17657	;;
17658      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17659        # Portland Group compilers (*not* the Pentium gcc compiler,
17660	# which looks to be a dead project)
17661	lt_prog_compiler_wl='-Wl,'
17662	lt_prog_compiler_pic='-fpic'
17663	lt_prog_compiler_static='-Bstatic'
17664        ;;
17665      ccc*)
17666        lt_prog_compiler_wl='-Wl,'
17667        # All Alpha code is PIC.
17668        lt_prog_compiler_static='-non_shared'
17669        ;;
17670      xl* | bgxl* | bgf* | mpixl*)
17671	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17672	lt_prog_compiler_wl='-Wl,'
17673	lt_prog_compiler_pic='-qpic'
17674	lt_prog_compiler_static='-qstaticlink'
17675	;;
17676      *)
17677	case `$CC -V 2>&1 | sed 5q` in
17678	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
17679	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17680	  lt_prog_compiler_pic='-KPIC'
17681	  lt_prog_compiler_static='-Bstatic'
17682	  lt_prog_compiler_wl=''
17683	  ;;
17684	*Sun\ F* | *Sun*Fortran*)
17685	  lt_prog_compiler_pic='-KPIC'
17686	  lt_prog_compiler_static='-Bstatic'
17687	  lt_prog_compiler_wl='-Qoption ld '
17688	  ;;
17689	*Sun\ C*)
17690	  # Sun C 5.9
17691	  lt_prog_compiler_pic='-KPIC'
17692	  lt_prog_compiler_static='-Bstatic'
17693	  lt_prog_compiler_wl='-Wl,'
17694	  ;;
17695        *Intel*\ [CF]*Compiler*)
17696	  lt_prog_compiler_wl='-Wl,'
17697	  lt_prog_compiler_pic='-fPIC'
17698	  lt_prog_compiler_static='-static'
17699	  ;;
17700	*Portland\ Group*)
17701	  lt_prog_compiler_wl='-Wl,'
17702	  lt_prog_compiler_pic='-fpic'
17703	  lt_prog_compiler_static='-Bstatic'
17704	  ;;
17705	esac
17706	;;
17707      esac
17708      ;;
17709
17710    newsos6)
17711      lt_prog_compiler_pic='-KPIC'
17712      lt_prog_compiler_static='-Bstatic'
17713      ;;
17714
17715    *nto* | *qnx*)
17716      # QNX uses GNU C++, but need to define -shared option too, otherwise
17717      # it will coredump.
17718      lt_prog_compiler_pic='-fPIC -shared'
17719      ;;
17720
17721    osf3* | osf4* | osf5*)
17722      lt_prog_compiler_wl='-Wl,'
17723      # All OSF/1 code is PIC.
17724      lt_prog_compiler_static='-non_shared'
17725      ;;
17726
17727    rdos*)
17728      lt_prog_compiler_static='-non_shared'
17729      ;;
17730
17731    solaris*)
17732      lt_prog_compiler_pic='-KPIC'
17733      lt_prog_compiler_static='-Bstatic'
17734      case $cc_basename in
17735      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
17736	lt_prog_compiler_wl='-Qoption ld ';;
17737      *)
17738	lt_prog_compiler_wl='-Wl,';;
17739      esac
17740      ;;
17741
17742    sunos4*)
17743      lt_prog_compiler_wl='-Qoption ld '
17744      lt_prog_compiler_pic='-PIC'
17745      lt_prog_compiler_static='-Bstatic'
17746      ;;
17747
17748    sysv4 | sysv4.2uw2* | sysv4.3*)
17749      lt_prog_compiler_wl='-Wl,'
17750      lt_prog_compiler_pic='-KPIC'
17751      lt_prog_compiler_static='-Bstatic'
17752      ;;
17753
17754    sysv4*MP*)
17755      if test -d /usr/nec; then
17756	lt_prog_compiler_pic='-Kconform_pic'
17757	lt_prog_compiler_static='-Bstatic'
17758      fi
17759      ;;
17760
17761    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17762      lt_prog_compiler_wl='-Wl,'
17763      lt_prog_compiler_pic='-KPIC'
17764      lt_prog_compiler_static='-Bstatic'
17765      ;;
17766
17767    unicos*)
17768      lt_prog_compiler_wl='-Wl,'
17769      lt_prog_compiler_can_build_shared=no
17770      ;;
17771
17772    uts4*)
17773      lt_prog_compiler_pic='-pic'
17774      lt_prog_compiler_static='-Bstatic'
17775      ;;
17776
17777    *)
17778      lt_prog_compiler_can_build_shared=no
17779      ;;
17780    esac
17781  fi
17782
17783case $host_os in
17784  # For platforms that do not support PIC, -DPIC is meaningless:
17785  *djgpp*)
17786    lt_prog_compiler_pic=
17787    ;;
17788  *)
17789    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17790    ;;
17791esac
17792
17793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17794$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17795if ${lt_cv_prog_compiler_pic+:} false; then :
17796  $as_echo_n "(cached) " >&6
17797else
17798  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
17799fi
17800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
17801$as_echo "$lt_cv_prog_compiler_pic" >&6; }
17802lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
17803
17804#
17805# Check to make sure the PIC flag actually works.
17806#
17807if test -n "$lt_prog_compiler_pic"; then
17808  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17809$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17810if ${lt_cv_prog_compiler_pic_works+:} false; then :
17811  $as_echo_n "(cached) " >&6
17812else
17813  lt_cv_prog_compiler_pic_works=no
17814   ac_outfile=conftest.$ac_objext
17815   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17816   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
17817   # Insert the option either (1) after the last *FLAGS variable, or
17818   # (2) before a word containing "conftest.", or (3) at the end.
17819   # Note that $ac_compile itself does not contain backslashes and begins
17820   # with a dollar sign (not a hyphen), so the echo should work correctly.
17821   # The option is referenced via a variable to avoid confusing sed.
17822   lt_compile=`echo "$ac_compile" | $SED \
17823   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17824   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17825   -e 's:$: $lt_compiler_flag:'`
17826   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17827   (eval "$lt_compile" 2>conftest.err)
17828   ac_status=$?
17829   cat conftest.err >&5
17830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831   if (exit $ac_status) && test -s "$ac_outfile"; then
17832     # The compiler can only warn and ignore the option if not recognized
17833     # So say no if there are warnings other than the usual output.
17834     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17835     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17836     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17837       lt_cv_prog_compiler_pic_works=yes
17838     fi
17839   fi
17840   $RM conftest*
17841
17842fi
17843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
17844$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17845
17846if test yes = "$lt_cv_prog_compiler_pic_works"; then
17847    case $lt_prog_compiler_pic in
17848     "" | " "*) ;;
17849     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17850     esac
17851else
17852    lt_prog_compiler_pic=
17853     lt_prog_compiler_can_build_shared=no
17854fi
17855
17856fi
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868#
17869# Check to make sure the static flag actually works.
17870#
17871wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17873$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17874if ${lt_cv_prog_compiler_static_works+:} false; then :
17875  $as_echo_n "(cached) " >&6
17876else
17877  lt_cv_prog_compiler_static_works=no
17878   save_LDFLAGS=$LDFLAGS
17879   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17880   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17881   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17882     # The linker can only warn and ignore the option if not recognized
17883     # So say no if there are warnings
17884     if test -s conftest.err; then
17885       # Append any errors to the config.log.
17886       cat conftest.err 1>&5
17887       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17888       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17889       if diff conftest.exp conftest.er2 >/dev/null; then
17890         lt_cv_prog_compiler_static_works=yes
17891       fi
17892     else
17893       lt_cv_prog_compiler_static_works=yes
17894     fi
17895   fi
17896   $RM -r conftest*
17897   LDFLAGS=$save_LDFLAGS
17898
17899fi
17900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
17901$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17902
17903if test yes = "$lt_cv_prog_compiler_static_works"; then
17904    :
17905else
17906    lt_prog_compiler_static=
17907fi
17908
17909
17910
17911
17912
17913
17914
17915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17916$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17917if ${lt_cv_prog_compiler_c_o+:} false; then :
17918  $as_echo_n "(cached) " >&6
17919else
17920  lt_cv_prog_compiler_c_o=no
17921   $RM -r conftest 2>/dev/null
17922   mkdir conftest
17923   cd conftest
17924   mkdir out
17925   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17926
17927   lt_compiler_flag="-o out/conftest2.$ac_objext"
17928   # Insert the option either (1) after the last *FLAGS variable, or
17929   # (2) before a word containing "conftest.", or (3) at the end.
17930   # Note that $ac_compile itself does not contain backslashes and begins
17931   # with a dollar sign (not a hyphen), so the echo should work correctly.
17932   lt_compile=`echo "$ac_compile" | $SED \
17933   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17934   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17935   -e 's:$: $lt_compiler_flag:'`
17936   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17937   (eval "$lt_compile" 2>out/conftest.err)
17938   ac_status=$?
17939   cat out/conftest.err >&5
17940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17942   then
17943     # The compiler can only warn and ignore the option if not recognized
17944     # So say no if there are warnings
17945     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17946     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17947     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17948       lt_cv_prog_compiler_c_o=yes
17949     fi
17950   fi
17951   chmod u+w . 2>&5
17952   $RM conftest*
17953   # SGI C++ compiler will create directory out/ii_files/ for
17954   # template instantiation
17955   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17956   $RM out/* && rmdir out
17957   cd ..
17958   $RM -r conftest
17959   $RM conftest*
17960
17961fi
17962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17963$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17964
17965
17966
17967
17968
17969
17970  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17971$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17972if ${lt_cv_prog_compiler_c_o+:} false; then :
17973  $as_echo_n "(cached) " >&6
17974else
17975  lt_cv_prog_compiler_c_o=no
17976   $RM -r conftest 2>/dev/null
17977   mkdir conftest
17978   cd conftest
17979   mkdir out
17980   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17981
17982   lt_compiler_flag="-o out/conftest2.$ac_objext"
17983   # Insert the option either (1) after the last *FLAGS variable, or
17984   # (2) before a word containing "conftest.", or (3) at the end.
17985   # Note that $ac_compile itself does not contain backslashes and begins
17986   # with a dollar sign (not a hyphen), so the echo should work correctly.
17987   lt_compile=`echo "$ac_compile" | $SED \
17988   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17989   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17990   -e 's:$: $lt_compiler_flag:'`
17991   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17992   (eval "$lt_compile" 2>out/conftest.err)
17993   ac_status=$?
17994   cat out/conftest.err >&5
17995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17997   then
17998     # The compiler can only warn and ignore the option if not recognized
17999     # So say no if there are warnings
18000     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18001     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18002     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18003       lt_cv_prog_compiler_c_o=yes
18004     fi
18005   fi
18006   chmod u+w . 2>&5
18007   $RM conftest*
18008   # SGI C++ compiler will create directory out/ii_files/ for
18009   # template instantiation
18010   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18011   $RM out/* && rmdir out
18012   cd ..
18013   $RM -r conftest
18014   $RM conftest*
18015
18016fi
18017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
18018$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
18019
18020
18021
18022
18023hard_links=nottested
18024if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
18025  # do not overwrite the value of need_locks provided by the user
18026  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18027$as_echo_n "checking if we can lock with hard links... " >&6; }
18028  hard_links=yes
18029  $RM conftest*
18030  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18031  touch conftest.a
18032  ln conftest.a conftest.b 2>&5 || hard_links=no
18033  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18035$as_echo "$hard_links" >&6; }
18036  if test no = "$hard_links"; then
18037    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
18038$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
18039    need_locks=warn
18040  fi
18041else
18042  need_locks=no
18043fi
18044
18045
18046
18047
18048
18049
18050  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18051$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18052
18053  runpath_var=
18054  allow_undefined_flag=
18055  always_export_symbols=no
18056  archive_cmds=
18057  archive_expsym_cmds=
18058  compiler_needs_object=no
18059  enable_shared_with_static_runtimes=no
18060  export_dynamic_flag_spec=
18061  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18062  hardcode_automatic=no
18063  hardcode_direct=no
18064  hardcode_direct_absolute=no
18065  hardcode_libdir_flag_spec=
18066  hardcode_libdir_separator=
18067  hardcode_minus_L=no
18068  hardcode_shlibpath_var=unsupported
18069  inherit_rpath=no
18070  link_all_deplibs=unknown
18071  module_cmds=
18072  module_expsym_cmds=
18073  old_archive_from_new_cmds=
18074  old_archive_from_expsyms_cmds=
18075  thread_safe_flag_spec=
18076  whole_archive_flag_spec=
18077  # include_expsyms should be a list of space-separated symbols to be *always*
18078  # included in the symbol list
18079  include_expsyms=
18080  # exclude_expsyms can be an extended regexp of symbols to exclude
18081  # it will be wrapped by ' (' and ')$', so one must not match beginning or
18082  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
18083  # as well as any symbol that contains 'd'.
18084  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18085  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18086  # platforms (ab)use it in PIC code, but their linkers get confused if
18087  # the symbol is explicitly referenced.  Since portable code cannot
18088  # rely on this symbol name, it's probably fine to never include it in
18089  # preloaded symbol tables.
18090  # Exclude shared library initialization/finalization symbols.
18091  extract_expsyms_cmds=
18092
18093  case $host_os in
18094  cygwin* | mingw* | pw32* | cegcc*)
18095    # FIXME: the MSVC++ port hasn't been tested in a loooong time
18096    # When not using gcc, we currently assume that we are using
18097    # Microsoft Visual C++.
18098    if test yes != "$GCC"; then
18099      with_gnu_ld=no
18100    fi
18101    ;;
18102  interix*)
18103    # we just hope/assume this is gcc and not c89 (= MSVC++)
18104    with_gnu_ld=yes
18105    ;;
18106  openbsd* | bitrig*)
18107    with_gnu_ld=no
18108    ;;
18109  esac
18110
18111  ld_shlibs=yes
18112
18113  # On some targets, GNU ld is compatible enough with the native linker
18114  # that we're better off using the native interface for both.
18115  lt_use_gnu_ld_interface=no
18116  if test yes = "$with_gnu_ld"; then
18117    case $host_os in
18118      aix*)
18119	# The AIX port of GNU ld has always aspired to compatibility
18120	# with the native linker.  However, as the warning in the GNU ld
18121	# block says, versions before 2.19.5* couldn't really create working
18122	# shared libraries, regardless of the interface used.
18123	case `$LD -v 2>&1` in
18124	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
18125	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
18126	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
18127	  *)
18128	    lt_use_gnu_ld_interface=yes
18129	    ;;
18130	esac
18131	;;
18132      *)
18133	lt_use_gnu_ld_interface=yes
18134	;;
18135    esac
18136  fi
18137
18138  if test yes = "$lt_use_gnu_ld_interface"; then
18139    # If archive_cmds runs LD, not CC, wlarc should be empty
18140    wlarc='$wl'
18141
18142    # Set some defaults for GNU ld with shared library support. These
18143    # are reset later if shared libraries are not supported. Putting them
18144    # here allows them to be overridden if necessary.
18145    runpath_var=LD_RUN_PATH
18146    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18147    export_dynamic_flag_spec='$wl--export-dynamic'
18148    # ancient GNU ld didn't support --whole-archive et. al.
18149    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
18150      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
18151    else
18152      whole_archive_flag_spec=
18153    fi
18154    supports_anon_versioning=no
18155    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
18156      *GNU\ gold*) supports_anon_versioning=yes ;;
18157      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18158      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18159      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18160      *\ 2.11.*) ;; # other 2.11 versions
18161      *) supports_anon_versioning=yes ;;
18162    esac
18163
18164    # See if GNU ld supports shared libraries.
18165    case $host_os in
18166    aix[3-9]*)
18167      # On AIX/PPC, the GNU linker is very broken
18168      if test ia64 != "$host_cpu"; then
18169	ld_shlibs=no
18170	cat <<_LT_EOF 1>&2
18171
18172*** Warning: the GNU linker, at least up to release 2.19, is reported
18173*** to be unable to reliably create shared libraries on AIX.
18174*** Therefore, libtool is disabling shared libraries support.  If you
18175*** really care for shared libraries, you may want to install binutils
18176*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
18177*** You will then need to restart the configuration process.
18178
18179_LT_EOF
18180      fi
18181      ;;
18182
18183    amigaos*)
18184      case $host_cpu in
18185      powerpc)
18186            # see comment about AmigaOS4 .so support
18187            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18188            archive_expsym_cmds=''
18189        ;;
18190      m68k)
18191            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)'
18192            hardcode_libdir_flag_spec='-L$libdir'
18193            hardcode_minus_L=yes
18194        ;;
18195      esac
18196      ;;
18197
18198    beos*)
18199      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18200	allow_undefined_flag=unsupported
18201	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18202	# support --undefined.  This deserves some investigation.  FIXME
18203	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18204      else
18205	ld_shlibs=no
18206      fi
18207      ;;
18208
18209    cygwin* | mingw* | pw32* | cegcc*)
18210      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
18211      # as there is no search path for DLLs.
18212      hardcode_libdir_flag_spec='-L$libdir'
18213      export_dynamic_flag_spec='$wl--export-all-symbols'
18214      allow_undefined_flag=unsupported
18215      always_export_symbols=no
18216      enable_shared_with_static_runtimes=yes
18217      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
18218      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18219
18220      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18221        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18222	# If the export-symbols file already is a .def file, use it as
18223	# is; otherwise, prepend EXPORTS...
18224	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
18225          cp $export_symbols $output_objdir/$soname.def;
18226        else
18227          echo EXPORTS > $output_objdir/$soname.def;
18228          cat $export_symbols >> $output_objdir/$soname.def;
18229        fi~
18230        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18231      else
18232	ld_shlibs=no
18233      fi
18234      ;;
18235
18236    haiku*)
18237      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18238      link_all_deplibs=yes
18239      ;;
18240
18241    os2*)
18242      hardcode_libdir_flag_spec='-L$libdir'
18243      hardcode_minus_L=yes
18244      allow_undefined_flag=unsupported
18245      shrext_cmds=.dll
18246      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18247	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18248	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18249	$ECHO EXPORTS >> $output_objdir/$libname.def~
18250	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
18251	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18252	emximp -o $lib $output_objdir/$libname.def'
18253      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18254	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18255	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18256	$ECHO EXPORTS >> $output_objdir/$libname.def~
18257	prefix_cmds="$SED"~
18258	if test EXPORTS = "`$SED 1q $export_symbols`"; then
18259	  prefix_cmds="$prefix_cmds -e 1d";
18260	fi~
18261	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
18262	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
18263	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18264	emximp -o $lib $output_objdir/$libname.def'
18265      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
18266      enable_shared_with_static_runtimes=yes
18267      ;;
18268
18269    interix[3-9]*)
18270      hardcode_direct=no
18271      hardcode_shlibpath_var=no
18272      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
18273      export_dynamic_flag_spec='$wl-E'
18274      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18275      # Instead, shared libraries are loaded at an image base (0x10000000 by
18276      # default) and relocated if they conflict, which is a slow very memory
18277      # consuming and fragmenting process.  To avoid this, we pick a random,
18278      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18279      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18280      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18281      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'
18282      ;;
18283
18284    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
18285      tmp_diet=no
18286      if test linux-dietlibc = "$host_os"; then
18287	case $cc_basename in
18288	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
18289	esac
18290      fi
18291      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18292	 && test no = "$tmp_diet"
18293      then
18294	tmp_addflag=' $pic_flag'
18295	tmp_sharedflag='-shared'
18296	case $cc_basename,$host_cpu in
18297        pgcc*)				# Portland Group C compiler
18298	  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'
18299	  tmp_addflag=' $pic_flag'
18300	  ;;
18301	pgf77* | pgf90* | pgf95* | pgfortran*)
18302					# Portland Group f77 and f90 compilers
18303	  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'
18304	  tmp_addflag=' $pic_flag -Mnomain' ;;
18305	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
18306	  tmp_addflag=' -i_dynamic' ;;
18307	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
18308	  tmp_addflag=' -i_dynamic -nofor_main' ;;
18309	ifc* | ifort*)			# Intel Fortran compiler
18310	  tmp_addflag=' -nofor_main' ;;
18311	lf95*)				# Lahey Fortran 8.1
18312	  whole_archive_flag_spec=
18313	  tmp_sharedflag='--shared' ;;
18314        nagfor*)                        # NAGFOR 5.3
18315          tmp_sharedflag='-Wl,-shared' ;;
18316	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18317	  tmp_sharedflag='-qmkshrobj'
18318	  tmp_addflag= ;;
18319	nvcc*)	# Cuda Compiler Driver 2.2
18320	  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'
18321	  compiler_needs_object=yes
18322	  ;;
18323	esac
18324	case `$CC -V 2>&1 | sed 5q` in
18325	*Sun\ C*)			# Sun C 5.9
18326	  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'
18327	  compiler_needs_object=yes
18328	  tmp_sharedflag='-G' ;;
18329	*Sun\ F*)			# Sun Fortran 8.3
18330	  tmp_sharedflag='-G' ;;
18331	esac
18332	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18333
18334        if test yes = "$supports_anon_versioning"; then
18335          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
18336            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18337            echo "local: *; };" >> $output_objdir/$libname.ver~
18338            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
18339        fi
18340
18341	case $cc_basename in
18342	tcc*)
18343	  export_dynamic_flag_spec='-rdynamic'
18344	  ;;
18345	xlf* | bgf* | bgxlf* | mpixlf*)
18346	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18347	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
18348	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18349	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
18350	  if test yes = "$supports_anon_versioning"; then
18351	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
18352              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18353              echo "local: *; };" >> $output_objdir/$libname.ver~
18354              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18355	  fi
18356	  ;;
18357	esac
18358      else
18359        ld_shlibs=no
18360      fi
18361      ;;
18362
18363    netbsd*)
18364      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18365	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18366	wlarc=
18367      else
18368	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18369	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18370      fi
18371      ;;
18372
18373    solaris*)
18374      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18375	ld_shlibs=no
18376	cat <<_LT_EOF 1>&2
18377
18378*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18379*** create shared libraries on Solaris systems.  Therefore, libtool
18380*** is disabling shared libraries support.  We urge you to upgrade GNU
18381*** binutils to release 2.9.1 or newer.  Another option is to modify
18382*** your PATH or compiler configuration so that the native linker is
18383*** used, and then restart.
18384
18385_LT_EOF
18386      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18387	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18388	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18389      else
18390	ld_shlibs=no
18391      fi
18392      ;;
18393
18394    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18395      case `$LD -v 2>&1` in
18396        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18397	ld_shlibs=no
18398	cat <<_LT_EOF 1>&2
18399
18400*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
18401*** reliably create shared libraries on SCO systems.  Therefore, libtool
18402*** is disabling shared libraries support.  We urge you to upgrade GNU
18403*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18404*** your PATH or compiler configuration so that the native linker is
18405*** used, and then restart.
18406
18407_LT_EOF
18408	;;
18409	*)
18410	  # For security reasons, it is highly recommended that you always
18411	  # use absolute paths for naming shared libraries, and exclude the
18412	  # DT_RUNPATH tag from executables and libraries.  But doing so
18413	  # requires that you compile everything twice, which is a pain.
18414	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18415	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18416	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18417	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18418	  else
18419	    ld_shlibs=no
18420	  fi
18421	;;
18422      esac
18423      ;;
18424
18425    sunos4*)
18426      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18427      wlarc=
18428      hardcode_direct=yes
18429      hardcode_shlibpath_var=no
18430      ;;
18431
18432    *)
18433      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18434	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18435	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18436      else
18437	ld_shlibs=no
18438      fi
18439      ;;
18440    esac
18441
18442    if test no = "$ld_shlibs"; then
18443      runpath_var=
18444      hardcode_libdir_flag_spec=
18445      export_dynamic_flag_spec=
18446      whole_archive_flag_spec=
18447    fi
18448  else
18449    # PORTME fill in a description of your system's linker (not GNU ld)
18450    case $host_os in
18451    aix3*)
18452      allow_undefined_flag=unsupported
18453      always_export_symbols=yes
18454      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'
18455      # Note: this linker hardcodes the directories in LIBPATH if there
18456      # are no directories specified by -L.
18457      hardcode_minus_L=yes
18458      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
18459	# Neither direct hardcoding nor static linking is supported with a
18460	# broken collect2.
18461	hardcode_direct=unsupported
18462      fi
18463      ;;
18464
18465    aix[4-9]*)
18466      if test ia64 = "$host_cpu"; then
18467	# On IA64, the linker does run time linking by default, so we don't
18468	# have to do anything special.
18469	aix_use_runtimelinking=no
18470	exp_sym_flag='-Bexport'
18471	no_entry_flag=
18472      else
18473	# If we're using GNU nm, then we don't want the "-C" option.
18474	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
18475	# Without the "-l" option, or with the "-B" option, AIX nm treats
18476	# weak defined symbols like other global defined symbols, whereas
18477	# GNU nm marks them as "W".
18478	# While the 'weak' keyword is ignored in the Export File, we need
18479	# it in the Import File for the 'aix-soname' feature, so we have
18480	# to replace the "-B" option with "-P" for AIX nm.
18481	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18482	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
18483	else
18484	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
18485	fi
18486	aix_use_runtimelinking=no
18487
18488	# Test if we are trying to use run time linking or normal
18489	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18490	# have runtime linking enabled, and use it for executables.
18491	# For shared libraries, we enable/disable runtime linking
18492	# depending on the kind of the shared library created -
18493	# when "with_aix_soname,aix_use_runtimelinking" is:
18494	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
18495	# "aix,yes"  lib.so          shared, rtl:yes, for executables
18496	#            lib.a           static archive
18497	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
18498	#            lib.a(lib.so.V) shared, rtl:no,  for executables
18499	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
18500	#            lib.a(lib.so.V) shared, rtl:no
18501	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
18502	#            lib.a           static archive
18503	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18504	  for ld_flag in $LDFLAGS; do
18505	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
18506	    aix_use_runtimelinking=yes
18507	    break
18508	  fi
18509	  done
18510	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
18511	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
18512	    # so we don't have lib.a shared libs to link our executables.
18513	    # We have to force runtime linking in this case.
18514	    aix_use_runtimelinking=yes
18515	    LDFLAGS="$LDFLAGS -Wl,-brtl"
18516	  fi
18517	  ;;
18518	esac
18519
18520	exp_sym_flag='-bexport'
18521	no_entry_flag='-bnoentry'
18522      fi
18523
18524      # When large executables or shared objects are built, AIX ld can
18525      # have problems creating the table of contents.  If linking a library
18526      # or program results in "error TOC overflow" add -mminimal-toc to
18527      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18528      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18529
18530      archive_cmds=''
18531      hardcode_direct=yes
18532      hardcode_direct_absolute=yes
18533      hardcode_libdir_separator=':'
18534      link_all_deplibs=yes
18535      file_list_spec='$wl-f,'
18536      case $with_aix_soname,$aix_use_runtimelinking in
18537      aix,*) ;; # traditional, no import file
18538      svr4,* | *,yes) # use import file
18539	# The Import File defines what to hardcode.
18540	hardcode_direct=no
18541	hardcode_direct_absolute=no
18542	;;
18543      esac
18544
18545      if test yes = "$GCC"; then
18546	case $host_os in aix4.[012]|aix4.[012].*)
18547	# We only want to do this on AIX 4.2 and lower, the check
18548	# below for broken collect2 doesn't work under 4.3+
18549	  collect2name=`$CC -print-prog-name=collect2`
18550	  if test -f "$collect2name" &&
18551	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18552	  then
18553	  # We have reworked collect2
18554	  :
18555	  else
18556	  # We have old collect2
18557	  hardcode_direct=unsupported
18558	  # It fails to find uninstalled libraries when the uninstalled
18559	  # path is not listed in the libpath.  Setting hardcode_minus_L
18560	  # to unsupported forces relinking
18561	  hardcode_minus_L=yes
18562	  hardcode_libdir_flag_spec='-L$libdir'
18563	  hardcode_libdir_separator=
18564	  fi
18565	  ;;
18566	esac
18567	shared_flag='-shared'
18568	if test yes = "$aix_use_runtimelinking"; then
18569	  shared_flag="$shared_flag "'$wl-G'
18570	fi
18571	# Need to ensure runtime linking is disabled for the traditional
18572	# shared library, or the linker may eventually find shared libraries
18573	# /with/ Import File - we do not want to mix them.
18574	shared_flag_aix='-shared'
18575	shared_flag_svr4='-shared $wl-G'
18576      else
18577	# not using gcc
18578	if test ia64 = "$host_cpu"; then
18579	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18580	# chokes on -Wl,-G. The following line is correct:
18581	  shared_flag='-G'
18582	else
18583	  if test yes = "$aix_use_runtimelinking"; then
18584	    shared_flag='$wl-G'
18585	  else
18586	    shared_flag='$wl-bM:SRE'
18587	  fi
18588	  shared_flag_aix='$wl-bM:SRE'
18589	  shared_flag_svr4='$wl-G'
18590	fi
18591      fi
18592
18593      export_dynamic_flag_spec='$wl-bexpall'
18594      # It seems that -bexpall does not export symbols beginning with
18595      # underscore (_), so it is better to generate a list of symbols to export.
18596      always_export_symbols=yes
18597      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
18598	# Warning - without using the other runtime loading flags (-brtl),
18599	# -berok will link without error, but may produce a broken library.
18600	allow_undefined_flag='-berok'
18601        # Determine the default libpath from the value encoded in an
18602        # empty executable.
18603        if test set = "${lt_cv_aix_libpath+set}"; then
18604  aix_libpath=$lt_cv_aix_libpath
18605else
18606  if ${lt_cv_aix_libpath_+:} false; then :
18607  $as_echo_n "(cached) " >&6
18608else
18609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18610/* end confdefs.h.  */
18611
18612int
18613main ()
18614{
18615
18616  ;
18617  return 0;
18618}
18619_ACEOF
18620if ac_fn_c_try_link "$LINENO"; then :
18621
18622  lt_aix_libpath_sed='
18623      /Import File Strings/,/^$/ {
18624	  /^0/ {
18625	      s/^0  *\([^ ]*\) *$/\1/
18626	      p
18627	  }
18628      }'
18629  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18630  # Check for a 64-bit object if we didn't find anything.
18631  if test -z "$lt_cv_aix_libpath_"; then
18632    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18633  fi
18634fi
18635rm -f core conftest.err conftest.$ac_objext \
18636    conftest$ac_exeext conftest.$ac_ext
18637  if test -z "$lt_cv_aix_libpath_"; then
18638    lt_cv_aix_libpath_=/usr/lib:/lib
18639  fi
18640
18641fi
18642
18643  aix_libpath=$lt_cv_aix_libpath_
18644fi
18645
18646        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
18647        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
18648      else
18649	if test ia64 = "$host_cpu"; then
18650	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
18651	  allow_undefined_flag="-z nodefs"
18652	  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"
18653	else
18654	 # Determine the default libpath from the value encoded in an
18655	 # empty executable.
18656	 if test set = "${lt_cv_aix_libpath+set}"; then
18657  aix_libpath=$lt_cv_aix_libpath
18658else
18659  if ${lt_cv_aix_libpath_+:} false; then :
18660  $as_echo_n "(cached) " >&6
18661else
18662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18663/* end confdefs.h.  */
18664
18665int
18666main ()
18667{
18668
18669  ;
18670  return 0;
18671}
18672_ACEOF
18673if ac_fn_c_try_link "$LINENO"; then :
18674
18675  lt_aix_libpath_sed='
18676      /Import File Strings/,/^$/ {
18677	  /^0/ {
18678	      s/^0  *\([^ ]*\) *$/\1/
18679	      p
18680	  }
18681      }'
18682  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18683  # Check for a 64-bit object if we didn't find anything.
18684  if test -z "$lt_cv_aix_libpath_"; then
18685    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18686  fi
18687fi
18688rm -f core conftest.err conftest.$ac_objext \
18689    conftest$ac_exeext conftest.$ac_ext
18690  if test -z "$lt_cv_aix_libpath_"; then
18691    lt_cv_aix_libpath_=/usr/lib:/lib
18692  fi
18693
18694fi
18695
18696  aix_libpath=$lt_cv_aix_libpath_
18697fi
18698
18699	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
18700	  # Warning - without using the other run time loading flags,
18701	  # -berok will link without error, but may produce a broken library.
18702	  no_undefined_flag=' $wl-bernotok'
18703	  allow_undefined_flag=' $wl-berok'
18704	  if test yes = "$with_gnu_ld"; then
18705	    # We only use this code for GNU lds that support --whole-archive.
18706	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
18707	  else
18708	    # Exported symbols can be pulled into shared objects from archives
18709	    whole_archive_flag_spec='$convenience'
18710	  fi
18711	  archive_cmds_need_lc=yes
18712	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
18713	  # -brtl affects multiple linker settings, -berok does not and is overridden later
18714	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
18715	  if test svr4 != "$with_aix_soname"; then
18716	    # This is similar to how AIX traditionally builds its shared libraries.
18717	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
18718	  fi
18719	  if test aix != "$with_aix_soname"; then
18720	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
18721	  else
18722	    # used by -dlpreopen to get the symbols
18723	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
18724	  fi
18725	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
18726	fi
18727      fi
18728      ;;
18729
18730    amigaos*)
18731      case $host_cpu in
18732      powerpc)
18733            # see comment about AmigaOS4 .so support
18734            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18735            archive_expsym_cmds=''
18736        ;;
18737      m68k)
18738            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)'
18739            hardcode_libdir_flag_spec='-L$libdir'
18740            hardcode_minus_L=yes
18741        ;;
18742      esac
18743      ;;
18744
18745    bsdi[45]*)
18746      export_dynamic_flag_spec=-rdynamic
18747      ;;
18748
18749    cygwin* | mingw* | pw32* | cegcc*)
18750      # When not using gcc, we currently assume that we are using
18751      # Microsoft Visual C++.
18752      # hardcode_libdir_flag_spec is actually meaningless, as there is
18753      # no search path for DLLs.
18754      case $cc_basename in
18755      cl*)
18756	# Native MSVC
18757	hardcode_libdir_flag_spec=' '
18758	allow_undefined_flag=unsupported
18759	always_export_symbols=yes
18760	file_list_spec='@'
18761	# Tell ltmain to make .lib files, not .a files.
18762	libext=lib
18763	# Tell ltmain to make .dll files, not .so files.
18764	shrext_cmds=.dll
18765	# FIXME: Setting linknames here is a bad hack.
18766	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
18767	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
18768            cp "$export_symbols" "$output_objdir/$soname.def";
18769            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
18770          else
18771            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
18772          fi~
18773          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18774          linknames='
18775	# The linker will not automatically build a static lib if we build a DLL.
18776	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
18777	enable_shared_with_static_runtimes=yes
18778	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18779	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18780	# Don't use ranlib
18781	old_postinstall_cmds='chmod 644 $oldlib'
18782	postlink_cmds='lt_outputfile="@OUTPUT@"~
18783          lt_tool_outputfile="@TOOL_OUTPUT@"~
18784          case $lt_outputfile in
18785            *.exe|*.EXE) ;;
18786            *)
18787              lt_outputfile=$lt_outputfile.exe
18788              lt_tool_outputfile=$lt_tool_outputfile.exe
18789              ;;
18790          esac~
18791          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
18792            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18793            $RM "$lt_outputfile.manifest";
18794          fi'
18795	;;
18796      *)
18797	# Assume MSVC wrapper
18798	hardcode_libdir_flag_spec=' '
18799	allow_undefined_flag=unsupported
18800	# Tell ltmain to make .lib files, not .a files.
18801	libext=lib
18802	# Tell ltmain to make .dll files, not .so files.
18803	shrext_cmds=.dll
18804	# FIXME: Setting linknames here is a bad hack.
18805	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18806	# The linker will automatically build a .lib file if we build a DLL.
18807	old_archive_from_new_cmds='true'
18808	# FIXME: Should let the user specify the lib program.
18809	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
18810	enable_shared_with_static_runtimes=yes
18811	;;
18812      esac
18813      ;;
18814
18815    darwin* | rhapsody*)
18816
18817
18818  archive_cmds_need_lc=no
18819  hardcode_direct=no
18820  hardcode_automatic=yes
18821  hardcode_shlibpath_var=unsupported
18822  if test yes = "$lt_cv_ld_force_load"; then
18823    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\"`'
18824
18825  else
18826    whole_archive_flag_spec=''
18827  fi
18828  link_all_deplibs=yes
18829  allow_undefined_flag=$_lt_dar_allow_undefined
18830  case $cc_basename in
18831     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
18832     *) _lt_dar_can_shared=$GCC ;;
18833  esac
18834  if test yes = "$_lt_dar_can_shared"; then
18835    output_verbose_link_cmd=func_echo_all
18836    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
18837    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
18838    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"
18839    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"
18840
18841  else
18842  ld_shlibs=no
18843  fi
18844
18845      ;;
18846
18847    dgux*)
18848      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18849      hardcode_libdir_flag_spec='-L$libdir'
18850      hardcode_shlibpath_var=no
18851      ;;
18852
18853    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18854    # support.  Future versions do this automatically, but an explicit c++rt0.o
18855    # does not break anything, and helps significantly (at the cost of a little
18856    # extra space).
18857    freebsd2.2*)
18858      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18859      hardcode_libdir_flag_spec='-R$libdir'
18860      hardcode_direct=yes
18861      hardcode_shlibpath_var=no
18862      ;;
18863
18864    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18865    freebsd2.*)
18866      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18867      hardcode_direct=yes
18868      hardcode_minus_L=yes
18869      hardcode_shlibpath_var=no
18870      ;;
18871
18872    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18873    freebsd* | dragonfly*)
18874      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18875      hardcode_libdir_flag_spec='-R$libdir'
18876      hardcode_direct=yes
18877      hardcode_shlibpath_var=no
18878      ;;
18879
18880    hpux9*)
18881      if test yes = "$GCC"; then
18882	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
18883      else
18884	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
18885      fi
18886      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
18887      hardcode_libdir_separator=:
18888      hardcode_direct=yes
18889
18890      # hardcode_minus_L: Not really in the search PATH,
18891      # but as the default location of the library.
18892      hardcode_minus_L=yes
18893      export_dynamic_flag_spec='$wl-E'
18894      ;;
18895
18896    hpux10*)
18897      if test yes,no = "$GCC,$with_gnu_ld"; then
18898	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18899      else
18900	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18901      fi
18902      if test no = "$with_gnu_ld"; then
18903	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
18904	hardcode_libdir_separator=:
18905	hardcode_direct=yes
18906	hardcode_direct_absolute=yes
18907	export_dynamic_flag_spec='$wl-E'
18908	# hardcode_minus_L: Not really in the search PATH,
18909	# but as the default location of the library.
18910	hardcode_minus_L=yes
18911      fi
18912      ;;
18913
18914    hpux11*)
18915      if test yes,no = "$GCC,$with_gnu_ld"; then
18916	case $host_cpu in
18917	hppa*64*)
18918	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
18919	  ;;
18920	ia64*)
18921	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18922	  ;;
18923	*)
18924	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18925	  ;;
18926	esac
18927      else
18928	case $host_cpu in
18929	hppa*64*)
18930	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
18931	  ;;
18932	ia64*)
18933	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18934	  ;;
18935	*)
18936
18937	  # Older versions of the 11.00 compiler do not understand -b yet
18938	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18939	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18940$as_echo_n "checking if $CC understands -b... " >&6; }
18941if ${lt_cv_prog_compiler__b+:} false; then :
18942  $as_echo_n "(cached) " >&6
18943else
18944  lt_cv_prog_compiler__b=no
18945   save_LDFLAGS=$LDFLAGS
18946   LDFLAGS="$LDFLAGS -b"
18947   echo "$lt_simple_link_test_code" > conftest.$ac_ext
18948   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18949     # The linker can only warn and ignore the option if not recognized
18950     # So say no if there are warnings
18951     if test -s conftest.err; then
18952       # Append any errors to the config.log.
18953       cat conftest.err 1>&5
18954       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18955       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18956       if diff conftest.exp conftest.er2 >/dev/null; then
18957         lt_cv_prog_compiler__b=yes
18958       fi
18959     else
18960       lt_cv_prog_compiler__b=yes
18961     fi
18962   fi
18963   $RM -r conftest*
18964   LDFLAGS=$save_LDFLAGS
18965
18966fi
18967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18968$as_echo "$lt_cv_prog_compiler__b" >&6; }
18969
18970if test yes = "$lt_cv_prog_compiler__b"; then
18971    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18972else
18973    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18974fi
18975
18976	  ;;
18977	esac
18978      fi
18979      if test no = "$with_gnu_ld"; then
18980	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
18981	hardcode_libdir_separator=:
18982
18983	case $host_cpu in
18984	hppa*64*|ia64*)
18985	  hardcode_direct=no
18986	  hardcode_shlibpath_var=no
18987	  ;;
18988	*)
18989	  hardcode_direct=yes
18990	  hardcode_direct_absolute=yes
18991	  export_dynamic_flag_spec='$wl-E'
18992
18993	  # hardcode_minus_L: Not really in the search PATH,
18994	  # but as the default location of the library.
18995	  hardcode_minus_L=yes
18996	  ;;
18997	esac
18998      fi
18999      ;;
19000
19001    irix5* | irix6* | nonstopux*)
19002      if test yes = "$GCC"; then
19003	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
19004	# Try to use the -exported_symbol ld option, if it does not
19005	# work, assume that -exports_file does not work either and
19006	# implicitly export all symbols.
19007	# This should be the same for all languages, so no per-tag cache variable.
19008	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
19009$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
19010if ${lt_cv_irix_exported_symbol+:} false; then :
19011  $as_echo_n "(cached) " >&6
19012else
19013  save_LDFLAGS=$LDFLAGS
19014	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
19015	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19016/* end confdefs.h.  */
19017int foo (void) { return 0; }
19018_ACEOF
19019if ac_fn_c_try_link "$LINENO"; then :
19020  lt_cv_irix_exported_symbol=yes
19021else
19022  lt_cv_irix_exported_symbol=no
19023fi
19024rm -f core conftest.err conftest.$ac_objext \
19025    conftest$ac_exeext conftest.$ac_ext
19026           LDFLAGS=$save_LDFLAGS
19027fi
19028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
19029$as_echo "$lt_cv_irix_exported_symbol" >&6; }
19030	if test yes = "$lt_cv_irix_exported_symbol"; then
19031          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
19032	fi
19033      else
19034	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'
19035	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'
19036      fi
19037      archive_cmds_need_lc='no'
19038      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19039      hardcode_libdir_separator=:
19040      inherit_rpath=yes
19041      link_all_deplibs=yes
19042      ;;
19043
19044    linux*)
19045      case $cc_basename in
19046      tcc*)
19047	# Fabrice Bellard et al's Tiny C Compiler
19048	ld_shlibs=yes
19049	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19050	;;
19051      esac
19052      ;;
19053
19054    netbsd*)
19055      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19056	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19057      else
19058	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19059      fi
19060      hardcode_libdir_flag_spec='-R$libdir'
19061      hardcode_direct=yes
19062      hardcode_shlibpath_var=no
19063      ;;
19064
19065    newsos6)
19066      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19067      hardcode_direct=yes
19068      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19069      hardcode_libdir_separator=:
19070      hardcode_shlibpath_var=no
19071      ;;
19072
19073    *nto* | *qnx*)
19074      ;;
19075
19076    openbsd* | bitrig*)
19077      if test -f /usr/libexec/ld.so; then
19078	hardcode_direct=yes
19079	hardcode_shlibpath_var=no
19080	hardcode_direct_absolute=yes
19081	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19082	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19083	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
19084	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
19085	  export_dynamic_flag_spec='$wl-E'
19086	else
19087	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19088	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
19089	fi
19090      else
19091	ld_shlibs=no
19092      fi
19093      ;;
19094
19095    os2*)
19096      hardcode_libdir_flag_spec='-L$libdir'
19097      hardcode_minus_L=yes
19098      allow_undefined_flag=unsupported
19099      shrext_cmds=.dll
19100      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19101	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19102	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19103	$ECHO EXPORTS >> $output_objdir/$libname.def~
19104	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
19105	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19106	emximp -o $lib $output_objdir/$libname.def'
19107      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19108	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19109	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19110	$ECHO EXPORTS >> $output_objdir/$libname.def~
19111	prefix_cmds="$SED"~
19112	if test EXPORTS = "`$SED 1q $export_symbols`"; then
19113	  prefix_cmds="$prefix_cmds -e 1d";
19114	fi~
19115	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
19116	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
19117	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19118	emximp -o $lib $output_objdir/$libname.def'
19119      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
19120      enable_shared_with_static_runtimes=yes
19121      ;;
19122
19123    osf3*)
19124      if test yes = "$GCC"; then
19125	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
19126	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'
19127      else
19128	allow_undefined_flag=' -expect_unresolved \*'
19129	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'
19130      fi
19131      archive_cmds_need_lc='no'
19132      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19133      hardcode_libdir_separator=:
19134      ;;
19135
19136    osf4* | osf5*)	# as osf3* with the addition of -msym flag
19137      if test yes = "$GCC"; then
19138	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
19139	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
19140	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19141      else
19142	allow_undefined_flag=' -expect_unresolved \*'
19143	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'
19144	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~
19145          $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'
19146
19147	# Both c and cxx compiler support -rpath directly
19148	hardcode_libdir_flag_spec='-rpath $libdir'
19149      fi
19150      archive_cmds_need_lc='no'
19151      hardcode_libdir_separator=:
19152      ;;
19153
19154    solaris*)
19155      no_undefined_flag=' -z defs'
19156      if test yes = "$GCC"; then
19157	wlarc='$wl'
19158	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
19159	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19160          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19161      else
19162	case `$CC -V 2>&1` in
19163	*"Compilers 5.0"*)
19164	  wlarc=''
19165	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
19166	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19167            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
19168	  ;;
19169	*)
19170	  wlarc='$wl'
19171	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
19172	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19173            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19174	  ;;
19175	esac
19176      fi
19177      hardcode_libdir_flag_spec='-R$libdir'
19178      hardcode_shlibpath_var=no
19179      case $host_os in
19180      solaris2.[0-5] | solaris2.[0-5].*) ;;
19181      *)
19182	# The compiler driver will combine and reorder linker options,
19183	# but understands '-z linker_flag'.  GCC discards it without '$wl',
19184	# but is careful enough not to reorder.
19185	# Supported since Solaris 2.6 (maybe 2.5.1?)
19186	if test yes = "$GCC"; then
19187	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
19188	else
19189	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
19190	fi
19191	;;
19192      esac
19193      link_all_deplibs=yes
19194      ;;
19195
19196    sunos4*)
19197      if test sequent = "$host_vendor"; then
19198	# Use $CC to link under sequent, because it throws in some extra .o
19199	# files that make .init and .fini sections work.
19200	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19201      else
19202	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19203      fi
19204      hardcode_libdir_flag_spec='-L$libdir'
19205      hardcode_direct=yes
19206      hardcode_minus_L=yes
19207      hardcode_shlibpath_var=no
19208      ;;
19209
19210    sysv4)
19211      case $host_vendor in
19212	sni)
19213	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19214	  hardcode_direct=yes # is this really true???
19215	;;
19216	siemens)
19217	  ## LD is ld it makes a PLAMLIB
19218	  ## CC just makes a GrossModule.
19219	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19220	  reload_cmds='$CC -r -o $output$reload_objs'
19221	  hardcode_direct=no
19222        ;;
19223	motorola)
19224	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19225	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
19226	;;
19227      esac
19228      runpath_var='LD_RUN_PATH'
19229      hardcode_shlibpath_var=no
19230      ;;
19231
19232    sysv4.3*)
19233      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19234      hardcode_shlibpath_var=no
19235      export_dynamic_flag_spec='-Bexport'
19236      ;;
19237
19238    sysv4*MP*)
19239      if test -d /usr/nec; then
19240	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19241	hardcode_shlibpath_var=no
19242	runpath_var=LD_RUN_PATH
19243	hardcode_runpath_var=yes
19244	ld_shlibs=yes
19245      fi
19246      ;;
19247
19248    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19249      no_undefined_flag='$wl-z,text'
19250      archive_cmds_need_lc=no
19251      hardcode_shlibpath_var=no
19252      runpath_var='LD_RUN_PATH'
19253
19254      if test yes = "$GCC"; then
19255	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19256	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19257      else
19258	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19259	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19260      fi
19261      ;;
19262
19263    sysv5* | sco3.2v5* | sco5v6*)
19264      # Note: We CANNOT use -z defs as we might desire, because we do not
19265      # link with -lc, and that would cause any symbols used from libc to
19266      # always be unresolved, which means just about no library would
19267      # ever link correctly.  If we're not using GNU ld we use -z text
19268      # though, which does catch some bad symbols but isn't as heavy-handed
19269      # as -z defs.
19270      no_undefined_flag='$wl-z,text'
19271      allow_undefined_flag='$wl-z,nodefs'
19272      archive_cmds_need_lc=no
19273      hardcode_shlibpath_var=no
19274      hardcode_libdir_flag_spec='$wl-R,$libdir'
19275      hardcode_libdir_separator=':'
19276      link_all_deplibs=yes
19277      export_dynamic_flag_spec='$wl-Bexport'
19278      runpath_var='LD_RUN_PATH'
19279
19280      if test yes = "$GCC"; then
19281	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19282	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19283      else
19284	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19285	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19286      fi
19287      ;;
19288
19289    uts4*)
19290      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19291      hardcode_libdir_flag_spec='-L$libdir'
19292      hardcode_shlibpath_var=no
19293      ;;
19294
19295    *)
19296      ld_shlibs=no
19297      ;;
19298    esac
19299
19300    if test sni = "$host_vendor"; then
19301      case $host in
19302      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19303	export_dynamic_flag_spec='$wl-Blargedynsym'
19304	;;
19305      esac
19306    fi
19307  fi
19308
19309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
19310$as_echo "$ld_shlibs" >&6; }
19311test no = "$ld_shlibs" && can_build_shared=no
19312
19313with_gnu_ld=$with_gnu_ld
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329#
19330# Do we need to explicitly link libc?
19331#
19332case "x$archive_cmds_need_lc" in
19333x|xyes)
19334  # Assume -lc should be added
19335  archive_cmds_need_lc=yes
19336
19337  if test yes,yes = "$GCC,$enable_shared"; then
19338    case $archive_cmds in
19339    *'~'*)
19340      # FIXME: we may have to deal with multi-command sequences.
19341      ;;
19342    '$CC '*)
19343      # Test whether the compiler implicitly links with -lc since on some
19344      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19345      # to ld, don't add -lc before -lgcc.
19346      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19347$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19348if ${lt_cv_archive_cmds_need_lc+:} false; then :
19349  $as_echo_n "(cached) " >&6
19350else
19351  $RM conftest*
19352	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19353
19354	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19355  (eval $ac_compile) 2>&5
19356  ac_status=$?
19357  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19358  test $ac_status = 0; } 2>conftest.err; then
19359	  soname=conftest
19360	  lib=conftest
19361	  libobjs=conftest.$ac_objext
19362	  deplibs=
19363	  wl=$lt_prog_compiler_wl
19364	  pic_flag=$lt_prog_compiler_pic
19365	  compiler_flags=-v
19366	  linker_flags=-v
19367	  verstring=
19368	  output_objdir=.
19369	  libname=conftest
19370	  lt_save_allow_undefined_flag=$allow_undefined_flag
19371	  allow_undefined_flag=
19372	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19373  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19374  ac_status=$?
19375  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19376  test $ac_status = 0; }
19377	  then
19378	    lt_cv_archive_cmds_need_lc=no
19379	  else
19380	    lt_cv_archive_cmds_need_lc=yes
19381	  fi
19382	  allow_undefined_flag=$lt_save_allow_undefined_flag
19383	else
19384	  cat conftest.err 1>&5
19385	fi
19386	$RM conftest*
19387
19388fi
19389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
19390$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
19391      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
19392      ;;
19393    esac
19394  fi
19395  ;;
19396esac
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
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19550$as_echo_n "checking dynamic linker characteristics... " >&6; }
19551
19552if test yes = "$GCC"; then
19553  case $host_os in
19554    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
19555    *) lt_awk_arg='/^libraries:/' ;;
19556  esac
19557  case $host_os in
19558    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
19559    *) lt_sed_strip_eq='s|=/|/|g' ;;
19560  esac
19561  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
19562  case $lt_search_path_spec in
19563  *\;*)
19564    # if the path contains ";" then we assume it to be the separator
19565    # otherwise default to the standard path separator (i.e. ":") - it is
19566    # assumed that no part of a normal pathname contains ";" but that should
19567    # okay in the real world where ";" in dirpaths is itself problematic.
19568    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
19569    ;;
19570  *)
19571    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
19572    ;;
19573  esac
19574  # Ok, now we have the path, separated by spaces, we can step through it
19575  # and add multilib dir if necessary...
19576  lt_tmp_lt_search_path_spec=
19577  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
19578  # ...but if some path component already ends with the multilib dir we assume
19579  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
19580  case "$lt_multi_os_dir; $lt_search_path_spec " in
19581  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
19582    lt_multi_os_dir=
19583    ;;
19584  esac
19585  for lt_sys_path in $lt_search_path_spec; do
19586    if test -d "$lt_sys_path$lt_multi_os_dir"; then
19587      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
19588    elif test -n "$lt_multi_os_dir"; then
19589      test -d "$lt_sys_path" && \
19590	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
19591    fi
19592  done
19593  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
19594BEGIN {RS = " "; FS = "/|\n";} {
19595  lt_foo = "";
19596  lt_count = 0;
19597  for (lt_i = NF; lt_i > 0; lt_i--) {
19598    if ($lt_i != "" && $lt_i != ".") {
19599      if ($lt_i == "..") {
19600        lt_count++;
19601      } else {
19602        if (lt_count == 0) {
19603          lt_foo = "/" $lt_i lt_foo;
19604        } else {
19605          lt_count--;
19606        }
19607      }
19608    }
19609  }
19610  if (lt_foo != "") { lt_freq[lt_foo]++; }
19611  if (lt_freq[lt_foo] == 1) { print lt_foo; }
19612}'`
19613  # AWK program above erroneously prepends '/' to C:/dos/paths
19614  # for these hosts.
19615  case $host_os in
19616    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
19617      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
19618  esac
19619  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
19620else
19621  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19622fi
19623library_names_spec=
19624libname_spec='lib$name'
19625soname_spec=
19626shrext_cmds=.so
19627postinstall_cmds=
19628postuninstall_cmds=
19629finish_cmds=
19630finish_eval=
19631shlibpath_var=
19632shlibpath_overrides_runpath=unknown
19633version_type=none
19634dynamic_linker="$host_os ld.so"
19635sys_lib_dlsearch_path_spec="/lib /usr/lib"
19636need_lib_prefix=unknown
19637hardcode_into_libs=no
19638
19639# when you set need_version to no, make sure it does not cause -set_version
19640# flags to be left without arguments
19641need_version=unknown
19642
19643
19644
19645case $host_os in
19646aix3*)
19647  version_type=linux # correct to gnu/linux during the next big refactor
19648  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
19649  shlibpath_var=LIBPATH
19650
19651  # AIX 3 has no versioning support, so we append a major version to the name.
19652  soname_spec='$libname$release$shared_ext$major'
19653  ;;
19654
19655aix[4-9]*)
19656  version_type=linux # correct to gnu/linux during the next big refactor
19657  need_lib_prefix=no
19658  need_version=no
19659  hardcode_into_libs=yes
19660  if test ia64 = "$host_cpu"; then
19661    # AIX 5 supports IA64
19662    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
19663    shlibpath_var=LD_LIBRARY_PATH
19664  else
19665    # With GCC up to 2.95.x, collect2 would create an import file
19666    # for dependence libraries.  The import file would start with
19667    # the line '#! .'.  This would cause the generated library to
19668    # depend on '.', always an invalid library.  This was fixed in
19669    # development snapshots of GCC prior to 3.0.
19670    case $host_os in
19671      aix4 | aix4.[01] | aix4.[01].*)
19672      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19673	   echo ' yes '
19674	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
19675	:
19676      else
19677	can_build_shared=no
19678      fi
19679      ;;
19680    esac
19681    # Using Import Files as archive members, it is possible to support
19682    # filename-based versioning of shared library archives on AIX. While
19683    # this would work for both with and without runtime linking, it will
19684    # prevent static linking of such archives. So we do filename-based
19685    # shared library versioning with .so extension only, which is used
19686    # when both runtime linking and shared linking is enabled.
19687    # Unfortunately, runtime linking may impact performance, so we do
19688    # not want this to be the default eventually. Also, we use the
19689    # versioned .so libs for executables only if there is the -brtl
19690    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
19691    # To allow for filename-based versioning support, we need to create
19692    # libNAME.so.V as an archive file, containing:
19693    # *) an Import File, referring to the versioned filename of the
19694    #    archive as well as the shared archive member, telling the
19695    #    bitwidth (32 or 64) of that shared object, and providing the
19696    #    list of exported symbols of that shared object, eventually
19697    #    decorated with the 'weak' keyword
19698    # *) the shared object with the F_LOADONLY flag set, to really avoid
19699    #    it being seen by the linker.
19700    # At run time we better use the real file rather than another symlink,
19701    # but for link time we create the symlink libNAME.so -> libNAME.so.V
19702
19703    case $with_aix_soname,$aix_use_runtimelinking in
19704    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
19705    # soname into executable. Probably we can add versioning support to
19706    # collect2, so additional links can be useful in future.
19707    aix,yes) # traditional libtool
19708      dynamic_linker='AIX unversionable lib.so'
19709      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19710      # instead of lib<name>.a to let people know that these are not
19711      # typical AIX shared libraries.
19712      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19713      ;;
19714    aix,no) # traditional AIX only
19715      dynamic_linker='AIX lib.a(lib.so.V)'
19716      # We preserve .a as extension for shared libraries through AIX4.2
19717      # and later when we are not doing run time linking.
19718      library_names_spec='$libname$release.a $libname.a'
19719      soname_spec='$libname$release$shared_ext$major'
19720      ;;
19721    svr4,*) # full svr4 only
19722      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
19723      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19724      # We do not specify a path in Import Files, so LIBPATH fires.
19725      shlibpath_overrides_runpath=yes
19726      ;;
19727    *,yes) # both, prefer svr4
19728      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
19729      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19730      # unpreferred sharedlib libNAME.a needs extra handling
19731      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
19732      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
19733      # We do not specify a path in Import Files, so LIBPATH fires.
19734      shlibpath_overrides_runpath=yes
19735      ;;
19736    *,no) # both, prefer aix
19737      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
19738      library_names_spec='$libname$release.a $libname.a'
19739      soname_spec='$libname$release$shared_ext$major'
19740      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
19741      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
19742      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
19743      ;;
19744    esac
19745    shlibpath_var=LIBPATH
19746  fi
19747  ;;
19748
19749amigaos*)
19750  case $host_cpu in
19751  powerpc)
19752    # Since July 2007 AmigaOS4 officially supports .so libraries.
19753    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19754    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19755    ;;
19756  m68k)
19757    library_names_spec='$libname.ixlibrary $libname.a'
19758    # Create ${libname}_ixlibrary.a entries in /sys/libs.
19759    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
19760    ;;
19761  esac
19762  ;;
19763
19764beos*)
19765  library_names_spec='$libname$shared_ext'
19766  dynamic_linker="$host_os ld.so"
19767  shlibpath_var=LIBRARY_PATH
19768  ;;
19769
19770bsdi[45]*)
19771  version_type=linux # correct to gnu/linux during the next big refactor
19772  need_version=no
19773  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19774  soname_spec='$libname$release$shared_ext$major'
19775  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19776  shlibpath_var=LD_LIBRARY_PATH
19777  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19778  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19779  # the default ld.so.conf also contains /usr/contrib/lib and
19780  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19781  # libtool to hard-code these into programs
19782  ;;
19783
19784cygwin* | mingw* | pw32* | cegcc*)
19785  version_type=windows
19786  shrext_cmds=.dll
19787  need_version=no
19788  need_lib_prefix=no
19789
19790  case $GCC,$cc_basename in
19791  yes,*)
19792    # gcc
19793    library_names_spec='$libname.dll.a'
19794    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19795    postinstall_cmds='base_file=`basename \$file`~
19796      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19797      dldir=$destdir/`dirname \$dlpath`~
19798      test -d \$dldir || mkdir -p \$dldir~
19799      $install_prog $dir/$dlname \$dldir/$dlname~
19800      chmod a+x \$dldir/$dlname~
19801      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19802        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19803      fi'
19804    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19805      dlpath=$dir/\$dldll~
19806       $RM \$dlpath'
19807    shlibpath_overrides_runpath=yes
19808
19809    case $host_os in
19810    cygwin*)
19811      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19812      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19813
19814      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
19815      ;;
19816    mingw* | cegcc*)
19817      # MinGW DLLs use traditional 'lib' prefix
19818      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19819      ;;
19820    pw32*)
19821      # pw32 DLLs use 'pw' prefix rather than 'lib'
19822      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19823      ;;
19824    esac
19825    dynamic_linker='Win32 ld.exe'
19826    ;;
19827
19828  *,cl*)
19829    # Native MSVC
19830    libname_spec='$name'
19831    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19832    library_names_spec='$libname.dll.lib'
19833
19834    case $build_os in
19835    mingw*)
19836      sys_lib_search_path_spec=
19837      lt_save_ifs=$IFS
19838      IFS=';'
19839      for lt_path in $LIB
19840      do
19841        IFS=$lt_save_ifs
19842        # Let DOS variable expansion print the short 8.3 style file name.
19843        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19844        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19845      done
19846      IFS=$lt_save_ifs
19847      # Convert to MSYS style.
19848      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19849      ;;
19850    cygwin*)
19851      # Convert to unix form, then to dos form, then back to unix form
19852      # but this time dos style (no spaces!) so that the unix form looks
19853      # like /cygdrive/c/PROGRA~1:/cygdr...
19854      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19855      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19856      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19857      ;;
19858    *)
19859      sys_lib_search_path_spec=$LIB
19860      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19861        # It is most probably a Windows format PATH.
19862        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19863      else
19864        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19865      fi
19866      # FIXME: find the short name or the path components, as spaces are
19867      # common. (e.g. "Program Files" -> "PROGRA~1")
19868      ;;
19869    esac
19870
19871    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19872    postinstall_cmds='base_file=`basename \$file`~
19873      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19874      dldir=$destdir/`dirname \$dlpath`~
19875      test -d \$dldir || mkdir -p \$dldir~
19876      $install_prog $dir/$dlname \$dldir/$dlname'
19877    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19878      dlpath=$dir/\$dldll~
19879       $RM \$dlpath'
19880    shlibpath_overrides_runpath=yes
19881    dynamic_linker='Win32 link.exe'
19882    ;;
19883
19884  *)
19885    # Assume MSVC wrapper
19886    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
19887    dynamic_linker='Win32 ld.exe'
19888    ;;
19889  esac
19890  # FIXME: first we should search . and the directory the executable is in
19891  shlibpath_var=PATH
19892  ;;
19893
19894darwin* | rhapsody*)
19895  dynamic_linker="$host_os dyld"
19896  version_type=darwin
19897  need_lib_prefix=no
19898  need_version=no
19899  library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
19900  soname_spec='$libname$release$major$shared_ext'
19901  shlibpath_overrides_runpath=yes
19902  shlibpath_var=DYLD_LIBRARY_PATH
19903  shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
19904
19905  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
19906  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19907  ;;
19908
19909dgux*)
19910  version_type=linux # correct to gnu/linux during the next big refactor
19911  need_lib_prefix=no
19912  need_version=no
19913  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19914  soname_spec='$libname$release$shared_ext$major'
19915  shlibpath_var=LD_LIBRARY_PATH
19916  ;;
19917
19918freebsd* | dragonfly*)
19919  # DragonFly does not have aout.  When/if they implement a new
19920  # versioning mechanism, adjust this.
19921  if test -x /usr/bin/objformat; then
19922    objformat=`/usr/bin/objformat`
19923  else
19924    case $host_os in
19925    freebsd[23].*) objformat=aout ;;
19926    *) objformat=elf ;;
19927    esac
19928  fi
19929  # Handle Gentoo/FreeBSD as it was Linux
19930  case $host_vendor in
19931    gentoo)
19932      version_type=linux ;;
19933    *)
19934      version_type=freebsd-$objformat ;;
19935  esac
19936
19937  case $version_type in
19938    freebsd-elf*)
19939      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19940      soname_spec='$libname$release$shared_ext$major'
19941      need_version=no
19942      need_lib_prefix=no
19943      ;;
19944    freebsd-*)
19945      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19946      need_version=yes
19947      ;;
19948    linux)
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      need_lib_prefix=no
19952      need_version=no
19953      ;;
19954  esac
19955  shlibpath_var=LD_LIBRARY_PATH
19956  case $host_os in
19957  freebsd2.*)
19958    shlibpath_overrides_runpath=yes
19959    ;;
19960  freebsd3.[01]* | freebsdelf3.[01]*)
19961    shlibpath_overrides_runpath=yes
19962    hardcode_into_libs=yes
19963    ;;
19964  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19965  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19966    shlibpath_overrides_runpath=no
19967    hardcode_into_libs=yes
19968    ;;
19969  *) # from 4.6 on, and DragonFly
19970    shlibpath_overrides_runpath=yes
19971    hardcode_into_libs=yes
19972    ;;
19973  esac
19974  ;;
19975
19976haiku*)
19977  version_type=linux # correct to gnu/linux during the next big refactor
19978  need_lib_prefix=no
19979  need_version=no
19980  dynamic_linker="$host_os runtime_loader"
19981  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19982  soname_spec='$libname$release$shared_ext$major'
19983  shlibpath_var=LIBRARY_PATH
19984  shlibpath_overrides_runpath=no
19985  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19986  hardcode_into_libs=yes
19987  ;;
19988
19989hpux9* | hpux10* | hpux11*)
19990  # Give a soname corresponding to the major version so that dld.sl refuses to
19991  # link against other versions.
19992  version_type=sunos
19993  need_lib_prefix=no
19994  need_version=no
19995  case $host_cpu in
19996  ia64*)
19997    shrext_cmds='.so'
19998    hardcode_into_libs=yes
19999    dynamic_linker="$host_os dld.so"
20000    shlibpath_var=LD_LIBRARY_PATH
20001    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20002    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20003    soname_spec='$libname$release$shared_ext$major'
20004    if test 32 = "$HPUX_IA64_MODE"; then
20005      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20006      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
20007    else
20008      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20009      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
20010    fi
20011    ;;
20012  hppa*64*)
20013    shrext_cmds='.sl'
20014    hardcode_into_libs=yes
20015    dynamic_linker="$host_os dld.sl"
20016    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20017    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20018    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20019    soname_spec='$libname$release$shared_ext$major'
20020    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20021    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20022    ;;
20023  *)
20024    shrext_cmds='.sl'
20025    dynamic_linker="$host_os dld.sl"
20026    shlibpath_var=SHLIB_PATH
20027    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20028    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20029    soname_spec='$libname$release$shared_ext$major'
20030    ;;
20031  esac
20032  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20033  postinstall_cmds='chmod 555 $lib'
20034  # or fails outright, so override atomically:
20035  install_override_mode=555
20036  ;;
20037
20038interix[3-9]*)
20039  version_type=linux # correct to gnu/linux during the next big refactor
20040  need_lib_prefix=no
20041  need_version=no
20042  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20043  soname_spec='$libname$release$shared_ext$major'
20044  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20045  shlibpath_var=LD_LIBRARY_PATH
20046  shlibpath_overrides_runpath=no
20047  hardcode_into_libs=yes
20048  ;;
20049
20050irix5* | irix6* | nonstopux*)
20051  case $host_os in
20052    nonstopux*) version_type=nonstopux ;;
20053    *)
20054	if test yes = "$lt_cv_prog_gnu_ld"; then
20055		version_type=linux # correct to gnu/linux during the next big refactor
20056	else
20057		version_type=irix
20058	fi ;;
20059  esac
20060  need_lib_prefix=no
20061  need_version=no
20062  soname_spec='$libname$release$shared_ext$major'
20063  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
20064  case $host_os in
20065  irix5* | nonstopux*)
20066    libsuff= shlibsuff=
20067    ;;
20068  *)
20069    case $LD in # libtool.m4 will add one of these switches to LD
20070    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20071      libsuff= shlibsuff= libmagic=32-bit;;
20072    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20073      libsuff=32 shlibsuff=N32 libmagic=N32;;
20074    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20075      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20076    *) libsuff= shlibsuff= libmagic=never-match;;
20077    esac
20078    ;;
20079  esac
20080  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20081  shlibpath_overrides_runpath=no
20082  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
20083  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
20084  hardcode_into_libs=yes
20085  ;;
20086
20087# No shared lib support for Linux oldld, aout, or coff.
20088linux*oldld* | linux*aout* | linux*coff*)
20089  dynamic_linker=no
20090  ;;
20091
20092linux*android*)
20093  version_type=none # Android doesn't support versioned libraries.
20094  need_lib_prefix=no
20095  need_version=no
20096  library_names_spec='$libname$release$shared_ext'
20097  soname_spec='$libname$release$shared_ext'
20098  finish_cmds=
20099  shlibpath_var=LD_LIBRARY_PATH
20100  shlibpath_overrides_runpath=yes
20101
20102  # This implies no fast_install, which is unacceptable.
20103  # Some rework will be needed to allow for fast_install
20104  # before this can be enabled.
20105  hardcode_into_libs=yes
20106
20107  dynamic_linker='Android linker'
20108  # Don't embed -rpath directories since the linker doesn't support them.
20109  hardcode_libdir_flag_spec='-L$libdir'
20110  ;;
20111
20112# This must be glibc/ELF.
20113linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
20114  version_type=linux # correct to gnu/linux during the next big refactor
20115  need_lib_prefix=no
20116  need_version=no
20117  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20118  soname_spec='$libname$release$shared_ext$major'
20119  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20120  shlibpath_var=LD_LIBRARY_PATH
20121  shlibpath_overrides_runpath=no
20122
20123  # Some binutils ld are patched to set DT_RUNPATH
20124  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
20125  $as_echo_n "(cached) " >&6
20126else
20127  lt_cv_shlibpath_overrides_runpath=no
20128    save_LDFLAGS=$LDFLAGS
20129    save_libdir=$libdir
20130    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
20131	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
20132    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20133/* end confdefs.h.  */
20134
20135int
20136main ()
20137{
20138
20139  ;
20140  return 0;
20141}
20142_ACEOF
20143if ac_fn_c_try_link "$LINENO"; then :
20144  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20145  lt_cv_shlibpath_overrides_runpath=yes
20146fi
20147fi
20148rm -f core conftest.err conftest.$ac_objext \
20149    conftest$ac_exeext conftest.$ac_ext
20150    LDFLAGS=$save_LDFLAGS
20151    libdir=$save_libdir
20152
20153fi
20154
20155  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20156
20157  # This implies no fast_install, which is unacceptable.
20158  # Some rework will be needed to allow for fast_install
20159  # before this can be enabled.
20160  hardcode_into_libs=yes
20161
20162  # Ideally, we could use ldconfig to report *all* directores which are
20163  # searched for libraries, however this is still not possible.  Aside from not
20164  # being certain /sbin/ldconfig is available, command
20165  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
20166  # even though it is searched at run-time.  Try to do the best guess by
20167  # appending ld.so.conf contents (and includes) to the search path.
20168  if test -f /etc/ld.so.conf; then
20169    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' ' '`
20170    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20171  fi
20172
20173  # We used to test for /lib/ld.so.1 and disable shared libraries on
20174  # powerpc, because MkLinux only supported shared libraries with the
20175  # GNU dynamic linker.  Since this was broken with cross compilers,
20176  # most powerpc-linux boxes support dynamic linking these days and
20177  # people can always --disable-shared, the test was removed, and we
20178  # assume the GNU/Linux dynamic linker is in use.
20179  dynamic_linker='GNU/Linux ld.so'
20180  ;;
20181
20182netbsd*)
20183  version_type=sunos
20184  need_lib_prefix=no
20185  need_version=no
20186  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20187    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20188    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20189    dynamic_linker='NetBSD (a.out) ld.so'
20190  else
20191    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20192    soname_spec='$libname$release$shared_ext$major'
20193    dynamic_linker='NetBSD ld.elf_so'
20194  fi
20195  shlibpath_var=LD_LIBRARY_PATH
20196  shlibpath_overrides_runpath=yes
20197  hardcode_into_libs=yes
20198  ;;
20199
20200newsos6)
20201  version_type=linux # correct to gnu/linux during the next big refactor
20202  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20203  shlibpath_var=LD_LIBRARY_PATH
20204  shlibpath_overrides_runpath=yes
20205  ;;
20206
20207*nto* | *qnx*)
20208  version_type=qnx
20209  need_lib_prefix=no
20210  need_version=no
20211  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20212  soname_spec='$libname$release$shared_ext$major'
20213  shlibpath_var=LD_LIBRARY_PATH
20214  shlibpath_overrides_runpath=no
20215  hardcode_into_libs=yes
20216  dynamic_linker='ldqnx.so'
20217  ;;
20218
20219openbsd* | bitrig*)
20220  version_type=sunos
20221  sys_lib_dlsearch_path_spec=/usr/lib
20222  need_lib_prefix=no
20223  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
20224    need_version=no
20225  else
20226    need_version=yes
20227  fi
20228  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20229  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20230  shlibpath_var=LD_LIBRARY_PATH
20231  shlibpath_overrides_runpath=yes
20232  ;;
20233
20234os2*)
20235  libname_spec='$name'
20236  version_type=windows
20237  shrext_cmds=.dll
20238  need_version=no
20239  need_lib_prefix=no
20240  # OS/2 can only load a DLL with a base name of 8 characters or less.
20241  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
20242    v=$($ECHO $release$versuffix | tr -d .-);
20243    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
20244    $ECHO $n$v`$shared_ext'
20245  library_names_spec='${libname}_dll.$libext'
20246  dynamic_linker='OS/2 ld.exe'
20247  shlibpath_var=BEGINLIBPATH
20248  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20249  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20250  postinstall_cmds='base_file=`basename \$file`~
20251    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
20252    dldir=$destdir/`dirname \$dlpath`~
20253    test -d \$dldir || mkdir -p \$dldir~
20254    $install_prog $dir/$dlname \$dldir/$dlname~
20255    chmod a+x \$dldir/$dlname~
20256    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20257      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20258    fi'
20259  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
20260    dlpath=$dir/\$dldll~
20261    $RM \$dlpath'
20262  ;;
20263
20264osf3* | osf4* | osf5*)
20265  version_type=osf
20266  need_lib_prefix=no
20267  need_version=no
20268  soname_spec='$libname$release$shared_ext$major'
20269  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20270  shlibpath_var=LD_LIBRARY_PATH
20271  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20272  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20273  ;;
20274
20275rdos*)
20276  dynamic_linker=no
20277  ;;
20278
20279solaris*)
20280  version_type=linux # correct to gnu/linux during the next big refactor
20281  need_lib_prefix=no
20282  need_version=no
20283  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20284  soname_spec='$libname$release$shared_ext$major'
20285  shlibpath_var=LD_LIBRARY_PATH
20286  shlibpath_overrides_runpath=yes
20287  hardcode_into_libs=yes
20288  # ldd complains unless libraries are executable
20289  postinstall_cmds='chmod +x $lib'
20290  ;;
20291
20292sunos4*)
20293  version_type=sunos
20294  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20295  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20296  shlibpath_var=LD_LIBRARY_PATH
20297  shlibpath_overrides_runpath=yes
20298  if test yes = "$with_gnu_ld"; then
20299    need_lib_prefix=no
20300  fi
20301  need_version=yes
20302  ;;
20303
20304sysv4 | sysv4.3*)
20305  version_type=linux # correct to gnu/linux during the next big refactor
20306  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20307  soname_spec='$libname$release$shared_ext$major'
20308  shlibpath_var=LD_LIBRARY_PATH
20309  case $host_vendor in
20310    sni)
20311      shlibpath_overrides_runpath=no
20312      need_lib_prefix=no
20313      runpath_var=LD_RUN_PATH
20314      ;;
20315    siemens)
20316      need_lib_prefix=no
20317      ;;
20318    motorola)
20319      need_lib_prefix=no
20320      need_version=no
20321      shlibpath_overrides_runpath=no
20322      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20323      ;;
20324  esac
20325  ;;
20326
20327sysv4*MP*)
20328  if test -d /usr/nec; then
20329    version_type=linux # correct to gnu/linux during the next big refactor
20330    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
20331    soname_spec='$libname$shared_ext.$major'
20332    shlibpath_var=LD_LIBRARY_PATH
20333  fi
20334  ;;
20335
20336sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20337  version_type=sco
20338  need_lib_prefix=no
20339  need_version=no
20340  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
20341  soname_spec='$libname$release$shared_ext$major'
20342  shlibpath_var=LD_LIBRARY_PATH
20343  shlibpath_overrides_runpath=yes
20344  hardcode_into_libs=yes
20345  if test yes = "$with_gnu_ld"; then
20346    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20347  else
20348    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20349    case $host_os in
20350      sco3.2v5*)
20351        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20352	;;
20353    esac
20354  fi
20355  sys_lib_dlsearch_path_spec='/usr/lib'
20356  ;;
20357
20358tpf*)
20359  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20360  version_type=linux # correct to gnu/linux during the next big refactor
20361  need_lib_prefix=no
20362  need_version=no
20363  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20364  shlibpath_var=LD_LIBRARY_PATH
20365  shlibpath_overrides_runpath=no
20366  hardcode_into_libs=yes
20367  ;;
20368
20369uts4*)
20370  version_type=linux # correct to gnu/linux during the next big refactor
20371  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20372  soname_spec='$libname$release$shared_ext$major'
20373  shlibpath_var=LD_LIBRARY_PATH
20374  ;;
20375
20376*)
20377  dynamic_linker=no
20378  ;;
20379esac
20380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20381$as_echo "$dynamic_linker" >&6; }
20382test no = "$dynamic_linker" && can_build_shared=no
20383
20384variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20385if test yes = "$GCC"; then
20386  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20387fi
20388
20389if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
20390  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
20391fi
20392
20393if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
20394  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
20395fi
20396
20397# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
20398configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
20399
20400# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
20401func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
20402
20403# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
20404configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20503$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20504hardcode_action=
20505if test -n "$hardcode_libdir_flag_spec" ||
20506   test -n "$runpath_var" ||
20507   test yes = "$hardcode_automatic"; then
20508
20509  # We can hardcode non-existent directories.
20510  if test no != "$hardcode_direct" &&
20511     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20512     # have to relink, otherwise we might link with an installed library
20513     # when we should be linking with a yet-to-be-installed one
20514     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
20515     test no != "$hardcode_minus_L"; then
20516    # Linking always hardcodes the temporary library directory.
20517    hardcode_action=relink
20518  else
20519    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20520    hardcode_action=immediate
20521  fi
20522else
20523  # We cannot hardcode anything, or else we can only hardcode existing
20524  # directories.
20525  hardcode_action=unsupported
20526fi
20527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
20528$as_echo "$hardcode_action" >&6; }
20529
20530if test relink = "$hardcode_action" ||
20531   test yes = "$inherit_rpath"; then
20532  # Fast installation is not supported
20533  enable_fast_install=no
20534elif test yes = "$shlibpath_overrides_runpath" ||
20535     test no = "$enable_shared"; then
20536  # Fast installation is not necessary
20537  enable_fast_install=needless
20538fi
20539
20540
20541
20542
20543
20544
20545  if test yes != "$enable_dlopen"; then
20546  enable_dlopen=unknown
20547  enable_dlopen_self=unknown
20548  enable_dlopen_self_static=unknown
20549else
20550  lt_cv_dlopen=no
20551  lt_cv_dlopen_libs=
20552
20553  case $host_os in
20554  beos*)
20555    lt_cv_dlopen=load_add_on
20556    lt_cv_dlopen_libs=
20557    lt_cv_dlopen_self=yes
20558    ;;
20559
20560  mingw* | pw32* | cegcc*)
20561    lt_cv_dlopen=LoadLibrary
20562    lt_cv_dlopen_libs=
20563    ;;
20564
20565  cygwin*)
20566    lt_cv_dlopen=dlopen
20567    lt_cv_dlopen_libs=
20568    ;;
20569
20570  darwin*)
20571    # if libdl is installed we need to link against it
20572    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
20573$as_echo_n "checking for dlopen in -ldl... " >&6; }
20574if ${ac_cv_lib_dl_dlopen+:} false; then :
20575  $as_echo_n "(cached) " >&6
20576else
20577  ac_check_lib_save_LIBS=$LIBS
20578LIBS="-ldl  $LIBS"
20579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20580/* end confdefs.h.  */
20581
20582/* Override any GCC internal prototype to avoid an error.
20583   Use char because int might match the return type of a GCC
20584   builtin and then its argument prototype would still apply.  */
20585#ifdef __cplusplus
20586extern "C"
20587#endif
20588char dlopen ();
20589int
20590main ()
20591{
20592return dlopen ();
20593  ;
20594  return 0;
20595}
20596_ACEOF
20597if ac_fn_c_try_link "$LINENO"; then :
20598  ac_cv_lib_dl_dlopen=yes
20599else
20600  ac_cv_lib_dl_dlopen=no
20601fi
20602rm -f core conftest.err conftest.$ac_objext \
20603    conftest$ac_exeext conftest.$ac_ext
20604LIBS=$ac_check_lib_save_LIBS
20605fi
20606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
20607$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
20608if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
20609  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
20610else
20611
20612    lt_cv_dlopen=dyld
20613    lt_cv_dlopen_libs=
20614    lt_cv_dlopen_self=yes
20615
20616fi
20617
20618    ;;
20619
20620  tpf*)
20621    # Don't try to run any link tests for TPF.  We know it's impossible
20622    # because TPF is a cross-compiler, and we know how we open DSOs.
20623    lt_cv_dlopen=dlopen
20624    lt_cv_dlopen_libs=
20625    lt_cv_dlopen_self=no
20626    ;;
20627
20628  *)
20629    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
20630if test "x$ac_cv_func_shl_load" = xyes; then :
20631  lt_cv_dlopen=shl_load
20632else
20633  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20634$as_echo_n "checking for shl_load in -ldld... " >&6; }
20635if ${ac_cv_lib_dld_shl_load+:} false; then :
20636  $as_echo_n "(cached) " >&6
20637else
20638  ac_check_lib_save_LIBS=$LIBS
20639LIBS="-ldld  $LIBS"
20640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20641/* end confdefs.h.  */
20642
20643/* Override any GCC internal prototype to avoid an error.
20644   Use char because int might match the return type of a GCC
20645   builtin and then its argument prototype would still apply.  */
20646#ifdef __cplusplus
20647extern "C"
20648#endif
20649char shl_load ();
20650int
20651main ()
20652{
20653return shl_load ();
20654  ;
20655  return 0;
20656}
20657_ACEOF
20658if ac_fn_c_try_link "$LINENO"; then :
20659  ac_cv_lib_dld_shl_load=yes
20660else
20661  ac_cv_lib_dld_shl_load=no
20662fi
20663rm -f core conftest.err conftest.$ac_objext \
20664    conftest$ac_exeext conftest.$ac_ext
20665LIBS=$ac_check_lib_save_LIBS
20666fi
20667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20668$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
20669if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
20670  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
20671else
20672  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
20673if test "x$ac_cv_func_dlopen" = xyes; then :
20674  lt_cv_dlopen=dlopen
20675else
20676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
20677$as_echo_n "checking for dlopen in -ldl... " >&6; }
20678if ${ac_cv_lib_dl_dlopen+:} false; then :
20679  $as_echo_n "(cached) " >&6
20680else
20681  ac_check_lib_save_LIBS=$LIBS
20682LIBS="-ldl  $LIBS"
20683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20684/* end confdefs.h.  */
20685
20686/* Override any GCC internal prototype to avoid an error.
20687   Use char because int might match the return type of a GCC
20688   builtin and then its argument prototype would still apply.  */
20689#ifdef __cplusplus
20690extern "C"
20691#endif
20692char dlopen ();
20693int
20694main ()
20695{
20696return dlopen ();
20697  ;
20698  return 0;
20699}
20700_ACEOF
20701if ac_fn_c_try_link "$LINENO"; then :
20702  ac_cv_lib_dl_dlopen=yes
20703else
20704  ac_cv_lib_dl_dlopen=no
20705fi
20706rm -f core conftest.err conftest.$ac_objext \
20707    conftest$ac_exeext conftest.$ac_ext
20708LIBS=$ac_check_lib_save_LIBS
20709fi
20710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
20711$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
20712if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
20713  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
20714else
20715  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20716$as_echo_n "checking for dlopen in -lsvld... " >&6; }
20717if ${ac_cv_lib_svld_dlopen+:} false; then :
20718  $as_echo_n "(cached) " >&6
20719else
20720  ac_check_lib_save_LIBS=$LIBS
20721LIBS="-lsvld  $LIBS"
20722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20723/* end confdefs.h.  */
20724
20725/* Override any GCC internal prototype to avoid an error.
20726   Use char because int might match the return type of a GCC
20727   builtin and then its argument prototype would still apply.  */
20728#ifdef __cplusplus
20729extern "C"
20730#endif
20731char dlopen ();
20732int
20733main ()
20734{
20735return dlopen ();
20736  ;
20737  return 0;
20738}
20739_ACEOF
20740if ac_fn_c_try_link "$LINENO"; then :
20741  ac_cv_lib_svld_dlopen=yes
20742else
20743  ac_cv_lib_svld_dlopen=no
20744fi
20745rm -f core conftest.err conftest.$ac_objext \
20746    conftest$ac_exeext conftest.$ac_ext
20747LIBS=$ac_check_lib_save_LIBS
20748fi
20749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20750$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
20751if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
20752  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
20753else
20754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20755$as_echo_n "checking for dld_link in -ldld... " >&6; }
20756if ${ac_cv_lib_dld_dld_link+:} false; then :
20757  $as_echo_n "(cached) " >&6
20758else
20759  ac_check_lib_save_LIBS=$LIBS
20760LIBS="-ldld  $LIBS"
20761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20762/* end confdefs.h.  */
20763
20764/* Override any GCC internal prototype to avoid an error.
20765   Use char because int might match the return type of a GCC
20766   builtin and then its argument prototype would still apply.  */
20767#ifdef __cplusplus
20768extern "C"
20769#endif
20770char dld_link ();
20771int
20772main ()
20773{
20774return dld_link ();
20775  ;
20776  return 0;
20777}
20778_ACEOF
20779if ac_fn_c_try_link "$LINENO"; then :
20780  ac_cv_lib_dld_dld_link=yes
20781else
20782  ac_cv_lib_dld_dld_link=no
20783fi
20784rm -f core conftest.err conftest.$ac_objext \
20785    conftest$ac_exeext conftest.$ac_ext
20786LIBS=$ac_check_lib_save_LIBS
20787fi
20788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20789$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
20790if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
20791  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
20792fi
20793
20794
20795fi
20796
20797
20798fi
20799
20800
20801fi
20802
20803
20804fi
20805
20806
20807fi
20808
20809    ;;
20810  esac
20811
20812  if test no = "$lt_cv_dlopen"; then
20813    enable_dlopen=no
20814  else
20815    enable_dlopen=yes
20816  fi
20817
20818  case $lt_cv_dlopen in
20819  dlopen)
20820    save_CPPFLAGS=$CPPFLAGS
20821    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20822
20823    save_LDFLAGS=$LDFLAGS
20824    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20825
20826    save_LIBS=$LIBS
20827    LIBS="$lt_cv_dlopen_libs $LIBS"
20828
20829    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
20830$as_echo_n "checking whether a program can dlopen itself... " >&6; }
20831if ${lt_cv_dlopen_self+:} false; then :
20832  $as_echo_n "(cached) " >&6
20833else
20834  	  if test yes = "$cross_compiling"; then :
20835  lt_cv_dlopen_self=cross
20836else
20837  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20838  lt_status=$lt_dlunknown
20839  cat > conftest.$ac_ext <<_LT_EOF
20840#line $LINENO "configure"
20841#include "confdefs.h"
20842
20843#if HAVE_DLFCN_H
20844#include <dlfcn.h>
20845#endif
20846
20847#include <stdio.h>
20848
20849#ifdef RTLD_GLOBAL
20850#  define LT_DLGLOBAL		RTLD_GLOBAL
20851#else
20852#  ifdef DL_GLOBAL
20853#    define LT_DLGLOBAL		DL_GLOBAL
20854#  else
20855#    define LT_DLGLOBAL		0
20856#  endif
20857#endif
20858
20859/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20860   find out it does not work in some platform. */
20861#ifndef LT_DLLAZY_OR_NOW
20862#  ifdef RTLD_LAZY
20863#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
20864#  else
20865#    ifdef DL_LAZY
20866#      define LT_DLLAZY_OR_NOW		DL_LAZY
20867#    else
20868#      ifdef RTLD_NOW
20869#        define LT_DLLAZY_OR_NOW	RTLD_NOW
20870#      else
20871#        ifdef DL_NOW
20872#          define LT_DLLAZY_OR_NOW	DL_NOW
20873#        else
20874#          define LT_DLLAZY_OR_NOW	0
20875#        endif
20876#      endif
20877#    endif
20878#  endif
20879#endif
20880
20881/* When -fvisibility=hidden is used, assume the code has been annotated
20882   correspondingly for the symbols needed.  */
20883#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20884int fnord () __attribute__((visibility("default")));
20885#endif
20886
20887int fnord () { return 42; }
20888int main ()
20889{
20890  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20891  int status = $lt_dlunknown;
20892
20893  if (self)
20894    {
20895      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20896      else
20897        {
20898	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
20899          else puts (dlerror ());
20900	}
20901      /* dlclose (self); */
20902    }
20903  else
20904    puts (dlerror ());
20905
20906  return status;
20907}
20908_LT_EOF
20909  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20910  (eval $ac_link) 2>&5
20911  ac_status=$?
20912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20913  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
20914    (./conftest; exit; ) >&5 2>/dev/null
20915    lt_status=$?
20916    case x$lt_status in
20917      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20918      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20919      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
20920    esac
20921  else :
20922    # compilation failed
20923    lt_cv_dlopen_self=no
20924  fi
20925fi
20926rm -fr conftest*
20927
20928
20929fi
20930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
20931$as_echo "$lt_cv_dlopen_self" >&6; }
20932
20933    if test yes = "$lt_cv_dlopen_self"; then
20934      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
20935      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
20936$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
20937if ${lt_cv_dlopen_self_static+:} false; then :
20938  $as_echo_n "(cached) " >&6
20939else
20940  	  if test yes = "$cross_compiling"; then :
20941  lt_cv_dlopen_self_static=cross
20942else
20943  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20944  lt_status=$lt_dlunknown
20945  cat > conftest.$ac_ext <<_LT_EOF
20946#line $LINENO "configure"
20947#include "confdefs.h"
20948
20949#if HAVE_DLFCN_H
20950#include <dlfcn.h>
20951#endif
20952
20953#include <stdio.h>
20954
20955#ifdef RTLD_GLOBAL
20956#  define LT_DLGLOBAL		RTLD_GLOBAL
20957#else
20958#  ifdef DL_GLOBAL
20959#    define LT_DLGLOBAL		DL_GLOBAL
20960#  else
20961#    define LT_DLGLOBAL		0
20962#  endif
20963#endif
20964
20965/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20966   find out it does not work in some platform. */
20967#ifndef LT_DLLAZY_OR_NOW
20968#  ifdef RTLD_LAZY
20969#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
20970#  else
20971#    ifdef DL_LAZY
20972#      define LT_DLLAZY_OR_NOW		DL_LAZY
20973#    else
20974#      ifdef RTLD_NOW
20975#        define LT_DLLAZY_OR_NOW	RTLD_NOW
20976#      else
20977#        ifdef DL_NOW
20978#          define LT_DLLAZY_OR_NOW	DL_NOW
20979#        else
20980#          define LT_DLLAZY_OR_NOW	0
20981#        endif
20982#      endif
20983#    endif
20984#  endif
20985#endif
20986
20987/* When -fvisibility=hidden is used, assume the code has been annotated
20988   correspondingly for the symbols needed.  */
20989#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20990int fnord () __attribute__((visibility("default")));
20991#endif
20992
20993int fnord () { return 42; }
20994int main ()
20995{
20996  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20997  int status = $lt_dlunknown;
20998
20999  if (self)
21000    {
21001      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21002      else
21003        {
21004	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
21005          else puts (dlerror ());
21006	}
21007      /* dlclose (self); */
21008    }
21009  else
21010    puts (dlerror ());
21011
21012  return status;
21013}
21014_LT_EOF
21015  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21016  (eval $ac_link) 2>&5
21017  ac_status=$?
21018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21019  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
21020    (./conftest; exit; ) >&5 2>/dev/null
21021    lt_status=$?
21022    case x$lt_status in
21023      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21024      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21025      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
21026    esac
21027  else :
21028    # compilation failed
21029    lt_cv_dlopen_self_static=no
21030  fi
21031fi
21032rm -fr conftest*
21033
21034
21035fi
21036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
21037$as_echo "$lt_cv_dlopen_self_static" >&6; }
21038    fi
21039
21040    CPPFLAGS=$save_CPPFLAGS
21041    LDFLAGS=$save_LDFLAGS
21042    LIBS=$save_LIBS
21043    ;;
21044  esac
21045
21046  case $lt_cv_dlopen_self in
21047  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21048  *) enable_dlopen_self=unknown ;;
21049  esac
21050
21051  case $lt_cv_dlopen_self_static in
21052  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21053  *) enable_dlopen_self_static=unknown ;;
21054  esac
21055fi
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073striplib=
21074old_striplib=
21075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
21076$as_echo_n "checking whether stripping libraries is possible... " >&6; }
21077if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
21078  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21079  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21081$as_echo "yes" >&6; }
21082else
21083# FIXME - insert some real tests, host_os isn't really good enough
21084  case $host_os in
21085  darwin*)
21086    if test -n "$STRIP"; then
21087      striplib="$STRIP -x"
21088      old_striplib="$STRIP -S"
21089      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21090$as_echo "yes" >&6; }
21091    else
21092      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21093$as_echo "no" >&6; }
21094    fi
21095    ;;
21096  *)
21097    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21098$as_echo "no" >&6; }
21099    ;;
21100  esac
21101fi
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114  # Report what library types will actually be built
21115  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
21116$as_echo_n "checking if libtool supports shared libraries... " >&6; }
21117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
21118$as_echo "$can_build_shared" >&6; }
21119
21120  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
21121$as_echo_n "checking whether to build shared libraries... " >&6; }
21122  test no = "$can_build_shared" && enable_shared=no
21123
21124  # On AIX, shared libraries and static libraries use the same namespace, and
21125  # are all built from PIC.
21126  case $host_os in
21127  aix3*)
21128    test yes = "$enable_shared" && enable_static=no
21129    if test -n "$RANLIB"; then
21130      archive_cmds="$archive_cmds~\$RANLIB \$lib"
21131      postinstall_cmds='$RANLIB $lib'
21132    fi
21133    ;;
21134
21135  aix[4-9]*)
21136    if test ia64 != "$host_cpu"; then
21137      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
21138      yes,aix,yes) ;;			# shared object as lib.so file only
21139      yes,svr4,*) ;;			# shared object as lib.so archive member only
21140      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
21141      esac
21142    fi
21143    ;;
21144  esac
21145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
21146$as_echo "$enable_shared" >&6; }
21147
21148  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
21149$as_echo_n "checking whether to build static libraries... " >&6; }
21150  # Make sure either enable_shared or enable_static is yes.
21151  test yes = "$enable_shared" || enable_static=yes
21152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
21153$as_echo "$enable_static" >&6; }
21154
21155
21156
21157
21158fi
21159ac_ext=c
21160ac_cpp='$CPP $CPPFLAGS'
21161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21163ac_compiler_gnu=$ac_cv_c_compiler_gnu
21164
21165CC=$lt_save_CC
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181        ac_config_commands="$ac_config_commands libtool"
21182
21183
21184
21185
21186# Only expand once:
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21197	if test -n "$ac_tool_prefix"; then
21198  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21199set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21201$as_echo_n "checking for $ac_word... " >&6; }
21202if ${ac_cv_path_PKG_CONFIG+:} false; then :
21203  $as_echo_n "(cached) " >&6
21204else
21205  case $PKG_CONFIG in
21206  [\\/]* | ?:[\\/]*)
21207  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21208  ;;
21209  *)
21210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21211for as_dir in $PATH
21212do
21213  IFS=$as_save_IFS
21214  test -z "$as_dir" && as_dir=.
21215    for ac_exec_ext in '' $ac_executable_extensions; do
21216  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21217    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21218    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21219    break 2
21220  fi
21221done
21222  done
21223IFS=$as_save_IFS
21224
21225  ;;
21226esac
21227fi
21228PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21229if test -n "$PKG_CONFIG"; then
21230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21231$as_echo "$PKG_CONFIG" >&6; }
21232else
21233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21234$as_echo "no" >&6; }
21235fi
21236
21237
21238fi
21239if test -z "$ac_cv_path_PKG_CONFIG"; then
21240  ac_pt_PKG_CONFIG=$PKG_CONFIG
21241  # Extract the first word of "pkg-config", so it can be a program name with args.
21242set dummy pkg-config; ac_word=$2
21243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21244$as_echo_n "checking for $ac_word... " >&6; }
21245if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
21246  $as_echo_n "(cached) " >&6
21247else
21248  case $ac_pt_PKG_CONFIG in
21249  [\\/]* | ?:[\\/]*)
21250  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21251  ;;
21252  *)
21253  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21254for as_dir in $PATH
21255do
21256  IFS=$as_save_IFS
21257  test -z "$as_dir" && as_dir=.
21258    for ac_exec_ext in '' $ac_executable_extensions; do
21259  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21260    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21261    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21262    break 2
21263  fi
21264done
21265  done
21266IFS=$as_save_IFS
21267
21268  ;;
21269esac
21270fi
21271ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21272if test -n "$ac_pt_PKG_CONFIG"; then
21273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21274$as_echo "$ac_pt_PKG_CONFIG" >&6; }
21275else
21276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21277$as_echo "no" >&6; }
21278fi
21279
21280  if test "x$ac_pt_PKG_CONFIG" = x; then
21281    PKG_CONFIG=""
21282  else
21283    case $cross_compiling:$ac_tool_warned in
21284yes:)
21285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21287ac_tool_warned=yes ;;
21288esac
21289    PKG_CONFIG=$ac_pt_PKG_CONFIG
21290  fi
21291else
21292  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21293fi
21294
21295fi
21296if test -n "$PKG_CONFIG"; then
21297	_pkg_min_version=0.9.0
21298	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
21299$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21300	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21301		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21302$as_echo "yes" >&6; }
21303	else
21304		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21305$as_echo "no" >&6; }
21306		PKG_CONFIG=""
21307	fi
21308fi
21309for ac_prog in flex lex
21310do
21311  # Extract the first word of "$ac_prog", so it can be a program name with args.
21312set dummy $ac_prog; ac_word=$2
21313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21314$as_echo_n "checking for $ac_word... " >&6; }
21315if ${ac_cv_prog_LEX+:} false; then :
21316  $as_echo_n "(cached) " >&6
21317else
21318  if test -n "$LEX"; then
21319  ac_cv_prog_LEX="$LEX" # Let the user override the test.
21320else
21321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21322for as_dir in $PATH
21323do
21324  IFS=$as_save_IFS
21325  test -z "$as_dir" && as_dir=.
21326    for ac_exec_ext in '' $ac_executable_extensions; do
21327  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21328    ac_cv_prog_LEX="$ac_prog"
21329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21330    break 2
21331  fi
21332done
21333  done
21334IFS=$as_save_IFS
21335
21336fi
21337fi
21338LEX=$ac_cv_prog_LEX
21339if test -n "$LEX"; then
21340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
21341$as_echo "$LEX" >&6; }
21342else
21343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21344$as_echo "no" >&6; }
21345fi
21346
21347
21348  test -n "$LEX" && break
21349done
21350test -n "$LEX" || LEX=":"
21351
21352if test "x$LEX" != "x:"; then
21353  cat >conftest.l <<_ACEOF
21354%%
21355a { ECHO; }
21356b { REJECT; }
21357c { yymore (); }
21358d { yyless (1); }
21359e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
21360    yyless ((input () != 0)); }
21361f { unput (yytext[0]); }
21362. { BEGIN INITIAL; }
21363%%
21364#ifdef YYTEXT_POINTER
21365extern char *yytext;
21366#endif
21367int
21368main (void)
21369{
21370  return ! yylex () + ! yywrap ();
21371}
21372_ACEOF
21373{ { ac_try="$LEX conftest.l"
21374case "(($ac_try" in
21375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21376  *) ac_try_echo=$ac_try;;
21377esac
21378eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
21379$as_echo "$ac_try_echo"; } >&5
21380  (eval "$LEX conftest.l") 2>&5
21381  ac_status=$?
21382  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21383  test $ac_status = 0; }
21384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
21385$as_echo_n "checking lex output file root... " >&6; }
21386if ${ac_cv_prog_lex_root+:} false; then :
21387  $as_echo_n "(cached) " >&6
21388else
21389
21390if test -f lex.yy.c; then
21391  ac_cv_prog_lex_root=lex.yy
21392elif test -f lexyy.c; then
21393  ac_cv_prog_lex_root=lexyy
21394else
21395  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
21396fi
21397fi
21398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
21399$as_echo "$ac_cv_prog_lex_root" >&6; }
21400LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
21401
21402if test -z "${LEXLIB+set}"; then
21403  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
21404$as_echo_n "checking lex library... " >&6; }
21405if ${ac_cv_lib_lex+:} false; then :
21406  $as_echo_n "(cached) " >&6
21407else
21408
21409    ac_save_LIBS=$LIBS
21410    ac_cv_lib_lex='none needed'
21411    for ac_lib in '' -lfl -ll; do
21412      LIBS="$ac_lib $ac_save_LIBS"
21413      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21414/* end confdefs.h.  */
21415`cat $LEX_OUTPUT_ROOT.c`
21416_ACEOF
21417if ac_fn_c_try_link "$LINENO"; then :
21418  ac_cv_lib_lex=$ac_lib
21419fi
21420rm -f core conftest.err conftest.$ac_objext \
21421    conftest$ac_exeext conftest.$ac_ext
21422      test "$ac_cv_lib_lex" != 'none needed' && break
21423    done
21424    LIBS=$ac_save_LIBS
21425
21426fi
21427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
21428$as_echo "$ac_cv_lib_lex" >&6; }
21429  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
21430fi
21431
21432
21433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
21434$as_echo_n "checking whether yytext is a pointer... " >&6; }
21435if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
21436  $as_echo_n "(cached) " >&6
21437else
21438  # POSIX says lex can declare yytext either as a pointer or an array; the
21439# default is implementation-dependent.  Figure out which it is, since
21440# not all implementations provide the %pointer and %array declarations.
21441ac_cv_prog_lex_yytext_pointer=no
21442ac_save_LIBS=$LIBS
21443LIBS="$LEXLIB $ac_save_LIBS"
21444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21445/* end confdefs.h.  */
21446
21447  #define YYTEXT_POINTER 1
21448`cat $LEX_OUTPUT_ROOT.c`
21449_ACEOF
21450if ac_fn_c_try_link "$LINENO"; then :
21451  ac_cv_prog_lex_yytext_pointer=yes
21452fi
21453rm -f core conftest.err conftest.$ac_objext \
21454    conftest$ac_exeext conftest.$ac_ext
21455LIBS=$ac_save_LIBS
21456
21457fi
21458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
21459$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
21460if test $ac_cv_prog_lex_yytext_pointer = yes; then
21461
21462$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
21463
21464fi
21465rm -f conftest.l $LEX_OUTPUT_ROOT.c
21466
21467fi
21468for ac_prog in 'bison -y' byacc
21469do
21470  # Extract the first word of "$ac_prog", so it can be a program name with args.
21471set dummy $ac_prog; ac_word=$2
21472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21473$as_echo_n "checking for $ac_word... " >&6; }
21474if ${ac_cv_prog_YACC+:} false; then :
21475  $as_echo_n "(cached) " >&6
21476else
21477  if test -n "$YACC"; then
21478  ac_cv_prog_YACC="$YACC" # Let the user override the test.
21479else
21480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21481for as_dir in $PATH
21482do
21483  IFS=$as_save_IFS
21484  test -z "$as_dir" && as_dir=.
21485    for ac_exec_ext in '' $ac_executable_extensions; do
21486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21487    ac_cv_prog_YACC="$ac_prog"
21488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21489    break 2
21490  fi
21491done
21492  done
21493IFS=$as_save_IFS
21494
21495fi
21496fi
21497YACC=$ac_cv_prog_YACC
21498if test -n "$YACC"; then
21499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
21500$as_echo "$YACC" >&6; }
21501else
21502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21503$as_echo "no" >&6; }
21504fi
21505
21506
21507  test -n "$YACC" && break
21508done
21509test -n "$YACC" || YACC="yacc"
21510
21511# Check whether --enable-largefile was given.
21512if test "${enable_largefile+set}" = set; then :
21513  enableval=$enable_largefile;
21514fi
21515
21516if test "$enable_largefile" != no; then
21517
21518  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
21519$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
21520if ${ac_cv_sys_largefile_CC+:} false; then :
21521  $as_echo_n "(cached) " >&6
21522else
21523  ac_cv_sys_largefile_CC=no
21524     if test "$GCC" != yes; then
21525       ac_save_CC=$CC
21526       while :; do
21527	 # IRIX 6.2 and later do not support large files by default,
21528	 # so use the C compiler's -n32 option if that helps.
21529	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21530/* end confdefs.h.  */
21531#include <sys/types.h>
21532 /* Check that off_t can represent 2**63 - 1 correctly.
21533    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21534    since some C++ compilers masquerading as C compilers
21535    incorrectly reject 9223372036854775807.  */
21536#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21537  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21538		       && LARGE_OFF_T % 2147483647 == 1)
21539		      ? 1 : -1];
21540int
21541main ()
21542{
21543
21544  ;
21545  return 0;
21546}
21547_ACEOF
21548	 if ac_fn_c_try_compile "$LINENO"; then :
21549  break
21550fi
21551rm -f core conftest.err conftest.$ac_objext
21552	 CC="$CC -n32"
21553	 if ac_fn_c_try_compile "$LINENO"; then :
21554  ac_cv_sys_largefile_CC=' -n32'; break
21555fi
21556rm -f core conftest.err conftest.$ac_objext
21557	 break
21558       done
21559       CC=$ac_save_CC
21560       rm -f conftest.$ac_ext
21561    fi
21562fi
21563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
21564$as_echo "$ac_cv_sys_largefile_CC" >&6; }
21565  if test "$ac_cv_sys_largefile_CC" != no; then
21566    CC=$CC$ac_cv_sys_largefile_CC
21567  fi
21568
21569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21570$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
21571if ${ac_cv_sys_file_offset_bits+:} false; then :
21572  $as_echo_n "(cached) " >&6
21573else
21574  while :; do
21575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21576/* end confdefs.h.  */
21577#include <sys/types.h>
21578 /* Check that off_t can represent 2**63 - 1 correctly.
21579    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21580    since some C++ compilers masquerading as C compilers
21581    incorrectly reject 9223372036854775807.  */
21582#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21583  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21584		       && LARGE_OFF_T % 2147483647 == 1)
21585		      ? 1 : -1];
21586int
21587main ()
21588{
21589
21590  ;
21591  return 0;
21592}
21593_ACEOF
21594if ac_fn_c_try_compile "$LINENO"; then :
21595  ac_cv_sys_file_offset_bits=no; break
21596fi
21597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21599/* end confdefs.h.  */
21600#define _FILE_OFFSET_BITS 64
21601#include <sys/types.h>
21602 /* Check that off_t can represent 2**63 - 1 correctly.
21603    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21604    since some C++ compilers masquerading as C compilers
21605    incorrectly reject 9223372036854775807.  */
21606#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21607  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21608		       && LARGE_OFF_T % 2147483647 == 1)
21609		      ? 1 : -1];
21610int
21611main ()
21612{
21613
21614  ;
21615  return 0;
21616}
21617_ACEOF
21618if ac_fn_c_try_compile "$LINENO"; then :
21619  ac_cv_sys_file_offset_bits=64; break
21620fi
21621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21622  ac_cv_sys_file_offset_bits=unknown
21623  break
21624done
21625fi
21626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
21627$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
21628case $ac_cv_sys_file_offset_bits in #(
21629  no | unknown) ;;
21630  *)
21631cat >>confdefs.h <<_ACEOF
21632#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21633_ACEOF
21634;;
21635esac
21636rm -rf conftest*
21637  if test $ac_cv_sys_file_offset_bits = unknown; then
21638    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
21639$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
21640if ${ac_cv_sys_large_files+:} false; then :
21641  $as_echo_n "(cached) " >&6
21642else
21643  while :; do
21644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21645/* end confdefs.h.  */
21646#include <sys/types.h>
21647 /* Check that off_t can represent 2**63 - 1 correctly.
21648    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21649    since some C++ compilers masquerading as C compilers
21650    incorrectly reject 9223372036854775807.  */
21651#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21652  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21653		       && LARGE_OFF_T % 2147483647 == 1)
21654		      ? 1 : -1];
21655int
21656main ()
21657{
21658
21659  ;
21660  return 0;
21661}
21662_ACEOF
21663if ac_fn_c_try_compile "$LINENO"; then :
21664  ac_cv_sys_large_files=no; break
21665fi
21666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21668/* end confdefs.h.  */
21669#define _LARGE_FILES 1
21670#include <sys/types.h>
21671 /* Check that off_t can represent 2**63 - 1 correctly.
21672    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21673    since some C++ compilers masquerading as C compilers
21674    incorrectly reject 9223372036854775807.  */
21675#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21676  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21677		       && LARGE_OFF_T % 2147483647 == 1)
21678		      ? 1 : -1];
21679int
21680main ()
21681{
21682
21683  ;
21684  return 0;
21685}
21686_ACEOF
21687if ac_fn_c_try_compile "$LINENO"; then :
21688  ac_cv_sys_large_files=1; break
21689fi
21690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21691  ac_cv_sys_large_files=unknown
21692  break
21693done
21694fi
21695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
21696$as_echo "$ac_cv_sys_large_files" >&6; }
21697case $ac_cv_sys_large_files in #(
21698  no | unknown) ;;
21699  *)
21700cat >>confdefs.h <<_ACEOF
21701#define _LARGE_FILES $ac_cv_sys_large_files
21702_ACEOF
21703;;
21704esac
21705rm -rf conftest*
21706  fi
21707
21708
21709fi
21710
21711
21712
21713if test -n "$ac_tool_prefix"; then
21714  # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
21715set dummy ${ac_tool_prefix}cpp; ac_word=$2
21716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21717$as_echo_n "checking for $ac_word... " >&6; }
21718if ${ac_cv_path_RAWCPP+:} false; then :
21719  $as_echo_n "(cached) " >&6
21720else
21721  case $RAWCPP in
21722  [\\/]* | ?:[\\/]*)
21723  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
21724  ;;
21725  *)
21726  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21727as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
21728for as_dir in $as_dummy
21729do
21730  IFS=$as_save_IFS
21731  test -z "$as_dir" && as_dir=.
21732    for ac_exec_ext in '' $ac_executable_extensions; do
21733  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21734    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
21735    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21736    break 2
21737  fi
21738done
21739  done
21740IFS=$as_save_IFS
21741
21742  ;;
21743esac
21744fi
21745RAWCPP=$ac_cv_path_RAWCPP
21746if test -n "$RAWCPP"; then
21747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
21748$as_echo "$RAWCPP" >&6; }
21749else
21750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21751$as_echo "no" >&6; }
21752fi
21753
21754
21755fi
21756if test -z "$ac_cv_path_RAWCPP"; then
21757  ac_pt_RAWCPP=$RAWCPP
21758  # Extract the first word of "cpp", so it can be a program name with args.
21759set dummy cpp; ac_word=$2
21760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21761$as_echo_n "checking for $ac_word... " >&6; }
21762if ${ac_cv_path_ac_pt_RAWCPP+:} false; then :
21763  $as_echo_n "(cached) " >&6
21764else
21765  case $ac_pt_RAWCPP in
21766  [\\/]* | ?:[\\/]*)
21767  ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path.
21768  ;;
21769  *)
21770  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21771as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
21772for as_dir in $as_dummy
21773do
21774  IFS=$as_save_IFS
21775  test -z "$as_dir" && as_dir=.
21776    for ac_exec_ext in '' $ac_executable_extensions; do
21777  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21778    ac_cv_path_ac_pt_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
21779    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21780    break 2
21781  fi
21782done
21783  done
21784IFS=$as_save_IFS
21785
21786  ;;
21787esac
21788fi
21789ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP
21790if test -n "$ac_pt_RAWCPP"; then
21791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5
21792$as_echo "$ac_pt_RAWCPP" >&6; }
21793else
21794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21795$as_echo "no" >&6; }
21796fi
21797
21798  if test "x$ac_pt_RAWCPP" = x; then
21799    RAWCPP="${CPP}"
21800  else
21801    case $cross_compiling:$ac_tool_warned in
21802yes:)
21803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21805ac_tool_warned=yes ;;
21806esac
21807    RAWCPP=$ac_pt_RAWCPP
21808  fi
21809else
21810  RAWCPP="$ac_cv_path_RAWCPP"
21811fi
21812
21813
21814# Check for flag to avoid builtin definitions - assumes unix is predefined,
21815# which is not the best choice for supporting other OS'es, but covers most
21816# of the ones we need for now.
21817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
21818$as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
21819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21820/* end confdefs.h.  */
21821Does cpp redefine unix ?
21822_ACEOF
21823if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
21824	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21825$as_echo "no" >&6; }
21826else
21827	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
21828		RAWCPPFLAGS=-undef
21829		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21830$as_echo "yes" >&6; }
21831	# under Cygwin unix is still defined even with -undef
21832	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
21833		RAWCPPFLAGS="-undef -ansi"
21834		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
21835$as_echo "yes, with -ansi" >&6; }
21836	else
21837		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
21838	fi
21839fi
21840rm -f conftest.$ac_ext
21841
21842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
21843$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
21844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21845/* end confdefs.h.  */
21846Does cpp preserve   "whitespace"?
21847_ACEOF
21848if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
21849	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21850$as_echo "no" >&6; }
21851else
21852	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
21853		TRADITIONALCPPFLAGS="-traditional"
21854		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
21855		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21856$as_echo "yes" >&6; }
21857	else
21858		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
21859	fi
21860fi
21861rm -f conftest.$ac_ext
21862
21863
21864
21865
21866# Quoted so that make will expand $(CWARNFLAGS) in makefiles to allow
21867# easier overrides at build time.
21868XSERVER_CFLAGS='$(CWARNFLAGS)'
21869
21870if  test "x$GCC" = xyes ; then
21871    XSERVER_CFLAGS="$XSERVER_CFLAGS -fno-strict-aliasing"
21872fi
21873
21874
21875# Check whether --with-dtrace was given.
21876if test "${with_dtrace+set}" = set; then :
21877  withval=$with_dtrace; WDTRACE=$withval
21878else
21879  WDTRACE=auto
21880fi
21881
21882if test "x$WDTRACE" = "xyes" -o "x$WDTRACE" = "xauto" ; then
21883	# Extract the first word of "dtrace", so it can be a program name with args.
21884set dummy dtrace; ac_word=$2
21885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21886$as_echo_n "checking for $ac_word... " >&6; }
21887if ${ac_cv_path_DTRACE+:} false; then :
21888  $as_echo_n "(cached) " >&6
21889else
21890  case $DTRACE in
21891  [\\/]* | ?:[\\/]*)
21892  ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
21893  ;;
21894  *)
21895  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21896as_dummy="$PATH:/usr/sbin"
21897for as_dir in $as_dummy
21898do
21899  IFS=$as_save_IFS
21900  test -z "$as_dir" && as_dir=.
21901    for ac_exec_ext in '' $ac_executable_extensions; do
21902  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21903    ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
21904    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21905    break 2
21906  fi
21907done
21908  done
21909IFS=$as_save_IFS
21910
21911  test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not_found"
21912  ;;
21913esac
21914fi
21915DTRACE=$ac_cv_path_DTRACE
21916if test -n "$DTRACE"; then
21917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
21918$as_echo "$DTRACE" >&6; }
21919else
21920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21921$as_echo "no" >&6; }
21922fi
21923
21924
21925	if test "x$DTRACE" = "xnot_found" ; then
21926		if test "x$WDTRACE" = "xyes" ; then
21927			{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21929as_fn_error $? "dtrace requested but not found
21930See \`config.log' for more details" "$LINENO" 5; }
21931		fi
21932		WDTRACE="no"
21933	else
21934		ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
21935if test "x$ac_cv_header_sys_sdt_h" = xyes; then :
21936  HAS_SDT_H="yes"
21937else
21938  HAS_SDT_H="no"
21939fi
21940
21941
21942		if test "x$WDTRACE" = "xauto" -a "x$HAS_SDT_H" = "xno" ; then
21943			WDTRACE="no"
21944		fi
21945	fi
21946fi
21947if test "x$WDTRACE" != "xno" ; then
21948
21949$as_echo "#define XSERVER_DTRACE 1" >>confdefs.h
21950
21951
21952# Solaris/OpenSolaris require dtrace -G to build dtrace probe information into
21953# object files, and require linking with those as relocatable objects, not .a
21954# archives. MacOS X handles all this in the normal compiler toolchain, and on
21955# some releases (like Tiger), will error out on dtrace -G.  For now, other
21956# platforms with Dtrace ports are assumed to support -G (the FreeBSD and Linux
21957# ports appear to, based on my web searches, but have not yet been tested).
21958	case $host_os in
21959		darwin*)	SPECIAL_DTRACE_OBJECTS=no ;;
21960		*)		SPECIAL_DTRACE_OBJECTS=yes ;;
21961	esac
21962fi
21963 if test "x$WDTRACE" != "xno"; then
21964  XSERVER_DTRACE_TRUE=
21965  XSERVER_DTRACE_FALSE='#'
21966else
21967  XSERVER_DTRACE_TRUE='#'
21968  XSERVER_DTRACE_FALSE=
21969fi
21970
21971 if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes"; then
21972  SPECIAL_DTRACE_OBJECTS_TRUE=
21973  SPECIAL_DTRACE_OBJECTS_FALSE='#'
21974else
21975  SPECIAL_DTRACE_OBJECTS_TRUE='#'
21976  SPECIAL_DTRACE_OBJECTS_FALSE=
21977fi
21978
21979
21980ac_header_dirent=no
21981for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21982  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21984$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21985if eval \${$as_ac_Header+:} false; then :
21986  $as_echo_n "(cached) " >&6
21987else
21988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21989/* end confdefs.h.  */
21990#include <sys/types.h>
21991#include <$ac_hdr>
21992
21993int
21994main ()
21995{
21996if ((DIR *) 0)
21997return 0;
21998  ;
21999  return 0;
22000}
22001_ACEOF
22002if ac_fn_c_try_compile "$LINENO"; then :
22003  eval "$as_ac_Header=yes"
22004else
22005  eval "$as_ac_Header=no"
22006fi
22007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22008fi
22009eval ac_res=\$$as_ac_Header
22010	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22011$as_echo "$ac_res" >&6; }
22012if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22013  cat >>confdefs.h <<_ACEOF
22014#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22015_ACEOF
22016
22017ac_header_dirent=$ac_hdr; break
22018fi
22019
22020done
22021# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22022if test $ac_header_dirent = dirent.h; then
22023  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22024$as_echo_n "checking for library containing opendir... " >&6; }
22025if ${ac_cv_search_opendir+:} false; then :
22026  $as_echo_n "(cached) " >&6
22027else
22028  ac_func_search_save_LIBS=$LIBS
22029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22030/* end confdefs.h.  */
22031
22032/* Override any GCC internal prototype to avoid an error.
22033   Use char because int might match the return type of a GCC
22034   builtin and then its argument prototype would still apply.  */
22035#ifdef __cplusplus
22036extern "C"
22037#endif
22038char opendir ();
22039int
22040main ()
22041{
22042return opendir ();
22043  ;
22044  return 0;
22045}
22046_ACEOF
22047for ac_lib in '' dir; do
22048  if test -z "$ac_lib"; then
22049    ac_res="none required"
22050  else
22051    ac_res=-l$ac_lib
22052    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22053  fi
22054  if ac_fn_c_try_link "$LINENO"; then :
22055  ac_cv_search_opendir=$ac_res
22056fi
22057rm -f core conftest.err conftest.$ac_objext \
22058    conftest$ac_exeext
22059  if ${ac_cv_search_opendir+:} false; then :
22060  break
22061fi
22062done
22063if ${ac_cv_search_opendir+:} false; then :
22064
22065else
22066  ac_cv_search_opendir=no
22067fi
22068rm conftest.$ac_ext
22069LIBS=$ac_func_search_save_LIBS
22070fi
22071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22072$as_echo "$ac_cv_search_opendir" >&6; }
22073ac_res=$ac_cv_search_opendir
22074if test "$ac_res" != no; then :
22075  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22076
22077fi
22078
22079else
22080  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22081$as_echo_n "checking for library containing opendir... " >&6; }
22082if ${ac_cv_search_opendir+:} false; then :
22083  $as_echo_n "(cached) " >&6
22084else
22085  ac_func_search_save_LIBS=$LIBS
22086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22087/* end confdefs.h.  */
22088
22089/* Override any GCC internal prototype to avoid an error.
22090   Use char because int might match the return type of a GCC
22091   builtin and then its argument prototype would still apply.  */
22092#ifdef __cplusplus
22093extern "C"
22094#endif
22095char opendir ();
22096int
22097main ()
22098{
22099return opendir ();
22100  ;
22101  return 0;
22102}
22103_ACEOF
22104for ac_lib in '' x; do
22105  if test -z "$ac_lib"; then
22106    ac_res="none required"
22107  else
22108    ac_res=-l$ac_lib
22109    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22110  fi
22111  if ac_fn_c_try_link "$LINENO"; then :
22112  ac_cv_search_opendir=$ac_res
22113fi
22114rm -f core conftest.err conftest.$ac_objext \
22115    conftest$ac_exeext
22116  if ${ac_cv_search_opendir+:} false; then :
22117  break
22118fi
22119done
22120if ${ac_cv_search_opendir+:} false; then :
22121
22122else
22123  ac_cv_search_opendir=no
22124fi
22125rm conftest.$ac_ext
22126LIBS=$ac_func_search_save_LIBS
22127fi
22128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22129$as_echo "$ac_cv_search_opendir" >&6; }
22130ac_res=$ac_cv_search_opendir
22131if test "$ac_res" != no; then :
22132  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22133
22134fi
22135
22136fi
22137
22138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
22139$as_echo_n "checking for ANSI C header files... " >&6; }
22140if ${ac_cv_header_stdc+:} false; then :
22141  $as_echo_n "(cached) " >&6
22142else
22143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22144/* end confdefs.h.  */
22145#include <stdlib.h>
22146#include <stdarg.h>
22147#include <string.h>
22148#include <float.h>
22149
22150int
22151main ()
22152{
22153
22154  ;
22155  return 0;
22156}
22157_ACEOF
22158if ac_fn_c_try_compile "$LINENO"; then :
22159  ac_cv_header_stdc=yes
22160else
22161  ac_cv_header_stdc=no
22162fi
22163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22164
22165if test $ac_cv_header_stdc = yes; then
22166  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22168/* end confdefs.h.  */
22169#include <string.h>
22170
22171_ACEOF
22172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22173  $EGREP "memchr" >/dev/null 2>&1; then :
22174
22175else
22176  ac_cv_header_stdc=no
22177fi
22178rm -f conftest*
22179
22180fi
22181
22182if test $ac_cv_header_stdc = yes; then
22183  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22185/* end confdefs.h.  */
22186#include <stdlib.h>
22187
22188_ACEOF
22189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22190  $EGREP "free" >/dev/null 2>&1; then :
22191
22192else
22193  ac_cv_header_stdc=no
22194fi
22195rm -f conftest*
22196
22197fi
22198
22199if test $ac_cv_header_stdc = yes; then
22200  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22201  if test "$cross_compiling" = yes; then :
22202  :
22203else
22204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22205/* end confdefs.h.  */
22206#include <ctype.h>
22207#include <stdlib.h>
22208#if ((' ' & 0x0FF) == 0x020)
22209# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22210# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22211#else
22212# define ISLOWER(c) \
22213		   (('a' <= (c) && (c) <= 'i') \
22214		     || ('j' <= (c) && (c) <= 'r') \
22215		     || ('s' <= (c) && (c) <= 'z'))
22216# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22217#endif
22218
22219#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22220int
22221main ()
22222{
22223  int i;
22224  for (i = 0; i < 256; i++)
22225    if (XOR (islower (i), ISLOWER (i))
22226	|| toupper (i) != TOUPPER (i))
22227      return 2;
22228  return 0;
22229}
22230_ACEOF
22231if ac_fn_c_try_run "$LINENO"; then :
22232
22233else
22234  ac_cv_header_stdc=no
22235fi
22236rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22237  conftest.$ac_objext conftest.beam conftest.$ac_ext
22238fi
22239
22240fi
22241fi
22242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
22243$as_echo "$ac_cv_header_stdc" >&6; }
22244if test $ac_cv_header_stdc = yes; then
22245
22246$as_echo "#define STDC_HEADERS 1" >>confdefs.h
22247
22248fi
22249
22250for ac_header in fcntl.h stdlib.h string.h unistd.h dlfcn.h stropts.h \
22251 fnmatch.h sys/mkdev.h sys/sysmacros.h sys/utsname.h
22252do :
22253  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22254ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22255if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22256  cat >>confdefs.h <<_ACEOF
22257#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22258_ACEOF
22259
22260fi
22261
22262done
22263
22264
22265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22266$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22267if ${ac_cv_c_const+:} false; then :
22268  $as_echo_n "(cached) " >&6
22269else
22270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22271/* end confdefs.h.  */
22272
22273int
22274main ()
22275{
22276
22277#ifndef __cplusplus
22278  /* Ultrix mips cc rejects this sort of thing.  */
22279  typedef int charset[2];
22280  const charset cs = { 0, 0 };
22281  /* SunOS 4.1.1 cc rejects this.  */
22282  char const *const *pcpcc;
22283  char **ppc;
22284  /* NEC SVR4.0.2 mips cc rejects this.  */
22285  struct point {int x, y;};
22286  static struct point const zero = {0,0};
22287  /* AIX XL C 1.02.0.0 rejects this.
22288     It does not let you subtract one const X* pointer from another in
22289     an arm of an if-expression whose if-part is not a constant
22290     expression */
22291  const char *g = "string";
22292  pcpcc = &g + (g ? g-g : 0);
22293  /* HPUX 7.0 cc rejects these. */
22294  ++pcpcc;
22295  ppc = (char**) pcpcc;
22296  pcpcc = (char const *const *) ppc;
22297  { /* SCO 3.2v4 cc rejects this sort of thing.  */
22298    char tx;
22299    char *t = &tx;
22300    char const *s = 0 ? (char *) 0 : (char const *) 0;
22301
22302    *t++ = 0;
22303    if (s) return 0;
22304  }
22305  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22306    int x[] = {25, 17};
22307    const int *foo = &x[0];
22308    ++foo;
22309  }
22310  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22311    typedef const int *iptr;
22312    iptr p = 0;
22313    ++p;
22314  }
22315  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22316       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22317    struct s { int j; const int *ap[3]; } bx;
22318    struct s *b = &bx; b->j = 5;
22319  }
22320  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22321    const int foo = 10;
22322    if (!foo) return 0;
22323  }
22324  return !cs[0] && !zero.x;
22325#endif
22326
22327  ;
22328  return 0;
22329}
22330_ACEOF
22331if ac_fn_c_try_compile "$LINENO"; then :
22332  ac_cv_c_const=yes
22333else
22334  ac_cv_c_const=no
22335fi
22336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22337fi
22338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22339$as_echo "$ac_cv_c_const" >&6; }
22340if test $ac_cv_c_const = no; then
22341
22342$as_echo "#define const /**/" >>confdefs.h
22343
22344fi
22345
22346
22347  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5
22348$as_echo_n "checking for typeof syntax and keyword spelling... " >&6; }
22349if ${ac_cv_c_typeof+:} false; then :
22350  $as_echo_n "(cached) " >&6
22351else
22352  ac_cv_c_typeof=no
22353     for ac_kw in typeof __typeof__ no; do
22354       test $ac_kw = no && break
22355       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22356/* end confdefs.h.  */
22357
22358int
22359main ()
22360{
22361
22362	   int value;
22363	   typedef struct {
22364		   char a [1
22365			   + ! (($ac_kw (value))
22366				(($ac_kw (value)) 0 < ($ac_kw (value)) -1
22367				 ? ($ac_kw (value)) - 1
22368				 : ~ (~ ($ac_kw (value)) 0
22369				      << sizeof ($ac_kw (value)))))]; }
22370	      ac__typeof_type_;
22371	   return
22372	     (! ((void) ((ac__typeof_type_ *) 0), 0));
22373
22374  ;
22375  return 0;
22376}
22377_ACEOF
22378if ac_fn_c_try_compile "$LINENO"; then :
22379  ac_cv_c_typeof=$ac_kw
22380fi
22381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22382       test $ac_cv_c_typeof != no && break
22383     done
22384fi
22385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5
22386$as_echo "$ac_cv_c_typeof" >&6; }
22387  if test $ac_cv_c_typeof != no; then
22388
22389$as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
22390
22391    if test $ac_cv_c_typeof != typeof; then
22392
22393cat >>confdefs.h <<_ACEOF
22394#define typeof $ac_cv_c_typeof
22395_ACEOF
22396
22397    fi
22398  fi
22399
22400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22401$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22402if ${ac_cv_c_bigendian+:} false; then :
22403  $as_echo_n "(cached) " >&6
22404else
22405  ac_cv_c_bigendian=unknown
22406    # See if we're dealing with a universal compiler.
22407    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22408/* end confdefs.h.  */
22409#ifndef __APPLE_CC__
22410	       not a universal capable compiler
22411	     #endif
22412	     typedef int dummy;
22413
22414_ACEOF
22415if ac_fn_c_try_compile "$LINENO"; then :
22416
22417	# Check for potential -arch flags.  It is not universal unless
22418	# there are at least two -arch flags with different values.
22419	ac_arch=
22420	ac_prev=
22421	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22422	 if test -n "$ac_prev"; then
22423	   case $ac_word in
22424	     i?86 | x86_64 | ppc | ppc64)
22425	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22426		 ac_arch=$ac_word
22427	       else
22428		 ac_cv_c_bigendian=universal
22429		 break
22430	       fi
22431	       ;;
22432	   esac
22433	   ac_prev=
22434	 elif test "x$ac_word" = "x-arch"; then
22435	   ac_prev=arch
22436	 fi
22437       done
22438fi
22439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22440    if test $ac_cv_c_bigendian = unknown; then
22441      # See if sys/param.h defines the BYTE_ORDER macro.
22442      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22443/* end confdefs.h.  */
22444#include <sys/types.h>
22445	     #include <sys/param.h>
22446
22447int
22448main ()
22449{
22450#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22451		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22452		     && LITTLE_ENDIAN)
22453	      bogus endian macros
22454	     #endif
22455
22456  ;
22457  return 0;
22458}
22459_ACEOF
22460if ac_fn_c_try_compile "$LINENO"; then :
22461  # It does; now see whether it defined to BIG_ENDIAN or not.
22462	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22463/* end confdefs.h.  */
22464#include <sys/types.h>
22465		#include <sys/param.h>
22466
22467int
22468main ()
22469{
22470#if BYTE_ORDER != BIG_ENDIAN
22471		 not big endian
22472		#endif
22473
22474  ;
22475  return 0;
22476}
22477_ACEOF
22478if ac_fn_c_try_compile "$LINENO"; then :
22479  ac_cv_c_bigendian=yes
22480else
22481  ac_cv_c_bigendian=no
22482fi
22483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22484fi
22485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22486    fi
22487    if test $ac_cv_c_bigendian = unknown; then
22488      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22489      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22490/* end confdefs.h.  */
22491#include <limits.h>
22492
22493int
22494main ()
22495{
22496#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22497	      bogus endian macros
22498	     #endif
22499
22500  ;
22501  return 0;
22502}
22503_ACEOF
22504if ac_fn_c_try_compile "$LINENO"; then :
22505  # It does; now see whether it defined to _BIG_ENDIAN or not.
22506	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22507/* end confdefs.h.  */
22508#include <limits.h>
22509
22510int
22511main ()
22512{
22513#ifndef _BIG_ENDIAN
22514		 not big endian
22515		#endif
22516
22517  ;
22518  return 0;
22519}
22520_ACEOF
22521if ac_fn_c_try_compile "$LINENO"; then :
22522  ac_cv_c_bigendian=yes
22523else
22524  ac_cv_c_bigendian=no
22525fi
22526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22527fi
22528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22529    fi
22530    if test $ac_cv_c_bigendian = unknown; then
22531      # Compile a test program.
22532      if test "$cross_compiling" = yes; then :
22533  # Try to guess by grepping values from an object file.
22534	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22535/* end confdefs.h.  */
22536short int ascii_mm[] =
22537		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22538		short int ascii_ii[] =
22539		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22540		int use_ascii (int i) {
22541		  return ascii_mm[i] + ascii_ii[i];
22542		}
22543		short int ebcdic_ii[] =
22544		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22545		short int ebcdic_mm[] =
22546		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22547		int use_ebcdic (int i) {
22548		  return ebcdic_mm[i] + ebcdic_ii[i];
22549		}
22550		extern int foo;
22551
22552int
22553main ()
22554{
22555return use_ascii (foo) == use_ebcdic (foo);
22556  ;
22557  return 0;
22558}
22559_ACEOF
22560if ac_fn_c_try_compile "$LINENO"; then :
22561  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22562	      ac_cv_c_bigendian=yes
22563	    fi
22564	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22565	      if test "$ac_cv_c_bigendian" = unknown; then
22566		ac_cv_c_bigendian=no
22567	      else
22568		# finding both strings is unlikely to happen, but who knows?
22569		ac_cv_c_bigendian=unknown
22570	      fi
22571	    fi
22572fi
22573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22574else
22575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22576/* end confdefs.h.  */
22577$ac_includes_default
22578int
22579main ()
22580{
22581
22582	     /* Are we little or big endian?  From Harbison&Steele.  */
22583	     union
22584	     {
22585	       long int l;
22586	       char c[sizeof (long int)];
22587	     } u;
22588	     u.l = 1;
22589	     return u.c[sizeof (long int) - 1] == 1;
22590
22591  ;
22592  return 0;
22593}
22594_ACEOF
22595if ac_fn_c_try_run "$LINENO"; then :
22596  ac_cv_c_bigendian=no
22597else
22598  ac_cv_c_bigendian=yes
22599fi
22600rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22601  conftest.$ac_objext conftest.beam conftest.$ac_ext
22602fi
22603
22604    fi
22605fi
22606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
22607$as_echo "$ac_cv_c_bigendian" >&6; }
22608 case $ac_cv_c_bigendian in #(
22609   yes)
22610
22611$as_echo "#define X_BYTE_ORDER X_BIG_ENDIAN" >>confdefs.h
22612;; #(
22613   no)
22614
22615$as_echo "#define X_BYTE_ORDER X_LITTLE_ENDIAN" >>confdefs.h
22616 ;; #(
22617   universal)
22618
22619$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22620
22621     ;; #(
22622   *)
22623     as_fn_error $? "unknown endianness
22624 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
22625 esac
22626
22627
22628# The cast to long int works around a bug in the HP C Compiler
22629# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22630# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22631# This bug is HP SR number 8606223364.
22632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
22633$as_echo_n "checking size of unsigned long... " >&6; }
22634if ${ac_cv_sizeof_unsigned_long+:} false; then :
22635  $as_echo_n "(cached) " >&6
22636else
22637  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
22638
22639else
22640  if test "$ac_cv_type_unsigned_long" = yes; then
22641     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22643as_fn_error 77 "cannot compute sizeof (unsigned long)
22644See \`config.log' for more details" "$LINENO" 5; }
22645   else
22646     ac_cv_sizeof_unsigned_long=0
22647   fi
22648fi
22649
22650fi
22651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
22652$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
22653
22654
22655
22656cat >>confdefs.h <<_ACEOF
22657#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
22658_ACEOF
22659
22660
22661if test "$ac_cv_sizeof_unsigned_long" = 8; then
22662
22663$as_echo "#define _XSERVER64 1" >>confdefs.h
22664
22665fi
22666
22667ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22668if test "x$ac_cv_type_pid_t" = xyes; then :
22669
22670else
22671
22672cat >>confdefs.h <<_ACEOF
22673#define pid_t int
22674_ACEOF
22675
22676fi
22677
22678
22679ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22680if test "x$ac_cv_func_dlopen" = xyes; then :
22681
22682else
22683  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22684$as_echo_n "checking for dlopen in -ldl... " >&6; }
22685if ${ac_cv_lib_dl_dlopen+:} false; then :
22686  $as_echo_n "(cached) " >&6
22687else
22688  ac_check_lib_save_LIBS=$LIBS
22689LIBS="-ldl  $LIBS"
22690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22691/* end confdefs.h.  */
22692
22693/* Override any GCC internal prototype to avoid an error.
22694   Use char because int might match the return type of a GCC
22695   builtin and then its argument prototype would still apply.  */
22696#ifdef __cplusplus
22697extern "C"
22698#endif
22699char dlopen ();
22700int
22701main ()
22702{
22703return dlopen ();
22704  ;
22705  return 0;
22706}
22707_ACEOF
22708if ac_fn_c_try_link "$LINENO"; then :
22709  ac_cv_lib_dl_dlopen=yes
22710else
22711  ac_cv_lib_dl_dlopen=no
22712fi
22713rm -f core conftest.err conftest.$ac_objext \
22714    conftest$ac_exeext conftest.$ac_ext
22715LIBS=$ac_check_lib_save_LIBS
22716fi
22717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22718$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22719if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
22720  DLOPEN_LIBS="-ldl"
22721fi
22722
22723fi
22724
22725
22726
22727for ac_func in backtrace geteuid getuid issetugid getresuid \
22728	getdtablesize getifaddrs getpeereid getpeerucred getprogname getzoneid \
22729	mmap posix_fallocate seteuid shmctl64 strncasecmp vasprintf vsnprintf \
22730	walkcontext setitimer poll epoll_create1 mkostemp memfd_create isastream
22731do :
22732  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22733ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22734if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22735  cat >>confdefs.h <<_ACEOF
22736#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22737_ACEOF
22738
22739fi
22740done
22741
22742
22743ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
22744if test "x$ac_cv_func_reallocarray" = xyes; then :
22745  $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
22746
22747else
22748  case " $LIBOBJS " in
22749  *" reallocarray.$ac_objext "* ) ;;
22750  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
22751 ;;
22752esac
22753
22754fi
22755
22756ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
22757if test "x$ac_cv_func_strcasecmp" = xyes; then :
22758  $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
22759
22760else
22761  case " $LIBOBJS " in
22762  *" strcasecmp.$ac_objext "* ) ;;
22763  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
22764 ;;
22765esac
22766
22767fi
22768
22769ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
22770if test "x$ac_cv_func_strcasestr" = xyes; then :
22771  $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
22772
22773else
22774  case " $LIBOBJS " in
22775  *" strcasestr.$ac_objext "* ) ;;
22776  *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
22777 ;;
22778esac
22779
22780fi
22781
22782ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
22783if test "x$ac_cv_func_strlcat" = xyes; then :
22784  $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
22785
22786else
22787  case " $LIBOBJS " in
22788  *" strlcat.$ac_objext "* ) ;;
22789  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
22790 ;;
22791esac
22792
22793fi
22794
22795ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
22796if test "x$ac_cv_func_strlcpy" = xyes; then :
22797  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
22798
22799else
22800  case " $LIBOBJS " in
22801  *" strlcpy.$ac_objext "* ) ;;
22802  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
22803 ;;
22804esac
22805
22806fi
22807
22808ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
22809if test "x$ac_cv_func_strndup" = xyes; then :
22810  $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
22811
22812else
22813  case " $LIBOBJS " in
22814  *" strndup.$ac_objext "* ) ;;
22815  *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
22816 ;;
22817esac
22818
22819fi
22820
22821ac_fn_c_check_func "$LINENO" "timingsafe_memcmp" "ac_cv_func_timingsafe_memcmp"
22822if test "x$ac_cv_func_timingsafe_memcmp" = xyes; then :
22823  $as_echo "#define HAVE_TIMINGSAFE_MEMCMP 1" >>confdefs.h
22824
22825else
22826  case " $LIBOBJS " in
22827  *" timingsafe_memcmp.$ac_objext "* ) ;;
22828  *) LIBOBJS="$LIBOBJS timingsafe_memcmp.$ac_objext"
22829 ;;
22830esac
22831
22832fi
22833
22834
22835 if test "x$ac_cv_func_poll" = "xyes"; then
22836  POLL_TRUE=
22837  POLL_FALSE='#'
22838else
22839  POLL_TRUE='#'
22840  POLL_FALSE=
22841fi
22842
22843
22844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5
22845$as_echo_n "checking for arc4random_buf in -lbsd... " >&6; }
22846if ${ac_cv_lib_bsd_arc4random_buf+:} false; then :
22847  $as_echo_n "(cached) " >&6
22848else
22849  ac_check_lib_save_LIBS=$LIBS
22850LIBS="-lbsd  $LIBS"
22851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22852/* end confdefs.h.  */
22853
22854/* Override any GCC internal prototype to avoid an error.
22855   Use char because int might match the return type of a GCC
22856   builtin and then its argument prototype would still apply.  */
22857#ifdef __cplusplus
22858extern "C"
22859#endif
22860char arc4random_buf ();
22861int
22862main ()
22863{
22864return arc4random_buf ();
22865  ;
22866  return 0;
22867}
22868_ACEOF
22869if ac_fn_c_try_link "$LINENO"; then :
22870  ac_cv_lib_bsd_arc4random_buf=yes
22871else
22872  ac_cv_lib_bsd_arc4random_buf=no
22873fi
22874rm -f core conftest.err conftest.$ac_objext \
22875    conftest$ac_exeext conftest.$ac_ext
22876LIBS=$ac_check_lib_save_LIBS
22877fi
22878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5
22879$as_echo "$ac_cv_lib_bsd_arc4random_buf" >&6; }
22880if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes; then :
22881  cat >>confdefs.h <<_ACEOF
22882#define HAVE_LIBBSD 1
22883_ACEOF
22884
22885  LIBS="-lbsd $LIBS"
22886
22887fi
22888
22889for ac_func in arc4random_buf
22890do :
22891  ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
22892if test "x$ac_cv_func_arc4random_buf" = xyes; then :
22893  cat >>confdefs.h <<_ACEOF
22894#define HAVE_ARC4RANDOM_BUF 1
22895_ACEOF
22896
22897fi
22898done
22899
22900
22901ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
22902"
22903if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
22904  ac_have_decl=1
22905else
22906  ac_have_decl=0
22907fi
22908
22909cat >>confdefs.h <<_ACEOF
22910#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
22911_ACEOF
22912
22913
22914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_PEERCRED in sys/socket.h" >&5
22915$as_echo_n "checking for SO_PEERCRED in sys/socket.h... " >&6; }
22916if ${xorg_cv_sys_have_so_peercred+:} false; then :
22917  $as_echo_n "(cached) " >&6
22918else
22919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22920/* end confdefs.h.  */
22921
22922#include <sys/types.h>
22923#include <sys/socket.h>
22924#ifdef SO_PEERCRED
22925yes_have_so_peercred
22926#endif
22927
22928_ACEOF
22929if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22930  $EGREP "yes_have_so_peercred" >/dev/null 2>&1; then :
22931  xorg_cv_sys_have_so_peercred=yes
22932else
22933  xorg_cv_sys_have_so_peercred=no
22934fi
22935rm -f conftest*
22936
22937fi
22938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_sys_have_so_peercred" >&5
22939$as_echo "$xorg_cv_sys_have_so_peercred" >&6; }
22940
22941if test "x$ac_cv_func_getpeereid" = xno && test "x$ac_cv_func_getpeerucred" = xno && test "x$xorg_cv_sys_have_so_peercred" = xno ; then
22942
22943$as_echo "#define NO_LOCAL_CLIENT_CRED 1" >>confdefs.h
22944
22945fi
22946
22947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
22948$as_echo_n "checking for sqrt in -lm... " >&6; }
22949if ${ac_cv_lib_m_sqrt+:} false; then :
22950  $as_echo_n "(cached) " >&6
22951else
22952  ac_check_lib_save_LIBS=$LIBS
22953LIBS="-lm  $LIBS"
22954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22955/* end confdefs.h.  */
22956
22957/* Override any GCC internal prototype to avoid an error.
22958   Use char because int might match the return type of a GCC
22959   builtin and then its argument prototype would still apply.  */
22960#ifdef __cplusplus
22961extern "C"
22962#endif
22963char sqrt ();
22964int
22965main ()
22966{
22967return sqrt ();
22968  ;
22969  return 0;
22970}
22971_ACEOF
22972if ac_fn_c_try_link "$LINENO"; then :
22973  ac_cv_lib_m_sqrt=yes
22974else
22975  ac_cv_lib_m_sqrt=no
22976fi
22977rm -f core conftest.err conftest.$ac_objext \
22978    conftest$ac_exeext conftest.$ac_ext
22979LIBS=$ac_check_lib_save_LIBS
22980fi
22981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
22982$as_echo "$ac_cv_lib_m_sqrt" >&6; }
22983if test "x$ac_cv_lib_m_sqrt" = xyes; then :
22984  cat >>confdefs.h <<_ACEOF
22985#define HAVE_LIBM 1
22986_ACEOF
22987
22988  LIBS="-lm $LIBS"
22989
22990fi
22991
22992for ac_func in cbrt
22993do :
22994  ac_fn_c_check_func "$LINENO" "cbrt" "ac_cv_func_cbrt"
22995if test "x$ac_cv_func_cbrt" = xyes; then :
22996  cat >>confdefs.h <<_ACEOF
22997#define HAVE_CBRT 1
22998_ACEOF
22999
23000fi
23001done
23002
23003
23004for ac_header in linux/agpgart.h sys/agpio.h sys/agpgart.h
23005do :
23006  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23007ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23008if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23009  cat >>confdefs.h <<_ACEOF
23010#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23011_ACEOF
23012 AGP=yes
23013fi
23014
23015done
23016
23017 if test "x$AGP" = xyes; then
23018  AGP_TRUE=
23019  AGP_FALSE='#'
23020else
23021  AGP_TRUE='#'
23022  AGP_FALSE=
23023fi
23024
23025
23026for ac_header in linux/fb.h
23027do :
23028  ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default"
23029if test "x$ac_cv_header_linux_fb_h" = xyes; then :
23030  cat >>confdefs.h <<_ACEOF
23031#define HAVE_LINUX_FB_H 1
23032_ACEOF
23033 FBDEV=yes
23034fi
23035
23036done
23037
23038 if test "x$FBDEV" = xyes; then
23039  FBDEVHW_TRUE=
23040  FBDEVHW_FALSE='#'
23041else
23042  FBDEVHW_TRUE='#'
23043  FBDEVHW_FALSE=
23044fi
23045
23046
23047for ac_header in sys/linker.h
23048do :
23049  ac_fn_c_check_header_compile "$LINENO" "sys/linker.h" "ac_cv_header_sys_linker_h" "#include <sys/param.h>
23050"
23051if test "x$ac_cv_header_sys_linker_h" = xyes; then :
23052  cat >>confdefs.h <<_ACEOF
23053#define HAVE_SYS_LINKER_H 1
23054_ACEOF
23055 ac_cv_sys_linker_h=yes
23056else
23057  ac_cv_sys_linker_h=no
23058fi
23059
23060done
23061
23062 if test "x$ac_cv_sys_linker_h" = xyes; then
23063  FREEBSD_KLDLOAD_TRUE=
23064  FREEBSD_KLDLOAD_FALSE='#'
23065else
23066  FREEBSD_KLDLOAD_TRUE='#'
23067  FREEBSD_KLDLOAD_FALSE=
23068fi
23069
23070
23071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSV IPC" >&5
23072$as_echo_n "checking for SYSV IPC... " >&6; }
23073if ${ac_cv_sysv_ipc+:} false; then :
23074  $as_echo_n "(cached) " >&6
23075else
23076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23077/* end confdefs.h.  */
23078
23079#include <sys/types.h>
23080#include <sys/ipc.h>
23081#include <sys/shm.h>
23082#include <sys/stat.h>
23083
23084int
23085main ()
23086{
23087
23088{
23089    int id;
23090    id = shmget(IPC_PRIVATE, 512, S_IRUSR | S_IWUSR);
23091    if (id < 0) return -1;
23092    return shmctl(id, IPC_RMID, 0);
23093}
23094  ;
23095  return 0;
23096}
23097_ACEOF
23098if ac_fn_c_try_link "$LINENO"; then :
23099  ac_cv_sysv_ipc=yes
23100else
23101  ac_cv_sysv_ipc=no
23102fi
23103rm -f core conftest.err conftest.$ac_objext \
23104    conftest$ac_exeext conftest.$ac_ext
23105fi
23106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_ipc" >&5
23107$as_echo "$ac_cv_sysv_ipc" >&6; }
23108if test "x$ac_cv_sysv_ipc" = xyes; then
23109
23110$as_echo "#define HAVE_SYSV_IPC 1" >>confdefs.h
23111
23112fi
23113
23114if test -c /dev/xf86 ; then
23115
23116$as_echo "#define HAS_APERTURE_DRV 1" >>confdefs.h
23117
23118fi
23119
23120ac_fn_c_check_header_mongrel "$LINENO" "machine/apmvar.h" "ac_cv_header_machine_apmvar_h" "$ac_includes_default"
23121if test "x$ac_cv_header_machine_apmvar_h" = xyes; then :
23122
23123	ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
23124if test "x$ac_cv_header_sys_event_h" = xyes; then :
23125  ac_cv_BSD_KQUEUE_APM=yes
23126else
23127  ac_cv_BSD_APM=yes
23128fi
23129
23130
23131fi
23132
23133
23134
23135 if test "x$ac_cv_BSD_APM" = xyes; then
23136  BSD_APM_TRUE=
23137  BSD_APM_FALSE='#'
23138else
23139  BSD_APM_TRUE='#'
23140  BSD_APM_FALSE=
23141fi
23142
23143 if test "x$ac_cv_BSD_KQUEUE_APM" = xyes; then
23144  BSD_KQUEUE_APM_TRUE=
23145  BSD_KQUEUE_APM_FALSE='#'
23146else
23147  BSD_KQUEUE_APM_TRUE='#'
23148  BSD_KQUEUE_APM_FALSE=
23149fi
23150
23151
23152ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
23153if test "x$ac_cv_header_execinfo_h" = xyes; then :
23154
23155    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lc" >&5
23156$as_echo_n "checking for backtrace in -lc... " >&6; }
23157if ${ac_cv_lib_c_backtrace+:} false; then :
23158  $as_echo_n "(cached) " >&6
23159else
23160  ac_check_lib_save_LIBS=$LIBS
23161LIBS="-lc  $LIBS"
23162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23163/* end confdefs.h.  */
23164
23165/* Override any GCC internal prototype to avoid an error.
23166   Use char because int might match the return type of a GCC
23167   builtin and then its argument prototype would still apply.  */
23168#ifdef __cplusplus
23169extern "C"
23170#endif
23171char backtrace ();
23172int
23173main ()
23174{
23175return backtrace ();
23176  ;
23177  return 0;
23178}
23179_ACEOF
23180if ac_fn_c_try_link "$LINENO"; then :
23181  ac_cv_lib_c_backtrace=yes
23182else
23183  ac_cv_lib_c_backtrace=no
23184fi
23185rm -f core conftest.err conftest.$ac_objext \
23186    conftest$ac_exeext conftest.$ac_ext
23187LIBS=$ac_check_lib_save_LIBS
23188fi
23189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_backtrace" >&5
23190$as_echo "$ac_cv_lib_c_backtrace" >&6; }
23191if test "x$ac_cv_lib_c_backtrace" = xyes; then :
23192
23193
23194$as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h
23195
23196
23197$as_echo "#define HAVE_EXECINFO_H 1" >>confdefs.h
23198
23199
23200fi
23201
23202
23203fi
23204
23205
23206
23207DEFAULT_INT10="x86emu"
23208
23209
23210case $host_cpu in
23211  alpha*)
23212	ALPHA_VIDEO=yes
23213	case $host_os in
23214	        *freebsd*)	SYS_LIBS=-lio ;;
23215		*netbsd*)
23216$as_echo "#define USE_ALPHA_PIO 1" >>confdefs.h
23217 ;;
23218	esac
23219	GLX_ARCH_DEFINES="-D__GLX_ALIGN64 -mieee"
23220	;;
23221  arm*)
23222	ARM_VIDEO=yes
23223	DEFAULT_INT10="stub"
23224	;;
23225  i*86)
23226	I386_VIDEO=yes
23227	case $host_os in
23228		*freebsd*)	$as_echo "#define USE_DEV_IO 1" >>confdefs.h
23229 ;;
23230		*dragonfly*)	$as_echo "#define USE_DEV_IO 1" >>confdefs.h
23231 ;;
23232		*netbsd*)	$as_echo "#define USE_I386_IOPL 1" >>confdefs.h
23233
23234				SYS_LIBS=-li386
23235				;;
23236		*openbsd*)	$as_echo "#define USE_I386_IOPL 1" >>confdefs.h
23237
23238				SYS_LIBS=-li386
23239				;;
23240	esac
23241        ;;
23242  powerpc*)
23243	PPC_VIDEO=yes
23244	case $host_os in
23245		*freebsd*)	DEFAULT_INT10=stub ;;
23246	esac
23247	;;
23248  sparc*)
23249	SPARC64_VIDEO=yes
23250	BSD_ARCH_SOURCES="sparc64_video.c ioperm_noop.c"
23251	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
23252	;;
23253  x86_64*|amd64*)
23254	I386_VIDEO=yes
23255	case $host_os in
23256		*freebsd*)
23257$as_echo "#define USE_DEV_IO 1" >>confdefs.h
23258 ;;
23259		*dragonfly*)
23260$as_echo "#define USE_DEV_IO 1" >>confdefs.h
23261 ;;
23262		*netbsd*)
23263$as_echo "#define USE_I386_IOPL 1" >>confdefs.h
23264
23265				SYS_LIBS=-lx86_64
23266				;;
23267		*openbsd*)
23268$as_echo "#define USE_AMD64_IOPL 1" >>confdefs.h
23269
23270				SYS_LIBS=-lamd64
23271				;;
23272	esac
23273	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
23274	;;
23275  ia64*)
23276  	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
23277	;;
23278  s390*)
23279  	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
23280	;;
23281esac
23282
23283
23284 if test "x$ALPHA_VIDEO" = xyes; then
23285  ALPHA_VIDEO_TRUE=
23286  ALPHA_VIDEO_FALSE='#'
23287else
23288  ALPHA_VIDEO_TRUE='#'
23289  ALPHA_VIDEO_FALSE=
23290fi
23291
23292 if test "x$ARM_VIDEO" = xyes; then
23293  ARM_VIDEO_TRUE=
23294  ARM_VIDEO_FALSE='#'
23295else
23296  ARM_VIDEO_TRUE='#'
23297  ARM_VIDEO_FALSE=
23298fi
23299
23300 if test "x$I386_VIDEO" = xyes; then
23301  I386_VIDEO_TRUE=
23302  I386_VIDEO_FALSE='#'
23303else
23304  I386_VIDEO_TRUE='#'
23305  I386_VIDEO_FALSE=
23306fi
23307
23308 if test "x$PPC_VIDEO" = xyes; then
23309  PPC_VIDEO_TRUE=
23310  PPC_VIDEO_FALSE='#'
23311else
23312  PPC_VIDEO_TRUE='#'
23313  PPC_VIDEO_FALSE=
23314fi
23315
23316 if test "x$SPARC64_VIDEO" = xyes; then
23317  SPARC64_VIDEO_TRUE=
23318  SPARC64_VIDEO_FALSE='#'
23319else
23320  SPARC64_VIDEO_TRUE='#'
23321  SPARC64_VIDEO_FALSE=
23322fi
23323
23324
23325DRI=no
23326case $host_os in
23327  *freebsd* | *dragonfly*)
23328	case $host_os in
23329		kfreebsd*-gnu) ;;
23330		*)
23331$as_echo "#define CSRG_BASED 1" >>confdefs.h
23332 ;;
23333	esac
23334
23335$as_echo "#define PCCONS_SUPPORT 1" >>confdefs.h
23336
23337
23338$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h
23339
23340
23341$as_echo "#define SYSCONS_SUPPORT 1" >>confdefs.h
23342
23343	DRI=yes
23344	;;
23345  *netbsd*)
23346
23347$as_echo "#define CSRG_BASED 1" >>confdefs.h
23348
23349
23350$as_echo "#define PCCONS_SUPPORT 1" >>confdefs.h
23351
23352
23353$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h
23354
23355
23356$as_echo "#define WSCONS_SUPPORT 1" >>confdefs.h
23357
23358	DRI=yes
23359	;;
23360  *openbsd*)
23361
23362$as_echo "#define CSRG_BASED 1" >>confdefs.h
23363
23364
23365$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h
23366
23367
23368$as_echo "#define WSCONS_SUPPORT 1" >>confdefs.h
23369
23370	;;
23371  *linux*)
23372	DRI=yes
23373	;;
23374  *solaris*)
23375	DRI=yes
23376	;;
23377  darwin*)
23378
23379$as_echo "#define CSRG_BASED 1" >>confdefs.h
23380
23381	;;
23382  cygwin*|mingw*)
23383	CFLAGS="$CFLAGS -DFD_SETSIZE=512"
23384	;;
23385esac
23386
23387PVMAJOR=`echo $PACKAGE_VERSION | cut -d . -f 1`
23388PVS=`echo $PACKAGE_VERSION | cut -d . -f 4 | cut -d - -f 1`
23389if test "x$PVS" = "x"; then
23390	PVS="0"
23391fi
23392
23393VENDOR_RELEASE="((($PVMAJOR) * 10000000) + (($PVM) * 100000) + (($PVP) * 1000) + $PVS)"
23394VENDOR_MAN_VERSION="Version ${PACKAGE_VERSION}"
23395
23396VENDOR_NAME="The X.Org Foundation"
23397VENDOR_NAME_SHORT="X.Org"
23398VENDOR_WEB="http://wiki.x.org"
23399
23400# Check whether --enable-werror was given.
23401if test "${enable_werror+set}" = set; then :
23402  enableval=$enable_werror; as_fn_error $? "--enable-werror has been replaced by --enable-strict-compilation" "$LINENO" 5
23403fi
23404
23405
23406# Check whether --enable-debug was given.
23407if test "${enable_debug+set}" = set; then :
23408  enableval=$enable_debug; DEBUGGING=$enableval
23409else
23410  DEBUGGING=no
23411fi
23412
23413
23414# Check whether --with-int10 was given.
23415if test "${with_int10+set}" = set; then :
23416  withval=$with_int10; INT10="$withval"
23417else
23418  INT10="$DEFAULT_INT10"
23419fi
23420
23421
23422# Check whether --with-vendor-name was given.
23423if test "${with_vendor_name+set}" = set; then :
23424  withval=$with_vendor_name;  VENDOR_NAME="$withval"
23425fi
23426
23427
23428# Check whether --with-vendor-name-short was given.
23429if test "${with_vendor_name_short+set}" = set; then :
23430  withval=$with_vendor_name_short;  VENDOR_NAME_SHORT="$withval"
23431fi
23432
23433
23434# Check whether --with-vendor-web was given.
23435if test "${with_vendor_web+set}" = set; then :
23436  withval=$with_vendor_web;  VENDOR_WEB="$withval"
23437fi
23438
23439
23440# Check whether --with-module-dir was given.
23441if test "${with_module_dir+set}" = set; then :
23442  withval=$with_module_dir;  moduledir="$withval"
23443else
23444   moduledir="${libdir}/xorg/modules"
23445fi
23446
23447
23448# Check whether --with-log-dir was given.
23449if test "${with_log_dir+set}" = set; then :
23450  withval=$with_log_dir;  logdir="$withval"
23451else
23452   logdir="$localstatedir/log"
23453fi
23454
23455
23456# Check whether --with-builder-addr was given.
23457if test "${with_builder_addr+set}" = set; then :
23458  withval=$with_builder_addr;  BUILDERADDR="$withval"
23459else
23460   BUILDERADDR="xorg@lists.freedesktop.org"
23461fi
23462
23463
23464# Check whether --with-os-name was given.
23465if test "${with_os_name+set}" = set; then :
23466  withval=$with_os_name;  OSNAME="$withval"
23467else
23468   OSNAME=`uname -srm`
23469fi
23470
23471
23472# Check whether --with-os-vendor was given.
23473if test "${with_os_vendor+set}" = set; then :
23474  withval=$with_os_vendor;  OSVENDOR="$withval"
23475else
23476   OSVENDOR=""
23477fi
23478
23479
23480# Check whether --with-builderstring was given.
23481if test "${with_builderstring+set}" = set; then :
23482  withval=$with_builderstring;  BUILDERSTRING="$withval"
23483
23484fi
23485
23486# Check whether --enable-listen-tcp was given.
23487if test "${enable_listen_tcp+set}" = set; then :
23488  enableval=$enable_listen_tcp; LISTEN_TCP=$enableval
23489else
23490  LISTEN_TCP=no
23491fi
23492
23493# Check whether --enable-listen-unix was given.
23494if test "${enable_listen_unix+set}" = set; then :
23495  enableval=$enable_listen_unix; LISTEN_UNIX=$enableval
23496else
23497  LISTEN_UNIX=yes
23498fi
23499
23500
23501# Check whether --enable-listen-local was given.
23502if test "${enable_listen_local+set}" = set; then :
23503  enableval=$enable_listen_local; LISTEN_LOCAL=$enableval
23504else
23505  LISTEN_LOCAL=yes
23506fi
23507
23508
23509case $host_os in
23510    linux*)
23511        FALLBACK_INPUT_DRIVER="libinput"
23512        ;;
23513    *)
23514        FALLBACK_INPUT_DRIVER=""
23515        ;;
23516esac
23517
23518# Check whether --with-fallback-input-driver was given.
23519if test "${with_fallback_input_driver+set}" = set; then :
23520  withval=$with_fallback_input_driver;  FALLBACK_INPUT_DRIVER=$withval
23521fi
23522
23523if test "x$FALLBACK_INPUT_DRIVER" = "xno"; then
23524    FALLBACK_INPUT_DRIVER=""
23525fi
23526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallback input driver" >&5
23527$as_echo_n "checking for fallback input driver... " >&6; }
23528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALLBACK_INPUT_DRIVER" >&5
23529$as_echo "$FALLBACK_INPUT_DRIVER" >&6; }
23530
23531cat >>confdefs.h <<_ACEOF
23532#define FALLBACK_INPUT_DRIVER "$FALLBACK_INPUT_DRIVER"
23533_ACEOF
23534
23535
23536
23537
23538
23539	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
23540$as_echo_n "checking for root directory for font files... " >&6; }
23541
23542# Check whether --with-fontrootdir was given.
23543if test "${with_fontrootdir+set}" = set; then :
23544  withval=$with_fontrootdir; FONTROOTDIR="$withval"
23545fi
23546
23547	# if --with-fontrootdir not specified...
23548	if test "x${FONTROOTDIR}" = "x"; then
23549		FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
23550	fi
23551	# ...and if pkg-config didn't find fontdir in fontutil.pc...
23552	if test "x${FONTROOTDIR}" = "x"; then
23553		FONTROOTDIR="${datadir}/fonts/X11"
23554	fi
23555
23556	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
23557$as_echo "${FONTROOTDIR}" >&6; }
23558
23559
23560
23561
23562	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5
23563$as_echo_n "checking for directory for misc files... " >&6; }
23564
23565# Check whether --with-fontmiscdir was given.
23566if test "${with_fontmiscdir+set}" = set; then :
23567  withval=$with_fontmiscdir; FONTMISCDIR="${withval}"
23568else
23569  FONTMISCDIR='${FONTROOTDIR}/misc'
23570fi
23571
23572
23573	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTMISCDIR}" >&5
23574$as_echo "${FONTMISCDIR}" >&6; }
23575
23576
23577
23578
23579	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for OTF files" >&5
23580$as_echo_n "checking for directory for OTF files... " >&6; }
23581
23582# Check whether --with-fontotfdir was given.
23583if test "${with_fontotfdir+set}" = set; then :
23584  withval=$with_fontotfdir; FONTOTFDIR="${withval}"
23585else
23586  FONTOTFDIR='${FONTROOTDIR}/OTF'
23587fi
23588
23589
23590	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTOTFDIR}" >&5
23591$as_echo "${FONTOTFDIR}" >&6; }
23592
23593
23594
23595
23596	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for TTF files" >&5
23597$as_echo_n "checking for directory for TTF files... " >&6; }
23598
23599# Check whether --with-fontttfdir was given.
23600if test "${with_fontttfdir+set}" = set; then :
23601  withval=$with_fontttfdir; FONTTTFDIR="${withval}"
23602else
23603  FONTTTFDIR='${FONTROOTDIR}/TTF'
23604fi
23605
23606
23607	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTTFDIR}" >&5
23608$as_echo "${FONTTTFDIR}" >&6; }
23609
23610
23611
23612
23613	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for Type1 files" >&5
23614$as_echo_n "checking for directory for Type1 files... " >&6; }
23615
23616# Check whether --with-fonttype1dir was given.
23617if test "${with_fonttype1dir+set}" = set; then :
23618  withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}"
23619else
23620  FONTTYPE1DIR='${FONTROOTDIR}/Type1'
23621fi
23622
23623
23624	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTYPE1DIR}" >&5
23625$as_echo "${FONTTYPE1DIR}" >&6; }
23626
23627
23628
23629
23630	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 75dpi files" >&5
23631$as_echo_n "checking for directory for 75dpi files... " >&6; }
23632
23633# Check whether --with-font75dpidir was given.
23634if test "${with_font75dpidir+set}" = set; then :
23635  withval=$with_font75dpidir; FONT75DPIDIR="${withval}"
23636else
23637  FONT75DPIDIR='${FONTROOTDIR}/75dpi'
23638fi
23639
23640
23641	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT75DPIDIR}" >&5
23642$as_echo "${FONT75DPIDIR}" >&6; }
23643
23644
23645
23646
23647	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 100dpi files" >&5
23648$as_echo_n "checking for directory for 100dpi files... " >&6; }
23649
23650# Check whether --with-font100dpidir was given.
23651if test "${with_font100dpidir+set}" = set; then :
23652  withval=$with_font100dpidir; FONT100DPIDIR="${withval}"
23653else
23654  FONT100DPIDIR='${FONTROOTDIR}/100dpi'
23655fi
23656
23657
23658	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT100DPIDIR}" >&5
23659$as_echo "${FONT100DPIDIR}" >&6; }
23660
23661
23662DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/"
23663case $host_os in
23664    darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;;
23665esac
23666
23667
23668# Check whether --with-default-font-path was given.
23669if test "${with_default_font_path+set}" = set; then :
23670  withval=$with_default_font_path;  FONTPATH="$withval"
23671else
23672   FONTPATH="${DEFAULT_FONT_PATH}"
23673fi
23674
23675
23676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default font path" >&5
23677$as_echo_n "checking for default font path... " >&6; }
23678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTPATH" >&5
23679$as_echo "$FONTPATH" >&6; }
23680
23681
23682# Check whether --with-xkb-path was given.
23683if test "${with_xkb_path+set}" = set; then :
23684  withval=$with_xkb_path;  XKBPATH="$withval"
23685else
23686   XKBPATH="auto"
23687fi
23688
23689
23690# Check whether --with-xkb-output was given.
23691if test "${with_xkb_output+set}" = set; then :
23692  withval=$with_xkb_output;  XKBOUTPUT="$withval"
23693else
23694   XKBOUTPUT="compiled"
23695fi
23696
23697
23698# Check whether --with-default-xkb-rules was given.
23699if test "${with_default_xkb_rules+set}" = set; then :
23700  withval=$with_default_xkb_rules;  XKB_DFLT_RULES="$withval"
23701else
23702   XKB_DFLT_RULES=""
23703fi
23704
23705
23706# Check whether --with-default-xkb-model was given.
23707if test "${with_default_xkb_model+set}" = set; then :
23708  withval=$with_default_xkb_model;  XKB_DFLT_MODEL="$withval"
23709else
23710   XKB_DFLT_MODEL="pc105"
23711fi
23712
23713
23714# Check whether --with-default-xkb-layout was given.
23715if test "${with_default_xkb_layout+set}" = set; then :
23716  withval=$with_default_xkb_layout;  XKB_DFLT_LAYOUT="$withval"
23717else
23718   XKB_DFLT_LAYOUT="us"
23719fi
23720
23721
23722# Check whether --with-default-xkb-variant was given.
23723if test "${with_default_xkb_variant+set}" = set; then :
23724  withval=$with_default_xkb_variant;  XKB_DFLT_VARIANT="$withval"
23725else
23726   XKB_DFLT_VARIANT=""
23727fi
23728
23729
23730# Check whether --with-default-xkb-options was given.
23731if test "${with_default_xkb_options+set}" = set; then :
23732  withval=$with_default_xkb_options;  XKB_DFLT_OPTIONS="$withval"
23733else
23734   XKB_DFLT_OPTIONS=""
23735fi
23736
23737
23738# Check whether --with-serverconfig-path was given.
23739if test "${with_serverconfig_path+set}" = set; then :
23740  withval=$with_serverconfig_path;  SERVERCONFIG="$withval"
23741else
23742   SERVERCONFIG="${libdir}/xorg"
23743fi
23744
23745
23746# Check whether --with-apple-applications-dir was given.
23747if test "${with_apple_applications_dir+set}" = set; then :
23748  withval=$with_apple_applications_dir;  APPLE_APPLICATIONS_DIR="${withval}"
23749else
23750   APPLE_APPLICATIONS_DIR="/Applications/Utilities"
23751fi
23752
23753
23754
23755# Check whether --with-apple-application-name was given.
23756if test "${with_apple_application_name+set}" = set; then :
23757  withval=$with_apple_application_name;  APPLE_APPLICATION_NAME="${withval}"
23758else
23759   APPLE_APPLICATION_NAME="X11"
23760fi
23761
23762
23763
23764# Check whether --with-bundle-id-prefix was given.
23765if test "${with_bundle_id_prefix+set}" = set; then :
23766  withval=$with_bundle_id_prefix;  BUNDLE_ID_PREFIX="${withval}"
23767fi
23768
23769
23770
23771cat >>confdefs.h <<_ACEOF
23772#define BUNDLE_ID_PREFIX "$BUNDLE_ID_PREFIX"
23773_ACEOF
23774
23775
23776
23777# Check whether --with-bundle-version was given.
23778if test "${with_bundle_version+set}" = set; then :
23779  withval=$with_bundle_version;  BUNDLE_VERSION="${withval}"
23780else
23781   BUNDLE_VERSION="1.20.11"
23782fi
23783
23784
23785
23786# Check whether --with-bundle-version-string was given.
23787if test "${with_bundle_version_string+set}" = set; then :
23788  withval=$with_bundle_version_string;  BUNDLE_VERSION_STRING="${withval}"
23789else
23790   BUNDLE_VERSION_STRING="${PACKAGE_VERSION}"
23791fi
23792
23793
23794# Check whether --enable-sparkle was given.
23795if test "${enable_sparkle+set}" = set; then :
23796  enableval=$enable_sparkle;  XQUARTZ_SPARKLE="${enableval}"
23797else
23798   XQUARTZ_SPARKLE="no"
23799fi
23800
23801
23802
23803# Check whether --with-sparkle-feed-url was given.
23804if test "${with_sparkle_feed_url+set}" = set; then :
23805  withval=$with_sparkle_feed_url;  XQUARTZ_SPARKLE_FEED_URL="${withval}"
23806else
23807   XQUARTZ_SPARKLE_FEED_URL="https://www.xquartz.org/releases/sparkle/release.xml"
23808fi
23809
23810
23811# Check whether --enable-visibility was given.
23812if test "${enable_visibility+set}" = set; then :
23813  enableval=$enable_visibility; SYMBOL_VISIBILITY=$enableval
23814else
23815  SYMBOL_VISIBILITY=auto
23816fi
23817
23818
23819
23820# Check whether --with-khronos-spec-dir was given.
23821if test "${with_khronos_spec_dir+set}" = set; then :
23822  withval=$with_khronos_spec_dir; KHRONOS_SPEC_DIR="${withval}"
23823else
23824  KHRONOS_SPEC_DIR=auto
23825fi
23826
23827
23828# Check whether --enable-composite was given.
23829if test "${enable_composite+set}" = set; then :
23830  enableval=$enable_composite; COMPOSITE=$enableval
23831else
23832  COMPOSITE=yes
23833fi
23834
23835# Check whether --enable-mitshm was given.
23836if test "${enable_mitshm+set}" = set; then :
23837  enableval=$enable_mitshm; MITSHM=$enableval
23838else
23839  MITSHM=auto
23840fi
23841
23842# Check whether --enable-xres was given.
23843if test "${enable_xres+set}" = set; then :
23844  enableval=$enable_xres; RES=$enableval
23845else
23846  RES=yes
23847fi
23848
23849# Check whether --enable-record was given.
23850if test "${enable_record+set}" = set; then :
23851  enableval=$enable_record; RECORD=$enableval
23852else
23853  RECORD=yes
23854fi
23855
23856# Check whether --enable-xv was given.
23857if test "${enable_xv+set}" = set; then :
23858  enableval=$enable_xv; XV=$enableval
23859else
23860  XV=yes
23861fi
23862
23863# Check whether --enable-xvmc was given.
23864if test "${enable_xvmc+set}" = set; then :
23865  enableval=$enable_xvmc; XVMC=$enableval
23866else
23867  XVMC=yes
23868fi
23869
23870# Check whether --enable-dga was given.
23871if test "${enable_dga+set}" = set; then :
23872  enableval=$enable_dga; DGA=$enableval
23873else
23874  DGA=auto
23875fi
23876
23877# Check whether --enable-screensaver was given.
23878if test "${enable_screensaver+set}" = set; then :
23879  enableval=$enable_screensaver; SCREENSAVER=$enableval
23880else
23881  SCREENSAVER=yes
23882fi
23883
23884# Check whether --enable-xdmcp was given.
23885if test "${enable_xdmcp+set}" = set; then :
23886  enableval=$enable_xdmcp; XDMCP=$enableval
23887else
23888  XDMCP=auto
23889fi
23890
23891# Check whether --enable-xdm-auth-1 was given.
23892if test "${enable_xdm_auth_1+set}" = set; then :
23893  enableval=$enable_xdm_auth_1; XDMAUTH=$enableval
23894else
23895  XDMAUTH=auto
23896fi
23897
23898# Check whether --enable-glx was given.
23899if test "${enable_glx+set}" = set; then :
23900  enableval=$enable_glx; GLX=$enableval
23901else
23902  GLX=yes
23903fi
23904
23905# Check whether --enable-dri was given.
23906if test "${enable_dri+set}" = set; then :
23907  enableval=$enable_dri; DRI=$enableval
23908fi
23909
23910# Check whether --enable-dri2 was given.
23911if test "${enable_dri2+set}" = set; then :
23912  enableval=$enable_dri2; DRI2=$enableval
23913else
23914  DRI2=auto
23915fi
23916
23917# Check whether --enable-dri3 was given.
23918if test "${enable_dri3+set}" = set; then :
23919  enableval=$enable_dri3; DRI3=$enableval
23920else
23921  DRI3=auto
23922fi
23923
23924# Check whether --enable-present was given.
23925if test "${enable_present+set}" = set; then :
23926  enableval=$enable_present; PRESENT=$enableval
23927else
23928  PRESENT=yes
23929fi
23930
23931# Check whether --enable-xinerama was given.
23932if test "${enable_xinerama+set}" = set; then :
23933  enableval=$enable_xinerama; XINERAMA=$enableval
23934else
23935  XINERAMA=yes
23936fi
23937
23938# Check whether --enable-xf86vidmode was given.
23939if test "${enable_xf86vidmode+set}" = set; then :
23940  enableval=$enable_xf86vidmode; XF86VIDMODE=$enableval
23941else
23942  XF86VIDMODE=auto
23943fi
23944
23945# Check whether --enable-xace was given.
23946if test "${enable_xace+set}" = set; then :
23947  enableval=$enable_xace; XACE=$enableval
23948else
23949  XACE=yes
23950fi
23951
23952# Check whether --enable-xselinux was given.
23953if test "${enable_xselinux+set}" = set; then :
23954  enableval=$enable_xselinux; XSELINUX=$enableval
23955else
23956  XSELINUX=no
23957fi
23958
23959# Check whether --enable-xcsecurity was given.
23960if test "${enable_xcsecurity+set}" = set; then :
23961  enableval=$enable_xcsecurity; XCSECURITY=$enableval
23962else
23963  XCSECURITY=no
23964fi
23965
23966# Check whether --enable-dbe was given.
23967if test "${enable_dbe+set}" = set; then :
23968  enableval=$enable_dbe; DBE=$enableval
23969else
23970  DBE=yes
23971fi
23972
23973# Check whether --enable-xf86bigfont was given.
23974if test "${enable_xf86bigfont+set}" = set; then :
23975  enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
23976else
23977  XF86BIGFONT=no
23978fi
23979
23980# Check whether --enable-dpms was given.
23981if test "${enable_dpms+set}" = set; then :
23982  enableval=$enable_dpms; DPMSExtension=$enableval
23983else
23984  DPMSExtension=yes
23985fi
23986
23987# Check whether --enable-config-udev was given.
23988if test "${enable_config_udev+set}" = set; then :
23989  enableval=$enable_config_udev; CONFIG_UDEV=$enableval
23990else
23991  CONFIG_UDEV=auto
23992fi
23993
23994# Check whether --enable-config-udev-kms was given.
23995if test "${enable_config_udev_kms+set}" = set; then :
23996  enableval=$enable_config_udev_kms; CONFIG_UDEV_KMS=$enableval
23997else
23998  CONFIG_UDEV_KMS=auto
23999fi
24000
24001# Check whether --enable-config-hal was given.
24002if test "${enable_config_hal+set}" = set; then :
24003  enableval=$enable_config_hal; CONFIG_HAL=$enableval
24004else
24005  CONFIG_HAL=auto
24006fi
24007
24008# Check whether --enable-config-wscons was given.
24009if test "${enable_config_wscons+set}" = set; then :
24010  enableval=$enable_config_wscons; CONFIG_WSCONS=$enableval
24011else
24012  CONFIG_WSCONS=auto
24013fi
24014
24015# Check whether --enable-xfree86-utils was given.
24016if test "${enable_xfree86_utils+set}" = set; then :
24017  enableval=$enable_xfree86_utils; XF86UTILS=$enableval
24018else
24019  XF86UTILS=yes
24020fi
24021
24022# Check whether --enable-vgahw was given.
24023if test "${enable_vgahw+set}" = set; then :
24024  enableval=$enable_vgahw; VGAHW=$enableval
24025else
24026  VGAHW=yes
24027fi
24028
24029# Check whether --enable-vbe was given.
24030if test "${enable_vbe+set}" = set; then :
24031  enableval=$enable_vbe; VBE=$enableval
24032else
24033  VBE=yes
24034fi
24035
24036# Check whether --enable-int10-module was given.
24037if test "${enable_int10_module+set}" = set; then :
24038  enableval=$enable_int10_module; INT10MODULE=$enableval
24039else
24040  INT10MODULE=yes
24041fi
24042
24043# Check whether --enable-windowswm was given.
24044if test "${enable_windowswm+set}" = set; then :
24045  enableval=$enable_windowswm; WINDOWSWM=$enableval
24046else
24047  WINDOWSWM=no
24048fi
24049
24050# Check whether --enable-windowsdri was given.
24051if test "${enable_windowsdri+set}" = set; then :
24052  enableval=$enable_windowsdri; WINDOWSDRI=$enableval
24053else
24054  WINDOWSDRI=auto
24055fi
24056
24057# Check whether --enable-libdrm was given.
24058if test "${enable_libdrm+set}" = set; then :
24059  enableval=$enable_libdrm; DRM=$enableval
24060else
24061  DRM=yes
24062fi
24063
24064# Check whether --enable-clientids was given.
24065if test "${enable_clientids+set}" = set; then :
24066  enableval=$enable_clientids; CLIENTIDS=$enableval
24067else
24068  CLIENTIDS=yes
24069fi
24070
24071# Check whether --enable-pciaccess was given.
24072if test "${enable_pciaccess+set}" = set; then :
24073  enableval=$enable_pciaccess; PCI=$enableval
24074else
24075  PCI=yes
24076fi
24077
24078# Check whether --enable-linux_acpi was given.
24079if test "${enable_linux_acpi+set}" = set; then :
24080  enableval=$enable_linux_acpi; enable_linux_acpi=$enableval
24081else
24082  enable_linux_acpi=yes
24083fi
24084
24085# Check whether --enable-linux_apm was given.
24086if test "${enable_linux_apm+set}" = set; then :
24087  enableval=$enable_linux_apm; enable_linux_apm=$enableval
24088else
24089  enable_linux_apm=yes
24090fi
24091
24092# Check whether --enable-systemd-logind was given.
24093if test "${enable_systemd_logind+set}" = set; then :
24094  enableval=$enable_systemd_logind; SYSTEMD_LOGIND=$enableval
24095else
24096  SYSTEMD_LOGIND=auto
24097fi
24098
24099# Check whether --enable-suid-wrapper was given.
24100if test "${enable_suid_wrapper+set}" = set; then :
24101  enableval=$enable_suid_wrapper; SUID_WRAPPER=$enableval
24102else
24103  SUID_WRAPPER=no
24104fi
24105
24106
24107# Check whether --enable-xorg was given.
24108if test "${enable_xorg+set}" = set; then :
24109  enableval=$enable_xorg; XORG=$enableval
24110else
24111  XORG=auto
24112fi
24113
24114# Check whether --enable-dmx was given.
24115if test "${enable_dmx+set}" = set; then :
24116  enableval=$enable_dmx; DMX=$enableval
24117else
24118  DMX=no
24119fi
24120
24121# Check whether --enable-xvfb was given.
24122if test "${enable_xvfb+set}" = set; then :
24123  enableval=$enable_xvfb; XVFB=$enableval
24124else
24125  XVFB=yes
24126fi
24127
24128# Check whether --enable-xnest was given.
24129if test "${enable_xnest+set}" = set; then :
24130  enableval=$enable_xnest; XNEST=$enableval
24131else
24132  XNEST=auto
24133fi
24134
24135# Check whether --enable-xquartz was given.
24136if test "${enable_xquartz+set}" = set; then :
24137  enableval=$enable_xquartz; XQUARTZ=$enableval
24138else
24139  XQUARTZ=auto
24140fi
24141
24142# Check whether --enable-xwayland was given.
24143if test "${enable_xwayland+set}" = set; then :
24144  enableval=$enable_xwayland; XWAYLAND=$enableval
24145else
24146  XWAYLAND=auto
24147fi
24148
24149# Check whether --enable-xwayland-eglstream was given.
24150if test "${enable_xwayland_eglstream+set}" = set; then :
24151  enableval=$enable_xwayland_eglstream; XWAYLAND_EGLSTREAM=$enableval
24152else
24153  XWAYLAND_EGLSTREAM=no
24154fi
24155
24156# Check whether --enable-standalone-xpbproxy was given.
24157if test "${enable_standalone_xpbproxy+set}" = set; then :
24158  enableval=$enable_standalone_xpbproxy; STANDALONE_XPBPROXY=$enableval
24159else
24160  STANDALONE_XPBPROXY=no
24161fi
24162
24163# Check whether --enable-xwin was given.
24164if test "${enable_xwin+set}" = set; then :
24165  enableval=$enable_xwin; XWIN=$enableval
24166else
24167  XWIN=auto
24168fi
24169
24170# Check whether --enable-glamor was given.
24171if test "${enable_glamor+set}" = set; then :
24172  enableval=$enable_glamor; GLAMOR=$enableval
24173else
24174  GLAMOR=auto
24175fi
24176
24177# Check whether --enable-kdrive was given.
24178if test "${enable_kdrive+set}" = set; then :
24179  enableval=$enable_kdrive; KDRIVE=$enableval
24180else
24181  KDRIVE=no
24182fi
24183
24184# Check whether --enable-xephyr was given.
24185if test "${enable_xephyr+set}" = set; then :
24186  enableval=$enable_xephyr; XEPHYR=$enableval
24187else
24188  XEPHYR=auto
24189fi
24190
24191# Check whether --enable-libunwind was given.
24192if test "${enable_libunwind+set}" = set; then :
24193  enableval=$enable_libunwind; LIBUNWIND="$enableval"
24194else
24195  LIBUNWIND="auto"
24196fi
24197
24198# Check whether --enable-xshmfence was given.
24199if test "${enable_xshmfence+set}" = set; then :
24200  enableval=$enable_xshmfence; XSHMFENCE="$enableval"
24201else
24202  XSHMFENCE="auto"
24203fi
24204
24205
24206
24207# Check whether --enable-install-setuid was given.
24208if test "${enable_install_setuid+set}" = set; then :
24209  enableval=$enable_install_setuid; SETUID=$enableval
24210else
24211  SETUID=auto
24212fi
24213
24214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we can install the Xorg server as root" >&5
24215$as_echo_n "checking to see if we can install the Xorg server as root... " >&6; }
24216if test "x$SETUID" = "xauto" ; then
24217	case $host_os in
24218	    cygwin*)		SETUID="no"  ;;
24219	    mingw*)		SETUID="no"  ;;
24220	    darwin*)		SETUID="no"  ;;
24221	    *)
24222	   	case $host_cpu in
24223		    sparc)	SETUID="no"  ;;
24224		    *)		SETUID="yes" ;;
24225		esac
24226	esac
24227	if test "x$SETUID" = xyes; then
24228		touch testfile
24229		chown root testfile > /dev/null 2>&1 || SETUID="no"
24230		rm -f testfile
24231	fi
24232fi
24233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETUID" >&5
24234$as_echo "$SETUID" >&6; }
24235 if test "x$SETUID" = "xyes"; then
24236  INSTALL_SETUID_TRUE=
24237  INSTALL_SETUID_FALSE='#'
24238else
24239  INSTALL_SETUID_TRUE='#'
24240  INSTALL_SETUID_FALSE=
24241fi
24242
24243
24244
24245
24246# Transport selection macro from xtrans.m4
24247
24248
24249 case $host_os in
24250	mingw*)	unixdef="no"   ;;
24251	*)	unixdef="yes"  ;;
24252 esac
24253 # Check whether --enable-unix-transport was given.
24254if test "${enable_unix_transport+set}" = set; then :
24255  enableval=$enable_unix_transport; UNIXCONN=$enableval
24256else
24257  UNIXCONN=$unixdef
24258fi
24259
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
24261$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
24262 if test "$UNIXCONN" = "yes"; then
24263
24264$as_echo "#define UNIXCONN 1" >>confdefs.h
24265
24266 fi
24267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
24268$as_echo "$UNIXCONN" >&6; }
24269 # Check whether --enable-tcp-transport was given.
24270if test "${enable_tcp_transport+set}" = set; then :
24271  enableval=$enable_tcp_transport; TCPCONN=$enableval
24272else
24273  TCPCONN=yes
24274fi
24275
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
24277$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
24278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
24279$as_echo "$TCPCONN" >&6; }
24280 if test "$TCPCONN" = "yes"; then
24281
24282$as_echo "#define TCPCONN 1" >>confdefs.h
24283
24284
24285 # SVR4 hides these in libraries other than libc
24286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
24287$as_echo_n "checking for library containing socket... " >&6; }
24288if ${ac_cv_search_socket+:} false; then :
24289  $as_echo_n "(cached) " >&6
24290else
24291  ac_func_search_save_LIBS=$LIBS
24292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24293/* end confdefs.h.  */
24294
24295/* Override any GCC internal prototype to avoid an error.
24296   Use char because int might match the return type of a GCC
24297   builtin and then its argument prototype would still apply.  */
24298#ifdef __cplusplus
24299extern "C"
24300#endif
24301char socket ();
24302int
24303main ()
24304{
24305return socket ();
24306  ;
24307  return 0;
24308}
24309_ACEOF
24310for ac_lib in '' socket; do
24311  if test -z "$ac_lib"; then
24312    ac_res="none required"
24313  else
24314    ac_res=-l$ac_lib
24315    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24316  fi
24317  if ac_fn_c_try_link "$LINENO"; then :
24318  ac_cv_search_socket=$ac_res
24319fi
24320rm -f core conftest.err conftest.$ac_objext \
24321    conftest$ac_exeext
24322  if ${ac_cv_search_socket+:} false; then :
24323  break
24324fi
24325done
24326if ${ac_cv_search_socket+:} false; then :
24327
24328else
24329  ac_cv_search_socket=no
24330fi
24331rm conftest.$ac_ext
24332LIBS=$ac_func_search_save_LIBS
24333fi
24334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
24335$as_echo "$ac_cv_search_socket" >&6; }
24336ac_res=$ac_cv_search_socket
24337if test "$ac_res" != no; then :
24338  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24339
24340fi
24341
24342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
24343$as_echo_n "checking for library containing gethostbyname... " >&6; }
24344if ${ac_cv_search_gethostbyname+:} false; then :
24345  $as_echo_n "(cached) " >&6
24346else
24347  ac_func_search_save_LIBS=$LIBS
24348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24349/* end confdefs.h.  */
24350
24351/* Override any GCC internal prototype to avoid an error.
24352   Use char because int might match the return type of a GCC
24353   builtin and then its argument prototype would still apply.  */
24354#ifdef __cplusplus
24355extern "C"
24356#endif
24357char gethostbyname ();
24358int
24359main ()
24360{
24361return gethostbyname ();
24362  ;
24363  return 0;
24364}
24365_ACEOF
24366for ac_lib in '' nsl; do
24367  if test -z "$ac_lib"; then
24368    ac_res="none required"
24369  else
24370    ac_res=-l$ac_lib
24371    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24372  fi
24373  if ac_fn_c_try_link "$LINENO"; then :
24374  ac_cv_search_gethostbyname=$ac_res
24375fi
24376rm -f core conftest.err conftest.$ac_objext \
24377    conftest$ac_exeext
24378  if ${ac_cv_search_gethostbyname+:} false; then :
24379  break
24380fi
24381done
24382if ${ac_cv_search_gethostbyname+:} false; then :
24383
24384else
24385  ac_cv_search_gethostbyname=no
24386fi
24387rm conftest.$ac_ext
24388LIBS=$ac_func_search_save_LIBS
24389fi
24390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
24391$as_echo "$ac_cv_search_gethostbyname" >&6; }
24392ac_res=$ac_cv_search_gethostbyname
24393if test "$ac_res" != no; then :
24394  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24395
24396fi
24397
24398 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
24399   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
24400$as_echo_n "checking for main in -lws2_32... " >&6; }
24401if ${ac_cv_lib_ws2_32_main+:} false; then :
24402  $as_echo_n "(cached) " >&6
24403else
24404  ac_check_lib_save_LIBS=$LIBS
24405LIBS="-lws2_32  $LIBS"
24406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24407/* end confdefs.h.  */
24408
24409
24410int
24411main ()
24412{
24413return main ();
24414  ;
24415  return 0;
24416}
24417_ACEOF
24418if ac_fn_c_try_link "$LINENO"; then :
24419  ac_cv_lib_ws2_32_main=yes
24420else
24421  ac_cv_lib_ws2_32_main=no
24422fi
24423rm -f core conftest.err conftest.$ac_objext \
24424    conftest$ac_exeext conftest.$ac_ext
24425LIBS=$ac_check_lib_save_LIBS
24426fi
24427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
24428$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
24429if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
24430  cat >>confdefs.h <<_ACEOF
24431#define HAVE_LIBWS2_32 1
24432_ACEOF
24433
24434  LIBS="-lws2_32 $LIBS"
24435
24436fi
24437
24438 fi
24439
24440 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
24441 # Check whether --enable-ipv6 was given.
24442if test "${enable_ipv6+set}" = set; then :
24443  enableval=$enable_ipv6; IPV6CONN=$enableval
24444else
24445  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
24446if test "x$ac_cv_func_getaddrinfo" = xyes; then :
24447  IPV6CONN=yes
24448else
24449  IPV6CONN=no
24450fi
24451
24452fi
24453
24454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
24455$as_echo_n "checking if IPv6 support should be built... " >&6; }
24456 if test "$IPV6CONN" = "yes"; then
24457
24458$as_echo "#define IPv6 1" >>confdefs.h
24459
24460 fi
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
24462$as_echo "$IPV6CONN" >&6; }
24463
24464 # 4.3BSD-Reno added a new member to struct sockaddr_in
24465 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
24466#include <sys/types.h>
24467#include <sys/socket.h>
24468#include <netinet/in.h>
24469
24470"
24471if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
24472
24473$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
24474
24475fi
24476
24477
24478 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
24479 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
24480$ac_includes_default
24481#include <sys/socket.h>
24482"
24483if test "x$ac_cv_type_socklen_t" = xyes; then :
24484
24485cat >>confdefs.h <<_ACEOF
24486#define HAVE_SOCKLEN_T 1
24487_ACEOF
24488
24489
24490fi
24491
24492
24493 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
24494 # _XOPEN_SOURCE to get it (such as on Solaris)
24495 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
24496$ac_includes_default
24497#include <sys/socket.h>
24498
24499"
24500if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
24501
24502fi
24503
24504 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
24505 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
24506     unset ac_cv_member_struct_msghdr_msg_control
24507     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
24508$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
24509     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
24510#define _XOPEN_SOURCE 600
24511$ac_includes_default
24512#include <sys/socket.h>
24513
24514"
24515if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
24516
24517$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
24518
24519
24520fi
24521
24522 fi
24523 # If that didn't work, fall back to XPG5/UNIX98 with C89
24524 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
24525     unset ac_cv_member_struct_msghdr_msg_control
24526     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
24527$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
24528     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
24529#define _XOPEN_SOURCE 500
24530$ac_includes_default
24531#include <sys/socket.h>
24532
24533"
24534if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
24535
24536$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
24537
24538
24539fi
24540
24541 fi
24542
24543
24544
24545 fi
24546 case $host_os in
24547	solaris*|sco*|sysv4*)	localdef="yes" ;;
24548	*)			localdef="no"  ;;
24549 esac
24550 # Check whether --enable-local-transport was given.
24551if test "${enable_local_transport+set}" = set; then :
24552  enableval=$enable_local_transport; LOCALCONN=$enableval
24553else
24554  LOCALCONN=$localdef
24555fi
24556
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
24558$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
24559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
24560$as_echo "$LOCALCONN" >&6; }
24561 if test "$LOCALCONN" = "yes"; then
24562
24563$as_echo "#define LOCALCONN 1" >>confdefs.h
24564
24565 fi
24566
24567 # Other functions Xtrans may need
24568 for ac_func in strcasecmp strlcpy
24569do :
24570  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24571ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24572if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24573  cat >>confdefs.h <<_ACEOF
24574#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24575_ACEOF
24576
24577fi
24578done
24579
24580
24581
24582
24583# Secure RPC detection macro from xtrans.m4
24584
24585 # Check whether --enable-secure-rpc was given.
24586if test "${enable_secure_rpc+set}" = set; then :
24587  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
24588else
24589  SECURE_RPC="try"
24590fi
24591
24592
24593 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
24594	FOUND_SECURE_RPC="no"
24595	for ac_func in authdes_seccreate authdes_create
24596do :
24597  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24598ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24599if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24600  cat >>confdefs.h <<_ACEOF
24601#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24602_ACEOF
24603 FOUND_SECURE_RPC="yes"
24604fi
24605done
24606
24607	if test "x$FOUND_SECURE_RPC" = "xno" ; then
24608		if test "x$SECURE_RPC" = "xyes" ; then
24609	as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5
24610		fi
24611		SECURE_RPC="no"
24612	else
24613				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5
24614$as_echo_n "checking for library containing getsecretkey... " >&6; }
24615if ${ac_cv_search_getsecretkey+:} false; then :
24616  $as_echo_n "(cached) " >&6
24617else
24618  ac_func_search_save_LIBS=$LIBS
24619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24620/* end confdefs.h.  */
24621
24622/* Override any GCC internal prototype to avoid an error.
24623   Use char because int might match the return type of a GCC
24624   builtin and then its argument prototype would still apply.  */
24625#ifdef __cplusplus
24626extern "C"
24627#endif
24628char getsecretkey ();
24629int
24630main ()
24631{
24632return getsecretkey ();
24633  ;
24634  return 0;
24635}
24636_ACEOF
24637for ac_lib in '' rpcsvc; do
24638  if test -z "$ac_lib"; then
24639    ac_res="none required"
24640  else
24641    ac_res=-l$ac_lib
24642    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24643  fi
24644  if ac_fn_c_try_link "$LINENO"; then :
24645  ac_cv_search_getsecretkey=$ac_res
24646fi
24647rm -f core conftest.err conftest.$ac_objext \
24648    conftest$ac_exeext
24649  if ${ac_cv_search_getsecretkey+:} false; then :
24650  break
24651fi
24652done
24653if ${ac_cv_search_getsecretkey+:} false; then :
24654
24655else
24656  ac_cv_search_getsecretkey=no
24657fi
24658rm conftest.$ac_ext
24659LIBS=$ac_func_search_save_LIBS
24660fi
24661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5
24662$as_echo "$ac_cv_search_getsecretkey" >&6; }
24663ac_res=$ac_cv_search_getsecretkey
24664if test "$ac_res" != no; then :
24665  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24666
24667fi
24668
24669		SECURE_RPC="yes"
24670	fi
24671 fi
24672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
24673$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; }
24674 if test "x$SECURE_RPC" = "xyes" ; then
24675
24676$as_echo "#define SECURE_RPC 1" >>confdefs.h
24677
24678 fi
24679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5
24680$as_echo "$SECURE_RPC" >&6; }
24681
24682 if test "x$SECURE_RPC" = xyes; then
24683  SECURE_RPC_TRUE=
24684  SECURE_RPC_FALSE='#'
24685else
24686  SECURE_RPC_TRUE='#'
24687  SECURE_RPC_FALSE=
24688fi
24689
24690
24691 if test "x$INT10" = xvm86; then
24692  INT10_VM86_TRUE=
24693  INT10_VM86_FALSE='#'
24694else
24695  INT10_VM86_TRUE='#'
24696  INT10_VM86_FALSE=
24697fi
24698
24699 if test "x$INT10" = xx86emu; then
24700  INT10_X86EMU_TRUE=
24701  INT10_X86EMU_FALSE='#'
24702else
24703  INT10_X86EMU_TRUE='#'
24704  INT10_X86EMU_FALSE=
24705fi
24706
24707 if test "x$INT10" = xstub; then
24708  INT10_STUB_TRUE=
24709  INT10_STUB_FALSE='#'
24710else
24711  INT10_STUB_TRUE='#'
24712  INT10_STUB_FALSE=
24713fi
24714
24715
24716case $host_os in
24717	cygwin* | mingw*)
24718		CONFIG_HAL=no
24719		CONFIG_UDEV=no
24720		CONFIG_UDEV_KMS=no
24721		DGA=no
24722		DRM=no
24723		DRI2=no
24724		DRI3=no
24725		INT10MODULE=no
24726		PCI=no
24727		VGAHW=no
24728		VBE=no
24729		XF86UTILS=no
24730		XF86VIDMODE=no
24731		XSELINUX=no
24732		SYMBOL_VISIBILITY=no
24733		;;
24734	darwin*)
24735		PCI=no
24736		INT10MODULE=no
24737		VGAHW=no
24738		VBE=no
24739		DRM=no
24740		DRI2=no
24741		DRI3=no
24742
24743		if test x$XQUARTZ = xauto; then
24744			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xquartz" >&5
24745$as_echo_n "checking whether to build Xquartz... " >&6; }
24746if ${xorg_cv_Carbon_framework+:} false; then :
24747  $as_echo_n "(cached) " >&6
24748else
24749
24750		 		save_LDFLAGS=$LDFLAGS
24751				LDFLAGS="$LDFLAGS -framework Carbon"
24752				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24753/* end confdefs.h.  */
24754char FSFindFolder(); int main() { FSFindFolder(); return 0;}
24755_ACEOF
24756if ac_fn_c_try_link "$LINENO"; then :
24757  xorg_cv_Carbon_framework=yes
24758else
24759  xorg_cv_Carbon_framework=no
24760fi
24761rm -f core conftest.err conftest.$ac_objext \
24762    conftest$ac_exeext conftest.$ac_ext
24763			        LDFLAGS=$save_LDFLAGS
24764fi
24765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_Carbon_framework" >&5
24766$as_echo "$xorg_cv_Carbon_framework" >&6; }
24767
24768			if test "X$xorg_cv_Carbon_framework" = Xyes; then
24769				XQUARTZ=yes
24770			else
24771				XQUARTZ=no
24772			fi
24773		fi
24774
24775		if test "x$XQUARTZ" = xyes ; then
24776			XQUARTZ=yes
24777			XVFB=no
24778			XNEST=no
24779			XWAYLAND=no
24780
24781			COMPOSITE=no
24782			DGA=no
24783			DPMSExtension=no
24784			XF86VIDMODE=no
24785		fi
24786		;;
24787	gnu*)
24788		DRM=no
24789		DRI2=no
24790		DRI3=no
24791		;;
24792	*) XQUARTZ=no ;;
24793esac
24794
24795XEXT_INC='-I$(top_srcdir)/Xext'
24796XEXT_LIB='$(top_builddir)/Xext/libXext.la'
24797
24798VIDEOPROTO="videoproto"
24799COMPOSITEPROTO="compositeproto >= 0.4"
24800RECORDPROTO="recordproto >= 1.13.99.1"
24801SCRNSAVERPROTO="scrnsaverproto >= 1.1"
24802RESOURCEPROTO="resourceproto >= 1.2.0"
24803DRIPROTO="xf86driproto >= 2.1.0"
24804DRI2PROTO="dri2proto >= 2.8"
24805DRI3PROTO="dri3proto >= 1.2"
24806XINERAMAPROTO="xineramaproto"
24807BIGFONTPROTO="xf86bigfontproto >= 1.2.0"
24808DGAPROTO="xf86dgaproto >= 2.0.99.1"
24809GLPROTO="glproto >= 1.4.17"
24810DMXPROTO="dmxproto >= 2.2.99.1"
24811VIDMODEPROTO="xf86vidmodeproto >= 2.2.99.1"
24812WINDOWSWMPROTO="windowswmproto"
24813APPLEWMPROTO="applewmproto >= 1.4"
24814LIBXSHMFENCE="xshmfence >= 1.1"
24815
24816XPROTO="xproto >= 7.0.31"
24817RANDRPROTO="randrproto >= 1.6.0"
24818RENDERPROTO="renderproto >= 0.11"
24819XEXTPROTO="xextproto >= 7.2.99.901"
24820INPUTPROTO="inputproto >= 2.3"
24821KBPROTO="kbproto >= 1.0.3"
24822FONTSPROTO="fontsproto >= 2.1.3"
24823FIXESPROTO="fixesproto >= 5.0"
24824DAMAGEPROTO="damageproto >= 1.1"
24825XCMISCPROTO="xcmiscproto >= 1.2.0"
24826BIGREQSPROTO="bigreqsproto >= 1.1.0"
24827XTRANS="xtrans >= 1.3.5"
24828PRESENTPROTO="presentproto >= 1.1"
24829
24830LIBAPPLEWM="applewm >= 1.4"
24831LIBDMX="dmx >= 1.0.99.1"
24832LIBDRI="dri >= 7.8.0"
24833LIBDRM="libdrm >= 2.4.89"
24834LIBEGL="egl"
24835LIBGBM="gbm >= 10.2.0"
24836LIBGL="gl >= 1.2"
24837LIBXEXT="xext >= 1.0.99.4"
24838LIBXFONT="xfont2 >= 2.0.0"
24839LIBXI="xi >= 1.2.99.1"
24840LIBXTST="xtst >= 1.0.99.2"
24841LIBPCIACCESS="pciaccess >= 0.12.901"
24842LIBUDEV="libudev >= 143"
24843LIBSELINUX="libselinux >= 2.0.86"
24844LIBDBUS="dbus-1 >= 1.0"
24845LIBPIXMAN="pixman-1 >= 0.27.2"
24846
24847
24848pkg_failed=no
24849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIXMAN" >&5
24850$as_echo_n "checking for PIXMAN... " >&6; }
24851
24852if test -n "$PIXMAN_CFLAGS"; then
24853    pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS"
24854 elif test -n "$PKG_CONFIG"; then
24855    if test -n "$PKG_CONFIG" && \
24856    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5
24857  ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5
24858  ac_status=$?
24859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24860  test $ac_status = 0; }; then
24861  pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "$LIBPIXMAN" 2>/dev/null`
24862		      test "x$?" != "x0" && pkg_failed=yes
24863else
24864  pkg_failed=yes
24865fi
24866 else
24867    pkg_failed=untried
24868fi
24869if test -n "$PIXMAN_LIBS"; then
24870    pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS"
24871 elif test -n "$PKG_CONFIG"; then
24872    if test -n "$PKG_CONFIG" && \
24873    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5
24874  ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5
24875  ac_status=$?
24876  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24877  test $ac_status = 0; }; then
24878  pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "$LIBPIXMAN" 2>/dev/null`
24879		      test "x$?" != "x0" && pkg_failed=yes
24880else
24881  pkg_failed=yes
24882fi
24883 else
24884    pkg_failed=untried
24885fi
24886
24887
24888
24889if test $pkg_failed = yes; then
24890   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24891$as_echo "no" >&6; }
24892
24893if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24894        _pkg_short_errors_supported=yes
24895else
24896        _pkg_short_errors_supported=no
24897fi
24898        if test $_pkg_short_errors_supported = yes; then
24899	        PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPIXMAN" 2>&1`
24900        else
24901	        PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPIXMAN" 2>&1`
24902        fi
24903	# Put the nasty error message in config.log where it belongs
24904	echo "$PIXMAN_PKG_ERRORS" >&5
24905
24906	as_fn_error $? "Package requirements ($LIBPIXMAN) were not met:
24907
24908$PIXMAN_PKG_ERRORS
24909
24910Consider adjusting the PKG_CONFIG_PATH environment variable if you
24911installed software in a non-standard prefix.
24912
24913Alternatively, you may set the environment variables PIXMAN_CFLAGS
24914and PIXMAN_LIBS to avoid the need to call pkg-config.
24915See the pkg-config man page for more details." "$LINENO" 5
24916elif test $pkg_failed = untried; then
24917     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24918$as_echo "no" >&6; }
24919	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24920$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24921as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24922is in your PATH or set the PKG_CONFIG environment variable to the full
24923path to pkg-config.
24924
24925Alternatively, you may set the environment variables PIXMAN_CFLAGS
24926and PIXMAN_LIBS to avoid the need to call pkg-config.
24927See the pkg-config man page for more details.
24928
24929To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24930See \`config.log' for more details" "$LINENO" 5; }
24931else
24932	PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS
24933	PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS
24934        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24935$as_echo "yes" >&6; }
24936
24937fi
24938REQUIRED_LIBS="$REQUIRED_LIBS $LIBPIXMAN $LIBXFONT xau"
24939
24940SDK_REQUIRED_MODULES="$XPROTO $RANDRPROTO $RENDERPROTO $XEXTPROTO $INPUTPROTO $KBPROTO $FONTSPROTO $LIBPIXMAN"
24941# Make SDK_REQUIRED_MODULES available for inclusion in xorg-server.pc
24942
24943
24944ac_fn_c_check_decl "$LINENO" "PTHREAD_MUTEX_RECURSIVE" "ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" "#include <pthread.h>
24945"
24946if test "x$ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" = xyes; then :
24947  HAVE_RECURSIVE_MUTEX=yes
24948else
24949  HAVE_RECURSIVE_MUTEX=no
24950fi
24951
24952
24953THREAD_DEFAULT=no
24954
24955if test "x$HAVE_RECURSIVE_MUTEX" = "xyes" ; then
24956	THREAD_DEFAULT=yes
24957fi
24958
24959# Check whether --enable-input-thread was given.
24960if test "${enable_input_thread+set}" = set; then :
24961  enableval=$enable_input_thread; INPUTTHREAD=$enableval
24962else
24963  INPUTTHREAD=$THREAD_DEFAULT
24964fi
24965
24966
24967if test "x$INPUTTHREAD" = "xyes" ; then
24968
24969
24970ac_ext=c
24971ac_cpp='$CPP $CPPFLAGS'
24972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24974ac_compiler_gnu=$ac_cv_c_compiler_gnu
24975
24976ax_pthread_ok=no
24977
24978# We used to check for pthread.h first, but this fails if pthread.h
24979# requires special compiler flags (e.g. on True64 or Sequent).
24980# It gets checked for in the link test anyway.
24981
24982# First of all, check if the user has set any of the PTHREAD_LIBS,
24983# etcetera environment variables, and if threads linking works using
24984# them:
24985if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
24986        save_CFLAGS="$CFLAGS"
24987        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
24988        save_LIBS="$LIBS"
24989        LIBS="$PTHREAD_LIBS $LIBS"
24990        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
24991$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
24992        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24993/* end confdefs.h.  */
24994
24995/* Override any GCC internal prototype to avoid an error.
24996   Use char because int might match the return type of a GCC
24997   builtin and then its argument prototype would still apply.  */
24998#ifdef __cplusplus
24999extern "C"
25000#endif
25001char pthread_join ();
25002int
25003main ()
25004{
25005return pthread_join ();
25006  ;
25007  return 0;
25008}
25009_ACEOF
25010if ac_fn_c_try_link "$LINENO"; then :
25011  ax_pthread_ok=yes
25012fi
25013rm -f core conftest.err conftest.$ac_objext \
25014    conftest$ac_exeext conftest.$ac_ext
25015        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
25016$as_echo "$ax_pthread_ok" >&6; }
25017        if test x"$ax_pthread_ok" = xno; then
25018                PTHREAD_LIBS=""
25019                PTHREAD_CFLAGS=""
25020        fi
25021        LIBS="$save_LIBS"
25022        CFLAGS="$save_CFLAGS"
25023fi
25024
25025# We must check for the threads library under a number of different
25026# names; the ordering is very important because some systems
25027# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
25028# libraries is broken (non-POSIX).
25029
25030# Create a list of thread flags to try.  Items starting with a "-" are
25031# C compiler flags, and other items are library names, except for "none"
25032# which indicates that we try without any flags at all, and "pthread-config"
25033# which is a program returning the flags for the Pth emulation library.
25034
25035ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
25036
25037# The ordering *is* (sometimes) important.  Some notes on the
25038# individual items follow:
25039
25040# pthreads: AIX (must check this before -lpthread)
25041# none: in case threads are in libc; should be tried before -Kthread and
25042#       other compiler flags to prevent continual compiler warnings
25043# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
25044# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
25045# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
25046# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
25047# -pthreads: Solaris/gcc
25048# -mthreads: Mingw32/gcc, Lynx/gcc
25049# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
25050#      doesn't hurt to check since this sometimes defines pthreads too;
25051#      also defines -D_REENTRANT)
25052#      ... -mt is also the pthreads flag for HP/aCC
25053# pthread: Linux, etcetera
25054# --thread-safe: KAI C++
25055# pthread-config: use pthread-config program (for GNU Pth library)
25056
25057case ${host_os} in
25058        solaris*)
25059
25060        # On Solaris (at least, for some versions), libc contains stubbed
25061        # (non-functional) versions of the pthreads routines, so link-based
25062        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
25063        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
25064        # a function called by this macro, so we could check for that, but
25065        # who knows whether they'll stub that too in a future libc.)  So,
25066        # we'll just look for -pthreads and -lpthread first:
25067
25068        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
25069        ;;
25070
25071        darwin*)
25072        ax_pthread_flags="-pthread $ax_pthread_flags"
25073        ;;
25074	netbsd*)
25075	# use libc stubs, don't link against libpthread, to allow
25076	# dynamic loading
25077	ax_pthread_flags=""
25078	;;
25079esac
25080
25081# Clang doesn't consider unrecognized options an error unless we specify
25082# -Werror. We throw in some extra Clang-specific options to ensure that
25083# this doesn't happen for GCC, which also accepts -Werror.
25084
25085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
25086$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
25087save_CFLAGS="$CFLAGS"
25088ax_pthread_extra_flags="-Werror"
25089CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
25090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25091/* end confdefs.h.  */
25092int foo(void);
25093int
25094main ()
25095{
25096foo()
25097  ;
25098  return 0;
25099}
25100_ACEOF
25101if ac_fn_c_try_compile "$LINENO"; then :
25102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25103$as_echo "yes" >&6; }
25104else
25105  ax_pthread_extra_flags=
25106                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25107$as_echo "no" >&6; }
25108fi
25109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25110CFLAGS="$save_CFLAGS"
25111
25112if test x"$ax_pthread_ok" = xno; then
25113for flag in $ax_pthread_flags; do
25114
25115        case $flag in
25116                none)
25117                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
25118$as_echo_n "checking whether pthreads work without any flags... " >&6; }
25119                ;;
25120
25121                -*)
25122                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
25123$as_echo_n "checking whether pthreads work with $flag... " >&6; }
25124                PTHREAD_CFLAGS="$flag"
25125                ;;
25126
25127                pthread-config)
25128                # Extract the first word of "pthread-config", so it can be a program name with args.
25129set dummy pthread-config; ac_word=$2
25130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25131$as_echo_n "checking for $ac_word... " >&6; }
25132if ${ac_cv_prog_ax_pthread_config+:} false; then :
25133  $as_echo_n "(cached) " >&6
25134else
25135  if test -n "$ax_pthread_config"; then
25136  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
25137else
25138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25139for as_dir in $PATH
25140do
25141  IFS=$as_save_IFS
25142  test -z "$as_dir" && as_dir=.
25143    for ac_exec_ext in '' $ac_executable_extensions; do
25144  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25145    ac_cv_prog_ax_pthread_config="yes"
25146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25147    break 2
25148  fi
25149done
25150  done
25151IFS=$as_save_IFS
25152
25153  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
25154fi
25155fi
25156ax_pthread_config=$ac_cv_prog_ax_pthread_config
25157if test -n "$ax_pthread_config"; then
25158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
25159$as_echo "$ax_pthread_config" >&6; }
25160else
25161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25162$as_echo "no" >&6; }
25163fi
25164
25165
25166                if test x"$ax_pthread_config" = xno; then continue; fi
25167                PTHREAD_CFLAGS="`pthread-config --cflags`"
25168                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
25169                ;;
25170
25171                *)
25172                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
25173$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
25174                PTHREAD_LIBS="-l$flag"
25175                ;;
25176        esac
25177
25178        save_LIBS="$LIBS"
25179        save_CFLAGS="$CFLAGS"
25180        LIBS="$PTHREAD_LIBS $LIBS"
25181        CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
25182
25183        # Check for various functions.  We must include pthread.h,
25184        # since some functions may be macros.  (On the Sequent, we
25185        # need a special flag -Kthread to make this header compile.)
25186        # We check for pthread_join because it is in -lpthread on IRIX
25187        # while pthread_create is in libc.  We check for pthread_attr_init
25188        # due to DEC craziness with -lpthreads.  We check for
25189        # pthread_cleanup_push because it is one of the few pthread
25190        # functions on Solaris that doesn't have a non-functional libc stub.
25191        # We try pthread_create on general principles.
25192        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25193/* end confdefs.h.  */
25194#include <pthread.h>
25195                        static void routine(void *a) { a = 0; }
25196                        static void *start_routine(void *a) { return a; }
25197int
25198main ()
25199{
25200pthread_t th; pthread_attr_t attr;
25201                        pthread_create(&th, 0, start_routine, 0);
25202                        pthread_join(th, 0);
25203                        pthread_attr_init(&attr);
25204                        pthread_cleanup_push(routine, 0);
25205                        pthread_cleanup_pop(0) /* ; */
25206  ;
25207  return 0;
25208}
25209_ACEOF
25210if ac_fn_c_try_link "$LINENO"; then :
25211  ax_pthread_ok=yes
25212fi
25213rm -f core conftest.err conftest.$ac_objext \
25214    conftest$ac_exeext conftest.$ac_ext
25215
25216        LIBS="$save_LIBS"
25217        CFLAGS="$save_CFLAGS"
25218
25219        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
25220$as_echo "$ax_pthread_ok" >&6; }
25221        if test "x$ax_pthread_ok" = xyes; then
25222                break;
25223        fi
25224
25225        PTHREAD_LIBS=""
25226        PTHREAD_CFLAGS=""
25227done
25228fi
25229
25230# Various other checks:
25231if test "x$ax_pthread_ok" = xyes; then
25232        save_LIBS="$LIBS"
25233        LIBS="$PTHREAD_LIBS $LIBS"
25234        save_CFLAGS="$CFLAGS"
25235        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25236
25237        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
25238        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
25239$as_echo_n "checking for joinable pthread attribute... " >&6; }
25240        attr_name=unknown
25241        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
25242            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25243/* end confdefs.h.  */
25244#include <pthread.h>
25245int
25246main ()
25247{
25248int attr = $attr; return attr /* ; */
25249  ;
25250  return 0;
25251}
25252_ACEOF
25253if ac_fn_c_try_link "$LINENO"; then :
25254  attr_name=$attr; break
25255fi
25256rm -f core conftest.err conftest.$ac_objext \
25257    conftest$ac_exeext conftest.$ac_ext
25258        done
25259        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
25260$as_echo "$attr_name" >&6; }
25261        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
25262
25263cat >>confdefs.h <<_ACEOF
25264#define PTHREAD_CREATE_JOINABLE $attr_name
25265_ACEOF
25266
25267        fi
25268
25269        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
25270$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
25271        flag=no
25272        case ${host_os} in
25273            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
25274            osf* | hpux*) flag="-D_REENTRANT";;
25275            solaris*)
25276            if test "$GCC" = "yes"; then
25277                flag="-D_REENTRANT"
25278            else
25279                # TODO: What about Clang on Solaris?
25280                flag="-mt -D_REENTRANT"
25281            fi
25282            ;;
25283        esac
25284        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
25285$as_echo "$flag" >&6; }
25286        if test "x$flag" != xno; then
25287            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
25288        fi
25289
25290        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
25291$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
25292if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
25293  $as_echo_n "(cached) " >&6
25294else
25295
25296                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25297/* end confdefs.h.  */
25298#include <pthread.h>
25299int
25300main ()
25301{
25302int i = PTHREAD_PRIO_INHERIT;
25303  ;
25304  return 0;
25305}
25306_ACEOF
25307if ac_fn_c_try_link "$LINENO"; then :
25308  ax_cv_PTHREAD_PRIO_INHERIT=yes
25309else
25310  ax_cv_PTHREAD_PRIO_INHERIT=no
25311fi
25312rm -f core conftest.err conftest.$ac_objext \
25313    conftest$ac_exeext conftest.$ac_ext
25314
25315fi
25316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
25317$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
25318        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
25319
25320$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
25321
25322fi
25323
25324        LIBS="$save_LIBS"
25325        CFLAGS="$save_CFLAGS"
25326
25327        # More AIX lossage: compile with *_r variant
25328        if test "x$GCC" != xyes; then
25329            case $host_os in
25330                aix*)
25331                case "x/$CC" in #(
25332  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
25333    #handle absolute path differently from PATH based program lookup
25334                   case "x$CC" in #(
25335  x/*) :
25336    if as_fn_executable_p ${CC}_r; then :
25337  PTHREAD_CC="${CC}_r"
25338fi ;; #(
25339  *) :
25340    for ac_prog in ${CC}_r
25341do
25342  # Extract the first word of "$ac_prog", so it can be a program name with args.
25343set dummy $ac_prog; ac_word=$2
25344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25345$as_echo_n "checking for $ac_word... " >&6; }
25346if ${ac_cv_prog_PTHREAD_CC+:} false; then :
25347  $as_echo_n "(cached) " >&6
25348else
25349  if test -n "$PTHREAD_CC"; then
25350  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
25351else
25352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25353for as_dir in $PATH
25354do
25355  IFS=$as_save_IFS
25356  test -z "$as_dir" && as_dir=.
25357    for ac_exec_ext in '' $ac_executable_extensions; do
25358  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25359    ac_cv_prog_PTHREAD_CC="$ac_prog"
25360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25361    break 2
25362  fi
25363done
25364  done
25365IFS=$as_save_IFS
25366
25367fi
25368fi
25369PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
25370if test -n "$PTHREAD_CC"; then
25371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
25372$as_echo "$PTHREAD_CC" >&6; }
25373else
25374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25375$as_echo "no" >&6; }
25376fi
25377
25378
25379  test -n "$PTHREAD_CC" && break
25380done
25381test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
25382 ;;
25383esac ;; #(
25384  *) :
25385     ;;
25386esac
25387                ;;
25388            esac
25389        fi
25390fi
25391
25392test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
25393
25394
25395
25396
25397
25398# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
25399if test x"$ax_pthread_ok" = xyes; then
25400
25401$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
25402
25403        :
25404else
25405        ax_pthread_ok=no
25406        as_fn_error $? "threaded input requested but no pthread support has been found" "$LINENO" 5
25407fi
25408ac_ext=c
25409ac_cpp='$CPP $CPPFLAGS'
25410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25412ac_compiler_gnu=$ac_cv_c_compiler_gnu
25413
25414
25415    SYS_LIBS="$SYS_LIBS $PTHREAD_LIBS"
25416    CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25417
25418$as_echo "#define INPUTTHREAD 1" >>confdefs.h
25419
25420
25421    save_LIBS="$LIBS"
25422    LIBS="$LIBS $SYS_LIBS"
25423        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(const char*)" >&5
25424$as_echo_n "checking for pthread_setname_np(const char*)... " >&6; }
25425    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25426/* end confdefs.h.  */
25427#include <pthread.h>
25428int
25429main ()
25430{
25431pthread_setname_np("example")
25432  ;
25433  return 0;
25434}
25435_ACEOF
25436if ac_fn_c_try_link "$LINENO"; then :
25437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25438$as_echo "yes" >&6; }
25439
25440$as_echo "#define HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID 1" >>confdefs.h
25441
25442else
25443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25444$as_echo "no" >&6; }
25445fi
25446rm -f core conftest.err conftest.$ac_objext \
25447    conftest$ac_exeext conftest.$ac_ext
25448        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(pthread_t, const char*)" >&5
25449$as_echo_n "checking for pthread_setname_np(pthread_t, const char*)... " >&6; }
25450    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25451/* end confdefs.h.  */
25452#include <pthread.h>
25453int
25454main ()
25455{
25456pthread_setname_np(pthread_self(), "example")
25457  ;
25458  return 0;
25459}
25460_ACEOF
25461if ac_fn_c_try_link "$LINENO"; then :
25462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25463$as_echo "yes" >&6; }
25464
25465$as_echo "#define HAVE_PTHREAD_SETNAME_NP_WITH_TID 1" >>confdefs.h
25466
25467else
25468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25469$as_echo "no" >&6; }
25470fi
25471rm -f core conftest.err conftest.$ac_objext \
25472    conftest$ac_exeext conftest.$ac_ext
25473    LIBS="$save_LIBS"
25474fi
25475
25476REQUIRED_MODULES="$FIXESPROTO $DAMAGEPROTO $XCMISCPROTO $XTRANS $BIGREQSPROTO $SDK_REQUIRED_MODULES"
25477
25478LIBSYSTEMD="libsystemd >= 209"
25479
25480# Check whether --with-systemd-daemon was given.
25481if test "${with_systemd_daemon+set}" = set; then :
25482  withval=$with_systemd_daemon; WITH_SYSTEMD_DAEMON=$withval
25483else
25484  WITH_SYSTEMD_DAEMON=auto
25485fi
25486
25487if test "x$WITH_SYSTEMD_DAEMON" = "xyes" -o "x$WITH_SYSTEMD_DAEMON" = "xauto" ; then
25488
25489pkg_failed=no
25490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
25491$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
25492
25493if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
25494    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
25495 elif test -n "$PKG_CONFIG"; then
25496    if test -n "$PKG_CONFIG" && \
25497    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5
25498  ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5
25499  ac_status=$?
25500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25501  test $ac_status = 0; }; then
25502  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "$LIBSYSTEMD" 2>/dev/null`
25503		      test "x$?" != "x0" && pkg_failed=yes
25504else
25505  pkg_failed=yes
25506fi
25507 else
25508    pkg_failed=untried
25509fi
25510if test -n "$SYSTEMD_DAEMON_LIBS"; then
25511    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
25512 elif test -n "$PKG_CONFIG"; then
25513    if test -n "$PKG_CONFIG" && \
25514    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5
25515  ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5
25516  ac_status=$?
25517  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25518  test $ac_status = 0; }; then
25519  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "$LIBSYSTEMD" 2>/dev/null`
25520		      test "x$?" != "x0" && pkg_failed=yes
25521else
25522  pkg_failed=yes
25523fi
25524 else
25525    pkg_failed=untried
25526fi
25527
25528
25529
25530if test $pkg_failed = yes; then
25531   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25532$as_echo "no" >&6; }
25533
25534if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25535        _pkg_short_errors_supported=yes
25536else
25537        _pkg_short_errors_supported=no
25538fi
25539        if test $_pkg_short_errors_supported = yes; then
25540	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1`
25541        else
25542	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1`
25543        fi
25544	# Put the nasty error message in config.log where it belongs
25545	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
25546
25547
25548pkg_failed=no
25549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
25550$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
25551
25552if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
25553    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
25554 elif test -n "$PKG_CONFIG"; then
25555    if test -n "$PKG_CONFIG" && \
25556    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
25557  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
25558  ac_status=$?
25559  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25560  test $ac_status = 0; }; then
25561  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
25562		      test "x$?" != "x0" && pkg_failed=yes
25563else
25564  pkg_failed=yes
25565fi
25566 else
25567    pkg_failed=untried
25568fi
25569if test -n "$SYSTEMD_DAEMON_LIBS"; then
25570    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
25571 elif test -n "$PKG_CONFIG"; then
25572    if test -n "$PKG_CONFIG" && \
25573    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
25574  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
25575  ac_status=$?
25576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25577  test $ac_status = 0; }; then
25578  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
25579		      test "x$?" != "x0" && pkg_failed=yes
25580else
25581  pkg_failed=yes
25582fi
25583 else
25584    pkg_failed=untried
25585fi
25586
25587
25588
25589if test $pkg_failed = yes; then
25590   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25591$as_echo "no" >&6; }
25592
25593if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25594        _pkg_short_errors_supported=yes
25595else
25596        _pkg_short_errors_supported=no
25597fi
25598        if test $_pkg_short_errors_supported = yes; then
25599	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
25600        else
25601	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
25602        fi
25603	# Put the nasty error message in config.log where it belongs
25604	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
25605
25606	HAVE_SYSTEMD_DAEMON=no
25607elif test $pkg_failed = untried; then
25608     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25609$as_echo "no" >&6; }
25610	HAVE_SYSTEMD_DAEMON=no
25611else
25612	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
25613	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
25614        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25615$as_echo "yes" >&6; }
25616	HAVE_SYSTEMD_DAEMON=yes;
25617					      LIBSYSTEMD_DAEMON=libsystemd-daemon
25618fi
25619elif test $pkg_failed = untried; then
25620     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25621$as_echo "no" >&6; }
25622
25623pkg_failed=no
25624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
25625$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
25626
25627if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
25628    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
25629 elif test -n "$PKG_CONFIG"; then
25630    if test -n "$PKG_CONFIG" && \
25631    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
25632  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
25633  ac_status=$?
25634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25635  test $ac_status = 0; }; then
25636  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
25637		      test "x$?" != "x0" && pkg_failed=yes
25638else
25639  pkg_failed=yes
25640fi
25641 else
25642    pkg_failed=untried
25643fi
25644if test -n "$SYSTEMD_DAEMON_LIBS"; then
25645    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
25646 elif test -n "$PKG_CONFIG"; then
25647    if test -n "$PKG_CONFIG" && \
25648    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
25649  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
25650  ac_status=$?
25651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25652  test $ac_status = 0; }; then
25653  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
25654		      test "x$?" != "x0" && pkg_failed=yes
25655else
25656  pkg_failed=yes
25657fi
25658 else
25659    pkg_failed=untried
25660fi
25661
25662
25663
25664if test $pkg_failed = yes; then
25665   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25666$as_echo "no" >&6; }
25667
25668if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25669        _pkg_short_errors_supported=yes
25670else
25671        _pkg_short_errors_supported=no
25672fi
25673        if test $_pkg_short_errors_supported = yes; then
25674	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
25675        else
25676	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
25677        fi
25678	# Put the nasty error message in config.log where it belongs
25679	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
25680
25681	HAVE_SYSTEMD_DAEMON=no
25682elif test $pkg_failed = untried; then
25683     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25684$as_echo "no" >&6; }
25685	HAVE_SYSTEMD_DAEMON=no
25686else
25687	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
25688	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
25689        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25690$as_echo "yes" >&6; }
25691	HAVE_SYSTEMD_DAEMON=yes;
25692					      LIBSYSTEMD_DAEMON=libsystemd-daemon
25693fi
25694else
25695	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
25696	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
25697        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25698$as_echo "yes" >&6; }
25699	HAVE_SYSTEMD_DAEMON=yes;
25700			   LIBSYSTEMD_DAEMON="$LIBSYSTEMD"
25701fi
25702	if test "x$HAVE_SYSTEMD_DAEMON" = xyes; then
25703
25704$as_echo "#define HAVE_SYSTEMD_DAEMON 1" >>confdefs.h
25705
25706		REQUIRED_LIBS="$REQUIRED_LIBS $LIBSYSTEMD_DAEMON"
25707	elif test "x$WITH_SYSTEMD_DAEMON" = xyes; then
25708		as_fn_error $? "systemd support requested but no library has been found" "$LINENO" 5
25709	fi
25710fi
25711 if test "x$HAVE_SYSTEMD_DAEMON" = "xyes"; then
25712  HAVE_SYSTEMD_DAEMON_TRUE=
25713  HAVE_SYSTEMD_DAEMON_FALSE='#'
25714else
25715  HAVE_SYSTEMD_DAEMON_TRUE='#'
25716  HAVE_SYSTEMD_DAEMON_FALSE=
25717fi
25718
25719
25720if test "x$CONFIG_UDEV" = xyes && test "x$CONFIG_HAL" = xyes; then
25721	as_fn_error $? "Hotplugging through both libudev and hal not allowed" "$LINENO" 5
25722fi
25723
25724
25725pkg_failed=no
25726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
25727$as_echo_n "checking for UDEV... " >&6; }
25728
25729if test -n "$UDEV_CFLAGS"; then
25730    pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
25731 elif test -n "$PKG_CONFIG"; then
25732    if test -n "$PKG_CONFIG" && \
25733    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5
25734  ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5
25735  ac_status=$?
25736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25737  test $ac_status = 0; }; then
25738  pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "$LIBUDEV" 2>/dev/null`
25739		      test "x$?" != "x0" && pkg_failed=yes
25740else
25741  pkg_failed=yes
25742fi
25743 else
25744    pkg_failed=untried
25745fi
25746if test -n "$UDEV_LIBS"; then
25747    pkg_cv_UDEV_LIBS="$UDEV_LIBS"
25748 elif test -n "$PKG_CONFIG"; then
25749    if test -n "$PKG_CONFIG" && \
25750    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5
25751  ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5
25752  ac_status=$?
25753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25754  test $ac_status = 0; }; then
25755  pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "$LIBUDEV" 2>/dev/null`
25756		      test "x$?" != "x0" && pkg_failed=yes
25757else
25758  pkg_failed=yes
25759fi
25760 else
25761    pkg_failed=untried
25762fi
25763
25764
25765
25766if test $pkg_failed = yes; then
25767   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25768$as_echo "no" >&6; }
25769
25770if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25771        _pkg_short_errors_supported=yes
25772else
25773        _pkg_short_errors_supported=no
25774fi
25775        if test $_pkg_short_errors_supported = yes; then
25776	        UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBUDEV" 2>&1`
25777        else
25778	        UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBUDEV" 2>&1`
25779        fi
25780	# Put the nasty error message in config.log where it belongs
25781	echo "$UDEV_PKG_ERRORS" >&5
25782
25783	HAVE_LIBUDEV=no
25784elif test $pkg_failed = untried; then
25785     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25786$as_echo "no" >&6; }
25787	HAVE_LIBUDEV=no
25788else
25789	UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
25790	UDEV_LIBS=$pkg_cv_UDEV_LIBS
25791        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25792$as_echo "yes" >&6; }
25793	HAVE_LIBUDEV=yes
25794fi
25795if test "x$CONFIG_UDEV" = xauto; then
25796	CONFIG_UDEV="$HAVE_LIBUDEV"
25797
25798$as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
25799
25800fi
25801 if test "x$CONFIG_UDEV" = xyes; then
25802  CONFIG_UDEV_TRUE=
25803  CONFIG_UDEV_FALSE='#'
25804else
25805  CONFIG_UDEV_TRUE='#'
25806  CONFIG_UDEV_FALSE=
25807fi
25808
25809if test "x$CONFIG_UDEV" = xyes; then
25810	CONFIG_HAL=no
25811	if test "x$CONFIG_UDEV_KMS" = xauto; then
25812		CONFIG_UDEV_KMS="$HAVE_LIBUDEV"
25813	fi
25814	if ! test "x$HAVE_LIBUDEV" = xyes; then
25815		as_fn_error $? "udev configuration API requested, but libudev is not installed" "$LINENO" 5
25816	fi
25817
25818$as_echo "#define CONFIG_UDEV 1" >>confdefs.h
25819
25820	if test "x$CONFIG_UDEV_KMS" = xyes; then
25821
25822$as_echo "#define CONFIG_UDEV_KMS 1" >>confdefs.h
25823
25824	fi
25825	SAVE_LIBS=$LIBS
25826	SAVE_CFLAGS=$CFLAGS
25827	CFLAGS="$CFLAGS $UDEV_CFLAGS"
25828	LIBS=$UDEV_LIBS
25829	for ac_func in udev_monitor_filter_add_match_tag
25830do :
25831  ac_fn_c_check_func "$LINENO" "udev_monitor_filter_add_match_tag" "ac_cv_func_udev_monitor_filter_add_match_tag"
25832if test "x$ac_cv_func_udev_monitor_filter_add_match_tag" = xyes; then :
25833  cat >>confdefs.h <<_ACEOF
25834#define HAVE_UDEV_MONITOR_FILTER_ADD_MATCH_TAG 1
25835_ACEOF
25836
25837fi
25838done
25839
25840	for ac_func in udev_enumerate_add_match_tag
25841do :
25842  ac_fn_c_check_func "$LINENO" "udev_enumerate_add_match_tag" "ac_cv_func_udev_enumerate_add_match_tag"
25843if test "x$ac_cv_func_udev_enumerate_add_match_tag" = xyes; then :
25844  cat >>confdefs.h <<_ACEOF
25845#define HAVE_UDEV_ENUMERATE_ADD_MATCH_TAG 1
25846_ACEOF
25847
25848fi
25849done
25850
25851	LIBS=$SAVE_LIBS
25852	CFLAGS=$SAVE_CFLAGS
25853fi
25854 if test "x$CONFIG_UDEV_KMS" = xyes; then
25855  CONFIG_UDEV_KMS_TRUE=
25856  CONFIG_UDEV_KMS_FALSE='#'
25857else
25858  CONFIG_UDEV_KMS_TRUE='#'
25859  CONFIG_UDEV_KMS_FALSE=
25860fi
25861
25862
25863
25864pkg_failed=no
25865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
25866$as_echo_n "checking for DBUS... " >&6; }
25867
25868if test -n "$DBUS_CFLAGS"; then
25869    pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
25870 elif test -n "$PKG_CONFIG"; then
25871    if test -n "$PKG_CONFIG" && \
25872    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5
25873  ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5
25874  ac_status=$?
25875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25876  test $ac_status = 0; }; then
25877  pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "$LIBDBUS" 2>/dev/null`
25878		      test "x$?" != "x0" && pkg_failed=yes
25879else
25880  pkg_failed=yes
25881fi
25882 else
25883    pkg_failed=untried
25884fi
25885if test -n "$DBUS_LIBS"; then
25886    pkg_cv_DBUS_LIBS="$DBUS_LIBS"
25887 elif test -n "$PKG_CONFIG"; then
25888    if test -n "$PKG_CONFIG" && \
25889    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5
25890  ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5
25891  ac_status=$?
25892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25893  test $ac_status = 0; }; then
25894  pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "$LIBDBUS" 2>/dev/null`
25895		      test "x$?" != "x0" && pkg_failed=yes
25896else
25897  pkg_failed=yes
25898fi
25899 else
25900    pkg_failed=untried
25901fi
25902
25903
25904
25905if test $pkg_failed = yes; then
25906   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25907$as_echo "no" >&6; }
25908
25909if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25910        _pkg_short_errors_supported=yes
25911else
25912        _pkg_short_errors_supported=no
25913fi
25914        if test $_pkg_short_errors_supported = yes; then
25915	        DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDBUS" 2>&1`
25916        else
25917	        DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDBUS" 2>&1`
25918        fi
25919	# Put the nasty error message in config.log where it belongs
25920	echo "$DBUS_PKG_ERRORS" >&5
25921
25922	HAVE_DBUS=no
25923elif test $pkg_failed = untried; then
25924     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25925$as_echo "no" >&6; }
25926	HAVE_DBUS=no
25927else
25928	DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
25929	DBUS_LIBS=$pkg_cv_DBUS_LIBS
25930        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25931$as_echo "yes" >&6; }
25932	HAVE_DBUS=yes
25933fi
25934if test "x$HAVE_DBUS" = xyes; then
25935
25936$as_echo "#define HAVE_DBUS 1" >>confdefs.h
25937
25938fi
25939 if test "x$HAVE_DBUS" = xyes; then
25940  HAVE_DBUS_TRUE=
25941  HAVE_DBUS_FALSE='#'
25942else
25943  HAVE_DBUS_TRUE='#'
25944  HAVE_DBUS_FALSE=
25945fi
25946
25947
25948
25949pkg_failed=no
25950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HAL" >&5
25951$as_echo_n "checking for HAL... " >&6; }
25952
25953if test -n "$HAL_CFLAGS"; then
25954    pkg_cv_HAL_CFLAGS="$HAL_CFLAGS"
25955 elif test -n "$PKG_CONFIG"; then
25956    if test -n "$PKG_CONFIG" && \
25957    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5
25958  ($PKG_CONFIG --exists --print-errors "hal") 2>&5
25959  ac_status=$?
25960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25961  test $ac_status = 0; }; then
25962  pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "hal" 2>/dev/null`
25963		      test "x$?" != "x0" && pkg_failed=yes
25964else
25965  pkg_failed=yes
25966fi
25967 else
25968    pkg_failed=untried
25969fi
25970if test -n "$HAL_LIBS"; then
25971    pkg_cv_HAL_LIBS="$HAL_LIBS"
25972 elif test -n "$PKG_CONFIG"; then
25973    if test -n "$PKG_CONFIG" && \
25974    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5
25975  ($PKG_CONFIG --exists --print-errors "hal") 2>&5
25976  ac_status=$?
25977  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25978  test $ac_status = 0; }; then
25979  pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "hal" 2>/dev/null`
25980		      test "x$?" != "x0" && pkg_failed=yes
25981else
25982  pkg_failed=yes
25983fi
25984 else
25985    pkg_failed=untried
25986fi
25987
25988
25989
25990if test $pkg_failed = yes; then
25991   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25992$as_echo "no" >&6; }
25993
25994if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25995        _pkg_short_errors_supported=yes
25996else
25997        _pkg_short_errors_supported=no
25998fi
25999        if test $_pkg_short_errors_supported = yes; then
26000	        HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hal" 2>&1`
26001        else
26002	        HAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hal" 2>&1`
26003        fi
26004	# Put the nasty error message in config.log where it belongs
26005	echo "$HAL_PKG_ERRORS" >&5
26006
26007	HAVE_HAL=no
26008elif test $pkg_failed = untried; then
26009     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26010$as_echo "no" >&6; }
26011	HAVE_HAL=no
26012else
26013	HAL_CFLAGS=$pkg_cv_HAL_CFLAGS
26014	HAL_LIBS=$pkg_cv_HAL_LIBS
26015        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26016$as_echo "yes" >&6; }
26017	HAVE_HAL=yes
26018fi
26019if test "x$CONFIG_HAL" = xauto; then
26020	CONFIG_HAL="$HAVE_HAL"
26021fi
26022if test "x$CONFIG_HAL" = xyes; then
26023	if ! test "x$HAVE_HAL" = xyes; then
26024		as_fn_error $? "HAL hotplug API requested, but HAL is not installed." "$LINENO" 5
26025	fi
26026
26027
26028$as_echo "#define CONFIG_HAL 1" >>confdefs.h
26029
26030	NEED_DBUS="yes"
26031fi
26032 if test "x$CONFIG_HAL" = xyes; then
26033  CONFIG_HAL_TRUE=
26034  CONFIG_HAL_FALSE='#'
26035else
26036  CONFIG_HAL_TRUE='#'
26037  CONFIG_HAL_FALSE=
26038fi
26039
26040
26041if test "x$SYSTEMD_LOGIND" = xauto; then
26042        if test "x$HAVE_DBUS" = xyes -a "x$CONFIG_UDEV" = xyes ; then
26043                SYSTEMD_LOGIND=yes
26044        else
26045                SYSTEMD_LOGIND=no
26046        fi
26047fi
26048if test "x$SYSTEMD_LOGIND" = xyes; then
26049        if ! test "x$HAVE_DBUS" = xyes; then
26050                as_fn_error $? "systemd-logind requested, but D-Bus is not installed." "$LINENO" 5
26051        fi
26052        if ! test "x$CONFIG_UDEV" = xyes ; then
26053                as_fn_error $? "systemd-logind is only supported in combination with udev configuration." "$LINENO" 5
26054        fi
26055
26056
26057$as_echo "#define SYSTEMD_LOGIND 1" >>confdefs.h
26058
26059        NEED_DBUS="yes"
26060fi
26061 if test "x$SYSTEMD_LOGIND" = xyes; then
26062  SYSTEMD_LOGIND_TRUE=
26063  SYSTEMD_LOGIND_FALSE='#'
26064else
26065  SYSTEMD_LOGIND_TRUE='#'
26066  SYSTEMD_LOGIND_FALSE=
26067fi
26068
26069
26070if test "x$SUID_WRAPPER" = xyes; then
26071
26072  prefix_NONE=
26073  exec_prefix_NONE=
26074  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26075  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26076  eval ac_define_dir="\"$libexecdir\""
26077  eval ac_define_dir="\"$ac_define_dir\""
26078  SUID_WRAPPER_DIR="$ac_define_dir"
26079
26080
26081cat >>confdefs.h <<_ACEOF
26082#define SUID_WRAPPER_DIR "$ac_define_dir"
26083_ACEOF
26084
26085  test "$prefix_NONE" && prefix=NONE
26086  test "$exec_prefix_NONE" && exec_prefix=NONE
26087
26088        SETUID="no"
26089fi
26090 if test "x$SUID_WRAPPER" = xyes; then
26091  SUID_WRAPPER_TRUE=
26092  SUID_WRAPPER_FALSE='#'
26093else
26094  SUID_WRAPPER_TRUE='#'
26095  SUID_WRAPPER_FALSE=
26096fi
26097
26098
26099if test "x$NEED_DBUS" = xyes; then
26100
26101$as_echo "#define NEED_DBUS 1" >>confdefs.h
26102
26103fi
26104 if test "x$NEED_DBUS" = xyes; then
26105  NEED_DBUS_TRUE=
26106  NEED_DBUS_FALSE='#'
26107else
26108  NEED_DBUS_TRUE='#'
26109  NEED_DBUS_FALSE=
26110fi
26111
26112
26113if test "x$CONFIG_WSCONS" = xauto; then
26114	case $host_os in
26115		*openbsd*)
26116			CONFIG_WSCONS=yes;
26117			;;
26118		*)
26119			CONFIG_WSCONS=no;
26120			;;
26121	esac
26122fi
26123 if test "x$CONFIG_WSCONS" = xyes; then
26124  CONFIG_WSCONS_TRUE=
26125  CONFIG_WSCONS_FALSE='#'
26126else
26127  CONFIG_WSCONS_TRUE='#'
26128  CONFIG_WSCONS_FALSE=
26129fi
26130
26131if test "x$CONFIG_WSCONS" = xyes; then
26132
26133$as_echo "#define CONFIG_WSCONS 1" >>confdefs.h
26134
26135fi
26136
26137
26138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc..." >&5
26139$as_echo_n "checking for glibc...... " >&6; }
26140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26141/* end confdefs.h.  */
26142
26143#include <features.h>
26144#ifndef __GLIBC__
26145#error
26146#endif
26147
26148_ACEOF
26149if ac_fn_c_try_cpp "$LINENO"; then :
26150  glibc=yes
26151else
26152  glibc=no
26153fi
26154rm -f conftest.err conftest.i conftest.$ac_ext
26155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc" >&5
26156$as_echo "$glibc" >&6; }
26157
26158for ac_func in clock_gettime
26159do :
26160  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
26161if test "x$ac_cv_func_clock_gettime" = xyes; then :
26162  cat >>confdefs.h <<_ACEOF
26163#define HAVE_CLOCK_GETTIME 1
26164_ACEOF
26165 have_clock_gettime=yes
26166else
26167  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
26168$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
26169if ${ac_cv_lib_rt_clock_gettime+:} false; then :
26170  $as_echo_n "(cached) " >&6
26171else
26172  ac_check_lib_save_LIBS=$LIBS
26173LIBS="-lrt  $LIBS"
26174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26175/* end confdefs.h.  */
26176
26177/* Override any GCC internal prototype to avoid an error.
26178   Use char because int might match the return type of a GCC
26179   builtin and then its argument prototype would still apply.  */
26180#ifdef __cplusplus
26181extern "C"
26182#endif
26183char clock_gettime ();
26184int
26185main ()
26186{
26187return clock_gettime ();
26188  ;
26189  return 0;
26190}
26191_ACEOF
26192if ac_fn_c_try_link "$LINENO"; then :
26193  ac_cv_lib_rt_clock_gettime=yes
26194else
26195  ac_cv_lib_rt_clock_gettime=no
26196fi
26197rm -f core conftest.err conftest.$ac_objext \
26198    conftest$ac_exeext conftest.$ac_ext
26199LIBS=$ac_check_lib_save_LIBS
26200fi
26201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
26202$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
26203if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
26204  have_clock_gettime=-lrt
26205else
26206  have_clock_gettime=no
26207fi
26208
26209fi
26210done
26211
26212
26213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a useful monotonic clock ..." >&5
26214$as_echo_n "checking for a useful monotonic clock ...... " >&6; }
26215
26216if ! test "x$have_clock_gettime" = xno; then
26217    if ! test "x$have_clock_gettime" = xyes; then
26218        CLOCK_LIBS="$have_clock_gettime"
26219    else
26220        CLOCK_LIBS=""
26221    fi
26222
26223    LIBS_SAVE="$LIBS"
26224    LIBS="$CLOCK_LIBS"
26225    CPPFLAGS_SAVE="$CPPFLAGS"
26226
26227    if test x"$glibc" = xyes; then
26228        CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L"
26229    fi
26230
26231    if test "$cross_compiling" = yes; then :
26232  MONOTONIC_CLOCK="cross compiling"
26233else
26234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26235/* end confdefs.h.  */
26236
26237#include <time.h>
26238
26239int main(int argc, char *argv[]) {
26240    struct timespec tp;
26241
26242    if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0)
26243        return 0;
26244    else
26245        return 1;
26246}
26247
26248_ACEOF
26249if ac_fn_c_try_run "$LINENO"; then :
26250  MONOTONIC_CLOCK=yes
26251else
26252  MONOTONIC_CLOCK=no
26253fi
26254rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26255  conftest.$ac_objext conftest.beam conftest.$ac_ext
26256fi
26257
26258
26259    if test "$MONOTONIC_CLOCK" = "cross compiling"; then
26260        ac_fn_c_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "#include <time.h>
26261"
26262if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes; then :
26263  MONOTONIC_CLOCK="guessing yes"
26264else
26265  MONOTONIC_CLOCK=no
26266fi
26267
26268    fi
26269
26270    LIBS="$LIBS_SAVE"
26271    CPPFLAGS="$CPPFLAGS_SAVE"
26272else
26273    MONOTONIC_CLOCK=no
26274fi
26275
26276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MONOTONIC_CLOCK" >&5
26277$as_echo "$MONOTONIC_CLOCK" >&6; }
26278if test "$MONOTONIC_CLOCK" = "guessing yes"; then
26279	MONOTONIC_CLOCK=yes
26280fi
26281
26282if test "x$MONOTONIC_CLOCK" = xyes; then
26283
26284$as_echo "#define MONOTONIC_CLOCK 1" >>confdefs.h
26285
26286    LIBS="$LIBS $CLOCK_LIBS"
26287fi
26288
26289 if test "x$XV" = xyes; then
26290  XV_TRUE=
26291  XV_FALSE='#'
26292else
26293  XV_TRUE='#'
26294  XV_FALSE=
26295fi
26296
26297if test "x$XV" = xyes; then
26298
26299$as_echo "#define XV 1" >>confdefs.h
26300
26301
26302$as_echo "#define XvExtension 1" >>confdefs.h
26303
26304	REQUIRED_MODULES="$REQUIRED_MODULES $VIDEOPROTO"
26305	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $VIDEOPROTO"
26306else
26307	XVMC=no
26308fi
26309
26310 if test "x$XVMC" = xyes; then
26311  XVMC_TRUE=
26312  XVMC_FALSE='#'
26313else
26314  XVMC_TRUE='#'
26315  XVMC_FALSE=
26316fi
26317
26318if test "x$XVMC" = xyes; then
26319
26320$as_echo "#define XvMCExtension 1" >>confdefs.h
26321
26322fi
26323
26324 if test "x$COMPOSITE" = xyes; then
26325  COMPOSITE_TRUE=
26326  COMPOSITE_FALSE='#'
26327else
26328  COMPOSITE_TRUE='#'
26329  COMPOSITE_FALSE=
26330fi
26331
26332if test "x$COMPOSITE" = xyes; then
26333
26334$as_echo "#define COMPOSITE 1" >>confdefs.h
26335
26336	REQUIRED_MODULES="$REQUIRED_MODULES $COMPOSITEPROTO"
26337	COMPOSITE_LIB='$(top_builddir)/composite/libcomposite.la'
26338	COMPOSITE_INC='-I$(top_srcdir)/composite'
26339fi
26340
26341if test "x$MITSHM" = xauto; then
26342	MITSHM="$ac_cv_sysv_ipc"
26343fi
26344 if test "x$MITSHM" = xyes; then
26345  MITSHM_TRUE=
26346  MITSHM_FALSE='#'
26347else
26348  MITSHM_TRUE='#'
26349  MITSHM_FALSE=
26350fi
26351
26352if test "x$MITSHM" = xyes; then
26353
26354$as_echo "#define MITSHM 1" >>confdefs.h
26355
26356
26357$as_echo "#define HAS_SHM 1" >>confdefs.h
26358
26359fi
26360
26361 if test "x$RECORD" = xyes; then
26362  RECORD_TRUE=
26363  RECORD_FALSE='#'
26364else
26365  RECORD_TRUE='#'
26366  RECORD_FALSE=
26367fi
26368
26369if test "x$RECORD" = xyes; then
26370
26371$as_echo "#define XRECORD 1" >>confdefs.h
26372
26373	REQUIRED_MODULES="$REQUIRED_MODULES $RECORDPROTO"
26374	RECORD_LIB='$(top_builddir)/record/librecord.la'
26375fi
26376
26377 if test "x$SCREENSAVER" = xyes; then
26378  SCREENSAVER_TRUE=
26379  SCREENSAVER_FALSE='#'
26380else
26381  SCREENSAVER_TRUE='#'
26382  SCREENSAVER_FALSE=
26383fi
26384
26385if test "x$SCREENSAVER" = xyes; then
26386
26387$as_echo "#define SCREENSAVER 1" >>confdefs.h
26388
26389	REQUIRED_MODULES="$REQUIRED_MODULES $SCRNSAVERPROTO"
26390	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $SCRNSAVERPROTO"
26391fi
26392
26393HASHTABLE=no
26394 if test "x$RES" = xyes; then
26395  RES_TRUE=
26396  RES_FALSE='#'
26397else
26398  RES_TRUE='#'
26399  RES_FALSE=
26400fi
26401
26402if test "x$RES" = xyes; then
26403
26404$as_echo "#define RES 1" >>confdefs.h
26405
26406	HASHTABLE=yes
26407	REQUIRED_MODULES="$REQUIRED_MODULES $RESOURCEPROTO"
26408	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $RESOURCEPROTO"
26409fi
26410
26411if test "x$LISTEN_TCP" = xyes; then
26412
26413$as_echo "#define LISTEN_TCP 1" >>confdefs.h
26414
26415fi
26416if test "x$LISTEN_UNIX" = xyes; then
26417
26418$as_echo "#define LISTEN_UNIX 1" >>confdefs.h
26419
26420fi
26421if test "x$LISTEN_LOCAL" = xyes; then
26422
26423$as_echo "#define LISTEN_LOCAL 1" >>confdefs.h
26424
26425fi
26426
26427# The XRes extension may support client ID tracking only if it has
26428# been specifically enabled. Client ID tracking is implicitly not
26429# supported if XRes extension is disabled.
26430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to track client ids" >&5
26431$as_echo_n "checking whether to track client ids... " >&6; }
26432if test "x$RES" = xyes && test "x$CLIENTIDS" = xyes; then
26433
26434$as_echo "#define CLIENTIDS 1" >>confdefs.h
26435
26436else
26437	CLIENTIDS=no
26438fi
26439if test "x$CLIENTIDS" = xyes; then
26440	case $host_os in
26441	openbsd*)
26442		SYS_LIBS="$SYS_LIBS -lkvm"
26443	;;
26444	esac
26445fi
26446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLIENTIDS" >&5
26447$as_echo "$CLIENTIDS" >&6; }
26448 if test "x$CLIENTIDS" = xyes; then
26449  CLIENTIDS_TRUE=
26450  CLIENTIDS_FALSE='#'
26451else
26452  CLIENTIDS_TRUE='#'
26453  CLIENTIDS_FALSE=
26454fi
26455
26456
26457 if test "x$DRI" = xyes; then
26458  DRI_TRUE=
26459  DRI_FALSE='#'
26460else
26461  DRI_TRUE='#'
26462  DRI_FALSE=
26463fi
26464
26465if test "x$DRI" = xyes; then
26466
26467$as_echo "#define XF86DRI 1" >>confdefs.h
26468
26469	REQUIRED_MODULES="$REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI"
26470	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI"
26471fi
26472
26473
26474pkg_failed=no
26475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI2PROTO" >&5
26476$as_echo_n "checking for DRI2PROTO... " >&6; }
26477
26478if test -n "$DRI2PROTO_CFLAGS"; then
26479    pkg_cv_DRI2PROTO_CFLAGS="$DRI2PROTO_CFLAGS"
26480 elif test -n "$PKG_CONFIG"; then
26481    if test -n "$PKG_CONFIG" && \
26482    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5
26483  ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5
26484  ac_status=$?
26485  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26486  test $ac_status = 0; }; then
26487  pkg_cv_DRI2PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI2PROTO" 2>/dev/null`
26488		      test "x$?" != "x0" && pkg_failed=yes
26489else
26490  pkg_failed=yes
26491fi
26492 else
26493    pkg_failed=untried
26494fi
26495if test -n "$DRI2PROTO_LIBS"; then
26496    pkg_cv_DRI2PROTO_LIBS="$DRI2PROTO_LIBS"
26497 elif test -n "$PKG_CONFIG"; then
26498    if test -n "$PKG_CONFIG" && \
26499    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5
26500  ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5
26501  ac_status=$?
26502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26503  test $ac_status = 0; }; then
26504  pkg_cv_DRI2PROTO_LIBS=`$PKG_CONFIG --libs "$DRI2PROTO" 2>/dev/null`
26505		      test "x$?" != "x0" && pkg_failed=yes
26506else
26507  pkg_failed=yes
26508fi
26509 else
26510    pkg_failed=untried
26511fi
26512
26513
26514
26515if test $pkg_failed = yes; then
26516   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26517$as_echo "no" >&6; }
26518
26519if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26520        _pkg_short_errors_supported=yes
26521else
26522        _pkg_short_errors_supported=no
26523fi
26524        if test $_pkg_short_errors_supported = yes; then
26525	        DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI2PROTO" 2>&1`
26526        else
26527	        DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI2PROTO" 2>&1`
26528        fi
26529	# Put the nasty error message in config.log where it belongs
26530	echo "$DRI2PROTO_PKG_ERRORS" >&5
26531
26532	HAVE_DRI2PROTO=no
26533elif test $pkg_failed = untried; then
26534     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26535$as_echo "no" >&6; }
26536	HAVE_DRI2PROTO=no
26537else
26538	DRI2PROTO_CFLAGS=$pkg_cv_DRI2PROTO_CFLAGS
26539	DRI2PROTO_LIBS=$pkg_cv_DRI2PROTO_LIBS
26540        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26541$as_echo "yes" >&6; }
26542	HAVE_DRI2PROTO=yes
26543fi
26544case "$DRI2,$HAVE_DRI2PROTO" in
26545	yes,no)
26546		as_fn_error $? "DRI2 requested, but dri2proto not found." "$LINENO" 5
26547		;;
26548	yes,yes | auto,yes)
26549
26550$as_echo "#define DRI2 1" >>confdefs.h
26551
26552		DRI2=yes
26553		LIBGL="gl >= 1.2"
26554		SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI2PROTO"
26555		;;
26556esac
26557 if test "x$DRI2" = xyes; then
26558  DRI2_TRUE=
26559  DRI2_FALSE='#'
26560else
26561  DRI2_TRUE='#'
26562  DRI2_FALSE=
26563fi
26564
26565
26566# Check whether --enable-xtrans-send-fds was given.
26567if test "${enable_xtrans_send_fds+set}" = set; then :
26568  enableval=$enable_xtrans_send_fds; XTRANS_SEND_FDS=$enableval
26569else
26570  XTRANS_SEND_FDS=auto
26571fi
26572
26573
26574case "x$XTRANS_SEND_FDS" in
26575xauto)
26576	case "$host_os" in
26577	linux*|solaris*|freebsd*|dragonfly*|openbsd*)
26578		XTRANS_SEND_FDS=yes
26579		;;
26580	*)
26581		XTRANS_SEND_FDS=no
26582		;;
26583	esac
26584esac
26585
26586case "x$XTRANS_SEND_FDS" in
26587xyes)
26588
26589$as_echo "#define XTRANS_SEND_FDS 1" >>confdefs.h
26590
26591	;;
26592esac
26593
26594case "$DRI3,$XTRANS_SEND_FDS" in
26595	yes,yes | auto,yes)
26596		;;
26597	yes,no)
26598		as_fn_error $? "DRI3 requested, but xtrans fd passing support not found." "$LINENO" 5
26599		DRI3=no
26600		;;
26601	no,*)
26602		;;
26603	*)
26604		{ $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xtrans fd passing support not found." >&5
26605$as_echo "$as_me: DRI3 disabled because xtrans fd passing support not found." >&6;}
26606		DRI3=no
26607		;;
26608esac
26609
26610
26611pkg_failed=no
26612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI3PROTO" >&5
26613$as_echo_n "checking for DRI3PROTO... " >&6; }
26614
26615if test -n "$DRI3PROTO_CFLAGS"; then
26616    pkg_cv_DRI3PROTO_CFLAGS="$DRI3PROTO_CFLAGS"
26617 elif test -n "$PKG_CONFIG"; then
26618    if test -n "$PKG_CONFIG" && \
26619    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5
26620  ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5
26621  ac_status=$?
26622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26623  test $ac_status = 0; }; then
26624  pkg_cv_DRI3PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI3PROTO" 2>/dev/null`
26625		      test "x$?" != "x0" && pkg_failed=yes
26626else
26627  pkg_failed=yes
26628fi
26629 else
26630    pkg_failed=untried
26631fi
26632if test -n "$DRI3PROTO_LIBS"; then
26633    pkg_cv_DRI3PROTO_LIBS="$DRI3PROTO_LIBS"
26634 elif test -n "$PKG_CONFIG"; then
26635    if test -n "$PKG_CONFIG" && \
26636    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5
26637  ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5
26638  ac_status=$?
26639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26640  test $ac_status = 0; }; then
26641  pkg_cv_DRI3PROTO_LIBS=`$PKG_CONFIG --libs "$DRI3PROTO" 2>/dev/null`
26642		      test "x$?" != "x0" && pkg_failed=yes
26643else
26644  pkg_failed=yes
26645fi
26646 else
26647    pkg_failed=untried
26648fi
26649
26650
26651
26652if test $pkg_failed = yes; then
26653   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26654$as_echo "no" >&6; }
26655
26656if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26657        _pkg_short_errors_supported=yes
26658else
26659        _pkg_short_errors_supported=no
26660fi
26661        if test $_pkg_short_errors_supported = yes; then
26662	        DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI3PROTO" 2>&1`
26663        else
26664	        DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI3PROTO" 2>&1`
26665        fi
26666	# Put the nasty error message in config.log where it belongs
26667	echo "$DRI3PROTO_PKG_ERRORS" >&5
26668
26669	HAVE_DRI3PROTO=no
26670elif test $pkg_failed = untried; then
26671     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26672$as_echo "no" >&6; }
26673	HAVE_DRI3PROTO=no
26674else
26675	DRI3PROTO_CFLAGS=$pkg_cv_DRI3PROTO_CFLAGS
26676	DRI3PROTO_LIBS=$pkg_cv_DRI3PROTO_LIBS
26677        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26678$as_echo "yes" >&6; }
26679	HAVE_DRI3PROTO=yes
26680fi
26681
26682case "$DRI3,$HAVE_DRI3PROTO" in
26683	yes,yes | auto,yes)
26684		REQUIRED_MODULES="$REQUIRED_MODULES dri3proto"
26685		;;
26686	yes,no)
26687		as_fn_error $? "DRI3 requested, but dri3proto not found." "$LINENO" 5
26688		DRI3=no
26689		;;
26690	no,*)
26691		;;
26692	*)
26693		{ $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 disabled because dri3proto not found." >&5
26694$as_echo "$as_me: DRI3 disabled because dri3proto not found." >&6;}
26695		DRI3=no
26696		;;
26697esac
26698
26699for ac_func in sigaction
26700do :
26701  ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
26702if test "x$ac_cv_func_sigaction" = xyes; then :
26703  cat >>confdefs.h <<_ACEOF
26704#define HAVE_SIGACTION 1
26705_ACEOF
26706
26707fi
26708done
26709
26710
26711BUSFAULT=no
26712
26713case x"$ac_cv_func_sigaction" in
26714	xyes)
26715
26716$as_echo "#define HAVE_SIGACTION 1" >>confdefs.h
26717
26718		BUSFAULT=yes
26719		;;
26720esac
26721
26722case x"$BUSFAULT" in
26723	xyes)
26724
26725$as_echo "#define BUSFAULT 1" >>confdefs.h
26726
26727		;;
26728esac
26729
26730 if test x"$BUSFAULT" = xyes; then
26731  BUSFAULT_TRUE=
26732  BUSFAULT_FALSE='#'
26733else
26734  BUSFAULT_TRUE='#'
26735  BUSFAULT_FALSE=
26736fi
26737
26738
26739
26740
26741pkg_failed=no
26742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSHMFENCE" >&5
26743$as_echo_n "checking for XSHMFENCE... " >&6; }
26744
26745if test -n "$XSHMFENCE_CFLAGS"; then
26746    pkg_cv_XSHMFENCE_CFLAGS="$XSHMFENCE_CFLAGS"
26747 elif test -n "$PKG_CONFIG"; then
26748    if test -n "$PKG_CONFIG" && \
26749    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5
26750  ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5
26751  ac_status=$?
26752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26753  test $ac_status = 0; }; then
26754  pkg_cv_XSHMFENCE_CFLAGS=`$PKG_CONFIG --cflags "$LIBXSHMFENCE" 2>/dev/null`
26755		      test "x$?" != "x0" && pkg_failed=yes
26756else
26757  pkg_failed=yes
26758fi
26759 else
26760    pkg_failed=untried
26761fi
26762if test -n "$XSHMFENCE_LIBS"; then
26763    pkg_cv_XSHMFENCE_LIBS="$XSHMFENCE_LIBS"
26764 elif test -n "$PKG_CONFIG"; then
26765    if test -n "$PKG_CONFIG" && \
26766    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5
26767  ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5
26768  ac_status=$?
26769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26770  test $ac_status = 0; }; then
26771  pkg_cv_XSHMFENCE_LIBS=`$PKG_CONFIG --libs "$LIBXSHMFENCE" 2>/dev/null`
26772		      test "x$?" != "x0" && pkg_failed=yes
26773else
26774  pkg_failed=yes
26775fi
26776 else
26777    pkg_failed=untried
26778fi
26779
26780
26781
26782if test $pkg_failed = yes; then
26783   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26784$as_echo "no" >&6; }
26785
26786if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26787        _pkg_short_errors_supported=yes
26788else
26789        _pkg_short_errors_supported=no
26790fi
26791        if test $_pkg_short_errors_supported = yes; then
26792	        XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1`
26793        else
26794	        XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1`
26795        fi
26796	# Put the nasty error message in config.log where it belongs
26797	echo "$XSHMFENCE_PKG_ERRORS" >&5
26798
26799	HAVE_XSHMFENCE=no
26800elif test $pkg_failed = untried; then
26801     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26802$as_echo "no" >&6; }
26803	HAVE_XSHMFENCE=no
26804else
26805	XSHMFENCE_CFLAGS=$pkg_cv_XSHMFENCE_CFLAGS
26806	XSHMFENCE_LIBS=$pkg_cv_XSHMFENCE_LIBS
26807        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26808$as_echo "yes" >&6; }
26809	HAVE_XSHMFENCE=yes
26810fi
26811if test "x$XSHMFENCE" = "xauto"; then
26812    XSHMFENCE="$HAVE_XSHMFENCE"
26813fi
26814
26815if test "x$XSHMFENCE" = "xyes"; then
26816    if test "x$HAVE_XSHMFENCE" != "xyes"; then
26817        as_fn_error $? "xshmfence requested but not installed." "$LINENO" 5
26818    fi
26819
26820$as_echo "#define HAVE_XSHMFENCE 1" >>confdefs.h
26821
26822    REQUIRED_LIBS="$REQUIRED_LIBS $LIBXSHMFENCE"
26823fi
26824
26825 if test "x$XSHMFENCE" = xyes; then
26826  XSHMFENCE_TRUE=
26827  XSHMFENCE_FALSE='#'
26828else
26829  XSHMFENCE_TRUE='#'
26830  XSHMFENCE_FALSE=
26831fi
26832
26833
26834case "$DRI3,$XSHMFENCE" in
26835	yes,yes | auto,yes)
26836		;;
26837	yes,no)
26838		as_fn_error $? "DRI3 requested, but xshmfence not found." "$LINENO" 5
26839		DRI3=no
26840		;;
26841	no,*)
26842		;;
26843	*)
26844		{ $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xshmfence not found." >&5
26845$as_echo "$as_me: DRI3 disabled because xshmfence not found." >&6;}
26846		DRI3=no
26847		;;
26848esac
26849
26850case x"$DRI3" in
26851	xyes|xauto)
26852		DRI3=yes
26853
26854$as_echo "#define DRI3 1" >>confdefs.h
26855
26856		DRI3_LIB='$(top_builddir)/dri3/libdri3.la'
26857		SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI3PROTO"
26858		{ $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 enabled" >&5
26859$as_echo "$as_me: DRI3 enabled" >&6;};
26860		;;
26861esac
26862
26863 if test "x$DRI3" = xyes; then
26864  DRI3_TRUE=
26865  DRI3_FALSE='#'
26866else
26867  DRI3_TRUE='#'
26868  DRI3_FALSE=
26869fi
26870
26871
26872if test "x$DRI" = xyes || test "x$DRI2" = xyes || test "x$DRI3" = xyes || test "x$CONFIG_UDEV_KMS" = xyes || test "x$XORG" = xyes; then
26873	if test "x$DRM" = xyes; then
26874
26875$as_echo "#define WITH_LIBDRM 1" >>confdefs.h
26876
26877
26878pkg_failed=no
26879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
26880$as_echo_n "checking for LIBDRM... " >&6; }
26881
26882if test -n "$LIBDRM_CFLAGS"; then
26883    pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
26884 elif test -n "$PKG_CONFIG"; then
26885    if test -n "$PKG_CONFIG" && \
26886    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5
26887  ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5
26888  ac_status=$?
26889  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26890  test $ac_status = 0; }; then
26891  pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "$LIBDRM" 2>/dev/null`
26892		      test "x$?" != "x0" && pkg_failed=yes
26893else
26894  pkg_failed=yes
26895fi
26896 else
26897    pkg_failed=untried
26898fi
26899if test -n "$LIBDRM_LIBS"; then
26900    pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
26901 elif test -n "$PKG_CONFIG"; then
26902    if test -n "$PKG_CONFIG" && \
26903    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5
26904  ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5
26905  ac_status=$?
26906  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26907  test $ac_status = 0; }; then
26908  pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "$LIBDRM" 2>/dev/null`
26909		      test "x$?" != "x0" && pkg_failed=yes
26910else
26911  pkg_failed=yes
26912fi
26913 else
26914    pkg_failed=untried
26915fi
26916
26917
26918
26919if test $pkg_failed = yes; then
26920   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26921$as_echo "no" >&6; }
26922
26923if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26924        _pkg_short_errors_supported=yes
26925else
26926        _pkg_short_errors_supported=no
26927fi
26928        if test $_pkg_short_errors_supported = yes; then
26929	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDRM" 2>&1`
26930        else
26931	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDRM" 2>&1`
26932        fi
26933	# Put the nasty error message in config.log where it belongs
26934	echo "$LIBDRM_PKG_ERRORS" >&5
26935
26936	as_fn_error $? "Package requirements ($LIBDRM) were not met:
26937
26938$LIBDRM_PKG_ERRORS
26939
26940Consider adjusting the PKG_CONFIG_PATH environment variable if you
26941installed software in a non-standard prefix.
26942
26943Alternatively, you may set the environment variables LIBDRM_CFLAGS
26944and LIBDRM_LIBS to avoid the need to call pkg-config.
26945See the pkg-config man page for more details." "$LINENO" 5
26946elif test $pkg_failed = untried; then
26947     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26948$as_echo "no" >&6; }
26949	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26950$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26951as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
26952is in your PATH or set the PKG_CONFIG environment variable to the full
26953path to pkg-config.
26954
26955Alternatively, you may set the environment variables LIBDRM_CFLAGS
26956and LIBDRM_LIBS to avoid the need to call pkg-config.
26957See the pkg-config man page for more details.
26958
26959To get pkg-config, see <http://pkg-config.freedesktop.org/>.
26960See \`config.log' for more details" "$LINENO" 5; }
26961else
26962	LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
26963	LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
26964        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26965$as_echo "yes" >&6; }
26966
26967fi
26968	fi
26969fi
26970
26971if test "x$GLX" = xyes; then
26972
26973pkg_failed=no
26974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5
26975$as_echo_n "checking for XLIB... " >&6; }
26976
26977if test -n "$XLIB_CFLAGS"; then
26978    pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
26979 elif test -n "$PKG_CONFIG"; then
26980    if test -n "$PKG_CONFIG" && \
26981    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
26982  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
26983  ac_status=$?
26984  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26985  test $ac_status = 0; }; then
26986  pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
26987		      test "x$?" != "x0" && pkg_failed=yes
26988else
26989  pkg_failed=yes
26990fi
26991 else
26992    pkg_failed=untried
26993fi
26994if test -n "$XLIB_LIBS"; then
26995    pkg_cv_XLIB_LIBS="$XLIB_LIBS"
26996 elif test -n "$PKG_CONFIG"; then
26997    if test -n "$PKG_CONFIG" && \
26998    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
26999  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
27000  ac_status=$?
27001  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27002  test $ac_status = 0; }; then
27003  pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
27004		      test "x$?" != "x0" && pkg_failed=yes
27005else
27006  pkg_failed=yes
27007fi
27008 else
27009    pkg_failed=untried
27010fi
27011
27012
27013
27014if test $pkg_failed = yes; then
27015   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27016$as_echo "no" >&6; }
27017
27018if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27019        _pkg_short_errors_supported=yes
27020else
27021        _pkg_short_errors_supported=no
27022fi
27023        if test $_pkg_short_errors_supported = yes; then
27024	        XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
27025        else
27026	        XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
27027        fi
27028	# Put the nasty error message in config.log where it belongs
27029	echo "$XLIB_PKG_ERRORS" >&5
27030
27031	as_fn_error $? "Package requirements (x11) were not met:
27032
27033$XLIB_PKG_ERRORS
27034
27035Consider adjusting the PKG_CONFIG_PATH environment variable if you
27036installed software in a non-standard prefix.
27037
27038Alternatively, you may set the environment variables XLIB_CFLAGS
27039and XLIB_LIBS to avoid the need to call pkg-config.
27040See the pkg-config man page for more details." "$LINENO" 5
27041elif test $pkg_failed = untried; then
27042     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27043$as_echo "no" >&6; }
27044	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27046as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
27047is in your PATH or set the PKG_CONFIG environment variable to the full
27048path to pkg-config.
27049
27050Alternatively, you may set the environment variables XLIB_CFLAGS
27051and XLIB_LIBS to avoid the need to call pkg-config.
27052See the pkg-config man page for more details.
27053
27054To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27055See \`config.log' for more details" "$LINENO" 5; }
27056else
27057	XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS
27058	XLIB_LIBS=$pkg_cv_XLIB_LIBS
27059        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27060$as_echo "yes" >&6; }
27061
27062fi
27063
27064pkg_failed=no
27065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL" >&5
27066$as_echo_n "checking for GL... " >&6; }
27067
27068if test -n "$GL_CFLAGS"; then
27069    pkg_cv_GL_CFLAGS="$GL_CFLAGS"
27070 elif test -n "$PKG_CONFIG"; then
27071    if test -n "$PKG_CONFIG" && \
27072    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5
27073  ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5
27074  ac_status=$?
27075  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27076  test $ac_status = 0; }; then
27077  pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "$GLPROTO $LIBGL" 2>/dev/null`
27078		      test "x$?" != "x0" && pkg_failed=yes
27079else
27080  pkg_failed=yes
27081fi
27082 else
27083    pkg_failed=untried
27084fi
27085if test -n "$GL_LIBS"; then
27086    pkg_cv_GL_LIBS="$GL_LIBS"
27087 elif test -n "$PKG_CONFIG"; then
27088    if test -n "$PKG_CONFIG" && \
27089    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5
27090  ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5
27091  ac_status=$?
27092  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27093  test $ac_status = 0; }; then
27094  pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "$GLPROTO $LIBGL" 2>/dev/null`
27095		      test "x$?" != "x0" && pkg_failed=yes
27096else
27097  pkg_failed=yes
27098fi
27099 else
27100    pkg_failed=untried
27101fi
27102
27103
27104
27105if test $pkg_failed = yes; then
27106   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27107$as_echo "no" >&6; }
27108
27109if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27110        _pkg_short_errors_supported=yes
27111else
27112        _pkg_short_errors_supported=no
27113fi
27114        if test $_pkg_short_errors_supported = yes; then
27115	        GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1`
27116        else
27117	        GL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1`
27118        fi
27119	# Put the nasty error message in config.log where it belongs
27120	echo "$GL_PKG_ERRORS" >&5
27121
27122	as_fn_error $? "Package requirements ($GLPROTO $LIBGL) were not met:
27123
27124$GL_PKG_ERRORS
27125
27126Consider adjusting the PKG_CONFIG_PATH environment variable if you
27127installed software in a non-standard prefix.
27128
27129Alternatively, you may set the environment variables GL_CFLAGS
27130and GL_LIBS to avoid the need to call pkg-config.
27131See the pkg-config man page for more details." "$LINENO" 5
27132elif test $pkg_failed = untried; then
27133     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27134$as_echo "no" >&6; }
27135	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27137as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
27138is in your PATH or set the PKG_CONFIG environment variable to the full
27139path to pkg-config.
27140
27141Alternatively, you may set the environment variables GL_CFLAGS
27142and GL_LIBS to avoid the need to call pkg-config.
27143See the pkg-config man page for more details.
27144
27145To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27146See \`config.log' for more details" "$LINENO" 5; }
27147else
27148	GL_CFLAGS=$pkg_cv_GL_CFLAGS
27149	GL_LIBS=$pkg_cv_GL_LIBS
27150        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27151$as_echo "yes" >&6; }
27152
27153fi
27154
27155
27156$as_echo "#define GLXEXT 1" >>confdefs.h
27157
27158	HASHTABLE=yes
27159	GLX_LIBS='$(top_builddir)/glx/libglx.la $(top_builddir)/glx/libglxvnd.la'
27160	GLX_SYS_LIBS="$GLX_SYS_LIBS $GL_LIBS"
27161else
27162        GLX=no
27163fi
27164 if test "x$GLX" = xyes; then
27165  GLX_TRUE=
27166  GLX_FALSE='#'
27167else
27168  GLX_TRUE='#'
27169  GLX_FALSE=
27170fi
27171
27172
27173 if test "x$HASHTABLE" = xyes; then
27174  HASHTABLE_TRUE=
27175  HASHTABLE_FALSE='#'
27176else
27177  HASHTABLE_TRUE='#'
27178  HASHTABLE_FALSE=
27179fi
27180
27181
27182
27183
27184
27185 if test "x$PRESENT" = xyes; then
27186  PRESENT_TRUE=
27187  PRESENT_FALSE='#'
27188else
27189  PRESENT_TRUE='#'
27190  PRESENT_FALSE=
27191fi
27192
27193if test "x$PRESENT" = xyes; then
27194
27195$as_echo "#define PRESENT 1" >>confdefs.h
27196
27197	REQUIRED_MODULES="$REQUIRED_MODULES $PRESENTPROTO"
27198	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $PRESENTPROTO"
27199	PRESENT_INC='-I$(top_srcdir)/present'
27200	PRESENT_LIB='$(top_builddir)/present/libpresent.la'
27201fi
27202
27203 if test "x$XINERAMA" = xyes; then
27204  XINERAMA_TRUE=
27205  XINERAMA_FALSE='#'
27206else
27207  XINERAMA_TRUE='#'
27208  XINERAMA_FALSE=
27209fi
27210
27211if test "x$XINERAMA" = xyes; then
27212
27213$as_echo "#define XINERAMA 1" >>confdefs.h
27214
27215
27216$as_echo "#define PANORAMIX 1" >>confdefs.h
27217
27218	REQUIRED_MODULES="$REQUIRED_MODULES $XINERAMAPROTO"
27219	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $XINERAMAPROTO"
27220fi
27221
27222 if test "x$XACE" = xyes; then
27223  XACE_TRUE=
27224  XACE_FALSE='#'
27225else
27226  XACE_TRUE='#'
27227  XACE_FALSE=
27228fi
27229
27230if test "x$XACE" = xyes; then
27231
27232$as_echo "#define XACE 1" >>confdefs.h
27233
27234fi
27235
27236 if test "x$XSELINUX" = xyes; then
27237  XSELINUX_TRUE=
27238  XSELINUX_FALSE='#'
27239else
27240  XSELINUX_TRUE='#'
27241  XSELINUX_FALSE=
27242fi
27243
27244if test "x$XSELINUX" = xyes; then
27245	if test "x$XACE" != xyes; then
27246		as_fn_error $? "cannot build SELinux extension without X-ACE" "$LINENO" 5
27247	fi
27248	for ac_header in libaudit.h
27249do :
27250  ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
27251if test "x$ac_cv_header_libaudit_h" = xyes; then :
27252  cat >>confdefs.h <<_ACEOF
27253#define HAVE_LIBAUDIT_H 1
27254_ACEOF
27255
27256else
27257  as_fn_error $? "SELinux extension requires audit system headers" "$LINENO" 5
27258fi
27259
27260done
27261
27262	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_open in -laudit" >&5
27263$as_echo_n "checking for audit_open in -laudit... " >&6; }
27264if ${ac_cv_lib_audit_audit_open+:} false; then :
27265  $as_echo_n "(cached) " >&6
27266else
27267  ac_check_lib_save_LIBS=$LIBS
27268LIBS="-laudit  $LIBS"
27269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27270/* end confdefs.h.  */
27271
27272/* Override any GCC internal prototype to avoid an error.
27273   Use char because int might match the return type of a GCC
27274   builtin and then its argument prototype would still apply.  */
27275#ifdef __cplusplus
27276extern "C"
27277#endif
27278char audit_open ();
27279int
27280main ()
27281{
27282return audit_open ();
27283  ;
27284  return 0;
27285}
27286_ACEOF
27287if ac_fn_c_try_link "$LINENO"; then :
27288  ac_cv_lib_audit_audit_open=yes
27289else
27290  ac_cv_lib_audit_audit_open=no
27291fi
27292rm -f core conftest.err conftest.$ac_objext \
27293    conftest$ac_exeext conftest.$ac_ext
27294LIBS=$ac_check_lib_save_LIBS
27295fi
27296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_open" >&5
27297$as_echo "$ac_cv_lib_audit_audit_open" >&6; }
27298if test "x$ac_cv_lib_audit_audit_open" = xyes; then :
27299  cat >>confdefs.h <<_ACEOF
27300#define HAVE_LIBAUDIT 1
27301_ACEOF
27302
27303  LIBS="-laudit $LIBS"
27304
27305else
27306  as_fn_error $? "SELinux extension requires audit system library" "$LINENO" 5
27307fi
27308
27309
27310pkg_failed=no
27311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELINUX" >&5
27312$as_echo_n "checking for SELINUX... " >&6; }
27313
27314if test -n "$SELINUX_CFLAGS"; then
27315    pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS"
27316 elif test -n "$PKG_CONFIG"; then
27317    if test -n "$PKG_CONFIG" && \
27318    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5
27319  ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5
27320  ac_status=$?
27321  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27322  test $ac_status = 0; }; then
27323  pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "$LIBSELINUX" 2>/dev/null`
27324		      test "x$?" != "x0" && pkg_failed=yes
27325else
27326  pkg_failed=yes
27327fi
27328 else
27329    pkg_failed=untried
27330fi
27331if test -n "$SELINUX_LIBS"; then
27332    pkg_cv_SELINUX_LIBS="$SELINUX_LIBS"
27333 elif test -n "$PKG_CONFIG"; then
27334    if test -n "$PKG_CONFIG" && \
27335    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5
27336  ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5
27337  ac_status=$?
27338  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27339  test $ac_status = 0; }; then
27340  pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "$LIBSELINUX" 2>/dev/null`
27341		      test "x$?" != "x0" && pkg_failed=yes
27342else
27343  pkg_failed=yes
27344fi
27345 else
27346    pkg_failed=untried
27347fi
27348
27349
27350
27351if test $pkg_failed = yes; then
27352   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27353$as_echo "no" >&6; }
27354
27355if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27356        _pkg_short_errors_supported=yes
27357else
27358        _pkg_short_errors_supported=no
27359fi
27360        if test $_pkg_short_errors_supported = yes; then
27361	        SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSELINUX" 2>&1`
27362        else
27363	        SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSELINUX" 2>&1`
27364        fi
27365	# Put the nasty error message in config.log where it belongs
27366	echo "$SELINUX_PKG_ERRORS" >&5
27367
27368	as_fn_error $? "Package requirements ($LIBSELINUX) were not met:
27369
27370$SELINUX_PKG_ERRORS
27371
27372Consider adjusting the PKG_CONFIG_PATH environment variable if you
27373installed software in a non-standard prefix.
27374
27375Alternatively, you may set the environment variables SELINUX_CFLAGS
27376and SELINUX_LIBS to avoid the need to call pkg-config.
27377See the pkg-config man page for more details." "$LINENO" 5
27378elif test $pkg_failed = untried; then
27379     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27380$as_echo "no" >&6; }
27381	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27383as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
27384is in your PATH or set the PKG_CONFIG environment variable to the full
27385path to pkg-config.
27386
27387Alternatively, you may set the environment variables SELINUX_CFLAGS
27388and SELINUX_LIBS to avoid the need to call pkg-config.
27389See the pkg-config man page for more details.
27390
27391To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27392See \`config.log' for more details" "$LINENO" 5; }
27393else
27394	SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS
27395	SELINUX_LIBS=$pkg_cv_SELINUX_LIBS
27396        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27397$as_echo "yes" >&6; }
27398
27399fi
27400	SELINUX_LIBS="$SELINUX_LIBS -laudit"
27401
27402$as_echo "#define XSELINUX 1" >>confdefs.h
27403
27404fi
27405
27406 if test "x$XCSECURITY" = xyes; then
27407  XCSECURITY_TRUE=
27408  XCSECURITY_FALSE='#'
27409else
27410  XCSECURITY_TRUE='#'
27411  XCSECURITY_FALSE=
27412fi
27413
27414if test "x$XCSECURITY" = xyes; then
27415	if test "x$XACE" != xyes; then
27416		as_fn_error $? "cannot build Security extension without X-ACE" "$LINENO" 5
27417	fi
27418
27419$as_echo "#define XCSECURITY 1" >>confdefs.h
27420
27421fi
27422
27423 if test "x$DBE" = xyes; then
27424  DBE_TRUE=
27425  DBE_FALSE='#'
27426else
27427  DBE_TRUE='#'
27428  DBE_FALSE=
27429fi
27430
27431if test "x$DBE" = xyes; then
27432
27433$as_echo "#define DBE 1" >>confdefs.h
27434
27435	DBE_LIB='$(top_builddir)/dbe/libdbe.la'
27436	DBE_INC='-I$(top_srcdir)/dbe'
27437fi
27438
27439 if test "x$XF86BIGFONT" = xyes; then
27440  XF86BIGFONT_TRUE=
27441  XF86BIGFONT_FALSE='#'
27442else
27443  XF86BIGFONT_TRUE='#'
27444  XF86BIGFONT_FALSE=
27445fi
27446
27447if test "x$XF86BIGFONT" = xyes; then
27448
27449$as_echo "#define XF86BIGFONT 1" >>confdefs.h
27450
27451	REQUIRED_MODULES="$REQUIRED_MODULES $BIGFONTPROTO"
27452	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $BIGFONTPROTO"
27453fi
27454
27455 if test "x$DPMSExtension" = xyes; then
27456  DPMSExtension_TRUE=
27457  DPMSExtension_FALSE='#'
27458else
27459  DPMSExtension_TRUE='#'
27460  DPMSExtension_FALSE=
27461fi
27462
27463if test "x$DPMSExtension" = xyes; then
27464
27465$as_echo "#define DPMSExtension 1" >>confdefs.h
27466
27467fi
27468
27469
27470$as_echo "#define RENDER 1" >>confdefs.h
27471
27472RENDER_LIB='$(top_builddir)/render/librender.la'
27473RENDER_INC='-I$(top_srcdir)/render'
27474
27475
27476$as_echo "#define RANDR 1" >>confdefs.h
27477
27478RANDR_LIB='$(top_builddir)/randr/librandr.la'
27479RANDR_INC='-I$(top_srcdir)/randr'
27480
27481
27482$as_echo "#define XFIXES 1" >>confdefs.h
27483
27484FIXES_LIB='$(top_builddir)/xfixes/libxfixes.la'
27485FIXES_INC='-I$(top_srcdir)/xfixes'
27486
27487
27488$as_echo "#define DAMAGE 1" >>confdefs.h
27489
27490DAMAGE_LIB='$(top_builddir)/damageext/libdamageext.la'
27491DAMAGE_INC='-I$(top_srcdir)/damageext'
27492MIEXT_DAMAGE_LIB='$(top_builddir)/miext/damage/libdamage.la'
27493MIEXT_DAMAGE_INC='-I$(top_srcdir)/miext/damage'
27494
27495# XINPUT extension is integral part of the server
27496
27497$as_echo "#define XINPUT 1" >>confdefs.h
27498
27499XI_LIB='$(top_builddir)/Xi/libXi.la'
27500XI_INC='-I$(top_srcdir)/Xi'
27501
27502 if test "x$XF86UTILS" = xyes; then
27503  XF86UTILS_TRUE=
27504  XF86UTILS_FALSE='#'
27505else
27506  XF86UTILS_TRUE='#'
27507  XF86UTILS_FALSE=
27508fi
27509
27510 if test "x$VGAHW" = xyes; then
27511  VGAHW_TRUE=
27512  VGAHW_FALSE='#'
27513else
27514  VGAHW_TRUE='#'
27515  VGAHW_FALSE=
27516fi
27517
27518 if test "x$VBE" = xyes; then
27519  VBE_TRUE=
27520  VBE_FALSE='#'
27521else
27522  VBE_TRUE='#'
27523  VBE_FALSE=
27524fi
27525
27526 if test "x$INT10MODULE" = xyes; then
27527  INT10MODULE_TRUE=
27528  INT10MODULE_FALSE='#'
27529else
27530  INT10MODULE_TRUE='#'
27531  INT10MODULE_FALSE=
27532fi
27533
27534
27535
27536$as_echo "#define SHAPE 1" >>confdefs.h
27537
27538
27539if test "x$XKBPATH" = "xauto"; then
27540    XKBPATH=$(pkg-config --variable datadir xkbcomp || echo ${datadir})/X11/xkb
27541fi
27542
27543
27544  prefix_NONE=
27545  exec_prefix_NONE=
27546  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27547  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27548  eval ac_define_dir="\"$XKBPATH\""
27549  eval ac_define_dir="\"$ac_define_dir\""
27550  XKB_BASE_DIRECTORY="$ac_define_dir"
27551
27552
27553cat >>confdefs.h <<_ACEOF
27554#define XKB_BASE_DIRECTORY "$ac_define_dir"
27555_ACEOF
27556
27557  test "$prefix_NONE" && prefix=NONE
27558  test "$exec_prefix_NONE" && exec_prefix=NONE
27559
27560
27561# Check whether --with-xkb-bin-directory was given.
27562if test "${with_xkb_bin_directory+set}" = set; then :
27563  withval=$with_xkb_bin_directory; XKB_BIN_DIRECTORY="$withval"
27564else
27565  XKB_BIN_DIRECTORY="auto"
27566fi
27567
27568
27569if test "x$XKB_BIN_DIRECTORY" = "xauto"; then
27570    XKB_BIN_DIRECTORY=$(pkg-config --variable bindir xkbcomp || echo ${bindir})
27571fi
27572
27573
27574  prefix_NONE=
27575  exec_prefix_NONE=
27576  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27577  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27578  eval ac_define_dir="\"$XKB_BIN_DIRECTORY\""
27579  eval ac_define_dir="\"$ac_define_dir\""
27580  XKB_BIN_DIRECTORY="$ac_define_dir"
27581
27582
27583cat >>confdefs.h <<_ACEOF
27584#define XKB_BIN_DIRECTORY "$ac_define_dir"
27585_ACEOF
27586
27587  test "$prefix_NONE" && prefix=NONE
27588  test "$exec_prefix_NONE" && exec_prefix=NONE
27589
27590
27591XKBOUTPUT_FIRSTCHAR=`echo $XKBOUTPUT | cut -b 1`
27592if [ x$XKBOUTPUT_FIRSTCHAR != x/ -a x$XKBOUTPUT_FIRSTCHAR != 'x$' ] ; then
27593   XKBOUTPUT="$XKB_BASE_DIRECTORY/$XKBOUTPUT"
27594fi
27595
27596
27597XKBOUTPUT=`echo $XKBOUTPUT/ | $SED 's|/*$|/|'`
27598XKB_COMPILED_DIR=`echo $XKBOUTPUT | $SED 's|/*$||'`
27599
27600  prefix_NONE=
27601  exec_prefix_NONE=
27602  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27603  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27604  eval ac_define_dir="\"$XKBOUTPUT\""
27605  eval ac_define_dir="\"$ac_define_dir\""
27606  XKM_OUTPUT_DIR="$ac_define_dir"
27607
27608
27609cat >>confdefs.h <<_ACEOF
27610#define XKM_OUTPUT_DIR "$ac_define_dir"
27611_ACEOF
27612
27613  test "$prefix_NONE" && prefix=NONE
27614  test "$exec_prefix_NONE" && exec_prefix=NONE
27615
27616
27617
27618if test "x$XKB_DFLT_RULES" = x; then
27619    case $host_os in
27620    linux*)
27621                XKB_DFLT_RULES="evdev"
27622        ;;
27623    *)
27624        XKB_DFLT_RULES="base"
27625        ;;
27626    esac
27627fi
27628
27629cat >>confdefs.h <<_ACEOF
27630#define XKB_DFLT_RULES "$XKB_DFLT_RULES"
27631_ACEOF
27632
27633
27634cat >>confdefs.h <<_ACEOF
27635#define XKB_DFLT_MODEL "$XKB_DFLT_MODEL"
27636_ACEOF
27637
27638
27639cat >>confdefs.h <<_ACEOF
27640#define XKB_DFLT_LAYOUT "$XKB_DFLT_LAYOUT"
27641_ACEOF
27642
27643
27644cat >>confdefs.h <<_ACEOF
27645#define XKB_DFLT_VARIANT "$XKB_DFLT_VARIANT"
27646_ACEOF
27647
27648
27649cat >>confdefs.h <<_ACEOF
27650#define XKB_DFLT_OPTIONS "$XKB_DFLT_OPTIONS"
27651_ACEOF
27652
27653
27654
27655
27656
27657
27658
27659XKB_LIB='$(top_builddir)/xkb/libxkb.la'
27660XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la'
27661REQUIRED_MODULES="$REQUIRED_MODULES xkbfile"
27662
27663
27664pkg_failed=no
27665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5
27666$as_echo_n "checking for XDMCP... " >&6; }
27667
27668if test -n "$XDMCP_CFLAGS"; then
27669    pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
27670 elif test -n "$PKG_CONFIG"; then
27671    if test -n "$PKG_CONFIG" && \
27672    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
27673  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
27674  ac_status=$?
27675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27676  test $ac_status = 0; }; then
27677  pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
27678		      test "x$?" != "x0" && pkg_failed=yes
27679else
27680  pkg_failed=yes
27681fi
27682 else
27683    pkg_failed=untried
27684fi
27685if test -n "$XDMCP_LIBS"; then
27686    pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
27687 elif test -n "$PKG_CONFIG"; then
27688    if test -n "$PKG_CONFIG" && \
27689    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
27690  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
27691  ac_status=$?
27692  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27693  test $ac_status = 0; }; then
27694  pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
27695		      test "x$?" != "x0" && pkg_failed=yes
27696else
27697  pkg_failed=yes
27698fi
27699 else
27700    pkg_failed=untried
27701fi
27702
27703
27704
27705if test $pkg_failed = yes; then
27706   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27707$as_echo "no" >&6; }
27708
27709if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27710        _pkg_short_errors_supported=yes
27711else
27712        _pkg_short_errors_supported=no
27713fi
27714        if test $_pkg_short_errors_supported = yes; then
27715	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1`
27716        else
27717	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1`
27718        fi
27719	# Put the nasty error message in config.log where it belongs
27720	echo "$XDMCP_PKG_ERRORS" >&5
27721
27722	have_libxdmcp="no"
27723elif test $pkg_failed = untried; then
27724     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27725$as_echo "no" >&6; }
27726	have_libxdmcp="no"
27727else
27728	XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
27729	XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
27730        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27731$as_echo "yes" >&6; }
27732	have_libxdmcp="yes"
27733fi
27734if test "x$XDMCP" = xauto; then
27735	if test "x$have_libxdmcp" = xyes; then
27736		XDMCP=yes
27737	else
27738		XDMCP=no
27739	fi
27740fi
27741if test "x$XDMAUTH" = xauto; then
27742	if test "x$have_libxdmcp" = xyes; then
27743		XDMAUTH=yes
27744	else
27745		XDMAUTH=no
27746	fi
27747fi
27748
27749 if test "x$XDMCP" = xyes; then
27750  XDMCP_TRUE=
27751  XDMCP_FALSE='#'
27752else
27753  XDMCP_TRUE='#'
27754  XDMCP_FALSE=
27755fi
27756
27757if test "x$XDMCP" = xyes; then
27758
27759$as_echo "#define XDMCP 1" >>confdefs.h
27760
27761	REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
27762	XDMCP_MODULES="xdmcp"
27763fi
27764
27765 if test "x$XDMAUTH" = xyes; then
27766  XDMAUTH_TRUE=
27767  XDMAUTH_FALSE='#'
27768else
27769  XDMAUTH_TRUE='#'
27770  XDMAUTH_FALSE=
27771fi
27772
27773if test "x$XDMAUTH" = xyes; then
27774
27775$as_echo "#define HASXDMAUTH 1" >>confdefs.h
27776
27777	if ! test "x$XDMCP" = xyes; then
27778		REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
27779		XDMCP_MODULES="xdmcp"
27780	fi
27781fi
27782
27783if test "x$XF86VIDMODE" = xauto; then
27784	if test -n "$PKG_CONFIG" && \
27785    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5
27786  ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5
27787  ac_status=$?
27788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27789  test $ac_status = 0; }; then
27790  XF86VIDMODE=yes
27791else
27792  XF86VIDMODE=no
27793fi
27794fi
27795if test "x$XF86VIDMODE" = xyes; then
27796
27797$as_echo "#define XF86VIDMODE 1" >>confdefs.h
27798
27799fi
27800 if test "x$XF86VIDMODE" = xyes; then
27801  XF86VIDMODE_TRUE=
27802  XF86VIDMODE_FALSE='#'
27803else
27804  XF86VIDMODE_TRUE='#'
27805  XF86VIDMODE_FALSE=
27806fi
27807
27808
27809
27810  prefix_NONE=
27811  exec_prefix_NONE=
27812  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27813  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27814  eval ac_define_dir="\"$FONTPATH\""
27815  eval ac_define_dir="\"$ac_define_dir\""
27816  COMPILEDDEFAULTFONTPATH="$ac_define_dir"
27817
27818
27819cat >>confdefs.h <<_ACEOF
27820#define COMPILEDDEFAULTFONTPATH "$ac_define_dir"
27821_ACEOF
27822
27823  test "$prefix_NONE" && prefix=NONE
27824  test "$exec_prefix_NONE" && exec_prefix=NONE
27825
27826
27827  prefix_NONE=
27828  exec_prefix_NONE=
27829  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27830  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27831  eval ac_define_dir="\"$SERVERCONFIG\""
27832  eval ac_define_dir="\"$ac_define_dir\""
27833  SERVER_MISC_CONFIG_PATH="$ac_define_dir"
27834
27835
27836cat >>confdefs.h <<_ACEOF
27837#define SERVER_MISC_CONFIG_PATH "$ac_define_dir"
27838_ACEOF
27839
27840  test "$prefix_NONE" && prefix=NONE
27841  test "$exec_prefix_NONE" && exec_prefix=NONE
27842
27843
27844  prefix_NONE=
27845  exec_prefix_NONE=
27846  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27847  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27848  eval ac_define_dir="\"$FONTROOTDIR\""
27849  eval ac_define_dir="\"$ac_define_dir\""
27850  BASE_FONT_PATH="$ac_define_dir"
27851
27852
27853cat >>confdefs.h <<_ACEOF
27854#define BASE_FONT_PATH "$ac_define_dir"
27855_ACEOF
27856
27857  test "$prefix_NONE" && prefix=NONE
27858  test "$exec_prefix_NONE" && exec_prefix=NONE
27859
27860dridriverdir=`$PKG_CONFIG --variable=dridriverdir dri`
27861
27862  prefix_NONE=
27863  exec_prefix_NONE=
27864  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27865  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27866  eval ac_define_dir="\"$dridriverdir\""
27867  eval ac_define_dir="\"$ac_define_dir\""
27868  DRI_DRIVER_PATH="$ac_define_dir"
27869
27870
27871cat >>confdefs.h <<_ACEOF
27872#define DRI_DRIVER_PATH "$ac_define_dir"
27873_ACEOF
27874
27875  test "$prefix_NONE" && prefix=NONE
27876  test "$exec_prefix_NONE" && exec_prefix=NONE
27877
27878
27879cat >>confdefs.h <<_ACEOF
27880#define XVENDORNAME "$VENDOR_NAME"
27881_ACEOF
27882
27883
27884cat >>confdefs.h <<_ACEOF
27885#define XVENDORNAMESHORT "$VENDOR_NAME_SHORT"
27886_ACEOF
27887
27888
27889cat >>confdefs.h <<_ACEOF
27890#define XORG_MAN_VERSION "$VENDOR_MAN_VERSION"
27891_ACEOF
27892
27893
27894cat >>confdefs.h <<_ACEOF
27895#define BUILDERADDR "$BUILDERADDR"
27896_ACEOF
27897
27898
27899if test -z "$OSNAME"; then
27900    OSNAME="UNKNOWN"
27901fi
27902
27903
27904cat >>confdefs.h <<_ACEOF
27905#define OSNAME "$OSNAME"
27906_ACEOF
27907
27908
27909cat >>confdefs.h <<_ACEOF
27910#define OSVENDOR "$OSVENDOR"
27911_ACEOF
27912
27913
27914cat >>confdefs.h <<_ACEOF
27915#define BUILDERSTRING "$BUILDERSTRING"
27916_ACEOF
27917
27918
27919
27920
27921cat >>confdefs.h <<_ACEOF
27922#define VENDOR_NAME "$VENDOR_NAME"
27923_ACEOF
27924
27925
27926cat >>confdefs.h <<_ACEOF
27927#define VENDOR_NAME_SHORT "$VENDOR_NAME_SHORT"
27928_ACEOF
27929
27930
27931cat >>confdefs.h <<_ACEOF
27932#define VENDOR_RELEASE $VENDOR_RELEASE
27933_ACEOF
27934
27935
27936cat >>confdefs.h <<_ACEOF
27937#define VENDOR_MAN_VERSION "$VENDOR_MAN_VERSION"
27938_ACEOF
27939
27940
27941if test "x$DEBUGGING" = xyes; then
27942
27943$as_echo "#define DEBUG 1" >>confdefs.h
27944
27945fi
27946 if test "x$DEBUGGING" = xyes; then
27947  DEBUG_TRUE=
27948  DEBUG_FALSE='#'
27949else
27950  DEBUG_TRUE='#'
27951  DEBUG_FALSE=
27952fi
27953
27954
27955
27956$as_echo "#define XTEST 1" >>confdefs.h
27957
27958
27959$as_echo "#define XSYNC 1" >>confdefs.h
27960
27961
27962$as_echo "#define XCMISC 1" >>confdefs.h
27963
27964
27965$as_echo "#define BIGREQS 1" >>confdefs.h
27966
27967
27968if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes" ; then
27969  DIX_LIB='$(top_builddir)/dix/dix.O'
27970  OS_LIB='$(top_builddir)/os/os.O $(SHA1_LIBS) $(DLOPEN_LIBS) $(LIBUNWIND_LIBS)'
27971else
27972  DIX_LIB='$(top_builddir)/dix/libdix.la'
27973  OS_LIB='$(top_builddir)/os/libos.la'
27974fi
27975
27976
27977
27978MAIN_LIB='$(top_builddir)/dix/libmain.la'
27979
27980
27981MI_LIB='$(top_builddir)/mi/libmi.la'
27982MI_EXT_LIB='$(top_builddir)/mi/libmiext.la'
27983MI_INC='-I$(top_srcdir)/mi'
27984FB_LIB='$(top_builddir)/fb/libfb.la'
27985FB_INC='-I$(top_srcdir)/fb'
27986MIEXT_SHADOW_INC='-I$(top_srcdir)/miext/shadow'
27987MIEXT_SHADOW_LIB='$(top_builddir)/miext/shadow/libshadow.la'
27988MIEXT_SYNC_INC='-I$(top_srcdir)/miext/sync'
27989MIEXT_SYNC_LIB='$(top_builddir)/miext/sync/libsync.la'
27990CORE_INCS='-I$(top_srcdir)/include -I$(top_builddir)/include'
27991
27992# SHA1 hashing
27993
27994# Check whether --with-sha1 was given.
27995if test "${with_sha1+set}" = set; then :
27996  withval=$with_sha1;
27997fi
27998
27999ac_fn_c_check_func "$LINENO" "SHA1Init" "ac_cv_func_SHA1Init"
28000if test "x$ac_cv_func_SHA1Init" = xyes; then :
28001  HAVE_SHA1_IN_LIBC=yes
28002fi
28003
28004if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_LIBC" = xyes; then
28005	with_sha1=libc
28006fi
28007if test "x$with_sha1" = xlibc && test "x$HAVE_SHA1_IN_LIBC" != xyes; then
28008	as_fn_error $? "libc requested but not found" "$LINENO" 5
28009fi
28010if test "x$with_sha1" = xlibc; then
28011
28012$as_echo "#define HAVE_SHA1_IN_LIBC 1" >>confdefs.h
28013
28014	SHA1_LIBS=""
28015fi
28016ac_fn_c_check_func "$LINENO" "CC_SHA1_Init" "ac_cv_func_CC_SHA1_Init"
28017if test "x$ac_cv_func_CC_SHA1_Init" = xyes; then :
28018  HAVE_SHA1_IN_COMMONCRYPTO=yes
28019fi
28020
28021if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_COMMONCRYPTO" = xyes; then
28022	with_sha1=CommonCrypto
28023fi
28024if test "x$with_sha1" = xCommonCrypto && test "x$HAVE_SHA1_IN_COMMONCRYPTO" != xyes; then
28025	as_fn_error $? "CommonCrypto requested but not found" "$LINENO" 5
28026fi
28027if test "x$with_sha1" = xCommonCrypto; then
28028
28029$as_echo "#define HAVE_SHA1_IN_COMMONCRYPTO 1" >>confdefs.h
28030
28031	SHA1_LIBS=""
28032fi
28033ac_fn_c_check_header_compile "$LINENO" "wincrypt.h" "ac_cv_header_wincrypt_h" "#include <windows.h>
28034"
28035if test "x$ac_cv_header_wincrypt_h" = xyes; then :
28036  HAVE_SHA1_IN_CRYPTOAPI=yes
28037fi
28038
28039
28040if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_CRYPTOAPI" = xyes; then
28041	with_sha1=CryptoAPI
28042fi
28043if test "x$with_sha1" = xCryptoAPI && test "x$HAVE_SHA1_IN_CRYPTOAPI" != xyes; then
28044	as_fn_error $? "CryptoAPI requested but not found" "$LINENO" 5
28045fi
28046if test "x$with_sha1" = xCryptoAPI; then
28047
28048$as_echo "#define HAVE_SHA1_IN_CRYPTOAPI 1" >>confdefs.h
28049
28050	SHA1_LIBS=""
28051fi
28052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1Init in -lmd" >&5
28053$as_echo_n "checking for SHA1Init in -lmd... " >&6; }
28054if ${ac_cv_lib_md_SHA1Init+:} false; then :
28055  $as_echo_n "(cached) " >&6
28056else
28057  ac_check_lib_save_LIBS=$LIBS
28058LIBS="-lmd  $LIBS"
28059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28060/* end confdefs.h.  */
28061
28062/* Override any GCC internal prototype to avoid an error.
28063   Use char because int might match the return type of a GCC
28064   builtin and then its argument prototype would still apply.  */
28065#ifdef __cplusplus
28066extern "C"
28067#endif
28068char SHA1Init ();
28069int
28070main ()
28071{
28072return SHA1Init ();
28073  ;
28074  return 0;
28075}
28076_ACEOF
28077if ac_fn_c_try_link "$LINENO"; then :
28078  ac_cv_lib_md_SHA1Init=yes
28079else
28080  ac_cv_lib_md_SHA1Init=no
28081fi
28082rm -f core conftest.err conftest.$ac_objext \
28083    conftest$ac_exeext conftest.$ac_ext
28084LIBS=$ac_check_lib_save_LIBS
28085fi
28086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_SHA1Init" >&5
28087$as_echo "$ac_cv_lib_md_SHA1Init" >&6; }
28088if test "x$ac_cv_lib_md_SHA1Init" = xyes; then :
28089  HAVE_LIBMD=yes
28090fi
28091
28092if test "x$with_sha1" = x && test "x$HAVE_LIBMD" = xyes; then
28093	with_sha1=libmd
28094fi
28095if test "x$with_sha1" = xlibmd && test "x$HAVE_LIBMD" != xyes; then
28096	as_fn_error $? "libmd requested but not found" "$LINENO" 5
28097fi
28098if test "x$with_sha1" = xlibmd; then
28099
28100$as_echo "#define HAVE_SHA1_IN_LIBMD 1" >>confdefs.h
28101
28102	SHA1_LIBS=-lmd
28103fi
28104
28105pkg_failed=no
28106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSHA1" >&5
28107$as_echo_n "checking for LIBSHA1... " >&6; }
28108
28109if test -n "$LIBSHA1_CFLAGS"; then
28110    pkg_cv_LIBSHA1_CFLAGS="$LIBSHA1_CFLAGS"
28111 elif test -n "$PKG_CONFIG"; then
28112    if test -n "$PKG_CONFIG" && \
28113    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5
28114  ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5
28115  ac_status=$?
28116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28117  test $ac_status = 0; }; then
28118  pkg_cv_LIBSHA1_CFLAGS=`$PKG_CONFIG --cflags "libsha1" 2>/dev/null`
28119		      test "x$?" != "x0" && pkg_failed=yes
28120else
28121  pkg_failed=yes
28122fi
28123 else
28124    pkg_failed=untried
28125fi
28126if test -n "$LIBSHA1_LIBS"; then
28127    pkg_cv_LIBSHA1_LIBS="$LIBSHA1_LIBS"
28128 elif test -n "$PKG_CONFIG"; then
28129    if test -n "$PKG_CONFIG" && \
28130    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5
28131  ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5
28132  ac_status=$?
28133  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28134  test $ac_status = 0; }; then
28135  pkg_cv_LIBSHA1_LIBS=`$PKG_CONFIG --libs "libsha1" 2>/dev/null`
28136		      test "x$?" != "x0" && pkg_failed=yes
28137else
28138  pkg_failed=yes
28139fi
28140 else
28141    pkg_failed=untried
28142fi
28143
28144
28145
28146if test $pkg_failed = yes; then
28147   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28148$as_echo "no" >&6; }
28149
28150if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28151        _pkg_short_errors_supported=yes
28152else
28153        _pkg_short_errors_supported=no
28154fi
28155        if test $_pkg_short_errors_supported = yes; then
28156	        LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsha1" 2>&1`
28157        else
28158	        LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsha1" 2>&1`
28159        fi
28160	# Put the nasty error message in config.log where it belongs
28161	echo "$LIBSHA1_PKG_ERRORS" >&5
28162
28163	HAVE_LIBSHA1=no
28164elif test $pkg_failed = untried; then
28165     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28166$as_echo "no" >&6; }
28167	HAVE_LIBSHA1=no
28168else
28169	LIBSHA1_CFLAGS=$pkg_cv_LIBSHA1_CFLAGS
28170	LIBSHA1_LIBS=$pkg_cv_LIBSHA1_LIBS
28171        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28172$as_echo "yes" >&6; }
28173	HAVE_LIBSHA1=yes
28174fi
28175if test "x$with_sha1" = x && test "x$HAVE_LIBSHA1" = xyes; then
28176   with_sha1=libsha1
28177fi
28178if test "x$with_sha1" = xlibsha1 && test "x$HAVE_LIBSHA1" != xyes; then
28179	as_fn_error $? "libsha1 requested but not found" "$LINENO" 5
28180fi
28181if test "x$with_sha1" = xlibsha1; then
28182
28183$as_echo "#define HAVE_SHA1_IN_LIBSHA1 1" >>confdefs.h
28184
28185	SHA1_LIBS=-lsha1
28186fi
28187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_sha1_init in -lnettle" >&5
28188$as_echo_n "checking for nettle_sha1_init in -lnettle... " >&6; }
28189if ${ac_cv_lib_nettle_nettle_sha1_init+:} false; then :
28190  $as_echo_n "(cached) " >&6
28191else
28192  ac_check_lib_save_LIBS=$LIBS
28193LIBS="-lnettle  $LIBS"
28194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28195/* end confdefs.h.  */
28196
28197/* Override any GCC internal prototype to avoid an error.
28198   Use char because int might match the return type of a GCC
28199   builtin and then its argument prototype would still apply.  */
28200#ifdef __cplusplus
28201extern "C"
28202#endif
28203char nettle_sha1_init ();
28204int
28205main ()
28206{
28207return nettle_sha1_init ();
28208  ;
28209  return 0;
28210}
28211_ACEOF
28212if ac_fn_c_try_link "$LINENO"; then :
28213  ac_cv_lib_nettle_nettle_sha1_init=yes
28214else
28215  ac_cv_lib_nettle_nettle_sha1_init=no
28216fi
28217rm -f core conftest.err conftest.$ac_objext \
28218    conftest$ac_exeext conftest.$ac_ext
28219LIBS=$ac_check_lib_save_LIBS
28220fi
28221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_sha1_init" >&5
28222$as_echo "$ac_cv_lib_nettle_nettle_sha1_init" >&6; }
28223if test "x$ac_cv_lib_nettle_nettle_sha1_init" = xyes; then :
28224  HAVE_LIBNETTLE=yes
28225fi
28226
28227if test "x$with_sha1" = x && test "x$HAVE_LIBNETTLE" = xyes; then
28228	with_sha1=libnettle
28229fi
28230if test "x$with_sha1" = xlibnettle && test "x$HAVE_LIBNETTLE" != xyes; then
28231	as_fn_error $? "libnettle requested but not found" "$LINENO" 5
28232fi
28233if test "x$with_sha1" = xlibnettle; then
28234
28235$as_echo "#define HAVE_SHA1_IN_LIBNETTLE 1" >>confdefs.h
28236
28237	SHA1_LIBS=-lnettle
28238fi
28239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_md_open in -lgcrypt" >&5
28240$as_echo_n "checking for gcry_md_open in -lgcrypt... " >&6; }
28241if ${ac_cv_lib_gcrypt_gcry_md_open+:} false; then :
28242  $as_echo_n "(cached) " >&6
28243else
28244  ac_check_lib_save_LIBS=$LIBS
28245LIBS="-lgcrypt  $LIBS"
28246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28247/* end confdefs.h.  */
28248
28249/* Override any GCC internal prototype to avoid an error.
28250   Use char because int might match the return type of a GCC
28251   builtin and then its argument prototype would still apply.  */
28252#ifdef __cplusplus
28253extern "C"
28254#endif
28255char gcry_md_open ();
28256int
28257main ()
28258{
28259return gcry_md_open ();
28260  ;
28261  return 0;
28262}
28263_ACEOF
28264if ac_fn_c_try_link "$LINENO"; then :
28265  ac_cv_lib_gcrypt_gcry_md_open=yes
28266else
28267  ac_cv_lib_gcrypt_gcry_md_open=no
28268fi
28269rm -f core conftest.err conftest.$ac_objext \
28270    conftest$ac_exeext conftest.$ac_ext
28271LIBS=$ac_check_lib_save_LIBS
28272fi
28273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_md_open" >&5
28274$as_echo "$ac_cv_lib_gcrypt_gcry_md_open" >&6; }
28275if test "x$ac_cv_lib_gcrypt_gcry_md_open" = xyes; then :
28276  HAVE_LIBGCRYPT=yes
28277fi
28278
28279if test "x$with_sha1" = x && test "x$HAVE_LIBGCRYPT" = xyes; then
28280	with_sha1=libgcrypt
28281fi
28282if test "x$with_sha1" = xlibgcrypt && test "x$HAVE_LIBGCRYPT" != xyes; then
28283	as_fn_error $? "libgcrypt requested but not found" "$LINENO" 5
28284fi
28285if test "x$with_sha1" = xlibgcrypt; then
28286
28287$as_echo "#define HAVE_SHA1_IN_LIBGCRYPT 1" >>confdefs.h
28288
28289	SHA1_LIBS=-lgcrypt
28290fi
28291# We don't need all of the OpenSSL libraries, just libcrypto
28292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5
28293$as_echo_n "checking for SHA1_Init in -lcrypto... " >&6; }
28294if ${ac_cv_lib_crypto_SHA1_Init+:} false; then :
28295  $as_echo_n "(cached) " >&6
28296else
28297  ac_check_lib_save_LIBS=$LIBS
28298LIBS="-lcrypto  $LIBS"
28299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28300/* end confdefs.h.  */
28301
28302/* Override any GCC internal prototype to avoid an error.
28303   Use char because int might match the return type of a GCC
28304   builtin and then its argument prototype would still apply.  */
28305#ifdef __cplusplus
28306extern "C"
28307#endif
28308char SHA1_Init ();
28309int
28310main ()
28311{
28312return SHA1_Init ();
28313  ;
28314  return 0;
28315}
28316_ACEOF
28317if ac_fn_c_try_link "$LINENO"; then :
28318  ac_cv_lib_crypto_SHA1_Init=yes
28319else
28320  ac_cv_lib_crypto_SHA1_Init=no
28321fi
28322rm -f core conftest.err conftest.$ac_objext \
28323    conftest$ac_exeext conftest.$ac_ext
28324LIBS=$ac_check_lib_save_LIBS
28325fi
28326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5
28327$as_echo "$ac_cv_lib_crypto_SHA1_Init" >&6; }
28328if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes; then :
28329  HAVE_LIBCRYPTO=yes
28330fi
28331
28332
28333pkg_failed=no
28334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
28335$as_echo_n "checking for OPENSSL... " >&6; }
28336
28337if test -n "$OPENSSL_CFLAGS"; then
28338    pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
28339 elif test -n "$PKG_CONFIG"; then
28340    if test -n "$PKG_CONFIG" && \
28341    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
28342  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
28343  ac_status=$?
28344  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28345  test $ac_status = 0; }; then
28346  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
28347		      test "x$?" != "x0" && pkg_failed=yes
28348else
28349  pkg_failed=yes
28350fi
28351 else
28352    pkg_failed=untried
28353fi
28354if test -n "$OPENSSL_LIBS"; then
28355    pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
28356 elif test -n "$PKG_CONFIG"; then
28357    if test -n "$PKG_CONFIG" && \
28358    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
28359  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
28360  ac_status=$?
28361  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28362  test $ac_status = 0; }; then
28363  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
28364		      test "x$?" != "x0" && pkg_failed=yes
28365else
28366  pkg_failed=yes
28367fi
28368 else
28369    pkg_failed=untried
28370fi
28371
28372
28373
28374if test $pkg_failed = yes; then
28375   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28376$as_echo "no" >&6; }
28377
28378if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28379        _pkg_short_errors_supported=yes
28380else
28381        _pkg_short_errors_supported=no
28382fi
28383        if test $_pkg_short_errors_supported = yes; then
28384	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
28385        else
28386	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
28387        fi
28388	# Put the nasty error message in config.log where it belongs
28389	echo "$OPENSSL_PKG_ERRORS" >&5
28390
28391	HAVE_OPENSSL_PKC=no
28392elif test $pkg_failed = untried; then
28393     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28394$as_echo "no" >&6; }
28395	HAVE_OPENSSL_PKC=no
28396else
28397	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
28398	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
28399        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28400$as_echo "yes" >&6; }
28401	HAVE_OPENSSL_PKC=yes
28402fi
28403if test "x$HAVE_LIBCRYPTO" = xyes || test "x$HAVE_OPENSSL_PKC" = xyes; then
28404	if test "x$with_sha1" = x; then
28405		with_sha1=libcrypto
28406	fi
28407else
28408	if test "x$with_sha1" = xlibcrypto; then
28409		as_fn_error $? "OpenSSL libcrypto requested but not found" "$LINENO" 5
28410	fi
28411fi
28412if test "x$with_sha1" = xlibcrypto; then
28413	if test "x$HAVE_LIBCRYPTO" = xyes; then
28414		SHA1_LIBS=-lcrypto
28415	else
28416		SHA1_LIBS="$OPENSSL_LIBS"
28417		SHA1_CFLAGS="$OPENSSL_CFLAGS"
28418	fi
28419fi
28420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1 implementation" >&5
28421$as_echo_n "checking for SHA1 implementation... " >&6; }
28422if test "x$with_sha1" = x; then
28423	as_fn_error $? "No suitable SHA1 implementation found" "$LINENO" 5
28424fi
28425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sha1" >&5
28426$as_echo "$with_sha1" >&6; }
28427
28428
28429
28430
28431pkg_failed=no
28432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSERVERCFLAGS" >&5
28433$as_echo_n "checking for XSERVERCFLAGS... " >&6; }
28434
28435if test -n "$XSERVERCFLAGS_CFLAGS"; then
28436    pkg_cv_XSERVERCFLAGS_CFLAGS="$XSERVERCFLAGS_CFLAGS"
28437 elif test -n "$PKG_CONFIG"; then
28438    if test -n "$PKG_CONFIG" && \
28439    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5
28440  ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5
28441  ac_status=$?
28442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28443  test $ac_status = 0; }; then
28444  pkg_cv_XSERVERCFLAGS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null`
28445		      test "x$?" != "x0" && pkg_failed=yes
28446else
28447  pkg_failed=yes
28448fi
28449 else
28450    pkg_failed=untried
28451fi
28452if test -n "$XSERVERCFLAGS_LIBS"; then
28453    pkg_cv_XSERVERCFLAGS_LIBS="$XSERVERCFLAGS_LIBS"
28454 elif test -n "$PKG_CONFIG"; then
28455    if test -n "$PKG_CONFIG" && \
28456    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5
28457  ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5
28458  ac_status=$?
28459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28460  test $ac_status = 0; }; then
28461  pkg_cv_XSERVERCFLAGS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null`
28462		      test "x$?" != "x0" && pkg_failed=yes
28463else
28464  pkg_failed=yes
28465fi
28466 else
28467    pkg_failed=untried
28468fi
28469
28470
28471
28472if test $pkg_failed = yes; then
28473   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28474$as_echo "no" >&6; }
28475
28476if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28477        _pkg_short_errors_supported=yes
28478else
28479        _pkg_short_errors_supported=no
28480fi
28481        if test $_pkg_short_errors_supported = yes; then
28482	        XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1`
28483        else
28484	        XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1`
28485        fi
28486	# Put the nasty error message in config.log where it belongs
28487	echo "$XSERVERCFLAGS_PKG_ERRORS" >&5
28488
28489	as_fn_error $? "Package requirements ($REQUIRED_MODULES $REQUIRED_LIBS) were not met:
28490
28491$XSERVERCFLAGS_PKG_ERRORS
28492
28493Consider adjusting the PKG_CONFIG_PATH environment variable if you
28494installed software in a non-standard prefix.
28495
28496Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
28497and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
28498See the pkg-config man page for more details." "$LINENO" 5
28499elif test $pkg_failed = untried; then
28500     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28501$as_echo "no" >&6; }
28502	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28504as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
28505is in your PATH or set the PKG_CONFIG environment variable to the full
28506path to pkg-config.
28507
28508Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
28509and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
28510See the pkg-config man page for more details.
28511
28512To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28513See \`config.log' for more details" "$LINENO" 5; }
28514else
28515	XSERVERCFLAGS_CFLAGS=$pkg_cv_XSERVERCFLAGS_CFLAGS
28516	XSERVERCFLAGS_LIBS=$pkg_cv_XSERVERCFLAGS_LIBS
28517        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28518$as_echo "yes" >&6; }
28519
28520fi
28521
28522pkg_failed=no
28523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSERVERLIBS" >&5
28524$as_echo_n "checking for XSERVERLIBS... " >&6; }
28525
28526if test -n "$XSERVERLIBS_CFLAGS"; then
28527    pkg_cv_XSERVERLIBS_CFLAGS="$XSERVERLIBS_CFLAGS"
28528 elif test -n "$PKG_CONFIG"; then
28529    if test -n "$PKG_CONFIG" && \
28530    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5
28531  ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5
28532  ac_status=$?
28533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28534  test $ac_status = 0; }; then
28535  pkg_cv_XSERVERLIBS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_LIBS" 2>/dev/null`
28536		      test "x$?" != "x0" && pkg_failed=yes
28537else
28538  pkg_failed=yes
28539fi
28540 else
28541    pkg_failed=untried
28542fi
28543if test -n "$XSERVERLIBS_LIBS"; then
28544    pkg_cv_XSERVERLIBS_LIBS="$XSERVERLIBS_LIBS"
28545 elif test -n "$PKG_CONFIG"; then
28546    if test -n "$PKG_CONFIG" && \
28547    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5
28548  ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5
28549  ac_status=$?
28550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28551  test $ac_status = 0; }; then
28552  pkg_cv_XSERVERLIBS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_LIBS" 2>/dev/null`
28553		      test "x$?" != "x0" && pkg_failed=yes
28554else
28555  pkg_failed=yes
28556fi
28557 else
28558    pkg_failed=untried
28559fi
28560
28561
28562
28563if test $pkg_failed = yes; then
28564   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28565$as_echo "no" >&6; }
28566
28567if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28568        _pkg_short_errors_supported=yes
28569else
28570        _pkg_short_errors_supported=no
28571fi
28572        if test $_pkg_short_errors_supported = yes; then
28573	        XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1`
28574        else
28575	        XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1`
28576        fi
28577	# Put the nasty error message in config.log where it belongs
28578	echo "$XSERVERLIBS_PKG_ERRORS" >&5
28579
28580	as_fn_error $? "Package requirements ($REQUIRED_LIBS) were not met:
28581
28582$XSERVERLIBS_PKG_ERRORS
28583
28584Consider adjusting the PKG_CONFIG_PATH environment variable if you
28585installed software in a non-standard prefix.
28586
28587Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
28588and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
28589See the pkg-config man page for more details." "$LINENO" 5
28590elif test $pkg_failed = untried; then
28591     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28592$as_echo "no" >&6; }
28593	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28594$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28595as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
28596is in your PATH or set the PKG_CONFIG environment variable to the full
28597path to pkg-config.
28598
28599Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
28600and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
28601See the pkg-config man page for more details.
28602
28603To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28604See \`config.log' for more details" "$LINENO" 5; }
28605else
28606	XSERVERLIBS_CFLAGS=$pkg_cv_XSERVERLIBS_CFLAGS
28607	XSERVERLIBS_LIBS=$pkg_cv_XSERVERLIBS_LIBS
28608        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28609$as_echo "yes" >&6; }
28610
28611fi
28612
28613
28614pkg_failed=no
28615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUNWIND" >&5
28616$as_echo_n "checking for LIBUNWIND... " >&6; }
28617
28618if test -n "$LIBUNWIND_CFLAGS"; then
28619    pkg_cv_LIBUNWIND_CFLAGS="$LIBUNWIND_CFLAGS"
28620 elif test -n "$PKG_CONFIG"; then
28621    if test -n "$PKG_CONFIG" && \
28622    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5
28623  ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5
28624  ac_status=$?
28625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28626  test $ac_status = 0; }; then
28627  pkg_cv_LIBUNWIND_CFLAGS=`$PKG_CONFIG --cflags "libunwind" 2>/dev/null`
28628		      test "x$?" != "x0" && pkg_failed=yes
28629else
28630  pkg_failed=yes
28631fi
28632 else
28633    pkg_failed=untried
28634fi
28635if test -n "$LIBUNWIND_LIBS"; then
28636    pkg_cv_LIBUNWIND_LIBS="$LIBUNWIND_LIBS"
28637 elif test -n "$PKG_CONFIG"; then
28638    if test -n "$PKG_CONFIG" && \
28639    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5
28640  ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5
28641  ac_status=$?
28642  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28643  test $ac_status = 0; }; then
28644  pkg_cv_LIBUNWIND_LIBS=`$PKG_CONFIG --libs "libunwind" 2>/dev/null`
28645		      test "x$?" != "x0" && pkg_failed=yes
28646else
28647  pkg_failed=yes
28648fi
28649 else
28650    pkg_failed=untried
28651fi
28652
28653
28654
28655if test $pkg_failed = yes; then
28656   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28657$as_echo "no" >&6; }
28658
28659if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28660        _pkg_short_errors_supported=yes
28661else
28662        _pkg_short_errors_supported=no
28663fi
28664        if test $_pkg_short_errors_supported = yes; then
28665	        LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libunwind" 2>&1`
28666        else
28667	        LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libunwind" 2>&1`
28668        fi
28669	# Put the nasty error message in config.log where it belongs
28670	echo "$LIBUNWIND_PKG_ERRORS" >&5
28671
28672	HAVE_LIBUNWIND=no
28673elif test $pkg_failed = untried; then
28674     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28675$as_echo "no" >&6; }
28676	HAVE_LIBUNWIND=no
28677else
28678	LIBUNWIND_CFLAGS=$pkg_cv_LIBUNWIND_CFLAGS
28679	LIBUNWIND_LIBS=$pkg_cv_LIBUNWIND_LIBS
28680        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28681$as_echo "yes" >&6; }
28682	HAVE_LIBUNWIND=yes
28683fi
28684if test "x$LIBUNWIND" = "xauto"; then
28685    LIBUNWIND="$HAVE_LIBUNWIND"
28686fi
28687
28688if test "x$LIBUNWIND" = "xyes"; then
28689    if test "x$HAVE_LIBUNWIND" != "xyes"; then
28690        as_fn_error $? "libunwind requested but not installed." "$LINENO" 5
28691    fi
28692
28693$as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
28694
28695fi
28696
28697 if test "x$LIBUNWIND" = xyes; then
28698  HAVE_LIBUNWIND_TRUE=
28699  HAVE_LIBUNWIND_FALSE='#'
28700else
28701  HAVE_LIBUNWIND_TRUE='#'
28702  HAVE_LIBUNWIND_FALSE=
28703fi
28704
28705
28706# Autotools has some unfortunate issues with library handling.  In order to
28707# get a server to rebuild when a dependency in the tree is changed, it must
28708# be listed in SERVERNAME_DEPENDENCIES.  However, no system libraries may be
28709# listed there, or some versions of autotools will break (especially if a -L
28710# is required to find the library).  So, we keep two sets of libraries
28711# detected: NAMESPACE_LIBS for in-tree libraries to be linked against, which
28712# will go into the _DEPENDENCIES and _LDADD of the server, and
28713# NAMESPACE_SYS_LIBS which will go into only the _LDADD.  The
28714# NAMESPACEMODULES_LIBS detected from pkgconfig should always go in
28715# NAMESPACE_SYS_LIBS.
28716#
28717# XSERVER_LIBS is the set of in-tree libraries which all servers require.
28718# XSERVER_SYS_LIBS is the set of out-of-tree libraries which all servers
28719# require.
28720#
28721XSERVER_CFLAGS="${XSERVER_CFLAGS} ${XSERVERCFLAGS_CFLAGS}"
28722XSERVER_LIBS="$DIX_LIB $MI_LIB $OS_LIB"
28723XSERVER_SYS_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} ${LIBS}"
28724
28725
28726
28727UTILS_SYS_LIBS="${SYS_LIBS}"
28728
28729
28730# The Xorg binary needs to export symbols so that they can be used from modules
28731# Some platforms require extra flags to do this.   libtool should set the
28732# necessary flags for each platform when -export-dynamic is passed to it.
28733LD_EXPORT_SYMBOLS_FLAG="-export-dynamic"
28734LD_NO_UNDEFINED_FLAG=
28735XORG_DRIVER_LIBS=
28736case "$host_os" in
28737    cygwin*)
28738	LD_EXPORT_SYMBOLS_FLAG="-Wl,--export-all,--out-implib,lib\$@.a"
28739	LD_NO_UNDEFINED_FLAG="-no-undefined -Wl,\$(top_builddir)/hw/xfree86/libXorg.exe.a"
28740	XORG_DRIVER_LIBS="-lXorg.exe -L\${moduledir} -lshadow -lfb -no-undefined"
28741	CYGWIN=yes
28742	;;
28743    solaris*)
28744	# We use AC_LINK_IFELSE to generate a temporary program conftest$EXEEXT
28745	# that we can link against for testing if the system linker is new
28746	# enough to support -z parent=<program> for verifying loadable modules
28747	# are only calling functions defined in either the loading program or
28748	# the libraries they're linked with.
28749	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28750/* end confdefs.h.  */
28751int main(int argc, char **argv) { return 0; }
28752_ACEOF
28753if ac_fn_c_try_link "$LINENO"; then :
28754  mv conftest$EXEEXT conftest.parent
28755	     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,parent=conftest.parent -G" >&5
28756$as_echo_n "checking whether the linker accepts -Wl,-z,parent=conftest.parent -G... " >&6; }
28757if ${xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G+:} false; then :
28758  $as_echo_n "(cached) " >&6
28759else
28760
28761      ax_save_FLAGS=$LDFLAGS
28762      LDFLAGS="-Wl,-z,parent=conftest.parent -G"
28763      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28764/* end confdefs.h.  */
28765extern int main(int argc, char **argv);
28766			int call_main(void) { return main(0, (void *)0); }
28767_ACEOF
28768if ac_fn_c_try_link "$LINENO"; then :
28769  xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=yes
28770else
28771  xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=no
28772fi
28773rm -f core conftest.err conftest.$ac_objext \
28774    conftest$ac_exeext conftest.$ac_ext
28775      LDFLAGS=$ax_save_FLAGS
28776fi
28777
28778eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G
28779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5
28780$as_echo "$xorg_check_linker_flags" >&6; }
28781if test "x$xorg_check_linker_flags" = xyes; then
28782	LD_NO_UNDEFINED_FLAG="-Wl,-z,defs -Wl,-z,parent=\$(top_builddir)/hw/xfree86/Xorg"
28783# Not set yet, since this gets exported in xorg-server.pc to all the drivers,
28784# and they're not all fixed to build correctly with it yet.
28785#		 XORG_DRIVER_LIBS="-Wl,-z,defs -Wl,-z,parent=${bindir}/Xorg"
28786
28787else
28788	:
28789fi
28790
28791	     rm -f conftest.parent
28792
28793fi
28794rm -f core conftest.err conftest.$ac_objext \
28795    conftest$ac_exeext conftest.$ac_ext
28796	;;
28797esac
28798
28799
28800
28801 if test x"$CYGWIN" = xyes; then
28802  CYGWIN_TRUE=
28803  CYGWIN_FALSE='#'
28804else
28805  CYGWIN_TRUE='#'
28806  CYGWIN_FALSE=
28807fi
28808
28809 if test x"$LD_NO_UNDEFINED_FLAG" != x; then
28810  NO_UNDEFINED_TRUE=
28811  NO_UNDEFINED_FALSE='#'
28812else
28813  NO_UNDEFINED_TRUE='#'
28814  NO_UNDEFINED_FALSE=
28815fi
28816
28817
28818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SVR4 needs to be defined" >&5
28819$as_echo_n "checking if SVR4 needs to be defined... " >&6; }
28820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28821/* end confdefs.h.  */
28822
28823#if defined(SVR4) || defined(__svr4__) || defined(__SVR4)
28824 I_AM_SVR4
28825#endif
28826
28827_ACEOF
28828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28829  $EGREP "I_AM_SVR4" >/dev/null 2>&1; then :
28830
28831
28832$as_echo "#define SVR4 1" >>confdefs.h
28833
28834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28835$as_echo "yes" >&6; }
28836else
28837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28838$as_echo "no" >&6; }
28839fi
28840rm -f conftest*
28841
28842
28843XSERVER_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 $DBE_INC $PRESENT_INC"
28844
28845
28846
28847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xvfb DDX" >&5
28848$as_echo_n "checking whether to build Xvfb DDX... " >&6; }
28849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVFB" >&5
28850$as_echo "$XVFB" >&6; }
28851 if test "x$XVFB" = xyes; then
28852  XVFB_TRUE=
28853  XVFB_FALSE='#'
28854else
28855  XVFB_TRUE='#'
28856  XVFB_FALSE=
28857fi
28858
28859
28860if test "x$XVFB" = xyes; then
28861	XVFB_LIBS="$FB_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB"
28862	XVFB_SYS_LIBS="$XVFBMODULES_LIBS $GLX_SYS_LIBS"
28863
28864
28865fi
28866
28867
28868
28869
28870pkg_failed=no
28871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNESTMODULES" >&5
28872$as_echo_n "checking for XNESTMODULES... " >&6; }
28873
28874if test -n "$XNESTMODULES_CFLAGS"; then
28875    pkg_cv_XNESTMODULES_CFLAGS="$XNESTMODULES_CFLAGS"
28876 elif test -n "$PKG_CONFIG"; then
28877    if test -n "$PKG_CONFIG" && \
28878    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5
28879  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5
28880  ac_status=$?
28881  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28882  test $ac_status = 0; }; then
28883  pkg_cv_XNESTMODULES_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null`
28884		      test "x$?" != "x0" && pkg_failed=yes
28885else
28886  pkg_failed=yes
28887fi
28888 else
28889    pkg_failed=untried
28890fi
28891if test -n "$XNESTMODULES_LIBS"; then
28892    pkg_cv_XNESTMODULES_LIBS="$XNESTMODULES_LIBS"
28893 elif test -n "$PKG_CONFIG"; then
28894    if test -n "$PKG_CONFIG" && \
28895    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5
28896  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5
28897  ac_status=$?
28898  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28899  test $ac_status = 0; }; then
28900  pkg_cv_XNESTMODULES_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null`
28901		      test "x$?" != "x0" && pkg_failed=yes
28902else
28903  pkg_failed=yes
28904fi
28905 else
28906    pkg_failed=untried
28907fi
28908
28909
28910
28911if test $pkg_failed = yes; then
28912   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28913$as_echo "no" >&6; }
28914
28915if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28916        _pkg_short_errors_supported=yes
28917else
28918        _pkg_short_errors_supported=no
28919fi
28920        if test $_pkg_short_errors_supported = yes; then
28921	        XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1`
28922        else
28923	        XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1`
28924        fi
28925	# Put the nasty error message in config.log where it belongs
28926	echo "$XNESTMODULES_PKG_ERRORS" >&5
28927
28928	have_xnest=no
28929elif test $pkg_failed = untried; then
28930     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28931$as_echo "no" >&6; }
28932	have_xnest=no
28933else
28934	XNESTMODULES_CFLAGS=$pkg_cv_XNESTMODULES_CFLAGS
28935	XNESTMODULES_LIBS=$pkg_cv_XNESTMODULES_LIBS
28936        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28937$as_echo "yes" >&6; }
28938	have_xnest=yes
28939fi
28940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xnest DDX" >&5
28941$as_echo_n "checking whether to build Xnest DDX... " >&6; }
28942if test "x$XNEST" = xauto; then
28943	XNEST="$have_xnest"
28944fi
28945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XNEST" >&5
28946$as_echo "$XNEST" >&6; }
28947 if test "x$XNEST" = xyes; then
28948  XNEST_TRUE=
28949  XNEST_FALSE='#'
28950else
28951  XNEST_TRUE='#'
28952  XNEST_FALSE=
28953fi
28954
28955
28956if test "x$XNEST" = xyes; then
28957	if test "x$have_xnest" = xno; then
28958		as_fn_error $? "Xnest build explicitly requested, but required modules not found." "$LINENO" 5
28959	fi
28960	XNEST_LIBS="$FB_LIB $FIXES_LIB $MI_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $DAMAGE_LIB  $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $RENDER_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $MAIN_LIB $DIX_LIB $OS_LIB"
28961	XNEST_SYS_LIBS="$XNESTMODULES_LIBS $GLX_SYS_LIBS"
28962
28963
28964fi
28965
28966
28967
28968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg DDX" >&5
28969$as_echo_n "checking whether to build Xorg DDX... " >&6; }
28970if test "x$XORG" = xauto; then
28971	XORG="yes"
28972	case $host_os in
28973		cygwin*) XORG="no" ;;
28974		mingw*)  XORG="no" ;;
28975		darwin*) XORG="no" ;;
28976	esac
28977fi
28978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG" >&5
28979$as_echo "$XORG" >&6; }
28980
28981if test "x$XORG" = xyes; then
28982	XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common'
28983	XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os'
28984	XORG_INCS="$XORG_DDXINCS $XORG_OSINCS"
28985	XORG_CFLAGS="$XORGSERVER_CFLAGS -DHAVE_XORG_CONFIG_H"
28986	XORG_LIBS="$COMPOSITE_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $XI_LIB $XKB_LIB"
28987
28988			symbol_visibility=
28989	have_visibility=disabled
28990	if test x$SYMBOL_VISIBILITY != xno; then
28991	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol visibility support" >&5
28992$as_echo_n "checking for symbol visibility support... " >&6; }
28993	    if test x$GCC = xyes; then
28994		VISIBILITY_CFLAGS="-fvisibility=hidden"
28995	    else
28996		if test x$SUNCC = xyes; then
28997		    VISIBILITY_CFLAGS="-xldscope=hidden"
28998		else
28999		    have_visibility=no
29000		fi
29001	    fi
29002	    if test x$have_visibility != xno; then
29003		save_CFLAGS="$CFLAGS"
29004		proto_inc=`$PKG_CONFIG --cflags xproto`
29005		CFLAGS="$CFLAGS $VISIBILITY_CFLAGS $proto_inc"
29006		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29007/* end confdefs.h.  */
29008
29009		    #include <X11/Xfuncproto.h>
29010		     extern _X_HIDDEN int hidden_int;
29011		     extern _X_EXPORT int public_int;
29012		     extern _X_HIDDEN int hidden_int_func(void);
29013		     extern _X_EXPORT int public_int_func(void);
29014int
29015main ()
29016{
29017
29018  ;
29019  return 0;
29020}
29021_ACEOF
29022if ac_fn_c_try_compile "$LINENO"; then :
29023  have_visibility=yes
29024else
29025  have_visibility=no
29026fi
29027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29028		CFLAGS=$save_CFLAGS
29029	    fi
29030	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5
29031$as_echo "$have_visibility" >&6; }
29032	    if test x$have_visibility != xno; then
29033		symbol_visibility=$VISIBILITY_CFLAGS
29034		XORG_CFLAGS="$XORG_CFLAGS $VISIBILITY_CFLAGS"
29035		XSERVER_CFLAGS="$XSERVER_CFLAGS $VISIBILITY_CFLAGS"
29036	    fi
29037	fi
29038
29039
29040				xorg_bus_bsdpci=no
29041	xorg_bus_sparc=no
29042
29043	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg PCI functions" >&5
29044$as_echo_n "checking whether to build Xorg PCI functions... " >&6; }
29045	if test "x$PCI" = xyes; then
29046
29047pkg_failed=no
29048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
29049$as_echo_n "checking for PCIACCESS... " >&6; }
29050
29051if test -n "$PCIACCESS_CFLAGS"; then
29052    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
29053 elif test -n "$PKG_CONFIG"; then
29054    if test -n "$PKG_CONFIG" && \
29055    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5
29056  ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5
29057  ac_status=$?
29058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29059  test $ac_status = 0; }; then
29060  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "$LIBPCIACCESS" 2>/dev/null`
29061		      test "x$?" != "x0" && pkg_failed=yes
29062else
29063  pkg_failed=yes
29064fi
29065 else
29066    pkg_failed=untried
29067fi
29068if test -n "$PCIACCESS_LIBS"; then
29069    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
29070 elif test -n "$PKG_CONFIG"; then
29071    if test -n "$PKG_CONFIG" && \
29072    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5
29073  ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5
29074  ac_status=$?
29075  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29076  test $ac_status = 0; }; then
29077  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "$LIBPCIACCESS" 2>/dev/null`
29078		      test "x$?" != "x0" && pkg_failed=yes
29079else
29080  pkg_failed=yes
29081fi
29082 else
29083    pkg_failed=untried
29084fi
29085
29086
29087
29088if test $pkg_failed = yes; then
29089   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29090$as_echo "no" >&6; }
29091
29092if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29093        _pkg_short_errors_supported=yes
29094else
29095        _pkg_short_errors_supported=no
29096fi
29097        if test $_pkg_short_errors_supported = yes; then
29098	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1`
29099        else
29100	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1`
29101        fi
29102	# Put the nasty error message in config.log where it belongs
29103	echo "$PCIACCESS_PKG_ERRORS" >&5
29104
29105	as_fn_error $? "Package requirements ($LIBPCIACCESS) were not met:
29106
29107$PCIACCESS_PKG_ERRORS
29108
29109Consider adjusting the PKG_CONFIG_PATH environment variable if you
29110installed software in a non-standard prefix.
29111
29112Alternatively, you may set the environment variables PCIACCESS_CFLAGS
29113and PCIACCESS_LIBS to avoid the need to call pkg-config.
29114See the pkg-config man page for more details." "$LINENO" 5
29115elif test $pkg_failed = untried; then
29116     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29117$as_echo "no" >&6; }
29118	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29120as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
29121is in your PATH or set the PKG_CONFIG environment variable to the full
29122path to pkg-config.
29123
29124Alternatively, you may set the environment variables PCIACCESS_CFLAGS
29125and PCIACCESS_LIBS to avoid the need to call pkg-config.
29126See the pkg-config man page for more details.
29127
29128To get pkg-config, see <http://pkg-config.freedesktop.org/>.
29129See \`config.log' for more details" "$LINENO" 5; }
29130else
29131	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
29132	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
29133        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29134$as_echo "yes" >&6; }
29135
29136fi
29137		SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $LIBPCIACCESS"
29138		XORG_SYS_LIBS="$XORG_SYS_LIBS $PCIACCESS_LIBS $LIBDRM_LIBS"
29139		XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS $LIBDRM_CFLAGS"
29140
29141
29142$as_echo "#define XSERVER_LIBPCIACCESS 1" >>confdefs.h
29143
29144
29145  prefix_NONE=
29146  exec_prefix_NONE=
29147  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29148  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29149  eval ac_define_dir="\"$PCI_TXT_IDS_DIR\""
29150  eval ac_define_dir="\"$ac_define_dir\""
29151  PCI_TXT_IDS_PATH="$ac_define_dir"
29152
29153
29154cat >>confdefs.h <<_ACEOF
29155#define PCI_TXT_IDS_PATH "$ac_define_dir"
29156_ACEOF
29157
29158  test "$prefix_NONE" && prefix=NONE
29159  test "$exec_prefix_NONE" && exec_prefix=NONE
29160
29161		case $host_os in
29162		  gnu* | freebsd* | kfreebsd*-gnu | netbsd* | openbsd* | solaris* | dragonfly*)
29163			xorg_bus_bsdpci="yes"
29164			;;
29165		esac
29166		case $host_cpu in
29167		  sparc*)
29168			xorg_bus_sparc="yes"
29169			;;
29170		esac
29171	else
29172		if test "x$CONFIG_UDEV_KMS" = xyes; then
29173			as_fn_error $? "Platform device enumeration requires libpciaccess" "$LINENO" 5
29174		fi
29175		if test "x$INT10MODULE" = xyes && test "x$INT10" != xstub; then
29176			as_fn_error $? "Cannot build int10 without libpciaccess" "$LINENO" 5
29177		fi
29178	fi
29179	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCI" >&5
29180$as_echo "$PCI" >&6; }
29181
29182	if test "x$CONFIG_UDEV_KMS" = xyes; then
29183
29184$as_echo "#define XSERVER_PLATFORM_BUS 1" >>confdefs.h
29185
29186	fi
29187	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSERVER_PLATFORM_BUS" >&5
29188$as_echo "$XSERVER_PLATFORM_BUS" >&6; }
29189
29190	case $host_os in
29191	  linux*)
29192		XORG_OS_SUBDIR="linux"
29193		linux_acpi="no"
29194		case $host_cpu in
29195		  i*86|amd64*|x86_64*|ia64*)
29196			linux_acpi=$enable_linux_acpi
29197			;;
29198		  *)
29199			;;
29200		esac
29201				for ac_header in linux/apm_bios.h
29202do :
29203  ac_fn_c_check_header_mongrel "$LINENO" "linux/apm_bios.h" "ac_cv_header_linux_apm_bios_h" "$ac_includes_default"
29204if test "x$ac_cv_header_linux_apm_bios_h" = xyes; then :
29205  cat >>confdefs.h <<_ACEOF
29206#define HAVE_LINUX_APM_BIOS_H 1
29207_ACEOF
29208 linux_apm=$enable_linux_apm
29209fi
29210
29211done
29212
29213		if test "x$linux_apm" = xyes -o "x$linux_acpi" = xyes; then
29214
29215$as_echo "#define XF86PM 1" >>confdefs.h
29216
29217		fi
29218		;;
29219	  freebsd* | kfreebsd*-gnu | dragonfly*)
29220		XORG_OS_SUBDIR="bsd"
29221		;;
29222	  netbsd*)
29223		XORG_OS_SUBDIR="bsd"
29224		;;
29225	  openbsd*)
29226		if test "x$ac_cv_BSD_APM" = xyes \
29227			-o "x$ac_cv_BSD_KQUEUE_APM" = xyes; then
29228			XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
29229		fi
29230		XORG_OS_SUBDIR="bsd"
29231		;;
29232	  solaris*)
29233		XORG_OS_SUBDIR="solaris"
29234		XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
29235		for ac_header in sys/kd.h
29236do :
29237  ac_fn_c_check_header_mongrel "$LINENO" "sys/kd.h" "ac_cv_header_sys_kd_h" "$ac_includes_default"
29238if test "x$ac_cv_header_sys_kd_h" = xyes; then :
29239  cat >>confdefs.h <<_ACEOF
29240#define HAVE_SYS_KD_H 1
29241_ACEOF
29242
29243fi
29244
29245done
29246
29247		for ac_header in sys/vt.h
29248do :
29249  ac_fn_c_check_header_mongrel "$LINENO" "sys/vt.h" "ac_cv_header_sys_vt_h" "$ac_includes_default"
29250if test "x$ac_cv_header_sys_vt_h" = xyes; then :
29251  cat >>confdefs.h <<_ACEOF
29252#define HAVE_SYS_VT_H 1
29253_ACEOF
29254 solaris_vt=yes
29255else
29256  solaris_vt=no
29257fi
29258
29259done
29260
29261		# Check for minimum supported release
29262		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris version" >&5
29263$as_echo_n "checking Solaris version... " >&6; }
29264	        OS_MINOR=`echo ${host_os}|$SED -e 's/^.*solaris2\.//' -e s'/\..*$//'`
29265		if test "${OS_MINOR}" -ge 7 ; then
29266	        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris ${OS_MINOR}" >&5
29267$as_echo "Solaris ${OS_MINOR}" >&6; }
29268		else
29269			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&5
29270$as_echo "Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&6; }
29271		fi
29272		if test "${OS_MINOR}" -lt 8 ; then
29273			as_fn_error $? "This release no longer supports Solaris versions older than Solaris 8." "$LINENO" 5
29274		fi
29275		ac_fn_c_check_decl "$LINENO" "_LP64" "ac_cv_have_decl__LP64" "$ac_includes_default"
29276if test "x$ac_cv_have_decl__LP64" = xyes; then :
29277  SOLARIS_64="yes"
29278else
29279  SOLARIS_64="no"
29280fi
29281
29282
29283		case $host_cpu in
29284		  sparc*)
29285			SOLARIS_INOUT_ARCH="sparcv8plus"
29286			;;
29287		  i*86|x86_64*)
29288			if test x$SOLARIS_64 = xyes ; then
29289				SOLARIS_INOUT_ARCH="amd64"
29290			else
29291				SOLARIS_INOUT_ARCH="ia32"
29292			fi
29293			;;
29294		  *)
29295			as_fn_error $? "Unsupported Solaris platform. Only SPARC & x86 \
29296			are supported on Solaris in this release.   If you are \
29297			interested in porting Xorg to your platform, please email \
29298			xorg@lists.freedesktop.org." "$LINENO" 5 ;;
29299		esac
29300
29301		;;
29302	  gnu*)
29303		XORG_OS_SUBDIR="hurd"
29304		;;
29305	  cygwin*)
29306		XORG_OS_SUBDIR="stub"
29307		;;
29308	  *)
29309		XORG_OS_SUBDIR="stub"
29310		{ $as_echo "$as_me:${as_lineno-$LINENO}: Your OS is unknown. If you are interested in porting Xorg to your platform,
29311please email xorg@lists.freedesktop.org." >&5
29312$as_echo "$as_me: Your OS is unknown. If you are interested in porting Xorg to your platform,
29313please email xorg@lists.freedesktop.org." >&6;}
29314		;;
29315	esac
29316
29317	if test "x$DGA" = xauto; then
29318
29319pkg_failed=no
29320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5
29321$as_echo_n "checking for DGA... " >&6; }
29322
29323if test -n "$DGA_CFLAGS"; then
29324    pkg_cv_DGA_CFLAGS="$DGA_CFLAGS"
29325 elif test -n "$PKG_CONFIG"; then
29326    if test -n "$PKG_CONFIG" && \
29327    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
29328  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
29329  ac_status=$?
29330  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29331  test $ac_status = 0; }; then
29332  pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null`
29333		      test "x$?" != "x0" && pkg_failed=yes
29334else
29335  pkg_failed=yes
29336fi
29337 else
29338    pkg_failed=untried
29339fi
29340if test -n "$DGA_LIBS"; then
29341    pkg_cv_DGA_LIBS="$DGA_LIBS"
29342 elif test -n "$PKG_CONFIG"; then
29343    if test -n "$PKG_CONFIG" && \
29344    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
29345  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
29346  ac_status=$?
29347  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29348  test $ac_status = 0; }; then
29349  pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null`
29350		      test "x$?" != "x0" && pkg_failed=yes
29351else
29352  pkg_failed=yes
29353fi
29354 else
29355    pkg_failed=untried
29356fi
29357
29358
29359
29360if test $pkg_failed = yes; then
29361   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29362$as_echo "no" >&6; }
29363
29364if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29365        _pkg_short_errors_supported=yes
29366else
29367        _pkg_short_errors_supported=no
29368fi
29369        if test $_pkg_short_errors_supported = yes; then
29370	        DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1`
29371        else
29372	        DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1`
29373        fi
29374	# Put the nasty error message in config.log where it belongs
29375	echo "$DGA_PKG_ERRORS" >&5
29376
29377	DGA=no
29378elif test $pkg_failed = untried; then
29379     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29380$as_echo "no" >&6; }
29381	DGA=no
29382else
29383	DGA_CFLAGS=$pkg_cv_DGA_CFLAGS
29384	DGA_LIBS=$pkg_cv_DGA_LIBS
29385        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29386$as_echo "yes" >&6; }
29387	DGA=yes
29388fi
29389	fi
29390	if test "x$DGA" = xyes; then
29391		XORG_MODULES="$XORG_MODULES $DGAPROTO"
29392
29393pkg_failed=no
29394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5
29395$as_echo_n "checking for DGA... " >&6; }
29396
29397if test -n "$DGA_CFLAGS"; then
29398    pkg_cv_DGA_CFLAGS="$DGA_CFLAGS"
29399 elif test -n "$PKG_CONFIG"; then
29400    if test -n "$PKG_CONFIG" && \
29401    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
29402  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
29403  ac_status=$?
29404  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29405  test $ac_status = 0; }; then
29406  pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null`
29407		      test "x$?" != "x0" && pkg_failed=yes
29408else
29409  pkg_failed=yes
29410fi
29411 else
29412    pkg_failed=untried
29413fi
29414if test -n "$DGA_LIBS"; then
29415    pkg_cv_DGA_LIBS="$DGA_LIBS"
29416 elif test -n "$PKG_CONFIG"; then
29417    if test -n "$PKG_CONFIG" && \
29418    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
29419  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
29420  ac_status=$?
29421  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29422  test $ac_status = 0; }; then
29423  pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null`
29424		      test "x$?" != "x0" && pkg_failed=yes
29425else
29426  pkg_failed=yes
29427fi
29428 else
29429    pkg_failed=untried
29430fi
29431
29432
29433
29434if test $pkg_failed = yes; then
29435   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29436$as_echo "no" >&6; }
29437
29438if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29439        _pkg_short_errors_supported=yes
29440else
29441        _pkg_short_errors_supported=no
29442fi
29443        if test $_pkg_short_errors_supported = yes; then
29444	        DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1`
29445        else
29446	        DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1`
29447        fi
29448	# Put the nasty error message in config.log where it belongs
29449	echo "$DGA_PKG_ERRORS" >&5
29450
29451	as_fn_error $? "Package requirements ($DGAPROTO) were not met:
29452
29453$DGA_PKG_ERRORS
29454
29455Consider adjusting the PKG_CONFIG_PATH environment variable if you
29456installed software in a non-standard prefix.
29457
29458Alternatively, you may set the environment variables DGA_CFLAGS
29459and DGA_LIBS to avoid the need to call pkg-config.
29460See the pkg-config man page for more details." "$LINENO" 5
29461elif test $pkg_failed = untried; then
29462     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29463$as_echo "no" >&6; }
29464	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29466as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
29467is in your PATH or set the PKG_CONFIG environment variable to the full
29468path to pkg-config.
29469
29470Alternatively, you may set the environment variables DGA_CFLAGS
29471and DGA_LIBS to avoid the need to call pkg-config.
29472See the pkg-config man page for more details.
29473
29474To get pkg-config, see <http://pkg-config.freedesktop.org/>.
29475See \`config.log' for more details" "$LINENO" 5; }
29476else
29477	DGA_CFLAGS=$pkg_cv_DGA_CFLAGS
29478	DGA_LIBS=$pkg_cv_DGA_LIBS
29479        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29480$as_echo "yes" >&6; }
29481
29482fi
29483
29484$as_echo "#define DGA 1" >>confdefs.h
29485
29486
29487$as_echo "#define XFreeXDGA 1" >>confdefs.h
29488
29489	fi
29490
29491	if test "x$XF86VIDMODE" = xyes; then
29492		XORG_MODULES="$XORG_MODULES $VIDMODEPROTO"
29493	fi
29494
29495	if test -n "$XORG_MODULES"; then
29496
29497pkg_failed=no
29498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG_MODULES" >&5
29499$as_echo_n "checking for XORG_MODULES... " >&6; }
29500
29501if test -n "$XORG_MODULES_CFLAGS"; then
29502    pkg_cv_XORG_MODULES_CFLAGS="$XORG_MODULES_CFLAGS"
29503 elif test -n "$PKG_CONFIG"; then
29504    if test -n "$PKG_CONFIG" && \
29505    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5
29506  ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5
29507  ac_status=$?
29508  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29509  test $ac_status = 0; }; then
29510  pkg_cv_XORG_MODULES_CFLAGS=`$PKG_CONFIG --cflags "$XORG_MODULES" 2>/dev/null`
29511		      test "x$?" != "x0" && pkg_failed=yes
29512else
29513  pkg_failed=yes
29514fi
29515 else
29516    pkg_failed=untried
29517fi
29518if test -n "$XORG_MODULES_LIBS"; then
29519    pkg_cv_XORG_MODULES_LIBS="$XORG_MODULES_LIBS"
29520 elif test -n "$PKG_CONFIG"; then
29521    if test -n "$PKG_CONFIG" && \
29522    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5
29523  ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5
29524  ac_status=$?
29525  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29526  test $ac_status = 0; }; then
29527  pkg_cv_XORG_MODULES_LIBS=`$PKG_CONFIG --libs "$XORG_MODULES" 2>/dev/null`
29528		      test "x$?" != "x0" && pkg_failed=yes
29529else
29530  pkg_failed=yes
29531fi
29532 else
29533    pkg_failed=untried
29534fi
29535
29536
29537
29538if test $pkg_failed = yes; then
29539   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29540$as_echo "no" >&6; }
29541
29542if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29543        _pkg_short_errors_supported=yes
29544else
29545        _pkg_short_errors_supported=no
29546fi
29547        if test $_pkg_short_errors_supported = yes; then
29548	        XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XORG_MODULES" 2>&1`
29549        else
29550	        XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XORG_MODULES" 2>&1`
29551        fi
29552	# Put the nasty error message in config.log where it belongs
29553	echo "$XORG_MODULES_PKG_ERRORS" >&5
29554
29555	as_fn_error $? "Package requirements ($XORG_MODULES) were not met:
29556
29557$XORG_MODULES_PKG_ERRORS
29558
29559Consider adjusting the PKG_CONFIG_PATH environment variable if you
29560installed software in a non-standard prefix.
29561
29562Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
29563and XORG_MODULES_LIBS to avoid the need to call pkg-config.
29564See the pkg-config man page for more details." "$LINENO" 5
29565elif test $pkg_failed = untried; then
29566     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29567$as_echo "no" >&6; }
29568	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29570as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
29571is in your PATH or set the PKG_CONFIG environment variable to the full
29572path to pkg-config.
29573
29574Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
29575and XORG_MODULES_LIBS to avoid the need to call pkg-config.
29576See the pkg-config man page for more details.
29577
29578To get pkg-config, see <http://pkg-config.freedesktop.org/>.
29579See \`config.log' for more details" "$LINENO" 5; }
29580else
29581	XORG_MODULES_CFLAGS=$pkg_cv_XORG_MODULES_CFLAGS
29582	XORG_MODULES_LIBS=$pkg_cv_XORG_MODULES_LIBS
29583        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29584$as_echo "yes" >&6; }
29585
29586fi
29587	        XORG_CFLAGS="$XORG_CFLAGS $XORG_MODULES_CFLAGS"
29588	        XORG_SYS_LIBS="$XORG_SYS_LIBS $XORG_MODULES_LIBS"
29589	fi
29590
29591	if test "x$DRM" = xyes; then
29592		XORG_DRIVER_MODESETTING=yes
29593	fi
29594
29595
29596
29597
29598
29599
29600
29601		XF86CONFIGFILE="xorg.conf"
29602	XF86CONFIGDIR="xorg.conf.d"
29603
29604	CONFIGFILE="$sysconfdir/$XF86CONFIGFILE"
29605	LOGPREFIX="Xorg."
29606	XDG_DATA_HOME=".local/share"
29607	XDG_DATA_HOME_LOGDIR="xorg"
29608
29609$as_echo "#define XORG_SERVER 1" >>confdefs.h
29610
29611
29612$as_echo "#define XORGSERVER 1" >>confdefs.h
29613
29614
29615$as_echo "#define XFree86Server 1" >>confdefs.h
29616
29617
29618cat >>confdefs.h <<_ACEOF
29619#define XORG_VERSION_CURRENT $VENDOR_RELEASE
29620_ACEOF
29621
29622
29623$as_echo "#define NEED_XF86_TYPES 1" >>confdefs.h
29624
29625
29626$as_echo "#define NEED_XF86_PROTOTYPES 1" >>confdefs.h
29627
29628
29629$as_echo "#define __XSERVERNAME__ \"Xorg\"" >>confdefs.h
29630
29631
29632  prefix_NONE=
29633  exec_prefix_NONE=
29634  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29635  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29636  eval ac_define_dir="\"$XF86CONFIGFILE\""
29637  eval ac_define_dir="\"$ac_define_dir\""
29638  XCONFIGFILE="$ac_define_dir"
29639
29640
29641cat >>confdefs.h <<_ACEOF
29642#define XCONFIGFILE "$ac_define_dir"
29643_ACEOF
29644
29645  test "$prefix_NONE" && prefix=NONE
29646  test "$exec_prefix_NONE" && exec_prefix=NONE
29647
29648
29649  prefix_NONE=
29650  exec_prefix_NONE=
29651  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29652  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29653  eval ac_define_dir="\"$XF86CONFIGFILE\""
29654  eval ac_define_dir="\"$ac_define_dir\""
29655  XF86CONFIGFILE="$ac_define_dir"
29656
29657
29658cat >>confdefs.h <<_ACEOF
29659#define XF86CONFIGFILE "$ac_define_dir"
29660_ACEOF
29661
29662  test "$prefix_NONE" && prefix=NONE
29663  test "$exec_prefix_NONE" && exec_prefix=NONE
29664
29665
29666  prefix_NONE=
29667  exec_prefix_NONE=
29668  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29669  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29670  eval ac_define_dir="\"$XF86CONFIGDIR\""
29671  eval ac_define_dir="\"$ac_define_dir\""
29672  XCONFIGDIR="$ac_define_dir"
29673
29674
29675cat >>confdefs.h <<_ACEOF
29676#define XCONFIGDIR "$ac_define_dir"
29677_ACEOF
29678
29679  test "$prefix_NONE" && prefix=NONE
29680  test "$exec_prefix_NONE" && exec_prefix=NONE
29681
29682
29683  prefix_NONE=
29684  exec_prefix_NONE=
29685  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29686  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29687  eval ac_define_dir="\"$moduledir\""
29688  eval ac_define_dir="\"$ac_define_dir\""
29689  DEFAULT_MODULE_PATH="$ac_define_dir"
29690
29691
29692cat >>confdefs.h <<_ACEOF
29693#define DEFAULT_MODULE_PATH "$ac_define_dir"
29694_ACEOF
29695
29696  test "$prefix_NONE" && prefix=NONE
29697  test "$exec_prefix_NONE" && exec_prefix=NONE
29698
29699
29700  prefix_NONE=
29701  exec_prefix_NONE=
29702  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29703  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29704  eval ac_define_dir="\"$libdir\""
29705  eval ac_define_dir="\"$ac_define_dir\""
29706  DEFAULT_LIBRARY_PATH="$ac_define_dir"
29707
29708
29709cat >>confdefs.h <<_ACEOF
29710#define DEFAULT_LIBRARY_PATH "$ac_define_dir"
29711_ACEOF
29712
29713  test "$prefix_NONE" && prefix=NONE
29714  test "$exec_prefix_NONE" && exec_prefix=NONE
29715
29716
29717  prefix_NONE=
29718  exec_prefix_NONE=
29719  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29720  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29721  eval ac_define_dir="\"$logdir\""
29722  eval ac_define_dir="\"$ac_define_dir\""
29723  DEFAULT_LOGDIR="$ac_define_dir"
29724
29725
29726cat >>confdefs.h <<_ACEOF
29727#define DEFAULT_LOGDIR "$ac_define_dir"
29728_ACEOF
29729
29730  test "$prefix_NONE" && prefix=NONE
29731  test "$exec_prefix_NONE" && exec_prefix=NONE
29732
29733
29734  prefix_NONE=
29735  exec_prefix_NONE=
29736  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29737  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29738  eval ac_define_dir="\"$LOGPREFIX\""
29739  eval ac_define_dir="\"$ac_define_dir\""
29740  DEFAULT_LOGPREFIX="$ac_define_dir"
29741
29742
29743cat >>confdefs.h <<_ACEOF
29744#define DEFAULT_LOGPREFIX "$ac_define_dir"
29745_ACEOF
29746
29747  test "$prefix_NONE" && prefix=NONE
29748  test "$exec_prefix_NONE" && exec_prefix=NONE
29749
29750
29751  prefix_NONE=
29752  exec_prefix_NONE=
29753  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29754  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29755  eval ac_define_dir="\"$XDG_DATA_HOME\""
29756  eval ac_define_dir="\"$ac_define_dir\""
29757  DEFAULT_XDG_DATA_HOME="$ac_define_dir"
29758
29759
29760cat >>confdefs.h <<_ACEOF
29761#define DEFAULT_XDG_DATA_HOME "$ac_define_dir"
29762_ACEOF
29763
29764  test "$prefix_NONE" && prefix=NONE
29765  test "$exec_prefix_NONE" && exec_prefix=NONE
29766
29767
29768  prefix_NONE=
29769  exec_prefix_NONE=
29770  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29771  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29772  eval ac_define_dir="\"$XDG_DATA_HOME_LOGDIR\""
29773  eval ac_define_dir="\"$ac_define_dir\""
29774  DEFAULT_XDG_DATA_HOME_LOGDIR="$ac_define_dir"
29775
29776
29777cat >>confdefs.h <<_ACEOF
29778#define DEFAULT_XDG_DATA_HOME_LOGDIR "$ac_define_dir"
29779_ACEOF
29780
29781  test "$prefix_NONE" && prefix=NONE
29782  test "$exec_prefix_NONE" && exec_prefix=NONE
29783
29784
29785cat >>confdefs.h <<_ACEOF
29786#define __VENDORDWEBSUPPORT__ "$VENDOR_WEB"
29787_ACEOF
29788
29789	if test "x$VGAHW" = xyes; then
29790
29791$as_echo "#define WITH_VGAHW 1" >>confdefs.h
29792
29793	fi
29794
29795	driverdir="$moduledir/drivers"
29796
29797
29798	sdkdir="$includedir/xorg"
29799	extdir="$includedir/X11/extensions"
29800	sysconfigdir="$datadir/X11/$XF86CONFIGDIR"
29801
29802
29803
29804
29805
29806	# stuff the ABI versions into the pc file too
29807	extract_abi() {
29808	    grep ^.define.*${1}_VERSION ${srcdir}/hw/xfree86/common/xf86Module.h | tr '(),' '  .' | awk '{ print $4$5 }'
29809	}
29810	abi_ansic=`extract_abi ANSIC`
29811	abi_videodrv=`extract_abi VIDEODRV`
29812	abi_xinput=`extract_abi XINPUT`
29813	abi_extension=`extract_abi EXTENSION`
29814
29815
29816
29817
29818fi
29819 if test "x$XORG" = xyes; then
29820  XORG_TRUE=
29821  XORG_FALSE='#'
29822else
29823  XORG_TRUE='#'
29824  XORG_FALSE=
29825fi
29826
29827 if test "x$PCI" = xyes; then
29828  XORG_BUS_PCI_TRUE=
29829  XORG_BUS_PCI_FALSE='#'
29830else
29831  XORG_BUS_PCI_TRUE='#'
29832  XORG_BUS_PCI_FALSE=
29833fi
29834
29835 if test "x$xorg_bus_bsdpci" = xyes; then
29836  XORG_BUS_BSDPCI_TRUE=
29837  XORG_BUS_BSDPCI_FALSE='#'
29838else
29839  XORG_BUS_BSDPCI_TRUE='#'
29840  XORG_BUS_BSDPCI_FALSE=
29841fi
29842
29843 if test "x$xorg_bus_sparc" = xyes; then
29844  XORG_BUS_SPARC_TRUE=
29845  XORG_BUS_SPARC_FALSE='#'
29846else
29847  XORG_BUS_SPARC_TRUE='#'
29848  XORG_BUS_SPARC_FALSE=
29849fi
29850
29851 if test "x$linux_acpi" = xyes; then
29852  LNXACPI_TRUE=
29853  LNXACPI_FALSE='#'
29854else
29855  LNXACPI_TRUE='#'
29856  LNXACPI_FALSE=
29857fi
29858
29859 if test "x$linux_apm" = xyes; then
29860  LNXAPM_TRUE=
29861  LNXAPM_FALSE='#'
29862else
29863  LNXAPM_TRUE='#'
29864  LNXAPM_FALSE=
29865fi
29866
29867 if test "x$solaris_vt" = xyes; then
29868  SOLARIS_VT_TRUE=
29869  SOLARIS_VT_FALSE='#'
29870else
29871  SOLARIS_VT_TRUE='#'
29872  SOLARIS_VT_FALSE=
29873fi
29874
29875 if test "x$DGA" = xyes; then
29876  DGA_TRUE=
29877  DGA_FALSE='#'
29878else
29879  DGA_TRUE='#'
29880  DGA_FALSE=
29881fi
29882
29883 if test "x$CONFIG_UDEV_KMS" = xyes; then
29884  XORG_BUS_PLATFORM_TRUE=
29885  XORG_BUS_PLATFORM_FALSE='#'
29886else
29887  XORG_BUS_PLATFORM_TRUE='#'
29888  XORG_BUS_PLATFORM_FALSE=
29889fi
29890
29891 if test "x$XORG_DRIVER_MODESETTING" = xyes; then
29892  XORG_DRIVER_MODESETTING_TRUE=
29893  XORG_DRIVER_MODESETTING_FALSE='#'
29894else
29895  XORG_DRIVER_MODESETTING_TRUE='#'
29896  XORG_DRIVER_MODESETTING_FALSE=
29897fi
29898
29899
29900if test "x$GLAMOR" = xauto; then
29901	if echo "$XORG" "$XEPHYR" "$XWAYLAND" | grep -q yes ; then
29902		GLAMOR=yes
29903	fi
29904fi
29905
29906 if test "x$GLAMOR" = xyes; then
29907  GLAMOR_TRUE=
29908  GLAMOR_FALSE='#'
29909else
29910  GLAMOR_TRUE='#'
29911  GLAMOR_FALSE=
29912fi
29913
29914
29915if test "x$GLAMOR" = xyes; then
29916
29917$as_echo "#define GLAMOR 1" >>confdefs.h
29918
29919
29920pkg_failed=no
29921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLAMOR" >&5
29922$as_echo_n "checking for GLAMOR... " >&6; }
29923
29924if test -n "$GLAMOR_CFLAGS"; then
29925    pkg_cv_GLAMOR_CFLAGS="$GLAMOR_CFLAGS"
29926 elif test -n "$PKG_CONFIG"; then
29927    if test -n "$PKG_CONFIG" && \
29928    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5
29929  ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5
29930  ac_status=$?
29931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29932  test $ac_status = 0; }; then
29933  pkg_cv_GLAMOR_CFLAGS=`$PKG_CONFIG --cflags "epoxy" 2>/dev/null`
29934		      test "x$?" != "x0" && pkg_failed=yes
29935else
29936  pkg_failed=yes
29937fi
29938 else
29939    pkg_failed=untried
29940fi
29941if test -n "$GLAMOR_LIBS"; then
29942    pkg_cv_GLAMOR_LIBS="$GLAMOR_LIBS"
29943 elif test -n "$PKG_CONFIG"; then
29944    if test -n "$PKG_CONFIG" && \
29945    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5
29946  ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5
29947  ac_status=$?
29948  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29949  test $ac_status = 0; }; then
29950  pkg_cv_GLAMOR_LIBS=`$PKG_CONFIG --libs "epoxy" 2>/dev/null`
29951		      test "x$?" != "x0" && pkg_failed=yes
29952else
29953  pkg_failed=yes
29954fi
29955 else
29956    pkg_failed=untried
29957fi
29958
29959
29960
29961if test $pkg_failed = yes; then
29962   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29963$as_echo "no" >&6; }
29964
29965if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29966        _pkg_short_errors_supported=yes
29967else
29968        _pkg_short_errors_supported=no
29969fi
29970        if test $_pkg_short_errors_supported = yes; then
29971	        GLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "epoxy" 2>&1`
29972        else
29973	        GLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "epoxy" 2>&1`
29974        fi
29975	# Put the nasty error message in config.log where it belongs
29976	echo "$GLAMOR_PKG_ERRORS" >&5
29977
29978	as_fn_error $? "Package requirements (epoxy) were not met:
29979
29980$GLAMOR_PKG_ERRORS
29981
29982Consider adjusting the PKG_CONFIG_PATH environment variable if you
29983installed software in a non-standard prefix.
29984
29985Alternatively, you may set the environment variables GLAMOR_CFLAGS
29986and GLAMOR_LIBS to avoid the need to call pkg-config.
29987See the pkg-config man page for more details." "$LINENO" 5
29988elif test $pkg_failed = untried; then
29989     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29990$as_echo "no" >&6; }
29991	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29992$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29993as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
29994is in your PATH or set the PKG_CONFIG environment variable to the full
29995path to pkg-config.
29996
29997Alternatively, you may set the environment variables GLAMOR_CFLAGS
29998and GLAMOR_LIBS to avoid the need to call pkg-config.
29999See the pkg-config man page for more details.
30000
30001To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30002See \`config.log' for more details" "$LINENO" 5; }
30003else
30004	GLAMOR_CFLAGS=$pkg_cv_GLAMOR_CFLAGS
30005	GLAMOR_LIBS=$pkg_cv_GLAMOR_LIBS
30006        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30007$as_echo "yes" >&6; }
30008
30009fi
30010
30011	if test -n "$PKG_CONFIG" && \
30012    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.4.4\""; } >&5
30013  ($PKG_CONFIG --exists --print-errors "epoxy >= 1.4.4") 2>&5
30014  ac_status=$?
30015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30016  test $ac_status = 0; }; then
30017
30018$as_echo "#define GLAMOR_HAS_EGL_QUERY_DMABUF 1" >>confdefs.h
30019
30020fi
30021
30022	if test -n "$PKG_CONFIG" && \
30023    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.5.4\""; } >&5
30024  ($PKG_CONFIG --exists --print-errors "epoxy >= 1.5.4") 2>&5
30025  ac_status=$?
30026  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30027  test $ac_status = 0; }; then
30028
30029$as_echo "#define GLAMOR_HAS_EGL_QUERY_DRIVER 1" >>confdefs.h
30030
30031fi
30032
30033
30034pkg_failed=no
30035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GBM" >&5
30036$as_echo_n "checking for GBM... " >&6; }
30037
30038if test -n "$GBM_CFLAGS"; then
30039    pkg_cv_GBM_CFLAGS="$GBM_CFLAGS"
30040 elif test -n "$PKG_CONFIG"; then
30041    if test -n "$PKG_CONFIG" && \
30042    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5
30043  ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5
30044  ac_status=$?
30045  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30046  test $ac_status = 0; }; then
30047  pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags ""$LIBGBM"" 2>/dev/null`
30048		      test "x$?" != "x0" && pkg_failed=yes
30049else
30050  pkg_failed=yes
30051fi
30052 else
30053    pkg_failed=untried
30054fi
30055if test -n "$GBM_LIBS"; then
30056    pkg_cv_GBM_LIBS="$GBM_LIBS"
30057 elif test -n "$PKG_CONFIG"; then
30058    if test -n "$PKG_CONFIG" && \
30059    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5
30060  ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5
30061  ac_status=$?
30062  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30063  test $ac_status = 0; }; then
30064  pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs ""$LIBGBM"" 2>/dev/null`
30065		      test "x$?" != "x0" && pkg_failed=yes
30066else
30067  pkg_failed=yes
30068fi
30069 else
30070    pkg_failed=untried
30071fi
30072
30073
30074
30075if test $pkg_failed = yes; then
30076   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30077$as_echo "no" >&6; }
30078
30079if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30080        _pkg_short_errors_supported=yes
30081else
30082        _pkg_short_errors_supported=no
30083fi
30084        if test $_pkg_short_errors_supported = yes; then
30085	        GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""$LIBGBM"" 2>&1`
30086        else
30087	        GBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""$LIBGBM"" 2>&1`
30088        fi
30089	# Put the nasty error message in config.log where it belongs
30090	echo "$GBM_PKG_ERRORS" >&5
30091
30092	GBM=no
30093elif test $pkg_failed = untried; then
30094     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30095$as_echo "no" >&6; }
30096	GBM=no
30097else
30098	GBM_CFLAGS=$pkg_cv_GBM_CFLAGS
30099	GBM_LIBS=$pkg_cv_GBM_LIBS
30100        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30101$as_echo "yes" >&6; }
30102	GBM=yes
30103fi
30104	if test "x$GBM" = xyes; then
30105
30106$as_echo "#define GLAMOR_HAS_GBM 1" >>confdefs.h
30107
30108		ac_fn_c_check_decl "$LINENO" "GBM_BO_USE_LINEAR" "ac_cv_have_decl_GBM_BO_USE_LINEAR" "#include <stdlib.h>
30109			 #include <gbm.h>
30110"
30111if test "x$ac_cv_have_decl_GBM_BO_USE_LINEAR" = xyes; then :
30112
30113$as_echo "#define GLAMOR_HAS_GBM_LINEAR 1" >>confdefs.h
30114
30115fi
30116
30117				if test -n "$PKG_CONFIG" && \
30118    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 17.1.0\""; } >&5
30119  ($PKG_CONFIG --exists --print-errors "gbm >= 17.1.0") 2>&5
30120  ac_status=$?
30121  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30122  test $ac_status = 0; }; then
30123
30124$as_echo "#define GBM_BO_WITH_MODIFIERS 1" >>confdefs.h
30125
30126fi
30127	else
30128		if test "x$XORG" = xyes; then
30129			as_fn_error $? "Glamor for Xorg requires $LIBGBM" "$LINENO" 5
30130		fi
30131	fi
30132fi
30133 if test "x$GBM" = xyes; then
30134  GLAMOR_EGL_TRUE=
30135  GLAMOR_EGL_FALSE='#'
30136else
30137  GLAMOR_EGL_TRUE='#'
30138  GLAMOR_EGL_FALSE=
30139fi
30140
30141
30142
30143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build XWin DDX" >&5
30144$as_echo_n "checking whether to build XWin DDX... " >&6; }
30145if test "x$XWIN" = xauto; then
30146	case $host_os in
30147		cygwin*) XWIN="yes" ;;
30148		mingw*) XWIN="yes" ;;
30149		*) XWIN="no" ;;
30150	esac
30151fi
30152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XWIN" >&5
30153$as_echo "$XWIN" >&6; }
30154
30155if test "x$XWIN" = xyes; then
30156
30157  prefix_NONE=
30158  exec_prefix_NONE=
30159  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
30160  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
30161  eval ac_define_dir="\"$logdir\""
30162  eval ac_define_dir="\"$ac_define_dir\""
30163  DEFAULT_LOGDIR="$ac_define_dir"
30164
30165
30166cat >>confdefs.h <<_ACEOF
30167#define DEFAULT_LOGDIR "$ac_define_dir"
30168_ACEOF
30169
30170  test "$prefix_NONE" && prefix=NONE
30171  test "$exec_prefix_NONE" && exec_prefix=NONE
30172
30173
30174cat >>confdefs.h <<_ACEOF
30175#define XORG_VERSION_CURRENT $VENDOR_RELEASE
30176_ACEOF
30177
30178
30179cat >>confdefs.h <<_ACEOF
30180#define __VENDORDWEBSUPPORT__ "$VENDOR_WEB"
30181_ACEOF
30182
30183	if test -n "$ac_tool_prefix"; then
30184  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
30185set dummy ${ac_tool_prefix}windres; ac_word=$2
30186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30187$as_echo_n "checking for $ac_word... " >&6; }
30188if ${ac_cv_prog_WINDRES+:} false; then :
30189  $as_echo_n "(cached) " >&6
30190else
30191  if test -n "$WINDRES"; then
30192  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
30193else
30194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30195for as_dir in $PATH
30196do
30197  IFS=$as_save_IFS
30198  test -z "$as_dir" && as_dir=.
30199    for ac_exec_ext in '' $ac_executable_extensions; do
30200  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30201    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
30202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30203    break 2
30204  fi
30205done
30206  done
30207IFS=$as_save_IFS
30208
30209fi
30210fi
30211WINDRES=$ac_cv_prog_WINDRES
30212if test -n "$WINDRES"; then
30213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
30214$as_echo "$WINDRES" >&6; }
30215else
30216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30217$as_echo "no" >&6; }
30218fi
30219
30220
30221fi
30222if test -z "$ac_cv_prog_WINDRES"; then
30223  ac_ct_WINDRES=$WINDRES
30224  # Extract the first word of "windres", so it can be a program name with args.
30225set dummy windres; ac_word=$2
30226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30227$as_echo_n "checking for $ac_word... " >&6; }
30228if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
30229  $as_echo_n "(cached) " >&6
30230else
30231  if test -n "$ac_ct_WINDRES"; then
30232  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
30233else
30234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30235for as_dir in $PATH
30236do
30237  IFS=$as_save_IFS
30238  test -z "$as_dir" && as_dir=.
30239    for ac_exec_ext in '' $ac_executable_extensions; do
30240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30241    ac_cv_prog_ac_ct_WINDRES="windres"
30242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30243    break 2
30244  fi
30245done
30246  done
30247IFS=$as_save_IFS
30248
30249fi
30250fi
30251ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
30252if test -n "$ac_ct_WINDRES"; then
30253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
30254$as_echo "$ac_ct_WINDRES" >&6; }
30255else
30256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30257$as_echo "no" >&6; }
30258fi
30259
30260  if test "x$ac_ct_WINDRES" = x; then
30261    WINDRES=""
30262  else
30263    case $cross_compiling:$ac_tool_warned in
30264yes:)
30265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30267ac_tool_warned=yes ;;
30268esac
30269    WINDRES=$ac_ct_WINDRES
30270  fi
30271else
30272  WINDRES="$ac_cv_prog_WINDRES"
30273fi
30274
30275
30276
30277pkg_failed=no
30278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWINMODULES" >&5
30279$as_echo_n "checking for XWINMODULES... " >&6; }
30280
30281if test -n "$XWINMODULES_CFLAGS"; then
30282    pkg_cv_XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS"
30283 elif test -n "$PKG_CONFIG"; then
30284    if test -n "$PKG_CONFIG" && \
30285    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm\""; } >&5
30286  ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm") 2>&5
30287  ac_status=$?
30288  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30289  test $ac_status = 0; }; then
30290  pkg_cv_XWINMODULES_CFLAGS=`$PKG_CONFIG --cflags "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm" 2>/dev/null`
30291		      test "x$?" != "x0" && pkg_failed=yes
30292else
30293  pkg_failed=yes
30294fi
30295 else
30296    pkg_failed=untried
30297fi
30298if test -n "$XWINMODULES_LIBS"; then
30299    pkg_cv_XWINMODULES_LIBS="$XWINMODULES_LIBS"
30300 elif test -n "$PKG_CONFIG"; then
30301    if test -n "$PKG_CONFIG" && \
30302    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm\""; } >&5
30303  ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm") 2>&5
30304  ac_status=$?
30305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30306  test $ac_status = 0; }; then
30307  pkg_cv_XWINMODULES_LIBS=`$PKG_CONFIG --libs "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm" 2>/dev/null`
30308		      test "x$?" != "x0" && pkg_failed=yes
30309else
30310  pkg_failed=yes
30311fi
30312 else
30313    pkg_failed=untried
30314fi
30315
30316
30317
30318if test $pkg_failed = yes; then
30319   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30320$as_echo "no" >&6; }
30321
30322if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30323        _pkg_short_errors_supported=yes
30324else
30325        _pkg_short_errors_supported=no
30326fi
30327        if test $_pkg_short_errors_supported = yes; then
30328	        XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm" 2>&1`
30329        else
30330	        XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm" 2>&1`
30331        fi
30332	# Put the nasty error message in config.log where it belongs
30333	echo "$XWINMODULES_PKG_ERRORS" >&5
30334
30335	as_fn_error $? "Package requirements (x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm) were not met:
30336
30337$XWINMODULES_PKG_ERRORS
30338
30339Consider adjusting the PKG_CONFIG_PATH environment variable if you
30340installed software in a non-standard prefix.
30341
30342Alternatively, you may set the environment variables XWINMODULES_CFLAGS
30343and XWINMODULES_LIBS to avoid the need to call pkg-config.
30344See the pkg-config man page for more details." "$LINENO" 5
30345elif test $pkg_failed = untried; then
30346     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30347$as_echo "no" >&6; }
30348	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30350as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30351is in your PATH or set the PKG_CONFIG environment variable to the full
30352path to pkg-config.
30353
30354Alternatively, you may set the environment variables XWINMODULES_CFLAGS
30355and XWINMODULES_LIBS to avoid the need to call pkg-config.
30356See the pkg-config man page for more details.
30357
30358To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30359See \`config.log' for more details" "$LINENO" 5; }
30360else
30361	XWINMODULES_CFLAGS=$pkg_cv_XWINMODULES_CFLAGS
30362	XWINMODULES_LIBS=$pkg_cv_XWINMODULES_LIBS
30363        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30364$as_echo "yes" >&6; }
30365
30366fi
30367
30368	if test "x$WINDOWSWM" = xauto; then
30369		if test -n "$PKG_CONFIG" && \
30370    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5
30371  ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5
30372  ac_status=$?
30373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30374  test $ac_status = 0; }; then
30375  WINDOWSWM=yes
30376else
30377  WINDOWSWM=no
30378fi
30379	fi
30380	if test "x$WINDOWSWM" = xyes ; then
30381
30382pkg_failed=no
30383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WINDOWSWM" >&5
30384$as_echo_n "checking for WINDOWSWM... " >&6; }
30385
30386if test -n "$WINDOWSWM_CFLAGS"; then
30387    pkg_cv_WINDOWSWM_CFLAGS="$WINDOWSWM_CFLAGS"
30388 elif test -n "$PKG_CONFIG"; then
30389    if test -n "$PKG_CONFIG" && \
30390    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5
30391  ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5
30392  ac_status=$?
30393  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30394  test $ac_status = 0; }; then
30395  pkg_cv_WINDOWSWM_CFLAGS=`$PKG_CONFIG --cflags "$WINDOWSWMPROTO" 2>/dev/null`
30396		      test "x$?" != "x0" && pkg_failed=yes
30397else
30398  pkg_failed=yes
30399fi
30400 else
30401    pkg_failed=untried
30402fi
30403if test -n "$WINDOWSWM_LIBS"; then
30404    pkg_cv_WINDOWSWM_LIBS="$WINDOWSWM_LIBS"
30405 elif test -n "$PKG_CONFIG"; then
30406    if test -n "$PKG_CONFIG" && \
30407    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5
30408  ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5
30409  ac_status=$?
30410  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30411  test $ac_status = 0; }; then
30412  pkg_cv_WINDOWSWM_LIBS=`$PKG_CONFIG --libs "$WINDOWSWMPROTO" 2>/dev/null`
30413		      test "x$?" != "x0" && pkg_failed=yes
30414else
30415  pkg_failed=yes
30416fi
30417 else
30418    pkg_failed=untried
30419fi
30420
30421
30422
30423if test $pkg_failed = yes; then
30424   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30425$as_echo "no" >&6; }
30426
30427if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30428        _pkg_short_errors_supported=yes
30429else
30430        _pkg_short_errors_supported=no
30431fi
30432        if test $_pkg_short_errors_supported = yes; then
30433	        WINDOWSWM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$WINDOWSWMPROTO" 2>&1`
30434        else
30435	        WINDOWSWM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$WINDOWSWMPROTO" 2>&1`
30436        fi
30437	# Put the nasty error message in config.log where it belongs
30438	echo "$WINDOWSWM_PKG_ERRORS" >&5
30439
30440	as_fn_error $? "Package requirements ($WINDOWSWMPROTO) were not met:
30441
30442$WINDOWSWM_PKG_ERRORS
30443
30444Consider adjusting the PKG_CONFIG_PATH environment variable if you
30445installed software in a non-standard prefix.
30446
30447Alternatively, you may set the environment variables WINDOWSWM_CFLAGS
30448and WINDOWSWM_LIBS to avoid the need to call pkg-config.
30449See the pkg-config man page for more details." "$LINENO" 5
30450elif test $pkg_failed = untried; then
30451     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30452$as_echo "no" >&6; }
30453	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30455as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30456is in your PATH or set the PKG_CONFIG environment variable to the full
30457path to pkg-config.
30458
30459Alternatively, you may set the environment variables WINDOWSWM_CFLAGS
30460and WINDOWSWM_LIBS to avoid the need to call pkg-config.
30461See the pkg-config man page for more details.
30462
30463To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30464See \`config.log' for more details" "$LINENO" 5; }
30465else
30466	WINDOWSWM_CFLAGS=$pkg_cv_WINDOWSWM_CFLAGS
30467	WINDOWSWM_LIBS=$pkg_cv_WINDOWSWM_LIBS
30468        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30469$as_echo "yes" >&6; }
30470
30471fi
30472		XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS $WINDOWSWM_CFLAGS"
30473
30474$as_echo "#define ROOTLESS 1" >>confdefs.h
30475
30476	fi
30477
30478	if test "x$WINDOWSDRI" = xauto; then
30479		if test -n "$PKG_CONFIG" && \
30480    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5
30481  ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5
30482  ac_status=$?
30483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30484  test $ac_status = 0; }; then
30485  WINDOWSDRI=yes
30486else
30487  WINDOWSDRI=no
30488fi
30489	fi
30490	if test "x$WINDOWSDRI" = xyes ; then
30491
30492pkg_failed=no
30493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WINDOWSDRI" >&5
30494$as_echo_n "checking for WINDOWSDRI... " >&6; }
30495
30496if test -n "$WINDOWSDRI_CFLAGS"; then
30497    pkg_cv_WINDOWSDRI_CFLAGS="$WINDOWSDRI_CFLAGS"
30498 elif test -n "$PKG_CONFIG"; then
30499    if test -n "$PKG_CONFIG" && \
30500    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5
30501  ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5
30502  ac_status=$?
30503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30504  test $ac_status = 0; }; then
30505  pkg_cv_WINDOWSDRI_CFLAGS=`$PKG_CONFIG --cflags "windowsdriproto" 2>/dev/null`
30506		      test "x$?" != "x0" && pkg_failed=yes
30507else
30508  pkg_failed=yes
30509fi
30510 else
30511    pkg_failed=untried
30512fi
30513if test -n "$WINDOWSDRI_LIBS"; then
30514    pkg_cv_WINDOWSDRI_LIBS="$WINDOWSDRI_LIBS"
30515 elif test -n "$PKG_CONFIG"; then
30516    if test -n "$PKG_CONFIG" && \
30517    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5
30518  ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5
30519  ac_status=$?
30520  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30521  test $ac_status = 0; }; then
30522  pkg_cv_WINDOWSDRI_LIBS=`$PKG_CONFIG --libs "windowsdriproto" 2>/dev/null`
30523		      test "x$?" != "x0" && pkg_failed=yes
30524else
30525  pkg_failed=yes
30526fi
30527 else
30528    pkg_failed=untried
30529fi
30530
30531
30532
30533if test $pkg_failed = yes; then
30534   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30535$as_echo "no" >&6; }
30536
30537if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30538        _pkg_short_errors_supported=yes
30539else
30540        _pkg_short_errors_supported=no
30541fi
30542        if test $_pkg_short_errors_supported = yes; then
30543	        WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "windowsdriproto" 2>&1`
30544        else
30545	        WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "windowsdriproto" 2>&1`
30546        fi
30547	# Put the nasty error message in config.log where it belongs
30548	echo "$WINDOWSDRI_PKG_ERRORS" >&5
30549
30550	as_fn_error $? "Package requirements (windowsdriproto) were not met:
30551
30552$WINDOWSDRI_PKG_ERRORS
30553
30554Consider adjusting the PKG_CONFIG_PATH environment variable if you
30555installed software in a non-standard prefix.
30556
30557Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS
30558and WINDOWSDRI_LIBS to avoid the need to call pkg-config.
30559See the pkg-config man page for more details." "$LINENO" 5
30560elif test $pkg_failed = untried; then
30561     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30562$as_echo "no" >&6; }
30563	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30565as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30566is in your PATH or set the PKG_CONFIG environment variable to the full
30567path to pkg-config.
30568
30569Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS
30570and WINDOWSDRI_LIBS to avoid the need to call pkg-config.
30571See the pkg-config man page for more details.
30572
30573To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30574See \`config.log' for more details" "$LINENO" 5; }
30575else
30576	WINDOWSDRI_CFLAGS=$pkg_cv_WINDOWSDRI_CFLAGS
30577	WINDOWSDRI_LIBS=$pkg_cv_WINDOWSDRI_LIBS
30578        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30579$as_echo "yes" >&6; }
30580
30581fi
30582	fi
30583
30584	case $host_os in
30585		cygwin*)
30586			XWIN_SERVER_NAME=XWin
30587
30588$as_echo "#define HAS_DEVWINDOWS 1" >>confdefs.h
30589
30590			;;
30591		mingw*)
30592			XWIN_SERVER_NAME=Xming
30593
30594$as_echo "#define RELOCATE_PROJECTROOT 1" >>confdefs.h
30595
30596
30597$as_echo "#define HAS_WINSOCK 1" >>confdefs.h
30598
30599			XWIN_SYS_LIBS="-lpthread -lws2_32"
30600			;;
30601	esac
30602
30603	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 $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $OS_LIB"
30604	XWIN_SYS_LIBS="$XWIN_SYS_LIBS $XWINMODULES_LIBS"
30605
30606
30607
30608
30609	if test "x$DEBUGGING" = xyes; then
30610
30611$as_echo "#define CYGDEBUG 1" >>confdefs.h
30612
30613
30614$as_echo "#define CYGWINDOWING_DEBUG 1" >>confdefs.h
30615
30616
30617$as_echo "#define CYGMULTIWINDOW_DEBUG 1" >>confdefs.h
30618
30619	fi
30620
30621
30622$as_echo "#define DDXOSVERRORF 1" >>confdefs.h
30623
30624
30625$as_echo "#define DDXBEFORERESET 1" >>confdefs.h
30626
30627
30628	if test "x$XWIN" = xyes && test "x$GLX" = xyes ; then
30629           # Extract the first word of "python3", so it can be a program name with args.
30630set dummy python3; ac_word=$2
30631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30632$as_echo_n "checking for $ac_word... " >&6; }
30633if ${ac_cv_prog_PYTHON3+:} false; then :
30634  $as_echo_n "(cached) " >&6
30635else
30636  if test -n "$PYTHON3"; then
30637  ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test.
30638else
30639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30640for as_dir in $PATH
30641do
30642  IFS=$as_save_IFS
30643  test -z "$as_dir" && as_dir=.
30644    for ac_exec_ext in '' $ac_executable_extensions; do
30645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30646    ac_cv_prog_PYTHON3="python3"
30647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30648    break 2
30649  fi
30650done
30651  done
30652IFS=$as_save_IFS
30653
30654fi
30655fi
30656PYTHON3=$ac_cv_prog_PYTHON3
30657if test -n "$PYTHON3"; then
30658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
30659$as_echo "$PYTHON3" >&6; }
30660else
30661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30662$as_echo "no" >&6; }
30663fi
30664
30665
30666           if test -z "$PYTHON3"; then
30667                as_fn_error $? "python3 not found" "$LINENO" 5
30668           fi
30669           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module lxml" >&5
30670$as_echo_n "checking for python module lxml... " >&6; }
30671           $PYTHON3 -c "import lxml;"
30672           if test $? -ne 0 ; then
30673                as_fn_error $? "not found" "$LINENO" 5
30674           fi
30675           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30676$as_echo "yes" >&6; }
30677           if test "x$KHRONOS_SPEC_DIR" = "xauto" ; then
30678
30679pkg_failed=no
30680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for KHRONOS_OPENGL_REGISTRY" >&5
30681$as_echo_n "checking for KHRONOS_OPENGL_REGISTRY... " >&6; }
30682
30683if test -n "$KHRONOS_OPENGL_REGISTRY_CFLAGS"; then
30684    pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS="$KHRONOS_OPENGL_REGISTRY_CFLAGS"
30685 elif test -n "$PKG_CONFIG"; then
30686    if test -n "$PKG_CONFIG" && \
30687    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5
30688  ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5
30689  ac_status=$?
30690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30691  test $ac_status = 0; }; then
30692  pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS=`$PKG_CONFIG --cflags "khronos-opengl-registry" 2>/dev/null`
30693		      test "x$?" != "x0" && pkg_failed=yes
30694else
30695  pkg_failed=yes
30696fi
30697 else
30698    pkg_failed=untried
30699fi
30700if test -n "$KHRONOS_OPENGL_REGISTRY_LIBS"; then
30701    pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS="$KHRONOS_OPENGL_REGISTRY_LIBS"
30702 elif test -n "$PKG_CONFIG"; then
30703    if test -n "$PKG_CONFIG" && \
30704    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5
30705  ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5
30706  ac_status=$?
30707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30708  test $ac_status = 0; }; then
30709  pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS=`$PKG_CONFIG --libs "khronos-opengl-registry" 2>/dev/null`
30710		      test "x$?" != "x0" && pkg_failed=yes
30711else
30712  pkg_failed=yes
30713fi
30714 else
30715    pkg_failed=untried
30716fi
30717
30718
30719
30720if test $pkg_failed = yes; then
30721   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30722$as_echo "no" >&6; }
30723
30724if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30725        _pkg_short_errors_supported=yes
30726else
30727        _pkg_short_errors_supported=no
30728fi
30729        if test $_pkg_short_errors_supported = yes; then
30730	        KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "khronos-opengl-registry" 2>&1`
30731        else
30732	        KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "khronos-opengl-registry" 2>&1`
30733        fi
30734	# Put the nasty error message in config.log where it belongs
30735	echo "$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS" >&5
30736
30737	as_fn_error $? "Package requirements (khronos-opengl-registry) were not met:
30738
30739$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS
30740
30741Consider adjusting the PKG_CONFIG_PATH environment variable if you
30742installed software in a non-standard prefix.
30743
30744Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS
30745and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config.
30746See the pkg-config man page for more details." "$LINENO" 5
30747elif test $pkg_failed = untried; then
30748     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30749$as_echo "no" >&6; }
30750	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30751$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30752as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30753is in your PATH or set the PKG_CONFIG environment variable to the full
30754path to pkg-config.
30755
30756Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS
30757and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config.
30758See the pkg-config man page for more details.
30759
30760To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30761See \`config.log' for more details" "$LINENO" 5; }
30762else
30763	KHRONOS_OPENGL_REGISTRY_CFLAGS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS
30764	KHRONOS_OPENGL_REGISTRY_LIBS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS
30765        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30766$as_echo "yes" >&6; }
30767
30768fi
30769		KHRONOS_SPEC_DIR=`pkg-config khronos-opengl-registry --variable=specdir`
30770           fi
30771
30772	fi
30773
30774fi
30775 if test "x$XWIN" = xyes; then
30776  XWIN_TRUE=
30777  XWIN_FALSE='#'
30778else
30779  XWIN_TRUE='#'
30780  XWIN_FALSE=
30781fi
30782
30783 if test "x$XWIN" = xyes && test "x$WINDOWSWM" = xyes; then
30784  XWIN_MULTIWINDOWEXTWM_TRUE=
30785  XWIN_MULTIWINDOWEXTWM_FALSE='#'
30786else
30787  XWIN_MULTIWINDOWEXTWM_TRUE='#'
30788  XWIN_MULTIWINDOWEXTWM_FALSE=
30789fi
30790
30791 if test "x$XWIN" = xyes && test "x$GLX" = xyes; then
30792  XWIN_GLX_WINDOWS_TRUE=
30793  XWIN_GLX_WINDOWS_FALSE='#'
30794else
30795  XWIN_GLX_WINDOWS_TRUE='#'
30796  XWIN_GLX_WINDOWS_FALSE=
30797fi
30798
30799 if test "x$XWIN" = xyes && test "x$WINDOWSDRI" = xyes; then
30800  XWIN_WINDOWS_DRI_TRUE=
30801  XWIN_WINDOWS_DRI_FALSE='#'
30802else
30803  XWIN_WINDOWS_DRI_TRUE='#'
30804  XWIN_WINDOWS_DRI_FALSE=
30805fi
30806
30807
30808if test "x$XQUARTZ" = xyes; then
30809
30810$as_echo "#define XQUARTZ 1" >>confdefs.h
30811
30812
30813$as_echo "#define ROOTLESS 1" >>confdefs.h
30814
30815
30816	XQUARTZ_LIBS="$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 $PRESENT_LIB"
30817
30818
30819	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xp_init in -lXplugin" >&5
30820$as_echo_n "checking for xp_init in -lXplugin... " >&6; }
30821if ${ac_cv_lib_Xplugin_xp_init+:} false; then :
30822  $as_echo_n "(cached) " >&6
30823else
30824  ac_check_lib_save_LIBS=$LIBS
30825LIBS="-lXplugin  $LIBS"
30826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30827/* end confdefs.h.  */
30828
30829/* Override any GCC internal prototype to avoid an error.
30830   Use char because int might match the return type of a GCC
30831   builtin and then its argument prototype would still apply.  */
30832#ifdef __cplusplus
30833extern "C"
30834#endif
30835char xp_init ();
30836int
30837main ()
30838{
30839return xp_init ();
30840  ;
30841  return 0;
30842}
30843_ACEOF
30844if ac_fn_c_try_link "$LINENO"; then :
30845  ac_cv_lib_Xplugin_xp_init=yes
30846else
30847  ac_cv_lib_Xplugin_xp_init=no
30848fi
30849rm -f core conftest.err conftest.$ac_objext \
30850    conftest$ac_exeext conftest.$ac_ext
30851LIBS=$ac_check_lib_save_LIBS
30852fi
30853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xplugin_xp_init" >&5
30854$as_echo "$ac_cv_lib_Xplugin_xp_init" >&6; }
30855if test "x$ac_cv_lib_Xplugin_xp_init" = xyes; then :
30856  :
30857fi
30858
30859
30860	CFLAGS="${CFLAGS} -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA"
30861
30862
30863pkg_failed=no
30864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPBPROXY" >&5
30865$as_echo_n "checking for XPBPROXY... " >&6; }
30866
30867if test -n "$XPBPROXY_CFLAGS"; then
30868    pkg_cv_XPBPROXY_CFLAGS="$XPBPROXY_CFLAGS"
30869 elif test -n "$PKG_CONFIG"; then
30870    if test -n "$PKG_CONFIG" && \
30871    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5
30872  ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5
30873  ac_status=$?
30874  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30875  test $ac_status = 0; }; then
30876  pkg_cv_XPBPROXY_CFLAGS=`$PKG_CONFIG --cflags "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null`
30877		      test "x$?" != "x0" && pkg_failed=yes
30878else
30879  pkg_failed=yes
30880fi
30881 else
30882    pkg_failed=untried
30883fi
30884if test -n "$XPBPROXY_LIBS"; then
30885    pkg_cv_XPBPROXY_LIBS="$XPBPROXY_LIBS"
30886 elif test -n "$PKG_CONFIG"; then
30887    if test -n "$PKG_CONFIG" && \
30888    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5
30889  ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5
30890  ac_status=$?
30891  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30892  test $ac_status = 0; }; then
30893  pkg_cv_XPBPROXY_LIBS=`$PKG_CONFIG --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null`
30894		      test "x$?" != "x0" && pkg_failed=yes
30895else
30896  pkg_failed=yes
30897fi
30898 else
30899    pkg_failed=untried
30900fi
30901
30902
30903
30904if test $pkg_failed = yes; then
30905   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30906$as_echo "no" >&6; }
30907
30908if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30909        _pkg_short_errors_supported=yes
30910else
30911        _pkg_short_errors_supported=no
30912fi
30913        if test $_pkg_short_errors_supported = yes; then
30914	        XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1`
30915        else
30916	        XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1`
30917        fi
30918	# Put the nasty error message in config.log where it belongs
30919	echo "$XPBPROXY_PKG_ERRORS" >&5
30920
30921	as_fn_error $? "Package requirements ($APPLEWMPROTO $LIBAPPLEWM xfixes x11) were not met:
30922
30923$XPBPROXY_PKG_ERRORS
30924
30925Consider adjusting the PKG_CONFIG_PATH environment variable if you
30926installed software in a non-standard prefix.
30927
30928Alternatively, you may set the environment variables XPBPROXY_CFLAGS
30929and XPBPROXY_LIBS to avoid the need to call pkg-config.
30930See the pkg-config man page for more details." "$LINENO" 5
30931elif test $pkg_failed = untried; then
30932     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30933$as_echo "no" >&6; }
30934	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30936as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30937is in your PATH or set the PKG_CONFIG environment variable to the full
30938path to pkg-config.
30939
30940Alternatively, you may set the environment variables XPBPROXY_CFLAGS
30941and XPBPROXY_LIBS to avoid the need to call pkg-config.
30942See the pkg-config man page for more details.
30943
30944To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30945See \`config.log' for more details" "$LINENO" 5; }
30946else
30947	XPBPROXY_CFLAGS=$pkg_cv_XPBPROXY_CFLAGS
30948	XPBPROXY_LIBS=$pkg_cv_XPBPROXY_LIBS
30949        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30950$as_echo "yes" >&6; }
30951
30952fi
30953
30954        if test "x$XQUARTZ_SPARKLE" = xyes ; then
30955
30956$as_echo "#define XQUARTZ_SPARKLE 1" >>confdefs.h
30957
30958        fi
30959
30960	if test "x$STANDALONE_XPBPROXY" = xyes ; then
30961
30962$as_echo "#define STANDALONE_XPBPROXY 1" >>confdefs.h
30963
30964	fi
30965fi
30966
30967 if test "x$XQUARTZ" = xyes -o "x$XWIN" = xyes ; then
30968  PSEUDORAMIX_TRUE=
30969  PSEUDORAMIX_FALSE='#'
30970else
30971  PSEUDORAMIX_TRUE='#'
30972  PSEUDORAMIX_FALSE=
30973fi
30974
30975
30976# Support for objc in autotools is minimal and not documented.
30977OBJC='$(CC)'
30978OBJCLD='$(CCLD)'
30979OBJCLINK='$(LINK)'
30980OBJCFLAGS='$(CFLAGS)'
30981
30982
30983
30984
30985# internal, undocumented automake func follows :(
30986
30987depcc="$OBJC" am_compiler_list='gcc3 gcc'
30988
30989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
30990$as_echo_n "checking dependency style of $depcc... " >&6; }
30991if ${am_cv_OBJC_dependencies_compiler_type+:} false; then :
30992  $as_echo_n "(cached) " >&6
30993else
30994  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
30995  # We make a subdir and do the tests there.  Otherwise we can end up
30996  # making bogus files that we don't know about and never remove.  For
30997  # instance it was reported that on HP-UX the gcc test will end up
30998  # making a dummy file named 'D' -- because '-MD' means "put the output
30999  # in D".
31000  rm -rf conftest.dir
31001  mkdir conftest.dir
31002  # Copy depcomp to subdir because otherwise we won't find it if we're
31003  # using a relative directory.
31004  cp "$am_depcomp" conftest.dir
31005  cd conftest.dir
31006  # We will build objects and dependencies in a subdirectory because
31007  # it helps to detect inapplicable dependency modes.  For instance
31008  # both Tru64's cc and ICC support -MD to output dependencies as a
31009  # side effect of compilation, but ICC will put the dependencies in
31010  # the current directory while Tru64 will put them in the object
31011  # directory.
31012  mkdir sub
31013
31014  am_cv_OBJC_dependencies_compiler_type=none
31015  if test "$am_compiler_list" = ""; then
31016     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
31017  fi
31018  am__universal=false
31019
31020
31021  for depmode in $am_compiler_list; do
31022    # Setup a source with many dependencies, because some compilers
31023    # like to wrap large dependency lists on column 80 (with \), and
31024    # we should not choose a depcomp mode which is confused by this.
31025    #
31026    # We need to recreate these files for each test, as the compiler may
31027    # overwrite some of them when testing with obscure command lines.
31028    # This happens at least with the AIX C compiler.
31029    : > sub/conftest.c
31030    for i in 1 2 3 4 5 6; do
31031      echo '#include "conftst'$i'.h"' >> sub/conftest.c
31032      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
31033      # Solaris 10 /bin/sh.
31034      echo '/* dummy */' > sub/conftst$i.h
31035    done
31036    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
31037
31038    # We check with '-c' and '-o' for the sake of the "dashmstdout"
31039    # mode.  It turns out that the SunPro C++ compiler does not properly
31040    # handle '-M -o', and we need to detect this.  Also, some Intel
31041    # versions had trouble with output in subdirs.
31042    am__obj=sub/conftest.${OBJEXT-o}
31043    am__minus_obj="-o $am__obj"
31044    case $depmode in
31045    gcc)
31046      # This depmode causes a compiler race in universal mode.
31047      test "$am__universal" = false || continue
31048      ;;
31049    nosideeffect)
31050      # After this tag, mechanisms are not by side-effect, so they'll
31051      # only be used when explicitly requested.
31052      if test "x$enable_dependency_tracking" = xyes; then
31053	continue
31054      else
31055	break
31056      fi
31057      ;;
31058    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
31059      # This compiler won't grok '-c -o', but also, the minuso test has
31060      # not run yet.  These depmodes are late enough in the game, and
31061      # so weak that their functioning should not be impacted.
31062      am__obj=conftest.${OBJEXT-o}
31063      am__minus_obj=
31064      ;;
31065    none) break ;;
31066    esac
31067    if depmode=$depmode \
31068       source=sub/conftest.c object=$am__obj \
31069       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
31070       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
31071         >/dev/null 2>conftest.err &&
31072       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
31073       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
31074       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
31075       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
31076      # icc doesn't choke on unknown options, it will just issue warnings
31077      # or remarks (even with -Werror).  So we grep stderr for any message
31078      # that says an option was ignored or not supported.
31079      # When given -MP, icc 7.0 and 7.1 complain thusly:
31080      #   icc: Command line warning: ignoring option '-M'; no argument required
31081      # The diagnosis changed in icc 8.0:
31082      #   icc: Command line remark: option '-MP' not supported
31083      if (grep 'ignoring option' conftest.err ||
31084          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
31085        am_cv_OBJC_dependencies_compiler_type=$depmode
31086        break
31087      fi
31088    fi
31089  done
31090
31091  cd ..
31092  rm -rf conftest.dir
31093else
31094  am_cv_OBJC_dependencies_compiler_type=none
31095fi
31096
31097fi
31098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5
31099$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
31100OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
31101
31102 if
31103  test "x$enable_dependency_tracking" != xno \
31104  && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
31105  am__fastdepOBJC_TRUE=
31106  am__fastdepOBJC_FALSE='#'
31107else
31108  am__fastdepOBJC_TRUE='#'
31109  am__fastdepOBJC_FALSE=
31110fi
31111
31112
31113 if test "x$XQUARTZ" = xyes; then
31114  XQUARTZ_TRUE=
31115  XQUARTZ_FALSE='#'
31116else
31117  XQUARTZ_TRUE='#'
31118  XQUARTZ_FALSE=
31119fi
31120
31121 if test "x$XQUARTZ_SPARKLE" != "xno"; then
31122  XQUARTZ_SPARKLE_TRUE=
31123  XQUARTZ_SPARKLE_FALSE='#'
31124else
31125  XQUARTZ_SPARKLE_TRUE='#'
31126  XQUARTZ_SPARKLE_FALSE=
31127fi
31128
31129 if test "x$STANDALONE_XPBPROXY" = xyes; then
31130  STANDALONE_XPBPROXY_TRUE=
31131  STANDALONE_XPBPROXY_FALSE='#'
31132else
31133  STANDALONE_XPBPROXY_TRUE='#'
31134  STANDALONE_XPBPROXY_FALSE=
31135fi
31136
31137
31138
31139pkg_failed=no
31140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXMODULES" >&5
31141$as_echo_n "checking for DMXMODULES... " >&6; }
31142
31143if test -n "$DMXMODULES_CFLAGS"; then
31144    pkg_cv_DMXMODULES_CFLAGS="$DMXMODULES_CFLAGS"
31145 elif test -n "$PKG_CONFIG"; then
31146    if test -n "$PKG_CONFIG" && \
31147    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu \$LIBXEXT x11 >= 1.6 xrender xfixes \$LIBXI \$DMXPROTO xau \$XDMCP_MODULES\""; } >&5
31148  ($PKG_CONFIG --exists --print-errors "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES") 2>&5
31149  ac_status=$?
31150  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31151  test $ac_status = 0; }; then
31152  pkg_cv_DMXMODULES_CFLAGS=`$PKG_CONFIG --cflags "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>/dev/null`
31153		      test "x$?" != "x0" && pkg_failed=yes
31154else
31155  pkg_failed=yes
31156fi
31157 else
31158    pkg_failed=untried
31159fi
31160if test -n "$DMXMODULES_LIBS"; then
31161    pkg_cv_DMXMODULES_LIBS="$DMXMODULES_LIBS"
31162 elif test -n "$PKG_CONFIG"; then
31163    if test -n "$PKG_CONFIG" && \
31164    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu \$LIBXEXT x11 >= 1.6 xrender xfixes \$LIBXI \$DMXPROTO xau \$XDMCP_MODULES\""; } >&5
31165  ($PKG_CONFIG --exists --print-errors "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES") 2>&5
31166  ac_status=$?
31167  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31168  test $ac_status = 0; }; then
31169  pkg_cv_DMXMODULES_LIBS=`$PKG_CONFIG --libs "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>/dev/null`
31170		      test "x$?" != "x0" && pkg_failed=yes
31171else
31172  pkg_failed=yes
31173fi
31174 else
31175    pkg_failed=untried
31176fi
31177
31178
31179
31180if test $pkg_failed = yes; then
31181   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31182$as_echo "no" >&6; }
31183
31184if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31185        _pkg_short_errors_supported=yes
31186else
31187        _pkg_short_errors_supported=no
31188fi
31189        if test $_pkg_short_errors_supported = yes; then
31190	        DMXMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>&1`
31191        else
31192	        DMXMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>&1`
31193        fi
31194	# Put the nasty error message in config.log where it belongs
31195	echo "$DMXMODULES_PKG_ERRORS" >&5
31196
31197	have_dmx=no
31198elif test $pkg_failed = untried; then
31199     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31200$as_echo "no" >&6; }
31201	have_dmx=no
31202else
31203	DMXMODULES_CFLAGS=$pkg_cv_DMXMODULES_CFLAGS
31204	DMXMODULES_LIBS=$pkg_cv_DMXMODULES_LIBS
31205        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31206$as_echo "yes" >&6; }
31207
31208pkg_failed=no
31209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMXCONFIG_DEP" >&5
31210$as_echo_n "checking for XDMXCONFIG_DEP... " >&6; }
31211
31212if test -n "$XDMXCONFIG_DEP_CFLAGS"; then
31213    pkg_cv_XDMXCONFIG_DEP_CFLAGS="$XDMXCONFIG_DEP_CFLAGS"
31214 elif test -n "$PKG_CONFIG"; then
31215    if test -n "$PKG_CONFIG" && \
31216    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\""; } >&5
31217  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5
31218  ac_status=$?
31219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31220  test $ac_status = 0; }; then
31221  pkg_cv_XDMXCONFIG_DEP_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt xpm x11" 2>/dev/null`
31222		      test "x$?" != "x0" && pkg_failed=yes
31223else
31224  pkg_failed=yes
31225fi
31226 else
31227    pkg_failed=untried
31228fi
31229if test -n "$XDMXCONFIG_DEP_LIBS"; then
31230    pkg_cv_XDMXCONFIG_DEP_LIBS="$XDMXCONFIG_DEP_LIBS"
31231 elif test -n "$PKG_CONFIG"; then
31232    if test -n "$PKG_CONFIG" && \
31233    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\""; } >&5
31234  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5
31235  ac_status=$?
31236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31237  test $ac_status = 0; }; then
31238  pkg_cv_XDMXCONFIG_DEP_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt xpm x11" 2>/dev/null`
31239		      test "x$?" != "x0" && pkg_failed=yes
31240else
31241  pkg_failed=yes
31242fi
31243 else
31244    pkg_failed=untried
31245fi
31246
31247
31248
31249if test $pkg_failed = yes; then
31250   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31251$as_echo "no" >&6; }
31252
31253if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31254        _pkg_short_errors_supported=yes
31255else
31256        _pkg_short_errors_supported=no
31257fi
31258        if test $_pkg_short_errors_supported = yes; then
31259	        XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt xpm x11" 2>&1`
31260        else
31261	        XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt xpm x11" 2>&1`
31262        fi
31263	# Put the nasty error message in config.log where it belongs
31264	echo "$XDMXCONFIG_DEP_PKG_ERRORS" >&5
31265
31266	have_dmx=no
31267elif test $pkg_failed = untried; then
31268     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31269$as_echo "no" >&6; }
31270	have_dmx=no
31271else
31272	XDMXCONFIG_DEP_CFLAGS=$pkg_cv_XDMXCONFIG_DEP_CFLAGS
31273	XDMXCONFIG_DEP_LIBS=$pkg_cv_XDMXCONFIG_DEP_LIBS
31274        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31275$as_echo "yes" >&6; }
31276	have_dmx=yes
31277fi
31278fi
31279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xdmx DDX" >&5
31280$as_echo_n "checking whether to build Xdmx DDX... " >&6; }
31281if test "x$DMX" = xauto; then
31282	DMX="$have_dmx"
31283	case $host_os in
31284		cygwin*) DMX="no" ;;
31285		mingw*)  DMX="no" ;;
31286		darwin*) DMX="no" ;;
31287	esac
31288fi
31289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMX" >&5
31290$as_echo "$DMX" >&6; }
31291 if test "x$DMX" = xyes; then
31292  DMX_TRUE=
31293  DMX_FALSE='#'
31294else
31295  DMX_TRUE='#'
31296  DMX_FALSE=
31297fi
31298
31299
31300if test "x$DMX" = xyes; then
31301	if test "x$have_dmx" = xno; then
31302		as_fn_error $? "Xdmx build explicitly requested, but required
31303		              modules not found." "$LINENO" 5
31304	fi
31305	DMX_INCLUDES="$XEXT_INC $RENDER_INC $RECORD_INC"
31306	XDMX_CFLAGS="$DMXMODULES_CFLAGS"
31307	XDMX_LIBS="$FB_LIB $MI_LIB $XEXT_LIB $RENDER_LIB $RECORD_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_SHADOW_LIB $MIEXT_DAMAGE_LIB $COMPOSITE_LIB $DAMAGE_LIB $MAIN_LIB $DIX_LIB $RANDR_LIB $CONFIG_LIB $OS_LIB $FIXES_LIB"
31308	XDMX_SYS_LIBS="$DMXMODULES_LIBS"
31309
31310
31311
31312
31313	ac_fn_c_check_header_mongrel "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
31314if test "x$ac_cv_header_linux_input_h" = xyes; then :
31315  DMX_BUILD_USB="yes"
31316else
31317  DMX_BUILD_USB="no"
31318fi
31319
31320
31321
31322
31323
31324pkg_failed=no
31325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXEXAMPLES_DEP" >&5
31326$as_echo_n "checking for DMXEXAMPLES_DEP... " >&6; }
31327
31328if test -n "$DMXEXAMPLES_DEP_CFLAGS"; then
31329    pkg_cv_DMXEXAMPLES_DEP_CFLAGS="$DMXEXAMPLES_DEP_CFLAGS"
31330 elif test -n "$PKG_CONFIG"; then
31331    if test -n "$PKG_CONFIG" && \
31332    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXEXT x11\""; } >&5
31333  ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXEXT x11") 2>&5
31334  ac_status=$?
31335  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31336  test $ac_status = 0; }; then
31337  pkg_cv_DMXEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX $LIBXEXT x11" 2>/dev/null`
31338		      test "x$?" != "x0" && pkg_failed=yes
31339else
31340  pkg_failed=yes
31341fi
31342 else
31343    pkg_failed=untried
31344fi
31345if test -n "$DMXEXAMPLES_DEP_LIBS"; then
31346    pkg_cv_DMXEXAMPLES_DEP_LIBS="$DMXEXAMPLES_DEP_LIBS"
31347 elif test -n "$PKG_CONFIG"; then
31348    if test -n "$PKG_CONFIG" && \
31349    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXEXT x11\""; } >&5
31350  ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXEXT x11") 2>&5
31351  ac_status=$?
31352  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31353  test $ac_status = 0; }; then
31354  pkg_cv_DMXEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX $LIBXEXT x11" 2>/dev/null`
31355		      test "x$?" != "x0" && pkg_failed=yes
31356else
31357  pkg_failed=yes
31358fi
31359 else
31360    pkg_failed=untried
31361fi
31362
31363
31364
31365if test $pkg_failed = yes; then
31366   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31367$as_echo "no" >&6; }
31368
31369if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31370        _pkg_short_errors_supported=yes
31371else
31372        _pkg_short_errors_supported=no
31373fi
31374        if test $_pkg_short_errors_supported = yes; then
31375	        DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDMX $LIBXEXT x11" 2>&1`
31376        else
31377	        DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDMX $LIBXEXT x11" 2>&1`
31378        fi
31379	# Put the nasty error message in config.log where it belongs
31380	echo "$DMXEXAMPLES_DEP_PKG_ERRORS" >&5
31381
31382	as_fn_error $? "Package requirements ($LIBDMX $LIBXEXT x11) were not met:
31383
31384$DMXEXAMPLES_DEP_PKG_ERRORS
31385
31386Consider adjusting the PKG_CONFIG_PATH environment variable if you
31387installed software in a non-standard prefix.
31388
31389Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS
31390and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31391See the pkg-config man page for more details." "$LINENO" 5
31392elif test $pkg_failed = untried; then
31393     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31394$as_echo "no" >&6; }
31395	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31397as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31398is in your PATH or set the PKG_CONFIG environment variable to the full
31399path to pkg-config.
31400
31401Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS
31402and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31403See the pkg-config man page for more details.
31404
31405To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31406See \`config.log' for more details" "$LINENO" 5; }
31407else
31408	DMXEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXEXAMPLES_DEP_CFLAGS
31409	DMXEXAMPLES_DEP_LIBS=$pkg_cv_DMXEXAMPLES_DEP_LIBS
31410        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31411$as_echo "yes" >&6; }
31412
31413fi
31414
31415
31416pkg_failed=no
31417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXXMUEXAMPLES_DEP" >&5
31418$as_echo_n "checking for DMXXMUEXAMPLES_DEP... " >&6; }
31419
31420if test -n "$DMXXMUEXAMPLES_DEP_CFLAGS"; then
31421    pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS="$DMXXMUEXAMPLES_DEP_CFLAGS"
31422 elif test -n "$PKG_CONFIG"; then
31423    if test -n "$PKG_CONFIG" && \
31424    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX xmu \$LIBXEXT x11\""; } >&5
31425  ($PKG_CONFIG --exists --print-errors "$LIBDMX xmu $LIBXEXT x11") 2>&5
31426  ac_status=$?
31427  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31428  test $ac_status = 0; }; then
31429  pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX xmu $LIBXEXT x11" 2>/dev/null`
31430		      test "x$?" != "x0" && pkg_failed=yes
31431else
31432  pkg_failed=yes
31433fi
31434 else
31435    pkg_failed=untried
31436fi
31437if test -n "$DMXXMUEXAMPLES_DEP_LIBS"; then
31438    pkg_cv_DMXXMUEXAMPLES_DEP_LIBS="$DMXXMUEXAMPLES_DEP_LIBS"
31439 elif test -n "$PKG_CONFIG"; then
31440    if test -n "$PKG_CONFIG" && \
31441    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX xmu \$LIBXEXT x11\""; } >&5
31442  ($PKG_CONFIG --exists --print-errors "$LIBDMX xmu $LIBXEXT x11") 2>&5
31443  ac_status=$?
31444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31445  test $ac_status = 0; }; then
31446  pkg_cv_DMXXMUEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX xmu $LIBXEXT x11" 2>/dev/null`
31447		      test "x$?" != "x0" && pkg_failed=yes
31448else
31449  pkg_failed=yes
31450fi
31451 else
31452    pkg_failed=untried
31453fi
31454
31455
31456
31457if test $pkg_failed = yes; then
31458   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31459$as_echo "no" >&6; }
31460
31461if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31462        _pkg_short_errors_supported=yes
31463else
31464        _pkg_short_errors_supported=no
31465fi
31466        if test $_pkg_short_errors_supported = yes; then
31467	        DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDMX xmu $LIBXEXT x11" 2>&1`
31468        else
31469	        DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDMX xmu $LIBXEXT x11" 2>&1`
31470        fi
31471	# Put the nasty error message in config.log where it belongs
31472	echo "$DMXXMUEXAMPLES_DEP_PKG_ERRORS" >&5
31473
31474	as_fn_error $? "Package requirements ($LIBDMX xmu $LIBXEXT x11) were not met:
31475
31476$DMXXMUEXAMPLES_DEP_PKG_ERRORS
31477
31478Consider adjusting the PKG_CONFIG_PATH environment variable if you
31479installed software in a non-standard prefix.
31480
31481Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS
31482and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31483See the pkg-config man page for more details." "$LINENO" 5
31484elif test $pkg_failed = untried; then
31485     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31486$as_echo "no" >&6; }
31487	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31489as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31490is in your PATH or set the PKG_CONFIG environment variable to the full
31491path to pkg-config.
31492
31493Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS
31494and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31495See the pkg-config man page for more details.
31496
31497To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31498See \`config.log' for more details" "$LINENO" 5; }
31499else
31500	DMXXMUEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS
31501	DMXXMUEXAMPLES_DEP_LIBS=$pkg_cv_DMXXMUEXAMPLES_DEP_LIBS
31502        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31503$as_echo "yes" >&6; }
31504
31505fi
31506
31507
31508pkg_failed=no
31509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXXIEXAMPLES_DEP" >&5
31510$as_echo_n "checking for DMXXIEXAMPLES_DEP... " >&6; }
31511
31512if test -n "$DMXXIEXAMPLES_DEP_CFLAGS"; then
31513    pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS="$DMXXIEXAMPLES_DEP_CFLAGS"
31514 elif test -n "$PKG_CONFIG"; then
31515    if test -n "$PKG_CONFIG" && \
31516    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXI \$LIBXEXT x11\""; } >&5
31517  ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXI $LIBXEXT x11") 2>&5
31518  ac_status=$?
31519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31520  test $ac_status = 0; }; then
31521  pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX $LIBXI $LIBXEXT x11" 2>/dev/null`
31522		      test "x$?" != "x0" && pkg_failed=yes
31523else
31524  pkg_failed=yes
31525fi
31526 else
31527    pkg_failed=untried
31528fi
31529if test -n "$DMXXIEXAMPLES_DEP_LIBS"; then
31530    pkg_cv_DMXXIEXAMPLES_DEP_LIBS="$DMXXIEXAMPLES_DEP_LIBS"
31531 elif test -n "$PKG_CONFIG"; then
31532    if test -n "$PKG_CONFIG" && \
31533    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXI \$LIBXEXT x11\""; } >&5
31534  ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXI $LIBXEXT x11") 2>&5
31535  ac_status=$?
31536  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31537  test $ac_status = 0; }; then
31538  pkg_cv_DMXXIEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>/dev/null`
31539		      test "x$?" != "x0" && pkg_failed=yes
31540else
31541  pkg_failed=yes
31542fi
31543 else
31544    pkg_failed=untried
31545fi
31546
31547
31548
31549if test $pkg_failed = yes; then
31550   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31551$as_echo "no" >&6; }
31552
31553if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31554        _pkg_short_errors_supported=yes
31555else
31556        _pkg_short_errors_supported=no
31557fi
31558        if test $_pkg_short_errors_supported = yes; then
31559	        DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>&1`
31560        else
31561	        DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>&1`
31562        fi
31563	# Put the nasty error message in config.log where it belongs
31564	echo "$DMXXIEXAMPLES_DEP_PKG_ERRORS" >&5
31565
31566	as_fn_error $? "Package requirements ($LIBDMX $LIBXI $LIBXEXT x11) were not met:
31567
31568$DMXXIEXAMPLES_DEP_PKG_ERRORS
31569
31570Consider adjusting the PKG_CONFIG_PATH environment variable if you
31571installed software in a non-standard prefix.
31572
31573Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS
31574and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31575See the pkg-config man page for more details." "$LINENO" 5
31576elif test $pkg_failed = untried; then
31577     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31578$as_echo "no" >&6; }
31579	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31581as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31582is in your PATH or set the PKG_CONFIG environment variable to the full
31583path to pkg-config.
31584
31585Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS
31586and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31587See the pkg-config man page for more details.
31588
31589To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31590See \`config.log' for more details" "$LINENO" 5; }
31591else
31592	DMXXIEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS
31593	DMXXIEXAMPLES_DEP_LIBS=$pkg_cv_DMXXIEXAMPLES_DEP_LIBS
31594        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31595$as_echo "yes" >&6; }
31596
31597fi
31598
31599
31600pkg_failed=no
31601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTSTEXAMPLES_DEP" >&5
31602$as_echo_n "checking for XTSTEXAMPLES_DEP... " >&6; }
31603
31604if test -n "$XTSTEXAMPLES_DEP_CFLAGS"; then
31605    pkg_cv_XTSTEXAMPLES_DEP_CFLAGS="$XTSTEXAMPLES_DEP_CFLAGS"
31606 elif test -n "$PKG_CONFIG"; then
31607    if test -n "$PKG_CONFIG" && \
31608    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXTST \$LIBXEXT x11\""; } >&5
31609  ($PKG_CONFIG --exists --print-errors "$LIBXTST $LIBXEXT x11") 2>&5
31610  ac_status=$?
31611  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31612  test $ac_status = 0; }; then
31613  pkg_cv_XTSTEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBXTST $LIBXEXT x11" 2>/dev/null`
31614		      test "x$?" != "x0" && pkg_failed=yes
31615else
31616  pkg_failed=yes
31617fi
31618 else
31619    pkg_failed=untried
31620fi
31621if test -n "$XTSTEXAMPLES_DEP_LIBS"; then
31622    pkg_cv_XTSTEXAMPLES_DEP_LIBS="$XTSTEXAMPLES_DEP_LIBS"
31623 elif test -n "$PKG_CONFIG"; then
31624    if test -n "$PKG_CONFIG" && \
31625    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXTST \$LIBXEXT x11\""; } >&5
31626  ($PKG_CONFIG --exists --print-errors "$LIBXTST $LIBXEXT x11") 2>&5
31627  ac_status=$?
31628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31629  test $ac_status = 0; }; then
31630  pkg_cv_XTSTEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBXTST $LIBXEXT x11" 2>/dev/null`
31631		      test "x$?" != "x0" && pkg_failed=yes
31632else
31633  pkg_failed=yes
31634fi
31635 else
31636    pkg_failed=untried
31637fi
31638
31639
31640
31641if test $pkg_failed = yes; then
31642   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31643$as_echo "no" >&6; }
31644
31645if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31646        _pkg_short_errors_supported=yes
31647else
31648        _pkg_short_errors_supported=no
31649fi
31650        if test $_pkg_short_errors_supported = yes; then
31651	        XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXTST $LIBXEXT x11" 2>&1`
31652        else
31653	        XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXTST $LIBXEXT x11" 2>&1`
31654        fi
31655	# Put the nasty error message in config.log where it belongs
31656	echo "$XTSTEXAMPLES_DEP_PKG_ERRORS" >&5
31657
31658	as_fn_error $? "Package requirements ($LIBXTST $LIBXEXT x11) were not met:
31659
31660$XTSTEXAMPLES_DEP_PKG_ERRORS
31661
31662Consider adjusting the PKG_CONFIG_PATH environment variable if you
31663installed software in a non-standard prefix.
31664
31665Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS
31666and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31667See the pkg-config man page for more details." "$LINENO" 5
31668elif test $pkg_failed = untried; then
31669     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31670$as_echo "no" >&6; }
31671	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31673as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31674is in your PATH or set the PKG_CONFIG environment variable to the full
31675path to pkg-config.
31676
31677Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS
31678and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31679See the pkg-config man page for more details.
31680
31681To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31682See \`config.log' for more details" "$LINENO" 5; }
31683else
31684	XTSTEXAMPLES_DEP_CFLAGS=$pkg_cv_XTSTEXAMPLES_DEP_CFLAGS
31685	XTSTEXAMPLES_DEP_LIBS=$pkg_cv_XTSTEXAMPLES_DEP_LIBS
31686        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31687$as_echo "yes" >&6; }
31688
31689fi
31690
31691
31692pkg_failed=no
31693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRESEXAMPLES_DEP" >&5
31694$as_echo_n "checking for XRESEXAMPLES_DEP... " >&6; }
31695
31696if test -n "$XRESEXAMPLES_DEP_CFLAGS"; then
31697    pkg_cv_XRESEXAMPLES_DEP_CFLAGS="$XRESEXAMPLES_DEP_CFLAGS"
31698 elif test -n "$PKG_CONFIG"; then
31699    if test -n "$PKG_CONFIG" && \
31700    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xres \$LIBXEXT x11\""; } >&5
31701  ($PKG_CONFIG --exists --print-errors "xres $LIBXEXT x11") 2>&5
31702  ac_status=$?
31703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31704  test $ac_status = 0; }; then
31705  pkg_cv_XRESEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "xres $LIBXEXT x11" 2>/dev/null`
31706		      test "x$?" != "x0" && pkg_failed=yes
31707else
31708  pkg_failed=yes
31709fi
31710 else
31711    pkg_failed=untried
31712fi
31713if test -n "$XRESEXAMPLES_DEP_LIBS"; then
31714    pkg_cv_XRESEXAMPLES_DEP_LIBS="$XRESEXAMPLES_DEP_LIBS"
31715 elif test -n "$PKG_CONFIG"; then
31716    if test -n "$PKG_CONFIG" && \
31717    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xres \$LIBXEXT x11\""; } >&5
31718  ($PKG_CONFIG --exists --print-errors "xres $LIBXEXT x11") 2>&5
31719  ac_status=$?
31720  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31721  test $ac_status = 0; }; then
31722  pkg_cv_XRESEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "xres $LIBXEXT x11" 2>/dev/null`
31723		      test "x$?" != "x0" && pkg_failed=yes
31724else
31725  pkg_failed=yes
31726fi
31727 else
31728    pkg_failed=untried
31729fi
31730
31731
31732
31733if test $pkg_failed = yes; then
31734   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31735$as_echo "no" >&6; }
31736
31737if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31738        _pkg_short_errors_supported=yes
31739else
31740        _pkg_short_errors_supported=no
31741fi
31742        if test $_pkg_short_errors_supported = yes; then
31743	        XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xres $LIBXEXT x11" 2>&1`
31744        else
31745	        XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xres $LIBXEXT x11" 2>&1`
31746        fi
31747	# Put the nasty error message in config.log where it belongs
31748	echo "$XRESEXAMPLES_DEP_PKG_ERRORS" >&5
31749
31750	as_fn_error $? "Package requirements (xres $LIBXEXT x11) were not met:
31751
31752$XRESEXAMPLES_DEP_PKG_ERRORS
31753
31754Consider adjusting the PKG_CONFIG_PATH environment variable if you
31755installed software in a non-standard prefix.
31756
31757Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS
31758and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31759See the pkg-config man page for more details." "$LINENO" 5
31760elif test $pkg_failed = untried; then
31761     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31762$as_echo "no" >&6; }
31763	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31765as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31766is in your PATH or set the PKG_CONFIG environment variable to the full
31767path to pkg-config.
31768
31769Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS
31770and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31771See the pkg-config man page for more details.
31772
31773To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31774See \`config.log' for more details" "$LINENO" 5; }
31775else
31776	XRESEXAMPLES_DEP_CFLAGS=$pkg_cv_XRESEXAMPLES_DEP_CFLAGS
31777	XRESEXAMPLES_DEP_LIBS=$pkg_cv_XRESEXAMPLES_DEP_LIBS
31778        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31779$as_echo "yes" >&6; }
31780
31781fi
31782
31783
31784pkg_failed=no
31785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11EXAMPLES_DEP" >&5
31786$as_echo_n "checking for X11EXAMPLES_DEP... " >&6; }
31787
31788if test -n "$X11EXAMPLES_DEP_CFLAGS"; then
31789    pkg_cv_X11EXAMPLES_DEP_CFLAGS="$X11EXAMPLES_DEP_CFLAGS"
31790 elif test -n "$PKG_CONFIG"; then
31791    if test -n "$PKG_CONFIG" && \
31792    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11\""; } >&5
31793  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11") 2>&5
31794  ac_status=$?
31795  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31796  test $ac_status = 0; }; then
31797  pkg_cv_X11EXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11" 2>/dev/null`
31798		      test "x$?" != "x0" && pkg_failed=yes
31799else
31800  pkg_failed=yes
31801fi
31802 else
31803    pkg_failed=untried
31804fi
31805if test -n "$X11EXAMPLES_DEP_LIBS"; then
31806    pkg_cv_X11EXAMPLES_DEP_LIBS="$X11EXAMPLES_DEP_LIBS"
31807 elif test -n "$PKG_CONFIG"; then
31808    if test -n "$PKG_CONFIG" && \
31809    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11\""; } >&5
31810  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11") 2>&5
31811  ac_status=$?
31812  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31813  test $ac_status = 0; }; then
31814  pkg_cv_X11EXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11" 2>/dev/null`
31815		      test "x$?" != "x0" && pkg_failed=yes
31816else
31817  pkg_failed=yes
31818fi
31819 else
31820    pkg_failed=untried
31821fi
31822
31823
31824
31825if test $pkg_failed = yes; then
31826   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31827$as_echo "no" >&6; }
31828
31829if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31830        _pkg_short_errors_supported=yes
31831else
31832        _pkg_short_errors_supported=no
31833fi
31834        if test $_pkg_short_errors_supported = yes; then
31835	        X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXEXT x11" 2>&1`
31836        else
31837	        X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXEXT x11" 2>&1`
31838        fi
31839	# Put the nasty error message in config.log where it belongs
31840	echo "$X11EXAMPLES_DEP_PKG_ERRORS" >&5
31841
31842	as_fn_error $? "Package requirements ($LIBXEXT x11) were not met:
31843
31844$X11EXAMPLES_DEP_PKG_ERRORS
31845
31846Consider adjusting the PKG_CONFIG_PATH environment variable if you
31847installed software in a non-standard prefix.
31848
31849Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS
31850and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31851See the pkg-config man page for more details." "$LINENO" 5
31852elif test $pkg_failed = untried; then
31853     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31854$as_echo "no" >&6; }
31855	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31857as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31858is in your PATH or set the PKG_CONFIG environment variable to the full
31859path to pkg-config.
31860
31861Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS
31862and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31863See the pkg-config man page for more details.
31864
31865To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31866See \`config.log' for more details" "$LINENO" 5; }
31867else
31868	X11EXAMPLES_DEP_CFLAGS=$pkg_cv_X11EXAMPLES_DEP_CFLAGS
31869	X11EXAMPLES_DEP_LIBS=$pkg_cv_X11EXAMPLES_DEP_LIBS
31870        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31871$as_echo "yes" >&6; }
31872
31873fi
31874
31875
31876fi
31877 if test "x$DMX_BUILD_USB" = xyes; then
31878  DMX_BUILD_USB_TRUE=
31879  DMX_BUILD_USB_FALSE='#'
31880else
31881  DMX_BUILD_USB_TRUE='#'
31882  DMX_BUILD_USB_FALSE=
31883fi
31884
31885
31886
31887XEPHYR_LIBS=
31888XEPHYR_INCS=
31889
31890 if test x$KDRIVE = xyes; then
31891  KDRIVE_TRUE=
31892  KDRIVE_FALSE='#'
31893else
31894  KDRIVE_TRUE='#'
31895  KDRIVE_FALSE=
31896fi
31897
31898
31899if test "$KDRIVE" = yes; then
31900    XEPHYR_REQUIRED_LIBS="xau xdmcp xcb xcb-shape xcb-render xcb-renderutil xcb-aux xcb-image xcb-icccm xcb-shm >= 1.9.3 xcb-keysyms xcb-randr xcb-xkb"
31901    if test "x$XV" = xyes; then
31902        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS xcb-xv"
31903    fi
31904    if test "x$DRI" = xyes && test "x$GLX" = xyes; then
31905        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS $LIBDRM xcb-glx xcb-xf86dri > 1.6"
31906    fi
31907    if test "x$GLAMOR" = xyes; then
31908        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS x11-xcb"
31909    fi
31910
31911    if test "x$XEPHYR" = xauto; then
31912
31913pkg_failed=no
31914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEPHYR" >&5
31915$as_echo_n "checking for XEPHYR... " >&6; }
31916
31917if test -n "$XEPHYR_CFLAGS"; then
31918    pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS"
31919 elif test -n "$PKG_CONFIG"; then
31920    if test -n "$PKG_CONFIG" && \
31921    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
31922  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
31923  ac_status=$?
31924  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31925  test $ac_status = 0; }; then
31926  pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
31927		      test "x$?" != "x0" && pkg_failed=yes
31928else
31929  pkg_failed=yes
31930fi
31931 else
31932    pkg_failed=untried
31933fi
31934if test -n "$XEPHYR_LIBS"; then
31935    pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS"
31936 elif test -n "$PKG_CONFIG"; then
31937    if test -n "$PKG_CONFIG" && \
31938    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
31939  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
31940  ac_status=$?
31941  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31942  test $ac_status = 0; }; then
31943  pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
31944		      test "x$?" != "x0" && pkg_failed=yes
31945else
31946  pkg_failed=yes
31947fi
31948 else
31949    pkg_failed=untried
31950fi
31951
31952
31953
31954if test $pkg_failed = yes; then
31955   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31956$as_echo "no" >&6; }
31957
31958if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31959        _pkg_short_errors_supported=yes
31960else
31961        _pkg_short_errors_supported=no
31962fi
31963        if test $_pkg_short_errors_supported = yes; then
31964	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
31965        else
31966	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
31967        fi
31968	# Put the nasty error message in config.log where it belongs
31969	echo "$XEPHYR_PKG_ERRORS" >&5
31970
31971	XEPHYR="no"
31972elif test $pkg_failed = untried; then
31973     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31974$as_echo "no" >&6; }
31975	XEPHYR="no"
31976else
31977	XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS
31978	XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS
31979        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31980$as_echo "yes" >&6; }
31981	XEPHYR="yes"
31982fi
31983    elif test "x$XEPHYR" = xyes ; then
31984
31985pkg_failed=no
31986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEPHYR" >&5
31987$as_echo_n "checking for XEPHYR... " >&6; }
31988
31989if test -n "$XEPHYR_CFLAGS"; then
31990    pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS"
31991 elif test -n "$PKG_CONFIG"; then
31992    if test -n "$PKG_CONFIG" && \
31993    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
31994  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
31995  ac_status=$?
31996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31997  test $ac_status = 0; }; then
31998  pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
31999		      test "x$?" != "x0" && pkg_failed=yes
32000else
32001  pkg_failed=yes
32002fi
32003 else
32004    pkg_failed=untried
32005fi
32006if test -n "$XEPHYR_LIBS"; then
32007    pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS"
32008 elif test -n "$PKG_CONFIG"; then
32009    if test -n "$PKG_CONFIG" && \
32010    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
32011  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
32012  ac_status=$?
32013  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32014  test $ac_status = 0; }; then
32015  pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
32016		      test "x$?" != "x0" && pkg_failed=yes
32017else
32018  pkg_failed=yes
32019fi
32020 else
32021    pkg_failed=untried
32022fi
32023
32024
32025
32026if test $pkg_failed = yes; then
32027   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32028$as_echo "no" >&6; }
32029
32030if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32031        _pkg_short_errors_supported=yes
32032else
32033        _pkg_short_errors_supported=no
32034fi
32035        if test $_pkg_short_errors_supported = yes; then
32036	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
32037        else
32038	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
32039        fi
32040	# Put the nasty error message in config.log where it belongs
32041	echo "$XEPHYR_PKG_ERRORS" >&5
32042
32043	as_fn_error $? "Package requirements ($XEPHYR_REQUIRED_LIBS) were not met:
32044
32045$XEPHYR_PKG_ERRORS
32046
32047Consider adjusting the PKG_CONFIG_PATH environment variable if you
32048installed software in a non-standard prefix.
32049
32050Alternatively, you may set the environment variables XEPHYR_CFLAGS
32051and XEPHYR_LIBS to avoid the need to call pkg-config.
32052See the pkg-config man page for more details." "$LINENO" 5
32053elif test $pkg_failed = untried; then
32054     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32055$as_echo "no" >&6; }
32056	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32058as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
32059is in your PATH or set the PKG_CONFIG environment variable to the full
32060path to pkg-config.
32061
32062Alternatively, you may set the environment variables XEPHYR_CFLAGS
32063and XEPHYR_LIBS to avoid the need to call pkg-config.
32064See the pkg-config man page for more details.
32065
32066To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32067See \`config.log' for more details" "$LINENO" 5; }
32068else
32069	XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS
32070	XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS
32071        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32072$as_echo "yes" >&6; }
32073
32074fi
32075    fi
32076
32077    # Xephyr needs nanosleep() which is in librt on Solaris
32078    ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
32079if test "x$ac_cv_func_nanosleep" = xyes; then :
32080
32081else
32082  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
32083$as_echo_n "checking for nanosleep in -lrt... " >&6; }
32084if ${ac_cv_lib_rt_nanosleep+:} false; then :
32085  $as_echo_n "(cached) " >&6
32086else
32087  ac_check_lib_save_LIBS=$LIBS
32088LIBS="-lrt  $LIBS"
32089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32090/* end confdefs.h.  */
32091
32092/* Override any GCC internal prototype to avoid an error.
32093   Use char because int might match the return type of a GCC
32094   builtin and then its argument prototype would still apply.  */
32095#ifdef __cplusplus
32096extern "C"
32097#endif
32098char nanosleep ();
32099int
32100main ()
32101{
32102return nanosleep ();
32103  ;
32104  return 0;
32105}
32106_ACEOF
32107if ac_fn_c_try_link "$LINENO"; then :
32108  ac_cv_lib_rt_nanosleep=yes
32109else
32110  ac_cv_lib_rt_nanosleep=no
32111fi
32112rm -f core conftest.err conftest.$ac_objext \
32113    conftest$ac_exeext conftest.$ac_ext
32114LIBS=$ac_check_lib_save_LIBS
32115fi
32116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
32117$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
32118if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
32119  XEPHYR_LIBS="$XEPHYR_LIBS -lrt"
32120fi
32121
32122fi
32123
32124
32125    # damage shadow extension glx (NOTYET) fb mi
32126    KDRIVE_INC='-I$(top_srcdir)/hw/kdrive/src'
32127    KDRIVE_PURE_INCS="$KDRIVE_INC $MIEXT_SYNC_INC $MIEXT_DAMAGE_INC $MIEXT_SHADOW_INC $XEXT_INC $FB_INC $MI_INC"
32128    KDRIVE_OS_INC='-I$(top_srcdir)/hw/kdrive/linux'
32129    KDRIVE_INCS="$KDRIVE_PURE_INCS $KDRIVE_OS_INC"
32130
32131    KDRIVE_CFLAGS="$XSERVER_CFLAGS"
32132
32133    KDRIVE_PURE_LIBS="$FB_LIB $MI_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $OS_LIB"
32134    KDRIVE_LIB='$(top_builddir)/hw/kdrive/src/libkdrive.la'
32135    KDRIVE_MAIN_LIB="$MAIN_LIB"
32136    KDRIVE_LOCAL_LIBS="$DIX_LIB $KDRIVE_LIB"
32137    KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $FB_LIB $MI_LIB $KDRIVE_PURE_LIBS"
32138    KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $KDRIVE_OS_LIB"
32139    KDRIVE_LIBS="$KDRIVE_LOCAL_LIBS $XSERVER_SYS_LIBS $GLX_SYS_LIBS $DLOPEN_LIBS"
32140
32141
32142
32143fi
32144
32145
32146
32147
32148
32149
32150
32151 if test "x$KDRIVE" = xyes && test "x$XEPHYR" = xyes; then
32152  XEPHYR_TRUE=
32153  XEPHYR_FALSE='#'
32154else
32155  XEPHYR_TRUE='#'
32156  XEPHYR_FALSE=
32157fi
32158
32159
32160
32161XWAYLANDMODULES="wayland-client >= 1.3.0 wayland-protocols >= 1.10 $LIBDRM epoxy"
32162if test "x$XF86VIDMODE" = xyes; then
32163	XWAYLANDMODULES="$XWAYLANDMODULES $VIDMODEPROTO"
32164fi
32165
32166pkg_failed=no
32167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWAYLANDMODULES" >&5
32168$as_echo_n "checking for XWAYLANDMODULES... " >&6; }
32169
32170if test -n "$XWAYLANDMODULES_CFLAGS"; then
32171    pkg_cv_XWAYLANDMODULES_CFLAGS="$XWAYLANDMODULES_CFLAGS"
32172 elif test -n "$PKG_CONFIG"; then
32173    if test -n "$PKG_CONFIG" && \
32174    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XWAYLANDMODULES\""; } >&5
32175  ($PKG_CONFIG --exists --print-errors "$XWAYLANDMODULES") 2>&5
32176  ac_status=$?
32177  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32178  test $ac_status = 0; }; then
32179  pkg_cv_XWAYLANDMODULES_CFLAGS=`$PKG_CONFIG --cflags "$XWAYLANDMODULES" 2>/dev/null`
32180		      test "x$?" != "x0" && pkg_failed=yes
32181else
32182  pkg_failed=yes
32183fi
32184 else
32185    pkg_failed=untried
32186fi
32187if test -n "$XWAYLANDMODULES_LIBS"; then
32188    pkg_cv_XWAYLANDMODULES_LIBS="$XWAYLANDMODULES_LIBS"
32189 elif test -n "$PKG_CONFIG"; then
32190    if test -n "$PKG_CONFIG" && \
32191    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XWAYLANDMODULES\""; } >&5
32192  ($PKG_CONFIG --exists --print-errors "$XWAYLANDMODULES") 2>&5
32193  ac_status=$?
32194  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32195  test $ac_status = 0; }; then
32196  pkg_cv_XWAYLANDMODULES_LIBS=`$PKG_CONFIG --libs "$XWAYLANDMODULES" 2>/dev/null`
32197		      test "x$?" != "x0" && pkg_failed=yes
32198else
32199  pkg_failed=yes
32200fi
32201 else
32202    pkg_failed=untried
32203fi
32204
32205
32206
32207if test $pkg_failed = yes; then
32208   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32209$as_echo "no" >&6; }
32210
32211if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32212        _pkg_short_errors_supported=yes
32213else
32214        _pkg_short_errors_supported=no
32215fi
32216        if test $_pkg_short_errors_supported = yes; then
32217	        XWAYLANDMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XWAYLANDMODULES" 2>&1`
32218        else
32219	        XWAYLANDMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XWAYLANDMODULES" 2>&1`
32220        fi
32221	# Put the nasty error message in config.log where it belongs
32222	echo "$XWAYLANDMODULES_PKG_ERRORS" >&5
32223
32224	have_xwayland=no
32225elif test $pkg_failed = untried; then
32226     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32227$as_echo "no" >&6; }
32228	have_xwayland=no
32229else
32230	XWAYLANDMODULES_CFLAGS=$pkg_cv_XWAYLANDMODULES_CFLAGS
32231	XWAYLANDMODULES_LIBS=$pkg_cv_XWAYLANDMODULES_LIBS
32232        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32233$as_echo "yes" >&6; }
32234	have_xwayland=yes
32235fi
32236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xwayland DDX" >&5
32237$as_echo_n "checking whether to build Xwayland DDX... " >&6; }
32238if test "x$XWAYLAND" = xauto; then
32239   XWAYLAND="$have_xwayland"
32240fi
32241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XWAYLAND" >&5
32242$as_echo "$XWAYLAND" >&6; }
32243 if test "x$XWAYLAND" = xyes; then
32244  XWAYLAND_TRUE=
32245  XWAYLAND_FALSE='#'
32246else
32247  XWAYLAND_TRUE='#'
32248  XWAYLAND_FALSE=
32249fi
32250
32251
32252if test "x$XWAYLAND" = xyes; then
32253	if test "x$have_xwayland" = xno; then
32254		as_fn_error $? "Xwayland build explicitly requested, but required modules not found." "$LINENO" 5
32255	fi
32256
32257	if test "x$GLAMOR" = xyes && test "x$GBM" = xyes; then
32258
32259$as_echo "#define XWL_HAS_GLAMOR 1" >>confdefs.h
32260
32261	fi
32262
32263
32264pkg_failed=no
32265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND_EGLSTREAM" >&5
32266$as_echo_n "checking for WAYLAND_EGLSTREAM... " >&6; }
32267
32268if test -n "$WAYLAND_EGLSTREAM_CFLAGS"; then
32269    pkg_cv_WAYLAND_EGLSTREAM_CFLAGS="$WAYLAND_EGLSTREAM_CFLAGS"
32270 elif test -n "$PKG_CONFIG"; then
32271    if test -n "$PKG_CONFIG" && \
32272    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-eglstream-protocols >= 1.0.2\""; } >&5
32273  ($PKG_CONFIG --exists --print-errors "wayland-eglstream-protocols >= 1.0.2") 2>&5
32274  ac_status=$?
32275  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32276  test $ac_status = 0; }; then
32277  pkg_cv_WAYLAND_EGLSTREAM_CFLAGS=`$PKG_CONFIG --cflags "wayland-eglstream-protocols >= 1.0.2" 2>/dev/null`
32278		      test "x$?" != "x0" && pkg_failed=yes
32279else
32280  pkg_failed=yes
32281fi
32282 else
32283    pkg_failed=untried
32284fi
32285if test -n "$WAYLAND_EGLSTREAM_LIBS"; then
32286    pkg_cv_WAYLAND_EGLSTREAM_LIBS="$WAYLAND_EGLSTREAM_LIBS"
32287 elif test -n "$PKG_CONFIG"; then
32288    if test -n "$PKG_CONFIG" && \
32289    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-eglstream-protocols >= 1.0.2\""; } >&5
32290  ($PKG_CONFIG --exists --print-errors "wayland-eglstream-protocols >= 1.0.2") 2>&5
32291  ac_status=$?
32292  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32293  test $ac_status = 0; }; then
32294  pkg_cv_WAYLAND_EGLSTREAM_LIBS=`$PKG_CONFIG --libs "wayland-eglstream-protocols >= 1.0.2" 2>/dev/null`
32295		      test "x$?" != "x0" && pkg_failed=yes
32296else
32297  pkg_failed=yes
32298fi
32299 else
32300    pkg_failed=untried
32301fi
32302
32303
32304
32305if test $pkg_failed = yes; then
32306   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32307$as_echo "no" >&6; }
32308
32309if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32310        _pkg_short_errors_supported=yes
32311else
32312        _pkg_short_errors_supported=no
32313fi
32314        if test $_pkg_short_errors_supported = yes; then
32315	        WAYLAND_EGLSTREAM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-eglstream-protocols >= 1.0.2" 2>&1`
32316        else
32317	        WAYLAND_EGLSTREAM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-eglstream-protocols >= 1.0.2" 2>&1`
32318        fi
32319	# Put the nasty error message in config.log where it belongs
32320	echo "$WAYLAND_EGLSTREAM_PKG_ERRORS" >&5
32321
32322	have_wl_eglstream=no
32323elif test $pkg_failed = untried; then
32324     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32325$as_echo "no" >&6; }
32326	have_wl_eglstream=no
32327else
32328	WAYLAND_EGLSTREAM_CFLAGS=$pkg_cv_WAYLAND_EGLSTREAM_CFLAGS
32329	WAYLAND_EGLSTREAM_LIBS=$pkg_cv_WAYLAND_EGLSTREAM_LIBS
32330        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32331$as_echo "yes" >&6; }
32332	have_wl_eglstream=yes
32333fi
32334
32335	if test "x$XWAYLAND_EGLSTREAM" = xauto; then
32336		if test "x$have_wl_eglstream" = xyes && test "x$GLAMOR" = xyes; then
32337			XWAYLAND_EGLSTREAM=yes
32338		fi
32339	fi
32340
32341	if test "x$XWAYLAND_EGLSTREAM" = xyes; then
32342		if test "x$GLAMOR" != xyes; then
32343			as_fn_error $? "Xwayland eglstream support explicitly requested, but required modules not found." "$LINENO" 5
32344		fi
32345
32346		if test "x$have_wl_eglstream" = xno; then
32347			as_fn_error $? "Xwayland eglstream support requires wayland-eglstream-protocols >= 1.0.2" "$LINENO" 5
32348		fi
32349
32350		WAYLAND_EGLSTREAM_DATADIR=`$PKG_CONFIG --variable=pkgdatadir wayland-eglstream-protocols`
32351
32352
32353$as_echo "#define XWL_HAS_EGLSTREAM 1" >>confdefs.h
32354
32355	fi
32356
32357	XWAYLAND_LIBS="$FB_LIB $FIXES_LIB $MI_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $MAIN_LIB $DIX_LIB $OS_LIB"
32358	XWAYLAND_SYS_LIBS="$XWAYLANDMODULES_LIBS $GLX_SYS_LIBS"
32359
32360
32361
32362	if test "x$MONOTONIC_CLOCK" != xyes; then
32363		as_fn_error $? "Xwayland requires CLOCK_MONOTONIC support." "$LINENO" 5
32364	fi
32365
32366	# Extract the first word of "wayland-scanner", so it can be a program name with args.
32367set dummy wayland-scanner; ac_word=$2
32368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32369$as_echo_n "checking for $ac_word... " >&6; }
32370if ${ac_cv_path_WAYLAND_SCANNER+:} false; then :
32371  $as_echo_n "(cached) " >&6
32372else
32373  case $WAYLAND_SCANNER in
32374  [\\/]* | ?:[\\/]*)
32375  ac_cv_path_WAYLAND_SCANNER="$WAYLAND_SCANNER" # Let the user override the test with a path.
32376  ;;
32377  *)
32378  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32379for as_dir in $PATH
32380do
32381  IFS=$as_save_IFS
32382  test -z "$as_dir" && as_dir=.
32383    for ac_exec_ext in '' $ac_executable_extensions; do
32384  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32385    ac_cv_path_WAYLAND_SCANNER="$as_dir/$ac_word$ac_exec_ext"
32386    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32387    break 2
32388  fi
32389done
32390  done
32391IFS=$as_save_IFS
32392
32393  ;;
32394esac
32395fi
32396WAYLAND_SCANNER=$ac_cv_path_WAYLAND_SCANNER
32397if test -n "$WAYLAND_SCANNER"; then
32398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WAYLAND_SCANNER" >&5
32399$as_echo "$WAYLAND_SCANNER" >&6; }
32400else
32401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32402$as_echo "no" >&6; }
32403fi
32404
32405
32406	if test "x$WAYLAND_SCANNER" = x; then
32407
32408pkg_failed=no
32409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND_SCANNER" >&5
32410$as_echo_n "checking for WAYLAND_SCANNER... " >&6; }
32411
32412if test -n "$WAYLAND_SCANNER_CFLAGS"; then
32413    pkg_cv_WAYLAND_SCANNER_CFLAGS="$WAYLAND_SCANNER_CFLAGS"
32414 elif test -n "$PKG_CONFIG"; then
32415    if test -n "$PKG_CONFIG" && \
32416    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner\""; } >&5
32417  ($PKG_CONFIG --exists --print-errors "wayland-scanner") 2>&5
32418  ac_status=$?
32419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32420  test $ac_status = 0; }; then
32421  pkg_cv_WAYLAND_SCANNER_CFLAGS=`$PKG_CONFIG --cflags "wayland-scanner" 2>/dev/null`
32422		      test "x$?" != "x0" && pkg_failed=yes
32423else
32424  pkg_failed=yes
32425fi
32426 else
32427    pkg_failed=untried
32428fi
32429if test -n "$WAYLAND_SCANNER_LIBS"; then
32430    pkg_cv_WAYLAND_SCANNER_LIBS="$WAYLAND_SCANNER_LIBS"
32431 elif test -n "$PKG_CONFIG"; then
32432    if test -n "$PKG_CONFIG" && \
32433    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner\""; } >&5
32434  ($PKG_CONFIG --exists --print-errors "wayland-scanner") 2>&5
32435  ac_status=$?
32436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32437  test $ac_status = 0; }; then
32438  pkg_cv_WAYLAND_SCANNER_LIBS=`$PKG_CONFIG --libs "wayland-scanner" 2>/dev/null`
32439		      test "x$?" != "x0" && pkg_failed=yes
32440else
32441  pkg_failed=yes
32442fi
32443 else
32444    pkg_failed=untried
32445fi
32446
32447
32448
32449if test $pkg_failed = yes; then
32450   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32451$as_echo "no" >&6; }
32452
32453if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32454        _pkg_short_errors_supported=yes
32455else
32456        _pkg_short_errors_supported=no
32457fi
32458        if test $_pkg_short_errors_supported = yes; then
32459	        WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-scanner" 2>&1`
32460        else
32461	        WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-scanner" 2>&1`
32462        fi
32463	# Put the nasty error message in config.log where it belongs
32464	echo "$WAYLAND_SCANNER_PKG_ERRORS" >&5
32465
32466	as_fn_error $? "Package requirements (wayland-scanner) were not met:
32467
32468$WAYLAND_SCANNER_PKG_ERRORS
32469
32470Consider adjusting the PKG_CONFIG_PATH environment variable if you
32471installed software in a non-standard prefix.
32472
32473Alternatively, you may set the environment variables WAYLAND_SCANNER_CFLAGS
32474and WAYLAND_SCANNER_LIBS to avoid the need to call pkg-config.
32475See the pkg-config man page for more details." "$LINENO" 5
32476elif test $pkg_failed = untried; then
32477     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32478$as_echo "no" >&6; }
32479	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32481as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
32482is in your PATH or set the PKG_CONFIG environment variable to the full
32483path to pkg-config.
32484
32485Alternatively, you may set the environment variables WAYLAND_SCANNER_CFLAGS
32486and WAYLAND_SCANNER_LIBS to avoid the need to call pkg-config.
32487See the pkg-config man page for more details.
32488
32489To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32490See \`config.log' for more details" "$LINENO" 5; }
32491else
32492	WAYLAND_SCANNER_CFLAGS=$pkg_cv_WAYLAND_SCANNER_CFLAGS
32493	WAYLAND_SCANNER_LIBS=$pkg_cv_WAYLAND_SCANNER_LIBS
32494        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32495$as_echo "yes" >&6; }
32496
32497fi
32498		WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
32499
32500	fi
32501
32502
32503pkg_failed=no
32504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND_SCANNER" >&5
32505$as_echo_n "checking for WAYLAND_SCANNER... " >&6; }
32506
32507if test -n "$WAYLAND_SCANNER_CFLAGS"; then
32508    pkg_cv_WAYLAND_SCANNER_CFLAGS="$WAYLAND_SCANNER_CFLAGS"
32509 elif test -n "$PKG_CONFIG"; then
32510    if test -n "$PKG_CONFIG" && \
32511    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner >= 1.14.91\""; } >&5
32512  ($PKG_CONFIG --exists --print-errors "wayland-scanner >= 1.14.91") 2>&5
32513  ac_status=$?
32514  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32515  test $ac_status = 0; }; then
32516  pkg_cv_WAYLAND_SCANNER_CFLAGS=`$PKG_CONFIG --cflags "wayland-scanner >= 1.14.91" 2>/dev/null`
32517		      test "x$?" != "x0" && pkg_failed=yes
32518else
32519  pkg_failed=yes
32520fi
32521 else
32522    pkg_failed=untried
32523fi
32524if test -n "$WAYLAND_SCANNER_LIBS"; then
32525    pkg_cv_WAYLAND_SCANNER_LIBS="$WAYLAND_SCANNER_LIBS"
32526 elif test -n "$PKG_CONFIG"; then
32527    if test -n "$PKG_CONFIG" && \
32528    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner >= 1.14.91\""; } >&5
32529  ($PKG_CONFIG --exists --print-errors "wayland-scanner >= 1.14.91") 2>&5
32530  ac_status=$?
32531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32532  test $ac_status = 0; }; then
32533  pkg_cv_WAYLAND_SCANNER_LIBS=`$PKG_CONFIG --libs "wayland-scanner >= 1.14.91" 2>/dev/null`
32534		      test "x$?" != "x0" && pkg_failed=yes
32535else
32536  pkg_failed=yes
32537fi
32538 else
32539    pkg_failed=untried
32540fi
32541
32542
32543
32544if test $pkg_failed = yes; then
32545   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32546$as_echo "no" >&6; }
32547
32548if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32549        _pkg_short_errors_supported=yes
32550else
32551        _pkg_short_errors_supported=no
32552fi
32553        if test $_pkg_short_errors_supported = yes; then
32554	        WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-scanner >= 1.14.91" 2>&1`
32555        else
32556	        WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-scanner >= 1.14.91" 2>&1`
32557        fi
32558	# Put the nasty error message in config.log where it belongs
32559	echo "$WAYLAND_SCANNER_PKG_ERRORS" >&5
32560
32561	SCANNER_ARG='code'
32562
32563elif test $pkg_failed = untried; then
32564     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32565$as_echo "no" >&6; }
32566	SCANNER_ARG='code'
32567
32568else
32569	WAYLAND_SCANNER_CFLAGS=$pkg_cv_WAYLAND_SCANNER_CFLAGS
32570	WAYLAND_SCANNER_LIBS=$pkg_cv_WAYLAND_SCANNER_LIBS
32571        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32572$as_echo "yes" >&6; }
32573	SCANNER_ARG='private-code'
32574
32575fi
32576
32577	WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
32578
32579fi
32580 if test "x$XWAYLAND_EGLSTREAM" = "xyes"; then
32581  XWAYLAND_EGLSTREAM_TRUE=
32582  XWAYLAND_EGLSTREAM_FALSE='#'
32583else
32584  XWAYLAND_EGLSTREAM_TRUE='#'
32585  XWAYLAND_EGLSTREAM_FALSE=
32586fi
32587
32588
32589
32590
32591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32592/* end confdefs.h.  */
32593
32594#include <features.h>
32595#ifndef __GLIBC__
32596#error not glibc
32597#endif
32598
32599int
32600main ()
32601{
32602
32603  ;
32604  return 0;
32605}
32606_ACEOF
32607if ac_fn_c_try_compile "$LINENO"; then :
32608
32609$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
32610
32611fi
32612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32613
32614
32615  prefix_NONE=
32616  exec_prefix_NONE=
32617  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32618  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32619  eval ac_define_dir="\"$prefix\""
32620  eval ac_define_dir="\"$ac_define_dir\""
32621  PROJECTROOT="$ac_define_dir"
32622
32623
32624cat >>confdefs.h <<_ACEOF
32625#define PROJECTROOT "$ac_define_dir"
32626_ACEOF
32627
32628  test "$prefix_NONE" && prefix=NONE
32629  test "$exec_prefix_NONE" && exec_prefix=NONE
32630
32631
32632  prefix_NONE=
32633  exec_prefix_NONE=
32634  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32635  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32636  eval ac_define_dir="\"$sysconfdir\""
32637  eval ac_define_dir="\"$ac_define_dir\""
32638  SYSCONFDIR="$ac_define_dir"
32639
32640
32641cat >>confdefs.h <<_ACEOF
32642#define SYSCONFDIR "$ac_define_dir"
32643_ACEOF
32644
32645  test "$prefix_NONE" && prefix=NONE
32646  test "$exec_prefix_NONE" && exec_prefix=NONE
32647
32648
32649
32650DATE_FMT="%Y%m%d"
32651TIME_FMT="1%H%M%S"
32652BUILD_DATE="`date "+$DATE_FMT"`"
32653BUILD_TIME="`date "+$TIME_FMT"`"
32654if test "x$SOURCE_DATE_EPOCH" != "x"; then
32655	BUILD_DATE="`date -u -d "@$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || date -u "+$DATE_FMT"`"
32656	BUILD_TIME="`date -u -d "@$SOURCE_DATE_EPOCH" "+$TIME_FMT" 2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH" "+$TIME_FMT" 2>/dev/null || date -u "+$TIME_FMT"`"
32657fi
32658
32659
32660
32661DIX_CFLAGS="-DHAVE_DIX_CONFIG_H $XSERVER_CFLAGS"
32662
32663
32664
32665
32666
32667
32668
32669ac_config_commands="$ac_config_commands sdksyms"
32670
32671
32672if test "x$CONFIG_HAL" = xno && test "x$CONFIG_UDEV" = xno; then
32673    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
32674             ***********************************************
32675             Neither HAL nor udev backend will be enabled.
32676             Input device hotplugging will not be available!
32677             ***********************************************" >&5
32678$as_echo "$as_me: WARNING:
32679             ***********************************************
32680             Neither HAL nor udev backend will be enabled.
32681             Input device hotplugging will not be available!
32682             ***********************************************" >&2;}
32683fi
32684
32685ac_config_files="$ac_config_files Makefile glx/Makefile include/Makefile composite/Makefile damageext/Makefile dbe/Makefile dix/Makefile doc/Makefile doc/dtrace/Makefile man/Makefile fb/Makefile glamor/Makefile record/Makefile config/Makefile mi/Makefile miext/Makefile miext/sync/Makefile miext/damage/Makefile miext/shadow/Makefile miext/rootless/Makefile os/Makefile pseudoramiX/Makefile randr/Makefile render/Makefile xkb/Makefile Xext/Makefile Xi/Makefile xfixes/Makefile exa/Makefile dri3/Makefile present/Makefile hw/Makefile hw/xfree86/Makefile hw/xfree86/Xorg.sh hw/xfree86/common/Makefile hw/xfree86/common/xf86Build.h hw/xfree86/ddc/Makefile hw/xfree86/dixmods/Makefile hw/xfree86/doc/Makefile hw/xfree86/dri/Makefile hw/xfree86/dri2/Makefile hw/xfree86/dri2/pci_ids/Makefile hw/xfree86/drivers/Makefile hw/xfree86/drivers/modesetting/Makefile hw/xfree86/exa/Makefile hw/xfree86/exa/man/Makefile hw/xfree86/fbdevhw/Makefile hw/xfree86/fbdevhw/man/Makefile hw/xfree86/glamor_egl/Makefile hw/xfree86/i2c/Makefile hw/xfree86/int10/Makefile hw/xfree86/loader/Makefile hw/xfree86/man/Makefile hw/xfree86/modes/Makefile hw/xfree86/os-support/Makefile hw/xfree86/os-support/bsd/Makefile hw/xfree86/os-support/bus/Makefile hw/xfree86/os-support/hurd/Makefile hw/xfree86/os-support/misc/Makefile hw/xfree86/os-support/linux/Makefile hw/xfree86/os-support/solaris/Makefile hw/xfree86/os-support/stub/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/xkb/Makefile hw/xfree86/utils/Makefile hw/xfree86/utils/man/Makefile hw/xfree86/utils/cvt/Makefile hw/xfree86/utils/gtf/Makefile hw/dmx/config/Makefile hw/dmx/config/man/Makefile hw/dmx/doc/Makefile hw/dmx/doxygen/doxygen.conf hw/dmx/doxygen/Makefile hw/dmx/examples/Makefile hw/dmx/input/Makefile hw/dmx/glxProxy/Makefile hw/dmx/Makefile hw/dmx/man/Makefile hw/vfb/Makefile hw/vfb/man/Makefile hw/xnest/Makefile hw/xnest/man/Makefile hw/xwin/Makefile hw/xwin/dri/Makefile hw/xwin/glx/Makefile hw/xwin/man/Makefile hw/xwin/winclipboard/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/src/Makefile hw/xwayland/Makefile test/Makefile xserver.ent xorg-server.pc"
32686
32687cat >confcache <<\_ACEOF
32688# This file is a shell script that caches the results of configure
32689# tests run on this system so they can be shared between configure
32690# scripts and configure runs, see configure's option --config-cache.
32691# It is not useful on other systems.  If it contains results you don't
32692# want to keep, you may remove or edit it.
32693#
32694# config.status only pays attention to the cache file if you give it
32695# the --recheck option to rerun configure.
32696#
32697# `ac_cv_env_foo' variables (set or unset) will be overridden when
32698# loading this file, other *unset* `ac_cv_foo' will be assigned the
32699# following values.
32700
32701_ACEOF
32702
32703# The following way of writing the cache mishandles newlines in values,
32704# but we know of no workaround that is simple, portable, and efficient.
32705# So, we kill variables containing newlines.
32706# Ultrix sh set writes to stderr and can't be redirected directly,
32707# and sets the high bit in the cache file unless we assign to the vars.
32708(
32709  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32710    eval ac_val=\$$ac_var
32711    case $ac_val in #(
32712    *${as_nl}*)
32713      case $ac_var in #(
32714      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32715$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32716      esac
32717      case $ac_var in #(
32718      _ | IFS | as_nl) ;; #(
32719      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32720      *) { eval $ac_var=; unset $ac_var;} ;;
32721      esac ;;
32722    esac
32723  done
32724
32725  (set) 2>&1 |
32726    case $as_nl`(ac_space=' '; set) 2>&1` in #(
32727    *${as_nl}ac_space=\ *)
32728      # `set' does not quote correctly, so add quotes: double-quote
32729      # substitution turns \\\\ into \\, and sed turns \\ into \.
32730      sed -n \
32731	"s/'/'\\\\''/g;
32732	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32733      ;; #(
32734    *)
32735      # `set' quotes correctly as required by POSIX, so do not add quotes.
32736      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32737      ;;
32738    esac |
32739    sort
32740) |
32741  sed '
32742     /^ac_cv_env_/b end
32743     t clear
32744     :clear
32745     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32746     t end
32747     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32748     :end' >>confcache
32749if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32750  if test -w "$cache_file"; then
32751    if test "x$cache_file" != "x/dev/null"; then
32752      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32753$as_echo "$as_me: updating cache $cache_file" >&6;}
32754      if test ! -f "$cache_file" || test -h "$cache_file"; then
32755	cat confcache >"$cache_file"
32756      else
32757        case $cache_file in #(
32758        */* | ?:*)
32759	  mv -f confcache "$cache_file"$$ &&
32760	  mv -f "$cache_file"$$ "$cache_file" ;; #(
32761        *)
32762	  mv -f confcache "$cache_file" ;;
32763	esac
32764      fi
32765    fi
32766  else
32767    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32768$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32769  fi
32770fi
32771rm -f confcache
32772
32773test "x$prefix" = xNONE && prefix=$ac_default_prefix
32774# Let make expand exec_prefix.
32775test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32776
32777DEFS=-DHAVE_CONFIG_H
32778
32779ac_libobjs=
32780ac_ltlibobjs=
32781U=
32782for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32783  # 1. Remove the extension, and $U if already installed.
32784  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32785  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32786  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32787  #    will be set to the directory where LIBOBJS objects are built.
32788  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32789  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32790done
32791LIBOBJS=$ac_libobjs
32792
32793LTLIBOBJS=$ac_ltlibobjs
32794
32795
32796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
32797$as_echo_n "checking that generated files are newer than configure... " >&6; }
32798   if test -n "$am_sleep_pid"; then
32799     # Hide warnings about reused PIDs.
32800     wait $am_sleep_pid 2>/dev/null
32801   fi
32802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
32803$as_echo "done" >&6; }
32804 if test -n "$EXEEXT"; then
32805  am__EXEEXT_TRUE=
32806  am__EXEEXT_FALSE='#'
32807else
32808  am__EXEEXT_TRUE='#'
32809  am__EXEEXT_FALSE=
32810fi
32811
32812if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32813  as_fn_error $? "conditional \"AMDEP\" was never defined.
32814Usually this means the macro was only invoked conditionally." "$LINENO" 5
32815fi
32816if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32817  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
32818Usually this means the macro was only invoked conditionally." "$LINENO" 5
32819fi
32820if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then
32821  as_fn_error $? "conditional \"HAVE_DOT\" was never defined.
32822Usually this means the macro was only invoked conditionally." "$LINENO" 5
32823fi
32824if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
32825  as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
32826Usually this means the macro was only invoked conditionally." "$LINENO" 5
32827fi
32828if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
32829  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
32830Usually this means the macro was only invoked conditionally." "$LINENO" 5
32831fi
32832if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
32833  as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
32834Usually this means the macro was only invoked conditionally." "$LINENO" 5
32835fi
32836if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
32837  as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
32838Usually this means the macro was only invoked conditionally." "$LINENO" 5
32839fi
32840if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
32841  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
32842Usually this means the macro was only invoked conditionally." "$LINENO" 5
32843fi
32844if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
32845  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
32846Usually this means the macro was only invoked conditionally." "$LINENO" 5
32847fi
32848if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
32849  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
32850Usually this means the macro was only invoked conditionally." "$LINENO" 5
32851fi
32852if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
32853  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
32854Usually this means the macro was only invoked conditionally." "$LINENO" 5
32855fi
32856if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
32857  as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined.
32858Usually this means the macro was only invoked conditionally." "$LINENO" 5
32859fi
32860if test -z "${HAVE_LD_WRAP_TRUE}" && test -z "${HAVE_LD_WRAP_FALSE}"; then
32861  as_fn_error $? "conditional \"HAVE_LD_WRAP\" was never defined.
32862Usually this means the macro was only invoked conditionally." "$LINENO" 5
32863fi
32864if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
32865  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
32866Usually this means the macro was only invoked conditionally." "$LINENO" 5
32867fi
32868if test -z "${XSERVER_DTRACE_TRUE}" && test -z "${XSERVER_DTRACE_FALSE}"; then
32869  as_fn_error $? "conditional \"XSERVER_DTRACE\" was never defined.
32870Usually this means the macro was only invoked conditionally." "$LINENO" 5
32871fi
32872if test -z "${SPECIAL_DTRACE_OBJECTS_TRUE}" && test -z "${SPECIAL_DTRACE_OBJECTS_FALSE}"; then
32873  as_fn_error $? "conditional \"SPECIAL_DTRACE_OBJECTS\" was never defined.
32874Usually this means the macro was only invoked conditionally." "$LINENO" 5
32875fi
32876
32877if test -z "${POLL_TRUE}" && test -z "${POLL_FALSE}"; then
32878  as_fn_error $? "conditional \"POLL\" was never defined.
32879Usually this means the macro was only invoked conditionally." "$LINENO" 5
32880fi
32881if test -z "${AGP_TRUE}" && test -z "${AGP_FALSE}"; then
32882  as_fn_error $? "conditional \"AGP\" was never defined.
32883Usually this means the macro was only invoked conditionally." "$LINENO" 5
32884fi
32885if test -z "${FBDEVHW_TRUE}" && test -z "${FBDEVHW_FALSE}"; then
32886  as_fn_error $? "conditional \"FBDEVHW\" was never defined.
32887Usually this means the macro was only invoked conditionally." "$LINENO" 5
32888fi
32889if test -z "${FREEBSD_KLDLOAD_TRUE}" && test -z "${FREEBSD_KLDLOAD_FALSE}"; then
32890  as_fn_error $? "conditional \"FREEBSD_KLDLOAD\" was never defined.
32891Usually this means the macro was only invoked conditionally." "$LINENO" 5
32892fi
32893if test -z "${BSD_APM_TRUE}" && test -z "${BSD_APM_FALSE}"; then
32894  as_fn_error $? "conditional \"BSD_APM\" was never defined.
32895Usually this means the macro was only invoked conditionally." "$LINENO" 5
32896fi
32897if test -z "${BSD_KQUEUE_APM_TRUE}" && test -z "${BSD_KQUEUE_APM_FALSE}"; then
32898  as_fn_error $? "conditional \"BSD_KQUEUE_APM\" was never defined.
32899Usually this means the macro was only invoked conditionally." "$LINENO" 5
32900fi
32901if test -z "${ALPHA_VIDEO_TRUE}" && test -z "${ALPHA_VIDEO_FALSE}"; then
32902  as_fn_error $? "conditional \"ALPHA_VIDEO\" was never defined.
32903Usually this means the macro was only invoked conditionally." "$LINENO" 5
32904fi
32905if test -z "${ARM_VIDEO_TRUE}" && test -z "${ARM_VIDEO_FALSE}"; then
32906  as_fn_error $? "conditional \"ARM_VIDEO\" was never defined.
32907Usually this means the macro was only invoked conditionally." "$LINENO" 5
32908fi
32909if test -z "${I386_VIDEO_TRUE}" && test -z "${I386_VIDEO_FALSE}"; then
32910  as_fn_error $? "conditional \"I386_VIDEO\" was never defined.
32911Usually this means the macro was only invoked conditionally." "$LINENO" 5
32912fi
32913if test -z "${PPC_VIDEO_TRUE}" && test -z "${PPC_VIDEO_FALSE}"; then
32914  as_fn_error $? "conditional \"PPC_VIDEO\" was never defined.
32915Usually this means the macro was only invoked conditionally." "$LINENO" 5
32916fi
32917if test -z "${SPARC64_VIDEO_TRUE}" && test -z "${SPARC64_VIDEO_FALSE}"; then
32918  as_fn_error $? "conditional \"SPARC64_VIDEO\" was never defined.
32919Usually this means the macro was only invoked conditionally." "$LINENO" 5
32920fi
32921if test -z "${INSTALL_SETUID_TRUE}" && test -z "${INSTALL_SETUID_FALSE}"; then
32922  as_fn_error $? "conditional \"INSTALL_SETUID\" was never defined.
32923Usually this means the macro was only invoked conditionally." "$LINENO" 5
32924fi
32925if test -z "${SECURE_RPC_TRUE}" && test -z "${SECURE_RPC_FALSE}"; then
32926  as_fn_error $? "conditional \"SECURE_RPC\" was never defined.
32927Usually this means the macro was only invoked conditionally." "$LINENO" 5
32928fi
32929if test -z "${INT10_VM86_TRUE}" && test -z "${INT10_VM86_FALSE}"; then
32930  as_fn_error $? "conditional \"INT10_VM86\" was never defined.
32931Usually this means the macro was only invoked conditionally." "$LINENO" 5
32932fi
32933if test -z "${INT10_X86EMU_TRUE}" && test -z "${INT10_X86EMU_FALSE}"; then
32934  as_fn_error $? "conditional \"INT10_X86EMU\" was never defined.
32935Usually this means the macro was only invoked conditionally." "$LINENO" 5
32936fi
32937if test -z "${INT10_STUB_TRUE}" && test -z "${INT10_STUB_FALSE}"; then
32938  as_fn_error $? "conditional \"INT10_STUB\" was never defined.
32939Usually this means the macro was only invoked conditionally." "$LINENO" 5
32940fi
32941if test -z "${HAVE_SYSTEMD_DAEMON_TRUE}" && test -z "${HAVE_SYSTEMD_DAEMON_FALSE}"; then
32942  as_fn_error $? "conditional \"HAVE_SYSTEMD_DAEMON\" was never defined.
32943Usually this means the macro was only invoked conditionally." "$LINENO" 5
32944fi
32945if test -z "${CONFIG_UDEV_TRUE}" && test -z "${CONFIG_UDEV_FALSE}"; then
32946  as_fn_error $? "conditional \"CONFIG_UDEV\" was never defined.
32947Usually this means the macro was only invoked conditionally." "$LINENO" 5
32948fi
32949if test -z "${CONFIG_UDEV_KMS_TRUE}" && test -z "${CONFIG_UDEV_KMS_FALSE}"; then
32950  as_fn_error $? "conditional \"CONFIG_UDEV_KMS\" was never defined.
32951Usually this means the macro was only invoked conditionally." "$LINENO" 5
32952fi
32953if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then
32954  as_fn_error $? "conditional \"HAVE_DBUS\" was never defined.
32955Usually this means the macro was only invoked conditionally." "$LINENO" 5
32956fi
32957if test -z "${CONFIG_HAL_TRUE}" && test -z "${CONFIG_HAL_FALSE}"; then
32958  as_fn_error $? "conditional \"CONFIG_HAL\" was never defined.
32959Usually this means the macro was only invoked conditionally." "$LINENO" 5
32960fi
32961if test -z "${SYSTEMD_LOGIND_TRUE}" && test -z "${SYSTEMD_LOGIND_FALSE}"; then
32962  as_fn_error $? "conditional \"SYSTEMD_LOGIND\" was never defined.
32963Usually this means the macro was only invoked conditionally." "$LINENO" 5
32964fi
32965if test -z "${SUID_WRAPPER_TRUE}" && test -z "${SUID_WRAPPER_FALSE}"; then
32966  as_fn_error $? "conditional \"SUID_WRAPPER\" was never defined.
32967Usually this means the macro was only invoked conditionally." "$LINENO" 5
32968fi
32969if test -z "${NEED_DBUS_TRUE}" && test -z "${NEED_DBUS_FALSE}"; then
32970  as_fn_error $? "conditional \"NEED_DBUS\" was never defined.
32971Usually this means the macro was only invoked conditionally." "$LINENO" 5
32972fi
32973if test -z "${CONFIG_WSCONS_TRUE}" && test -z "${CONFIG_WSCONS_FALSE}"; then
32974  as_fn_error $? "conditional \"CONFIG_WSCONS\" was never defined.
32975Usually this means the macro was only invoked conditionally." "$LINENO" 5
32976fi
32977if test -z "${XV_TRUE}" && test -z "${XV_FALSE}"; then
32978  as_fn_error $? "conditional \"XV\" was never defined.
32979Usually this means the macro was only invoked conditionally." "$LINENO" 5
32980fi
32981if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
32982  as_fn_error $? "conditional \"XVMC\" was never defined.
32983Usually this means the macro was only invoked conditionally." "$LINENO" 5
32984fi
32985if test -z "${COMPOSITE_TRUE}" && test -z "${COMPOSITE_FALSE}"; then
32986  as_fn_error $? "conditional \"COMPOSITE\" was never defined.
32987Usually this means the macro was only invoked conditionally." "$LINENO" 5
32988fi
32989if test -z "${MITSHM_TRUE}" && test -z "${MITSHM_FALSE}"; then
32990  as_fn_error $? "conditional \"MITSHM\" was never defined.
32991Usually this means the macro was only invoked conditionally." "$LINENO" 5
32992fi
32993if test -z "${RECORD_TRUE}" && test -z "${RECORD_FALSE}"; then
32994  as_fn_error $? "conditional \"RECORD\" was never defined.
32995Usually this means the macro was only invoked conditionally." "$LINENO" 5
32996fi
32997if test -z "${SCREENSAVER_TRUE}" && test -z "${SCREENSAVER_FALSE}"; then
32998  as_fn_error $? "conditional \"SCREENSAVER\" was never defined.
32999Usually this means the macro was only invoked conditionally." "$LINENO" 5
33000fi
33001if test -z "${RES_TRUE}" && test -z "${RES_FALSE}"; then
33002  as_fn_error $? "conditional \"RES\" was never defined.
33003Usually this means the macro was only invoked conditionally." "$LINENO" 5
33004fi
33005if test -z "${CLIENTIDS_TRUE}" && test -z "${CLIENTIDS_FALSE}"; then
33006  as_fn_error $? "conditional \"CLIENTIDS\" was never defined.
33007Usually this means the macro was only invoked conditionally." "$LINENO" 5
33008fi
33009if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
33010  as_fn_error $? "conditional \"DRI\" was never defined.
33011Usually this means the macro was only invoked conditionally." "$LINENO" 5
33012fi
33013if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then
33014  as_fn_error $? "conditional \"DRI2\" was never defined.
33015Usually this means the macro was only invoked conditionally." "$LINENO" 5
33016fi
33017if test -z "${BUSFAULT_TRUE}" && test -z "${BUSFAULT_FALSE}"; then
33018  as_fn_error $? "conditional \"BUSFAULT\" was never defined.
33019Usually this means the macro was only invoked conditionally." "$LINENO" 5
33020fi
33021if test -z "${XSHMFENCE_TRUE}" && test -z "${XSHMFENCE_FALSE}"; then
33022  as_fn_error $? "conditional \"XSHMFENCE\" was never defined.
33023Usually this means the macro was only invoked conditionally." "$LINENO" 5
33024fi
33025if test -z "${DRI3_TRUE}" && test -z "${DRI3_FALSE}"; then
33026  as_fn_error $? "conditional \"DRI3\" was never defined.
33027Usually this means the macro was only invoked conditionally." "$LINENO" 5
33028fi
33029if test -z "${GLX_TRUE}" && test -z "${GLX_FALSE}"; then
33030  as_fn_error $? "conditional \"GLX\" was never defined.
33031Usually this means the macro was only invoked conditionally." "$LINENO" 5
33032fi
33033if test -z "${HASHTABLE_TRUE}" && test -z "${HASHTABLE_FALSE}"; then
33034  as_fn_error $? "conditional \"HASHTABLE\" was never defined.
33035Usually this means the macro was only invoked conditionally." "$LINENO" 5
33036fi
33037if test -z "${PRESENT_TRUE}" && test -z "${PRESENT_FALSE}"; then
33038  as_fn_error $? "conditional \"PRESENT\" was never defined.
33039Usually this means the macro was only invoked conditionally." "$LINENO" 5
33040fi
33041if test -z "${XINERAMA_TRUE}" && test -z "${XINERAMA_FALSE}"; then
33042  as_fn_error $? "conditional \"XINERAMA\" was never defined.
33043Usually this means the macro was only invoked conditionally." "$LINENO" 5
33044fi
33045if test -z "${XACE_TRUE}" && test -z "${XACE_FALSE}"; then
33046  as_fn_error $? "conditional \"XACE\" was never defined.
33047Usually this means the macro was only invoked conditionally." "$LINENO" 5
33048fi
33049if test -z "${XSELINUX_TRUE}" && test -z "${XSELINUX_FALSE}"; then
33050  as_fn_error $? "conditional \"XSELINUX\" was never defined.
33051Usually this means the macro was only invoked conditionally." "$LINENO" 5
33052fi
33053if test -z "${XCSECURITY_TRUE}" && test -z "${XCSECURITY_FALSE}"; then
33054  as_fn_error $? "conditional \"XCSECURITY\" was never defined.
33055Usually this means the macro was only invoked conditionally." "$LINENO" 5
33056fi
33057if test -z "${DBE_TRUE}" && test -z "${DBE_FALSE}"; then
33058  as_fn_error $? "conditional \"DBE\" was never defined.
33059Usually this means the macro was only invoked conditionally." "$LINENO" 5
33060fi
33061if test -z "${XF86BIGFONT_TRUE}" && test -z "${XF86BIGFONT_FALSE}"; then
33062  as_fn_error $? "conditional \"XF86BIGFONT\" was never defined.
33063Usually this means the macro was only invoked conditionally." "$LINENO" 5
33064fi
33065if test -z "${DPMSExtension_TRUE}" && test -z "${DPMSExtension_FALSE}"; then
33066  as_fn_error $? "conditional \"DPMSExtension\" was never defined.
33067Usually this means the macro was only invoked conditionally." "$LINENO" 5
33068fi
33069if test -z "${XF86UTILS_TRUE}" && test -z "${XF86UTILS_FALSE}"; then
33070  as_fn_error $? "conditional \"XF86UTILS\" was never defined.
33071Usually this means the macro was only invoked conditionally." "$LINENO" 5
33072fi
33073if test -z "${VGAHW_TRUE}" && test -z "${VGAHW_FALSE}"; then
33074  as_fn_error $? "conditional \"VGAHW\" was never defined.
33075Usually this means the macro was only invoked conditionally." "$LINENO" 5
33076fi
33077if test -z "${VBE_TRUE}" && test -z "${VBE_FALSE}"; then
33078  as_fn_error $? "conditional \"VBE\" was never defined.
33079Usually this means the macro was only invoked conditionally." "$LINENO" 5
33080fi
33081if test -z "${INT10MODULE_TRUE}" && test -z "${INT10MODULE_FALSE}"; then
33082  as_fn_error $? "conditional \"INT10MODULE\" was never defined.
33083Usually this means the macro was only invoked conditionally." "$LINENO" 5
33084fi
33085if test -z "${XDMCP_TRUE}" && test -z "${XDMCP_FALSE}"; then
33086  as_fn_error $? "conditional \"XDMCP\" was never defined.
33087Usually this means the macro was only invoked conditionally." "$LINENO" 5
33088fi
33089if test -z "${XDMAUTH_TRUE}" && test -z "${XDMAUTH_FALSE}"; then
33090  as_fn_error $? "conditional \"XDMAUTH\" was never defined.
33091Usually this means the macro was only invoked conditionally." "$LINENO" 5
33092fi
33093if test -z "${XF86VIDMODE_TRUE}" && test -z "${XF86VIDMODE_FALSE}"; then
33094  as_fn_error $? "conditional \"XF86VIDMODE\" was never defined.
33095Usually this means the macro was only invoked conditionally." "$LINENO" 5
33096fi
33097if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
33098  as_fn_error $? "conditional \"DEBUG\" was never defined.
33099Usually this means the macro was only invoked conditionally." "$LINENO" 5
33100fi
33101if test -z "${HAVE_LIBUNWIND_TRUE}" && test -z "${HAVE_LIBUNWIND_FALSE}"; then
33102  as_fn_error $? "conditional \"HAVE_LIBUNWIND\" was never defined.
33103Usually this means the macro was only invoked conditionally." "$LINENO" 5
33104fi
33105if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then
33106  as_fn_error $? "conditional \"CYGWIN\" was never defined.
33107Usually this means the macro was only invoked conditionally." "$LINENO" 5
33108fi
33109if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then
33110  as_fn_error $? "conditional \"NO_UNDEFINED\" was never defined.
33111Usually this means the macro was only invoked conditionally." "$LINENO" 5
33112fi
33113if test -z "${XVFB_TRUE}" && test -z "${XVFB_FALSE}"; then
33114  as_fn_error $? "conditional \"XVFB\" was never defined.
33115Usually this means the macro was only invoked conditionally." "$LINENO" 5
33116fi
33117if test -z "${XNEST_TRUE}" && test -z "${XNEST_FALSE}"; then
33118  as_fn_error $? "conditional \"XNEST\" was never defined.
33119Usually this means the macro was only invoked conditionally." "$LINENO" 5
33120fi
33121if test -z "${XORG_TRUE}" && test -z "${XORG_FALSE}"; then
33122  as_fn_error $? "conditional \"XORG\" was never defined.
33123Usually this means the macro was only invoked conditionally." "$LINENO" 5
33124fi
33125if test -z "${XORG_BUS_PCI_TRUE}" && test -z "${XORG_BUS_PCI_FALSE}"; then
33126  as_fn_error $? "conditional \"XORG_BUS_PCI\" was never defined.
33127Usually this means the macro was only invoked conditionally." "$LINENO" 5
33128fi
33129if test -z "${XORG_BUS_BSDPCI_TRUE}" && test -z "${XORG_BUS_BSDPCI_FALSE}"; then
33130  as_fn_error $? "conditional \"XORG_BUS_BSDPCI\" was never defined.
33131Usually this means the macro was only invoked conditionally." "$LINENO" 5
33132fi
33133if test -z "${XORG_BUS_SPARC_TRUE}" && test -z "${XORG_BUS_SPARC_FALSE}"; then
33134  as_fn_error $? "conditional \"XORG_BUS_SPARC\" was never defined.
33135Usually this means the macro was only invoked conditionally." "$LINENO" 5
33136fi
33137if test -z "${LNXACPI_TRUE}" && test -z "${LNXACPI_FALSE}"; then
33138  as_fn_error $? "conditional \"LNXACPI\" was never defined.
33139Usually this means the macro was only invoked conditionally." "$LINENO" 5
33140fi
33141if test -z "${LNXAPM_TRUE}" && test -z "${LNXAPM_FALSE}"; then
33142  as_fn_error $? "conditional \"LNXAPM\" was never defined.
33143Usually this means the macro was only invoked conditionally." "$LINENO" 5
33144fi
33145if test -z "${SOLARIS_VT_TRUE}" && test -z "${SOLARIS_VT_FALSE}"; then
33146  as_fn_error $? "conditional \"SOLARIS_VT\" was never defined.
33147Usually this means the macro was only invoked conditionally." "$LINENO" 5
33148fi
33149if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then
33150  as_fn_error $? "conditional \"DGA\" was never defined.
33151Usually this means the macro was only invoked conditionally." "$LINENO" 5
33152fi
33153if test -z "${XORG_BUS_PLATFORM_TRUE}" && test -z "${XORG_BUS_PLATFORM_FALSE}"; then
33154  as_fn_error $? "conditional \"XORG_BUS_PLATFORM\" was never defined.
33155Usually this means the macro was only invoked conditionally." "$LINENO" 5
33156fi
33157if test -z "${XORG_DRIVER_MODESETTING_TRUE}" && test -z "${XORG_DRIVER_MODESETTING_FALSE}"; then
33158  as_fn_error $? "conditional \"XORG_DRIVER_MODESETTING\" was never defined.
33159Usually this means the macro was only invoked conditionally." "$LINENO" 5
33160fi
33161if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then
33162  as_fn_error $? "conditional \"GLAMOR\" was never defined.
33163Usually this means the macro was only invoked conditionally." "$LINENO" 5
33164fi
33165if test -z "${GLAMOR_EGL_TRUE}" && test -z "${GLAMOR_EGL_FALSE}"; then
33166  as_fn_error $? "conditional \"GLAMOR_EGL\" was never defined.
33167Usually this means the macro was only invoked conditionally." "$LINENO" 5
33168fi
33169if test -z "${XWIN_TRUE}" && test -z "${XWIN_FALSE}"; then
33170  as_fn_error $? "conditional \"XWIN\" was never defined.
33171Usually this means the macro was only invoked conditionally." "$LINENO" 5
33172fi
33173if test -z "${XWIN_MULTIWINDOWEXTWM_TRUE}" && test -z "${XWIN_MULTIWINDOWEXTWM_FALSE}"; then
33174  as_fn_error $? "conditional \"XWIN_MULTIWINDOWEXTWM\" was never defined.
33175Usually this means the macro was only invoked conditionally." "$LINENO" 5
33176fi
33177if test -z "${XWIN_GLX_WINDOWS_TRUE}" && test -z "${XWIN_GLX_WINDOWS_FALSE}"; then
33178  as_fn_error $? "conditional \"XWIN_GLX_WINDOWS\" was never defined.
33179Usually this means the macro was only invoked conditionally." "$LINENO" 5
33180fi
33181if test -z "${XWIN_WINDOWS_DRI_TRUE}" && test -z "${XWIN_WINDOWS_DRI_FALSE}"; then
33182  as_fn_error $? "conditional \"XWIN_WINDOWS_DRI\" was never defined.
33183Usually this means the macro was only invoked conditionally." "$LINENO" 5
33184fi
33185if test -z "${PSEUDORAMIX_TRUE}" && test -z "${PSEUDORAMIX_FALSE}"; then
33186  as_fn_error $? "conditional \"PSEUDORAMIX\" was never defined.
33187Usually this means the macro was only invoked conditionally." "$LINENO" 5
33188fi
33189if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
33190  as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined.
33191Usually this means the macro was only invoked conditionally." "$LINENO" 5
33192fi
33193if test -z "${XQUARTZ_TRUE}" && test -z "${XQUARTZ_FALSE}"; then
33194  as_fn_error $? "conditional \"XQUARTZ\" was never defined.
33195Usually this means the macro was only invoked conditionally." "$LINENO" 5
33196fi
33197if test -z "${XQUARTZ_SPARKLE_TRUE}" && test -z "${XQUARTZ_SPARKLE_FALSE}"; then
33198  as_fn_error $? "conditional \"XQUARTZ_SPARKLE\" was never defined.
33199Usually this means the macro was only invoked conditionally." "$LINENO" 5
33200fi
33201if test -z "${STANDALONE_XPBPROXY_TRUE}" && test -z "${STANDALONE_XPBPROXY_FALSE}"; then
33202  as_fn_error $? "conditional \"STANDALONE_XPBPROXY\" was never defined.
33203Usually this means the macro was only invoked conditionally." "$LINENO" 5
33204fi
33205if test -z "${DMX_TRUE}" && test -z "${DMX_FALSE}"; then
33206  as_fn_error $? "conditional \"DMX\" was never defined.
33207Usually this means the macro was only invoked conditionally." "$LINENO" 5
33208fi
33209if test -z "${DMX_BUILD_USB_TRUE}" && test -z "${DMX_BUILD_USB_FALSE}"; then
33210  as_fn_error $? "conditional \"DMX_BUILD_USB\" was never defined.
33211Usually this means the macro was only invoked conditionally." "$LINENO" 5
33212fi
33213if test -z "${KDRIVE_TRUE}" && test -z "${KDRIVE_FALSE}"; then
33214  as_fn_error $? "conditional \"KDRIVE\" was never defined.
33215Usually this means the macro was only invoked conditionally." "$LINENO" 5
33216fi
33217if test -z "${XEPHYR_TRUE}" && test -z "${XEPHYR_FALSE}"; then
33218  as_fn_error $? "conditional \"XEPHYR\" was never defined.
33219Usually this means the macro was only invoked conditionally." "$LINENO" 5
33220fi
33221if test -z "${XWAYLAND_TRUE}" && test -z "${XWAYLAND_FALSE}"; then
33222  as_fn_error $? "conditional \"XWAYLAND\" was never defined.
33223Usually this means the macro was only invoked conditionally." "$LINENO" 5
33224fi
33225if test -z "${XWAYLAND_EGLSTREAM_TRUE}" && test -z "${XWAYLAND_EGLSTREAM_FALSE}"; then
33226  as_fn_error $? "conditional \"XWAYLAND_EGLSTREAM\" was never defined.
33227Usually this means the macro was only invoked conditionally." "$LINENO" 5
33228fi
33229
33230: "${CONFIG_STATUS=./config.status}"
33231ac_write_fail=0
33232ac_clean_files_save=$ac_clean_files
33233ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33234{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33235$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33236as_write_fail=0
33237cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33238#! $SHELL
33239# Generated by $as_me.
33240# Run this file to recreate the current configuration.
33241# Compiler output produced by configure, useful for debugging
33242# configure, is in config.log if it exists.
33243
33244debug=false
33245ac_cs_recheck=false
33246ac_cs_silent=false
33247
33248SHELL=\${CONFIG_SHELL-$SHELL}
33249export SHELL
33250_ASEOF
33251cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33252## -------------------- ##
33253## M4sh Initialization. ##
33254## -------------------- ##
33255
33256# Be more Bourne compatible
33257DUALCASE=1; export DUALCASE # for MKS sh
33258if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
33259  emulate sh
33260  NULLCMD=:
33261  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33262  # is contrary to our usage.  Disable this feature.
33263  alias -g '${1+"$@"}'='"$@"'
33264  setopt NO_GLOB_SUBST
33265else
33266  case `(set -o) 2>/dev/null` in #(
33267  *posix*) :
33268    set -o posix ;; #(
33269  *) :
33270     ;;
33271esac
33272fi
33273
33274
33275as_nl='
33276'
33277export as_nl
33278# Printing a long string crashes Solaris 7 /usr/bin/printf.
33279as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33280as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33281as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33282# Prefer a ksh shell builtin over an external printf program on Solaris,
33283# but without wasting forks for bash or zsh.
33284if test -z "$BASH_VERSION$ZSH_VERSION" \
33285    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33286  as_echo='print -r --'
33287  as_echo_n='print -rn --'
33288elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33289  as_echo='printf %s\n'
33290  as_echo_n='printf %s'
33291else
33292  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33293    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33294    as_echo_n='/usr/ucb/echo -n'
33295  else
33296    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33297    as_echo_n_body='eval
33298      arg=$1;
33299      case $arg in #(
33300      *"$as_nl"*)
33301	expr "X$arg" : "X\\(.*\\)$as_nl";
33302	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33303      esac;
33304      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33305    '
33306    export as_echo_n_body
33307    as_echo_n='sh -c $as_echo_n_body as_echo'
33308  fi
33309  export as_echo_body
33310  as_echo='sh -c $as_echo_body as_echo'
33311fi
33312
33313# The user is always right.
33314if test "${PATH_SEPARATOR+set}" != set; then
33315  PATH_SEPARATOR=:
33316  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33317    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33318      PATH_SEPARATOR=';'
33319  }
33320fi
33321
33322
33323# IFS
33324# We need space, tab and new line, in precisely that order.  Quoting is
33325# there to prevent editors from complaining about space-tab.
33326# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33327# splitting by setting IFS to empty value.)
33328IFS=" ""	$as_nl"
33329
33330# Find who we are.  Look in the path if we contain no directory separator.
33331as_myself=
33332case $0 in #((
33333  *[\\/]* ) as_myself=$0 ;;
33334  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33335for as_dir in $PATH
33336do
33337  IFS=$as_save_IFS
33338  test -z "$as_dir" && as_dir=.
33339    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33340  done
33341IFS=$as_save_IFS
33342
33343     ;;
33344esac
33345# We did not find ourselves, most probably we were run as `sh COMMAND'
33346# in which case we are not to be found in the path.
33347if test "x$as_myself" = x; then
33348  as_myself=$0
33349fi
33350if test ! -f "$as_myself"; then
33351  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33352  exit 1
33353fi
33354
33355# Unset variables that we do not need and which cause bugs (e.g. in
33356# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
33357# suppresses any "Segmentation fault" message there.  '((' could
33358# trigger a bug in pdksh 5.2.14.
33359for as_var in BASH_ENV ENV MAIL MAILPATH
33360do eval test x\${$as_var+set} = xset \
33361  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33362done
33363PS1='$ '
33364PS2='> '
33365PS4='+ '
33366
33367# NLS nuisances.
33368LC_ALL=C
33369export LC_ALL
33370LANGUAGE=C
33371export LANGUAGE
33372
33373# CDPATH.
33374(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33375
33376
33377# as_fn_error STATUS ERROR [LINENO LOG_FD]
33378# ----------------------------------------
33379# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33380# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33381# script with STATUS, using 1 if that was 0.
33382as_fn_error ()
33383{
33384  as_status=$1; test $as_status -eq 0 && as_status=1
33385  if test "$4"; then
33386    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33387    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33388  fi
33389  $as_echo "$as_me: error: $2" >&2
33390  as_fn_exit $as_status
33391} # as_fn_error
33392
33393
33394# as_fn_set_status STATUS
33395# -----------------------
33396# Set $? to STATUS, without forking.
33397as_fn_set_status ()
33398{
33399  return $1
33400} # as_fn_set_status
33401
33402# as_fn_exit STATUS
33403# -----------------
33404# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33405as_fn_exit ()
33406{
33407  set +e
33408  as_fn_set_status $1
33409  exit $1
33410} # as_fn_exit
33411
33412# as_fn_unset VAR
33413# ---------------
33414# Portably unset VAR.
33415as_fn_unset ()
33416{
33417  { eval $1=; unset $1;}
33418}
33419as_unset=as_fn_unset
33420# as_fn_append VAR VALUE
33421# ----------------------
33422# Append the text in VALUE to the end of the definition contained in VAR. Take
33423# advantage of any shell optimizations that allow amortized linear growth over
33424# repeated appends, instead of the typical quadratic growth present in naive
33425# implementations.
33426if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33427  eval 'as_fn_append ()
33428  {
33429    eval $1+=\$2
33430  }'
33431else
33432  as_fn_append ()
33433  {
33434    eval $1=\$$1\$2
33435  }
33436fi # as_fn_append
33437
33438# as_fn_arith ARG...
33439# ------------------
33440# Perform arithmetic evaluation on the ARGs, and store the result in the
33441# global $as_val. Take advantage of shells that can avoid forks. The arguments
33442# must be portable across $(()) and expr.
33443if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33444  eval 'as_fn_arith ()
33445  {
33446    as_val=$(( $* ))
33447  }'
33448else
33449  as_fn_arith ()
33450  {
33451    as_val=`expr "$@" || test $? -eq 1`
33452  }
33453fi # as_fn_arith
33454
33455
33456if expr a : '\(a\)' >/dev/null 2>&1 &&
33457   test "X`expr 00001 : '.*\(...\)'`" = X001; then
33458  as_expr=expr
33459else
33460  as_expr=false
33461fi
33462
33463if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33464  as_basename=basename
33465else
33466  as_basename=false
33467fi
33468
33469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33470  as_dirname=dirname
33471else
33472  as_dirname=false
33473fi
33474
33475as_me=`$as_basename -- "$0" ||
33476$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33477	 X"$0" : 'X\(//\)$' \| \
33478	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33479$as_echo X/"$0" |
33480    sed '/^.*\/\([^/][^/]*\)\/*$/{
33481	    s//\1/
33482	    q
33483	  }
33484	  /^X\/\(\/\/\)$/{
33485	    s//\1/
33486	    q
33487	  }
33488	  /^X\/\(\/\).*/{
33489	    s//\1/
33490	    q
33491	  }
33492	  s/.*/./; q'`
33493
33494# Avoid depending upon Character Ranges.
33495as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33496as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33497as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33498as_cr_digits='0123456789'
33499as_cr_alnum=$as_cr_Letters$as_cr_digits
33500
33501ECHO_C= ECHO_N= ECHO_T=
33502case `echo -n x` in #(((((
33503-n*)
33504  case `echo 'xy\c'` in
33505  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
33506  xy)  ECHO_C='\c';;
33507  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
33508       ECHO_T='	';;
33509  esac;;
33510*)
33511  ECHO_N='-n';;
33512esac
33513
33514rm -f conf$$ conf$$.exe conf$$.file
33515if test -d conf$$.dir; then
33516  rm -f conf$$.dir/conf$$.file
33517else
33518  rm -f conf$$.dir
33519  mkdir conf$$.dir 2>/dev/null
33520fi
33521if (echo >conf$$.file) 2>/dev/null; then
33522  if ln -s conf$$.file conf$$ 2>/dev/null; then
33523    as_ln_s='ln -s'
33524    # ... but there are two gotchas:
33525    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33526    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33527    # In both cases, we have to default to `cp -pR'.
33528    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33529      as_ln_s='cp -pR'
33530  elif ln conf$$.file conf$$ 2>/dev/null; then
33531    as_ln_s=ln
33532  else
33533    as_ln_s='cp -pR'
33534  fi
33535else
33536  as_ln_s='cp -pR'
33537fi
33538rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33539rmdir conf$$.dir 2>/dev/null
33540
33541
33542# as_fn_mkdir_p
33543# -------------
33544# Create "$as_dir" as a directory, including parents if necessary.
33545as_fn_mkdir_p ()
33546{
33547
33548  case $as_dir in #(
33549  -*) as_dir=./$as_dir;;
33550  esac
33551  test -d "$as_dir" || eval $as_mkdir_p || {
33552    as_dirs=
33553    while :; do
33554      case $as_dir in #(
33555      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33556      *) as_qdir=$as_dir;;
33557      esac
33558      as_dirs="'$as_qdir' $as_dirs"
33559      as_dir=`$as_dirname -- "$as_dir" ||
33560$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33561	 X"$as_dir" : 'X\(//\)[^/]' \| \
33562	 X"$as_dir" : 'X\(//\)$' \| \
33563	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33564$as_echo X"$as_dir" |
33565    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33566	    s//\1/
33567	    q
33568	  }
33569	  /^X\(\/\/\)[^/].*/{
33570	    s//\1/
33571	    q
33572	  }
33573	  /^X\(\/\/\)$/{
33574	    s//\1/
33575	    q
33576	  }
33577	  /^X\(\/\).*/{
33578	    s//\1/
33579	    q
33580	  }
33581	  s/.*/./; q'`
33582      test -d "$as_dir" && break
33583    done
33584    test -z "$as_dirs" || eval "mkdir $as_dirs"
33585  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33586
33587
33588} # as_fn_mkdir_p
33589if mkdir -p . 2>/dev/null; then
33590  as_mkdir_p='mkdir -p "$as_dir"'
33591else
33592  test -d ./-p && rmdir ./-p
33593  as_mkdir_p=false
33594fi
33595
33596
33597# as_fn_executable_p FILE
33598# -----------------------
33599# Test if FILE is an executable regular file.
33600as_fn_executable_p ()
33601{
33602  test -f "$1" && test -x "$1"
33603} # as_fn_executable_p
33604as_test_x='test -x'
33605as_executable_p=as_fn_executable_p
33606
33607# Sed expression to map a string onto a valid CPP name.
33608as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33609
33610# Sed expression to map a string onto a valid variable name.
33611as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33612
33613
33614exec 6>&1
33615## ----------------------------------- ##
33616## Main body of $CONFIG_STATUS script. ##
33617## ----------------------------------- ##
33618_ASEOF
33619test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33620
33621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33622# Save the log message, to keep $0 and so on meaningful, and to
33623# report actual input values of CONFIG_FILES etc. instead of their
33624# values after options handling.
33625ac_log="
33626This file was extended by xorg-server $as_me 1.20.11, which was
33627generated by GNU Autoconf 2.69.  Invocation command line was
33628
33629  CONFIG_FILES    = $CONFIG_FILES
33630  CONFIG_HEADERS  = $CONFIG_HEADERS
33631  CONFIG_LINKS    = $CONFIG_LINKS
33632  CONFIG_COMMANDS = $CONFIG_COMMANDS
33633  $ $0 $@
33634
33635on `(hostname || uname -n) 2>/dev/null | sed 1q`
33636"
33637
33638_ACEOF
33639
33640case $ac_config_files in *"
33641"*) set x $ac_config_files; shift; ac_config_files=$*;;
33642esac
33643
33644case $ac_config_headers in *"
33645"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33646esac
33647
33648
33649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33650# Files that config.status was made for.
33651config_files="$ac_config_files"
33652config_headers="$ac_config_headers"
33653config_commands="$ac_config_commands"
33654
33655_ACEOF
33656
33657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33658ac_cs_usage="\
33659\`$as_me' instantiates files and other configuration actions
33660from templates according to the current configuration.  Unless the files
33661and actions are specified as TAGs, all are instantiated by default.
33662
33663Usage: $0 [OPTION]... [TAG]...
33664
33665  -h, --help       print this help, then exit
33666  -V, --version    print version number and configuration settings, then exit
33667      --config     print configuration, then exit
33668  -q, --quiet, --silent
33669                   do not print progress messages
33670  -d, --debug      don't remove temporary files
33671      --recheck    update $as_me by reconfiguring in the same conditions
33672      --file=FILE[:TEMPLATE]
33673                   instantiate the configuration file FILE
33674      --header=FILE[:TEMPLATE]
33675                   instantiate the configuration header FILE
33676
33677Configuration files:
33678$config_files
33679
33680Configuration headers:
33681$config_headers
33682
33683Configuration commands:
33684$config_commands
33685
33686Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>."
33687
33688_ACEOF
33689cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33690ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33691ac_cs_version="\\
33692xorg-server config.status 1.20.11
33693configured by $0, generated by GNU Autoconf 2.69,
33694  with options \\"\$ac_cs_config\\"
33695
33696Copyright (C) 2012 Free Software Foundation, Inc.
33697This config.status script is free software; the Free Software Foundation
33698gives unlimited permission to copy, distribute and modify it."
33699
33700ac_pwd='$ac_pwd'
33701srcdir='$srcdir'
33702INSTALL='$INSTALL'
33703MKDIR_P='$MKDIR_P'
33704AWK='$AWK'
33705test -n "\$AWK" || AWK=awk
33706_ACEOF
33707
33708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33709# The default lists apply if the user does not specify any file.
33710ac_need_defaults=:
33711while test $# != 0
33712do
33713  case $1 in
33714  --*=?*)
33715    ac_option=`expr "X$1" : 'X\([^=]*\)='`
33716    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33717    ac_shift=:
33718    ;;
33719  --*=)
33720    ac_option=`expr "X$1" : 'X\([^=]*\)='`
33721    ac_optarg=
33722    ac_shift=:
33723    ;;
33724  *)
33725    ac_option=$1
33726    ac_optarg=$2
33727    ac_shift=shift
33728    ;;
33729  esac
33730
33731  case $ac_option in
33732  # Handling of the options.
33733  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33734    ac_cs_recheck=: ;;
33735  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33736    $as_echo "$ac_cs_version"; exit ;;
33737  --config | --confi | --conf | --con | --co | --c )
33738    $as_echo "$ac_cs_config"; exit ;;
33739  --debug | --debu | --deb | --de | --d | -d )
33740    debug=: ;;
33741  --file | --fil | --fi | --f )
33742    $ac_shift
33743    case $ac_optarg in
33744    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33745    '') as_fn_error $? "missing file argument" ;;
33746    esac
33747    as_fn_append CONFIG_FILES " '$ac_optarg'"
33748    ac_need_defaults=false;;
33749  --header | --heade | --head | --hea )
33750    $ac_shift
33751    case $ac_optarg in
33752    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33753    esac
33754    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33755    ac_need_defaults=false;;
33756  --he | --h)
33757    # Conflict between --help and --header
33758    as_fn_error $? "ambiguous option: \`$1'
33759Try \`$0 --help' for more information.";;
33760  --help | --hel | -h )
33761    $as_echo "$ac_cs_usage"; exit ;;
33762  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33763  | -silent | --silent | --silen | --sile | --sil | --si | --s)
33764    ac_cs_silent=: ;;
33765
33766  # This is an error.
33767  -*) as_fn_error $? "unrecognized option: \`$1'
33768Try \`$0 --help' for more information." ;;
33769
33770  *) as_fn_append ac_config_targets " $1"
33771     ac_need_defaults=false ;;
33772
33773  esac
33774  shift
33775done
33776
33777ac_configure_extra_args=
33778
33779if $ac_cs_silent; then
33780  exec 6>/dev/null
33781  ac_configure_extra_args="$ac_configure_extra_args --silent"
33782fi
33783
33784_ACEOF
33785cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33786if \$ac_cs_recheck; then
33787  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33788  shift
33789  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33790  CONFIG_SHELL='$SHELL'
33791  export CONFIG_SHELL
33792  exec "\$@"
33793fi
33794
33795_ACEOF
33796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33797exec 5>>config.log
33798{
33799  echo
33800  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33801## Running $as_me. ##
33802_ASBOX
33803  $as_echo "$ac_log"
33804} >&5
33805
33806_ACEOF
33807cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33808#
33809# INIT-COMMANDS
33810#
33811AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
33812
33813
33814# The HP-UX ksh and POSIX shell print the target directory to stdout
33815# if CDPATH is set.
33816(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33817
33818sed_quote_subst='$sed_quote_subst'
33819double_quote_subst='$double_quote_subst'
33820delay_variable_subst='$delay_variable_subst'
33821macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33822macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33823enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33824AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33825DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33826OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33827enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33828pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33829enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33830shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
33831SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33832ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33833PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
33834host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33835host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33836host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33837build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33838build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33839build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33840SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33841Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33842GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33843EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33844FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33845LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33846NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33847LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33848max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33849ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33850exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33851lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33852lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33853lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33854lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
33855lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
33856reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33857reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33858deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33859file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33860file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
33861want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
33862sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
33863AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33864AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33865archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
33866STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33867RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33868old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33869old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33870old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
33871lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
33872CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
33873CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
33874compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
33875GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
33876lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
33877lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33878lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
33879lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33880lt_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"`'
33881lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
33882nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
33883lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
33884lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
33885objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33886MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33887lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33888lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33889lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33890lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33891lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33892need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33893MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
33894DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33895NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33896LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33897OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
33898OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
33899libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
33900shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
33901extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33902archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
33903enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
33904export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
33905whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
33906compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
33907old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
33908old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33909archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
33910archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33911module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
33912module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33913with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
33914allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
33915no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
33916hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
33917hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
33918hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
33919hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
33920hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
33921hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
33922hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33923inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33924link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33925always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33926export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33927exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33928include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33929prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33930postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
33931file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33932variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33933need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33934need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
33935version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
33936runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
33937shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
33938shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
33939libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
33940library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
33941soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
33942install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
33943postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33944postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33945finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
33946finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
33947hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
33948sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
33949configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
33950configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
33951hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
33952enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
33953enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
33954enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
33955old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
33956striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
33957
33958LTCC='$LTCC'
33959LTCFLAGS='$LTCFLAGS'
33960compiler='$compiler_DEFAULT'
33961
33962# A function that is used when there is no print builtin or printf.
33963func_fallback_echo ()
33964{
33965  eval 'cat <<_LTECHO_EOF
33966\$1
33967_LTECHO_EOF'
33968}
33969
33970# Quote evaled strings.
33971for var in AS \
33972DLLTOOL \
33973OBJDUMP \
33974SHELL \
33975ECHO \
33976PATH_SEPARATOR \
33977SED \
33978GREP \
33979EGREP \
33980FGREP \
33981LD \
33982NM \
33983LN_S \
33984lt_SP2NL \
33985lt_NL2SP \
33986reload_flag \
33987deplibs_check_method \
33988file_magic_cmd \
33989file_magic_glob \
33990want_nocaseglob \
33991sharedlib_from_linklib_cmd \
33992AR \
33993AR_FLAGS \
33994archiver_list_spec \
33995STRIP \
33996RANLIB \
33997CC \
33998CFLAGS \
33999compiler \
34000lt_cv_sys_global_symbol_pipe \
34001lt_cv_sys_global_symbol_to_cdecl \
34002lt_cv_sys_global_symbol_to_import \
34003lt_cv_sys_global_symbol_to_c_name_address \
34004lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
34005lt_cv_nm_interface \
34006nm_file_list_spec \
34007lt_cv_truncate_bin \
34008lt_prog_compiler_no_builtin_flag \
34009lt_prog_compiler_pic \
34010lt_prog_compiler_wl \
34011lt_prog_compiler_static \
34012lt_cv_prog_compiler_c_o \
34013need_locks \
34014MANIFEST_TOOL \
34015DSYMUTIL \
34016NMEDIT \
34017LIPO \
34018OTOOL \
34019OTOOL64 \
34020shrext_cmds \
34021export_dynamic_flag_spec \
34022whole_archive_flag_spec \
34023compiler_needs_object \
34024with_gnu_ld \
34025allow_undefined_flag \
34026no_undefined_flag \
34027hardcode_libdir_flag_spec \
34028hardcode_libdir_separator \
34029exclude_expsyms \
34030include_expsyms \
34031file_list_spec \
34032variables_saved_for_relink \
34033libname_spec \
34034library_names_spec \
34035soname_spec \
34036install_override_mode \
34037finish_eval \
34038old_striplib \
34039striplib; do
34040    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34041    *[\\\\\\\`\\"\\\$]*)
34042      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
34043      ;;
34044    *)
34045      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34046      ;;
34047    esac
34048done
34049
34050# Double-quote double-evaled strings.
34051for var in reload_cmds \
34052old_postinstall_cmds \
34053old_postuninstall_cmds \
34054old_archive_cmds \
34055extract_expsyms_cmds \
34056old_archive_from_new_cmds \
34057old_archive_from_expsyms_cmds \
34058archive_cmds \
34059archive_expsym_cmds \
34060module_cmds \
34061module_expsym_cmds \
34062export_symbols_cmds \
34063prelink_cmds \
34064postlink_cmds \
34065postinstall_cmds \
34066postuninstall_cmds \
34067finish_cmds \
34068sys_lib_search_path_spec \
34069configure_time_dlsearch_path \
34070configure_time_lt_sys_library_path; do
34071    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34072    *[\\\\\\\`\\"\\\$]*)
34073      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
34074      ;;
34075    *)
34076      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34077      ;;
34078    esac
34079done
34080
34081ac_aux_dir='$ac_aux_dir'
34082
34083# See if we are running on zsh, and set the options that allow our
34084# commands through without removal of \ escapes INIT.
34085if test -n "\${ZSH_VERSION+set}"; then
34086   setopt NO_GLOB_SUBST
34087fi
34088
34089
34090    PACKAGE='$PACKAGE'
34091    VERSION='$VERSION'
34092    RM='$RM'
34093    ofile='$ofile'
34094
34095
34096
34097
34098_ACEOF
34099
34100cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34101
34102# Handling of arguments.
34103for ac_config_target in $ac_config_targets
34104do
34105  case $ac_config_target in
34106    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34107    "include/do-not-use-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/do-not-use-config.h" ;;
34108    "include/xorg-server.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-server.h" ;;
34109    "include/dix-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/dix-config.h" ;;
34110    "include/xorg-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-config.h" ;;
34111    "include/xkb-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xkb-config.h" ;;
34112    "include/xwin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwin-config.h" ;;
34113    "include/xwayland-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwayland-config.h" ;;
34114    "include/version-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/version-config.h" ;;
34115    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34116    "sdksyms") CONFIG_COMMANDS="$CONFIG_COMMANDS sdksyms" ;;
34117    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34118    "glx/Makefile") CONFIG_FILES="$CONFIG_FILES glx/Makefile" ;;
34119    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
34120    "composite/Makefile") CONFIG_FILES="$CONFIG_FILES composite/Makefile" ;;
34121    "damageext/Makefile") CONFIG_FILES="$CONFIG_FILES damageext/Makefile" ;;
34122    "dbe/Makefile") CONFIG_FILES="$CONFIG_FILES dbe/Makefile" ;;
34123    "dix/Makefile") CONFIG_FILES="$CONFIG_FILES dix/Makefile" ;;
34124    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
34125    "doc/dtrace/Makefile") CONFIG_FILES="$CONFIG_FILES doc/dtrace/Makefile" ;;
34126    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
34127    "fb/Makefile") CONFIG_FILES="$CONFIG_FILES fb/Makefile" ;;
34128    "glamor/Makefile") CONFIG_FILES="$CONFIG_FILES glamor/Makefile" ;;
34129    "record/Makefile") CONFIG_FILES="$CONFIG_FILES record/Makefile" ;;
34130    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
34131    "mi/Makefile") CONFIG_FILES="$CONFIG_FILES mi/Makefile" ;;
34132    "miext/Makefile") CONFIG_FILES="$CONFIG_FILES miext/Makefile" ;;
34133    "miext/sync/Makefile") CONFIG_FILES="$CONFIG_FILES miext/sync/Makefile" ;;
34134    "miext/damage/Makefile") CONFIG_FILES="$CONFIG_FILES miext/damage/Makefile" ;;
34135    "miext/shadow/Makefile") CONFIG_FILES="$CONFIG_FILES miext/shadow/Makefile" ;;
34136    "miext/rootless/Makefile") CONFIG_FILES="$CONFIG_FILES miext/rootless/Makefile" ;;
34137    "os/Makefile") CONFIG_FILES="$CONFIG_FILES os/Makefile" ;;
34138    "pseudoramiX/Makefile") CONFIG_FILES="$CONFIG_FILES pseudoramiX/Makefile" ;;
34139    "randr/Makefile") CONFIG_FILES="$CONFIG_FILES randr/Makefile" ;;
34140    "render/Makefile") CONFIG_FILES="$CONFIG_FILES render/Makefile" ;;
34141    "xkb/Makefile") CONFIG_FILES="$CONFIG_FILES xkb/Makefile" ;;
34142    "Xext/Makefile") CONFIG_FILES="$CONFIG_FILES Xext/Makefile" ;;
34143    "Xi/Makefile") CONFIG_FILES="$CONFIG_FILES Xi/Makefile" ;;
34144    "xfixes/Makefile") CONFIG_FILES="$CONFIG_FILES xfixes/Makefile" ;;
34145    "exa/Makefile") CONFIG_FILES="$CONFIG_FILES exa/Makefile" ;;
34146    "dri3/Makefile") CONFIG_FILES="$CONFIG_FILES dri3/Makefile" ;;
34147    "present/Makefile") CONFIG_FILES="$CONFIG_FILES present/Makefile" ;;
34148    "hw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/Makefile" ;;
34149    "hw/xfree86/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Makefile" ;;
34150    "hw/xfree86/Xorg.sh") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Xorg.sh" ;;
34151    "hw/xfree86/common/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/Makefile" ;;
34152    "hw/xfree86/common/xf86Build.h") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/xf86Build.h" ;;
34153    "hw/xfree86/ddc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ddc/Makefile" ;;
34154    "hw/xfree86/dixmods/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/Makefile" ;;
34155    "hw/xfree86/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/Makefile" ;;
34156    "hw/xfree86/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri/Makefile" ;;
34157    "hw/xfree86/dri2/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/Makefile" ;;
34158    "hw/xfree86/dri2/pci_ids/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/pci_ids/Makefile" ;;
34159    "hw/xfree86/drivers/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/Makefile" ;;
34160    "hw/xfree86/drivers/modesetting/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/modesetting/Makefile" ;;
34161    "hw/xfree86/exa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/Makefile" ;;
34162    "hw/xfree86/exa/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/man/Makefile" ;;
34163    "hw/xfree86/fbdevhw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/Makefile" ;;
34164    "hw/xfree86/fbdevhw/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/man/Makefile" ;;
34165    "hw/xfree86/glamor_egl/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/glamor_egl/Makefile" ;;
34166    "hw/xfree86/i2c/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/i2c/Makefile" ;;
34167    "hw/xfree86/int10/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/int10/Makefile" ;;
34168    "hw/xfree86/loader/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/loader/Makefile" ;;
34169    "hw/xfree86/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/man/Makefile" ;;
34170    "hw/xfree86/modes/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/modes/Makefile" ;;
34171    "hw/xfree86/os-support/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/Makefile" ;;
34172    "hw/xfree86/os-support/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bsd/Makefile" ;;
34173    "hw/xfree86/os-support/bus/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bus/Makefile" ;;
34174    "hw/xfree86/os-support/hurd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/hurd/Makefile" ;;
34175    "hw/xfree86/os-support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/misc/Makefile" ;;
34176    "hw/xfree86/os-support/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/linux/Makefile" ;;
34177    "hw/xfree86/os-support/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/solaris/Makefile" ;;
34178    "hw/xfree86/os-support/stub/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/stub/Makefile" ;;
34179    "hw/xfree86/parser/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/parser/Makefile" ;;
34180    "hw/xfree86/ramdac/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ramdac/Makefile" ;;
34181    "hw/xfree86/shadowfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/shadowfb/Makefile" ;;
34182    "hw/xfree86/vbe/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vbe/Makefile" ;;
34183    "hw/xfree86/vgahw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vgahw/Makefile" ;;
34184    "hw/xfree86/x86emu/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/x86emu/Makefile" ;;
34185    "hw/xfree86/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xkb/Makefile" ;;
34186    "hw/xfree86/utils/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/Makefile" ;;
34187    "hw/xfree86/utils/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/man/Makefile" ;;
34188    "hw/xfree86/utils/cvt/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/cvt/Makefile" ;;
34189    "hw/xfree86/utils/gtf/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/gtf/Makefile" ;;
34190    "hw/dmx/config/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/config/Makefile" ;;
34191    "hw/dmx/config/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/config/man/Makefile" ;;
34192    "hw/dmx/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/doc/Makefile" ;;
34193    "hw/dmx/doxygen/doxygen.conf") CONFIG_FILES="$CONFIG_FILES hw/dmx/doxygen/doxygen.conf" ;;
34194    "hw/dmx/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/doxygen/Makefile" ;;
34195    "hw/dmx/examples/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/examples/Makefile" ;;
34196    "hw/dmx/input/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/input/Makefile" ;;
34197    "hw/dmx/glxProxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/glxProxy/Makefile" ;;
34198    "hw/dmx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/Makefile" ;;
34199    "hw/dmx/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/man/Makefile" ;;
34200    "hw/vfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/Makefile" ;;
34201    "hw/vfb/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/man/Makefile" ;;
34202    "hw/xnest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/Makefile" ;;
34203    "hw/xnest/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/man/Makefile" ;;
34204    "hw/xwin/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/Makefile" ;;
34205    "hw/xwin/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/dri/Makefile" ;;
34206    "hw/xwin/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/glx/Makefile" ;;
34207    "hw/xwin/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/man/Makefile" ;;
34208    "hw/xwin/winclipboard/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/winclipboard/Makefile" ;;
34209    "hw/xquartz/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/Makefile" ;;
34210    "hw/xquartz/GL/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/GL/Makefile" ;;
34211    "hw/xquartz/bundle/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/bundle/Makefile" ;;
34212    "hw/xquartz/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/man/Makefile" ;;
34213    "hw/xquartz/mach-startup/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/mach-startup/Makefile" ;;
34214    "hw/xquartz/pbproxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/pbproxy/Makefile" ;;
34215    "hw/xquartz/xpr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/xpr/Makefile" ;;
34216    "hw/kdrive/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/Makefile" ;;
34217    "hw/kdrive/ephyr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/Makefile" ;;
34218    "hw/kdrive/ephyr/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/man/Makefile" ;;
34219    "hw/kdrive/src/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/src/Makefile" ;;
34220    "hw/xwayland/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwayland/Makefile" ;;
34221    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
34222    "xserver.ent") CONFIG_FILES="$CONFIG_FILES xserver.ent" ;;
34223    "xorg-server.pc") CONFIG_FILES="$CONFIG_FILES xorg-server.pc" ;;
34224
34225  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34226  esac
34227done
34228
34229
34230# If the user did not use the arguments to specify the items to instantiate,
34231# then the envvar interface is used.  Set only those that are not.
34232# We use the long form for the default assignment because of an extremely
34233# bizarre bug on SunOS 4.1.3.
34234if $ac_need_defaults; then
34235  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34236  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34237  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34238fi
34239
34240# Have a temporary directory for convenience.  Make it in the build tree
34241# simply because there is no reason against having it here, and in addition,
34242# creating and moving files from /tmp can sometimes cause problems.
34243# Hook for its removal unless debugging.
34244# Note that there is a small window in which the directory will not be cleaned:
34245# after its creation but before its name has been assigned to `$tmp'.
34246$debug ||
34247{
34248  tmp= ac_tmp=
34249  trap 'exit_status=$?
34250  : "${ac_tmp:=$tmp}"
34251  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
34252' 0
34253  trap 'as_fn_exit 1' 1 2 13 15
34254}
34255# Create a (secure) tmp directory for tmp files.
34256
34257{
34258  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34259  test -d "$tmp"
34260}  ||
34261{
34262  tmp=./conf$$-$RANDOM
34263  (umask 077 && mkdir "$tmp")
34264} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
34265ac_tmp=$tmp
34266
34267# Set up the scripts for CONFIG_FILES section.
34268# No need to generate them if there are no CONFIG_FILES.
34269# This happens for instance with `./config.status config.h'.
34270if test -n "$CONFIG_FILES"; then
34271
34272
34273ac_cr=`echo X | tr X '\015'`
34274# On cygwin, bash can eat \r inside `` if the user requested igncr.
34275# But we know of no other shell where ac_cr would be empty at this
34276# point, so we can use a bashism as a fallback.
34277if test "x$ac_cr" = x; then
34278  eval ac_cr=\$\'\\r\'
34279fi
34280ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34281if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34282  ac_cs_awk_cr='\\r'
34283else
34284  ac_cs_awk_cr=$ac_cr
34285fi
34286
34287echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
34288_ACEOF
34289
34290
34291{
34292  echo "cat >conf$$subs.awk <<_ACEOF" &&
34293  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34294  echo "_ACEOF"
34295} >conf$$subs.sh ||
34296  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34297ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34298ac_delim='%!_!# '
34299for ac_last_try in false false false false false :; do
34300  . ./conf$$subs.sh ||
34301    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34302
34303  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34304  if test $ac_delim_n = $ac_delim_num; then
34305    break
34306  elif $ac_last_try; then
34307    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34308  else
34309    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34310  fi
34311done
34312rm -f conf$$subs.sh
34313
34314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34315cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
34316_ACEOF
34317sed -n '
34318h
34319s/^/S["/; s/!.*/"]=/
34320p
34321g
34322s/^[^!]*!//
34323:repl
34324t repl
34325s/'"$ac_delim"'$//
34326t delim
34327:nl
34328h
34329s/\(.\{148\}\)..*/\1/
34330t more1
34331s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34332p
34333n
34334b repl
34335:more1
34336s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34337p
34338g
34339s/.\{148\}//
34340t nl
34341:delim
34342h
34343s/\(.\{148\}\)..*/\1/
34344t more2
34345s/["\\]/\\&/g; s/^/"/; s/$/"/
34346p
34347b
34348:more2
34349s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34350p
34351g
34352s/.\{148\}//
34353t delim
34354' <conf$$subs.awk | sed '
34355/^[^""]/{
34356  N
34357  s/\n//
34358}
34359' >>$CONFIG_STATUS || ac_write_fail=1
34360rm -f conf$$subs.awk
34361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34362_ACAWK
34363cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
34364  for (key in S) S_is_set[key] = 1
34365  FS = ""
34366
34367}
34368{
34369  line = $ 0
34370  nfields = split(line, field, "@")
34371  substed = 0
34372  len = length(field[1])
34373  for (i = 2; i < nfields; i++) {
34374    key = field[i]
34375    keylen = length(key)
34376    if (S_is_set[key]) {
34377      value = S[key]
34378      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34379      len += length(value) + length(field[++i])
34380      substed = 1
34381    } else
34382      len += 1 + keylen
34383  }
34384
34385  print line
34386}
34387
34388_ACAWK
34389_ACEOF
34390cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34391if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34392  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34393else
34394  cat
34395fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
34396  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34397_ACEOF
34398
34399# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34400# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34401# trailing colons and then remove the whole line if VPATH becomes empty
34402# (actually we leave an empty line to preserve line numbers).
34403if test "x$srcdir" = x.; then
34404  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
34405h
34406s///
34407s/^/:/
34408s/[	 ]*$/:/
34409s/:\$(srcdir):/:/g
34410s/:\${srcdir}:/:/g
34411s/:@srcdir@:/:/g
34412s/^:*//
34413s/:*$//
34414x
34415s/\(=[	 ]*\).*/\1/
34416G
34417s/\n//
34418s/^[^=]*=[	 ]*$//
34419}'
34420fi
34421
34422cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34423fi # test -n "$CONFIG_FILES"
34424
34425# Set up the scripts for CONFIG_HEADERS section.
34426# No need to generate them if there are no CONFIG_HEADERS.
34427# This happens for instance with `./config.status Makefile'.
34428if test -n "$CONFIG_HEADERS"; then
34429cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
34430BEGIN {
34431_ACEOF
34432
34433# Transform confdefs.h into an awk script `defines.awk', embedded as
34434# here-document in config.status, that substitutes the proper values into
34435# config.h.in to produce config.h.
34436
34437# Create a delimiter string that does not exist in confdefs.h, to ease
34438# handling of long lines.
34439ac_delim='%!_!# '
34440for ac_last_try in false false :; do
34441  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
34442  if test -z "$ac_tt"; then
34443    break
34444  elif $ac_last_try; then
34445    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34446  else
34447    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34448  fi
34449done
34450
34451# For the awk script, D is an array of macro values keyed by name,
34452# likewise P contains macro parameters if any.  Preserve backslash
34453# newline sequences.
34454
34455ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34456sed -n '
34457s/.\{148\}/&'"$ac_delim"'/g
34458t rset
34459:rset
34460s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
34461t def
34462d
34463:def
34464s/\\$//
34465t bsnl
34466s/["\\]/\\&/g
34467s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
34468D["\1"]=" \3"/p
34469s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
34470d
34471:bsnl
34472s/["\\]/\\&/g
34473s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
34474D["\1"]=" \3\\\\\\n"\\/p
34475t cont
34476s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34477t cont
34478d
34479:cont
34480n
34481s/.\{148\}/&'"$ac_delim"'/g
34482t clear
34483:clear
34484s/\\$//
34485t bsnlc
34486s/["\\]/\\&/g; s/^/"/; s/$/"/p
34487d
34488:bsnlc
34489s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34490b cont
34491' <confdefs.h | sed '
34492s/'"$ac_delim"'/"\\\
34493"/g' >>$CONFIG_STATUS || ac_write_fail=1
34494
34495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34496  for (key in D) D_is_set[key] = 1
34497  FS = ""
34498}
34499/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34500  line = \$ 0
34501  split(line, arg, " ")
34502  if (arg[1] == "#") {
34503    defundef = arg[2]
34504    mac1 = arg[3]
34505  } else {
34506    defundef = substr(arg[1], 2)
34507    mac1 = arg[2]
34508  }
34509  split(mac1, mac2, "(") #)
34510  macro = mac2[1]
34511  prefix = substr(line, 1, index(line, defundef) - 1)
34512  if (D_is_set[macro]) {
34513    # Preserve the white space surrounding the "#".
34514    print prefix "define", macro P[macro] D[macro]
34515    next
34516  } else {
34517    # Replace #undef with comments.  This is necessary, for example,
34518    # in the case of _POSIX_SOURCE, which is predefined and required
34519    # on some systems where configure will not decide to define it.
34520    if (defundef == "undef") {
34521      print "/*", prefix defundef, macro, "*/"
34522      next
34523    }
34524  }
34525}
34526{ print }
34527_ACAWK
34528_ACEOF
34529cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34530  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
34531fi # test -n "$CONFIG_HEADERS"
34532
34533
34534eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
34535shift
34536for ac_tag
34537do
34538  case $ac_tag in
34539  :[FHLC]) ac_mode=$ac_tag; continue;;
34540  esac
34541  case $ac_mode$ac_tag in
34542  :[FHL]*:*);;
34543  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
34544  :[FH]-) ac_tag=-:-;;
34545  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34546  esac
34547  ac_save_IFS=$IFS
34548  IFS=:
34549  set x $ac_tag
34550  IFS=$ac_save_IFS
34551  shift
34552  ac_file=$1
34553  shift
34554
34555  case $ac_mode in
34556  :L) ac_source=$1;;
34557  :[FH])
34558    ac_file_inputs=
34559    for ac_f
34560    do
34561      case $ac_f in
34562      -) ac_f="$ac_tmp/stdin";;
34563      *) # Look for the file first in the build tree, then in the source tree
34564	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
34565	 # because $ac_f cannot contain `:'.
34566	 test -f "$ac_f" ||
34567	   case $ac_f in
34568	   [\\/$]*) false;;
34569	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34570	   esac ||
34571	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34572      esac
34573      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34574      as_fn_append ac_file_inputs " '$ac_f'"
34575    done
34576
34577    # Let's still pretend it is `configure' which instantiates (i.e., don't
34578    # use $as_me), people would be surprised to read:
34579    #    /* config.h.  Generated by config.status.  */
34580    configure_input='Generated from '`
34581	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34582	`' by configure.'
34583    if test x"$ac_file" != x-; then
34584      configure_input="$ac_file.  $configure_input"
34585      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34586$as_echo "$as_me: creating $ac_file" >&6;}
34587    fi
34588    # Neutralize special characters interpreted by sed in replacement strings.
34589    case $configure_input in #(
34590    *\&* | *\|* | *\\* )
34591       ac_sed_conf_input=`$as_echo "$configure_input" |
34592       sed 's/[\\\\&|]/\\\\&/g'`;; #(
34593    *) ac_sed_conf_input=$configure_input;;
34594    esac
34595
34596    case $ac_tag in
34597    *:-:* | *:-) cat >"$ac_tmp/stdin" \
34598      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34599    esac
34600    ;;
34601  esac
34602
34603  ac_dir=`$as_dirname -- "$ac_file" ||
34604$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34605	 X"$ac_file" : 'X\(//\)[^/]' \| \
34606	 X"$ac_file" : 'X\(//\)$' \| \
34607	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34608$as_echo X"$ac_file" |
34609    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34610	    s//\1/
34611	    q
34612	  }
34613	  /^X\(\/\/\)[^/].*/{
34614	    s//\1/
34615	    q
34616	  }
34617	  /^X\(\/\/\)$/{
34618	    s//\1/
34619	    q
34620	  }
34621	  /^X\(\/\).*/{
34622	    s//\1/
34623	    q
34624	  }
34625	  s/.*/./; q'`
34626  as_dir="$ac_dir"; as_fn_mkdir_p
34627  ac_builddir=.
34628
34629case "$ac_dir" in
34630.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34631*)
34632  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34633  # A ".." for each directory in $ac_dir_suffix.
34634  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34635  case $ac_top_builddir_sub in
34636  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34637  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34638  esac ;;
34639esac
34640ac_abs_top_builddir=$ac_pwd
34641ac_abs_builddir=$ac_pwd$ac_dir_suffix
34642# for backward compatibility:
34643ac_top_builddir=$ac_top_build_prefix
34644
34645case $srcdir in
34646  .)  # We are building in place.
34647    ac_srcdir=.
34648    ac_top_srcdir=$ac_top_builddir_sub
34649    ac_abs_top_srcdir=$ac_pwd ;;
34650  [\\/]* | ?:[\\/]* )  # Absolute name.
34651    ac_srcdir=$srcdir$ac_dir_suffix;
34652    ac_top_srcdir=$srcdir
34653    ac_abs_top_srcdir=$srcdir ;;
34654  *) # Relative name.
34655    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34656    ac_top_srcdir=$ac_top_build_prefix$srcdir
34657    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34658esac
34659ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34660
34661
34662  case $ac_mode in
34663  :F)
34664  #
34665  # CONFIG_FILE
34666  #
34667
34668  case $INSTALL in
34669  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34670  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34671  esac
34672  ac_MKDIR_P=$MKDIR_P
34673  case $MKDIR_P in
34674  [\\/$]* | ?:[\\/]* ) ;;
34675  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34676  esac
34677_ACEOF
34678
34679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34680# If the template does not know about datarootdir, expand it.
34681# FIXME: This hack should be removed a few years after 2.60.
34682ac_datarootdir_hack=; ac_datarootdir_seen=
34683ac_sed_dataroot='
34684/datarootdir/ {
34685  p
34686  q
34687}
34688/@datadir@/p
34689/@docdir@/p
34690/@infodir@/p
34691/@localedir@/p
34692/@mandir@/p'
34693case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34694*datarootdir*) ac_datarootdir_seen=yes;;
34695*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34696  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34697$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34698_ACEOF
34699cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34700  ac_datarootdir_hack='
34701  s&@datadir@&$datadir&g
34702  s&@docdir@&$docdir&g
34703  s&@infodir@&$infodir&g
34704  s&@localedir@&$localedir&g
34705  s&@mandir@&$mandir&g
34706  s&\\\${datarootdir}&$datarootdir&g' ;;
34707esac
34708_ACEOF
34709
34710# Neutralize VPATH when `$srcdir' = `.'.
34711# Shell code in configure.ac might set extrasub.
34712# FIXME: do we really want to maintain this feature?
34713cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34714ac_sed_extra="$ac_vpsub
34715$extrasub
34716_ACEOF
34717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34718:t
34719/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34720s|@configure_input@|$ac_sed_conf_input|;t t
34721s&@top_builddir@&$ac_top_builddir_sub&;t t
34722s&@top_build_prefix@&$ac_top_build_prefix&;t t
34723s&@srcdir@&$ac_srcdir&;t t
34724s&@abs_srcdir@&$ac_abs_srcdir&;t t
34725s&@top_srcdir@&$ac_top_srcdir&;t t
34726s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34727s&@builddir@&$ac_builddir&;t t
34728s&@abs_builddir@&$ac_abs_builddir&;t t
34729s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34730s&@INSTALL@&$ac_INSTALL&;t t
34731s&@MKDIR_P@&$ac_MKDIR_P&;t t
34732$ac_datarootdir_hack
34733"
34734eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
34735  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34736
34737test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34738  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
34739  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
34740      "$ac_tmp/out"`; test -z "$ac_out"; } &&
34741  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34742which seems to be undefined.  Please make sure it is defined" >&5
34743$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34744which seems to be undefined.  Please make sure it is defined" >&2;}
34745
34746  rm -f "$ac_tmp/stdin"
34747  case $ac_file in
34748  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
34749  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34750  esac \
34751  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34752 ;;
34753  :H)
34754  #
34755  # CONFIG_HEADER
34756  #
34757  if test x"$ac_file" != x-; then
34758    {
34759      $as_echo "/* $configure_input  */" \
34760      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34761    } >"$ac_tmp/config.h" \
34762      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34763    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34764      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34765$as_echo "$as_me: $ac_file is unchanged" >&6;}
34766    else
34767      rm -f "$ac_file"
34768      mv "$ac_tmp/config.h" "$ac_file" \
34769	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
34770    fi
34771  else
34772    $as_echo "/* $configure_input  */" \
34773      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34774      || as_fn_error $? "could not create -" "$LINENO" 5
34775  fi
34776# Compute "$ac_file"'s index in $config_headers.
34777_am_arg="$ac_file"
34778_am_stamp_count=1
34779for _am_header in $config_headers :; do
34780  case $_am_header in
34781    $_am_arg | $_am_arg:* )
34782      break ;;
34783    * )
34784      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34785  esac
34786done
34787echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34788$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34789	 X"$_am_arg" : 'X\(//\)[^/]' \| \
34790	 X"$_am_arg" : 'X\(//\)$' \| \
34791	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34792$as_echo X"$_am_arg" |
34793    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34794	    s//\1/
34795	    q
34796	  }
34797	  /^X\(\/\/\)[^/].*/{
34798	    s//\1/
34799	    q
34800	  }
34801	  /^X\(\/\/\)$/{
34802	    s//\1/
34803	    q
34804	  }
34805	  /^X\(\/\).*/{
34806	    s//\1/
34807	    q
34808	  }
34809	  s/.*/./; q'`/stamp-h$_am_stamp_count
34810 ;;
34811
34812  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34813$as_echo "$as_me: executing $ac_file commands" >&6;}
34814 ;;
34815  esac
34816
34817
34818  case $ac_file$ac_mode in
34819    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34820  # Older Autoconf quotes --file arguments for eval, but not when files
34821  # are listed without --file.  Let's play safe and only enable the eval
34822  # if we detect the quoting.
34823  # TODO: see whether this extra hack can be removed once we start
34824  # requiring Autoconf 2.70 or later.
34825  case $CONFIG_FILES in #(
34826  *\'*) :
34827    eval set x "$CONFIG_FILES" ;; #(
34828  *) :
34829    set x $CONFIG_FILES ;; #(
34830  *) :
34831     ;;
34832esac
34833  shift
34834  # Used to flag and report bootstrapping failures.
34835  am_rc=0
34836  for am_mf
34837  do
34838    # Strip MF so we end up with the name of the file.
34839    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
34840    # Check whether this is an Automake generated Makefile which includes
34841    # dependency-tracking related rules and includes.
34842    # Grep'ing the whole file directly is not great: AIX grep has a line
34843    # limit of 2048, but all sed's we know have understand at least 4000.
34844    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
34845      || continue
34846    am_dirpart=`$as_dirname -- "$am_mf" ||
34847$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34848	 X"$am_mf" : 'X\(//\)[^/]' \| \
34849	 X"$am_mf" : 'X\(//\)$' \| \
34850	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
34851$as_echo X"$am_mf" |
34852    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34853	    s//\1/
34854	    q
34855	  }
34856	  /^X\(\/\/\)[^/].*/{
34857	    s//\1/
34858	    q
34859	  }
34860	  /^X\(\/\/\)$/{
34861	    s//\1/
34862	    q
34863	  }
34864	  /^X\(\/\).*/{
34865	    s//\1/
34866	    q
34867	  }
34868	  s/.*/./; q'`
34869    am_filepart=`$as_basename -- "$am_mf" ||
34870$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
34871	 X"$am_mf" : 'X\(//\)$' \| \
34872	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
34873$as_echo X/"$am_mf" |
34874    sed '/^.*\/\([^/][^/]*\)\/*$/{
34875	    s//\1/
34876	    q
34877	  }
34878	  /^X\/\(\/\/\)$/{
34879	    s//\1/
34880	    q
34881	  }
34882	  /^X\/\(\/\).*/{
34883	    s//\1/
34884	    q
34885	  }
34886	  s/.*/./; q'`
34887    { echo "$as_me:$LINENO: cd "$am_dirpart" \
34888      && sed -e '/# am--include-marker/d' "$am_filepart" \
34889        | $MAKE -f - am--depfiles" >&5
34890   (cd "$am_dirpart" \
34891      && sed -e '/# am--include-marker/d' "$am_filepart" \
34892        | $MAKE -f - am--depfiles) >&5 2>&5
34893   ac_status=$?
34894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895   (exit $ac_status); } || am_rc=$?
34896  done
34897  if test $am_rc -ne 0; then
34898    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34900as_fn_error $? "Something went wrong bootstrapping makefile fragments
34901    for automatic dependency tracking.  If GNU make was not used, consider
34902    re-running the configure script with MAKE=\"gmake\" (or whatever is
34903    necessary).  You can also try re-running configure with the
34904    '--disable-dependency-tracking' option to at least be able to build
34905    the package (albeit without support for automatic dependency tracking).
34906See \`config.log' for more details" "$LINENO" 5; }
34907  fi
34908  { am_dirpart=; unset am_dirpart;}
34909  { am_filepart=; unset am_filepart;}
34910  { am_mf=; unset am_mf;}
34911  { am_rc=; unset am_rc;}
34912  rm -f conftest-deps.mk
34913}
34914 ;;
34915    "libtool":C)
34916
34917    # See if we are running on zsh, and set the options that allow our
34918    # commands through without removal of \ escapes.
34919    if test -n "${ZSH_VERSION+set}"; then
34920      setopt NO_GLOB_SUBST
34921    fi
34922
34923    cfgfile=${ofile}T
34924    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34925    $RM "$cfgfile"
34926
34927    cat <<_LT_EOF >> "$cfgfile"
34928#! $SHELL
34929# Generated automatically by $as_me ($PACKAGE) $VERSION
34930# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34931# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34932
34933# Provide generalized library-building support services.
34934# Written by Gordon Matzigkeit, 1996
34935
34936# Copyright (C) 2014 Free Software Foundation, Inc.
34937# This is free software; see the source for copying conditions.  There is NO
34938# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
34939
34940# GNU Libtool is free software; you can redistribute it and/or modify
34941# it under the terms of the GNU General Public License as published by
34942# the Free Software Foundation; either version 2 of of the License, or
34943# (at your option) any later version.
34944#
34945# As a special exception to the GNU General Public License, if you
34946# distribute this file as part of a program or library that is built
34947# using GNU Libtool, you may include this file under the  same
34948# distribution terms that you use for the rest of that program.
34949#
34950# GNU Libtool is distributed in the hope that it will be useful, but
34951# WITHOUT ANY WARRANTY; without even the implied warranty of
34952# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
34953# GNU General Public License for more details.
34954#
34955# You should have received a copy of the GNU General Public License
34956# along with this program.  If not, see <http://www.gnu.org/licenses/>.
34957
34958
34959# The names of the tagged configurations supported by this script.
34960available_tags=''
34961
34962# Configured defaults for sys_lib_dlsearch_path munging.
34963: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
34964
34965# ### BEGIN LIBTOOL CONFIG
34966
34967# Which release of libtool.m4 was used?
34968macro_version=$macro_version
34969macro_revision=$macro_revision
34970
34971# Whether or not to build static libraries.
34972build_old_libs=$enable_static
34973
34974# Assembler program.
34975AS=$lt_AS
34976
34977# DLL creation program.
34978DLLTOOL=$lt_DLLTOOL
34979
34980# Object dumper program.
34981OBJDUMP=$lt_OBJDUMP
34982
34983# Whether or not to build shared libraries.
34984build_libtool_libs=$enable_shared
34985
34986# What type of objects to build.
34987pic_mode=$pic_mode
34988
34989# Whether or not to optimize for fast installation.
34990fast_install=$enable_fast_install
34991
34992# Shared archive member basename,for filename based shared library versioning on AIX.
34993shared_archive_member_spec=$shared_archive_member_spec
34994
34995# Shell to use when invoking shell scripts.
34996SHELL=$lt_SHELL
34997
34998# An echo program that protects backslashes.
34999ECHO=$lt_ECHO
35000
35001# The PATH separator for the build system.
35002PATH_SEPARATOR=$lt_PATH_SEPARATOR
35003
35004# The host system.
35005host_alias=$host_alias
35006host=$host
35007host_os=$host_os
35008
35009# The build system.
35010build_alias=$build_alias
35011build=$build
35012build_os=$build_os
35013
35014# A sed program that does not truncate output.
35015SED=$lt_SED
35016
35017# Sed that helps us avoid accidentally triggering echo(1) options like -n.
35018Xsed="\$SED -e 1s/^X//"
35019
35020# A grep program that handles long lines.
35021GREP=$lt_GREP
35022
35023# An ERE matcher.
35024EGREP=$lt_EGREP
35025
35026# A literal string matcher.
35027FGREP=$lt_FGREP
35028
35029# A BSD- or MS-compatible name lister.
35030NM=$lt_NM
35031
35032# Whether we need soft or hard links.
35033LN_S=$lt_LN_S
35034
35035# What is the maximum length of a command?
35036max_cmd_len=$max_cmd_len
35037
35038# Object file suffix (normally "o").
35039objext=$ac_objext
35040
35041# Executable file suffix (normally "").
35042exeext=$exeext
35043
35044# whether the shell understands "unset".
35045lt_unset=$lt_unset
35046
35047# turn spaces into newlines.
35048SP2NL=$lt_lt_SP2NL
35049
35050# turn newlines into spaces.
35051NL2SP=$lt_lt_NL2SP
35052
35053# convert \$build file names to \$host format.
35054to_host_file_cmd=$lt_cv_to_host_file_cmd
35055
35056# convert \$build files to toolchain format.
35057to_tool_file_cmd=$lt_cv_to_tool_file_cmd
35058
35059# Method to check whether dependent libraries are shared objects.
35060deplibs_check_method=$lt_deplibs_check_method
35061
35062# Command to use when deplibs_check_method = "file_magic".
35063file_magic_cmd=$lt_file_magic_cmd
35064
35065# How to find potential files when deplibs_check_method = "file_magic".
35066file_magic_glob=$lt_file_magic_glob
35067
35068# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
35069want_nocaseglob=$lt_want_nocaseglob
35070
35071# Command to associate shared and link libraries.
35072sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
35073
35074# The archiver.
35075AR=$lt_AR
35076
35077# Flags to create an archive.
35078AR_FLAGS=$lt_AR_FLAGS
35079
35080# How to feed a file listing to the archiver.
35081archiver_list_spec=$lt_archiver_list_spec
35082
35083# A symbol stripping program.
35084STRIP=$lt_STRIP
35085
35086# Commands used to install an old-style archive.
35087RANLIB=$lt_RANLIB
35088old_postinstall_cmds=$lt_old_postinstall_cmds
35089old_postuninstall_cmds=$lt_old_postuninstall_cmds
35090
35091# Whether to use a lock for old archive extraction.
35092lock_old_archive_extraction=$lock_old_archive_extraction
35093
35094# A C compiler.
35095LTCC=$lt_CC
35096
35097# LTCC compiler flags.
35098LTCFLAGS=$lt_CFLAGS
35099
35100# Take the output of nm and produce a listing of raw symbols and C names.
35101global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35102
35103# Transform the output of nm in a proper C declaration.
35104global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35105
35106# Transform the output of nm into a list of symbols to manually relocate.
35107global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
35108
35109# Transform the output of nm in a C name address pair.
35110global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35111
35112# Transform the output of nm in a C name address pair when lib prefix is needed.
35113global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35114
35115# The name lister interface.
35116nm_interface=$lt_lt_cv_nm_interface
35117
35118# Specify filename containing input files for \$NM.
35119nm_file_list_spec=$lt_nm_file_list_spec
35120
35121# The root where to search for dependent libraries,and where our libraries should be installed.
35122lt_sysroot=$lt_sysroot
35123
35124# Command to truncate a binary pipe.
35125lt_truncate_bin=$lt_lt_cv_truncate_bin
35126
35127# The name of the directory that contains temporary libtool files.
35128objdir=$objdir
35129
35130# Used to examine libraries when file_magic_cmd begins with "file".
35131MAGIC_CMD=$MAGIC_CMD
35132
35133# Must we lock files when doing compilation?
35134need_locks=$lt_need_locks
35135
35136# Manifest tool.
35137MANIFEST_TOOL=$lt_MANIFEST_TOOL
35138
35139# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35140DSYMUTIL=$lt_DSYMUTIL
35141
35142# Tool to change global to local symbols on Mac OS X.
35143NMEDIT=$lt_NMEDIT
35144
35145# Tool to manipulate fat objects and archives on Mac OS X.
35146LIPO=$lt_LIPO
35147
35148# ldd/readelf like tool for Mach-O binaries on Mac OS X.
35149OTOOL=$lt_OTOOL
35150
35151# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35152OTOOL64=$lt_OTOOL64
35153
35154# Old archive suffix (normally "a").
35155libext=$libext
35156
35157# Shared library suffix (normally ".so").
35158shrext_cmds=$lt_shrext_cmds
35159
35160# The commands to extract the exported symbol list from a shared archive.
35161extract_expsyms_cmds=$lt_extract_expsyms_cmds
35162
35163# Variables whose values should be saved in libtool wrapper scripts and
35164# restored at link time.
35165variables_saved_for_relink=$lt_variables_saved_for_relink
35166
35167# Do we need the "lib" prefix for modules?
35168need_lib_prefix=$need_lib_prefix
35169
35170# Do we need a version for libraries?
35171need_version=$need_version
35172
35173# Library versioning type.
35174version_type=$version_type
35175
35176# Shared library runtime path variable.
35177runpath_var=$runpath_var
35178
35179# Shared library path variable.
35180shlibpath_var=$shlibpath_var
35181
35182# Is shlibpath searched before the hard-coded library search path?
35183shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35184
35185# Format of library name prefix.
35186libname_spec=$lt_libname_spec
35187
35188# List of archive names.  First name is the real one, the rest are links.
35189# The last name is the one that the linker finds with -lNAME
35190library_names_spec=$lt_library_names_spec
35191
35192# The coded name of the library, if different from the real name.
35193soname_spec=$lt_soname_spec
35194
35195# Permission mode override for installation of shared libraries.
35196install_override_mode=$lt_install_override_mode
35197
35198# Command to use after installation of a shared archive.
35199postinstall_cmds=$lt_postinstall_cmds
35200
35201# Command to use after uninstallation of a shared archive.
35202postuninstall_cmds=$lt_postuninstall_cmds
35203
35204# Commands used to finish a libtool library installation in a directory.
35205finish_cmds=$lt_finish_cmds
35206
35207# As "finish_cmds", except a single script fragment to be evaled but
35208# not shown.
35209finish_eval=$lt_finish_eval
35210
35211# Whether we should hardcode library paths into libraries.
35212hardcode_into_libs=$hardcode_into_libs
35213
35214# Compile-time system search path for libraries.
35215sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35216
35217# Detected run-time system search path for libraries.
35218sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
35219
35220# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
35221configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
35222
35223# Whether dlopen is supported.
35224dlopen_support=$enable_dlopen
35225
35226# Whether dlopen of programs is supported.
35227dlopen_self=$enable_dlopen_self
35228
35229# Whether dlopen of statically linked programs is supported.
35230dlopen_self_static=$enable_dlopen_self_static
35231
35232# Commands to strip libraries.
35233old_striplib=$lt_old_striplib
35234striplib=$lt_striplib
35235
35236
35237# The linker used to build libraries.
35238LD=$lt_LD
35239
35240# How to create reloadable object files.
35241reload_flag=$lt_reload_flag
35242reload_cmds=$lt_reload_cmds
35243
35244# Commands used to build an old-style archive.
35245old_archive_cmds=$lt_old_archive_cmds
35246
35247# A language specific compiler.
35248CC=$lt_compiler
35249
35250# Is the compiler the GNU compiler?
35251with_gcc=$GCC
35252
35253# Compiler flag to turn off builtin functions.
35254no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35255
35256# Additional compiler flags for building library objects.
35257pic_flag=$lt_lt_prog_compiler_pic
35258
35259# How to pass a linker flag through the compiler.
35260wl=$lt_lt_prog_compiler_wl
35261
35262# Compiler flag to prevent dynamic linking.
35263link_static_flag=$lt_lt_prog_compiler_static
35264
35265# Does compiler simultaneously support -c and -o options?
35266compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35267
35268# Whether or not to add -lc for building shared libraries.
35269build_libtool_need_lc=$archive_cmds_need_lc
35270
35271# Whether or not to disallow shared libs when runtime libs are static.
35272allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35273
35274# Compiler flag to allow reflexive dlopens.
35275export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35276
35277# Compiler flag to generate shared objects directly from archives.
35278whole_archive_flag_spec=$lt_whole_archive_flag_spec
35279
35280# Whether the compiler copes with passing no objects directly.
35281compiler_needs_object=$lt_compiler_needs_object
35282
35283# Create an old-style archive from a shared archive.
35284old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35285
35286# Create a temporary old-style archive to link instead of a shared archive.
35287old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35288
35289# Commands used to build a shared archive.
35290archive_cmds=$lt_archive_cmds
35291archive_expsym_cmds=$lt_archive_expsym_cmds
35292
35293# Commands used to build a loadable module if different from building
35294# a shared archive.
35295module_cmds=$lt_module_cmds
35296module_expsym_cmds=$lt_module_expsym_cmds
35297
35298# Whether we are building with GNU ld or not.
35299with_gnu_ld=$lt_with_gnu_ld
35300
35301# Flag that allows shared libraries with undefined symbols to be built.
35302allow_undefined_flag=$lt_allow_undefined_flag
35303
35304# Flag that enforces no undefined symbols.
35305no_undefined_flag=$lt_no_undefined_flag
35306
35307# Flag to hardcode \$libdir into a binary during linking.
35308# This must work even if \$libdir does not exist
35309hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35310
35311# Whether we need a single "-rpath" flag with a separated argument.
35312hardcode_libdir_separator=$lt_hardcode_libdir_separator
35313
35314# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35315# DIR into the resulting binary.
35316hardcode_direct=$hardcode_direct
35317
35318# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35319# DIR into the resulting binary and the resulting library dependency is
35320# "absolute",i.e impossible to change by setting \$shlibpath_var if the
35321# library is relocated.
35322hardcode_direct_absolute=$hardcode_direct_absolute
35323
35324# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35325# into the resulting binary.
35326hardcode_minus_L=$hardcode_minus_L
35327
35328# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35329# into the resulting binary.
35330hardcode_shlibpath_var=$hardcode_shlibpath_var
35331
35332# Set to "yes" if building a shared library automatically hardcodes DIR
35333# into the library and all subsequent libraries and executables linked
35334# against it.
35335hardcode_automatic=$hardcode_automatic
35336
35337# Set to yes if linker adds runtime paths of dependent libraries
35338# to runtime path list.
35339inherit_rpath=$inherit_rpath
35340
35341# Whether libtool must link a program against all its dependency libraries.
35342link_all_deplibs=$link_all_deplibs
35343
35344# Set to "yes" if exported symbols are required.
35345always_export_symbols=$always_export_symbols
35346
35347# The commands to list exported symbols.
35348export_symbols_cmds=$lt_export_symbols_cmds
35349
35350# Symbols that should not be listed in the preloaded symbols.
35351exclude_expsyms=$lt_exclude_expsyms
35352
35353# Symbols that must always be exported.
35354include_expsyms=$lt_include_expsyms
35355
35356# Commands necessary for linking programs (against libraries) with templates.
35357prelink_cmds=$lt_prelink_cmds
35358
35359# Commands necessary for finishing linking programs.
35360postlink_cmds=$lt_postlink_cmds
35361
35362# Specify filename containing input files.
35363file_list_spec=$lt_file_list_spec
35364
35365# How to hardcode a shared library path into an executable.
35366hardcode_action=$hardcode_action
35367
35368# ### END LIBTOOL CONFIG
35369
35370_LT_EOF
35371
35372    cat <<'_LT_EOF' >> "$cfgfile"
35373
35374# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
35375
35376# func_munge_path_list VARIABLE PATH
35377# -----------------------------------
35378# VARIABLE is name of variable containing _space_ separated list of
35379# directories to be munged by the contents of PATH, which is string
35380# having a format:
35381# "DIR[:DIR]:"
35382#       string "DIR[ DIR]" will be prepended to VARIABLE
35383# ":DIR[:DIR]"
35384#       string "DIR[ DIR]" will be appended to VARIABLE
35385# "DIRP[:DIRP]::[DIRA:]DIRA"
35386#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
35387#       "DIRA[ DIRA]" will be appended to VARIABLE
35388# "DIR[:DIR]"
35389#       VARIABLE will be replaced by "DIR[ DIR]"
35390func_munge_path_list ()
35391{
35392    case x$2 in
35393    x)
35394        ;;
35395    *:)
35396        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
35397        ;;
35398    x:*)
35399        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
35400        ;;
35401    *::*)
35402        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
35403        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
35404        ;;
35405    *)
35406        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
35407        ;;
35408    esac
35409}
35410
35411
35412# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
35413func_cc_basename ()
35414{
35415    for cc_temp in $*""; do
35416      case $cc_temp in
35417        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
35418        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
35419        \-*) ;;
35420        *) break;;
35421      esac
35422    done
35423    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
35424}
35425
35426
35427# ### END FUNCTIONS SHARED WITH CONFIGURE
35428
35429_LT_EOF
35430
35431  case $host_os in
35432  aix3*)
35433    cat <<\_LT_EOF >> "$cfgfile"
35434# AIX sometimes has problems with the GCC collect2 program.  For some
35435# reason, if we set the COLLECT_NAMES environment variable, the problems
35436# vanish in a puff of smoke.
35437if test set != "${COLLECT_NAMES+set}"; then
35438  COLLECT_NAMES=
35439  export COLLECT_NAMES
35440fi
35441_LT_EOF
35442    ;;
35443  esac
35444
35445
35446ltmain=$ac_aux_dir/ltmain.sh
35447
35448
35449  # We use sed instead of cat because bash on DJGPP gets confused if
35450  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
35451  # text mode, it properly converts lines to CR/LF.  This bash problem
35452  # is reportedly fixed, but why not run on old versions too?
35453  sed '$q' "$ltmain" >> "$cfgfile" \
35454     || (rm -f "$cfgfile"; exit 1)
35455
35456   mv -f "$cfgfile" "$ofile" ||
35457    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35458  chmod +x "$ofile"
35459
35460 ;;
35461    "sdksyms":C) touch hw/xfree86/sdksyms.dep ;;
35462
35463  esac
35464done # for ac_tag
35465
35466
35467as_fn_exit 0
35468_ACEOF
35469ac_clean_files=$ac_clean_files_save
35470
35471test $ac_write_fail = 0 ||
35472  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
35473
35474
35475# configure is writing to config.log, and then calls config.status.
35476# config.status does its own redirection, appending to config.log.
35477# Unfortunately, on DOS this fails, as config.log is still kept open
35478# by configure, so config.status won't be able to write to it; its
35479# output is simply discarded.  So we exec the FD to /dev/null,
35480# effectively closing config.log, so it can be properly (re)opened and
35481# appended to by config.status.  When coming back to configure, we
35482# need to make the FD available again.
35483if test "$no_create" != yes; then
35484  ac_cs_success=:
35485  ac_config_status_args=
35486  test "$silent" = yes &&
35487    ac_config_status_args="$ac_config_status_args --quiet"
35488  exec 5>/dev/null
35489  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35490  exec 5>>config.log
35491  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35492  # would make configure fail if this is the last instruction.
35493  $ac_cs_success || as_fn_exit 1
35494fi
35495if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35496  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35497$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35498fi
35499
35500